diff --git a/.env b/.env index f6a6a7f642f..89b76cb740a 100644 --- a/.env +++ b/.env @@ -2,6 +2,7 @@ _APP_ENV=development _APP_EDITION=self-hosted _APP_LOCALE=en _APP_WORKER_PER_CORE=6 +_APP_COMPRESSION_MIN_SIZE_BYTES=1024 _APP_CONSOLE_WHITELIST_ROOT=disabled _APP_CONSOLE_WHITELIST_EMAILS= _APP_CONSOLE_SESSION_ALERTS=enabled @@ -14,6 +15,7 @@ _APP_SYSTEM_TEAM_EMAIL=team@appwrite.io _APP_EMAIL_SECURITY=security@appwrite.io _APP_EMAIL_CERTIFICATES=certificates@appwrite.io _APP_SYSTEM_RESPONSE_FORMAT= +_APP_CUSTOM_DOMAIN_DENY_LIST= _APP_OPTIONS_ABUSE=disabled _APP_OPTIONS_ROUTER_PROTECTION=disabled _APP_OPTIONS_FORCE_HTTPS=disabled @@ -22,6 +24,7 @@ _APP_OPENSSL_KEY_V1=your-secret-key _APP_DOMAIN=traefik _APP_DOMAIN_FUNCTIONS=functions.localhost _APP_DOMAIN_TARGET=localhost +_APP_RULES_FORMAT=md5 _APP_REDIS_HOST=redis _APP_REDIS_PORT=6379 _APP_REDIS_PASS= @@ -37,6 +40,7 @@ _APP_STORAGE_S3_ACCESS_KEY= _APP_STORAGE_S3_SECRET= _APP_STORAGE_S3_REGION=us-east-1 _APP_STORAGE_S3_BUCKET= +_APP_STORAGE_S3_ENDPOINT= _APP_STORAGE_DO_SPACES_ACCESS_KEY= _APP_STORAGE_DO_SPACES_SECRET= _APP_STORAGE_DO_SPACES_REGION=us-east-1 @@ -78,12 +82,14 @@ _APP_EXECUTOR_SECRET=your-secret-key _APP_EXECUTOR_HOST=http://proxy/v1 _APP_FUNCTIONS_RUNTIMES=php-8.0,node-18.0,python-3.9,ruby-3.1 _APP_MAINTENANCE_INTERVAL=86400 -_APP_MAINTENANCE_DELAY= +_APP_MAINTENANCE_START_TIME=12:00 _APP_MAINTENANCE_RETENTION_CACHE=2592000 _APP_MAINTENANCE_RETENTION_EXECUTION=1209600 _APP_MAINTENANCE_RETENTION_ABUSE=86400 _APP_MAINTENANCE_RETENTION_AUDIT=1209600 +_APP_MAINTENANCE_RETENTION_AUDIT_CONSOLE=15778800 _APP_USAGE_AGGREGATION_INTERVAL=30 +_APP_STATS_RESOURCES_INTERVAL=3600 _APP_MAINTENANCE_RETENTION_USAGE_HOURLY=8640000 _APP_MAINTENANCE_RETENTION_SCHEDULES=86400 _APP_USAGE_STATS=enabled @@ -107,3 +113,5 @@ _APP_MESSAGE_EMAIL_TEST_DSN= _APP_MESSAGE_PUSH_TEST_DSN= _APP_WEBHOOK_MAX_FAILED_ATTEMPTS=10 _APP_PROJECT_REGIONS=default +_APP_FUNCTIONS_CREATION_ABUSE_LIMIT=5000 +_APP_STATS_USAGE_DUAL_WRITING_DBS=database_db_main \ No newline at end of file diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 050f80b10a4..0c0482ca8f1 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -13,8 +13,13 @@ on: schedule: - cron: '0 16 * * 0' +permissions: + contents: read + jobs: analyze: + permissions: + security-events: write name: Analyze runs-on: ubuntu-latest diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml new file mode 100644 index 00000000000..80d880244c7 --- /dev/null +++ b/.github/workflows/nightly.yml @@ -0,0 +1,47 @@ +name: Nightly Security Scan +on: + schedule: + - cron: '0 0 * * *' # 12am UTC daily runtime + workflow_dispatch: + +jobs: + scan-image: + name: Scan Docker Image + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4 + with: + submodules: recursive + - name: Build the Docker image + run: docker build . -t appwrite_image:latest + - name: Run Trivy vulnerability scanner on image + uses: aquasecurity/trivy-action@0.20.0 + with: + image-ref: 'appwrite_image:latest' + format: 'sarif' + output: 'trivy-image-results.sarif' + ignore-unfixed: 'false' + severity: 'CRITICAL,HIGH' + - name: Upload Docker Image Scan Results + uses: github/codeql-action/upload-sarif@v2 + with: + sarif_file: 'trivy-image-results.sarif' + + scan-code: + name: Scan Code + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4 + - name: Run Trivy vulnerability scanner on filesystem + uses: aquasecurity/trivy-action@0.20.0 + with: + scan-type: 'fs' + format: 'sarif' + output: 'trivy-fs-results.sarif' + severity: 'CRITICAL,HIGH' + - name: Upload Code Scan Results + uses: github/codeql-action/upload-sarif@v2 + with: + sarif_file: 'trivy-fs-results.sarif' diff --git a/.github/workflows/pr-scan.yml b/.github/workflows/pr-scan.yml index af510ccc3b4..eded58985d6 100644 --- a/.github/workflows/pr-scan.yml +++ b/.github/workflows/pr-scan.yml @@ -1,17 +1,22 @@ name: PR Security Scan -on: - pull_request: +on: + pull_request_target: types: [opened, synchronize, reopened] - workflow_dispatch: + jobs: scan: runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write steps: - - name: Check out code + - name: Check out code uses: actions/checkout@v4 with: + ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 submodules: 'recursive' + - name: Build the Docker image uses: docker/build-push-action@v5 with: @@ -19,6 +24,7 @@ jobs: push: false load: true tags: pr_image:${{ github.sha }} + - name: Run Trivy vulnerability scanner on image uses: aquasecurity/trivy-action@0.20.0 with: @@ -26,6 +32,7 @@ jobs: format: 'json' output: 'trivy-image-results.json' severity: 'CRITICAL,HIGH' + - name: Run Trivy vulnerability scanner on source code uses: aquasecurity/trivy-action@0.20.0 with: @@ -34,10 +41,11 @@ jobs: format: 'json' output: 'trivy-fs-results.json' severity: 'CRITICAL,HIGH' - - name: Process and post Trivy scan results + + - name: Process Trivy scan results + id: process-results uses: actions/github-script@v7 with: - github-token: ${{secrets.GITHUB_TOKEN}} script: | const fs = require('fs'); let commentBody = '## Security Scan Results for PR\n\n'; @@ -79,9 +87,19 @@ jobs: commentBody += 'Please contact the core team for assistance.'; } - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: commentBody - }); + core.setOutput('comment-body', commentBody); + - name: Find Comment + uses: peter-evans/find-comment@v3 + id: fc + with: + issue-number: ${{ github.event.pull_request.number }} + comment-author: 'github-actions[bot]' + body-includes: Security Scan Results for PR + + - name: Create or update comment + uses: peter-evans/create-or-update-comment@v3 + with: + issue-number: ${{ github.event.pull_request.number }} + comment-id: ${{ steps.fc.outputs.comment-id }} + body: ${{ steps.process-results.outputs.comment-body }} + edit-mode: replace diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f914e662d35..0ed82dd853f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -26,7 +26,7 @@ jobs: - name: Login to Docker Hub uses: docker/login-action@v2 with: - username: ${{ secrets.DOCKERHUB_USERNAME }} + username: ${{ vars.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Extract metadata (tags, labels) for Docker diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4475a498094..712d30dac06 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,7 @@ jobs: - name: Login to Docker Hub uses: docker/login-action@v2 with: - username: ${{ secrets.DOCKERHUB_USERNAME }} + username: ${{ vars.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Extract metadata (tags, labels) for Docker diff --git a/.github/workflows/sdk-preview.yml b/.github/workflows/sdk-preview.yml new file mode 100644 index 00000000000..92b4f454cbb --- /dev/null +++ b/.github/workflows/sdk-preview.yml @@ -0,0 +1,33 @@ +name: "Console SDK Preview" + +on: + pull_request: + paths: + - 'app/config/specs/*-latest-console.json' + + +jobs: + setup: + name: Setup & Build Console SDK + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Load and Start Appwrite + run: | + docker compose build + docker compose up -d + docker compose exec appwrite sdks --platform=console --sdk=web --version=latest --git=no + sudo chown -R $USER:$USER ./app/sdks/console-web + + - uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Build and Publish SDK + working-directory: ./app/sdks/console-web + run: | + npm install + npm run build + npx pkg-pr-new publish --comment=update diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 633bd46ea48..1d35fec3c71 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,23 +8,47 @@ env: IMAGE: appwrite-dev CACHE_KEY: appwrite-dev-${{ github.event.pull_request.head.sha }} -on: [pull_request] +on: [ pull_request ] jobs: + check_database_changes: + name: Check if utopia-php/database changed + runs-on: ubuntu-latest + outputs: + database_changed: ${{ steps.check.outputs.database_changed }} + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Fetch base branch + run: git fetch origin ${{ github.event.pull_request.base.ref }} + + - name: Check for utopia-php/database changes + id: check + run: | + if git diff origin/${{ github.event.pull_request.base.ref }} HEAD -- composer.lock | grep -q '"name": "utopia-php/database"'; then + echo "Database version changed, going to run all mode tests." + echo "database_changed=true" >> "$GITHUB_ENV" + echo "database_changed=true" >> "$GITHUB_OUTPUT" + else + echo "database_changed=false" >> "$GITHUB_ENV" + echo "database_changed=false" >> "$GITHUB_OUTPUT" + fi + setup: name: Setup & Build Appwrite Image runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: recursive - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Build Appwrite - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v6 with: context: . push: false @@ -39,7 +63,7 @@ jobs: VERSION=dev - name: Cache Docker Image - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: ${{ env.CACHE_KEY }} path: /tmp/${{ env.IMAGE }}.tar @@ -51,10 +75,10 @@ jobs: steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Load Cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: ${{ env.CACHE_KEY }} path: /tmp/${{ env.IMAGE }}.tar @@ -81,10 +105,10 @@ jobs: needs: setup steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Load Cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: ${{ env.CACHE_KEY }} path: /tmp/${{ env.IMAGE }}.tar @@ -103,6 +127,62 @@ jobs: name: E2E Service Test runs-on: ubuntu-latest needs: setup + strategy: + fail-fast: false + matrix: + service: [ + Account, + Avatars, + Console, + Databases, + Functions, + FunctionsSchedule, + GraphQL, + Health, + Locale, + Projects, + Realtime, + Storage, + Teams, + Users, + Webhooks, + VCS, + Messaging, + Migrations + ] + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Load Cache + uses: actions/cache@v4 + with: + key: ${{ env.CACHE_KEY }} + path: /tmp/${{ env.IMAGE }}.tar + fail-on-cache-miss: true + + - name: Load and Start Appwrite + run: | + docker load --input /tmp/${{ env.IMAGE }}.tar + docker compose up -d + sleep 30 + + - name: Run ${{ matrix.service }} tests with Project table mode + run: | + echo "Using project tables" + export _APP_DATABASE_SHARED_TABLES= + export _APP_DATABASE_SHARED_TABLES_V1= + + docker compose exec -T \ + -e _APP_DATABASE_SHARED_TABLES \ + -e _APP_DATABASE_SHARED_TABLES_V1 \ + appwrite test /usr/src/code/tests/e2e/Services/${{ matrix.service }} --debug + + e2e_shared_mode_test: + name: E2E Shared Mode Service Test + runs-on: ubuntu-latest + needs: [ setup, check_database_changes ] + if: needs.check_database_changes.outputs.database_changed == 'true' strategy: fail-fast: false matrix: @@ -113,6 +193,7 @@ jobs: Console, Databases, Functions, + FunctionsSchedule, GraphQL, Health, Locale, @@ -124,14 +205,19 @@ jobs: Webhooks, VCS, Messaging, + Migrations ] + tables-mode: [ + 'Shared V1', + 'Shared V2', + ] steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Load Cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: ${{ env.CACHE_KEY }} path: /tmp/${{ env.IMAGE }}.tar @@ -141,23 +227,36 @@ jobs: run: | docker load --input /tmp/${{ env.IMAGE }}.tar docker compose up -d - sleep 25 - - - name: Run ${{matrix.service}} Tests - run: docker compose exec -T appwrite test /usr/src/code/tests/e2e/Services/${{matrix.service}} --debug + sleep 30 - - name: Run ${{matrix.service}} Shared Tables Tests - run: _APP_DATABASE_SHARED_TABLES=database_db_main docker compose exec -T appwrite test /usr/src/code/tests/e2e/Services/${{matrix.service}} --debug + - name: Run ${{ matrix.service }} tests with ${{ matrix.tables-mode }} table mode + run: | + if [ "${{ matrix.tables-mode }}" == "Shared V1" ]; then + echo "Using shared tables V1" + export _APP_DATABASE_SHARED_TABLES=database_db_main + export _APP_DATABASE_SHARED_TABLES_V1=database_db_main + elif [ "${{ matrix.tables-mode }}" == "Shared V2" ]; then + echo "Using shared tables V2" + export _APP_DATABASE_SHARED_TABLES=database_db_main + export _APP_DATABASE_SHARED_TABLES_V1= + fi + + docker compose exec -T \ + -e _APP_DATABASE_SHARED_TABLES \ + -e _APP_DATABASE_SHARED_TABLES_V1 \ + appwrite test /usr/src/code/tests/e2e/Services/${{ matrix.service }} --debug - benchamrking: + benchmarking: name: Benchmark runs-on: ubuntu-latest needs: setup + permissions: + pull-requests: write steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Load Cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: ${{ env.CACHE_KEY }} path: /tmp/${{ env.IMAGE }}.tar @@ -213,6 +312,7 @@ jobs: path: benchmark.json retention-days: 7 - name: Find Comment + if: github.event.pull_request.head.repo.full_name == github.repository uses: peter-evans/find-comment@v3 id: fc with: @@ -220,6 +320,7 @@ jobs: comment-author: 'github-actions[bot]' body-includes: Benchmark results - name: Comment on PR + if: github.event.pull_request.head.repo.full_name == github.repository uses: peter-evans/create-or-update-comment@v4 with: comment-id: ${{ steps.fc.outputs.comment-id }} diff --git a/.gitignore b/.gitignore index 5ae03e2a56c..0c19fd215e2 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ dev/yasd_init.php .phpunit.result.cache Makefile appwrite.json +/.zed/ \ No newline at end of file diff --git a/.gitpod.yml b/.gitpod.yml index 478b62fc8df..78375bb1f02 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -7,6 +7,7 @@ tasks: docker pull composer command: | docker run --rm --interactive --tty \ + --user "$(id -u):$(id -g)" \ --volume $PWD:/app \ composer install \ --ignore-platform-reqs \ @@ -23,11 +24,3 @@ vscode: extensions: - ms-azuretools.vscode-docker - zobo.php-intellisense - -github: - # https://www.gitpod.io/docs/prebuilds#github-specific-configuration - prebuilds: - # enable for pull requests coming from forks (defaults to false) - pullRequestsFromForks: true - # add a check to pull requests (defaults to true) - addCheck: false diff --git a/CHANGES.md b/CHANGES.md index 9b6172eeab5..bc903e4b318 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,381 @@ +# Version 1.6.2 + +## What's Changed + +### Notable changes + +* Delete git folder to reduce build size in [9076](https://github.com/appwrite/appwrite/pull/9076) +* Upgrade assistant in [9100](https://github.com/appwrite/appwrite/pull/9100) +* Use redis adapter for abuse in [9121](https://github.com/appwrite/appwrite/pull/9121) +* Set base specification CPUs to 0.5 again in [9146](https://github.com/appwrite/appwrite/pull/9146) +* Add new push message parameters in [9060](https://github.com/appwrite/appwrite/pull/9060) +* Update audits to include user type in [9211](https://github.com/appwrite/appwrite/pull/9211) +* Enable HEIC in [9251](https://github.com/appwrite/appwrite/pull/9251) +* Added teamName to membership redirect url in [9269](https://github.com/appwrite/appwrite/pull/9269) +* Add support endpoint url for S3 in [9303](https://github.com/appwrite/appwrite/pull/9303) +* Added RuPay Credit Card Icon in Avatars Service in [5046](https://github.com/appwrite/appwrite/pull/5046) +* Add figma oauth provider in [9623](https://github.com/appwrite/appwrite/pull/9623) +* Update console to version 5.2.58 in [9637](https://github.com/appwrite/appwrite/pull/9637) + +### Fixes + +* Remove failed attribute in [9032](https://github.com/appwrite/appwrite/pull/9032) +* Fix delete notFound attribute in [9038](https://github.com/appwrite/appwrite/pull/9038) +* 🇮🇸 Added missing Icelandic translations for email strings. in [4848](https://github.com/appwrite/appwrite/pull/4848) +* fix doc comment for filter method in [5769](https://github.com/appwrite/appwrite/pull/5769) +* Delete attribute No throwing Exception on not found in [9157](https://github.com/appwrite/appwrite/pull/9157) +* Fix VCS identity collision in [9138](https://github.com/appwrite/appwrite/pull/9138) +* Fix disabling of email-otp when user wants to in [9200](https://github.com/appwrite/appwrite/pull/9200) +* Ensure user can delete session in [9209](https://github.com/appwrite/appwrite/pull/9209) +* Fix resend invitation in [9218](https://github.com/appwrite/appwrite/pull/9218) +* Fix phone number parsing exception handling in [9246](https://github.com/appwrite/appwrite/pull/9246) +* Fix amazon oauth in [9253](https://github.com/appwrite/appwrite/pull/9253) +* Fix slack oauth scopes, and updated to v2 in [9228](https://github.com/appwrite/appwrite/pull/9228) +* Fix forwarded user agent in [9271](https://github.com/appwrite/appwrite/pull/9271) +* Fix WEBP File Preview Rendering Issue in [9321](https://github.com/appwrite/appwrite/pull/9321) +* Fix build memory specifications in [9360](https://github.com/appwrite/appwrite/pull/9360) +* Fix Self Hosting functions by adding missed config in [9373](https://github.com/appwrite/appwrite/pull/9373) +* Fix resend team invite if already accepted in [9348](https://github.com/appwrite/appwrite/pull/9348) +* Fix null errors on team invite in [9391](https://github.com/appwrite/appwrite/pull/9391) +* Fix email (smtp) to multiple recipients in [9243](https://github.com/appwrite/appwrite/pull/9243) +* Fix stats timing by using receivedAt date when available in [9428](https://github.com/appwrite/appwrite/pull/9428) +* Make min/max params optional for attribute update in [9387](https://github.com/appwrite/appwrite/pull/9387) +* Fix blocking of phone sessions when disabled on console in [9447](https://github.com/appwrite/appwrite/pull/9447) +* Fix logging config in [9467](https://github.com/appwrite/appwrite/pull/9467) +* Update audit timestamp origin in [9481](https://github.com/appwrite/appwrite/pull/9481) +* Fix certificates in deletes worker in [9466](https://github.com/appwrite/appwrite/pull/9466) +* Fix console audits delete in [9547](https://github.com/appwrite/appwrite/pull/9547) +* Fix migrations in [9633](https://github.com/appwrite/appwrite/pull/9633) +* Ensure all 4xx errors in OAuth redirect lead to the failure URL in [9679](https://github.com/appwrite/appwrite/pull/9679) +* Treat 0 as unlimited for CPUs and memory in [9638](https://github.com/appwrite/appwrite/pull/9638) +* Add contextual dispatch logic to fix high CPU usage in [9687](https://github.com/appwrite/appwrite/pull/9687) + +### Miscellaneous + +* Merge 1.6.x into feat-custom-cf-hostnames in [8904](https://github.com/appwrite/appwrite/pull/8904) +* Improve compression param checks in [8922](https://github.com/appwrite/appwrite/pull/8922) +* upgrade utopia storage in [8930](https://github.com/appwrite/appwrite/pull/8930) +* Feat migration in [8797](https://github.com/appwrite/appwrite/pull/8797) +* feat fix web routes in [8962](https://github.com/appwrite/appwrite/pull/8962) +* Fix no pool access in [9027](https://github.com/appwrite/appwrite/pull/9027) +* feat: use environment variable to check rules format in [9039](https://github.com/appwrite/appwrite/pull/9039) +* Update storage.php in [9037](https://github.com/appwrite/appwrite/pull/9037) +* Upgrade db 0.53.200 in [9050](https://github.com/appwrite/appwrite/pull/9050) +* Chore: upgrade utopia storage in [9066](https://github.com/appwrite/appwrite/pull/9066) +* Update usage-dump payload in [9085](https://github.com/appwrite/appwrite/pull/9085) +* GitHub Workflows security hardening in [3728](https://github.com/appwrite/appwrite/pull/3728) +* Update add-oauth2-provider.md in [4313](https://github.com/appwrite/appwrite/pull/4313) +* update readme-cn some doc in [5278](https://github.com/appwrite/appwrite/pull/5278) +* Add accessibility features in [7042](https://github.com/appwrite/appwrite/pull/7042) +* Add Appwrite Cloud to read me. in [5445](https://github.com/appwrite/appwrite/pull/5445) +* Migration throw error in [9092](https://github.com/appwrite/appwrite/pull/9092) +* Fix usage payload bug in [9097](https://github.com/appwrite/appwrite/pull/9097) +* chore: replace occurrences of dbForConsole to dbForPlatform in [9096](https://github.com/appwrite/appwrite/pull/9096) +* fix(realtime): decrement connectionCounter only if connection is known in [9055](https://github.com/appwrite/appwrite/pull/9055) +* payload bug fix in [9098](https://github.com/appwrite/appwrite/pull/9098) +* Fix usage payload bug in [9099](https://github.com/appwrite/appwrite/pull/9099) +* Usage payload debug in [9101](https://github.com/appwrite/appwrite/pull/9101) +* Usage payload debug in [9103](https://github.com/appwrite/appwrite/pull/9103) +* Usage payload debug in [9104](https://github.com/appwrite/appwrite/pull/9104) +* Feat: createFunction abuse labels in [9102](https://github.com/appwrite/appwrite/pull/9102) +* Docs-create-document in [9105](https://github.com/appwrite/appwrite/pull/9105) +* Docs: Create document and unknown attribute error messages. in [5427](https://github.com/appwrite/appwrite/pull/5427) +* Fix: update project accessed at from router and schedulers in [9109](https://github.com/appwrite/appwrite/pull/9109) +* chore: initial commit in [9111](https://github.com/appwrite/appwrite/pull/9111) +* chore: optimise webhooks payload in [9115](https://github.com/appwrite/appwrite/pull/9115) +* Revert "chore: initial commit" in [9117](https://github.com/appwrite/appwrite/pull/9117) +* chore: fix attribute name in [9118](https://github.com/appwrite/appwrite/pull/9118) +* Migrate to redis abuse in [9124](https://github.com/appwrite/appwrite/pull/9124) +* Added webhooks usage stats in [9125](https://github.com/appwrite/appwrite/pull/9125) +* chore remove abuse cleanup in [9137](https://github.com/appwrite/appwrite/pull/9137) +* fix: remove abuse delete trigger in [9139](https://github.com/appwrite/appwrite/pull/9139) +* Remove firebase OAuth API endpoints in [9144](https://github.com/appwrite/appwrite/pull/9144) +* chore: release client sdks in [9112](https://github.com/appwrite/appwrite/pull/9112) +* Update general.php in [9155](https://github.com/appwrite/appwrite/pull/9155) +* feat(swoole): allow configuration override of available cpus in [9177](https://github.com/appwrite/appwrite/pull/9177) +* Usage databases api read writes addition in [9142](https://github.com/appwrite/appwrite/pull/9142) +* Fix dead connections in [9190](https://github.com/appwrite/appwrite/pull/9190) +* Add hostname to audits in [9165](https://github.com/appwrite/appwrite/pull/9165) +* chore: shifted authphone usage tracking to api calls in [9191](https://github.com/appwrite/appwrite/pull/9191) +* Revert "Fix dead connections" in [9201](https://github.com/appwrite/appwrite/pull/9201) +* Add assertEventually to messaging provider logs test in [9192](https://github.com/appwrite/appwrite/pull/9192) +* feat project sms usage in [9198](https://github.com/appwrite/appwrite/pull/9198) +* chore: add audit labels to project resources in [9056](https://github.com/appwrite/appwrite/pull/9056) +* fix sms usage in [9207](https://github.com/appwrite/appwrite/pull/9207) +* Update database in [9202](https://github.com/appwrite/appwrite/pull/9202) +* Fix dead connections in [9213](https://github.com/appwrite/appwrite/pull/9213) +* Revert "Fix dead connections" in [9214](https://github.com/appwrite/appwrite/pull/9214) +* Add logs db init for consistency in [9163](https://github.com/appwrite/appwrite/pull/9163) +* Split the collection definitions in [9153](https://github.com/appwrite/appwrite/pull/9153) +* Log path with populated parameters in [9220](https://github.com/appwrite/appwrite/pull/9220) +* Add missing scope on function template in [9208](https://github.com/appwrite/appwrite/pull/9208) +* Add relatedCollection default in [9225](https://github.com/appwrite/appwrite/pull/9225) +* fix: function usage in [9235](https://github.com/appwrite/appwrite/pull/9235) +* feat: optimise events payloads in [9232](https://github.com/appwrite/appwrite/pull/9232) +* Optimise webhook events in [9168](https://github.com/appwrite/appwrite/pull/9168) +* fix: maintenance job missing type in [9238](https://github.com/appwrite/appwrite/pull/9238) +* Update Fetch to 0.3.0 in [9245](https://github.com/appwrite/appwrite/pull/9245) +* Fix maintenance job in [9247](https://github.com/appwrite/appwrite/pull/9247) +* chore: add missing case for executions in [9248](https://github.com/appwrite/appwrite/pull/9248) +* Add index dependency exception in [9226](https://github.com/appwrite/appwrite/pull/9226) +* chore: fix benchmarking test when made from fork in [9233](https://github.com/appwrite/appwrite/pull/9233) +* Update SDK Generator versions in [9188](https://github.com/appwrite/appwrite/pull/9188) +* chore: skipped job instead of throwing error in [9250](https://github.com/appwrite/appwrite/pull/9250) +* Implement new SDK Class on 1.6.x in [9237](https://github.com/appwrite/appwrite/pull/9237) +* Delete collection before Appwrite's attributes in [9256](https://github.com/appwrite/appwrite/pull/9256) +* Feat batch usage dump in [9255](https://github.com/appwrite/appwrite/pull/9255) +* Fix cloud tests in [9261](https://github.com/appwrite/appwrite/pull/9261) +* Usage: Databases reads writes in [9260](https://github.com/appwrite/appwrite/pull/9260) +* Update: Latest sdk specs in [9274](https://github.com/appwrite/appwrite/pull/9274) +* Revert "Feat batch usage dump" in [9276](https://github.com/appwrite/appwrite/pull/9276) +* feat: add fast2SMS adapter in [9263](https://github.com/appwrite/appwrite/pull/9263) +* Update Sdk Generator dependency in [9280](https://github.com/appwrite/appwrite/pull/9280) +* Transformed at addition in [9281](https://github.com/appwrite/appwrite/pull/9281) +* Docs: clarify update endpoints only work on draft messages in [9236](https://github.com/appwrite/appwrite/pull/9236) +* Update sdk generator dependency in [9282](https://github.com/appwrite/appwrite/pull/9282) +* Revert "Transformed at addition" in [9284](https://github.com/appwrite/appwrite/pull/9284) +* replaced init for cloud link in [9285](https://github.com/appwrite/appwrite/pull/9285) +* Add transformed at in [9289](https://github.com/appwrite/appwrite/pull/9289) +* Make migrations use Dynamic keys for destination in [9291](https://github.com/appwrite/appwrite/pull/9291) +* Make sessions limit tests assert eventually in [9298](https://github.com/appwrite/appwrite/pull/9298) +* Chore update database in [9306](https://github.com/appwrite/appwrite/pull/9306) +* feat: add AMQP queues in [9287](https://github.com/appwrite/appwrite/pull/9287) +* fix(test): use assertEventually instead of while(true) in [9308](https://github.com/appwrite/appwrite/pull/9308) +* fix(certificate worker): events are published without queue name in [9309](https://github.com/appwrite/appwrite/pull/9309) +* chore: update utopia-php/queue to 0.8.1 in [9311](https://github.com/appwrite/appwrite/pull/9311) +* chore: update utopia-php/queue to 0.8.2 in [9312](https://github.com/appwrite/appwrite/pull/9312) +* fix(schedule-tasks): revert back to direct pool usage in [9313](https://github.com/appwrite/appwrite/pull/9313) +* feat: custom app schemes in [9262](https://github.com/appwrite/appwrite/pull/9262) +* Revert "feat: custom app schemes" in [9319](https://github.com/appwrite/appwrite/pull/9319) +* Restore "feat: custom app schemes"" in [9320](https://github.com/appwrite/appwrite/pull/9320) +* Revert "Restore "feat: custom app schemes""" in [9323](https://github.com/appwrite/appwrite/pull/9323) +* chore: update dependencies in [9330](https://github.com/appwrite/appwrite/pull/9330) +* Feat: logs DB in [9272](https://github.com/appwrite/appwrite/pull/9272) +* Catch invalid index in [9329](https://github.com/appwrite/appwrite/pull/9329) +* Fix: missing call for image transformations counting in [9342](https://github.com/appwrite/appwrite/pull/9342) +* Fix drop abuse on shared table project delete in [9346](https://github.com/appwrite/appwrite/pull/9346) +* Only run all table mode tests on db update in [9338](https://github.com/appwrite/appwrite/pull/9338) +* Fix: missing periodic metric in [9350](https://github.com/appwrite/appwrite/pull/9350) +* feat(builds): check if function is blocked before building in [9332](https://github.com/appwrite/appwrite/pull/9332) +* feat: batch create audit logs in [9347](https://github.com/appwrite/appwrite/pull/9347) +* Chore: Update migrations in [9355](https://github.com/appwrite/appwrite/pull/9355) +* Fix: metric time was not being written to DB in [9354](https://github.com/appwrite/appwrite/pull/9354) +* Fix patch index validation in [9356](https://github.com/appwrite/appwrite/pull/9356) +* Fix image trnasformation metrics in [9370](https://github.com/appwrite/appwrite/pull/9370) +* Use batch delete in worker in [9375](https://github.com/appwrite/appwrite/pull/9375) +* Fix Model Platform is missing response key: store in [9361](https://github.com/appwrite/appwrite/pull/9361) +* Feat key segmented usage in [9336](https://github.com/appwrite/appwrite/pull/9336) +* Feat messaging metrics in [9353](https://github.com/appwrite/appwrite/pull/9353) +* Fix removed audits for shared v2 in [9388](https://github.com/appwrite/appwrite/pull/9388) +* chore: bump utopia-php/image to 0.8.0 in [9390](https://github.com/appwrite/appwrite/pull/9390) +* Fix outdated CLI commands in documentation in [9122](https://github.com/appwrite/appwrite/pull/9122) +* disable logs display in [9398](https://github.com/appwrite/appwrite/pull/9398) +* Log batches per project in [9403](https://github.com/appwrite/appwrite/pull/9403) +* Batch per project in [9410](https://github.com/appwrite/appwrite/pull/9410) +* Fix: stats resources only queue projects accessed in last 3 hours in [9411](https://github.com/appwrite/appwrite/pull/9411) +* Track options requests in [9397](https://github.com/appwrite/appwrite/pull/9397) +* chore: bump docker-base in [9406](https://github.com/appwrite/appwrite/pull/9406) +* refactor: migrate Realtime::send calls to queueForRealtime in [9325](https://github.com/appwrite/appwrite/pull/9325) +* Revert "Fix: stats resources only queue projects accessed in last 3 hours" in [9424](https://github.com/appwrite/appwrite/pull/9424) +* Remove usage and usage dump in favor of stats-usage and stats-usage-dump in [9339](https://github.com/appwrite/appwrite/pull/9339) +* Fix: disable dual writing in [9429](https://github.com/appwrite/appwrite/pull/9429) +* Disable transformedAt update for console users in [9425](https://github.com/appwrite/appwrite/pull/9425) +* chore: add image transformation stats to usage endpoint in [9393](https://github.com/appwrite/appwrite/pull/9393) +* chore: added timeout to deployment builds in tests in [9426](https://github.com/appwrite/appwrite/pull/9426) +* fix: model for image transformations in usage project in [9442](https://github.com/appwrite/appwrite/pull/9442) +* Feat: calculate database storage in stats-resources in [9443](https://github.com/appwrite/appwrite/pull/9443) +* Activities batch writes in [9438](https://github.com/appwrite/appwrite/pull/9438) +* chore: bump cache 0.12.x in [9412](https://github.com/appwrite/appwrite/pull/9412) +* chore: queue console project for maintenance delete in [9479](https://github.com/appwrite/appwrite/pull/9479) +* chore: added logsdb for deletes worker in [9462](https://github.com/appwrite/appwrite/pull/9462) +* Feat: calculate and log time taken for each project in [9491](https://github.com/appwrite/appwrite/pull/9491) +* chore: update initializing dbForLogs in [9494](https://github.com/appwrite/appwrite/pull/9494) +* Feat bulk audit delete in [9487](https://github.com/appwrite/appwrite/pull/9487) +* Prepare 1.6.2 release in [9499](https://github.com/appwrite/appwrite/pull/9499) +* Regenerate specs in [9497](https://github.com/appwrite/appwrite/pull/9497) +* Regenerate examples in [9498](https://github.com/appwrite/appwrite/pull/9498) +* chore: bump sdk in [9414](https://github.com/appwrite/appwrite/pull/9414) +* update queue to 0.9.* in [9505](https://github.com/appwrite/appwrite/pull/9505) +* Feat improve delete queries in [9507](https://github.com/appwrite/appwrite/pull/9507) +* Feat: Add rule attributes in [9508](https://github.com/appwrite/appwrite/pull/9508) +* Sync main into 1.6.x in [9496](https://github.com/appwrite/appwrite/pull/9496) +* Bump console to version 5.2.53 in [9495](https://github.com/appwrite/appwrite/pull/9495) +* Prepare 1.6.1 release in [9294](https://github.com/appwrite/appwrite/pull/9294) +* Improve delete ordering in [9512](https://github.com/appwrite/appwrite/pull/9512) +* Cleanups in [9511](https://github.com/appwrite/appwrite/pull/9511) +* Feat dynamic regions in [9408](https://github.com/appwrite/appwrite/pull/9408) +* Feat env vars to system lib in [9515](https://github.com/appwrite/appwrite/pull/9515) +* Feat: domains count in [9514](https://github.com/appwrite/appwrite/pull/9514) +* Migration read from db in [9529](https://github.com/appwrite/appwrite/pull/9529) +* feat: add pool telemetry in [9530](https://github.com/appwrite/appwrite/pull/9530) +* Disable PDO persistence since we manage our own pool in [9526](https://github.com/appwrite/appwrite/pull/9526) +* chore: set min operations to 1 for reads and writes in [9536](https://github.com/appwrite/appwrite/pull/9536) +* Remove default region in [9430](https://github.com/appwrite/appwrite/pull/9430) +* Use cursor pagination with bigger limit for maintenance project loop in [9546](https://github.com/appwrite/appwrite/pull/9546) +* chore: stop tests on failure in [9525](https://github.com/appwrite/appwrite/pull/9525) +* chore: only update total count for privileged users in [9554](https://github.com/appwrite/appwrite/pull/9554) +* refactor: initialization of audit retention in [9563](https://github.com/appwrite/appwrite/pull/9563) +* Delete worker queries fixes in [9523](https://github.com/appwrite/appwrite/pull/9523) +* Bump database 0.62.x in [9568](https://github.com/appwrite/appwrite/pull/9568) +* Fix: schedules region filtering in [9577](https://github.com/appwrite/appwrite/pull/9577) +* Deletes worker fix selects for pagination in [9578](https://github.com/appwrite/appwrite/pull/9578) +* Add $permissions for delete documents selects in [9579](https://github.com/appwrite/appwrite/pull/9579) +* chore(audits): return queue pre-fetch results in [9533](https://github.com/appwrite/appwrite/pull/9533) +* Revert "chore(audits): return queue pre-fetch results" in [9586](https://github.com/appwrite/appwrite/pull/9586) +* Feat multi tenant insert in [9573](https://github.com/appwrite/appwrite/pull/9573) +* Add order by for cursor in [9588](https://github.com/appwrite/appwrite/pull/9588) +* Feat update fetch in [9592](https://github.com/appwrite/appwrite/pull/9592) +* Fix tenant casting in [9598](https://github.com/appwrite/appwrite/pull/9598) +* Feat update ws in [9602](https://github.com/appwrite/appwrite/pull/9602) +* Update database in [9603](https://github.com/appwrite/appwrite/pull/9603) +* Fix: image transformation cache in [9608](https://github.com/appwrite/appwrite/pull/9608) +* Remove audit payload in [9610](https://github.com/appwrite/appwrite/pull/9610) +* Sample rate from DSN in [9559](https://github.com/appwrite/appwrite/pull/9559) +* Restrict role change for sole org owner in [9615](https://github.com/appwrite/appwrite/pull/9615) +* chore: update php image to 0.8.1 in [9616](https://github.com/appwrite/appwrite/pull/9616) +* feat: refactor executor setup in [9420](https://github.com/appwrite/appwrite/pull/9420) +* chore: update gitpod.yml config in [9561](https://github.com/appwrite/appwrite/pull/9561) +* chore: update dependencies in [9625](https://github.com/appwrite/appwrite/pull/9625) +* Update migrations lib in [9628](https://github.com/appwrite/appwrite/pull/9628) +* feat: cache telemetry in [9624](https://github.com/appwrite/appwrite/pull/9624) +* Bump console to version 5.2.56 in [9631](https://github.com/appwrite/appwrite/pull/9631) +* Multi region support in [8667](https://github.com/appwrite/appwrite/pull/8667) +* Revert "Multi region support" in [9632](https://github.com/appwrite/appwrite/pull/9632) +* Revert "Revert "Multi region support"" in [9636](https://github.com/appwrite/appwrite/pull/9636) +* Fix tasks in [9644](https://github.com/appwrite/appwrite/pull/9644) +* chore: updated the migration version to 8.6 in [9646](https://github.com/appwrite/appwrite/pull/9646) +* Fix: merge the working of StatsUsage and StatsUsageDump in [9585](https://github.com/appwrite/appwrite/pull/9585) +* Update database in [9643](https://github.com/appwrite/appwrite/pull/9643) +* chore: fix error logging for CLI tasks in [9651](https://github.com/appwrite/appwrite/pull/9651) +* fix: usage test assertion in [9653](https://github.com/appwrite/appwrite/pull/9653) +* Fix keys in [9656](https://github.com/appwrite/appwrite/pull/9656) +* Feat: multi tenant dual writing in [9583](https://github.com/appwrite/appwrite/pull/9583) +* Fix/throwing 400 for null order attributes in [9657](https://github.com/appwrite/appwrite/pull/9657) +* feat: sdk group attribute in [9596](https://github.com/appwrite/appwrite/pull/9596) +* Add configurable function and build size in [9648](https://github.com/appwrite/appwrite/pull/9648) +* feat: update API endpoint in the code examples in [8933](https://github.com/appwrite/appwrite/pull/8933) +* chore: abstract token secret hiding to response model in [9574](https://github.com/appwrite/appwrite/pull/9574) +* chore: update sdks in [9655](https://github.com/appwrite/appwrite/pull/9655) +* feat: allow non-critical events to ignore exceptions when enqueuing the event in [9680](https://github.com/appwrite/appwrite/pull/9680) +* Revert "Add configurable function and build size" in [9681](https://github.com/appwrite/appwrite/pull/9681) +* core: introduce endpoint.docs in specs in [9685](https://github.com/appwrite/appwrite/pull/9685) +* fix: remove content-type header from get request specs in [9666](https://github.com/appwrite/appwrite/pull/9666) +* chore: update flutter sdk in [9691](https://github.com/appwrite/appwrite/pull/9691) + +# Version 1.6.1 + +## What's Changed + +### Notable changes + +* Remove JPEG fallback for webp by @lohanidamodar in https://github.com/appwrite/appwrite/pull/8746 +* Add heic and avif support by @lohanidamodar in https://github.com/appwrite/appwrite/pull/7718 +* Add new runtimes by @Meldiron in https://github.com/appwrite/appwrite/pull/8771 +* Remove audits deletion by @shimonewman in https://github.com/appwrite/appwrite/pull/8766 +* Bump assistant by @loks0n in https://github.com/appwrite/appwrite/pull/8801 +* Change max queries values to 500 by @fogelito in https://github.com/appwrite/appwrite/pull/8802 +* Allow '.wav' as 'audio/x-wav' as well by @basert in https://github.com/appwrite/appwrite/pull/8846 +* Use 1 instead of 0.5 cpu for default function specification by @loks0n in https://github.com/appwrite/appwrite/pull/8848 +* Update function runtimes by @christyjacob4 in https://github.com/appwrite/appwrite/pull/8781 +* Add a realtime heartbeat by @TorstenDittmann in https://github.com/appwrite/appwrite/pull/8943 + +### Fixes + +* Trigger functions event only if event is not paused by @lohanidamodar in https://github.com/appwrite/appwrite/pull/8526 +* Update docker-compose to restart usage-dump by @feschaffa in https://github.com/appwrite/appwrite/pull/8642 +* Fix typo in scheduler base by @fogelito in https://github.com/appwrite/appwrite/pull/8691 +* Add domain and force HTTPS env vars to mail worker by @stnguyen90 in https://github.com/appwrite/appwrite/pull/8722 +* Fix webp by @lohanidamodar in https://github.com/appwrite/appwrite/pull/8732 +* Ignore junction tables by @fogelito in https://github.com/appwrite/appwrite/pull/8728 +* Fix logger throwing fatal error by @lohanidamodar in https://github.com/appwrite/appwrite/pull/8724 +* Fix missing protocol for testing SMTP by @byawitz in https://github.com/appwrite/appwrite/pull/8749 +* Make create execution async loose by @loks0n in https://github.com/appwrite/appwrite/pull/8707 +* Fix invalid cursor value by @fogelito in https://github.com/appwrite/appwrite/pull/8109 +* Fix target deletes by @abnegate in https://github.com/appwrite/appwrite/pull/8833 +* Fix translation commas by @loks0n in https://github.com/appwrite/appwrite/pull/8892 +* Fix Migrations having source creds being overwritten and add Migration tests by @PineappleIOnic in https://github.com/appwrite/appwrite/pull/8897 +* Fix validator usage for updating string size by @abnegate in https://github.com/appwrite/appwrite/pull/8890 +* Fix create user event not triggering by @loks0n in https://github.com/appwrite/appwrite/pull/8718 +* Improve error handling and logging in the database worker by @fogelito in https://github.com/appwrite/appwrite/pull/8944 +* Remove inaccurate info about leaving the URL parameter empty by @ebenezerdon in https://github.com/appwrite/appwrite/pull/8963 +* Ensure indexes are updated when updating an attribute key by @fogelito in https://github.com/appwrite/appwrite/pull/8971 +* Remove duplicate dart-2.16 runtime template by @stnguyen90 in https://github.com/appwrite/appwrite/pull/8972 +* Fix team invites with existing session by @TorstenDittmann in https://github.com/appwrite/appwrite/pull/9006 +* Improve handling of HTTP requests by dispatching to safe workers by @Meldiron in https://github.com/appwrite/appwrite/pull/9016 +* Fix users create session secret by @stnguyen90 in https://github.com/appwrite/appwrite/pull/9019 +* Fix swoole task warning by @Meldiron in https://github.com/appwrite/appwrite/pull/9025 + +### Miscellaneous + +* Update Init copy by @adityaoberai in https://github.com/appwrite/appwrite/pull/8557 +* Fix security scan permissions and comment by @EVDOG4LIFE in https://github.com/appwrite/appwrite/pull/8525 +* Add Trivy security scans by @btme0011 in https://github.com/appwrite/appwrite/pull/6876 +* Update database stack by @abnegate in https://github.com/appwrite/appwrite/pull/8564 +* Bump database by @abnegate in https://github.com/appwrite/appwrite/pull/8573 +* Sync main with 1.5.x by @PineappleIOnic in https://github.com/appwrite/appwrite/pull/8589 +* Add AWS to one-click installs by @byawitz in https://github.com/appwrite/appwrite/pull/8593 +* Update Init copy in readme by @adityaoberai in https://github.com/appwrite/appwrite/pull/8618 +* Sync main into 1.6.x by @stnguyen90 in https://github.com/appwrite/appwrite/pull/8685 +* Sync 1.6.x into main by @stnguyen90 in https://github.com/appwrite/appwrite/pull/8686 +* Feat coroutines by @Meldiron in https://github.com/appwrite/appwrite/pull/7826 +* Sync main into 1.6.x by @Meldiron in https://github.com/appwrite/appwrite/pull/8719 +* Sentence casing endpoint API reference by @choir241 in https://github.com/appwrite/appwrite/pull/8617 +* DB storage metrics by @PineappleIOnic in https://github.com/appwrite/appwrite/pull/8404 +* Fix exception thrown when optional array attribute does not exist by @lohanidamodar in https://github.com/appwrite/appwrite/pull/8391 +* Add projects channels to realtime by @TorstenDittmann in https://github.com/appwrite/appwrite/pull/8735 +* Base for console roles support by @lohanidamodar in https://github.com/appwrite/appwrite/pull/8565 +* Remove DB disk storage calculation by @christyjacob4 in https://github.com/appwrite/appwrite/pull/8745 +* Messaging adapter default values by @shimonewman in https://github.com/appwrite/appwrite/pull/8742 +* Add payload response type by @loks0n in https://github.com/appwrite/appwrite/pull/8720 +* Fix flaky functions tests by @loks0n in https://github.com/appwrite/appwrite/pull/8682 +* Migrations Backups by @fogelito in https://github.com/appwrite/appwrite/pull/8186 +* Add test for response and request filters by @vermakhushboo in https://github.com/appwrite/appwrite/pull/8697 +* Bump version in SECURITY.md by @EVDOG4LIFE in https://github.com/appwrite/appwrite/pull/8755 +* Add originalId attribute to databases collection by @fogelito in https://github.com/appwrite/appwrite/pull/8764 +* Fix Walter References by @ItzNotABug in https://github.com/appwrite/appwrite/pull/8757 +* Update database by @abnegate in https://github.com/appwrite/appwrite/pull/8769 +* Move new attributes by @abnegate in https://github.com/appwrite/appwrite/pull/8777 +* Add ping endpoint by @loks0n in https://github.com/appwrite/appwrite/pull/8761 +* Fix GitHub action caching by @loks0n in https://github.com/appwrite/appwrite/pull/8772 +* Chore release ruby SDK by @abnegate in https://github.com/appwrite/appwrite/pull/8767 +* Call migration success on success by @abnegate in https://github.com/appwrite/appwrite/pull/8782 +* Update utopia-php/system to 0.9.0 by @basert in https://github.com/appwrite/appwrite/pull/8780 +* Move createDocument from api to worker by @vermakhushboo in https://github.com/appwrite/appwrite/pull/8776 +* Add missing indexes by @christyjacob4 in https://github.com/appwrite/appwrite/pull/8803 +* Update database by @abnegate in https://github.com/appwrite/appwrite/pull/8809 +* Fix typo in BLR region by @stnguyen90 in https://github.com/appwrite/appwrite/pull/8756 +* Add tests for project variables by @vermakhushboo in https://github.com/appwrite/appwrite/pull/8815 +* Replace 'Expires' with 'Cache-Control: private' header to avoid CDN caching by @basert in https://github.com/appwrite/appwrite/pull/8836 +* Allow blocking based on resource attributes by @basert in https://github.com/appwrite/appwrite/pull/8812 +* Check if resource is blocked inside functions worker by @basert in https://github.com/appwrite/appwrite/pull/8855 +* Fix missing allow attribute by @abnegate in https://github.com/appwrite/appwrite/pull/8889 +* Revert function execution order by @basert in https://github.com/appwrite/appwrite/pull/8857 +* Use resource type constants by @basert in https://github.com/appwrite/appwrite/pull/8895 +* Update Database lib by @PineappleIOnic in https://github.com/appwrite/appwrite/pull/8680 +* Update database by @abnegate in https://github.com/appwrite/appwrite/pull/8917 +* Update database by @abnegate in https://github.com/appwrite/appwrite/pull/8923 +* Update database for transaction counter fixes with retries by @abnegate in https://github.com/appwrite/appwrite/pull/8927 +* Validate string permissions by @fogelito in https://github.com/appwrite/appwrite/pull/8929 +* Add PubSub adapter support by @basert in https://github.com/appwrite/appwrite/pull/8905 +* List memberships as client by @loks0n in https://github.com/appwrite/appwrite/pull/8913 +* Fix XDebug Extension not being removed by @PineappleIOnic in https://github.com/appwrite/appwrite/pull/8891 +* Update database by @abnegate in https://github.com/appwrite/appwrite/pull/8946 +* Use utopia compression by @loks0n in https://github.com/appwrite/appwrite/pull/8938 +* Make compression minimum size configurable by @loks0n in https://github.com/appwrite/appwrite/pull/8947 +* Revert "Update database" by @christyjacob4 in https://github.com/appwrite/appwrite/pull/8949 +* Fix setpaused by @loks0n in https://github.com/appwrite/appwrite/pull/8948 +* Use getDocument instead of find() for rules by @christyjacob4 in https://github.com/appwrite/appwrite/pull/8951 +* Remove double fetch from migrations worker by @PineappleIOnic in https://github.com/appwrite/appwrite/pull/8956 +* Fix memberships privacy MFA by @loks0n in https://github.com/appwrite/appwrite/pull/8969 +* Add telemetry by @basert in https://github.com/appwrite/appwrite/pull/8960 +* Send migration errors individually by @PineappleIOnic in https://github.com/appwrite/appwrite/pull/8959 +* Add console sdk previews by @TorstenDittmann in https://github.com/appwrite/appwrite/pull/8990 +* Unset index length by @fogelito in https://github.com/appwrite/appwrite/pull/8978 +* Update base to 0.9.5 by @basert in https://github.com/appwrite/appwrite/pull/9005 +* Sync main into 1.6.x by @TorstenDittmann in https://github.com/appwrite/appwrite/pull/9011 +* Improved shared tables V2 by @abnegate in https://github.com/appwrite/appwrite/pull/9013 +* Ensure backwards compatibility for 1.6.x by @christyjacob4 in https://github.com/appwrite/appwrite/pull/9018 + # Version 1.6.0 ## What's Changed diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d3a7d060b05..df88cfcfb9b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ # Contributing -We would ❤️ you to contribute to Appwrite and help make it better! We want contributing to Appwrite to be fun, enjoyable, and educational for anyone and everyone. All contributions are welcome, including issues, and new docs, as well as updates and tweaks, blog posts, workshops, and more. +We would :heart: you to contribute to Appwrite and help make it better! We want contributing to Appwrite to be fun, enjoyable, and educational for anyone and everyone. All contributions are welcome, including issues, and new docs, as well as updates and tweaks, blog posts, workshops, and more. ## Here for Hacktoberfest? If you're here to contribute during Hacktoberfest, we're so happy to see you here. Appwrite has been a long-time participant of Hacktoberfest and we welcome you, whatever your experience level. This year, we're **only taking contributions for issues tagged** `hacktoberfest`, so we can focus our resources to support your contributions. @@ -9,13 +9,13 @@ You can [find issues using this query](https://github.com/search?q=org%3Aappwrit ## How to Start? -If you are worried or don’t know where to start, check out the next section that explains what kind of help we could use and where you can get involved. You can send your questions to [@appwrite](https://twitter.com/appwrite) on Twitter or to anyone from the [Appwrite team on Discord](https://appwrite.io/discord). You can also submit an issue, and a maintainer can guide you! +If you are worried or don’t know where to start, check out the next section that explains what kind of help we could use and where you can get involved. You can send your questions to [@appwrite on Twitter](https://twitter.com/appwrite) or to anyone from the [Appwrite team on Discord](https://appwrite.io/discord). You can also submit an issue, and a maintainer can guide you! ## Code of Conduct Help us keep Appwrite open and inclusive. Please read and follow our [Code of Conduct](https://github.com/appwrite/.github/blob/main/CODE_OF_CONDUCT.md). -## Submit a Pull Request 🚀 +## Submit a Pull Request :rocket: Branch naming convention is as following @@ -65,13 +65,13 @@ Now, go a step further by running the linter using the following command to manu composer lint ``` -This will give you a list of errors to rectify. If you need more information on the errors, you can pass in additional command line arguments to get more verbose information. More lists of available arguments can be found [here](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage). A very useful command line argument is `--report=diff`. This will give you the expected changes by the linter for easy fixing of formatting issues. +This will give you a list of errors to rectify. If you need more information on the errors, you can pass in additional command line arguments to get more verbose information. More lists of available arguments can be found [on PHP_Codesniffer usage Wiki](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage). A very useful command line argument is `--report=diff`. This will give you the expected changes by the linter for easy fixing of formatting issues. ```bash composer lint --report=diff ``` -5. Push changes to GitHub. +5. Push changes to GitHub ``` $ git push origin [name_of_your_new_branch] @@ -301,7 +301,7 @@ Adding a new dependency should have vital value for the product with minimum pos ## Introducing New Features -We would 💖 you to contribute to Appwrite, but we also want to ensure Appwrite is loyal to its vision and mission statement 🙏. +We would :sparkling_heart: you to contribute to Appwrite, but we also want to ensure Appwrite is loyal to its vision and mission statement :pray:. For us to find the right balance, please open an issue explaining your ideas before introducing a new pull request. @@ -319,10 +319,13 @@ These are the current metrics we collect usage stats for: | users | Total number of users per project| | executions | Total number of executions per project | | databases | Total number of databases per project | +| databases.storage | Total amount of storage used by all databases per project (in bytes) | | collections | Total number of collections per project | | {databaseInternalId}.collections | Total number of collections per database| +| {databaseInternalId}.storage | Sum of database storage (in bytes) | | documents | Total number of documents per project | | {databaseInternalId}.{collectionInternalId}.documents | Total number of documents per collection | +| {databaseInternalId}.{collectionInternalId}.storage | Sum of database storage used by the collection (in bytes) | | buckets | Total number of buckets per project | | files | Total number of files per project | | {bucketInternalId}.files.storage | Sum of files.storage per bucket (in bytes) | @@ -364,7 +367,7 @@ In file `app/controllers/shared/api.php` On the database listener, add to an exi ```php case $document->getCollection() === 'teams': - $queueForUsage + $queueForStatsUsage ->addMetric(METRIC_TEAMS, $value); // per project break; ``` @@ -376,10 +379,10 @@ In that case you need also to handle children removal using addReduce() method c ```php case $document->getCollection() === 'buckets': //buckets - $queueForUsage + $queueForStatsUsage ->addMetric(METRIC_BUCKETS, $value); // per project if ($event === Database::EVENT_DOCUMENT_DELETE) { - $queueForUsage + $queueForStatsUsage ->addReduce($document); } break; @@ -425,16 +428,16 @@ public function __construct() ->inject('dbForProject') ->inject('queueForFunctions') ->inject('queueForEvents') - ->inject('queueForUsage') + ->inject('queueForStatsUsage') ->inject('log') - ->callback(fn (Message $message, Database $dbForProject, Func $queueForFunctions, Event $queueForEvents, Usage $queueForUsage, Log $log) => $this->action($message, $dbForProject, $queueForFunctions, $queueForEvents, $queueForUsage, $log)); + ->callback(fn (Message $message, Database $dbForProject, Func $queueForFunctions, Event $queueForEvents, StatsUsage $queueForStatsUsage, Log $log) => $this->action($message, $dbForProject, $queueForFunctions, $queueForEvents, $queueForStatsUsage, $log)); } ``` and then trigger the queue with the new metric like so: ```php -$queueForUsage +$queueForStatsUsage ->addMetric(METRIC_BUILDS, 1) ->addMetric(METRIC_BUILDS_STORAGE, $build->getAttribute('size', 0)) ->addMetric(METRIC_BUILDS_COMPUTE, (int)$build->getAttribute('duration', 0) * 1000) @@ -610,6 +613,18 @@ If you need to clear the cache, you can do so by running the following command: docker compose exec redis redis-cli FLUSHALL ``` +## Using preview domains locally + +Appwrite Functions are automatically given a domain you can visit to execute the function. This domain has format `[SOMETHING].functions.localhost` unless you changed `_APP_DOMAIN_FUNCTIONS` environment variable. This default value works great when running Appwrite locally, but it can be impossible to use preview domains with Cloud woekspaces such as Gitpod or GitHub Codespaces. + +To use preview domains on Cloud workspaces, you can visit hostname provided by them, and supply function's preview domain as URL parameter: + +``` +https://8080-appwrite-appwrite-mjeb3ebilwv.ws-eu116.gitpod.io/ping?preview=672b3c7eab1ac523ccf5.functions.localhost +``` + +The path was set to `/ping` intentionally. Visiting `/` for preview domains might trigger Console background worker, and trigger redirect to Console without our preview URL param. Visiting different path ensures this doesnt happen. + ## Tutorials From time to time, our team will add tutorials that will help contributors find their way in the Appwrite source code. Below is a list of currently available tutorials: @@ -625,7 +640,7 @@ Pull requests are great, but there are many other ways you can help Appwrite. ### Blogging & Speaking -Blogging, speaking about, or creating tutorials about one of Appwrite’s many features are great ways to get the word out about Appwrite. Mention [@appwrite](https://twitter.com/appwrite) on Twitter and/or [email team@appwrite.io](mailto:team@appwrite.io) so we can give pointers and tips and help you spread the word by promoting your content on the different Appwrite communication channels. Please add your blog posts and videos of talks to our [Awesome Appwrite](https://github.com/appwrite/awesome-appwrite) repo on GitHub. +Blogging, speaking about, or creating tutorials about one of Appwrite’s many features are great ways to get the word out about Appwrite. Mention [@appwrite on Twitter](https://twitter.com/appwrite) and/or [email team@appwrite.io](mailto:team@appwrite.io) so we can give pointers and tips and help you spread the word by promoting your content on the different Appwrite communication channels. Please add your blog posts and videos of talks to our [Awesome Appwrite](https://github.com/appwrite/awesome-appwrite) repo on GitHub. ### Presenting at Meetups diff --git a/Dockerfile b/Dockerfile index 22b37982d0c..2f1ea6f279c 100755 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ RUN composer install --ignore-platform-reqs --optimize-autoloader \ --no-plugins --no-scripts --prefer-dist \ `if [ "$TESTING" != "true" ]; then echo "--no-dev"; fi` -FROM appwrite/base:0.9.3 AS final +FROM appwrite/base:0.10.1 AS final LABEL maintainer="team@appwrite.io" @@ -28,6 +28,8 @@ RUN \ apk add boost boost-dev; \ fi +RUN apk add libwebp + WORKDIR /usr/src/code COPY --from=composer /usr/local/src/vendor /usr/src/code/vendor @@ -83,17 +85,18 @@ RUN chmod +x /usr/local/bin/doctor && \ chmod +x /usr/local/bin/worker-messaging && \ chmod +x /usr/local/bin/worker-migrations && \ chmod +x /usr/local/bin/worker-webhooks && \ - chmod +x /usr/local/bin/worker-usage && \ - chmod +x /usr/local/bin/worker-usage-dump + chmod +x /usr/local/bin/worker-stats-usage && \ + chmod +x /usr/local/bin/stats-resources && \ + chmod +x /usr/local/bin/worker-stats-resources # Letsencrypt Permissions RUN mkdir -p /etc/letsencrypt/live/ && chmod -Rf 755 /etc/letsencrypt/live/ # Enable Extensions -RUN if [ "$DEBUG" == "true" ]; then cp /usr/src/code/dev/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini; fi -RUN if [ "$DEBUG" == "true" ]; then mkdir -p /tmp/xdebug; fi +RUN if [ "$DEBUG" = "true" ]; then cp /usr/src/code/dev/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini; fi +RUN if [ "$DEBUG" = "true" ]; then mkdir -p /tmp/xdebug; fi RUN if [ "$DEBUG" = "false" ]; then rm -rf /usr/src/code/dev; fi -RUN if [ "$DEBUG" = "false" ]; then rm -f /usr/local/lib/php/extensions/no-debug-non-zts-20220829/xdebug.so; fi +RUN if [ "$DEBUG" = "false" ]; then rm -f /usr/local/lib/php/extensions/no-debug-non-zts-20230831/xdebug.so; fi EXPOSE 80 diff --git a/README-CN.md b/README-CN.md index a5eac1be03c..a81d99c3c3a 100644 --- a/README-CN.md +++ b/README-CN.md @@ -1,8 +1,8 @@ -> 好消息!Appwrite 云现已进入公开测试版!立即访问 cloud.appwrite.io 注册,体验无忧的托管服务。今天就加入我们的云端吧!☁️🎉 +> 好消息!Appwrite 云现已进入公开测试版!立即访问 cloud.appwrite.io 注册,体验无忧的托管服务。今天就加入我们的云端吧!:cloud: :tada:

- Appwrite Logo + Appwrite banner with logo and slogan build like a team of hundreds

适用于[Flutter/Vue/Angular/React/iOS/Android/* 等等平台 *]的完整后端服务 @@ -36,6 +36,8 @@ Appwrite 可以提供给开发者用户验证,外部授权,用户数据读 内容: + +- [开始](#开始) - [安装](#安装) - [Unix](#unix) - [Windows](#windows) @@ -54,6 +56,9 @@ Appwrite 可以提供给开发者用户验证,外部授权,用户数据读 - [订阅我们](#订阅我们) - [版权说明](#版权说明) +## 开始 +要轻松开始使用Appwrite,您可以[**免费注册Appwrite Cloud**](https://cloud.appwrite.io/)。在Appwrite Cloud公开测试版期间,您可以完全免费使用Appwrite,而且我们不会收集您的信用卡信息。 + ## 安装 Appwrite 的容器化服务器只需要一行指令就可以运行。您可以使用 docker-compose 在本地主机上运行 Appwrite,也可以在任何其他容器化工具(如 [Kubernetes](https://kubernetes.io/docs/home/)、[Docker Swarm](https://docs.docker.com/engine/swarm/) 或 [Rancher](https://rancher.com/docs/))上运行 Appwrite。 @@ -67,7 +72,7 @@ docker run -it --rm \ --volume /var/run/docker.sock:/var/run/docker.sock \ --volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \ --entrypoint="install" \ - appwrite/appwrite:1.6.0 + appwrite/appwrite:1.6.2 ``` ### Windows @@ -79,7 +84,7 @@ docker run -it --rm ^ --volume //var/run/docker.sock:/var/run/docker.sock ^ --volume "%cd%"/appwrite:/usr/src/code/appwrite:rw ^ --entrypoint="install" ^ - appwrite/appwrite:1.6.0 + appwrite/appwrite:1.6.2 ``` #### PowerShell @@ -89,7 +94,7 @@ docker run -it --rm ` --volume /var/run/docker.sock:/var/run/docker.sock ` --volume ${pwd}/appwrite:/usr/src/code/appwrite:rw ` --entrypoint="install" ` - appwrite/appwrite:1.6.0 + appwrite/appwrite:1.6.2 ``` 运行后,可以在浏览器上访问 http://localhost 找到 Appwrite 控制台。在非 Linux 的本机主机上完成安装后,服务器可能需要几分钟才能启动。 @@ -98,7 +103,42 @@ docker run -it --rm ` ### 从旧版本升级 -如果您从旧版本升级 Appwrite 服务器,则应在设置完成后使用 Appwrite 迁移工具。有关这方面的更多信息,请查看 [安装文档](https://appwrite.io/docs/installation)。 +如果您从旧版本升级 Appwrite 服务器,则应在设置完成后使用 Appwrite 迁移工具。有关这方面的更多信息,请查看 [安装文档](https://appwrite.io/docs/self-hosting)。 + +## 一键配置 + +除了在本地运行 Appwrite,您还可以使用预配置的设置启动 Appwrite。这样可以让您快速启动并运行 Appwrite,而无需在本地计算机上安装 Docker。 + +请从以下提供商中选择一个: + + + + + + + + +
+ + DigitalOcean Logo +
DigitalOcean
+ +
+ + Gitpod Logo +
Gitpod
+ +
+ + Akamai Logo +
Akamai Compute
+ +
+ + AWS Logo +
AWS Marketplace
+ +
## 入门 @@ -146,29 +186,25 @@ docker run -it --rm ` 以下是当前支持的平台和语言列表。如果您想帮助我们为您选择的平台添加支持,您可以访问我们的 [SDK 生成器](https://github.com/appwrite/sdk-generator) 项目并查看我们的 [贡献指南](https://github.com/appwrite/sdk-generator/blob/master/CONTRIBUTING.md)。 #### 客户端 - -- ✅   [Web](https://github.com/appwrite/sdk-for-web) (由 Appwrite 团队维护) -- ✅   [Flutter](https://github.com/appwrite/sdk-for-flutter) (由 Appwrite 团队维护) -- ✅   [Apple](https://github.com/appwrite/sdk-for-apple) (由 Appwrite 团队维护) -- ✅   [Android](https://github.com/appwrite/sdk-for-android) (由 Appwrite 团队维护) -- ✅   [React Native](https://github.com/appwrite/sdk-for-react-native) - **公测** (由 Appwrite 团队维护) +* :white_check_mark:   [Web](https://github.com/appwrite/sdk-for-web) (由 Appwrite 团队维护) +* :white_check_mark:   [Flutter](https://github.com/appwrite/sdk-for-flutter) (由 Appwrite 团队维护) +* :white_check_mark:   [Apple](https://github.com/appwrite/sdk-for-apple) - **公测** (由 Appwrite 团队维护) +* :white_check_mark:   [Android](https://github.com/appwrite/sdk-for-android) (由 Appwrite 团队维护) #### 服务器 - -- ✅   [NodeJS](https://github.com/appwrite/sdk-for-node) (由 Appwrite 团队维护) -- ✅   [PHP](https://github.com/appwrite/sdk-for-php) (由 Appwrite 团队维护) -- ✅   [Dart](https://github.com/appwrite/sdk-for-dart) (由 Appwrite 团队维护) -- ✅   [Deno](https://github.com/appwrite/sdk-for-deno) (由 Appwrite 团队维护) -- ✅   [Ruby](https://github.com/appwrite/sdk-for-ruby) (由 Appwrite 团队维护) -- ✅   [Python](https://github.com/appwrite/sdk-for-python) (由 Appwrite 团队维护) -- ✅   [Kotlin](https://github.com/appwrite/sdk-for-kotlin) (由 Appwrite 团队维护) -- ✅   [Swift](https://github.com/appwrite/sdk-for-swift) (由 Appwrite 团队维护) -- ✅   [.NET](https://github.com/appwrite/sdk-for-dotnet) - **公测** (由 Appwrite 团队维护) +* :white_check_mark:   [NodeJS](https://github.com/appwrite/sdk-for-node) (由 Appwrite 团队维护) +* :white_check_mark:   [PHP](https://github.com/appwrite/sdk-for-php) (由 Appwrite 团队维护) +* :white_check_mark:   [Dart](https://github.com/appwrite/sdk-for-dart) - (由 Appwrite 团队维护) +* :white_check_mark:   [Deno](https://github.com/appwrite/sdk-for-deno) - **公测** (由 Appwrite 团队维护) +* :white_check_mark:   [Ruby](https://github.com/appwrite/sdk-for-ruby) (由 Appwrite 团队维护) +* :white_check_mark:   [Python](https://github.com/appwrite/sdk-for-python) (由 Appwrite 团队维护) +* :white_check_mark:   [Kotlin](https://github.com/appwrite/sdk-for-kotlin) - **公测** (由 Appwrite 团队维护) +* :white_check_mark:   [Apple](https://github.com/appwrite/sdk-for-apple) - **公测** (由 Appwrite 团队维护) +* :white_check_mark:   [.NET](https://github.com/appwrite/sdk-for-dotnet) - **公测** (由 Appwrite 团队维护) #### 开发者社区 - -- ✅   [Appcelerator Titanium](https://github.com/m1ga/ti.appwrite) (维护者 [Michael Gangolf](https://github.com/m1ga/)) -- ✅   [Godot Engine](https://github.com/GodotNuts/appwrite-sdk) (维护者 [fenix-hub @GodotNuts](https://github.com/fenix-hub)) +* :white_check_mark:   [Appcelerator Titanium](https://github.com/m1ga/ti.appwrite) (维护者 [Michael Gangolf](https://github.com/m1ga/)) +* :white_check_mark:   [Godot Engine](https://github.com/GodotNuts/appwrite-sdk) (维护者 [fenix-hub @GodotNuts](https://github.com/fenix-hub)) 找不到需要的的 SDK? - 欢迎通过发起 PR 来帮助我们完善 Appwrite 的软件生态环境 [SDK 生成器](https://github.com/appwrite/sdk-generator)! diff --git a/README.md b/README.md index 738de5c67c8..c3585dbb68a 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -> Our Appwrite Init event has concluded. You can check out all the new and upcoming features [on our Init website](https://appwrite.io/init) 🚀 +> [Get started with Appwrite](https://apwr.dev/appcloud)

- Appwrite Logo + Appwrite banner, with logo and text saying

Appwrite is a backend platform for developing Web, Mobile, and Flutter applications. Built with the open source community and optimized for developer experience in the coding languages you love. @@ -12,11 +12,11 @@ -[![We're Hiring](https://img.shields.io/static/v1?label=We're&message=Hiring&color=blue&style=flat-square)](https://appwrite.io/company/careers) -[![Hacktoberfest](https://img.shields.io/static/v1?label=hacktoberfest&message=ready&color=191120&style=flat-square)](https://hacktoberfest.appwrite.io) -[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord?r=Github) -[![Build Status](https://img.shields.io/github/actions/workflow/status/appwrite/appwrite/tests.yml?branch=master&label=tests&style=flat-square)](https://github.com/appwrite/appwrite/actions) -[![X Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite) +[![We're Hiring label](https://img.shields.io/static/v1?label=We're&message=Hiring&color=blue&style=flat-square)](https://appwrite.io/company/careers) +[![Hacktoberfest label](https://img.shields.io/static/v1?label=hacktoberfest&message=ready&color=191120&style=flat-square)](https://hacktoberfest.appwrite.io) +[![Discord label](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord?r=Github) +[![Build Status label](https://img.shields.io/github/actions/workflow/status/appwrite/appwrite/tests.yml?branch=master&label=tests&style=flat-square)](https://github.com/appwrite/appwrite/actions) +[![X Account label](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite) @@ -24,11 +24,9 @@ English | [简体中文](README-CN.md) -[**Announcing Appwrite Cloud Public Beta! Sign up today!**](https://cloud.appwrite.io) - Appwrite is an end-to-end backend server for Web, Mobile, Native, or Backend apps packaged as a set of Docker microservices. Appwrite abstracts the complexity and repetitiveness required to build a modern backend API from scratch and allows you to build secure apps faster. -Using Appwrite, you can easily integrate your app with user authentication and multiple sign-in methods, a database for storing and querying users and team data, storage and file management, image manipulation, Cloud Functions, and [more services](https://appwrite.io/docs). +Using Appwrite, you can easily integrate your app with user authentication and multiple sign-in methods, a database for storing and querying users and team data, storage and file management, image manipulation, Cloud Functions, messaging, and [more services](https://appwrite.io/docs).


@@ -37,13 +35,14 @@ Using Appwrite, you can easily integrate your app with user authentication and m

-![Appwrite](public/images/github.png) +![Appwrite project dashboard showing various Appwrite features](public/images/github.png) -Find out more at: [https://appwrite.io](https://appwrite.io) +Find out more at: [https://appwrite.io](https://appwrite.io). Table of Contents: -- [Installation](#installation) +- [Getting Started](#getting-started) +- [Self-Hosting](#self-hosting) - [Unix](#unix) - [Windows](#windows) - [CMD](#cmd) @@ -51,7 +50,7 @@ Table of Contents: - [Upgrade from an Older Version](#upgrade-from-an-older-version) - [One-Click Setups](#one-click-setups) - [Getting Started](#getting-started) - - [Services](#services) + - [Products](#products) - [SDKs](#sdks) - [Client](#client) - [Server](#server) @@ -62,11 +61,14 @@ Table of Contents: - [Follow Us](#follow-us) - [License](#license) -## Installation +## Getting Started +The easiest way to get started with Appwrite is by [signing up for Appwrite Cloud](https://cloud.appwrite.io/). While Appwrite Cloud is in public beta, you can build with Appwrite completely free, and we won't collect you credit card information. + +## Self-Hosting Appwrite is designed to run in a containerized environment. Running your server is as easy as running one command from your terminal. You can either run Appwrite on your localhost using docker-compose or on any other container orchestration tool, such as [Kubernetes](https://kubernetes.io/docs/home/), [Docker Swarm](https://docs.docker.com/engine/swarm/), or [Rancher](https://rancher.com/docs/). -The easiest way to start running your Appwrite server is by running our docker-compose file. Before running the installation command, make sure you have [Docker](https://www.docker.com/products/docker-desktop) installed on your machine: +Before running the installation command, make sure you have [Docker](https://www.docker.com/products/docker-desktop) installed on your machine: ### Unix @@ -75,7 +77,7 @@ docker run -it --rm \ --volume /var/run/docker.sock:/var/run/docker.sock \ --volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \ --entrypoint="install" \ - appwrite/appwrite:1.6.0 + appwrite/appwrite:1.6.2 ``` ### Windows @@ -87,7 +89,7 @@ docker run -it --rm ^ --volume //var/run/docker.sock:/var/run/docker.sock ^ --volume "%cd%"/appwrite:/usr/src/code/appwrite:rw ^ --entrypoint="install" ^ - appwrite/appwrite:1.6.0 + appwrite/appwrite:1.6.2 ``` #### PowerShell @@ -97,7 +99,7 @@ docker run -it --rm ` --volume /var/run/docker.sock:/var/run/docker.sock ` --volume ${pwd}/appwrite:/usr/src/code/appwrite:rw ` --entrypoint="install" ` - appwrite/appwrite:1.6.0 + appwrite/appwrite:1.6.2 ``` Once the Docker installation is complete, go to http://localhost to access the Appwrite console from your browser. Please note that on non-Linux native hosts, the server might take a few minutes to start after completing the installation. @@ -106,7 +108,7 @@ For advanced production and custom installation, check out our Docker [environme ### Upgrade from an Older Version -If you are upgrading your Appwrite server from an older version, you should use the Appwrite migration tool once your setup is completed. For more information regarding this, check out the [Installation Docs](https://appwrite.io/docs/installation). +If you are upgrading your Appwrite server from an older version, you should use the Appwrite migration tool once your setup is completed. For more information regarding this, check out the [Installation Docs](https://appwrite.io/docs/self-hosting). ## One-Click Setups @@ -134,6 +136,12 @@ Choose from one of the providers below:
Akamai Compute + + + AWS Logo +
AWS Marketplace
+ + @@ -186,34 +194,34 @@ Below is a list of currently supported platforms and languages. If you would lik #### Client -- ✅   [Web](https://github.com/appwrite/sdk-for-web) (Maintained by the Appwrite Team) -- ✅   [Flutter](https://github.com/appwrite/sdk-for-flutter) (Maintained by the Appwrite Team) -- ✅   [Apple](https://github.com/appwrite/sdk-for-apple) (Maintained by the Appwrite Team) -- ✅   [Android](https://github.com/appwrite/sdk-for-android) (Maintained by the Appwrite Team) -- ✅   [React Native](https://github.com/appwrite/sdk-for-react-native) - **Beta** (Maintained by the Appwrite Team) +- :white_check_mark:   [Web](https://github.com/appwrite/sdk-for-web) (Maintained by the Appwrite Team) +- :white_check_mark:   [Flutter](https://github.com/appwrite/sdk-for-flutter) (Maintained by the Appwrite Team) +- :white_check_mark:   [Apple](https://github.com/appwrite/sdk-for-apple) (Maintained by the Appwrite Team) +- :white_check_mark:   [Android](https://github.com/appwrite/sdk-for-android) (Maintained by the Appwrite Team) +- :white_check_mark:   [React Native](https://github.com/appwrite/sdk-for-react-native) - **Beta** (Maintained by the Appwrite Team) #### Server -- ✅   [NodeJS](https://github.com/appwrite/sdk-for-node) (Maintained by the Appwrite Team) -- ✅   [PHP](https://github.com/appwrite/sdk-for-php) (Maintained by the Appwrite Team) -- ✅   [Dart](https://github.com/appwrite/sdk-for-dart) (Maintained by the Appwrite Team) -- ✅   [Deno](https://github.com/appwrite/sdk-for-deno) (Maintained by the Appwrite Team) -- ✅   [Ruby](https://github.com/appwrite/sdk-for-ruby) (Maintained by the Appwrite Team) -- ✅   [Python](https://github.com/appwrite/sdk-for-python) (Maintained by the Appwrite Team) -- ✅   [Kotlin](https://github.com/appwrite/sdk-for-kotlin) (Maintained by the Appwrite Team) -- ✅   [Swift](https://github.com/appwrite/sdk-for-swift) (Maintained by the Appwrite Team) -- ✅   [.NET](https://github.com/appwrite/sdk-for-dotnet) - **Beta** (Maintained by the Appwrite Team) +- :white_check_mark:   [NodeJS](https://github.com/appwrite/sdk-for-node) (Maintained by the Appwrite Team) +- :white_check_mark:   [PHP](https://github.com/appwrite/sdk-for-php) (Maintained by the Appwrite Team) +- :white_check_mark:   [Dart](https://github.com/appwrite/sdk-for-dart) (Maintained by the Appwrite Team) +- :white_check_mark:   [Deno](https://github.com/appwrite/sdk-for-deno) (Maintained by the Appwrite Team) +- :white_check_mark:   [Ruby](https://github.com/appwrite/sdk-for-ruby) (Maintained by the Appwrite Team) +- :white_check_mark:   [Python](https://github.com/appwrite/sdk-for-python) (Maintained by the Appwrite Team) +- :white_check_mark:   [Kotlin](https://github.com/appwrite/sdk-for-kotlin) (Maintained by the Appwrite Team) +- :white_check_mark:   [Swift](https://github.com/appwrite/sdk-for-swift) (Maintained by the Appwrite Team) +- :white_check_mark:   [.NET](https://github.com/appwrite/sdk-for-dotnet) - **Beta** (Maintained by the Appwrite Team) #### Community -- ✅   [Appcelerator Titanium](https://github.com/m1ga/ti.appwrite) (Maintained by [Michael Gangolf](https://github.com/m1ga/)) -- ✅   [Godot Engine](https://github.com/GodotNuts/appwrite-sdk) (Maintained by [fenix-hub @GodotNuts](https://github.com/fenix-hub)) +- :white_check_mark:   [Appcelerator Titanium](https://github.com/m1ga/ti.appwrite) (Maintained by [Michael Gangolf](https://github.com/m1ga/)) +- :white_check_mark:   [Godot Engine](https://github.com/GodotNuts/appwrite-sdk) (Maintained by [fenix-hub @GodotNuts](https://github.com/fenix-hub)) Looking for more SDKs? - Help us by contributing a pull request to our [SDK Generator](https://github.com/appwrite/sdk-generator)! ## Architecture -![Appwrite Architecture](docs/specs/overview.drawio.svg) +![Appwrite Architecture showing how Appwrite is built and the services and tools it uses](docs/specs/overview.drawio.svg) Appwrite uses a microservices architecture that was designed for easy scaling and delegation of responsibilities. In addition, Appwrite supports multiple APIs, such as REST, WebSocket, and GraphQL to allow you to interact with your resources by leveraging your existing knowledge and protocols of choice. @@ -223,7 +231,7 @@ The Appwrite API layer was designed to be extremely fast by leveraging in-memory All code contributions, including those of people having commit access, must go through a pull request and be approved by a core developer before being merged. This is to ensure a proper review of all the code. -We truly ❤️ pull requests! If you wish to help, you can learn more about how you can contribute to this project in the [contribution guide](CONTRIBUTING.md). +We truly :heart: pull requests! If you wish to help, you can learn more about how you can contribute to this project in the [contribution guide](CONTRIBUTING.md). ## Security diff --git a/SECURITY.md b/SECURITY.md index a17a55e3680..d5901533fbe 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -11,6 +11,7 @@ | 1.3.x | :white_check_mark: | | 1.4.x | :white_check_mark: | | 1.5.x | :white_check_mark: | +| 1.6.x | :white_check_mark: | ## Reporting a Vulnerability diff --git a/app/cli.php b/app/cli.php index ecff5180a2f..7b8d6cd52fd 100644 --- a/app/cli.php +++ b/app/cli.php @@ -5,13 +5,20 @@ use Appwrite\Event\Certificate; use Appwrite\Event\Delete; use Appwrite\Event\Func; +use Appwrite\Event\StatsResources; +use Appwrite\Event\StatsUsage; use Appwrite\Platform\Appwrite; use Appwrite\Runtimes\Runtimes; +use Executor\Executor; +use Swoole\Runtime; +use Swoole\Timer; +use Utopia\Cache\Adapter\Pool as CachePool; use Utopia\Cache\Adapter\Sharding; use Utopia\Cache\Cache; use Utopia\CLI\CLI; use Utopia\CLI\Console; use Utopia\Config\Config; +use Utopia\Database\Adapter\Pool as DatabasePool; use Utopia\Database\Database; use Utopia\Database\Document; use Utopia\Database\Validator\Authorization; @@ -19,11 +26,15 @@ use Utopia\Logger\Log; use Utopia\Platform\Service; use Utopia\Pools\Group; -use Utopia\Queue\Connection; +use Utopia\Queue\Broker\Pool as BrokerPool; +use Utopia\Queue\Publisher; use Utopia\Registry\Registry; use Utopia\System\System; +use Utopia\Telemetry\Adapter\None as NoTelemetry; -// overwriting runtimes to be architectur agnostic for CLI +use function Swoole\Coroutine\run; + +// Overwriting runtimes to be architecture agnostic for CLI Config::setParam('runtimes', (new Runtimes('v4'))->getAll(supported: false)); // require controllers after overwriting runtimes @@ -38,11 +49,7 @@ $adapters = []; foreach ($list as $value) { - $adapters[] = $pools - ->get($value) - ->pop() - ->getResource() - ; + $adapters[] = new CachePool($pools->get($value)); } return new Cache(new Sharding($adapters)); @@ -52,7 +59,7 @@ return $register->get('pools'); }, ['register']); -CLI::setResource('dbForConsole', function ($pools, $cache) { +CLI::setResource('dbForPlatform', function ($pools, $cache) { $sleep = 3; $maxAttempts = 5; $attempts = 0; @@ -62,14 +69,10 @@ $attempts++; try { // Prepare database connection - $dbAdapter = $pools - ->get('console') - ->pop() - ->getResource(); - - $dbForConsole = new Database($dbAdapter, $cache); + $adapter = new DatabasePool($pools->get('console')); + $dbForPlatform = new Database($adapter, $cache); - $dbForConsole + $dbForPlatform ->setNamespace('_console') ->setMetadata('host', \gethostname()) ->setMetadata('project', 'console'); @@ -78,14 +81,13 @@ $collections = Config::getParam('collections', [])['console']; $last = \array_key_last($collections); - if (!($dbForConsole->exists($dbForConsole->getDatabase(), $last))) { /** TODO cache ready variable using registry */ + if (!($dbForPlatform->exists($dbForPlatform->getDatabase(), $last))) { /** TODO cache ready variable using registry */ throw new Exception('Tables not ready yet.'); } $ready = true; } catch (\Throwable $err) { Console::warning($err->getMessage()); - $pools->get('console')->reclaim(); sleep($sleep); } } while ($attempts < $maxAttempts && !$ready); @@ -94,15 +96,19 @@ throw new Exception("Console is not ready yet. Please try again later."); } - return $dbForConsole; + return $dbForPlatform; }, ['pools', 'cache']); -CLI::setResource('getProjectDB', function (Group $pools, Database $dbForConsole, $cache) { +CLI::setResource('console', function () { + return new Document(Config::getParam('console')); +}, []); + +CLI::setResource('getProjectDB', function (Group $pools, Database $dbForPlatform, $cache) { $databases = []; // TODO: @Meldiron This should probably be responsibility of utopia-php/pools - return function (Document $project) use ($pools, $dbForConsole, $cache, &$databases) { + return function (Document $project) use ($pools, $dbForPlatform, $cache, &$databases) { if ($project->isEmpty() || $project->getId() === 'console') { - return $dbForConsole; + return $dbForPlatform; } try { @@ -114,8 +120,9 @@ if (isset($databases[$dsn->getHost()])) { $database = $databases[$dsn->getHost()]; + $sharedTables = \explode(',', System::getEnv('_APP_DATABASE_SHARED_TABLES', '')); - if ($dsn->getHost() === System::getEnv('_APP_DATABASE_SHARED_TABLES', '')) { + if (\in_array($dsn->getHost(), $sharedTables)) { $database ->setSharedTables(true) ->setTenant($project->getInternalId()) @@ -130,16 +137,12 @@ return $database; } - $dbAdapter = $pools - ->get($dsn->getHost()) - ->pop() - ->getResource(); - - $database = new Database($dbAdapter, $cache); - + $adapter = new DatabasePool($pools->get($dsn->getHost())); + $database = new Database($adapter, $cache); $databases[$dsn->getHost()] = $database; + $sharedTables = \explode(',', System::getEnv('_APP_DATABASE_SHARED_TABLES', '')); - if ($dsn->getHost() === System::getEnv('_APP_DATABASE_SHARED_TABLES', '')) { + if (\in_array($dsn->getHost(), $sharedTables)) { $database ->setSharedTables(true) ->setTenant($project->getInternalId()) @@ -157,22 +160,62 @@ return $database; }; -}, ['pools', 'dbForConsole', 'cache']); +}, ['pools', 'dbForPlatform', 'cache']); + +CLI::setResource('getLogsDB', function (Group $pools, Cache $cache) { + $database = null; + + return function (?Document $project = null) use ($pools, $cache, $database) { + if ($database !== null && $project !== null && !$project->isEmpty() && $project->getId() !== 'console') { + $database->setTenant($project->getInternalId()); + return $database; + } + + $adapter = new DatabasePool($pools->get('logs')); + $database = new Database($adapter, $cache); + + $database + ->setSharedTables(true) + ->setNamespace('logsV1') + ->setTimeout(APP_DATABASE_TIMEOUT_MILLISECONDS_TASK) + ->setMaxQueryValues(APP_DATABASE_QUERY_MAX_VALUES); + + // set tenant + if ($project !== null && !$project->isEmpty() && $project->getId() !== 'console') { + $database->setTenant($project->getInternalId()); + } + + return $database; + }; +}, ['pools', 'cache']); -CLI::setResource('queue', function (Group $pools) { - return $pools->get('queue')->pop()->getResource(); +CLI::setResource('queueForStatsUsage', function (Publisher $publisher) { + return new StatsUsage($publisher); +}, ['publisher']); +CLI::setResource('queueForStatsResources', function (Publisher $publisher) { + return new StatsResources($publisher); +}, ['publisher']); +CLI::setResource('publisher', function (Group $pools) { + return new BrokerPool(publisher: $pools->get('publisher')); }, ['pools']); -CLI::setResource('queueForFunctions', function (Connection $queue) { - return new Func($queue); -}, ['queue']); -CLI::setResource('queueForDeletes', function (Connection $queue) { - return new Delete($queue); -}, ['queue']); -CLI::setResource('queueForCertificates', function (Connection $queue) { - return new Certificate($queue); -}, ['queue']); +CLI::setResource('queueForFunctions', function (Publisher $publisher) { + return new Func($publisher); +}, ['publisher']); +CLI::setResource('queueForDeletes', function (Publisher $publisher) { + return new Delete($publisher); +}, ['publisher']); +CLI::setResource('queueForCertificates', function (Publisher $publisher) { + return new Certificate($publisher); +}, ['publisher']); CLI::setResource('logError', function (Registry $register) { return function (Throwable $error, string $namespace, string $action) use ($register) { + Console::error('[Error] Timestamp: ' . date('c', time())); + Console::error('[Error] Type: ' . get_class($error)); + Console::error('[Error] Message: ' . $error->getMessage()); + Console::error('[Error] File: ' . $error->getFile()); + Console::error('[Error] Line: ' . $error->getLine()); + Console::error('[Error] Trace: ' . $error->getTraceAsString()); + $logger = $register->get('logger'); if ($logger) { @@ -180,7 +223,7 @@ $log = new Log(); $log->setNamespace($namespace); - $log->setServer(\gethostname()); + $log->setServer(System::getEnv('_APP_LOGGING_SERVICE_IDENTIFIER', \gethostname())); $log->setVersion($version); $log->setType(Log::TYPE_ERROR); $log->setMessage($error->getMessage()); @@ -191,31 +234,55 @@ $log->addExtra('file', $error->getFile()); $log->addExtra('line', $error->getLine()); $log->addExtra('trace', $error->getTraceAsString()); + $log->addExtra('detailedTrace', $error->getTrace()); $log->setAction($action); $isProduction = System::getEnv('_APP_ENV', 'development') === 'production'; $log->setEnvironment($isProduction ? Log::ENVIRONMENT_PRODUCTION : Log::ENVIRONMENT_STAGING); - $responseCode = $logger->addLog($log); - Console::info('Usage stats log pushed with status code: ' . $responseCode); + try { + $responseCode = $logger->addLog($log); + Console::info('Error log pushed with status code: ' . $responseCode); + } catch (Throwable $th) { + Console::error('Error pushing log: ' . $th->getMessage()); + } } - - Console::warning("Failed: {$error->getMessage()}"); - Console::warning($error->getTraceAsString()); }; }, ['register']); +CLI::setResource('executor', fn () => new Executor(fn (string $projectId, string $deploymentId) => System::getEnv('_APP_EXECUTOR_HOST'))); + +CLI::setResource('telemetry', fn () => new NoTelemetry()); + $platform = new Appwrite(); -$platform->init(Service::TYPE_TASK); +$args = $platform->getEnv('argv'); +if (!isset($args[0])) { + Console::error('Missing task name'); + Console::exit(1); +} + +\array_shift($args); +$taskName = $args[0]; +$platform->init(Service::TYPE_TASK); $cli = $platform->getCli(); $cli ->error() ->inject('error') - ->action(function (Throwable $error) { - Console::error($error->getMessage()); + ->inject('logError') + ->action(function (Throwable $error, callable $logError) use ($taskName) { + call_user_func_array($logError, [ + $error, + 'Task', + $taskName, + ]); + + Timer::clearAll(); }); -$cli->run(); +$cli->shutdown()->action(fn () => Timer::clearAll()); + +Runtime::enableCoroutine(SWOOLE_HOOK_ALL); +run($cli->run(...)); diff --git a/app/config/avatars/credit-cards.php b/app/config/avatars/credit-cards.php index eb76c576cf2..52760bf9dc0 100644 --- a/app/config/avatars/credit-cards.php +++ b/app/config/avatars/credit-cards.php @@ -16,5 +16,6 @@ 'union-china-pay' => ['name' => 'Union China Pay', 'path' => __DIR__ . '/credit-cards/union-china-pay.png'], 'visa' => ['name' => 'Visa', 'path' => __DIR__ . '/credit-cards/visa.png'], 'mir' => ['name' => 'MIR', 'path' => __DIR__ . '/credit-cards/mir.png'], - 'maestro' => ['name' => 'Maestro', 'path' => __DIR__ . '/credit-cards/maestro.png'] + 'maestro' => ['name' => 'Maestro', 'path' => __DIR__ . '/credit-cards/maestro.png'], + 'rupay' => ['name' => 'Rupay', 'path' => __DIR__ . '/credit-cards/rupay.png'] ]; diff --git a/app/config/avatars/credit-cards/rupay.png b/app/config/avatars/credit-cards/rupay.png new file mode 100644 index 00000000000..dfb95e98441 Binary files /dev/null and b/app/config/avatars/credit-cards/rupay.png differ diff --git a/app/config/collections.php b/app/config/collections.php index 56c17619677..533dee57a8c 100644 --- a/app/config/collections.php +++ b/app/config/collections.php @@ -1,12 +1,18 @@ $common['files']]; + +// no more required. +unset($common['files']); /** * $collection => id of the parent collection where this will be inserted @@ -17,6090 +23,12 @@ * indexes => list of indexes */ -$commonCollections = [ - 'cache' => [ - '$collection' => Database::METADATA, - '$id' => 'cache', - 'name' => 'Cache', - 'attributes' => [ - [ - '$id' => 'resource', - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 255, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => 'resourceType', - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 255, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('mimeType'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 255, // https://tools.ietf.org/html/rfc4288#section-4.2 - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => 'accessedAt', - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => 'signature', - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 255, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => '_key_accessedAt', - 'type' => Database::INDEX_KEY, - 'attributes' => ['accessedAt'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => '_key_resource', - 'type' => Database::INDEX_KEY, - 'attributes' => ['resource'], - 'lengths' => [], - 'orders' => [], - ], - ], - ], - - 'users' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('users'), - 'name' => 'Users', - 'attributes' => [ - [ - '$id' => ID::custom('name'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('email'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 320, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('phone'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16, // leading '+' and 15 digitts maximum by E.164 format - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('status'), - 'type' => Database::VAR_BOOLEAN, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('labels'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('passwordHistory'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('password'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['encrypt'], - ], - [ - '$id' => 'hash', // Hashing algorithm used to hash the password - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => Auth::DEFAULT_ALGO, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('hashOptions'), // Configuration of hashing algorithm - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 65535, - 'signed' => true, - 'required' => false, - 'default' => Auth::DEFAULT_ALGO_OPTIONS, - 'array' => false, - 'filters' => ['json'], - ], - [ - '$id' => ID::custom('passwordUpdate'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('prefs'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 65535, - 'signed' => true, - 'required' => false, - 'default' => new \stdClass(), - 'array' => false, - 'filters' => ['json'], - ], - [ - '$id' => ID::custom('registration'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('emailVerification'), - 'type' => Database::VAR_BOOLEAN, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('phoneVerification'), - 'type' => Database::VAR_BOOLEAN, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('reset'), - 'type' => Database::VAR_BOOLEAN, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('mfa'), - 'type' => Database::VAR_BOOLEAN, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('mfaRecoveryCodes'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => true, - 'filters' => ['encrypt'], - ], - [ - '$id' => ID::custom('authenticators'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['subQueryAuthenticators'], - ], - [ - '$id' => ID::custom('sessions'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['subQuerySessions'], - ], - [ - '$id' => ID::custom('tokens'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['subQueryTokens'], - ], - [ - '$id' => ID::custom('challenges'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['subQueryChallenges'], - ], - [ - '$id' => ID::custom('memberships'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['subQueryMemberships'], - ], - [ - '$id' => ID::custom('targets'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['subQueryTargets'], - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['userSearch'], - ], - [ - '$id' => ID::custom('accessedAt'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_name'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['name'], - 'lengths' => [256], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_email'), - 'type' => Database::INDEX_UNIQUE, - 'attributes' => ['email'], - 'lengths' => [256], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_phone'), - 'type' => Database::INDEX_UNIQUE, - 'attributes' => ['phone'], - 'lengths' => [16], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_status'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['status'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_passwordUpdate'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['passwordUpdate'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_registration'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['registration'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_emailVerification'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['emailVerification'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_phoneVerification'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['phoneVerification'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => '_key_accessedAt', - 'type' => Database::INDEX_KEY, - 'attributes' => ['accessedAt'], - 'lengths' => [], - 'orders' => [], - ], - ], - ], - - 'tokens' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('tokens'), - 'name' => 'Tokens', - 'attributes' => [ - [ - '$id' => ID::custom('userInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('userId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('type'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('secret'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 512, // https://www.tutorialspoint.com/how-long-is-the-sha256-hash-in-mysql (512 for encryption) - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['encrypt'], - ], - [ - '$id' => ID::custom('expire'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('userAgent'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('ip'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 45, // https://stackoverflow.com/a/166157/2299554 - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ] - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_user'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['userInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - ], - ], - - 'authenticators' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('authenticators'), - 'name' => 'Authenticators', - 'attributes' => [ - [ - '$id' => ID::custom('userInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('userId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('type'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('verified'), - 'type' => Database::VAR_BOOLEAN, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => false, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('data'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 65535, - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => false, - 'filters' => ['json', 'encrypt'], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_userInternalId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['userInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ] - ], - ], - - 'challenges' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('challenges'), - 'name' => 'Challenges', - 'attributes' => [ - [ - '$id' => ID::custom('userInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('userId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('type'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('token'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 512, // https://www.tutorialspoint.com/how-long-is-the-sha256-hash-in-mysql (512 for encryption) - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['encrypt'], - ], [ - '$id' => ID::custom('code'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 512, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['encrypt'], - ], [ - '$id' => ID::custom('expire'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ] - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_user'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['userInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ] - ], - ], - - 'sessions' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('sessions'), - 'name' => 'Sessions', - 'attributes' => [ - [ - '$id' => ID::custom('userInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('userId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('provider'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('providerUid'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('providerAccessToken'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['encrypt'], - ], - [ - '$id' => ID::custom('providerAccessTokenExpiry'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('providerRefreshToken'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['encrypt'], - ], - [ - '$id' => ID::custom('secret'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 512, // https://www.tutorialspoint.com/how-long-is-the-sha256-hash-in-mysql (512 for encryption) - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['encrypt'], - ], - [ - '$id' => ID::custom('userAgent'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('ip'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 45, // https://stackoverflow.com/a/166157/2299554 - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('countryCode'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('osCode'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('osName'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('osVersion'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('clientType'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('clientCode'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('clientName'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('clientVersion'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('clientEngine'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('clientEngineVersion'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('deviceName'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('deviceBrand'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('deviceModel'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('factors'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('expire'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('mfaUpdatedAt'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_provider_providerUid'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['provider', 'providerUid'], - 'lengths' => [128, 128], - 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_user'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['userInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - ], - ], - - 'identities' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('identities'), - 'name' => 'Identities', - 'attributes' => [ - [ - '$id' => ID::custom('userInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('userId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('provider'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('providerUid'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('providerEmail'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 320, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('providerAccessToken'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['encrypt'], - ], - [ - '$id' => ID::custom('providerAccessTokenExpiry'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('providerRefreshToken'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['encrypt'], - ], - [ - // Used to store data from provider that may or may not be sensitive - '$id' => ID::custom('secrets'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => false, - 'filters' => ['json', 'encrypt'], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_userInternalId_provider_providerUid'), - 'type' => Database::INDEX_UNIQUE, - 'attributes' => ['userInternalId', 'provider', 'providerUid'], - 'lengths' => [11, 128, 128], - 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_provider_providerUid'), - 'type' => Database::INDEX_UNIQUE, - 'attributes' => ['provider', 'providerUid'], - 'lengths' => [128, 128], - 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_userId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['userId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_userInternalId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['userInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_provider'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['provider'], - 'lengths' => [128], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_providerUid'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['providerUid'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_providerEmail'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['providerEmail'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_providerAccessTokenExpiry'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['providerAccessTokenExpiry'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - ], - ], - - 'teams' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('teams'), - 'name' => 'Teams', - 'attributes' => [ - [ - '$id' => ID::custom('name'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('total'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('prefs'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 65535, - 'signed' => true, - 'required' => false, - 'default' => new \stdClass(), - 'array' => false, - 'filters' => ['json'], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_name'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['name'], - 'lengths' => [128], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_total'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['total'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - ], - ], - - 'memberships' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('memberships'), - 'name' => 'Memberships', - 'attributes' => [ - [ - '$id' => ID::custom('userInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('userId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('teamInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('teamId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('roles'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('invited'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('joined'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('confirm'), - 'type' => Database::VAR_BOOLEAN, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('secret'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['encrypt'], - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_unique'), - 'type' => Database::INDEX_UNIQUE, - 'attributes' => ['teamInternalId', 'userInternalId'], - 'lengths' => [Database::LENGTH_KEY, Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_user'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['userInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_team'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['teamInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_userId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['userId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_teamId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['teamId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_invited'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['invited'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_joined'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['joined'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_confirm'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['confirm'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - ], - ], - - 'buckets' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('buckets'), - 'name' => 'Buckets', - 'attributes' => [ - [ - '$id' => ID::custom('enabled'), - 'type' => Database::VAR_BOOLEAN, - 'signed' => true, - 'size' => 0, - 'format' => '', - 'filters' => [], - 'required' => true, - 'array' => false, - ], - [ - '$id' => ID::custom('name'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => 128, - 'format' => '', - 'filters' => [], - 'required' => true, - 'array' => false, - ], - [ - '$id' => ID::custom('fileSecurity'), - 'type' => Database::VAR_BOOLEAN, - 'signed' => true, - 'size' => 1, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('maximumFileSize'), - 'type' => Database::VAR_INTEGER, - 'signed' => false, - 'size' => 8, - 'format' => '', - 'filters' => [], - 'required' => true, - 'array' => false, - ], - [ - '$id' => ID::custom('allowedFileExtensions'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => 64, - 'format' => '', - 'filters' => [], - 'required' => true, - 'array' => true, - ], - [ - '$id' => 'compression', - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => 10, - 'format' => '', - 'filters' => [], - 'required' => true, - 'array' => false, - ], - [ - '$id' => ID::custom('encryption'), - 'type' => Database::VAR_BOOLEAN, - 'signed' => true, - 'size' => 0, - 'format' => '', - 'filters' => [], - 'required' => true, - 'array' => false, - ], - [ - '$id' => ID::custom('antivirus'), - 'type' => Database::VAR_BOOLEAN, - 'signed' => true, - 'size' => 0, - 'format' => '', - 'filters' => [], - 'required' => true, - 'array' => false, - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_fulltext_name'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['name'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_enabled'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['enabled'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_name'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['name'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_fileSecurity'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['fileSecurity'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_maximumFileSize'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['maximumFileSize'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_encryption'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['encryption'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_antivirus'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['antivirus'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - ] - ], - - 'stats' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('stats'), - 'name' => 'Stats', - 'attributes' => [ - [ - '$id' => ID::custom('metric'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 255, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('region'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 255, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('value'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 8, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('time'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('period'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 4, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_time'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['time'], - 'lengths' => [], - 'orders' => [Database::ORDER_DESC], - ], - [ - '$id' => ID::custom('_key_period_time'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['period', 'time'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_metric_period_time'), - 'type' => Database::INDEX_UNIQUE, - 'attributes' => ['metric', 'period', 'time'], - 'lengths' => [], - 'orders' => [Database::ORDER_DESC], - ], - ], - ], - - 'providers' => [ - '$collection' => ID::custom(DATABASE::METADATA), - '$id' => ID::custom('providers'), - 'name' => 'Providers', - 'attributes' => [ - [ - '$id' => ID::custom('name'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('provider'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('type'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('enabled'), - 'type' => Database::VAR_BOOLEAN, - 'signed' => true, - 'size' => 0, - 'format' => '', - 'filters' => [], - 'required' => true, - 'default' => true, - 'array' => false, - ], - [ - '$id' => ID::custom('credentials'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => ['json', 'encrypt'], - ], - [ - '$id' => ID::custom('options'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => false, - 'filters' => ['json'], - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 65535, - 'signed' => true, - 'required' => false, - 'default' => '', - 'array' => false, - 'filters' => ['providerSearch'], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_provider'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['provider'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_name'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['name'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_type'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['type'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_enabled_type'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['enabled', 'type'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ] - ], - ], - - 'messages' => [ - '$collection' => ID::custom(DATABASE::METADATA), - '$id' => ID::custom('messages'), - 'name' => 'Messages', - 'attributes' => [ - [ - '$id' => ID::custom('providerType'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('status'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => 'processing', - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('data'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 65535, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => ['json'], - ], - [ - '$id' => ID::custom('topics'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 21845, - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('users'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 21845, - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('targets'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 21845, - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('scheduledAt'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('scheduleInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('scheduleId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('deliveredAt'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('deliveryErrors'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 65535, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('deliveredTotal'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => 0, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => '', - 'array' => false, - 'filters' => ['messageSearch'], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ], - ], - ], - - 'topics' => [ - '$collection' => ID::custom(DATABASE::METADATA), - '$id' => ID::custom('topics'), - 'name' => 'Topics', - 'attributes' => [ - [ - '$id' => ID::custom('name'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('subscribe'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('emailTotal'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => 0, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('smsTotal'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => 0, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('pushTotal'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => 0, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('targets'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['subQueryTopicTargets'], - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => '', - 'array' => false, - 'filters' => ['topicSearch'], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_name'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['name'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ] - ], - ], - - 'subscribers' => [ - '$collection' => ID::custom(DATABASE::METADATA), - '$id' => ID::custom('subscribers'), - 'name' => 'Subscribers', - 'attributes' => [ - [ - '$id' => ID::custom('targetId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('targetInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('userId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('userInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('topicId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('topicInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('providerType'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_targetId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['targetId'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_targetInternalId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['targetInternalId'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_userId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['userId'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_userInternalId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['userInternalId'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_topicId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['topicId'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_topicInternalId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['topicInternalId'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_unique_target_topic'), - 'type' => Database::INDEX_UNIQUE, - 'attributes' => ['targetInternalId', 'topicInternalId'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_fulltext_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ], - ], - ], - - 'targets' => [ - '$collection' => ID::custom(DATABASE::METADATA), - '$id' => ID::custom('targets'), - 'name' => 'Targets', - 'attributes' => [ - [ - '$id' => ID::custom('userId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('userInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('sessionId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('sessionInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('providerType'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('providerId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('providerInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('identifier'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('name'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('expired'), - 'type' => Database::VAR_BOOLEAN, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => false, - 'array' => false, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_userId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['userId'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_userInternalId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['userInternalId'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_providerId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['providerId'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_providerInternalId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['providerInternalId'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_identifier'), - 'type' => Database::INDEX_UNIQUE, - 'attributes' => ['identifier'], - 'lengths' => [], - 'orders' => [], - ], - ], - ], -]; - -$projectCollections = array_merge([ - 'databases' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('databases'), - 'name' => 'Databases', - 'attributes' => [ - [ - '$id' => ID::custom('name'), - 'type' => Database::VAR_STRING, - 'size' => 256, - 'required' => true, - 'signed' => true, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('enabled'), - 'type' => Database::VAR_BOOLEAN, - 'signed' => true, - 'size' => 0, - 'format' => '', - 'filters' => [], - 'required' => false, - 'default' => true, - 'array' => false, - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_fulltext_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_name'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['name'], - 'lengths' => [256], - 'orders' => [Database::ORDER_ASC], - ], - ], - ], - - 'attributes' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('attributes'), - 'name' => 'Attributes', - 'attributes' => [ - [ - '$id' => ID::custom('databaseInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('databaseId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => false, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('collectionInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('collectionId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('key'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('type'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('status'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('error'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('size'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('required'), - 'type' => Database::VAR_BOOLEAN, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('default'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['casting'], - ], - [ - '$id' => ID::custom('signed'), - 'type' => Database::VAR_BOOLEAN, - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('array'), - 'type' => Database::VAR_BOOLEAN, - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('format'), - 'type' => Database::VAR_STRING, - 'size' => 64, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('formatOptions'), - 'type' => Database::VAR_STRING, - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => new stdClass(), - 'array' => false, - 'filters' => ['json', 'range', 'enum'], - ], - [ - '$id' => ID::custom('filters'), - 'type' => Database::VAR_STRING, - 'size' => 64, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('options'), - 'type' => Database::VAR_STRING, - 'size' => 16384, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['json'], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_db_collection'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['databaseInternalId', 'collectionInternalId'], - 'lengths' => [Database::LENGTH_KEY, Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], - ], - ], - ], - - 'indexes' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('indexes'), - 'name' => 'Indexes', - 'attributes' => [ - [ - '$id' => ID::custom('databaseInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('databaseId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => false, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('collectionInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('collectionId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('key'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('type'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('status'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('error'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('attributes'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('lengths'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('orders'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 4, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_db_collection'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['databaseInternalId', 'collectionInternalId'], - 'lengths' => [Database::LENGTH_KEY, Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], - ], - ], - ], - - 'functions' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('functions'), - 'name' => 'Functions', - 'attributes' => [ - [ - '$id' => ID::custom('execute'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('name'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('enabled'), - 'type' => Database::VAR_BOOLEAN, - 'signed' => true, - 'size' => 0, - 'format' => '', - 'filters' => [], - 'required' => true, - 'array' => false, - ], - [ - '$id' => ID::custom('live'), - 'type' => Database::VAR_BOOLEAN, - 'signed' => true, - 'size' => 0, - 'format' => '', - 'filters' => [], - 'required' => true, - 'array' => false, - ], - [ - '$id' => ID::custom('installationId'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('installationInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('providerRepositoryId'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('repositoryId'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('repositoryInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('providerBranch'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('providerRootDirectory'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('providerSilentMode'), - 'type' => Database::VAR_BOOLEAN, - 'signed' => true, - 'size' => 0, - 'format' => '', - 'filters' => [], - 'required' => false, - 'default' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('logging'), - 'type' => Database::VAR_BOOLEAN, - 'signed' => true, - 'size' => 0, - 'format' => '', - 'filters' => [], - 'required' => true, - 'array' => false, - ], - [ - '$id' => ID::custom('runtime'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('deploymentInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('deployment'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('vars'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['subQueryVariables'], - ], - [ - '$id' => ID::custom('varsProject'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['subQueryProjectVariables'], - ], - [ - '$id' => ID::custom('events'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('scheduleInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('scheduleId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('schedule'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('timeout'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('version'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 8, - 'signed' => true, - 'required' => false, - 'default' => 'v4', - 'array' => false, - 'filters' => [], - ], - [ - 'array' => false, - '$id' => ID::custom('entrypoint'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'filters' => [], - ], - [ - 'array' => false, - '$id' => ID::custom('commands'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'filters' => [], - ], - [ - 'array' => false, - '$id' => ID::custom('specification'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => false, - 'required' => false, - 'default' => APP_FUNCTION_SPECIFICATION_DEFAULT, - 'filters' => [], - ], - [ - '$id' => ID::custom('scopes'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => true, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_name'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['name'], - 'lengths' => [256], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_enabled'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['enabled'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_installationId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['installationId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_installationInternalId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['installationInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_providerRepositoryId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['providerRepositoryId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_repositoryId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['repositoryId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_repositoryInternalId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['repositoryInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_runtime'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['runtime'], - 'lengths' => [64], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_deployment'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['deployment'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ] - ], - ], - - 'deployments' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('deployments'), - 'name' => 'Deployments', - 'attributes' => [ - [ - '$id' => ID::custom('resourceInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('resourceId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('resourceType'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('buildInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('buildId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - 'array' => false, - '$id' => ID::custom('entrypoint'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'filters' => [], - ], - [ - 'array' => false, - '$id' => ID::custom('commands'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'filters' => [], - ], - [ - '$id' => ID::custom('path'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('type'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('installationId'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('installationInternalId'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('providerRepositoryId'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('repositoryId'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('repositoryInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('providerRepositoryName'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('providerRepositoryOwner'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('providerRepositoryUrl'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('providerCommitHash'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('providerCommitAuthorUrl'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('providerCommitAuthor'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('providerCommitMessage'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('providerCommitUrl'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('providerBranch'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('providerBranchUrl'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('providerRootDirectory'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('providerCommentId'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => 2048, - 'format' => '', - 'filters' => [], - 'required' => false, - 'array' => false, - ], - [ - '$id' => ID::custom('size'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('metadata'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, // https://tools.ietf.org/html/rfc4288#section-4.2 - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['json'], - ], - [ - '$id' => ID::custom('chunksTotal'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('chunksUploaded'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('activate'), - 'type' => Database::VAR_BOOLEAN, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => false, - 'array' => false, - 'filters' => [], - ] - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_resource'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['resourceId'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_resource_type'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['resourceType'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_size'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['size'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_buildId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['buildId'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_activate'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['activate'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - ], - ], - - 'builds' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('builds'), - 'name' => 'Builds', - 'attributes' => [ - [ - '$id' => ID::custom('startTime'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('endTime'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('duration'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('size'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('deploymentInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('deploymentId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('runtime'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => true, - 'default' => '', - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('status'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => true, - 'default' => 'processing', - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('path'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => '', - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('logs'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 1000000, - 'signed' => true, - 'required' => false, - 'default' => '', - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('sourceType'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => true, - 'default' => 'local', - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('source'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => true, - 'default' => '', - 'array' => false, - 'filters' => [], - ] - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_deployment'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['deploymentId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ] - ], - ], - - 'executions' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('executions'), - 'name' => 'Executions', - 'attributes' => [ - [ - '$id' => ID::custom('functionInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('functionId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('deploymentInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('deploymentId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - 'array' => false, - '$id' => ID::custom('trigger'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => false, - 'default' => null, - 'filters' => [], - ], - [ - '$id' => ID::custom('status'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('duration'), - 'type' => Database::VAR_FLOAT, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('errors'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 1000000, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('logs'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 1000000, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - 'array' => false, - '$id' => ID::custom('requestMethod'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => false, - 'default' => null, - 'filters' => [], - ], - [ - 'array' => false, - '$id' => ID::custom('requestPath'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'filters' => [], - ], - [ - '$id' => ID::custom('requestHeaders'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['json'], - ], - [ - '$id' => ID::custom('responseStatusCode'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('responseHeaders'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['json'], - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('scheduledAt'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('scheduleInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('scheduleId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_function'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['functionId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_fulltext_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_trigger'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['trigger'], - 'lengths' => [32], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_status'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['status'], - 'lengths' => [32], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_requestMethod'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['requestMethod'], - 'lengths' => [128], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_requestPath'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['requestPath'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_deployment'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['deploymentId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_responseStatusCode'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['responseStatusCode'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_duration'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['duration'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - ], - ], - - 'variables' => [ - '$collection' => Database::METADATA, - '$id' => 'variables', - 'name' => 'variables', - 'attributes' => [ - [ - '$id' => ID::custom('resourceType'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 100, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('resourceInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('resourceId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => 'key', - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => 'value', - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 8192, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => ['encrypt'] - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => '_key_resourceInternalId', - 'type' => Database::INDEX_KEY, - 'attributes' => ['resourceInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [], - ], - [ - '$id' => '_key_resourceType', - 'type' => Database::INDEX_KEY, - 'attributes' => ['resourceType'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => '_key_resourceId_resourceType', - 'type' => Database::INDEX_KEY, - 'attributes' => ['resourceId', 'resourceType'], - 'lengths' => [Database::LENGTH_KEY, 100], - 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], - ], - [ - '$id' => '_key_uniqueKey', - 'type' => Database::INDEX_UNIQUE, - 'attributes' => ['resourceId', 'key', 'resourceType'], - 'lengths' => [Database::LENGTH_KEY, Database::LENGTH_KEY, 100], - 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC, Database::ORDER_ASC], - ], - [ - '$id' => '_key_key', - 'type' => Database::INDEX_KEY, - 'attributes' => ['key'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_fulltext_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ], - ], - ], - - 'migrations' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('migrations'), - 'name' => 'Migrations', - 'attributes' => [ - [ - '$id' => ID::custom('status'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('stage'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('source'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 8192, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('credentials'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 65536, - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => false, - 'filters' => ['json', 'encrypt'], - ], - [ - '$id' => ID::custom('resources'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => [], - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('statusCounters'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 3000, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => ['json'], - ], - [ - '$id' => ID::custom('resourceData'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 131070, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => ['json'], - ], - [ - '$id' => ID::custom('errors'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 65535, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ] - ], - 'indexes' => [ - [ - '$id' => '_key_status', - 'type' => Database::INDEX_KEY, - 'attributes' => ['status'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => '_key_stage', - 'type' => Database::INDEX_KEY, - 'attributes' => ['stage'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => '_key_source', - 'type' => Database::INDEX_KEY, - 'attributes' => ['source'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_fulltext_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ] - ], - ], -], $commonCollections); - -$consoleCollections = array_merge([ - 'projects' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('projects'), - 'name' => 'Projects', - 'attributes' => [ - [ - '$id' => ID::custom('teamInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('teamId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('name'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('region'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('description'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('database'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('logo'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('url'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('version'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('legalName'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('legalCountry'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('legalState'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('legalCity'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('legalAddress'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('legalTaxId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => 'accessedAt', - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('services'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => false, - 'filters' => ['json'], - ], - [ - '$id' => ID::custom('apis'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => false, - 'filters' => ['json'], - ], - [ - '$id' => ID::custom('smtp'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => false, - 'filters' => ['json', 'encrypt'], - ], - [ - '$id' => ID::custom('templates'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 1000000, // TODO make sure size fits - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => false, - 'filters' => ['json'], - ], - [ - '$id' => ID::custom('auths'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => false, - 'filters' => ['json'], - ], - [ - '$id' => ID::custom('oAuthProviders'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => [], - 'array' => false, - 'filters' => ['json', 'encrypt'], - ], - [ - '$id' => ID::custom('platforms'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['subQueryPlatforms'], - ], - [ - '$id' => ID::custom('webhooks'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['subQueryWebhooks'], - ], - [ - '$id' => ID::custom('keys'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['subQueryKeys'], - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_name'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['name'], - 'lengths' => [128], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_team'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['teamId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - ], - ], - - 'schedules' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('schedules'), - 'name' => 'schedules', - 'attributes' => [ - [ - '$id' => ID::custom('resourceType'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 100, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('resourceInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('resourceId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('resourceUpdatedAt'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('projectId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('schedule'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 100, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('data'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 65535, - 'signed' => true, - 'required' => false, - 'default' => new \stdClass(), - 'array' => false, - 'filters' => ['json', 'encrypt'], - ], - [ - '$id' => ID::custom('active'), - 'type' => Database::VAR_BOOLEAN, - 'signed' => true, - 'size' => 0, - 'format' => '', - 'filters' => [], - 'required' => false, - 'default' => null, - 'array' => false, - ], - [ - '$id' => ID::custom('region'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 10, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_region_resourceType_resourceUpdatedAt'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['region', 'resourceType', 'resourceUpdatedAt'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_region_resourceType_projectId_resourceId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['region', 'resourceType', 'projectId', 'resourceId'], - 'lengths' => [], - 'orders' => [], - ], - ], - ], - - 'platforms' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('platforms'), - 'name' => 'platforms', - 'attributes' => [ - [ - '$id' => ID::custom('projectInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('projectId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('type'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('name'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('key'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('store'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('hostname'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 256, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ] - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_project'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['projectInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - ], - ], - - 'keys' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('keys'), - 'name' => 'keys', - 'attributes' => [ - [ - '$id' => ID::custom('projectInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('projectId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => 0, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('name'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('scopes'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('secret'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 512, // var_dump of \bin2hex(\random_bytes(128)) => string(256) doubling for encryption - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => ['encrypt'], - ], - [ - '$id' => ID::custom('expire'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('accessedAt'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('sdks'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_project'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['projectInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => '_key_accessedAt', - 'type' => Database::INDEX_KEY, - 'attributes' => ['accessedAt'], - 'lengths' => [], - 'orders' => [], - ], - ], - ], - - 'webhooks' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('webhooks'), - 'name' => 'webhooks', - 'attributes' => [ - [ - '$id' => ID::custom('projectInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('projectId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('name'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('url'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('httpUser'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('httpPass'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, // TODO will the length suffice after encryption? - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['encrypt'], - ], - [ - '$id' => ID::custom('security'), - 'type' => Database::VAR_BOOLEAN, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('events'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - [ - '$id' => ID::custom('signatureKey'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('enabled'), - 'type' => Database::VAR_BOOLEAN, - 'signed' => true, - 'size' => 0, - 'format' => '', - 'filters' => [], - 'required' => false, - 'default' => true, - 'array' => false, - ], - [ - '$id' => ID::custom('logs'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 1000000, - 'signed' => true, - 'required' => false, - 'default' => '', - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('attempts'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => 0, - 'array' => false, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_project'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['projectInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ] - ], - ], - - 'certificates' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('certificates'), - 'name' => 'Certificates', - 'attributes' => [ - [ - '$id' => ID::custom('domain'), - 'type' => Database::VAR_STRING, - 'format' => '', - // The maximum total length of a domain name or number is 255 characters. - // https://datatracker.ietf.org/doc/html/rfc2821#section-4.5.3.1 - // https://datatracker.ietf.org/doc/html/rfc5321#section-4.5.3.1.2 - 'size' => 255, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('issueDate'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('renewDate'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('attempts'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('logs'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 1000000, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('updated'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_domain'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['domain'], - 'lengths' => [255], - 'orders' => [Database::ORDER_ASC], - ], - ], - ], - - 'realtime' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('realtime'), - 'name' => 'Realtime Connections', - 'attributes' => [ - [ - '$id' => ID::custom('container'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('timestamp'), - 'type' => Database::VAR_DATETIME, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['datetime'], - ], - [ - '$id' => ID::custom('value'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], //TODO: use json filter - ] - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_timestamp'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['timestamp'], - 'lengths' => [], - 'orders' => [Database::ORDER_DESC], - ], - ] - ], - - 'rules' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('rules'), - 'name' => 'Rules', - 'attributes' => [ - [ - '$id' => ID::custom('projectId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('projectInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('domain'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('resourceType'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 100, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('resourceInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('resourceId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('status'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('certificateId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ] - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_domain'), - 'type' => Database::INDEX_UNIQUE, - 'attributes' => ['domain'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_projectInternalId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['projectInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_projectId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['projectId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => '_key_resourceInternalId', - 'type' => Database::INDEX_KEY, - 'attributes' => ['resourceInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => '_key_resourceId', - 'type' => Database::INDEX_KEY, - 'attributes' => ['resourceId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => '_key_resourceType', - 'type' => Database::INDEX_KEY, - 'attributes' => ['resourceType'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - ], - ], - - 'installations' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('installations'), - 'name' => 'installations', - 'attributes' => [ - [ - '$id' => ID::custom('projectId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('projectInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('providerInstallationId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('organization'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('provider'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('personal'), - 'type' => Database::VAR_BOOLEAN, - 'signed' => true, - 'size' => 0, - 'format' => '', - 'filters' => [], - 'required' => false, - 'default' => false, - 'array' => false, - ], - ], - 'indexes' => [ - - [ - '$id' => ID::custom('_key_projectInternalId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['projectInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_projectId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['projectId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_providerInstallationId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['providerInstallationId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - ], - ], - - 'repositories' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('repositories'), - 'name' => 'repositories', - 'attributes' => [ - [ - '$id' => ID::custom('installationId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [] - ], - [ - '$id' => ID::custom('installationInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('projectId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [] - ], - [ - '$id' => ID::custom('projectInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('providerRepositoryId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [] - ], - [ - '$id' => ID::custom('resourceId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('resourceInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('resourceType'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [] - ], - [ - '$id' => ID::custom('providerPullRequestIds'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 128, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => true, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_installationId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['installationId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_installationInternalId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['installationInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_projectInternalId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['projectInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_projectId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['projectId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_providerRepositoryId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['providerRepositoryId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_resourceId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['resourceId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => '_key_resourceInternalId', - 'type' => Database::INDEX_KEY, - 'attributes' => ['resourceInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_resourceType'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['resourceType'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ] - ], - ], - - 'vcsComments' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('vcsComments'), - 'name' => 'vcsComments', - 'attributes' => [ - [ - '$id' => ID::custom('installationId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [] - ], - [ - '$id' => ID::custom('installationInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('projectId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [] - ], - [ - '$id' => ID::custom('projectInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('providerRepositoryId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [] - ], - [ - '$id' => ID::custom('providerCommentId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [] - ], - [ - '$id' => ID::custom('providerPullRequestId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [] - ], - [ - '$id' => ID::custom('providerBranch'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [] - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_installationId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['installationId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_installationInternalId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['installationInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_projectInternalId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['projectInternalId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_projectId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['projectId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_providerRepositoryId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['providerRepositoryId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_providerPullRequestId'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['providerPullRequestId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_providerBranch'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['providerBranch'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - ], - ], - - 'vcsCommentLocks' => [ - '$collection' => ID::custom(Database::METADATA), - '$id' => ID::custom('vcsCommentLocks'), - 'name' => 'vcsCommentLocks', - 'attributes' => [], - 'indexes' => [] - ], -], $commonCollections); - -$bucketCollections = [ - 'files' => [ - '$collection' => ID::custom('buckets'), - '$id' => ID::custom('files'), - '$name' => 'Files', - 'attributes' => [ - [ - 'array' => false, - '$id' => ID::custom('bucketId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => false, - 'default' => null, - 'filters' => [], - ], - [ - 'array' => false, - '$id' => ID::custom('bucketInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'filters' => [], - ], - [ - '$id' => ID::custom('name'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('path'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('signature'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('mimeType'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 255, // https://tools.ietf.org/html/rfc4288#section-4.2 - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('metadata'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 75000, // https://tools.ietf.org/html/rfc4288#section-4.2 - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => ['json'], - ], - [ - '$id' => ID::custom('sizeOriginal'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 8, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('sizeActual'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 8, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('algorithm'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 255, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('comment'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('openSSLVersion'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 64, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('openSSLCipher'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 64, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('openSSLTag'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('openSSLIV'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 2048, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('chunksTotal'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('chunksUploaded'), - 'type' => Database::VAR_INTEGER, - 'format' => '', - 'size' => 0, - 'signed' => false, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_key_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_bucket'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['bucketId'], - 'lengths' => [Database::LENGTH_KEY], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_name'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['name'], - 'lengths' => [256], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_signature'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['signature'], - 'lengths' => [256], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_mimeType'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['mimeType'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_sizeOriginal'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['sizeOriginal'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_chunksTotal'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['chunksTotal'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_chunksUploaded'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['chunksUploaded'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - ] - ], -]; - -$dbCollections = [ - 'collections' => [ - '$collection' => ID::custom('databases'), - '$id' => ID::custom('collections'), - 'name' => 'Collections', - 'attributes' => [ - [ - '$id' => ID::custom('databaseInternalId'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => Database::LENGTH_KEY, - 'signed' => true, - 'required' => true, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('databaseId'), - 'type' => Database::VAR_STRING, - 'signed' => true, - 'size' => Database::LENGTH_KEY, - 'format' => '', - 'filters' => [], - 'required' => true, - 'default' => null, - 'array' => false, - ], - [ - '$id' => ID::custom('name'), - 'type' => Database::VAR_STRING, - 'size' => 256, - 'required' => true, - 'signed' => true, - 'array' => false, - 'filters' => [], - ], - [ - '$id' => ID::custom('enabled'), - 'type' => Database::VAR_BOOLEAN, - 'signed' => true, - 'size' => 0, - 'format' => '', - 'filters' => [], - 'required' => true, - 'default' => null, - 'array' => false, - ], - [ - '$id' => ID::custom('documentSecurity'), - 'type' => Database::VAR_BOOLEAN, - 'signed' => true, - 'size' => 0, - 'format' => '', - 'filters' => [], - 'required' => true, - 'default' => null, - 'array' => false, - ], - [ - '$id' => ID::custom('attributes'), - 'type' => Database::VAR_STRING, - 'size' => 1000000, - 'required' => false, - 'signed' => true, - 'array' => false, - 'filters' => ['subQueryAttributes'], - ], - [ - '$id' => ID::custom('indexes'), - 'type' => Database::VAR_STRING, - 'size' => 1000000, - 'required' => false, - 'signed' => true, - 'array' => false, - 'filters' => ['subQueryIndexes'], - ], - [ - '$id' => ID::custom('search'), - 'type' => Database::VAR_STRING, - 'format' => '', - 'size' => 16384, - 'signed' => true, - 'required' => false, - 'default' => null, - 'array' => false, - 'filters' => [], - ], - ], - 'indexes' => [ - [ - '$id' => ID::custom('_fulltext_search'), - 'type' => Database::INDEX_FULLTEXT, - 'attributes' => ['search'], - 'lengths' => [], - 'orders' => [], - ], - [ - '$id' => ID::custom('_key_name'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['name'], - 'lengths' => [256], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_enabled'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['enabled'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - [ - '$id' => ID::custom('_key_documentSecurity'), - 'type' => Database::INDEX_KEY, - 'attributes' => ['documentSecurity'], - 'lengths' => [], - 'orders' => [Database::ORDER_ASC], - ], - ], - ] -]; - - $collections = [ - 'projects' => $projectCollections, - 'console' => $consoleCollections, - 'buckets' => $bucketCollections, - 'databases' => $dbCollections + 'buckets' => $buckets, + 'databases' => $databases, + 'projects' => array_merge($projects, $common), + 'console' => array_merge($platform, $common), + 'logs' => $logs, ]; return $collections; diff --git a/app/config/collections/common.php b/app/config/collections/common.php new file mode 100644 index 00000000000..8ca1d91b67a --- /dev/null +++ b/app/config/collections/common.php @@ -0,0 +1,2654 @@ + [ + '$collection' => Database::METADATA, + '$id' => 'cache', + 'name' => 'Cache', + 'attributes' => [ + [ + '$id' => 'resource', + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 255, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => 'resourceType', + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 255, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('mimeType'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 255, // https://tools.ietf.org/html/rfc4288#section-4.2 + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => 'accessedAt', + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => 'signature', + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 255, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => '_key_accessedAt', + 'type' => Database::INDEX_KEY, + 'attributes' => ['accessedAt'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => '_key_resource', + 'type' => Database::INDEX_KEY, + 'attributes' => ['resource'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], + + 'users' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('users'), + 'name' => 'Users', + 'attributes' => [ + [ + '$id' => ID::custom('name'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('email'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 320, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('phone'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16, // leading '+' and 15 digitts maximum by E.164 format + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('status'), + 'type' => Database::VAR_BOOLEAN, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('labels'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('passwordHistory'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('password'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'], + ], + [ + '$id' => 'hash', // Hashing algorithm used to hash the password + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => Auth::DEFAULT_ALGO, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('hashOptions'), // Configuration of hashing algorithm + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 65535, + 'signed' => true, + 'required' => false, + 'default' => Auth::DEFAULT_ALGO_OPTIONS, + 'array' => false, + 'filters' => ['json'], + ], + [ + '$id' => ID::custom('passwordUpdate'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('prefs'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 65535, + 'signed' => true, + 'required' => false, + 'default' => new \stdClass(), + 'array' => false, + 'filters' => ['json'], + ], + [ + '$id' => ID::custom('registration'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('emailVerification'), + 'type' => Database::VAR_BOOLEAN, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('phoneVerification'), + 'type' => Database::VAR_BOOLEAN, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('reset'), + 'type' => Database::VAR_BOOLEAN, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('mfa'), + 'type' => Database::VAR_BOOLEAN, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('mfaRecoveryCodes'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => true, + 'filters' => ['encrypt'], + ], + [ + '$id' => ID::custom('authenticators'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['subQueryAuthenticators'], + ], + [ + '$id' => ID::custom('sessions'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['subQuerySessions'], + ], + [ + '$id' => ID::custom('tokens'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['subQueryTokens'], + ], + [ + '$id' => ID::custom('challenges'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['subQueryChallenges'], + ], + [ + '$id' => ID::custom('memberships'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['subQueryMemberships'], + ], + [ + '$id' => ID::custom('targets'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['subQueryTargets'], + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['userSearch'], + ], + [ + '$id' => ID::custom('accessedAt'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_name'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['name'], + 'lengths' => [256], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_email'), + 'type' => Database::INDEX_UNIQUE, + 'attributes' => ['email'], + 'lengths' => [256], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_phone'), + 'type' => Database::INDEX_UNIQUE, + 'attributes' => ['phone'], + 'lengths' => [16], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_status'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['status'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_passwordUpdate'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['passwordUpdate'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_registration'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['registration'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_emailVerification'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['emailVerification'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_phoneVerification'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['phoneVerification'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => '_key_accessedAt', + 'type' => Database::INDEX_KEY, + 'attributes' => ['accessedAt'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], + + 'tokens' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('tokens'), + 'name' => 'Tokens', + 'attributes' => [ + [ + '$id' => ID::custom('userInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('userId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('type'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('secret'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 512, // https://www.tutorialspoint.com/how-long-is-the-sha256-hash-in-mysql (512 for encryption) + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'], + ], + [ + '$id' => ID::custom('expire'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('userAgent'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('ip'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 45, // https://stackoverflow.com/a/166157/2299554 + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ] + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_user'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['userInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + ], + ], + + 'authenticators' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('authenticators'), + 'name' => 'Authenticators', + 'attributes' => [ + [ + '$id' => ID::custom('userInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('userId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('type'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('verified'), + 'type' => Database::VAR_BOOLEAN, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => false, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('data'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 65535, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => false, + 'filters' => ['json', 'encrypt'], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_userInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['userInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ] + ], + ], + + 'challenges' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('challenges'), + 'name' => 'Challenges', + 'attributes' => [ + [ + '$id' => ID::custom('userInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('userId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('type'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('token'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 512, // https://www.tutorialspoint.com/how-long-is-the-sha256-hash-in-mysql (512 for encryption) + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'], + ], [ + '$id' => ID::custom('code'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 512, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'], + ], [ + '$id' => ID::custom('expire'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ] + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_user'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['userInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ] + ], + ], + + 'sessions' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('sessions'), + 'name' => 'Sessions', + 'attributes' => [ + [ + '$id' => ID::custom('userInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('userId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('provider'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerUid'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerAccessToken'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'], + ], + [ + '$id' => ID::custom('providerAccessTokenExpiry'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('providerRefreshToken'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'], + ], + [ + '$id' => ID::custom('secret'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 512, // https://www.tutorialspoint.com/how-long-is-the-sha256-hash-in-mysql (512 for encryption) + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'], + ], + [ + '$id' => ID::custom('userAgent'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('ip'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 45, // https://stackoverflow.com/a/166157/2299554 + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('countryCode'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('osCode'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('osName'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('osVersion'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('clientType'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('clientCode'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('clientName'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('clientVersion'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('clientEngine'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('clientEngineVersion'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('deviceName'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('deviceBrand'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('deviceModel'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('factors'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('expire'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('mfaUpdatedAt'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_provider_providerUid'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['provider', 'providerUid'], + 'lengths' => [128, 128], + 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_user'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['userInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + ], + ], + + 'identities' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('identities'), + 'name' => 'Identities', + 'attributes' => [ + [ + '$id' => ID::custom('userInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('userId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('provider'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerUid'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, // Decrease to 128 as in index length? + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerEmail'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 320, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerAccessToken'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'], + ], + [ + '$id' => ID::custom('providerAccessTokenExpiry'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('providerRefreshToken'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'], + ], + [ + // Used to store data from provider that may or may not be sensitive + '$id' => ID::custom('secrets'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => false, + 'filters' => ['json', 'encrypt'], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_userInternalId_provider_providerUid'), + 'type' => Database::INDEX_UNIQUE, + 'attributes' => ['userInternalId', 'provider', 'providerUid'], + 'lengths' => [11, 128, 128], // providerUid is length 2000! + 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_provider_providerUid'), + 'type' => Database::INDEX_UNIQUE, + 'attributes' => ['provider', 'providerUid'], + 'lengths' => [128, 128], // providerUid is length 2000! + 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_userId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['userId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_userInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['userInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_provider'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['provider'], + 'lengths' => [128], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_providerUid'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['providerUid'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_providerEmail'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['providerEmail'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_providerAccessTokenExpiry'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['providerAccessTokenExpiry'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + ], + ], + + 'teams' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('teams'), + 'name' => 'Teams', + 'attributes' => [ + [ + '$id' => ID::custom('name'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('total'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('prefs'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 65535, + 'signed' => true, + 'required' => false, + 'default' => new \stdClass(), + 'array' => false, + 'filters' => ['json'], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_name'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['name'], + 'lengths' => [128], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_total'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['total'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + ], + ], + + 'memberships' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('memberships'), + 'name' => 'Memberships', + 'attributes' => [ + [ + '$id' => ID::custom('userInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('userId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('teamInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('teamId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('roles'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('invited'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('joined'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('confirm'), + 'type' => Database::VAR_BOOLEAN, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('secret'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'], + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_unique'), + 'type' => Database::INDEX_UNIQUE, + 'attributes' => ['teamInternalId', 'userInternalId'], + 'lengths' => [Database::LENGTH_KEY, Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_user'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['userInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_team'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['teamInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_userId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['userId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_teamId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['teamId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_invited'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['invited'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_joined'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['joined'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_confirm'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['confirm'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + ], + ], + + 'buckets' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('buckets'), + 'name' => 'Buckets', + 'attributes' => [ + [ + '$id' => ID::custom('enabled'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => true, + 'array' => false, + ], + [ + '$id' => ID::custom('name'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => 128, + 'format' => '', + 'filters' => [], + 'required' => true, + 'array' => false, + ], + [ + '$id' => ID::custom('fileSecurity'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 1, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('maximumFileSize'), + 'type' => Database::VAR_INTEGER, + 'signed' => false, + 'size' => 8, + 'format' => '', + 'filters' => [], + 'required' => true, + 'array' => false, + ], + [ + '$id' => ID::custom('allowedFileExtensions'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => 64, + 'format' => '', + 'filters' => [], + 'required' => true, + 'array' => true, + ], + [ + '$id' => 'compression', + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => 10, + 'format' => '', + 'filters' => [], + 'required' => true, + 'array' => false, + ], + [ + '$id' => ID::custom('encryption'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => true, + 'array' => false, + ], + [ + '$id' => ID::custom('antivirus'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => true, + 'array' => false, + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_fulltext_name'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['name'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_enabled'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['enabled'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_name'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['name'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_fileSecurity'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['fileSecurity'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_maximumFileSize'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['maximumFileSize'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_encryption'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['encryption'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_antivirus'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['antivirus'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + ] + ], + + 'stats' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('stats'), + 'name' => 'Stats', + 'attributes' => [ + [ + '$id' => ID::custom('metric'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 255, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('region'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 255, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('value'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 8, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('time'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('period'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 4, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_time'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['time'], + 'lengths' => [], + 'orders' => [Database::ORDER_DESC], + ], + [ + '$id' => ID::custom('_key_period_time'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['period', 'time'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_metric_period_time'), + 'type' => Database::INDEX_UNIQUE, + 'attributes' => ['metric', 'period', 'time'], + 'lengths' => [], + 'orders' => [Database::ORDER_DESC], + ], + ], + ], + + 'providers' => [ + '$collection' => ID::custom(DATABASE::METADATA), + '$id' => ID::custom('providers'), + 'name' => 'Providers', + 'attributes' => [ + [ + '$id' => ID::custom('name'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('provider'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('type'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('enabled'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => true, + 'default' => true, + 'array' => false, + ], + [ + '$id' => ID::custom('credentials'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => ['json', 'encrypt'], + ], + [ + '$id' => ID::custom('options'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => false, + 'filters' => ['json'], + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 65535, + 'signed' => true, + 'required' => false, + 'default' => '', + 'array' => false, + 'filters' => ['providerSearch'], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_provider'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['provider'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_name'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['name'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_type'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['type'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_enabled_type'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['enabled', 'type'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ] + ], + ], + + 'messages' => [ + '$collection' => ID::custom(DATABASE::METADATA), + '$id' => ID::custom('messages'), + 'name' => 'Messages', + 'attributes' => [ + [ + '$id' => ID::custom('providerType'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('status'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => 'processing', + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('data'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 65535, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => ['json'], + ], + [ + '$id' => ID::custom('topics'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 21845, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('users'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 21845, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('targets'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 21845, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('scheduledAt'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('scheduleInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('scheduleId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('deliveredAt'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('deliveryErrors'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 65535, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('deliveredTotal'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => 0, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => '', + 'array' => false, + 'filters' => ['messageSearch'], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], + + 'topics' => [ + '$collection' => ID::custom(DATABASE::METADATA), + '$id' => ID::custom('topics'), + 'name' => 'Topics', + 'attributes' => [ + [ + '$id' => ID::custom('name'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('subscribe'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('emailTotal'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => 0, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('smsTotal'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => 0, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('pushTotal'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => 0, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('targets'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['subQueryTopicTargets'], + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => '', + 'array' => false, + 'filters' => ['topicSearch'], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_name'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['name'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ] + ], + ], + + 'subscribers' => [ + '$collection' => ID::custom(DATABASE::METADATA), + '$id' => ID::custom('subscribers'), + 'name' => 'Subscribers', + 'attributes' => [ + [ + '$id' => ID::custom('targetId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('targetInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('userId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('userInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('topicId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('topicInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerType'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_targetId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['targetId'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_targetInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['targetInternalId'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_userId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['userId'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_userInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['userInternalId'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_topicId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['topicId'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_topicInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['topicInternalId'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_unique_target_topic'), + 'type' => Database::INDEX_UNIQUE, + 'attributes' => ['targetInternalId', 'topicInternalId'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_fulltext_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], + + 'targets' => [ + '$collection' => ID::custom(DATABASE::METADATA), + '$id' => ID::custom('targets'), + 'name' => 'Targets', + 'attributes' => [ + [ + '$id' => ID::custom('userId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('userInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('sessionId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('sessionInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerType'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('identifier'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('name'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('expired'), + 'type' => Database::VAR_BOOLEAN, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => false, + 'array' => false, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_userId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['userId'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_userInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['userInternalId'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_providerId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['providerId'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_providerInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['providerInternalId'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_identifier'), + 'type' => Database::INDEX_UNIQUE, + 'attributes' => ['identifier'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_expired'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['expired'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_session_internal_id'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['sessionInternalId'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], + + // note that this is not required for console & projects. + 'files' => [ + '$collection' => ID::custom('buckets'), + '$id' => ID::custom('files'), + '$name' => 'Files', + 'attributes' => [ + [ + 'array' => false, + '$id' => ID::custom('bucketId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'filters' => [], + ], + [ + 'array' => false, + '$id' => ID::custom('bucketInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'filters' => [], + ], + [ + '$id' => ID::custom('name'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('path'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('signature'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('mimeType'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 255, // https://tools.ietf.org/html/rfc4288#section-4.2 + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('metadata'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 75000, // https://tools.ietf.org/html/rfc4288#section-4.2 + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['json'], + ], + [ + '$id' => ID::custom('sizeOriginal'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 8, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('sizeActual'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 8, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('algorithm'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 255, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('comment'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('openSSLVersion'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 64, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('openSSLCipher'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 64, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('openSSLTag'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('openSSLIV'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('chunksTotal'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('chunksUploaded'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => 'transformedAt', + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_bucket'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['bucketId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_name'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['name'], + 'lengths' => [256], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_signature'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['signature'], + 'lengths' => [256], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_mimeType'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['mimeType'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_sizeOriginal'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['sizeOriginal'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_chunksTotal'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['chunksTotal'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_chunksUploaded'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['chunksUploaded'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_transformedAt'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['transformedAt'], + 'lengths' => [], + 'orders' => [], + ] + ] + ], +]; diff --git a/app/config/collections/databases.php b/app/config/collections/databases.php new file mode 100644 index 00000000000..995caecb7fe --- /dev/null +++ b/app/config/collections/databases.php @@ -0,0 +1,126 @@ + [ + '$collection' => ID::custom('databases'), + '$id' => ID::custom('collections'), + 'name' => 'Collections', + 'attributes' => [ + [ + '$id' => ID::custom('databaseInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('databaseId'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => true, + 'default' => null, + 'array' => false, + ], + [ + '$id' => ID::custom('name'), + 'type' => Database::VAR_STRING, + 'size' => 256, + 'required' => true, + 'signed' => true, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('enabled'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => true, + 'default' => null, + 'array' => false, + ], + [ + '$id' => ID::custom('documentSecurity'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => true, + 'default' => null, + 'array' => false, + ], + [ + '$id' => ID::custom('attributes'), + 'type' => Database::VAR_STRING, + 'size' => 1000000, + 'required' => false, + 'signed' => true, + 'array' => false, + 'filters' => ['subQueryAttributes'], + ], + [ + '$id' => ID::custom('indexes'), + 'type' => Database::VAR_STRING, + 'size' => 1000000, + 'required' => false, + 'signed' => true, + 'array' => false, + 'filters' => ['subQueryIndexes'], + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_fulltext_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_name'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['name'], + 'lengths' => [256], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_enabled'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['enabled'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_documentSecurity'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['documentSecurity'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + ], + ] +]; diff --git a/app/config/collections/logs.php b/app/config/collections/logs.php new file mode 100644 index 00000000000..069dcf5a4bc --- /dev/null +++ b/app/config/collections/logs.php @@ -0,0 +1,94 @@ + ID::custom(Database::METADATA), + '$id' => ID::custom('stats'), + 'name' => 'stats', + 'attributes' => [ + [ + '$id' => ID::custom('metric'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 255, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('region'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 255, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('value'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 8, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('time'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('period'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 4, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_time'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['time'], + 'lengths' => [], + 'orders' => [Database::ORDER_DESC], + ], + [ + '$id' => ID::custom('_key_period_time'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['period', 'time'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_metric_period_time'), + 'type' => Database::INDEX_UNIQUE, + 'attributes' => ['metric', 'period', 'time'], + 'lengths' => [], + 'orders' => [Database::ORDER_DESC], + ], + ], +]; + +return $logsCollection; diff --git a/app/config/collections/platform.php b/app/config/collections/platform.php new file mode 100644 index 00000000000..ccb87f06b3e --- /dev/null +++ b/app/config/collections/platform.php @@ -0,0 +1,1652 @@ + [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('projects'), + 'name' => 'Projects', + 'attributes' => [ + [ + '$id' => ID::custom('teamInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('teamId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('name'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('region'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('description'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('database'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('logo'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('url'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('version'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('legalName'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('legalCountry'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('legalState'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('legalCity'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('legalAddress'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('legalTaxId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => 'accessedAt', + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('services'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => false, + 'filters' => ['json'], + ], + [ + '$id' => ID::custom('apis'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => false, + 'filters' => ['json'], + ], + [ + '$id' => ID::custom('smtp'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => false, + 'filters' => ['json', 'encrypt'], + ], + [ + '$id' => ID::custom('templates'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 1000000, // TODO make sure size fits + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => false, + 'filters' => ['json'], + ], + [ + '$id' => ID::custom('auths'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => false, + 'filters' => ['json'], + ], + [ + '$id' => ID::custom('oAuthProviders'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => false, + 'filters' => ['json', 'encrypt'], + ], + [ + '$id' => ID::custom('platforms'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['subQueryPlatforms'], + ], + [ + '$id' => ID::custom('webhooks'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['subQueryWebhooks'], + ], + [ + '$id' => ID::custom('keys'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['subQueryKeys'], + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('pingCount'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => 0, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('pingedAt'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ] + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_name'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['name'], + 'lengths' => [128], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_team'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['teamId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_pingCount'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['pingCount'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_pingedAt'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['pingedAt'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_database'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['database'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_region_accessed_at'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['region', 'accessedAt'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], + + 'schedules' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('schedules'), + 'name' => 'schedules', + 'attributes' => [ + [ + '$id' => ID::custom('resourceType'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 100, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('resourceInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('resourceId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('resourceUpdatedAt'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('projectId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('schedule'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 100, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('data'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 65535, + 'signed' => true, + 'required' => false, + 'default' => new \stdClass(), + 'array' => false, + 'filters' => ['json', 'encrypt'], + ], + [ + '$id' => ID::custom('active'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => false, + 'default' => null, + 'array' => false, + ], + [ + '$id' => ID::custom('region'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 10, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_region_resourceType_resourceUpdatedAt'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['region', 'resourceType', 'resourceUpdatedAt'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_region_resourceType_projectId_resourceId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['region', 'resourceType', 'projectId', 'resourceId'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_project_id_region'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectId', 'region'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_region_rt_active'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['region', 'resourceType', 'active'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], + + 'platforms' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('platforms'), + 'name' => 'platforms', + 'attributes' => [ + [ + '$id' => ID::custom('projectInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('projectId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('type'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('name'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('key'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('store'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('hostname'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ] + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_project'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + ], + ], + + 'keys' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('keys'), + 'name' => 'keys', + 'attributes' => [ + [ + '$id' => ID::custom('projectInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('projectId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => 0, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('name'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('scopes'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('secret'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 512, // var_dump of \bin2hex(\random_bytes(128)) => string(256) doubling for encryption + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'], + ], + [ + '$id' => ID::custom('expire'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('accessedAt'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('sdks'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_project'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => '_key_accessedAt', + 'type' => Database::INDEX_KEY, + 'attributes' => ['accessedAt'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], + + 'webhooks' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('webhooks'), + 'name' => 'webhooks', + 'attributes' => [ + [ + '$id' => ID::custom('projectInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('projectId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('name'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('url'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('httpUser'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('httpPass'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, // TODO will the length suffice after encryption? + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'], + ], + [ + '$id' => ID::custom('security'), + 'type' => Database::VAR_BOOLEAN, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('events'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('signatureKey'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('enabled'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => false, + 'default' => true, + 'array' => false, + ], + [ + '$id' => ID::custom('logs'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 1000000, + 'signed' => true, + 'required' => false, + 'default' => '', + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('attempts'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => 0, + 'array' => false, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_project'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ] + ], + ], + + 'certificates' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('certificates'), + 'name' => 'Certificates', + 'attributes' => [ + [ + '$id' => ID::custom('domain'), + 'type' => Database::VAR_STRING, + 'format' => '', + // The maximum total length of a domain name or number is 255 characters. + // https://datatracker.ietf.org/doc/html/rfc2821#section-4.5.3.1 + // https://datatracker.ietf.org/doc/html/rfc5321#section-4.5.3.1.2 + 'size' => 255, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('issueDate'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('renewDate'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('attempts'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('logs'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 1000000, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('updated'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_domain'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['domain'], + 'lengths' => [255], + 'orders' => [Database::ORDER_ASC], + ], + ], + ], + + 'realtime' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('realtime'), + 'name' => 'Realtime Connections', + 'attributes' => [ + [ + '$id' => ID::custom('container'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('timestamp'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('value'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], //TODO: use json filter + ] + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_timestamp'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['timestamp'], + 'lengths' => [], + 'orders' => [Database::ORDER_DESC], + ], + ] + ], + + 'rules' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('rules'), + 'name' => 'Rules', + 'attributes' => [ + [ + '$id' => ID::custom('projectId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('projectInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('domain'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('resourceType'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 100, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('resourceInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('resourceId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('status'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('certificateId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('owner'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16, + 'signed' => true, + 'required' => false, + 'default' => '', // "Appwrite" or empty string + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('region'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_domain'), + 'type' => Database::INDEX_UNIQUE, + 'attributes' => ['domain'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_projectInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_projectId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => '_key_resourceInternalId', + 'type' => Database::INDEX_KEY, + 'attributes' => ['resourceInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => '_key_resourceId', + 'type' => Database::INDEX_KEY, + 'attributes' => ['resourceId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => '_key_resourceType', + 'type' => Database::INDEX_KEY, + 'attributes' => ['resourceType'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_owner'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['owner'], + 'lengths' => [16], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_region'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['region'], + 'lengths' => [16], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_piid_riid_rt'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectInternalId', 'resourceInternalId', 'resourceType'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], + + 'installations' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('installations'), + 'name' => 'installations', + 'attributes' => [ + [ + '$id' => ID::custom('projectId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('projectInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerInstallationId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('organization'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('provider'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('personal'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => false, + 'default' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('personalAccessToken'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'], + ], + [ + '$id' => ID::custom('personalAccessTokenExpiry'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('personalRefreshToken'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'], + ], + ], + 'indexes' => [ + + [ + '$id' => ID::custom('_key_projectInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_projectId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_providerInstallationId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['providerInstallationId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + ], + ], + + 'repositories' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('repositories'), + 'name' => 'repositories', + 'attributes' => [ + [ + '$id' => ID::custom('installationId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [] + ], + [ + '$id' => ID::custom('installationInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('projectId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [] + ], + [ + '$id' => ID::custom('projectInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerRepositoryId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [] + ], + [ + '$id' => ID::custom('resourceId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('resourceInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('resourceType'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [] + ], + [ + '$id' => ID::custom('providerPullRequestIds'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_installationId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['installationId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_installationInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['installationInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_projectInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_projectId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_providerRepositoryId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['providerRepositoryId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_resourceId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['resourceId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => '_key_resourceInternalId', + 'type' => Database::INDEX_KEY, + 'attributes' => ['resourceInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_resourceType'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['resourceType'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_piid_riid_rt'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectInternalId', 'resourceInternalId', 'resourceType'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], + + 'vcsComments' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('vcsComments'), + 'name' => 'vcsComments', + 'attributes' => [ + [ + '$id' => ID::custom('installationId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [] + ], + [ + '$id' => ID::custom('installationInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('projectId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [] + ], + [ + '$id' => ID::custom('projectInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerRepositoryId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [] + ], + [ + '$id' => ID::custom('providerCommentId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [] + ], + [ + '$id' => ID::custom('providerPullRequestId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [] + ], + [ + '$id' => ID::custom('providerBranch'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [] + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_installationId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['installationId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_installationInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['installationInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_projectInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_projectId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_providerRepositoryId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['providerRepositoryId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_providerPullRequestId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['providerPullRequestId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_providerBranch'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['providerBranch'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_piid_prid_rt'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['projectInternalId', 'providerRepositoryId'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], + + 'vcsCommentLocks' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('vcsCommentLocks'), + 'name' => 'vcsCommentLocks', + 'attributes' => [], + 'indexes' => [] + ] +]; diff --git a/app/config/collections/projects.php b/app/config/collections/projects.php new file mode 100644 index 00000000000..4844ad16d33 --- /dev/null +++ b/app/config/collections/projects.php @@ -0,0 +1,1901 @@ + [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('databases'), + 'name' => 'Databases', + 'attributes' => [ + [ + '$id' => ID::custom('name'), + 'type' => Database::VAR_STRING, + 'size' => 256, + 'required' => true, + 'signed' => true, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('enabled'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => false, + 'default' => true, + 'array' => false, + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('originalId'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'default' => null, + 'array' => false, + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_fulltext_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_name'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['name'], + 'lengths' => [256], + 'orders' => [Database::ORDER_ASC], + ], + ], + ], + + 'attributes' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('attributes'), + 'name' => 'Attributes', + 'attributes' => [ + [ + '$id' => ID::custom('databaseInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('databaseId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => false, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('collectionInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('collectionId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('key'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('type'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('status'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('error'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('size'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('required'), + 'type' => Database::VAR_BOOLEAN, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('default'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['casting'], + ], + [ + '$id' => ID::custom('signed'), + 'type' => Database::VAR_BOOLEAN, + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('array'), + 'type' => Database::VAR_BOOLEAN, + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('format'), + 'type' => Database::VAR_STRING, + 'size' => 64, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('formatOptions'), + 'type' => Database::VAR_STRING, + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => new stdClass(), + 'array' => false, + 'filters' => ['json', 'range', 'enum'], + ], + [ + '$id' => ID::custom('filters'), + 'type' => Database::VAR_STRING, + 'size' => 64, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('options'), + 'type' => Database::VAR_STRING, + 'size' => 16384, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['json'], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_db_collection'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['databaseInternalId', 'collectionInternalId'], + 'lengths' => [Database::LENGTH_KEY, Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], + ], + ], + ], + + 'indexes' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('indexes'), + 'name' => 'Indexes', + 'attributes' => [ + [ + '$id' => ID::custom('databaseInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('databaseId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => false, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('collectionInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('collectionId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('key'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('type'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('status'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('error'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('attributes'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('lengths'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('orders'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 4, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_db_collection'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['databaseInternalId', 'collectionInternalId'], + 'lengths' => [Database::LENGTH_KEY, Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], + ], + ], + ], + + 'functions' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('functions'), + 'name' => 'Functions', + 'attributes' => [ + [ + '$id' => ID::custom('execute'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('name'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('enabled'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => true, + 'array' => false, + ], + [ + '$id' => ID::custom('live'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => true, + 'array' => false, + ], + [ + '$id' => ID::custom('installationId'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('installationInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerRepositoryId'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('repositoryId'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('repositoryInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerBranch'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('providerRootDirectory'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('providerSilentMode'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => false, + 'default' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('logging'), + 'type' => Database::VAR_BOOLEAN, + 'signed' => true, + 'size' => 0, + 'format' => '', + 'filters' => [], + 'required' => true, + 'array' => false, + ], + [ + '$id' => ID::custom('runtime'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('deploymentInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('deployment'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('vars'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['subQueryVariables'], + ], + [ + '$id' => ID::custom('varsProject'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['subQueryProjectVariables'], + ], + [ + '$id' => ID::custom('events'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('scheduleInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('scheduleId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('schedule'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('timeout'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('version'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 8, + 'signed' => true, + 'required' => false, + 'default' => 'v4', + 'array' => false, + 'filters' => [], + ], + [ + 'array' => false, + '$id' => ID::custom('entrypoint'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'filters' => [], + ], + [ + 'array' => false, + '$id' => ID::custom('commands'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'filters' => [], + ], + [ + 'array' => false, + '$id' => ID::custom('specification'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => false, + 'required' => false, + 'default' => APP_FUNCTION_SPECIFICATION_DEFAULT, + 'filters' => [], + ], + [ + '$id' => ID::custom('scopes'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => true, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_name'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['name'], + 'lengths' => [256], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_enabled'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['enabled'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_installationId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['installationId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_installationInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['installationInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_providerRepositoryId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['providerRepositoryId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_repositoryId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['repositoryId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_repositoryInternalId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['repositoryInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_runtime'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['runtime'], + 'lengths' => [64], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_deployment'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['deployment'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ] + ], + ], + + 'deployments' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('deployments'), + 'name' => 'Deployments', + 'attributes' => [ + [ + '$id' => ID::custom('resourceInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('resourceId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('resourceType'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('buildInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('buildId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + 'array' => false, + '$id' => ID::custom('entrypoint'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'filters' => [], + ], + [ + 'array' => false, + '$id' => ID::custom('commands'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'filters' => [], + ], + [ + '$id' => ID::custom('path'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('type'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('installationId'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('installationInternalId'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('providerRepositoryId'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('repositoryId'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('repositoryInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('providerRepositoryName'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('providerRepositoryOwner'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('providerRepositoryUrl'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('providerCommitHash'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('providerCommitAuthorUrl'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('providerCommitAuthor'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('providerCommitMessage'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('providerCommitUrl'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('providerBranch'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('providerBranchUrl'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('providerRootDirectory'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => Database::LENGTH_KEY, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('providerCommentId'), + 'type' => Database::VAR_STRING, + 'signed' => true, + 'size' => 2048, + 'format' => '', + 'filters' => [], + 'required' => false, + 'array' => false, + ], + [ + '$id' => ID::custom('size'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('metadata'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, // https://tools.ietf.org/html/rfc4288#section-4.2 + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['json'], + ], + [ + '$id' => ID::custom('chunksTotal'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('chunksUploaded'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('activate'), + 'type' => Database::VAR_BOOLEAN, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => false, + 'array' => false, + 'filters' => [], + ] + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_resource'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['resourceId'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_resource_type'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['resourceType'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_size'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['size'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_buildId'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['buildId'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_activate'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['activate'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_resource_internal_id'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['resourceInternalId'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], + + 'builds' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('builds'), + 'name' => 'Builds', + 'attributes' => [ + [ + '$id' => ID::custom('startTime'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('endTime'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('duration'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('size'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('deploymentInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('deploymentId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('runtime'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => true, + 'default' => '', + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('status'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 256, + 'signed' => true, + 'required' => true, + 'default' => 'processing', + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('path'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => '', + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('logs'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 1000000, + 'signed' => true, + 'required' => false, + 'default' => '', + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('sourceType'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => true, + 'default' => 'local', + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('source'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => true, + 'default' => '', + 'array' => false, + 'filters' => [], + ] + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_deployment'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['deploymentId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_deployment_internal_id'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['deploymentInternalId'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], + + 'executions' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('executions'), + 'name' => 'Executions', + 'attributes' => [ + [ + '$id' => ID::custom('functionInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('functionId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('deploymentInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('deploymentId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + 'array' => false, + '$id' => ID::custom('trigger'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => false, + 'default' => null, + 'filters' => [], + ], + [ + '$id' => ID::custom('status'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('duration'), + 'type' => Database::VAR_FLOAT, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('errors'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 1000000, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('logs'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 1000000, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + 'array' => false, + '$id' => ID::custom('requestMethod'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 128, + 'signed' => true, + 'required' => false, + 'default' => null, + 'filters' => [], + ], + [ + 'array' => false, + '$id' => ID::custom('requestPath'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 2048, + 'signed' => true, + 'required' => false, + 'default' => null, + 'filters' => [], + ], + [ + '$id' => ID::custom('requestHeaders'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['json'], + ], + [ + '$id' => ID::custom('responseStatusCode'), + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('responseHeaders'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['json'], + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('scheduledAt'), + 'type' => Database::VAR_DATETIME, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => ['datetime'], + ], + [ + '$id' => ID::custom('scheduleInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('scheduleId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => ID::custom('_key_function'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['functionId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_fulltext_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_trigger'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['trigger'], + 'lengths' => [32], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_status'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['status'], + 'lengths' => [32], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_requestMethod'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['requestMethod'], + 'lengths' => [128], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_requestPath'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['requestPath'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_deployment'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['deploymentId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_responseStatusCode'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['responseStatusCode'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_duration'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['duration'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_key_function_internal_id'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['functionInternalId'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], + + 'variables' => [ + '$collection' => Database::METADATA, + '$id' => 'variables', + 'name' => 'variables', + 'attributes' => [ + [ + '$id' => ID::custom('resourceType'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 100, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('resourceInternalId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('resourceId'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => 'key', + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => 'value', + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 8192, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => ['encrypt'] + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + ], + 'indexes' => [ + [ + '$id' => '_key_resourceInternalId', + 'type' => Database::INDEX_KEY, + 'attributes' => ['resourceInternalId'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [], + ], + [ + '$id' => '_key_resourceType', + 'type' => Database::INDEX_KEY, + 'attributes' => ['resourceType'], + 'lengths' => [], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => '_key_resourceId_resourceType', + 'type' => Database::INDEX_KEY, + 'attributes' => ['resourceId', 'resourceType'], + 'lengths' => [Database::LENGTH_KEY, 100], + 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], + ], + [ + '$id' => '_key_uniqueKey', + 'type' => Database::INDEX_UNIQUE, + 'attributes' => ['resourceId', 'key', 'resourceType'], + 'lengths' => [Database::LENGTH_KEY, Database::LENGTH_KEY, 100], + 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC, Database::ORDER_ASC], + ], + [ + '$id' => '_key_key', + 'type' => Database::INDEX_KEY, + 'attributes' => ['key'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_fulltext_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ], + [ + '$id' => ID::custom('_key_resource_internal_id_resource_type'), + 'type' => Database::INDEX_KEY, + 'attributes' => ['resourceInternalId', 'resourceType'], + 'lengths' => [], + 'orders' => [], + ], + ], + ], + + 'migrations' => [ + '$collection' => ID::custom(Database::METADATA), + '$id' => ID::custom('migrations'), + 'name' => 'Migrations', + 'attributes' => [ + [ + '$id' => ID::custom('status'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('stage'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('source'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 8192, // reduce size + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('destination'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => false, // make true after patch script + 'default' => null, + 'array' => false, + 'filters' => [], + ], + [ + '$id' => ID::custom('credentials'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 65536, + 'signed' => true, + 'required' => false, + 'default' => [], + 'array' => false, + 'filters' => ['json', 'encrypt'], + ], + [ + '$id' => ID::custom('resources'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => Database::LENGTH_KEY, + 'signed' => true, + 'required' => true, + 'default' => [], + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('statusCounters'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 3000, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => ['json'], + ], + [ + '$id' => ID::custom('resourceData'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 131070, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => false, + 'filters' => ['json'], + ], + [ + '$id' => ID::custom('errors'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 65535, + 'signed' => true, + 'required' => true, + 'default' => null, + 'array' => true, + 'filters' => [], + ], + [ + '$id' => ID::custom('search'), + 'type' => Database::VAR_STRING, + 'format' => '', + 'size' => 16384, + 'signed' => true, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ] + ], + 'indexes' => [ + [ + '$id' => '_key_status', + 'type' => Database::INDEX_KEY, + 'attributes' => ['status'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => '_key_stage', + 'type' => Database::INDEX_KEY, + 'attributes' => ['stage'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => '_key_source', + 'type' => Database::INDEX_KEY, + 'attributes' => ['source'], + 'lengths' => [Database::LENGTH_KEY], + 'orders' => [Database::ORDER_ASC], + ], + [ + '$id' => ID::custom('_fulltext_search'), + 'type' => Database::INDEX_FULLTEXT, + 'attributes' => ['search'], + 'lengths' => [], + 'orders' => [], + ] + ], + ], +]; diff --git a/app/config/console.php b/app/config/console.php new file mode 100644 index 00000000000..e37c9b7836a --- /dev/null +++ b/app/config/console.php @@ -0,0 +1,53 @@ + ID::custom('console'), + '$internalId' => ID::custom('console'), + 'name' => 'Appwrite', + '$collection' => ID::custom('projects'), + 'description' => 'Appwrite core engine', + 'logo' => '', + 'teamId' => null, + 'webhooks' => [], + 'keys' => [], + 'platforms' => [ + [ + '$collection' => ID::custom('platforms'), + 'name' => 'Localhost', + 'type' => Origin::CLIENT_TYPE_WEB, + 'hostname' => 'localhost', + ], // Current host is added on app init + ], + 'region' => 'fra', + 'legalName' => '', + 'legalCountry' => '', + 'legalState' => '', + 'legalCity' => '', + 'legalAddress' => '', + 'legalTaxId' => '', + 'auths' => [ + 'mockNumbers' => [], + 'invites' => System::getEnv('_APP_CONSOLE_INVITES', 'enabled') === 'enabled', + 'limit' => (System::getEnv('_APP_CONSOLE_WHITELIST_ROOT', 'enabled') === 'enabled') ? 1 : 0, // limit signup to 1 user + 'duration' => Auth::TOKEN_EXPIRATION_LOGIN_LONG, // 1 Year in seconds + 'sessionAlerts' => System::getEnv('_APP_CONSOLE_SESSION_ALERTS', 'disabled') === 'enabled' + ], + 'authWhitelistEmails' => (!empty(System::getEnv('_APP_CONSOLE_WHITELIST_EMAILS', null))) ? \explode(',', System::getEnv('_APP_CONSOLE_WHITELIST_EMAILS', null)) : [], + 'authWhitelistIPs' => (!empty(System::getEnv('_APP_CONSOLE_WHITELIST_IPS', null))) ? \explode(',', System::getEnv('_APP_CONSOLE_WHITELIST_IPS', null)) : [], + 'oAuthProviders' => [ + 'githubEnabled' => true, + 'githubSecret' => System::getEnv('_APP_CONSOLE_GITHUB_SECRET', ''), + 'githubAppid' => System::getEnv('_APP_CONSOLE_GITHUB_APP_ID', '') + ], +]; + +return $console; diff --git a/app/config/errors.php b/app/config/errors.php index fc79599b126..eb5a6cbbbbb 100644 --- a/app/config/errors.php +++ b/app/config/errors.php @@ -24,6 +24,11 @@ 'description' => 'Access to this API is forbidden.', 'code' => 401, ], + Exception::GENERAL_RESOURCE_BLOCKED => [ + 'name' => Exception::GENERAL_RESOURCE_BLOCKED, + 'description' => 'Access to this resource is blocked.', + 'code' => 401, + ], Exception::GENERAL_UNKNOWN_ORIGIN => [ 'name' => Exception::GENERAL_UNKNOWN_ORIGIN, 'description' => 'The request originated from an unknown origin. If you trust this domain, please list it as a trusted platform in the Appwrite console.', @@ -76,7 +81,7 @@ ], Exception::GENERAL_ROUTE_NOT_FOUND => [ 'name' => Exception::GENERAL_ROUTE_NOT_FOUND, - 'description' => 'The requested route was not found. Please refer to the API docs and try again.', + 'description' => 'Route not found. Please ensure the endpoint is configured correctly and that the API route is valid for this SDK version. Refer to the API docs for more details.', 'code' => 404, ], Exception::GENERAL_CURSOR_NOT_FOUND => [ @@ -344,11 +349,6 @@ 'description' => 'Team with the requested ID could not be found.', 'code' => 404, ], - Exception::TEAM_INVITE_ALREADY_EXISTS => [ - 'name' => Exception::TEAM_INVITE_ALREADY_EXISTS, - 'description' => 'User has already been invited or is already a member of this team', - 'code' => 409, - ], Exception::TEAM_INVITE_NOT_FOUND => [ 'name' => Exception::TEAM_INVITE_NOT_FOUND, 'description' => 'The requested team invitation could not be found.', @@ -356,7 +356,7 @@ ], Exception::TEAM_INVALID_SECRET => [ 'name' => Exception::TEAM_INVALID_SECRET, - 'description' => 'The team invitation secret is invalid. Please request a new invitation and try again.', + 'description' => 'The team invitation secret is invalid. Please request a new invitation and try again.', 'code' => 401, ], Exception::TEAM_MEMBERSHIP_MISMATCH => [ @@ -593,6 +593,11 @@ 'description' => 'Database timed out. Try adjusting your queries or adding an index.', 'code' => 408 ], + Exception::DATABASE_QUERY_ORDER_NULL => [ + 'name' => Exception::DATABASE_QUERY_ORDER_NULL, + 'description' => 'The order attribute had a null value. Cursor pagination requires all documents order attribute values are non-null.', + 'code' => 400, + ], /** Collections */ Exception::COLLECTION_NOT_FOUND => [ @@ -681,7 +686,7 @@ ], Exception::ATTRIBUTE_LIMIT_EXCEEDED => [ 'name' => Exception::ATTRIBUTE_LIMIT_EXCEEDED, - 'description' => 'The maximum number of attributes has been reached.', + 'description' => 'The maximum number or size of attributes for this collection has been reached.', 'code' => 400, ], Exception::ATTRIBUTE_VALUE_INVALID => [ @@ -726,6 +731,11 @@ 'description' => 'Index invalid.', 'code' => 400, ], + Exception::INDEX_DEPENDENCY => [ + 'name' => Exception::INDEX_DEPENDENCY, + 'description' => 'Attribute cannot be renamed or deleted. Please remove the associated index first.', + 'code' => 409, + ], /** Project Errors */ Exception::PROJECT_NOT_FOUND => [ diff --git a/app/config/function-templates.php b/app/config/function-templates.php index db26ff2c199..4bd8b83f4d0 100644 --- a/app/config/function-templates.php +++ b/app/config/function-templates.php @@ -3,7 +3,7 @@ const TEMPLATE_RUNTIMES = [ 'NODE' => [ 'name' => 'node', - 'versions' => ['21.0', '20.0', '19.0', '18.0', '16.0', '14.5'] + 'versions' => ['22', '21.0', '20.0', '19.0', '18.0', '16.0', '14.5'] ], 'PYTHON' => [ 'name' => 'python', @@ -11,7 +11,7 @@ ], 'DART' => [ 'name' => 'dart', - 'versions' => ['3.3', '3.1', '3.0', '2.19', '2.18', '2.17', '2.16', '2.16'] + 'versions' => ['3.5', '3.3', '3.1', '3.0', '2.19', '2.18', '2.17', '2.16'] ], 'GO' => [ 'name' => 'go', @@ -21,9 +21,13 @@ 'name' => 'php', 'versions' => ['8.3', '8.2', '8.1', '8.0'] ], + 'DENO' => [ + 'name' => 'deno', + 'versions' => ['2.0', '1.46', '1.40', '1.35', '1.24', '1.21'] + ], 'BUN' => [ 'name' => 'bun', - 'versions' => ['1.0'] + 'versions' => ['1.1', '1.0'] ], 'RUBY' => [ 'name' => 'ruby', @@ -51,7 +55,7 @@ function getRuntimes($runtime, $commands, $entrypoint, $providerRootDirectory, $ 'id' => 'starter', 'name' => 'Starter function', 'tagline' => - 'A simple function to get started. Edit this function to explore endless possibilities with Appwrite Functions.', + 'A simple function to get started. Edit this function to explore endless possibilities with Appwrite Functions.', 'permissions' => ['any'], 'events' => [], 'cron' => '', @@ -73,6 +77,7 @@ function getRuntimes($runtime, $commands, $entrypoint, $providerRootDirectory, $ 'src/index.php', 'php/starter' ), + ...getRuntimes(TEMPLATE_RUNTIMES['DENO'], 'deno cache src/main.ts', 'src/main.ts', 'deno/starter'), ...getRuntimes(TEMPLATE_RUNTIMES['BUN'], 'bun install', 'src/main.ts', 'bun/starter'), ...getRuntimes(TEMPLATE_RUNTIMES['RUBY'], 'bundle install', 'lib/main.rb', 'ruby/starter'), ], @@ -121,7 +126,7 @@ function getRuntimes($runtime, $commands, $entrypoint, $providerRootDirectory, $ 'description' => 'Authentication token to access your Upstash Vector database. Learn more.', 'value' => '', 'placeholder' => - 'oe4wNTbwHVLcDNa6oceZfhBEABsCNYh43ii6Xdq4bKBH7mq7qJkUmc4cs3ABbYyuVKWZTxVQjiNjYgydn2dkhABNes4NAuDpj7qxUAmZYqGJT78', + 'oe4wNTbwHVLcDNa6oceZfhBEABsCNYh43ii6Xdq4bKBH7mq7qJkUmc4cs3ABbYyuVKWZTxVQjiNjYgydn2dkhABNes4NAuDpj7qxUAmZYqGJT78', 'required' => true, 'type' => 'password' ] @@ -227,7 +232,7 @@ function getRuntimes($runtime, $commands, $entrypoint, $providerRootDirectory, $ 'id' => 'query-mongo-atlas', 'name' => 'Query MongoDB Atlas', 'tagline' => - 'Realtime NoSQL document database with geospecial, graph, search, and vector suport.', + 'Realtime NoSQL document database with geospecial, graph, search, and vector suport.', 'permissions' => ['any'], 'events' => [], 'cron' => '', @@ -252,7 +257,7 @@ function getRuntimes($runtime, $commands, $entrypoint, $providerRootDirectory, $ 'description' => 'The endpoint to connect to your Mongo database. Learn more.', 'value' => '', 'placeholder' => - 'mongodb+srv://appwrite:Yx42hafg7Q4fgkxe@cluster0.7mslfog.mongodb.net/?retryWrites=true&w=majority&appName=Appwrite', + 'mongodb+srv://appwrite:Yx42hafg7Q4fgkxe@cluster0.7mslfog.mongodb.net/?retryWrites=true&w=majority&appName=Appwrite', 'required' => true, 'type' => 'password' ] @@ -264,7 +269,7 @@ function getRuntimes($runtime, $commands, $entrypoint, $providerRootDirectory, $ 'id' => 'query-neon-postgres', 'name' => 'Query Neon Postgres', 'tagline' => - 'Reliable SQL database with replication, point-in-time recovery, and pgvector support.', + 'Reliable SQL database with replication, point-in-time recovery, and pgvector support.', 'permissions' => ['any'], 'events' => [], 'cron' => '', @@ -491,7 +496,7 @@ function getRuntimes($runtime, $commands, $entrypoint, $providerRootDirectory, $ 'id' => 'censor-with-redact', 'name' => 'Censor with Redact', 'tagline' => - 'Censor sensitive information from a provided text string using Redact API by Pangea.', + 'Censor sensitive information from a provided text string using Redact API by Pangea.', 'permissions' => ['any'], 'events' => [], 'cron' => '', @@ -560,7 +565,7 @@ function getRuntimes($runtime, $commands, $entrypoint, $providerRootDirectory, $ 'id' => 'github-issue-bot', 'name' => 'GitHub issue bot', 'tagline' => - 'Automate the process of responding to newly opened issues in a GitHub repository.', + 'Automate the process of responding to newly opened issues in a GitHub repository.', 'permissions' => ['any'], 'events' => [], 'cron' => '', @@ -1562,7 +1567,8 @@ function getRuntimes($runtime, $commands, $entrypoint, $providerRootDirectory, $ 'required' => false, 'type' => 'number' ] - ] + ], + 'scopes' => [] ], [ 'icon' => 'icon-chip', diff --git a/app/config/locale/continents.php b/app/config/locale/continents.php index 2f1ffc0a537..611c725ef1e 100644 --- a/app/config/locale/continents.php +++ b/app/config/locale/continents.php @@ -1,11 +1,46 @@ [ + 'name' => 'Africa', + 'latitude' => 8.7832, + 'longitude' => 34.5085 + ], + 'AN' => [ + 'name' => 'Antarctica', + 'latitude' => -82.8628, + 'longitude' => 135.0000 + ], + 'AS' => [ + 'name' => 'Asia', + 'latitude' => 34.0479, + 'longitude' => 100.6197 + ], + 'EU' => [ + 'name' => 'Europe', + 'latitude' => 54.5260, + 'longitude' => 15.2551 + ], + 'NA' => [ + 'name' => 'North America', + 'latitude' => 54.5260, + 'longitude' => -105.2551 + ], + 'OC' => [ + 'name' => 'Oceania', + 'latitude' => -22.7359, + 'longitude' => 140.0188 + ], + 'SA' => [ + 'name' => 'South America', + 'latitude' => -8.7832, + 'longitude' => -55.4915 + ], ]; diff --git a/app/config/locale/countries.php b/app/config/locale/countries.php index bd2cbbbaaa0..adfc5d76a61 100644 --- a/app/config/locale/countries.php +++ b/app/config/locale/countries.php @@ -1,209 +1,210 @@ ['name' => 'Afghanistan', 'latitude' => 33.0, 'longitude' => 66.0], + 'AO' => ['name' => 'Angola', 'latitude' => -12.5, 'longitude' => 18.5], + 'AL' => ['name' => 'Albania', 'latitude' => 41.0, 'longitude' => 20.0], + 'AD' => ['name' => 'Andorra', 'latitude' => 42.5, 'longitude' => 1.6], + 'AE' => ['name' => 'United Arab Emirates', 'latitude' => 24.0, 'longitude' => 54.0], + 'AR' => ['name' => 'Argentina', 'latitude' => -34.0, 'longitude' => -64.0], + 'AM' => ['name' => 'Armenia', 'latitude' => 40.0, 'longitude' => 45.0], + 'AG' => ['name' => 'Antigua and Barbuda', 'latitude' => 17.05, 'longitude' => -61.8], + 'AU' => ['name' => 'Australia', 'latitude' => -25.0, 'longitude' => 135.0], + 'AT' => ['name' => 'Austria', 'latitude' => 47.3, 'longitude' => 13.3], + 'AZ' => ['name' => 'Azerbaijan', 'latitude' => 40.5, 'longitude' => 47.5], + 'BI' => ['name' => 'Burundi', 'latitude' => -3.5, 'longitude' => 30.0], + 'BE' => ['name' => 'Belgium', 'latitude' => 50.8, 'longitude' => 4.0], + 'BJ' => ['name' => 'Benin', 'latitude' => 9.5, 'longitude' => 2.25], + 'BF' => ['name' => 'Burkina Faso', 'latitude' => 13.0, 'longitude' => -2.0], + 'BD' => ['name' => 'Bangladesh', 'latitude' => 24.0, 'longitude' => 90.0], + 'BG' => ['name' => 'Bulgaria', 'latitude' => 43.0, 'longitude' => 25.0], + 'BH' => ['name' => 'Bahrain', 'latitude' => 26.0, 'longitude' => 50.5], + 'BS' => ['name' => 'Bahamas', 'latitude' => 24.25, 'longitude' => -76.0], + 'BA' => ['name' => 'Bosnia and Herzegovina', 'latitude' => 44.0, 'longitude' => 18.0], + 'BY' => ['name' => 'Belarus', 'latitude' => 53.0, 'longitude' => 28.0], + 'BZ' => ['name' => 'Belize', 'latitude' => 17.25, 'longitude' => -88.75], + 'BO' => ['name' => 'Bolivia', 'latitude' => -17.0, 'longitude' => -65.0], + 'BR' => ['name' => 'Brazil', 'latitude' => -10.0, 'longitude' => -55.0], + 'BB' => ['name' => 'Barbados', 'latitude' => 13.17, 'longitude' => -59.53], + 'BN' => ['name' => 'Brunei', 'latitude' => 4.5, 'longitude' => 114.67], + 'BT' => ['name' => 'Bhutan', 'latitude' => 27.5, 'longitude' => 90.5], + 'BW' => ['name' => 'Botswana', 'latitude' => -22.0, 'longitude' => 24.0], + 'CF' => ['name' => 'Central African Republic', 'latitude' => 7.0, 'longitude' => 21.0], + 'CA' => ['name' => 'Canada', 'latitude' => 60.0, 'longitude' => -95.0], + 'CH' => ['name' => 'Switzerland', 'latitude' => 47.0, 'longitude' => 8.0], + 'CL' => ['name' => 'Chile', 'latitude' => -30.0, 'longitude' => -71.0], + 'CN' => ['name' => 'China', 'latitude' => 35.0, 'longitude' => 105.0], + 'CI' => ['name' => 'Côte d\'Ivoire', 'latitude' => 8.0, 'longitude' => -5.0], + 'CM' => ['name' => 'Cameroon', 'latitude' => 6.0, 'longitude' => 12.0], + 'CD' => ['name' => 'Democratic Republic of the Congo', 'latitude' => -2.5, 'longitude' => 23.5], + 'CG' => ['name' => 'Republic of the Congo', 'latitude' => -1.0, 'longitude' => 15.0], + 'CO' => ['name' => 'Colombia', 'latitude' => 4.0, 'longitude' => -72.0], + 'KM' => ['name' => 'Comoros', 'latitude' => -12.17, 'longitude' => 44.25], + 'CV' => ['name' => 'Cape Verde', 'latitude' => 16.0, 'longitude' => -24.0], + 'CR' => ['name' => 'Costa Rica', 'latitude' => 10.0, 'longitude' => -84.0], + 'CU' => ['name' => 'Cuba', 'latitude' => 21.5, 'longitude' => -80.0], + 'CY' => ['name' => 'Cyprus', 'latitude' => 35.0, 'longitude' => 33.0], + 'CZ' => ['name' => 'Czech Republic', 'latitude' => 49.75, 'longitude' => 15.5], + 'DE' => ['name' => 'Germany', 'latitude' => 51.0, 'longitude' => 9.0], + 'DJ' => ['name' => 'Djibouti', 'latitude' => 11.5, 'longitude' => 43.0], + 'DM' => ['name' => 'Dominica', 'latitude' => 15.42, 'longitude' => -61.33], + 'DK' => ['name' => 'Denmark', 'latitude' => 56.0, 'longitude' => 10.0], + 'DO' => ['name' => 'Dominican Republic', 'latitude' => 19.0, 'longitude' => -70.67], + 'DZ' => ['name' => 'Algeria', 'latitude' => 28.0, 'longitude' => 3.0], + 'EC' => ['name' => 'Ecuador', 'latitude' => -2.0, 'longitude' => -77.5], + 'EG' => ['name' => 'Egypt', 'latitude' => 27.0, 'longitude' => 30.0], + 'ER' => ['name' => 'Eritrea', 'latitude' => 15.0, 'longitude' => 39.0], + 'ES' => ['name' => 'Spain', 'latitude' => 40.0, 'longitude' => -4.0], + 'EE' => ['name' => 'Estonia', 'latitude' => 59.0, 'longitude' => 26.0], + 'ET' => ['name' => 'Ethiopia', 'latitude' => 8.0, 'longitude' => 38.0], + 'FI' => ['name' => 'Finland', 'latitude' => 64.0, 'longitude' => 26.0], + 'FJ' => ['name' => 'Fiji', 'latitude' => -18.0, 'longitude' => 175.0], + 'FR' => ['name' => 'France', 'latitude' => 46.0, 'longitude' => 2.0], + 'FM' => ['name' => 'Micronesia', 'latitude' => 6.92, 'longitude' => 158.25], + 'GA' => ['name' => 'Gabon', 'latitude' => -1.0, 'longitude' => 11.75], + 'GB' => ['name' => 'United Kingdom', 'latitude' => 54.0, 'longitude' => -2.0], + 'GE' => ['name' => 'Georgia', 'latitude' => 42.0, 'longitude' => 43.5], + 'GH' => ['name' => 'Ghana', 'latitude' => 8.0, 'longitude' => -2.0], + 'GN' => ['name' => 'Guinea', 'latitude' => 11.0, 'longitude' => -10.0], + 'GM' => ['name' => 'Gambia', 'latitude' => 13.47, 'longitude' => -16.57], + 'GW' => ['name' => 'Guinea-Bissau', 'latitude' => 12.0, 'longitude' => -15.0], + 'GQ' => ['name' => 'Equatorial Guinea', 'latitude' => 2.0, 'longitude' => 10.0], + 'GR' => ['name' => 'Greece', 'latitude' => 39.0, 'longitude' => 22.0], + 'GD' => ['name' => 'Grenada', 'latitude' => 12.12, 'longitude' => -61.67], + 'GT' => ['name' => 'Guatemala', 'latitude' => 15.5, 'longitude' => -90.25], + 'GY' => ['name' => 'Guyana', 'latitude' => 5.0, 'longitude' => -59.0], + 'HK' => ['name' => 'Hong Kong', 'latitude' => 22.25, 'longitude' => 114.17], + 'HN' => ['name' => 'Honduras', 'latitude' => 15.0, 'longitude' => -86.5], + 'HR' => ['name' => 'Croatia', 'latitude' => 45.17, 'longitude' => 15.5], + 'HT' => ['name' => 'Haiti', 'latitude' => 19.0, 'longitude' => -72.42], + 'HU' => ['name' => 'Hungary', 'latitude' => 47.0, 'longitude' => 20.0], + 'ID' => ['name' => 'Indonesia', 'latitude' => -5.0, 'longitude' => 120.0], + 'IN' => ['name' => 'India', 'latitude' => 20.0, 'longitude' => 77.0], + 'IE' => ['name' => 'Ireland', 'latitude' => 53.0, 'longitude' => -8.0], + 'IR' => ['name' => 'Iran', 'latitude' => 32.0, 'longitude' => 53.0], + 'IQ' => ['name' => 'Iraq', 'latitude' => 33.0, 'longitude' => 44.0], + 'IS' => ['name' => 'Iceland', 'latitude' => 65.0, 'longitude' => -18.0], + 'IL' => ['name' => 'Israel', 'latitude' => 31.5, 'longitude' => 34.75], + 'IT' => ['name' => 'Italy', 'latitude' => 42.83, 'longitude' => 12.83], + 'JM' => ['name' => 'Jamaica', 'latitude' => 18.25, 'longitude' => -77.5], + 'JO' => ['name' => 'Jordan', 'latitude' => 31.0, 'longitude' => 36.0], + 'JP' => ['name' => 'Japan', 'latitude' => 36.0, 'longitude' => 138.0], + 'KZ' => ['name' => 'Kazakhstan', 'latitude' => 48.0, 'longitude' => 68.0], + 'KE' => ['name' => 'Kenya', 'latitude' => 1.0, 'longitude' => 38.0], + 'KG' => ['name' => 'Kyrgyzstan', 'latitude' => 41.0, 'longitude' => 75.0], + 'KH' => ['name' => 'Cambodia', 'latitude' => 13.0, 'longitude' => 105.0], + 'KI' => ['name' => 'Kiribati', 'latitude' => 1.42, 'longitude' => 173.0], + 'KN' => ['name' => 'Saint Kitts and Nevis', 'latitude' => 17.33, 'longitude' => -62.75], + 'KR' => ['name' => 'South Korea', 'latitude' => 37.0, 'longitude' => 127.5], + 'KW' => ['name' => 'Kuwait', 'latitude' => 29.34, 'longitude' => 47.66], + 'LA' => ['name' => 'Laos', 'latitude' => 18.0, 'longitude' => 105.0], + 'LB' => ['name' => 'Lebanon', 'latitude' => 33.83, 'longitude' => 35.83], + 'LR' => ['name' => 'Liberia', 'latitude' => 6.5, 'longitude' => -9.5], + 'LY' => ['name' => 'Libya', 'latitude' => 25.0, 'longitude' => 17.0], + 'LC' => ['name' => 'Saint Lucia', 'latitude' => 13.88, 'longitude' => -61.13], + 'LI' => ['name' => 'Liechtenstein', 'latitude' => 47.17, 'longitude' => 9.53], + 'LK' => ['name' => 'Sri Lanka', 'latitude' => 7.0, 'longitude' => 81.0], + 'LS' => ['name' => 'Lesotho', 'latitude' => -29.5, 'longitude' => 28.5], + 'LT' => ['name' => 'Lithuania', 'latitude' => 56.0, 'longitude' => 24.0], + 'LU' => ['name' => 'Luxembourg', 'latitude' => 49.75, 'longitude' => 6.17], + 'LV' => ['name' => 'latitudevia', 'latitude' => 57.0, 'longitude' => 25.0], + 'MA' => ['name' => 'Morocco', 'latitude' => 32.0, 'longitude' => -5.0], + 'MC' => ['name' => 'Monaco', 'latitude' => 43.73, 'longitude' => 7.4], + 'MD' => ['name' => 'Moldova', 'latitude' => 47.0, 'longitude' => 29.0], + 'MG' => ['name' => 'Madagascar', 'latitude' => -20.0, 'longitude' => 47.0], + 'MV' => ['name' => 'Maldives', 'latitude' => 3.25, 'longitude' => 73.0], + 'MX' => ['name' => 'Mexico', 'latitude' => 23.0, 'longitude' => -102.0], + 'MH' => ['name' => 'Marshall Islands', 'latitude' => 9.0, 'longitude' => 168.0], + 'MK' => ['name' => 'North Macedonia', 'latitude' => 41.83, 'longitude' => 22.0], + 'ML' => ['name' => 'Mali', 'latitude' => 17.0, 'longitude' => -4.0], + 'MT' => ['name' => 'Malta', 'latitude' => 35.83, 'longitude' => 14.58], + 'MM' => ['name' => 'Myanmar', 'latitude' => 22.0, 'longitude' => 98.0], + 'ME' => ['name' => 'Montenegro', 'latitude' => 42.5, 'longitude' => 19.3], + 'MN' => ['name' => 'Mongolia', 'latitude' => 46.0, 'longitude' => 105.0], + 'MZ' => ['name' => 'Mozambique', 'latitude' => -18.25, 'longitude' => 35.0], + 'MR' => ['name' => 'Mauritania', 'latitude' => 20.0, 'longitude' => -12.0], + 'MU' => ['name' => 'Mauritius', 'latitude' => -20.28, 'longitude' => 57.55], + 'MW' => ['name' => 'Malawi', 'latitude' => -13.5, 'longitude' => 34.0], + 'MY' => ['name' => 'Malaysia', 'latitude' => 2.5, 'longitude' => 112.5], + 'NA' => ['name' => 'Namibia', 'latitude' => -22.0, 'longitude' => 17.0], + 'NE' => ['name' => 'Niger', 'latitude' => 16.0, 'longitude' => 8.0], + 'NG' => ['name' => 'Nigeria', 'latitude' => 10.0, 'longitude' => 8.0], + 'NI' => ['name' => 'Nicaragua', 'latitude' => 13.0, 'longitude' => -85.0], + 'NL' => ['name' => 'Netherlands', 'latitude' => 52.5, 'longitude' => 5.75], + 'NO' => ['name' => 'Norway', 'latitude' => 62.0, 'longitude' => 10.0], + 'NP' => ['name' => 'Nepal', 'latitude' => 28.0, 'longitude' => 84.0], + 'NR' => ['name' => 'Nauru', 'latitude' => -0.53, 'longitude' => 166.92], + 'NZ' => ['name' => 'New Zealand', 'latitude' => -41.0, 'longitude' => 174.0], + 'OM' => ['name' => 'Oman', 'latitude' => 21.0, 'longitude' => 57.0], + 'PK' => ['name' => 'Pakistan', 'latitude' => 30.0, 'longitude' => 70.0], + 'PS' => ['name' => 'Palestine', 'latitude' => 31.9, 'longitude' => 35.2], + 'PA' => ['name' => 'Panama', 'latitude' => 9.0, 'longitude' => -80.0], + 'PE' => ['name' => 'Peru', 'latitude' => -10.0, 'longitude' => -76.0], + 'PH' => ['name' => 'Philippines', 'latitude' => 13.0, 'longitude' => 122.0], + 'PW' => ['name' => 'Palau', 'latitude' => 7.5, 'longitude' => 134.5], + 'PG' => ['name' => 'Papua New Guinea', 'latitude' => -6.0, 'longitude' => 147.0], + 'PL' => ['name' => 'Poland', 'latitude' => 52.0, 'longitude' => 20.0], + 'KP' => ['name' => 'North Korea', 'latitude' => 40.0, 'longitude' => 127.0], + 'PT' => ['name' => 'Portugal', 'latitude' => 39.5, 'longitude' => -8.0], + 'PY' => ['name' => 'Paraguay', 'latitude' => -23.0, 'longitude' => -58.0], + 'QA' => ['name' => 'Qatar', 'latitude' => 25.5, 'longitude' => 51.25], + 'RO' => ['name' => 'Romania', 'latitude' => 46.0, 'longitude' => 25.0], + 'RU' => ['name' => 'Russia', 'latitude' => 60.0, 'longitude' => 100.0], + 'RW' => ['name' => 'Rwanda', 'latitude' => -2.0, 'longitude' => 30.0], + 'SA' => ['name' => 'Saudi Arabia', 'latitude' => 25.0, 'longitude' => 45.0], + 'SD' => ['name' => 'Sudan', 'latitude' => 15.0, 'longitude' => 30.0], + 'SN' => ['name' => 'Senegal', 'latitude' => 14.0, 'longitude' => -14.0], + 'SG' => ['name' => 'Singapore', 'latitude' => 1.37, 'longitude' => 103.8], + 'SB' => ['name' => 'Solomon Islands', 'latitude' => -8.0, 'longitude' => 159.0], + 'SL' => ['name' => 'Sierra Leone', 'latitude' => 8.5, 'longitude' => -11.5], + 'SV' => ['name' => 'El Salvador', 'latitude' => 13.83, 'longitude' => -88.92], + 'SM' => ['name' => 'San Marino', 'latitude' => 43.77, 'longitude' => 12.42], + 'SO' => ['name' => 'Somalia', 'latitude' => 10.0, 'longitude' => 49.0], + 'RS' => ['name' => 'Serbia', 'latitude' => 44.0, 'longitude' => 21.0], + 'SS' => ['name' => 'South Sudan', 'latitude' => 8.0, 'longitude' => 30.0], + 'ST' => ['name' => 'São Tomé and Príncipe', 'latitude' => 1.0, 'longitude' => 7.0], + 'SR' => ['name' => 'Suriname', 'latitude' => 4.0, 'longitude' => -56.0], + 'SK' => ['name' => 'Slovakia', 'latitude' => 48.67, 'longitude' => 19.5], + 'SI' => ['name' => 'Slovenia', 'latitude' => 46.0, 'longitude' => 15.0], + 'SE' => ['name' => 'Sweden', 'latitude' => 62.0, 'longitude' => 15.0], + 'SZ' => ['name' => 'Eswatini', 'latitude' => -26.5, 'longitude' => 31.5], + 'SC' => ['name' => 'Seychelles', 'latitude' => -4.58, 'longitude' => 55.67], + 'SY' => ['name' => 'Syria', 'latitude' => 35.0, 'longitude' => 38.0], + 'TD' => ['name' => 'Chad', 'latitude' => 15.0, 'longitude' => 19.0], + 'TG' => ['name' => 'Togo', 'latitude' => 8.0, 'longitude' => 1.17], + 'TH' => ['name' => 'Thailand', 'latitude' => 15.0, 'longitude' => 100.0], + 'TJ' => ['name' => 'Tajikistan', 'latitude' => 39.0, 'longitude' => 71.0], + 'TM' => ['name' => 'Turkmenistan', 'latitude' => 40.0, 'longitude' => 60.0], + 'TL' => ['name' => 'Timor-Leste', 'latitude' => -8.83, 'longitude' => 125.92], + 'TO' => ['name' => 'Tonga', 'latitude' => -20.0, 'longitude' => -175.0], + 'TT' => ['name' => 'Trinidad and Tobago', 'latitude' => 11.0, 'longitude' => -61.0], + 'TN' => ['name' => 'Tunisia', 'latitude' => 34.0, 'longitude' => 9.0], + 'TR' => ['name' => 'Turkey', 'latitude' => 39.0, 'longitude' => 35.0], + 'TV' => ['name' => 'Tuvalu', 'latitude' => -8.0, 'longitude' => 178.0], + 'TZ' => ['name' => 'Tanzania', 'latitude' => -6.0, 'longitude' => 35.0], + 'TW' => ['name' => 'Taiwan', 'latitude' => 23.5, 'longitude' => 121.0], + 'UG' => ['name' => 'Uganda', 'latitude' => 1.0, 'longitude' => 32.0], + 'UA' => ['name' => 'Ukraine', 'latitude' => 49.0, 'longitude' => 32.0], + 'UY' => ['name' => 'Uruguay', 'latitude' => -33.0, 'longitude' => -56.0], + 'US' => ['name' => 'United States', 'latitude' => 38.0, 'longitude' => -97.0], + 'UZ' => ['name' => 'Uzbekistan', 'latitude' => 41.0, 'longitude' => 64.0], + 'VA' => ['name' => 'Vatican City', 'latitude' => 41.9, 'longitude' => 12.45], + 'VC' => ['name' => 'Saint Vincent and the Grenadines', 'latitude' => 13.25, 'longitude' => -61.2], + 'VE' => ['name' => 'Venezuela', 'latitude' => 8.0, 'longitude' => -66.0], + 'VN' => ['name' => 'Vietnam', 'latitude' => 16.0, 'longitude' => 106.0], + 'VU' => ['name' => 'Vanuatu', 'latitude' => -16.0, 'longitude' => 167.0], + 'WS' => ['name' => 'Samoa', 'latitude' => -13.58, 'longitude' => -172.33], + 'YE' => ['name' => 'Yemen', 'latitude' => 15.0, 'longitude' => 48.0], + 'ZA' => ['name' => 'South Africa', 'latitude' => -29.0, 'longitude' => 24.0], + 'ZM' => ['name' => 'Zambia', 'latitude' => -15.0, 'longitude' => 30.0], + 'ZW' => ['name' => 'Zimbabwe', 'latitude' => -20.0, 'longitude' => 30.0], ]; diff --git a/app/config/locale/templates/email-inner-base.tpl b/app/config/locale/templates/email-inner-base.tpl index 52e1093ffb1..8cef391d2fb 100644 --- a/app/config/locale/templates/email-inner-base.tpl +++ b/app/config/locale/templates/email-inner-base.tpl @@ -1,9 +1,9 @@ -

{{hello}},

+

{{hello}}

{{body}}

{{redirect}}

{{footer}}

- {{thanks}}, + {{thanks}}
{{signature}}

\ No newline at end of file diff --git a/app/config/locale/templates/email-magic-url.tpl b/app/config/locale/templates/email-magic-url.tpl index def1ea23958..21988c5bc13 100644 --- a/app/config/locale/templates/email-magic-url.tpl +++ b/app/config/locale/templates/email-magic-url.tpl @@ -1,4 +1,4 @@ -

{{hello}},

+

{{hello}}

{{optionButton}}

diff --git a/app/config/locale/templates/email-mfa-challenge.tpl b/app/config/locale/templates/email-mfa-challenge.tpl index e3cb6b444d5..3e55227055f 100644 --- a/app/config/locale/templates/email-mfa-challenge.tpl +++ b/app/config/locale/templates/email-mfa-challenge.tpl @@ -1,4 +1,4 @@ -

{{hello}},

+

{{hello}}

{{description}}

diff --git a/app/config/locale/templates/email-otp.tpl b/app/config/locale/templates/email-otp.tpl index 9552185f845..84802c16031 100644 --- a/app/config/locale/templates/email-otp.tpl +++ b/app/config/locale/templates/email-otp.tpl @@ -1,4 +1,4 @@ -

{{hello}},

+

{{hello}}

{{description}}

diff --git a/app/config/locale/templates/email-session-alert.tpl b/app/config/locale/templates/email-session-alert.tpl index 20cecf212db..bd2f52af79c 100644 --- a/app/config/locale/templates/email-session-alert.tpl +++ b/app/config/locale/templates/email-session-alert.tpl @@ -1,4 +1,4 @@ -

{{hello}},

+

{{hello}}

{{body}}

diff --git a/app/config/locale/translations/af.json b/app/config/locale/translations/af.json index 238c6777bd2..e68fda2c753 100644 --- a/app/config/locale/translations/af.json +++ b/app/config/locale/translations/af.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s span", "emails.verification.subject": "Rekening Bevestiging", - "emails.verification.hello": "Goeie dag {{user}}", + "emails.verification.hello": "Goeie dag {{user}},", "emails.verification.body": "Volg hierdie skakel om u e-pos adres te bevestig.", "emails.verification.footer": "Ignoreer gerus hierdie boodskap as u nie die versoek gestuur het om u adres te bevestig nie.", - "emails.verification.thanks": "Baie dankie", + "emails.verification.thanks": "Baie dankie,", "emails.verification.signature": "Die {{project}} span", "emails.magicSession.subject": "Teken aan", - "emails.magicSession.hello": "Goeie dag", + "emails.magicSession.hello": "Goeie dag,", "emails.magicSession.body": "Volg hierdie skakel om in te teken.", "emails.magicSession.footer": "Ignoreer gerus hierdie boodskap as u nie die versoek gestuur het om met die' adres in te teken nie.", - "emails.magicSession.thanks": "Baie dankie", + "emails.magicSession.thanks": "Baie dankie,", "emails.magicSession.signature": "Die {{project}} span", "emails.recovery.subject": "Herstel Wagwoord", - "emails.recovery.hello": "Goeie dag {{user}}", + "emails.recovery.hello": "Goeie dag {{user}},", "emails.recovery.body": "Volg hierdie skakel om u {{project}} wagwoord te herstel.", "emails.recovery.footer": "Ignoreer gerus hierdie boodskap as u nie die versoek gestuur het om u wagwoord te herstel nie.", - "emails.recovery.thanks": "Baie dankie", + "emails.recovery.thanks": "Baie dankie,", "emails.recovery.signature": "Die {{project}} span", "emails.invitation.subject": "Uitnodiging om by die %s span aan te sluit by %s", "emails.invitation.hello": "Goeie dag,", "emails.invitation.body": "Hierdie boodskap is aan u gestuur omdat {{owner}} u uitnooi om 'n lid van die {{team}} groep by die {{project}} projek te wees.", "emails.invitation.footer": "As u nie belang stel nie, kan u gerus hierdie boodskap ignoreer.", - "emails.invitation.thanks": "Baie dankie", + "emails.invitation.thanks": "Baie dankie,", "emails.invitation.signature": "Die {{project}} span", "locale.country.unknown": "Onbekend", "countries.af": "Afghanistan", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Die veiligheidsfrase vir hierdie e-pos is {{phrase}}. Jy kan hierdie e-pos vertrou as hierdie frase ooreenstem met die frase wat gewys is tydens aanmelding.", "emails.otpSession.thanks": "Dankie,", "emails.otpSession.signature": "{{project}} span" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/ar-ma.json b/app/config/locale/translations/ar-ma.json index 453de25c801..efd2e95c317 100644 --- a/app/config/locale/translations/ar-ma.json +++ b/app/config/locale/translations/ar-ma.json @@ -4,34 +4,34 @@ "settings.direction": "rtl", "emails.sender": "فرقة %s", "emails.verification.subject": "التيْقان ديال الحساب", - "emails.verification.hello": "السلام {{user}}", + "emails.verification.hello": "السلام {{user}}،", "emails.verification.body": "تبّع هاد الوصلة باش تيقّن لادريسة تاع ليميل ديالك.", "emails.verification.footer": "إلا ماشي نتا اللي طلبتي تيقّن هاد لادريسة تاع ليميل، ممكن تنخّل هاد البرية.", - "emails.verification.thanks": "شكرا", + "emails.verification.thanks": "شكرا،", "emails.verification.signature": "فرقة {{project}}", "emails.magicSession.subject": "تكونيكطا", - "emails.magicSession.hello": "السلام,", + "emails.magicSession.hello": "السلام،", "emails.magicSession.body": "تبّع هاد الوصلة باش تتكونيكطا.", "emails.magicSession.footer": "إلا ماشي نتا اللي طلبتي تتكونيكطا بهاد ليميل، ممكن تنخّل هاد البرية.", - "emails.magicSession.thanks": "شكرا", + "emails.magicSession.thanks": "شكرا،", "emails.magicSession.signature": "فرقة {{project}}", "emails.recovery.subject": "تبدال كلمة السر", - "emails.recovery.hello": "السلام {{user}}", + "emails.recovery.hello": "السلام {{user}}،", "emails.recovery.body": "تبّع هاد الوصلة باش تبدّل كلمة السر تاع {{project}}.", "emails.recovery.footer": "إلا ماشي نتا اللي طلبتي تبدّل كلمة السر، ممكن تنخّل هاد البرية.", - "emails.recovery.thanks": "شكرا", + "emails.recovery.thanks": "شكرا،", "emails.recovery.signature": "فرقة {{project}}", "emails.invitation.subject": "عراضة ل فرقة %s ف %s", - "emails.invitation.hello": "السلام", + "emails.invitation.hello": "السلام،", "emails.invitation.body": "هاد البرية تصيفطات ليك حيت {{owner}} بغى يعرض عليك تولّي عضو ف فرقة {{team}} عند {{project}}.", "emails.invitation.footer": "إلا كنتي ما مسوّقش, ممكن تنخّل هاد البرية.", - "emails.invitation.thanks": "شكرا", + "emails.invitation.thanks": "شكرا،", "emails.invitation.signature": "فرقة {{project}}", "emails.certificate.subject": "السرتافيكة فشلات ل %s", - "emails.certificate.hello": "السلام", + "emails.certificate.hello": "السلام،", "emails.certificate.body": "السرتافيكة ديال الضومين ديالك '{{domain}}' ما قدّاتش تجينيرا. هادي هي المحاولة نمرة {{attempt}}, السبب ديال هاد الفشل هو: {{error}}", "emails.certificate.footer": "السرتافيكة الفايتة ديالك غاتبقى مزيانة لمدة 30 يوم من عند أول فشل. كانشجعوك بزاف أنك تبقشش فهاد الموضوع, وا إلّا الضومين ديالك ما غايبقاش خدّام فيه الـ SSL.", - "emails.certificate.thanks": "شكرا", + "emails.certificate.thanks": "شكرا،", "emails.certificate.signature": "فرقة {{project}}", "locale.country.unknown": "ما معروفش", "countries.af": "أفغانستان", diff --git a/app/config/locale/translations/ar.json b/app/config/locale/translations/ar.json index cd45b32e029..1d67c2ecf7a 100644 --- a/app/config/locale/translations/ar.json +++ b/app/config/locale/translations/ar.json @@ -4,28 +4,28 @@ "settings.direction": "rtl", "emails.sender": "فريق %s", "emails.verification.subject": "تأكيد الحساب", - "emails.verification.hello": "مرحبا {{user}}", + "emails.verification.hello": "مرحبا {{user}}،", "emails.verification.body": "برجاء اتباع الرابط التالي لتأكيد بريدك الإلكتروني", "emails.verification.footer": "لو لم تطلب تأكيد هذا البريد الإلكتروني، يمكنك تجاهل هذه الرسالة", - "emails.verification.thanks": "شكرا", + "emails.verification.thanks": "شكرا،", "emails.verification.signature": "فريق {{project}}", "emails.magicSession.subject": "تسجيل الدخول", - "emails.magicSession.hello": "أهلا", + "emails.magicSession.hello": "أهلا،", "emails.magicSession.body": "اتبع هذا الرابط لتسجيل الدخول", "emails.magicSession.footer": "لو لم تطلب تسجيل الدخول بهذا البريد الاكتروني ، يمكنك تجاهل هذه الرسالة", - "emails.magicSession.thanks": "شكرا", + "emails.magicSession.thanks": "شكرا،", "emails.magicSession.signature": "فريق {{project}}", "emails.recovery.subject": "تغيير كلمة السر", - "emails.recovery.hello": "أهلا {{user}}", + "emails.recovery.hello": "أهلا {{user}}،", "emails.recovery.body": "برجاء اتباع الراط التالي لتغيير كلمة السر الخاصة بـ{{project}}", "emails.recovery.footer": "لولم تطلب تغيير كلمة السر، يمكنك تجاهل هذه الرسالة", - "emails.recovery.thanks": "شكرا", + "emails.recovery.thanks": "شكرا،", "emails.recovery.signature": "فريق {{project}}", "emails.invitation.subject": "دعوة لفريق %s في %s", - "emails.invitation.hello": "أهلا", + "emails.invitation.hello": "أهلا،", "emails.invitation.body": "هذة الرسالة تم ارسالها لك لأن {{owner}} ارسل لك دعوة لتكون عضوا بفريق {{team}} في {{project}}", "emails.invitation.footer": "اذا كنت غير مهتم، يمكنك تجاهل هذه الرسالة", - "emails.invitation.thanks": "شكرا", + "emails.invitation.thanks": "شكرا،", "emails.invitation.signature": "فريق {{project}}", "locale.country.unknown": "مجهول", "countries.af": "أفغانستان", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "عبارة الأمان لهذا البريد الإلكتروني هي {{phrase}}. يمكنك الوثوق بهذا البريد الإلكتروني إذا كانت هذه العبارة تتطابق مع العبارة المعروضة أثناء تسجيل الدخول.", "emails.otpSession.thanks": "شكرًا،", "emails.otpSession.signature": "فريق {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/as.json b/app/config/locale/translations/as.json index aa42483ddee..572ed80f1a3 100644 --- a/app/config/locale/translations/as.json +++ b/app/config/locale/translations/as.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s দল", "emails.verification.subject": "একাউণ্ট প্ৰমাণীকৰণ", - "emails.verification.hello": "নমস্কাৰ {{user}}", + "emails.verification.hello": "নমস্কাৰ {{user}},", "emails.verification.body": "আপোনাৰ ইমেইল ঠিকনা প্ৰমাণিত কৰিবলৈ এই লিংকটো অনুসৰণ কৰক।", "emails.verification.footer": "যদি আপুনি এই ঠিকনাটো সত্যাপিত কৰিবলৈ কোৱা নাই, আপুনি এই বাৰ্তাটো উপেক্ষা কৰিব পাৰে।", - "emails.verification.thanks": "ধন্যবাদ", + "emails.verification.thanks": "ধন্যবাদ,", "emails.verification.signature": "{{project}} দল", "emails.magicSession.subject": "লগইন", - "emails.magicSession.hello": "নমস্কাৰ", + "emails.magicSession.hello": "নমস্কাৰ,", "emails.magicSession.body": "লগইন কৰিবলৈ এই লিংকটো অনুসৰণ কৰক।", "emails.magicSession.footer": "যদি আপুনি এই ইমেইল ব্যৱহাৰ কৰি লগইন কৰিবলৈ কোৱা নাছিল, আপুনি এই বাৰ্তাটো উপেক্ষা কৰিব পাৰে।", - "emails.magicSession.thanks": "ধন্যবাদ", + "emails.magicSession.thanks": "ধন্যবাদ,", "emails.magicSession.signature": "{{project}} দল", "emails.recovery.subject": "পাছৱাৰ্ড ৰিছেট", - "emails.recovery.hello": "ধন্যবাদ {{user}}", + "emails.recovery.hello": "ধন্যবাদ {{user}},", "emails.recovery.body": "আপোনাৰ {{project}} পাছৱৰ্ড ৰিছেট কৰিবলৈ এই লিংকটো অনুসৰণ কৰক।.", "emails.recovery.footer": "যদি আপুনি আপোনাৰ পাছৱৰ্ড ৰিছেট কৰিবলৈ কোৱা নাছিল, আপুনি এই বাৰ্তাটো উপেক্ষা কৰিব পাৰে।", - "emails.recovery.thanks": "ধন্যবাদ", + "emails.recovery.thanks": "ধন্যবাদ,", "emails.recovery.signature": "{{project}} দল", "emails.invitation.subject": "%s বছৰত %s দললৈ নিমন্ত্ৰণ", - "emails.invitation.hello": "নমস্কাৰ", + "emails.invitation.hello": "নমস্কাৰ,", "emails.invitation.body": "এই মেইলটো আপোনালৈ প্ৰেৰণ কৰা হৈছিল কাৰণ {{owner}} জনে আপোনাক {{project}} বছৰবয়সত {{team}} দলৰ সদস্য হ'বলৈ আমন্ত্ৰণ জনাব বিচাৰিছিল।", "emails.invitation.footer": "যদি আপুনি আগ্ৰহী নহয়, আপুনি এই বাৰ্তাটো উপেক্ষা কৰিব পাৰে।", - "emails.invitation.thanks": "ধন্যবাদ", + "emails.invitation.thanks": "ধন্যবাদ,", "emails.invitation.signature": "{{project}} দল", "locale.country.unknown": "অজ্ঞাত ", "countries.af": "আফগানিস্তান ", @@ -245,10 +245,10 @@ "emails.otpSession.thanks": "ধন্যবাদ,", "emails.otpSession.signature": "{{project}} দল", "emails.certificate.subject": "%sৰ বাবে প্ৰমাণপত্ৰ ব্যৰ্থতা", - "emails.certificate.hello": "নমস্কাৰ", + "emails.certificate.hello": "নমস্কাৰ,", "emails.certificate.body": "আপোনাৰ ডোমেইন '{{domain}}' ৰ বাবে প্ৰমাণপত্ৰটো উত্‌পন্ন কৰিব পৰা নগ'ল। এয়া প্ৰচেষ্টা নম্বৰ {{attempt}}, আৰু বিফলতাৰ কাৰণ হ'ল: {{error}}", "emails.certificate.footer": "আপোনাৰ পূৰ্বৰ প্ৰমাণপত্ৰটো প্ৰথম ব্ৰিফল হোৱাৰ দিনৰ পৰা ৩০ দিনলৈ বৈধ থাকিব। আমি এই ঘটনাটোৰ তদন্ত কৰিবলৈ উচ্চ পৰামৰ্শ দিয়ে, অন্যথা আপোনাৰ ডোমেইনটো অবৈধ SSL যোগাযোগ অবিহনে থাকিব।", - "emails.certificate.thanks": "ধন্যবাদ", + "emails.certificate.thanks": "ধন্যবাদ,", "emails.certificate.signature": "{{project}} দল", "sms.verification.body": "{{secret}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/az.json b/app/config/locale/translations/az.json index df1264fe8dc..5988c517867 100644 --- a/app/config/locale/translations/az.json +++ b/app/config/locale/translations/az.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s Komandası", "emails.verification.subject": "Hesab Doğrulama", - "emails.verification.hello": "Salam {{user}}", + "emails.verification.hello": "Salam {{user}},", "emails.verification.body": "E-poçt ünvanınızı təsdiq etmək üçün bu linki izləyin.", "emails.verification.footer": "Bu ünvanı doğrulamağı xahiş etməmisinizsə, bu mesajı gözardı edə bilərsiniz.", - "emails.verification.thanks": "Təşəkkürlər", + "emails.verification.thanks": "Təşəkkürlər,", "emails.verification.signature": "{{project}} komandası", "emails.magicSession.subject": "Daxil Olmaq", - "emails.magicSession.hello": "Salam", + "emails.magicSession.hello": "Salam,", "emails.magicSession.body": "Daxil olmaq üçün bu linki izləyin.", "emails.magicSession.footer": "Bu e-poçtdan istifadə edərək giriş istəməmisinizsə, bu mesajı görməməzlikdən gələ bilərsiniz.", - "emails.magicSession.thanks": "Təşəkkürlər", + "emails.magicSession.thanks": "Təşəkkürlər,", "emails.magicSession.signature": "{{project}} komandası", "emails.recovery.subject": "Şifrə Sıfırlanması", - "emails.recovery.hello": "Salam {{user}}", + "emails.recovery.hello": "Salam {{user}},", "emails.recovery.body": "{{project}} şifrənizi sıfırlamaq üçün bu linki izləyin.", "emails.recovery.footer": "Şifrənizi sıfırlamağı xahiş etməmisinizsə, bu mesajı gözardı edə bilərsiniz.", - "emails.recovery.thanks": "Təşəkkürlər", + "emails.recovery.thanks": "Təşəkkürlər,", "emails.recovery.signature": "{{project}} komandası", "emails.invitation.subject": "%s Komandasına Dəvət %sdə", - "emails.invitation.hello": "Salam", + "emails.invitation.hello": "Salam,", "emails.invitation.body": "{{owner}}, {{project}}də {{team}} komandasına üzv olmağa dəvət etmək istədiyi üçün bu məktub sizə göndərildi.", "emails.invitation.footer": "Əgər maraqlanmırsınızsa, bu mesajı gözardı edə bilərsiniz.", - "emails.invitation.thanks": "Təşəkkürlər", + "emails.invitation.thanks": "Təşəkkürlər,", "emails.invitation.signature": "{{project}} komandası", "locale.country.unknown": "Naməlum", "countries.af": "Əfqanıstan", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Bu e-poçtun təhlükəsizlik ifadəsi {{phrase}}-dir. Əgər bu ifadə daxil olarkən göstərilən ifadə ilə üst-üstə düşürsə, bu e-poçta etibar edə bilərsiniz.", "emails.otpSession.thanks": "Sağ olun,", "emails.otpSession.signature": "{{project}} komandası" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/be.json b/app/config/locale/translations/be.json index a33916f6233..f03a9d5bef4 100644 --- a/app/config/locale/translations/be.json +++ b/app/config/locale/translations/be.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "Каманда %s", "emails.verification.subject": "Верыфікацыя акаўнта", - "emails.verification.hello": "Прывітанне {{user}}", + "emails.verification.hello": "Прывітанне {{user}},", "emails.verification.body": "Перайдзіце па гэтай спасылцы, каб пацвердзіць свой адрас электроннай пошты", "emails.verification.footer": "Калі вы не запытвалі пацвярджэнне гэтага адрасу, праігнаруйце гэтае паведамленне.", - "emails.verification.thanks": "Дзякуем", + "emails.verification.thanks": "Дзякуем,", "emails.verification.signature": "каманда {{project}}", "emails.magicSession.subject": "Лагін", - "emails.magicSession.hello": "Прывітанне", + "emails.magicSession.hello": "Прывітанне,", "emails.magicSession.body": "Перайдзіце па спасылцы, каб увайсці.", "emails.magicSession.footer": "Калі вы не прасілі ўвайсці, выкарыстоўваючы гэты адрас электроннай пошты, праігнаруйце гэтае паведамленне.", - "emails.magicSession.thanks": "Дзякуем", + "emails.magicSession.thanks": "Дзякуем,", "emails.magicSession.signature": "каманда {{project}}", "emails.recovery.subject": "Скід пароля", - "emails.recovery.hello": "Прывітанне, {{user}}", + "emails.recovery.hello": "Прывітанне, {{user}},", "emails.recovery.body": "Перайдзіце па гэтай спасылцы, каб скінуць пароль для праекта {{project}}.", "emails.recovery.footer": "Калі вы не прасілі скінуць пароль, вы можаце праігнараваць гэта паведамленне.", - "emails.recovery.thanks": "Дзякуем", + "emails.recovery.thanks": "Дзякуем,", "emails.recovery.signature": "каманда {{project}}", "emails.invitation.subject": "Запрошення до Команди %s у %s", - "emails.invitation.hello": "Прывітанне", + "emails.invitation.hello": "Прывітанне,", "emails.invitation.body": "Гэта паведамленне было адпраўлена вам, таму што {{owner}} хацеў запрасіць вас стаць членам каманды {{team}} у {{project}}.", "emails.invitation.footer": "Калі вам гэта не цікава, вы можаце праігнараваць гэтае паведамленне.", - "emails.invitation.thanks": "Дзякуем", + "emails.invitation.thanks": "Дзякуем,", "emails.invitation.signature": "каманда {{project}}", "locale.country.unknown": "Невядомы", "countries.af": "Афганістан", @@ -245,10 +245,10 @@ "emails.otpSession.thanks": "Дзякуй,", "emails.otpSession.signature": "каманда {{project}}", "emails.certificate.subject": "Сведчанне няўдалае для %s", - "emails.certificate.hello": "Прывітанне", + "emails.certificate.hello": "Прывітанне,", "emails.certificate.body": "Сертыфікат для вашага дамена '{{domain}}' не можа быць створаны. Гэта спроба нумар {{attempt}}, і прычынай няўдачы з'яўляецца: {{error}}", "emails.certificate.footer": "Ваш папярэдні сертыфікат будзе дзейнічаць 30 дзён з моманту першай няўдачы. Мы высока рэкамендуем расследаваць гэтую сітуацыю, інакш ваш дамен апынецца без дзейнага сертыфіката SSL-злучэння.", - "emails.certificate.thanks": "Дзякуй", + "emails.certificate.thanks": "Дзякуй,", "emails.certificate.signature": "каманда {{project}}", "sms.verification.body": "{{secret}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/bg.json b/app/config/locale/translations/bg.json index 2dad3aecbe5..086c6b283e4 100644 --- a/app/config/locale/translations/bg.json +++ b/app/config/locale/translations/bg.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s Екип", "emails.verification.subject": "", - "emails.verification.hello": "", + "emails.verification.hello": ",", "emails.verification.body": "", "emails.verification.footer": "", - "emails.verification.thanks": "", + "emails.verification.thanks": ",", "emails.verification.signature": "", "emails.magicSession.subject": "", - "emails.magicSession.hello": "", + "emails.magicSession.hello": ",", "emails.magicSession.body": "", "emails.magicSession.footer": "", - "emails.magicSession.thanks": "", + "emails.magicSession.thanks": ",", "emails.magicSession.signature": "", "emails.recovery.subject": "", - "emails.recovery.hello": "", + "emails.recovery.hello": ",", "emails.recovery.body": "", "emails.recovery.footer": "", - "emails.recovery.thanks": "", + "emails.recovery.thanks": ",", "emails.recovery.signature": "", "emails.invitation.subject": "", - "emails.invitation.hello": "", + "emails.invitation.hello": ",", "emails.invitation.body": "", "emails.invitation.footer": "", - "emails.invitation.thanks": "", + "emails.invitation.thanks": ",", "emails.invitation.signature": "", "locale.country.unknown": "Неизвестно", "countries.af": "Афганистан", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Фразата за сигурност за този имейл е {{phrase}}. Можете да се доверите на този имейл, ако тази фраза съвпада с фразата, показана по време на вписването.", "emails.otpSession.thanks": "Благодаря,", "emails.otpSession.signature": "екип на {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/bh.json b/app/config/locale/translations/bh.json index 347f6f5d31e..5cf06bd1dd8 100644 --- a/app/config/locale/translations/bh.json +++ b/app/config/locale/translations/bh.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s टीम", "emails.verification.subject": "खाता प्रमाणिकरण", - "emails.verification.hello": "नमस्ते {{user}}", + "emails.verification.hello": "नमस्ते {{user}},", "emails.verification.body": "ईमेल प्रमाणिकरण करे क लेल दिहल गइल लिंक फॉलो करें|", "emails.verification.footer": "अगर ई पता को सत्यापित करे के लिए ना कहाले, तो आप ई संदेश क अनदेखा कर सकत अछि।", - "emails.verification.thanks": "धन्यवाद", + "emails.verification.thanks": "धन्यवाद,", "emails.verification.signature": "{{project}} टीम", "emails.magicSession.subject": "लॉग इन करीं|", - "emails.magicSession.hello": "प्रणाम", + "emails.magicSession.hello": "प्रणाम,", "emails.magicSession.body": "लॉग इन करें लेल दिहल गइल लिंक फॉलो करें|", "emails.magicSession.footer": "अगर लॉग इन करे के लिए ना कहाले, तो आप ई संदेश क अनदेखा कर सकत अछि।", - "emails.magicSession.thanks": "धन्यवाद", + "emails.magicSession.thanks": "धन्यवाद,", "emails.magicSession.signature": "{{project}} टीम", "emails.recovery.subject": "पासवर्ड बदल क लेल|", - "emails.recovery.hello": "प्रणाम {{user}}", + "emails.recovery.hello": "प्रणाम {{user}},", "emails.recovery.body": "पासवर्ड बदल क लेल दिहल गइल लिंक फॉलो करें|", "emails.recovery.footer": "अगर पासवर्ड बदल क लेल ना कहाले, तो आप ई संदेश क अनदेखा कर सकत अछि।", - "emails.recovery.thanks": "धन्यवाद", + "emails.recovery.thanks": "धन्यवाद,", "emails.recovery.signature": "{{project}} टीम", "emails.invitation.subject": "%s टीम क %s पे न्योता देवे क लेल|", - "emails.invitation.hello": "प्रणाम", + "emails.invitation.hello": "प्रणाम,", "emails.invitation.body": "ई मेल आपके एही लेल भेजल गईल रहल काहे क {{owner}} आपके {{project}} क {{team}} टीम का सदस्य बनावे चाहित रहे|", "emails.invitation.footer": "अगर आवे क इच्छा ना होवत, तो आप ई संदेश क अनदेखा कर सकत अछि।", - "emails.invitation.thanks": "धन्यवाद", + "emails.invitation.thanks": "धन्यवाद,", "emails.invitation.signature": "{{project}} टीम", "locale.country.unknown": "अनजान", "countries.af": "अफ़ग़ानिस्तान", @@ -242,13 +242,13 @@ "emails.otpSession.description": "जब आपको सुरक्षित रूप से अपना {{project}} खाता में साइन इन करे खातिर कहल जाए तऽ निम्नलिखित सत्यापन कोड दर्ज करीं। ई 15 मिनट में खत्म हो जई।", "emails.otpSession.clientInfo": "एह साइन इन के अनुरोध {{agentClient}} पर {{agentDevice}} {{agentOs}} का प्रयोग करि कऽ कइल गइल बा। यदि तूँ एह साइन इन के अनुरोध ना कइले रहीं, त तूँ एह ईमेल के नजरअंदाज कर सकेला।", "emails.otpSession.securityPhrase": "एही ईमेल खातिर सुरक्षा वाक्य {{phrase}} हऽ। अगर ई वाक्य साइन इन कइला के समय देखावल गेल वाक्य से मेल खाता, त एह ईमेल पर भरोसा कर सकैत छी।", - "emails.otpSession.thanks": "धन्यवाद", + "emails.otpSession.thanks": "धन्यवाद,", "emails.otpSession.signature": "{{project}} टीम", "emails.certificate.subject": "%s लेल प्रमाणपत्र असफलта", - "emails.certificate.hello": "नमस्ते", + "emails.certificate.hello": "नमस्ते,", "emails.certificate.body": "आपके डोमेन '{{domain}}' के लिए प्रमाणपत्र नहीं बनाया जा सका। ई प्रयास संख्या {{attempt}} है, और ई असफलता के कारण रहे: {{error}}", "emails.certificate.footer": "तोहार पिछलका प्रमाणपत्र पहिल असफलता से 30 दिन धरी मान्य होईत। हम बहुत जोर देके सलाह देतानी कि एह मामला के जांच करीं, नहीं त तोहार डोमेन बिना कोनो मान्य SSL संवाद के रहि जाईत।", - "emails.certificate.thanks": "धन्यवाद", + "emails.certificate.thanks": "धन्यवाद,", "emails.certificate.signature": "{{project}} टीम", "sms.verification.body": "{{secret}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/bn.json b/app/config/locale/translations/bn.json index 897faea7c1a..495f56e012a 100644 --- a/app/config/locale/translations/bn.json +++ b/app/config/locale/translations/bn.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s টীম", "emails.verification.subject": "বিষয়", - "emails.verification.hello": "নমস্কার {{user}}", + "emails.verification.hello": "নমস্কার {{user}},", "emails.verification.body": "এই লিঙ্কের মাধ্যমে ইমেইল যাচাই করুন।", "emails.verification.footer": "আপনি যদি এই ঠিকানা যাচাই করতে না বলেন, তাহলে আপনি এই বার্তাটি উপেক্ষা করতে পারেন।", - "emails.verification.thanks": "ধন্যবাদ", + "emails.verification.thanks": "ধন্যবাদ,", "emails.verification.signature": "{{project}} টীম", "emails.magicSession.subject": "লগ ইন", - "emails.magicSession.hello": "নমস্কার", + "emails.magicSession.hello": "নমস্কার,", "emails.magicSession.body": "এই লিঙ্কের মাধ্যমে লগ ইন করুন।", "emails.magicSession.footer": "আপনি যদি এই ইমেলটি ব্যবহার করে লগইন করতে না বলেন, তাহলে আপনি এই বার্তাটি উপেক্ষা করতে পারেন।", - "emails.magicSession.thanks": "ধন্যবাদ", + "emails.magicSession.thanks": "ধন্যবাদ,", "emails.magicSession.signature": "{{project}} টীম", "emails.recovery.subject": "পাসওয়ার্ড রিসেট", - "emails.recovery.hello": "নমস্কার {{user}}", + "emails.recovery.hello": "নমস্কার {{user}},", "emails.recovery.body": "এই লিঙ্কের মাধ্যমে আপনার {{project}} পাসওয়ার্ড পুনরায় সেট করুন।", "emails.recovery.footer": "আপনি যদি আপনার পাসওয়ার্ড পুনরায় সেট করতে না বলেন, তাহলে আপনি এই বার্তাটি উপেক্ষা করতে পারেন।", - "emails.recovery.thanks": "ধন্যবাদ", + "emails.recovery.thanks": "ধন্যবাদ,", "emails.recovery.signature": "{{project}} টীম", "emails.invitation.subject": "%s টিমকে %s তে আমন্ত্রণ জানান", - "emails.invitation.hello": "নমস্কার", + "emails.invitation.hello": "নমস্কার,", "emails.invitation.body": "এই মেইলটি আপনাকে পাঠানো হয়েছে কারণ {{owner}} আপনাকে {{project}} এর সাথে যুক্ত {{team}} টিমের সদস্য হওয়ার জন্য আমন্ত্রণ জানাতে চেয়েছিলেন।", "emails.invitation.footer": "যদি এটি আপনার জন্য প্রয়োজনীয় না হয়, আপনি এই বার্তাটি উপেক্ষা করতে পারেন।", - "emails.invitation.thanks": "ধন্যবাদ", + "emails.invitation.thanks": "ধন্যবাদ,", "emails.invitation.signature": "{{project}} টীম", "locale.country.unknown": "অজানা", "countries.af": "আফগানিস্তান", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "এই ইমেইলের জন্য সুরক্ষা বাক্য হলো {{phrase}}। যদি এই বাক্যটি সাইন ইনের সময় দেখানো বাক্যের সাথে মেলে, তাহলে আপনি এই ইমেইলটিকে বিশ্বাস করতে পারেন।", "emails.otpSession.thanks": "ধন্যবাদ,", "emails.otpSession.signature": "{{project}} দল" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/bs.json b/app/config/locale/translations/bs.json index 1ce2d57a3ea..1c69619c012 100644 --- a/app/config/locale/translations/bs.json +++ b/app/config/locale/translations/bs.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s Tim", "emails.verification.subject": "", - "emails.verification.hello": "", + "emails.verification.hello": ",", "emails.verification.body": "", "emails.verification.footer": "", - "emails.verification.thanks": "", + "emails.verification.thanks": ",", "emails.verification.signature": "", "emails.magicSession.subject": "", - "emails.magicSession.hello": "", + "emails.magicSession.hello": ",", "emails.magicSession.body": "", "emails.magicSession.footer": "", - "emails.magicSession.thanks": "", + "emails.magicSession.thanks": ",", "emails.magicSession.signature": "", "emails.recovery.subject": "", - "emails.recovery.hello": "", + "emails.recovery.hello": ",", "emails.recovery.body": "", "emails.recovery.footer": "", - "emails.recovery.thanks": "", + "emails.recovery.thanks": ",", "emails.recovery.signature": "", "emails.invitation.subject": "", - "emails.invitation.hello": "", + "emails.invitation.hello": ",", "emails.invitation.body": "", "emails.invitation.footer": "", - "emails.invitation.thanks": "", + "emails.invitation.thanks": ",", "emails.invitation.signature": "", "locale.country.unknown": "Nepoznat", "countries.af": "Afganistan", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Sigurnosna fraza za ovaj email je {{phrase}}. Možete vjerovati ovom emailu ako se ova fraza podudara sa frazom prikazanom prilikom prijave.", "emails.otpSession.thanks": "Hvala,", "emails.otpSession.signature": "tim {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/ca.json b/app/config/locale/translations/ca.json index 94e3ae24c50..98940a4a480 100644 --- a/app/config/locale/translations/ca.json +++ b/app/config/locale/translations/ca.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s Equip", "emails.verification.subject": "Verificació del compte", - "emails.verification.hello": "Hola {{user}}", + "emails.verification.hello": "Hola {{user}},", "emails.verification.body": "Accedeix a aquest enllaç per tal de verificar la teva adreça electrònica.", "emails.verification.footer": "Si no has sol·licitat la verificació d'aquesta adreça electrònica, pots ignorar aquest missatge.", - "emails.verification.thanks": "Gràcies", + "emails.verification.thanks": "Gràcies,", "emails.verification.signature": "Equip {{project}}", "emails.magicSession.subject": "Entrar", - "emails.magicSession.hello": "Hola", + "emails.magicSession.hello": "Hola,", "emails.magicSession.body": "Accedeix a aquest enllaç per a entrar.", "emails.magicSession.footer": "Si no has sol·licitat entrar amb aquesta adreça electrònica, pots ignorar aquest missatge.", - "emails.magicSession.thanks": "Gràcies", + "emails.magicSession.thanks": "Gràcies,", "emails.magicSession.signature": "Equip {{project}}", "emails.recovery.subject": "Reinicialitzar contrasenya", - "emails.recovery.hello": "Hola {{user}}", + "emails.recovery.hello": "Hola {{user}},", "emails.recovery.body": "Accedeix a aquest enllaç per a reinicialitzar la teva contrasenya de {{project}}.", "emails.recovery.footer": "Si no has sol·licitat reinicialitzar la teva contrasenya, pots ignorar aquest missatge.", - "emails.recovery.thanks": "Gràcies", + "emails.recovery.thanks": "Gràcies,", "emails.recovery.signature": "Equip {{project}}", "emails.invitation.subject": "Invitació a l'equip %s a s%", - "emails.invitation.hello": "Hola", + "emails.invitation.hello": "Hola,", "emails.invitation.body": "Aquest correu se t'ha enviat perquè {{owner}} vol convidar-te a formar part de l'equip {{team}} al {{project}}.", "emails.invitation.footer": "Si no és del teu interès, pots ignorar aquest missatge.", - "emails.invitation.thanks": "Gràcies", + "emails.invitation.thanks": "Gràcies,", "emails.invitation.signature": "Equip {{project}}", "locale.country.unknown": "Desconegut", "countries.af": "Afganistan", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "La frase de seguretat d'aquest correu electrònic és {{phrase}}. Podeu confiar en aquest correu electrònic si aquesta frase coincideix amb la frase mostrada durant l'inici de sessió.", "emails.otpSession.thanks": "Gràcies,", "emails.otpSession.signature": "equip {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/cs.json b/app/config/locale/translations/cs.json index 4e3c533c773..c67e9299da3 100644 --- a/app/config/locale/translations/cs.json +++ b/app/config/locale/translations/cs.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s tým", "emails.verification.subject": "", - "emails.verification.hello": "", + "emails.verification.hello": ",", "emails.verification.body": "", "emails.verification.footer": "", - "emails.verification.thanks": "", + "emails.verification.thanks": ",", "emails.verification.signature": "", "emails.magicSession.subject": "", - "emails.magicSession.hello": "", + "emails.magicSession.hello": ",", "emails.magicSession.body": "", "emails.magicSession.footer": "", - "emails.magicSession.thanks": "", + "emails.magicSession.thanks": ",", "emails.magicSession.signature": "", "emails.recovery.subject": "", - "emails.recovery.hello": "", + "emails.recovery.hello": ",", "emails.recovery.body": "", "emails.recovery.footer": "", - "emails.recovery.thanks": "", + "emails.recovery.thanks": ",", "emails.recovery.signature": "", "emails.invitation.subject": "", - "emails.invitation.hello": "", + "emails.invitation.hello": ",", "emails.invitation.body": "", "emails.invitation.footer": "", - "emails.invitation.thanks": "", + "emails.invitation.thanks": ",", "emails.invitation.signature": "", "locale.country.unknown": "Neznámý", "countries.af": "Afghánistán", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Bezpečnostní fráze pro tento e-mail je {{phrase}}. Tomuto e-mailu můžete důvěřovat, pokud se tato fráze shoduje s frází zobrazenou při přihlášení.", "emails.otpSession.thanks": "Děkuji,", "emails.otpSession.signature": "tým {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/da.json b/app/config/locale/translations/da.json index d50d9c46c63..9cec74dbed4 100644 --- a/app/config/locale/translations/da.json +++ b/app/config/locale/translations/da.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s Team", "emails.verification.subject": "Konto Verifikation", - "emails.verification.hello": "Hej {{user}}", + "emails.verification.hello": "Hej {{user}},", "emails.verification.body": "Følg dette link, for at verificere din email adresse.", "emails.verification.footer": "Hvis du ikke har bedt om at verificere denne adresse, ignorer venligst denne besked.", - "emails.verification.thanks": "Tak", + "emails.verification.thanks": "Tak,", "emails.verification.signature": "{{project}} team", "emails.magicSession.subject": "Login", - "emails.magicSession.hello": "Hej", + "emails.magicSession.hello": "Hej,", "emails.magicSession.body": "Følg dette link for at logge ind.", "emails.magicSession.footer": "Hvis du ikke har bedt om at logge ind med denne email, ignorer venligst denne besked.", - "emails.magicSession.thanks": "Tak", + "emails.magicSession.thanks": "Tak,", "emails.magicSession.signature": "{{project}} team", "emails.recovery.subject": "Nulstil Password", - "emails.recovery.hello": "Hej {{user}}", + "emails.recovery.hello": "Hej {{user}},", "emails.recovery.body": "Følg dette link for at nulstille koden til {{project}}.", "emails.recovery.footer": "Hvis du ikke har bedt om at nulstille dit password, ignorer venligst denne besked.", - "emails.recovery.thanks": "Tak", + "emails.recovery.thanks": "Tak,", "emails.recovery.signature": "{{project}} team", "emails.invitation.subject": "Invitation til %s Team på %s", - "emails.invitation.hello": "Hej", + "emails.invitation.hello": "Hej,", "emails.invitation.body": "Denne mail blev sendt til dig, fordi {{owner}} vil invitere dig til at blive medlem af {{team}} teamet på {{project}}.", "emails.invitation.footer": "Hvis du ikke er interesseret, ignorer venligst denne besked.", - "emails.invitation.thanks": "Tak", + "emails.invitation.thanks": "Tak,", "emails.invitation.signature": "{{project}} team", "locale.country.unknown": "Ukendt", "countries.af": "Afghanistan", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Sikkerhedsfrasen for denne e-mail er {{phrase}}. Du kan stole på denne e-mail, hvis denne frase matcher frasen vist under login.", "emails.otpSession.thanks": "Tak,", "emails.otpSession.signature": "{{project}} team" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/de.json b/app/config/locale/translations/de.json index 2279fcf4c03..38b1e46870e 100644 --- a/app/config/locale/translations/de.json +++ b/app/config/locale/translations/de.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s Team", "emails.verification.subject": "Kontoverifizierung", - "emails.verification.hello": "Hey {{user}}", + "emails.verification.hello": "Hey {{user}},", "emails.verification.body": "Folge diesem Link, um deine E-Mail-Adresse zu bestätigen.", "emails.verification.footer": "Solltest du keine Verifizierung dieser E-Mail-Adresse angefordert haben, kannst du diese Nachricht ignorieren.", - "emails.verification.thanks": "Danke", + "emails.verification.thanks": "Danke,", "emails.verification.signature": "{{project}}-Team", "emails.magicSession.subject": "Login", - "emails.magicSession.hello": "Hey", + "emails.magicSession.hello": "Hey,", "emails.magicSession.body": "Folge diesem Link, um dich einzuloggen.", "emails.magicSession.footer": "Solltest du keinen Login für diese E-Mail-Adresse angefordert haben, kannst du diese Nachricht ignorieren.", - "emails.magicSession.thanks": "Danke", + "emails.magicSession.thanks": "Danke,", "emails.magicSession.signature": "{{project}}-Team", "emails.recovery.subject": "Kennwort zurücksetzen", - "emails.recovery.hello": "Hallo {{user}}", + "emails.recovery.hello": "Hallo {{user}},", "emails.recovery.body": "Folge diesem Link, um dein {{project}}-Kennwort zurückzusetzen.", "emails.recovery.footer": "Solltest du keine Kennwort-Zurücksetzung angefordert haben, kannst du diese Nachricht ignorieren.", - "emails.recovery.thanks": "Danke", + "emails.recovery.thanks": "Danke,", "emails.recovery.signature": "{{project}}-Team", "emails.invitation.subject": "Einladung zum %s-Team auf %s", - "emails.invitation.hello": "Hello", + "emails.invitation.hello": "Hello,", "emails.invitation.body": "Du erhälst diese E-Mail, weil {{owner}} dich in das Team {{team}} auf {{project}} eingeladen hat.", "emails.invitation.footer": "Wenn du nicht interessiert bist, kannst du diese Nachricht ignorieren.", - "emails.invitation.thanks": "Danke", + "emails.invitation.thanks": "Danke,", "emails.invitation.signature": "{{project}}-Team", "locale.country.unknown": "Unbekannt", "countries.af": "Afghanistan", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Die Sicherheitsphrase für diese E-Mail lautet {{phrase}}. Sie können dieser E-Mail vertrauen, wenn diese Phrase mit der Phrase übereinstimmt, die beim Anmelden angezeigt wird.", "emails.otpSession.thanks": "Danke,", "emails.otpSession.signature": "{{project}} Team" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/el.json b/app/config/locale/translations/el.json index 16c165ea397..1ef9cd30dfa 100644 --- a/app/config/locale/translations/el.json +++ b/app/config/locale/translations/el.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "Ομάδα %s", "emails.verification.subject": "Επαλήθευση Λογαριασμού", - "emails.verification.hello": "Γεια σου {{user}}", + "emails.verification.hello": "Γεια σου {{user}},", "emails.verification.body": "Ακολουθήστε αυτό το link για να επαληθεύσετε τη δ/νση του email σας", "emails.verification.footer": "Εάν δεν ζητήσατε επαλήθευση αυτής της δ/νσης email, μπορείτε να αγνοήσετε αυτό το μήνυμα", - "emails.verification.thanks": "Ευχαριστούμε", + "emails.verification.thanks": "Ευχαριστούμε,", "emails.verification.signature": "Η ομάδα του {{project}}", "emails.magicSession.subject": "Είσοδος", - "emails.magicSession.hello": "Γεια σου", + "emails.magicSession.hello": "Γεια σου,", "emails.magicSession.body": "Ακολουθήστε αυτό το link για να συνδεθείτε", "emails.magicSession.footer": "Εάν δεν ζητήσατε να συνδεθείτε χρησιμοποιώντας αυτό το email, μπορείτε να αγνοήσετε αυτό το μήνυμα.", - "emails.magicSession.thanks": "Ευχαριστούμε", + "emails.magicSession.thanks": "Ευχαριστούμε,", "emails.magicSession.signature": "Η ομάδα του {{project}}", "emails.recovery.subject": "Αλλαγή κωδικού πρόσβασης", - "emails.recovery.hello": "Γεια σου {{user}}", + "emails.recovery.hello": "Γεια σου {{user}},", "emails.recovery.body": "Ακολουθήστε αυτό το link για να αλλάξετε τον {{project}} κωδικό σας", "emails.recovery.footer": "Εάν δεν ζητήσατε αλλαγή του κωδικού σας πρόσβασης, μπορείτε να αγνοήσετε αυτό το μήνυμα", - "emails.recovery.thanks": "Ευχαριστούμε", + "emails.recovery.thanks": "Ευχαριστούμε,", "emails.recovery.signature": "Η ομάδα του {{project}}", "emails.invitation.subject": "Πρόσκληση στην %s Ομάδα στον %s", - "emails.invitation.hello": "Γεια σου", + "emails.invitation.hello": "Γεια σου,", "emails.invitation.body": "Αυτό το email στάλθηκε επειδή ο/η {{owner}} θέλει να σας προσκαλέσει να γίνετε μέλος της ομάδας {{team}} του {{project}}.", "emails.invitation.footer": "Εάν δεν ενδιαφέρεστε, μπορείτε να αγνοήσετε αυτό το μήνυμα.", - "emails.invitation.thanks": "Ευχαριστούμε", + "emails.invitation.thanks": "Ευχαριστούμε,", "emails.invitation.signature": "Η ομάδα του {{project}}", "locale.country.unknown": "Άγνωστο", "countries.af": "Αφγανιστάν", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Η φράση ασφαλείας για αυτό το email είναι {{phrase}}. Μπορείτε να εμπιστευτείτε αυτό το email αν αυτή η φράση ταιριάζει με τη φράση που εμφανίστηκε κατά την είσοδο.", "emails.otpSession.thanks": "Ευχαριστώ,", "emails.otpSession.signature": "ομάδα {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/en.json b/app/config/locale/translations/en.json index 937ab298de8..d9dfddb0178 100644 --- a/app/config/locale/translations/en.json +++ b/app/config/locale/translations/en.json @@ -4,13 +4,13 @@ "settings.direction": "ltr", "emails.sender": "%s Team", "emails.verification.subject": "Account Verification", - "emails.verification.hello": "Hello {{user}}", + "emails.verification.hello": "Hello {{user}},", "emails.verification.body": "Follow this link to verify your email address to your {{b}}{{project}}{{/b}} account.", "emails.verification.footer": "If you didn’t ask to verify this address, you can ignore this message.", - "emails.verification.thanks": "Thanks", + "emails.verification.thanks": "Thanks,", "emails.verification.signature": "{{project}} team", "emails.magicSession.subject": "{{project}} Login", - "emails.magicSession.hello": "Hello {{user}}", + "emails.magicSession.hello": "Hello {{user}},", "emails.magicSession.optionButton": "Click the button below to securely sign in to your {{b}}{{project}}{{/b}} account. This link will expire in 1 hour.", "emails.magicSession.buttonText": "Sign in to {{project}}", "emails.magicSession.optionUrl": "If you are unable to sign in using the button above, please visit the following link:", @@ -19,44 +19,44 @@ "emails.magicSession.thanks": "Thanks,", "emails.magicSession.signature": "{{project}} team", "emails.sessionAlert.subject": "Security alert: new session on your {{project}} account", - "emails.sessionAlert.hello":"Hello {{user}}", + "emails.sessionAlert.hello": "Hello {{user}},", "emails.sessionAlert.body": "A new session has been created on your {{b}}{{project}}{{/b}} account, {{b}}on {{date}}, {{year}} at {{time}} UTC{{/b}}.\nHere are the details of the new session: ", "emails.sessionAlert.listDevice": "Device: {{b}}{{device}}{{/b}}", "emails.sessionAlert.listIpAddress": "IP Address: {{b}}{{ipAddress}}{{/b}}", "emails.sessionAlert.listCountry": "Country: {{b}}{{country}}{{/b}}", - "emails.sessionAlert.footer": "If this was you, there's nothing more you need to do.\nIf you didn't initiate this session or suspect any unauthorized activity, please secure your account.", + "emails.sessionAlert.footer": "If this was you, there's nothing more you need to do.\nIf you didn't initiate this session or suspect any unauthorized activity, please secure your account.", "emails.sessionAlert.thanks": "Thanks,", "emails.sessionAlert.signature": "{{project}} team", "emails.otpSession.subject": "OTP for {{project}} Login", - "emails.otpSession.hello": "Hello {{user}}", + "emails.otpSession.hello": "Hello {{user}},", "emails.otpSession.description": "Enter the following verification code when prompted to securely sign in to your {{b}}{{project}}{{/b}} account. This code will expire in 15 minutes.", "emails.otpSession.clientInfo": "This sign in was requested using {{b}}{{agentClient}}{{/b}} on {{b}}{{agentDevice}}{{/b}} {{b}}{{agentOs}}{{/b}}. If you didn't request the sign in, you can safely ignore this email.", "emails.otpSession.securityPhrase": "Security phrase for this email is {{b}}{{phrase}}{{/b}}. You can trust this email if this phrase matches the phrase shown during sign in.", "emails.otpSession.thanks": "Thanks,", "emails.otpSession.signature": "{{project}} team", "emails.mfaChallenge.subject": "Verification Code for {{project}}", - "emails.mfaChallenge.hello": "Hello {{user}}", + "emails.mfaChallenge.hello": "Hello {{user}},", "emails.mfaChallenge.description": "Enter the following verification code to verify your email and activate two-step verification in {{b}}{{project}}{{/b}}. This code will expire in 15 minutes.", "emails.mfaChallenge.clientInfo": "This verification code was requested using {{b}}{{agentClient}}{{/b}} on {{b}}{{agentDevice}}{{/b}} {{b}}{{agentOs}}{{/b}}. If you didn't request the verification code, you can safely ignore this email.", "emails.mfaChallenge.thanks": "Thanks,", "emails.mfaChallenge.signature": "{{project}} team", "emails.recovery.subject": "Password Reset", - "emails.recovery.hello": "Hello {{user}}", + "emails.recovery.hello": "Hello {{user}},", "emails.recovery.body": "Follow this link to reset your {{b}}{{project}}{{/b}} password.", "emails.recovery.footer": "If you didn't ask to reset your password, you can ignore this message.", - "emails.recovery.thanks": "Thanks", + "emails.recovery.thanks": "Thanks,", "emails.recovery.signature": "{{project}} team", "emails.invitation.subject": "Invitation to %s Team at %s", - "emails.invitation.hello": "Hello {{user}}", + "emails.invitation.hello": "Hello {{user}},", "emails.invitation.body": "This mail was sent to you because {{b}}{{owner}}{{/b}} wanted to invite you to become a member of the {{b}}{{team}}{{/b}} team at {{b}}{{project}}{{/b}}.", "emails.invitation.footer": "If you are not interested, you can ignore this message.", - "emails.invitation.thanks": "Thanks", + "emails.invitation.thanks": "Thanks,", "emails.invitation.signature": "{{project}} team", "emails.certificate.subject": "Certificate failure for %s", - "emails.certificate.hello": "Hello", + "emails.certificate.hello": "Hello,", "emails.certificate.body": "Certificate for your domain '{{domain}}' could not be generated. This is attempt no. {{attempt}}, and the failure was caused by: {{error}}", "emails.certificate.footer": "Your previous certificate will be valid for 30 days since the first failure. We highly recommend investigating this case, otherwise your domain will end up without a valid SSL communication.", - "emails.certificate.thanks": "Thanks", + "emails.certificate.thanks": "Thanks,", "emails.certificate.signature": "{{project}} team", "sms.verification.body": "{{secret}}", "locale.country.unknown": "Unknown", diff --git a/app/config/locale/translations/eo.json b/app/config/locale/translations/eo.json index 406bd4f52c5..ba80bc602d1 100644 --- a/app/config/locale/translations/eo.json +++ b/app/config/locale/translations/eo.json @@ -3,28 +3,28 @@ "settings.direction": "ltr", "emails.sender": "Teamo %s", "emails.verification.subject": "Konta Konfirmo", - "emails.verification.hello": "Saluton {{user}}", + "emails.verification.hello": "Saluton {{user}},", "emails.verification.body": "Alklaku ĉi tiun ligon por kontroli vian retpoŝtan adreson.", "emails.verification.footer": "Se vi ne petis ĉi tiun konfirmon de ĉi tiu retpoŝto, vi povas ignori ĉi tiun mesaĝon.", - "emails.verification.thanks": "Dankegon.", + "emails.verification.thanks": "Dankegon.,", "emails.verification.signature": "Teamo {{project}}", "emails.magicSession.subject": "Login", - "emails.magicSession.hello": "Saluton", + "emails.magicSession.hello": "Saluton,", "emails.magicSession.body": "Alklaku ĉi tiun ligon por eniri.", "emails.magicSession.footer": "Se vi ne petis ĉi tiun konfirmon de ĉi tiu retpoŝto, vi povas ignori ĉi tiun mesaĝon.", - "emails.magicSession.thanks": "Dankegon", + "emails.magicSession.thanks": "Dankegon,", "emails.magicSession.signature": "Teamo {{project}}", "emails.recovery.subject": "Parsvorta Restarigo", - "emails.recovery.hello": "Saluton {{user}}", + "emails.recovery.hello": "Saluton {{user}},", "emails.recovery.body": "Alklaku ĉi tiun ligon por reagordi vian pasvorton. {{project}}", "emails.recovery.footer": "Se vi ne petis reagordi vian pasvorton, vi povas ignori ĉi tiun mesaĝon.", - "emails.recovery.thanks": "Dankegon", + "emails.recovery.thanks": "Dankegon,", "emails.recovery.signature": "Teamo {{project}}", "emails.invitation.subject": "Invito al la Teamo %s em %s", - "emails.invitation.hello": "Dankegon", + "emails.invitation.hello": "Dankegon,", "emails.invitation.body": "Ĉi tiu retpoŝto estis sendita ĉar la {{owner}} volas inviti vin fariĝi membro de la Teamo {{team}} en {{project}}.", "emails.invitation.footer": "Se vi ne interesiĝas, vi povas ignori ĉi tiun mesaĝon.", - "emails.invitation.thanks": "Dankegon", + "emails.invitation.thanks": "Dankegon,", "emails.invitation.signature": "Teamo {{project}}", "locale.country.unknown": "Unknown", "countries.af": "Afghanistan", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Sekureca frazo por ĉi tiu retpoŝto estas {{phrase}}. Vi povas fidi ĉi tiun retpoŝton se tiu ĉi frazo kongruas kun la frazo montrita dum ensaluto.", "emails.otpSession.thanks": "Dankon,", "emails.otpSession.signature": "teamo de {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/es.json b/app/config/locale/translations/es.json index 0e02f816fe4..ff98fd28c75 100644 --- a/app/config/locale/translations/es.json +++ b/app/config/locale/translations/es.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "El equipo de %s", "emails.verification.subject": "Verificación de cuenta", - "emails.verification.hello": "Hola, {{name}}.", + "emails.verification.hello": "Hola, {{name}}.,", "emails.verification.body": "Haz clic en este enlace para verificar tu correo:", "emails.verification.footer": "Si no has solicitado verificar este correo, puedes ignorar este mensaje.", - "emails.verification.thanks": "Gracias.", + "emails.verification.thanks": "Gracias.,", "emails.verification.signature": "El equipo de {{project}}.", "emails.magicSession.subject": "Inicio de sesión", - "emails.magicSession.hello": "Hola", + "emails.magicSession.hello": "Hola,", "emails.magicSession.body": "Haz clic en este enlace para iniciar sesión:", "emails.magicSession.footer": "Si no has solicitado iniciar sesión usando este correo, puedes ignorar este mensaje.", - "emails.magicSession.thanks": "Gracias.", + "emails.magicSession.thanks": "Gracias.,", "emails.magicSession.signature": "El equipo de {{project}}", "emails.recovery.subject": "Restablecer contraseña", - "emails.recovery.hello": "Hola, {{name}}.", + "emails.recovery.hello": "Hola, {{name}}.,", "emails.recovery.body": "Haz clic en este enlace para restablecer la contraseña de {{project}}:", "emails.recovery.footer": "Si no has solicitado restablecer la contraseña, puedes ignorar este mensaje.", - "emails.recovery.thanks": "Gracias.", + "emails.recovery.thanks": "Gracias.,", "emails.recovery.signature": "El equipo de {{project}}", "emails.invitation.subject": "Invitación al equipo %s en %s", - "emails.invitation.hello": "Hola", + "emails.invitation.hello": "Hola,", "emails.invitation.body": "Este correo ha sido enviado a petición de {{owner}} quién quiere invitarte a formar parte del equipo {{team}} en {{project}}.", "emails.invitation.footer": "Si no estás interesado, puedes ignorar este mensaje.", - "emails.invitation.thanks": "Gracias.", + "emails.invitation.thanks": "Gracias.,", "emails.invitation.signature": "El equipo de {{project}}", "locale.country.unknown": "Desconocido", "countries.af": "Afganistán", @@ -239,10 +239,10 @@ "emails.magicSession.securityPhrase": "La frase de seguridad para este correo electrónico es {{phrase}}. Puedes confiar en este correo electrónico si esta frase coincide con la frase que se muestra durante el inicio de sesión.", "emails.magicSession.optionUrl": "Si no puedes iniciar sesión utilizando el botón anterior, visita el siguiente enlace:", "emails.otpSession.subject": "Inicio de sesión en {{project}}", - "emails.otpSession.hello": "Hola", + "emails.otpSession.hello": "Hola,", "emails.otpSession.description": "Ingrese el siguiente código de verificación cuando se le solicite para iniciar sesión de forma segura en su cuenta de {{project}}. Expirará en 15 minutos.", "emails.otpSession.clientInfo": "Este inicio de sesión fue solicitado usando {{agentClient}} en {{agentDevice}} {{agentOs}}. Si no solicitaste el inicio de sesión, puedes ignorar este correo electrónico de forma segura.", "emails.otpSession.securityPhrase": "La frase de seguridad para este correo electrónico es {{phrase}}. Puedes confiar en este correo si esta frase coincide con la frase mostrada durante el inicio de sesión.", - "emails.otpSession.thanks": "Gracias.", + "emails.otpSession.thanks": "Gracias.,", "emails.otpSession.signature": "El equipo de {{project}}" } diff --git a/app/config/locale/translations/fa.json b/app/config/locale/translations/fa.json index 9620b2c3f06..f826a751189 100644 --- a/app/config/locale/translations/fa.json +++ b/app/config/locale/translations/fa.json @@ -4,28 +4,28 @@ "settings.direction": "rtl", "emails.sender": "تیم %s", "emails.verification.subject": "تأیید حساب", - "emails.verification.hello": "سلام {{user}}", + "emails.verification.hello": "سلام {{user}}،", "emails.verification.body": "برای تأیید ایمیل‌تان پیوند زیر را دنبال کنید.", "emails.verification.footer": "اگر شما درخواست تأیید حساب نداده‌اید، می‌توانید این پیام را نادیده بگیرید.", - "emails.verification.thanks": "سپاس فراوان", + "emails.verification.thanks": "سپاس فراوان،", "emails.verification.signature": "تیم {{user}}", "emails.magicSession.subject": "ورود به حساب کاربری", "emails.magicSession.hello": "سلام،", "emails.magicSession.body": "برای ورود به حساب‌تان پیوند زیر را دنبال کنید.", "emails.magicSession.footer": "اگر شما درخواست ورود به حساب کاربری با استفاده از این ایمیل را نداد‌ه‌اید، می‌توانید این پیام را نادیده بگیرید.", - "emails.magicSession.thanks": "سپاس فراوان", + "emails.magicSession.thanks": "سپاس فراوان،", "emails.magicSession.signature": "تیم {{user}}", "emails.recovery.subject": "بازیابی گذرواژه", - "emails.recovery.hello": "سلام {{user}}", + "emails.recovery.hello": "سلام {{user}}،", "emails.recovery.body": "برای بازیابی گذرواژه‌تان پیوند زیر را دنبال کنید.", "emails.recovery.footer": "اگر شما درخواست بازیابی گذرواژه نداده‌اید، می‌توانید این پیام را نادیده بگیرید.", - "emails.recovery.thanks": "سپاس فراوان", + "emails.recovery.thanks": "سپاس فراوان،", "emails.recovery.signature": "تیم {{user}}", "emails.invitation.subject": "دعوت به تیم %s در %s", - "emails.invitation.hello": "سلام", + "emails.invitation.hello": "سلام،", "emails.invitation.body": "این ایمیل برای شما فرستاده شده‌است زیرا {{owner}} می‌خواهد شما را به تیم {{team}} در پروژه‌ی {{project}} بیفزاید.", "emails.invitation.footer": "اگر علاقه ندارید، می‌توانید این پیام را نادیده بگیرید.", - "emails.invitation.thanks": "سپاس فراوان", + "emails.invitation.thanks": "سپاس فراوان،", "emails.invitation.signature": "تیم {{user}}", "locale.country.unknown": "ناشناخته", "countries.af": "افغانستان", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "عبارت امنیتی برای این ایمیل {{phrase}} است. اگر این عبارت با عبارت نشان داده شده هنگام ورود به سیستم مطابقت داشته باشد، می‌توانید به این ایمیل اعتماد کنید.", "emails.otpSession.thanks": "متشکرم،", "emails.otpSession.signature": "تیم {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/fi.json b/app/config/locale/translations/fi.json index d86810d925e..ca61a95653e 100644 --- a/app/config/locale/translations/fi.json +++ b/app/config/locale/translations/fi.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s Tiimi", "emails.verification.subject": "", - "emails.verification.hello": "", + "emails.verification.hello": ",", "emails.verification.body": "", "emails.verification.footer": "", - "emails.verification.thanks": "", + "emails.verification.thanks": ",", "emails.verification.signature": "", "emails.magicSession.subject": "", - "emails.magicSession.hello": "", + "emails.magicSession.hello": ",", "emails.magicSession.body": "", "emails.magicSession.footer": "", - "emails.magicSession.thanks": "", + "emails.magicSession.thanks": ",", "emails.magicSession.signature": "", "emails.recovery.subject": "", - "emails.recovery.hello": "", + "emails.recovery.hello": ",", "emails.recovery.body": "", "emails.recovery.footer": "", - "emails.recovery.thanks": "", + "emails.recovery.thanks": ",", "emails.recovery.signature": "", "emails.invitation.subject": "", - "emails.invitation.hello": "", + "emails.invitation.hello": ",", "emails.invitation.body": "", "emails.invitation.footer": "", - "emails.invitation.thanks": "", + "emails.invitation.thanks": ",", "emails.invitation.signature": "", "locale.country.unknown": "Unknown", "countries.af": "Afganistan", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Tämän sähköpostin turvalause on {{phrase}}. Voit luottaa tähän sähköpostiin, jos tämä lause vastaa kirjautumisen yhteydessä näytettyä lausetta.", "emails.otpSession.thanks": "Kiitos,", "emails.otpSession.signature": "{{project}} -tiimi" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/fo.json b/app/config/locale/translations/fo.json index 3853dbab9f2..a982fd05901 100644 --- a/app/config/locale/translations/fo.json +++ b/app/config/locale/translations/fo.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s Lið", "emails.verification.subject": "", - "emails.verification.hello": "", + "emails.verification.hello": ",", "emails.verification.body": "", "emails.verification.footer": "", - "emails.verification.thanks": "", + "emails.verification.thanks": ",", "emails.verification.signature": "", "emails.magicSession.subject": "", - "emails.magicSession.hello": "", + "emails.magicSession.hello": ",", "emails.magicSession.body": "", "emails.magicSession.footer": "", - "emails.magicSession.thanks": "", + "emails.magicSession.thanks": ",", "emails.magicSession.signature": "", "emails.recovery.subject": "", - "emails.recovery.hello": "", + "emails.recovery.hello": ",", "emails.recovery.body": "", "emails.recovery.footer": "", - "emails.recovery.thanks": "", + "emails.recovery.thanks": ",", "emails.recovery.signature": "", "emails.invitation.subject": "", - "emails.invitation.hello": "", + "emails.invitation.hello": ",", "emails.invitation.body": "", "emails.invitation.footer": "", - "emails.invitation.thanks": "", + "emails.invitation.thanks": ",", "emails.invitation.signature": "", "locale.country.unknown": "Ókjent", "countries.af": "Afghanistan", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Trygdarorðið fyri hesa teldupostin er {{phrase}}. Tú kanst líta á hesa teldupostin um hetta orðið passar við orðið víst tá tú ritaði inn.", "emails.otpSession.thanks": "Takk,", "emails.otpSession.signature": "{{project}} lið" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/fr.json b/app/config/locale/translations/fr.json index d73f4e7c81f..1b60cb19101 100644 --- a/app/config/locale/translations/fr.json +++ b/app/config/locale/translations/fr.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "Équipe %s", "emails.verification.subject": "Vérification du compte", - "emails.verification.hello": "Bonjour {{user}}", + "emails.verification.hello": "Bonjour {{user}},", "emails.verification.body": "Suivez ce lien pour vérifier votre adresse e-mail.", "emails.verification.footer": "Si vous n'avez pas demandé à vérifier cette adresse, vous pouvez ignorer ce message.", - "emails.verification.thanks": "Merci", + "emails.verification.thanks": "Merci,", "emails.verification.signature": "Équipe {{project}}", "emails.magicSession.subject": "Connexion", - "emails.magicSession.hello": "Bonjour", + "emails.magicSession.hello": "Bonjour,", "emails.magicSession.body": "Suivez ce lien pour vous connecter.", "emails.magicSession.footer": "Si vous n'avez pas demandé à vous connecter en utilisant cet e-mail, vous pouvez ignorer ce message.", - "emails.magicSession.thanks": "Merci", + "emails.magicSession.thanks": "Merci,", "emails.magicSession.signature": "L'équipe {{project}}", "emails.recovery.subject": "Réinitialisation du mot de passe", - "emails.recovery.hello": "Bonjour {{user}}", + "emails.recovery.hello": "Bonjour {{user}},", "emails.recovery.body": "Suivez ce lien pour réinitialiser votre mot de passe pour {{project}}.", "emails.recovery.footer": "Si vous n'avez pas demandé à réinitialiser votre mot de passe, vous pouvez ignorer ce message.", - "emails.recovery.thanks": "Merci", + "emails.recovery.thanks": "Merci,", "emails.recovery.signature": "L'équipe {{project}}", "emails.invitation.subject": "Invitation à l'équipe %s de %s", - "emails.invitation.hello": "Bonjour", + "emails.invitation.hello": "Bonjour,", "emails.invitation.body": "Cet e-mail vous a été envoyé parce que {{owner}} souhaite vous inviter à devenir membre de l'équipe {{team}} pour {{project}}.", "emails.invitation.footer": "Si vous n'êtes pas intéressé, vous pouvez ignorer ce message.", - "emails.invitation.thanks": "Merci", + "emails.invitation.thanks": "Merci,", "emails.invitation.signature": "L'équipe {{project}}", "locale.country.unknown": "Inconnu", "countries.af": "Afghanistan", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "La phrase de sécurité pour cet e-mail est {{phrase}}. Vous pouvez faire confiance à cet e-mail si cette phrase correspond à celle affichée lors de la connexion.", "emails.otpSession.thanks": "Merci,", "emails.otpSession.signature": "équipe {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/ga.json b/app/config/locale/translations/ga.json index b7a641ac01c..3ed68ad8c36 100644 --- a/app/config/locale/translations/ga.json +++ b/app/config/locale/translations/ga.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s Foireann", "emails.verification.subject": "Fíoraithe cuntais", - "emails.verification.hello": "Haigh {{user}}", + "emails.verification.hello": "Haigh {{user}},", "emails.verification.body": "Lean an nasc seo chun do ríomhphost a fhíorú.", "emails.verification.footer": "Mura ndearna tú iarratas an seoladh seo a fhíoru, déan neamhaird den teachtaireacht seo.", - "emails.verification.thanks": "Go raibh maith agat", + "emails.verification.thanks": "Go raibh maith agat,", "emails.verification.signature": "{{project}} foireann", "emails.magicSession.subject": "Logáil isteach", - "emails.magicSession.hello": "Haigh", + "emails.magicSession.hello": "Haigh,", "emails.magicSession.body": "Lean an nasc seo chun logáil isteach.", "emails.magicSession.footer": "Mura ndearna tú iarratas logáil isteach leis an ríomhphost seo, déan neamhaird den teachtaireacht seo.", - "emails.magicSession.thanks": "Go raibh maith agat", + "emails.magicSession.thanks": "Go raibh maith agat,", "emails.magicSession.signature": "{{project}} foireann", "emails.recovery.subject": "Athshocrú pasfhocail", - "emails.recovery.hello": "Haigh {{user}}", + "emails.recovery.hello": "Haigh {{user}},", "emails.recovery.body": "Lean an nasc seo chun do pasfhocal {{project}} a athshocrú.", "emails.recovery.footer": "Mura ndearna tú iarratas do pasfhocal a athshocrú, déan neamhaird den teachtaireacht seo.", - "emails.recovery.thanks": "Go raibh maith agat", + "emails.recovery.thanks": "Go raibh maith agat,", "emails.recovery.signature": "{{project}} foireann", "emails.invitation.subject": "Cuireadh do %s foireann ag %s", - "emails.invitation.hello": "Haigh", + "emails.invitation.hello": "Haigh,", "emails.invitation.body": "Seoladh an ríomhphost seo chugat mar ba mhaith le {{owner}} cuireadh a thabhairt duit bheith mar bhall den fhoireann {{team}} ag obair ar {{project}}.", "emails.invitation.footer": "Is cuma leat? Déan neamhaird den teachtaireacht seo.", - "emails.invitation.thanks": "Go raibh maith agat", + "emails.invitation.thanks": "Go raibh maith agat,", "emails.invitation.signature": "{{project}} foireann", "locale.country.unknown": "Neamhaithnid", "countries.af": "An Afganastáin", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Frása slándála don ríomhphost seo ná {{phrase}}. Is féidir muinín a bheith agat as an ríomhphost seo má mheaitseálann an frása seo leis an bhfrása a taispeántar le linn síniú isteach.", "emails.otpSession.thanks": "Go raibh maith agat,", "emails.otpSession.signature": "foireann {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/gu.json b/app/config/locale/translations/gu.json index 8c41c76c546..54378caa9ea 100644 --- a/app/config/locale/translations/gu.json +++ b/app/config/locale/translations/gu.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s ટીમ", "emails.verification.subject": "ખાતાની ચકાસણી", - "emails.verification.hello": "નમસ્કાર {{user}}", + "emails.verification.hello": "નમસ્કાર {{user}},", "emails.verification.body": "તમારું ઇમેઇલ સરનામું ચકાસવા માટે આ લિંકને અનુસરો.", "emails.verification.footer": "જો તમે આ સરનામાંની ચકાસણી કરવાનું ન કહ્યું હોય, તો તમે આ સંદેશને અવગણી શકો છો.", - "emails.verification.thanks": "આભાર", + "emails.verification.thanks": "આભાર,", "emails.verification.signature": "{{project}} ટીમ", "emails.magicSession.subject": "પ્રવેશ કરો", - "emails.magicSession.hello": "નમસ્કાર", + "emails.magicSession.hello": "નમસ્કાર,", "emails.magicSession.body": "પ્રવેશ કરવા માટે આ લિંકને અનુસરો.", "emails.magicSession.footer": "જો તમે આ ઇમેઇલનો ઉપયોગ કરીને પ્રવેશ કરવાનું ન કહ્યું હોય, તો તમે આ સંદેશને અવગણી શકો છો.", - "emails.magicSession.thanks": "આભાર", + "emails.magicSession.thanks": "આભાર,", "emails.magicSession.signature": "{{project}} ટીમ", "emails.recovery.subject": "પાસવર્ડ ફરીથી સેટ કરો", - "emails.recovery.hello": "નમસ્કાર {{user}}", + "emails.recovery.hello": "નમસ્કાર {{user}},", "emails.recovery.body": "તમારો {{project}} પાસવર્ડ ફરીથી સેટ કરવા માટે આ લિંકને અનુસરો.", "emails.recovery.footer": "જો તમે તમારો પાસવર્ડ ફરીથી સેટ કરવાનું ન કહ્યું હોય, તો તમે આ સંદેશને અવગણી શકો છો.", - "emails.recovery.thanks": "આભાર", + "emails.recovery.thanks": "આભાર,", "emails.recovery.signature": "{{project}} ટીમ", "emails.invitation.subject": "%s ટીમને %s પર આમંત્રણ", - "emails.invitation.hello": "નમસ્કાર", + "emails.invitation.hello": "નમસ્કાર,", "emails.invitation.body": "આ મેઇલ તમને મોકલવામાં આવ્યો હતો કારણ કે {{owner}} તમને {{project}} માં {{team}} ટીમના સભ્ય બનવા માટે આમંત્રિત કરવા માંગતા હતો.", "emails.invitation.footer": "જો તમને રસ નથી, તો તમે આ સંદેશને અવગણી શકો છો.", - "emails.invitation.thanks": "આભાર", + "emails.invitation.thanks": "આભાર,", "emails.invitation.signature": "{{project}} ટીમ", "locale.country.unknown": "અજાણ", "countries.af": "અફઘાનિસ્તાન", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "આ ઇમેઇલ માટેનો સુરક્ષા શબ્દ {{phrase}} છે. જો આ શબ્દ સાઇન ઇન વખતે દર્શાવેલા શબ્દ સાથે મેળ ખાતો હોય તો તમે આ ઇમેઇલ પર વિશ્વાસ કરી શકો છો.", "emails.otpSession.thanks": "આભાર,", "emails.otpSession.signature": "{{project}} ટીમ" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/he.json b/app/config/locale/translations/he.json index 81705d34923..b3d4dea2a8b 100644 --- a/app/config/locale/translations/he.json +++ b/app/config/locale/translations/he.json @@ -4,28 +4,28 @@ "settings.direction": "rtl", "emails.sender": "צוות %s", "emails.verification.subject": "אימות חשבון", - "emails.verification.hello": "שלום {{user}}", + "emails.verification.hello": "שלום {{user}},", "emails.verification.body": "לחץ על קישור זה כדי לאמת את כתובת הדוא\"ל שלך.", "emails.verification.footer": "אם לא ביקשת לאמת כתובת זו, תוכל להתעלם מהודעה זו.", - "emails.verification.thanks": "תודה", + "emails.verification.thanks": "תודה,", "emails.verification.signature": "צוות {{project}}", "emails.magicSession.subject": "כניסה למערכת", - "emails.magicSession.hello": "שלום", + "emails.magicSession.hello": "שלום,", "emails.magicSession.body": "לחץ על קישור זה כדי להיכנס.", "emails.magicSession.footer": "אם לא ביקשת להיכנס באמצעות דוא\"ל זה, תוכל להתעלם מהודעה זו.", - "emails.magicSession.thanks": "תודה", + "emails.magicSession.thanks": "תודה,", "emails.magicSession.signature": "צוות {{project}}", "emails.recovery.subject": "איפוס סיסמא", - "emails.recovery.hello": "שלום {{user}}", + "emails.recovery.hello": "שלום {{user}},", "emails.recovery.body": "עקוב אחר קישור זה כדי לאפס את סיסמתך ב-{{project}}.", "emails.recovery.footer": "אם לא ביקשת לאפס את הסיסמה, תוכל להתעלם מהודעה זו.", - "emails.recovery.thanks": "תודה", + "emails.recovery.thanks": "תודה,", "emails.recovery.signature": "צוות {{project}}", "emails.invitation.subject": "הזמנה לצוות %s ב- %s", - "emails.invitation.hello": "שלום", + "emails.invitation.hello": "שלום,", "emails.invitation.body": "דואר זה נשלח אליך מכיוון ש {{owner}} רצה להזמין אותך להיות חבר בצוות {{team}} ב-{{project}}.", "emails.invitation.footer": "אם אינך מעוניין, תוכל להתעלם מהודעה זו.", - "emails.invitation.thanks": "תודה", + "emails.invitation.thanks": "תודה,", "emails.invitation.signature": "צוות {{project}}", "locale.country.unknown": "לא ידוע", "countries.af": "אפגניסטן", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "משפט האבטחה למייל זה הוא {{phrase}}. אתה יכול לסמוך על המייל הזה אם המשפט הזה תואם את המשפט שהוצג במהלך הכניסה למערכת.", "emails.otpSession.thanks": "תודה,", "emails.otpSession.signature": "צוות {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/hi.json b/app/config/locale/translations/hi.json index d764205ad6b..1c4d531d601 100644 --- a/app/config/locale/translations/hi.json +++ b/app/config/locale/translations/hi.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s टीम", "emails.verification.subject": "अकाउंट वेरिफिकेशन ", - "emails.verification.hello": "नमस्ते {{user}}", + "emails.verification.hello": "नमस्ते {{user}},", "emails.verification.body": "इस लिंक के माध्यम से अपने ईमेल को सत्यापित कीजिये।", "emails.verification.footer": "यदि आप इस पते को सत्यापित नहीं करना चाहते हैं, तो आप इस संदेश को नज़रअंदाज़ कर सकते हैं।", - "emails.verification.thanks": "धन्यवाद", + "emails.verification.thanks": "धन्यवाद,", "emails.verification.signature": "{{project}} टीम", "emails.magicSession.subject": "लॉग इन", - "emails.magicSession.hello": "नमस्ते", + "emails.magicSession.hello": "नमस्ते,", "emails.magicSession.body": "इस लिंक के माध्यम से लॉग-इन करें।", "emails.magicSession.footer": "यदि आप इस ईमेल द्वारा लॉगिन नहीं करना चाहते हैं, तो आप इस संदेश को नज़रअंदाज़ कर सकते हैं।", - "emails.magicSession.thanks": "धन्यवाद", + "emails.magicSession.thanks": "धन्यवाद,", "emails.magicSession.signature": "{{project}} टीम", "emails.recovery.subject": "पासवर्ड रीसेट", - "emails.recovery.hello": "नमस्ते {{user}}", + "emails.recovery.hello": "नमस्ते {{user}},", "emails.recovery.body": "इस लिंक के माध्यम से अपना {{project}} पासवर्ड रीसेट करें।", "emails.recovery.footer": "यदि आप अपना पासवर्ड रीसेट नहीं करना चाहते हैं, तो आप इस संदेश को नज़रअंदाज़ कर सकते हैं।", - "emails.recovery.thanks": "धन्यवाद", + "emails.recovery.thanks": "धन्यवाद,", "emails.recovery.signature": "{{project}} टीम", "emails.invitation.subject": "%s टीम का यहाँ %s पर आमंत्रण", - "emails.invitation.hello": "नमस्ते", + "emails.invitation.hello": "नमस्ते,", "emails.invitation.body": "यह मेल आपको इसलिए भेजा गया है क्योंकि {{owner}} आपको {{team}} टीम का सदस्य बनाना चाहते है, जो {{project}} से जुड़ा हुआ है।", "emails.invitation.footer": "यदि आप इसमें रूचि नहीं रखते, तो आप इस संदेश को नज़रअंदाज़ कर सकते हैं।", - "emails.invitation.thanks": "धन्यवाद", + "emails.invitation.thanks": "धन्यवाद,", "emails.invitation.signature": "{{project}} टीम", "locale.country.unknown": "अज्ञात", "countries.af": "अफ़ग़ानिस्तान", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "इस ईमेल के लिए सुरक्षा वाक्यांश {{phrase}} है। अगर यह वाक्यांश साइन इन के दौरान दिखाए गए वाक्यांश से मेल खाता है, तो आप इस ईमेल पर भरोसा कर सकते हैं।", "emails.otpSession.thanks": "धन्यवाद,", "emails.otpSession.signature": "{{project}} टीम" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/hr.json b/app/config/locale/translations/hr.json index 8e537f12ec3..e5bf4719a9b 100644 --- a/app/config/locale/translations/hr.json +++ b/app/config/locale/translations/hr.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s Tim", "emails.verification.subject": "Verifikacija računa", - "emails.verification.hello": "Pozdrav {{user}}", + "emails.verification.hello": "Pozdrav {{user}},", "emails.verification.body": "Slijedite ovu poveznicu da biste potvrdili svoju adresu e-pošte.", "emails.verification.footer": "Ukoliko niste zatražili potvrdu ove adrese, možete zanemariti ovu poruku.", - "emails.verification.thanks": "Hvala", + "emails.verification.thanks": "Hvala,", "emails.verification.signature": "{{project}} tim", "emails.magicSession.subject": "Prijavite se", - "emails.magicSession.hello": "Pozdrav", + "emails.magicSession.hello": "Pozdrav,", "emails.magicSession.body": "Slijedite ovu poveznicu za prijavu.", "emails.magicSession.footer": "Ako niste zatražili prijavu putem ove e-pošte, možete zanemariti ovu poruku.", - "emails.magicSession.thanks": "Hvala", + "emails.magicSession.thanks": "Hvala,", "emails.magicSession.signature": "{{project}} tim", "emails.recovery.subject": "Ponovno postavljanje lozinke", - "emails.recovery.hello": "Pozdrav {{user}}", + "emails.recovery.hello": "Pozdrav {{user}},", "emails.recovery.body": "Slijedite ovu poveznicu za ponovno postavljanje {{project}} lozinke.", "emails.recovery.footer": "Ako niste zatražili ponovno postavljanje Vaše lozinke, možete zanemariti ovu poruku.", - "emails.recovery.thanks": "Hvala", + "emails.recovery.thanks": "Hvala,", "emails.recovery.signature": "{{project}} tim", "emails.invitation.subject": "Pozivnica za %s tim na %s", - "emails.invitation.hello": "Pozdrav", + "emails.invitation.hello": "Pozdrav,", "emails.invitation.body": "Ova poruka Vam je poslana jer Vas je {{owner}} htio pozvati da postanete član {{team}} tima na {{project}}.", "emails.invitation.footer": "Ukoliko niste zainteresirani, možete zanemariti ovu poruku.", - "emails.invitation.thanks": "Hvala", + "emails.invitation.thanks": "Hvala,", "emails.invitation.signature": "{{project}} tim", "locale.country.unknown": "Nepoznato", "countries.af": "Afganistan", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Sigurnosna fraza za ovaj e-mail je {{phrase}}. Možete vjerovati ovom e-mailu ako se ova fraza podudara s frazom prikazanom prilikom prijave.", "emails.otpSession.thanks": "Hvala,", "emails.otpSession.signature": "tim {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/hu.json b/app/config/locale/translations/hu.json index fded03aee12..589cb61859a 100644 --- a/app/config/locale/translations/hu.json +++ b/app/config/locale/translations/hu.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s Csapat", "emails.verification.subject": "Fiók Megerősítése", - "emails.verification.hello": "Szia {{user}}", + "emails.verification.hello": "Szia {{user}},", "emails.verification.body": "Kattints a linkre, hogy megerősítsd az email címedet.", "emails.verification.footer": "Ha nem te kérted a címed megerősítését, akkor nyugodtan hagyd figyelmen kívül ezt az üzenetet.", - "emails.verification.thanks": "Köszönettel", + "emails.verification.thanks": "Köszönettel,", "emails.verification.signature": "a {{project}} csapat", "emails.magicSession.subject": "Bejelentkezés", - "emails.magicSession.hello": "Szia", + "emails.magicSession.hello": "Szia,", "emails.magicSession.body": "Kattints a linkre a bejelentkezéshez.", "emails.magicSession.footer": "Ha nem te szerettél volna bejelentkezni ezzel az email címmel, akkor nyugodtan hagyd figyelmen kívül ezt az üzenetet.", - "emails.magicSession.thanks": "Köszönettel", + "emails.magicSession.thanks": "Köszönettel,", "emails.magicSession.signature": "a {{project}} csapat", "emails.recovery.subject": "Jelszó Visszaállítása", - "emails.recovery.hello": "Hahó, {{user}}", + "emails.recovery.hello": "Hahó, {{user}},", "emails.recovery.body": "Kattints a linkre a {{project}} jelszavad visszaállításához.", "emails.recovery.footer": "Ha nem te kezdeményezted a jelszavad visszaállítását, akkor nyugodtan hagyd figyelmen kívül ezt az üzenetet.", - "emails.recovery.thanks": "Köszönettel", + "emails.recovery.thanks": "Köszönettel,", "emails.recovery.signature": "a {{project}} csapat", "emails.invitation.subject": "Meghívó a(z) %s csapatba, a(z) %s projektbe", - "emails.invitation.hello": "Szia", + "emails.invitation.hello": "Szia,", "emails.invitation.body": "Ezt a levelet azért kaptad, mert {{owner}} meghívott, hogy légy a {{team}} csapat tagja a {{project}} projektben.", "emails.invitation.footer": "Ha nem érdekel a lehetőség, nyugodtan hagyd figyelmen kívül ezt az üzenetet.", - "emails.invitation.thanks": "Köszönettel", + "emails.invitation.thanks": "Köszönettel,", "emails.invitation.signature": "a {{project}} csapat", "locale.country.unknown": "Ismeretlen", "countries.af": "Afganisztán", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Az e-mailhez tartozó biztonsági kód: {{phrase}}. Ennek az e-mailnek megbízhat, ha a megjelenített kód megegyezik a bejelentkezéskor megjelenő kóddal.", "emails.otpSession.thanks": "Köszönöm,", "emails.otpSession.signature": "{{project}} csapat" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/hy.json b/app/config/locale/translations/hy.json index 2c4e72ebe3b..c8455266070 100644 --- a/app/config/locale/translations/hy.json +++ b/app/config/locale/translations/hy.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "Թիմ %s", "emails.verification.subject": "", - "emails.verification.hello": "", + "emails.verification.hello": ",", "emails.verification.body": "", "emails.verification.footer": "", - "emails.verification.thanks": "", + "emails.verification.thanks": ",", "emails.verification.signature": "", "emails.magicSession.subject": "", - "emails.magicSession.hello": "", + "emails.magicSession.hello": ",", "emails.magicSession.body": "", "emails.magicSession.footer": "", - "emails.magicSession.thanks": "", + "emails.magicSession.thanks": ",", "emails.magicSession.signature": "", "emails.recovery.subject": "", - "emails.recovery.hello": "", + "emails.recovery.hello": ",", "emails.recovery.body": "", "emails.recovery.footer": "", - "emails.recovery.thanks": "", + "emails.recovery.thanks": ",", "emails.recovery.signature": "", "emails.invitation.subject": "", - "emails.invitation.hello": "", + "emails.invitation.hello": ",", "emails.invitation.body": "", "emails.invitation.footer": "", - "emails.invitation.thanks": "", + "emails.invitation.thanks": ",", "emails.invitation.signature": "", "locale.country.unknown": "Անհայտ", "countries.af": "Աֆղանստան", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Այս էլ.փոստի անվտանգության արտահայտությունը {{phrase}} է: Կարող եք վստահել այս էլ.փոստին, եթե այս արտահայտությունը համընկնում է մուտք գործելու պահին տրված արտահայտության հետ։", "emails.otpSession.thanks": "Շնորհակալ եմ,", "emails.otpSession.signature": "{{project}} թիմ" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/id.json b/app/config/locale/translations/id.json index 90b096e39ea..c28b15f15d2 100644 --- a/app/config/locale/translations/id.json +++ b/app/config/locale/translations/id.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "Tim %s", "emails.verification.subject": "Verifikasi Akun", - "emails.verification.hello": "Hai {{user}}", + "emails.verification.hello": "Hai {{user}},", "emails.verification.body": "Ikuti tautan ini untuk memverifikasi alamat email Anda.", "emails.verification.footer": "Jika Anda tidak meminta untuk memverifikasi alamat email ini, Anda dapat mengabaikan pesan ini.", - "emails.verification.thanks": "Terima kasih", + "emails.verification.thanks": "Terima kasih,", "emails.verification.signature": "Tim {{project}}", "emails.magicSession.subject": "Masuk", - "emails.magicSession.hello": "Hai", + "emails.magicSession.hello": "Hai,", "emails.magicSession.body": "Ikuti tautan ini untuk masuk.", "emails.magicSession.footer": "Jika Anda tidak meminta untuk masuk menggunakan email ini, Anda dapat mengabaikan pesan ini.", - "emails.magicSession.thanks": "Terima kasih", + "emails.magicSession.thanks": "Terima kasih,", "emails.magicSession.signature": "Tim {{project}}", "emails.recovery.subject": "Atur Ulang Kata Sandi", - "emails.recovery.hello": "Halo {{user}}", + "emails.recovery.hello": "Halo {{user}},", "emails.recovery.body": "Ikuti tautan ini untuk menyetel ulang kata sandi {{project}} Anda.", "emails.recovery.footer": "Jika Anda tidak meminta untuk menyetel ulang kata sandi, Anda dapat mengabaikan pesan ini.", - "emails.recovery.thanks": "Terima kasih", + "emails.recovery.thanks": "Terima kasih,", "emails.recovery.signature": "Tim {{project}}", "emails.invitation.subject": "Undangan ke Tim %s di %s", - "emails.invitation.hello": "Halo", + "emails.invitation.hello": "Halo,", "emails.invitation.body": "Email ini dikirimkan kepada Anda karena {{owner}} ingin mengundang Anda untuk menjadi anggota tim {{team}} di {{project}}.", "emails.invitation.footer": "Jika Anda tidak tertarik, Anda dapat mengabaikan pesan ini.", - "emails.invitation.thanks": "Terima kasih", + "emails.invitation.thanks": "Terima kasih,", "emails.invitation.signature": "Tim {{project}}", "locale.country.unknown": "Tidak diketahui", "countries.af": "Afganistan", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Frasa keamanan untuk email ini adalah {{phrase}}. Anda dapat mempercayai email ini jika frasa tersebut cocok dengan frasa yang ditampilkan saat masuk.", "emails.otpSession.thanks": "Terima kasih,", "emails.otpSession.signature": "tim {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/is.json b/app/config/locale/translations/is.json index 039d6849b78..5fede4dda0c 100644 --- a/app/config/locale/translations/is.json +++ b/app/config/locale/translations/is.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s Teymi", "emails.verification.subject": "", - "emails.verification.hello": "", + "emails.verification.hello": ",", "emails.verification.body": "", "emails.verification.footer": "", - "emails.verification.thanks": "", + "emails.verification.thanks": ",", "emails.verification.signature": "", "emails.magicSession.subject": "", - "emails.magicSession.hello": "", + "emails.magicSession.hello": ",", "emails.magicSession.body": "", "emails.magicSession.footer": "", - "emails.magicSession.thanks": "", + "emails.magicSession.thanks": ",", "emails.magicSession.signature": "", "emails.recovery.subject": "", - "emails.recovery.hello": "", + "emails.recovery.hello": ",", "emails.recovery.body": "", "emails.recovery.footer": "", - "emails.recovery.thanks": "", + "emails.recovery.thanks": ",", "emails.recovery.signature": "", "emails.invitation.subject": "", - "emails.invitation.hello": "", + "emails.invitation.hello": ",", "emails.invitation.body": "", "emails.invitation.footer": "", - "emails.invitation.thanks": "", + "emails.invitation.thanks": ",", "emails.invitation.signature": "", "locale.country.unknown": "Óþekktur", "countries.af": "Afganistan", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Öryggissetning fyrir þetta tölvupóst er {{phrase}}. Þú getur treyst þessum tölvupósti ef þessi setning passar við setninguna sem birtist við innskráningu.", "emails.otpSession.thanks": "Takk,", "emails.otpSession.signature": "{{project}} liðið" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/it.json b/app/config/locale/translations/it.json index d0716dd1e25..8d45de99037 100644 --- a/app/config/locale/translations/it.json +++ b/app/config/locale/translations/it.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "Team %s", "emails.verification.subject": "Verifica account", - "emails.verification.hello": "Ciao {{user}}", + "emails.verification.hello": "Ciao {{user}},", "emails.verification.body": "Clicca questo link per verificare il tuo indirizzo email.", "emails.verification.footer": "Se non hai richiesto la verifica dell’indirizzo email, puoi ignorare questo messaggio.", - "emails.verification.thanks": "Grazie", + "emails.verification.thanks": "Grazie,", "emails.verification.signature": "Il team {{project}}", "emails.magicSession.subject": "Login", - "emails.magicSession.hello": "Ciao", + "emails.magicSession.hello": "Ciao,", "emails.magicSession.body": "Clicca questo link per accedere.", "emails.magicSession.footer": "Se non hai richiesto di effettuare l’accesso, puoi ignorare questo messaggio.", - "emails.magicSession.thanks": "Grazie", + "emails.magicSession.thanks": "Grazie,", "emails.magicSession.signature": "Il team {{project}}", "emails.recovery.subject": "Reimpostazione password", - "emails.recovery.hello": "Ciao {{user}}", + "emails.recovery.hello": "Ciao {{user}},", "emails.recovery.body": "Clicca questo link per reimpostare la tua password di {{project}}.", "emails.recovery.footer": "Se non hai richiesto la reimpostazione della password, puoi ignorare questo messaggio.", - "emails.recovery.thanks": "Grazie", + "emails.recovery.thanks": "Grazie,", "emails.recovery.signature": "Il team {{project}}", "emails.invitation.subject": "Invito al Team %s per %s", - "emails.invitation.hello": "Ciao", + "emails.invitation.hello": "Ciao,", "emails.invitation.body": "Hai ricevuto questa email perché {{owner}} ti ha invitato a diventare un membro del team {{team}} di {{project}}.", "emails.invitation.footer": "Ignora questo messaggio se non sei interessatə.", - "emails.invitation.thanks": "Grazie", + "emails.invitation.thanks": "Grazie,", "emails.invitation.signature": "Il team {{project}}", "locale.country.unknown": "Sconosciuto", "countries.af": "Afghanistan", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "La frase di sicurezza per questa email è {{phrase}}. Puoi fidarti di questa email se questa frase corrisponde alla frase mostrata durante l'accesso.", "emails.otpSession.thanks": "Grazie,", "emails.otpSession.signature": "team {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/ja.json b/app/config/locale/translations/ja.json index 6482488cf5f..76d9a0cb1f9 100644 --- a/app/config/locale/translations/ja.json +++ b/app/config/locale/translations/ja.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s チーム", "emails.verification.subject": "アカウント認証", - "emails.verification.hello": "こんにちは{{user}}さん", + "emails.verification.hello": "こんにちは{{user}}さん、", "emails.verification.body": "メールアドレスを有効化するためには下記リンクをクリックして下さい。", "emails.verification.footer": "このメールに心当たりが無い場合は破棄をお願いいたします。", - "emails.verification.thanks": "ご利用いただきありがとうございます。", + "emails.verification.thanks": "ご利用いただきありがとうございます。、", "emails.verification.signature": "{{project}}チーム", "emails.magicSession.subject": "ログイン", - "emails.magicSession.hello": "こんにちは", + "emails.magicSession.hello": "こんにちは、", "emails.magicSession.body": "ログインするためには下記リンクをクリックしてください。", "emails.magicSession.footer": "このメールに心当たりが無い場合は破棄をお願いいたします。", - "emails.magicSession.thanks": "ご利用いただきありがとうございます。", + "emails.magicSession.thanks": "ご利用いただきありがとうございます。、", "emails.magicSession.signature": "{{project}}チーム", "emails.recovery.subject": "パスワードリセット", - "emails.recovery.hello": "こんにちは{{user}}さん", + "emails.recovery.hello": "こんにちは{{user}}さん、", "emails.recovery.body": "パスワードをリセットするためには下記リンクをクリックしてください。", "emails.recovery.footer": "このメールに心当たりが無い場合は破棄をお願いいたします。", - "emails.recovery.thanks": "ご利用いただきありがとうございます。", + "emails.recovery.thanks": "ご利用いただきありがとうございます。、", "emails.recovery.signature": "{{project}}チーム", "emails.invitation.subject": "%sチームへの招待が%sから来ました。", - "emails.invitation.hello": "こんにちは", + "emails.invitation.hello": "こんにちは、", "emails.invitation.body": "{{owner}}さんが{{project}}の{{team}}チームにあなたを招待しています。", "emails.invitation.footer": "このメールに心当たりが無い場合は破棄をお願いいたします。", - "emails.invitation.thanks": "ご利用いただきありがとうございます。", + "emails.invitation.thanks": "ご利用いただきありがとうございます。、", "emails.invitation.signature": "{{project}}チーム", "locale.country.unknown": "不明", "countries.af": "アフガニスタン", @@ -239,10 +239,10 @@ "emails.magicSession.securityPhrase": "このメールのセキュリティフレーズは{{phrase}}です。サインイン時に表示されたフレーズと一致する場合、このメールは信頼できます。", "emails.magicSession.optionUrl": "上記のボタンを使用してサインインすることができない場合は、次のリンクにアクセスしてください:", "emails.otpSession.subject": "プロジェクト ログイン", - "emails.otpSession.hello": "こんにちは。", + "emails.otpSession.hello": "こんにちは。、", "emails.otpSession.description": "以下の確認コードを入力して、{{project}}アカウントに安全にサインインしてください。このコードは15分後に失効します。", "emails.otpSession.clientInfo": "このサインインは、{{agentClient}} を使い {{agentDevice}} {{agentOs}} で要求されました。サインインを要求していない場合、このメールを無視しても安全です。", "emails.otpSession.securityPhrase": "このメールのセキュリティフレーズは{{phrase}}です。サインイン時に表示されたフレーズと一致する場合、このメールを信頼できます。", - "emails.otpSession.thanks": "ありがとうございます。", + "emails.otpSession.thanks": "ありがとうございます。、", "emails.otpSession.signature": "{{project}} チーム" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/jv.json b/app/config/locale/translations/jv.json index 7f91a8dcef6..889e968b4d1 100644 --- a/app/config/locale/translations/jv.json +++ b/app/config/locale/translations/jv.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "Tim %s", "emails.verification.subject": "Verifikasi Akun", - "emails.verification.hello": "Hai {{user}}", + "emails.verification.hello": "Hai {{user}},", "emails.verification.body": "Klik link iki kanggo verifikasi alamat email sampeyan.", "emails.verification.footer": "Yen sampeyan ora njaluk verifikasi alamat iki, sampeyan iso nglirwakake pesen iki.", - "emails.verification.thanks": "Matur nuwun", + "emails.verification.thanks": "Matur nuwun,", "emails.verification.signature": "Tim {{project}}", "emails.magicSession.subject": "Masuk", - "emails.magicSession.hello": "Hai", + "emails.magicSession.hello": "Hai,", "emails.magicSession.body": "Klik link iki kanggo masuk.", "emails.magicSession.footer": "Yen sampeyan ora njaluk masuk nggunakake alamat email iki, sampeyan iso nglirwakake pesen iki.", - "emails.magicSession.thanks": "Matur nuwun", + "emails.magicSession.thanks": "Matur nuwun,", "emails.magicSession.signature": "Tim {{project}}", "emails.recovery.subject": "Setel ulang sandi", - "emails.recovery.hello": "Halo {{user}}", + "emails.recovery.hello": "Halo {{user}},", "emails.recovery.body": "Klik link iki kanggo setel ulang sandi {{project}}.", "emails.recovery.footer": "Yen sampeyan ora njaluk setel ulang sandi, sampeyan iso nglirwakake pesen iki.", - "emails.recovery.thanks": "Matur nuwun", + "emails.recovery.thanks": "Matur nuwun,", "emails.recovery.signature": "Tim {{project}}", "emails.invitation.subject": "Undangan ke Tim %s di %s", - "emails.invitation.hello": "Halo", + "emails.invitation.hello": "Halo,", "emails.invitation.body": "Email iki dikirim menyang sampeyan amarga {{owner}} pengin ngajak sampeyan dadi anggota tim {{team}} di {{project}}.", "emails.invitation.footer": "Yen sampeyan ora tertarik, sampeyan iso nglirwakake pesen iki.", - "emails.invitation.thanks": "Matur nuwun", + "emails.invitation.thanks": "Matur nuwun,", "emails.invitation.signature": "Tim {{project}}", "locale.country.unknown": "Ora dingerteni", "countries.af": "Afghanistan", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Tembung keamanan kanggo email iki yaiku {{phrase}}. Sampeyan bisa percaya email iki menawa tembung kasebut cocog karo tembung sing ditampilake nalika mlebu.", "emails.otpSession.thanks": "Matur nuwun,", "emails.otpSession.signature": "tim {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/km.json b/app/config/locale/translations/km.json index 72c362a77c1..12ac05e8da7 100644 --- a/app/config/locale/translations/km.json +++ b/app/config/locale/translations/km.json @@ -239,10 +239,10 @@ "emails.magicSession.securityPhrase": "ឃ្លាសម្ងាត់សម្រាប់អ៊ីមែលនេះគឺ {{phrase}}។ អ្នកអាចទុកចិត្តលើអ៊ីមែលនេះប្រសិនបើឃ្លានេះត្រូវគ្នាជាមួយឃ្លាដែលបង្ហាញឡើងពេលចូលប្រើ។", "emails.magicSession.optionUrl": "ប្រសិនបើអ្នកមិនអាចចូលប្រើប្រាស់ដោយប្រើប៊ូតុងខាងលើនេះទេ សូមចូលទៅកាន់តំណភ្ជាប់ខាងក្រោម៖", "emails.otpSession.subject": "ការចូល {{project}}", - "emails.otpSession.hello": "ជំរាបសួរ,", + "emails.otpSession.hello": "ជំរាបសួរ", "emails.otpSession.description": "បញ្ចូលលេខកូដផ្ទៀងផ្ទាត់ខាងក្រោមនេះនៅពេលដែលបានស្នើ ដើម្បីចូលទៅកាន់គណនី {{project}} របស់អ្នកដោយមានសុវត្ថិភាព។ វានឹងផុតកំណត់ក្នុងរយៈពេល 15 នាទី។", "emails.otpSession.clientInfo": "ការចូលប្រព័ន្ធនេះត្រូវបានស្នើរបស់អ្នកប្រើប្រាស់តាមរយៈ {{agentClient}} នៅលើ {{agentDevice}} {{agentOs}}។ ប្រសិនបើអ្នកមិនបានស្នើរការចូលប្រព័ន្ធនេះទេ អ្នកអាចមិនអើពើអ៊ីម៉ែលនេះបាន។", "emails.otpSession.securityPhrase": "ឃ្លាសម្រាប់សុវត្ថិភាពអ៊ីមែលនេះគឺ {{phrase}}។ អ្នកអាចទុកចិត្តនូវអ៊ីមែលនេះប្រសិនបើឃ្លានេះត្រូវគ្នាជាមួយឃ្លាដែលបានបង្ហាញពេលចូលគណនី។", - "emails.otpSession.thanks": "អរគុណ,", + "emails.otpSession.thanks": "អរគុណ", "emails.otpSession.signature": "ក្រុម {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/kn.json b/app/config/locale/translations/kn.json index 429958fc1a1..ba57c211552 100644 --- a/app/config/locale/translations/kn.json +++ b/app/config/locale/translations/kn.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s ತಂಡ", "emails.verification.subject": "ಖಾತೆ ಪರಿಶೀಲನೆ", - "emails.verification.hello": "ನಮಸ್ಕಾರ {{user}}", + "emails.verification.hello": "ನಮಸ್ಕಾರ {{user}},", "emails.verification.body": "ನಿಮ್ಮ ಇಮೇಲ್ ವಿಳಾಸ ಪರಿಶೀಲನೆಗೆ ಈ ಲಿಂಕನ್ನು ಅನುಸರಿಸಿ", "emails.verification.footer": "ನೀವು ಇಮೇಲ್ ವಿಳಾಸ ಪರಿಶೀಲನೆಗೆ ಕೇಳದಿದ್ದರೆ, ಈ ಸಂದೇಶವನ್ನು ನಿರ್ಲಕ್ಷಿಸಿ", - "emails.verification.thanks": "ಧನ್ಯವಾದಗಳು", + "emails.verification.thanks": "ಧನ್ಯವಾದಗಳು,", "emails.verification.signature": "{{project}} ತಂಡ", "emails.magicSession.subject": "ಲಾಗಿನ್", - "emails.magicSession.hello": "ನಮಸ್ಕಾರ", + "emails.magicSession.hello": "ನಮಸ್ಕಾರ,", "emails.magicSession.body": "ಲಾಗಿನ್ ಮಾಡಲಿಕ್ಕೆ ಈ ಲಿಂಕನ್ನು ಅನುಸರಿಸಿ", "emails.magicSession.footer": "ನೀವು ಈ ಇಮೇಲನಿಂದ ಲಾಗಿನ್ ಮಾಡಲು ಕೇಳದಿದ್ದರೆ, ಈ ಸಂದೇಶವನ್ನು ನಿರ್ಲಕ್ಷಿಸಿ", - "emails.magicSession.thanks": "ಧನ್ಯವಾದಗಳು", + "emails.magicSession.thanks": "ಧನ್ಯವಾದಗಳು,", "emails.magicSession.signature": "{{project}} ತಂಡ", "emails.recovery.subject": "ಗುಪ್ತಪದ ಮರುಹೊಂದಿಸಿ", - "emails.recovery.hello": "ನಮಸ್ಕಾರ {{user}}", + "emails.recovery.hello": "ನಮಸ್ಕಾರ {{user}},", "emails.recovery.body": "ನಿಮ್ಮ {{project}} ಗುಪ್ತಪದವನ್ನು ಮರುಹೊಂದಿಸಲು ಈ ಲಿಂಕನ್ನು ಅನುಸರಿಸಿ", "emails.recovery.footer": "ನೀವು ಗುಪ್ತಪದವನ್ನು ಮರುಹೊಂದಿಸಲು ಕೇಳದಿದ್ದರೆ, ಈ ಸಂದೇಶವನ್ನು ನಿರ್ಲಕ್ಷಿಸಿ", - "emails.recovery.thanks": "ಧನ್ಯವಾದಗಳು", + "emails.recovery.thanks": "ಧನ್ಯವಾದಗಳು,", "emails.recovery.signature": "{{project}} ತಂಡ", "emails.invitation.subject": "%s ತಂಡಕ್ಕೆ %s ರಲ್ಲಿ ಆಹ್ವಾನ", - "emails.invitation.hello": "ನಮಸ್ಕಾರ", + "emails.invitation.hello": "ನಮಸ್ಕಾರ,", "emails.invitation.body": "ಈ ಇಮೇಲ್ ನಿಮಗೆ ಬಂದಿದೆ ಏಕೆಂದರೆ {{owner}} ನಿಮ್ಮನ್ನು {{team}} ತಂಡದ {{project}}ರಲ್ಲಿ ಸದಸ್ಯ ಆಗಲಿಕ್ಕೆ ಆಹ್ವಾನಿಸಿದ್ದಾರೆ", "emails.invitation.footer": "ನಿಮಗೆ ಆಸಕ್ತಿಯಿಲ್ಲದಿದ್ದರೆ, ಈ ಸಂದೇಶವನ್ನು ನಿರ್ಲಕ್ಷಿಸಿ", - "emails.invitation.thanks": "ಧನ್ಯವಾದಗಳು", + "emails.invitation.thanks": "ಧನ್ಯವಾದಗಳು,", "emails.invitation.signature": "{{project}} ತಂಡ", "locale.country.unknown": "Unknown", "countries.af": "ಅಫ್ಘಾನಿಸ್ತಾನ", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "ಈ ಇಮೇಲ್‌ಗೆ ಭದ್ರತಾ ಪದವು {{phrase}}. ನೀವು ಸೈನ್ ಇನ್ ಮಾಡುವಾಗ ತೋರಿಸಿದ ಪದವು ಇದರೊಂದಿಗೆ ಹೊಂದಿಕೊಂಡರೆ ಈ ಇಮೇಲನ್ನು ನೀವು ನಂಬಬಹುದು.", "emails.otpSession.thanks": "ಧನ್ಯವಾದಗಳು,", "emails.otpSession.signature": "ಪ್ರಾಜೆಕ್ಟ್ ತಂಡ" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/ko.json b/app/config/locale/translations/ko.json index 372b7f16646..c33c9611307 100644 --- a/app/config/locale/translations/ko.json +++ b/app/config/locale/translations/ko.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s 팀", "emails.verification.subject": "계정 인증", - "emails.verification.hello": "안녕하세요 {{user}}님", + "emails.verification.hello": "안녕하세요 {{user}}님、", "emails.verification.body": "이메일 인증을 위해 링크를 클릭하여주세요.", "emails.verification.footer": "이메일 인증을 부탁하지 않으셨다면 이 메시지를 무시하여주세요.", - "emails.verification.thanks": "감사합니다", + "emails.verification.thanks": "감사합니다、", "emails.verification.signature": "{{project}} 팀", "emails.magicSession.subject": "로그인", - "emails.magicSession.hello": "안녕하세요", + "emails.magicSession.hello": "안녕하세요、", "emails.magicSession.body": "로그인 하시려면 링크를 클릭하여주세요.", "emails.magicSession.footer": "이 이메일 계정으로 로그인 신청을 하지 않으셨다면 이 메세지를 무시하여주세요.", - "emails.magicSession.thanks": "감사합니다", + "emails.magicSession.thanks": "감사합니다、", "emails.magicSession.signature": "{{project}} 팀", "emails.recovery.subject": "비밀번호 재설정", - "emails.recovery.hello": "안녕하세요 {{user}}님", + "emails.recovery.hello": "안녕하세요 {{user}}님、", "emails.recovery.body": "{{project}}의 비밀번호 재설정을 위해 링크를 클릭하여주세요.", "emails.recovery.footer": "비밀번호 재설정 신청을 하지 않으셨다면 이 메세지를 무시하여주세요.", - "emails.recovery.thanks": "감사합니다", + "emails.recovery.thanks": "감사합니다、", "emails.recovery.signature": "{{project}} 팀", "emails.invitation.subject": "초대장 %s 팀 - %s", - "emails.invitation.hello": "안녕하세요", + "emails.invitation.hello": "안녕하세요、", "emails.invitation.body": "{{owner}}님이 귀하를 {{project}}의 {{team}} 팀으로 초대합니다.", "emails.invitation.footer": "팀에 합류할 의사가 없으시면 이 메세지를 무시하여주세요.", - "emails.invitation.thanks": "감사합니다", + "emails.invitation.thanks": "감사합니다、", "emails.invitation.signature": "{{project}} 팀", "locale.country.unknown": "알려지지 않은", "countries.af": "아프가니스탄", @@ -239,10 +239,10 @@ "emails.magicSession.securityPhrase": "이 이메일의 보안 구절은 {{phrase}}입니다. 로그인할 때 표시되는 구절과 일치한다면 이 이메일을 신뢰할 수 있습니다.", "emails.magicSession.optionUrl": "위의 버튼을 사용하여 로그인할 수 없다면, 다음 링크를 방문해 주세요:", "emails.otpSession.subject": "{{project}} 로그인", - "emails.otpSession.hello": "안녕하세요,", + "emails.otpSession.hello": "안녕하세요、", "emails.otpSession.description": "다음 인증 코드를 입력하면 보안을 유지하며 {{project}} 계정에 안전하게 로그인할 수 있습니다. 15분 후에 만료됩니다.", "emails.otpSession.clientInfo": "이 로그인은 {{agentClient}}을 사용하여 {{agentDevice}} {{agentOs}}에서 요청되었습니다. 로그인을 요청하지 않았다면, 이 이메일을 안심하고 무시하셔도 됩니다.", "emails.otpSession.securityPhrase": "이 이메일의 보안 구절은 {{phrase}}입니다. 로그인하는 동안 표시된 구절과 이 구절이 일치하면 이 이메일을 신뢰할 수 있습니다.", - "emails.otpSession.thanks": "감사합니다,", + "emails.otpSession.thanks": "감사합니다、", "emails.otpSession.signature": "{{project}} 팀" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/la.json b/app/config/locale/translations/la.json index 9ccbaba86ef..bebef268548 100644 --- a/app/config/locale/translations/la.json +++ b/app/config/locale/translations/la.json @@ -4,28 +4,28 @@ "settings.direction": "ltr*", "emails.sender": "%s team", "emails.verification.subject": "Ratio comprobatio", - "emails.verification.hello": "Salve ibi {{user}}", + "emails.verification.hello": "Salve ibi {{user}},", "emails.verification.body": "Sequere hanc nexum ut quin inscriptionem tuum.", "emails.verification.footer": "Si verificationem huius inscriptionis non postulasti, nuntium hunc ignorare potes.", - "emails.verification.thanks": "Gratias", + "emails.verification.thanks": "Gratias,", "emails.verification.signature": "{{project}} Team", "emails.magicSession.subject": "Log in", - "emails.magicSession.hello": "Salve ibi", + "emails.magicSession.hello": "Salve ibi,", "emails.magicSession.body": "Hanc nexum cum login", "emails.magicSession.footer": "Si verificationem huius inscriptionis non postulasti, nuntium hunc ignorare potes.", - "emails.magicSession.thanks": "Gratias", + "emails.magicSession.thanks": "Gratias,", "emails.magicSession.signature": "{{project}} team", "emails.recovery.subject": "Recuperet password", - "emails.recovery.hello": "Salve ibi {{user}}", + "emails.recovery.hello": "Salve ibi {{user}},", "emails.recovery.body": "Sequere hanc conjunctionem ut recipias project password {{project}}", "emails.recovery.footer": "Si tesseram tuam recuperare non petis, nuntium hunc ignorare potes", - "emails.recovery.thanks": "Gratias", + "emails.recovery.thanks": "Gratias,", "emails.recovery.signature": "{{project}} team", "emails.invitation.subject": "Invitatio pro %s in quadrigis %s", - "emails.invitation.hello": "Salve ibi", + "emails.invitation.hello": "Salve ibi,", "emails.invitation.body": "Haec inscriptio ad te missa est quia dominus incepto {{owner}} te invitare vult ut membrum {{team}} quadrigis fias ad {{project}}", "emails.invitation.footer": "Si non quaero, potes hunc nuntium ignorare", - "emails.invitation.thanks": "Gratias", + "emails.invitation.thanks": "Gratias,", "emails.invitation.signature": "{{project}} team", "locale.country.unknown": "Ignotum", "countries.af": "Afghanistan", @@ -245,10 +245,10 @@ "emails.otpSession.thanks": "Gratias,", "emails.otpSession.signature": "{{project}} team -> {{project}} grex", "emails.certificate.subject": "Defectio testimonii pro %s", - "emails.certificate.hello": "Salve", + "emails.certificate.hello": "Salve,", "emails.certificate.body": "Certificatum pro dominio tuo '{{domain}}' generari non potuit. Hoc conatus num. {{attempt}} est, et defectus causatus est ab: {{error}}", "emails.certificate.footer": "Praeclarum tuum testificationem valet ad XXX dies a primo defectu. Magnopere suademus ut hoc casum investiges, alioquin dominium tuum sine valida SSL communicatione erit.", - "emails.certificate.thanks": "Gratias", + "emails.certificate.thanks": "Gratias,", "emails.certificate.signature": "team {{project}}", "sms.verification.body": "{{secret}}" } diff --git a/app/config/locale/translations/lb.json b/app/config/locale/translations/lb.json index 3f590d5323c..91b52e4a181 100644 --- a/app/config/locale/translations/lb.json +++ b/app/config/locale/translations/lb.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s Team", "emails.verification.subject": "Kont Verifikatioun", - "emails.verification.hello": "Hey {{user}}", + "emails.verification.hello": "Hey {{user}},", "emails.verification.body": "Follegt dëse Link fir Är E -Mail Adress z'iwwerpréiwen.", "emails.verification.footer": "Wann Dir net gefrot hutt dës Adress z'iwwerpréiwen, kënnt Dir dëse Message ignoréieren.", - "emails.verification.thanks": "Merci", + "emails.verification.thanks": "Merci,", "emails.verification.signature": "{{project}} équipe", "emails.magicSession.subject": "Login", - "emails.magicSession.hello": "Hey", + "emails.magicSession.hello": "Hey,", "emails.magicSession.body": "Follegt dëse Link fir umellen.", "emails.magicSession.footer": "Wann Dir net gefrot hutt Iech mat dëser E -Mail anzemelden, kënnt Dir dëse Message ignoréieren.", - "emails.magicSession.thanks": "Merci", + "emails.magicSession.thanks": "Merci,", "emails.magicSession.signature": "{{project}} équipe", "emails.recovery.subject": "Password Reset", - "emails.recovery.hello": "Hello {{user}}", + "emails.recovery.hello": "Hello {{user}},", "emails.recovery.body": "Follegt dëse Link fir Äert {{project}} Passwuert zréckzesetzen.", "emails.recovery.footer": "Wann Dir net gefrot hutt Äert Passwuert zréckzesetzen, kënnt Dir dëse Message ignoréieren.", - "emails.recovery.thanks": "Merci", + "emails.recovery.thanks": "Merci,", "emails.recovery.signature": "{{project}} équipe", "emails.invitation.subject": "Invitatioun un %s équipe bei %s", - "emails.invitation.hello": "Hallo", + "emails.invitation.hello": "Hallo,", "emails.invitation.body": "Dës E -Mail gouf un Iech geschéckt well {{owner}} Iech invitéiere wëllt fir Member vum {{team}} Team bei {{project}} ze ginn.", "emails.invitation.footer": "Wann Dir net interesséiert sidd, kënnt Dir dëse Message ignoréieren.", - "emails.invitation.thanks": "Merci", + "emails.invitation.thanks": "Merci,", "emails.invitation.signature": "{{project}} équipe", "locale.country.unknown": "Onbekannt", "countries.af": "Afghanistan", @@ -244,4 +244,4 @@ "emails.otpSession.securityPhrase": "D'Sécherheetsausso fir dësen E-Mail ass {{phrase}}. Dir kënnt dësem E-Mail vertrauen, wann dës Ausso mat der Ausso iwwereneestëmmt, déi beim Umellen gewise ginn ass.", "emails.otpSession.thanks": "Merci,", "emails.otpSession.signature": "{{project}} Equipe" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/lt.json b/app/config/locale/translations/lt.json index f72250c98e5..94c874ce826 100644 --- a/app/config/locale/translations/lt.json +++ b/app/config/locale/translations/lt.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s komanda", "emails.verification.subject": "Paskyros Patvirtinimas", - "emails.verification.hello": "Labas {{user}}", + "emails.verification.hello": "Labas {{user}},", "emails.verification.body": "Spauskite šią nuorodą, kad patvirtintumėte savo el. paštą.", "emails.verification.footer": "Jei neprašėte patvirtinti šio el. pašto, galite ignoruoti šį pranešimą.", - "emails.verification.thanks": "Ačiū", + "emails.verification.thanks": "Ačiū,", "emails.verification.signature": "{{project}} komanda", "emails.magicSession.subject": "Prisijungti", - "emails.magicSession.hello": "Labas", + "emails.magicSession.hello": "Labas,", "emails.magicSession.body": "Spauskite šią nuorodą, kad prisijungtumėte.", "emails.magicSession.footer": "Jei neprašėte prisijungti naudojantis šiuo el. paštu, galite ignoruoti šį pranešimą.", - "emails.magicSession.thanks": "Ačiū", + "emails.magicSession.thanks": "Ačiū,", "emails.magicSession.signature": "{{project}} komanda", "emails.recovery.subject": "Slaptažodžio Atkūrimas", - "emails.recovery.hello": "Labas {{user}}", + "emails.recovery.hello": "Labas {{user}},", "emails.recovery.body": "Spauskite šią nuorodą, kad atkurtumėte projekto {{project}} slaptažodį.", "emails.recovery.footer": "Jei neprašėte atkurti savo slaptažodzio, galite ignoruoti šį pranešimą.", - "emails.recovery.thanks": "Ačiū", + "emails.recovery.thanks": "Ačiū,", "emails.recovery.signature": "{{project}} komanda", "emails.invitation.subject": "Pakvietimas į %s komandą %s projekte", - "emails.invitation.hello": "Labas", + "emails.invitation.hello": "Labas,", "emails.invitation.body": "Šis el. laiškas buvo atsiųstas jums, nes {{owner}} norėjo jus pakviesti tapti projekto {{project}} dalimi {{team}} komandoje.", "emails.invitation.footer": "Jei jūsų tai nedomina, galite ignoruoti šį pranešimą.", - "emails.invitation.thanks": "Ačiū", + "emails.invitation.thanks": "Ačiū,", "emails.invitation.signature": "{{project}} komanda", "locale.country.unknown": "Nežinoma", "countries.af": "Afganistanas", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Šio el. laiško saugumo frazė yra {{phrase}}. Galite pasitikėti šiuo el. laišku, jei ši frazė atitinka frazę, rodytą prisijungimo metu.", "emails.otpSession.thanks": "Ačiū,", "emails.otpSession.signature": "{{project}} komanda" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/lv.json b/app/config/locale/translations/lv.json index 66604a0e3ee..b4a396367ce 100644 --- a/app/config/locale/translations/lv.json +++ b/app/config/locale/translations/lv.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s komanda", "emails.verification.subject": "Konta verifikācija", - "emails.verification.hello": "Sveicināti, {{user}}", + "emails.verification.hello": "Sveicināti, {{user}},", "emails.verification.body": "Sekojiet saitei, lai apstiprinātu savu e-pasta adresi.", "emails.verification.footer": "Ja Jūs nepieprasījāt šīs adreses apstiprinājumu, lūdzu, ignorējiet šo ziņu.", - "emails.verification.thanks": "Paldies", + "emails.verification.thanks": "Paldies,", "emails.verification.signature": "{{project}} komanda", "emails.magicSession.subject": "Ieiet", - "emails.magicSession.hello": "Sveicināti", + "emails.magicSession.hello": "Sveicināti,", "emails.magicSession.body": "Sekojiet saitei, lai ieietu.", "emails.magicSession.footer": "Ja Jūs nepieprasījāt ieiet ar šo e-pasta adresi, lūdzu, ignorējiet šo ziņu.", - "emails.magicSession.thanks": "Paldies", + "emails.magicSession.thanks": "Paldies,", "emails.magicSession.signature": "{{project}} komanda", "emails.recovery.subject": "Paroles atjaunināšana", - "emails.recovery.hello": "Labdien, {{user}}", + "emails.recovery.hello": "Labdien, {{user}},", "emails.recovery.body": "Sekojiet saitei, lai atjauninātu {{project}} paroli.", "emails.recovery.footer": "Ja Jūs nepieprasījāt paroles atjaunināšanu, lūdzu, ignorējiet šo ziņu.", - "emails.recovery.thanks": "Paldies", + "emails.recovery.thanks": "Paldies,", "emails.recovery.signature": "{{project}} komanda", "emails.invitation.subject": "Ielūgums piebiedroties %s komandai %s projektā.", - "emails.invitation.hello": "Labdien", + "emails.invitation.hello": "Labdien,", "emails.invitation.body": "Šis e-pasts tika nosūtīts Jums, jo {{owner}} vēlējās Jūs ielūgt kļūt par {{team}} komandas biedru {{project}} projektā.", "emails.invitation.footer": "Ja Jūs neesat ieinteresēts, lūdzu, ignorējiet šo ziņu.", - "emails.invitation.thanks": "Paldies", + "emails.invitation.thanks": "Paldies,", "emails.invitation.signature": "{{project}} komanda", "locale.country.unknown": "Nav zināms", "countries.af": "Afganistāna", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Drošības frāze šim e-pastam ir {{phrase}}. Šim e-pastam var uzticēties, ja šī frāze sakrīt ar frāzi, kas parādīta pieslēdzoties.", "emails.otpSession.thanks": "Paldies,", "emails.otpSession.signature": "{{project}} komanda" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/ml.json b/app/config/locale/translations/ml.json index 60e84e2a92c..1b57d87865f 100644 --- a/app/config/locale/translations/ml.json +++ b/app/config/locale/translations/ml.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s ടീം", "emails.verification.subject": "അക്കൗണ്ട് സ്ഥിരീകരണം", - "emails.verification.hello": "നമസ്കാരം {{user}}", + "emails.verification.hello": "നമസ്കാരം {{user}},", "emails.verification.body": "നിങ്ങളുടെ ഇമെയിൽ വിലാസം സ്ഥിരീകരിക്കുന്നതിനായി ഈ ലിങ്ക് പിന്തുടരുക.", "emails.verification.footer": "ഈ വിലാസം സ്ഥിരീകരിക്കാന്‍ നിങ്ങൾ ആവശ്യപ്പെട്ടില്ലെങ്കിൽ, നിങ്ങൾക്ക് ഈ സന്ദേശം അവഗണിക്കാവുന്നതാണ്.", - "emails.verification.thanks": "നന്ദി", + "emails.verification.thanks": "നന്ദി,", "emails.verification.signature": "{{project}} ടീം", "emails.magicSession.subject": "ലോഗിൻ", - "emails.magicSession.hello": "നമസ്കാരം", + "emails.magicSession.hello": "നമസ്കാരം,", "emails.magicSession.body": "ലോഗിൻ ചെയ്യുന്നതിനായി ഈ ലിങ്ക് പിന്തുടരുക.", "emails.magicSession.footer": "ഈ ഇമെയിൽ ഉപയോഗിച്ച് ലോഗിൻ ചെയ്യാൻ നിങ്ങൾ ആവശ്യപ്പെട്ടില്ലെങ്കിൽ, ഈ സന്ദേശം അവഗണിക്കാവുന്നതാണ്.", - "emails.magicSession.thanks": "നന്ദി", + "emails.magicSession.thanks": "നന്ദി,", "emails.magicSession.signature": "{{project}} ടീം", "emails.recovery.subject": "രഹസ്യവാക്ക് പുനക്രമീകരണം", - "emails.recovery.hello": "നമസ്കാരം {{user}}", + "emails.recovery.hello": "നമസ്കാരം {{user}},", "emails.recovery.body": "നിങ്ങളുടെ {{Project}} രഹസ്യവാക്ക് പുനക്രമീകരിക്കുന്നതിന് ഈ ലിങ്ക് പിന്തുടരുക.", "emails.recovery.footer": "നിങ്ങളുടെ രഹസ്യവാക്ക് പുനക്രമീകരിക്കാന്‍ നിങ്ങൾ ആവശ്യപ്പെട്ടില്ലെങ്കിൽ, ഈ സന്ദേശം അവഗണിക്കാവുന്നതാണ്.", - "emails.recovery.thanks": "നന്ദി", + "emails.recovery.thanks": "നന്ദി,", "emails.recovery.signature": "{{project}} ടീം", "emails.invitation.subject": "%s -ലെ %s ടീമിലേക്കുള്ള ക്ഷണം", - "emails.invitation.hello": "നമസ്കാരം", + "emails.invitation.hello": "നമസ്കാരം,", "emails.invitation.body": "നിങ്ങളെ {{project}} -ലെ {{team}} ടീമിലെ അംഗമാകുവാന്‍ ക്ഷണിക്കാൻ {{owner}} ആഗ്രഹിക്കുന്നതിനാലാണ് ഈ മെയിൽ നിങ്ങൾക്ക് അയക്കുന്നത്.", "emails.invitation.footer": "നിങ്ങൾക്ക് താൽപ്പര്യമില്ലെങ്കിൽ, ഈ സന്ദേശം അവഗണിക്കാവുന്നതാണ്.", - "emails.invitation.thanks": "നന്ദി", + "emails.invitation.thanks": "നന്ദി,", "emails.invitation.signature": "{{project}} ടീം", "locale.country.unknown": "Unknown", "countries.af": "അഫ്ഗാനിസ്ഥാൻ", @@ -245,10 +245,10 @@ "emails.otpSession.thanks": "നന്ദി,", "emails.otpSession.signature": "പ്രോജക്ട് ടീം", "emails.certificate.subject": "%s ന് സർട്ടിഫിക്കറ്റ് പരാജയപ്പെട്ടു", - "emails.certificate.hello": "ഹലോ", + "emails.certificate.hello": "ഹലോ,", "emails.certificate.body": "നിങ്ങളുടെ ഡൊമൈൻ '{{domain}}'നു വേണ്ടിയുള്ള സർട്ടിഫിക്കറ്റ് ഉണ്ടാക്കാനായില്ല. ഇത് ശ്രമം നമ്പർ {{attempt}} ആണ്, പരാജയപ്പെട്ടത് ഇതു മൂലമാണ്: {{error}}", "emails.certificate.footer": "നിങ്ങളുടെ മുൻപത്തെ സർട്ടിഫിക്കറ്റ് ആദ്യ പരാജയത്തിനു ശേഷം 30 ദിവസം വരെ സാധുവായിരിക്കും. ഈ കേസ് അന്വേഷിച്ചു നോക്കുന്നത് ഞങ്ങൾ ശക്തമായി ശുപാർശ ചെയ്യുന്നു, അല്ലെങ്കിൽ നിങ്ങളുടെ ഡൊമെയ്‌ൻ സാധുവായ SSL കമ്മ്യൂണിക്കേഷനില്ലാത്ത ഒരു അവസ്ഥയിലാകും.", - "emails.certificate.thanks": "നന്ദി", + "emails.certificate.thanks": "നന്ദി,", "emails.certificate.signature": "{{project}} ടീം", "sms.verification.body": "{{secret}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/mr.json b/app/config/locale/translations/mr.json index 4edd6bf617b..6550d1c1bae 100644 --- a/app/config/locale/translations/mr.json +++ b/app/config/locale/translations/mr.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s टीम", "emails.verification.subject": "खाते सत्यापन", - "emails.verification.hello": "नमस्कार {{user}}", + "emails.verification.hello": "नमस्कार {{user}},", "emails.verification.body": "आपला ईमेल पत्ता सत्यापित करण्यासाठी या दुव्याचे अनुसरण करा.", "emails.verification.footer": "आपण या पत्त्याची पडताळणी करण्यास सांगितले नसल्यास, आपण या संदेशाकडे दुर्लक्ष करू शकता.", - "emails.verification.thanks": "धन्यवाद", + "emails.verification.thanks": "धन्यवाद,", "emails.verification.signature": "{{project}} संघ", "emails.magicSession.subject": "लॉगिन करा", - "emails.magicSession.hello": "नमस्कार ", + "emails.magicSession.hello": "नमस्कार ,", "emails.magicSession.body": "लॉगिन करण्यासाठी या लिंकचे अनुसरण करा.", "emails.magicSession.footer": "आपण या ईमेलचा वापर करून लॉगिन करण्यास सांगितले नसल्यास, आपण या संदेशाकडे दुर्लक्ष करू शकता.", - "emails.magicSession.thanks": "धन्यवाद", + "emails.magicSession.thanks": "धन्यवाद,", "emails.magicSession.signature": "{{project}} संघ", "emails.recovery.subject": "पासवर्ड रीसेट", - "emails.recovery.hello": "नमस्कार {{user}}", + "emails.recovery.hello": "नमस्कार {{user}},", "emails.recovery.body": "आपला {{project}}चे पासवर्ड रीसेट करण्यासाठी या लिंकचे अनुसरण करा", "emails.recovery.footer": "आपण आपला पासवर्ड रीसेट करण्यास सांगितले नसल्यास, आपण या संदेशाकडे दुर्लक्ष करू शकता.", - "emails.recovery.thanks": "धन्यवाद", + "emails.recovery.thanks": "धन्यवाद,", "emails.recovery.signature": "{{project}} संघ", "emails.invitation.subject": "%s संघ %s येथे सामील होण्यासाठी आमंत्रण", - "emails.invitation.hello": "नमस्कार", + "emails.invitation.hello": "नमस्कार,", "emails.invitation.body": "हा मेल तुम्हाला पाठवला होता कारण {{owner}} तुम्हाला {{project}} येथे {{team}} टीमचे सदस्य होण्यासाठी आमंत्रित करू इच्छित होते.", "emails.invitation.footer": "आपल्याला स्वारस्य नसल्यास, आपण या संदेशाकडे दुर्लक्ष करू शकता.", - "emails.invitation.thanks": "धन्यवाद", + "emails.invitation.thanks": "धन्यवाद,", "emails.invitation.signature": "{{project}} संघ", "locale.country.unknown": "अज्ञात", "countries.af": "अफगानिस्तान", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "या ईमेलसाठीचे सुरक्षा वाक्यांश {{phrase}} आहे. जर हे वाक्यांश साइन इन करताना दाखवल्या गेलेल्या वाक्यांशाशी जुळत असेल तर आपण या ईमेलवर विश्वास ठेवू शकता.", "emails.otpSession.thanks": "धन्यवाद,", "emails.otpSession.signature": "{{project}} संघ" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/ms.json b/app/config/locale/translations/ms.json index ded7587d34f..a02c36b0753 100644 --- a/app/config/locale/translations/ms.json +++ b/app/config/locale/translations/ms.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s Team", "emails.verification.subject": "Pengesahan Akaun", - "emails.verification.hello": "Hey {{user}}", + "emails.verification.hello": "Hey {{user}},", "emails.verification.body": "Tekan pautan ini untuk mengesahkan alamat email anda.", "emails.verification.footer": "Sekiranya anda tidak membuat permintaan untuk mengesahkan email ini, sila abaikan mesej ini.", - "emails.verification.thanks": "Terima kasih", + "emails.verification.thanks": "Terima kasih,", "emails.verification.signature": "{{project}} team", "emails.magicSession.subject": "Log masuk", - "emails.magicSession.hello": "Hey", + "emails.magicSession.hello": "Hey,", "emails.magicSession.body": "Tekan pautan ini untuk log masuk.", "emails.magicSession.footer": "Sekiranya anda tidak membuat permintaan untuk log masuk menggunakan email ini, sila abaikan mesej ini.", - "emails.magicSession.thanks": "Terima kasih", + "emails.magicSession.thanks": "Terima kasih,", "emails.magicSession.signature": "{{project}} team", "emails.recovery.subject": "Menetap semula Kata Laluan", - "emails.recovery.hello": "Hello {{user}}", + "emails.recovery.hello": "Hello {{user}},", "emails.recovery.body": "Tekan pautan ini untuk menetapkan semula kata laluan {{project}}.", "emails.recovery.footer": "Sekiranya anda tidak membuat permintaan menetap semula kata laluan, sila abaikan mesej ini.", - "emails.recovery.thanks": "Terima kasih", + "emails.recovery.thanks": "Terima kasih,", "emails.recovery.signature": "{{project}} team", "emails.invitation.subject": "Jemputan ke pasukan %s di %s", - "emails.invitation.hello": "Hello", + "emails.invitation.hello": "Hello,", "emails.invitation.body": "Anda menerima mel ini kerana {{owner}} ingin menjemput anda untuk menjadi ahli pasukan {{team}} di {{project}}.", "emails.invitation.footer": "Sekiranya anda tidak berminat, sila abaikan mesej ini.", - "emails.invitation.thanks": "Terima kasih", + "emails.invitation.thanks": "Terima kasih,", "emails.invitation.signature": "{{project}} team", "locale.country.unknown": "Tidak Diketahui", "countries.af": "Afghanistan", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Frasa keselamatan untuk email ini adalah {{phrase}}. Anda boleh mempercayai email ini jika frasa ini sepadan dengan frasa yang ditunjukkan semasa log masuk.", "emails.otpSession.thanks": "Terima kasih,", "emails.otpSession.signature": "pasukan {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/nb.json b/app/config/locale/translations/nb.json index f8680e89933..daf18abc1ca 100644 --- a/app/config/locale/translations/nb.json +++ b/app/config/locale/translations/nb.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s Team", "emails.verification.subject": "Kontobekreftelse", - "emails.verification.hello": "Hei {{user}}", + "emails.verification.hello": "Hei {{user}},", "emails.verification.body": "Følg denne lenken for å bekrefte din e-postadresse.", "emails.verification.footer": "Dersom du ikke ba om å bekrefte e-postadressen, kan du se bort fra denne meldingen.", - "emails.verification.thanks": "Takk", + "emails.verification.thanks": "Takk,", "emails.verification.signature": "{{project}} team", "emails.magicSession.subject": "Pålogging", - "emails.magicSession.hello": "Hei", + "emails.magicSession.hello": "Hei,", "emails.magicSession.body": "Følg denne lenken for å logge på.", "emails.magicSession.footer": "Dersom du ikke ba om å logge på med denne e-postadressen, kan du se bort fra denne meldingen.", - "emails.magicSession.thanks": "Takk", + "emails.magicSession.thanks": "Takk,", "emails.magicSession.signature": "{{project}} team", "emails.recovery.subject": "Nullstille passord", - "emails.recovery.hello": "Hei {{user}}", + "emails.recovery.hello": "Hei {{user}},", "emails.recovery.body": "Følg denne lenken for å nullstille ditt {{project}} passord.", "emails.recovery.footer": "Dersom du ikke ba om å nullstille passordet ditt, kan du se bort fra denne meldingen.", - "emails.recovery.thanks": "Takk", + "emails.recovery.thanks": "Takk,", "emails.recovery.signature": "{{project}} team", "emails.invitation.subject": "Invitasjon til %s Team ved %s", - "emails.invitation.hello": "Hei", + "emails.invitation.hello": "Hei,", "emails.invitation.body": "Denne meldingen ble sendt til deg fordi {{owner}} ønsket å invitere deg til å bli medlem av {{team}} team ved {{project}}.", "emails.invitation.footer": "Dersom du ikke er interessert, kan du se bort fra denne meldingen.", - "emails.invitation.thanks": "Takk", + "emails.invitation.thanks": "Takk,", "emails.invitation.signature": "{{project}} team", "locale.country.unknown": "Ukjent", "countries.af": "Afghanistan", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Sikkerhetsfrasen for denne e-posten er {{phrase}}. Du kan stole på denne e-posten hvis denne frasen stemmer overens med frasen som ble vist under pålogging.", "emails.otpSession.thanks": "Takk,", "emails.otpSession.signature": "{{project}} team" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/ne.json b/app/config/locale/translations/ne.json index f31609eafce..4f05a9b5ba0 100644 --- a/app/config/locale/translations/ne.json +++ b/app/config/locale/translations/ne.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s समूह", "emails.verification.subject": "खाता प्रमाणिकरण", - "emails.verification.hello": "नमस्ते {{user}}", + "emails.verification.hello": "नमस्ते {{user}},", "emails.verification.body": "इमेल ठेगाना प्रमाणित गर्नको लागी यो लिंकमा जानुहोस।", "emails.verification.footer": "यदि तपाइँले आफ्नो खाता प्रमाणित गर्न सोध्नु भएको छैन भने तपाइँले यो सन्देश लाई बेवास्ता गर्न सक्नुहुन्छ।", - "emails.verification.thanks": "धन्यवाद", + "emails.verification.thanks": "धन्यवाद,", "emails.verification.signature": "{{project}} समूह", "emails.magicSession.subject": "लगइन", - "emails.magicSession.hello": "नमस्ते", + "emails.magicSession.hello": "नमस्ते,", "emails.magicSession.body": "लगइन गर्नको लागी यो लिंकमा जानुहोस।", "emails.magicSession.footer": "यदि तपाइँले यो इमेल प्रयोग गरेर लगइन गर्न सोध्नु भएको छैन भने तपाइँले यो सन्देश लाई बेवास्ता गर्न सक्नुहुन्छ।", - "emails.magicSession.thanks": "धन्यवाद", + "emails.magicSession.thanks": "धन्यवाद,", "emails.magicSession.signature": "{{project}} समूह", "emails.recovery.subject": "पासवर्ड रिसेट", - "emails.recovery.hello": "नमस्ते {{user}}", + "emails.recovery.hello": "नमस्ते {{user}},", "emails.recovery.body": "{{project}}को पासवर्ड रिसेट गर्नको लागी यो लिंकमा जानुहोस।", "emails.recovery.footer": "यदि तपाइँले आफ्नो पासवर्ड रिसेट गर्न सोध्नु भएको छैन भने तपाइँले यो सन्देश लाई बेवास्ता गर्न सक्नुहुन्छ।", - "emails.recovery.thanks": "धन्यवाद", + "emails.recovery.thanks": "धन्यवाद,", "emails.recovery.signature": "{{project}} समूह", "emails.invitation.subject": "%s समूहको लागि %s मा निमन्त्रणा", - "emails.invitation.hello": "नमस्ते", + "emails.invitation.hello": "नमस्ते,", "emails.invitation.body": "{{owner}}ले तपाइँलाई {{project}}मा {{team}}को सदस्य बन्न आमन्त्रित गर्न चाहनु भएको छ। त्येसैले तपाइँलाई यो सन्देश पठाइएको हो।", "emails.invitation.footer": "यदि तपाइँ इच्छुक हुनुहुन्न भने, तपाइँले यो सन्देशलाई बेवास्ता गर्न सक्नुहुन्छ।", - "emails.invitation.thanks": "धन्यवाद", + "emails.invitation.thanks": "धन्यवाद,", "emails.invitation.signature": "{{project}} समूह", "locale.country.unknown": "अज्ञात", "countries.af": "अफगानिस्तान", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "यस ईमेलको लागि सुरक्षा वाक्य {{phrase}} हो। यदि यो वाक्य साइन इन गर्दा देखाइएको वाक्यसँग मेल खान्छ भने तपाईँले यो ईमेलमा विश्वास गर्न सक्नुहुन्छ।", "emails.otpSession.thanks": "धन्यवाद,", "emails.otpSession.signature": "{{project}} टिम" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/nl.json b/app/config/locale/translations/nl.json index 55e48fa753e..cae82a9a373 100644 --- a/app/config/locale/translations/nl.json +++ b/app/config/locale/translations/nl.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s Team", "emails.verification.subject": "Account Verificatie", - "emails.verification.hello": "Hoi {{user}}", + "emails.verification.hello": "Hoi {{user}},", "emails.verification.body": "Volg deze link om uw e-mail te verifieren", "emails.verification.footer": "Als u geen aanvraag voor verificatie heeft gemaakt, kan u deze mail negeren", - "emails.verification.thanks": "Bedankt", + "emails.verification.thanks": "Bedankt,", "emails.verification.signature": "{{project}} team", "emails.magicSession.subject": "Login", - "emails.magicSession.hello": "Hoi", + "emails.magicSession.hello": "Hoi,", "emails.magicSession.body": "Volg deze link om in te loggen", "emails.magicSession.footer": "Als u geen aanvraag heeft gemaakt om met deze mail in te loggen, kan u deze mail negeren", - "emails.magicSession.thanks": "Bedankt", + "emails.magicSession.thanks": "Bedankt,", "emails.magicSession.signature": "{{project}} team", "emails.recovery.subject": "Wachtwoord Herinstellen", - "emails.recovery.hello": "Hallo {{user}}", + "emails.recovery.hello": "Hallo {{user}},", "emails.recovery.body": "Volg deze link om het wachtwoord van uw project {{project}} te wijzigen", "emails.recovery.footer": "Als u geen aanvraag heeft gemaakt om uw wachtwoord te wijzigen, kan u deze mail negeren", - "emails.recovery.thanks": "Bedankt", + "emails.recovery.thanks": "Bedankt,", "emails.recovery.signature": "{{project}} team", "emails.invitation.subject": "Uitnodiging van %s Team uit %s", "emails.invitation.hello": "Hallo,", "emails.invitation.body": "U ontvangt deze mail want u was uitgenodig door {{owner}} om lid van het {{team}} team te worden in {{project}} ", "emails.invitation.footer": "Als u niet geintereseerd bent, kan u deze mail negeren.", - "emails.invitation.thanks": "Bedankt", + "emails.invitation.thanks": "Bedankt,", "emails.invitation.signature": "{{project}} team", "locale.country.unknown": "Onbekend", "countries.af": "Afghanistan", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "De beveiligingszin voor deze e-mail is {{phrase}}. U kunt deze e-mail vertrouwen als deze zin overeenkomt met de zin die wordt getoond tijdens het inloggen.", "emails.otpSession.thanks": "Bedankt,", "emails.otpSession.signature": "{{project}} team" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/nn.json b/app/config/locale/translations/nn.json index 6ab037466f7..44be0f98451 100644 --- a/app/config/locale/translations/nn.json +++ b/app/config/locale/translations/nn.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s Team", "emails.verification.subject": "Kontostadfesting", - "emails.verification.hello": "Hallo {{user}}", + "emails.verification.hello": "Hallo {{user}},", "emails.verification.body": "Følg denne lenkja for å bekrefta din e-postadresse.", "emails.verification.footer": "Om du ikkje bad om å bekrefta e-postadressa, kan du ignorera denne meldinga.", - "emails.verification.thanks": "Takk", + "emails.verification.thanks": "Takk,", "emails.verification.signature": "{{project}} team", "emails.magicSession.subject": "Pålogging", - "emails.magicSession.hello": "Hei", + "emails.magicSession.hello": "Hei,", "emails.magicSession.body": "Følg denne lenkja for å logge på.", "emails.magicSession.footer": "Om du ikkje ba om å logge på med denne e-postadressa, kan du ignorera denne meldinga.", - "emails.magicSession.thanks": "Takk", + "emails.magicSession.thanks": "Takk,", "emails.magicSession.signature": "{{project}} team", "emails.recovery.subject": "Nullstilla passord", - "emails.recovery.hello": "Hallo {{user}}", + "emails.recovery.hello": "Hallo {{user}},", "emails.recovery.body": "Følg denne lenkja for å nullstilla ditt {{project}} passord.", "emails.recovery.footer": "Om du ikkje ba om å nullstilla passordet ditt, kan du ignorera denne meldinga.", - "emails.recovery.thanks": "Takk", + "emails.recovery.thanks": "Takk,", "emails.recovery.signature": "{{project}} team", "emails.invitation.subject": "Innbyding til %s Team ved %s", - "emails.invitation.hello": "Hallo", + "emails.invitation.hello": "Hallo,", "emails.invitation.body": "Denne meldinga ble sendt til deg fordi {{owner}} ynskja å invitera deg til å bli medlem av {{team}} team i {{project}}.", "emails.invitation.footer": "Om du ikkje er interessert, kan du ignorera denne meldinga.", - "emails.invitation.thanks": "Takk", + "emails.invitation.thanks": "Takk,", "emails.invitation.signature": "{{project}} team", "locale.country.unknown": "Ukjend", "countries.af": "Afghanistan", @@ -245,10 +245,10 @@ "emails.otpSession.thanks": "Takk,", "emails.otpSession.signature": "{{project}}-laget", "emails.certificate.subject": "Sertifikatfeil for %s", - "emails.certificate.hello": "Hei", + "emails.certificate.hello": "Hei,", "emails.certificate.body": "Sertifikatet for domenet ditt '{{domain}}' kunne ikkje opprettast. Dette er forsøk nr. {{attempt}}, og feilen blei forårsaka av: {{error}}", "emails.certificate.footer": "Førre sertifikatet ditt vil vere gyldig i 30 dagar sidan den første feilen. Vi rår sterkt til at du undersøkjer denne saka, elles vil domenet ditt ende opp utan gyldig SSL-kommunikasjon.", - "emails.certificate.thanks": "Takk", + "emails.certificate.thanks": "Takk,", "emails.certificate.signature": "{{project}} team", "sms.verification.body": "{{secret}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/or.json b/app/config/locale/translations/or.json index 08b150fbb7e..efd516f23a1 100644 --- a/app/config/locale/translations/or.json +++ b/app/config/locale/translations/or.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s ଦଳ", "emails.verification.subject": "ଖାତା ଯାଞ୍ଚ", - "emails.verification.hello": "ନମସ୍କାର {{user}}", + "emails.verification.hello": "ନମସ୍କାର {{user}},", "emails.verification.body": "ଆପଣଙ୍କର ଇମେଲ୍ ଠିକଣା ଯାଞ୍ଚ କରିବାକୁ ଏହି ଲିଙ୍କ୍ ଅନୁସରଣ କରନ୍ତୁ |", "emails.verification.footer": "ଯଦି ଆପଣ ଏହି ଠିକଣା ଯାଞ୍ଚ କରିବାକୁ କହି ନାହାଁନ୍ତି, ତେବେ ଆପଣ ଏହି ସନ୍ଦେଶକୁ ଉପେକ୍ଷା କରିପାରିବେ |", - "emails.verification.thanks": "ଧନ୍ୟବାଦ", + "emails.verification.thanks": "ଧନ୍ୟବାଦ,", "emails.verification.signature": "{{project}} ଦଳ", "emails.magicSession.subject": "ଲଗଇନ୍ କରନ୍ତୁ", - "emails.magicSession.hello": "ନମସ୍କାର", + "emails.magicSession.hello": "ନମସ୍କାର,", "emails.magicSession.body": "ଲଗଇନ୍ କରିବାକୁ ଏହି ଲିଙ୍କ୍ ଅନୁସରଣ କରନ୍ତୁ |", "emails.magicSession.footer": "ଯଦି ଆପଣ ଏହି ଇମେଲ୍ ବ୍ୟବହାର କରି ଲଗଇନ୍ କରିବାକୁ କହି ନାହାଁନ୍ତି, ତେବେ ଆପଣ ଏହି ସନ୍ଦେଶକୁ ଉପେକ୍ଷା କରିପାରିବେ |", - "emails.magicSession.thanks": "ଧନ୍ୟବାଦ", + "emails.magicSession.thanks": "ଧନ୍ୟବାଦ,", "emails.magicSession.signature": "{{project}} ଦଳ", "emails.recovery.subject": "ପାସୱାର୍ଡ ପୁନଃ ସେଟ୍ କରନ୍ତୁ |", - "emails.recovery.hello": "ନମସ୍କାର {{user}}", + "emails.recovery.hello": "ନମସ୍କାର {{user}},", "emails.recovery.body": "ଆପଣଙ୍କର {{project}} ପାସୱାର୍ଡ ପୁନଃ ସେଟ୍ କରିବାକୁ ଏହି ଲିଙ୍କକୁ ଅନୁସରଣ କରନ୍ତୁ |", "emails.recovery.footer": "ଯଦି ଆପଣ ଆପଣଙ୍କର ପାସୱାର୍ଡ ପୁନଃ ସେଟ୍ କରିବାକୁ କହି ନାହାଁନ୍ତି, ତେବେ ଆପଣ ଏହି ସନ୍ଦେଶକୁ ଉପେକ୍ଷା କରିପାରିବେ |", - "emails.recovery.thanks": "ଧନ୍ୟବାଦ", + "emails.recovery.thanks": "ଧନ୍ୟବାଦ,", "emails.recovery.signature": "{{project}} ଦଳ", "emails.invitation.subject": "%s ରେ %s ଦଳକୁ ନିମନ୍ତ୍ରଣ |", - "emails.invitation.hello": "ନମସ୍କାର", + "emails.invitation.hello": "ନମସ୍କାର,", "emails.invitation.body": "ଏହି ମେଲ୍ ଆପଣଙ୍କୁ ପଠାଯାଇଥିଲା କାରଣ {{owner}} ଆପଣଙ୍କୁ {{project} ରେ {{team}} ଦଳର ସଦସ୍ୟ ହେବାକୁ ଆମନ୍ତ୍ରଣ କରିବାକୁ ଚାହୁଁଥିଲେ |", "emails.invitation.footer": "ଯଦି ଆପଣ ଆଗ୍ରହୀ ନୁହଁନ୍ତି, ଆପଣ ଏହି ସନ୍ଦେଶକୁ ଅଣଦେଖା କରିପାରିବେ |", - "emails.invitation.thanks": "ଧନ୍ୟବାଦ", + "emails.invitation.thanks": "ଧନ୍ୟବାଦ,", "emails.invitation.signature": "{{project}} ଦଳ", "locale.country.unknown": "ଅଜ୍ଞାତ", "countries.af": "ଆଫଗାନିସ୍ତାନ", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "ଏହି ଇମେଲର ସୁରକ୍ଷା ବାକ୍ୟାଂଶ ହେଉଛି {{phrase}}। ସାଇନ୍ ଇନ୍ କରିବା ସମୟରେ ଦେଖାଯାଇଥିବା ବାକ୍ୟାଂଶ ସହ ଏହା ମେଳେ ଯଦି, ଆପଣ ଏହି ଇମେଲକୁ ଆସ୍ଥା କରି ପାରିବେ।", "emails.otpSession.thanks": "ଧନ୍ୟବାଦ,", "emails.otpSession.signature": "ପ୍ରକଳ୍ପ ଟିମ୍ବ୍" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/pa.json b/app/config/locale/translations/pa.json index 76efde346bf..de71be9f49c 100644 --- a/app/config/locale/translations/pa.json +++ b/app/config/locale/translations/pa.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s ਟੀਮ", "emails.verification.subject": "", - "emails.verification.hello": "", + "emails.verification.hello": ",", "emails.verification.body": "", "emails.verification.footer": "", - "emails.verification.thanks": "", + "emails.verification.thanks": ",", "emails.verification.signature": "", "emails.magicSession.subject": "", - "emails.magicSession.hello": "", + "emails.magicSession.hello": ",", "emails.magicSession.body": "", "emails.magicSession.footer": "", - "emails.magicSession.thanks": "", + "emails.magicSession.thanks": ",", "emails.magicSession.signature": "", "emails.recovery.subject": "", - "emails.recovery.hello": "", + "emails.recovery.hello": ",", "emails.recovery.body": "", "emails.recovery.footer": "", - "emails.recovery.thanks": "", + "emails.recovery.thanks": ",", "emails.recovery.signature": "", "emails.invitation.subject": "", - "emails.invitation.hello": "", + "emails.invitation.hello": ",", "emails.invitation.body": "", "emails.invitation.footer": "", - "emails.invitation.thanks": "", + "emails.invitation.thanks": ",", "emails.invitation.signature": "", "locale.country.unknown": "ਅਣਜਾਣ", "countries.af": "ਅਫਗਾਨਿਸਤਾਨ", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "ਇਸ ਈਮੇਲ ਲਈ ਸੁਰੱਖਿਆ ਵਾਕ ਹੈ {{phrase}}। ਜੇ ਇਹ ਵਾਕ ਸਾਈਨ ਇਨ ਕਰਨ ਸਮੇਂ ਦਿਖਾਈ ਦੇਣ ਵਾਲੇ ਵਾਕ ਨਾਲ ਮੇਲ ਖਾਂਦਾ ਹੈ ਤਾਂ ਤੁਸੀਂ ਇਸ ਈਮੇਲ 'ਤੇ ਭਰੋਸਾ ਕਰ ਸਕਦੇ ਹੋ।", "emails.otpSession.thanks": "ਧੰਨਵਾਦ,", "emails.otpSession.signature": "{{project}} ਟੀਮ" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/pl.json b/app/config/locale/translations/pl.json index e596d2c04b5..ee5811fb598 100644 --- a/app/config/locale/translations/pl.json +++ b/app/config/locale/translations/pl.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "Zespół %s", "emails.verification.subject": "Weryfikacja konta", - "emails.verification.hello": "Cześć {{user}}", + "emails.verification.hello": "Cześć {{user}},", "emails.verification.body": "Przejdź do tego linku, aby zweryfikować swój adres e-mail.", "emails.verification.footer": "Jeśli to nie Ty prosiłeś o zweryfikowanie tego adresu, zignoruj tę wiadomość.", - "emails.verification.thanks": "Dziękujemy", + "emails.verification.thanks": "Dziękujemy,", "emails.verification.signature": "Zespół {{project}}", "emails.magicSession.subject": "Logowanie", - "emails.magicSession.hello": "Cześć", + "emails.magicSession.hello": "Cześć,", "emails.magicSession.body": "Kliknij w ten link, aby zalogować się.", "emails.magicSession.footer": "Jeśli to nie Ty prosiłeś o logowanie przy użyciu tego adresu e-mail, zignoruj tę wiadomość.", - "emails.magicSession.thanks": "Dziękujemy", + "emails.magicSession.thanks": "Dziękujemy,", "emails.magicSession.signature": "Zespół {{project}}", "emails.recovery.subject": "Resetowanie hasła", - "emails.recovery.hello": "Cześć {{user}}", + "emails.recovery.hello": "Cześć {{user}},", "emails.recovery.body": "Przejdź do tego linku, aby zresetować hasło dla {{project}}.", "emails.recovery.footer": "Jeśli to nie Ty prosiłeś o zresetowanie swojego hasła, zignoruj tę wiadomość.", - "emails.recovery.thanks": "Dziękujemy", + "emails.recovery.thanks": "Dziękujemy,", "emails.recovery.signature": "Zespół {{project}}", "emails.invitation.subject": "Zaproszenie do zespołu %s w %s", - "emails.invitation.hello": "Cześć", + "emails.invitation.hello": "Cześć,", "emails.invitation.body": "Otrzymujesz tę wiadomość, ponieważ {{owner}} zaprasza Cię do grona członków zespołu {{team}} w projekcie {{project}}.", "emails.invitation.footer": "Jeśli nie jesteś zainteresowany, zignoruj tę wiadomość.", - "emails.invitation.thanks": "Dziękujemy", + "emails.invitation.thanks": "Dziękujemy,", "emails.invitation.signature": "Zespół {{project}}", "locale.country.unknown": "Nieznany", "countries.af": "Afganistan", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Hasłem zabezpieczającym dla tego e-maila jest {{phrase}}. Możesz zaufać temu e-mailowi, jeśli hasło zgadza się z hasłem wyświetlonym podczas logowania.", "emails.otpSession.thanks": "Dzięki,", "emails.otpSession.signature": "team {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/pt-br.json b/app/config/locale/translations/pt-br.json index b2c49310118..a53ca798137 100644 --- a/app/config/locale/translations/pt-br.json +++ b/app/config/locale/translations/pt-br.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "Time %s", "emails.verification.subject": "Verificação da Conta", - "emails.verification.hello": "Olá {{user}}", + "emails.verification.hello": "Olá {{user}},", "emails.verification.body": "Clique neste link para verificar o seu endereço de e-mail.", "emails.verification.footer": "Se você não solicitou a verificação deste e-mail, ignore essa mensagem.", - "emails.verification.thanks": "Muito obrigado", + "emails.verification.thanks": "Muito obrigado,", "emails.verification.signature": "Time {{project}}", "emails.magicSession.subject": "Login", - "emails.magicSession.hello": "Olá", + "emails.magicSession.hello": "Olá,", "emails.magicSession.body": "Clique neste link para entrar.", "emails.magicSession.footer": "Se você não solicitou conectar-se com este e-mail, ignore essa mensagem.", - "emails.magicSession.thanks": "Muito obrigado", + "emails.magicSession.thanks": "Muito obrigado,", "emails.magicSession.signature": "Time {{project}}", "emails.recovery.subject": "Redefinição de senha", - "emails.recovery.hello": "Olá {{user}}", + "emails.recovery.hello": "Olá {{user}},", "emails.recovery.body": "Clique neste link para redefinir sua senha do {{project}}.", "emails.recovery.footer": "Se você não solicitou a redefinição da sua senha, você pode ignorar essa mensagem.", - "emails.recovery.thanks": "Muito obrigado", + "emails.recovery.thanks": "Muito obrigado,", "emails.recovery.signature": "Time {{project}}", "emails.invitation.subject": "Convite para o Time %s em %s", - "emails.invitation.hello": "Olá", + "emails.invitation.hello": "Olá,", "emails.invitation.body": "Este e-mail foi enviado porque {{owner}} deseja convidar você a se tornar membro do Time {{team}} em {{project}}.", "emails.invitation.footer": "Caso não tenha interesse, ignore essa mensagem.", - "emails.invitation.thanks": "Muito obrigado", + "emails.invitation.thanks": "Muito obrigado,", "emails.invitation.signature": "Time {{project}}", "locale.country.unknown": "Desconhecido", "countries.af": "Afeganistão", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "A frase de segurança para este e-mail é {{phrase}}. Você pode confiar neste e-mail se esta frase corresponder à frase mostrada durante o login.", "emails.otpSession.thanks": "Obrigado,", "emails.otpSession.signature": "equipe {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/pt-pt.json b/app/config/locale/translations/pt-pt.json index 2dab03c9dd5..d85dca9300b 100644 --- a/app/config/locale/translations/pt-pt.json +++ b/app/config/locale/translations/pt-pt.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "Equipa %s", "emails.verification.subject": "Verificação de contas", - "emails.verification.hello": "Hey {{user}}", + "emails.verification.hello": "Hey {{user}},", "emails.verification.body": "Siga esta ligação para verificar o seu endereço de correio electrónico.", "emails.verification.footer": "Se não pediu para verificar este endereço, pode ignorar esta mensagem.", - "emails.verification.thanks": "Obrigado", + "emails.verification.thanks": "Obrigado,", "emails.verification.signature": "Equipa {{project}}", "emails.magicSession.subject": "Login", - "emails.magicSession.hello": "Olá ", + "emails.magicSession.hello": "Olá ,", "emails.magicSession.body": "Siga esta ligação para iniciar sessão.", "emails.magicSession.footer": "Se não pediu para entrar usando este e-mail, pode ignorar esta mensagem.", - "emails.magicSession.thanks": "Obrigado", + "emails.magicSession.thanks": "Obrigado,", "emails.magicSession.signature": "Equipa {{project}}", "emails.recovery.subject": "Redefinição de senha", - "emails.recovery.hello": "Olá {{user}}", + "emails.recovery.hello": "Olá {{user}},", "emails.recovery.body": "Utilize este link para redefinir a palavra-passe do seu projecto {{project}}", "emails.recovery.footer": "Se não pediu para redefinir a sua palavra-passe, pode ignorar esta mensagem.", - "emails.recovery.thanks": "Obrigado", + "emails.recovery.thanks": "Obrigado,", "emails.recovery.signature": "Equipa {{project}}", "emails.invitation.subject": "Convite à equipa de %s às %s", - "emails.invitation.hello": "Olá", + "emails.invitation.hello": "Olá,", "emails.invitation.body": "Este correio foi-lhe enviado porque {{owner}} queria convidá-lo a tornar-se membro da equipa {{team}} da {{project}}.", "emails.invitation.footer": "Se não estiver interessado, pode ignorar esta mensagem.", - "emails.invitation.thanks": "Obrigado", + "emails.invitation.thanks": "Obrigado,", "emails.invitation.signature": "Equipa {{project}}", "locale.country.unknown": "Desconhecido", "countries.af": "Afeganistão", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "A frase de segurança para este email é {{phrase}}. Você pode confiar neste email se essa frase corresponder à frase mostrada durante o login.", "emails.otpSession.thanks": "Obrigado,", "emails.otpSession.signature": "equipe {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/ro.json b/app/config/locale/translations/ro.json index 45fb71d190e..04cb22dd6b1 100644 --- a/app/config/locale/translations/ro.json +++ b/app/config/locale/translations/ro.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s Echipa", "emails.verification.subject": "Verificare cont", - "emails.verification.hello": "Bună ziua, {{user}}", + "emails.verification.hello": "Bună ziua, {{user}},", "emails.verification.body": "Click pe acest link pentru a valida adresa de email.", "emails.verification.footer": "Dacă nu ai cerut validarea adresei de email, poți ignora acest mesaj.", - "emails.verification.thanks": "Mulțumim", + "emails.verification.thanks": "Mulțumim,", "emails.verification.signature": "Echipa {{project}}", "emails.magicSession.subject": "Login", - "emails.magicSession.hello": "Bună ziua", + "emails.magicSession.hello": "Bună ziua,", "emails.magicSession.body": "Urmează acest link pentru logare.", "emails.magicSession.footer": "Dacă nu ai incercat să te loghezi folosing această adresa de email, poți ignora acest mesaj.", - "emails.magicSession.thanks": "Mulțumim", + "emails.magicSession.thanks": "Mulțumim,", "emails.magicSession.signature": "Echipa {{project}}", "emails.recovery.subject": "Resetare parolă", - "emails.recovery.hello": "Bună ziua, {{user}}", + "emails.recovery.hello": "Bună ziua, {{user}},", "emails.recovery.body": "Click aici pentru a reseta parola pentru {{project}}", "emails.recovery.footer": "Dacă nu ai cerut să îți schimbi parola, ignoră acest mesaj.", - "emails.recovery.thanks": "Mulțumim", + "emails.recovery.thanks": "Mulțumim,", "emails.recovery.signature": "Echipa {{project}}", "emails.invitation.subject": "Invitatie catre %s Echipa la %s", - "emails.invitation.hello": "Bună ziua", + "emails.invitation.hello": "Bună ziua,", "emails.invitation.body": "Acest email a fost trimis pentru că {{owner}} a vrut ca tu să devii membru al echipei {{team}} la {{project}}.", "emails.invitation.footer": "Dacă nu esti interesat, poți ignora acest email.", - "emails.invitation.thanks": "Mulțumim", + "emails.invitation.thanks": "Mulțumim,", "emails.invitation.signature": "Echipa {{project}}", "locale.country.unknown": "Necunoscut", "countries.af": "Afghanistan", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Fraza de securitate pentru acest e-mail este {{phrase}}. Puteți avea încredere în acest e-mail dacă fraza se potrivește cu cea afișată în timpul autentificării.", "emails.otpSession.thanks": "Mulțumesc,", "emails.otpSession.signature": "echipa {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/ru.json b/app/config/locale/translations/ru.json index a1d740bea24..029aa06ee79 100644 --- a/app/config/locale/translations/ru.json +++ b/app/config/locale/translations/ru.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "Команда %s", "emails.verification.subject": "Верификация аккаунта", - "emails.verification.hello": "Здравствуйте, {{user}}", + "emails.verification.hello": "Здравствуйте, {{user}},", "emails.verification.body": "Перейдите по ссылке, чтобы подтвердить свой адрес электронной почты.", "emails.verification.footer": "Если вы не запрашивали подтверждение этого адреса, проигнорируйте это сообщение.", - "emails.verification.thanks": "Спасибо", + "emails.verification.thanks": "Спасибо,", "emails.verification.signature": "команда {{project}}", "emails.magicSession.subject": "Логин", - "emails.magicSession.hello": "Здравствуйте", + "emails.magicSession.hello": "Здравствуйте,", "emails.magicSession.body": "Перейдите по ссылке, чтобы войти.", "emails.magicSession.footer": "Если вы не просили войти, используя этот адрес электронной почты, проигнорируйте это сообщение.", - "emails.magicSession.thanks": "Спасибо", + "emails.magicSession.thanks": "Спасибо,", "emails.magicSession.signature": "команда {{project}}", "emails.recovery.subject": "Сброс пароля", - "emails.recovery.hello": "Здравствуйте, {{user}}", + "emails.recovery.hello": "Здравствуйте, {{user}},", "emails.recovery.body": "Перейдите по этой ссылке для того чтобы сбросить свой пароль для проекта {{project}}", "emails.recovery.footer": "Если вы не запрашивали сброс пароля, проигнорируйте это сообщение.", - "emails.recovery.thanks": "Спасибо", + "emails.recovery.thanks": "Спасибо,", "emails.recovery.signature": "команда {{project}}", "emails.invitation.subject": "Приглашение в команду %s по проекту %s", - "emails.invitation.hello": "Здравствуйте", + "emails.invitation.hello": "Здравствуйте,", "emails.invitation.body": "Это письмо отправлено вам, потому что {{owner}} приглашает стать членом команды {{team}} в проекте {{project}}.", "emails.invitation.footer": "Если вы не заинтересованы, проигнорируйте это сообщение.", - "emails.invitation.thanks": "Спасибо", + "emails.invitation.thanks": "Спасибо,", "emails.invitation.signature": "команда {{project}}", "locale.country.unknown": "Неизвестно", "countries.af": "Афганистан", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Фраза безопасности для этого письма {{phrase}}. Вы можете доверять этому письму, если эта фраза совпадает с фразой, показанной во время входа в систему.", "emails.otpSession.thanks": "Спасибо,", "emails.otpSession.signature": "команда {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/sa.json b/app/config/locale/translations/sa.json index b82a3ed9baa..7aa8c90d770 100644 --- a/app/config/locale/translations/sa.json +++ b/app/config/locale/translations/sa.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s गणः", "emails.verification.subject": "पञ्जिकानिर्णायनम्‌", - "emails.verification.hello": "अयि {{user}}", + "emails.verification.hello": "अयि {{user}},", "emails.verification.body": "ई-पत्रनिर्णायनार्थमिदं संयोगसूत्रमनुसरतु।", "emails.verification.footer": "यदि अस्य संकेतस्य निर्णायनं नेष्यते तर्हि वात्र्तामिमामुपेक्षताम्‌।", - "emails.verification.thanks": "धन्यवादः", + "emails.verification.thanks": "धन्यवादः,", "emails.verification.signature": "{{project}} गणः", "emails.magicSession.subject": "संप्रवेशः", - "emails.magicSession.hello": "अयि", + "emails.magicSession.hello": "अयि,", "emails.magicSession.body": "संप्रवेशार्थमिदं संयोगसूत्रमनुसरतु।", "emails.magicSession.footer": "अनेन ई-पत्रण यदि संप्रवेशो नेष्यते तर्हि वात्र्तामिमामुपेक्षताम्‌।", - "emails.magicSession.thanks": "धन्यवादः", + "emails.magicSession.thanks": "धन्यवादः,", "emails.magicSession.signature": "{{project}} गणः", "emails.recovery.subject": "कूटशब्दपुनयाेजनम्‌", - "emails.recovery.hello": "अयि भो {{user}}", + "emails.recovery.hello": "अयि भो {{user}},", "emails.recovery.body": "{{project}} कूटशब्दपुनयाेजनाय संयोगमेनमनुसरतु।", "emails.recovery.footer": "यदि कूटशब्दस्य पुनयाेजनं नेष्यते तर्हि वात्र्तामिमामुपेक्षताम्‌।", - "emails.recovery.thanks": "धन्यवादः", + "emails.recovery.thanks": "धन्यवादः,", "emails.recovery.signature": "{{project}} गणः", "emails.invitation.subject": "गणस्य आमन्त्रणम्‌ %s इति %s", - "emails.invitation.hello": "अयि भो", + "emails.invitation.hello": "अयि भो,", "emails.invitation.body": "{{owner}} {{team}} गणे {{project}} मध्ये भवद्योगदानमच्छितीति हेतोः पत्रमदिं भवत्सकाशं प्रेषतिम्।", "emails.invitation.footer": "यदि भवदनिच्छा तर्हि वात्र्तामिमामुपेक्षताम्‌।", - "emails.invitation.thanks": "धन्यवादः", + "emails.invitation.thanks": "धन्यवादः,", "emails.invitation.signature": "{{project}} गणः", "locale.country.unknown": "अज्ञातम्‌ ", "countries.af": "आफगानिस्थानम्‌", @@ -239,10 +239,10 @@ "emails.magicSession.securityPhrase": "العبارة الأمنية لهذا البريد الإلكتروني هي {{phrase}}. يمكنك الوثوق بهذا البريد الإلكتروني إذا كانت هذه العبارة متطابقة مع العبارة المعروضة أثناء تسجيل الدخول.", "emails.magicSession.optionUrl": "إذا لم تتمكن من تسجيل الدخول باستخدام الزر أعلاه، يرجى زيارة الرابط التالي:", "emails.otpSession.subject": "प्रवेशनम्", - "emails.otpSession.hello": "नमस्ते।", + "emails.otpSession.hello": "नमस्ते।,", "emails.otpSession.description": "प्रविष्ट कुरु अनुसृत विश्वासनीयकोडम् यदा पृच्छ्यसे भवतः {{project}} खातायां सुरक्षितरूपेण प्रवेशे। एषः पन्द्रह मिनितेषु समाप्तिं गच्छति।", "emails.otpSession.clientInfo": "एष प्रवेशनं प्रार्थितं {{agentClient}} नाम प्रतिनिधौ {{agentDevice}} {{agentOs}} इत्यस्मिन्। यदि त्वमेव प्रवेशनं न प्रार्थितवानसि, तर्हि त्वमनेन ईपत्रेण उपेक्षितुं शक्नोसि।", "emails.otpSession.securityPhrase": "अस्य ईमेलस्य सुरक्षा वाक्यं {{phrase}} अस्ति। यदि अयं वाक्यः प्रवेशकाले दृष्टवाक्येन साम्यं याति तर्हि अस्माकं ईमेलं विश्वसनीयम् अस्ति।", - "emails.otpSession.thanks": "धन्यवादाः", + "emails.otpSession.thanks": "धन्यवादाः,", "emails.otpSession.signature": "कार्यक्रमस्य समूहः" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/sd.json b/app/config/locale/translations/sd.json index 69cad52549b..3f1f7678db3 100644 --- a/app/config/locale/translations/sd.json +++ b/app/config/locale/translations/sd.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s ٽيم", "emails.verification.subject": " اڪائونٽ جي تصديق", - "emails.verification.hello": "سلام {{user}}", + "emails.verification.hello": "سلام {{user}},", "emails.verification.body": "پنھنجي اي ميل ايڊريس جي تصديق ڪرڻ لاءِ ھن لنڪ تي عمل ڪريو.", "emails.verification.footer": "جيڪڏھن توھان نه پ askيا ھئا ھن ايڊريس جي تصديق ڪرڻ لاءِ ، توھان نظر انداز ڪري سگھوٿا ھن پيغام کي.", - "emails.verification.thanks": "مهرباني", + "emails.verification.thanks": "مهرباني,", "emails.verification.signature": "{{project}} ٽيم", "emails.magicSession.subject": "لاگ ان", - "emails.magicSession.hello": "هي ،", + "emails.magicSession.hello": "هي ,", "emails.magicSession.body": "لاگ ان ٿيڻ لاءِ ھن لنڪ تي عمل ڪريو.", "emails.magicSession.footer": "جيڪڏھن توھان نه پ پيا ھي لاگ ان استعمال ڪندي اي ميل ، توھان نظر انداز ڪري سگھوٿا ھن پيغام کي.", - "emails.magicSession.thanks": "مهرباني", + "emails.magicSession.thanks": "مهرباني,", "emails.magicSession.signature": "{{project}} ٽيم", "emails.recovery.subject": "پاسورڊ ري سيٽ", - "emails.recovery.hello": "هيلو {{user}}", + "emails.recovery.hello": "هيلو {{user}},", "emails.recovery.body": "ھن لنڪ تي عمل ڪريو پنھنجو {{project}} پاسورڊ ري سيٽ ڪرڻ لاءِ.", "emails.recovery.footer": "جيڪڏھن توھان نه پ پيو ھو پنھنجي پاسورڊ کي ري سيٽ ڪرڻ لاءِ ، توھان نظر انداز ڪري سگھوٿا ھن پيغام کي.", - "emails.recovery.thanks": "مهرباني", + "emails.recovery.thanks": "مهرباني,", "emails.recovery.signature": "{{project}} ٽيم", "emails.invitation.subject": "%s ٽيم %s تيجي دعوت", - "emails.invitation.hello": "هيلو", + "emails.invitation.hello": "هيلو,", "emails.invitation.body": "ھي اي ميل توھان ڏانھن موڪليو ويو آھي {اڪاڻ ته {{owner}} توھان کي دعوت ڏيڻ چاھي ٿو ته توھان {{team}} ٽيم جو ميمبر بڻجي {{project}} تي.", "emails.invitation.footer": "جيڪڏھن توھان دلچسپي نٿا رکو ، توھان نظر انداز ڪري سگھوٿا ھن پيغام کي.", - "emails.invitation.thanks": "مهرباني", + "emails.invitation.thanks": "مهرباني,", "emails.invitation.signature": "{{project}} ٽيم", "locale.country.unknown": "نامعلوم", "countries.af": "افغانستان", @@ -238,17 +238,17 @@ "emails.magicSession.clientInfo": "هي سائن ان درخواست ورتو {{agentClient}} استعمال ڪري ٿو {{agentDevice}} {{agentOs}}. جيڪڏهن توهان سائن ان جي درخواست ڪئي نه ورتي، ته توهان هن اي ميل کي محفوظ طور تي نظر انداز ڪري سگهو ٿا.", "emails.magicSession.securityPhrase": "اس ای میل جو سیکيورٽي جملو {{phrase}} آهي. جيڪڏهن هن جملو توهان جي سائن ان وقتي ڏيکاري واري جملي سان ميل آهي ته توهان اس ای میل تي اعتماد ڪري سگھو ٿا.", "emails.otpSession.subject": "پروجيڪٽ جي لاگ ان", - "emails.otpSession.hello": "ہيلو،", + "emails.otpSession.hello": "ہيلو,", "emails.otpSession.description": "جڏهن توهان کي محفوظ طريقي سان اپني {{project}} اڪائونٽ ۾ سائن ان ڪرڻ لاءِ ڪہي ويندي، ته هيٺيان دنل ويريفڪيشن ڪوڊ ڏيو. هي 15 منٽن ۾ ختم ٿي ويندي.", "emails.otpSession.clientInfo": "هي سائن ان توهان جو درخواست گهريو ويو آهي {{agentClient}} جي واپار ۾ {{agentDevice}} {{agentOs}} تي. جيڪڏهن توهان سائن ان جي درخواست ڪئي نه آهي، ته توهان هن ايميل کي نظر انداز ڪري سگهو ٿا.", "emails.otpSession.securityPhrase": "هن ای میل لاءِ سیکيورٽي جملو {{phrase}} آھي. توهان هن ای میل تي اعتماد ڪري سگهو ٿا جيڪڏهن هن جملو لاڳو ٿيندڙ جملي سان ميل کاندي.", - "emails.otpSession.thanks": "مهرباني", + "emails.otpSession.thanks": "مهرباني,", "emails.otpSession.signature": "پروجيڪٽ جي ٽيم", "emails.certificate.subject": "%s لاءِ سند جو ناکامی", - "emails.certificate.hello": "هيلو", + "emails.certificate.hello": "هيلو,", "emails.certificate.body": "توهان جي ڊومين '{{domain}}' لاءِ سرٽيفڪيٽ ٺاهڻ جو نه ٿي سگهيو. هي ڪوشش نمبر {{attempt}} آهي، ۽ ناڪامي جو سبب ٿيو: {{error}}", "emails.certificate.footer": "توهان جو اڳيون سرٽيفڪيٽ اولهو فئيلر جي ݙينهن کان ٣٠ ݙينهن لاءِ ماني ويندو. اسان ان جي چھان بني جي بھرپور خواهش ڪنداسين، نہ ته توهان جو ݙومين بغير ڪوري SSL ڪميونڪيشن آڻي ويندي.", - "emails.certificate.thanks": "شُكريا", + "emails.certificate.thanks": "شُكريا,", "emails.certificate.signature": "ٽيم", "sms.verification.body": "{{secret}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/si.json b/app/config/locale/translations/si.json index f1c4b7c86bd..536e8d36041 100644 --- a/app/config/locale/translations/si.json +++ b/app/config/locale/translations/si.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s කණ්ඩායම", "emails.verification.subject": "ගිණුම් සත්‍යාපනය", - "emails.verification.hello": "හේයි {{user}}", + "emails.verification.hello": "හේයි {{user}},", "emails.verification.body": "ඔබගේ විද්‍යුත් තැපැල් ලිපිනය සත්‍යාපනය කිරීමට මෙම සම්බන්ධකය අනුගමනය කරන්න.", "emails.verification.footer": "මෙම ලිපිනය සත්‍යාපනය කරන ලෙස ඔබ ඉල්ලුවේ නැත්නම්, ඔබට මෙම පණිවිඩය නොසලකා හැරිය හැක.", - "emails.verification.thanks": "ස්තුතියි", + "emails.verification.thanks": "ස්තුතියි,", "emails.verification.signature": "{{project}} කණ්ඩායම", "emails.magicSession.subject": "ප්‍රවේශ වන්න", - "emails.magicSession.hello": "හේයි", + "emails.magicSession.hello": "හේයි,", "emails.magicSession.body": "ප්‍රවේශ වීමට මෙම සම්බන්ධකය අනුගමනය කරන්න.", "emails.magicSession.footer": "මෙම විද්‍යුත් තැපෑල භාවිතයෙන් ප්‍රවේශ වීමට ඔබ ඉල්ලුවේ නැත්නම්, ඔබට මෙම පණිවිඩය නොසලකා හැරිය හැක.", - "emails.magicSession.thanks": "ස්තුතියි", + "emails.magicSession.thanks": "ස්තුතියි,", "emails.magicSession.signature": "{{project}} කණ්ඩායම", "emails.recovery.subject": "මුරපද යළි පිහිටුවීම", - "emails.recovery.hello": "ආයුබෝවන් {{user}}", + "emails.recovery.hello": "ආයුබෝවන් {{user}},", "emails.recovery.body": "ඔබගේ {{project}} මුරපදය නැවත සැකසීමට මෙම සම්බන්ධකය අනුගමනය කරන්න.", "emails.recovery.footer": "ඔබගේ මුරපදය නැවත සකසන ලෙස ඔබ ඉල්ලුවේ නැත්නම්, ඔබට මෙම පණිවිඩය නොසලකා හැරිය හැක.", - "emails.recovery.thanks": "ස්තුතියි", + "emails.recovery.thanks": "ස්තුතියි,", "emails.recovery.signature": "{{project}} කණ්ඩායම", "emails.invitation.subject": "%s කණ්ඩායමට ආරාධනා %s හි", - "emails.invitation.hello": "ආයුබෝවන්", + "emails.invitation.hello": "ආයුබෝවන්,", "emails.invitation.body": "මෙම තැපැල් ඔබට එව්වේ, {{owner}} හට {{project}} හි {{team}} කණ්ඩායමේ සාමාජිකයෙකු වීමට ඔබට ආරාධනා කිරීමට අවශ්‍ය වූ බැවිනි.", "emails.invitation.footer": "ඔබ උනන්දුවක් නොදක්වන්නේ නම්, ඔබට මෙම පණිවිඩය නොසලකා හැරිය හැක.", - "emails.invitation.thanks": "ස්තුතියි", + "emails.invitation.thanks": "ස්තුතියි,", "emails.invitation.signature": "{{project}} කණ්ඩායම", "locale.country.unknown": "නොදන්නා", "countries.af": "ඇෆ්ගනිස්ථානය", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "මෙම ඊමේල්ට සඳහා ආරක්ෂක පාඨය {{phrase}}. පුරන්න විට පෙන්වන පාඨයට මෙම පාඨය ගැලපෙනවා නම්, ඔබට මෙම ඊමේල් විශ්වාස කළ හැකිය.", "emails.otpSession.thanks": "ස්තුතියි,", "emails.otpSession.signature": "{{project}} කණ්ඩායම" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/sk.json b/app/config/locale/translations/sk.json index 457e756c9a7..93c12c08816 100644 --- a/app/config/locale/translations/sk.json +++ b/app/config/locale/translations/sk.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s Tím", "emails.verification.subject": "Overenie účtu", - "emails.verification.hello": "Ahoj {{user}}", + "emails.verification.hello": "Ahoj {{user}},", "emails.verification.body": "Použi tento link pre overenie svojej emailovej adresy.", "emails.verification.footer": "Ak si nepožiadal o overenie tejto adresy, môžeš túto správu ignorovať.", - "emails.verification.thanks": "Ďakujeme.", + "emails.verification.thanks": "Ďakujeme.,", "emails.verification.signature": "{{project}} tím", "emails.magicSession.subject": "Prihlásenie", - "emails.magicSession.hello": "Ahoj", + "emails.magicSession.hello": "Ahoj,", "emails.magicSession.body": "Použi tento link pre prihlásenie.", "emails.magicSession.footer": "Ak si nepožiadal o prihlásenie cez email, túto správu môžeš ignorovať.", - "emails.magicSession.thanks": "Ďakujeme", + "emails.magicSession.thanks": "Ďakujeme,", "emails.magicSession.signature": "{{project}} tím", "emails.recovery.subject": "Obnovenie hesla", - "emails.recovery.hello": "Ahoj {{user}}", + "emails.recovery.hello": "Ahoj {{user}},", "emails.recovery.body": "Použi tento link pre obnovenie svojho {{project}} hesla.", "emails.recovery.footer": "Ak si nepožiadal o obnovu svojho hesla, túto správu môžeš ignorovať.", - "emails.recovery.thanks": "Ďakujeme", + "emails.recovery.thanks": "Ďakujeme,", "emails.recovery.signature": "{{project}} tím", "emails.invitation.subject": "Pozvánka do %s Tímu v %s", - "emails.invitation.hello": "Ahoj", + "emails.invitation.hello": "Ahoj,", "emails.invitation.body": "Tento email ti bol zaslaný, pretože {{owner}} ťa pozval, aby si sa stal členom {{team}} tímu v projekte {{project}}.", "emails.invitation.footer": "Ak nemáš záujem, môžeš túto správu ignorovať.", - "emails.invitation.thanks": "Ďakujeme", + "emails.invitation.thanks": "Ďakujeme,", "emails.invitation.signature": "{{project}} tím", "locale.country.unknown": "Neznámy", "countries.af": "Afganistan", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Bezpečnostná fráza pre tento e-mail je {{phrase}}. Tento e-mail môžete dôverovať, ak táto fráza zodpovedá fráze zobrazenej počas prihlasovania.", "emails.otpSession.thanks": "Ďakujem,", "emails.otpSession.signature": "tím {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/sl.json b/app/config/locale/translations/sl.json index ec7b4c1ebf3..f7c4f41255b 100644 --- a/app/config/locale/translations/sl.json +++ b/app/config/locale/translations/sl.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s Ekipa", "emails.verification.subject": "", - "emails.verification.hello": "", + "emails.verification.hello": ",", "emails.verification.body": "", "emails.verification.footer": "", - "emails.verification.thanks": "", + "emails.verification.thanks": ",", "emails.verification.signature": "", "emails.magicSession.subject": "", - "emails.magicSession.hello": "", + "emails.magicSession.hello": ",", "emails.magicSession.body": "", "emails.magicSession.footer": "", - "emails.magicSession.thanks": "", + "emails.magicSession.thanks": ",", "emails.magicSession.signature": "", "emails.recovery.subject": "", - "emails.recovery.hello": "", + "emails.recovery.hello": ",", "emails.recovery.body": "", "emails.recovery.footer": "", - "emails.recovery.thanks": "", + "emails.recovery.thanks": ",", "emails.recovery.signature": "", "emails.invitation.subject": "", - "emails.invitation.hello": "", + "emails.invitation.hello": ",", "emails.invitation.body": "", "emails.invitation.footer": "", - "emails.invitation.thanks": "", + "emails.invitation.thanks": ",", "emails.invitation.signature": "", "locale.country.unknown": "Neznano", "countries.af": "Afganistan", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Varnostni stavek za to e-pošto je {{phrase}}. Temu e-sporočilu lahko zaupate, če se ta stavek ujema s stavkom, ki je prikazan ob prijavi.", "emails.otpSession.thanks": "Hvala,", "emails.otpSession.signature": "ekipa {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/sn.json b/app/config/locale/translations/sn.json index d8b2f2c6823..d17a98ff424 100644 --- a/app/config/locale/translations/sn.json +++ b/app/config/locale/translations/sn.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "Chikwata che%s", "emails.verification.subject": "Kuratidzi kuti ndiwe muridzi weakaundi", - "emails.verification.hello": "Hesi {{user}}", + "emails.verification.hello": "Hesi {{user}},", "emails.verification.body": "Tevedza chinongedzo ichi kuti uratidze kuti kero iyi ndeyako.", "emails.verification.footer": "Kana usina kukumbira kuti uratidze kuti kero iyi ndeyako, unogona kufuratira meseji iyi.", - "emails.verification.thanks": "Ndatenda", + "emails.verification.thanks": "Ndatenda,", "emails.verification.signature": "Chikwata che{{project}}", "emails.magicSession.subject": "Pinda", - "emails.magicSession.hello": "Hesi", + "emails.magicSession.hello": "Hesi,", "emails.magicSession.body": "Baya chinongedzo ichi kuti upinde muakaundi yako.", "emails.magicSession.footer": "Kana usina kukumbira kupinda muakaundi yako uchishandisa email iyi, unogona kufuratira meseji iyi.", - "emails.magicSession.thanks": "Ndatenda", + "emails.magicSession.thanks": "Ndatenda,", "emails.magicSession.signature": "Chikwata che{{project}}", "emails.recovery.subject": "Kuchinja pasiwedhi", - "emails.recovery.hello": "Mhoro {{user}}", + "emails.recovery.hello": "Mhoro {{user}},", "emails.recovery.body": "Baya chinongedzo ichi kuti uchinje pasiwedhi yako ye{{project}}.", "emails.recovery.footer": "Kana usina kukumbira kuchinja pasiwedhi yako, unogona kufuratira meseji iyi.", - "emails.recovery.thanks": "Ndatenda", + "emails.recovery.thanks": "Ndatenda,", "emails.recovery.signature": "Chikwata che{{project}}", "emails.invitation.subject": "Kukokwa kuchikwata che%s ku%s", - "emails.invitation.hello": "Mhoro", + "emails.invitation.hello": "Mhoro,", "emails.invitation.body": "Tsamba iyi yatumirwa kwauri nekuti {{owner}} anga achida kuti uve nhengo yechikwata che{{team}} pachirongwa che{{project}}.", "emails.invitation.footer": "Kana usiri kufarira kuve nhengo yechikwata ichi, unogona kufuratira meseji iyi.", - "emails.invitation.thanks": "Ndatenda", + "emails.invitation.thanks": "Ndatenda,", "emails.invitation.signature": "Chikwata che{{project}}", "locale.country.unknown": "Haizivikanwe", "countries.af": "Afuganisitani", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Chirevo chekuchengetedza cheemail iyi ndechekuti {{phrase}}. Unogona kuvimba neemail iyi kana chirevo ichi chichienderana nechirevo chakaratidzwa panguva yekupinda.", "emails.otpSession.thanks": "Ndatenda,", "emails.otpSession.signature": "chikwata {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/sq.json b/app/config/locale/translations/sq.json index 0fb066a8eaa..85aa6637f64 100644 --- a/app/config/locale/translations/sq.json +++ b/app/config/locale/translations/sq.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "Grup %s", "emails.verification.subject": "", - "emails.verification.hello": "", + "emails.verification.hello": ",", "emails.verification.body": "", "emails.verification.footer": "", - "emails.verification.thanks": "", + "emails.verification.thanks": ",", "emails.verification.signature": "", "emails.magicSession.subject": "", - "emails.magicSession.hello": "", + "emails.magicSession.hello": ",", "emails.magicSession.body": "", "emails.magicSession.footer": "", - "emails.magicSession.thanks": "", + "emails.magicSession.thanks": ",", "emails.magicSession.signature": "", "emails.recovery.subject": "", - "emails.recovery.hello": "", + "emails.recovery.hello": ",", "emails.recovery.body": "", "emails.recovery.footer": "", - "emails.recovery.thanks": "", + "emails.recovery.thanks": ",", "emails.recovery.signature": "", "emails.invitation.subject": "", - "emails.invitation.hello": "", + "emails.invitation.hello": ",", "emails.invitation.body": "", "emails.invitation.footer": "", - "emails.invitation.thanks": "", + "emails.invitation.thanks": ",", "emails.invitation.signature": "", "locale.country.unknown": "I panjohur", "countries.af": "Afganistani", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Fjala e sigurisë për këtë email është {{phrase}}. Ju mund të besoni këtë email nëse kjo fjalë përputhet me fjalën që shfaqet gjatë kyçjes.", "emails.otpSession.thanks": "Faleminderit,", "emails.otpSession.signature": "ekipi i {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/sv.json b/app/config/locale/translations/sv.json index b838c05084c..8997fd53f8e 100644 --- a/app/config/locale/translations/sv.json +++ b/app/config/locale/translations/sv.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s-teamet", "emails.verification.subject": "Verifiera konto", - "emails.verification.hello": "Hej {{user}}", + "emails.verification.hello": "Hej {{user}},", "emails.verification.body": "Klicka på denna länk för att verifiera din email", "emails.verification.footer": "Om du inte bad om att verifiera den här e-postadressen kan du ignorera detta mail.", - "emails.verification.thanks": "Tack", + "emails.verification.thanks": "Tack,", "emails.verification.signature": "{{project}} teamet", "emails.magicSession.subject": "Logga in", - "emails.magicSession.hello": "Hej", + "emails.magicSession.hello": "Hej,", "emails.magicSession.body": "Klicka på denna länk för att logga in.", "emails.magicSession.footer": "Om du inte bad om att logga in med denna e-postadress kan du ignorera detta mail.", - "emails.magicSession.thanks": "Tack", + "emails.magicSession.thanks": "Tack,", "emails.magicSession.signature": "{{project}} teamet", "emails.recovery.subject": "Återställ lösenord", - "emails.recovery.hello": "Hej {{user}}", + "emails.recovery.hello": "Hej {{user}},", "emails.recovery.body": "Klicka på denna länk för att återställa lösenordet på {{project}}", "emails.recovery.footer": "Om du inte bad om att återställa ditt lösenord kan du ignorera detta mail.", - "emails.recovery.thanks": "Tack", + "emails.recovery.thanks": "Tack,", "emails.recovery.signature": "{{project}} teamet", "emails.invitation.subject": "Inbjudan till %s teamet på %s", - "emails.invitation.hello": "Hej", + "emails.invitation.hello": "Hej,", "emails.invitation.body": "Detta mail skickades till dig eftersom {{owner}} ville bjuda in dig att bli medlem i teamet {{team}} på {{project}}.", "emails.invitation.footer": "Om du inte är intresserad kan du ignorera detta mail.", - "emails.invitation.thanks": "Tack", + "emails.invitation.thanks": "Tack,", "emails.invitation.signature": "{{project}} teamet", "locale.country.unknown": "Okänt", "countries.af": "Afghanistan", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Säkerhetsfrasen för detta e-postmeddelande är {{phrase}}. Du kan lita på detta e-postmeddelande om frasen stämmer överens med frasen som visades vid inloggningen.", "emails.otpSession.thanks": "Tack,", "emails.otpSession.signature": "{{project}} team" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/ta.json b/app/config/locale/translations/ta.json index 659306c977b..f0695867a9a 100644 --- a/app/config/locale/translations/ta.json +++ b/app/config/locale/translations/ta.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s குழு", "emails.verification.subject": "கணக்கு சரிபார்ப்பு", - "emails.verification.hello": "ஏய் {{user}}", + "emails.verification.hello": "ஏய் {{user}},", "emails.verification.body": "உங்கள் மின்னஞ்சல் முகவரியைச் சரிபார்க்க இந்த இணைப்பைப் பின்தொடரவும்.", "emails.verification.footer": "இந்த முகவரியைச் சரிபார்க்கும்படி உங்களிடம் கேட்கப்படவில்லை என்றால், இந்தச் செய்தியை நீங்கள் புறக்கணிக்கலாம்.", - "emails.verification.thanks": "நன்றி", + "emails.verification.thanks": "நன்றி,", "emails.verification.signature": "{{project}} குழு ", "emails.magicSession.subject": "உள்நுழைய", - "emails.magicSession.hello": "ஏய்", + "emails.magicSession.hello": "ஏய்,", "emails.magicSession.body": "இந்த இணைப்பைப் பின்தொடரவும் உள்நுழைய", "emails.magicSession.footer": "இந்த மின்னஞ்சலைப் பயன்படுத்தி உள்நுழையுமாறு உங்களிடம் கேட்கப்படாவிட்டால், இந்தச் செய்தியைப் புறக்கணிக்கலாம்.", - "emails.magicSession.thanks": "நன்றி", + "emails.magicSession.thanks": "நன்றி,", "emails.magicSession.signature": "{{project}} குழு", "emails.recovery.subject": "கடவுச்சொல் மீட்டமைப்பு", - "emails.recovery.hello": "வணக்கம் {{user}}", + "emails.recovery.hello": "வணக்கம் {{user}},", "emails.recovery.body": "மீட்டமைக்க இந்த இணைப்பைப் பின்தொடரவும் {{project}} கடவுச்சொல்.", "emails.recovery.footer": "உங்கள் கடவுச்சொல்லை மீட்டமைக்கும்படி உங்களிடம் கேட்கப்படவில்லை என்றால், இந்தச் செய்தியை நீங்கள் புறக்கணிக்கலாம்.", - "emails.recovery.thanks": "நன்றி", + "emails.recovery.thanks": "நன்றி,", "emails.recovery.signature": "{{project}} குழு", "emails.invitation.subject": "அழைப்பிதழ் %s குழு %s ", - "emails.invitation.hello": "வணக்கம்", + "emails.invitation.hello": "வணக்கம்,", "emails.invitation.body": "{{project}} இல் {{team}} குழுவில் உறுப்பினராக உங்களை {{owner}} அழைக்க விரும்புவதால், இந்த அஞ்சல் உங்களுக்கு அனுப்பப்பட்டது.", "emails.invitation.footer": "உங்களுக்கு ஆர்வம் இல்லை என்றால், இந்த செய்தியை நீங்கள் புறக்கணிக்கலாம்.", - "emails.invitation.thanks": "நன்றி", + "emails.invitation.thanks": "நன்றி,", "emails.invitation.signature": "{{project}} குழு", "locale.country.unknown": "அறியவில்லை", "countries.af": "ஆப்கானித்தான்", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "இந்த மின்னஞ்சலுக்கான பாதுகாப்பு வாசகம் {{phrase}} ஆகும். இந்த வாசகம் உள்நுழையும் போது காட்டப்பட்ட வாசகத்துடன் பொருந்துமானால், இந்த மின்னஞ்சலை நம்பலாம்.", "emails.otpSession.thanks": "நன்றி,", "emails.otpSession.signature": "{{project}} குழு" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/te.json b/app/config/locale/translations/te.json index 019b4581ca3..870b0b82a26 100644 --- a/app/config/locale/translations/te.json +++ b/app/config/locale/translations/te.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s జట్టు", "emails.verification.subject": "ఖాతా ధృవీకరణ", - "emails.verification.hello": "నమస్కారము {{user}}", + "emails.verification.hello": "నమస్కారము {{user}},", "emails.verification.body": "ఈ లింక్ ద్వారా ఇమెయిల్ ని ధృవీకరించండి", "emails.verification.footer": "మీరు ఈ చిరునామాను ధృవీకరించమని అడగనట్లయితే, మీరు ఈ సందేశాన్ని విస్మరించవచ్చు", - "emails.verification.thanks": "ధన్యవాదాలు", + "emails.verification.thanks": "ధన్యవాదాలు,", "emails.verification.signature": "{{project}} జట్", "emails.magicSession.subject": "లాగిన్", - "emails.magicSession.hello": "నమస్కారము", + "emails.magicSession.hello": "నమస్కారము,", "emails.magicSession.body": "లాగిన్ చేయడానికి ఈ లింక్ ని అనుసరించండి", "emails.magicSession.footer": "మీరు ఈ ఇమెయిల్ ని ఉపయోగించి లాగిన్ చేయమని అడగకపోతే, మీరు ఈ సందేశాన్ని విస్మరించవచ్చు", - "emails.magicSession.thanks": "ధన్యవాదాలు", + "emails.magicSession.thanks": "ధన్యవాదాలు,", "emails.magicSession.signature": "{{project}} జట్", "emails.recovery.subject": "పాస్వర్డ్ రీసెట్", - "emails.recovery.hello": "నమస్కారమ {{user}}", + "emails.recovery.hello": "నమస్కారమ {{user}},", "emails.recovery.body": "మీ {{project}} పాస్వర్డ్ ని రీసెట్ చేయడానికి ఈ లింక్ ని అనుసరించండి", "emails.recovery.footer": "మీరు మీ పాస్వర్డ్ ని రీసెట్ చేయమని అడగనట్లయితే, మీరు ఈ సందేశాన్ని విస్మరించవచ్చు", - "emails.recovery.thanks": "ధన్యవాదాల", + "emails.recovery.thanks": "ధన్యవాదాల,", "emails.recovery.signature": "{{project}} జట్", "emails.invitation.subject": "%s వద్ద %s బృందానికి ఆహ్వానం", - "emails.invitation.hello": "నమస్కారమ", + "emails.invitation.hello": "నమస్కారమ,", "emails.invitation.body": "{{owner}} మిమ్మల్ని {{project}} లో {{team}} బృందంలో సభ్యునిగా ఉండమని ఆహ్వానించాలనుకుంటున్నందున ఈ మెయిల్ మీకు పంపబడింది.", "emails.invitation.footer": "మీకు ఆసక్తి లేకుంటే, మీరు ఈ సందేశాన్ని విస్మరించవచ్చు.", - "emails.invitation.thanks": "ధన్యవాదాల", + "emails.invitation.thanks": "ధన్యవాదాల,", "emails.invitation.signature": "{{project}} జట్", "locale.country.unknown": "తెలియని", "countries.af": "ఆఫ్ఘనిస్తాన్", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "ఈ ఇమెయిల్‌కు భద్రతా పదం {{phrase}}. మీరు సైన్ ఇన్ సమయంలో చూపించబడిన పదంతో ఈ పదం సరిపోలుస్తుంటే ఈ ఇమెయిల్‌ను నమ్మవచ్చు.", "emails.otpSession.thanks": "ధన్యవాదాలు,", "emails.otpSession.signature": "ప్రాజెక్టు బృందం" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/th.json b/app/config/locale/translations/th.json index 97d224de1fc..5a53b160557 100644 --- a/app/config/locale/translations/th.json +++ b/app/config/locale/translations/th.json @@ -239,10 +239,10 @@ "emails.magicSession.securityPhrase": "วลีรักษาความปลอดภัยสำหรับอีเมลนี้คือ {{phrase}} คุณสามารถเชื่อถืออีเมลนี้ได้หากวลีนี้ตรงกับวลีที่แสดงในระหว่างการเข้าสู่ระบบ", "emails.magicSession.optionUrl": "หากคุณไม่สามารถเข้าสู่ระบบโดยใช้ปุ่มด้านบน โปรดเยี่ยมชมลิงก์ต่อไปนี้:", "emails.otpSession.subject": "การเข้าสู่ระบบ {{project}}", - "emails.otpSession.hello": "สวัสดี,", + "emails.otpSession.hello": "สวัสดี", "emails.otpSession.description": "ป้อนรหัสยืนยันต่อไปนี้เมื่อได้รับการสั่งให้ทำเพื่อลงชื่อเข้าใช้บัญชี {{project}} ของคุณอย่างปลอดภัย รหัสนี้จะหมดอายุใน 15 นาที.", "emails.otpSession.clientInfo": "การลงชื่อเข้าใช้งานนี้ได้รับการทำผ่าน {{agentClient}} บน {{agentDevice}} {{agentOs}} หากคุณไม่ได้ทำการขอลงชื่อเข้าใช้นี้ คุณสามารถเพิกเฉยต่ออีเมลนี้ได้เลย", "emails.otpSession.securityPhrase": "วลีความปลอดภัยสำหรับอีเมลนี้คือ {{phrase}} คุณสามารถเชื่อถืออีเมลนี้ได้หากวลีนี้ตรงกับวลีที่แสดงขณะลงชื่อเข้าใช้งาน.", "emails.otpSession.thanks": "ขอบคุณครับ/ค่ะ", "emails.otpSession.signature": "ทีม {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/tl.json b/app/config/locale/translations/tl.json index e6df9f8aef1..6d0be01095a 100644 --- a/app/config/locale/translations/tl.json +++ b/app/config/locale/translations/tl.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "Pangkat ng %s", "emails.verification.subject": "Pagpapatunay ng account", - "emails.verification.hello": "Kamusta {{user}}", + "emails.verification.hello": "Kamusta {{user}},", "emails.verification.body": "Sundin ang link na ito upang ma-verify ang iyong email address.", "emails.verification.footer": "Kung hindi mo hiningi na i-verify ang address na ito, maaari mong balewalain ang mensahe na ito.", - "emails.verification.thanks": "Salamat", + "emails.verification.thanks": "Salamat,", "emails.verification.signature": "Pangkat ng {{project}}", "emails.magicSession.subject": "Mag log in", - "emails.magicSession.hello": "Kamusta ", + "emails.magicSession.hello": "Kamusta ,", "emails.magicSession.body": "Sundin ang link na ito upang mag-login.", "emails.magicSession.footer": "Kung hindi mo hiningi na mag-login gamit ang email na ito, maaari mong balewalain ang mensahe na ito.", - "emails.magicSession.thanks": "Salamat", + "emails.magicSession.thanks": "Salamat,", "emails.magicSession.signature": "Pangkat ng {{project}}", "emails.recovery.subject": "I-reset ang password", - "emails.recovery.hello": "Kamusta {{user}}", + "emails.recovery.hello": "Kamusta {{user}},", "emails.recovery.body": "Sundin ang link na ito upang i-reset ang password ng iyong {{project}}.", "emails.recovery.footer": "Kung hindi mo hiningi na i-reset ang iyong password, maaari mong balewalain ang mensahe na ito.", - "emails.recovery.thanks": "Salamat", + "emails.recovery.thanks": "Salamat,", "emails.recovery.signature": "Pangkat ng {{project}}", "emails.invitation.subject": "Imbitasyon para sa Pangkat %s sa %s", - "emails.invitation.hello": "Kamusta", + "emails.invitation.hello": "Kamusta,", "emails.invitation.body": "Ipinadala sa iyo ang mail na ito dahil gusto kang imbitahan ni {{owner}} na maging miyembro ng Pangkat {{team}} sa ilalim ng proyektong {{project}}.", "emails.invitation.footer": "Kung ikaw ay hindi interesado, maaari mong balewalain ang mensaheng ito.", - "emails.invitation.thanks": "Salamat", + "emails.invitation.thanks": "Salamat,", "emails.invitation.signature": "Pangkat ng {{project}}", "locale.country.unknown": "Hindi kilala", "countries.af": "Apganistan", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Ang security phrase para sa email na ito ay {{phrase}}. Maaari mong pagkatiwalaan ang email na ito kung ang phrase na ito ay tugma sa phrase na ipinakita noong nag-sign in.", "emails.otpSession.thanks": "Salamat,", "emails.otpSession.signature": "team ng {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/tr.json b/app/config/locale/translations/tr.json index 808a20576ce..115050c2e2d 100644 --- a/app/config/locale/translations/tr.json +++ b/app/config/locale/translations/tr.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s Takımı", "emails.verification.subject": "Hesabını Doğrula", - "emails.verification.hello": "Merhaba {{user}}", + "emails.verification.hello": "Merhaba {{user}},", "emails.verification.body": "Eposta adresini doğrulamak için bu bağlantıyı kullanın.", "emails.verification.footer": "Eğer bu eposta adresini doğrulamak isteyen siz değilseniz devam etmeyin.", - "emails.verification.thanks": "Teşekkürler", + "emails.verification.thanks": "Teşekkürler,", "emails.verification.signature": "{{project}} takımı", "emails.magicSession.subject": "Giriş", - "emails.magicSession.hello": "Merhaba", + "emails.magicSession.hello": "Merhaba,", "emails.magicSession.body": "Giriş yapmak için tıklayın.", "emails.magicSession.footer": "Eğer bu eposta adresini kullanarak giriş yapmak istemediyseniz devam etmeyin.", - "emails.magicSession.thanks": "Teşekkürler", + "emails.magicSession.thanks": "Teşekkürler,", "emails.magicSession.signature": "{{project}} takımı", "emails.recovery.subject": "Şifremi Sıfırla", - "emails.recovery.hello": "Merhaba {{user}}", + "emails.recovery.hello": "Merhaba {{user}},", "emails.recovery.body": "{{project}} şifrenizi sıfırlamak için bu bağlantıyı kullanın.", "emails.recovery.footer": "Eğer şifre sıfırlama talebinde bulunmadıysanız devam etmeyin.", - "emails.recovery.thanks": "Teşekkürler", + "emails.recovery.thanks": "Teşekkürler,", "emails.recovery.signature": "{{project}} takımı", "emails.invitation.subject": "%s üzerinde %s Takımına Davet", - "emails.invitation.hello": "Merhaba", + "emails.invitation.hello": "Merhaba,", "emails.invitation.body": "Bu epostayı aldınız, çünkü {{owner}} sizi {{project}} üzerinde {{team}} takımının üyesi olmaya davet etti.", "emails.invitation.footer": "Eğer ilgilenmiyorsanız devam etmeyin.", - "emails.invitation.thanks": "Teşekkürler", + "emails.invitation.thanks": "Teşekkürler,", "emails.invitation.signature": "{{project}} takımı", "locale.country.unknown": "Bilinmeyen", "countries.af": "Afganistan", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Bu e-postanın güvenlik ifadesi {{phrase}}. Giriş sırasında gösterilen ifade ile bu ifade eşleşiyorsa bu e-postaya güvenebilirsiniz.", "emails.otpSession.thanks": "Teşekkürler,", "emails.otpSession.signature": "{{project}} takımı" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/uk.json b/app/config/locale/translations/uk.json index 78e3a6c5564..3f66bd1c582 100644 --- a/app/config/locale/translations/uk.json +++ b/app/config/locale/translations/uk.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "Команда %s", "emails.verification.subject": "Верифікація акаунта", - "emails.verification.hello": "Вітаємо, {{user}}", + "emails.verification.hello": "Вітаємо, {{user}},", "emails.verification.body": "Перейдіть за цим посиланням, щоб підтвердити свою електронну адресу.", "emails.verification.footer": "Якщо ви не запитували підтвердження цієї адреси, ви можете ігнорувати це повідомлення.", - "emails.verification.thanks": "Дякуємо", + "emails.verification.thanks": "Дякуємо,", "emails.verification.signature": "команда {{project}}", "emails.magicSession.subject": "Логін", - "emails.magicSession.hello": "Вітаємо", + "emails.magicSession.hello": "Вітаємо,", "emails.magicSession.body": "Перейдіть за цим посиланням, щоб увійти.", "emails.magicSession.footer": "Якщо ви не просили увійти за допомогою цієї електронної пошти, ви можете ігнорувати це повідомлення.", - "emails.magicSession.thanks": "Дякуємо", + "emails.magicSession.thanks": "Дякуємо,", "emails.magicSession.signature": "команда {{project}}", "emails.recovery.subject": "Скидання пароля", - "emails.recovery.hello": "Вітаємо, {{user}}", + "emails.recovery.hello": "Вітаємо, {{user}},", "emails.recovery.body": "Перейдіть за цим посиланням для того щоб скинути свій пароль для проекту {{project}}", "emails.recovery.footer": "Якщо ви не запитували скидання паролю, проігноруйте це повідомлення.", - "emails.recovery.thanks": "Дякуємо", + "emails.recovery.thanks": "Дякуємо,", "emails.recovery.signature": "команда {{project}}", "emails.invitation.subject": "Запрошення до %s Команди у %s", - "emails.invitation.hello": "Вітаємо", + "emails.invitation.hello": "Вітаємо,", "emails.invitation.body": "Цей лист був надісланий вам тому що {{owner}} запрошує вас стати членом команди {{team}} у проекті {{project}}.", "emails.invitation.footer": "Якщо ви не зацікавлені, проігноруйте це повідомлення.", - "emails.invitation.thanks": "Дякуємо", + "emails.invitation.thanks": "Дякуємо,", "emails.invitation.signature": "команда {{project}}", "locale.country.unknown": "Невідомо", "countries.af": "Афганістан", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "Фраза безпеки для цього електронного листа - {{phrase}}. Ви можете довіряти цьому електронному листу, якщо ця фраза відповідає фразі, показаній під час входу в систему.", "emails.otpSession.thanks": "Дякую,", "emails.otpSession.signature": "команда {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/ur.json b/app/config/locale/translations/ur.json index 060cea07366..9d6aa477627 100644 --- a/app/config/locale/translations/ur.json +++ b/app/config/locale/translations/ur.json @@ -4,28 +4,28 @@ "settings.direction": "rtl", "emails.sender": "%s ٹیم", "emails.verification.subject": "اکاؤنٹ کی تصدیق", - "emails.verification.hello": "خوش آمدید {{user}}", + "emails.verification.hello": "خوش آمدید {{user}}،", "emails.verification.body": "براہ کرم اپنے ای میل کی تصدیق کے لیے درج ذیل لنک پر عمل کریں۔", "emails.verification.footer": "اگر آپ نے اس پتے کی تصدیق کے لیے نہیں کہا تو آپ اس پیغام کو نظر انداز کر سکتے ہیں۔", - "emails.verification.thanks": "شکریہ", + "emails.verification.thanks": "شکریہ،", "emails.verification.signature": "ٹیم۔ {{project}}", "emails.magicSession.subject": "اگ ان کریں", - "emails.magicSession.hello": "خوش آمدید", + "emails.magicSession.hello": "خوش آمدید،", "emails.magicSession.body": "لاگ ان کرنے کے لیے اس لنک پر عمل کریں۔", "emails.magicSession.footer": "اگر آپ نے اس ای میل کا استعمال کرتے ہوئے لاگ ان کرنے کے لیے نہیں کہا تو آپ اس پیغام کو نظر انداز کر سکتے ہیں۔", - "emails.magicSession.thanks": "شکریہ", + "emails.magicSession.thanks": "شکریہ،", "emails.magicSession.signature": "ٹیم۔ {{project}}", "emails.recovery.subject": "پاس ورڈ ری سیٹ۔", - "emails.recovery.hello": "ہیلو {{user}}", + "emails.recovery.hello": "ہیلو {{user}}،", "emails.recovery.body": "{{project}} کا پاس ورڈ تبدیل کرنے کے لیے درج ذیل لنک پر عمل کریں", "emails.recovery.footer": "اگر آپ نے اپنا پاس ورڈ دوبارہ ترتیب دینے کے لیے نہیں کہا تو آپ اس پیغام کو نظر انداز کر سکتے ہیں۔", - "emails.recovery.thanks": "شکریہ", + "emails.recovery.thanks": "شکریہ،", "emails.recovery.signature": "ٹیم۔ {{project}}", "emails.invitation.subject": "%s پر %s ٹیم کو دعوت", - "emails.invitation.hello": "خوش آمدید", + "emails.invitation.hello": "خوش آمدید،", "emails.invitation.body": "یہ پیغام آپ کو اس لیے بھیجا گیا تھا کہ {{owner}} نے آپ کو {{project}} میں {{team}} ٹیم کا رکن بننے کی دعوت بھیجی", "emails.invitation.footer": "اگر آپ دلچسپی نہیں رکھتے تو آپ اس پیغام کو نظر انداز کر سکتے ہیں۔", - "emails.invitation.thanks": "شکریہ", + "emails.invitation.thanks": "شکریہ،", "emails.invitation.signature": "ٹیم۔ {{project}", "locale.country.unknown": "نامعلوم", "countries.af": "افغانستان", @@ -245,4 +245,4 @@ "emails.otpSession.securityPhrase": "اس ایمیل کے لئے حفاظتی جملہ {{phrase}} ہے۔ اگر یہ جملہ سائن ان کے دوران دکھائے گئے جملے سے میل کھاتا ہے تو آپ اس ایمیل پر بھروسہ کر سکتے ہیں۔", "emails.otpSession.thanks": "شکریہ،", "emails.otpSession.signature": "ٹیم {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/vi.json b/app/config/locale/translations/vi.json index cf04a5b737d..76a545a1d44 100644 --- a/app/config/locale/translations/vi.json +++ b/app/config/locale/translations/vi.json @@ -239,10 +239,10 @@ "emails.magicSession.securityPhrase": "Cụm từ bảo mật cho email này là {{phrase}}. Bạn có thể tin tưởng email này nếu cụm từ này khớp với cụm từ hiển thị khi đăng nhập.", "emails.magicSession.optionUrl": "Nếu bạn không thể đăng nhập bằng cách sử dụng nút ở trên, vui lòng truy cập liên kết sau:", "emails.otpSession.subject": "Đăng nhập {{project}}", - "emails.otpSession.hello": "Xin chào,", + "emails.otpSession.hello": "Xin chào", "emails.otpSession.description": "Nhập mã xác minh sau đây khi được yêu cầu để đăng nhập an toàn vào tài khoản {{project}} của bạn. Mã này sẽ hết hạn trong 15 phút.", "emails.otpSession.clientInfo": "Đăng nhập này được yêu cầu sử dụng {{agentClient}} trên {{agentDevice}} {{agentOs}}. Nếu bạn không yêu cầu đăng nhập, bạn có thể bỏ qua email này một cách an toàn.", "emails.otpSession.securityPhrase": "Cụm từ bảo mật cho email này là {{phrase}}. Bạn có thể tin tưởng email này nếu cụm từ này khớp với cụm từ hiển thị khi đăng nhập.", - "emails.otpSession.thanks": "Cảm ơn,", + "emails.otpSession.thanks": "Cảm ơn", "emails.otpSession.signature": "nhóm {{project}}" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/zh-cn.json b/app/config/locale/translations/zh-cn.json index 0bfbc54e0ec..5e35a89bfe0 100644 --- a/app/config/locale/translations/zh-cn.json +++ b/app/config/locale/translations/zh-cn.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s 小组", "emails.verification.subject": "帐户验证", - "emails.verification.hello": "你好 {{user}}", + "emails.verification.hello": "你好 {{user}}、", "emails.verification.body": "点此链接验证您的电子邮件地址。", "emails.verification.footer": "如果您没有要求验证此地址,则可忽略此消息。", - "emails.verification.thanks": "谢谢", + "emails.verification.thanks": "谢谢、", "emails.verification.signature": "{{project}} 团队", "emails.magicSession.subject": "登录", - "emails.magicSession.hello": "你好", + "emails.magicSession.hello": "你好、", "emails.magicSession.body": "点此链接登录。", "emails.magicSession.footer": "如果您没有要求使用此电子邮件登录,则可忽略此消息。", - "emails.magicSession.thanks": "谢谢", + "emails.magicSession.thanks": "谢谢、", "emails.magicSession.signature": "{{project}} 团队", "emails.recovery.subject": "重设密码", - "emails.recovery.hello": "你好 {{user}}", + "emails.recovery.hello": "你好 {{user}}、", "emails.recovery.body": "点此链接重置您的 {{project}} 密码。", "emails.recovery.footer": "如果您没有要求重置密码,则可以忽略此消息。", - "emails.recovery.thanks": "谢谢", + "emails.recovery.thanks": "谢谢、", "emails.recovery.signature": "{{project}} 团队", "emails.invitation.subject": "邀请 %s 团队在 %s", - "emails.invitation.hello": "你好", + "emails.invitation.hello": "你好、", "emails.invitation.body": "这封邮件发送给您是因为 {{owner}} 想邀请您成为 {{team}} 团队在 {{project}}.", "emails.invitation.footer": "如果您不感兴趣,可以忽略此消息。", - "emails.invitation.thanks": "谢谢", + "emails.invitation.thanks": "谢谢、", "emails.invitation.signature": "{{project}} 团队", "locale.country.unknown": "未知", "countries.af": "阿富汗", @@ -239,10 +239,10 @@ "emails.magicSession.securityPhrase": "此电子邮件的安全短语是{{phrase}}。如果此短语与登录时显示的短语相匹配,则您可以信任此电子邮件。", "emails.magicSession.optionUrl": "如果您无法使用上面的按钮登录,请访问以下链接:", "emails.otpSession.subject": "{{project}} 登录", - "emails.otpSession.hello": "你好,\n", + "emails.otpSession.hello": "你好,\n、", "emails.otpSession.description": "在提示时输入以下验证码以安全登录您的{{project}}账户。该验证码将在15分钟后过期。", "emails.otpSession.clientInfo": "此次登录是通过{{agentClient}}在{{agentDevice}} {{agentOs}}上请求的。如果您没有请求登录,可以放心忽略此电子邮件。", "emails.otpSession.securityPhrase": "此电子邮件的安全短语是{{phrase}}。如果此短语与登录时显示的短语一致,您可以信任此邮件。", - "emails.otpSession.thanks": "谢谢,", + "emails.otpSession.thanks": "谢谢,、", "emails.otpSession.signature": "{{project}} 团队" -} \ No newline at end of file +} diff --git a/app/config/locale/translations/zh-tw.json b/app/config/locale/translations/zh-tw.json index 24729de6b35..146dd0a401a 100644 --- a/app/config/locale/translations/zh-tw.json +++ b/app/config/locale/translations/zh-tw.json @@ -4,28 +4,28 @@ "settings.direction": "ltr", "emails.sender": "%s 小組", "emails.verification.subject": "帳戶驗證", - "emails.verification.hello": "嗨 {{user}}", + "emails.verification.hello": "嗨 {{user}}、", "emails.verification.body": "按照此連結驗證您的電子郵件地址。", "emails.verification.footer": "如果您沒有要求驗證此地址,則可以忽略此消息。", - "emails.verification.thanks": "謝謝", + "emails.verification.thanks": "謝謝、", "emails.verification.signature": "{{project}} 團隊", "emails.magicSession.subject": "登入", - "emails.magicSession.hello": "嗨", + "emails.magicSession.hello": "嗨、", "emails.magicSession.body": "點此連結登入。", "emails.magicSession.footer": "如果您沒有要求使用此電子郵件登入,則可以忽略此消息。", - "emails.magicSession.thanks": "謝謝", + "emails.magicSession.thanks": "謝謝、", "emails.magicSession.signature": "{{project}} 團隊", "emails.recovery.subject": "重設密碼", - "emails.recovery.hello": "您好 {{user}}", + "emails.recovery.hello": "您好 {{user}}、", "emails.recovery.body": "按照此連結重置您的 {{project}} 密碼。", "emails.recovery.footer": "如果您沒有要求重置密碼,則可以忽略此消息。", - "emails.recovery.thanks": "謝謝", + "emails.recovery.thanks": "謝謝、", "emails.recovery.signature": "{{project}} 團隊", "emails.invitation.subject": "邀請 %s 團隊在 %s", - "emails.invitation.hello": "您好", + "emails.invitation.hello": "您好、", "emails.invitation.body": "發送這封郵件給您是因為 {{owner}} 想邀請您成為 {{team}} 團隊在 {{project}}。", "emails.invitation.footer": "如果您不感興趣,可以忽略此消息。", - "emails.invitation.thanks": "謝謝", + "emails.invitation.thanks": "謝謝、", "emails.invitation.signature": "{{project}} 團隊", "locale.country.unknown": "未知", "countries.af": "阿富汗", @@ -239,10 +239,10 @@ "sms.verification.body": "{{secret}}", "emails.magicSession.securityPhrase": "這封電子郵件的安全密語是{{phrase}}。如果此密語與登入時顯示的密語相符,您就可以信任此郵件。", "emails.otpSession.subject": "{{project}} 登入", - "emails.otpSession.hello": "你好,", + "emails.otpSession.hello": "你好,、", "emails.otpSession.description": "在提示时輸入以下驗證碼以安全地登入您的{{project}}帳戶。該驗證碼將在15分鐘後過期。", "emails.otpSession.clientInfo": "這次的登入是使用{{agentClient}}在{{agentDevice}} {{agentOs}}上請求的。如果您沒有請求這次的登入,您可以放心地忽略這封電子郵件。", "emails.otpSession.securityPhrase": "這封電子郵件的安全口令是{{phrase}}。如果這個口令與登入時顯示的口令相匹配,您可以信任這封電子郵件。", - "emails.otpSession.thanks": "謝謝,", + "emails.otpSession.thanks": "謝謝,、", "emails.otpSession.signature": "{{project}} 團隊" -} \ No newline at end of file +} diff --git a/app/config/oAuthProviders.php b/app/config/oAuthProviders.php index 9d7efc2f1e6..261df5c07e6 100644 --- a/app/config/oAuthProviders.php +++ b/app/config/oAuthProviders.php @@ -142,6 +142,16 @@ 'beta' => false, 'mock' => false, ], + 'figma' => [ + 'name' => 'Figma', + 'developers' => 'https://www.figma.com/developers/api#oauth2', + 'icon' => 'icon-figma', + 'enabled' => true, + 'sandbox' => false, + 'form' => false, + 'beta' => false, + 'mock' => false, + ], 'github' => [ 'name' => 'GitHub', 'developers' => 'https://developer.github.com/', diff --git a/app/config/platforms.php b/app/config/platforms.php index 40cea19fd36..aff6aaf7c03 100644 --- a/app/config/platforms.php +++ b/app/config/platforms.php @@ -1,9 +1,5 @@ [ 'key' => APP_PLATFORM_CLIENT, @@ -15,7 +11,7 @@ [ 'key' => 'web', 'name' => 'Web', - 'version' => '16.0.0', + 'version' => '17.0.2', 'url' => 'https://github.com/appwrite/sdk-for-web', 'package' => 'https://www.npmjs.com/package/appwrite', 'enabled' => true, @@ -63,7 +59,7 @@ [ 'key' => 'flutter', 'name' => 'Flutter', - 'version' => '13.0.0', + 'version' => '15.0.2', 'url' => 'https://github.com/appwrite/sdk-for-flutter', 'package' => 'https://pub.dev/packages/appwrite', 'enabled' => true, @@ -81,7 +77,7 @@ [ 'key' => 'apple', 'name' => 'Apple', - 'version' => '7.0.0', + 'version' => '9.0.1', 'url' => 'https://github.com/appwrite/sdk-for-apple', 'package' => 'https://github.com/appwrite/sdk-for-apple', 'enabled' => true, @@ -116,7 +112,7 @@ [ 'key' => 'android', 'name' => 'Android', - 'version' => '6.0.0', + 'version' => '7.0.1', 'url' => 'https://github.com/appwrite/sdk-for-android', 'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-android', 'enabled' => true, @@ -138,7 +134,7 @@ [ 'key' => 'react-native', 'name' => 'React Native', - 'version' => '0.5.0', + 'version' => '0.7.4', 'url' => 'https://github.com/appwrite/sdk-for-react-native', 'package' => 'https://npmjs.com/package/react-native-appwrite', 'enabled' => true, @@ -203,7 +199,7 @@ [ 'key' => 'web', 'name' => 'Console', - 'version' => '1.1.0', + 'version' => '1.2.1', 'url' => 'https://github.com/appwrite/sdk-for-console', 'package' => '', 'enabled' => true, @@ -221,7 +217,7 @@ [ 'key' => 'cli', 'name' => 'Command Line', - 'version' => '6.0.0', + 'version' => '6.2.3', 'url' => 'https://github.com/appwrite/sdk-for-cli', 'package' => 'https://www.npmjs.com/package/appwrite-cli', 'enabled' => true, @@ -249,7 +245,7 @@ [ 'key' => 'nodejs', 'name' => 'Node.js', - 'version' => '14.1.0', + 'version' => '16.1.0-rc.1', 'url' => 'https://github.com/appwrite/sdk-for-node', 'package' => 'https://www.npmjs.com/package/node-appwrite', 'enabled' => true, @@ -267,7 +263,7 @@ [ 'key' => 'deno', 'name' => 'Deno', - 'version' => '12.1.0', + 'version' => '14.1.0-rc.1', 'url' => 'https://github.com/appwrite/sdk-for-deno', 'package' => 'https://deno.land/x/appwrite', 'enabled' => true, @@ -285,7 +281,7 @@ [ 'key' => 'php', 'name' => 'PHP', - 'version' => '12.0.0', + 'version' => '14.1.0-rc.1', 'url' => 'https://github.com/appwrite/sdk-for-php', 'package' => 'https://packagist.org/packages/appwrite/appwrite', 'enabled' => true, @@ -303,7 +299,7 @@ [ 'key' => 'python', 'name' => 'Python', - 'version' => '6.1.0', + 'version' => '10.1.0-rc.1', 'url' => 'https://github.com/appwrite/sdk-for-python', 'package' => 'https://pypi.org/project/appwrite/', 'enabled' => true, @@ -321,7 +317,7 @@ [ 'key' => 'ruby', 'name' => 'Ruby', - 'version' => '12.1.0', + 'version' => '15.1.0-rc.1', 'url' => 'https://github.com/appwrite/sdk-for-ruby', 'package' => 'https://rubygems.org/gems/appwrite', 'enabled' => true, @@ -339,7 +335,7 @@ [ 'key' => 'go', 'name' => 'Go', - 'version' => '0.2.0', + 'version' => '0.6.0-rc.1', 'url' => 'https://github.com/appwrite/sdk-for-go', 'package' => 'https://github.com/appwrite/sdk-for-go', 'enabled' => true, @@ -357,7 +353,7 @@ [ 'key' => 'dotnet', 'name' => '.NET', - 'version' => '0.10.0', + 'version' => '0.13.0-rc.1', 'url' => 'https://github.com/appwrite/sdk-for-dotnet', 'package' => 'https://www.nuget.org/packages/Appwrite', 'enabled' => true, @@ -375,7 +371,7 @@ [ 'key' => 'dart', 'name' => 'Dart', - 'version' => '12.1.0', + 'version' => '15.1.0-rc.1', 'url' => 'https://github.com/appwrite/sdk-for-dart', 'package' => 'https://pub.dev/packages/dart_appwrite', 'enabled' => true, @@ -393,7 +389,7 @@ [ 'key' => 'kotlin', 'name' => 'Kotlin', - 'version' => '6.1.0', + 'version' => '8.1.0-rc.1', 'url' => 'https://github.com/appwrite/sdk-for-kotlin', 'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-kotlin', 'enabled' => true, @@ -415,7 +411,7 @@ [ 'key' => 'swift', 'name' => 'Swift', - 'version' => '6.1.0', + 'version' => '9.1.0-rc.1', 'url' => 'https://github.com/appwrite/sdk-for-swift', 'package' => 'https://github.com/appwrite/sdk-for-swift', 'enabled' => true, diff --git a/app/config/regions.php b/app/config/regions.php index b40667ab5e0..05e04930fe1 100644 --- a/app/config/regions.php +++ b/app/config/regions.php @@ -3,72 +3,8 @@ return [ 'default' => [ '$id' => 'default', - 'name' => 'Frankfurt', + 'name' => 'default', 'disabled' => false, - 'flag' => 'de', - 'default' => true, - ], - 'fra' => [ - '$id' => 'fra', - 'name' => 'Frankfurt', - 'disabled' => false, - 'flag' => 'de', - 'default' => true, - ], - 'nyc' => [ - '$id' => 'nyc', - 'name' => 'New York', - 'disabled' => true, - 'flag' => 'us', - 'default' => true, - ], - 'sfo' => [ - '$id' => 'sfo', - 'name' => 'San Francisco', - 'disabled' => true, - 'flag' => 'us', - 'default' => true, - ], - 'blr' => [ - '$id' => 'blr', - 'name' => 'Banglore', - 'disabled' => true, - 'flag' => 'in', - 'default' => true, - ], - 'lon' => [ - '$id' => 'lon', - 'name' => 'London', - 'disabled' => true, - 'flag' => 'gb', - 'default' => true, - ], - 'ams' => [ - '$id' => 'ams', - 'name' => 'Amsterdam', - 'disabled' => true, - 'flag' => 'nl', - 'default' => true, - ], - 'sgp' => [ - '$id' => 'sgp', - 'name' => 'Singapore', - 'disabled' => true, - 'flag' => 'sg', - 'default' => true, - ], - 'tor' => [ - '$id' => 'tor', - 'name' => 'Toronto', - 'disabled' => true, - 'flag' => 'ca', - 'default' => true, - ], - 'syd' => [ - '$id' => 'syd', - 'name' => 'Sydney', - 'disabled' => true, - 'flag' => 'au', 'default' => true, ], ]; diff --git a/app/config/roles.php b/app/config/roles.php index 65b9643b89f..fae97895b88 100644 --- a/app/config/roles.php +++ b/app/config/roles.php @@ -17,7 +17,6 @@ 'files.read', 'files.write', 'projects.read', - 'projects.write', 'locale.read', 'avatars.read', 'execution.read', @@ -49,6 +48,7 @@ 'collections.write', 'platforms.read', 'platforms.write', + 'projects.write', 'keys.read', 'keys.write', 'webhooks.read', @@ -75,7 +75,7 @@ 'topics.write', 'topics.read', 'subscribers.write', - 'subscribers.read' + 'subscribers.read', ]; return [ diff --git a/app/config/services.php b/app/config/services.php index c4fb98c59a5..3ac1601b7c7 100644 --- a/app/config/services.php +++ b/app/config/services.php @@ -65,9 +65,6 @@ 'tests' => false, 'optional' => true, 'icon' => '/images/services/databases.png', - 'globalAttributes' => [ - 'databaseId' - ] ], 'locale' => [ 'key' => 'locale', diff --git a/app/config/specs/open-api3-1.6.x-client.json b/app/config/specs/open-api3-1.6.x-client.json index 8a9967090d8..e84c511f786 100644 --- a/app/config/specs/open-api3-1.6.x-client.json +++ b/app/config/specs/open-api3-1.6.x-client.json @@ -1,7 +1,7 @@ { "openapi": "3.0.0", "info": { - "version": "1.6.0", + "version": "1.6.2", "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", @@ -18,6 +18,9 @@ "servers": [ { "url": "https:\/\/cloud.appwrite.io\/v1" + }, + { + "url": "https:\/\/.cloud.appwrite.io\/v1" } ], "paths": { @@ -43,7 +46,8 @@ }, "x-appwrite": { "method": "get", - "weight": 8, + "group": "account", + "weight": 9, "cookies": false, "type": "", "deprecated": false, @@ -58,9 +62,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -94,7 +95,8 @@ }, "x-appwrite": { "method": "create", - "weight": 7, + "group": "account", + "weight": 8, "cookies": false, "type": "", "deprecated": false, @@ -109,9 +111,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -181,7 +180,8 @@ }, "x-appwrite": { "method": "updateEmail", - "weight": 33, + "group": "account", + "weight": 34, "cookies": false, "type": "", "deprecated": false, @@ -196,9 +196,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -239,7 +236,7 @@ }, "\/account\/identities": { "get": { - "summary": "List Identities", + "summary": "List identities", "operationId": "accountListIdentities", "tags": [ "account" @@ -259,7 +256,8 @@ }, "x-appwrite": { "method": "listIdentities", - "weight": 56, + "group": "identities", + "weight": 57, "cookies": false, "type": "", "deprecated": false, @@ -274,9 +272,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/identities", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -320,7 +315,8 @@ }, "x-appwrite": { "method": "deleteIdentity", - "weight": 57, + "group": "identities", + "weight": 58, "cookies": false, "type": "", "deprecated": false, @@ -335,9 +331,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -385,7 +378,8 @@ }, "x-appwrite": { "method": "createJWT", - "weight": 28, + "group": "tokens", + "weight": 29, "cookies": false, "type": "", "deprecated": false, @@ -400,9 +394,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -436,7 +427,8 @@ }, "x-appwrite": { "method": "listLogs", - "weight": 30, + "group": "logs", + "weight": 31, "cookies": false, "type": "", "deprecated": false, @@ -451,9 +443,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -504,7 +493,8 @@ }, "x-appwrite": { "method": "updateMFA", - "weight": 43, + "group": "mfa", + "weight": 44, "cookies": false, "type": "", "deprecated": false, @@ -519,9 +509,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -556,7 +543,7 @@ }, "\/account\/mfa\/authenticators\/{type}": { "post": { - "summary": "Create Authenticator", + "summary": "Create authenticator", "operationId": "accountCreateMfaAuthenticator", "tags": [ "account" @@ -576,7 +563,8 @@ }, "x-appwrite": { "method": "createMfaAuthenticator", - "weight": 45, + "group": "mfa", + "weight": 46, "cookies": false, "type": "", "deprecated": false, @@ -591,9 +579,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -624,7 +609,7 @@ ] }, "put": { - "summary": "Verify Authenticator", + "summary": "Update authenticator (confirmation)", "operationId": "accountUpdateMfaAuthenticator", "tags": [ "account" @@ -644,7 +629,8 @@ }, "x-appwrite": { "method": "updateMfaAuthenticator", - "weight": 46, + "group": "mfa", + "weight": 47, "cookies": false, "type": "", "deprecated": false, @@ -659,9 +645,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -711,7 +694,7 @@ } }, "delete": { - "summary": "Delete Authenticator", + "summary": "Delete authenticator", "operationId": "accountDeleteMfaAuthenticator", "tags": [ "account" @@ -724,7 +707,8 @@ }, "x-appwrite": { "method": "deleteMfaAuthenticator", - "weight": 50, + "group": "mfa", + "weight": 51, "cookies": false, "type": "", "deprecated": false, @@ -739,9 +723,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -774,7 +755,7 @@ }, "\/account\/mfa\/challenge": { "post": { - "summary": "Create MFA Challenge", + "summary": "Create MFA challenge", "operationId": "accountCreateMfaChallenge", "tags": [ "account" @@ -794,7 +775,8 @@ }, "x-appwrite": { "method": "createMfaChallenge", - "weight": 51, + "group": "mfa", + "weight": 52, "cookies": false, "type": "", "deprecated": false, @@ -809,9 +791,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -850,17 +829,17 @@ } }, "put": { - "summary": "Create MFA Challenge (confirmation)", + "summary": "Update MFA challenge (confirmation)", "operationId": "accountUpdateMfaChallenge", "tags": [ "account" ], "description": "Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", "responses": { - "204": { - "description": "No content", + "200": { + "description": "Session", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/session" } @@ -870,7 +849,8 @@ }, "x-appwrite": { "method": "updateMfaChallenge", - "weight": 52, + "group": "mfa", + "weight": 53, "cookies": false, "type": "", "deprecated": false, @@ -885,9 +865,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -928,7 +905,7 @@ }, "\/account\/mfa\/factors": { "get": { - "summary": "List Factors", + "summary": "List factors", "operationId": "accountListMfaFactors", "tags": [ "account" @@ -948,7 +925,8 @@ }, "x-appwrite": { "method": "listMfaFactors", - "weight": 44, + "group": "mfa", + "weight": 45, "cookies": false, "type": "", "deprecated": false, @@ -963,9 +941,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -981,7 +956,7 @@ }, "\/account\/mfa\/recovery-codes": { "get": { - "summary": "Get MFA Recovery Codes", + "summary": "List MFA recovery codes", "operationId": "accountGetMfaRecoveryCodes", "tags": [ "account" @@ -1001,7 +976,8 @@ }, "x-appwrite": { "method": "getMfaRecoveryCodes", - "weight": 49, + "group": "mfa", + "weight": 50, "cookies": false, "type": "", "deprecated": false, @@ -1016,9 +992,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1032,7 +1005,7 @@ ] }, "post": { - "summary": "Create MFA Recovery Codes", + "summary": "Create MFA recovery codes", "operationId": "accountCreateMfaRecoveryCodes", "tags": [ "account" @@ -1052,7 +1025,8 @@ }, "x-appwrite": { "method": "createMfaRecoveryCodes", - "weight": 47, + "group": "mfa", + "weight": 48, "cookies": false, "type": "", "deprecated": false, @@ -1067,9 +1041,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1083,7 +1054,7 @@ ] }, "patch": { - "summary": "Regenerate MFA Recovery Codes", + "summary": "Update MFA recovery codes (regenerate)", "operationId": "accountUpdateMfaRecoveryCodes", "tags": [ "account" @@ -1103,7 +1074,8 @@ }, "x-appwrite": { "method": "updateMfaRecoveryCodes", - "weight": 48, + "group": "mfa", + "weight": 49, "cookies": false, "type": "", "deprecated": false, @@ -1118,9 +1090,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1156,7 +1125,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 31, + "group": "account", + "weight": 32, "cookies": false, "type": "", "deprecated": false, @@ -1171,9 +1141,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1228,7 +1195,8 @@ }, "x-appwrite": { "method": "updatePassword", - "weight": 32, + "group": "account", + "weight": 33, "cookies": false, "type": "", "deprecated": false, @@ -1243,9 +1211,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1305,7 +1270,8 @@ }, "x-appwrite": { "method": "updatePhone", - "weight": 34, + "group": "account", + "weight": 35, "cookies": false, "type": "", "deprecated": false, @@ -1320,9 +1286,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1383,7 +1346,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 29, + "group": "account", + "weight": 30, "cookies": false, "type": "", "deprecated": false, @@ -1398,9 +1362,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/prefs", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1434,7 +1395,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 35, + "group": "account", + "weight": 36, "cookies": false, "type": "", "deprecated": false, @@ -1449,9 +1411,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/prefs", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1506,7 +1465,8 @@ }, "x-appwrite": { "method": "createRecovery", - "weight": 37, + "group": "recovery", + "weight": 38, "cookies": false, "type": "", "deprecated": false, @@ -1524,9 +1484,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1565,7 +1522,7 @@ } }, "put": { - "summary": "Create password recovery (confirmation)", + "summary": "Update password recovery (confirmation)", "operationId": "accountUpdateRecovery", "tags": [ "account" @@ -1585,7 +1542,8 @@ }, "x-appwrite": { "method": "updateRecovery", - "weight": 38, + "group": "recovery", + "weight": 39, "cookies": false, "type": "", "deprecated": false, @@ -1600,9 +1558,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1669,7 +1624,8 @@ }, "x-appwrite": { "method": "listSessions", - "weight": 10, + "group": "sessions", + "weight": 11, "cookies": false, "type": "", "deprecated": false, @@ -1684,9 +1640,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/sessions", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1713,7 +1666,8 @@ }, "x-appwrite": { "method": "deleteSessions", - "weight": 11, + "group": "sessions", + "weight": 12, "cookies": false, "type": "", "deprecated": false, @@ -1728,9 +1682,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1766,7 +1717,8 @@ }, "x-appwrite": { "method": "createAnonymousSession", - "weight": 16, + "group": "sessions", + "weight": 17, "cookies": false, "type": "", "deprecated": false, @@ -1781,9 +1733,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1817,7 +1766,8 @@ }, "x-appwrite": { "method": "createEmailPasswordSession", - "weight": 15, + "group": "sessions", + "weight": 16, "cookies": false, "type": "", "deprecated": false, @@ -1832,9 +1782,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1893,7 +1840,8 @@ }, "x-appwrite": { "method": "updateMagicURLSession", - "weight": 25, + "group": "sessions", + "weight": 26, "cookies": false, "type": "", "deprecated": true, @@ -1908,9 +1856,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1962,7 +1907,8 @@ }, "x-appwrite": { "method": "createOAuth2Session", - "weight": 18, + "group": "sessions", + "weight": 19, "cookies": false, "type": "webAuth", "deprecated": false, @@ -1977,9 +1923,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1992,7 +1935,7 @@ "parameters": [ { "name": "provider", - "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", + "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", "required": true, "schema": { "type": "string", @@ -2012,6 +1955,7 @@ "dropbox", "etsy", "facebook", + "figma", "github", "gitlab", "google", @@ -2105,7 +2049,8 @@ }, "x-appwrite": { "method": "updatePhoneSession", - "weight": 26, + "group": "sessions", + "weight": 27, "cookies": false, "type": "", "deprecated": true, @@ -2120,9 +2065,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2181,7 +2123,8 @@ }, "x-appwrite": { "method": "createSession", - "weight": 17, + "group": "sessions", + "weight": 18, "cookies": false, "type": "", "deprecated": false, @@ -2196,9 +2139,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2257,7 +2197,8 @@ }, "x-appwrite": { "method": "getSession", - "weight": 12, + "group": "sessions", + "weight": 13, "cookies": false, "type": "", "deprecated": false, @@ -2272,9 +2213,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/sessions", - "offline-key": "{sessionId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2320,7 +2258,8 @@ }, "x-appwrite": { "method": "updateSession", - "weight": 14, + "group": "sessions", + "weight": 15, "cookies": false, "type": "", "deprecated": false, @@ -2335,9 +2274,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2376,7 +2312,8 @@ }, "x-appwrite": { "method": "deleteSession", - "weight": 13, + "group": "sessions", + "weight": 14, "cookies": false, "type": "", "deprecated": false, @@ -2391,9 +2328,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2441,7 +2375,8 @@ }, "x-appwrite": { "method": "updateStatus", - "weight": 36, + "group": "account", + "weight": 37, "cookies": false, "type": "", "deprecated": false, @@ -2456,9 +2391,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2479,7 +2411,7 @@ "tags": [ "account" ], - "description": "", + "description": "Use this endpoint to register a device for push notifications. Provide a target ID (custom or generated using ID.unique()), a device identifier (usually a device token), and optionally specify which provider should send notifications to this target. The target is automatically linked to the current session and includes device information like brand and model.", "responses": { "201": { "description": "Target", @@ -2494,12 +2426,13 @@ }, "x-appwrite": { "method": "createPushTarget", - "weight": 53, + "group": "pushTargets", + "weight": 54, "cookies": false, "type": "", "deprecated": false, "demo": "account\/create-push-target.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-push-target.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -2508,9 +2441,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2560,7 +2490,7 @@ "tags": [ "account" ], - "description": "", + "description": "Update the currently logged in user's push notification target. You can modify the target's identifier (device token) and provider ID (token, email, phone etc.). The target must exist and belong to the current user. If you change the provider ID, notifications will be sent through the new messaging provider instead.", "responses": { "200": { "description": "Target", @@ -2575,12 +2505,13 @@ }, "x-appwrite": { "method": "updatePushTarget", - "weight": 54, + "group": "pushTargets", + "weight": 55, "cookies": false, "type": "", "deprecated": false, "demo": "account\/update-push-target.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-push-target.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -2589,9 +2520,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2640,27 +2568,21 @@ "tags": [ "account" ], - "description": "", + "description": "Delete a push notification target for the currently logged in user. After deletion, the device will no longer receive push notifications. The target must exist and belong to the current user.", "responses": { "204": { - "description": "No content", - "content": { - "application\/json": { - "schema": { - "$ref": "#\/components\/schemas\/target" - } - } - } + "description": "No content" } }, "x-appwrite": { "method": "deletePushTarget", - "weight": 55, + "group": "pushTargets", + "weight": 56, "cookies": false, "type": "", "deprecated": false, "demo": "account\/delete-push-target.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/delete-push-target.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -2669,9 +2591,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2718,7 +2637,8 @@ }, "x-appwrite": { "method": "createEmailToken", - "weight": 24, + "group": "tokens", + "weight": 25, "cookies": false, "type": "", "deprecated": false, @@ -2726,16 +2646,16 @@ "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-email.md", "rate-limit": 10, "rate-time": 3600, - "rate-key": "url:{url},email:{param-email}", + "rate-key": [ + "url:{url},email:{param-email}", + "url:{url},ip:{ip}" + ], "scope": "sessions.write", "platforms": [ "server", "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2784,7 +2704,7 @@ "tags": [ "account" ], - "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. 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 [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) 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.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", + "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. 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 [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) endpoint to complete the login process. The link sent to the user's email address is valid for 1 hour.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", "responses": { "201": { "description": "Token", @@ -2799,7 +2719,8 @@ }, "x-appwrite": { "method": "createMagicURLToken", - "weight": 23, + "group": "tokens", + "weight": 24, "cookies": false, "type": "", "deprecated": false, @@ -2817,9 +2738,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2881,7 +2799,8 @@ }, "x-appwrite": { "method": "createOAuth2Token", - "weight": 22, + "group": "tokens", + "weight": 23, "cookies": false, "type": "webAuth", "deprecated": false, @@ -2896,9 +2815,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2911,7 +2827,7 @@ "parameters": [ { "name": "provider", - "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", + "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", "required": true, "schema": { "type": "string", @@ -2931,6 +2847,7 @@ "dropbox", "etsy", "facebook", + "figma", "github", "gitlab", "google", @@ -3024,7 +2941,8 @@ }, "x-appwrite": { "method": "createPhoneToken", - "weight": 27, + "group": "tokens", + "weight": 28, "cookies": false, "type": "", "deprecated": false, @@ -3042,9 +2960,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3103,7 +3018,8 @@ }, "x-appwrite": { "method": "createVerification", - "weight": 39, + "group": "verification", + "weight": 40, "cookies": false, "type": "", "deprecated": false, @@ -3118,9 +3034,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3153,7 +3066,7 @@ } }, "put": { - "summary": "Create email verification (confirmation)", + "summary": "Update email verification (confirmation)", "operationId": "accountUpdateVerification", "tags": [ "account" @@ -3173,7 +3086,8 @@ }, "x-appwrite": { "method": "updateVerification", - "weight": 40, + "group": "verification", + "weight": 41, "cookies": false, "type": "", "deprecated": false, @@ -3188,9 +3102,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3251,7 +3162,8 @@ }, "x-appwrite": { "method": "createPhoneVerification", - "weight": 41, + "group": "verification", + "weight": 42, "cookies": false, "type": "", "deprecated": false, @@ -3269,9 +3181,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3305,7 +3214,8 @@ }, "x-appwrite": { "method": "updatePhoneVerification", - "weight": 42, + "group": "verification", + "weight": 43, "cookies": false, "type": "", "deprecated": false, @@ -3320,9 +3230,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3376,7 +3283,8 @@ }, "x-appwrite": { "method": "getBrowser", - "weight": 59, + "group": null, + "weight": 60, "cookies": false, "type": "location", "deprecated": false, @@ -3392,9 +3300,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3504,7 +3409,8 @@ }, "x-appwrite": { "method": "getCreditCard", - "weight": 58, + "group": null, + "weight": 59, "cookies": false, "type": "location", "deprecated": false, @@ -3520,9 +3426,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3537,7 +3440,7 @@ "parameters": [ { "name": "code", - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro.", + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", "required": true, "schema": { "type": "string", @@ -3558,7 +3461,8 @@ "union-china-pay", "visa", "mir", - "maestro" + "maestro", + "rupay" ], "x-enum-name": "CreditCard", "x-enum-keys": [ @@ -3577,7 +3481,8 @@ "Union China Pay", "Visa", "MIR", - "Maestro" + "Maestro", + "Rupay" ] }, "in": "path" @@ -3636,7 +3541,8 @@ }, "x-appwrite": { "method": "getFavicon", - "weight": 62, + "group": null, + "weight": 63, "cookies": false, "type": "location", "deprecated": false, @@ -3652,9 +3558,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3696,7 +3599,8 @@ }, "x-appwrite": { "method": "getFlag", - "weight": 60, + "group": null, + "weight": 61, "cookies": false, "type": "location", "deprecated": false, @@ -3712,9 +3616,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4186,7 +4087,8 @@ }, "x-appwrite": { "method": "getImage", - "weight": 61, + "group": null, + "weight": 62, "cookies": false, "type": "location", "deprecated": false, @@ -4202,9 +4104,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4270,7 +4169,8 @@ }, "x-appwrite": { "method": "getInitials", - "weight": 64, + "group": null, + "weight": 65, "cookies": false, "type": "location", "deprecated": false, @@ -4286,9 +4186,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4364,7 +4261,8 @@ }, "x-appwrite": { "method": "getQR", - "weight": 63, + "group": null, + "weight": 64, "cookies": false, "type": "location", "deprecated": false, @@ -4380,9 +4278,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4465,7 +4360,8 @@ }, "x-appwrite": { "method": "listDocuments", - "weight": 108, + "group": "documents", + "weight": 109, "cookies": false, "type": "", "deprecated": false, @@ -4481,9 +4377,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4552,7 +4445,8 @@ }, "x-appwrite": { "method": "createDocument", - "weight": 107, + "group": "documents", + "weight": 108, "cookies": false, "type": "", "deprecated": false, @@ -4568,9 +4462,31 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", + "methods": [ + { + "name": "createDocument", + "parameters": [ + "databaseId", + "collectionId", + "documentId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "collectionId", + "documentId", + "data" + ], + "responses": [ + { + "code": 201, + "model": "#\/components\/schemas\/document" + } + ], + "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + } + ], "auth": { "Project": [] } @@ -4627,12 +4543,16 @@ "items": { "type": "string" } + }, + "documents": { + "type": "array", + "description": "Array of documents data as JSON objects.", + "x-example": null, + "items": { + "type": "object" + } } - }, - "required": [ - "documentId", - "data" - ] + } } } } @@ -4661,7 +4581,8 @@ }, "x-appwrite": { "method": "getDocument", - "weight": 109, + "group": "documents", + "weight": 110, "cookies": false, "type": "", "deprecated": false, @@ -4677,9 +4598,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4758,7 +4676,8 @@ }, "x-appwrite": { "method": "updateDocument", - "weight": 111, + "group": "documents", + "weight": 112, "cookies": false, "type": "", "deprecated": false, @@ -4774,9 +4693,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4859,7 +4775,8 @@ }, "x-appwrite": { "method": "deleteDocument", - "weight": 112, + "group": "documents", + "weight": 115, "cookies": false, "type": "", "deprecated": false, @@ -4875,9 +4792,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4945,7 +4859,8 @@ }, "x-appwrite": { "method": "listExecutions", - "weight": 304, + "group": "executions", + "weight": 308, "cookies": false, "type": "", "deprecated": false, @@ -4961,9 +4876,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5033,7 +4945,8 @@ }, "x-appwrite": { "method": "createExecution", - "weight": 303, + "group": "executions", + "weight": 307, "cookies": false, "type": "", "deprecated": false, @@ -5049,9 +4962,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5084,7 +4994,7 @@ "body": { "type": "string", "description": "HTTP body of execution. Default value is empty string.", - "x-example": null + "x-example": "" }, "async": { "type": "boolean", @@ -5150,7 +5060,8 @@ }, "x-appwrite": { "method": "getExecution", - "weight": 305, + "group": "executions", + "weight": 309, "cookies": false, "type": "", "deprecated": false, @@ -5166,9 +5077,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5226,7 +5134,8 @@ }, "x-appwrite": { "method": "query", - "weight": 329, + "group": "graphql", + "weight": 333, "cookies": false, "type": "graphql", "deprecated": false, @@ -5242,9 +5151,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5280,7 +5186,8 @@ }, "x-appwrite": { "method": "mutation", - "weight": 328, + "group": "graphql", + "weight": 332, "cookies": false, "type": "graphql", "deprecated": false, @@ -5296,9 +5203,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5334,7 +5238,8 @@ }, "x-appwrite": { "method": "get", - "weight": 116, + "group": null, + "weight": 120, "cookies": false, "type": "", "deprecated": false, @@ -5350,9 +5255,6 @@ "server" ], "packaging": false, - "offline-model": "\/localed", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5368,7 +5270,7 @@ }, "\/locale\/codes": { "get": { - "summary": "List Locale Codes", + "summary": "List locale codes", "operationId": "localeListCodes", "tags": [ "locale" @@ -5388,7 +5290,8 @@ }, "x-appwrite": { "method": "listCodes", - "weight": 117, + "group": null, + "weight": 121, "cookies": false, "type": "", "deprecated": false, @@ -5404,9 +5307,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/localeCode", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5442,7 +5342,8 @@ }, "x-appwrite": { "method": "listContinents", - "weight": 121, + "group": null, + "weight": 125, "cookies": false, "type": "", "deprecated": false, @@ -5458,9 +5359,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/continents", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -5496,7 +5394,8 @@ }, "x-appwrite": { "method": "listCountries", - "weight": 118, + "group": null, + "weight": 122, "cookies": false, "type": "", "deprecated": false, @@ -5512,9 +5411,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -5550,7 +5446,8 @@ }, "x-appwrite": { "method": "listCountriesEU", - "weight": 119, + "group": null, + "weight": 123, "cookies": false, "type": "", "deprecated": false, @@ -5566,9 +5463,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries\/eu", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -5604,7 +5498,8 @@ }, "x-appwrite": { "method": "listCountriesPhones", - "weight": 120, + "group": null, + "weight": 124, "cookies": false, "type": "", "deprecated": false, @@ -5620,9 +5515,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries\/phones", - "offline-key": "", - "offline-response-key": "countryCode", "auth": { "Project": [] } @@ -5658,7 +5550,8 @@ }, "x-appwrite": { "method": "listCurrencies", - "weight": 122, + "group": null, + "weight": 126, "cookies": false, "type": "", "deprecated": false, @@ -5674,9 +5567,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/currencies", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -5712,7 +5602,8 @@ }, "x-appwrite": { "method": "listLanguages", - "weight": 123, + "group": null, + "weight": 127, "cookies": false, "type": "", "deprecated": false, @@ -5728,9 +5619,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/languages", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -5766,7 +5654,8 @@ }, "x-appwrite": { "method": "createSubscriber", - "weight": 380, + "group": "subscribers", + "weight": 378, "cookies": false, "type": "", "deprecated": false, @@ -5783,9 +5672,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5851,7 +5737,8 @@ }, "x-appwrite": { "method": "deleteSubscriber", - "weight": 384, + "group": "subscribers", + "weight": 382, "cookies": false, "type": "", "deprecated": false, @@ -5868,9 +5755,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5928,7 +5812,8 @@ }, "x-appwrite": { "method": "listFiles", - "weight": 206, + "group": "files", + "weight": 210, "cookies": false, "type": "", "deprecated": false, @@ -5944,9 +5829,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6016,7 +5898,8 @@ }, "x-appwrite": { "method": "createFile", - "weight": 205, + "group": "files", + "weight": 209, "cookies": false, "type": "upload", "deprecated": false, @@ -6032,9 +5915,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6116,7 +5996,8 @@ }, "x-appwrite": { "method": "getFile", - "weight": 207, + "group": "files", + "weight": 211, "cookies": false, "type": "", "deprecated": false, @@ -6132,9 +6013,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6190,7 +6068,8 @@ }, "x-appwrite": { "method": "updateFile", - "weight": 212, + "group": "files", + "weight": 216, "cookies": false, "type": "", "deprecated": false, @@ -6206,9 +6085,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6268,7 +6144,7 @@ } }, "delete": { - "summary": "Delete File", + "summary": "Delete file", "operationId": "storageDeleteFile", "tags": [ "storage" @@ -6281,7 +6157,8 @@ }, "x-appwrite": { "method": "deleteFile", - "weight": 213, + "group": "files", + "weight": 217, "cookies": false, "type": "", "deprecated": false, @@ -6297,9 +6174,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6350,7 +6224,8 @@ }, "x-appwrite": { "method": "getFileDownload", - "weight": 209, + "group": "files", + "weight": 213, "cookies": false, "type": "location", "deprecated": false, @@ -6366,9 +6241,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6419,7 +6291,8 @@ }, "x-appwrite": { "method": "getFilePreview", - "weight": 208, + "group": "files", + "weight": 212, "cookies": false, "type": "location", "deprecated": false, @@ -6435,9 +6308,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6610,7 +6480,9 @@ "jpeg", "gif", "png", - "webp" + "webp", + "heic", + "avif" ], "x-enum-name": "ImageFormat", "x-enum-keys": [], @@ -6636,7 +6508,8 @@ }, "x-appwrite": { "method": "getFileView", - "weight": 210, + "group": "files", + "weight": 214, "cookies": false, "type": "location", "deprecated": false, @@ -6652,9 +6525,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6712,7 +6582,8 @@ }, "x-appwrite": { "method": "list", - "weight": 217, + "group": "teams", + "weight": 221, "cookies": false, "type": "", "deprecated": false, @@ -6728,9 +6599,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6790,7 +6658,8 @@ }, "x-appwrite": { "method": "create", - "weight": 216, + "group": "teams", + "weight": 220, "cookies": false, "type": "", "deprecated": false, @@ -6806,9 +6675,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6877,7 +6743,8 @@ }, "x-appwrite": { "method": "get", - "weight": 218, + "group": "teams", + "weight": 222, "cookies": false, "type": "", "deprecated": false, @@ -6893,9 +6760,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "{teamId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6941,7 +6805,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 220, + "group": "teams", + "weight": 224, "cookies": false, "type": "", "deprecated": false, @@ -6957,9 +6822,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "{teamId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7017,7 +6879,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 222, + "group": "teams", + "weight": 226, "cookies": false, "type": "", "deprecated": false, @@ -7033,9 +6896,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7068,7 +6928,7 @@ "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.", + "description": "Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint. Hide sensitive attributes from the response by toggling membership privacy in the Console.", "responses": { "200": { "description": "Memberships List", @@ -7083,7 +6943,8 @@ }, "x-appwrite": { "method": "listMemberships", - "weight": 224, + "group": "memberships", + "weight": 228, "cookies": false, "type": "", "deprecated": false, @@ -7099,9 +6960,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/memberships", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7171,7 +7029,8 @@ }, "x-appwrite": { "method": "createMembership", - "weight": 223, + "group": "memberships", + "weight": 227, "cookies": false, "type": "", "deprecated": false, @@ -7187,9 +7046,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7269,7 +7125,7 @@ "tags": [ "teams" ], - "description": "Get a team member by the membership unique id. All team members have read access for this resource.", + "description": "Get a team member by the membership unique id. All team members have read access for this resource. Hide sensitive attributes from the response by toggling membership privacy in the Console.", "responses": { "200": { "description": "Membership", @@ -7284,7 +7140,8 @@ }, "x-appwrite": { "method": "getMembership", - "weight": 225, + "group": "memberships", + "weight": 229, "cookies": false, "type": "", "deprecated": false, @@ -7300,9 +7157,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/memberships", - "offline-key": "{membershipId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7358,7 +7212,8 @@ }, "x-appwrite": { "method": "updateMembership", - "weight": 226, + "group": "memberships", + "weight": 230, "cookies": false, "type": "", "deprecated": false, @@ -7374,9 +7229,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7447,7 +7299,8 @@ }, "x-appwrite": { "method": "deleteMembership", - "weight": 228, + "group": "memberships", + "weight": 232, "cookies": false, "type": "", "deprecated": false, @@ -7463,9 +7316,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7523,7 +7373,8 @@ }, "x-appwrite": { "method": "updateMembershipStatus", - "weight": 227, + "group": "memberships", + "weight": 231, "cookies": false, "type": "", "deprecated": false, @@ -7538,9 +7389,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7623,7 +7471,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 219, + "group": "teams", + "weight": 223, "cookies": false, "type": "", "deprecated": false, @@ -7638,9 +7487,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/prefs", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7686,7 +7532,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 221, + "group": "teams", + "weight": 225, "cookies": false, "type": "", "deprecated": false, @@ -7701,9 +7548,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/prefs", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7752,85 +7596,67 @@ "tags": [ { "name": "account", - "description": "The Account service allows you to authenticate and manage a user account.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Avatars service aims to help you complete everyday tasks related to your app image, icons, and avatars." }, { "name": "databases", - "description": "The Databases service allows you to create structured collections of documents, query and filter lists of documents", - "x-globalAttributes": [ - "databaseId" - ] + "description": "The Databases 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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Project service allows you to manage all the projects in your Appwrite server." }, { "name": "project", - "description": "The Project service allows you to manage all the projects in your Appwrite server.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Functions Service allows you view, create and manage your Cloud Functions." }, { "name": "proxy", - "description": "The Proxy Service allows you to configure actions for your domains beyond DNS configuration.", - "x-globalAttributes": [] + "description": "The Proxy Service allows you to configure actions for your domains beyond DNS configuration." }, { "name": "graphql", - "description": "The GraphQL API allows you to query and mutate your Appwrite server using GraphQL.", - "x-globalAttributes": [] + "description": "The GraphQL API allows you to query and mutate your Appwrite server using GraphQL." }, { "name": "console", - "description": "The Console service allows you to interact with console relevant informations.", - "x-globalAttributes": [] + "description": "The Console service allows you to interact with console relevant informations." }, { "name": "migrations", - "description": "The Migrations service allows you to migrate third-party data to your Appwrite project.", - "x-globalAttributes": [] + "description": "The Migrations service allows you to migrate third-party data to your Appwrite project." }, { "name": "messaging", - "description": "The Messaging service allows you to send messages to any provider type (SMTP, push notification, SMS, etc.).", - "x-globalAttributes": [] + "description": "The Messaging service allows you to send messages to any provider type (SMTP, push notification, SMS, etc.)." } ], "components": { @@ -9265,12 +9091,12 @@ }, "userName": { "type": "string", - "description": "User name.", + "description": "User name. Hide this attribute by toggling membership privacy in the Console.", "x-example": "John Doe" }, "userEmail": { "type": "string", - "description": "User email address.", + "description": "User email address. Hide this attribute by toggling membership privacy in the Console.", "x-example": "john@appwrite.io" }, "teamId": { @@ -9300,7 +9126,7 @@ }, "mfa": { "type": "boolean", - "description": "Multi factor authentication status, true if the user has MFA enabled or false otherwise.", + "description": "Multi factor authentication status, true if the user has MFA enabled or false otherwise. Hide this attribute by toggling membership privacy in the Console.", "x-example": false }, "roles": { @@ -9405,7 +9231,7 @@ "responseBody": { "type": "string", "description": "HTTP response body. This will return empty unless execution is created as synchronous.", - "x-example": "Developers are awesome." + "x-example": "" }, "responseHeaders": { "type": "array", @@ -9825,7 +9651,7 @@ "name": { "type": "string", "description": "Target Name.", - "x-example": "Aegon apple token" + "x-example": "Apple iPhone 12" }, "userId": { "type": "string", @@ -9847,6 +9673,11 @@ "type": "string", "description": "The target identifier.", "x-example": "token" + }, + "expired": { + "type": "boolean", + "description": "Is the target expired.", + "x-example": false } }, "required": [ @@ -9856,7 +9687,8 @@ "name", "userId", "providerType", - "identifier" + "identifier", + "expired" ] } }, diff --git a/app/config/specs/open-api3-1.6.x-console.json b/app/config/specs/open-api3-1.6.x-console.json index 07749889d8f..16ac0ee040c 100644 --- a/app/config/specs/open-api3-1.6.x-console.json +++ b/app/config/specs/open-api3-1.6.x-console.json @@ -1,7 +1,7 @@ { "openapi": "3.0.0", "info": { - "version": "1.6.0", + "version": "1.6.2", "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", @@ -18,6 +18,9 @@ "servers": [ { "url": "https:\/\/cloud.appwrite.io\/v1" + }, + { + "url": "https:\/\/.cloud.appwrite.io\/v1" } ], "paths": { @@ -43,7 +46,8 @@ }, "x-appwrite": { "method": "get", - "weight": 8, + "group": "account", + "weight": 9, "cookies": false, "type": "", "deprecated": false, @@ -58,9 +62,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -93,7 +94,8 @@ }, "x-appwrite": { "method": "create", - "weight": 7, + "group": "account", + "weight": 8, "cookies": false, "type": "", "deprecated": false, @@ -108,9 +110,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -171,7 +170,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 9, + "group": "account", + "weight": 10, "cookies": false, "type": "", "deprecated": false, @@ -185,9 +185,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -221,7 +218,8 @@ }, "x-appwrite": { "method": "updateEmail", - "weight": 33, + "group": "account", + "weight": 34, "cookies": false, "type": "", "deprecated": false, @@ -236,9 +234,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -278,7 +273,7 @@ }, "\/account\/identities": { "get": { - "summary": "List Identities", + "summary": "List identities", "operationId": "accountListIdentities", "tags": [ "account" @@ -298,7 +293,8 @@ }, "x-appwrite": { "method": "listIdentities", - "weight": 56, + "group": "identities", + "weight": 57, "cookies": false, "type": "", "deprecated": false, @@ -313,9 +309,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/identities", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -358,7 +351,8 @@ }, "x-appwrite": { "method": "deleteIdentity", - "weight": 57, + "group": "identities", + "weight": 58, "cookies": false, "type": "", "deprecated": false, @@ -373,9 +367,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -422,7 +413,8 @@ }, "x-appwrite": { "method": "createJWT", - "weight": 28, + "group": "tokens", + "weight": 29, "cookies": false, "type": "", "deprecated": false, @@ -437,9 +429,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -473,7 +462,8 @@ }, "x-appwrite": { "method": "listLogs", - "weight": 30, + "group": "logs", + "weight": 31, "cookies": false, "type": "", "deprecated": false, @@ -488,9 +478,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -540,7 +527,8 @@ }, "x-appwrite": { "method": "updateMFA", - "weight": 43, + "group": "mfa", + "weight": 44, "cookies": false, "type": "", "deprecated": false, @@ -555,9 +543,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -591,7 +576,7 @@ }, "\/account\/mfa\/authenticators\/{type}": { "post": { - "summary": "Create Authenticator", + "summary": "Create authenticator", "operationId": "accountCreateMfaAuthenticator", "tags": [ "account" @@ -611,7 +596,8 @@ }, "x-appwrite": { "method": "createMfaAuthenticator", - "weight": 45, + "group": "mfa", + "weight": 46, "cookies": false, "type": "", "deprecated": false, @@ -626,9 +612,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -658,7 +641,7 @@ ] }, "put": { - "summary": "Verify Authenticator", + "summary": "Update authenticator (confirmation)", "operationId": "accountUpdateMfaAuthenticator", "tags": [ "account" @@ -678,7 +661,8 @@ }, "x-appwrite": { "method": "updateMfaAuthenticator", - "weight": 46, + "group": "mfa", + "weight": 47, "cookies": false, "type": "", "deprecated": false, @@ -693,9 +677,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -744,7 +725,7 @@ } }, "delete": { - "summary": "Delete Authenticator", + "summary": "Delete authenticator", "operationId": "accountDeleteMfaAuthenticator", "tags": [ "account" @@ -757,7 +738,8 @@ }, "x-appwrite": { "method": "deleteMfaAuthenticator", - "weight": 50, + "group": "mfa", + "weight": 51, "cookies": false, "type": "", "deprecated": false, @@ -772,9 +754,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -806,7 +785,7 @@ }, "\/account\/mfa\/challenge": { "post": { - "summary": "Create MFA Challenge", + "summary": "Create MFA challenge", "operationId": "accountCreateMfaChallenge", "tags": [ "account" @@ -826,7 +805,8 @@ }, "x-appwrite": { "method": "createMfaChallenge", - "weight": 51, + "group": "mfa", + "weight": 52, "cookies": false, "type": "", "deprecated": false, @@ -841,9 +821,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -882,17 +859,17 @@ } }, "put": { - "summary": "Create MFA Challenge (confirmation)", + "summary": "Update MFA challenge (confirmation)", "operationId": "accountUpdateMfaChallenge", "tags": [ "account" ], "description": "Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", "responses": { - "204": { - "description": "No content", + "200": { + "description": "Session", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/session" } @@ -902,7 +879,8 @@ }, "x-appwrite": { "method": "updateMfaChallenge", - "weight": 52, + "group": "mfa", + "weight": 53, "cookies": false, "type": "", "deprecated": false, @@ -917,9 +895,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -959,7 +934,7 @@ }, "\/account\/mfa\/factors": { "get": { - "summary": "List Factors", + "summary": "List factors", "operationId": "accountListMfaFactors", "tags": [ "account" @@ -979,7 +954,8 @@ }, "x-appwrite": { "method": "listMfaFactors", - "weight": 44, + "group": "mfa", + "weight": 45, "cookies": false, "type": "", "deprecated": false, @@ -994,9 +970,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1011,7 +984,7 @@ }, "\/account\/mfa\/recovery-codes": { "get": { - "summary": "Get MFA Recovery Codes", + "summary": "List MFA recovery codes", "operationId": "accountGetMfaRecoveryCodes", "tags": [ "account" @@ -1031,7 +1004,8 @@ }, "x-appwrite": { "method": "getMfaRecoveryCodes", - "weight": 49, + "group": "mfa", + "weight": 50, "cookies": false, "type": "", "deprecated": false, @@ -1046,9 +1020,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1061,7 +1032,7 @@ ] }, "post": { - "summary": "Create MFA Recovery Codes", + "summary": "Create MFA recovery codes", "operationId": "accountCreateMfaRecoveryCodes", "tags": [ "account" @@ -1081,7 +1052,8 @@ }, "x-appwrite": { "method": "createMfaRecoveryCodes", - "weight": 47, + "group": "mfa", + "weight": 48, "cookies": false, "type": "", "deprecated": false, @@ -1096,9 +1068,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1111,7 +1080,7 @@ ] }, "patch": { - "summary": "Regenerate MFA Recovery Codes", + "summary": "Update MFA recovery codes (regenerate)", "operationId": "accountUpdateMfaRecoveryCodes", "tags": [ "account" @@ -1131,7 +1100,8 @@ }, "x-appwrite": { "method": "updateMfaRecoveryCodes", - "weight": 48, + "group": "mfa", + "weight": 49, "cookies": false, "type": "", "deprecated": false, @@ -1146,9 +1116,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1183,7 +1150,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 31, + "group": "account", + "weight": 32, "cookies": false, "type": "", "deprecated": false, @@ -1198,9 +1166,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1254,7 +1219,8 @@ }, "x-appwrite": { "method": "updatePassword", - "weight": 32, + "group": "account", + "weight": 33, "cookies": false, "type": "", "deprecated": false, @@ -1269,9 +1235,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1330,7 +1293,8 @@ }, "x-appwrite": { "method": "updatePhone", - "weight": 34, + "group": "account", + "weight": 35, "cookies": false, "type": "", "deprecated": false, @@ -1345,9 +1309,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1407,7 +1368,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 29, + "group": "account", + "weight": 30, "cookies": false, "type": "", "deprecated": false, @@ -1422,9 +1384,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/prefs", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1457,7 +1416,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 35, + "group": "account", + "weight": 36, "cookies": false, "type": "", "deprecated": false, @@ -1472,9 +1432,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/prefs", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1528,7 +1485,8 @@ }, "x-appwrite": { "method": "createRecovery", - "weight": 37, + "group": "recovery", + "weight": 38, "cookies": false, "type": "", "deprecated": false, @@ -1546,9 +1504,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1586,7 +1541,7 @@ } }, "put": { - "summary": "Create password recovery (confirmation)", + "summary": "Update password recovery (confirmation)", "operationId": "accountUpdateRecovery", "tags": [ "account" @@ -1606,7 +1561,8 @@ }, "x-appwrite": { "method": "updateRecovery", - "weight": 38, + "group": "recovery", + "weight": 39, "cookies": false, "type": "", "deprecated": false, @@ -1621,9 +1577,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1689,7 +1642,8 @@ }, "x-appwrite": { "method": "listSessions", - "weight": 10, + "group": "sessions", + "weight": 11, "cookies": false, "type": "", "deprecated": false, @@ -1704,9 +1658,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/sessions", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1732,7 +1683,8 @@ }, "x-appwrite": { "method": "deleteSessions", - "weight": 11, + "group": "sessions", + "weight": 12, "cookies": false, "type": "", "deprecated": false, @@ -1747,9 +1699,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1784,7 +1733,8 @@ }, "x-appwrite": { "method": "createAnonymousSession", - "weight": 16, + "group": "sessions", + "weight": 17, "cookies": false, "type": "", "deprecated": false, @@ -1799,9 +1749,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1835,7 +1782,8 @@ }, "x-appwrite": { "method": "createEmailPasswordSession", - "weight": 15, + "group": "sessions", + "weight": 16, "cookies": false, "type": "", "deprecated": false, @@ -1850,9 +1798,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1911,7 +1856,8 @@ }, "x-appwrite": { "method": "updateMagicURLSession", - "weight": 25, + "group": "sessions", + "weight": 26, "cookies": false, "type": "", "deprecated": true, @@ -1926,9 +1872,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1980,7 +1923,8 @@ }, "x-appwrite": { "method": "createOAuth2Session", - "weight": 18, + "group": "sessions", + "weight": 19, "cookies": false, "type": "webAuth", "deprecated": false, @@ -1995,9 +1939,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2010,7 +1951,7 @@ "parameters": [ { "name": "provider", - "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", + "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", "required": true, "schema": { "type": "string", @@ -2030,6 +1971,7 @@ "dropbox", "etsy", "facebook", + "figma", "github", "gitlab", "google", @@ -2123,7 +2065,8 @@ }, "x-appwrite": { "method": "updatePhoneSession", - "weight": 26, + "group": "sessions", + "weight": 27, "cookies": false, "type": "", "deprecated": true, @@ -2138,9 +2081,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2199,7 +2139,8 @@ }, "x-appwrite": { "method": "createSession", - "weight": 17, + "group": "sessions", + "weight": 18, "cookies": false, "type": "", "deprecated": false, @@ -2214,9 +2155,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2275,7 +2213,8 @@ }, "x-appwrite": { "method": "getSession", - "weight": 12, + "group": "sessions", + "weight": 13, "cookies": false, "type": "", "deprecated": false, @@ -2290,9 +2229,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/sessions", - "offline-key": "{sessionId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2337,7 +2273,8 @@ }, "x-appwrite": { "method": "updateSession", - "weight": 14, + "group": "sessions", + "weight": 15, "cookies": false, "type": "", "deprecated": false, @@ -2352,9 +2289,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2392,7 +2326,8 @@ }, "x-appwrite": { "method": "deleteSession", - "weight": 13, + "group": "sessions", + "weight": 14, "cookies": false, "type": "", "deprecated": false, @@ -2407,9 +2342,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2456,7 +2388,8 @@ }, "x-appwrite": { "method": "updateStatus", - "weight": 36, + "group": "account", + "weight": 37, "cookies": false, "type": "", "deprecated": false, @@ -2471,9 +2404,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2493,7 +2423,7 @@ "tags": [ "account" ], - "description": "", + "description": "Use this endpoint to register a device for push notifications. Provide a target ID (custom or generated using ID.unique()), a device identifier (usually a device token), and optionally specify which provider should send notifications to this target. The target is automatically linked to the current session and includes device information like brand and model.", "responses": { "201": { "description": "Target", @@ -2508,12 +2438,13 @@ }, "x-appwrite": { "method": "createPushTarget", - "weight": 53, + "group": "pushTargets", + "weight": 54, "cookies": false, "type": "", "deprecated": false, "demo": "account\/create-push-target.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-push-target.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -2522,9 +2453,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2573,7 +2501,7 @@ "tags": [ "account" ], - "description": "", + "description": "Update the currently logged in user's push notification target. You can modify the target's identifier (device token) and provider ID (token, email, phone etc.). The target must exist and belong to the current user. If you change the provider ID, notifications will be sent through the new messaging provider instead.", "responses": { "200": { "description": "Target", @@ -2588,12 +2516,13 @@ }, "x-appwrite": { "method": "updatePushTarget", - "weight": 54, + "group": "pushTargets", + "weight": 55, "cookies": false, "type": "", "deprecated": false, "demo": "account\/update-push-target.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-push-target.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -2602,9 +2531,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2652,27 +2578,21 @@ "tags": [ "account" ], - "description": "", + "description": "Delete a push notification target for the currently logged in user. After deletion, the device will no longer receive push notifications. The target must exist and belong to the current user.", "responses": { "204": { - "description": "No content", - "content": { - "application\/json": { - "schema": { - "$ref": "#\/components\/schemas\/target" - } - } - } + "description": "No content" } }, "x-appwrite": { "method": "deletePushTarget", - "weight": 55, + "group": "pushTargets", + "weight": 56, "cookies": false, "type": "", "deprecated": false, "demo": "account\/delete-push-target.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/delete-push-target.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -2681,9 +2601,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2729,7 +2646,8 @@ }, "x-appwrite": { "method": "createEmailToken", - "weight": 24, + "group": "tokens", + "weight": 25, "cookies": false, "type": "", "deprecated": false, @@ -2737,16 +2655,16 @@ "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-email.md", "rate-limit": 10, "rate-time": 3600, - "rate-key": "url:{url},email:{param-email}", + "rate-key": [ + "url:{url},email:{param-email}", + "url:{url},ip:{ip}" + ], "scope": "sessions.write", "platforms": [ "server", "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2795,7 +2713,7 @@ "tags": [ "account" ], - "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. 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 [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) 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.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", + "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. 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 [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) endpoint to complete the login process. The link sent to the user's email address is valid for 1 hour.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", "responses": { "201": { "description": "Token", @@ -2810,7 +2728,8 @@ }, "x-appwrite": { "method": "createMagicURLToken", - "weight": 23, + "group": "tokens", + "weight": 24, "cookies": false, "type": "", "deprecated": false, @@ -2828,9 +2747,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2892,7 +2808,8 @@ }, "x-appwrite": { "method": "createOAuth2Token", - "weight": 22, + "group": "tokens", + "weight": 23, "cookies": false, "type": "webAuth", "deprecated": false, @@ -2907,9 +2824,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2922,7 +2836,7 @@ "parameters": [ { "name": "provider", - "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", + "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", "required": true, "schema": { "type": "string", @@ -2942,6 +2856,7 @@ "dropbox", "etsy", "facebook", + "figma", "github", "gitlab", "google", @@ -3035,7 +2950,8 @@ }, "x-appwrite": { "method": "createPhoneToken", - "weight": 27, + "group": "tokens", + "weight": 28, "cookies": false, "type": "", "deprecated": false, @@ -3053,9 +2969,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3114,7 +3027,8 @@ }, "x-appwrite": { "method": "createVerification", - "weight": 39, + "group": "verification", + "weight": 40, "cookies": false, "type": "", "deprecated": false, @@ -3129,9 +3043,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3163,7 +3074,7 @@ } }, "put": { - "summary": "Create email verification (confirmation)", + "summary": "Update email verification (confirmation)", "operationId": "accountUpdateVerification", "tags": [ "account" @@ -3183,7 +3094,8 @@ }, "x-appwrite": { "method": "updateVerification", - "weight": 40, + "group": "verification", + "weight": 41, "cookies": false, "type": "", "deprecated": false, @@ -3198,9 +3110,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3260,7 +3169,8 @@ }, "x-appwrite": { "method": "createPhoneVerification", - "weight": 41, + "group": "verification", + "weight": 42, "cookies": false, "type": "", "deprecated": false, @@ -3278,9 +3188,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3313,7 +3220,8 @@ }, "x-appwrite": { "method": "updatePhoneVerification", - "weight": 42, + "group": "verification", + "weight": 43, "cookies": false, "type": "", "deprecated": false, @@ -3328,9 +3236,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3383,7 +3288,8 @@ }, "x-appwrite": { "method": "getBrowser", - "weight": 59, + "group": null, + "weight": 60, "cookies": false, "type": "location", "deprecated": false, @@ -3399,9 +3305,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3511,7 +3414,8 @@ }, "x-appwrite": { "method": "getCreditCard", - "weight": 58, + "group": null, + "weight": 59, "cookies": false, "type": "location", "deprecated": false, @@ -3527,9 +3431,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3544,7 +3445,7 @@ "parameters": [ { "name": "code", - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro.", + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", "required": true, "schema": { "type": "string", @@ -3565,7 +3466,8 @@ "union-china-pay", "visa", "mir", - "maestro" + "maestro", + "rupay" ], "x-enum-name": "CreditCard", "x-enum-keys": [ @@ -3584,7 +3486,8 @@ "Union China Pay", "Visa", "MIR", - "Maestro" + "Maestro", + "Rupay" ] }, "in": "path" @@ -3643,7 +3546,8 @@ }, "x-appwrite": { "method": "getFavicon", - "weight": 62, + "group": null, + "weight": 63, "cookies": false, "type": "location", "deprecated": false, @@ -3659,9 +3563,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3703,7 +3604,8 @@ }, "x-appwrite": { "method": "getFlag", - "weight": 60, + "group": null, + "weight": 61, "cookies": false, "type": "location", "deprecated": false, @@ -3719,9 +3621,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4193,7 +4092,8 @@ }, "x-appwrite": { "method": "getImage", - "weight": 61, + "group": null, + "weight": 62, "cookies": false, "type": "location", "deprecated": false, @@ -4209,9 +4109,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4277,7 +4174,8 @@ }, "x-appwrite": { "method": "getInitials", - "weight": 64, + "group": null, + "weight": 65, "cookies": false, "type": "location", "deprecated": false, @@ -4293,9 +4191,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4371,7 +4266,8 @@ }, "x-appwrite": { "method": "getQR", - "weight": 63, + "group": null, + "weight": 64, "cookies": false, "type": "location", "deprecated": false, @@ -4387,9 +4283,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4452,12 +4345,12 @@ }, "\/console\/assistant": { "post": { - "summary": "Ask Query", + "summary": "Create assistant query", "operationId": "assistantChat", "tags": [ "assistant" ], - "description": "", + "description": "Send a prompt to the AI assistant and receive a response. This endpoint allows you to interact with Appwrite's AI assistant by sending questions or prompts and receiving helpful responses in real-time through a server-sent events stream. ", "responses": { "200": { "description": "File" @@ -4465,7 +4358,8 @@ }, "x-appwrite": { "method": "chat", - "weight": 331, + "group": "console", + "weight": 335, "cookies": false, "type": "", "deprecated": false, @@ -4479,9 +4373,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4534,7 +4425,8 @@ }, "x-appwrite": { "method": "variables", - "weight": 330, + "group": "console", + "weight": 334, "cookies": false, "type": "", "deprecated": false, @@ -4548,9 +4440,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4584,7 +4473,8 @@ }, "x-appwrite": { "method": "list", - "weight": 69, + "group": "databases", + "weight": 70, "cookies": false, "type": "", "deprecated": false, @@ -4598,9 +4488,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4659,7 +4546,8 @@ }, "x-appwrite": { "method": "create", - "weight": 68, + "group": "databases", + "weight": 69, "cookies": false, "type": "", "deprecated": false, @@ -4673,9 +4561,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4725,7 +4610,7 @@ "tags": [ "databases" ], - "description": "", + "description": "Get usage metrics and statistics for all databases in the project. You can view the total number of databases, collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", "responses": { "200": { "description": "UsageDatabases", @@ -4740,12 +4625,13 @@ }, "x-appwrite": { "method": "getUsage", - "weight": 113, + "group": null, + "weight": 117, "cookies": false, "type": "", "deprecated": false, "demo": "databases\/get-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -4754,9 +4640,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4814,7 +4697,8 @@ }, "x-appwrite": { "method": "get", - "weight": 70, + "group": "databases", + "weight": 71, "cookies": false, "type": "", "deprecated": false, @@ -4828,9 +4712,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4875,7 +4756,8 @@ }, "x-appwrite": { "method": "update", - "weight": 72, + "group": "databases", + "weight": 73, "cookies": false, "type": "", "deprecated": false, @@ -4889,9 +4771,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4953,7 +4832,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 73, + "group": "databases", + "weight": 74, "cookies": false, "type": "", "deprecated": false, @@ -4967,9 +4847,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5016,7 +4893,8 @@ }, "x-appwrite": { "method": "listCollections", - "weight": 75, + "group": "collections", + "weight": 76, "cookies": false, "type": "", "deprecated": false, @@ -5030,9 +4908,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5101,7 +4976,8 @@ }, "x-appwrite": { "method": "createCollection", - "weight": 74, + "group": "collections", + "weight": 75, "cookies": false, "type": "", "deprecated": false, @@ -5115,9 +4991,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5207,7 +5080,8 @@ }, "x-appwrite": { "method": "getCollection", - "weight": 76, + "group": "collections", + "weight": 77, "cookies": false, "type": "", "deprecated": false, @@ -5221,9 +5095,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5278,7 +5149,8 @@ }, "x-appwrite": { "method": "updateCollection", - "weight": 78, + "group": "collections", + "weight": 79, "cookies": false, "type": "", "deprecated": false, @@ -5292,9 +5164,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5379,7 +5248,8 @@ }, "x-appwrite": { "method": "deleteCollection", - "weight": 79, + "group": "collections", + "weight": 80, "cookies": false, "type": "", "deprecated": false, @@ -5393,9 +5263,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5452,7 +5319,8 @@ }, "x-appwrite": { "method": "listAttributes", - "weight": 90, + "group": "attributes", + "weight": 91, "cookies": false, "type": "", "deprecated": false, @@ -5466,9 +5334,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5538,7 +5403,8 @@ }, "x-appwrite": { "method": "createBooleanAttribute", - "weight": 87, + "group": "attributes", + "weight": 88, "cookies": false, "type": "", "deprecated": false, @@ -5552,9 +5418,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5636,7 +5499,7 @@ "200": { "description": "AttributeBoolean", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeBoolean" } @@ -5646,7 +5509,8 @@ }, "x-appwrite": { "method": "updateBooleanAttribute", - "weight": 99, + "group": "attributes", + "weight": 100, "cookies": false, "type": "", "deprecated": false, @@ -5660,9 +5524,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5759,7 +5620,8 @@ }, "x-appwrite": { "method": "createDatetimeAttribute", - "weight": 88, + "group": "attributes", + "weight": 89, "cookies": false, "type": "", "deprecated": false, @@ -5773,9 +5635,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5857,7 +5716,7 @@ "200": { "description": "AttributeDatetime", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeDatetime" } @@ -5867,7 +5726,8 @@ }, "x-appwrite": { "method": "updateDatetimeAttribute", - "weight": 100, + "group": "attributes", + "weight": 101, "cookies": false, "type": "", "deprecated": false, @@ -5881,9 +5741,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5980,7 +5837,8 @@ }, "x-appwrite": { "method": "createEmailAttribute", - "weight": 81, + "group": "attributes", + "weight": 82, "cookies": false, "type": "", "deprecated": false, @@ -5994,9 +5852,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6078,7 +5933,7 @@ "200": { "description": "AttributeEmail", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeEmail" } @@ -6088,7 +5943,8 @@ }, "x-appwrite": { "method": "updateEmailAttribute", - "weight": 93, + "group": "attributes", + "weight": 94, "cookies": false, "type": "", "deprecated": false, @@ -6102,9 +5958,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6201,7 +6054,8 @@ }, "x-appwrite": { "method": "createEnumAttribute", - "weight": 82, + "group": "attributes", + "weight": 83, "cookies": false, "type": "", "deprecated": false, @@ -6215,9 +6069,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6308,7 +6159,7 @@ "200": { "description": "AttributeEnum", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeEnum" } @@ -6318,7 +6169,8 @@ }, "x-appwrite": { "method": "updateEnumAttribute", - "weight": 94, + "group": "attributes", + "weight": 95, "cookies": false, "type": "", "deprecated": false, @@ -6332,9 +6184,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6440,7 +6289,8 @@ }, "x-appwrite": { "method": "createFloatAttribute", - "weight": 86, + "group": "attributes", + "weight": 87, "cookies": false, "type": "", "deprecated": false, @@ -6454,9 +6304,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6548,7 +6395,7 @@ "200": { "description": "AttributeFloat", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeFloat" } @@ -6558,7 +6405,8 @@ }, "x-appwrite": { "method": "updateFloatAttribute", - "weight": 98, + "group": "attributes", + "weight": 99, "cookies": false, "type": "", "deprecated": false, @@ -6572,9 +6420,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6651,8 +6496,6 @@ }, "required": [ "required", - "min", - "max", "default" ] } @@ -6683,7 +6526,8 @@ }, "x-appwrite": { "method": "createIntegerAttribute", - "weight": 85, + "group": "attributes", + "weight": 86, "cookies": false, "type": "", "deprecated": false, @@ -6697,9 +6541,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6791,7 +6632,7 @@ "200": { "description": "AttributeInteger", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeInteger" } @@ -6801,7 +6642,8 @@ }, "x-appwrite": { "method": "updateIntegerAttribute", - "weight": 97, + "group": "attributes", + "weight": 98, "cookies": false, "type": "", "deprecated": false, @@ -6815,9 +6657,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6894,8 +6733,6 @@ }, "required": [ "required", - "min", - "max", "default" ] } @@ -6926,7 +6763,8 @@ }, "x-appwrite": { "method": "createIpAttribute", - "weight": 83, + "group": "attributes", + "weight": 84, "cookies": false, "type": "", "deprecated": false, @@ -6940,9 +6778,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7024,7 +6859,7 @@ "200": { "description": "AttributeIP", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeIp" } @@ -7034,7 +6869,8 @@ }, "x-appwrite": { "method": "updateIpAttribute", - "weight": 95, + "group": "attributes", + "weight": 96, "cookies": false, "type": "", "deprecated": false, @@ -7048,9 +6884,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7147,7 +6980,8 @@ }, "x-appwrite": { "method": "createRelationshipAttribute", - "weight": 89, + "group": "attributes", + "weight": 90, "cookies": false, "type": "", "deprecated": false, @@ -7161,9 +6995,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7280,7 +7111,8 @@ }, "x-appwrite": { "method": "createStringAttribute", - "weight": 80, + "group": "attributes", + "weight": 81, "cookies": false, "type": "", "deprecated": false, @@ -7294,9 +7126,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7389,7 +7218,7 @@ "200": { "description": "AttributeString", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeString" } @@ -7399,7 +7228,8 @@ }, "x-appwrite": { "method": "updateStringAttribute", - "weight": 92, + "group": "attributes", + "weight": 93, "cookies": false, "type": "", "deprecated": false, @@ -7413,9 +7243,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7477,7 +7304,7 @@ "size": { "type": "integer", "description": "Maximum size of the string attribute.", - "x-example": null + "x-example": 1 }, "newKey": { "type": "string", @@ -7517,7 +7344,8 @@ }, "x-appwrite": { "method": "createUrlAttribute", - "weight": 84, + "group": "attributes", + "weight": 85, "cookies": false, "type": "", "deprecated": false, @@ -7531,9 +7359,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7615,7 +7440,7 @@ "200": { "description": "AttributeURL", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeUrl" } @@ -7625,7 +7450,8 @@ }, "x-appwrite": { "method": "updateUrlAttribute", - "weight": 96, + "group": "attributes", + "weight": 97, "cookies": false, "type": "", "deprecated": false, @@ -7639,9 +7465,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7769,7 +7592,8 @@ }, "x-appwrite": { "method": "getAttribute", - "weight": 91, + "group": "attributes", + "weight": 92, "cookies": false, "type": "", "deprecated": false, @@ -7783,9 +7607,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7842,7 +7663,8 @@ }, "x-appwrite": { "method": "deleteAttribute", - "weight": 102, + "group": "attributes", + "weight": 103, "cookies": false, "type": "", "deprecated": false, @@ -7856,9 +7678,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7914,7 +7733,7 @@ "200": { "description": "AttributeRelationship", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeRelationship" } @@ -7924,7 +7743,8 @@ }, "x-appwrite": { "method": "updateRelationshipAttribute", - "weight": 101, + "group": "attributes", + "weight": 102, "cookies": false, "type": "", "deprecated": false, @@ -7938,9 +7758,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8034,7 +7851,8 @@ }, "x-appwrite": { "method": "listDocuments", - "weight": 108, + "group": "documents", + "weight": 109, "cookies": false, "type": "", "deprecated": false, @@ -8050,9 +7868,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8121,7 +7936,8 @@ }, "x-appwrite": { "method": "createDocument", - "weight": 107, + "group": "documents", + "weight": 108, "cookies": false, "type": "", "deprecated": false, @@ -8137,118 +7953,411 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", - "auth": { - "Project": [] - } - }, - "security": [ - { - "Project": [], - "Key": [], - "JWT": [] - } - ], - "parameters": [ - { - "name": "databaseId", - "description": "Database ID.", - "required": true, - "schema": { - "type": "string", - "x-example": "" - }, - "in": "path" - }, - { - "name": "collectionId", - "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection). Make sure to define attributes before creating documents.", - "required": true, - "schema": { - "type": "string", - "x-example": "" - }, - "in": "path" - } - ], - "requestBody": { - "content": { - "application\/json": { - "schema": { - "type": "object", - "properties": { - "documentId": { - "type": "string", - "description": "Document ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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": "" - }, - "data": { - "type": "object", - "description": "Document data as JSON object.", - "x-example": "{}" - }, - "permissions": { - "type": "array", - "description": "An array of permissions strings. By default, only the current user is granted all permissions. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).", - "x-example": "[\"read(\"any\")\"]", - "items": { - "type": "string" - } - } - }, - "required": [ - "documentId", - "data" - ] - } - } - } - } - } - }, - "\/databases\/{databaseId}\/collections\/{collectionId}\/documents\/{documentId}": { - "get": { - "summary": "Get document", - "operationId": "databasesGetDocument", - "tags": [ - "databases" - ], - "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" + "methods": [ + { + "name": "createDocument", + "parameters": [ + "databaseId", + "collectionId", + "documentId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "collectionId", + "documentId", + "data" + ], + "responses": [ + { + "code": 201, + "model": "#\/components\/schemas\/document" } - } + ], + "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." } - } - }, - "x-appwrite": { - "method": "getDocument", - "weight": 109, - "cookies": false, - "type": "", - "deprecated": false, - "demo": "databases\/get-document.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-document.md", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "documents.read", - "platforms": [ - "client", - "server", - "server" ], - "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [], + "JWT": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection). Make sure to define attributes before creating documents.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "documentId": { + "type": "string", + "description": "Document ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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": "" + }, + "data": { + "type": "object", + "description": "Document data as JSON object.", + "x-example": "{}" + }, + "permissions": { + "type": "array", + "description": "An array of permissions strings. By default, only the current user is granted all permissions. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).", + "x-example": "[\"read(\"any\")\"]", + "items": { + "type": "string" + } + }, + "documents": { + "type": "array", + "description": "Array of documents data as JSON objects.", + "x-example": null, + "items": { + "type": "object" + } + } + } + } + } + } + } + }, + "put": { + "summary": "Create or update documents", + "operationId": "databasesUpsertDocuments", + "tags": [ + "databases" + ], + "description": "Create or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.\n", + "responses": { + "200": { + "description": "Documents List", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/documentList" + } + } + } + } + }, + "x-appwrite": { + "method": "upsertDocuments", + "group": "documents", + "weight": 114, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/upsert-documents.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-documents.md", + "rate-limit": 120, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "documents": { + "type": "array", + "description": "Array of document data as JSON objects. May contain partial documents.", + "x-example": null, + "items": { + "type": "object" + } + } + } + } + } + } + } + }, + "patch": { + "summary": "Update documents", + "operationId": "databasesUpdateDocuments", + "tags": [ + "databases" + ], + "description": "Update all documents that match your queries, if no queries are submitted then all documents are updated. You can pass only specific fields to be updated.", + "responses": { + "200": { + "description": "Documents List", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/documentList" + } + } + } + } + }, + "x-appwrite": { + "method": "updateDocuments", + "group": "documents", + "weight": 113, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/update-documents.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-documents.md", + "rate-limit": 120, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "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": "{}" + }, + "queries": { + "type": "array", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Maximum of 100 queries are allowed, each 4096 characters long.", + "x-example": null, + "items": { + "type": "string" + } + } + } + } + } + } + } + }, + "delete": { + "summary": "Delete documents", + "operationId": "databasesDeleteDocuments", + "tags": [ + "databases" + ], + "description": "Bulk delete documents using queries, if no queries are passed then all documents are deleted.", + "responses": { + "200": { + "description": "Documents List", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/documentList" + } + } + } + } + }, + "x-appwrite": { + "method": "deleteDocuments", + "group": "documents", + "weight": 116, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/delete-documents.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-documents.md", + "rate-limit": 60, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "queries": { + "type": "array", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Maximum of 100 queries are allowed, each 4096 characters long.", + "x-example": null, + "items": { + "type": "string" + } + } + } + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/documents\/{documentId}": { + "get": { + "summary": "Get document", + "operationId": "databasesGetDocument", + "tags": [ + "databases" + ], + "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", + "group": "documents", + "weight": 110, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/get-document.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/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": [] } @@ -8327,7 +8436,8 @@ }, "x-appwrite": { "method": "updateDocument", - "weight": 111, + "group": "documents", + "weight": 112, "cookies": false, "type": "", "deprecated": false, @@ -8343,9 +8453,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8428,7 +8535,8 @@ }, "x-appwrite": { "method": "deleteDocument", - "weight": 112, + "group": "documents", + "weight": 115, "cookies": false, "type": "", "deprecated": false, @@ -8444,9 +8552,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8514,7 +8619,8 @@ }, "x-appwrite": { "method": "listDocumentLogs", - "weight": 110, + "group": "logs", + "weight": 111, "cookies": false, "type": "", "deprecated": false, @@ -8528,9 +8634,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8609,7 +8712,8 @@ }, "x-appwrite": { "method": "listIndexes", - "weight": 104, + "group": "indexes", + "weight": 105, "cookies": false, "type": "", "deprecated": false, @@ -8623,9 +8727,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8693,7 +8794,8 @@ }, "x-appwrite": { "method": "createIndex", - "weight": 103, + "group": "collections", + "weight": 104, "cookies": false, "type": "", "deprecated": false, @@ -8707,9 +8809,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8815,7 +8914,8 @@ }, "x-appwrite": { "method": "getIndex", - "weight": 105, + "group": "indexes", + "weight": 106, "cookies": false, "type": "", "deprecated": false, @@ -8829,9 +8929,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8888,7 +8985,8 @@ }, "x-appwrite": { "method": "deleteIndex", - "weight": 106, + "group": "indexes", + "weight": 107, "cookies": false, "type": "", "deprecated": false, @@ -8902,9 +9000,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8970,7 +9065,8 @@ }, "x-appwrite": { "method": "listCollectionLogs", - "weight": 77, + "group": "collections", + "weight": 78, "cookies": false, "type": "", "deprecated": false, @@ -8984,9 +9080,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9040,7 +9133,7 @@ "tags": [ "databases" ], - "description": "", + "description": "Get usage metrics and statistics for a collection. Returning the total number of documents. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", "responses": { "200": { "description": "UsageCollection", @@ -9055,12 +9148,13 @@ }, "x-appwrite": { "method": "getCollectionUsage", - "weight": 115, + "group": null, + "weight": 119, "cookies": false, "type": "", "deprecated": false, "demo": "databases\/get-collection-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-collection-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9069,9 +9163,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9149,7 +9240,8 @@ }, "x-appwrite": { "method": "listLogs", - "weight": 71, + "group": "logs", + "weight": 72, "cookies": false, "type": "", "deprecated": false, @@ -9163,9 +9255,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9209,7 +9298,7 @@ "tags": [ "databases" ], - "description": "", + "description": "Get usage metrics and statistics for a database. You can view the total number of collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", "responses": { "200": { "description": "UsageDatabase", @@ -9224,12 +9313,13 @@ }, "x-appwrite": { "method": "getDatabaseUsage", - "weight": 114, + "group": null, + "weight": 118, "cookies": false, "type": "", "deprecated": false, "demo": "databases\/get-database-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-database-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9238,9 +9328,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9308,7 +9395,8 @@ }, "x-appwrite": { "method": "list", - "weight": 287, + "group": "functions", + "weight": 291, "cookies": false, "type": "", "deprecated": false, @@ -9322,9 +9410,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9383,7 +9468,8 @@ }, "x-appwrite": { "method": "create", - "weight": 286, + "group": "functions", + "weight": 290, "cookies": false, "type": "", "deprecated": false, @@ -9397,9 +9483,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9437,6 +9520,7 @@ "node-19.0", "node-20.0", "node-21.0", + "node-22", "php-8.0", "php-8.1", "php-8.2", @@ -9455,6 +9539,8 @@ "deno-1.24", "deno-1.35", "deno-1.40", + "deno-1.46", + "deno-2.0", "dart-2.15", "dart-2.16", "dart-2.17", @@ -9462,24 +9548,31 @@ "dart-3.0", "dart-3.1", "dart-3.3", - "dotnet-3.1", + "dart-3.5", "dotnet-6.0", "dotnet-7.0", + "dotnet-8.0", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", + "java-22", "swift-5.5", "swift-5.8", "swift-5.9", + "swift-5.10", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", + "kotlin-2.0", "cpp-17", "cpp-20", "bun-1.0", - "go-1.23" + "bun-1.1", + "go-1.23", + "static-1", + "flutter-3.24" ], "x-enum-name": null, "x-enum-keys": [] @@ -9622,7 +9715,8 @@ }, "x-appwrite": { "method": "listRuntimes", - "weight": 288, + "group": "runtimes", + "weight": 292, "cookies": false, "type": "", "deprecated": false, @@ -9636,9 +9730,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9673,7 +9764,8 @@ }, "x-appwrite": { "method": "listSpecifications", - "weight": 289, + "group": "runtimes", + "weight": 293, "cookies": false, "type": "", "deprecated": false, @@ -9688,9 +9780,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9725,7 +9814,8 @@ }, "x-appwrite": { "method": "listTemplates", - "weight": 312, + "group": "templates", + "weight": 316, "cookies": false, "type": "", "deprecated": false, @@ -9739,9 +9829,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9827,7 +9914,8 @@ }, "x-appwrite": { "method": "getTemplate", - "weight": 313, + "group": "templates", + "weight": 317, "cookies": false, "type": "", "deprecated": false, @@ -9841,9 +9929,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9874,7 +9959,7 @@ "tags": [ "functions" ], - "description": "", + "description": "Get usage metrics and statistics for a for all functions. View statistics including total functions, deployments, builds, executions, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days.", "responses": { "200": { "description": "UsageFunctions", @@ -9889,12 +9974,13 @@ }, "x-appwrite": { "method": "getUsage", - "weight": 292, + "group": null, + "weight": 296, "cookies": false, "type": "", "deprecated": false, "demo": "functions\/get-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/get-functions-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9903,9 +9989,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9963,7 +10046,8 @@ }, "x-appwrite": { "method": "get", - "weight": 290, + "group": "functions", + "weight": 294, "cookies": false, "type": "", "deprecated": false, @@ -9977,9 +10061,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10024,7 +10105,8 @@ }, "x-appwrite": { "method": "update", - "weight": 293, + "group": "functions", + "weight": 297, "cookies": false, "type": "", "deprecated": false, @@ -10038,9 +10120,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10085,6 +10164,7 @@ "node-19.0", "node-20.0", "node-21.0", + "node-22", "php-8.0", "php-8.1", "php-8.2", @@ -10103,6 +10183,8 @@ "deno-1.24", "deno-1.35", "deno-1.40", + "deno-1.46", + "deno-2.0", "dart-2.15", "dart-2.16", "dart-2.17", @@ -10110,24 +10192,31 @@ "dart-3.0", "dart-3.1", "dart-3.3", - "dotnet-3.1", + "dart-3.5", "dotnet-6.0", "dotnet-7.0", + "dotnet-8.0", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", + "java-22", "swift-5.5", "swift-5.8", "swift-5.9", + "swift-5.10", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", + "kotlin-2.0", "cpp-17", "cpp-20", "bun-1.0", - "go-1.23" + "bun-1.1", + "go-1.23", + "static-1", + "flutter-3.24" ], "x-enum-name": null, "x-enum-keys": [] @@ -10240,7 +10329,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 296, + "group": "functions", + "weight": 300, "cookies": false, "type": "", "deprecated": false, @@ -10254,9 +10344,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10303,7 +10390,8 @@ }, "x-appwrite": { "method": "listDeployments", - "weight": 298, + "group": "deployments", + "weight": 302, "cookies": false, "type": "", "deprecated": false, @@ -10317,9 +10405,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10388,7 +10473,8 @@ }, "x-appwrite": { "method": "createDeployment", - "weight": 297, + "group": "deployments", + "weight": 301, "cookies": false, "type": "upload", "deprecated": false, @@ -10402,9 +10488,6 @@ "server" ], "packaging": true, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10486,7 +10569,8 @@ }, "x-appwrite": { "method": "getDeployment", - "weight": 299, + "group": "deployments", + "weight": 303, "cookies": false, "type": "", "deprecated": false, @@ -10500,9 +10584,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10557,7 +10638,8 @@ }, "x-appwrite": { "method": "updateDeployment", - "weight": 295, + "group": "deployments", + "weight": 299, "cookies": false, "type": "", "deprecated": false, @@ -10571,9 +10653,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10621,7 +10700,8 @@ }, "x-appwrite": { "method": "deleteDeployment", - "weight": 300, + "group": "deployments", + "weight": 304, "cookies": false, "type": "", "deprecated": false, @@ -10635,9 +10715,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10674,12 +10751,12 @@ }, "\/functions\/{functionId}\/deployments\/{deploymentId}\/build": { "post": { - "summary": "Rebuild deployment", + "summary": "Create deployment build", "operationId": "functionsCreateBuild", "tags": [ "functions" ], - "description": "", + "description": "Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build.", "responses": { "204": { "description": "No content" @@ -10687,12 +10764,13 @@ }, "x-appwrite": { "method": "createBuild", - "weight": 301, + "group": "deployments", + "weight": 305, "cookies": false, "type": "", "deprecated": false, "demo": "functions\/create-build.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/create-build.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10701,9 +10779,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10759,7 +10834,7 @@ "tags": [ "functions" ], - "description": "", + "description": "Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn't started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status 'ready') or failed. The response includes the final build status and details.", "responses": { "200": { "description": "Build", @@ -10774,12 +10849,13 @@ }, "x-appwrite": { "method": "updateDeploymentBuild", - "weight": 302, + "group": "deployments", + "weight": 306, "cookies": false, "type": "", "deprecated": false, "demo": "functions\/update-deployment-build.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/update-deployment-build.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10788,9 +10864,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10827,7 +10900,7 @@ }, "\/functions\/{functionId}\/deployments\/{deploymentId}\/download": { "get": { - "summary": "Download deployment", + "summary": "Get deployment download", "operationId": "functionsGetDeploymentDownload", "tags": [ "functions" @@ -10840,7 +10913,8 @@ }, "x-appwrite": { "method": "getDeploymentDownload", - "weight": 294, + "group": "deployments", + "weight": 298, "cookies": false, "type": "location", "deprecated": false, @@ -10855,9 +10929,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10915,7 +10986,8 @@ }, "x-appwrite": { "method": "listExecutions", - "weight": 304, + "group": "executions", + "weight": 308, "cookies": false, "type": "", "deprecated": false, @@ -10931,9 +11003,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11003,7 +11072,8 @@ }, "x-appwrite": { "method": "createExecution", - "weight": 303, + "group": "executions", + "weight": 307, "cookies": false, "type": "", "deprecated": false, @@ -11019,9 +11089,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11054,7 +11121,7 @@ "body": { "type": "string", "description": "HTTP body of execution. Default value is empty string.", - "x-example": null + "x-example": "" }, "async": { "type": "boolean", @@ -11120,7 +11187,8 @@ }, "x-appwrite": { "method": "getExecution", - "weight": 305, + "group": "executions", + "weight": 309, "cookies": false, "type": "", "deprecated": false, @@ -11136,9 +11204,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11187,7 +11252,8 @@ }, "x-appwrite": { "method": "deleteExecution", - "weight": 306, + "group": "executions", + "weight": 310, "cookies": false, "type": "", "deprecated": false, @@ -11201,9 +11267,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11245,7 +11308,7 @@ "tags": [ "functions" ], - "description": "", + "description": "Get usage metrics and statistics for a for a specific function. View statistics including total deployments, builds, executions, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days.", "responses": { "200": { "description": "UsageFunction", @@ -11260,12 +11323,13 @@ }, "x-appwrite": { "method": "getFunctionUsage", - "weight": 291, + "group": null, + "weight": 295, "cookies": false, "type": "", "deprecated": false, "demo": "functions\/get-function-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/get-function-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11274,9 +11338,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11344,7 +11405,8 @@ }, "x-appwrite": { "method": "listVariables", - "weight": 308, + "group": "variables", + "weight": 312, "cookies": false, "type": "", "deprecated": false, @@ -11358,9 +11420,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11405,7 +11464,8 @@ }, "x-appwrite": { "method": "createVariable", - "weight": 307, + "group": "variables", + "weight": 311, "cookies": false, "type": "", "deprecated": false, @@ -11419,9 +11479,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11493,7 +11550,8 @@ }, "x-appwrite": { "method": "getVariable", - "weight": 309, + "group": "variables", + "weight": 313, "cookies": false, "type": "", "deprecated": false, @@ -11507,9 +11565,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11564,7 +11619,8 @@ }, "x-appwrite": { "method": "updateVariable", - "weight": 310, + "group": "variables", + "weight": 314, "cookies": false, "type": "", "deprecated": false, @@ -11578,9 +11634,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11652,7 +11705,8 @@ }, "x-appwrite": { "method": "deleteVariable", - "weight": 311, + "group": "variables", + "weight": 315, "cookies": false, "type": "", "deprecated": false, @@ -11666,9 +11720,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11725,7 +11776,8 @@ }, "x-appwrite": { "method": "query", - "weight": 329, + "group": "graphql", + "weight": 333, "cookies": false, "type": "graphql", "deprecated": false, @@ -11741,9 +11793,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11779,7 +11828,8 @@ }, "x-appwrite": { "method": "mutation", - "weight": 328, + "group": "graphql", + "weight": 332, "cookies": false, "type": "graphql", "deprecated": false, @@ -11795,9 +11845,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11833,7 +11880,8 @@ }, "x-appwrite": { "method": "get", - "weight": 124, + "group": "health", + "weight": 128, "cookies": false, "type": "", "deprecated": false, @@ -11847,9 +11895,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11884,7 +11929,8 @@ }, "x-appwrite": { "method": "getAntivirus", - "weight": 146, + "group": "health", + "weight": 149, "cookies": false, "type": "", "deprecated": false, @@ -11898,9 +11944,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11935,7 +11978,8 @@ }, "x-appwrite": { "method": "getCache", - "weight": 127, + "group": "health", + "weight": 131, "cookies": false, "type": "", "deprecated": false, @@ -11949,9 +11993,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11986,7 +12027,8 @@ }, "x-appwrite": { "method": "getCertificate", - "weight": 133, + "group": "health", + "weight": 136, "cookies": false, "type": "", "deprecated": false, @@ -12000,9 +12042,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12048,7 +12087,8 @@ }, "x-appwrite": { "method": "getDB", - "weight": 126, + "group": "health", + "weight": 130, "cookies": false, "type": "", "deprecated": false, @@ -12062,9 +12102,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12099,7 +12136,8 @@ }, "x-appwrite": { "method": "getPubSub", - "weight": 129, + "group": "health", + "weight": 132, "cookies": false, "type": "", "deprecated": false, @@ -12113,60 +12151,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", - "auth": { - "Project": [] - } - }, - "security": [ - { - "Project": [], - "Key": [] - } - ] - } - }, - "\/health\/queue": { - "get": { - "summary": "Get queue", - "operationId": "healthGetQueue", - "tags": [ - "health" - ], - "description": "Check the Appwrite queue messaging servers are up and connection is successful.", - "responses": { - "200": { - "description": "Health Status", - "content": { - "application\/json": { - "schema": { - "$ref": "#\/components\/schemas\/healthStatus" - } - } - } - } - }, - "x-appwrite": { - "method": "getQueue", - "weight": 128, - "cookies": false, - "type": "", - "deprecated": false, - "demo": "health\/get-queue.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue.md", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "health.read", - "platforms": [ - "server" - ], - "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12201,7 +12185,8 @@ }, "x-appwrite": { "method": "getQueueBuilds", - "weight": 135, + "group": "queue", + "weight": 138, "cookies": false, "type": "", "deprecated": false, @@ -12215,9 +12200,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12265,7 +12247,8 @@ }, "x-appwrite": { "method": "getQueueCertificates", - "weight": 134, + "group": "queue", + "weight": 137, "cookies": false, "type": "", "deprecated": false, @@ -12279,9 +12262,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12329,7 +12309,8 @@ }, "x-appwrite": { "method": "getQueueDatabases", - "weight": 136, + "group": "queue", + "weight": 139, "cookies": false, "type": "", "deprecated": false, @@ -12343,9 +12324,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12404,7 +12382,8 @@ }, "x-appwrite": { "method": "getQueueDeletes", - "weight": 137, + "group": "queue", + "weight": 140, "cookies": false, "type": "", "deprecated": false, @@ -12418,9 +12397,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12468,7 +12444,8 @@ }, "x-appwrite": { "method": "getFailedJobs", - "weight": 147, + "group": "queue", + "weight": 150, "cookies": false, "type": "", "deprecated": false, @@ -12482,9 +12459,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12509,8 +12483,8 @@ "v1-audits", "v1-mails", "v1-functions", - "v1-usage", - "v1-usage-dump", + "v1-stats-resources", + "v1-stats-usage", "v1-webhooks", "v1-certificates", "v1-builds", @@ -12558,7 +12532,8 @@ }, "x-appwrite": { "method": "getQueueFunctions", - "weight": 141, + "group": "queue", + "weight": 144, "cookies": false, "type": "", "deprecated": false, @@ -12572,9 +12547,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12622,7 +12594,8 @@ }, "x-appwrite": { "method": "getQueueLogs", - "weight": 132, + "group": "queue", + "weight": 135, "cookies": false, "type": "", "deprecated": false, @@ -12636,9 +12609,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12686,7 +12656,8 @@ }, "x-appwrite": { "method": "getQueueMails", - "weight": 138, + "group": "queue", + "weight": 141, "cookies": false, "type": "", "deprecated": false, @@ -12700,9 +12671,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12750,7 +12718,8 @@ }, "x-appwrite": { "method": "getQueueMessaging", - "weight": 139, + "group": "queue", + "weight": 142, "cookies": false, "type": "", "deprecated": false, @@ -12764,9 +12733,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12814,7 +12780,8 @@ }, "x-appwrite": { "method": "getQueueMigrations", - "weight": 140, + "group": "queue", + "weight": 143, "cookies": false, "type": "", "deprecated": false, @@ -12828,9 +12795,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12856,14 +12820,14 @@ ] } }, - "\/health\/queue\/usage": { + "\/health\/queue\/stats-resources": { "get": { - "summary": "Get usage queue", - "operationId": "healthGetQueueUsage", + "summary": "Get stats resources queue", + "operationId": "healthGetQueueStatsResources", "tags": [ "health" ], - "description": "Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.", + "description": "Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.", "responses": { "200": { "description": "Health Queue", @@ -12877,13 +12841,14 @@ } }, "x-appwrite": { - "method": "getQueueUsage", - "weight": 142, + "method": "getQueueStatsResources", + "group": "queue", + "weight": 145, "cookies": false, "type": "", "deprecated": false, - "demo": "health\/get-queue-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-usage.md", + "demo": "health\/get-queue-stats-resources.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-stats-resources.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12892,9 +12857,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12920,14 +12882,14 @@ ] } }, - "\/health\/queue\/usage-dump": { + "\/health\/queue\/stats-usage": { "get": { - "summary": "Get usage dump queue", - "operationId": "healthGetQueueUsageDump", + "summary": "Get stats usage queue", + "operationId": "healthGetQueueUsage", "tags": [ "health" ], - "description": "Get the number of projects containing metrics that are waiting to be processed in the Appwrite internal queue server.", + "description": "Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.", "responses": { "200": { "description": "Health Queue", @@ -12941,13 +12903,14 @@ } }, "x-appwrite": { - "method": "getQueueUsageDump", - "weight": 143, + "method": "getQueueUsage", + "group": "queue", + "weight": 146, "cookies": false, "type": "", "deprecated": false, - "demo": "health\/get-queue-usage-dump.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-usage-dump.md", + "demo": "health\/get-queue-usage.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-stats-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12956,9 +12919,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13006,7 +12966,8 @@ }, "x-appwrite": { "method": "getQueueWebhooks", - "weight": 131, + "group": "queue", + "weight": 134, "cookies": false, "type": "", "deprecated": false, @@ -13020,9 +12981,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13070,7 +13028,8 @@ }, "x-appwrite": { "method": "getStorage", - "weight": 145, + "group": "storage", + "weight": 148, "cookies": false, "type": "", "deprecated": false, @@ -13084,9 +13043,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13121,7 +13077,8 @@ }, "x-appwrite": { "method": "getStorageLocal", - "weight": 144, + "group": "storage", + "weight": 147, "cookies": false, "type": "", "deprecated": false, @@ -13135,9 +13092,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13172,7 +13126,8 @@ }, "x-appwrite": { "method": "getTime", - "weight": 130, + "group": "health", + "weight": 133, "cookies": false, "type": "", "deprecated": false, @@ -13186,9 +13141,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13223,7 +13175,8 @@ }, "x-appwrite": { "method": "get", - "weight": 116, + "group": null, + "weight": 120, "cookies": false, "type": "", "deprecated": false, @@ -13239,9 +13192,6 @@ "server" ], "packaging": false, - "offline-model": "\/localed", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13257,7 +13207,7 @@ }, "\/locale\/codes": { "get": { - "summary": "List Locale Codes", + "summary": "List locale codes", "operationId": "localeListCodes", "tags": [ "locale" @@ -13277,7 +13227,8 @@ }, "x-appwrite": { "method": "listCodes", - "weight": 117, + "group": null, + "weight": 121, "cookies": false, "type": "", "deprecated": false, @@ -13293,9 +13244,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/localeCode", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13331,7 +13279,8 @@ }, "x-appwrite": { "method": "listContinents", - "weight": 121, + "group": null, + "weight": 125, "cookies": false, "type": "", "deprecated": false, @@ -13347,9 +13296,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/continents", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -13385,7 +13331,8 @@ }, "x-appwrite": { "method": "listCountries", - "weight": 118, + "group": null, + "weight": 122, "cookies": false, "type": "", "deprecated": false, @@ -13401,9 +13348,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -13439,7 +13383,8 @@ }, "x-appwrite": { "method": "listCountriesEU", - "weight": 119, + "group": null, + "weight": 123, "cookies": false, "type": "", "deprecated": false, @@ -13455,9 +13400,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries\/eu", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -13493,7 +13435,8 @@ }, "x-appwrite": { "method": "listCountriesPhones", - "weight": 120, + "group": null, + "weight": 124, "cookies": false, "type": "", "deprecated": false, @@ -13509,9 +13452,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries\/phones", - "offline-key": "", - "offline-response-key": "countryCode", "auth": { "Project": [] } @@ -13547,7 +13487,8 @@ }, "x-appwrite": { "method": "listCurrencies", - "weight": 122, + "group": null, + "weight": 126, "cookies": false, "type": "", "deprecated": false, @@ -13563,9 +13504,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/currencies", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -13601,7 +13539,8 @@ }, "x-appwrite": { "method": "listLanguages", - "weight": 123, + "group": null, + "weight": 127, "cookies": false, "type": "", "deprecated": false, @@ -13617,9 +13556,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/languages", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -13655,7 +13591,8 @@ }, "x-appwrite": { "method": "listMessages", - "weight": 388, + "group": "messages", + "weight": 386, "cookies": false, "type": "", "deprecated": false, @@ -13670,9 +13607,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13733,7 +13667,8 @@ }, "x-appwrite": { "method": "createEmail", - "weight": 385, + "group": "messages", + "weight": 383, "cookies": false, "type": "", "deprecated": false, @@ -13748,9 +13683,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13864,7 +13796,7 @@ "tags": [ "messaging" ], - "description": "Update an email message by its unique ID.\n", + "description": "Update an email message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", "responses": { "200": { "description": "Message", @@ -13879,7 +13811,8 @@ }, "x-appwrite": { "method": "updateEmail", - "weight": 392, + "group": "messages", + "weight": 390, "cookies": false, "type": "", "deprecated": false, @@ -13894,9 +13827,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14027,7 +13957,8 @@ }, "x-appwrite": { "method": "createPush", - "weight": 387, + "group": "messages", + "weight": 385, "cookies": false, "type": "", "deprecated": false, @@ -14042,9 +13973,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14102,7 +14030,7 @@ }, "data": { "type": "object", - "description": "Additional Data for push notification.", + "description": "Additional key-value pair data for push notification.", "x-example": "{}" }, "action": { @@ -14122,7 +14050,7 @@ }, "sound": { "type": "string", - "description": "Sound for push notification. Available only for Android and IOS Platform.", + "description": "Sound for push notification. Available only for Android and iOS Platform.", "x-example": "" }, "color": { @@ -14136,9 +14064,9 @@ "x-example": "" }, "badge": { - "type": "string", - "description": "Badge for push notification. Available only for IOS Platform.", - "x-example": "" + "type": "integer", + "description": "Badge for push notification. Available only for iOS Platform.", + "x-example": null }, "draft": { "type": "boolean", @@ -14149,12 +14077,31 @@ "type": "string", "description": "Scheduled delivery time for message in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future.", "x-example": null + }, + "contentAvailable": { + "type": "boolean", + "description": "If set to true, the notification will be delivered in the background. Available only for iOS Platform.", + "x-example": false + }, + "critical": { + "type": "boolean", + "description": "If set to true, the notification will be marked as critical. This requires the app to have the critical notification entitlement. Available only for iOS Platform.", + "x-example": false + }, + "priority": { + "type": "string", + "description": "Set the notification priority. \"normal\" will consider device state and may not deliver notifications immediately. \"high\" will always attempt to immediately deliver the notification.", + "x-example": "normal", + "enum": [ + "normal", + "high" + ], + "x-enum-name": "MessagePriority", + "x-enum-keys": [] } }, "required": [ - "messageId", - "title", - "body" + "messageId" ] } } @@ -14169,7 +14116,7 @@ "tags": [ "messaging" ], - "description": "Update a push notification by its unique ID.\n", + "description": "Update a push notification by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", "responses": { "200": { "description": "Message", @@ -14184,7 +14131,8 @@ }, "x-appwrite": { "method": "updatePush", - "weight": 394, + "group": "messages", + "weight": 392, "cookies": false, "type": "", "deprecated": false, @@ -14199,9 +14147,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14313,6 +14258,27 @@ "type": "string", "description": "Scheduled delivery time for message in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future.", "x-example": null + }, + "contentAvailable": { + "type": "boolean", + "description": "If set to true, the notification will be delivered in the background. Available only for iOS Platform.", + "x-example": false + }, + "critical": { + "type": "boolean", + "description": "If set to true, the notification will be marked as critical. This requires the app to have the critical notification entitlement. Available only for iOS Platform.", + "x-example": false + }, + "priority": { + "type": "string", + "description": "Set the notification priority. \"normal\" will consider device battery state and may send notifications later. \"high\" will always attempt to immediately deliver the notification.", + "x-example": "normal", + "enum": [ + "normal", + "high" + ], + "x-enum-name": "MessagePriority", + "x-enum-keys": [] } } } @@ -14343,7 +14309,8 @@ }, "x-appwrite": { "method": "createSms", - "weight": 386, + "group": "messages", + "weight": 384, "cookies": false, "type": "", "deprecated": false, @@ -14358,9 +14325,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14439,7 +14403,7 @@ "tags": [ "messaging" ], - "description": "Update an email message by its unique ID.\n", + "description": "Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", "responses": { "200": { "description": "Message", @@ -14454,12 +14418,13 @@ }, "x-appwrite": { "method": "updateSms", - "weight": 393, + "group": "messages", + "weight": 391, "cookies": false, "type": "", "deprecated": false, "demo": "messaging\/update-sms.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/update-email.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/update-sms.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -14469,9 +14434,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14568,7 +14530,8 @@ }, "x-appwrite": { "method": "getMessage", - "weight": 391, + "group": "messages", + "weight": 389, "cookies": false, "type": "", "deprecated": false, @@ -14583,9 +14546,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14623,7 +14583,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 395, + "group": "messages", + "weight": 393, "cookies": false, "type": "", "deprecated": false, @@ -14638,9 +14599,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14687,7 +14645,8 @@ }, "x-appwrite": { "method": "listMessageLogs", - "weight": 389, + "group": "logs", + "weight": 387, "cookies": false, "type": "", "deprecated": false, @@ -14702,9 +14661,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14764,7 +14720,8 @@ }, "x-appwrite": { "method": "listTargets", - "weight": 390, + "group": "messages", + "weight": 388, "cookies": false, "type": "", "deprecated": false, @@ -14779,9 +14736,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14841,7 +14795,8 @@ }, "x-appwrite": { "method": "listProviders", - "weight": 360, + "group": "providers", + "weight": 358, "cookies": false, "type": "", "deprecated": false, @@ -14856,9 +14811,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14919,7 +14871,8 @@ }, "x-appwrite": { "method": "createApnsProvider", - "weight": 359, + "group": "providers", + "weight": 357, "cookies": false, "type": "", "deprecated": false, @@ -14934,9 +14887,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15026,7 +14976,8 @@ }, "x-appwrite": { "method": "updateApnsProvider", - "weight": 372, + "group": "providers", + "weight": 370, "cookies": false, "type": "", "deprecated": false, @@ -15041,9 +14992,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15136,7 +15084,8 @@ }, "x-appwrite": { "method": "createFcmProvider", - "weight": 358, + "group": "providers", + "weight": 356, "cookies": false, "type": "", "deprecated": false, @@ -15151,9 +15100,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15223,7 +15169,8 @@ }, "x-appwrite": { "method": "updateFcmProvider", - "weight": 371, + "group": "providers", + "weight": 369, "cookies": false, "type": "", "deprecated": false, @@ -15238,9 +15185,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15313,7 +15257,8 @@ }, "x-appwrite": { "method": "createMailgunProvider", - "weight": 350, + "group": "providers", + "weight": 348, "cookies": false, "type": "", "deprecated": false, @@ -15328,9 +15273,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15430,7 +15372,8 @@ }, "x-appwrite": { "method": "updateMailgunProvider", - "weight": 363, + "group": "providers", + "weight": 361, "cookies": false, "type": "", "deprecated": false, @@ -15445,9 +15388,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15550,7 +15490,8 @@ }, "x-appwrite": { "method": "createMsg91Provider", - "weight": 353, + "group": "providers", + "weight": 351, "cookies": false, "type": "", "deprecated": false, @@ -15565,9 +15506,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15647,7 +15585,8 @@ }, "x-appwrite": { "method": "updateMsg91Provider", - "weight": 366, + "group": "providers", + "weight": 364, "cookies": false, "type": "", "deprecated": false, @@ -15662,9 +15601,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15747,7 +15683,8 @@ }, "x-appwrite": { "method": "createSendgridProvider", - "weight": 351, + "group": "providers", + "weight": 349, "cookies": false, "type": "", "deprecated": false, @@ -15762,9 +15699,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15854,7 +15788,8 @@ }, "x-appwrite": { "method": "updateSendgridProvider", - "weight": 364, + "group": "providers", + "weight": 362, "cookies": false, "type": "", "deprecated": false, @@ -15869,9 +15804,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15964,7 +15896,8 @@ }, "x-appwrite": { "method": "createSmtpProvider", - "weight": 352, + "group": "providers", + "weight": 350, "cookies": false, "type": "", "deprecated": false, @@ -15979,9 +15912,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16109,7 +16039,8 @@ }, "x-appwrite": { "method": "updateSmtpProvider", - "weight": 365, + "group": "providers", + "weight": 363, "cookies": false, "type": "", "deprecated": false, @@ -16124,9 +16055,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16256,7 +16184,8 @@ }, "x-appwrite": { "method": "createTelesignProvider", - "weight": 354, + "group": "providers", + "weight": 352, "cookies": false, "type": "", "deprecated": false, @@ -16271,9 +16200,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16353,7 +16279,8 @@ }, "x-appwrite": { "method": "updateTelesignProvider", - "weight": 367, + "group": "providers", + "weight": 365, "cookies": false, "type": "", "deprecated": false, @@ -16368,9 +16295,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16453,7 +16377,8 @@ }, "x-appwrite": { "method": "createTextmagicProvider", - "weight": 355, + "group": "providers", + "weight": 353, "cookies": false, "type": "", "deprecated": false, @@ -16468,9 +16393,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16550,7 +16472,8 @@ }, "x-appwrite": { "method": "updateTextmagicProvider", - "weight": 368, + "group": "providers", + "weight": 366, "cookies": false, "type": "", "deprecated": false, @@ -16565,9 +16488,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16650,7 +16570,8 @@ }, "x-appwrite": { "method": "createTwilioProvider", - "weight": 356, + "group": "providers", + "weight": 354, "cookies": false, "type": "", "deprecated": false, @@ -16665,9 +16586,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16747,7 +16665,8 @@ }, "x-appwrite": { "method": "updateTwilioProvider", - "weight": 369, + "group": "providers", + "weight": 367, "cookies": false, "type": "", "deprecated": false, @@ -16762,9 +16681,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16847,7 +16763,8 @@ }, "x-appwrite": { "method": "createVonageProvider", - "weight": 357, + "group": "providers", + "weight": 355, "cookies": false, "type": "", "deprecated": false, @@ -16862,9 +16779,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16944,7 +16858,8 @@ }, "x-appwrite": { "method": "updateVonageProvider", - "weight": 370, + "group": "providers", + "weight": 368, "cookies": false, "type": "", "deprecated": false, @@ -16959,9 +16874,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17044,7 +16956,8 @@ }, "x-appwrite": { "method": "getProvider", - "weight": 362, + "group": "providers", + "weight": 360, "cookies": false, "type": "", "deprecated": false, @@ -17059,9 +16972,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17099,7 +17009,8 @@ }, "x-appwrite": { "method": "deleteProvider", - "weight": 373, + "group": "providers", + "weight": 371, "cookies": false, "type": "", "deprecated": false, @@ -17114,9 +17025,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17163,7 +17071,8 @@ }, "x-appwrite": { "method": "listProviderLogs", - "weight": 361, + "group": "providers", + "weight": 359, "cookies": false, "type": "", "deprecated": false, @@ -17178,9 +17087,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17240,7 +17146,8 @@ }, "x-appwrite": { "method": "listSubscriberLogs", - "weight": 382, + "group": "subscribers", + "weight": 380, "cookies": false, "type": "", "deprecated": false, @@ -17255,9 +17162,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17317,7 +17221,8 @@ }, "x-appwrite": { "method": "listTopics", - "weight": 375, + "group": "topics", + "weight": 373, "cookies": false, "type": "", "deprecated": false, @@ -17332,9 +17237,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17393,7 +17295,8 @@ }, "x-appwrite": { "method": "createTopic", - "weight": 374, + "group": "topics", + "weight": 372, "cookies": false, "type": "", "deprecated": false, @@ -17408,9 +17311,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17478,7 +17378,8 @@ }, "x-appwrite": { "method": "getTopic", - "weight": 377, + "group": "topics", + "weight": 375, "cookies": false, "type": "", "deprecated": false, @@ -17493,9 +17394,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17540,7 +17438,8 @@ }, "x-appwrite": { "method": "updateTopic", - "weight": 378, + "group": "topics", + "weight": 376, "cookies": false, "type": "", "deprecated": false, @@ -17555,9 +17454,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17619,7 +17515,8 @@ }, "x-appwrite": { "method": "deleteTopic", - "weight": 379, + "group": "topics", + "weight": 377, "cookies": false, "type": "", "deprecated": false, @@ -17634,9 +17531,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17683,7 +17577,8 @@ }, "x-appwrite": { "method": "listTopicLogs", - "weight": 376, + "group": "topics", + "weight": 374, "cookies": false, "type": "", "deprecated": false, @@ -17698,9 +17593,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17760,7 +17652,8 @@ }, "x-appwrite": { "method": "listSubscribers", - "weight": 381, + "group": "subscribers", + "weight": 379, "cookies": false, "type": "", "deprecated": false, @@ -17775,9 +17668,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17846,7 +17736,8 @@ }, "x-appwrite": { "method": "createSubscriber", - "weight": 380, + "group": "subscribers", + "weight": 378, "cookies": false, "type": "", "deprecated": false, @@ -17863,9 +17754,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17938,7 +17826,8 @@ }, "x-appwrite": { "method": "getSubscriber", - "weight": 383, + "group": "subscribers", + "weight": 381, "cookies": false, "type": "", "deprecated": false, @@ -17953,9 +17842,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18003,7 +17889,8 @@ }, "x-appwrite": { "method": "deleteSubscriber", - "weight": 384, + "group": "subscribers", + "weight": 382, "cookies": false, "type": "", "deprecated": false, @@ -18020,9 +17907,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18060,12 +17944,12 @@ }, "\/migrations": { "get": { - "summary": "List Migrations", + "summary": "List migrations", "operationId": "migrationsList", "tags": [ "migrations" ], - "description": "", + "description": "List all migrations in the current project. This endpoint returns a list of all migrations including their status, progress, and any errors that occurred during the migration process.", "responses": { "200": { "description": "Migrations List", @@ -18080,7 +17964,8 @@ }, "x-appwrite": { "method": "list", - "weight": 337, + "group": null, + "weight": 340, "cookies": false, "type": "", "deprecated": false, @@ -18094,9 +17979,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18109,7 +17991,7 @@ "parameters": [ { "name": "queries", - "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: status, stage, source, resources, statusCounters, resourceData, errors", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: status, stage, source, destination, resources, statusCounters, resourceData, errors", "required": false, "schema": { "type": "array", @@ -18136,12 +18018,12 @@ }, "\/migrations\/appwrite": { "post": { - "summary": "Migrate Appwrite Data", + "summary": "Create Appwrite migration", "operationId": "migrationsCreateAppwriteMigration", "tags": [ "migrations" ], - "description": "", + "description": "Migrate data from another Appwrite project to your current project. This endpoint allows you to migrate resources like databases, collections, documents, users, and files from an existing Appwrite project. ", "responses": { "202": { "description": "Migration", @@ -18156,7 +18038,8 @@ }, "x-appwrite": { "method": "createAppwriteMigration", - "weight": 332, + "group": null, + "weight": 336, "cookies": false, "type": "", "deprecated": false, @@ -18170,9 +18053,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18198,17 +18078,17 @@ }, "endpoint": { "type": "string", - "description": "Source's Appwrite Endpoint", + "description": "Source Appwrite endpoint", "x-example": "https:\/\/example.com" }, "projectId": { "type": "string", - "description": "Source's Project ID", + "description": "Source Project ID", "x-example": "" }, "apiKey": { "type": "string", - "description": "Source's API Key", + "description": "Source API Key", "x-example": "" } }, @@ -18226,12 +18106,12 @@ }, "\/migrations\/appwrite\/report": { "get": { - "summary": "Generate a report on Appwrite Data", + "summary": "Get Appwrite migration report", "operationId": "migrationsGetAppwriteReport", "tags": [ "migrations" ], - "description": "", + "description": "Generate a report of the data in an Appwrite project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated.", "responses": { "200": { "description": "Migration Report", @@ -18246,7 +18126,8 @@ }, "x-appwrite": { "method": "getAppwriteReport", - "weight": 339, + "group": null, + "weight": 342, "cookies": false, "type": "", "deprecated": false, @@ -18260,9 +18141,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18321,12 +18199,12 @@ }, "\/migrations\/firebase": { "post": { - "summary": "Migrate Firebase Data (Service Account)", + "summary": "Create Firebase migration", "operationId": "migrationsCreateFirebaseMigration", "tags": [ "migrations" ], - "description": "", + "description": "Migrate data from a Firebase project to your Appwrite project. This endpoint allows you to migrate resources like authentication and other supported services from a Firebase project. ", "responses": { "202": { "description": "Migration", @@ -18341,7 +18219,8 @@ }, "x-appwrite": { "method": "createFirebaseMigration", - "weight": 334, + "group": null, + "weight": 337, "cookies": false, "type": "", "deprecated": false, @@ -18355,9 +18234,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18397,185 +18273,14 @@ } } }, - "\/migrations\/firebase\/deauthorize": { - "get": { - "summary": "Revoke Appwrite's authorization to access Firebase Projects", - "operationId": "migrationsDeleteFirebaseAuth", - "tags": [ - "migrations" - ], - "description": "", - "responses": { - "200": { - "description": "File" - } - }, - "x-appwrite": { - "method": "deleteFirebaseAuth", - "weight": 345, - "cookies": false, - "type": "", - "deprecated": false, - "demo": "migrations\/delete-firebase-auth.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "migrations.write", - "platforms": [ - "console" - ], - "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", - "auth": { - "Project": [] - } - }, - "security": [ - { - "Project": [] - } - ] - } - }, - "\/migrations\/firebase\/oauth": { - "post": { - "summary": "Migrate Firebase Data (OAuth)", - "operationId": "migrationsCreateFirebaseOAuthMigration", - "tags": [ - "migrations" - ], - "description": "", - "responses": { - "202": { - "description": "Migration", - "content": { - "application\/json": { - "schema": { - "$ref": "#\/components\/schemas\/migration" - } - } - } - } - }, - "x-appwrite": { - "method": "createFirebaseOAuthMigration", - "weight": 333, - "cookies": false, - "type": "", - "deprecated": false, - "demo": "migrations\/create-firebase-o-auth-migration.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/migrations\/migration-firebase.md", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "migrations.write", - "platforms": [ - "console" - ], - "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", - "auth": { - "Project": [] - } - }, - "security": [ - { - "Project": [] - } - ], - "requestBody": { - "content": { - "application\/json": { - "schema": { - "type": "object", - "properties": { - "resources": { - "type": "array", - "description": "List of resources to migrate", - "x-example": null, - "items": { - "type": "string" - } - }, - "projectId": { - "type": "string", - "description": "Project ID of the Firebase Project", - "x-example": "" - } - }, - "required": [ - "resources", - "projectId" - ] - } - } - } - } - } - }, - "\/migrations\/firebase\/projects": { - "get": { - "summary": "List Firebase Projects", - "operationId": "migrationsListFirebaseProjects", - "tags": [ - "migrations" - ], - "description": "", - "responses": { - "200": { - "description": "Migrations Firebase Projects List", - "content": { - "application\/json": { - "schema": { - "$ref": "#\/components\/schemas\/firebaseProjectList" - } - } - } - } - }, - "x-appwrite": { - "method": "listFirebaseProjects", - "weight": 344, - "cookies": false, - "type": "", - "deprecated": false, - "demo": "migrations\/list-firebase-projects.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "migrations.read", - "platforms": [ - "console" - ], - "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", - "auth": { - "Project": [] - } - }, - "security": [ - { - "Project": [] - } - ] - } - }, "\/migrations\/firebase\/report": { "get": { - "summary": "Generate a report on Firebase Data", + "summary": "Get Firebase migration report", "operationId": "migrationsGetFirebaseReport", "tags": [ "migrations" ], - "description": "", + "description": "Generate a report of the data in a Firebase project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated.", "responses": { "200": { "description": "Migration Report", @@ -18590,7 +18295,8 @@ }, "x-appwrite": { "method": "getFirebaseReport", - "weight": 340, + "group": null, + "weight": 343, "cookies": false, "type": "", "deprecated": false, @@ -18604,9 +18310,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18642,88 +18345,14 @@ ] } }, - "\/migrations\/firebase\/report\/oauth": { - "get": { - "summary": "Generate a report on Firebase Data using OAuth", - "operationId": "migrationsGetFirebaseReportOAuth", - "tags": [ - "migrations" - ], - "description": "", - "responses": { - "200": { - "description": "Migration Report", - "content": { - "application\/json": { - "schema": { - "$ref": "#\/components\/schemas\/migrationReport" - } - } - } - } - }, - "x-appwrite": { - "method": "getFirebaseReportOAuth", - "weight": 341, - "cookies": false, - "type": "", - "deprecated": false, - "demo": "migrations\/get-firebase-report-o-auth.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/migrations\/migration-firebase-report.md", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "migrations.write", - "platforms": [ - "console" - ], - "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", - "auth": { - "Project": [] - } - }, - "security": [ - { - "Project": [] - } - ], - "parameters": [ - { - "name": "resources", - "description": "List of resources to migrate", - "required": true, - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "in": "query" - }, - { - "name": "projectId", - "description": "Project ID", - "required": true, - "schema": { - "type": "string", - "x-example": "" - }, - "in": "query" - } - ] - } - }, "\/migrations\/nhost": { "post": { - "summary": "Migrate NHost Data", + "summary": "Create NHost migration", "operationId": "migrationsCreateNHostMigration", "tags": [ "migrations" ], - "description": "", + "description": "Migrate data from an NHost project to your Appwrite project. This endpoint allows you to migrate resources like authentication, databases, and other supported services from an NHost project. ", "responses": { "202": { "description": "Migration", @@ -18738,7 +18367,8 @@ }, "x-appwrite": { "method": "createNHostMigration", - "weight": 336, + "group": null, + "weight": 339, "cookies": false, "type": "", "deprecated": false, @@ -18752,9 +18382,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18831,12 +18458,12 @@ }, "\/migrations\/nhost\/report": { "get": { - "summary": "Generate a report on NHost Data", + "summary": "Get NHost migration report", "operationId": "migrationsGetNHostReport", "tags": [ "migrations" ], - "description": "", + "description": "Generate a detailed report of the data in an NHost project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated. ", "responses": { "200": { "description": "Migration Report", @@ -18851,7 +18478,8 @@ }, "x-appwrite": { "method": "getNHostReport", - "weight": 347, + "group": null, + "weight": 345, "cookies": false, "type": "", "deprecated": false, @@ -18865,9 +18493,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18966,12 +18591,12 @@ }, "\/migrations\/supabase": { "post": { - "summary": "Migrate Supabase Data", + "summary": "Create Supabase migration", "operationId": "migrationsCreateSupabaseMigration", "tags": [ "migrations" ], - "description": "", + "description": "Migrate data from a Supabase project to your Appwrite project. This endpoint allows you to migrate resources like authentication, databases, and other supported services from a Supabase project. ", "responses": { "202": { "description": "Migration", @@ -18986,7 +18611,8 @@ }, "x-appwrite": { "method": "createSupabaseMigration", - "weight": 335, + "group": null, + "weight": 338, "cookies": false, "type": "", "deprecated": false, @@ -19000,9 +18626,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19073,12 +18696,12 @@ }, "\/migrations\/supabase\/report": { "get": { - "summary": "Generate a report on Supabase Data", + "summary": "Get Supabase migration report", "operationId": "migrationsGetSupabaseReport", "tags": [ "migrations" ], - "description": "", + "description": "Generate a report of the data in a Supabase project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated. ", "responses": { "200": { "description": "Migration Report", @@ -19093,7 +18716,8 @@ }, "x-appwrite": { "method": "getSupabaseReport", - "weight": 346, + "group": null, + "weight": 344, "cookies": false, "type": "", "deprecated": false, @@ -19107,9 +18731,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19199,12 +18820,12 @@ }, "\/migrations\/{migrationId}": { "get": { - "summary": "Get Migration", + "summary": "Get migration", "operationId": "migrationsGet", "tags": [ "migrations" ], - "description": "", + "description": "Get a migration by its unique ID. This endpoint returns detailed information about a specific migration including its current status, progress, and any errors that occurred during the migration process. ", "responses": { "200": { "description": "Migration", @@ -19219,7 +18840,8 @@ }, "x-appwrite": { "method": "get", - "weight": 338, + "group": null, + "weight": 341, "cookies": false, "type": "", "deprecated": false, @@ -19233,9 +18855,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19259,12 +18878,12 @@ ] }, "patch": { - "summary": "Retry Migration", + "summary": "Update retry migration", "operationId": "migrationsRetry", "tags": [ "migrations" ], - "description": "", + "description": "Retry a failed migration. This endpoint allows you to retry a migration that has previously failed.", "responses": { "202": { "description": "Migration", @@ -19279,7 +18898,8 @@ }, "x-appwrite": { "method": "retry", - "weight": 348, + "group": null, + "weight": 346, "cookies": false, "type": "", "deprecated": false, @@ -19293,9 +18913,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19319,12 +18936,12 @@ ] }, "delete": { - "summary": "Delete Migration", + "summary": "Delete migration", "operationId": "migrationsDelete", "tags": [ "migrations" ], - "description": "", + "description": "Delete a migration by its unique ID. This endpoint allows you to remove a migration from your project's migration history. ", "responses": { "204": { "description": "No content" @@ -19332,7 +18949,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 349, + "group": null, + "weight": 347, "cookies": false, "type": "", "deprecated": false, @@ -19346,9 +18964,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19379,7 +18994,7 @@ "tags": [ "project" ], - "description": "", + "description": "Get comprehensive usage statistics for your project. View metrics including network requests, bandwidth, storage, function executions, database usage, and user activity. Specify a time range with startDate and endDate, and optionally set the data granularity with period (1h or 1d). The response includes both total counts and detailed breakdowns by resource, along with historical data over the specified period.", "responses": { "200": { "description": "UsageProject", @@ -19394,12 +19009,13 @@ }, "x-appwrite": { "method": "getUsage", - "weight": 194, + "group": null, + "weight": 198, "cookies": false, "type": "", "deprecated": false, "demo": "project\/get-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/project\/get-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -19408,9 +19024,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19464,7 +19077,7 @@ }, "\/project\/variables": { "get": { - "summary": "List Variables", + "summary": "List variables", "operationId": "projectListVariables", "tags": [ "project" @@ -19484,7 +19097,8 @@ }, "x-appwrite": { "method": "listVariables", - "weight": 196, + "group": null, + "weight": 200, "cookies": false, "type": "", "deprecated": false, @@ -19498,9 +19112,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19512,7 +19123,7 @@ ] }, "post": { - "summary": "Create Variable", + "summary": "Create variable", "operationId": "projectCreateVariable", "tags": [ "project" @@ -19532,7 +19143,8 @@ }, "x-appwrite": { "method": "createVariable", - "weight": 195, + "group": null, + "weight": 199, "cookies": false, "type": "", "deprecated": false, @@ -19546,9 +19158,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19587,7 +19196,7 @@ }, "\/project\/variables\/{variableId}": { "get": { - "summary": "Get Variable", + "summary": "Get variable", "operationId": "projectGetVariable", "tags": [ "project" @@ -19607,7 +19216,8 @@ }, "x-appwrite": { "method": "getVariable", - "weight": 197, + "group": null, + "weight": 201, "cookies": false, "type": "", "deprecated": false, @@ -19621,9 +19231,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19647,7 +19254,7 @@ ] }, "put": { - "summary": "Update Variable", + "summary": "Update variable", "operationId": "projectUpdateVariable", "tags": [ "project" @@ -19667,7 +19274,8 @@ }, "x-appwrite": { "method": "updateVariable", - "weight": 198, + "group": null, + "weight": 202, "cookies": false, "type": "", "deprecated": false, @@ -19681,9 +19289,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19731,7 +19336,7 @@ } }, "delete": { - "summary": "Delete Variable", + "summary": "Delete variable", "operationId": "projectDeleteVariable", "tags": [ "project" @@ -19744,7 +19349,8 @@ }, "x-appwrite": { "method": "deleteVariable", - "weight": 199, + "group": null, + "weight": 203, "cookies": false, "type": "", "deprecated": false, @@ -19758,9 +19364,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19791,7 +19394,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Get a list of all projects. You can use the query params to filter your results. ", "responses": { "200": { "description": "Projects List", @@ -19806,12 +19409,13 @@ }, "x-appwrite": { "method": "list", - "weight": 150, + "group": "projects", + "weight": 153, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/list.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/list.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -19820,9 +19424,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19865,7 +19466,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Create a new project. You can create a maximum of 100 projects per account. ", "responses": { "201": { "description": "Project", @@ -19880,12 +19481,13 @@ }, "x-appwrite": { "method": "create", - "weight": 149, + "group": "projects", + "weight": 152, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/create.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/create.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -19894,9 +19496,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19932,8 +19531,7 @@ "description": "Project Region.", "x-example": "default", "enum": [ - "default", - "fra" + "default" ], "x-enum-name": null, "x-enum-keys": [] @@ -20002,7 +19600,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Get a project by its unique ID. This endpoint allows you to retrieve the project's details, including its name, description, team, region, and other metadata. ", "responses": { "200": { "description": "Project", @@ -20017,12 +19615,13 @@ }, "x-appwrite": { "method": "get", - "weight": 151, + "group": "projects", + "weight": 154, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/get.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/get.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20031,9 +19630,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20062,7 +19658,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update a project by its unique ID.", "responses": { "200": { "description": "Project", @@ -20077,12 +19673,13 @@ }, "x-appwrite": { "method": "update", - "weight": 152, + "group": "projects", + "weight": 155, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20091,9 +19688,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20186,7 +19780,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Delete a project by its unique ID.", "responses": { "204": { "description": "No content" @@ -20194,12 +19788,13 @@ }, "x-appwrite": { "method": "delete", - "weight": 168, + "group": "projects", + "weight": 172, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/delete.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/delete.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20208,9 +19803,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20241,7 +19833,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the status of a specific API type. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime.", "responses": { "200": { "description": "Project", @@ -20256,12 +19848,13 @@ }, "x-appwrite": { "method": "updateApiStatus", - "weight": 156, + "group": "projects", + "weight": 159, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-api-status.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-api-status.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20270,9 +19863,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20335,7 +19925,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the status of all API types. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime all at once.", "responses": { "200": { "description": "Project", @@ -20350,12 +19940,13 @@ }, "x-appwrite": { "method": "updateApiStatusAll", - "weight": 157, + "group": "projects", + "weight": 160, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-api-status-all.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-api-status-all.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20364,9 +19955,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20416,7 +20004,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update how long sessions created within a project should stay active for.", "responses": { "200": { "description": "Project", @@ -20431,12 +20019,13 @@ }, "x-appwrite": { "method": "updateAuthDuration", - "weight": 161, + "group": "auth", + "weight": 165, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-auth-duration.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-auth-duration.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20445,9 +20034,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20497,7 +20083,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the maximum number of users allowed in this project. Set to 0 for unlimited users. ", "responses": { "200": { "description": "Project", @@ -20512,12 +20098,13 @@ }, "x-appwrite": { "method": "updateAuthLimit", - "weight": 160, + "group": "auth", + "weight": 164, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-auth-limit.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-auth-limit.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20526,9 +20113,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20578,7 +20162,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the maximum number of sessions allowed per user within the project, if the limit is hit the oldest session will be deleted to make room for new sessions.", "responses": { "200": { "description": "Project", @@ -20593,12 +20177,13 @@ }, "x-appwrite": { "method": "updateAuthSessionsLimit", - "weight": 166, + "group": "auth", + "weight": 170, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-auth-sessions-limit.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-auth-sessions-limit.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20607,9 +20192,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20652,6 +20234,97 @@ } } }, + "\/projects\/{projectId}\/auth\/memberships-privacy": { + "patch": { + "summary": "Update project memberships privacy attributes", + "operationId": "projectsUpdateMembershipsPrivacy", + "tags": [ + "projects" + ], + "description": "Update project membership privacy settings. Use this endpoint to control what user information is visible to other team members, such as user name, email, and MFA status. ", + "responses": { + "200": { + "description": "Project", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/project" + } + } + } + } + }, + "x-appwrite": { + "method": "updateMembershipsPrivacy", + "group": "auth", + "weight": 163, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "projects\/update-memberships-privacy.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-memberships-privacy.md", + "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": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "userName": { + "type": "boolean", + "description": "Set to true to show userName to members of a team.", + "x-example": false + }, + "userEmail": { + "type": "boolean", + "description": "Set to true to show email to members of a team.", + "x-example": false + }, + "mfa": { + "type": "boolean", + "description": "Set to true to show mfa to members of a team.", + "x-example": false + } + }, + "required": [ + "userName", + "userEmail", + "mfa" + ] + } + } + } + } + } + }, "\/projects\/{projectId}\/auth\/mock-numbers": { "patch": { "summary": "Update the mock numbers for the project", @@ -20659,7 +20332,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the list of mock phone numbers for testing. Use these numbers to bypass SMS verification in development. ", "responses": { "200": { "description": "Project", @@ -20674,12 +20347,13 @@ }, "x-appwrite": { "method": "updateMockNumbers", - "weight": 167, + "group": "auth", + "weight": 171, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-mock-numbers.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-mock-numbers.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20688,9 +20362,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20743,7 +20414,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Enable or disable checking user passwords against common passwords dictionary. This helps ensure users don't use common and insecure passwords. ", "responses": { "200": { "description": "Project", @@ -20758,12 +20429,13 @@ }, "x-appwrite": { "method": "updateAuthPasswordDictionary", - "weight": 164, + "group": "auth", + "weight": 168, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-auth-password-dictionary.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-auth-password-dictionary.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20772,9 +20444,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20824,7 +20493,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the authentication password history requirement. Use this endpoint to require new passwords to be different than the last X amount of previously used ones.", "responses": { "200": { "description": "Project", @@ -20839,12 +20508,13 @@ }, "x-appwrite": { "method": "updateAuthPasswordHistory", - "weight": 163, + "group": "auth", + "weight": 167, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-auth-password-history.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-auth-password-history.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20853,9 +20523,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20900,12 +20567,12 @@ }, "\/projects\/{projectId}\/auth\/personal-data": { "patch": { - "summary": "Enable or disable checking user passwords for similarity with their personal data.", + "summary": "Update personal data check", "operationId": "projectsUpdatePersonalDataCheck", "tags": [ "projects" ], - "description": "", + "description": "Enable or disable checking user passwords against their personal data. This helps prevent users from using personal information in their passwords. ", "responses": { "200": { "description": "Project", @@ -20920,12 +20587,13 @@ }, "x-appwrite": { "method": "updatePersonalDataCheck", - "weight": 165, + "group": "auth", + "weight": 169, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-personal-data-check.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-personal-data-check.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20934,9 +20602,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20986,7 +20651,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Enable or disable session email alerts. When enabled, users will receive email notifications when new sessions are created.", "responses": { "200": { "description": "Project", @@ -21001,12 +20666,13 @@ }, "x-appwrite": { "method": "updateSessionAlerts", - "weight": 159, + "group": "auth", + "weight": 162, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-session-alerts.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-session-alerts.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -21015,9 +20681,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21067,7 +20730,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the status of a specific authentication method. Use this endpoint to enable or disable different authentication methods such as email, magic urls or sms in your project. ", "responses": { "200": { "description": "Project", @@ -21082,12 +20745,13 @@ }, "x-appwrite": { "method": "updateAuthStatus", - "weight": 162, + "group": "auth", + "weight": 166, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-auth-status.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-auth-status.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -21096,9 +20760,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21169,7 +20830,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Create a new JWT token. This token can be used to authenticate users with custom scopes and expiration time. ", "responses": { "201": { "description": "JWT", @@ -21184,12 +20845,13 @@ }, "x-appwrite": { "method": "createJWT", - "weight": 180, + "group": "auth", + "weight": 184, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/create-j-w-t.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/create-jwt.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -21198,9 +20860,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21258,7 +20917,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Get a list of all API keys from the current project. ", "responses": { "200": { "description": "API Keys List", @@ -21273,23 +20932,21 @@ }, "x-appwrite": { "method": "listKeys", - "weight": 176, + "group": "keys", + "weight": 180, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/list-keys.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/list-keys.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.read", + "scope": "keys.read", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21318,7 +20975,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Create a new API key. It's recommended to have multiple API keys with strict scopes for separate functions within your project.", "responses": { "201": { "description": "Key", @@ -21333,23 +20990,21 @@ }, "x-appwrite": { "method": "createKey", - "weight": 175, + "group": "keys", + "weight": 179, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/create-key.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/create-key.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.write", + "scope": "keys.write", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21413,7 +21068,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Get a key by its unique ID. This endpoint returns details about a specific API key in your project including it's scopes.", "responses": { "200": { "description": "Key", @@ -21428,23 +21083,21 @@ }, "x-appwrite": { "method": "getKey", - "weight": 177, + "group": "keys", + "weight": 181, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/get-key.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/get-key.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.read", + "scope": "keys.read", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21483,7 +21136,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update a key by its unique ID. Use this endpoint to update the name, scopes, or expiration time of an API key. ", "responses": { "200": { "description": "Key", @@ -21498,23 +21151,21 @@ }, "x-appwrite": { "method": "updateKey", - "weight": 178, + "group": "keys", + "weight": 182, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-key.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-key.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.write", + "scope": "keys.write", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21586,7 +21237,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Delete a key by its unique ID. Once deleted, the key can no longer be used to authenticate API calls. ", "responses": { "204": { "description": "No content" @@ -21594,23 +21245,21 @@ }, "x-appwrite": { "method": "deleteKey", - "weight": 179, + "group": "keys", + "weight": 183, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/delete-key.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/delete-key.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.write", + "scope": "keys.write", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21651,7 +21300,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the OAuth2 provider configurations. Use this endpoint to set up or update the OAuth2 provider credentials or enable\/disable providers. ", "responses": { "200": { "description": "Project", @@ -21666,12 +21315,13 @@ }, "x-appwrite": { "method": "updateOAuth2", - "weight": 158, + "group": "auth", + "weight": 161, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-o-auth2.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-oauth2.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -21680,9 +21330,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21729,6 +21376,7 @@ "dropbox", "etsy", "facebook", + "figma", "github", "gitlab", "google", @@ -21790,7 +21438,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Get a list of all platforms in the project. This endpoint returns an array of all platforms and their configurations. ", "responses": { "200": { "description": "Platforms List", @@ -21805,23 +21453,21 @@ }, "x-appwrite": { "method": "listPlatforms", - "weight": 182, + "group": "platforms", + "weight": 186, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/list-platforms.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/list-platforms.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.read", + "scope": "platforms.read", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21850,7 +21496,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Create a new platform for your project. Use this endpoint to register a new platform where your users will run your application which will interact with the Appwrite API.", "responses": { "201": { "description": "Platform", @@ -21865,23 +21511,21 @@ }, "x-appwrite": { "method": "createPlatform", - "weight": 181, + "group": "platforms", + "weight": 185, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/create-platform.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/create-platform.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.write", + "scope": "platforms.write", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21971,7 +21615,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Get a platform by its unique ID. This endpoint returns the platform's details, including its name, type, and key configurations. ", "responses": { "200": { "description": "Platform", @@ -21986,23 +21630,21 @@ }, "x-appwrite": { "method": "getPlatform", - "weight": 183, + "group": "platforms", + "weight": 187, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/get-platform.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/get-platform.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.read", + "scope": "platforms.read", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22041,7 +21683,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update a platform by its unique ID. Use this endpoint to update the platform's name, key, platform store ID, or hostname. ", "responses": { "200": { "description": "Platform", @@ -22056,23 +21698,21 @@ }, "x-appwrite": { "method": "updatePlatform", - "weight": 184, + "group": "platforms", + "weight": 188, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-platform.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-platform.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.write", + "scope": "platforms.write", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22145,7 +21785,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Delete a platform by its unique ID. This endpoint removes the platform and all its configurations from the project. ", "responses": { "204": { "description": "No content" @@ -22153,23 +21793,21 @@ }, "x-appwrite": { "method": "deletePlatform", - "weight": 185, + "group": "platforms", + "weight": 189, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/delete-platform.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/delete-platform.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.write", + "scope": "platforms.write", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22210,7 +21848,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the status of a specific service. Use this endpoint to enable or disable a service in your project. ", "responses": { "200": { "description": "Project", @@ -22225,12 +21863,13 @@ }, "x-appwrite": { "method": "updateServiceStatus", - "weight": 154, + "group": "projects", + "weight": 157, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-service-status.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-service-status.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -22239,9 +21878,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22312,7 +21948,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the status of all services. Use this endpoint to enable or disable all optional services at once. ", "responses": { "200": { "description": "Project", @@ -22327,12 +21963,13 @@ }, "x-appwrite": { "method": "updateServiceStatusAll", - "weight": 155, + "group": "projects", + "weight": 158, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-service-status-all.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-service-status-all.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -22341,9 +21978,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22393,7 +22027,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the SMTP configuration for your project. Use this endpoint to configure your project's SMTP provider with your custom settings for sending transactional emails. ", "responses": { "200": { "description": "Project", @@ -22408,12 +22042,13 @@ }, "x-appwrite": { "method": "updateSmtp", - "weight": 186, + "group": "templates", + "weight": 190, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-smtp.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-smtp.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -22422,9 +22057,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22520,7 +22152,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Send a test email to verify SMTP configuration. ", "responses": { "204": { "description": "No content" @@ -22528,12 +22160,13 @@ }, "x-appwrite": { "method": "createSmtpTest", - "weight": 187, + "group": "templates", + "weight": 191, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/create-smtp-test.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/create-smtp-test.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -22542,9 +22175,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22620,7 +22250,8 @@ "description": "Does SMTP server use secure connection", "x-example": "tls", "enum": [ - "tls" + "tls", + "ssl" ], "x-enum-name": "SMTPSecure", "x-enum-keys": [] @@ -22645,7 +22276,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the team ID of a project allowing for it to be transferred to another team.", "responses": { "200": { "description": "Project", @@ -22660,12 +22291,13 @@ }, "x-appwrite": { "method": "updateTeam", - "weight": 153, + "group": "projects", + "weight": 156, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-team.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-team.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -22674,9 +22306,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22726,7 +22355,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Get a custom email template for the specified locale and type. This endpoint returns the template content, subject, and other configuration details. ", "responses": { "200": { "description": "EmailTemplate", @@ -22741,12 +22370,13 @@ }, "x-appwrite": { "method": "getEmailTemplate", - "weight": 189, + "group": "templates", + "weight": 193, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/get-email-template.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/get-email-template.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -22755,9 +22385,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22952,14 +22579,14 @@ "tags": [ "projects" ], - "description": "", + "description": "Update a custom email template for the specified locale and type. Use this endpoint to modify the content of your email templates.", "responses": { "200": { - "description": "Project", + "description": "EmailTemplate", "content": { "application\/json": { "schema": { - "$ref": "#\/components\/schemas\/project" + "$ref": "#\/components\/schemas\/emailTemplate" } } } @@ -22967,12 +22594,13 @@ }, "x-appwrite": { "method": "updateEmailTemplate", - "weight": 191, + "group": "templates", + "weight": 195, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-email-template.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-email-template.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -22981,9 +22609,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -23213,12 +22838,12 @@ } }, "delete": { - "summary": "Reset custom email template", + "summary": "Delete custom email template", "operationId": "projectsDeleteEmailTemplate", "tags": [ "projects" ], - "description": "", + "description": "Reset a custom email template to its default value. This endpoint removes any custom content and restores the template to its original state. ", "responses": { "200": { "description": "EmailTemplate", @@ -23233,12 +22858,13 @@ }, "x-appwrite": { "method": "deleteEmailTemplate", - "weight": 193, + "group": "templates", + "weight": 197, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/delete-email-template.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/delete-email-template.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -23247,9 +22873,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -23446,7 +23069,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Get a custom SMS template for the specified locale and type returning it's contents.", "responses": { "200": { "description": "SmsTemplate", @@ -23461,12 +23084,13 @@ }, "x-appwrite": { "method": "getSmsTemplate", - "weight": 188, + "group": "templates", + "weight": 192, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/get-sms-template.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/get-sms-template.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -23475,9 +23099,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -23669,7 +23290,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update a custom SMS template for the specified locale and type. Use this endpoint to modify the content of your SMS templates. ", "responses": { "200": { "description": "SmsTemplate", @@ -23684,12 +23305,13 @@ }, "x-appwrite": { "method": "updateSmsTemplate", - "weight": 190, + "group": "templates", + "weight": 194, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-sms-template.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-sms-template.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -23698,9 +23320,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -23911,7 +23530,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Reset a custom SMS template to its default value. This endpoint removes any custom message and restores the template to its original state. ", "responses": { "200": { "description": "SmsTemplate", @@ -23926,12 +23545,13 @@ }, "x-appwrite": { "method": "deleteSmsTemplate", - "weight": 192, + "group": "templates", + "weight": 196, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/delete-sms-template.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/delete-sms-template.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -23940,9 +23560,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24136,7 +23753,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Get a list of all webhooks belonging to the project. You can use the query params to filter your results. ", "responses": { "200": { "description": "Webhooks List", @@ -24151,12 +23768,13 @@ }, "x-appwrite": { "method": "listWebhooks", - "weight": 170, + "group": "webhooks", + "weight": 174, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/list-webhooks.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/list-webhooks.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -24165,9 +23783,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24196,7 +23811,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Create a new webhook. Use this endpoint to configure a URL that will receive events from Appwrite when specific events occur. ", "responses": { "201": { "description": "Webhook", @@ -24211,12 +23826,13 @@ }, "x-appwrite": { "method": "createWebhook", - "weight": 169, + "group": "webhooks", + "weight": 173, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/create-webhook.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/create-webhook.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -24225,9 +23841,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24313,7 +23926,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Get a webhook by its unique ID. This endpoint returns details about a specific webhook configured for a project. ", "responses": { "200": { "description": "Webhook", @@ -24328,12 +23941,13 @@ }, "x-appwrite": { "method": "getWebhook", - "weight": 171, + "group": "webhooks", + "weight": 175, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/get-webhook.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/get-webhook.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -24342,9 +23956,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24383,7 +23994,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update a webhook by its unique ID. Use this endpoint to update the URL, events, or status of an existing webhook. ", "responses": { "200": { "description": "Webhook", @@ -24398,12 +24009,13 @@ }, "x-appwrite": { "method": "updateWebhook", - "weight": 172, + "group": "webhooks", + "weight": 176, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-webhook.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-webhook.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -24412,9 +24024,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24508,7 +24117,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Delete a webhook by its unique ID. Once deleted, the webhook will no longer receive project events. ", "responses": { "204": { "description": "No content" @@ -24516,12 +24125,13 @@ }, "x-appwrite": { "method": "deleteWebhook", - "weight": 174, + "group": "webhooks", + "weight": 178, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/delete-webhook.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/delete-webhook.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -24530,9 +24140,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24573,7 +24180,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the webhook signature key. This endpoint can be used to regenerate the signature key used to sign and validate payload deliveries for a specific webhook. ", "responses": { "200": { "description": "Webhook", @@ -24588,12 +24195,13 @@ }, "x-appwrite": { "method": "updateWebhookSignature", - "weight": 173, + "group": "webhooks", + "weight": 177, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-webhook-signature.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-webhook-signature.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -24602,9 +24210,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24640,7 +24245,7 @@ }, "\/proxy\/rules": { "get": { - "summary": "List Rules", + "summary": "List rules", "operationId": "proxyListRules", "tags": [ "proxy" @@ -24660,7 +24265,8 @@ }, "x-appwrite": { "method": "listRules", - "weight": 315, + "group": null, + "weight": 319, "cookies": false, "type": "", "deprecated": false, @@ -24674,9 +24280,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24714,7 +24317,7 @@ ] }, "post": { - "summary": "Create Rule", + "summary": "Create rule", "operationId": "proxyCreateRule", "tags": [ "proxy" @@ -24734,7 +24337,8 @@ }, "x-appwrite": { "method": "createRule", - "weight": 314, + "group": null, + "weight": 318, "cookies": false, "type": "", "deprecated": false, @@ -24748,9 +24352,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24800,7 +24401,7 @@ }, "\/proxy\/rules\/{ruleId}": { "get": { - "summary": "Get Rule", + "summary": "Get rule", "operationId": "proxyGetRule", "tags": [ "proxy" @@ -24820,7 +24421,8 @@ }, "x-appwrite": { "method": "getRule", - "weight": 316, + "group": null, + "weight": 320, "cookies": false, "type": "", "deprecated": false, @@ -24834,9 +24436,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24860,7 +24459,7 @@ ] }, "delete": { - "summary": "Delete Rule", + "summary": "Delete rule", "operationId": "proxyDeleteRule", "tags": [ "proxy" @@ -24873,7 +24472,8 @@ }, "x-appwrite": { "method": "deleteRule", - "weight": 317, + "group": null, + "weight": 321, "cookies": false, "type": "", "deprecated": false, @@ -24887,9 +24487,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24915,12 +24512,12 @@ }, "\/proxy\/rules\/{ruleId}\/verification": { "patch": { - "summary": "Update Rule Verification Status", + "summary": "Update rule verification status", "operationId": "proxyUpdateRuleVerification", "tags": [ "proxy" ], - "description": "", + "description": "Retry getting verification process of a proxy rule. This endpoint triggers domain verification by checking DNS records (CNAME) against the configured target domain. If verification is successful, a TLS certificate will be automatically provisioned for the domain.", "responses": { "200": { "description": "Rule", @@ -24935,12 +24532,13 @@ }, "x-appwrite": { "method": "updateRuleVerification", - "weight": 318, + "group": null, + "weight": 322, "cookies": false, "type": "", "deprecated": false, "demo": "proxy\/update-rule-verification.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/proxy\/update-rule-verification.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -24949,9 +24547,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24997,7 +24592,8 @@ }, "x-appwrite": { "method": "listBuckets", - "weight": 201, + "group": "buckets", + "weight": 205, "cookies": false, "type": "", "deprecated": false, @@ -25011,9 +24607,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25072,7 +24665,8 @@ }, "x-appwrite": { "method": "createBucket", - "weight": 200, + "group": "buckets", + "weight": 204, "cookies": false, "type": "", "deprecated": false, @@ -25086,9 +24680,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25201,7 +24792,8 @@ }, "x-appwrite": { "method": "getBucket", - "weight": 202, + "group": "buckets", + "weight": 206, "cookies": false, "type": "", "deprecated": false, @@ -25215,9 +24807,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25262,7 +24851,8 @@ }, "x-appwrite": { "method": "updateBucket", - "weight": 203, + "group": "buckets", + "weight": 207, "cookies": false, "type": "", "deprecated": false, @@ -25276,9 +24866,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25388,7 +24975,8 @@ }, "x-appwrite": { "method": "deleteBucket", - "weight": 204, + "group": "buckets", + "weight": 208, "cookies": false, "type": "", "deprecated": false, @@ -25402,9 +24990,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25451,7 +25036,8 @@ }, "x-appwrite": { "method": "listFiles", - "weight": 206, + "group": "files", + "weight": 210, "cookies": false, "type": "", "deprecated": false, @@ -25467,9 +25053,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25539,7 +25122,8 @@ }, "x-appwrite": { "method": "createFile", - "weight": 205, + "group": "files", + "weight": 209, "cookies": false, "type": "upload", "deprecated": false, @@ -25555,9 +25139,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25639,7 +25220,8 @@ }, "x-appwrite": { "method": "getFile", - "weight": 207, + "group": "files", + "weight": 211, "cookies": false, "type": "", "deprecated": false, @@ -25655,9 +25237,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25713,7 +25292,8 @@ }, "x-appwrite": { "method": "updateFile", - "weight": 212, + "group": "files", + "weight": 216, "cookies": false, "type": "", "deprecated": false, @@ -25729,9 +25309,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25791,7 +25368,7 @@ } }, "delete": { - "summary": "Delete File", + "summary": "Delete file", "operationId": "storageDeleteFile", "tags": [ "storage" @@ -25804,7 +25381,8 @@ }, "x-appwrite": { "method": "deleteFile", - "weight": 213, + "group": "files", + "weight": 217, "cookies": false, "type": "", "deprecated": false, @@ -25820,9 +25398,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25873,7 +25448,8 @@ }, "x-appwrite": { "method": "getFileDownload", - "weight": 209, + "group": "files", + "weight": 213, "cookies": false, "type": "location", "deprecated": false, @@ -25889,9 +25465,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25942,7 +25515,8 @@ }, "x-appwrite": { "method": "getFilePreview", - "weight": 208, + "group": "files", + "weight": 212, "cookies": false, "type": "location", "deprecated": false, @@ -25958,9 +25532,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26133,7 +25704,9 @@ "jpeg", "gif", "png", - "webp" + "webp", + "heic", + "avif" ], "x-enum-name": "ImageFormat", "x-enum-keys": [], @@ -26159,7 +25732,8 @@ }, "x-appwrite": { "method": "getFileView", - "weight": 210, + "group": "files", + "weight": 214, "cookies": false, "type": "location", "deprecated": false, @@ -26175,9 +25749,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26220,7 +25791,7 @@ "tags": [ "storage" ], - "description": "", + "description": "Get usage metrics and statistics for all buckets in the project. You can view the total number of buckets, files, storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.\n", "responses": { "200": { "description": "StorageUsage", @@ -26235,12 +25806,13 @@ }, "x-appwrite": { "method": "getUsage", - "weight": 214, + "group": null, + "weight": 218, "cookies": false, "type": "", "deprecated": false, "demo": "storage\/get-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -26249,9 +25821,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26294,7 +25863,7 @@ "tags": [ "storage" ], - "description": "", + "description": "Get usage metrics and statistics a specific bucket in the project. You can view the total number of files, storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.\n", "responses": { "200": { "description": "UsageBuckets", @@ -26309,12 +25878,13 @@ }, "x-appwrite": { "method": "getBucketUsage", - "weight": 215, + "group": null, + "weight": 219, "cookies": false, "type": "", "deprecated": false, "demo": "storage\/get-bucket-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-bucket-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -26323,9 +25893,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26393,7 +25960,8 @@ }, "x-appwrite": { "method": "list", - "weight": 217, + "group": "teams", + "weight": 221, "cookies": false, "type": "", "deprecated": false, @@ -26409,9 +25977,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26471,7 +26036,8 @@ }, "x-appwrite": { "method": "create", - "weight": 216, + "group": "teams", + "weight": 220, "cookies": false, "type": "", "deprecated": false, @@ -26487,9 +26053,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26558,7 +26121,8 @@ }, "x-appwrite": { "method": "get", - "weight": 218, + "group": "teams", + "weight": 222, "cookies": false, "type": "", "deprecated": false, @@ -26574,9 +26138,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "{teamId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26622,7 +26183,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 220, + "group": "teams", + "weight": 224, "cookies": false, "type": "", "deprecated": false, @@ -26638,9 +26200,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "{teamId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26698,7 +26257,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 222, + "group": "teams", + "weight": 226, "cookies": false, "type": "", "deprecated": false, @@ -26714,9 +26274,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26764,7 +26321,8 @@ }, "x-appwrite": { "method": "listLogs", - "weight": 229, + "group": "logs", + "weight": 233, "cookies": false, "type": "", "deprecated": false, @@ -26778,9 +26336,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26824,7 +26379,7 @@ "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.", + "description": "Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint. Hide sensitive attributes from the response by toggling membership privacy in the Console.", "responses": { "200": { "description": "Memberships List", @@ -26839,7 +26394,8 @@ }, "x-appwrite": { "method": "listMemberships", - "weight": 224, + "group": "memberships", + "weight": 228, "cookies": false, "type": "", "deprecated": false, @@ -26855,9 +26411,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/memberships", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26927,7 +26480,8 @@ }, "x-appwrite": { "method": "createMembership", - "weight": 223, + "group": "memberships", + "weight": 227, "cookies": false, "type": "", "deprecated": false, @@ -26943,9 +26497,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27025,7 +26576,7 @@ "tags": [ "teams" ], - "description": "Get a team member by the membership unique id. All team members have read access for this resource.", + "description": "Get a team member by the membership unique id. All team members have read access for this resource. Hide sensitive attributes from the response by toggling membership privacy in the Console.", "responses": { "200": { "description": "Membership", @@ -27040,7 +26591,8 @@ }, "x-appwrite": { "method": "getMembership", - "weight": 225, + "group": "memberships", + "weight": 229, "cookies": false, "type": "", "deprecated": false, @@ -27056,9 +26608,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/memberships", - "offline-key": "{membershipId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27114,7 +26663,8 @@ }, "x-appwrite": { "method": "updateMembership", - "weight": 226, + "group": "memberships", + "weight": 230, "cookies": false, "type": "", "deprecated": false, @@ -27130,9 +26680,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27203,7 +26750,8 @@ }, "x-appwrite": { "method": "deleteMembership", - "weight": 228, + "group": "memberships", + "weight": 232, "cookies": false, "type": "", "deprecated": false, @@ -27219,9 +26767,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27279,7 +26824,8 @@ }, "x-appwrite": { "method": "updateMembershipStatus", - "weight": 227, + "group": "memberships", + "weight": 231, "cookies": false, "type": "", "deprecated": false, @@ -27294,9 +26840,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27378,7 +26921,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 219, + "group": "teams", + "weight": 223, "cookies": false, "type": "", "deprecated": false, @@ -27393,9 +26937,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/prefs", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27440,7 +26981,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 221, + "group": "teams", + "weight": 225, "cookies": false, "type": "", "deprecated": false, @@ -27455,9 +26997,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/prefs", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27523,7 +27062,8 @@ }, "x-appwrite": { "method": "list", - "weight": 239, + "group": "users", + "weight": 243, "cookies": false, "type": "", "deprecated": false, @@ -27537,9 +27077,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27598,7 +27135,8 @@ }, "x-appwrite": { "method": "create", - "weight": 230, + "group": "users", + "weight": 234, "cookies": false, "type": "", "deprecated": false, @@ -27612,9 +27150,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27688,7 +27223,8 @@ }, "x-appwrite": { "method": "createArgon2User", - "weight": 233, + "group": "users", + "weight": 237, "cookies": false, "type": "", "deprecated": false, @@ -27702,9 +27238,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27775,7 +27308,8 @@ }, "x-appwrite": { "method": "createBcryptUser", - "weight": 231, + "group": "users", + "weight": 235, "cookies": false, "type": "", "deprecated": false, @@ -27789,9 +27323,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27842,7 +27373,7 @@ }, "\/users\/identities": { "get": { - "summary": "List Identities", + "summary": "List identities", "operationId": "usersListIdentities", "tags": [ "users" @@ -27862,7 +27393,8 @@ }, "x-appwrite": { "method": "listIdentities", - "weight": 247, + "group": "identities", + "weight": 251, "cookies": false, "type": "", "deprecated": false, @@ -27876,9 +27408,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27932,7 +27461,8 @@ }, "x-appwrite": { "method": "deleteIdentity", - "weight": 270, + "group": "identities", + "weight": 274, "cookies": false, "type": "", "deprecated": false, @@ -27946,9 +27476,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27995,7 +27522,8 @@ }, "x-appwrite": { "method": "createMD5User", - "weight": 232, + "group": "users", + "weight": 236, "cookies": false, "type": "", "deprecated": false, @@ -28009,9 +27537,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28082,7 +27607,8 @@ }, "x-appwrite": { "method": "createPHPassUser", - "weight": 235, + "group": "users", + "weight": 239, "cookies": false, "type": "", "deprecated": false, @@ -28096,9 +27622,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28169,7 +27692,8 @@ }, "x-appwrite": { "method": "createScryptUser", - "weight": 236, + "group": "users", + "weight": 240, "cookies": false, "type": "", "deprecated": false, @@ -28183,9 +27707,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28286,7 +27807,8 @@ }, "x-appwrite": { "method": "createScryptModifiedUser", - "weight": 237, + "group": "users", + "weight": 241, "cookies": false, "type": "", "deprecated": false, @@ -28300,9 +27822,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28391,7 +27910,8 @@ }, "x-appwrite": { "method": "createSHAUser", - "weight": 234, + "group": "users", + "weight": 238, "cookies": false, "type": "", "deprecated": false, @@ -28405,9 +27925,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28483,7 +28000,7 @@ "tags": [ "users" ], - "description": "", + "description": "Get usage metrics and statistics for all users in the project. You can view the total number of users and sessions. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.\n", "responses": { "200": { "description": "UsageUsers", @@ -28498,12 +28015,13 @@ }, "x-appwrite": { "method": "getUsage", - "weight": 272, + "group": null, + "weight": 276, "cookies": false, "type": "", "deprecated": false, "demo": "users\/get-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/get-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -28512,9 +28030,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28572,7 +28087,8 @@ }, "x-appwrite": { "method": "get", - "weight": 240, + "group": "users", + "weight": 244, "cookies": false, "type": "", "deprecated": false, @@ -28586,9 +28102,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28626,7 +28139,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 268, + "group": "users", + "weight": 272, "cookies": false, "type": "", "deprecated": false, @@ -28640,9 +28154,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28689,7 +28200,8 @@ }, "x-appwrite": { "method": "updateEmail", - "weight": 253, + "group": "users", + "weight": 257, "cookies": false, "type": "", "deprecated": false, @@ -28703,9 +28215,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28771,7 +28280,8 @@ }, "x-appwrite": { "method": "createJWT", - "weight": 271, + "group": "sessions", + "weight": 275, "cookies": false, "type": "", "deprecated": false, @@ -28785,9 +28295,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28855,7 +28362,8 @@ }, "x-appwrite": { "method": "updateLabels", - "weight": 249, + "group": "users", + "weight": 253, "cookies": false, "type": "", "deprecated": false, @@ -28869,9 +28377,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28940,7 +28445,8 @@ }, "x-appwrite": { "method": "listLogs", - "weight": 245, + "group": "logs", + "weight": 249, "cookies": false, "type": "", "deprecated": false, @@ -28954,9 +28460,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29016,7 +28519,8 @@ }, "x-appwrite": { "method": "listMemberships", - "weight": 244, + "group": "memberships", + "weight": 248, "cookies": false, "type": "", "deprecated": false, @@ -29030,9 +28534,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29079,7 +28580,8 @@ }, "x-appwrite": { "method": "updateMfa", - "weight": 258, + "group": "users", + "weight": 262, "cookies": false, "type": "", "deprecated": false, @@ -29093,9 +28595,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29141,27 +28640,21 @@ }, "\/users\/{userId}\/mfa\/authenticators\/{type}": { "delete": { - "summary": "Delete Authenticator", + "summary": "Delete authenticator", "operationId": "usersDeleteMfaAuthenticator", "tags": [ "users" ], "description": "Delete an authenticator app.", "responses": { - "200": { - "description": "User", - "content": { - "application\/json": { - "schema": { - "$ref": "#\/components\/schemas\/user" - } - } - } + "204": { + "description": "No content" } }, "x-appwrite": { "method": "deleteMfaAuthenticator", - "weight": 263, + "group": "mfa", + "weight": 267, "cookies": false, "type": "", "deprecated": false, @@ -29175,9 +28668,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29219,7 +28709,7 @@ }, "\/users\/{userId}\/mfa\/factors": { "get": { - "summary": "List Factors", + "summary": "List factors", "operationId": "usersListMfaFactors", "tags": [ "users" @@ -29239,7 +28729,8 @@ }, "x-appwrite": { "method": "listMfaFactors", - "weight": 259, + "group": "mfa", + "weight": 263, "cookies": false, "type": "", "deprecated": false, @@ -29253,9 +28744,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29282,7 +28770,7 @@ }, "\/users\/{userId}\/mfa\/recovery-codes": { "get": { - "summary": "Get MFA Recovery Codes", + "summary": "Get MFA recovery codes", "operationId": "usersGetMfaRecoveryCodes", "tags": [ "users" @@ -29302,7 +28790,8 @@ }, "x-appwrite": { "method": "getMfaRecoveryCodes", - "weight": 260, + "group": "mfa", + "weight": 264, "cookies": false, "type": "", "deprecated": false, @@ -29316,9 +28805,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29343,7 +28829,7 @@ ] }, "put": { - "summary": "Regenerate MFA Recovery Codes", + "summary": "Update MFA recovery codes (regenerate)", "operationId": "usersUpdateMfaRecoveryCodes", "tags": [ "users" @@ -29363,7 +28849,8 @@ }, "x-appwrite": { "method": "updateMfaRecoveryCodes", - "weight": 262, + "group": "mfa", + "weight": 266, "cookies": false, "type": "", "deprecated": false, @@ -29377,9 +28864,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29404,7 +28888,7 @@ ] }, "patch": { - "summary": "Create MFA Recovery Codes", + "summary": "Create MFA recovery codes", "operationId": "usersCreateMfaRecoveryCodes", "tags": [ "users" @@ -29424,7 +28908,8 @@ }, "x-appwrite": { "method": "createMfaRecoveryCodes", - "weight": 261, + "group": "mfa", + "weight": 265, "cookies": false, "type": "", "deprecated": false, @@ -29438,9 +28923,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29487,7 +28969,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 251, + "group": "users", + "weight": 255, "cookies": false, "type": "", "deprecated": false, @@ -29501,9 +28984,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29569,7 +29049,8 @@ }, "x-appwrite": { "method": "updatePassword", - "weight": 252, + "group": "users", + "weight": 256, "cookies": false, "type": "", "deprecated": false, @@ -29583,9 +29064,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29651,7 +29129,8 @@ }, "x-appwrite": { "method": "updatePhone", - "weight": 254, + "group": "users", + "weight": 258, "cookies": false, "type": "", "deprecated": false, @@ -29665,9 +29144,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29733,7 +29209,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 241, + "group": "users", + "weight": 245, "cookies": false, "type": "", "deprecated": false, @@ -29747,9 +29224,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29794,7 +29268,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 256, + "group": "users", + "weight": 260, "cookies": false, "type": "", "deprecated": false, @@ -29808,9 +29283,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29876,7 +29348,8 @@ }, "x-appwrite": { "method": "listSessions", - "weight": 243, + "group": "sessions", + "weight": 247, "cookies": false, "type": "", "deprecated": false, @@ -29890,9 +29363,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29937,7 +29407,8 @@ }, "x-appwrite": { "method": "createSession", - "weight": 264, + "group": "sessions", + "weight": 268, "cookies": false, "type": "", "deprecated": false, @@ -29951,9 +29422,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29991,7 +29459,8 @@ }, "x-appwrite": { "method": "deleteSessions", - "weight": 267, + "group": "sessions", + "weight": 271, "cookies": false, "type": "", "deprecated": false, @@ -30005,9 +29474,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30047,7 +29513,8 @@ }, "x-appwrite": { "method": "deleteSession", - "weight": 266, + "group": "sessions", + "weight": 270, "cookies": false, "type": "", "deprecated": false, @@ -30061,9 +29528,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30120,7 +29584,8 @@ }, "x-appwrite": { "method": "updateStatus", - "weight": 248, + "group": "users", + "weight": 252, "cookies": false, "type": "", "deprecated": false, @@ -30134,9 +29599,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30182,7 +29644,7 @@ }, "\/users\/{userId}\/targets": { "get": { - "summary": "List User Targets", + "summary": "List user targets", "operationId": "usersListTargets", "tags": [ "users" @@ -30202,7 +29664,8 @@ }, "x-appwrite": { "method": "listTargets", - "weight": 246, + "group": "targets", + "weight": 250, "cookies": false, "type": "", "deprecated": false, @@ -30217,9 +29680,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30257,7 +29717,7 @@ ] }, "post": { - "summary": "Create User Target", + "summary": "Create user target", "operationId": "usersCreateTarget", "tags": [ "users" @@ -30277,7 +29737,8 @@ }, "x-appwrite": { "method": "createTarget", - "weight": 238, + "group": "targets", + "weight": 242, "cookies": false, "type": "", "deprecated": false, @@ -30292,9 +29753,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30369,7 +29827,7 @@ }, "\/users\/{userId}\/targets\/{targetId}": { "get": { - "summary": "Get User Target", + "summary": "Get user target", "operationId": "usersGetTarget", "tags": [ "users" @@ -30389,7 +29847,8 @@ }, "x-appwrite": { "method": "getTarget", - "weight": 242, + "group": "targets", + "weight": 246, "cookies": false, "type": "", "deprecated": false, @@ -30404,9 +29863,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30441,7 +29897,7 @@ ] }, "patch": { - "summary": "Update User target", + "summary": "Update user target", "operationId": "usersUpdateTarget", "tags": [ "users" @@ -30461,7 +29917,8 @@ }, "x-appwrite": { "method": "updateTarget", - "weight": 257, + "group": "targets", + "weight": 261, "cookies": false, "type": "", "deprecated": false, @@ -30476,9 +29933,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30552,7 +30006,8 @@ }, "x-appwrite": { "method": "deleteTarget", - "weight": 269, + "group": "targets", + "weight": 273, "cookies": false, "type": "", "deprecated": false, @@ -30567,9 +30022,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30626,7 +30078,8 @@ }, "x-appwrite": { "method": "createToken", - "weight": 265, + "group": "sessions", + "weight": 269, "cookies": false, "type": "", "deprecated": false, @@ -30640,9 +30093,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30710,7 +30160,8 @@ }, "x-appwrite": { "method": "updateEmailVerification", - "weight": 255, + "group": "users", + "weight": 259, "cookies": false, "type": "", "deprecated": false, @@ -30724,9 +30175,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30792,7 +30240,8 @@ }, "x-appwrite": { "method": "updatePhoneVerification", - "weight": 250, + "group": "users", + "weight": 254, "cookies": false, "type": "", "deprecated": false, @@ -30806,9 +30255,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30854,12 +30300,12 @@ }, "\/vcs\/github\/installations\/{installationId}\/providerRepositories": { "get": { - "summary": "List Repositories", + "summary": "List repositories", "operationId": "vcsListRepositories", "tags": [ "vcs" ], - "description": "", + "description": "Get a list of GitHub repositories available through your installation. This endpoint returns repositories with their basic information, detected runtime environments, and latest push dates. You can optionally filter repositories using a search term. Each repository's runtime is automatically detected based on its contents and language statistics. The GitHub installation must be properly configured for this endpoint to work.", "responses": { "200": { "description": "Provider Repositories List", @@ -30874,12 +30320,13 @@ }, "x-appwrite": { "method": "listRepositories", - "weight": 277, + "group": "repositories", + "weight": 281, "cookies": false, "type": "", "deprecated": false, "demo": "vcs\/list-repositories.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/vcs\/list-repositories.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -30888,9 +30335,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30930,7 +30374,7 @@ "tags": [ "vcs" ], - "description": "", + "description": "Create a new GitHub repository through your installation. This endpoint allows you to create either a public or private repository by specifying a name and visibility setting. The repository will be created under your GitHub user account or organization, depending on your installation type. The GitHub installation must be properly configured and have the necessary permissions for repository creation.", "responses": { "200": { "description": "ProviderRepository", @@ -30945,12 +30389,13 @@ }, "x-appwrite": { "method": "createRepository", - "weight": 278, + "group": "repositories", + "weight": 282, "cookies": false, "type": "", "deprecated": false, "demo": "vcs\/create-repository.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/vcs\/create-repository.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -30959,9 +30404,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31017,7 +30459,7 @@ "tags": [ "vcs" ], - "description": "", + "description": "Get detailed information about a specific GitHub repository from your installation. This endpoint returns repository details including its ID, name, visibility status, organization, and latest push date. The GitHub installation must be properly configured and have access to the requested repository for this endpoint to work.", "responses": { "200": { "description": "ProviderRepository", @@ -31032,12 +30474,13 @@ }, "x-appwrite": { "method": "getRepository", - "weight": 279, + "group": "repositories", + "weight": 283, "cookies": false, "type": "", "deprecated": false, "demo": "vcs\/get-repository.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/vcs\/get-repository.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -31046,9 +30489,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31084,12 +30524,12 @@ }, "\/vcs\/github\/installations\/{installationId}\/providerRepositories\/{providerRepositoryId}\/branches": { "get": { - "summary": "List Repository Branches", + "summary": "List repository branches", "operationId": "vcsListRepositoryBranches", "tags": [ "vcs" ], - "description": "", + "description": "Get a list of all branches from a GitHub repository in your installation. This endpoint returns the names of all branches in the repository and their total count. The GitHub installation must be properly configured and have access to the requested repository for this endpoint to work.\n", "responses": { "200": { "description": "Branches List", @@ -31104,12 +30544,13 @@ }, "x-appwrite": { "method": "listRepositoryBranches", - "weight": 280, + "group": "repositories", + "weight": 284, "cookies": false, "type": "", "deprecated": false, "demo": "vcs\/list-repository-branches.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/vcs\/list-repository-branches.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -31118,9 +30559,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31161,7 +30599,7 @@ "tags": [ "vcs" ], - "description": "", + "description": "Get a list of files and directories from a GitHub repository connected to your project. This endpoint returns the contents of a specified repository path, including file names, sizes, and whether each item is a file or directory. The GitHub installation must be properly configured and the repository must be accessible through your installation for this endpoint to work.\n", "responses": { "200": { "description": "VCS Content List", @@ -31176,12 +30614,13 @@ }, "x-appwrite": { "method": "getRepositoryContents", - "weight": 275, + "group": "repositories", + "weight": 279, "cookies": false, "type": "", "deprecated": false, "demo": "vcs\/get-repository-contents.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/vcs\/get-repository-contents.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -31190,9 +30629,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31239,12 +30675,12 @@ }, "\/vcs\/github\/installations\/{installationId}\/providerRepositories\/{providerRepositoryId}\/detection": { "post": { - "summary": "Detect runtime settings from source code", + "summary": "Create runtime settings detection", "operationId": "vcsCreateRepositoryDetection", "tags": [ "vcs" ], - "description": "", + "description": "Analyze a GitHub repository to automatically detect the programming language and runtime environment. This endpoint scans the repository's files and language statistics to determine the appropriate runtime settings for your function. The GitHub installation must be properly configured and the repository must be accessible through your installation for this endpoint to work.", "responses": { "200": { "description": "Detection", @@ -31259,12 +30695,13 @@ }, "x-appwrite": { "method": "createRepositoryDetection", - "weight": 276, + "group": "repositories", + "weight": 280, "cookies": false, "type": "", "deprecated": false, "demo": "vcs\/create-repository-detection.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/vcs\/create-repository-detection.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -31273,9 +30710,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31327,12 +30761,12 @@ }, "\/vcs\/github\/installations\/{installationId}\/repositories\/{repositoryId}": { "patch": { - "summary": "Authorize external deployment", + "summary": "Update external deployment (authorize)", "operationId": "vcsUpdateExternalDeployments", "tags": [ "vcs" ], - "description": "", + "description": "Authorize and create deployments for a GitHub pull request in your project. This endpoint allows external contributions by creating deployments from pull requests, enabling preview environments for code review. The pull request must be open and not previously authorized. The GitHub installation must be properly configured and have access to both the repository and pull request for this endpoint to work.", "responses": { "204": { "description": "No content" @@ -31340,12 +30774,13 @@ }, "x-appwrite": { "method": "updateExternalDeployments", - "weight": 285, + "group": "repositories", + "weight": 289, "cookies": false, "type": "", "deprecated": false, "demo": "vcs\/update-external-deployments.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/vcs\/update-external-deployments.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -31354,9 +30789,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31416,7 +30848,7 @@ "tags": [ "vcs" ], - "description": "", + "description": "List all VCS installations configured for the current project. This endpoint returns a list of installations including their provider, organization, and other configuration details.\n", "responses": { "200": { "description": "Installations List", @@ -31431,7 +30863,8 @@ }, "x-appwrite": { "method": "listInstallations", - "weight": 282, + "group": "installations", + "weight": 286, "cookies": false, "type": "", "deprecated": false, @@ -31445,9 +30878,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31492,7 +30922,7 @@ "tags": [ "vcs" ], - "description": "", + "description": "Get a VCS installation by its unique ID. This endpoint returns the installation's details including its provider, organization, and configuration. ", "responses": { "200": { "description": "Installation", @@ -31507,7 +30937,8 @@ }, "x-appwrite": { "method": "getInstallation", - "weight": 283, + "group": "installations", + "weight": 287, "cookies": false, "type": "", "deprecated": false, @@ -31521,9 +30952,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31547,12 +30975,12 @@ ] }, "delete": { - "summary": "Delete Installation", + "summary": "Delete installation", "operationId": "vcsDeleteInstallation", "tags": [ "vcs" ], - "description": "", + "description": "Delete a VCS installation by its unique ID. This endpoint removes the installation and all its associated repositories from the project.", "responses": { "204": { "description": "No content" @@ -31560,7 +30988,8 @@ }, "x-appwrite": { "method": "deleteInstallation", - "weight": 284, + "group": "installations", + "weight": 288, "cookies": false, "type": "", "deprecated": false, @@ -31574,9 +31003,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31604,85 +31030,67 @@ "tags": [ { "name": "account", - "description": "The Account service allows you to authenticate and manage a user account.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Avatars service aims to help you complete everyday tasks related to your app image, icons, and avatars." }, { "name": "databases", - "description": "The Databases service allows you to create structured collections of documents, query and filter lists of documents", - "x-globalAttributes": [ - "databaseId" - ] + "description": "The Databases 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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Project service allows you to manage all the projects in your Appwrite server." }, { "name": "project", - "description": "The Project service allows you to manage all the projects in your Appwrite server.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Functions Service allows you view, create and manage your Cloud Functions." }, { "name": "proxy", - "description": "The Proxy Service allows you to configure actions for your domains beyond DNS configuration.", - "x-globalAttributes": [] + "description": "The Proxy Service allows you to configure actions for your domains beyond DNS configuration." }, { "name": "graphql", - "description": "The GraphQL API allows you to query and mutate your Appwrite server using GraphQL.", - "x-globalAttributes": [] + "description": "The GraphQL API allows you to query and mutate your Appwrite server using GraphQL." }, { "name": "console", - "description": "The Console service allows you to interact with console relevant informations.", - "x-globalAttributes": [] + "description": "The Console service allows you to interact with console relevant informations." }, { "name": "migrations", - "description": "The Migrations service allows you to migrate third-party data to your Appwrite project.", - "x-globalAttributes": [] + "description": "The Migrations service allows you to migrate third-party data to your Appwrite project." }, { "name": "messaging", - "description": "The Messaging service allows you to send messages to any provider type (SMTP, push notification, SMS, etc.).", - "x-globalAttributes": [] + "description": "The Messaging service allows you to send messages to any provider type (SMTP, push notification, SMS, etc.)." } ], "components": { @@ -32636,30 +32044,6 @@ "migrations" ] }, - "firebaseProjectList": { - "description": "Migrations Firebase 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\/firebaseProject" - }, - "x-example": "" - } - }, - "required": [ - "total", - "projects" - ] - }, "specificationList": { "description": "Specifications List", "type": "object", @@ -32946,6 +32330,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "size": { "type": "integer", "description": "Attribute size.", @@ -32965,6 +32359,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "size" ] }, @@ -33003,6 +32399,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "min": { "type": "integer", "description": "Minimum value to enforce for new documents.", @@ -33030,7 +32436,9 @@ "type", "status", "error", - "required" + "required", + "$createdAt", + "$updatedAt" ] }, "attributeFloat": { @@ -33068,6 +32476,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "min": { "type": "number", "description": "Minimum value to enforce for new documents.", @@ -33095,7 +32513,9 @@ "type", "status", "error", - "required" + "required", + "$createdAt", + "$updatedAt" ] }, "attributeBoolean": { @@ -33133,6 +32553,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "default": { "type": "boolean", "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", @@ -33145,7 +32575,9 @@ "type", "status", "error", - "required" + "required", + "$createdAt", + "$updatedAt" ] }, "attributeEmail": { @@ -33183,6 +32615,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "String format.", @@ -33201,6 +32643,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -33239,6 +32683,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "elements": { "type": "array", "description": "Array of elements in enumerated type.", @@ -33265,6 +32719,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "elements", "format" ] @@ -33304,6 +32760,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "String format.", @@ -33322,6 +32788,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -33360,6 +32828,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "String format.", @@ -33378,6 +32856,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -33416,6 +32896,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "ISO 8601 format.", @@ -33434,6 +32924,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -33472,6 +32964,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "relatedCollection": { "type": "string", "description": "The ID of the related collection.", @@ -33509,6 +33011,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "relatedCollection", "relationType", "twoWay", @@ -33557,6 +33061,16 @@ }, "x-example": [], "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Index creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Index update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" } }, "required": [ @@ -33564,7 +33078,9 @@ "type", "status", "error", - "attributes" + "attributes", + "$createdAt", + "$updatedAt" ] }, "document": { @@ -34716,12 +34232,12 @@ }, "userName": { "type": "string", - "description": "User name.", + "description": "User name. Hide this attribute by toggling membership privacy in the Console.", "x-example": "John Doe" }, "userEmail": { "type": "string", - "description": "User email address.", + "description": "User email address. Hide this attribute by toggling membership privacy in the Console.", "x-example": "john@appwrite.io" }, "teamId": { @@ -34751,7 +34267,7 @@ }, "mfa": { "type": "boolean", - "description": "Multi factor authentication status, true if the user has MFA enabled or false otherwise.", + "description": "Multi factor authentication status, true if the user has MFA enabled or false otherwise. Hide this attribute by toggling membership privacy in the Console.", "x-example": false }, "roles": { @@ -34864,7 +34380,7 @@ }, "schedule": { "type": "string", - "description": "Function execution schedult in CRON format.", + "description": "Function execution schedule in CRON format.", "x-example": "5 4 * * *" }, "timeout": { @@ -34916,7 +34432,7 @@ "specification": { "type": "string", "description": "Machine specification for builds and executions.", - "x-example": "s-0.5vcpu-512mb" + "x-example": "s-1vcpu-512mb" } }, "required": [ @@ -35589,7 +35105,7 @@ "responseBody": { "type": "string", "description": "HTTP response body. This will return empty unless execution is created as synchronous.", - "x-example": "Developers are awesome." + "x-example": "" }, "responseHeaders": { "type": "array", @@ -35832,6 +35348,21 @@ "description": "Whether or not to send session alert emails to users.", "x-example": true }, + "authMembershipsUserName": { + "type": "boolean", + "description": "Whether or not to show user names in the teams membership response.", + "x-example": true + }, + "authMembershipsUserEmail": { + "type": "boolean", + "description": "Whether or not to show user emails in the teams membership response.", + "x-example": true + }, + "authMembershipsMfa": { + "type": "boolean", + "description": "Whether or not to show user MFA status in the teams membership response.", + "x-example": true + }, "oAuthProviders": { "type": "array", "description": "List of Auth Providers.", @@ -35912,6 +35443,17 @@ "description": "SMTP server secure protocol", "x-example": "tls" }, + "pingCount": { + "type": "integer", + "description": "Number of times the ping was received for this project.", + "x-example": 1, + "format": "int32" + }, + "pingedAt": { + "type": "string", + "description": "Last ping datetime in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "authEmailPassword": { "type": "boolean", "description": "Email\/Password auth method status", @@ -36026,6 +35568,9 @@ "authPersonalDataCheck", "authMockNumbers", "authSessionAlerts", + "authMembershipsUserName", + "authMembershipsUserEmail", + "authMembershipsMfa", "oAuthProviders", "platforms", "webhooks", @@ -36039,6 +35584,8 @@ "smtpUsername", "smtpPassword", "smtpSecure", + "pingCount", + "pingedAt", "authEmailPassword", "authUsersAuthMagicURL", "authEmailOtp", @@ -36700,7 +36247,8 @@ "resourceId": { "type": "string", "description": "Resource ID.", - "x-example": "5e5ea5c16897e" + "x-example": "5e5ea5c16897e", + "nullable": true }, "name": { "type": "string", @@ -36712,10 +36260,16 @@ "description": "The value of this metric at the timestamp.", "x-example": 1, "format": "int32" + }, + "estimate": { + "type": "number", + "description": "The estimated value of this metric at the end of the period.", + "x-example": 1, + "format": "double", + "nullable": true } }, "required": [ - "resourceId", "name", "value" ] @@ -36747,6 +36301,24 @@ "x-example": 0, "format": "int32" }, + "storageTotal": { + "type": "integer", + "description": "Total aggregated number of total databases storage in bytes.", + "x-example": 0, + "format": "int32" + }, + "databasesReadsTotal": { + "type": "integer", + "description": "Total number of databases reads.", + "x-example": 0, + "format": "int32" + }, + "databasesWritesTotal": { + "type": "integer", + "description": "Total number of databases writes.", + "x-example": 0, + "format": "int32" + }, "databases": { "type": "array", "description": "Aggregated number of databases per period.", @@ -36770,6 +36342,30 @@ "$ref": "#\/components\/schemas\/metric" }, "x-example": [] + }, + "storage": { + "type": "array", + "description": "An array of the aggregated number of databases storage in bytes per period.", + "items": { + "$ref": "#\/components\/schemas\/metric" + }, + "x-example": [] + }, + "databasesReads": { + "type": "array", + "description": "An array of aggregated number of database reads.", + "items": { + "$ref": "#\/components\/schemas\/metric" + }, + "x-example": [] + }, + "databasesWrites": { + "type": "array", + "description": "An array of aggregated number of database writes.", + "items": { + "$ref": "#\/components\/schemas\/metric" + }, + "x-example": [] } }, "required": [ @@ -36777,9 +36373,15 @@ "databasesTotal", "collectionsTotal", "documentsTotal", + "storageTotal", + "databasesReadsTotal", + "databasesWritesTotal", "databases", "collections", - "documents" + "documents", + "storage", + "databasesReads", + "databasesWrites" ] }, "usageDatabase": { @@ -36803,6 +36405,24 @@ "x-example": 0, "format": "int32" }, + "storageTotal": { + "type": "integer", + "description": "Total aggregated number of total storage used in bytes.", + "x-example": 0, + "format": "int32" + }, + "databaseReadsTotal": { + "type": "integer", + "description": "Total number of databases reads.", + "x-example": 0, + "format": "int32" + }, + "databaseWritesTotal": { + "type": "integer", + "description": "Total number of databases writes.", + "x-example": 0, + "format": "int32" + }, "collections": { "type": "array", "description": "Aggregated number of collections per period.", @@ -36818,14 +36438,44 @@ "$ref": "#\/components\/schemas\/metric" }, "x-example": [] + }, + "storage": { + "type": "array", + "description": "Aggregated storage used in bytes per period.", + "items": { + "$ref": "#\/components\/schemas\/metric" + }, + "x-example": [] + }, + "databaseReads": { + "type": "array", + "description": "An array of aggregated number of database reads.", + "items": { + "$ref": "#\/components\/schemas\/metric" + }, + "x-example": [] + }, + "databaseWrites": { + "type": "array", + "description": "An array of aggregated number of database writes.", + "items": { + "$ref": "#\/components\/schemas\/metric" + }, + "x-example": [] } }, "required": [ "range", "collectionsTotal", "documentsTotal", + "storageTotal", + "databaseReadsTotal", + "databaseWritesTotal", "collections", - "documents" + "documents", + "storage", + "databaseReads", + "databaseWrites" ] }, "usageCollection": { @@ -37002,6 +36652,20 @@ "$ref": "#\/components\/schemas\/metric" }, "x-example": [] + }, + "imageTransformations": { + "type": "array", + "description": "Aggregated number of files transformations per period.", + "items": { + "$ref": "#\/components\/schemas\/metric" + }, + "x-example": [] + }, + "imageTransformationsTotal": { + "type": "integer", + "description": "Total aggregated number of files transformations.", + "x-example": 0, + "format": "int32" } }, "required": [ @@ -37009,7 +36673,9 @@ "filesTotal", "filesStorageTotal", "files", - "storage" + "storage", + "imageTransformations", + "imageTransformationsTotal" ] }, "usageFunctions": { @@ -37366,6 +37032,12 @@ "x-example": 0, "format": "int32" }, + "databasesStorageTotal": { + "type": "integer", + "description": "Total aggregated sum of databases storage size (in bytes).", + "x-example": 0, + "format": "int32" + }, "usersTotal": { "type": "integer", "description": "Total aggregated number of users.", @@ -37414,6 +37086,18 @@ "x-example": 0, "format": "int32" }, + "databasesReadsTotal": { + "type": "integer", + "description": "Total number of databases reads.", + "x-example": 0, + "format": "int32" + }, + "databasesWritesTotal": { + "type": "integer", + "description": "Total number of databases writes.", + "x-example": 0, + "format": "int32" + }, "requests": { "type": "array", "description": "Aggregated number of requests per period.", @@ -37462,6 +37146,14 @@ }, "x-example": [] }, + "databasesStorageBreakdown": { + "type": "array", + "description": "An array of the aggregated breakdown of storage usage by databases.", + "items": { + "$ref": "#\/components\/schemas\/metricBreakdown" + }, + "x-example": [] + }, "executionsMbSecondsBreakdown": { "type": "array", "description": "Aggregated breakdown in totals of execution mbSeconds by functions.", @@ -37485,12 +37177,63 @@ "$ref": "#\/components\/schemas\/metricBreakdown" }, "x-example": [] + }, + "authPhoneTotal": { + "type": "integer", + "description": "Total aggregated number of phone auth.", + "x-example": 0, + "format": "int32" + }, + "authPhoneEstimate": { + "type": "number", + "description": "Estimated total aggregated cost of phone auth.", + "x-example": 0, + "format": "double" + }, + "authPhoneCountryBreakdown": { + "type": "array", + "description": "Aggregated breakdown in totals of phone auth by country.", + "items": { + "$ref": "#\/components\/schemas\/metricBreakdown" + }, + "x-example": [] + }, + "databasesReads": { + "type": "array", + "description": "An array of aggregated number of database reads.", + "items": { + "$ref": "#\/components\/schemas\/metric" + }, + "x-example": [] + }, + "databasesWrites": { + "type": "array", + "description": "An array of aggregated number of database writes.", + "items": { + "$ref": "#\/components\/schemas\/metric" + }, + "x-example": [] + }, + "imageTransformations": { + "type": "array", + "description": "An array of aggregated number of image transformations.", + "items": { + "$ref": "#\/components\/schemas\/metric" + }, + "x-example": [] + }, + "imageTransformationsTotal": { + "type": "integer", + "description": "Total aggregated number of image transformations.", + "x-example": 0, + "format": "int32" } }, "required": [ "executionsTotal", "documentsTotal", "databasesTotal", + "databasesStorageTotal", "usersTotal", "filesStorageTotal", "functionsStorageTotal", @@ -37499,15 +37242,25 @@ "bucketsTotal", "executionsMbSecondsTotal", "buildsMbSecondsTotal", + "databasesReadsTotal", + "databasesWritesTotal", "requests", "network", "users", "executions", "executionsBreakdown", "bucketsBreakdown", + "databasesStorageBreakdown", "executionsMbSecondsBreakdown", "buildsMbSecondsBreakdown", - "functionsStorageBreakdown" + "functionsStorageBreakdown", + "authPhoneTotal", + "authPhoneEstimate", + "authPhoneCountryBreakdown", + "databasesReads", + "databasesWrites", + "imageTransformations", + "imageTransformationsTotal" ] }, "headers": { @@ -37554,7 +37307,7 @@ "slug": { "type": "string", "description": "Size slug.", - "x-example": "s-0.5vcpu-512mb" + "x-example": "s-1vcpu-512mb" } }, "required": [ @@ -38192,7 +37945,7 @@ "name": { "type": "string", "description": "Target Name.", - "x-example": "Aegon apple token" + "x-example": "Apple iPhone 12" }, "userId": { "type": "string", @@ -38214,6 +37967,11 @@ "type": "string", "description": "The target identifier.", "x-example": "token" + }, + "expired": { + "type": "boolean", + "description": "Is the target expired.", + "x-example": false } }, "required": [ @@ -38223,7 +37981,8 @@ "name", "userId", "providerType", - "identifier" + "identifier", + "expired" ] }, "migration": { @@ -38237,7 +37996,7 @@ }, "$createdAt": { "type": "string", - "description": "Variable creation date in ISO 8601 format.", + "description": "Migration creation date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" }, "$updatedAt": { @@ -38260,9 +38019,14 @@ "description": "A string containing the type of source of the migration.", "x-example": "Appwrite" }, + "destination": { + "type": "string", + "description": "A string containing the type of destination of the migration.", + "x-example": "Appwrite" + }, "resources": { "type": "array", - "description": "Resources to migration.", + "description": "Resources to migrate.", "items": { "type": "string" }, @@ -38296,6 +38060,7 @@ "status", "stage", "source", + "destination", "resources", "statusCounters", "resourceData", @@ -38371,26 +38136,6 @@ "size", "version" ] - }, - "firebaseProject": { - "description": "MigrationFirebaseProject", - "type": "object", - "properties": { - "projectId": { - "type": "string", - "description": "Project ID.", - "x-example": "my-project" - }, - "displayName": { - "type": "string", - "description": "Project display name.", - "x-example": "My Project" - } - }, - "required": [ - "projectId", - "displayName" - ] } }, "securitySchemes": { diff --git a/app/config/specs/open-api3-1.6.x-server.json b/app/config/specs/open-api3-1.6.x-server.json index ef41688ca83..e3d2255c8d8 100644 --- a/app/config/specs/open-api3-1.6.x-server.json +++ b/app/config/specs/open-api3-1.6.x-server.json @@ -1,7 +1,7 @@ { "openapi": "3.0.0", "info": { - "version": "1.6.0", + "version": "1.6.2", "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", @@ -18,6 +18,9 @@ "servers": [ { "url": "https:\/\/cloud.appwrite.io\/v1" + }, + { + "url": "https:\/\/.cloud.appwrite.io\/v1" } ], "paths": { @@ -43,7 +46,8 @@ }, "x-appwrite": { "method": "get", - "weight": 8, + "group": "account", + "weight": 9, "cookies": false, "type": "", "deprecated": false, @@ -58,9 +62,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -95,7 +96,8 @@ }, "x-appwrite": { "method": "create", - "weight": 7, + "group": "account", + "weight": 8, "cookies": false, "type": "", "deprecated": false, @@ -110,9 +112,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -182,7 +181,8 @@ }, "x-appwrite": { "method": "updateEmail", - "weight": 33, + "group": "account", + "weight": 34, "cookies": false, "type": "", "deprecated": false, @@ -197,9 +197,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -241,7 +238,7 @@ }, "\/account\/identities": { "get": { - "summary": "List Identities", + "summary": "List identities", "operationId": "accountListIdentities", "tags": [ "account" @@ -261,7 +258,8 @@ }, "x-appwrite": { "method": "listIdentities", - "weight": 56, + "group": "identities", + "weight": 57, "cookies": false, "type": "", "deprecated": false, @@ -276,9 +274,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/identities", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -323,7 +318,8 @@ }, "x-appwrite": { "method": "deleteIdentity", - "weight": 57, + "group": "identities", + "weight": 58, "cookies": false, "type": "", "deprecated": false, @@ -338,9 +334,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -389,7 +382,8 @@ }, "x-appwrite": { "method": "createJWT", - "weight": 28, + "group": "tokens", + "weight": 29, "cookies": false, "type": "", "deprecated": false, @@ -404,9 +398,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -440,7 +431,8 @@ }, "x-appwrite": { "method": "listLogs", - "weight": 30, + "group": "logs", + "weight": 31, "cookies": false, "type": "", "deprecated": false, @@ -455,9 +447,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -509,7 +498,8 @@ }, "x-appwrite": { "method": "updateMFA", - "weight": 43, + "group": "mfa", + "weight": 44, "cookies": false, "type": "", "deprecated": false, @@ -524,9 +514,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -562,7 +549,7 @@ }, "\/account\/mfa\/authenticators\/{type}": { "post": { - "summary": "Create Authenticator", + "summary": "Create authenticator", "operationId": "accountCreateMfaAuthenticator", "tags": [ "account" @@ -582,7 +569,8 @@ }, "x-appwrite": { "method": "createMfaAuthenticator", - "weight": 45, + "group": "mfa", + "weight": 46, "cookies": false, "type": "", "deprecated": false, @@ -597,9 +585,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -631,7 +616,7 @@ ] }, "put": { - "summary": "Verify Authenticator", + "summary": "Update authenticator (confirmation)", "operationId": "accountUpdateMfaAuthenticator", "tags": [ "account" @@ -651,7 +636,8 @@ }, "x-appwrite": { "method": "updateMfaAuthenticator", - "weight": 46, + "group": "mfa", + "weight": 47, "cookies": false, "type": "", "deprecated": false, @@ -666,9 +652,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -719,7 +702,7 @@ } }, "delete": { - "summary": "Delete Authenticator", + "summary": "Delete authenticator", "operationId": "accountDeleteMfaAuthenticator", "tags": [ "account" @@ -732,7 +715,8 @@ }, "x-appwrite": { "method": "deleteMfaAuthenticator", - "weight": 50, + "group": "mfa", + "weight": 51, "cookies": false, "type": "", "deprecated": false, @@ -747,9 +731,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -783,7 +764,7 @@ }, "\/account\/mfa\/challenge": { "post": { - "summary": "Create MFA Challenge", + "summary": "Create MFA challenge", "operationId": "accountCreateMfaChallenge", "tags": [ "account" @@ -803,7 +784,8 @@ }, "x-appwrite": { "method": "createMfaChallenge", - "weight": 51, + "group": "mfa", + "weight": 52, "cookies": false, "type": "", "deprecated": false, @@ -818,9 +800,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -859,17 +838,17 @@ } }, "put": { - "summary": "Create MFA Challenge (confirmation)", + "summary": "Update MFA challenge (confirmation)", "operationId": "accountUpdateMfaChallenge", "tags": [ "account" ], "description": "Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", "responses": { - "204": { - "description": "No content", + "200": { + "description": "Session", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/session" } @@ -879,7 +858,8 @@ }, "x-appwrite": { "method": "updateMfaChallenge", - "weight": 52, + "group": "mfa", + "weight": 53, "cookies": false, "type": "", "deprecated": false, @@ -894,9 +874,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -938,7 +915,7 @@ }, "\/account\/mfa\/factors": { "get": { - "summary": "List Factors", + "summary": "List factors", "operationId": "accountListMfaFactors", "tags": [ "account" @@ -958,7 +935,8 @@ }, "x-appwrite": { "method": "listMfaFactors", - "weight": 44, + "group": "mfa", + "weight": 45, "cookies": false, "type": "", "deprecated": false, @@ -973,9 +951,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -992,7 +967,7 @@ }, "\/account\/mfa\/recovery-codes": { "get": { - "summary": "Get MFA Recovery Codes", + "summary": "List MFA recovery codes", "operationId": "accountGetMfaRecoveryCodes", "tags": [ "account" @@ -1012,7 +987,8 @@ }, "x-appwrite": { "method": "getMfaRecoveryCodes", - "weight": 49, + "group": "mfa", + "weight": 50, "cookies": false, "type": "", "deprecated": false, @@ -1027,9 +1003,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1044,7 +1017,7 @@ ] }, "post": { - "summary": "Create MFA Recovery Codes", + "summary": "Create MFA recovery codes", "operationId": "accountCreateMfaRecoveryCodes", "tags": [ "account" @@ -1064,7 +1037,8 @@ }, "x-appwrite": { "method": "createMfaRecoveryCodes", - "weight": 47, + "group": "mfa", + "weight": 48, "cookies": false, "type": "", "deprecated": false, @@ -1079,9 +1053,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1096,7 +1067,7 @@ ] }, "patch": { - "summary": "Regenerate MFA Recovery Codes", + "summary": "Update MFA recovery codes (regenerate)", "operationId": "accountUpdateMfaRecoveryCodes", "tags": [ "account" @@ -1116,7 +1087,8 @@ }, "x-appwrite": { "method": "updateMfaRecoveryCodes", - "weight": 48, + "group": "mfa", + "weight": 49, "cookies": false, "type": "", "deprecated": false, @@ -1131,9 +1103,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1170,7 +1139,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 31, + "group": "account", + "weight": 32, "cookies": false, "type": "", "deprecated": false, @@ -1185,9 +1155,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1243,7 +1210,8 @@ }, "x-appwrite": { "method": "updatePassword", - "weight": 32, + "group": "account", + "weight": 33, "cookies": false, "type": "", "deprecated": false, @@ -1258,9 +1226,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1321,7 +1286,8 @@ }, "x-appwrite": { "method": "updatePhone", - "weight": 34, + "group": "account", + "weight": 35, "cookies": false, "type": "", "deprecated": false, @@ -1336,9 +1302,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1400,7 +1363,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 29, + "group": "account", + "weight": 30, "cookies": false, "type": "", "deprecated": false, @@ -1415,9 +1379,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/prefs", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1452,7 +1413,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 35, + "group": "account", + "weight": 36, "cookies": false, "type": "", "deprecated": false, @@ -1467,9 +1429,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/prefs", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1525,7 +1484,8 @@ }, "x-appwrite": { "method": "createRecovery", - "weight": 37, + "group": "recovery", + "weight": 38, "cookies": false, "type": "", "deprecated": false, @@ -1543,9 +1503,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1585,7 +1542,7 @@ } }, "put": { - "summary": "Create password recovery (confirmation)", + "summary": "Update password recovery (confirmation)", "operationId": "accountUpdateRecovery", "tags": [ "account" @@ -1605,7 +1562,8 @@ }, "x-appwrite": { "method": "updateRecovery", - "weight": 38, + "group": "recovery", + "weight": 39, "cookies": false, "type": "", "deprecated": false, @@ -1620,9 +1578,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1690,7 +1645,8 @@ }, "x-appwrite": { "method": "listSessions", - "weight": 10, + "group": "sessions", + "weight": 11, "cookies": false, "type": "", "deprecated": false, @@ -1705,9 +1661,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/sessions", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1735,7 +1688,8 @@ }, "x-appwrite": { "method": "deleteSessions", - "weight": 11, + "group": "sessions", + "weight": 12, "cookies": false, "type": "", "deprecated": false, @@ -1750,9 +1704,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1789,7 +1740,8 @@ }, "x-appwrite": { "method": "createAnonymousSession", - "weight": 16, + "group": "sessions", + "weight": 17, "cookies": false, "type": "", "deprecated": false, @@ -1804,9 +1756,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1840,7 +1789,8 @@ }, "x-appwrite": { "method": "createEmailPasswordSession", - "weight": 15, + "group": "sessions", + "weight": 16, "cookies": false, "type": "", "deprecated": false, @@ -1855,9 +1805,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1916,7 +1863,8 @@ }, "x-appwrite": { "method": "updateMagicURLSession", - "weight": 25, + "group": "sessions", + "weight": 26, "cookies": false, "type": "", "deprecated": true, @@ -1931,9 +1879,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1992,7 +1937,8 @@ }, "x-appwrite": { "method": "updatePhoneSession", - "weight": 26, + "group": "sessions", + "weight": 27, "cookies": false, "type": "", "deprecated": true, @@ -2007,9 +1953,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2068,7 +2011,8 @@ }, "x-appwrite": { "method": "createSession", - "weight": 17, + "group": "sessions", + "weight": 18, "cookies": false, "type": "", "deprecated": false, @@ -2083,9 +2027,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2144,7 +2085,8 @@ }, "x-appwrite": { "method": "getSession", - "weight": 12, + "group": "sessions", + "weight": 13, "cookies": false, "type": "", "deprecated": false, @@ -2159,9 +2101,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/sessions", - "offline-key": "{sessionId}", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -2208,7 +2147,8 @@ }, "x-appwrite": { "method": "updateSession", - "weight": 14, + "group": "sessions", + "weight": 15, "cookies": false, "type": "", "deprecated": false, @@ -2223,9 +2163,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -2265,7 +2202,8 @@ }, "x-appwrite": { "method": "deleteSession", - "weight": 13, + "group": "sessions", + "weight": 14, "cookies": false, "type": "", "deprecated": false, @@ -2280,9 +2218,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -2331,7 +2266,8 @@ }, "x-appwrite": { "method": "updateStatus", - "weight": 36, + "group": "account", + "weight": 37, "cookies": false, "type": "", "deprecated": false, @@ -2346,9 +2282,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -2385,7 +2318,8 @@ }, "x-appwrite": { "method": "createEmailToken", - "weight": 24, + "group": "tokens", + "weight": 25, "cookies": false, "type": "", "deprecated": false, @@ -2393,16 +2327,16 @@ "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-email.md", "rate-limit": 10, "rate-time": 3600, - "rate-key": "url:{url},email:{param-email}", + "rate-key": [ + "url:{url},email:{param-email}", + "url:{url},ip:{ip}" + ], "scope": "sessions.write", "platforms": [ "server", "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2451,7 +2385,7 @@ "tags": [ "account" ], - "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. 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 [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) 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.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", + "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. 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 [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) endpoint to complete the login process. The link sent to the user's email address is valid for 1 hour.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", "responses": { "201": { "description": "Token", @@ -2466,7 +2400,8 @@ }, "x-appwrite": { "method": "createMagicURLToken", - "weight": 23, + "group": "tokens", + "weight": 24, "cookies": false, "type": "", "deprecated": false, @@ -2484,9 +2419,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2548,7 +2480,8 @@ }, "x-appwrite": { "method": "createOAuth2Token", - "weight": 22, + "group": "tokens", + "weight": 23, "cookies": false, "type": "webAuth", "deprecated": false, @@ -2563,9 +2496,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2578,7 +2508,7 @@ "parameters": [ { "name": "provider", - "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", + "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", "required": true, "schema": { "type": "string", @@ -2598,6 +2528,7 @@ "dropbox", "etsy", "facebook", + "figma", "github", "gitlab", "google", @@ -2691,7 +2622,8 @@ }, "x-appwrite": { "method": "createPhoneToken", - "weight": 27, + "group": "tokens", + "weight": 28, "cookies": false, "type": "", "deprecated": false, @@ -2709,9 +2641,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2770,7 +2699,8 @@ }, "x-appwrite": { "method": "createVerification", - "weight": 39, + "group": "verification", + "weight": 40, "cookies": false, "type": "", "deprecated": false, @@ -2785,9 +2715,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -2821,7 +2748,7 @@ } }, "put": { - "summary": "Create email verification (confirmation)", + "summary": "Update email verification (confirmation)", "operationId": "accountUpdateVerification", "tags": [ "account" @@ -2841,7 +2768,8 @@ }, "x-appwrite": { "method": "updateVerification", - "weight": 40, + "group": "verification", + "weight": 41, "cookies": false, "type": "", "deprecated": false, @@ -2856,9 +2784,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -2920,7 +2845,8 @@ }, "x-appwrite": { "method": "createPhoneVerification", - "weight": 41, + "group": "verification", + "weight": 42, "cookies": false, "type": "", "deprecated": false, @@ -2938,9 +2864,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -2975,7 +2898,8 @@ }, "x-appwrite": { "method": "updatePhoneVerification", - "weight": 42, + "group": "verification", + "weight": 43, "cookies": false, "type": "", "deprecated": false, @@ -2990,9 +2914,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -3047,7 +2968,8 @@ }, "x-appwrite": { "method": "getBrowser", - "weight": 59, + "group": null, + "weight": 60, "cookies": false, "type": "location", "deprecated": false, @@ -3063,9 +2985,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -3177,7 +3096,8 @@ }, "x-appwrite": { "method": "getCreditCard", - "weight": 58, + "group": null, + "weight": 59, "cookies": false, "type": "location", "deprecated": false, @@ -3193,9 +3113,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -3212,7 +3129,7 @@ "parameters": [ { "name": "code", - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro.", + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", "required": true, "schema": { "type": "string", @@ -3233,7 +3150,8 @@ "union-china-pay", "visa", "mir", - "maestro" + "maestro", + "rupay" ], "x-enum-name": "CreditCard", "x-enum-keys": [ @@ -3252,7 +3170,8 @@ "Union China Pay", "Visa", "MIR", - "Maestro" + "Maestro", + "Rupay" ] }, "in": "path" @@ -3311,7 +3230,8 @@ }, "x-appwrite": { "method": "getFavicon", - "weight": 62, + "group": null, + "weight": 63, "cookies": false, "type": "location", "deprecated": false, @@ -3327,9 +3247,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -3373,7 +3290,8 @@ }, "x-appwrite": { "method": "getFlag", - "weight": 60, + "group": null, + "weight": 61, "cookies": false, "type": "location", "deprecated": false, @@ -3389,9 +3307,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -3865,7 +3780,8 @@ }, "x-appwrite": { "method": "getImage", - "weight": 61, + "group": null, + "weight": 62, "cookies": false, "type": "location", "deprecated": false, @@ -3881,9 +3797,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -3951,7 +3864,8 @@ }, "x-appwrite": { "method": "getInitials", - "weight": 64, + "group": null, + "weight": 65, "cookies": false, "type": "location", "deprecated": false, @@ -3967,9 +3881,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -4047,7 +3958,8 @@ }, "x-appwrite": { "method": "getQR", - "weight": 63, + "group": null, + "weight": 64, "cookies": false, "type": "location", "deprecated": false, @@ -4063,9 +3975,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -4150,7 +4059,8 @@ }, "x-appwrite": { "method": "list", - "weight": 69, + "group": "databases", + "weight": 70, "cookies": false, "type": "", "deprecated": false, @@ -4164,9 +4074,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4226,7 +4133,8 @@ }, "x-appwrite": { "method": "create", - "weight": 68, + "group": "databases", + "weight": 69, "cookies": false, "type": "", "deprecated": false, @@ -4240,9 +4148,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4308,7 +4213,8 @@ }, "x-appwrite": { "method": "get", - "weight": 70, + "group": "databases", + "weight": 71, "cookies": false, "type": "", "deprecated": false, @@ -4322,9 +4228,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4370,7 +4273,8 @@ }, "x-appwrite": { "method": "update", - "weight": 72, + "group": "databases", + "weight": 73, "cookies": false, "type": "", "deprecated": false, @@ -4384,9 +4288,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4449,7 +4350,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 73, + "group": "databases", + "weight": 74, "cookies": false, "type": "", "deprecated": false, @@ -4463,9 +4365,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4513,7 +4412,8 @@ }, "x-appwrite": { "method": "listCollections", - "weight": 75, + "group": "collections", + "weight": 76, "cookies": false, "type": "", "deprecated": false, @@ -4527,9 +4427,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4599,7 +4496,8 @@ }, "x-appwrite": { "method": "createCollection", - "weight": 74, + "group": "collections", + "weight": 75, "cookies": false, "type": "", "deprecated": false, @@ -4613,9 +4511,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4706,7 +4601,8 @@ }, "x-appwrite": { "method": "getCollection", - "weight": 76, + "group": "collections", + "weight": 77, "cookies": false, "type": "", "deprecated": false, @@ -4720,9 +4616,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4778,7 +4671,8 @@ }, "x-appwrite": { "method": "updateCollection", - "weight": 78, + "group": "collections", + "weight": 79, "cookies": false, "type": "", "deprecated": false, @@ -4792,9 +4686,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4880,7 +4771,8 @@ }, "x-appwrite": { "method": "deleteCollection", - "weight": 79, + "group": "collections", + "weight": 80, "cookies": false, "type": "", "deprecated": false, @@ -4894,9 +4786,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4954,7 +4843,8 @@ }, "x-appwrite": { "method": "listAttributes", - "weight": 90, + "group": "attributes", + "weight": 91, "cookies": false, "type": "", "deprecated": false, @@ -4968,9 +4858,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5041,7 +4928,8 @@ }, "x-appwrite": { "method": "createBooleanAttribute", - "weight": 87, + "group": "attributes", + "weight": 88, "cookies": false, "type": "", "deprecated": false, @@ -5055,9 +4943,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5140,7 +5025,7 @@ "200": { "description": "AttributeBoolean", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeBoolean" } @@ -5150,7 +5035,8 @@ }, "x-appwrite": { "method": "updateBooleanAttribute", - "weight": 99, + "group": "attributes", + "weight": 100, "cookies": false, "type": "", "deprecated": false, @@ -5164,9 +5050,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5264,7 +5147,8 @@ }, "x-appwrite": { "method": "createDatetimeAttribute", - "weight": 88, + "group": "attributes", + "weight": 89, "cookies": false, "type": "", "deprecated": false, @@ -5278,9 +5162,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5363,7 +5244,7 @@ "200": { "description": "AttributeDatetime", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeDatetime" } @@ -5373,7 +5254,8 @@ }, "x-appwrite": { "method": "updateDatetimeAttribute", - "weight": 100, + "group": "attributes", + "weight": 101, "cookies": false, "type": "", "deprecated": false, @@ -5387,9 +5269,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5487,7 +5366,8 @@ }, "x-appwrite": { "method": "createEmailAttribute", - "weight": 81, + "group": "attributes", + "weight": 82, "cookies": false, "type": "", "deprecated": false, @@ -5501,9 +5381,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5586,7 +5463,7 @@ "200": { "description": "AttributeEmail", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeEmail" } @@ -5596,7 +5473,8 @@ }, "x-appwrite": { "method": "updateEmailAttribute", - "weight": 93, + "group": "attributes", + "weight": 94, "cookies": false, "type": "", "deprecated": false, @@ -5610,9 +5488,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5710,7 +5585,8 @@ }, "x-appwrite": { "method": "createEnumAttribute", - "weight": 82, + "group": "attributes", + "weight": 83, "cookies": false, "type": "", "deprecated": false, @@ -5724,9 +5600,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5818,7 +5691,7 @@ "200": { "description": "AttributeEnum", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeEnum" } @@ -5828,7 +5701,8 @@ }, "x-appwrite": { "method": "updateEnumAttribute", - "weight": 94, + "group": "attributes", + "weight": 95, "cookies": false, "type": "", "deprecated": false, @@ -5842,9 +5716,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5951,7 +5822,8 @@ }, "x-appwrite": { "method": "createFloatAttribute", - "weight": 86, + "group": "attributes", + "weight": 87, "cookies": false, "type": "", "deprecated": false, @@ -5965,9 +5837,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6060,7 +5929,7 @@ "200": { "description": "AttributeFloat", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeFloat" } @@ -6070,7 +5939,8 @@ }, "x-appwrite": { "method": "updateFloatAttribute", - "weight": 98, + "group": "attributes", + "weight": 99, "cookies": false, "type": "", "deprecated": false, @@ -6084,9 +5954,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6164,8 +6031,6 @@ }, "required": [ "required", - "min", - "max", "default" ] } @@ -6196,7 +6061,8 @@ }, "x-appwrite": { "method": "createIntegerAttribute", - "weight": 85, + "group": "attributes", + "weight": 86, "cookies": false, "type": "", "deprecated": false, @@ -6210,9 +6076,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6305,7 +6168,7 @@ "200": { "description": "AttributeInteger", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeInteger" } @@ -6315,7 +6178,8 @@ }, "x-appwrite": { "method": "updateIntegerAttribute", - "weight": 97, + "group": "attributes", + "weight": 98, "cookies": false, "type": "", "deprecated": false, @@ -6329,9 +6193,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6409,8 +6270,6 @@ }, "required": [ "required", - "min", - "max", "default" ] } @@ -6441,7 +6300,8 @@ }, "x-appwrite": { "method": "createIpAttribute", - "weight": 83, + "group": "attributes", + "weight": 84, "cookies": false, "type": "", "deprecated": false, @@ -6455,9 +6315,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6540,7 +6397,7 @@ "200": { "description": "AttributeIP", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeIp" } @@ -6550,7 +6407,8 @@ }, "x-appwrite": { "method": "updateIpAttribute", - "weight": 95, + "group": "attributes", + "weight": 96, "cookies": false, "type": "", "deprecated": false, @@ -6564,9 +6422,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6664,7 +6519,8 @@ }, "x-appwrite": { "method": "createRelationshipAttribute", - "weight": 89, + "group": "attributes", + "weight": 90, "cookies": false, "type": "", "deprecated": false, @@ -6678,9 +6534,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6798,7 +6651,8 @@ }, "x-appwrite": { "method": "createStringAttribute", - "weight": 80, + "group": "attributes", + "weight": 81, "cookies": false, "type": "", "deprecated": false, @@ -6812,9 +6666,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6908,7 +6759,7 @@ "200": { "description": "AttributeString", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeString" } @@ -6918,7 +6769,8 @@ }, "x-appwrite": { "method": "updateStringAttribute", - "weight": 92, + "group": "attributes", + "weight": 93, "cookies": false, "type": "", "deprecated": false, @@ -6932,9 +6784,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6997,7 +6846,7 @@ "size": { "type": "integer", "description": "Maximum size of the string attribute.", - "x-example": null + "x-example": 1 }, "newKey": { "type": "string", @@ -7037,7 +6886,8 @@ }, "x-appwrite": { "method": "createUrlAttribute", - "weight": 84, + "group": "attributes", + "weight": 85, "cookies": false, "type": "", "deprecated": false, @@ -7051,9 +6901,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -7136,7 +6983,7 @@ "200": { "description": "AttributeURL", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeUrl" } @@ -7146,7 +6993,8 @@ }, "x-appwrite": { "method": "updateUrlAttribute", - "weight": 96, + "group": "attributes", + "weight": 97, "cookies": false, "type": "", "deprecated": false, @@ -7160,9 +7008,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -7291,7 +7136,8 @@ }, "x-appwrite": { "method": "getAttribute", - "weight": 91, + "group": "attributes", + "weight": 92, "cookies": false, "type": "", "deprecated": false, @@ -7305,9 +7151,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -7365,7 +7208,8 @@ }, "x-appwrite": { "method": "deleteAttribute", - "weight": 102, + "group": "attributes", + "weight": 103, "cookies": false, "type": "", "deprecated": false, @@ -7379,9 +7223,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -7438,7 +7279,7 @@ "200": { "description": "AttributeRelationship", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeRelationship" } @@ -7448,7 +7289,8 @@ }, "x-appwrite": { "method": "updateRelationshipAttribute", - "weight": 101, + "group": "attributes", + "weight": 102, "cookies": false, "type": "", "deprecated": false, @@ -7462,9 +7304,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -7559,7 +7398,8 @@ }, "x-appwrite": { "method": "listDocuments", - "weight": 108, + "group": "documents", + "weight": 109, "cookies": false, "type": "", "deprecated": false, @@ -7575,9 +7415,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -7648,7 +7485,8 @@ }, "x-appwrite": { "method": "createDocument", - "weight": 107, + "group": "documents", + "weight": 108, "cookies": false, "type": "", "deprecated": false, @@ -7664,9 +7502,31 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", + "methods": [ + { + "name": "createDocument", + "parameters": [ + "databaseId", + "collectionId", + "documentId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "collectionId", + "documentId", + "data" + ], + "responses": [ + { + "code": 201, + "model": "#\/components\/schemas\/document" + } + ], + "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + } + ], "auth": { "Project": [], "Session": [] @@ -7725,12 +7585,288 @@ "items": { "type": "string" } + }, + "documents": { + "type": "array", + "description": "Array of documents data as JSON objects.", + "x-example": null, + "items": { + "type": "object" + } } - }, - "required": [ - "documentId", - "data" - ] + } + } + } + } + } + }, + "put": { + "summary": "Create or update documents", + "operationId": "databasesUpsertDocuments", + "tags": [ + "databases" + ], + "description": "Create or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.\n", + "responses": { + "200": { + "description": "Documents List", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/documentList" + } + } + } + } + }, + "x-appwrite": { + "method": "upsertDocuments", + "group": "documents", + "weight": 114, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/upsert-documents.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-documents.md", + "rate-limit": 120, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "documents": { + "type": "array", + "description": "Array of document data as JSON objects. May contain partial documents.", + "x-example": null, + "items": { + "type": "object" + } + } + } + } + } + } + } + }, + "patch": { + "summary": "Update documents", + "operationId": "databasesUpdateDocuments", + "tags": [ + "databases" + ], + "description": "Update all documents that match your queries, if no queries are submitted then all documents are updated. You can pass only specific fields to be updated.", + "responses": { + "200": { + "description": "Documents List", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/documentList" + } + } + } + } + }, + "x-appwrite": { + "method": "updateDocuments", + "group": "documents", + "weight": 113, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/update-documents.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-documents.md", + "rate-limit": 120, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "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": "{}" + }, + "queries": { + "type": "array", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Maximum of 100 queries are allowed, each 4096 characters long.", + "x-example": null, + "items": { + "type": "string" + } + } + } + } + } + } + } + }, + "delete": { + "summary": "Delete documents", + "operationId": "databasesDeleteDocuments", + "tags": [ + "databases" + ], + "description": "Bulk delete documents using queries, if no queries are passed then all documents are deleted.", + "responses": { + "200": { + "description": "Documents List", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/documentList" + } + } + } + } + }, + "x-appwrite": { + "method": "deleteDocuments", + "group": "documents", + "weight": 116, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/delete-documents.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-documents.md", + "rate-limit": 60, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "queries": { + "type": "array", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Maximum of 100 queries are allowed, each 4096 characters long.", + "x-example": null, + "items": { + "type": "string" + } + } + } } } } @@ -7759,7 +7895,8 @@ }, "x-appwrite": { "method": "getDocument", - "weight": 109, + "group": "documents", + "weight": 110, "cookies": false, "type": "", "deprecated": false, @@ -7775,9 +7912,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -7858,7 +7992,8 @@ }, "x-appwrite": { "method": "updateDocument", - "weight": 111, + "group": "documents", + "weight": 112, "cookies": false, "type": "", "deprecated": false, @@ -7874,9 +8009,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -7961,7 +8093,8 @@ }, "x-appwrite": { "method": "deleteDocument", - "weight": 112, + "group": "documents", + "weight": 115, "cookies": false, "type": "", "deprecated": false, @@ -7977,9 +8110,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -8049,7 +8179,8 @@ }, "x-appwrite": { "method": "listIndexes", - "weight": 104, + "group": "indexes", + "weight": 105, "cookies": false, "type": "", "deprecated": false, @@ -8063,9 +8194,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8134,7 +8262,8 @@ }, "x-appwrite": { "method": "createIndex", - "weight": 103, + "group": "collections", + "weight": 104, "cookies": false, "type": "", "deprecated": false, @@ -8148,9 +8277,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8257,7 +8383,8 @@ }, "x-appwrite": { "method": "getIndex", - "weight": 105, + "group": "indexes", + "weight": 106, "cookies": false, "type": "", "deprecated": false, @@ -8271,9 +8398,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8331,7 +8455,8 @@ }, "x-appwrite": { "method": "deleteIndex", - "weight": 106, + "group": "indexes", + "weight": 107, "cookies": false, "type": "", "deprecated": false, @@ -8345,9 +8470,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8414,7 +8536,8 @@ }, "x-appwrite": { "method": "list", - "weight": 287, + "group": "functions", + "weight": 291, "cookies": false, "type": "", "deprecated": false, @@ -8428,9 +8551,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8490,7 +8610,8 @@ }, "x-appwrite": { "method": "create", - "weight": 286, + "group": "functions", + "weight": 290, "cookies": false, "type": "", "deprecated": false, @@ -8504,9 +8625,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8545,6 +8663,7 @@ "node-19.0", "node-20.0", "node-21.0", + "node-22", "php-8.0", "php-8.1", "php-8.2", @@ -8563,6 +8682,8 @@ "deno-1.24", "deno-1.35", "deno-1.40", + "deno-1.46", + "deno-2.0", "dart-2.15", "dart-2.16", "dart-2.17", @@ -8570,24 +8691,31 @@ "dart-3.0", "dart-3.1", "dart-3.3", - "dotnet-3.1", + "dart-3.5", "dotnet-6.0", "dotnet-7.0", + "dotnet-8.0", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", + "java-22", "swift-5.5", "swift-5.8", "swift-5.9", + "swift-5.10", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", + "kotlin-2.0", "cpp-17", "cpp-20", "bun-1.0", - "go-1.23" + "bun-1.1", + "go-1.23", + "static-1", + "flutter-3.24" ], "x-enum-name": null, "x-enum-keys": [] @@ -8730,7 +8858,8 @@ }, "x-appwrite": { "method": "listRuntimes", - "weight": 288, + "group": "runtimes", + "weight": 292, "cookies": false, "type": "", "deprecated": false, @@ -8744,9 +8873,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8782,7 +8908,8 @@ }, "x-appwrite": { "method": "listSpecifications", - "weight": 289, + "group": "runtimes", + "weight": 293, "cookies": false, "type": "", "deprecated": false, @@ -8797,9 +8924,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8835,7 +8959,8 @@ }, "x-appwrite": { "method": "get", - "weight": 290, + "group": "functions", + "weight": 294, "cookies": false, "type": "", "deprecated": false, @@ -8849,9 +8974,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8897,7 +9019,8 @@ }, "x-appwrite": { "method": "update", - "weight": 293, + "group": "functions", + "weight": 297, "cookies": false, "type": "", "deprecated": false, @@ -8911,9 +9034,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8959,6 +9079,7 @@ "node-19.0", "node-20.0", "node-21.0", + "node-22", "php-8.0", "php-8.1", "php-8.2", @@ -8977,6 +9098,8 @@ "deno-1.24", "deno-1.35", "deno-1.40", + "deno-1.46", + "deno-2.0", "dart-2.15", "dart-2.16", "dart-2.17", @@ -8984,24 +9107,31 @@ "dart-3.0", "dart-3.1", "dart-3.3", - "dotnet-3.1", + "dart-3.5", "dotnet-6.0", "dotnet-7.0", + "dotnet-8.0", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", + "java-22", "swift-5.5", "swift-5.8", "swift-5.9", + "swift-5.10", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", + "kotlin-2.0", "cpp-17", "cpp-20", "bun-1.0", - "go-1.23" + "bun-1.1", + "go-1.23", + "static-1", + "flutter-3.24" ], "x-enum-name": null, "x-enum-keys": [] @@ -9114,7 +9244,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 296, + "group": "functions", + "weight": 300, "cookies": false, "type": "", "deprecated": false, @@ -9128,9 +9259,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9178,7 +9306,8 @@ }, "x-appwrite": { "method": "listDeployments", - "weight": 298, + "group": "deployments", + "weight": 302, "cookies": false, "type": "", "deprecated": false, @@ -9192,9 +9321,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9264,7 +9390,8 @@ }, "x-appwrite": { "method": "createDeployment", - "weight": 297, + "group": "deployments", + "weight": 301, "cookies": false, "type": "upload", "deprecated": false, @@ -9278,9 +9405,6 @@ "server" ], "packaging": true, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9363,7 +9487,8 @@ }, "x-appwrite": { "method": "getDeployment", - "weight": 299, + "group": "deployments", + "weight": 303, "cookies": false, "type": "", "deprecated": false, @@ -9377,9 +9502,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9435,7 +9557,8 @@ }, "x-appwrite": { "method": "updateDeployment", - "weight": 295, + "group": "deployments", + "weight": 299, "cookies": false, "type": "", "deprecated": false, @@ -9449,9 +9572,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9500,7 +9620,8 @@ }, "x-appwrite": { "method": "deleteDeployment", - "weight": 300, + "group": "deployments", + "weight": 304, "cookies": false, "type": "", "deprecated": false, @@ -9514,9 +9635,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9554,12 +9672,12 @@ }, "\/functions\/{functionId}\/deployments\/{deploymentId}\/build": { "post": { - "summary": "Rebuild deployment", + "summary": "Create deployment build", "operationId": "functionsCreateBuild", "tags": [ "functions" ], - "description": "", + "description": "Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build.", "responses": { "204": { "description": "No content" @@ -9567,12 +9685,13 @@ }, "x-appwrite": { "method": "createBuild", - "weight": 301, + "group": "deployments", + "weight": 305, "cookies": false, "type": "", "deprecated": false, "demo": "functions\/create-build.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/create-build.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9581,9 +9700,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9640,7 +9756,7 @@ "tags": [ "functions" ], - "description": "", + "description": "Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn't started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status 'ready') or failed. The response includes the final build status and details.", "responses": { "200": { "description": "Build", @@ -9655,12 +9771,13 @@ }, "x-appwrite": { "method": "updateDeploymentBuild", - "weight": 302, + "group": "deployments", + "weight": 306, "cookies": false, "type": "", "deprecated": false, "demo": "functions\/update-deployment-build.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/update-deployment-build.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9669,9 +9786,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9709,7 +9823,7 @@ }, "\/functions\/{functionId}\/deployments\/{deploymentId}\/download": { "get": { - "summary": "Download deployment", + "summary": "Get deployment download", "operationId": "functionsGetDeploymentDownload", "tags": [ "functions" @@ -9722,7 +9836,8 @@ }, "x-appwrite": { "method": "getDeploymentDownload", - "weight": 294, + "group": "deployments", + "weight": 298, "cookies": false, "type": "location", "deprecated": false, @@ -9737,9 +9852,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9798,7 +9910,8 @@ }, "x-appwrite": { "method": "listExecutions", - "weight": 304, + "group": "executions", + "weight": 308, "cookies": false, "type": "", "deprecated": false, @@ -9814,9 +9927,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -9888,7 +9998,8 @@ }, "x-appwrite": { "method": "createExecution", - "weight": 303, + "group": "executions", + "weight": 307, "cookies": false, "type": "", "deprecated": false, @@ -9904,9 +10015,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -9941,7 +10049,7 @@ "body": { "type": "string", "description": "HTTP body of execution. Default value is empty string.", - "x-example": null + "x-example": "" }, "async": { "type": "boolean", @@ -10007,7 +10115,8 @@ }, "x-appwrite": { "method": "getExecution", - "weight": 305, + "group": "executions", + "weight": 309, "cookies": false, "type": "", "deprecated": false, @@ -10023,9 +10132,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -10076,7 +10182,8 @@ }, "x-appwrite": { "method": "deleteExecution", - "weight": 306, + "group": "executions", + "weight": 310, "cookies": false, "type": "", "deprecated": false, @@ -10090,9 +10197,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10150,7 +10254,8 @@ }, "x-appwrite": { "method": "listVariables", - "weight": 308, + "group": "variables", + "weight": 312, "cookies": false, "type": "", "deprecated": false, @@ -10164,9 +10269,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10212,7 +10314,8 @@ }, "x-appwrite": { "method": "createVariable", - "weight": 307, + "group": "variables", + "weight": 311, "cookies": false, "type": "", "deprecated": false, @@ -10226,9 +10329,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10301,7 +10401,8 @@ }, "x-appwrite": { "method": "getVariable", - "weight": 309, + "group": "variables", + "weight": 313, "cookies": false, "type": "", "deprecated": false, @@ -10315,9 +10416,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10373,7 +10471,8 @@ }, "x-appwrite": { "method": "updateVariable", - "weight": 310, + "group": "variables", + "weight": 314, "cookies": false, "type": "", "deprecated": false, @@ -10387,9 +10486,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10462,7 +10558,8 @@ }, "x-appwrite": { "method": "deleteVariable", - "weight": 311, + "group": "variables", + "weight": 315, "cookies": false, "type": "", "deprecated": false, @@ -10476,9 +10573,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10536,7 +10630,8 @@ }, "x-appwrite": { "method": "query", - "weight": 329, + "group": "graphql", + "weight": 333, "cookies": false, "type": "graphql", "deprecated": false, @@ -10552,9 +10647,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10592,7 +10684,8 @@ }, "x-appwrite": { "method": "mutation", - "weight": 328, + "group": "graphql", + "weight": 332, "cookies": false, "type": "graphql", "deprecated": false, @@ -10608,9 +10701,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10648,7 +10738,8 @@ }, "x-appwrite": { "method": "get", - "weight": 124, + "group": "health", + "weight": 128, "cookies": false, "type": "", "deprecated": false, @@ -10662,9 +10753,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10700,7 +10788,8 @@ }, "x-appwrite": { "method": "getAntivirus", - "weight": 146, + "group": "health", + "weight": 149, "cookies": false, "type": "", "deprecated": false, @@ -10714,9 +10803,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10752,7 +10838,8 @@ }, "x-appwrite": { "method": "getCache", - "weight": 127, + "group": "health", + "weight": 131, "cookies": false, "type": "", "deprecated": false, @@ -10766,9 +10853,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10804,7 +10888,8 @@ }, "x-appwrite": { "method": "getCertificate", - "weight": 133, + "group": "health", + "weight": 136, "cookies": false, "type": "", "deprecated": false, @@ -10818,9 +10903,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10867,7 +10949,8 @@ }, "x-appwrite": { "method": "getDB", - "weight": 126, + "group": "health", + "weight": 130, "cookies": false, "type": "", "deprecated": false, @@ -10881,9 +10964,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10919,7 +10999,8 @@ }, "x-appwrite": { "method": "getPubSub", - "weight": 129, + "group": "health", + "weight": 132, "cookies": false, "type": "", "deprecated": false, @@ -10933,61 +11014,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", - "auth": { - "Project": [], - "Key": [] - } - }, - "security": [ - { - "Project": [], - "Key": [] - } - ] - } - }, - "\/health\/queue": { - "get": { - "summary": "Get queue", - "operationId": "healthGetQueue", - "tags": [ - "health" - ], - "description": "Check the Appwrite queue messaging servers are up and connection is successful.", - "responses": { - "200": { - "description": "Health Status", - "content": { - "application\/json": { - "schema": { - "$ref": "#\/components\/schemas\/healthStatus" - } - } - } - } - }, - "x-appwrite": { - "method": "getQueue", - "weight": 128, - "cookies": false, - "type": "", - "deprecated": false, - "demo": "health\/get-queue.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue.md", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "health.read", - "platforms": [ - "server" - ], - "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11023,7 +11049,8 @@ }, "x-appwrite": { "method": "getQueueBuilds", - "weight": 135, + "group": "queue", + "weight": 138, "cookies": false, "type": "", "deprecated": false, @@ -11037,9 +11064,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11088,7 +11112,8 @@ }, "x-appwrite": { "method": "getQueueCertificates", - "weight": 134, + "group": "queue", + "weight": 137, "cookies": false, "type": "", "deprecated": false, @@ -11102,9 +11127,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11153,7 +11175,8 @@ }, "x-appwrite": { "method": "getQueueDatabases", - "weight": 136, + "group": "queue", + "weight": 139, "cookies": false, "type": "", "deprecated": false, @@ -11167,9 +11190,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11229,7 +11249,8 @@ }, "x-appwrite": { "method": "getQueueDeletes", - "weight": 137, + "group": "queue", + "weight": 140, "cookies": false, "type": "", "deprecated": false, @@ -11243,9 +11264,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11294,7 +11312,8 @@ }, "x-appwrite": { "method": "getFailedJobs", - "weight": 147, + "group": "queue", + "weight": 150, "cookies": false, "type": "", "deprecated": false, @@ -11308,9 +11327,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11336,8 +11352,8 @@ "v1-audits", "v1-mails", "v1-functions", - "v1-usage", - "v1-usage-dump", + "v1-stats-resources", + "v1-stats-usage", "v1-webhooks", "v1-certificates", "v1-builds", @@ -11385,7 +11401,8 @@ }, "x-appwrite": { "method": "getQueueFunctions", - "weight": 141, + "group": "queue", + "weight": 144, "cookies": false, "type": "", "deprecated": false, @@ -11399,9 +11416,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11450,7 +11464,8 @@ }, "x-appwrite": { "method": "getQueueLogs", - "weight": 132, + "group": "queue", + "weight": 135, "cookies": false, "type": "", "deprecated": false, @@ -11464,9 +11479,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11515,7 +11527,8 @@ }, "x-appwrite": { "method": "getQueueMails", - "weight": 138, + "group": "queue", + "weight": 141, "cookies": false, "type": "", "deprecated": false, @@ -11529,9 +11542,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11580,7 +11590,8 @@ }, "x-appwrite": { "method": "getQueueMessaging", - "weight": 139, + "group": "queue", + "weight": 142, "cookies": false, "type": "", "deprecated": false, @@ -11594,9 +11605,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11645,7 +11653,8 @@ }, "x-appwrite": { "method": "getQueueMigrations", - "weight": 140, + "group": "queue", + "weight": 143, "cookies": false, "type": "", "deprecated": false, @@ -11659,9 +11668,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11688,14 +11694,14 @@ ] } }, - "\/health\/queue\/usage": { + "\/health\/queue\/stats-resources": { "get": { - "summary": "Get usage queue", - "operationId": "healthGetQueueUsage", + "summary": "Get stats resources queue", + "operationId": "healthGetQueueStatsResources", "tags": [ "health" ], - "description": "Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.", + "description": "Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.", "responses": { "200": { "description": "Health Queue", @@ -11709,13 +11715,14 @@ } }, "x-appwrite": { - "method": "getQueueUsage", - "weight": 142, + "method": "getQueueStatsResources", + "group": "queue", + "weight": 145, "cookies": false, "type": "", "deprecated": false, - "demo": "health\/get-queue-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-usage.md", + "demo": "health\/get-queue-stats-resources.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-stats-resources.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11724,9 +11731,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11753,14 +11757,14 @@ ] } }, - "\/health\/queue\/usage-dump": { + "\/health\/queue\/stats-usage": { "get": { - "summary": "Get usage dump queue", - "operationId": "healthGetQueueUsageDump", + "summary": "Get stats usage queue", + "operationId": "healthGetQueueUsage", "tags": [ "health" ], - "description": "Get the number of projects containing metrics that are waiting to be processed in the Appwrite internal queue server.", + "description": "Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.", "responses": { "200": { "description": "Health Queue", @@ -11774,13 +11778,14 @@ } }, "x-appwrite": { - "method": "getQueueUsageDump", - "weight": 143, + "method": "getQueueUsage", + "group": "queue", + "weight": 146, "cookies": false, "type": "", "deprecated": false, - "demo": "health\/get-queue-usage-dump.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-usage-dump.md", + "demo": "health\/get-queue-usage.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-stats-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11789,9 +11794,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11840,7 +11842,8 @@ }, "x-appwrite": { "method": "getQueueWebhooks", - "weight": 131, + "group": "queue", + "weight": 134, "cookies": false, "type": "", "deprecated": false, @@ -11854,9 +11857,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11905,7 +11905,8 @@ }, "x-appwrite": { "method": "getStorage", - "weight": 145, + "group": "storage", + "weight": 148, "cookies": false, "type": "", "deprecated": false, @@ -11919,9 +11920,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11957,7 +11955,8 @@ }, "x-appwrite": { "method": "getStorageLocal", - "weight": 144, + "group": "storage", + "weight": 147, "cookies": false, "type": "", "deprecated": false, @@ -11971,9 +11970,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -12009,7 +12005,8 @@ }, "x-appwrite": { "method": "getTime", - "weight": 130, + "group": "health", + "weight": 133, "cookies": false, "type": "", "deprecated": false, @@ -12023,9 +12020,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -12061,7 +12055,8 @@ }, "x-appwrite": { "method": "get", - "weight": 116, + "group": null, + "weight": 120, "cookies": false, "type": "", "deprecated": false, @@ -12077,9 +12072,6 @@ "server" ], "packaging": false, - "offline-model": "\/localed", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -12097,7 +12089,7 @@ }, "\/locale\/codes": { "get": { - "summary": "List Locale Codes", + "summary": "List locale codes", "operationId": "localeListCodes", "tags": [ "locale" @@ -12117,7 +12109,8 @@ }, "x-appwrite": { "method": "listCodes", - "weight": 117, + "group": null, + "weight": 121, "cookies": false, "type": "", "deprecated": false, @@ -12133,9 +12126,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/localeCode", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -12173,7 +12163,8 @@ }, "x-appwrite": { "method": "listContinents", - "weight": 121, + "group": null, + "weight": 125, "cookies": false, "type": "", "deprecated": false, @@ -12189,9 +12180,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/continents", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [], "Session": [] @@ -12229,7 +12217,8 @@ }, "x-appwrite": { "method": "listCountries", - "weight": 118, + "group": null, + "weight": 122, "cookies": false, "type": "", "deprecated": false, @@ -12245,9 +12234,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [], "Session": [] @@ -12285,7 +12271,8 @@ }, "x-appwrite": { "method": "listCountriesEU", - "weight": 119, + "group": null, + "weight": 123, "cookies": false, "type": "", "deprecated": false, @@ -12301,9 +12288,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries\/eu", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [], "Session": [] @@ -12341,7 +12325,8 @@ }, "x-appwrite": { "method": "listCountriesPhones", - "weight": 120, + "group": null, + "weight": 124, "cookies": false, "type": "", "deprecated": false, @@ -12357,9 +12342,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries\/phones", - "offline-key": "", - "offline-response-key": "countryCode", "auth": { "Project": [], "Session": [] @@ -12397,7 +12379,8 @@ }, "x-appwrite": { "method": "listCurrencies", - "weight": 122, + "group": null, + "weight": 126, "cookies": false, "type": "", "deprecated": false, @@ -12413,9 +12396,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/currencies", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [], "Session": [] @@ -12453,7 +12433,8 @@ }, "x-appwrite": { "method": "listLanguages", - "weight": 123, + "group": null, + "weight": 127, "cookies": false, "type": "", "deprecated": false, @@ -12469,9 +12450,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/languages", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [], "Session": [] @@ -12509,7 +12487,8 @@ }, "x-appwrite": { "method": "listMessages", - "weight": 388, + "group": "messages", + "weight": 386, "cookies": false, "type": "", "deprecated": false, @@ -12524,9 +12503,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -12588,7 +12564,8 @@ }, "x-appwrite": { "method": "createEmail", - "weight": 385, + "group": "messages", + "weight": 383, "cookies": false, "type": "", "deprecated": false, @@ -12603,9 +12580,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -12720,7 +12694,7 @@ "tags": [ "messaging" ], - "description": "Update an email message by its unique ID.\n", + "description": "Update an email message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", "responses": { "200": { "description": "Message", @@ -12735,7 +12709,8 @@ }, "x-appwrite": { "method": "updateEmail", - "weight": 392, + "group": "messages", + "weight": 390, "cookies": false, "type": "", "deprecated": false, @@ -12750,9 +12725,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -12884,7 +12856,8 @@ }, "x-appwrite": { "method": "createPush", - "weight": 387, + "group": "messages", + "weight": 385, "cookies": false, "type": "", "deprecated": false, @@ -12899,9 +12872,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -12960,7 +12930,7 @@ }, "data": { "type": "object", - "description": "Additional Data for push notification.", + "description": "Additional key-value pair data for push notification.", "x-example": "{}" }, "action": { @@ -12980,7 +12950,7 @@ }, "sound": { "type": "string", - "description": "Sound for push notification. Available only for Android and IOS Platform.", + "description": "Sound for push notification. Available only for Android and iOS Platform.", "x-example": "" }, "color": { @@ -12994,9 +12964,9 @@ "x-example": "" }, "badge": { - "type": "string", - "description": "Badge for push notification. Available only for IOS Platform.", - "x-example": "" + "type": "integer", + "description": "Badge for push notification. Available only for iOS Platform.", + "x-example": null }, "draft": { "type": "boolean", @@ -13007,12 +12977,31 @@ "type": "string", "description": "Scheduled delivery time for message in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future.", "x-example": null + }, + "contentAvailable": { + "type": "boolean", + "description": "If set to true, the notification will be delivered in the background. Available only for iOS Platform.", + "x-example": false + }, + "critical": { + "type": "boolean", + "description": "If set to true, the notification will be marked as critical. This requires the app to have the critical notification entitlement. Available only for iOS Platform.", + "x-example": false + }, + "priority": { + "type": "string", + "description": "Set the notification priority. \"normal\" will consider device state and may not deliver notifications immediately. \"high\" will always attempt to immediately deliver the notification.", + "x-example": "normal", + "enum": [ + "normal", + "high" + ], + "x-enum-name": "MessagePriority", + "x-enum-keys": [] } }, "required": [ - "messageId", - "title", - "body" + "messageId" ] } } @@ -13027,7 +13016,7 @@ "tags": [ "messaging" ], - "description": "Update a push notification by its unique ID.\n", + "description": "Update a push notification by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", "responses": { "200": { "description": "Message", @@ -13042,7 +13031,8 @@ }, "x-appwrite": { "method": "updatePush", - "weight": 394, + "group": "messages", + "weight": 392, "cookies": false, "type": "", "deprecated": false, @@ -13057,9 +13047,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13172,6 +13159,27 @@ "type": "string", "description": "Scheduled delivery time for message in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future.", "x-example": null + }, + "contentAvailable": { + "type": "boolean", + "description": "If set to true, the notification will be delivered in the background. Available only for iOS Platform.", + "x-example": false + }, + "critical": { + "type": "boolean", + "description": "If set to true, the notification will be marked as critical. This requires the app to have the critical notification entitlement. Available only for iOS Platform.", + "x-example": false + }, + "priority": { + "type": "string", + "description": "Set the notification priority. \"normal\" will consider device battery state and may send notifications later. \"high\" will always attempt to immediately deliver the notification.", + "x-example": "normal", + "enum": [ + "normal", + "high" + ], + "x-enum-name": "MessagePriority", + "x-enum-keys": [] } } } @@ -13202,7 +13210,8 @@ }, "x-appwrite": { "method": "createSms", - "weight": 386, + "group": "messages", + "weight": 384, "cookies": false, "type": "", "deprecated": false, @@ -13217,9 +13226,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13299,7 +13305,7 @@ "tags": [ "messaging" ], - "description": "Update an email message by its unique ID.\n", + "description": "Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", "responses": { "200": { "description": "Message", @@ -13314,12 +13320,13 @@ }, "x-appwrite": { "method": "updateSms", - "weight": 393, + "group": "messages", + "weight": 391, "cookies": false, "type": "", "deprecated": false, "demo": "messaging\/update-sms.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/update-email.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/update-sms.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13329,9 +13336,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13429,7 +13433,8 @@ }, "x-appwrite": { "method": "getMessage", - "weight": 391, + "group": "messages", + "weight": 389, "cookies": false, "type": "", "deprecated": false, @@ -13444,9 +13449,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13485,7 +13487,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 395, + "group": "messages", + "weight": 393, "cookies": false, "type": "", "deprecated": false, @@ -13500,9 +13503,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13550,7 +13550,8 @@ }, "x-appwrite": { "method": "listMessageLogs", - "weight": 389, + "group": "logs", + "weight": 387, "cookies": false, "type": "", "deprecated": false, @@ -13565,9 +13566,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13628,7 +13626,8 @@ }, "x-appwrite": { "method": "listTargets", - "weight": 390, + "group": "messages", + "weight": 388, "cookies": false, "type": "", "deprecated": false, @@ -13643,9 +13642,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13706,7 +13702,8 @@ }, "x-appwrite": { "method": "listProviders", - "weight": 360, + "group": "providers", + "weight": 358, "cookies": false, "type": "", "deprecated": false, @@ -13721,9 +13718,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13785,7 +13779,8 @@ }, "x-appwrite": { "method": "createApnsProvider", - "weight": 359, + "group": "providers", + "weight": 357, "cookies": false, "type": "", "deprecated": false, @@ -13800,9 +13795,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13893,7 +13885,8 @@ }, "x-appwrite": { "method": "updateApnsProvider", - "weight": 372, + "group": "providers", + "weight": 370, "cookies": false, "type": "", "deprecated": false, @@ -13908,9 +13901,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14004,7 +13994,8 @@ }, "x-appwrite": { "method": "createFcmProvider", - "weight": 358, + "group": "providers", + "weight": 356, "cookies": false, "type": "", "deprecated": false, @@ -14019,9 +14010,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14092,7 +14080,8 @@ }, "x-appwrite": { "method": "updateFcmProvider", - "weight": 371, + "group": "providers", + "weight": 369, "cookies": false, "type": "", "deprecated": false, @@ -14107,9 +14096,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14183,7 +14169,8 @@ }, "x-appwrite": { "method": "createMailgunProvider", - "weight": 350, + "group": "providers", + "weight": 348, "cookies": false, "type": "", "deprecated": false, @@ -14198,9 +14185,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14301,7 +14285,8 @@ }, "x-appwrite": { "method": "updateMailgunProvider", - "weight": 363, + "group": "providers", + "weight": 361, "cookies": false, "type": "", "deprecated": false, @@ -14316,9 +14301,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14422,7 +14404,8 @@ }, "x-appwrite": { "method": "createMsg91Provider", - "weight": 353, + "group": "providers", + "weight": 351, "cookies": false, "type": "", "deprecated": false, @@ -14437,9 +14420,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14520,7 +14500,8 @@ }, "x-appwrite": { "method": "updateMsg91Provider", - "weight": 366, + "group": "providers", + "weight": 364, "cookies": false, "type": "", "deprecated": false, @@ -14535,9 +14516,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14621,7 +14599,8 @@ }, "x-appwrite": { "method": "createSendgridProvider", - "weight": 351, + "group": "providers", + "weight": 349, "cookies": false, "type": "", "deprecated": false, @@ -14636,9 +14615,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14729,7 +14705,8 @@ }, "x-appwrite": { "method": "updateSendgridProvider", - "weight": 364, + "group": "providers", + "weight": 362, "cookies": false, "type": "", "deprecated": false, @@ -14744,9 +14721,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14840,7 +14814,8 @@ }, "x-appwrite": { "method": "createSmtpProvider", - "weight": 352, + "group": "providers", + "weight": 350, "cookies": false, "type": "", "deprecated": false, @@ -14855,9 +14830,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14986,7 +14958,8 @@ }, "x-appwrite": { "method": "updateSmtpProvider", - "weight": 365, + "group": "providers", + "weight": 363, "cookies": false, "type": "", "deprecated": false, @@ -15001,9 +14974,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15134,7 +15104,8 @@ }, "x-appwrite": { "method": "createTelesignProvider", - "weight": 354, + "group": "providers", + "weight": 352, "cookies": false, "type": "", "deprecated": false, @@ -15149,9 +15120,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15232,7 +15200,8 @@ }, "x-appwrite": { "method": "updateTelesignProvider", - "weight": 367, + "group": "providers", + "weight": 365, "cookies": false, "type": "", "deprecated": false, @@ -15247,9 +15216,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15333,7 +15299,8 @@ }, "x-appwrite": { "method": "createTextmagicProvider", - "weight": 355, + "group": "providers", + "weight": 353, "cookies": false, "type": "", "deprecated": false, @@ -15348,9 +15315,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15431,7 +15395,8 @@ }, "x-appwrite": { "method": "updateTextmagicProvider", - "weight": 368, + "group": "providers", + "weight": 366, "cookies": false, "type": "", "deprecated": false, @@ -15446,9 +15411,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15532,7 +15494,8 @@ }, "x-appwrite": { "method": "createTwilioProvider", - "weight": 356, + "group": "providers", + "weight": 354, "cookies": false, "type": "", "deprecated": false, @@ -15547,9 +15510,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15630,7 +15590,8 @@ }, "x-appwrite": { "method": "updateTwilioProvider", - "weight": 369, + "group": "providers", + "weight": 367, "cookies": false, "type": "", "deprecated": false, @@ -15645,9 +15606,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15731,7 +15689,8 @@ }, "x-appwrite": { "method": "createVonageProvider", - "weight": 357, + "group": "providers", + "weight": 355, "cookies": false, "type": "", "deprecated": false, @@ -15746,9 +15705,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15829,7 +15785,8 @@ }, "x-appwrite": { "method": "updateVonageProvider", - "weight": 370, + "group": "providers", + "weight": 368, "cookies": false, "type": "", "deprecated": false, @@ -15844,9 +15801,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15930,7 +15884,8 @@ }, "x-appwrite": { "method": "getProvider", - "weight": 362, + "group": "providers", + "weight": 360, "cookies": false, "type": "", "deprecated": false, @@ -15945,9 +15900,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15986,7 +15938,8 @@ }, "x-appwrite": { "method": "deleteProvider", - "weight": 373, + "group": "providers", + "weight": 371, "cookies": false, "type": "", "deprecated": false, @@ -16001,9 +15954,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16051,7 +16001,8 @@ }, "x-appwrite": { "method": "listProviderLogs", - "weight": 361, + "group": "providers", + "weight": 359, "cookies": false, "type": "", "deprecated": false, @@ -16066,9 +16017,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16129,7 +16077,8 @@ }, "x-appwrite": { "method": "listSubscriberLogs", - "weight": 382, + "group": "subscribers", + "weight": 380, "cookies": false, "type": "", "deprecated": false, @@ -16144,9 +16093,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16207,7 +16153,8 @@ }, "x-appwrite": { "method": "listTopics", - "weight": 375, + "group": "topics", + "weight": 373, "cookies": false, "type": "", "deprecated": false, @@ -16222,9 +16169,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16284,7 +16228,8 @@ }, "x-appwrite": { "method": "createTopic", - "weight": 374, + "group": "topics", + "weight": 372, "cookies": false, "type": "", "deprecated": false, @@ -16299,9 +16244,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16370,7 +16312,8 @@ }, "x-appwrite": { "method": "getTopic", - "weight": 377, + "group": "topics", + "weight": 375, "cookies": false, "type": "", "deprecated": false, @@ -16385,9 +16328,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16433,7 +16373,8 @@ }, "x-appwrite": { "method": "updateTopic", - "weight": 378, + "group": "topics", + "weight": 376, "cookies": false, "type": "", "deprecated": false, @@ -16448,9 +16389,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16513,7 +16451,8 @@ }, "x-appwrite": { "method": "deleteTopic", - "weight": 379, + "group": "topics", + "weight": 377, "cookies": false, "type": "", "deprecated": false, @@ -16528,9 +16467,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16578,7 +16514,8 @@ }, "x-appwrite": { "method": "listTopicLogs", - "weight": 376, + "group": "topics", + "weight": 374, "cookies": false, "type": "", "deprecated": false, @@ -16593,9 +16530,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16656,7 +16590,8 @@ }, "x-appwrite": { "method": "listSubscribers", - "weight": 381, + "group": "subscribers", + "weight": 379, "cookies": false, "type": "", "deprecated": false, @@ -16671,9 +16606,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16743,7 +16675,8 @@ }, "x-appwrite": { "method": "createSubscriber", - "weight": 380, + "group": "subscribers", + "weight": 378, "cookies": false, "type": "", "deprecated": false, @@ -16760,9 +16693,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "JWT": [] @@ -16837,7 +16767,8 @@ }, "x-appwrite": { "method": "getSubscriber", - "weight": 383, + "group": "subscribers", + "weight": 381, "cookies": false, "type": "", "deprecated": false, @@ -16852,9 +16783,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16903,7 +16831,8 @@ }, "x-appwrite": { "method": "deleteSubscriber", - "weight": 384, + "group": "subscribers", + "weight": 382, "cookies": false, "type": "", "deprecated": false, @@ -16920,9 +16849,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "JWT": [] @@ -16982,7 +16908,8 @@ }, "x-appwrite": { "method": "listBuckets", - "weight": 201, + "group": "buckets", + "weight": 205, "cookies": false, "type": "", "deprecated": false, @@ -16996,9 +16923,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -17058,7 +16982,8 @@ }, "x-appwrite": { "method": "createBucket", - "weight": 200, + "group": "buckets", + "weight": 204, "cookies": false, "type": "", "deprecated": false, @@ -17072,9 +16997,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -17188,7 +17110,8 @@ }, "x-appwrite": { "method": "getBucket", - "weight": 202, + "group": "buckets", + "weight": 206, "cookies": false, "type": "", "deprecated": false, @@ -17202,9 +17125,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -17250,7 +17170,8 @@ }, "x-appwrite": { "method": "updateBucket", - "weight": 203, + "group": "buckets", + "weight": 207, "cookies": false, "type": "", "deprecated": false, @@ -17264,9 +17185,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -17377,7 +17295,8 @@ }, "x-appwrite": { "method": "deleteBucket", - "weight": 204, + "group": "buckets", + "weight": 208, "cookies": false, "type": "", "deprecated": false, @@ -17391,9 +17310,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -17441,7 +17357,8 @@ }, "x-appwrite": { "method": "listFiles", - "weight": 206, + "group": "files", + "weight": 210, "cookies": false, "type": "", "deprecated": false, @@ -17457,9 +17374,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -17531,7 +17445,8 @@ }, "x-appwrite": { "method": "createFile", - "weight": 205, + "group": "files", + "weight": 209, "cookies": false, "type": "upload", "deprecated": false, @@ -17547,9 +17462,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -17633,7 +17545,8 @@ }, "x-appwrite": { "method": "getFile", - "weight": 207, + "group": "files", + "weight": 211, "cookies": false, "type": "", "deprecated": false, @@ -17649,9 +17562,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -17709,7 +17619,8 @@ }, "x-appwrite": { "method": "updateFile", - "weight": 212, + "group": "files", + "weight": 216, "cookies": false, "type": "", "deprecated": false, @@ -17725,9 +17636,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -17789,7 +17697,7 @@ } }, "delete": { - "summary": "Delete File", + "summary": "Delete file", "operationId": "storageDeleteFile", "tags": [ "storage" @@ -17802,7 +17710,8 @@ }, "x-appwrite": { "method": "deleteFile", - "weight": 213, + "group": "files", + "weight": 217, "cookies": false, "type": "", "deprecated": false, @@ -17818,9 +17727,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -17873,7 +17779,8 @@ }, "x-appwrite": { "method": "getFileDownload", - "weight": 209, + "group": "files", + "weight": 213, "cookies": false, "type": "location", "deprecated": false, @@ -17889,9 +17796,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -17944,7 +17848,8 @@ }, "x-appwrite": { "method": "getFilePreview", - "weight": 208, + "group": "files", + "weight": 212, "cookies": false, "type": "location", "deprecated": false, @@ -17960,9 +17865,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18137,7 +18039,9 @@ "jpeg", "gif", "png", - "webp" + "webp", + "heic", + "avif" ], "x-enum-name": "ImageFormat", "x-enum-keys": [], @@ -18163,7 +18067,8 @@ }, "x-appwrite": { "method": "getFileView", - "weight": 210, + "group": "files", + "weight": 214, "cookies": false, "type": "location", "deprecated": false, @@ -18179,9 +18084,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18241,7 +18143,8 @@ }, "x-appwrite": { "method": "list", - "weight": 217, + "group": "teams", + "weight": 221, "cookies": false, "type": "", "deprecated": false, @@ -18257,9 +18160,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18321,7 +18221,8 @@ }, "x-appwrite": { "method": "create", - "weight": 216, + "group": "teams", + "weight": 220, "cookies": false, "type": "", "deprecated": false, @@ -18337,9 +18238,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18410,7 +18308,8 @@ }, "x-appwrite": { "method": "get", - "weight": 218, + "group": "teams", + "weight": 222, "cookies": false, "type": "", "deprecated": false, @@ -18426,9 +18325,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "{teamId}", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18476,7 +18372,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 220, + "group": "teams", + "weight": 224, "cookies": false, "type": "", "deprecated": false, @@ -18492,9 +18389,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "{teamId}", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18554,7 +18448,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 222, + "group": "teams", + "weight": 226, "cookies": false, "type": "", "deprecated": false, @@ -18570,9 +18465,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18607,7 +18499,7 @@ "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.", + "description": "Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint. Hide sensitive attributes from the response by toggling membership privacy in the Console.", "responses": { "200": { "description": "Memberships List", @@ -18622,7 +18514,8 @@ }, "x-appwrite": { "method": "listMemberships", - "weight": 224, + "group": "memberships", + "weight": 228, "cookies": false, "type": "", "deprecated": false, @@ -18638,9 +18531,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/memberships", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18712,7 +18602,8 @@ }, "x-appwrite": { "method": "createMembership", - "weight": 223, + "group": "memberships", + "weight": 227, "cookies": false, "type": "", "deprecated": false, @@ -18728,9 +18619,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18812,7 +18700,7 @@ "tags": [ "teams" ], - "description": "Get a team member by the membership unique id. All team members have read access for this resource.", + "description": "Get a team member by the membership unique id. All team members have read access for this resource. Hide sensitive attributes from the response by toggling membership privacy in the Console.", "responses": { "200": { "description": "Membership", @@ -18827,7 +18715,8 @@ }, "x-appwrite": { "method": "getMembership", - "weight": 225, + "group": "memberships", + "weight": 229, "cookies": false, "type": "", "deprecated": false, @@ -18843,9 +18732,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/memberships", - "offline-key": "{membershipId}", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18903,7 +18789,8 @@ }, "x-appwrite": { "method": "updateMembership", - "weight": 226, + "group": "memberships", + "weight": 230, "cookies": false, "type": "", "deprecated": false, @@ -18919,9 +18806,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18994,7 +18878,8 @@ }, "x-appwrite": { "method": "deleteMembership", - "weight": 228, + "group": "memberships", + "weight": 232, "cookies": false, "type": "", "deprecated": false, @@ -19010,9 +18895,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -19072,7 +18954,8 @@ }, "x-appwrite": { "method": "updateMembershipStatus", - "weight": 227, + "group": "memberships", + "weight": 231, "cookies": false, "type": "", "deprecated": false, @@ -19087,9 +18970,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -19173,7 +19053,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 219, + "group": "teams", + "weight": 223, "cookies": false, "type": "", "deprecated": false, @@ -19188,9 +19069,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/prefs", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -19237,7 +19115,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 221, + "group": "teams", + "weight": 225, "cookies": false, "type": "", "deprecated": false, @@ -19252,9 +19131,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/prefs", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -19322,7 +19198,8 @@ }, "x-appwrite": { "method": "list", - "weight": 239, + "group": "users", + "weight": 243, "cookies": false, "type": "", "deprecated": false, @@ -19336,9 +19213,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -19398,7 +19272,8 @@ }, "x-appwrite": { "method": "create", - "weight": 230, + "group": "users", + "weight": 234, "cookies": false, "type": "", "deprecated": false, @@ -19412,9 +19287,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -19489,7 +19361,8 @@ }, "x-appwrite": { "method": "createArgon2User", - "weight": 233, + "group": "users", + "weight": 237, "cookies": false, "type": "", "deprecated": false, @@ -19503,9 +19376,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -19577,7 +19447,8 @@ }, "x-appwrite": { "method": "createBcryptUser", - "weight": 231, + "group": "users", + "weight": 235, "cookies": false, "type": "", "deprecated": false, @@ -19591,9 +19462,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -19645,7 +19513,7 @@ }, "\/users\/identities": { "get": { - "summary": "List Identities", + "summary": "List identities", "operationId": "usersListIdentities", "tags": [ "users" @@ -19665,7 +19533,8 @@ }, "x-appwrite": { "method": "listIdentities", - "weight": 247, + "group": "identities", + "weight": 251, "cookies": false, "type": "", "deprecated": false, @@ -19679,9 +19548,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -19736,7 +19602,8 @@ }, "x-appwrite": { "method": "deleteIdentity", - "weight": 270, + "group": "identities", + "weight": 274, "cookies": false, "type": "", "deprecated": false, @@ -19750,9 +19617,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -19800,7 +19664,8 @@ }, "x-appwrite": { "method": "createMD5User", - "weight": 232, + "group": "users", + "weight": 236, "cookies": false, "type": "", "deprecated": false, @@ -19814,9 +19679,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -19888,7 +19750,8 @@ }, "x-appwrite": { "method": "createPHPassUser", - "weight": 235, + "group": "users", + "weight": 239, "cookies": false, "type": "", "deprecated": false, @@ -19902,9 +19765,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -19976,7 +19836,8 @@ }, "x-appwrite": { "method": "createScryptUser", - "weight": 236, + "group": "users", + "weight": 240, "cookies": false, "type": "", "deprecated": false, @@ -19990,9 +19851,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20094,7 +19952,8 @@ }, "x-appwrite": { "method": "createScryptModifiedUser", - "weight": 237, + "group": "users", + "weight": 241, "cookies": false, "type": "", "deprecated": false, @@ -20108,9 +19967,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20200,7 +20056,8 @@ }, "x-appwrite": { "method": "createSHAUser", - "weight": 234, + "group": "users", + "weight": 238, "cookies": false, "type": "", "deprecated": false, @@ -20214,9 +20071,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20308,7 +20162,8 @@ }, "x-appwrite": { "method": "get", - "weight": 240, + "group": "users", + "weight": 244, "cookies": false, "type": "", "deprecated": false, @@ -20322,9 +20177,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20363,7 +20215,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 268, + "group": "users", + "weight": 272, "cookies": false, "type": "", "deprecated": false, @@ -20377,9 +20230,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20427,7 +20277,8 @@ }, "x-appwrite": { "method": "updateEmail", - "weight": 253, + "group": "users", + "weight": 257, "cookies": false, "type": "", "deprecated": false, @@ -20441,9 +20292,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20510,7 +20358,8 @@ }, "x-appwrite": { "method": "createJWT", - "weight": 271, + "group": "sessions", + "weight": 275, "cookies": false, "type": "", "deprecated": false, @@ -20524,9 +20373,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20595,7 +20441,8 @@ }, "x-appwrite": { "method": "updateLabels", - "weight": 249, + "group": "users", + "weight": 253, "cookies": false, "type": "", "deprecated": false, @@ -20609,9 +20456,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20681,7 +20525,8 @@ }, "x-appwrite": { "method": "listLogs", - "weight": 245, + "group": "logs", + "weight": 249, "cookies": false, "type": "", "deprecated": false, @@ -20695,9 +20540,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20758,7 +20600,8 @@ }, "x-appwrite": { "method": "listMemberships", - "weight": 244, + "group": "memberships", + "weight": 248, "cookies": false, "type": "", "deprecated": false, @@ -20772,9 +20615,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20822,7 +20662,8 @@ }, "x-appwrite": { "method": "updateMfa", - "weight": 258, + "group": "users", + "weight": 262, "cookies": false, "type": "", "deprecated": false, @@ -20836,9 +20677,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20885,27 +20723,21 @@ }, "\/users\/{userId}\/mfa\/authenticators\/{type}": { "delete": { - "summary": "Delete Authenticator", + "summary": "Delete authenticator", "operationId": "usersDeleteMfaAuthenticator", "tags": [ "users" ], "description": "Delete an authenticator app.", "responses": { - "200": { - "description": "User", - "content": { - "application\/json": { - "schema": { - "$ref": "#\/components\/schemas\/user" - } - } - } + "204": { + "description": "No content" } }, "x-appwrite": { "method": "deleteMfaAuthenticator", - "weight": 263, + "group": "mfa", + "weight": 267, "cookies": false, "type": "", "deprecated": false, @@ -20919,9 +20751,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20964,7 +20793,7 @@ }, "\/users\/{userId}\/mfa\/factors": { "get": { - "summary": "List Factors", + "summary": "List factors", "operationId": "usersListMfaFactors", "tags": [ "users" @@ -20984,7 +20813,8 @@ }, "x-appwrite": { "method": "listMfaFactors", - "weight": 259, + "group": "mfa", + "weight": 263, "cookies": false, "type": "", "deprecated": false, @@ -20998,9 +20828,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21028,7 +20855,7 @@ }, "\/users\/{userId}\/mfa\/recovery-codes": { "get": { - "summary": "Get MFA Recovery Codes", + "summary": "Get MFA recovery codes", "operationId": "usersGetMfaRecoveryCodes", "tags": [ "users" @@ -21048,7 +20875,8 @@ }, "x-appwrite": { "method": "getMfaRecoveryCodes", - "weight": 260, + "group": "mfa", + "weight": 264, "cookies": false, "type": "", "deprecated": false, @@ -21062,9 +20890,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21090,7 +20915,7 @@ ] }, "put": { - "summary": "Regenerate MFA Recovery Codes", + "summary": "Update MFA recovery codes (regenerate)", "operationId": "usersUpdateMfaRecoveryCodes", "tags": [ "users" @@ -21110,7 +20935,8 @@ }, "x-appwrite": { "method": "updateMfaRecoveryCodes", - "weight": 262, + "group": "mfa", + "weight": 266, "cookies": false, "type": "", "deprecated": false, @@ -21124,9 +20950,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21152,7 +20975,7 @@ ] }, "patch": { - "summary": "Create MFA Recovery Codes", + "summary": "Create MFA recovery codes", "operationId": "usersCreateMfaRecoveryCodes", "tags": [ "users" @@ -21172,7 +20995,8 @@ }, "x-appwrite": { "method": "createMfaRecoveryCodes", - "weight": 261, + "group": "mfa", + "weight": 265, "cookies": false, "type": "", "deprecated": false, @@ -21186,9 +21010,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21236,7 +21057,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 251, + "group": "users", + "weight": 255, "cookies": false, "type": "", "deprecated": false, @@ -21250,9 +21072,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21319,7 +21138,8 @@ }, "x-appwrite": { "method": "updatePassword", - "weight": 252, + "group": "users", + "weight": 256, "cookies": false, "type": "", "deprecated": false, @@ -21333,9 +21153,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21402,7 +21219,8 @@ }, "x-appwrite": { "method": "updatePhone", - "weight": 254, + "group": "users", + "weight": 258, "cookies": false, "type": "", "deprecated": false, @@ -21416,9 +21234,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21485,7 +21300,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 241, + "group": "users", + "weight": 245, "cookies": false, "type": "", "deprecated": false, @@ -21499,9 +21315,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21547,7 +21360,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 256, + "group": "users", + "weight": 260, "cookies": false, "type": "", "deprecated": false, @@ -21561,9 +21375,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21630,7 +21441,8 @@ }, "x-appwrite": { "method": "listSessions", - "weight": 243, + "group": "sessions", + "weight": 247, "cookies": false, "type": "", "deprecated": false, @@ -21644,9 +21456,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21692,7 +21501,8 @@ }, "x-appwrite": { "method": "createSession", - "weight": 264, + "group": "sessions", + "weight": 268, "cookies": false, "type": "", "deprecated": false, @@ -21706,9 +21516,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21747,7 +21554,8 @@ }, "x-appwrite": { "method": "deleteSessions", - "weight": 267, + "group": "sessions", + "weight": 271, "cookies": false, "type": "", "deprecated": false, @@ -21761,9 +21569,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21804,7 +21609,8 @@ }, "x-appwrite": { "method": "deleteSession", - "weight": 266, + "group": "sessions", + "weight": 270, "cookies": false, "type": "", "deprecated": false, @@ -21818,9 +21624,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21878,7 +21681,8 @@ }, "x-appwrite": { "method": "updateStatus", - "weight": 248, + "group": "users", + "weight": 252, "cookies": false, "type": "", "deprecated": false, @@ -21892,9 +21696,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21941,7 +21742,7 @@ }, "\/users\/{userId}\/targets": { "get": { - "summary": "List User Targets", + "summary": "List user targets", "operationId": "usersListTargets", "tags": [ "users" @@ -21961,7 +21762,8 @@ }, "x-appwrite": { "method": "listTargets", - "weight": 246, + "group": "targets", + "weight": 250, "cookies": false, "type": "", "deprecated": false, @@ -21976,9 +21778,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22017,7 +21816,7 @@ ] }, "post": { - "summary": "Create User Target", + "summary": "Create user target", "operationId": "usersCreateTarget", "tags": [ "users" @@ -22037,7 +21836,8 @@ }, "x-appwrite": { "method": "createTarget", - "weight": 238, + "group": "targets", + "weight": 242, "cookies": false, "type": "", "deprecated": false, @@ -22052,9 +21852,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22130,7 +21927,7 @@ }, "\/users\/{userId}\/targets\/{targetId}": { "get": { - "summary": "Get User Target", + "summary": "Get user target", "operationId": "usersGetTarget", "tags": [ "users" @@ -22150,7 +21947,8 @@ }, "x-appwrite": { "method": "getTarget", - "weight": 242, + "group": "targets", + "weight": 246, "cookies": false, "type": "", "deprecated": false, @@ -22165,9 +21963,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22203,7 +21998,7 @@ ] }, "patch": { - "summary": "Update User target", + "summary": "Update user target", "operationId": "usersUpdateTarget", "tags": [ "users" @@ -22223,7 +22018,8 @@ }, "x-appwrite": { "method": "updateTarget", - "weight": 257, + "group": "targets", + "weight": 261, "cookies": false, "type": "", "deprecated": false, @@ -22238,9 +22034,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22315,7 +22108,8 @@ }, "x-appwrite": { "method": "deleteTarget", - "weight": 269, + "group": "targets", + "weight": 273, "cookies": false, "type": "", "deprecated": false, @@ -22330,9 +22124,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22390,7 +22181,8 @@ }, "x-appwrite": { "method": "createToken", - "weight": 265, + "group": "sessions", + "weight": 269, "cookies": false, "type": "", "deprecated": false, @@ -22404,9 +22196,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22475,7 +22264,8 @@ }, "x-appwrite": { "method": "updateEmailVerification", - "weight": 255, + "group": "users", + "weight": 259, "cookies": false, "type": "", "deprecated": false, @@ -22489,9 +22279,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22558,7 +22345,8 @@ }, "x-appwrite": { "method": "updatePhoneVerification", - "weight": 250, + "group": "users", + "weight": 254, "cookies": false, "type": "", "deprecated": false, @@ -22572,9 +22360,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22623,85 +22408,67 @@ "tags": [ { "name": "account", - "description": "The Account service allows you to authenticate and manage a user account.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Avatars service aims to help you complete everyday tasks related to your app image, icons, and avatars." }, { "name": "databases", - "description": "The Databases service allows you to create structured collections of documents, query and filter lists of documents", - "x-globalAttributes": [ - "databaseId" - ] + "description": "The Databases 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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Project service allows you to manage all the projects in your Appwrite server." }, { "name": "project", - "description": "The Project service allows you to manage all the projects in your Appwrite server.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Functions Service allows you view, create and manage your Cloud Functions." }, { "name": "proxy", - "description": "The Proxy Service allows you to configure actions for your domains beyond DNS configuration.", - "x-globalAttributes": [] + "description": "The Proxy Service allows you to configure actions for your domains beyond DNS configuration." }, { "name": "graphql", - "description": "The GraphQL API allows you to query and mutate your Appwrite server using GraphQL.", - "x-globalAttributes": [] + "description": "The GraphQL API allows you to query and mutate your Appwrite server using GraphQL." }, { "name": "console", - "description": "The Console service allows you to interact with console relevant informations.", - "x-globalAttributes": [] + "description": "The Console service allows you to interact with console relevant informations." }, { "name": "migrations", - "description": "The Migrations service allows you to migrate third-party data to your Appwrite project.", - "x-globalAttributes": [] + "description": "The Migrations service allows you to migrate third-party data to your Appwrite project." }, { "name": "messaging", - "description": "The Messaging service allows you to send messages to any provider type (SMTP, push notification, SMS, etc.).", - "x-globalAttributes": [] + "description": "The Messaging service allows you to send messages to any provider type (SMTP, push notification, SMS, etc.)." } ], "components": { @@ -23677,6 +23444,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "size": { "type": "integer", "description": "Attribute size.", @@ -23696,6 +23473,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "size" ] }, @@ -23734,6 +23513,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "min": { "type": "integer", "description": "Minimum value to enforce for new documents.", @@ -23761,7 +23550,9 @@ "type", "status", "error", - "required" + "required", + "$createdAt", + "$updatedAt" ] }, "attributeFloat": { @@ -23799,6 +23590,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "min": { "type": "number", "description": "Minimum value to enforce for new documents.", @@ -23826,7 +23627,9 @@ "type", "status", "error", - "required" + "required", + "$createdAt", + "$updatedAt" ] }, "attributeBoolean": { @@ -23864,6 +23667,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "default": { "type": "boolean", "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", @@ -23876,7 +23689,9 @@ "type", "status", "error", - "required" + "required", + "$createdAt", + "$updatedAt" ] }, "attributeEmail": { @@ -23914,6 +23729,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "String format.", @@ -23932,6 +23757,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -23970,6 +23797,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "elements": { "type": "array", "description": "Array of elements in enumerated type.", @@ -23996,6 +23833,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "elements", "format" ] @@ -24035,6 +23874,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "String format.", @@ -24053,6 +23902,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -24091,6 +23942,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "String format.", @@ -24109,6 +23970,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -24147,6 +24010,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "ISO 8601 format.", @@ -24165,6 +24038,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -24203,6 +24078,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "relatedCollection": { "type": "string", "description": "The ID of the related collection.", @@ -24240,6 +24125,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "relatedCollection", "relationType", "twoWay", @@ -24288,6 +24175,16 @@ }, "x-example": [], "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Index creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Index update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" } }, "required": [ @@ -24295,7 +24192,9 @@ "type", "status", "error", - "attributes" + "attributes", + "$createdAt", + "$updatedAt" ] }, "document": { @@ -25447,12 +25346,12 @@ }, "userName": { "type": "string", - "description": "User name.", + "description": "User name. Hide this attribute by toggling membership privacy in the Console.", "x-example": "John Doe" }, "userEmail": { "type": "string", - "description": "User email address.", + "description": "User email address. Hide this attribute by toggling membership privacy in the Console.", "x-example": "john@appwrite.io" }, "teamId": { @@ -25482,7 +25381,7 @@ }, "mfa": { "type": "boolean", - "description": "Multi factor authentication status, true if the user has MFA enabled or false otherwise.", + "description": "Multi factor authentication status, true if the user has MFA enabled or false otherwise. Hide this attribute by toggling membership privacy in the Console.", "x-example": false }, "roles": { @@ -25595,7 +25494,7 @@ }, "schedule": { "type": "string", - "description": "Function execution schedult in CRON format.", + "description": "Function execution schedule in CRON format.", "x-example": "5 4 * * *" }, "timeout": { @@ -25647,7 +25546,7 @@ "specification": { "type": "string", "description": "Machine specification for builds and executions.", - "x-example": "s-0.5vcpu-512mb" + "x-example": "s-1vcpu-512mb" } }, "required": [ @@ -25966,7 +25865,7 @@ "responseBody": { "type": "string", "description": "HTTP response body. This will return empty unless execution is created as synchronous.", - "x-example": "Developers are awesome." + "x-example": "" }, "responseHeaders": { "type": "array", @@ -26459,7 +26358,7 @@ "slug": { "type": "string", "description": "Size slug.", - "x-example": "s-0.5vcpu-512mb" + "x-example": "s-1vcpu-512mb" } }, "required": [ @@ -26907,7 +26806,7 @@ "name": { "type": "string", "description": "Target Name.", - "x-example": "Aegon apple token" + "x-example": "Apple iPhone 12" }, "userId": { "type": "string", @@ -26929,6 +26828,11 @@ "type": "string", "description": "The target identifier.", "x-example": "token" + }, + "expired": { + "type": "boolean", + "description": "Is the target expired.", + "x-example": false } }, "required": [ @@ -26938,7 +26842,8 @@ "name", "userId", "providerType", - "identifier" + "identifier", + "expired" ] } }, diff --git a/app/config/specs/open-api3-latest-client.json b/app/config/specs/open-api3-latest-client.json index 8a9967090d8..e84c511f786 100644 --- a/app/config/specs/open-api3-latest-client.json +++ b/app/config/specs/open-api3-latest-client.json @@ -1,7 +1,7 @@ { "openapi": "3.0.0", "info": { - "version": "1.6.0", + "version": "1.6.2", "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", @@ -18,6 +18,9 @@ "servers": [ { "url": "https:\/\/cloud.appwrite.io\/v1" + }, + { + "url": "https:\/\/.cloud.appwrite.io\/v1" } ], "paths": { @@ -43,7 +46,8 @@ }, "x-appwrite": { "method": "get", - "weight": 8, + "group": "account", + "weight": 9, "cookies": false, "type": "", "deprecated": false, @@ -58,9 +62,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -94,7 +95,8 @@ }, "x-appwrite": { "method": "create", - "weight": 7, + "group": "account", + "weight": 8, "cookies": false, "type": "", "deprecated": false, @@ -109,9 +111,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -181,7 +180,8 @@ }, "x-appwrite": { "method": "updateEmail", - "weight": 33, + "group": "account", + "weight": 34, "cookies": false, "type": "", "deprecated": false, @@ -196,9 +196,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -239,7 +236,7 @@ }, "\/account\/identities": { "get": { - "summary": "List Identities", + "summary": "List identities", "operationId": "accountListIdentities", "tags": [ "account" @@ -259,7 +256,8 @@ }, "x-appwrite": { "method": "listIdentities", - "weight": 56, + "group": "identities", + "weight": 57, "cookies": false, "type": "", "deprecated": false, @@ -274,9 +272,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/identities", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -320,7 +315,8 @@ }, "x-appwrite": { "method": "deleteIdentity", - "weight": 57, + "group": "identities", + "weight": 58, "cookies": false, "type": "", "deprecated": false, @@ -335,9 +331,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -385,7 +378,8 @@ }, "x-appwrite": { "method": "createJWT", - "weight": 28, + "group": "tokens", + "weight": 29, "cookies": false, "type": "", "deprecated": false, @@ -400,9 +394,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -436,7 +427,8 @@ }, "x-appwrite": { "method": "listLogs", - "weight": 30, + "group": "logs", + "weight": 31, "cookies": false, "type": "", "deprecated": false, @@ -451,9 +443,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -504,7 +493,8 @@ }, "x-appwrite": { "method": "updateMFA", - "weight": 43, + "group": "mfa", + "weight": 44, "cookies": false, "type": "", "deprecated": false, @@ -519,9 +509,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -556,7 +543,7 @@ }, "\/account\/mfa\/authenticators\/{type}": { "post": { - "summary": "Create Authenticator", + "summary": "Create authenticator", "operationId": "accountCreateMfaAuthenticator", "tags": [ "account" @@ -576,7 +563,8 @@ }, "x-appwrite": { "method": "createMfaAuthenticator", - "weight": 45, + "group": "mfa", + "weight": 46, "cookies": false, "type": "", "deprecated": false, @@ -591,9 +579,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -624,7 +609,7 @@ ] }, "put": { - "summary": "Verify Authenticator", + "summary": "Update authenticator (confirmation)", "operationId": "accountUpdateMfaAuthenticator", "tags": [ "account" @@ -644,7 +629,8 @@ }, "x-appwrite": { "method": "updateMfaAuthenticator", - "weight": 46, + "group": "mfa", + "weight": 47, "cookies": false, "type": "", "deprecated": false, @@ -659,9 +645,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -711,7 +694,7 @@ } }, "delete": { - "summary": "Delete Authenticator", + "summary": "Delete authenticator", "operationId": "accountDeleteMfaAuthenticator", "tags": [ "account" @@ -724,7 +707,8 @@ }, "x-appwrite": { "method": "deleteMfaAuthenticator", - "weight": 50, + "group": "mfa", + "weight": 51, "cookies": false, "type": "", "deprecated": false, @@ -739,9 +723,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -774,7 +755,7 @@ }, "\/account\/mfa\/challenge": { "post": { - "summary": "Create MFA Challenge", + "summary": "Create MFA challenge", "operationId": "accountCreateMfaChallenge", "tags": [ "account" @@ -794,7 +775,8 @@ }, "x-appwrite": { "method": "createMfaChallenge", - "weight": 51, + "group": "mfa", + "weight": 52, "cookies": false, "type": "", "deprecated": false, @@ -809,9 +791,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -850,17 +829,17 @@ } }, "put": { - "summary": "Create MFA Challenge (confirmation)", + "summary": "Update MFA challenge (confirmation)", "operationId": "accountUpdateMfaChallenge", "tags": [ "account" ], "description": "Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", "responses": { - "204": { - "description": "No content", + "200": { + "description": "Session", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/session" } @@ -870,7 +849,8 @@ }, "x-appwrite": { "method": "updateMfaChallenge", - "weight": 52, + "group": "mfa", + "weight": 53, "cookies": false, "type": "", "deprecated": false, @@ -885,9 +865,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -928,7 +905,7 @@ }, "\/account\/mfa\/factors": { "get": { - "summary": "List Factors", + "summary": "List factors", "operationId": "accountListMfaFactors", "tags": [ "account" @@ -948,7 +925,8 @@ }, "x-appwrite": { "method": "listMfaFactors", - "weight": 44, + "group": "mfa", + "weight": 45, "cookies": false, "type": "", "deprecated": false, @@ -963,9 +941,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -981,7 +956,7 @@ }, "\/account\/mfa\/recovery-codes": { "get": { - "summary": "Get MFA Recovery Codes", + "summary": "List MFA recovery codes", "operationId": "accountGetMfaRecoveryCodes", "tags": [ "account" @@ -1001,7 +976,8 @@ }, "x-appwrite": { "method": "getMfaRecoveryCodes", - "weight": 49, + "group": "mfa", + "weight": 50, "cookies": false, "type": "", "deprecated": false, @@ -1016,9 +992,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1032,7 +1005,7 @@ ] }, "post": { - "summary": "Create MFA Recovery Codes", + "summary": "Create MFA recovery codes", "operationId": "accountCreateMfaRecoveryCodes", "tags": [ "account" @@ -1052,7 +1025,8 @@ }, "x-appwrite": { "method": "createMfaRecoveryCodes", - "weight": 47, + "group": "mfa", + "weight": 48, "cookies": false, "type": "", "deprecated": false, @@ -1067,9 +1041,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1083,7 +1054,7 @@ ] }, "patch": { - "summary": "Regenerate MFA Recovery Codes", + "summary": "Update MFA recovery codes (regenerate)", "operationId": "accountUpdateMfaRecoveryCodes", "tags": [ "account" @@ -1103,7 +1074,8 @@ }, "x-appwrite": { "method": "updateMfaRecoveryCodes", - "weight": 48, + "group": "mfa", + "weight": 49, "cookies": false, "type": "", "deprecated": false, @@ -1118,9 +1090,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1156,7 +1125,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 31, + "group": "account", + "weight": 32, "cookies": false, "type": "", "deprecated": false, @@ -1171,9 +1141,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1228,7 +1195,8 @@ }, "x-appwrite": { "method": "updatePassword", - "weight": 32, + "group": "account", + "weight": 33, "cookies": false, "type": "", "deprecated": false, @@ -1243,9 +1211,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1305,7 +1270,8 @@ }, "x-appwrite": { "method": "updatePhone", - "weight": 34, + "group": "account", + "weight": 35, "cookies": false, "type": "", "deprecated": false, @@ -1320,9 +1286,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1383,7 +1346,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 29, + "group": "account", + "weight": 30, "cookies": false, "type": "", "deprecated": false, @@ -1398,9 +1362,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/prefs", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1434,7 +1395,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 35, + "group": "account", + "weight": 36, "cookies": false, "type": "", "deprecated": false, @@ -1449,9 +1411,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/prefs", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1506,7 +1465,8 @@ }, "x-appwrite": { "method": "createRecovery", - "weight": 37, + "group": "recovery", + "weight": 38, "cookies": false, "type": "", "deprecated": false, @@ -1524,9 +1484,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1565,7 +1522,7 @@ } }, "put": { - "summary": "Create password recovery (confirmation)", + "summary": "Update password recovery (confirmation)", "operationId": "accountUpdateRecovery", "tags": [ "account" @@ -1585,7 +1542,8 @@ }, "x-appwrite": { "method": "updateRecovery", - "weight": 38, + "group": "recovery", + "weight": 39, "cookies": false, "type": "", "deprecated": false, @@ -1600,9 +1558,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1669,7 +1624,8 @@ }, "x-appwrite": { "method": "listSessions", - "weight": 10, + "group": "sessions", + "weight": 11, "cookies": false, "type": "", "deprecated": false, @@ -1684,9 +1640,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/sessions", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1713,7 +1666,8 @@ }, "x-appwrite": { "method": "deleteSessions", - "weight": 11, + "group": "sessions", + "weight": 12, "cookies": false, "type": "", "deprecated": false, @@ -1728,9 +1682,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1766,7 +1717,8 @@ }, "x-appwrite": { "method": "createAnonymousSession", - "weight": 16, + "group": "sessions", + "weight": 17, "cookies": false, "type": "", "deprecated": false, @@ -1781,9 +1733,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1817,7 +1766,8 @@ }, "x-appwrite": { "method": "createEmailPasswordSession", - "weight": 15, + "group": "sessions", + "weight": 16, "cookies": false, "type": "", "deprecated": false, @@ -1832,9 +1782,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1893,7 +1840,8 @@ }, "x-appwrite": { "method": "updateMagicURLSession", - "weight": 25, + "group": "sessions", + "weight": 26, "cookies": false, "type": "", "deprecated": true, @@ -1908,9 +1856,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1962,7 +1907,8 @@ }, "x-appwrite": { "method": "createOAuth2Session", - "weight": 18, + "group": "sessions", + "weight": 19, "cookies": false, "type": "webAuth", "deprecated": false, @@ -1977,9 +1923,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1992,7 +1935,7 @@ "parameters": [ { "name": "provider", - "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", + "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", "required": true, "schema": { "type": "string", @@ -2012,6 +1955,7 @@ "dropbox", "etsy", "facebook", + "figma", "github", "gitlab", "google", @@ -2105,7 +2049,8 @@ }, "x-appwrite": { "method": "updatePhoneSession", - "weight": 26, + "group": "sessions", + "weight": 27, "cookies": false, "type": "", "deprecated": true, @@ -2120,9 +2065,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2181,7 +2123,8 @@ }, "x-appwrite": { "method": "createSession", - "weight": 17, + "group": "sessions", + "weight": 18, "cookies": false, "type": "", "deprecated": false, @@ -2196,9 +2139,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2257,7 +2197,8 @@ }, "x-appwrite": { "method": "getSession", - "weight": 12, + "group": "sessions", + "weight": 13, "cookies": false, "type": "", "deprecated": false, @@ -2272,9 +2213,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/sessions", - "offline-key": "{sessionId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2320,7 +2258,8 @@ }, "x-appwrite": { "method": "updateSession", - "weight": 14, + "group": "sessions", + "weight": 15, "cookies": false, "type": "", "deprecated": false, @@ -2335,9 +2274,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2376,7 +2312,8 @@ }, "x-appwrite": { "method": "deleteSession", - "weight": 13, + "group": "sessions", + "weight": 14, "cookies": false, "type": "", "deprecated": false, @@ -2391,9 +2328,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2441,7 +2375,8 @@ }, "x-appwrite": { "method": "updateStatus", - "weight": 36, + "group": "account", + "weight": 37, "cookies": false, "type": "", "deprecated": false, @@ -2456,9 +2391,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2479,7 +2411,7 @@ "tags": [ "account" ], - "description": "", + "description": "Use this endpoint to register a device for push notifications. Provide a target ID (custom or generated using ID.unique()), a device identifier (usually a device token), and optionally specify which provider should send notifications to this target. The target is automatically linked to the current session and includes device information like brand and model.", "responses": { "201": { "description": "Target", @@ -2494,12 +2426,13 @@ }, "x-appwrite": { "method": "createPushTarget", - "weight": 53, + "group": "pushTargets", + "weight": 54, "cookies": false, "type": "", "deprecated": false, "demo": "account\/create-push-target.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-push-target.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -2508,9 +2441,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2560,7 +2490,7 @@ "tags": [ "account" ], - "description": "", + "description": "Update the currently logged in user's push notification target. You can modify the target's identifier (device token) and provider ID (token, email, phone etc.). The target must exist and belong to the current user. If you change the provider ID, notifications will be sent through the new messaging provider instead.", "responses": { "200": { "description": "Target", @@ -2575,12 +2505,13 @@ }, "x-appwrite": { "method": "updatePushTarget", - "weight": 54, + "group": "pushTargets", + "weight": 55, "cookies": false, "type": "", "deprecated": false, "demo": "account\/update-push-target.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-push-target.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -2589,9 +2520,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2640,27 +2568,21 @@ "tags": [ "account" ], - "description": "", + "description": "Delete a push notification target for the currently logged in user. After deletion, the device will no longer receive push notifications. The target must exist and belong to the current user.", "responses": { "204": { - "description": "No content", - "content": { - "application\/json": { - "schema": { - "$ref": "#\/components\/schemas\/target" - } - } - } + "description": "No content" } }, "x-appwrite": { "method": "deletePushTarget", - "weight": 55, + "group": "pushTargets", + "weight": 56, "cookies": false, "type": "", "deprecated": false, "demo": "account\/delete-push-target.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/delete-push-target.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -2669,9 +2591,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2718,7 +2637,8 @@ }, "x-appwrite": { "method": "createEmailToken", - "weight": 24, + "group": "tokens", + "weight": 25, "cookies": false, "type": "", "deprecated": false, @@ -2726,16 +2646,16 @@ "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-email.md", "rate-limit": 10, "rate-time": 3600, - "rate-key": "url:{url},email:{param-email}", + "rate-key": [ + "url:{url},email:{param-email}", + "url:{url},ip:{ip}" + ], "scope": "sessions.write", "platforms": [ "server", "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2784,7 +2704,7 @@ "tags": [ "account" ], - "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. 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 [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) 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.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", + "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. 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 [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) endpoint to complete the login process. The link sent to the user's email address is valid for 1 hour.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", "responses": { "201": { "description": "Token", @@ -2799,7 +2719,8 @@ }, "x-appwrite": { "method": "createMagicURLToken", - "weight": 23, + "group": "tokens", + "weight": 24, "cookies": false, "type": "", "deprecated": false, @@ -2817,9 +2738,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2881,7 +2799,8 @@ }, "x-appwrite": { "method": "createOAuth2Token", - "weight": 22, + "group": "tokens", + "weight": 23, "cookies": false, "type": "webAuth", "deprecated": false, @@ -2896,9 +2815,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2911,7 +2827,7 @@ "parameters": [ { "name": "provider", - "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", + "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", "required": true, "schema": { "type": "string", @@ -2931,6 +2847,7 @@ "dropbox", "etsy", "facebook", + "figma", "github", "gitlab", "google", @@ -3024,7 +2941,8 @@ }, "x-appwrite": { "method": "createPhoneToken", - "weight": 27, + "group": "tokens", + "weight": 28, "cookies": false, "type": "", "deprecated": false, @@ -3042,9 +2960,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3103,7 +3018,8 @@ }, "x-appwrite": { "method": "createVerification", - "weight": 39, + "group": "verification", + "weight": 40, "cookies": false, "type": "", "deprecated": false, @@ -3118,9 +3034,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3153,7 +3066,7 @@ } }, "put": { - "summary": "Create email verification (confirmation)", + "summary": "Update email verification (confirmation)", "operationId": "accountUpdateVerification", "tags": [ "account" @@ -3173,7 +3086,8 @@ }, "x-appwrite": { "method": "updateVerification", - "weight": 40, + "group": "verification", + "weight": 41, "cookies": false, "type": "", "deprecated": false, @@ -3188,9 +3102,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3251,7 +3162,8 @@ }, "x-appwrite": { "method": "createPhoneVerification", - "weight": 41, + "group": "verification", + "weight": 42, "cookies": false, "type": "", "deprecated": false, @@ -3269,9 +3181,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3305,7 +3214,8 @@ }, "x-appwrite": { "method": "updatePhoneVerification", - "weight": 42, + "group": "verification", + "weight": 43, "cookies": false, "type": "", "deprecated": false, @@ -3320,9 +3230,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3376,7 +3283,8 @@ }, "x-appwrite": { "method": "getBrowser", - "weight": 59, + "group": null, + "weight": 60, "cookies": false, "type": "location", "deprecated": false, @@ -3392,9 +3300,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3504,7 +3409,8 @@ }, "x-appwrite": { "method": "getCreditCard", - "weight": 58, + "group": null, + "weight": 59, "cookies": false, "type": "location", "deprecated": false, @@ -3520,9 +3426,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3537,7 +3440,7 @@ "parameters": [ { "name": "code", - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro.", + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", "required": true, "schema": { "type": "string", @@ -3558,7 +3461,8 @@ "union-china-pay", "visa", "mir", - "maestro" + "maestro", + "rupay" ], "x-enum-name": "CreditCard", "x-enum-keys": [ @@ -3577,7 +3481,8 @@ "Union China Pay", "Visa", "MIR", - "Maestro" + "Maestro", + "Rupay" ] }, "in": "path" @@ -3636,7 +3541,8 @@ }, "x-appwrite": { "method": "getFavicon", - "weight": 62, + "group": null, + "weight": 63, "cookies": false, "type": "location", "deprecated": false, @@ -3652,9 +3558,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3696,7 +3599,8 @@ }, "x-appwrite": { "method": "getFlag", - "weight": 60, + "group": null, + "weight": 61, "cookies": false, "type": "location", "deprecated": false, @@ -3712,9 +3616,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4186,7 +4087,8 @@ }, "x-appwrite": { "method": "getImage", - "weight": 61, + "group": null, + "weight": 62, "cookies": false, "type": "location", "deprecated": false, @@ -4202,9 +4104,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4270,7 +4169,8 @@ }, "x-appwrite": { "method": "getInitials", - "weight": 64, + "group": null, + "weight": 65, "cookies": false, "type": "location", "deprecated": false, @@ -4286,9 +4186,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4364,7 +4261,8 @@ }, "x-appwrite": { "method": "getQR", - "weight": 63, + "group": null, + "weight": 64, "cookies": false, "type": "location", "deprecated": false, @@ -4380,9 +4278,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4465,7 +4360,8 @@ }, "x-appwrite": { "method": "listDocuments", - "weight": 108, + "group": "documents", + "weight": 109, "cookies": false, "type": "", "deprecated": false, @@ -4481,9 +4377,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4552,7 +4445,8 @@ }, "x-appwrite": { "method": "createDocument", - "weight": 107, + "group": "documents", + "weight": 108, "cookies": false, "type": "", "deprecated": false, @@ -4568,9 +4462,31 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", + "methods": [ + { + "name": "createDocument", + "parameters": [ + "databaseId", + "collectionId", + "documentId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "collectionId", + "documentId", + "data" + ], + "responses": [ + { + "code": 201, + "model": "#\/components\/schemas\/document" + } + ], + "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + } + ], "auth": { "Project": [] } @@ -4627,12 +4543,16 @@ "items": { "type": "string" } + }, + "documents": { + "type": "array", + "description": "Array of documents data as JSON objects.", + "x-example": null, + "items": { + "type": "object" + } } - }, - "required": [ - "documentId", - "data" - ] + } } } } @@ -4661,7 +4581,8 @@ }, "x-appwrite": { "method": "getDocument", - "weight": 109, + "group": "documents", + "weight": 110, "cookies": false, "type": "", "deprecated": false, @@ -4677,9 +4598,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4758,7 +4676,8 @@ }, "x-appwrite": { "method": "updateDocument", - "weight": 111, + "group": "documents", + "weight": 112, "cookies": false, "type": "", "deprecated": false, @@ -4774,9 +4693,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4859,7 +4775,8 @@ }, "x-appwrite": { "method": "deleteDocument", - "weight": 112, + "group": "documents", + "weight": 115, "cookies": false, "type": "", "deprecated": false, @@ -4875,9 +4792,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4945,7 +4859,8 @@ }, "x-appwrite": { "method": "listExecutions", - "weight": 304, + "group": "executions", + "weight": 308, "cookies": false, "type": "", "deprecated": false, @@ -4961,9 +4876,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5033,7 +4945,8 @@ }, "x-appwrite": { "method": "createExecution", - "weight": 303, + "group": "executions", + "weight": 307, "cookies": false, "type": "", "deprecated": false, @@ -5049,9 +4962,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5084,7 +4994,7 @@ "body": { "type": "string", "description": "HTTP body of execution. Default value is empty string.", - "x-example": null + "x-example": "" }, "async": { "type": "boolean", @@ -5150,7 +5060,8 @@ }, "x-appwrite": { "method": "getExecution", - "weight": 305, + "group": "executions", + "weight": 309, "cookies": false, "type": "", "deprecated": false, @@ -5166,9 +5077,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5226,7 +5134,8 @@ }, "x-appwrite": { "method": "query", - "weight": 329, + "group": "graphql", + "weight": 333, "cookies": false, "type": "graphql", "deprecated": false, @@ -5242,9 +5151,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5280,7 +5186,8 @@ }, "x-appwrite": { "method": "mutation", - "weight": 328, + "group": "graphql", + "weight": 332, "cookies": false, "type": "graphql", "deprecated": false, @@ -5296,9 +5203,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5334,7 +5238,8 @@ }, "x-appwrite": { "method": "get", - "weight": 116, + "group": null, + "weight": 120, "cookies": false, "type": "", "deprecated": false, @@ -5350,9 +5255,6 @@ "server" ], "packaging": false, - "offline-model": "\/localed", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5368,7 +5270,7 @@ }, "\/locale\/codes": { "get": { - "summary": "List Locale Codes", + "summary": "List locale codes", "operationId": "localeListCodes", "tags": [ "locale" @@ -5388,7 +5290,8 @@ }, "x-appwrite": { "method": "listCodes", - "weight": 117, + "group": null, + "weight": 121, "cookies": false, "type": "", "deprecated": false, @@ -5404,9 +5307,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/localeCode", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5442,7 +5342,8 @@ }, "x-appwrite": { "method": "listContinents", - "weight": 121, + "group": null, + "weight": 125, "cookies": false, "type": "", "deprecated": false, @@ -5458,9 +5359,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/continents", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -5496,7 +5394,8 @@ }, "x-appwrite": { "method": "listCountries", - "weight": 118, + "group": null, + "weight": 122, "cookies": false, "type": "", "deprecated": false, @@ -5512,9 +5411,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -5550,7 +5446,8 @@ }, "x-appwrite": { "method": "listCountriesEU", - "weight": 119, + "group": null, + "weight": 123, "cookies": false, "type": "", "deprecated": false, @@ -5566,9 +5463,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries\/eu", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -5604,7 +5498,8 @@ }, "x-appwrite": { "method": "listCountriesPhones", - "weight": 120, + "group": null, + "weight": 124, "cookies": false, "type": "", "deprecated": false, @@ -5620,9 +5515,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries\/phones", - "offline-key": "", - "offline-response-key": "countryCode", "auth": { "Project": [] } @@ -5658,7 +5550,8 @@ }, "x-appwrite": { "method": "listCurrencies", - "weight": 122, + "group": null, + "weight": 126, "cookies": false, "type": "", "deprecated": false, @@ -5674,9 +5567,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/currencies", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -5712,7 +5602,8 @@ }, "x-appwrite": { "method": "listLanguages", - "weight": 123, + "group": null, + "weight": 127, "cookies": false, "type": "", "deprecated": false, @@ -5728,9 +5619,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/languages", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -5766,7 +5654,8 @@ }, "x-appwrite": { "method": "createSubscriber", - "weight": 380, + "group": "subscribers", + "weight": 378, "cookies": false, "type": "", "deprecated": false, @@ -5783,9 +5672,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5851,7 +5737,8 @@ }, "x-appwrite": { "method": "deleteSubscriber", - "weight": 384, + "group": "subscribers", + "weight": 382, "cookies": false, "type": "", "deprecated": false, @@ -5868,9 +5755,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5928,7 +5812,8 @@ }, "x-appwrite": { "method": "listFiles", - "weight": 206, + "group": "files", + "weight": 210, "cookies": false, "type": "", "deprecated": false, @@ -5944,9 +5829,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6016,7 +5898,8 @@ }, "x-appwrite": { "method": "createFile", - "weight": 205, + "group": "files", + "weight": 209, "cookies": false, "type": "upload", "deprecated": false, @@ -6032,9 +5915,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6116,7 +5996,8 @@ }, "x-appwrite": { "method": "getFile", - "weight": 207, + "group": "files", + "weight": 211, "cookies": false, "type": "", "deprecated": false, @@ -6132,9 +6013,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6190,7 +6068,8 @@ }, "x-appwrite": { "method": "updateFile", - "weight": 212, + "group": "files", + "weight": 216, "cookies": false, "type": "", "deprecated": false, @@ -6206,9 +6085,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6268,7 +6144,7 @@ } }, "delete": { - "summary": "Delete File", + "summary": "Delete file", "operationId": "storageDeleteFile", "tags": [ "storage" @@ -6281,7 +6157,8 @@ }, "x-appwrite": { "method": "deleteFile", - "weight": 213, + "group": "files", + "weight": 217, "cookies": false, "type": "", "deprecated": false, @@ -6297,9 +6174,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6350,7 +6224,8 @@ }, "x-appwrite": { "method": "getFileDownload", - "weight": 209, + "group": "files", + "weight": 213, "cookies": false, "type": "location", "deprecated": false, @@ -6366,9 +6241,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6419,7 +6291,8 @@ }, "x-appwrite": { "method": "getFilePreview", - "weight": 208, + "group": "files", + "weight": 212, "cookies": false, "type": "location", "deprecated": false, @@ -6435,9 +6308,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6610,7 +6480,9 @@ "jpeg", "gif", "png", - "webp" + "webp", + "heic", + "avif" ], "x-enum-name": "ImageFormat", "x-enum-keys": [], @@ -6636,7 +6508,8 @@ }, "x-appwrite": { "method": "getFileView", - "weight": 210, + "group": "files", + "weight": 214, "cookies": false, "type": "location", "deprecated": false, @@ -6652,9 +6525,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6712,7 +6582,8 @@ }, "x-appwrite": { "method": "list", - "weight": 217, + "group": "teams", + "weight": 221, "cookies": false, "type": "", "deprecated": false, @@ -6728,9 +6599,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6790,7 +6658,8 @@ }, "x-appwrite": { "method": "create", - "weight": 216, + "group": "teams", + "weight": 220, "cookies": false, "type": "", "deprecated": false, @@ -6806,9 +6675,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6877,7 +6743,8 @@ }, "x-appwrite": { "method": "get", - "weight": 218, + "group": "teams", + "weight": 222, "cookies": false, "type": "", "deprecated": false, @@ -6893,9 +6760,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "{teamId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6941,7 +6805,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 220, + "group": "teams", + "weight": 224, "cookies": false, "type": "", "deprecated": false, @@ -6957,9 +6822,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "{teamId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7017,7 +6879,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 222, + "group": "teams", + "weight": 226, "cookies": false, "type": "", "deprecated": false, @@ -7033,9 +6896,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7068,7 +6928,7 @@ "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.", + "description": "Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint. Hide sensitive attributes from the response by toggling membership privacy in the Console.", "responses": { "200": { "description": "Memberships List", @@ -7083,7 +6943,8 @@ }, "x-appwrite": { "method": "listMemberships", - "weight": 224, + "group": "memberships", + "weight": 228, "cookies": false, "type": "", "deprecated": false, @@ -7099,9 +6960,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/memberships", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7171,7 +7029,8 @@ }, "x-appwrite": { "method": "createMembership", - "weight": 223, + "group": "memberships", + "weight": 227, "cookies": false, "type": "", "deprecated": false, @@ -7187,9 +7046,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7269,7 +7125,7 @@ "tags": [ "teams" ], - "description": "Get a team member by the membership unique id. All team members have read access for this resource.", + "description": "Get a team member by the membership unique id. All team members have read access for this resource. Hide sensitive attributes from the response by toggling membership privacy in the Console.", "responses": { "200": { "description": "Membership", @@ -7284,7 +7140,8 @@ }, "x-appwrite": { "method": "getMembership", - "weight": 225, + "group": "memberships", + "weight": 229, "cookies": false, "type": "", "deprecated": false, @@ -7300,9 +7157,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/memberships", - "offline-key": "{membershipId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7358,7 +7212,8 @@ }, "x-appwrite": { "method": "updateMembership", - "weight": 226, + "group": "memberships", + "weight": 230, "cookies": false, "type": "", "deprecated": false, @@ -7374,9 +7229,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7447,7 +7299,8 @@ }, "x-appwrite": { "method": "deleteMembership", - "weight": 228, + "group": "memberships", + "weight": 232, "cookies": false, "type": "", "deprecated": false, @@ -7463,9 +7316,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7523,7 +7373,8 @@ }, "x-appwrite": { "method": "updateMembershipStatus", - "weight": 227, + "group": "memberships", + "weight": 231, "cookies": false, "type": "", "deprecated": false, @@ -7538,9 +7389,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7623,7 +7471,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 219, + "group": "teams", + "weight": 223, "cookies": false, "type": "", "deprecated": false, @@ -7638,9 +7487,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/prefs", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7686,7 +7532,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 221, + "group": "teams", + "weight": 225, "cookies": false, "type": "", "deprecated": false, @@ -7701,9 +7548,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/prefs", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7752,85 +7596,67 @@ "tags": [ { "name": "account", - "description": "The Account service allows you to authenticate and manage a user account.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Avatars service aims to help you complete everyday tasks related to your app image, icons, and avatars." }, { "name": "databases", - "description": "The Databases service allows you to create structured collections of documents, query and filter lists of documents", - "x-globalAttributes": [ - "databaseId" - ] + "description": "The Databases 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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Project service allows you to manage all the projects in your Appwrite server." }, { "name": "project", - "description": "The Project service allows you to manage all the projects in your Appwrite server.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Functions Service allows you view, create and manage your Cloud Functions." }, { "name": "proxy", - "description": "The Proxy Service allows you to configure actions for your domains beyond DNS configuration.", - "x-globalAttributes": [] + "description": "The Proxy Service allows you to configure actions for your domains beyond DNS configuration." }, { "name": "graphql", - "description": "The GraphQL API allows you to query and mutate your Appwrite server using GraphQL.", - "x-globalAttributes": [] + "description": "The GraphQL API allows you to query and mutate your Appwrite server using GraphQL." }, { "name": "console", - "description": "The Console service allows you to interact with console relevant informations.", - "x-globalAttributes": [] + "description": "The Console service allows you to interact with console relevant informations." }, { "name": "migrations", - "description": "The Migrations service allows you to migrate third-party data to your Appwrite project.", - "x-globalAttributes": [] + "description": "The Migrations service allows you to migrate third-party data to your Appwrite project." }, { "name": "messaging", - "description": "The Messaging service allows you to send messages to any provider type (SMTP, push notification, SMS, etc.).", - "x-globalAttributes": [] + "description": "The Messaging service allows you to send messages to any provider type (SMTP, push notification, SMS, etc.)." } ], "components": { @@ -9265,12 +9091,12 @@ }, "userName": { "type": "string", - "description": "User name.", + "description": "User name. Hide this attribute by toggling membership privacy in the Console.", "x-example": "John Doe" }, "userEmail": { "type": "string", - "description": "User email address.", + "description": "User email address. Hide this attribute by toggling membership privacy in the Console.", "x-example": "john@appwrite.io" }, "teamId": { @@ -9300,7 +9126,7 @@ }, "mfa": { "type": "boolean", - "description": "Multi factor authentication status, true if the user has MFA enabled or false otherwise.", + "description": "Multi factor authentication status, true if the user has MFA enabled or false otherwise. Hide this attribute by toggling membership privacy in the Console.", "x-example": false }, "roles": { @@ -9405,7 +9231,7 @@ "responseBody": { "type": "string", "description": "HTTP response body. This will return empty unless execution is created as synchronous.", - "x-example": "Developers are awesome." + "x-example": "" }, "responseHeaders": { "type": "array", @@ -9825,7 +9651,7 @@ "name": { "type": "string", "description": "Target Name.", - "x-example": "Aegon apple token" + "x-example": "Apple iPhone 12" }, "userId": { "type": "string", @@ -9847,6 +9673,11 @@ "type": "string", "description": "The target identifier.", "x-example": "token" + }, + "expired": { + "type": "boolean", + "description": "Is the target expired.", + "x-example": false } }, "required": [ @@ -9856,7 +9687,8 @@ "name", "userId", "providerType", - "identifier" + "identifier", + "expired" ] } }, diff --git a/app/config/specs/open-api3-latest-console.json b/app/config/specs/open-api3-latest-console.json index 07749889d8f..16ac0ee040c 100644 --- a/app/config/specs/open-api3-latest-console.json +++ b/app/config/specs/open-api3-latest-console.json @@ -1,7 +1,7 @@ { "openapi": "3.0.0", "info": { - "version": "1.6.0", + "version": "1.6.2", "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", @@ -18,6 +18,9 @@ "servers": [ { "url": "https:\/\/cloud.appwrite.io\/v1" + }, + { + "url": "https:\/\/.cloud.appwrite.io\/v1" } ], "paths": { @@ -43,7 +46,8 @@ }, "x-appwrite": { "method": "get", - "weight": 8, + "group": "account", + "weight": 9, "cookies": false, "type": "", "deprecated": false, @@ -58,9 +62,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -93,7 +94,8 @@ }, "x-appwrite": { "method": "create", - "weight": 7, + "group": "account", + "weight": 8, "cookies": false, "type": "", "deprecated": false, @@ -108,9 +110,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -171,7 +170,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 9, + "group": "account", + "weight": 10, "cookies": false, "type": "", "deprecated": false, @@ -185,9 +185,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -221,7 +218,8 @@ }, "x-appwrite": { "method": "updateEmail", - "weight": 33, + "group": "account", + "weight": 34, "cookies": false, "type": "", "deprecated": false, @@ -236,9 +234,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -278,7 +273,7 @@ }, "\/account\/identities": { "get": { - "summary": "List Identities", + "summary": "List identities", "operationId": "accountListIdentities", "tags": [ "account" @@ -298,7 +293,8 @@ }, "x-appwrite": { "method": "listIdentities", - "weight": 56, + "group": "identities", + "weight": 57, "cookies": false, "type": "", "deprecated": false, @@ -313,9 +309,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/identities", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -358,7 +351,8 @@ }, "x-appwrite": { "method": "deleteIdentity", - "weight": 57, + "group": "identities", + "weight": 58, "cookies": false, "type": "", "deprecated": false, @@ -373,9 +367,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -422,7 +413,8 @@ }, "x-appwrite": { "method": "createJWT", - "weight": 28, + "group": "tokens", + "weight": 29, "cookies": false, "type": "", "deprecated": false, @@ -437,9 +429,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -473,7 +462,8 @@ }, "x-appwrite": { "method": "listLogs", - "weight": 30, + "group": "logs", + "weight": 31, "cookies": false, "type": "", "deprecated": false, @@ -488,9 +478,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -540,7 +527,8 @@ }, "x-appwrite": { "method": "updateMFA", - "weight": 43, + "group": "mfa", + "weight": 44, "cookies": false, "type": "", "deprecated": false, @@ -555,9 +543,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -591,7 +576,7 @@ }, "\/account\/mfa\/authenticators\/{type}": { "post": { - "summary": "Create Authenticator", + "summary": "Create authenticator", "operationId": "accountCreateMfaAuthenticator", "tags": [ "account" @@ -611,7 +596,8 @@ }, "x-appwrite": { "method": "createMfaAuthenticator", - "weight": 45, + "group": "mfa", + "weight": 46, "cookies": false, "type": "", "deprecated": false, @@ -626,9 +612,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -658,7 +641,7 @@ ] }, "put": { - "summary": "Verify Authenticator", + "summary": "Update authenticator (confirmation)", "operationId": "accountUpdateMfaAuthenticator", "tags": [ "account" @@ -678,7 +661,8 @@ }, "x-appwrite": { "method": "updateMfaAuthenticator", - "weight": 46, + "group": "mfa", + "weight": 47, "cookies": false, "type": "", "deprecated": false, @@ -693,9 +677,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -744,7 +725,7 @@ } }, "delete": { - "summary": "Delete Authenticator", + "summary": "Delete authenticator", "operationId": "accountDeleteMfaAuthenticator", "tags": [ "account" @@ -757,7 +738,8 @@ }, "x-appwrite": { "method": "deleteMfaAuthenticator", - "weight": 50, + "group": "mfa", + "weight": 51, "cookies": false, "type": "", "deprecated": false, @@ -772,9 +754,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -806,7 +785,7 @@ }, "\/account\/mfa\/challenge": { "post": { - "summary": "Create MFA Challenge", + "summary": "Create MFA challenge", "operationId": "accountCreateMfaChallenge", "tags": [ "account" @@ -826,7 +805,8 @@ }, "x-appwrite": { "method": "createMfaChallenge", - "weight": 51, + "group": "mfa", + "weight": 52, "cookies": false, "type": "", "deprecated": false, @@ -841,9 +821,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -882,17 +859,17 @@ } }, "put": { - "summary": "Create MFA Challenge (confirmation)", + "summary": "Update MFA challenge (confirmation)", "operationId": "accountUpdateMfaChallenge", "tags": [ "account" ], "description": "Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", "responses": { - "204": { - "description": "No content", + "200": { + "description": "Session", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/session" } @@ -902,7 +879,8 @@ }, "x-appwrite": { "method": "updateMfaChallenge", - "weight": 52, + "group": "mfa", + "weight": 53, "cookies": false, "type": "", "deprecated": false, @@ -917,9 +895,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -959,7 +934,7 @@ }, "\/account\/mfa\/factors": { "get": { - "summary": "List Factors", + "summary": "List factors", "operationId": "accountListMfaFactors", "tags": [ "account" @@ -979,7 +954,8 @@ }, "x-appwrite": { "method": "listMfaFactors", - "weight": 44, + "group": "mfa", + "weight": 45, "cookies": false, "type": "", "deprecated": false, @@ -994,9 +970,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1011,7 +984,7 @@ }, "\/account\/mfa\/recovery-codes": { "get": { - "summary": "Get MFA Recovery Codes", + "summary": "List MFA recovery codes", "operationId": "accountGetMfaRecoveryCodes", "tags": [ "account" @@ -1031,7 +1004,8 @@ }, "x-appwrite": { "method": "getMfaRecoveryCodes", - "weight": 49, + "group": "mfa", + "weight": 50, "cookies": false, "type": "", "deprecated": false, @@ -1046,9 +1020,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1061,7 +1032,7 @@ ] }, "post": { - "summary": "Create MFA Recovery Codes", + "summary": "Create MFA recovery codes", "operationId": "accountCreateMfaRecoveryCodes", "tags": [ "account" @@ -1081,7 +1052,8 @@ }, "x-appwrite": { "method": "createMfaRecoveryCodes", - "weight": 47, + "group": "mfa", + "weight": 48, "cookies": false, "type": "", "deprecated": false, @@ -1096,9 +1068,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1111,7 +1080,7 @@ ] }, "patch": { - "summary": "Regenerate MFA Recovery Codes", + "summary": "Update MFA recovery codes (regenerate)", "operationId": "accountUpdateMfaRecoveryCodes", "tags": [ "account" @@ -1131,7 +1100,8 @@ }, "x-appwrite": { "method": "updateMfaRecoveryCodes", - "weight": 48, + "group": "mfa", + "weight": 49, "cookies": false, "type": "", "deprecated": false, @@ -1146,9 +1116,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1183,7 +1150,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 31, + "group": "account", + "weight": 32, "cookies": false, "type": "", "deprecated": false, @@ -1198,9 +1166,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1254,7 +1219,8 @@ }, "x-appwrite": { "method": "updatePassword", - "weight": 32, + "group": "account", + "weight": 33, "cookies": false, "type": "", "deprecated": false, @@ -1269,9 +1235,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1330,7 +1293,8 @@ }, "x-appwrite": { "method": "updatePhone", - "weight": 34, + "group": "account", + "weight": 35, "cookies": false, "type": "", "deprecated": false, @@ -1345,9 +1309,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1407,7 +1368,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 29, + "group": "account", + "weight": 30, "cookies": false, "type": "", "deprecated": false, @@ -1422,9 +1384,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/prefs", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1457,7 +1416,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 35, + "group": "account", + "weight": 36, "cookies": false, "type": "", "deprecated": false, @@ -1472,9 +1432,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/prefs", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1528,7 +1485,8 @@ }, "x-appwrite": { "method": "createRecovery", - "weight": 37, + "group": "recovery", + "weight": 38, "cookies": false, "type": "", "deprecated": false, @@ -1546,9 +1504,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1586,7 +1541,7 @@ } }, "put": { - "summary": "Create password recovery (confirmation)", + "summary": "Update password recovery (confirmation)", "operationId": "accountUpdateRecovery", "tags": [ "account" @@ -1606,7 +1561,8 @@ }, "x-appwrite": { "method": "updateRecovery", - "weight": 38, + "group": "recovery", + "weight": 39, "cookies": false, "type": "", "deprecated": false, @@ -1621,9 +1577,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1689,7 +1642,8 @@ }, "x-appwrite": { "method": "listSessions", - "weight": 10, + "group": "sessions", + "weight": 11, "cookies": false, "type": "", "deprecated": false, @@ -1704,9 +1658,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/sessions", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1732,7 +1683,8 @@ }, "x-appwrite": { "method": "deleteSessions", - "weight": 11, + "group": "sessions", + "weight": 12, "cookies": false, "type": "", "deprecated": false, @@ -1747,9 +1699,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1784,7 +1733,8 @@ }, "x-appwrite": { "method": "createAnonymousSession", - "weight": 16, + "group": "sessions", + "weight": 17, "cookies": false, "type": "", "deprecated": false, @@ -1799,9 +1749,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1835,7 +1782,8 @@ }, "x-appwrite": { "method": "createEmailPasswordSession", - "weight": 15, + "group": "sessions", + "weight": 16, "cookies": false, "type": "", "deprecated": false, @@ -1850,9 +1798,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1911,7 +1856,8 @@ }, "x-appwrite": { "method": "updateMagicURLSession", - "weight": 25, + "group": "sessions", + "weight": 26, "cookies": false, "type": "", "deprecated": true, @@ -1926,9 +1872,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1980,7 +1923,8 @@ }, "x-appwrite": { "method": "createOAuth2Session", - "weight": 18, + "group": "sessions", + "weight": 19, "cookies": false, "type": "webAuth", "deprecated": false, @@ -1995,9 +1939,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2010,7 +1951,7 @@ "parameters": [ { "name": "provider", - "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", + "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", "required": true, "schema": { "type": "string", @@ -2030,6 +1971,7 @@ "dropbox", "etsy", "facebook", + "figma", "github", "gitlab", "google", @@ -2123,7 +2065,8 @@ }, "x-appwrite": { "method": "updatePhoneSession", - "weight": 26, + "group": "sessions", + "weight": 27, "cookies": false, "type": "", "deprecated": true, @@ -2138,9 +2081,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2199,7 +2139,8 @@ }, "x-appwrite": { "method": "createSession", - "weight": 17, + "group": "sessions", + "weight": 18, "cookies": false, "type": "", "deprecated": false, @@ -2214,9 +2155,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2275,7 +2213,8 @@ }, "x-appwrite": { "method": "getSession", - "weight": 12, + "group": "sessions", + "weight": 13, "cookies": false, "type": "", "deprecated": false, @@ -2290,9 +2229,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/sessions", - "offline-key": "{sessionId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2337,7 +2273,8 @@ }, "x-appwrite": { "method": "updateSession", - "weight": 14, + "group": "sessions", + "weight": 15, "cookies": false, "type": "", "deprecated": false, @@ -2352,9 +2289,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2392,7 +2326,8 @@ }, "x-appwrite": { "method": "deleteSession", - "weight": 13, + "group": "sessions", + "weight": 14, "cookies": false, "type": "", "deprecated": false, @@ -2407,9 +2342,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2456,7 +2388,8 @@ }, "x-appwrite": { "method": "updateStatus", - "weight": 36, + "group": "account", + "weight": 37, "cookies": false, "type": "", "deprecated": false, @@ -2471,9 +2404,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2493,7 +2423,7 @@ "tags": [ "account" ], - "description": "", + "description": "Use this endpoint to register a device for push notifications. Provide a target ID (custom or generated using ID.unique()), a device identifier (usually a device token), and optionally specify which provider should send notifications to this target. The target is automatically linked to the current session and includes device information like brand and model.", "responses": { "201": { "description": "Target", @@ -2508,12 +2438,13 @@ }, "x-appwrite": { "method": "createPushTarget", - "weight": 53, + "group": "pushTargets", + "weight": 54, "cookies": false, "type": "", "deprecated": false, "demo": "account\/create-push-target.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-push-target.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -2522,9 +2453,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2573,7 +2501,7 @@ "tags": [ "account" ], - "description": "", + "description": "Update the currently logged in user's push notification target. You can modify the target's identifier (device token) and provider ID (token, email, phone etc.). The target must exist and belong to the current user. If you change the provider ID, notifications will be sent through the new messaging provider instead.", "responses": { "200": { "description": "Target", @@ -2588,12 +2516,13 @@ }, "x-appwrite": { "method": "updatePushTarget", - "weight": 54, + "group": "pushTargets", + "weight": 55, "cookies": false, "type": "", "deprecated": false, "demo": "account\/update-push-target.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-push-target.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -2602,9 +2531,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2652,27 +2578,21 @@ "tags": [ "account" ], - "description": "", + "description": "Delete a push notification target for the currently logged in user. After deletion, the device will no longer receive push notifications. The target must exist and belong to the current user.", "responses": { "204": { - "description": "No content", - "content": { - "application\/json": { - "schema": { - "$ref": "#\/components\/schemas\/target" - } - } - } + "description": "No content" } }, "x-appwrite": { "method": "deletePushTarget", - "weight": 55, + "group": "pushTargets", + "weight": 56, "cookies": false, "type": "", "deprecated": false, "demo": "account\/delete-push-target.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/delete-push-target.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -2681,9 +2601,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2729,7 +2646,8 @@ }, "x-appwrite": { "method": "createEmailToken", - "weight": 24, + "group": "tokens", + "weight": 25, "cookies": false, "type": "", "deprecated": false, @@ -2737,16 +2655,16 @@ "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-email.md", "rate-limit": 10, "rate-time": 3600, - "rate-key": "url:{url},email:{param-email}", + "rate-key": [ + "url:{url},email:{param-email}", + "url:{url},ip:{ip}" + ], "scope": "sessions.write", "platforms": [ "server", "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2795,7 +2713,7 @@ "tags": [ "account" ], - "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. 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 [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) 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.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", + "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. 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 [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) endpoint to complete the login process. The link sent to the user's email address is valid for 1 hour.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", "responses": { "201": { "description": "Token", @@ -2810,7 +2728,8 @@ }, "x-appwrite": { "method": "createMagicURLToken", - "weight": 23, + "group": "tokens", + "weight": 24, "cookies": false, "type": "", "deprecated": false, @@ -2828,9 +2747,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2892,7 +2808,8 @@ }, "x-appwrite": { "method": "createOAuth2Token", - "weight": 22, + "group": "tokens", + "weight": 23, "cookies": false, "type": "webAuth", "deprecated": false, @@ -2907,9 +2824,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2922,7 +2836,7 @@ "parameters": [ { "name": "provider", - "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", + "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", "required": true, "schema": { "type": "string", @@ -2942,6 +2856,7 @@ "dropbox", "etsy", "facebook", + "figma", "github", "gitlab", "google", @@ -3035,7 +2950,8 @@ }, "x-appwrite": { "method": "createPhoneToken", - "weight": 27, + "group": "tokens", + "weight": 28, "cookies": false, "type": "", "deprecated": false, @@ -3053,9 +2969,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3114,7 +3027,8 @@ }, "x-appwrite": { "method": "createVerification", - "weight": 39, + "group": "verification", + "weight": 40, "cookies": false, "type": "", "deprecated": false, @@ -3129,9 +3043,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3163,7 +3074,7 @@ } }, "put": { - "summary": "Create email verification (confirmation)", + "summary": "Update email verification (confirmation)", "operationId": "accountUpdateVerification", "tags": [ "account" @@ -3183,7 +3094,8 @@ }, "x-appwrite": { "method": "updateVerification", - "weight": 40, + "group": "verification", + "weight": 41, "cookies": false, "type": "", "deprecated": false, @@ -3198,9 +3110,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3260,7 +3169,8 @@ }, "x-appwrite": { "method": "createPhoneVerification", - "weight": 41, + "group": "verification", + "weight": 42, "cookies": false, "type": "", "deprecated": false, @@ -3278,9 +3188,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3313,7 +3220,8 @@ }, "x-appwrite": { "method": "updatePhoneVerification", - "weight": 42, + "group": "verification", + "weight": 43, "cookies": false, "type": "", "deprecated": false, @@ -3328,9 +3236,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3383,7 +3288,8 @@ }, "x-appwrite": { "method": "getBrowser", - "weight": 59, + "group": null, + "weight": 60, "cookies": false, "type": "location", "deprecated": false, @@ -3399,9 +3305,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3511,7 +3414,8 @@ }, "x-appwrite": { "method": "getCreditCard", - "weight": 58, + "group": null, + "weight": 59, "cookies": false, "type": "location", "deprecated": false, @@ -3527,9 +3431,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3544,7 +3445,7 @@ "parameters": [ { "name": "code", - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro.", + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", "required": true, "schema": { "type": "string", @@ -3565,7 +3466,8 @@ "union-china-pay", "visa", "mir", - "maestro" + "maestro", + "rupay" ], "x-enum-name": "CreditCard", "x-enum-keys": [ @@ -3584,7 +3486,8 @@ "Union China Pay", "Visa", "MIR", - "Maestro" + "Maestro", + "Rupay" ] }, "in": "path" @@ -3643,7 +3546,8 @@ }, "x-appwrite": { "method": "getFavicon", - "weight": 62, + "group": null, + "weight": 63, "cookies": false, "type": "location", "deprecated": false, @@ -3659,9 +3563,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3703,7 +3604,8 @@ }, "x-appwrite": { "method": "getFlag", - "weight": 60, + "group": null, + "weight": 61, "cookies": false, "type": "location", "deprecated": false, @@ -3719,9 +3621,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4193,7 +4092,8 @@ }, "x-appwrite": { "method": "getImage", - "weight": 61, + "group": null, + "weight": 62, "cookies": false, "type": "location", "deprecated": false, @@ -4209,9 +4109,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4277,7 +4174,8 @@ }, "x-appwrite": { "method": "getInitials", - "weight": 64, + "group": null, + "weight": 65, "cookies": false, "type": "location", "deprecated": false, @@ -4293,9 +4191,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4371,7 +4266,8 @@ }, "x-appwrite": { "method": "getQR", - "weight": 63, + "group": null, + "weight": 64, "cookies": false, "type": "location", "deprecated": false, @@ -4387,9 +4283,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4452,12 +4345,12 @@ }, "\/console\/assistant": { "post": { - "summary": "Ask Query", + "summary": "Create assistant query", "operationId": "assistantChat", "tags": [ "assistant" ], - "description": "", + "description": "Send a prompt to the AI assistant and receive a response. This endpoint allows you to interact with Appwrite's AI assistant by sending questions or prompts and receiving helpful responses in real-time through a server-sent events stream. ", "responses": { "200": { "description": "File" @@ -4465,7 +4358,8 @@ }, "x-appwrite": { "method": "chat", - "weight": 331, + "group": "console", + "weight": 335, "cookies": false, "type": "", "deprecated": false, @@ -4479,9 +4373,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4534,7 +4425,8 @@ }, "x-appwrite": { "method": "variables", - "weight": 330, + "group": "console", + "weight": 334, "cookies": false, "type": "", "deprecated": false, @@ -4548,9 +4440,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4584,7 +4473,8 @@ }, "x-appwrite": { "method": "list", - "weight": 69, + "group": "databases", + "weight": 70, "cookies": false, "type": "", "deprecated": false, @@ -4598,9 +4488,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4659,7 +4546,8 @@ }, "x-appwrite": { "method": "create", - "weight": 68, + "group": "databases", + "weight": 69, "cookies": false, "type": "", "deprecated": false, @@ -4673,9 +4561,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4725,7 +4610,7 @@ "tags": [ "databases" ], - "description": "", + "description": "Get usage metrics and statistics for all databases in the project. You can view the total number of databases, collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", "responses": { "200": { "description": "UsageDatabases", @@ -4740,12 +4625,13 @@ }, "x-appwrite": { "method": "getUsage", - "weight": 113, + "group": null, + "weight": 117, "cookies": false, "type": "", "deprecated": false, "demo": "databases\/get-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -4754,9 +4640,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4814,7 +4697,8 @@ }, "x-appwrite": { "method": "get", - "weight": 70, + "group": "databases", + "weight": 71, "cookies": false, "type": "", "deprecated": false, @@ -4828,9 +4712,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4875,7 +4756,8 @@ }, "x-appwrite": { "method": "update", - "weight": 72, + "group": "databases", + "weight": 73, "cookies": false, "type": "", "deprecated": false, @@ -4889,9 +4771,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4953,7 +4832,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 73, + "group": "databases", + "weight": 74, "cookies": false, "type": "", "deprecated": false, @@ -4967,9 +4847,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5016,7 +4893,8 @@ }, "x-appwrite": { "method": "listCollections", - "weight": 75, + "group": "collections", + "weight": 76, "cookies": false, "type": "", "deprecated": false, @@ -5030,9 +4908,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5101,7 +4976,8 @@ }, "x-appwrite": { "method": "createCollection", - "weight": 74, + "group": "collections", + "weight": 75, "cookies": false, "type": "", "deprecated": false, @@ -5115,9 +4991,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5207,7 +5080,8 @@ }, "x-appwrite": { "method": "getCollection", - "weight": 76, + "group": "collections", + "weight": 77, "cookies": false, "type": "", "deprecated": false, @@ -5221,9 +5095,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5278,7 +5149,8 @@ }, "x-appwrite": { "method": "updateCollection", - "weight": 78, + "group": "collections", + "weight": 79, "cookies": false, "type": "", "deprecated": false, @@ -5292,9 +5164,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5379,7 +5248,8 @@ }, "x-appwrite": { "method": "deleteCollection", - "weight": 79, + "group": "collections", + "weight": 80, "cookies": false, "type": "", "deprecated": false, @@ -5393,9 +5263,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5452,7 +5319,8 @@ }, "x-appwrite": { "method": "listAttributes", - "weight": 90, + "group": "attributes", + "weight": 91, "cookies": false, "type": "", "deprecated": false, @@ -5466,9 +5334,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5538,7 +5403,8 @@ }, "x-appwrite": { "method": "createBooleanAttribute", - "weight": 87, + "group": "attributes", + "weight": 88, "cookies": false, "type": "", "deprecated": false, @@ -5552,9 +5418,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5636,7 +5499,7 @@ "200": { "description": "AttributeBoolean", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeBoolean" } @@ -5646,7 +5509,8 @@ }, "x-appwrite": { "method": "updateBooleanAttribute", - "weight": 99, + "group": "attributes", + "weight": 100, "cookies": false, "type": "", "deprecated": false, @@ -5660,9 +5524,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5759,7 +5620,8 @@ }, "x-appwrite": { "method": "createDatetimeAttribute", - "weight": 88, + "group": "attributes", + "weight": 89, "cookies": false, "type": "", "deprecated": false, @@ -5773,9 +5635,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5857,7 +5716,7 @@ "200": { "description": "AttributeDatetime", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeDatetime" } @@ -5867,7 +5726,8 @@ }, "x-appwrite": { "method": "updateDatetimeAttribute", - "weight": 100, + "group": "attributes", + "weight": 101, "cookies": false, "type": "", "deprecated": false, @@ -5881,9 +5741,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5980,7 +5837,8 @@ }, "x-appwrite": { "method": "createEmailAttribute", - "weight": 81, + "group": "attributes", + "weight": 82, "cookies": false, "type": "", "deprecated": false, @@ -5994,9 +5852,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6078,7 +5933,7 @@ "200": { "description": "AttributeEmail", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeEmail" } @@ -6088,7 +5943,8 @@ }, "x-appwrite": { "method": "updateEmailAttribute", - "weight": 93, + "group": "attributes", + "weight": 94, "cookies": false, "type": "", "deprecated": false, @@ -6102,9 +5958,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6201,7 +6054,8 @@ }, "x-appwrite": { "method": "createEnumAttribute", - "weight": 82, + "group": "attributes", + "weight": 83, "cookies": false, "type": "", "deprecated": false, @@ -6215,9 +6069,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6308,7 +6159,7 @@ "200": { "description": "AttributeEnum", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeEnum" } @@ -6318,7 +6169,8 @@ }, "x-appwrite": { "method": "updateEnumAttribute", - "weight": 94, + "group": "attributes", + "weight": 95, "cookies": false, "type": "", "deprecated": false, @@ -6332,9 +6184,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6440,7 +6289,8 @@ }, "x-appwrite": { "method": "createFloatAttribute", - "weight": 86, + "group": "attributes", + "weight": 87, "cookies": false, "type": "", "deprecated": false, @@ -6454,9 +6304,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6548,7 +6395,7 @@ "200": { "description": "AttributeFloat", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeFloat" } @@ -6558,7 +6405,8 @@ }, "x-appwrite": { "method": "updateFloatAttribute", - "weight": 98, + "group": "attributes", + "weight": 99, "cookies": false, "type": "", "deprecated": false, @@ -6572,9 +6420,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6651,8 +6496,6 @@ }, "required": [ "required", - "min", - "max", "default" ] } @@ -6683,7 +6526,8 @@ }, "x-appwrite": { "method": "createIntegerAttribute", - "weight": 85, + "group": "attributes", + "weight": 86, "cookies": false, "type": "", "deprecated": false, @@ -6697,9 +6541,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6791,7 +6632,7 @@ "200": { "description": "AttributeInteger", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeInteger" } @@ -6801,7 +6642,8 @@ }, "x-appwrite": { "method": "updateIntegerAttribute", - "weight": 97, + "group": "attributes", + "weight": 98, "cookies": false, "type": "", "deprecated": false, @@ -6815,9 +6657,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6894,8 +6733,6 @@ }, "required": [ "required", - "min", - "max", "default" ] } @@ -6926,7 +6763,8 @@ }, "x-appwrite": { "method": "createIpAttribute", - "weight": 83, + "group": "attributes", + "weight": 84, "cookies": false, "type": "", "deprecated": false, @@ -6940,9 +6778,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7024,7 +6859,7 @@ "200": { "description": "AttributeIP", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeIp" } @@ -7034,7 +6869,8 @@ }, "x-appwrite": { "method": "updateIpAttribute", - "weight": 95, + "group": "attributes", + "weight": 96, "cookies": false, "type": "", "deprecated": false, @@ -7048,9 +6884,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7147,7 +6980,8 @@ }, "x-appwrite": { "method": "createRelationshipAttribute", - "weight": 89, + "group": "attributes", + "weight": 90, "cookies": false, "type": "", "deprecated": false, @@ -7161,9 +6995,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7280,7 +7111,8 @@ }, "x-appwrite": { "method": "createStringAttribute", - "weight": 80, + "group": "attributes", + "weight": 81, "cookies": false, "type": "", "deprecated": false, @@ -7294,9 +7126,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7389,7 +7218,7 @@ "200": { "description": "AttributeString", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeString" } @@ -7399,7 +7228,8 @@ }, "x-appwrite": { "method": "updateStringAttribute", - "weight": 92, + "group": "attributes", + "weight": 93, "cookies": false, "type": "", "deprecated": false, @@ -7413,9 +7243,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7477,7 +7304,7 @@ "size": { "type": "integer", "description": "Maximum size of the string attribute.", - "x-example": null + "x-example": 1 }, "newKey": { "type": "string", @@ -7517,7 +7344,8 @@ }, "x-appwrite": { "method": "createUrlAttribute", - "weight": 84, + "group": "attributes", + "weight": 85, "cookies": false, "type": "", "deprecated": false, @@ -7531,9 +7359,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7615,7 +7440,7 @@ "200": { "description": "AttributeURL", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeUrl" } @@ -7625,7 +7450,8 @@ }, "x-appwrite": { "method": "updateUrlAttribute", - "weight": 96, + "group": "attributes", + "weight": 97, "cookies": false, "type": "", "deprecated": false, @@ -7639,9 +7465,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7769,7 +7592,8 @@ }, "x-appwrite": { "method": "getAttribute", - "weight": 91, + "group": "attributes", + "weight": 92, "cookies": false, "type": "", "deprecated": false, @@ -7783,9 +7607,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7842,7 +7663,8 @@ }, "x-appwrite": { "method": "deleteAttribute", - "weight": 102, + "group": "attributes", + "weight": 103, "cookies": false, "type": "", "deprecated": false, @@ -7856,9 +7678,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7914,7 +7733,7 @@ "200": { "description": "AttributeRelationship", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeRelationship" } @@ -7924,7 +7743,8 @@ }, "x-appwrite": { "method": "updateRelationshipAttribute", - "weight": 101, + "group": "attributes", + "weight": 102, "cookies": false, "type": "", "deprecated": false, @@ -7938,9 +7758,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8034,7 +7851,8 @@ }, "x-appwrite": { "method": "listDocuments", - "weight": 108, + "group": "documents", + "weight": 109, "cookies": false, "type": "", "deprecated": false, @@ -8050,9 +7868,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8121,7 +7936,8 @@ }, "x-appwrite": { "method": "createDocument", - "weight": 107, + "group": "documents", + "weight": 108, "cookies": false, "type": "", "deprecated": false, @@ -8137,118 +7953,411 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", - "auth": { - "Project": [] - } - }, - "security": [ - { - "Project": [], - "Key": [], - "JWT": [] - } - ], - "parameters": [ - { - "name": "databaseId", - "description": "Database ID.", - "required": true, - "schema": { - "type": "string", - "x-example": "" - }, - "in": "path" - }, - { - "name": "collectionId", - "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection). Make sure to define attributes before creating documents.", - "required": true, - "schema": { - "type": "string", - "x-example": "" - }, - "in": "path" - } - ], - "requestBody": { - "content": { - "application\/json": { - "schema": { - "type": "object", - "properties": { - "documentId": { - "type": "string", - "description": "Document ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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": "" - }, - "data": { - "type": "object", - "description": "Document data as JSON object.", - "x-example": "{}" - }, - "permissions": { - "type": "array", - "description": "An array of permissions strings. By default, only the current user is granted all permissions. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).", - "x-example": "[\"read(\"any\")\"]", - "items": { - "type": "string" - } - } - }, - "required": [ - "documentId", - "data" - ] - } - } - } - } - } - }, - "\/databases\/{databaseId}\/collections\/{collectionId}\/documents\/{documentId}": { - "get": { - "summary": "Get document", - "operationId": "databasesGetDocument", - "tags": [ - "databases" - ], - "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" + "methods": [ + { + "name": "createDocument", + "parameters": [ + "databaseId", + "collectionId", + "documentId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "collectionId", + "documentId", + "data" + ], + "responses": [ + { + "code": 201, + "model": "#\/components\/schemas\/document" } - } + ], + "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." } - } - }, - "x-appwrite": { - "method": "getDocument", - "weight": 109, - "cookies": false, - "type": "", - "deprecated": false, - "demo": "databases\/get-document.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-document.md", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "documents.read", - "platforms": [ - "client", - "server", - "server" ], - "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [], + "JWT": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection). Make sure to define attributes before creating documents.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "documentId": { + "type": "string", + "description": "Document ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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": "" + }, + "data": { + "type": "object", + "description": "Document data as JSON object.", + "x-example": "{}" + }, + "permissions": { + "type": "array", + "description": "An array of permissions strings. By default, only the current user is granted all permissions. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).", + "x-example": "[\"read(\"any\")\"]", + "items": { + "type": "string" + } + }, + "documents": { + "type": "array", + "description": "Array of documents data as JSON objects.", + "x-example": null, + "items": { + "type": "object" + } + } + } + } + } + } + } + }, + "put": { + "summary": "Create or update documents", + "operationId": "databasesUpsertDocuments", + "tags": [ + "databases" + ], + "description": "Create or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.\n", + "responses": { + "200": { + "description": "Documents List", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/documentList" + } + } + } + } + }, + "x-appwrite": { + "method": "upsertDocuments", + "group": "documents", + "weight": 114, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/upsert-documents.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-documents.md", + "rate-limit": 120, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "documents": { + "type": "array", + "description": "Array of document data as JSON objects. May contain partial documents.", + "x-example": null, + "items": { + "type": "object" + } + } + } + } + } + } + } + }, + "patch": { + "summary": "Update documents", + "operationId": "databasesUpdateDocuments", + "tags": [ + "databases" + ], + "description": "Update all documents that match your queries, if no queries are submitted then all documents are updated. You can pass only specific fields to be updated.", + "responses": { + "200": { + "description": "Documents List", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/documentList" + } + } + } + } + }, + "x-appwrite": { + "method": "updateDocuments", + "group": "documents", + "weight": 113, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/update-documents.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-documents.md", + "rate-limit": 120, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "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": "{}" + }, + "queries": { + "type": "array", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Maximum of 100 queries are allowed, each 4096 characters long.", + "x-example": null, + "items": { + "type": "string" + } + } + } + } + } + } + } + }, + "delete": { + "summary": "Delete documents", + "operationId": "databasesDeleteDocuments", + "tags": [ + "databases" + ], + "description": "Bulk delete documents using queries, if no queries are passed then all documents are deleted.", + "responses": { + "200": { + "description": "Documents List", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/documentList" + } + } + } + } + }, + "x-appwrite": { + "method": "deleteDocuments", + "group": "documents", + "weight": 116, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/delete-documents.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-documents.md", + "rate-limit": 60, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "queries": { + "type": "array", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Maximum of 100 queries are allowed, each 4096 characters long.", + "x-example": null, + "items": { + "type": "string" + } + } + } + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/documents\/{documentId}": { + "get": { + "summary": "Get document", + "operationId": "databasesGetDocument", + "tags": [ + "databases" + ], + "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", + "group": "documents", + "weight": 110, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/get-document.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/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": [] } @@ -8327,7 +8436,8 @@ }, "x-appwrite": { "method": "updateDocument", - "weight": 111, + "group": "documents", + "weight": 112, "cookies": false, "type": "", "deprecated": false, @@ -8343,9 +8453,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8428,7 +8535,8 @@ }, "x-appwrite": { "method": "deleteDocument", - "weight": 112, + "group": "documents", + "weight": 115, "cookies": false, "type": "", "deprecated": false, @@ -8444,9 +8552,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8514,7 +8619,8 @@ }, "x-appwrite": { "method": "listDocumentLogs", - "weight": 110, + "group": "logs", + "weight": 111, "cookies": false, "type": "", "deprecated": false, @@ -8528,9 +8634,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8609,7 +8712,8 @@ }, "x-appwrite": { "method": "listIndexes", - "weight": 104, + "group": "indexes", + "weight": 105, "cookies": false, "type": "", "deprecated": false, @@ -8623,9 +8727,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8693,7 +8794,8 @@ }, "x-appwrite": { "method": "createIndex", - "weight": 103, + "group": "collections", + "weight": 104, "cookies": false, "type": "", "deprecated": false, @@ -8707,9 +8809,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8815,7 +8914,8 @@ }, "x-appwrite": { "method": "getIndex", - "weight": 105, + "group": "indexes", + "weight": 106, "cookies": false, "type": "", "deprecated": false, @@ -8829,9 +8929,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8888,7 +8985,8 @@ }, "x-appwrite": { "method": "deleteIndex", - "weight": 106, + "group": "indexes", + "weight": 107, "cookies": false, "type": "", "deprecated": false, @@ -8902,9 +9000,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8970,7 +9065,8 @@ }, "x-appwrite": { "method": "listCollectionLogs", - "weight": 77, + "group": "collections", + "weight": 78, "cookies": false, "type": "", "deprecated": false, @@ -8984,9 +9080,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9040,7 +9133,7 @@ "tags": [ "databases" ], - "description": "", + "description": "Get usage metrics and statistics for a collection. Returning the total number of documents. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", "responses": { "200": { "description": "UsageCollection", @@ -9055,12 +9148,13 @@ }, "x-appwrite": { "method": "getCollectionUsage", - "weight": 115, + "group": null, + "weight": 119, "cookies": false, "type": "", "deprecated": false, "demo": "databases\/get-collection-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-collection-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9069,9 +9163,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9149,7 +9240,8 @@ }, "x-appwrite": { "method": "listLogs", - "weight": 71, + "group": "logs", + "weight": 72, "cookies": false, "type": "", "deprecated": false, @@ -9163,9 +9255,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9209,7 +9298,7 @@ "tags": [ "databases" ], - "description": "", + "description": "Get usage metrics and statistics for a database. You can view the total number of collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", "responses": { "200": { "description": "UsageDatabase", @@ -9224,12 +9313,13 @@ }, "x-appwrite": { "method": "getDatabaseUsage", - "weight": 114, + "group": null, + "weight": 118, "cookies": false, "type": "", "deprecated": false, "demo": "databases\/get-database-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-database-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9238,9 +9328,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9308,7 +9395,8 @@ }, "x-appwrite": { "method": "list", - "weight": 287, + "group": "functions", + "weight": 291, "cookies": false, "type": "", "deprecated": false, @@ -9322,9 +9410,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9383,7 +9468,8 @@ }, "x-appwrite": { "method": "create", - "weight": 286, + "group": "functions", + "weight": 290, "cookies": false, "type": "", "deprecated": false, @@ -9397,9 +9483,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9437,6 +9520,7 @@ "node-19.0", "node-20.0", "node-21.0", + "node-22", "php-8.0", "php-8.1", "php-8.2", @@ -9455,6 +9539,8 @@ "deno-1.24", "deno-1.35", "deno-1.40", + "deno-1.46", + "deno-2.0", "dart-2.15", "dart-2.16", "dart-2.17", @@ -9462,24 +9548,31 @@ "dart-3.0", "dart-3.1", "dart-3.3", - "dotnet-3.1", + "dart-3.5", "dotnet-6.0", "dotnet-7.0", + "dotnet-8.0", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", + "java-22", "swift-5.5", "swift-5.8", "swift-5.9", + "swift-5.10", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", + "kotlin-2.0", "cpp-17", "cpp-20", "bun-1.0", - "go-1.23" + "bun-1.1", + "go-1.23", + "static-1", + "flutter-3.24" ], "x-enum-name": null, "x-enum-keys": [] @@ -9622,7 +9715,8 @@ }, "x-appwrite": { "method": "listRuntimes", - "weight": 288, + "group": "runtimes", + "weight": 292, "cookies": false, "type": "", "deprecated": false, @@ -9636,9 +9730,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9673,7 +9764,8 @@ }, "x-appwrite": { "method": "listSpecifications", - "weight": 289, + "group": "runtimes", + "weight": 293, "cookies": false, "type": "", "deprecated": false, @@ -9688,9 +9780,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9725,7 +9814,8 @@ }, "x-appwrite": { "method": "listTemplates", - "weight": 312, + "group": "templates", + "weight": 316, "cookies": false, "type": "", "deprecated": false, @@ -9739,9 +9829,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9827,7 +9914,8 @@ }, "x-appwrite": { "method": "getTemplate", - "weight": 313, + "group": "templates", + "weight": 317, "cookies": false, "type": "", "deprecated": false, @@ -9841,9 +9929,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9874,7 +9959,7 @@ "tags": [ "functions" ], - "description": "", + "description": "Get usage metrics and statistics for a for all functions. View statistics including total functions, deployments, builds, executions, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days.", "responses": { "200": { "description": "UsageFunctions", @@ -9889,12 +9974,13 @@ }, "x-appwrite": { "method": "getUsage", - "weight": 292, + "group": null, + "weight": 296, "cookies": false, "type": "", "deprecated": false, "demo": "functions\/get-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/get-functions-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9903,9 +9989,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9963,7 +10046,8 @@ }, "x-appwrite": { "method": "get", - "weight": 290, + "group": "functions", + "weight": 294, "cookies": false, "type": "", "deprecated": false, @@ -9977,9 +10061,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10024,7 +10105,8 @@ }, "x-appwrite": { "method": "update", - "weight": 293, + "group": "functions", + "weight": 297, "cookies": false, "type": "", "deprecated": false, @@ -10038,9 +10120,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10085,6 +10164,7 @@ "node-19.0", "node-20.0", "node-21.0", + "node-22", "php-8.0", "php-8.1", "php-8.2", @@ -10103,6 +10183,8 @@ "deno-1.24", "deno-1.35", "deno-1.40", + "deno-1.46", + "deno-2.0", "dart-2.15", "dart-2.16", "dart-2.17", @@ -10110,24 +10192,31 @@ "dart-3.0", "dart-3.1", "dart-3.3", - "dotnet-3.1", + "dart-3.5", "dotnet-6.0", "dotnet-7.0", + "dotnet-8.0", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", + "java-22", "swift-5.5", "swift-5.8", "swift-5.9", + "swift-5.10", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", + "kotlin-2.0", "cpp-17", "cpp-20", "bun-1.0", - "go-1.23" + "bun-1.1", + "go-1.23", + "static-1", + "flutter-3.24" ], "x-enum-name": null, "x-enum-keys": [] @@ -10240,7 +10329,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 296, + "group": "functions", + "weight": 300, "cookies": false, "type": "", "deprecated": false, @@ -10254,9 +10344,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10303,7 +10390,8 @@ }, "x-appwrite": { "method": "listDeployments", - "weight": 298, + "group": "deployments", + "weight": 302, "cookies": false, "type": "", "deprecated": false, @@ -10317,9 +10405,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10388,7 +10473,8 @@ }, "x-appwrite": { "method": "createDeployment", - "weight": 297, + "group": "deployments", + "weight": 301, "cookies": false, "type": "upload", "deprecated": false, @@ -10402,9 +10488,6 @@ "server" ], "packaging": true, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10486,7 +10569,8 @@ }, "x-appwrite": { "method": "getDeployment", - "weight": 299, + "group": "deployments", + "weight": 303, "cookies": false, "type": "", "deprecated": false, @@ -10500,9 +10584,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10557,7 +10638,8 @@ }, "x-appwrite": { "method": "updateDeployment", - "weight": 295, + "group": "deployments", + "weight": 299, "cookies": false, "type": "", "deprecated": false, @@ -10571,9 +10653,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10621,7 +10700,8 @@ }, "x-appwrite": { "method": "deleteDeployment", - "weight": 300, + "group": "deployments", + "weight": 304, "cookies": false, "type": "", "deprecated": false, @@ -10635,9 +10715,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10674,12 +10751,12 @@ }, "\/functions\/{functionId}\/deployments\/{deploymentId}\/build": { "post": { - "summary": "Rebuild deployment", + "summary": "Create deployment build", "operationId": "functionsCreateBuild", "tags": [ "functions" ], - "description": "", + "description": "Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build.", "responses": { "204": { "description": "No content" @@ -10687,12 +10764,13 @@ }, "x-appwrite": { "method": "createBuild", - "weight": 301, + "group": "deployments", + "weight": 305, "cookies": false, "type": "", "deprecated": false, "demo": "functions\/create-build.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/create-build.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10701,9 +10779,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10759,7 +10834,7 @@ "tags": [ "functions" ], - "description": "", + "description": "Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn't started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status 'ready') or failed. The response includes the final build status and details.", "responses": { "200": { "description": "Build", @@ -10774,12 +10849,13 @@ }, "x-appwrite": { "method": "updateDeploymentBuild", - "weight": 302, + "group": "deployments", + "weight": 306, "cookies": false, "type": "", "deprecated": false, "demo": "functions\/update-deployment-build.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/update-deployment-build.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10788,9 +10864,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10827,7 +10900,7 @@ }, "\/functions\/{functionId}\/deployments\/{deploymentId}\/download": { "get": { - "summary": "Download deployment", + "summary": "Get deployment download", "operationId": "functionsGetDeploymentDownload", "tags": [ "functions" @@ -10840,7 +10913,8 @@ }, "x-appwrite": { "method": "getDeploymentDownload", - "weight": 294, + "group": "deployments", + "weight": 298, "cookies": false, "type": "location", "deprecated": false, @@ -10855,9 +10929,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10915,7 +10986,8 @@ }, "x-appwrite": { "method": "listExecutions", - "weight": 304, + "group": "executions", + "weight": 308, "cookies": false, "type": "", "deprecated": false, @@ -10931,9 +11003,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11003,7 +11072,8 @@ }, "x-appwrite": { "method": "createExecution", - "weight": 303, + "group": "executions", + "weight": 307, "cookies": false, "type": "", "deprecated": false, @@ -11019,9 +11089,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11054,7 +11121,7 @@ "body": { "type": "string", "description": "HTTP body of execution. Default value is empty string.", - "x-example": null + "x-example": "" }, "async": { "type": "boolean", @@ -11120,7 +11187,8 @@ }, "x-appwrite": { "method": "getExecution", - "weight": 305, + "group": "executions", + "weight": 309, "cookies": false, "type": "", "deprecated": false, @@ -11136,9 +11204,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11187,7 +11252,8 @@ }, "x-appwrite": { "method": "deleteExecution", - "weight": 306, + "group": "executions", + "weight": 310, "cookies": false, "type": "", "deprecated": false, @@ -11201,9 +11267,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11245,7 +11308,7 @@ "tags": [ "functions" ], - "description": "", + "description": "Get usage metrics and statistics for a for a specific function. View statistics including total deployments, builds, executions, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days.", "responses": { "200": { "description": "UsageFunction", @@ -11260,12 +11323,13 @@ }, "x-appwrite": { "method": "getFunctionUsage", - "weight": 291, + "group": null, + "weight": 295, "cookies": false, "type": "", "deprecated": false, "demo": "functions\/get-function-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/get-function-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11274,9 +11338,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11344,7 +11405,8 @@ }, "x-appwrite": { "method": "listVariables", - "weight": 308, + "group": "variables", + "weight": 312, "cookies": false, "type": "", "deprecated": false, @@ -11358,9 +11420,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11405,7 +11464,8 @@ }, "x-appwrite": { "method": "createVariable", - "weight": 307, + "group": "variables", + "weight": 311, "cookies": false, "type": "", "deprecated": false, @@ -11419,9 +11479,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11493,7 +11550,8 @@ }, "x-appwrite": { "method": "getVariable", - "weight": 309, + "group": "variables", + "weight": 313, "cookies": false, "type": "", "deprecated": false, @@ -11507,9 +11565,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11564,7 +11619,8 @@ }, "x-appwrite": { "method": "updateVariable", - "weight": 310, + "group": "variables", + "weight": 314, "cookies": false, "type": "", "deprecated": false, @@ -11578,9 +11634,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11652,7 +11705,8 @@ }, "x-appwrite": { "method": "deleteVariable", - "weight": 311, + "group": "variables", + "weight": 315, "cookies": false, "type": "", "deprecated": false, @@ -11666,9 +11720,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11725,7 +11776,8 @@ }, "x-appwrite": { "method": "query", - "weight": 329, + "group": "graphql", + "weight": 333, "cookies": false, "type": "graphql", "deprecated": false, @@ -11741,9 +11793,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11779,7 +11828,8 @@ }, "x-appwrite": { "method": "mutation", - "weight": 328, + "group": "graphql", + "weight": 332, "cookies": false, "type": "graphql", "deprecated": false, @@ -11795,9 +11845,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11833,7 +11880,8 @@ }, "x-appwrite": { "method": "get", - "weight": 124, + "group": "health", + "weight": 128, "cookies": false, "type": "", "deprecated": false, @@ -11847,9 +11895,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11884,7 +11929,8 @@ }, "x-appwrite": { "method": "getAntivirus", - "weight": 146, + "group": "health", + "weight": 149, "cookies": false, "type": "", "deprecated": false, @@ -11898,9 +11944,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11935,7 +11978,8 @@ }, "x-appwrite": { "method": "getCache", - "weight": 127, + "group": "health", + "weight": 131, "cookies": false, "type": "", "deprecated": false, @@ -11949,9 +11993,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11986,7 +12027,8 @@ }, "x-appwrite": { "method": "getCertificate", - "weight": 133, + "group": "health", + "weight": 136, "cookies": false, "type": "", "deprecated": false, @@ -12000,9 +12042,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12048,7 +12087,8 @@ }, "x-appwrite": { "method": "getDB", - "weight": 126, + "group": "health", + "weight": 130, "cookies": false, "type": "", "deprecated": false, @@ -12062,9 +12102,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12099,7 +12136,8 @@ }, "x-appwrite": { "method": "getPubSub", - "weight": 129, + "group": "health", + "weight": 132, "cookies": false, "type": "", "deprecated": false, @@ -12113,60 +12151,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", - "auth": { - "Project": [] - } - }, - "security": [ - { - "Project": [], - "Key": [] - } - ] - } - }, - "\/health\/queue": { - "get": { - "summary": "Get queue", - "operationId": "healthGetQueue", - "tags": [ - "health" - ], - "description": "Check the Appwrite queue messaging servers are up and connection is successful.", - "responses": { - "200": { - "description": "Health Status", - "content": { - "application\/json": { - "schema": { - "$ref": "#\/components\/schemas\/healthStatus" - } - } - } - } - }, - "x-appwrite": { - "method": "getQueue", - "weight": 128, - "cookies": false, - "type": "", - "deprecated": false, - "demo": "health\/get-queue.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue.md", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "health.read", - "platforms": [ - "server" - ], - "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12201,7 +12185,8 @@ }, "x-appwrite": { "method": "getQueueBuilds", - "weight": 135, + "group": "queue", + "weight": 138, "cookies": false, "type": "", "deprecated": false, @@ -12215,9 +12200,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12265,7 +12247,8 @@ }, "x-appwrite": { "method": "getQueueCertificates", - "weight": 134, + "group": "queue", + "weight": 137, "cookies": false, "type": "", "deprecated": false, @@ -12279,9 +12262,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12329,7 +12309,8 @@ }, "x-appwrite": { "method": "getQueueDatabases", - "weight": 136, + "group": "queue", + "weight": 139, "cookies": false, "type": "", "deprecated": false, @@ -12343,9 +12324,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12404,7 +12382,8 @@ }, "x-appwrite": { "method": "getQueueDeletes", - "weight": 137, + "group": "queue", + "weight": 140, "cookies": false, "type": "", "deprecated": false, @@ -12418,9 +12397,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12468,7 +12444,8 @@ }, "x-appwrite": { "method": "getFailedJobs", - "weight": 147, + "group": "queue", + "weight": 150, "cookies": false, "type": "", "deprecated": false, @@ -12482,9 +12459,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12509,8 +12483,8 @@ "v1-audits", "v1-mails", "v1-functions", - "v1-usage", - "v1-usage-dump", + "v1-stats-resources", + "v1-stats-usage", "v1-webhooks", "v1-certificates", "v1-builds", @@ -12558,7 +12532,8 @@ }, "x-appwrite": { "method": "getQueueFunctions", - "weight": 141, + "group": "queue", + "weight": 144, "cookies": false, "type": "", "deprecated": false, @@ -12572,9 +12547,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12622,7 +12594,8 @@ }, "x-appwrite": { "method": "getQueueLogs", - "weight": 132, + "group": "queue", + "weight": 135, "cookies": false, "type": "", "deprecated": false, @@ -12636,9 +12609,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12686,7 +12656,8 @@ }, "x-appwrite": { "method": "getQueueMails", - "weight": 138, + "group": "queue", + "weight": 141, "cookies": false, "type": "", "deprecated": false, @@ -12700,9 +12671,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12750,7 +12718,8 @@ }, "x-appwrite": { "method": "getQueueMessaging", - "weight": 139, + "group": "queue", + "weight": 142, "cookies": false, "type": "", "deprecated": false, @@ -12764,9 +12733,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12814,7 +12780,8 @@ }, "x-appwrite": { "method": "getQueueMigrations", - "weight": 140, + "group": "queue", + "weight": 143, "cookies": false, "type": "", "deprecated": false, @@ -12828,9 +12795,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12856,14 +12820,14 @@ ] } }, - "\/health\/queue\/usage": { + "\/health\/queue\/stats-resources": { "get": { - "summary": "Get usage queue", - "operationId": "healthGetQueueUsage", + "summary": "Get stats resources queue", + "operationId": "healthGetQueueStatsResources", "tags": [ "health" ], - "description": "Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.", + "description": "Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.", "responses": { "200": { "description": "Health Queue", @@ -12877,13 +12841,14 @@ } }, "x-appwrite": { - "method": "getQueueUsage", - "weight": 142, + "method": "getQueueStatsResources", + "group": "queue", + "weight": 145, "cookies": false, "type": "", "deprecated": false, - "demo": "health\/get-queue-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-usage.md", + "demo": "health\/get-queue-stats-resources.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-stats-resources.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12892,9 +12857,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12920,14 +12882,14 @@ ] } }, - "\/health\/queue\/usage-dump": { + "\/health\/queue\/stats-usage": { "get": { - "summary": "Get usage dump queue", - "operationId": "healthGetQueueUsageDump", + "summary": "Get stats usage queue", + "operationId": "healthGetQueueUsage", "tags": [ "health" ], - "description": "Get the number of projects containing metrics that are waiting to be processed in the Appwrite internal queue server.", + "description": "Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.", "responses": { "200": { "description": "Health Queue", @@ -12941,13 +12903,14 @@ } }, "x-appwrite": { - "method": "getQueueUsageDump", - "weight": 143, + "method": "getQueueUsage", + "group": "queue", + "weight": 146, "cookies": false, "type": "", "deprecated": false, - "demo": "health\/get-queue-usage-dump.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-usage-dump.md", + "demo": "health\/get-queue-usage.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-stats-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -12956,9 +12919,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13006,7 +12966,8 @@ }, "x-appwrite": { "method": "getQueueWebhooks", - "weight": 131, + "group": "queue", + "weight": 134, "cookies": false, "type": "", "deprecated": false, @@ -13020,9 +12981,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13070,7 +13028,8 @@ }, "x-appwrite": { "method": "getStorage", - "weight": 145, + "group": "storage", + "weight": 148, "cookies": false, "type": "", "deprecated": false, @@ -13084,9 +13043,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13121,7 +13077,8 @@ }, "x-appwrite": { "method": "getStorageLocal", - "weight": 144, + "group": "storage", + "weight": 147, "cookies": false, "type": "", "deprecated": false, @@ -13135,9 +13092,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13172,7 +13126,8 @@ }, "x-appwrite": { "method": "getTime", - "weight": 130, + "group": "health", + "weight": 133, "cookies": false, "type": "", "deprecated": false, @@ -13186,9 +13141,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13223,7 +13175,8 @@ }, "x-appwrite": { "method": "get", - "weight": 116, + "group": null, + "weight": 120, "cookies": false, "type": "", "deprecated": false, @@ -13239,9 +13192,6 @@ "server" ], "packaging": false, - "offline-model": "\/localed", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13257,7 +13207,7 @@ }, "\/locale\/codes": { "get": { - "summary": "List Locale Codes", + "summary": "List locale codes", "operationId": "localeListCodes", "tags": [ "locale" @@ -13277,7 +13227,8 @@ }, "x-appwrite": { "method": "listCodes", - "weight": 117, + "group": null, + "weight": 121, "cookies": false, "type": "", "deprecated": false, @@ -13293,9 +13244,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/localeCode", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13331,7 +13279,8 @@ }, "x-appwrite": { "method": "listContinents", - "weight": 121, + "group": null, + "weight": 125, "cookies": false, "type": "", "deprecated": false, @@ -13347,9 +13296,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/continents", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -13385,7 +13331,8 @@ }, "x-appwrite": { "method": "listCountries", - "weight": 118, + "group": null, + "weight": 122, "cookies": false, "type": "", "deprecated": false, @@ -13401,9 +13348,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -13439,7 +13383,8 @@ }, "x-appwrite": { "method": "listCountriesEU", - "weight": 119, + "group": null, + "weight": 123, "cookies": false, "type": "", "deprecated": false, @@ -13455,9 +13400,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries\/eu", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -13493,7 +13435,8 @@ }, "x-appwrite": { "method": "listCountriesPhones", - "weight": 120, + "group": null, + "weight": 124, "cookies": false, "type": "", "deprecated": false, @@ -13509,9 +13452,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries\/phones", - "offline-key": "", - "offline-response-key": "countryCode", "auth": { "Project": [] } @@ -13547,7 +13487,8 @@ }, "x-appwrite": { "method": "listCurrencies", - "weight": 122, + "group": null, + "weight": 126, "cookies": false, "type": "", "deprecated": false, @@ -13563,9 +13504,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/currencies", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -13601,7 +13539,8 @@ }, "x-appwrite": { "method": "listLanguages", - "weight": 123, + "group": null, + "weight": 127, "cookies": false, "type": "", "deprecated": false, @@ -13617,9 +13556,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/languages", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -13655,7 +13591,8 @@ }, "x-appwrite": { "method": "listMessages", - "weight": 388, + "group": "messages", + "weight": 386, "cookies": false, "type": "", "deprecated": false, @@ -13670,9 +13607,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13733,7 +13667,8 @@ }, "x-appwrite": { "method": "createEmail", - "weight": 385, + "group": "messages", + "weight": 383, "cookies": false, "type": "", "deprecated": false, @@ -13748,9 +13683,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13864,7 +13796,7 @@ "tags": [ "messaging" ], - "description": "Update an email message by its unique ID.\n", + "description": "Update an email message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", "responses": { "200": { "description": "Message", @@ -13879,7 +13811,8 @@ }, "x-appwrite": { "method": "updateEmail", - "weight": 392, + "group": "messages", + "weight": 390, "cookies": false, "type": "", "deprecated": false, @@ -13894,9 +13827,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14027,7 +13957,8 @@ }, "x-appwrite": { "method": "createPush", - "weight": 387, + "group": "messages", + "weight": 385, "cookies": false, "type": "", "deprecated": false, @@ -14042,9 +13973,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14102,7 +14030,7 @@ }, "data": { "type": "object", - "description": "Additional Data for push notification.", + "description": "Additional key-value pair data for push notification.", "x-example": "{}" }, "action": { @@ -14122,7 +14050,7 @@ }, "sound": { "type": "string", - "description": "Sound for push notification. Available only for Android and IOS Platform.", + "description": "Sound for push notification. Available only for Android and iOS Platform.", "x-example": "" }, "color": { @@ -14136,9 +14064,9 @@ "x-example": "" }, "badge": { - "type": "string", - "description": "Badge for push notification. Available only for IOS Platform.", - "x-example": "" + "type": "integer", + "description": "Badge for push notification. Available only for iOS Platform.", + "x-example": null }, "draft": { "type": "boolean", @@ -14149,12 +14077,31 @@ "type": "string", "description": "Scheduled delivery time for message in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future.", "x-example": null + }, + "contentAvailable": { + "type": "boolean", + "description": "If set to true, the notification will be delivered in the background. Available only for iOS Platform.", + "x-example": false + }, + "critical": { + "type": "boolean", + "description": "If set to true, the notification will be marked as critical. This requires the app to have the critical notification entitlement. Available only for iOS Platform.", + "x-example": false + }, + "priority": { + "type": "string", + "description": "Set the notification priority. \"normal\" will consider device state and may not deliver notifications immediately. \"high\" will always attempt to immediately deliver the notification.", + "x-example": "normal", + "enum": [ + "normal", + "high" + ], + "x-enum-name": "MessagePriority", + "x-enum-keys": [] } }, "required": [ - "messageId", - "title", - "body" + "messageId" ] } } @@ -14169,7 +14116,7 @@ "tags": [ "messaging" ], - "description": "Update a push notification by its unique ID.\n", + "description": "Update a push notification by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", "responses": { "200": { "description": "Message", @@ -14184,7 +14131,8 @@ }, "x-appwrite": { "method": "updatePush", - "weight": 394, + "group": "messages", + "weight": 392, "cookies": false, "type": "", "deprecated": false, @@ -14199,9 +14147,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14313,6 +14258,27 @@ "type": "string", "description": "Scheduled delivery time for message in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future.", "x-example": null + }, + "contentAvailable": { + "type": "boolean", + "description": "If set to true, the notification will be delivered in the background. Available only for iOS Platform.", + "x-example": false + }, + "critical": { + "type": "boolean", + "description": "If set to true, the notification will be marked as critical. This requires the app to have the critical notification entitlement. Available only for iOS Platform.", + "x-example": false + }, + "priority": { + "type": "string", + "description": "Set the notification priority. \"normal\" will consider device battery state and may send notifications later. \"high\" will always attempt to immediately deliver the notification.", + "x-example": "normal", + "enum": [ + "normal", + "high" + ], + "x-enum-name": "MessagePriority", + "x-enum-keys": [] } } } @@ -14343,7 +14309,8 @@ }, "x-appwrite": { "method": "createSms", - "weight": 386, + "group": "messages", + "weight": 384, "cookies": false, "type": "", "deprecated": false, @@ -14358,9 +14325,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14439,7 +14403,7 @@ "tags": [ "messaging" ], - "description": "Update an email message by its unique ID.\n", + "description": "Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", "responses": { "200": { "description": "Message", @@ -14454,12 +14418,13 @@ }, "x-appwrite": { "method": "updateSms", - "weight": 393, + "group": "messages", + "weight": 391, "cookies": false, "type": "", "deprecated": false, "demo": "messaging\/update-sms.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/update-email.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/update-sms.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -14469,9 +14434,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14568,7 +14530,8 @@ }, "x-appwrite": { "method": "getMessage", - "weight": 391, + "group": "messages", + "weight": 389, "cookies": false, "type": "", "deprecated": false, @@ -14583,9 +14546,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14623,7 +14583,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 395, + "group": "messages", + "weight": 393, "cookies": false, "type": "", "deprecated": false, @@ -14638,9 +14599,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14687,7 +14645,8 @@ }, "x-appwrite": { "method": "listMessageLogs", - "weight": 389, + "group": "logs", + "weight": 387, "cookies": false, "type": "", "deprecated": false, @@ -14702,9 +14661,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14764,7 +14720,8 @@ }, "x-appwrite": { "method": "listTargets", - "weight": 390, + "group": "messages", + "weight": 388, "cookies": false, "type": "", "deprecated": false, @@ -14779,9 +14736,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14841,7 +14795,8 @@ }, "x-appwrite": { "method": "listProviders", - "weight": 360, + "group": "providers", + "weight": 358, "cookies": false, "type": "", "deprecated": false, @@ -14856,9 +14811,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14919,7 +14871,8 @@ }, "x-appwrite": { "method": "createApnsProvider", - "weight": 359, + "group": "providers", + "weight": 357, "cookies": false, "type": "", "deprecated": false, @@ -14934,9 +14887,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15026,7 +14976,8 @@ }, "x-appwrite": { "method": "updateApnsProvider", - "weight": 372, + "group": "providers", + "weight": 370, "cookies": false, "type": "", "deprecated": false, @@ -15041,9 +14992,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15136,7 +15084,8 @@ }, "x-appwrite": { "method": "createFcmProvider", - "weight": 358, + "group": "providers", + "weight": 356, "cookies": false, "type": "", "deprecated": false, @@ -15151,9 +15100,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15223,7 +15169,8 @@ }, "x-appwrite": { "method": "updateFcmProvider", - "weight": 371, + "group": "providers", + "weight": 369, "cookies": false, "type": "", "deprecated": false, @@ -15238,9 +15185,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15313,7 +15257,8 @@ }, "x-appwrite": { "method": "createMailgunProvider", - "weight": 350, + "group": "providers", + "weight": 348, "cookies": false, "type": "", "deprecated": false, @@ -15328,9 +15273,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15430,7 +15372,8 @@ }, "x-appwrite": { "method": "updateMailgunProvider", - "weight": 363, + "group": "providers", + "weight": 361, "cookies": false, "type": "", "deprecated": false, @@ -15445,9 +15388,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15550,7 +15490,8 @@ }, "x-appwrite": { "method": "createMsg91Provider", - "weight": 353, + "group": "providers", + "weight": 351, "cookies": false, "type": "", "deprecated": false, @@ -15565,9 +15506,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15647,7 +15585,8 @@ }, "x-appwrite": { "method": "updateMsg91Provider", - "weight": 366, + "group": "providers", + "weight": 364, "cookies": false, "type": "", "deprecated": false, @@ -15662,9 +15601,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15747,7 +15683,8 @@ }, "x-appwrite": { "method": "createSendgridProvider", - "weight": 351, + "group": "providers", + "weight": 349, "cookies": false, "type": "", "deprecated": false, @@ -15762,9 +15699,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15854,7 +15788,8 @@ }, "x-appwrite": { "method": "updateSendgridProvider", - "weight": 364, + "group": "providers", + "weight": 362, "cookies": false, "type": "", "deprecated": false, @@ -15869,9 +15804,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15964,7 +15896,8 @@ }, "x-appwrite": { "method": "createSmtpProvider", - "weight": 352, + "group": "providers", + "weight": 350, "cookies": false, "type": "", "deprecated": false, @@ -15979,9 +15912,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16109,7 +16039,8 @@ }, "x-appwrite": { "method": "updateSmtpProvider", - "weight": 365, + "group": "providers", + "weight": 363, "cookies": false, "type": "", "deprecated": false, @@ -16124,9 +16055,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16256,7 +16184,8 @@ }, "x-appwrite": { "method": "createTelesignProvider", - "weight": 354, + "group": "providers", + "weight": 352, "cookies": false, "type": "", "deprecated": false, @@ -16271,9 +16200,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16353,7 +16279,8 @@ }, "x-appwrite": { "method": "updateTelesignProvider", - "weight": 367, + "group": "providers", + "weight": 365, "cookies": false, "type": "", "deprecated": false, @@ -16368,9 +16295,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16453,7 +16377,8 @@ }, "x-appwrite": { "method": "createTextmagicProvider", - "weight": 355, + "group": "providers", + "weight": 353, "cookies": false, "type": "", "deprecated": false, @@ -16468,9 +16393,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16550,7 +16472,8 @@ }, "x-appwrite": { "method": "updateTextmagicProvider", - "weight": 368, + "group": "providers", + "weight": 366, "cookies": false, "type": "", "deprecated": false, @@ -16565,9 +16488,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16650,7 +16570,8 @@ }, "x-appwrite": { "method": "createTwilioProvider", - "weight": 356, + "group": "providers", + "weight": 354, "cookies": false, "type": "", "deprecated": false, @@ -16665,9 +16586,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16747,7 +16665,8 @@ }, "x-appwrite": { "method": "updateTwilioProvider", - "weight": 369, + "group": "providers", + "weight": 367, "cookies": false, "type": "", "deprecated": false, @@ -16762,9 +16681,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16847,7 +16763,8 @@ }, "x-appwrite": { "method": "createVonageProvider", - "weight": 357, + "group": "providers", + "weight": 355, "cookies": false, "type": "", "deprecated": false, @@ -16862,9 +16779,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16944,7 +16858,8 @@ }, "x-appwrite": { "method": "updateVonageProvider", - "weight": 370, + "group": "providers", + "weight": 368, "cookies": false, "type": "", "deprecated": false, @@ -16959,9 +16874,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17044,7 +16956,8 @@ }, "x-appwrite": { "method": "getProvider", - "weight": 362, + "group": "providers", + "weight": 360, "cookies": false, "type": "", "deprecated": false, @@ -17059,9 +16972,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17099,7 +17009,8 @@ }, "x-appwrite": { "method": "deleteProvider", - "weight": 373, + "group": "providers", + "weight": 371, "cookies": false, "type": "", "deprecated": false, @@ -17114,9 +17025,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17163,7 +17071,8 @@ }, "x-appwrite": { "method": "listProviderLogs", - "weight": 361, + "group": "providers", + "weight": 359, "cookies": false, "type": "", "deprecated": false, @@ -17178,9 +17087,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17240,7 +17146,8 @@ }, "x-appwrite": { "method": "listSubscriberLogs", - "weight": 382, + "group": "subscribers", + "weight": 380, "cookies": false, "type": "", "deprecated": false, @@ -17255,9 +17162,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17317,7 +17221,8 @@ }, "x-appwrite": { "method": "listTopics", - "weight": 375, + "group": "topics", + "weight": 373, "cookies": false, "type": "", "deprecated": false, @@ -17332,9 +17237,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17393,7 +17295,8 @@ }, "x-appwrite": { "method": "createTopic", - "weight": 374, + "group": "topics", + "weight": 372, "cookies": false, "type": "", "deprecated": false, @@ -17408,9 +17311,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17478,7 +17378,8 @@ }, "x-appwrite": { "method": "getTopic", - "weight": 377, + "group": "topics", + "weight": 375, "cookies": false, "type": "", "deprecated": false, @@ -17493,9 +17394,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17540,7 +17438,8 @@ }, "x-appwrite": { "method": "updateTopic", - "weight": 378, + "group": "topics", + "weight": 376, "cookies": false, "type": "", "deprecated": false, @@ -17555,9 +17454,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17619,7 +17515,8 @@ }, "x-appwrite": { "method": "deleteTopic", - "weight": 379, + "group": "topics", + "weight": 377, "cookies": false, "type": "", "deprecated": false, @@ -17634,9 +17531,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17683,7 +17577,8 @@ }, "x-appwrite": { "method": "listTopicLogs", - "weight": 376, + "group": "topics", + "weight": 374, "cookies": false, "type": "", "deprecated": false, @@ -17698,9 +17593,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17760,7 +17652,8 @@ }, "x-appwrite": { "method": "listSubscribers", - "weight": 381, + "group": "subscribers", + "weight": 379, "cookies": false, "type": "", "deprecated": false, @@ -17775,9 +17668,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17846,7 +17736,8 @@ }, "x-appwrite": { "method": "createSubscriber", - "weight": 380, + "group": "subscribers", + "weight": 378, "cookies": false, "type": "", "deprecated": false, @@ -17863,9 +17754,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17938,7 +17826,8 @@ }, "x-appwrite": { "method": "getSubscriber", - "weight": 383, + "group": "subscribers", + "weight": 381, "cookies": false, "type": "", "deprecated": false, @@ -17953,9 +17842,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18003,7 +17889,8 @@ }, "x-appwrite": { "method": "deleteSubscriber", - "weight": 384, + "group": "subscribers", + "weight": 382, "cookies": false, "type": "", "deprecated": false, @@ -18020,9 +17907,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18060,12 +17944,12 @@ }, "\/migrations": { "get": { - "summary": "List Migrations", + "summary": "List migrations", "operationId": "migrationsList", "tags": [ "migrations" ], - "description": "", + "description": "List all migrations in the current project. This endpoint returns a list of all migrations including their status, progress, and any errors that occurred during the migration process.", "responses": { "200": { "description": "Migrations List", @@ -18080,7 +17964,8 @@ }, "x-appwrite": { "method": "list", - "weight": 337, + "group": null, + "weight": 340, "cookies": false, "type": "", "deprecated": false, @@ -18094,9 +17979,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18109,7 +17991,7 @@ "parameters": [ { "name": "queries", - "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: status, stage, source, resources, statusCounters, resourceData, errors", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: status, stage, source, destination, resources, statusCounters, resourceData, errors", "required": false, "schema": { "type": "array", @@ -18136,12 +18018,12 @@ }, "\/migrations\/appwrite": { "post": { - "summary": "Migrate Appwrite Data", + "summary": "Create Appwrite migration", "operationId": "migrationsCreateAppwriteMigration", "tags": [ "migrations" ], - "description": "", + "description": "Migrate data from another Appwrite project to your current project. This endpoint allows you to migrate resources like databases, collections, documents, users, and files from an existing Appwrite project. ", "responses": { "202": { "description": "Migration", @@ -18156,7 +18038,8 @@ }, "x-appwrite": { "method": "createAppwriteMigration", - "weight": 332, + "group": null, + "weight": 336, "cookies": false, "type": "", "deprecated": false, @@ -18170,9 +18053,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18198,17 +18078,17 @@ }, "endpoint": { "type": "string", - "description": "Source's Appwrite Endpoint", + "description": "Source Appwrite endpoint", "x-example": "https:\/\/example.com" }, "projectId": { "type": "string", - "description": "Source's Project ID", + "description": "Source Project ID", "x-example": "" }, "apiKey": { "type": "string", - "description": "Source's API Key", + "description": "Source API Key", "x-example": "" } }, @@ -18226,12 +18106,12 @@ }, "\/migrations\/appwrite\/report": { "get": { - "summary": "Generate a report on Appwrite Data", + "summary": "Get Appwrite migration report", "operationId": "migrationsGetAppwriteReport", "tags": [ "migrations" ], - "description": "", + "description": "Generate a report of the data in an Appwrite project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated.", "responses": { "200": { "description": "Migration Report", @@ -18246,7 +18126,8 @@ }, "x-appwrite": { "method": "getAppwriteReport", - "weight": 339, + "group": null, + "weight": 342, "cookies": false, "type": "", "deprecated": false, @@ -18260,9 +18141,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18321,12 +18199,12 @@ }, "\/migrations\/firebase": { "post": { - "summary": "Migrate Firebase Data (Service Account)", + "summary": "Create Firebase migration", "operationId": "migrationsCreateFirebaseMigration", "tags": [ "migrations" ], - "description": "", + "description": "Migrate data from a Firebase project to your Appwrite project. This endpoint allows you to migrate resources like authentication and other supported services from a Firebase project. ", "responses": { "202": { "description": "Migration", @@ -18341,7 +18219,8 @@ }, "x-appwrite": { "method": "createFirebaseMigration", - "weight": 334, + "group": null, + "weight": 337, "cookies": false, "type": "", "deprecated": false, @@ -18355,9 +18234,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18397,185 +18273,14 @@ } } }, - "\/migrations\/firebase\/deauthorize": { - "get": { - "summary": "Revoke Appwrite's authorization to access Firebase Projects", - "operationId": "migrationsDeleteFirebaseAuth", - "tags": [ - "migrations" - ], - "description": "", - "responses": { - "200": { - "description": "File" - } - }, - "x-appwrite": { - "method": "deleteFirebaseAuth", - "weight": 345, - "cookies": false, - "type": "", - "deprecated": false, - "demo": "migrations\/delete-firebase-auth.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "migrations.write", - "platforms": [ - "console" - ], - "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", - "auth": { - "Project": [] - } - }, - "security": [ - { - "Project": [] - } - ] - } - }, - "\/migrations\/firebase\/oauth": { - "post": { - "summary": "Migrate Firebase Data (OAuth)", - "operationId": "migrationsCreateFirebaseOAuthMigration", - "tags": [ - "migrations" - ], - "description": "", - "responses": { - "202": { - "description": "Migration", - "content": { - "application\/json": { - "schema": { - "$ref": "#\/components\/schemas\/migration" - } - } - } - } - }, - "x-appwrite": { - "method": "createFirebaseOAuthMigration", - "weight": 333, - "cookies": false, - "type": "", - "deprecated": false, - "demo": "migrations\/create-firebase-o-auth-migration.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/migrations\/migration-firebase.md", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "migrations.write", - "platforms": [ - "console" - ], - "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", - "auth": { - "Project": [] - } - }, - "security": [ - { - "Project": [] - } - ], - "requestBody": { - "content": { - "application\/json": { - "schema": { - "type": "object", - "properties": { - "resources": { - "type": "array", - "description": "List of resources to migrate", - "x-example": null, - "items": { - "type": "string" - } - }, - "projectId": { - "type": "string", - "description": "Project ID of the Firebase Project", - "x-example": "" - } - }, - "required": [ - "resources", - "projectId" - ] - } - } - } - } - } - }, - "\/migrations\/firebase\/projects": { - "get": { - "summary": "List Firebase Projects", - "operationId": "migrationsListFirebaseProjects", - "tags": [ - "migrations" - ], - "description": "", - "responses": { - "200": { - "description": "Migrations Firebase Projects List", - "content": { - "application\/json": { - "schema": { - "$ref": "#\/components\/schemas\/firebaseProjectList" - } - } - } - } - }, - "x-appwrite": { - "method": "listFirebaseProjects", - "weight": 344, - "cookies": false, - "type": "", - "deprecated": false, - "demo": "migrations\/list-firebase-projects.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "migrations.read", - "platforms": [ - "console" - ], - "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", - "auth": { - "Project": [] - } - }, - "security": [ - { - "Project": [] - } - ] - } - }, "\/migrations\/firebase\/report": { "get": { - "summary": "Generate a report on Firebase Data", + "summary": "Get Firebase migration report", "operationId": "migrationsGetFirebaseReport", "tags": [ "migrations" ], - "description": "", + "description": "Generate a report of the data in a Firebase project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated.", "responses": { "200": { "description": "Migration Report", @@ -18590,7 +18295,8 @@ }, "x-appwrite": { "method": "getFirebaseReport", - "weight": 340, + "group": null, + "weight": 343, "cookies": false, "type": "", "deprecated": false, @@ -18604,9 +18310,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18642,88 +18345,14 @@ ] } }, - "\/migrations\/firebase\/report\/oauth": { - "get": { - "summary": "Generate a report on Firebase Data using OAuth", - "operationId": "migrationsGetFirebaseReportOAuth", - "tags": [ - "migrations" - ], - "description": "", - "responses": { - "200": { - "description": "Migration Report", - "content": { - "application\/json": { - "schema": { - "$ref": "#\/components\/schemas\/migrationReport" - } - } - } - } - }, - "x-appwrite": { - "method": "getFirebaseReportOAuth", - "weight": 341, - "cookies": false, - "type": "", - "deprecated": false, - "demo": "migrations\/get-firebase-report-o-auth.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/migrations\/migration-firebase-report.md", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "migrations.write", - "platforms": [ - "console" - ], - "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", - "auth": { - "Project": [] - } - }, - "security": [ - { - "Project": [] - } - ], - "parameters": [ - { - "name": "resources", - "description": "List of resources to migrate", - "required": true, - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "in": "query" - }, - { - "name": "projectId", - "description": "Project ID", - "required": true, - "schema": { - "type": "string", - "x-example": "" - }, - "in": "query" - } - ] - } - }, "\/migrations\/nhost": { "post": { - "summary": "Migrate NHost Data", + "summary": "Create NHost migration", "operationId": "migrationsCreateNHostMigration", "tags": [ "migrations" ], - "description": "", + "description": "Migrate data from an NHost project to your Appwrite project. This endpoint allows you to migrate resources like authentication, databases, and other supported services from an NHost project. ", "responses": { "202": { "description": "Migration", @@ -18738,7 +18367,8 @@ }, "x-appwrite": { "method": "createNHostMigration", - "weight": 336, + "group": null, + "weight": 339, "cookies": false, "type": "", "deprecated": false, @@ -18752,9 +18382,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18831,12 +18458,12 @@ }, "\/migrations\/nhost\/report": { "get": { - "summary": "Generate a report on NHost Data", + "summary": "Get NHost migration report", "operationId": "migrationsGetNHostReport", "tags": [ "migrations" ], - "description": "", + "description": "Generate a detailed report of the data in an NHost project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated. ", "responses": { "200": { "description": "Migration Report", @@ -18851,7 +18478,8 @@ }, "x-appwrite": { "method": "getNHostReport", - "weight": 347, + "group": null, + "weight": 345, "cookies": false, "type": "", "deprecated": false, @@ -18865,9 +18493,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18966,12 +18591,12 @@ }, "\/migrations\/supabase": { "post": { - "summary": "Migrate Supabase Data", + "summary": "Create Supabase migration", "operationId": "migrationsCreateSupabaseMigration", "tags": [ "migrations" ], - "description": "", + "description": "Migrate data from a Supabase project to your Appwrite project. This endpoint allows you to migrate resources like authentication, databases, and other supported services from a Supabase project. ", "responses": { "202": { "description": "Migration", @@ -18986,7 +18611,8 @@ }, "x-appwrite": { "method": "createSupabaseMigration", - "weight": 335, + "group": null, + "weight": 338, "cookies": false, "type": "", "deprecated": false, @@ -19000,9 +18626,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19073,12 +18696,12 @@ }, "\/migrations\/supabase\/report": { "get": { - "summary": "Generate a report on Supabase Data", + "summary": "Get Supabase migration report", "operationId": "migrationsGetSupabaseReport", "tags": [ "migrations" ], - "description": "", + "description": "Generate a report of the data in a Supabase project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated. ", "responses": { "200": { "description": "Migration Report", @@ -19093,7 +18716,8 @@ }, "x-appwrite": { "method": "getSupabaseReport", - "weight": 346, + "group": null, + "weight": 344, "cookies": false, "type": "", "deprecated": false, @@ -19107,9 +18731,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19199,12 +18820,12 @@ }, "\/migrations\/{migrationId}": { "get": { - "summary": "Get Migration", + "summary": "Get migration", "operationId": "migrationsGet", "tags": [ "migrations" ], - "description": "", + "description": "Get a migration by its unique ID. This endpoint returns detailed information about a specific migration including its current status, progress, and any errors that occurred during the migration process. ", "responses": { "200": { "description": "Migration", @@ -19219,7 +18840,8 @@ }, "x-appwrite": { "method": "get", - "weight": 338, + "group": null, + "weight": 341, "cookies": false, "type": "", "deprecated": false, @@ -19233,9 +18855,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19259,12 +18878,12 @@ ] }, "patch": { - "summary": "Retry Migration", + "summary": "Update retry migration", "operationId": "migrationsRetry", "tags": [ "migrations" ], - "description": "", + "description": "Retry a failed migration. This endpoint allows you to retry a migration that has previously failed.", "responses": { "202": { "description": "Migration", @@ -19279,7 +18898,8 @@ }, "x-appwrite": { "method": "retry", - "weight": 348, + "group": null, + "weight": 346, "cookies": false, "type": "", "deprecated": false, @@ -19293,9 +18913,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19319,12 +18936,12 @@ ] }, "delete": { - "summary": "Delete Migration", + "summary": "Delete migration", "operationId": "migrationsDelete", "tags": [ "migrations" ], - "description": "", + "description": "Delete a migration by its unique ID. This endpoint allows you to remove a migration from your project's migration history. ", "responses": { "204": { "description": "No content" @@ -19332,7 +18949,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 349, + "group": null, + "weight": 347, "cookies": false, "type": "", "deprecated": false, @@ -19346,9 +18964,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19379,7 +18994,7 @@ "tags": [ "project" ], - "description": "", + "description": "Get comprehensive usage statistics for your project. View metrics including network requests, bandwidth, storage, function executions, database usage, and user activity. Specify a time range with startDate and endDate, and optionally set the data granularity with period (1h or 1d). The response includes both total counts and detailed breakdowns by resource, along with historical data over the specified period.", "responses": { "200": { "description": "UsageProject", @@ -19394,12 +19009,13 @@ }, "x-appwrite": { "method": "getUsage", - "weight": 194, + "group": null, + "weight": 198, "cookies": false, "type": "", "deprecated": false, "demo": "project\/get-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/project\/get-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -19408,9 +19024,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19464,7 +19077,7 @@ }, "\/project\/variables": { "get": { - "summary": "List Variables", + "summary": "List variables", "operationId": "projectListVariables", "tags": [ "project" @@ -19484,7 +19097,8 @@ }, "x-appwrite": { "method": "listVariables", - "weight": 196, + "group": null, + "weight": 200, "cookies": false, "type": "", "deprecated": false, @@ -19498,9 +19112,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19512,7 +19123,7 @@ ] }, "post": { - "summary": "Create Variable", + "summary": "Create variable", "operationId": "projectCreateVariable", "tags": [ "project" @@ -19532,7 +19143,8 @@ }, "x-appwrite": { "method": "createVariable", - "weight": 195, + "group": null, + "weight": 199, "cookies": false, "type": "", "deprecated": false, @@ -19546,9 +19158,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19587,7 +19196,7 @@ }, "\/project\/variables\/{variableId}": { "get": { - "summary": "Get Variable", + "summary": "Get variable", "operationId": "projectGetVariable", "tags": [ "project" @@ -19607,7 +19216,8 @@ }, "x-appwrite": { "method": "getVariable", - "weight": 197, + "group": null, + "weight": 201, "cookies": false, "type": "", "deprecated": false, @@ -19621,9 +19231,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19647,7 +19254,7 @@ ] }, "put": { - "summary": "Update Variable", + "summary": "Update variable", "operationId": "projectUpdateVariable", "tags": [ "project" @@ -19667,7 +19274,8 @@ }, "x-appwrite": { "method": "updateVariable", - "weight": 198, + "group": null, + "weight": 202, "cookies": false, "type": "", "deprecated": false, @@ -19681,9 +19289,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19731,7 +19336,7 @@ } }, "delete": { - "summary": "Delete Variable", + "summary": "Delete variable", "operationId": "projectDeleteVariable", "tags": [ "project" @@ -19744,7 +19349,8 @@ }, "x-appwrite": { "method": "deleteVariable", - "weight": 199, + "group": null, + "weight": 203, "cookies": false, "type": "", "deprecated": false, @@ -19758,9 +19364,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19791,7 +19394,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Get a list of all projects. You can use the query params to filter your results. ", "responses": { "200": { "description": "Projects List", @@ -19806,12 +19409,13 @@ }, "x-appwrite": { "method": "list", - "weight": 150, + "group": "projects", + "weight": 153, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/list.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/list.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -19820,9 +19424,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19865,7 +19466,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Create a new project. You can create a maximum of 100 projects per account. ", "responses": { "201": { "description": "Project", @@ -19880,12 +19481,13 @@ }, "x-appwrite": { "method": "create", - "weight": 149, + "group": "projects", + "weight": 152, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/create.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/create.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -19894,9 +19496,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19932,8 +19531,7 @@ "description": "Project Region.", "x-example": "default", "enum": [ - "default", - "fra" + "default" ], "x-enum-name": null, "x-enum-keys": [] @@ -20002,7 +19600,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Get a project by its unique ID. This endpoint allows you to retrieve the project's details, including its name, description, team, region, and other metadata. ", "responses": { "200": { "description": "Project", @@ -20017,12 +19615,13 @@ }, "x-appwrite": { "method": "get", - "weight": 151, + "group": "projects", + "weight": 154, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/get.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/get.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20031,9 +19630,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20062,7 +19658,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update a project by its unique ID.", "responses": { "200": { "description": "Project", @@ -20077,12 +19673,13 @@ }, "x-appwrite": { "method": "update", - "weight": 152, + "group": "projects", + "weight": 155, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20091,9 +19688,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20186,7 +19780,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Delete a project by its unique ID.", "responses": { "204": { "description": "No content" @@ -20194,12 +19788,13 @@ }, "x-appwrite": { "method": "delete", - "weight": 168, + "group": "projects", + "weight": 172, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/delete.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/delete.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20208,9 +19803,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20241,7 +19833,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the status of a specific API type. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime.", "responses": { "200": { "description": "Project", @@ -20256,12 +19848,13 @@ }, "x-appwrite": { "method": "updateApiStatus", - "weight": 156, + "group": "projects", + "weight": 159, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-api-status.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-api-status.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20270,9 +19863,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20335,7 +19925,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the status of all API types. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime all at once.", "responses": { "200": { "description": "Project", @@ -20350,12 +19940,13 @@ }, "x-appwrite": { "method": "updateApiStatusAll", - "weight": 157, + "group": "projects", + "weight": 160, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-api-status-all.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-api-status-all.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20364,9 +19955,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20416,7 +20004,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update how long sessions created within a project should stay active for.", "responses": { "200": { "description": "Project", @@ -20431,12 +20019,13 @@ }, "x-appwrite": { "method": "updateAuthDuration", - "weight": 161, + "group": "auth", + "weight": 165, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-auth-duration.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-auth-duration.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20445,9 +20034,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20497,7 +20083,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the maximum number of users allowed in this project. Set to 0 for unlimited users. ", "responses": { "200": { "description": "Project", @@ -20512,12 +20098,13 @@ }, "x-appwrite": { "method": "updateAuthLimit", - "weight": 160, + "group": "auth", + "weight": 164, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-auth-limit.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-auth-limit.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20526,9 +20113,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20578,7 +20162,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the maximum number of sessions allowed per user within the project, if the limit is hit the oldest session will be deleted to make room for new sessions.", "responses": { "200": { "description": "Project", @@ -20593,12 +20177,13 @@ }, "x-appwrite": { "method": "updateAuthSessionsLimit", - "weight": 166, + "group": "auth", + "weight": 170, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-auth-sessions-limit.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-auth-sessions-limit.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20607,9 +20192,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20652,6 +20234,97 @@ } } }, + "\/projects\/{projectId}\/auth\/memberships-privacy": { + "patch": { + "summary": "Update project memberships privacy attributes", + "operationId": "projectsUpdateMembershipsPrivacy", + "tags": [ + "projects" + ], + "description": "Update project membership privacy settings. Use this endpoint to control what user information is visible to other team members, such as user name, email, and MFA status. ", + "responses": { + "200": { + "description": "Project", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/project" + } + } + } + } + }, + "x-appwrite": { + "method": "updateMembershipsPrivacy", + "group": "auth", + "weight": 163, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "projects\/update-memberships-privacy.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-memberships-privacy.md", + "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": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "userName": { + "type": "boolean", + "description": "Set to true to show userName to members of a team.", + "x-example": false + }, + "userEmail": { + "type": "boolean", + "description": "Set to true to show email to members of a team.", + "x-example": false + }, + "mfa": { + "type": "boolean", + "description": "Set to true to show mfa to members of a team.", + "x-example": false + } + }, + "required": [ + "userName", + "userEmail", + "mfa" + ] + } + } + } + } + } + }, "\/projects\/{projectId}\/auth\/mock-numbers": { "patch": { "summary": "Update the mock numbers for the project", @@ -20659,7 +20332,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the list of mock phone numbers for testing. Use these numbers to bypass SMS verification in development. ", "responses": { "200": { "description": "Project", @@ -20674,12 +20347,13 @@ }, "x-appwrite": { "method": "updateMockNumbers", - "weight": 167, + "group": "auth", + "weight": 171, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-mock-numbers.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-mock-numbers.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20688,9 +20362,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20743,7 +20414,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Enable or disable checking user passwords against common passwords dictionary. This helps ensure users don't use common and insecure passwords. ", "responses": { "200": { "description": "Project", @@ -20758,12 +20429,13 @@ }, "x-appwrite": { "method": "updateAuthPasswordDictionary", - "weight": 164, + "group": "auth", + "weight": 168, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-auth-password-dictionary.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-auth-password-dictionary.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20772,9 +20444,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20824,7 +20493,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the authentication password history requirement. Use this endpoint to require new passwords to be different than the last X amount of previously used ones.", "responses": { "200": { "description": "Project", @@ -20839,12 +20508,13 @@ }, "x-appwrite": { "method": "updateAuthPasswordHistory", - "weight": 163, + "group": "auth", + "weight": 167, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-auth-password-history.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-auth-password-history.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20853,9 +20523,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20900,12 +20567,12 @@ }, "\/projects\/{projectId}\/auth\/personal-data": { "patch": { - "summary": "Enable or disable checking user passwords for similarity with their personal data.", + "summary": "Update personal data check", "operationId": "projectsUpdatePersonalDataCheck", "tags": [ "projects" ], - "description": "", + "description": "Enable or disable checking user passwords against their personal data. This helps prevent users from using personal information in their passwords. ", "responses": { "200": { "description": "Project", @@ -20920,12 +20587,13 @@ }, "x-appwrite": { "method": "updatePersonalDataCheck", - "weight": 165, + "group": "auth", + "weight": 169, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-personal-data-check.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-personal-data-check.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20934,9 +20602,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20986,7 +20651,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Enable or disable session email alerts. When enabled, users will receive email notifications when new sessions are created.", "responses": { "200": { "description": "Project", @@ -21001,12 +20666,13 @@ }, "x-appwrite": { "method": "updateSessionAlerts", - "weight": 159, + "group": "auth", + "weight": 162, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-session-alerts.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-session-alerts.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -21015,9 +20681,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21067,7 +20730,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the status of a specific authentication method. Use this endpoint to enable or disable different authentication methods such as email, magic urls or sms in your project. ", "responses": { "200": { "description": "Project", @@ -21082,12 +20745,13 @@ }, "x-appwrite": { "method": "updateAuthStatus", - "weight": 162, + "group": "auth", + "weight": 166, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-auth-status.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-auth-status.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -21096,9 +20760,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21169,7 +20830,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Create a new JWT token. This token can be used to authenticate users with custom scopes and expiration time. ", "responses": { "201": { "description": "JWT", @@ -21184,12 +20845,13 @@ }, "x-appwrite": { "method": "createJWT", - "weight": 180, + "group": "auth", + "weight": 184, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/create-j-w-t.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/create-jwt.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -21198,9 +20860,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21258,7 +20917,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Get a list of all API keys from the current project. ", "responses": { "200": { "description": "API Keys List", @@ -21273,23 +20932,21 @@ }, "x-appwrite": { "method": "listKeys", - "weight": 176, + "group": "keys", + "weight": 180, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/list-keys.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/list-keys.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.read", + "scope": "keys.read", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21318,7 +20975,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Create a new API key. It's recommended to have multiple API keys with strict scopes for separate functions within your project.", "responses": { "201": { "description": "Key", @@ -21333,23 +20990,21 @@ }, "x-appwrite": { "method": "createKey", - "weight": 175, + "group": "keys", + "weight": 179, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/create-key.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/create-key.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.write", + "scope": "keys.write", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21413,7 +21068,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Get a key by its unique ID. This endpoint returns details about a specific API key in your project including it's scopes.", "responses": { "200": { "description": "Key", @@ -21428,23 +21083,21 @@ }, "x-appwrite": { "method": "getKey", - "weight": 177, + "group": "keys", + "weight": 181, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/get-key.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/get-key.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.read", + "scope": "keys.read", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21483,7 +21136,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update a key by its unique ID. Use this endpoint to update the name, scopes, or expiration time of an API key. ", "responses": { "200": { "description": "Key", @@ -21498,23 +21151,21 @@ }, "x-appwrite": { "method": "updateKey", - "weight": 178, + "group": "keys", + "weight": 182, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-key.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-key.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.write", + "scope": "keys.write", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21586,7 +21237,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Delete a key by its unique ID. Once deleted, the key can no longer be used to authenticate API calls. ", "responses": { "204": { "description": "No content" @@ -21594,23 +21245,21 @@ }, "x-appwrite": { "method": "deleteKey", - "weight": 179, + "group": "keys", + "weight": 183, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/delete-key.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/delete-key.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.write", + "scope": "keys.write", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21651,7 +21300,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the OAuth2 provider configurations. Use this endpoint to set up or update the OAuth2 provider credentials or enable\/disable providers. ", "responses": { "200": { "description": "Project", @@ -21666,12 +21315,13 @@ }, "x-appwrite": { "method": "updateOAuth2", - "weight": 158, + "group": "auth", + "weight": 161, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-o-auth2.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-oauth2.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -21680,9 +21330,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21729,6 +21376,7 @@ "dropbox", "etsy", "facebook", + "figma", "github", "gitlab", "google", @@ -21790,7 +21438,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Get a list of all platforms in the project. This endpoint returns an array of all platforms and their configurations. ", "responses": { "200": { "description": "Platforms List", @@ -21805,23 +21453,21 @@ }, "x-appwrite": { "method": "listPlatforms", - "weight": 182, + "group": "platforms", + "weight": 186, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/list-platforms.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/list-platforms.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.read", + "scope": "platforms.read", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21850,7 +21496,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Create a new platform for your project. Use this endpoint to register a new platform where your users will run your application which will interact with the Appwrite API.", "responses": { "201": { "description": "Platform", @@ -21865,23 +21511,21 @@ }, "x-appwrite": { "method": "createPlatform", - "weight": 181, + "group": "platforms", + "weight": 185, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/create-platform.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/create-platform.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.write", + "scope": "platforms.write", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21971,7 +21615,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Get a platform by its unique ID. This endpoint returns the platform's details, including its name, type, and key configurations. ", "responses": { "200": { "description": "Platform", @@ -21986,23 +21630,21 @@ }, "x-appwrite": { "method": "getPlatform", - "weight": 183, + "group": "platforms", + "weight": 187, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/get-platform.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/get-platform.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.read", + "scope": "platforms.read", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22041,7 +21683,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update a platform by its unique ID. Use this endpoint to update the platform's name, key, platform store ID, or hostname. ", "responses": { "200": { "description": "Platform", @@ -22056,23 +21698,21 @@ }, "x-appwrite": { "method": "updatePlatform", - "weight": 184, + "group": "platforms", + "weight": 188, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-platform.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-platform.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.write", + "scope": "platforms.write", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22145,7 +21785,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Delete a platform by its unique ID. This endpoint removes the platform and all its configurations from the project. ", "responses": { "204": { "description": "No content" @@ -22153,23 +21793,21 @@ }, "x-appwrite": { "method": "deletePlatform", - "weight": 185, + "group": "platforms", + "weight": 189, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/delete-platform.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/delete-platform.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.write", + "scope": "platforms.write", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22210,7 +21848,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the status of a specific service. Use this endpoint to enable or disable a service in your project. ", "responses": { "200": { "description": "Project", @@ -22225,12 +21863,13 @@ }, "x-appwrite": { "method": "updateServiceStatus", - "weight": 154, + "group": "projects", + "weight": 157, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-service-status.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-service-status.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -22239,9 +21878,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22312,7 +21948,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the status of all services. Use this endpoint to enable or disable all optional services at once. ", "responses": { "200": { "description": "Project", @@ -22327,12 +21963,13 @@ }, "x-appwrite": { "method": "updateServiceStatusAll", - "weight": 155, + "group": "projects", + "weight": 158, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-service-status-all.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-service-status-all.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -22341,9 +21978,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22393,7 +22027,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the SMTP configuration for your project. Use this endpoint to configure your project's SMTP provider with your custom settings for sending transactional emails. ", "responses": { "200": { "description": "Project", @@ -22408,12 +22042,13 @@ }, "x-appwrite": { "method": "updateSmtp", - "weight": 186, + "group": "templates", + "weight": 190, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-smtp.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-smtp.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -22422,9 +22057,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22520,7 +22152,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Send a test email to verify SMTP configuration. ", "responses": { "204": { "description": "No content" @@ -22528,12 +22160,13 @@ }, "x-appwrite": { "method": "createSmtpTest", - "weight": 187, + "group": "templates", + "weight": 191, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/create-smtp-test.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/create-smtp-test.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -22542,9 +22175,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22620,7 +22250,8 @@ "description": "Does SMTP server use secure connection", "x-example": "tls", "enum": [ - "tls" + "tls", + "ssl" ], "x-enum-name": "SMTPSecure", "x-enum-keys": [] @@ -22645,7 +22276,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the team ID of a project allowing for it to be transferred to another team.", "responses": { "200": { "description": "Project", @@ -22660,12 +22291,13 @@ }, "x-appwrite": { "method": "updateTeam", - "weight": 153, + "group": "projects", + "weight": 156, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-team.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-team.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -22674,9 +22306,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22726,7 +22355,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Get a custom email template for the specified locale and type. This endpoint returns the template content, subject, and other configuration details. ", "responses": { "200": { "description": "EmailTemplate", @@ -22741,12 +22370,13 @@ }, "x-appwrite": { "method": "getEmailTemplate", - "weight": 189, + "group": "templates", + "weight": 193, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/get-email-template.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/get-email-template.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -22755,9 +22385,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22952,14 +22579,14 @@ "tags": [ "projects" ], - "description": "", + "description": "Update a custom email template for the specified locale and type. Use this endpoint to modify the content of your email templates.", "responses": { "200": { - "description": "Project", + "description": "EmailTemplate", "content": { "application\/json": { "schema": { - "$ref": "#\/components\/schemas\/project" + "$ref": "#\/components\/schemas\/emailTemplate" } } } @@ -22967,12 +22594,13 @@ }, "x-appwrite": { "method": "updateEmailTemplate", - "weight": 191, + "group": "templates", + "weight": 195, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-email-template.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-email-template.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -22981,9 +22609,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -23213,12 +22838,12 @@ } }, "delete": { - "summary": "Reset custom email template", + "summary": "Delete custom email template", "operationId": "projectsDeleteEmailTemplate", "tags": [ "projects" ], - "description": "", + "description": "Reset a custom email template to its default value. This endpoint removes any custom content and restores the template to its original state. ", "responses": { "200": { "description": "EmailTemplate", @@ -23233,12 +22858,13 @@ }, "x-appwrite": { "method": "deleteEmailTemplate", - "weight": 193, + "group": "templates", + "weight": 197, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/delete-email-template.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/delete-email-template.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -23247,9 +22873,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -23446,7 +23069,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Get a custom SMS template for the specified locale and type returning it's contents.", "responses": { "200": { "description": "SmsTemplate", @@ -23461,12 +23084,13 @@ }, "x-appwrite": { "method": "getSmsTemplate", - "weight": 188, + "group": "templates", + "weight": 192, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/get-sms-template.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/get-sms-template.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -23475,9 +23099,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -23669,7 +23290,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update a custom SMS template for the specified locale and type. Use this endpoint to modify the content of your SMS templates. ", "responses": { "200": { "description": "SmsTemplate", @@ -23684,12 +23305,13 @@ }, "x-appwrite": { "method": "updateSmsTemplate", - "weight": 190, + "group": "templates", + "weight": 194, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-sms-template.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-sms-template.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -23698,9 +23320,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -23911,7 +23530,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Reset a custom SMS template to its default value. This endpoint removes any custom message and restores the template to its original state. ", "responses": { "200": { "description": "SmsTemplate", @@ -23926,12 +23545,13 @@ }, "x-appwrite": { "method": "deleteSmsTemplate", - "weight": 192, + "group": "templates", + "weight": 196, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/delete-sms-template.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/delete-sms-template.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -23940,9 +23560,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24136,7 +23753,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Get a list of all webhooks belonging to the project. You can use the query params to filter your results. ", "responses": { "200": { "description": "Webhooks List", @@ -24151,12 +23768,13 @@ }, "x-appwrite": { "method": "listWebhooks", - "weight": 170, + "group": "webhooks", + "weight": 174, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/list-webhooks.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/list-webhooks.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -24165,9 +23783,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24196,7 +23811,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Create a new webhook. Use this endpoint to configure a URL that will receive events from Appwrite when specific events occur. ", "responses": { "201": { "description": "Webhook", @@ -24211,12 +23826,13 @@ }, "x-appwrite": { "method": "createWebhook", - "weight": 169, + "group": "webhooks", + "weight": 173, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/create-webhook.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/create-webhook.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -24225,9 +23841,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24313,7 +23926,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Get a webhook by its unique ID. This endpoint returns details about a specific webhook configured for a project. ", "responses": { "200": { "description": "Webhook", @@ -24328,12 +23941,13 @@ }, "x-appwrite": { "method": "getWebhook", - "weight": 171, + "group": "webhooks", + "weight": 175, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/get-webhook.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/get-webhook.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -24342,9 +23956,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24383,7 +23994,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update a webhook by its unique ID. Use this endpoint to update the URL, events, or status of an existing webhook. ", "responses": { "200": { "description": "Webhook", @@ -24398,12 +24009,13 @@ }, "x-appwrite": { "method": "updateWebhook", - "weight": 172, + "group": "webhooks", + "weight": 176, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-webhook.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-webhook.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -24412,9 +24024,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24508,7 +24117,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Delete a webhook by its unique ID. Once deleted, the webhook will no longer receive project events. ", "responses": { "204": { "description": "No content" @@ -24516,12 +24125,13 @@ }, "x-appwrite": { "method": "deleteWebhook", - "weight": 174, + "group": "webhooks", + "weight": 178, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/delete-webhook.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/delete-webhook.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -24530,9 +24140,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24573,7 +24180,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the webhook signature key. This endpoint can be used to regenerate the signature key used to sign and validate payload deliveries for a specific webhook. ", "responses": { "200": { "description": "Webhook", @@ -24588,12 +24195,13 @@ }, "x-appwrite": { "method": "updateWebhookSignature", - "weight": 173, + "group": "webhooks", + "weight": 177, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-webhook-signature.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-webhook-signature.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -24602,9 +24210,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24640,7 +24245,7 @@ }, "\/proxy\/rules": { "get": { - "summary": "List Rules", + "summary": "List rules", "operationId": "proxyListRules", "tags": [ "proxy" @@ -24660,7 +24265,8 @@ }, "x-appwrite": { "method": "listRules", - "weight": 315, + "group": null, + "weight": 319, "cookies": false, "type": "", "deprecated": false, @@ -24674,9 +24280,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24714,7 +24317,7 @@ ] }, "post": { - "summary": "Create Rule", + "summary": "Create rule", "operationId": "proxyCreateRule", "tags": [ "proxy" @@ -24734,7 +24337,8 @@ }, "x-appwrite": { "method": "createRule", - "weight": 314, + "group": null, + "weight": 318, "cookies": false, "type": "", "deprecated": false, @@ -24748,9 +24352,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24800,7 +24401,7 @@ }, "\/proxy\/rules\/{ruleId}": { "get": { - "summary": "Get Rule", + "summary": "Get rule", "operationId": "proxyGetRule", "tags": [ "proxy" @@ -24820,7 +24421,8 @@ }, "x-appwrite": { "method": "getRule", - "weight": 316, + "group": null, + "weight": 320, "cookies": false, "type": "", "deprecated": false, @@ -24834,9 +24436,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24860,7 +24459,7 @@ ] }, "delete": { - "summary": "Delete Rule", + "summary": "Delete rule", "operationId": "proxyDeleteRule", "tags": [ "proxy" @@ -24873,7 +24472,8 @@ }, "x-appwrite": { "method": "deleteRule", - "weight": 317, + "group": null, + "weight": 321, "cookies": false, "type": "", "deprecated": false, @@ -24887,9 +24487,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24915,12 +24512,12 @@ }, "\/proxy\/rules\/{ruleId}\/verification": { "patch": { - "summary": "Update Rule Verification Status", + "summary": "Update rule verification status", "operationId": "proxyUpdateRuleVerification", "tags": [ "proxy" ], - "description": "", + "description": "Retry getting verification process of a proxy rule. This endpoint triggers domain verification by checking DNS records (CNAME) against the configured target domain. If verification is successful, a TLS certificate will be automatically provisioned for the domain.", "responses": { "200": { "description": "Rule", @@ -24935,12 +24532,13 @@ }, "x-appwrite": { "method": "updateRuleVerification", - "weight": 318, + "group": null, + "weight": 322, "cookies": false, "type": "", "deprecated": false, "demo": "proxy\/update-rule-verification.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/proxy\/update-rule-verification.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -24949,9 +24547,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24997,7 +24592,8 @@ }, "x-appwrite": { "method": "listBuckets", - "weight": 201, + "group": "buckets", + "weight": 205, "cookies": false, "type": "", "deprecated": false, @@ -25011,9 +24607,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25072,7 +24665,8 @@ }, "x-appwrite": { "method": "createBucket", - "weight": 200, + "group": "buckets", + "weight": 204, "cookies": false, "type": "", "deprecated": false, @@ -25086,9 +24680,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25201,7 +24792,8 @@ }, "x-appwrite": { "method": "getBucket", - "weight": 202, + "group": "buckets", + "weight": 206, "cookies": false, "type": "", "deprecated": false, @@ -25215,9 +24807,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25262,7 +24851,8 @@ }, "x-appwrite": { "method": "updateBucket", - "weight": 203, + "group": "buckets", + "weight": 207, "cookies": false, "type": "", "deprecated": false, @@ -25276,9 +24866,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25388,7 +24975,8 @@ }, "x-appwrite": { "method": "deleteBucket", - "weight": 204, + "group": "buckets", + "weight": 208, "cookies": false, "type": "", "deprecated": false, @@ -25402,9 +24990,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25451,7 +25036,8 @@ }, "x-appwrite": { "method": "listFiles", - "weight": 206, + "group": "files", + "weight": 210, "cookies": false, "type": "", "deprecated": false, @@ -25467,9 +25053,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25539,7 +25122,8 @@ }, "x-appwrite": { "method": "createFile", - "weight": 205, + "group": "files", + "weight": 209, "cookies": false, "type": "upload", "deprecated": false, @@ -25555,9 +25139,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25639,7 +25220,8 @@ }, "x-appwrite": { "method": "getFile", - "weight": 207, + "group": "files", + "weight": 211, "cookies": false, "type": "", "deprecated": false, @@ -25655,9 +25237,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25713,7 +25292,8 @@ }, "x-appwrite": { "method": "updateFile", - "weight": 212, + "group": "files", + "weight": 216, "cookies": false, "type": "", "deprecated": false, @@ -25729,9 +25309,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25791,7 +25368,7 @@ } }, "delete": { - "summary": "Delete File", + "summary": "Delete file", "operationId": "storageDeleteFile", "tags": [ "storage" @@ -25804,7 +25381,8 @@ }, "x-appwrite": { "method": "deleteFile", - "weight": 213, + "group": "files", + "weight": 217, "cookies": false, "type": "", "deprecated": false, @@ -25820,9 +25398,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25873,7 +25448,8 @@ }, "x-appwrite": { "method": "getFileDownload", - "weight": 209, + "group": "files", + "weight": 213, "cookies": false, "type": "location", "deprecated": false, @@ -25889,9 +25465,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25942,7 +25515,8 @@ }, "x-appwrite": { "method": "getFilePreview", - "weight": 208, + "group": "files", + "weight": 212, "cookies": false, "type": "location", "deprecated": false, @@ -25958,9 +25532,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26133,7 +25704,9 @@ "jpeg", "gif", "png", - "webp" + "webp", + "heic", + "avif" ], "x-enum-name": "ImageFormat", "x-enum-keys": [], @@ -26159,7 +25732,8 @@ }, "x-appwrite": { "method": "getFileView", - "weight": 210, + "group": "files", + "weight": 214, "cookies": false, "type": "location", "deprecated": false, @@ -26175,9 +25749,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26220,7 +25791,7 @@ "tags": [ "storage" ], - "description": "", + "description": "Get usage metrics and statistics for all buckets in the project. You can view the total number of buckets, files, storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.\n", "responses": { "200": { "description": "StorageUsage", @@ -26235,12 +25806,13 @@ }, "x-appwrite": { "method": "getUsage", - "weight": 214, + "group": null, + "weight": 218, "cookies": false, "type": "", "deprecated": false, "demo": "storage\/get-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -26249,9 +25821,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26294,7 +25863,7 @@ "tags": [ "storage" ], - "description": "", + "description": "Get usage metrics and statistics a specific bucket in the project. You can view the total number of files, storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.\n", "responses": { "200": { "description": "UsageBuckets", @@ -26309,12 +25878,13 @@ }, "x-appwrite": { "method": "getBucketUsage", - "weight": 215, + "group": null, + "weight": 219, "cookies": false, "type": "", "deprecated": false, "demo": "storage\/get-bucket-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-bucket-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -26323,9 +25893,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26393,7 +25960,8 @@ }, "x-appwrite": { "method": "list", - "weight": 217, + "group": "teams", + "weight": 221, "cookies": false, "type": "", "deprecated": false, @@ -26409,9 +25977,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26471,7 +26036,8 @@ }, "x-appwrite": { "method": "create", - "weight": 216, + "group": "teams", + "weight": 220, "cookies": false, "type": "", "deprecated": false, @@ -26487,9 +26053,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26558,7 +26121,8 @@ }, "x-appwrite": { "method": "get", - "weight": 218, + "group": "teams", + "weight": 222, "cookies": false, "type": "", "deprecated": false, @@ -26574,9 +26138,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "{teamId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26622,7 +26183,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 220, + "group": "teams", + "weight": 224, "cookies": false, "type": "", "deprecated": false, @@ -26638,9 +26200,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "{teamId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26698,7 +26257,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 222, + "group": "teams", + "weight": 226, "cookies": false, "type": "", "deprecated": false, @@ -26714,9 +26274,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26764,7 +26321,8 @@ }, "x-appwrite": { "method": "listLogs", - "weight": 229, + "group": "logs", + "weight": 233, "cookies": false, "type": "", "deprecated": false, @@ -26778,9 +26336,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26824,7 +26379,7 @@ "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.", + "description": "Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint. Hide sensitive attributes from the response by toggling membership privacy in the Console.", "responses": { "200": { "description": "Memberships List", @@ -26839,7 +26394,8 @@ }, "x-appwrite": { "method": "listMemberships", - "weight": 224, + "group": "memberships", + "weight": 228, "cookies": false, "type": "", "deprecated": false, @@ -26855,9 +26411,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/memberships", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26927,7 +26480,8 @@ }, "x-appwrite": { "method": "createMembership", - "weight": 223, + "group": "memberships", + "weight": 227, "cookies": false, "type": "", "deprecated": false, @@ -26943,9 +26497,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27025,7 +26576,7 @@ "tags": [ "teams" ], - "description": "Get a team member by the membership unique id. All team members have read access for this resource.", + "description": "Get a team member by the membership unique id. All team members have read access for this resource. Hide sensitive attributes from the response by toggling membership privacy in the Console.", "responses": { "200": { "description": "Membership", @@ -27040,7 +26591,8 @@ }, "x-appwrite": { "method": "getMembership", - "weight": 225, + "group": "memberships", + "weight": 229, "cookies": false, "type": "", "deprecated": false, @@ -27056,9 +26608,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/memberships", - "offline-key": "{membershipId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27114,7 +26663,8 @@ }, "x-appwrite": { "method": "updateMembership", - "weight": 226, + "group": "memberships", + "weight": 230, "cookies": false, "type": "", "deprecated": false, @@ -27130,9 +26680,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27203,7 +26750,8 @@ }, "x-appwrite": { "method": "deleteMembership", - "weight": 228, + "group": "memberships", + "weight": 232, "cookies": false, "type": "", "deprecated": false, @@ -27219,9 +26767,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27279,7 +26824,8 @@ }, "x-appwrite": { "method": "updateMembershipStatus", - "weight": 227, + "group": "memberships", + "weight": 231, "cookies": false, "type": "", "deprecated": false, @@ -27294,9 +26840,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27378,7 +26921,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 219, + "group": "teams", + "weight": 223, "cookies": false, "type": "", "deprecated": false, @@ -27393,9 +26937,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/prefs", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27440,7 +26981,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 221, + "group": "teams", + "weight": 225, "cookies": false, "type": "", "deprecated": false, @@ -27455,9 +26997,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/prefs", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27523,7 +27062,8 @@ }, "x-appwrite": { "method": "list", - "weight": 239, + "group": "users", + "weight": 243, "cookies": false, "type": "", "deprecated": false, @@ -27537,9 +27077,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27598,7 +27135,8 @@ }, "x-appwrite": { "method": "create", - "weight": 230, + "group": "users", + "weight": 234, "cookies": false, "type": "", "deprecated": false, @@ -27612,9 +27150,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27688,7 +27223,8 @@ }, "x-appwrite": { "method": "createArgon2User", - "weight": 233, + "group": "users", + "weight": 237, "cookies": false, "type": "", "deprecated": false, @@ -27702,9 +27238,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27775,7 +27308,8 @@ }, "x-appwrite": { "method": "createBcryptUser", - "weight": 231, + "group": "users", + "weight": 235, "cookies": false, "type": "", "deprecated": false, @@ -27789,9 +27323,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27842,7 +27373,7 @@ }, "\/users\/identities": { "get": { - "summary": "List Identities", + "summary": "List identities", "operationId": "usersListIdentities", "tags": [ "users" @@ -27862,7 +27393,8 @@ }, "x-appwrite": { "method": "listIdentities", - "weight": 247, + "group": "identities", + "weight": 251, "cookies": false, "type": "", "deprecated": false, @@ -27876,9 +27408,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27932,7 +27461,8 @@ }, "x-appwrite": { "method": "deleteIdentity", - "weight": 270, + "group": "identities", + "weight": 274, "cookies": false, "type": "", "deprecated": false, @@ -27946,9 +27476,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27995,7 +27522,8 @@ }, "x-appwrite": { "method": "createMD5User", - "weight": 232, + "group": "users", + "weight": 236, "cookies": false, "type": "", "deprecated": false, @@ -28009,9 +27537,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28082,7 +27607,8 @@ }, "x-appwrite": { "method": "createPHPassUser", - "weight": 235, + "group": "users", + "weight": 239, "cookies": false, "type": "", "deprecated": false, @@ -28096,9 +27622,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28169,7 +27692,8 @@ }, "x-appwrite": { "method": "createScryptUser", - "weight": 236, + "group": "users", + "weight": 240, "cookies": false, "type": "", "deprecated": false, @@ -28183,9 +27707,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28286,7 +27807,8 @@ }, "x-appwrite": { "method": "createScryptModifiedUser", - "weight": 237, + "group": "users", + "weight": 241, "cookies": false, "type": "", "deprecated": false, @@ -28300,9 +27822,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28391,7 +27910,8 @@ }, "x-appwrite": { "method": "createSHAUser", - "weight": 234, + "group": "users", + "weight": 238, "cookies": false, "type": "", "deprecated": false, @@ -28405,9 +27925,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28483,7 +28000,7 @@ "tags": [ "users" ], - "description": "", + "description": "Get usage metrics and statistics for all users in the project. You can view the total number of users and sessions. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.\n", "responses": { "200": { "description": "UsageUsers", @@ -28498,12 +28015,13 @@ }, "x-appwrite": { "method": "getUsage", - "weight": 272, + "group": null, + "weight": 276, "cookies": false, "type": "", "deprecated": false, "demo": "users\/get-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/get-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -28512,9 +28030,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28572,7 +28087,8 @@ }, "x-appwrite": { "method": "get", - "weight": 240, + "group": "users", + "weight": 244, "cookies": false, "type": "", "deprecated": false, @@ -28586,9 +28102,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28626,7 +28139,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 268, + "group": "users", + "weight": 272, "cookies": false, "type": "", "deprecated": false, @@ -28640,9 +28154,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28689,7 +28200,8 @@ }, "x-appwrite": { "method": "updateEmail", - "weight": 253, + "group": "users", + "weight": 257, "cookies": false, "type": "", "deprecated": false, @@ -28703,9 +28215,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28771,7 +28280,8 @@ }, "x-appwrite": { "method": "createJWT", - "weight": 271, + "group": "sessions", + "weight": 275, "cookies": false, "type": "", "deprecated": false, @@ -28785,9 +28295,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28855,7 +28362,8 @@ }, "x-appwrite": { "method": "updateLabels", - "weight": 249, + "group": "users", + "weight": 253, "cookies": false, "type": "", "deprecated": false, @@ -28869,9 +28377,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28940,7 +28445,8 @@ }, "x-appwrite": { "method": "listLogs", - "weight": 245, + "group": "logs", + "weight": 249, "cookies": false, "type": "", "deprecated": false, @@ -28954,9 +28460,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29016,7 +28519,8 @@ }, "x-appwrite": { "method": "listMemberships", - "weight": 244, + "group": "memberships", + "weight": 248, "cookies": false, "type": "", "deprecated": false, @@ -29030,9 +28534,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29079,7 +28580,8 @@ }, "x-appwrite": { "method": "updateMfa", - "weight": 258, + "group": "users", + "weight": 262, "cookies": false, "type": "", "deprecated": false, @@ -29093,9 +28595,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29141,27 +28640,21 @@ }, "\/users\/{userId}\/mfa\/authenticators\/{type}": { "delete": { - "summary": "Delete Authenticator", + "summary": "Delete authenticator", "operationId": "usersDeleteMfaAuthenticator", "tags": [ "users" ], "description": "Delete an authenticator app.", "responses": { - "200": { - "description": "User", - "content": { - "application\/json": { - "schema": { - "$ref": "#\/components\/schemas\/user" - } - } - } + "204": { + "description": "No content" } }, "x-appwrite": { "method": "deleteMfaAuthenticator", - "weight": 263, + "group": "mfa", + "weight": 267, "cookies": false, "type": "", "deprecated": false, @@ -29175,9 +28668,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29219,7 +28709,7 @@ }, "\/users\/{userId}\/mfa\/factors": { "get": { - "summary": "List Factors", + "summary": "List factors", "operationId": "usersListMfaFactors", "tags": [ "users" @@ -29239,7 +28729,8 @@ }, "x-appwrite": { "method": "listMfaFactors", - "weight": 259, + "group": "mfa", + "weight": 263, "cookies": false, "type": "", "deprecated": false, @@ -29253,9 +28744,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29282,7 +28770,7 @@ }, "\/users\/{userId}\/mfa\/recovery-codes": { "get": { - "summary": "Get MFA Recovery Codes", + "summary": "Get MFA recovery codes", "operationId": "usersGetMfaRecoveryCodes", "tags": [ "users" @@ -29302,7 +28790,8 @@ }, "x-appwrite": { "method": "getMfaRecoveryCodes", - "weight": 260, + "group": "mfa", + "weight": 264, "cookies": false, "type": "", "deprecated": false, @@ -29316,9 +28805,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29343,7 +28829,7 @@ ] }, "put": { - "summary": "Regenerate MFA Recovery Codes", + "summary": "Update MFA recovery codes (regenerate)", "operationId": "usersUpdateMfaRecoveryCodes", "tags": [ "users" @@ -29363,7 +28849,8 @@ }, "x-appwrite": { "method": "updateMfaRecoveryCodes", - "weight": 262, + "group": "mfa", + "weight": 266, "cookies": false, "type": "", "deprecated": false, @@ -29377,9 +28864,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29404,7 +28888,7 @@ ] }, "patch": { - "summary": "Create MFA Recovery Codes", + "summary": "Create MFA recovery codes", "operationId": "usersCreateMfaRecoveryCodes", "tags": [ "users" @@ -29424,7 +28908,8 @@ }, "x-appwrite": { "method": "createMfaRecoveryCodes", - "weight": 261, + "group": "mfa", + "weight": 265, "cookies": false, "type": "", "deprecated": false, @@ -29438,9 +28923,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29487,7 +28969,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 251, + "group": "users", + "weight": 255, "cookies": false, "type": "", "deprecated": false, @@ -29501,9 +28984,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29569,7 +29049,8 @@ }, "x-appwrite": { "method": "updatePassword", - "weight": 252, + "group": "users", + "weight": 256, "cookies": false, "type": "", "deprecated": false, @@ -29583,9 +29064,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29651,7 +29129,8 @@ }, "x-appwrite": { "method": "updatePhone", - "weight": 254, + "group": "users", + "weight": 258, "cookies": false, "type": "", "deprecated": false, @@ -29665,9 +29144,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29733,7 +29209,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 241, + "group": "users", + "weight": 245, "cookies": false, "type": "", "deprecated": false, @@ -29747,9 +29224,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29794,7 +29268,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 256, + "group": "users", + "weight": 260, "cookies": false, "type": "", "deprecated": false, @@ -29808,9 +29283,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29876,7 +29348,8 @@ }, "x-appwrite": { "method": "listSessions", - "weight": 243, + "group": "sessions", + "weight": 247, "cookies": false, "type": "", "deprecated": false, @@ -29890,9 +29363,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29937,7 +29407,8 @@ }, "x-appwrite": { "method": "createSession", - "weight": 264, + "group": "sessions", + "weight": 268, "cookies": false, "type": "", "deprecated": false, @@ -29951,9 +29422,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29991,7 +29459,8 @@ }, "x-appwrite": { "method": "deleteSessions", - "weight": 267, + "group": "sessions", + "weight": 271, "cookies": false, "type": "", "deprecated": false, @@ -30005,9 +29474,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30047,7 +29513,8 @@ }, "x-appwrite": { "method": "deleteSession", - "weight": 266, + "group": "sessions", + "weight": 270, "cookies": false, "type": "", "deprecated": false, @@ -30061,9 +29528,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30120,7 +29584,8 @@ }, "x-appwrite": { "method": "updateStatus", - "weight": 248, + "group": "users", + "weight": 252, "cookies": false, "type": "", "deprecated": false, @@ -30134,9 +29599,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30182,7 +29644,7 @@ }, "\/users\/{userId}\/targets": { "get": { - "summary": "List User Targets", + "summary": "List user targets", "operationId": "usersListTargets", "tags": [ "users" @@ -30202,7 +29664,8 @@ }, "x-appwrite": { "method": "listTargets", - "weight": 246, + "group": "targets", + "weight": 250, "cookies": false, "type": "", "deprecated": false, @@ -30217,9 +29680,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30257,7 +29717,7 @@ ] }, "post": { - "summary": "Create User Target", + "summary": "Create user target", "operationId": "usersCreateTarget", "tags": [ "users" @@ -30277,7 +29737,8 @@ }, "x-appwrite": { "method": "createTarget", - "weight": 238, + "group": "targets", + "weight": 242, "cookies": false, "type": "", "deprecated": false, @@ -30292,9 +29753,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30369,7 +29827,7 @@ }, "\/users\/{userId}\/targets\/{targetId}": { "get": { - "summary": "Get User Target", + "summary": "Get user target", "operationId": "usersGetTarget", "tags": [ "users" @@ -30389,7 +29847,8 @@ }, "x-appwrite": { "method": "getTarget", - "weight": 242, + "group": "targets", + "weight": 246, "cookies": false, "type": "", "deprecated": false, @@ -30404,9 +29863,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30441,7 +29897,7 @@ ] }, "patch": { - "summary": "Update User target", + "summary": "Update user target", "operationId": "usersUpdateTarget", "tags": [ "users" @@ -30461,7 +29917,8 @@ }, "x-appwrite": { "method": "updateTarget", - "weight": 257, + "group": "targets", + "weight": 261, "cookies": false, "type": "", "deprecated": false, @@ -30476,9 +29933,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30552,7 +30006,8 @@ }, "x-appwrite": { "method": "deleteTarget", - "weight": 269, + "group": "targets", + "weight": 273, "cookies": false, "type": "", "deprecated": false, @@ -30567,9 +30022,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30626,7 +30078,8 @@ }, "x-appwrite": { "method": "createToken", - "weight": 265, + "group": "sessions", + "weight": 269, "cookies": false, "type": "", "deprecated": false, @@ -30640,9 +30093,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30710,7 +30160,8 @@ }, "x-appwrite": { "method": "updateEmailVerification", - "weight": 255, + "group": "users", + "weight": 259, "cookies": false, "type": "", "deprecated": false, @@ -30724,9 +30175,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30792,7 +30240,8 @@ }, "x-appwrite": { "method": "updatePhoneVerification", - "weight": 250, + "group": "users", + "weight": 254, "cookies": false, "type": "", "deprecated": false, @@ -30806,9 +30255,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30854,12 +30300,12 @@ }, "\/vcs\/github\/installations\/{installationId}\/providerRepositories": { "get": { - "summary": "List Repositories", + "summary": "List repositories", "operationId": "vcsListRepositories", "tags": [ "vcs" ], - "description": "", + "description": "Get a list of GitHub repositories available through your installation. This endpoint returns repositories with their basic information, detected runtime environments, and latest push dates. You can optionally filter repositories using a search term. Each repository's runtime is automatically detected based on its contents and language statistics. The GitHub installation must be properly configured for this endpoint to work.", "responses": { "200": { "description": "Provider Repositories List", @@ -30874,12 +30320,13 @@ }, "x-appwrite": { "method": "listRepositories", - "weight": 277, + "group": "repositories", + "weight": 281, "cookies": false, "type": "", "deprecated": false, "demo": "vcs\/list-repositories.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/vcs\/list-repositories.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -30888,9 +30335,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30930,7 +30374,7 @@ "tags": [ "vcs" ], - "description": "", + "description": "Create a new GitHub repository through your installation. This endpoint allows you to create either a public or private repository by specifying a name and visibility setting. The repository will be created under your GitHub user account or organization, depending on your installation type. The GitHub installation must be properly configured and have the necessary permissions for repository creation.", "responses": { "200": { "description": "ProviderRepository", @@ -30945,12 +30389,13 @@ }, "x-appwrite": { "method": "createRepository", - "weight": 278, + "group": "repositories", + "weight": 282, "cookies": false, "type": "", "deprecated": false, "demo": "vcs\/create-repository.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/vcs\/create-repository.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -30959,9 +30404,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31017,7 +30459,7 @@ "tags": [ "vcs" ], - "description": "", + "description": "Get detailed information about a specific GitHub repository from your installation. This endpoint returns repository details including its ID, name, visibility status, organization, and latest push date. The GitHub installation must be properly configured and have access to the requested repository for this endpoint to work.", "responses": { "200": { "description": "ProviderRepository", @@ -31032,12 +30474,13 @@ }, "x-appwrite": { "method": "getRepository", - "weight": 279, + "group": "repositories", + "weight": 283, "cookies": false, "type": "", "deprecated": false, "demo": "vcs\/get-repository.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/vcs\/get-repository.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -31046,9 +30489,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31084,12 +30524,12 @@ }, "\/vcs\/github\/installations\/{installationId}\/providerRepositories\/{providerRepositoryId}\/branches": { "get": { - "summary": "List Repository Branches", + "summary": "List repository branches", "operationId": "vcsListRepositoryBranches", "tags": [ "vcs" ], - "description": "", + "description": "Get a list of all branches from a GitHub repository in your installation. This endpoint returns the names of all branches in the repository and their total count. The GitHub installation must be properly configured and have access to the requested repository for this endpoint to work.\n", "responses": { "200": { "description": "Branches List", @@ -31104,12 +30544,13 @@ }, "x-appwrite": { "method": "listRepositoryBranches", - "weight": 280, + "group": "repositories", + "weight": 284, "cookies": false, "type": "", "deprecated": false, "demo": "vcs\/list-repository-branches.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/vcs\/list-repository-branches.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -31118,9 +30559,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31161,7 +30599,7 @@ "tags": [ "vcs" ], - "description": "", + "description": "Get a list of files and directories from a GitHub repository connected to your project. This endpoint returns the contents of a specified repository path, including file names, sizes, and whether each item is a file or directory. The GitHub installation must be properly configured and the repository must be accessible through your installation for this endpoint to work.\n", "responses": { "200": { "description": "VCS Content List", @@ -31176,12 +30614,13 @@ }, "x-appwrite": { "method": "getRepositoryContents", - "weight": 275, + "group": "repositories", + "weight": 279, "cookies": false, "type": "", "deprecated": false, "demo": "vcs\/get-repository-contents.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/vcs\/get-repository-contents.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -31190,9 +30629,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31239,12 +30675,12 @@ }, "\/vcs\/github\/installations\/{installationId}\/providerRepositories\/{providerRepositoryId}\/detection": { "post": { - "summary": "Detect runtime settings from source code", + "summary": "Create runtime settings detection", "operationId": "vcsCreateRepositoryDetection", "tags": [ "vcs" ], - "description": "", + "description": "Analyze a GitHub repository to automatically detect the programming language and runtime environment. This endpoint scans the repository's files and language statistics to determine the appropriate runtime settings for your function. The GitHub installation must be properly configured and the repository must be accessible through your installation for this endpoint to work.", "responses": { "200": { "description": "Detection", @@ -31259,12 +30695,13 @@ }, "x-appwrite": { "method": "createRepositoryDetection", - "weight": 276, + "group": "repositories", + "weight": 280, "cookies": false, "type": "", "deprecated": false, "demo": "vcs\/create-repository-detection.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/vcs\/create-repository-detection.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -31273,9 +30710,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31327,12 +30761,12 @@ }, "\/vcs\/github\/installations\/{installationId}\/repositories\/{repositoryId}": { "patch": { - "summary": "Authorize external deployment", + "summary": "Update external deployment (authorize)", "operationId": "vcsUpdateExternalDeployments", "tags": [ "vcs" ], - "description": "", + "description": "Authorize and create deployments for a GitHub pull request in your project. This endpoint allows external contributions by creating deployments from pull requests, enabling preview environments for code review. The pull request must be open and not previously authorized. The GitHub installation must be properly configured and have access to both the repository and pull request for this endpoint to work.", "responses": { "204": { "description": "No content" @@ -31340,12 +30774,13 @@ }, "x-appwrite": { "method": "updateExternalDeployments", - "weight": 285, + "group": "repositories", + "weight": 289, "cookies": false, "type": "", "deprecated": false, "demo": "vcs\/update-external-deployments.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/vcs\/update-external-deployments.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -31354,9 +30789,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31416,7 +30848,7 @@ "tags": [ "vcs" ], - "description": "", + "description": "List all VCS installations configured for the current project. This endpoint returns a list of installations including their provider, organization, and other configuration details.\n", "responses": { "200": { "description": "Installations List", @@ -31431,7 +30863,8 @@ }, "x-appwrite": { "method": "listInstallations", - "weight": 282, + "group": "installations", + "weight": 286, "cookies": false, "type": "", "deprecated": false, @@ -31445,9 +30878,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31492,7 +30922,7 @@ "tags": [ "vcs" ], - "description": "", + "description": "Get a VCS installation by its unique ID. This endpoint returns the installation's details including its provider, organization, and configuration. ", "responses": { "200": { "description": "Installation", @@ -31507,7 +30937,8 @@ }, "x-appwrite": { "method": "getInstallation", - "weight": 283, + "group": "installations", + "weight": 287, "cookies": false, "type": "", "deprecated": false, @@ -31521,9 +30952,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31547,12 +30975,12 @@ ] }, "delete": { - "summary": "Delete Installation", + "summary": "Delete installation", "operationId": "vcsDeleteInstallation", "tags": [ "vcs" ], - "description": "", + "description": "Delete a VCS installation by its unique ID. This endpoint removes the installation and all its associated repositories from the project.", "responses": { "204": { "description": "No content" @@ -31560,7 +30988,8 @@ }, "x-appwrite": { "method": "deleteInstallation", - "weight": 284, + "group": "installations", + "weight": 288, "cookies": false, "type": "", "deprecated": false, @@ -31574,9 +31003,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31604,85 +31030,67 @@ "tags": [ { "name": "account", - "description": "The Account service allows you to authenticate and manage a user account.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Avatars service aims to help you complete everyday tasks related to your app image, icons, and avatars." }, { "name": "databases", - "description": "The Databases service allows you to create structured collections of documents, query and filter lists of documents", - "x-globalAttributes": [ - "databaseId" - ] + "description": "The Databases 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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Project service allows you to manage all the projects in your Appwrite server." }, { "name": "project", - "description": "The Project service allows you to manage all the projects in your Appwrite server.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Functions Service allows you view, create and manage your Cloud Functions." }, { "name": "proxy", - "description": "The Proxy Service allows you to configure actions for your domains beyond DNS configuration.", - "x-globalAttributes": [] + "description": "The Proxy Service allows you to configure actions for your domains beyond DNS configuration." }, { "name": "graphql", - "description": "The GraphQL API allows you to query and mutate your Appwrite server using GraphQL.", - "x-globalAttributes": [] + "description": "The GraphQL API allows you to query and mutate your Appwrite server using GraphQL." }, { "name": "console", - "description": "The Console service allows you to interact with console relevant informations.", - "x-globalAttributes": [] + "description": "The Console service allows you to interact with console relevant informations." }, { "name": "migrations", - "description": "The Migrations service allows you to migrate third-party data to your Appwrite project.", - "x-globalAttributes": [] + "description": "The Migrations service allows you to migrate third-party data to your Appwrite project." }, { "name": "messaging", - "description": "The Messaging service allows you to send messages to any provider type (SMTP, push notification, SMS, etc.).", - "x-globalAttributes": [] + "description": "The Messaging service allows you to send messages to any provider type (SMTP, push notification, SMS, etc.)." } ], "components": { @@ -32636,30 +32044,6 @@ "migrations" ] }, - "firebaseProjectList": { - "description": "Migrations Firebase 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\/firebaseProject" - }, - "x-example": "" - } - }, - "required": [ - "total", - "projects" - ] - }, "specificationList": { "description": "Specifications List", "type": "object", @@ -32946,6 +32330,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "size": { "type": "integer", "description": "Attribute size.", @@ -32965,6 +32359,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "size" ] }, @@ -33003,6 +32399,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "min": { "type": "integer", "description": "Minimum value to enforce for new documents.", @@ -33030,7 +32436,9 @@ "type", "status", "error", - "required" + "required", + "$createdAt", + "$updatedAt" ] }, "attributeFloat": { @@ -33068,6 +32476,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "min": { "type": "number", "description": "Minimum value to enforce for new documents.", @@ -33095,7 +32513,9 @@ "type", "status", "error", - "required" + "required", + "$createdAt", + "$updatedAt" ] }, "attributeBoolean": { @@ -33133,6 +32553,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "default": { "type": "boolean", "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", @@ -33145,7 +32575,9 @@ "type", "status", "error", - "required" + "required", + "$createdAt", + "$updatedAt" ] }, "attributeEmail": { @@ -33183,6 +32615,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "String format.", @@ -33201,6 +32643,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -33239,6 +32683,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "elements": { "type": "array", "description": "Array of elements in enumerated type.", @@ -33265,6 +32719,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "elements", "format" ] @@ -33304,6 +32760,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "String format.", @@ -33322,6 +32788,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -33360,6 +32828,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "String format.", @@ -33378,6 +32856,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -33416,6 +32896,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "ISO 8601 format.", @@ -33434,6 +32924,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -33472,6 +32964,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "relatedCollection": { "type": "string", "description": "The ID of the related collection.", @@ -33509,6 +33011,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "relatedCollection", "relationType", "twoWay", @@ -33557,6 +33061,16 @@ }, "x-example": [], "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Index creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Index update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" } }, "required": [ @@ -33564,7 +33078,9 @@ "type", "status", "error", - "attributes" + "attributes", + "$createdAt", + "$updatedAt" ] }, "document": { @@ -34716,12 +34232,12 @@ }, "userName": { "type": "string", - "description": "User name.", + "description": "User name. Hide this attribute by toggling membership privacy in the Console.", "x-example": "John Doe" }, "userEmail": { "type": "string", - "description": "User email address.", + "description": "User email address. Hide this attribute by toggling membership privacy in the Console.", "x-example": "john@appwrite.io" }, "teamId": { @@ -34751,7 +34267,7 @@ }, "mfa": { "type": "boolean", - "description": "Multi factor authentication status, true if the user has MFA enabled or false otherwise.", + "description": "Multi factor authentication status, true if the user has MFA enabled or false otherwise. Hide this attribute by toggling membership privacy in the Console.", "x-example": false }, "roles": { @@ -34864,7 +34380,7 @@ }, "schedule": { "type": "string", - "description": "Function execution schedult in CRON format.", + "description": "Function execution schedule in CRON format.", "x-example": "5 4 * * *" }, "timeout": { @@ -34916,7 +34432,7 @@ "specification": { "type": "string", "description": "Machine specification for builds and executions.", - "x-example": "s-0.5vcpu-512mb" + "x-example": "s-1vcpu-512mb" } }, "required": [ @@ -35589,7 +35105,7 @@ "responseBody": { "type": "string", "description": "HTTP response body. This will return empty unless execution is created as synchronous.", - "x-example": "Developers are awesome." + "x-example": "" }, "responseHeaders": { "type": "array", @@ -35832,6 +35348,21 @@ "description": "Whether or not to send session alert emails to users.", "x-example": true }, + "authMembershipsUserName": { + "type": "boolean", + "description": "Whether or not to show user names in the teams membership response.", + "x-example": true + }, + "authMembershipsUserEmail": { + "type": "boolean", + "description": "Whether or not to show user emails in the teams membership response.", + "x-example": true + }, + "authMembershipsMfa": { + "type": "boolean", + "description": "Whether or not to show user MFA status in the teams membership response.", + "x-example": true + }, "oAuthProviders": { "type": "array", "description": "List of Auth Providers.", @@ -35912,6 +35443,17 @@ "description": "SMTP server secure protocol", "x-example": "tls" }, + "pingCount": { + "type": "integer", + "description": "Number of times the ping was received for this project.", + "x-example": 1, + "format": "int32" + }, + "pingedAt": { + "type": "string", + "description": "Last ping datetime in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "authEmailPassword": { "type": "boolean", "description": "Email\/Password auth method status", @@ -36026,6 +35568,9 @@ "authPersonalDataCheck", "authMockNumbers", "authSessionAlerts", + "authMembershipsUserName", + "authMembershipsUserEmail", + "authMembershipsMfa", "oAuthProviders", "platforms", "webhooks", @@ -36039,6 +35584,8 @@ "smtpUsername", "smtpPassword", "smtpSecure", + "pingCount", + "pingedAt", "authEmailPassword", "authUsersAuthMagicURL", "authEmailOtp", @@ -36700,7 +36247,8 @@ "resourceId": { "type": "string", "description": "Resource ID.", - "x-example": "5e5ea5c16897e" + "x-example": "5e5ea5c16897e", + "nullable": true }, "name": { "type": "string", @@ -36712,10 +36260,16 @@ "description": "The value of this metric at the timestamp.", "x-example": 1, "format": "int32" + }, + "estimate": { + "type": "number", + "description": "The estimated value of this metric at the end of the period.", + "x-example": 1, + "format": "double", + "nullable": true } }, "required": [ - "resourceId", "name", "value" ] @@ -36747,6 +36301,24 @@ "x-example": 0, "format": "int32" }, + "storageTotal": { + "type": "integer", + "description": "Total aggregated number of total databases storage in bytes.", + "x-example": 0, + "format": "int32" + }, + "databasesReadsTotal": { + "type": "integer", + "description": "Total number of databases reads.", + "x-example": 0, + "format": "int32" + }, + "databasesWritesTotal": { + "type": "integer", + "description": "Total number of databases writes.", + "x-example": 0, + "format": "int32" + }, "databases": { "type": "array", "description": "Aggregated number of databases per period.", @@ -36770,6 +36342,30 @@ "$ref": "#\/components\/schemas\/metric" }, "x-example": [] + }, + "storage": { + "type": "array", + "description": "An array of the aggregated number of databases storage in bytes per period.", + "items": { + "$ref": "#\/components\/schemas\/metric" + }, + "x-example": [] + }, + "databasesReads": { + "type": "array", + "description": "An array of aggregated number of database reads.", + "items": { + "$ref": "#\/components\/schemas\/metric" + }, + "x-example": [] + }, + "databasesWrites": { + "type": "array", + "description": "An array of aggregated number of database writes.", + "items": { + "$ref": "#\/components\/schemas\/metric" + }, + "x-example": [] } }, "required": [ @@ -36777,9 +36373,15 @@ "databasesTotal", "collectionsTotal", "documentsTotal", + "storageTotal", + "databasesReadsTotal", + "databasesWritesTotal", "databases", "collections", - "documents" + "documents", + "storage", + "databasesReads", + "databasesWrites" ] }, "usageDatabase": { @@ -36803,6 +36405,24 @@ "x-example": 0, "format": "int32" }, + "storageTotal": { + "type": "integer", + "description": "Total aggregated number of total storage used in bytes.", + "x-example": 0, + "format": "int32" + }, + "databaseReadsTotal": { + "type": "integer", + "description": "Total number of databases reads.", + "x-example": 0, + "format": "int32" + }, + "databaseWritesTotal": { + "type": "integer", + "description": "Total number of databases writes.", + "x-example": 0, + "format": "int32" + }, "collections": { "type": "array", "description": "Aggregated number of collections per period.", @@ -36818,14 +36438,44 @@ "$ref": "#\/components\/schemas\/metric" }, "x-example": [] + }, + "storage": { + "type": "array", + "description": "Aggregated storage used in bytes per period.", + "items": { + "$ref": "#\/components\/schemas\/metric" + }, + "x-example": [] + }, + "databaseReads": { + "type": "array", + "description": "An array of aggregated number of database reads.", + "items": { + "$ref": "#\/components\/schemas\/metric" + }, + "x-example": [] + }, + "databaseWrites": { + "type": "array", + "description": "An array of aggregated number of database writes.", + "items": { + "$ref": "#\/components\/schemas\/metric" + }, + "x-example": [] } }, "required": [ "range", "collectionsTotal", "documentsTotal", + "storageTotal", + "databaseReadsTotal", + "databaseWritesTotal", "collections", - "documents" + "documents", + "storage", + "databaseReads", + "databaseWrites" ] }, "usageCollection": { @@ -37002,6 +36652,20 @@ "$ref": "#\/components\/schemas\/metric" }, "x-example": [] + }, + "imageTransformations": { + "type": "array", + "description": "Aggregated number of files transformations per period.", + "items": { + "$ref": "#\/components\/schemas\/metric" + }, + "x-example": [] + }, + "imageTransformationsTotal": { + "type": "integer", + "description": "Total aggregated number of files transformations.", + "x-example": 0, + "format": "int32" } }, "required": [ @@ -37009,7 +36673,9 @@ "filesTotal", "filesStorageTotal", "files", - "storage" + "storage", + "imageTransformations", + "imageTransformationsTotal" ] }, "usageFunctions": { @@ -37366,6 +37032,12 @@ "x-example": 0, "format": "int32" }, + "databasesStorageTotal": { + "type": "integer", + "description": "Total aggregated sum of databases storage size (in bytes).", + "x-example": 0, + "format": "int32" + }, "usersTotal": { "type": "integer", "description": "Total aggregated number of users.", @@ -37414,6 +37086,18 @@ "x-example": 0, "format": "int32" }, + "databasesReadsTotal": { + "type": "integer", + "description": "Total number of databases reads.", + "x-example": 0, + "format": "int32" + }, + "databasesWritesTotal": { + "type": "integer", + "description": "Total number of databases writes.", + "x-example": 0, + "format": "int32" + }, "requests": { "type": "array", "description": "Aggregated number of requests per period.", @@ -37462,6 +37146,14 @@ }, "x-example": [] }, + "databasesStorageBreakdown": { + "type": "array", + "description": "An array of the aggregated breakdown of storage usage by databases.", + "items": { + "$ref": "#\/components\/schemas\/metricBreakdown" + }, + "x-example": [] + }, "executionsMbSecondsBreakdown": { "type": "array", "description": "Aggregated breakdown in totals of execution mbSeconds by functions.", @@ -37485,12 +37177,63 @@ "$ref": "#\/components\/schemas\/metricBreakdown" }, "x-example": [] + }, + "authPhoneTotal": { + "type": "integer", + "description": "Total aggregated number of phone auth.", + "x-example": 0, + "format": "int32" + }, + "authPhoneEstimate": { + "type": "number", + "description": "Estimated total aggregated cost of phone auth.", + "x-example": 0, + "format": "double" + }, + "authPhoneCountryBreakdown": { + "type": "array", + "description": "Aggregated breakdown in totals of phone auth by country.", + "items": { + "$ref": "#\/components\/schemas\/metricBreakdown" + }, + "x-example": [] + }, + "databasesReads": { + "type": "array", + "description": "An array of aggregated number of database reads.", + "items": { + "$ref": "#\/components\/schemas\/metric" + }, + "x-example": [] + }, + "databasesWrites": { + "type": "array", + "description": "An array of aggregated number of database writes.", + "items": { + "$ref": "#\/components\/schemas\/metric" + }, + "x-example": [] + }, + "imageTransformations": { + "type": "array", + "description": "An array of aggregated number of image transformations.", + "items": { + "$ref": "#\/components\/schemas\/metric" + }, + "x-example": [] + }, + "imageTransformationsTotal": { + "type": "integer", + "description": "Total aggregated number of image transformations.", + "x-example": 0, + "format": "int32" } }, "required": [ "executionsTotal", "documentsTotal", "databasesTotal", + "databasesStorageTotal", "usersTotal", "filesStorageTotal", "functionsStorageTotal", @@ -37499,15 +37242,25 @@ "bucketsTotal", "executionsMbSecondsTotal", "buildsMbSecondsTotal", + "databasesReadsTotal", + "databasesWritesTotal", "requests", "network", "users", "executions", "executionsBreakdown", "bucketsBreakdown", + "databasesStorageBreakdown", "executionsMbSecondsBreakdown", "buildsMbSecondsBreakdown", - "functionsStorageBreakdown" + "functionsStorageBreakdown", + "authPhoneTotal", + "authPhoneEstimate", + "authPhoneCountryBreakdown", + "databasesReads", + "databasesWrites", + "imageTransformations", + "imageTransformationsTotal" ] }, "headers": { @@ -37554,7 +37307,7 @@ "slug": { "type": "string", "description": "Size slug.", - "x-example": "s-0.5vcpu-512mb" + "x-example": "s-1vcpu-512mb" } }, "required": [ @@ -38192,7 +37945,7 @@ "name": { "type": "string", "description": "Target Name.", - "x-example": "Aegon apple token" + "x-example": "Apple iPhone 12" }, "userId": { "type": "string", @@ -38214,6 +37967,11 @@ "type": "string", "description": "The target identifier.", "x-example": "token" + }, + "expired": { + "type": "boolean", + "description": "Is the target expired.", + "x-example": false } }, "required": [ @@ -38223,7 +37981,8 @@ "name", "userId", "providerType", - "identifier" + "identifier", + "expired" ] }, "migration": { @@ -38237,7 +37996,7 @@ }, "$createdAt": { "type": "string", - "description": "Variable creation date in ISO 8601 format.", + "description": "Migration creation date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" }, "$updatedAt": { @@ -38260,9 +38019,14 @@ "description": "A string containing the type of source of the migration.", "x-example": "Appwrite" }, + "destination": { + "type": "string", + "description": "A string containing the type of destination of the migration.", + "x-example": "Appwrite" + }, "resources": { "type": "array", - "description": "Resources to migration.", + "description": "Resources to migrate.", "items": { "type": "string" }, @@ -38296,6 +38060,7 @@ "status", "stage", "source", + "destination", "resources", "statusCounters", "resourceData", @@ -38371,26 +38136,6 @@ "size", "version" ] - }, - "firebaseProject": { - "description": "MigrationFirebaseProject", - "type": "object", - "properties": { - "projectId": { - "type": "string", - "description": "Project ID.", - "x-example": "my-project" - }, - "displayName": { - "type": "string", - "description": "Project display name.", - "x-example": "My Project" - } - }, - "required": [ - "projectId", - "displayName" - ] } }, "securitySchemes": { diff --git a/app/config/specs/open-api3-latest-server.json b/app/config/specs/open-api3-latest-server.json index ef41688ca83..e3d2255c8d8 100644 --- a/app/config/specs/open-api3-latest-server.json +++ b/app/config/specs/open-api3-latest-server.json @@ -1,7 +1,7 @@ { "openapi": "3.0.0", "info": { - "version": "1.6.0", + "version": "1.6.2", "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", @@ -18,6 +18,9 @@ "servers": [ { "url": "https:\/\/cloud.appwrite.io\/v1" + }, + { + "url": "https:\/\/.cloud.appwrite.io\/v1" } ], "paths": { @@ -43,7 +46,8 @@ }, "x-appwrite": { "method": "get", - "weight": 8, + "group": "account", + "weight": 9, "cookies": false, "type": "", "deprecated": false, @@ -58,9 +62,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -95,7 +96,8 @@ }, "x-appwrite": { "method": "create", - "weight": 7, + "group": "account", + "weight": 8, "cookies": false, "type": "", "deprecated": false, @@ -110,9 +112,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -182,7 +181,8 @@ }, "x-appwrite": { "method": "updateEmail", - "weight": 33, + "group": "account", + "weight": 34, "cookies": false, "type": "", "deprecated": false, @@ -197,9 +197,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -241,7 +238,7 @@ }, "\/account\/identities": { "get": { - "summary": "List Identities", + "summary": "List identities", "operationId": "accountListIdentities", "tags": [ "account" @@ -261,7 +258,8 @@ }, "x-appwrite": { "method": "listIdentities", - "weight": 56, + "group": "identities", + "weight": 57, "cookies": false, "type": "", "deprecated": false, @@ -276,9 +274,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/identities", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -323,7 +318,8 @@ }, "x-appwrite": { "method": "deleteIdentity", - "weight": 57, + "group": "identities", + "weight": 58, "cookies": false, "type": "", "deprecated": false, @@ -338,9 +334,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -389,7 +382,8 @@ }, "x-appwrite": { "method": "createJWT", - "weight": 28, + "group": "tokens", + "weight": 29, "cookies": false, "type": "", "deprecated": false, @@ -404,9 +398,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -440,7 +431,8 @@ }, "x-appwrite": { "method": "listLogs", - "weight": 30, + "group": "logs", + "weight": 31, "cookies": false, "type": "", "deprecated": false, @@ -455,9 +447,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -509,7 +498,8 @@ }, "x-appwrite": { "method": "updateMFA", - "weight": 43, + "group": "mfa", + "weight": 44, "cookies": false, "type": "", "deprecated": false, @@ -524,9 +514,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -562,7 +549,7 @@ }, "\/account\/mfa\/authenticators\/{type}": { "post": { - "summary": "Create Authenticator", + "summary": "Create authenticator", "operationId": "accountCreateMfaAuthenticator", "tags": [ "account" @@ -582,7 +569,8 @@ }, "x-appwrite": { "method": "createMfaAuthenticator", - "weight": 45, + "group": "mfa", + "weight": 46, "cookies": false, "type": "", "deprecated": false, @@ -597,9 +585,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -631,7 +616,7 @@ ] }, "put": { - "summary": "Verify Authenticator", + "summary": "Update authenticator (confirmation)", "operationId": "accountUpdateMfaAuthenticator", "tags": [ "account" @@ -651,7 +636,8 @@ }, "x-appwrite": { "method": "updateMfaAuthenticator", - "weight": 46, + "group": "mfa", + "weight": 47, "cookies": false, "type": "", "deprecated": false, @@ -666,9 +652,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -719,7 +702,7 @@ } }, "delete": { - "summary": "Delete Authenticator", + "summary": "Delete authenticator", "operationId": "accountDeleteMfaAuthenticator", "tags": [ "account" @@ -732,7 +715,8 @@ }, "x-appwrite": { "method": "deleteMfaAuthenticator", - "weight": 50, + "group": "mfa", + "weight": 51, "cookies": false, "type": "", "deprecated": false, @@ -747,9 +731,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -783,7 +764,7 @@ }, "\/account\/mfa\/challenge": { "post": { - "summary": "Create MFA Challenge", + "summary": "Create MFA challenge", "operationId": "accountCreateMfaChallenge", "tags": [ "account" @@ -803,7 +784,8 @@ }, "x-appwrite": { "method": "createMfaChallenge", - "weight": 51, + "group": "mfa", + "weight": 52, "cookies": false, "type": "", "deprecated": false, @@ -818,9 +800,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -859,17 +838,17 @@ } }, "put": { - "summary": "Create MFA Challenge (confirmation)", + "summary": "Update MFA challenge (confirmation)", "operationId": "accountUpdateMfaChallenge", "tags": [ "account" ], "description": "Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", "responses": { - "204": { - "description": "No content", + "200": { + "description": "Session", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/session" } @@ -879,7 +858,8 @@ }, "x-appwrite": { "method": "updateMfaChallenge", - "weight": 52, + "group": "mfa", + "weight": 53, "cookies": false, "type": "", "deprecated": false, @@ -894,9 +874,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -938,7 +915,7 @@ }, "\/account\/mfa\/factors": { "get": { - "summary": "List Factors", + "summary": "List factors", "operationId": "accountListMfaFactors", "tags": [ "account" @@ -958,7 +935,8 @@ }, "x-appwrite": { "method": "listMfaFactors", - "weight": 44, + "group": "mfa", + "weight": 45, "cookies": false, "type": "", "deprecated": false, @@ -973,9 +951,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -992,7 +967,7 @@ }, "\/account\/mfa\/recovery-codes": { "get": { - "summary": "Get MFA Recovery Codes", + "summary": "List MFA recovery codes", "operationId": "accountGetMfaRecoveryCodes", "tags": [ "account" @@ -1012,7 +987,8 @@ }, "x-appwrite": { "method": "getMfaRecoveryCodes", - "weight": 49, + "group": "mfa", + "weight": 50, "cookies": false, "type": "", "deprecated": false, @@ -1027,9 +1003,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1044,7 +1017,7 @@ ] }, "post": { - "summary": "Create MFA Recovery Codes", + "summary": "Create MFA recovery codes", "operationId": "accountCreateMfaRecoveryCodes", "tags": [ "account" @@ -1064,7 +1037,8 @@ }, "x-appwrite": { "method": "createMfaRecoveryCodes", - "weight": 47, + "group": "mfa", + "weight": 48, "cookies": false, "type": "", "deprecated": false, @@ -1079,9 +1053,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1096,7 +1067,7 @@ ] }, "patch": { - "summary": "Regenerate MFA Recovery Codes", + "summary": "Update MFA recovery codes (regenerate)", "operationId": "accountUpdateMfaRecoveryCodes", "tags": [ "account" @@ -1116,7 +1087,8 @@ }, "x-appwrite": { "method": "updateMfaRecoveryCodes", - "weight": 48, + "group": "mfa", + "weight": 49, "cookies": false, "type": "", "deprecated": false, @@ -1131,9 +1103,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1170,7 +1139,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 31, + "group": "account", + "weight": 32, "cookies": false, "type": "", "deprecated": false, @@ -1185,9 +1155,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1243,7 +1210,8 @@ }, "x-appwrite": { "method": "updatePassword", - "weight": 32, + "group": "account", + "weight": 33, "cookies": false, "type": "", "deprecated": false, @@ -1258,9 +1226,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1321,7 +1286,8 @@ }, "x-appwrite": { "method": "updatePhone", - "weight": 34, + "group": "account", + "weight": 35, "cookies": false, "type": "", "deprecated": false, @@ -1336,9 +1302,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1400,7 +1363,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 29, + "group": "account", + "weight": 30, "cookies": false, "type": "", "deprecated": false, @@ -1415,9 +1379,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/prefs", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1452,7 +1413,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 35, + "group": "account", + "weight": 36, "cookies": false, "type": "", "deprecated": false, @@ -1467,9 +1429,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/prefs", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1525,7 +1484,8 @@ }, "x-appwrite": { "method": "createRecovery", - "weight": 37, + "group": "recovery", + "weight": 38, "cookies": false, "type": "", "deprecated": false, @@ -1543,9 +1503,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1585,7 +1542,7 @@ } }, "put": { - "summary": "Create password recovery (confirmation)", + "summary": "Update password recovery (confirmation)", "operationId": "accountUpdateRecovery", "tags": [ "account" @@ -1605,7 +1562,8 @@ }, "x-appwrite": { "method": "updateRecovery", - "weight": 38, + "group": "recovery", + "weight": 39, "cookies": false, "type": "", "deprecated": false, @@ -1620,9 +1578,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1690,7 +1645,8 @@ }, "x-appwrite": { "method": "listSessions", - "weight": 10, + "group": "sessions", + "weight": 11, "cookies": false, "type": "", "deprecated": false, @@ -1705,9 +1661,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/sessions", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1735,7 +1688,8 @@ }, "x-appwrite": { "method": "deleteSessions", - "weight": 11, + "group": "sessions", + "weight": 12, "cookies": false, "type": "", "deprecated": false, @@ -1750,9 +1704,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1789,7 +1740,8 @@ }, "x-appwrite": { "method": "createAnonymousSession", - "weight": 16, + "group": "sessions", + "weight": 17, "cookies": false, "type": "", "deprecated": false, @@ -1804,9 +1756,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1840,7 +1789,8 @@ }, "x-appwrite": { "method": "createEmailPasswordSession", - "weight": 15, + "group": "sessions", + "weight": 16, "cookies": false, "type": "", "deprecated": false, @@ -1855,9 +1805,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1916,7 +1863,8 @@ }, "x-appwrite": { "method": "updateMagicURLSession", - "weight": 25, + "group": "sessions", + "weight": 26, "cookies": false, "type": "", "deprecated": true, @@ -1931,9 +1879,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1992,7 +1937,8 @@ }, "x-appwrite": { "method": "updatePhoneSession", - "weight": 26, + "group": "sessions", + "weight": 27, "cookies": false, "type": "", "deprecated": true, @@ -2007,9 +1953,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2068,7 +2011,8 @@ }, "x-appwrite": { "method": "createSession", - "weight": 17, + "group": "sessions", + "weight": 18, "cookies": false, "type": "", "deprecated": false, @@ -2083,9 +2027,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2144,7 +2085,8 @@ }, "x-appwrite": { "method": "getSession", - "weight": 12, + "group": "sessions", + "weight": 13, "cookies": false, "type": "", "deprecated": false, @@ -2159,9 +2101,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/sessions", - "offline-key": "{sessionId}", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -2208,7 +2147,8 @@ }, "x-appwrite": { "method": "updateSession", - "weight": 14, + "group": "sessions", + "weight": 15, "cookies": false, "type": "", "deprecated": false, @@ -2223,9 +2163,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -2265,7 +2202,8 @@ }, "x-appwrite": { "method": "deleteSession", - "weight": 13, + "group": "sessions", + "weight": 14, "cookies": false, "type": "", "deprecated": false, @@ -2280,9 +2218,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -2331,7 +2266,8 @@ }, "x-appwrite": { "method": "updateStatus", - "weight": 36, + "group": "account", + "weight": 37, "cookies": false, "type": "", "deprecated": false, @@ -2346,9 +2282,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -2385,7 +2318,8 @@ }, "x-appwrite": { "method": "createEmailToken", - "weight": 24, + "group": "tokens", + "weight": 25, "cookies": false, "type": "", "deprecated": false, @@ -2393,16 +2327,16 @@ "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-email.md", "rate-limit": 10, "rate-time": 3600, - "rate-key": "url:{url},email:{param-email}", + "rate-key": [ + "url:{url},email:{param-email}", + "url:{url},ip:{ip}" + ], "scope": "sessions.write", "platforms": [ "server", "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2451,7 +2385,7 @@ "tags": [ "account" ], - "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. 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 [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) 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.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", + "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. 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 [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) endpoint to complete the login process. The link sent to the user's email address is valid for 1 hour.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", "responses": { "201": { "description": "Token", @@ -2466,7 +2400,8 @@ }, "x-appwrite": { "method": "createMagicURLToken", - "weight": 23, + "group": "tokens", + "weight": 24, "cookies": false, "type": "", "deprecated": false, @@ -2484,9 +2419,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2548,7 +2480,8 @@ }, "x-appwrite": { "method": "createOAuth2Token", - "weight": 22, + "group": "tokens", + "weight": 23, "cookies": false, "type": "webAuth", "deprecated": false, @@ -2563,9 +2496,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2578,7 +2508,7 @@ "parameters": [ { "name": "provider", - "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", + "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", "required": true, "schema": { "type": "string", @@ -2598,6 +2528,7 @@ "dropbox", "etsy", "facebook", + "figma", "github", "gitlab", "google", @@ -2691,7 +2622,8 @@ }, "x-appwrite": { "method": "createPhoneToken", - "weight": 27, + "group": "tokens", + "weight": 28, "cookies": false, "type": "", "deprecated": false, @@ -2709,9 +2641,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2770,7 +2699,8 @@ }, "x-appwrite": { "method": "createVerification", - "weight": 39, + "group": "verification", + "weight": 40, "cookies": false, "type": "", "deprecated": false, @@ -2785,9 +2715,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -2821,7 +2748,7 @@ } }, "put": { - "summary": "Create email verification (confirmation)", + "summary": "Update email verification (confirmation)", "operationId": "accountUpdateVerification", "tags": [ "account" @@ -2841,7 +2768,8 @@ }, "x-appwrite": { "method": "updateVerification", - "weight": 40, + "group": "verification", + "weight": 41, "cookies": false, "type": "", "deprecated": false, @@ -2856,9 +2784,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -2920,7 +2845,8 @@ }, "x-appwrite": { "method": "createPhoneVerification", - "weight": 41, + "group": "verification", + "weight": 42, "cookies": false, "type": "", "deprecated": false, @@ -2938,9 +2864,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -2975,7 +2898,8 @@ }, "x-appwrite": { "method": "updatePhoneVerification", - "weight": 42, + "group": "verification", + "weight": 43, "cookies": false, "type": "", "deprecated": false, @@ -2990,9 +2914,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -3047,7 +2968,8 @@ }, "x-appwrite": { "method": "getBrowser", - "weight": 59, + "group": null, + "weight": 60, "cookies": false, "type": "location", "deprecated": false, @@ -3063,9 +2985,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -3177,7 +3096,8 @@ }, "x-appwrite": { "method": "getCreditCard", - "weight": 58, + "group": null, + "weight": 59, "cookies": false, "type": "location", "deprecated": false, @@ -3193,9 +3113,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -3212,7 +3129,7 @@ "parameters": [ { "name": "code", - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro.", + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", "required": true, "schema": { "type": "string", @@ -3233,7 +3150,8 @@ "union-china-pay", "visa", "mir", - "maestro" + "maestro", + "rupay" ], "x-enum-name": "CreditCard", "x-enum-keys": [ @@ -3252,7 +3170,8 @@ "Union China Pay", "Visa", "MIR", - "Maestro" + "Maestro", + "Rupay" ] }, "in": "path" @@ -3311,7 +3230,8 @@ }, "x-appwrite": { "method": "getFavicon", - "weight": 62, + "group": null, + "weight": 63, "cookies": false, "type": "location", "deprecated": false, @@ -3327,9 +3247,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -3373,7 +3290,8 @@ }, "x-appwrite": { "method": "getFlag", - "weight": 60, + "group": null, + "weight": 61, "cookies": false, "type": "location", "deprecated": false, @@ -3389,9 +3307,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -3865,7 +3780,8 @@ }, "x-appwrite": { "method": "getImage", - "weight": 61, + "group": null, + "weight": 62, "cookies": false, "type": "location", "deprecated": false, @@ -3881,9 +3797,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -3951,7 +3864,8 @@ }, "x-appwrite": { "method": "getInitials", - "weight": 64, + "group": null, + "weight": 65, "cookies": false, "type": "location", "deprecated": false, @@ -3967,9 +3881,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -4047,7 +3958,8 @@ }, "x-appwrite": { "method": "getQR", - "weight": 63, + "group": null, + "weight": 64, "cookies": false, "type": "location", "deprecated": false, @@ -4063,9 +3975,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -4150,7 +4059,8 @@ }, "x-appwrite": { "method": "list", - "weight": 69, + "group": "databases", + "weight": 70, "cookies": false, "type": "", "deprecated": false, @@ -4164,9 +4074,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4226,7 +4133,8 @@ }, "x-appwrite": { "method": "create", - "weight": 68, + "group": "databases", + "weight": 69, "cookies": false, "type": "", "deprecated": false, @@ -4240,9 +4148,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4308,7 +4213,8 @@ }, "x-appwrite": { "method": "get", - "weight": 70, + "group": "databases", + "weight": 71, "cookies": false, "type": "", "deprecated": false, @@ -4322,9 +4228,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4370,7 +4273,8 @@ }, "x-appwrite": { "method": "update", - "weight": 72, + "group": "databases", + "weight": 73, "cookies": false, "type": "", "deprecated": false, @@ -4384,9 +4288,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4449,7 +4350,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 73, + "group": "databases", + "weight": 74, "cookies": false, "type": "", "deprecated": false, @@ -4463,9 +4365,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4513,7 +4412,8 @@ }, "x-appwrite": { "method": "listCollections", - "weight": 75, + "group": "collections", + "weight": 76, "cookies": false, "type": "", "deprecated": false, @@ -4527,9 +4427,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4599,7 +4496,8 @@ }, "x-appwrite": { "method": "createCollection", - "weight": 74, + "group": "collections", + "weight": 75, "cookies": false, "type": "", "deprecated": false, @@ -4613,9 +4511,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4706,7 +4601,8 @@ }, "x-appwrite": { "method": "getCollection", - "weight": 76, + "group": "collections", + "weight": 77, "cookies": false, "type": "", "deprecated": false, @@ -4720,9 +4616,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4778,7 +4671,8 @@ }, "x-appwrite": { "method": "updateCollection", - "weight": 78, + "group": "collections", + "weight": 79, "cookies": false, "type": "", "deprecated": false, @@ -4792,9 +4686,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4880,7 +4771,8 @@ }, "x-appwrite": { "method": "deleteCollection", - "weight": 79, + "group": "collections", + "weight": 80, "cookies": false, "type": "", "deprecated": false, @@ -4894,9 +4786,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4954,7 +4843,8 @@ }, "x-appwrite": { "method": "listAttributes", - "weight": 90, + "group": "attributes", + "weight": 91, "cookies": false, "type": "", "deprecated": false, @@ -4968,9 +4858,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5041,7 +4928,8 @@ }, "x-appwrite": { "method": "createBooleanAttribute", - "weight": 87, + "group": "attributes", + "weight": 88, "cookies": false, "type": "", "deprecated": false, @@ -5055,9 +4943,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5140,7 +5025,7 @@ "200": { "description": "AttributeBoolean", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeBoolean" } @@ -5150,7 +5035,8 @@ }, "x-appwrite": { "method": "updateBooleanAttribute", - "weight": 99, + "group": "attributes", + "weight": 100, "cookies": false, "type": "", "deprecated": false, @@ -5164,9 +5050,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5264,7 +5147,8 @@ }, "x-appwrite": { "method": "createDatetimeAttribute", - "weight": 88, + "group": "attributes", + "weight": 89, "cookies": false, "type": "", "deprecated": false, @@ -5278,9 +5162,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5363,7 +5244,7 @@ "200": { "description": "AttributeDatetime", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeDatetime" } @@ -5373,7 +5254,8 @@ }, "x-appwrite": { "method": "updateDatetimeAttribute", - "weight": 100, + "group": "attributes", + "weight": 101, "cookies": false, "type": "", "deprecated": false, @@ -5387,9 +5269,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5487,7 +5366,8 @@ }, "x-appwrite": { "method": "createEmailAttribute", - "weight": 81, + "group": "attributes", + "weight": 82, "cookies": false, "type": "", "deprecated": false, @@ -5501,9 +5381,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5586,7 +5463,7 @@ "200": { "description": "AttributeEmail", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeEmail" } @@ -5596,7 +5473,8 @@ }, "x-appwrite": { "method": "updateEmailAttribute", - "weight": 93, + "group": "attributes", + "weight": 94, "cookies": false, "type": "", "deprecated": false, @@ -5610,9 +5488,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5710,7 +5585,8 @@ }, "x-appwrite": { "method": "createEnumAttribute", - "weight": 82, + "group": "attributes", + "weight": 83, "cookies": false, "type": "", "deprecated": false, @@ -5724,9 +5600,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5818,7 +5691,7 @@ "200": { "description": "AttributeEnum", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeEnum" } @@ -5828,7 +5701,8 @@ }, "x-appwrite": { "method": "updateEnumAttribute", - "weight": 94, + "group": "attributes", + "weight": 95, "cookies": false, "type": "", "deprecated": false, @@ -5842,9 +5716,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5951,7 +5822,8 @@ }, "x-appwrite": { "method": "createFloatAttribute", - "weight": 86, + "group": "attributes", + "weight": 87, "cookies": false, "type": "", "deprecated": false, @@ -5965,9 +5837,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6060,7 +5929,7 @@ "200": { "description": "AttributeFloat", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeFloat" } @@ -6070,7 +5939,8 @@ }, "x-appwrite": { "method": "updateFloatAttribute", - "weight": 98, + "group": "attributes", + "weight": 99, "cookies": false, "type": "", "deprecated": false, @@ -6084,9 +5954,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6164,8 +6031,6 @@ }, "required": [ "required", - "min", - "max", "default" ] } @@ -6196,7 +6061,8 @@ }, "x-appwrite": { "method": "createIntegerAttribute", - "weight": 85, + "group": "attributes", + "weight": 86, "cookies": false, "type": "", "deprecated": false, @@ -6210,9 +6076,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6305,7 +6168,7 @@ "200": { "description": "AttributeInteger", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeInteger" } @@ -6315,7 +6178,8 @@ }, "x-appwrite": { "method": "updateIntegerAttribute", - "weight": 97, + "group": "attributes", + "weight": 98, "cookies": false, "type": "", "deprecated": false, @@ -6329,9 +6193,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6409,8 +6270,6 @@ }, "required": [ "required", - "min", - "max", "default" ] } @@ -6441,7 +6300,8 @@ }, "x-appwrite": { "method": "createIpAttribute", - "weight": 83, + "group": "attributes", + "weight": 84, "cookies": false, "type": "", "deprecated": false, @@ -6455,9 +6315,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6540,7 +6397,7 @@ "200": { "description": "AttributeIP", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeIp" } @@ -6550,7 +6407,8 @@ }, "x-appwrite": { "method": "updateIpAttribute", - "weight": 95, + "group": "attributes", + "weight": 96, "cookies": false, "type": "", "deprecated": false, @@ -6564,9 +6422,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6664,7 +6519,8 @@ }, "x-appwrite": { "method": "createRelationshipAttribute", - "weight": 89, + "group": "attributes", + "weight": 90, "cookies": false, "type": "", "deprecated": false, @@ -6678,9 +6534,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6798,7 +6651,8 @@ }, "x-appwrite": { "method": "createStringAttribute", - "weight": 80, + "group": "attributes", + "weight": 81, "cookies": false, "type": "", "deprecated": false, @@ -6812,9 +6666,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6908,7 +6759,7 @@ "200": { "description": "AttributeString", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeString" } @@ -6918,7 +6769,8 @@ }, "x-appwrite": { "method": "updateStringAttribute", - "weight": 92, + "group": "attributes", + "weight": 93, "cookies": false, "type": "", "deprecated": false, @@ -6932,9 +6784,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6997,7 +6846,7 @@ "size": { "type": "integer", "description": "Maximum size of the string attribute.", - "x-example": null + "x-example": 1 }, "newKey": { "type": "string", @@ -7037,7 +6886,8 @@ }, "x-appwrite": { "method": "createUrlAttribute", - "weight": 84, + "group": "attributes", + "weight": 85, "cookies": false, "type": "", "deprecated": false, @@ -7051,9 +6901,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -7136,7 +6983,7 @@ "200": { "description": "AttributeURL", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeUrl" } @@ -7146,7 +6993,8 @@ }, "x-appwrite": { "method": "updateUrlAttribute", - "weight": 96, + "group": "attributes", + "weight": 97, "cookies": false, "type": "", "deprecated": false, @@ -7160,9 +7008,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -7291,7 +7136,8 @@ }, "x-appwrite": { "method": "getAttribute", - "weight": 91, + "group": "attributes", + "weight": 92, "cookies": false, "type": "", "deprecated": false, @@ -7305,9 +7151,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -7365,7 +7208,8 @@ }, "x-appwrite": { "method": "deleteAttribute", - "weight": 102, + "group": "attributes", + "weight": 103, "cookies": false, "type": "", "deprecated": false, @@ -7379,9 +7223,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -7438,7 +7279,7 @@ "200": { "description": "AttributeRelationship", "content": { - "": { + "application\/json": { "schema": { "$ref": "#\/components\/schemas\/attributeRelationship" } @@ -7448,7 +7289,8 @@ }, "x-appwrite": { "method": "updateRelationshipAttribute", - "weight": 101, + "group": "attributes", + "weight": 102, "cookies": false, "type": "", "deprecated": false, @@ -7462,9 +7304,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -7559,7 +7398,8 @@ }, "x-appwrite": { "method": "listDocuments", - "weight": 108, + "group": "documents", + "weight": 109, "cookies": false, "type": "", "deprecated": false, @@ -7575,9 +7415,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -7648,7 +7485,8 @@ }, "x-appwrite": { "method": "createDocument", - "weight": 107, + "group": "documents", + "weight": 108, "cookies": false, "type": "", "deprecated": false, @@ -7664,9 +7502,31 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", + "methods": [ + { + "name": "createDocument", + "parameters": [ + "databaseId", + "collectionId", + "documentId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "collectionId", + "documentId", + "data" + ], + "responses": [ + { + "code": 201, + "model": "#\/components\/schemas\/document" + } + ], + "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + } + ], "auth": { "Project": [], "Session": [] @@ -7725,12 +7585,288 @@ "items": { "type": "string" } + }, + "documents": { + "type": "array", + "description": "Array of documents data as JSON objects.", + "x-example": null, + "items": { + "type": "object" + } } - }, - "required": [ - "documentId", - "data" - ] + } + } + } + } + } + }, + "put": { + "summary": "Create or update documents", + "operationId": "databasesUpsertDocuments", + "tags": [ + "databases" + ], + "description": "Create or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.\n", + "responses": { + "200": { + "description": "Documents List", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/documentList" + } + } + } + } + }, + "x-appwrite": { + "method": "upsertDocuments", + "group": "documents", + "weight": 114, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/upsert-documents.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-documents.md", + "rate-limit": 120, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "documents": { + "type": "array", + "description": "Array of document data as JSON objects. May contain partial documents.", + "x-example": null, + "items": { + "type": "object" + } + } + } + } + } + } + } + }, + "patch": { + "summary": "Update documents", + "operationId": "databasesUpdateDocuments", + "tags": [ + "databases" + ], + "description": "Update all documents that match your queries, if no queries are submitted then all documents are updated. You can pass only specific fields to be updated.", + "responses": { + "200": { + "description": "Documents List", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/documentList" + } + } + } + } + }, + "x-appwrite": { + "method": "updateDocuments", + "group": "documents", + "weight": 113, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/update-documents.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-documents.md", + "rate-limit": 120, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "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": "{}" + }, + "queries": { + "type": "array", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Maximum of 100 queries are allowed, each 4096 characters long.", + "x-example": null, + "items": { + "type": "string" + } + } + } + } + } + } + } + }, + "delete": { + "summary": "Delete documents", + "operationId": "databasesDeleteDocuments", + "tags": [ + "databases" + ], + "description": "Bulk delete documents using queries, if no queries are passed then all documents are deleted.", + "responses": { + "200": { + "description": "Documents List", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/documentList" + } + } + } + } + }, + "x-appwrite": { + "method": "deleteDocuments", + "group": "documents", + "weight": 116, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/delete-documents.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-documents.md", + "rate-limit": 60, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "queries": { + "type": "array", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Maximum of 100 queries are allowed, each 4096 characters long.", + "x-example": null, + "items": { + "type": "string" + } + } + } } } } @@ -7759,7 +7895,8 @@ }, "x-appwrite": { "method": "getDocument", - "weight": 109, + "group": "documents", + "weight": 110, "cookies": false, "type": "", "deprecated": false, @@ -7775,9 +7912,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -7858,7 +7992,8 @@ }, "x-appwrite": { "method": "updateDocument", - "weight": 111, + "group": "documents", + "weight": 112, "cookies": false, "type": "", "deprecated": false, @@ -7874,9 +8009,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -7961,7 +8093,8 @@ }, "x-appwrite": { "method": "deleteDocument", - "weight": 112, + "group": "documents", + "weight": 115, "cookies": false, "type": "", "deprecated": false, @@ -7977,9 +8110,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -8049,7 +8179,8 @@ }, "x-appwrite": { "method": "listIndexes", - "weight": 104, + "group": "indexes", + "weight": 105, "cookies": false, "type": "", "deprecated": false, @@ -8063,9 +8194,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8134,7 +8262,8 @@ }, "x-appwrite": { "method": "createIndex", - "weight": 103, + "group": "collections", + "weight": 104, "cookies": false, "type": "", "deprecated": false, @@ -8148,9 +8277,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8257,7 +8383,8 @@ }, "x-appwrite": { "method": "getIndex", - "weight": 105, + "group": "indexes", + "weight": 106, "cookies": false, "type": "", "deprecated": false, @@ -8271,9 +8398,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8331,7 +8455,8 @@ }, "x-appwrite": { "method": "deleteIndex", - "weight": 106, + "group": "indexes", + "weight": 107, "cookies": false, "type": "", "deprecated": false, @@ -8345,9 +8470,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8414,7 +8536,8 @@ }, "x-appwrite": { "method": "list", - "weight": 287, + "group": "functions", + "weight": 291, "cookies": false, "type": "", "deprecated": false, @@ -8428,9 +8551,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8490,7 +8610,8 @@ }, "x-appwrite": { "method": "create", - "weight": 286, + "group": "functions", + "weight": 290, "cookies": false, "type": "", "deprecated": false, @@ -8504,9 +8625,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8545,6 +8663,7 @@ "node-19.0", "node-20.0", "node-21.0", + "node-22", "php-8.0", "php-8.1", "php-8.2", @@ -8563,6 +8682,8 @@ "deno-1.24", "deno-1.35", "deno-1.40", + "deno-1.46", + "deno-2.0", "dart-2.15", "dart-2.16", "dart-2.17", @@ -8570,24 +8691,31 @@ "dart-3.0", "dart-3.1", "dart-3.3", - "dotnet-3.1", + "dart-3.5", "dotnet-6.0", "dotnet-7.0", + "dotnet-8.0", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", + "java-22", "swift-5.5", "swift-5.8", "swift-5.9", + "swift-5.10", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", + "kotlin-2.0", "cpp-17", "cpp-20", "bun-1.0", - "go-1.23" + "bun-1.1", + "go-1.23", + "static-1", + "flutter-3.24" ], "x-enum-name": null, "x-enum-keys": [] @@ -8730,7 +8858,8 @@ }, "x-appwrite": { "method": "listRuntimes", - "weight": 288, + "group": "runtimes", + "weight": 292, "cookies": false, "type": "", "deprecated": false, @@ -8744,9 +8873,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8782,7 +8908,8 @@ }, "x-appwrite": { "method": "listSpecifications", - "weight": 289, + "group": "runtimes", + "weight": 293, "cookies": false, "type": "", "deprecated": false, @@ -8797,9 +8924,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8835,7 +8959,8 @@ }, "x-appwrite": { "method": "get", - "weight": 290, + "group": "functions", + "weight": 294, "cookies": false, "type": "", "deprecated": false, @@ -8849,9 +8974,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8897,7 +9019,8 @@ }, "x-appwrite": { "method": "update", - "weight": 293, + "group": "functions", + "weight": 297, "cookies": false, "type": "", "deprecated": false, @@ -8911,9 +9034,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8959,6 +9079,7 @@ "node-19.0", "node-20.0", "node-21.0", + "node-22", "php-8.0", "php-8.1", "php-8.2", @@ -8977,6 +9098,8 @@ "deno-1.24", "deno-1.35", "deno-1.40", + "deno-1.46", + "deno-2.0", "dart-2.15", "dart-2.16", "dart-2.17", @@ -8984,24 +9107,31 @@ "dart-3.0", "dart-3.1", "dart-3.3", - "dotnet-3.1", + "dart-3.5", "dotnet-6.0", "dotnet-7.0", + "dotnet-8.0", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", + "java-22", "swift-5.5", "swift-5.8", "swift-5.9", + "swift-5.10", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", + "kotlin-2.0", "cpp-17", "cpp-20", "bun-1.0", - "go-1.23" + "bun-1.1", + "go-1.23", + "static-1", + "flutter-3.24" ], "x-enum-name": null, "x-enum-keys": [] @@ -9114,7 +9244,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 296, + "group": "functions", + "weight": 300, "cookies": false, "type": "", "deprecated": false, @@ -9128,9 +9259,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9178,7 +9306,8 @@ }, "x-appwrite": { "method": "listDeployments", - "weight": 298, + "group": "deployments", + "weight": 302, "cookies": false, "type": "", "deprecated": false, @@ -9192,9 +9321,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9264,7 +9390,8 @@ }, "x-appwrite": { "method": "createDeployment", - "weight": 297, + "group": "deployments", + "weight": 301, "cookies": false, "type": "upload", "deprecated": false, @@ -9278,9 +9405,6 @@ "server" ], "packaging": true, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9363,7 +9487,8 @@ }, "x-appwrite": { "method": "getDeployment", - "weight": 299, + "group": "deployments", + "weight": 303, "cookies": false, "type": "", "deprecated": false, @@ -9377,9 +9502,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9435,7 +9557,8 @@ }, "x-appwrite": { "method": "updateDeployment", - "weight": 295, + "group": "deployments", + "weight": 299, "cookies": false, "type": "", "deprecated": false, @@ -9449,9 +9572,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9500,7 +9620,8 @@ }, "x-appwrite": { "method": "deleteDeployment", - "weight": 300, + "group": "deployments", + "weight": 304, "cookies": false, "type": "", "deprecated": false, @@ -9514,9 +9635,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9554,12 +9672,12 @@ }, "\/functions\/{functionId}\/deployments\/{deploymentId}\/build": { "post": { - "summary": "Rebuild deployment", + "summary": "Create deployment build", "operationId": "functionsCreateBuild", "tags": [ "functions" ], - "description": "", + "description": "Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build.", "responses": { "204": { "description": "No content" @@ -9567,12 +9685,13 @@ }, "x-appwrite": { "method": "createBuild", - "weight": 301, + "group": "deployments", + "weight": 305, "cookies": false, "type": "", "deprecated": false, "demo": "functions\/create-build.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/create-build.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9581,9 +9700,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9640,7 +9756,7 @@ "tags": [ "functions" ], - "description": "", + "description": "Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn't started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status 'ready') or failed. The response includes the final build status and details.", "responses": { "200": { "description": "Build", @@ -9655,12 +9771,13 @@ }, "x-appwrite": { "method": "updateDeploymentBuild", - "weight": 302, + "group": "deployments", + "weight": 306, "cookies": false, "type": "", "deprecated": false, "demo": "functions\/update-deployment-build.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/update-deployment-build.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9669,9 +9786,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9709,7 +9823,7 @@ }, "\/functions\/{functionId}\/deployments\/{deploymentId}\/download": { "get": { - "summary": "Download deployment", + "summary": "Get deployment download", "operationId": "functionsGetDeploymentDownload", "tags": [ "functions" @@ -9722,7 +9836,8 @@ }, "x-appwrite": { "method": "getDeploymentDownload", - "weight": 294, + "group": "deployments", + "weight": 298, "cookies": false, "type": "location", "deprecated": false, @@ -9737,9 +9852,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9798,7 +9910,8 @@ }, "x-appwrite": { "method": "listExecutions", - "weight": 304, + "group": "executions", + "weight": 308, "cookies": false, "type": "", "deprecated": false, @@ -9814,9 +9927,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -9888,7 +9998,8 @@ }, "x-appwrite": { "method": "createExecution", - "weight": 303, + "group": "executions", + "weight": 307, "cookies": false, "type": "", "deprecated": false, @@ -9904,9 +10015,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -9941,7 +10049,7 @@ "body": { "type": "string", "description": "HTTP body of execution. Default value is empty string.", - "x-example": null + "x-example": "" }, "async": { "type": "boolean", @@ -10007,7 +10115,8 @@ }, "x-appwrite": { "method": "getExecution", - "weight": 305, + "group": "executions", + "weight": 309, "cookies": false, "type": "", "deprecated": false, @@ -10023,9 +10132,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -10076,7 +10182,8 @@ }, "x-appwrite": { "method": "deleteExecution", - "weight": 306, + "group": "executions", + "weight": 310, "cookies": false, "type": "", "deprecated": false, @@ -10090,9 +10197,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10150,7 +10254,8 @@ }, "x-appwrite": { "method": "listVariables", - "weight": 308, + "group": "variables", + "weight": 312, "cookies": false, "type": "", "deprecated": false, @@ -10164,9 +10269,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10212,7 +10314,8 @@ }, "x-appwrite": { "method": "createVariable", - "weight": 307, + "group": "variables", + "weight": 311, "cookies": false, "type": "", "deprecated": false, @@ -10226,9 +10329,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10301,7 +10401,8 @@ }, "x-appwrite": { "method": "getVariable", - "weight": 309, + "group": "variables", + "weight": 313, "cookies": false, "type": "", "deprecated": false, @@ -10315,9 +10416,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10373,7 +10471,8 @@ }, "x-appwrite": { "method": "updateVariable", - "weight": 310, + "group": "variables", + "weight": 314, "cookies": false, "type": "", "deprecated": false, @@ -10387,9 +10486,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10462,7 +10558,8 @@ }, "x-appwrite": { "method": "deleteVariable", - "weight": 311, + "group": "variables", + "weight": 315, "cookies": false, "type": "", "deprecated": false, @@ -10476,9 +10573,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10536,7 +10630,8 @@ }, "x-appwrite": { "method": "query", - "weight": 329, + "group": "graphql", + "weight": 333, "cookies": false, "type": "graphql", "deprecated": false, @@ -10552,9 +10647,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10592,7 +10684,8 @@ }, "x-appwrite": { "method": "mutation", - "weight": 328, + "group": "graphql", + "weight": 332, "cookies": false, "type": "graphql", "deprecated": false, @@ -10608,9 +10701,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10648,7 +10738,8 @@ }, "x-appwrite": { "method": "get", - "weight": 124, + "group": "health", + "weight": 128, "cookies": false, "type": "", "deprecated": false, @@ -10662,9 +10753,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10700,7 +10788,8 @@ }, "x-appwrite": { "method": "getAntivirus", - "weight": 146, + "group": "health", + "weight": 149, "cookies": false, "type": "", "deprecated": false, @@ -10714,9 +10803,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10752,7 +10838,8 @@ }, "x-appwrite": { "method": "getCache", - "weight": 127, + "group": "health", + "weight": 131, "cookies": false, "type": "", "deprecated": false, @@ -10766,9 +10853,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10804,7 +10888,8 @@ }, "x-appwrite": { "method": "getCertificate", - "weight": 133, + "group": "health", + "weight": 136, "cookies": false, "type": "", "deprecated": false, @@ -10818,9 +10903,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10867,7 +10949,8 @@ }, "x-appwrite": { "method": "getDB", - "weight": 126, + "group": "health", + "weight": 130, "cookies": false, "type": "", "deprecated": false, @@ -10881,9 +10964,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10919,7 +10999,8 @@ }, "x-appwrite": { "method": "getPubSub", - "weight": 129, + "group": "health", + "weight": 132, "cookies": false, "type": "", "deprecated": false, @@ -10933,61 +11014,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", - "auth": { - "Project": [], - "Key": [] - } - }, - "security": [ - { - "Project": [], - "Key": [] - } - ] - } - }, - "\/health\/queue": { - "get": { - "summary": "Get queue", - "operationId": "healthGetQueue", - "tags": [ - "health" - ], - "description": "Check the Appwrite queue messaging servers are up and connection is successful.", - "responses": { - "200": { - "description": "Health Status", - "content": { - "application\/json": { - "schema": { - "$ref": "#\/components\/schemas\/healthStatus" - } - } - } - } - }, - "x-appwrite": { - "method": "getQueue", - "weight": 128, - "cookies": false, - "type": "", - "deprecated": false, - "demo": "health\/get-queue.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue.md", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "health.read", - "platforms": [ - "server" - ], - "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11023,7 +11049,8 @@ }, "x-appwrite": { "method": "getQueueBuilds", - "weight": 135, + "group": "queue", + "weight": 138, "cookies": false, "type": "", "deprecated": false, @@ -11037,9 +11064,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11088,7 +11112,8 @@ }, "x-appwrite": { "method": "getQueueCertificates", - "weight": 134, + "group": "queue", + "weight": 137, "cookies": false, "type": "", "deprecated": false, @@ -11102,9 +11127,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11153,7 +11175,8 @@ }, "x-appwrite": { "method": "getQueueDatabases", - "weight": 136, + "group": "queue", + "weight": 139, "cookies": false, "type": "", "deprecated": false, @@ -11167,9 +11190,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11229,7 +11249,8 @@ }, "x-appwrite": { "method": "getQueueDeletes", - "weight": 137, + "group": "queue", + "weight": 140, "cookies": false, "type": "", "deprecated": false, @@ -11243,9 +11264,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11294,7 +11312,8 @@ }, "x-appwrite": { "method": "getFailedJobs", - "weight": 147, + "group": "queue", + "weight": 150, "cookies": false, "type": "", "deprecated": false, @@ -11308,9 +11327,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11336,8 +11352,8 @@ "v1-audits", "v1-mails", "v1-functions", - "v1-usage", - "v1-usage-dump", + "v1-stats-resources", + "v1-stats-usage", "v1-webhooks", "v1-certificates", "v1-builds", @@ -11385,7 +11401,8 @@ }, "x-appwrite": { "method": "getQueueFunctions", - "weight": 141, + "group": "queue", + "weight": 144, "cookies": false, "type": "", "deprecated": false, @@ -11399,9 +11416,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11450,7 +11464,8 @@ }, "x-appwrite": { "method": "getQueueLogs", - "weight": 132, + "group": "queue", + "weight": 135, "cookies": false, "type": "", "deprecated": false, @@ -11464,9 +11479,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11515,7 +11527,8 @@ }, "x-appwrite": { "method": "getQueueMails", - "weight": 138, + "group": "queue", + "weight": 141, "cookies": false, "type": "", "deprecated": false, @@ -11529,9 +11542,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11580,7 +11590,8 @@ }, "x-appwrite": { "method": "getQueueMessaging", - "weight": 139, + "group": "queue", + "weight": 142, "cookies": false, "type": "", "deprecated": false, @@ -11594,9 +11605,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11645,7 +11653,8 @@ }, "x-appwrite": { "method": "getQueueMigrations", - "weight": 140, + "group": "queue", + "weight": 143, "cookies": false, "type": "", "deprecated": false, @@ -11659,9 +11668,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11688,14 +11694,14 @@ ] } }, - "\/health\/queue\/usage": { + "\/health\/queue\/stats-resources": { "get": { - "summary": "Get usage queue", - "operationId": "healthGetQueueUsage", + "summary": "Get stats resources queue", + "operationId": "healthGetQueueStatsResources", "tags": [ "health" ], - "description": "Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.", + "description": "Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.", "responses": { "200": { "description": "Health Queue", @@ -11709,13 +11715,14 @@ } }, "x-appwrite": { - "method": "getQueueUsage", - "weight": 142, + "method": "getQueueStatsResources", + "group": "queue", + "weight": 145, "cookies": false, "type": "", "deprecated": false, - "demo": "health\/get-queue-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-usage.md", + "demo": "health\/get-queue-stats-resources.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-stats-resources.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11724,9 +11731,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11753,14 +11757,14 @@ ] } }, - "\/health\/queue\/usage-dump": { + "\/health\/queue\/stats-usage": { "get": { - "summary": "Get usage dump queue", - "operationId": "healthGetQueueUsageDump", + "summary": "Get stats usage queue", + "operationId": "healthGetQueueUsage", "tags": [ "health" ], - "description": "Get the number of projects containing metrics that are waiting to be processed in the Appwrite internal queue server.", + "description": "Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.", "responses": { "200": { "description": "Health Queue", @@ -11774,13 +11778,14 @@ } }, "x-appwrite": { - "method": "getQueueUsageDump", - "weight": 143, + "method": "getQueueUsage", + "group": "queue", + "weight": 146, "cookies": false, "type": "", "deprecated": false, - "demo": "health\/get-queue-usage-dump.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-usage-dump.md", + "demo": "health\/get-queue-usage.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-stats-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11789,9 +11794,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11840,7 +11842,8 @@ }, "x-appwrite": { "method": "getQueueWebhooks", - "weight": 131, + "group": "queue", + "weight": 134, "cookies": false, "type": "", "deprecated": false, @@ -11854,9 +11857,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11905,7 +11905,8 @@ }, "x-appwrite": { "method": "getStorage", - "weight": 145, + "group": "storage", + "weight": 148, "cookies": false, "type": "", "deprecated": false, @@ -11919,9 +11920,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11957,7 +11955,8 @@ }, "x-appwrite": { "method": "getStorageLocal", - "weight": 144, + "group": "storage", + "weight": 147, "cookies": false, "type": "", "deprecated": false, @@ -11971,9 +11970,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -12009,7 +12005,8 @@ }, "x-appwrite": { "method": "getTime", - "weight": 130, + "group": "health", + "weight": 133, "cookies": false, "type": "", "deprecated": false, @@ -12023,9 +12020,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -12061,7 +12055,8 @@ }, "x-appwrite": { "method": "get", - "weight": 116, + "group": null, + "weight": 120, "cookies": false, "type": "", "deprecated": false, @@ -12077,9 +12072,6 @@ "server" ], "packaging": false, - "offline-model": "\/localed", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -12097,7 +12089,7 @@ }, "\/locale\/codes": { "get": { - "summary": "List Locale Codes", + "summary": "List locale codes", "operationId": "localeListCodes", "tags": [ "locale" @@ -12117,7 +12109,8 @@ }, "x-appwrite": { "method": "listCodes", - "weight": 117, + "group": null, + "weight": 121, "cookies": false, "type": "", "deprecated": false, @@ -12133,9 +12126,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/localeCode", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -12173,7 +12163,8 @@ }, "x-appwrite": { "method": "listContinents", - "weight": 121, + "group": null, + "weight": 125, "cookies": false, "type": "", "deprecated": false, @@ -12189,9 +12180,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/continents", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [], "Session": [] @@ -12229,7 +12217,8 @@ }, "x-appwrite": { "method": "listCountries", - "weight": 118, + "group": null, + "weight": 122, "cookies": false, "type": "", "deprecated": false, @@ -12245,9 +12234,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [], "Session": [] @@ -12285,7 +12271,8 @@ }, "x-appwrite": { "method": "listCountriesEU", - "weight": 119, + "group": null, + "weight": 123, "cookies": false, "type": "", "deprecated": false, @@ -12301,9 +12288,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries\/eu", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [], "Session": [] @@ -12341,7 +12325,8 @@ }, "x-appwrite": { "method": "listCountriesPhones", - "weight": 120, + "group": null, + "weight": 124, "cookies": false, "type": "", "deprecated": false, @@ -12357,9 +12342,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries\/phones", - "offline-key": "", - "offline-response-key": "countryCode", "auth": { "Project": [], "Session": [] @@ -12397,7 +12379,8 @@ }, "x-appwrite": { "method": "listCurrencies", - "weight": 122, + "group": null, + "weight": 126, "cookies": false, "type": "", "deprecated": false, @@ -12413,9 +12396,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/currencies", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [], "Session": [] @@ -12453,7 +12433,8 @@ }, "x-appwrite": { "method": "listLanguages", - "weight": 123, + "group": null, + "weight": 127, "cookies": false, "type": "", "deprecated": false, @@ -12469,9 +12450,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/languages", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [], "Session": [] @@ -12509,7 +12487,8 @@ }, "x-appwrite": { "method": "listMessages", - "weight": 388, + "group": "messages", + "weight": 386, "cookies": false, "type": "", "deprecated": false, @@ -12524,9 +12503,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -12588,7 +12564,8 @@ }, "x-appwrite": { "method": "createEmail", - "weight": 385, + "group": "messages", + "weight": 383, "cookies": false, "type": "", "deprecated": false, @@ -12603,9 +12580,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -12720,7 +12694,7 @@ "tags": [ "messaging" ], - "description": "Update an email message by its unique ID.\n", + "description": "Update an email message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", "responses": { "200": { "description": "Message", @@ -12735,7 +12709,8 @@ }, "x-appwrite": { "method": "updateEmail", - "weight": 392, + "group": "messages", + "weight": 390, "cookies": false, "type": "", "deprecated": false, @@ -12750,9 +12725,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -12884,7 +12856,8 @@ }, "x-appwrite": { "method": "createPush", - "weight": 387, + "group": "messages", + "weight": 385, "cookies": false, "type": "", "deprecated": false, @@ -12899,9 +12872,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -12960,7 +12930,7 @@ }, "data": { "type": "object", - "description": "Additional Data for push notification.", + "description": "Additional key-value pair data for push notification.", "x-example": "{}" }, "action": { @@ -12980,7 +12950,7 @@ }, "sound": { "type": "string", - "description": "Sound for push notification. Available only for Android and IOS Platform.", + "description": "Sound for push notification. Available only for Android and iOS Platform.", "x-example": "" }, "color": { @@ -12994,9 +12964,9 @@ "x-example": "" }, "badge": { - "type": "string", - "description": "Badge for push notification. Available only for IOS Platform.", - "x-example": "" + "type": "integer", + "description": "Badge for push notification. Available only for iOS Platform.", + "x-example": null }, "draft": { "type": "boolean", @@ -13007,12 +12977,31 @@ "type": "string", "description": "Scheduled delivery time for message in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future.", "x-example": null + }, + "contentAvailable": { + "type": "boolean", + "description": "If set to true, the notification will be delivered in the background. Available only for iOS Platform.", + "x-example": false + }, + "critical": { + "type": "boolean", + "description": "If set to true, the notification will be marked as critical. This requires the app to have the critical notification entitlement. Available only for iOS Platform.", + "x-example": false + }, + "priority": { + "type": "string", + "description": "Set the notification priority. \"normal\" will consider device state and may not deliver notifications immediately. \"high\" will always attempt to immediately deliver the notification.", + "x-example": "normal", + "enum": [ + "normal", + "high" + ], + "x-enum-name": "MessagePriority", + "x-enum-keys": [] } }, "required": [ - "messageId", - "title", - "body" + "messageId" ] } } @@ -13027,7 +13016,7 @@ "tags": [ "messaging" ], - "description": "Update a push notification by its unique ID.\n", + "description": "Update a push notification by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", "responses": { "200": { "description": "Message", @@ -13042,7 +13031,8 @@ }, "x-appwrite": { "method": "updatePush", - "weight": 394, + "group": "messages", + "weight": 392, "cookies": false, "type": "", "deprecated": false, @@ -13057,9 +13047,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13172,6 +13159,27 @@ "type": "string", "description": "Scheduled delivery time for message in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future.", "x-example": null + }, + "contentAvailable": { + "type": "boolean", + "description": "If set to true, the notification will be delivered in the background. Available only for iOS Platform.", + "x-example": false + }, + "critical": { + "type": "boolean", + "description": "If set to true, the notification will be marked as critical. This requires the app to have the critical notification entitlement. Available only for iOS Platform.", + "x-example": false + }, + "priority": { + "type": "string", + "description": "Set the notification priority. \"normal\" will consider device battery state and may send notifications later. \"high\" will always attempt to immediately deliver the notification.", + "x-example": "normal", + "enum": [ + "normal", + "high" + ], + "x-enum-name": "MessagePriority", + "x-enum-keys": [] } } } @@ -13202,7 +13210,8 @@ }, "x-appwrite": { "method": "createSms", - "weight": 386, + "group": "messages", + "weight": 384, "cookies": false, "type": "", "deprecated": false, @@ -13217,9 +13226,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13299,7 +13305,7 @@ "tags": [ "messaging" ], - "description": "Update an email message by its unique ID.\n", + "description": "Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", "responses": { "200": { "description": "Message", @@ -13314,12 +13320,13 @@ }, "x-appwrite": { "method": "updateSms", - "weight": 393, + "group": "messages", + "weight": 391, "cookies": false, "type": "", "deprecated": false, "demo": "messaging\/update-sms.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/update-email.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/update-sms.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13329,9 +13336,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13429,7 +13433,8 @@ }, "x-appwrite": { "method": "getMessage", - "weight": 391, + "group": "messages", + "weight": 389, "cookies": false, "type": "", "deprecated": false, @@ -13444,9 +13449,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13485,7 +13487,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 395, + "group": "messages", + "weight": 393, "cookies": false, "type": "", "deprecated": false, @@ -13500,9 +13503,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13550,7 +13550,8 @@ }, "x-appwrite": { "method": "listMessageLogs", - "weight": 389, + "group": "logs", + "weight": 387, "cookies": false, "type": "", "deprecated": false, @@ -13565,9 +13566,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13628,7 +13626,8 @@ }, "x-appwrite": { "method": "listTargets", - "weight": 390, + "group": "messages", + "weight": 388, "cookies": false, "type": "", "deprecated": false, @@ -13643,9 +13642,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13706,7 +13702,8 @@ }, "x-appwrite": { "method": "listProviders", - "weight": 360, + "group": "providers", + "weight": 358, "cookies": false, "type": "", "deprecated": false, @@ -13721,9 +13718,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13785,7 +13779,8 @@ }, "x-appwrite": { "method": "createApnsProvider", - "weight": 359, + "group": "providers", + "weight": 357, "cookies": false, "type": "", "deprecated": false, @@ -13800,9 +13795,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13893,7 +13885,8 @@ }, "x-appwrite": { "method": "updateApnsProvider", - "weight": 372, + "group": "providers", + "weight": 370, "cookies": false, "type": "", "deprecated": false, @@ -13908,9 +13901,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14004,7 +13994,8 @@ }, "x-appwrite": { "method": "createFcmProvider", - "weight": 358, + "group": "providers", + "weight": 356, "cookies": false, "type": "", "deprecated": false, @@ -14019,9 +14010,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14092,7 +14080,8 @@ }, "x-appwrite": { "method": "updateFcmProvider", - "weight": 371, + "group": "providers", + "weight": 369, "cookies": false, "type": "", "deprecated": false, @@ -14107,9 +14096,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14183,7 +14169,8 @@ }, "x-appwrite": { "method": "createMailgunProvider", - "weight": 350, + "group": "providers", + "weight": 348, "cookies": false, "type": "", "deprecated": false, @@ -14198,9 +14185,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14301,7 +14285,8 @@ }, "x-appwrite": { "method": "updateMailgunProvider", - "weight": 363, + "group": "providers", + "weight": 361, "cookies": false, "type": "", "deprecated": false, @@ -14316,9 +14301,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14422,7 +14404,8 @@ }, "x-appwrite": { "method": "createMsg91Provider", - "weight": 353, + "group": "providers", + "weight": 351, "cookies": false, "type": "", "deprecated": false, @@ -14437,9 +14420,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14520,7 +14500,8 @@ }, "x-appwrite": { "method": "updateMsg91Provider", - "weight": 366, + "group": "providers", + "weight": 364, "cookies": false, "type": "", "deprecated": false, @@ -14535,9 +14516,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14621,7 +14599,8 @@ }, "x-appwrite": { "method": "createSendgridProvider", - "weight": 351, + "group": "providers", + "weight": 349, "cookies": false, "type": "", "deprecated": false, @@ -14636,9 +14615,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14729,7 +14705,8 @@ }, "x-appwrite": { "method": "updateSendgridProvider", - "weight": 364, + "group": "providers", + "weight": 362, "cookies": false, "type": "", "deprecated": false, @@ -14744,9 +14721,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14840,7 +14814,8 @@ }, "x-appwrite": { "method": "createSmtpProvider", - "weight": 352, + "group": "providers", + "weight": 350, "cookies": false, "type": "", "deprecated": false, @@ -14855,9 +14830,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14986,7 +14958,8 @@ }, "x-appwrite": { "method": "updateSmtpProvider", - "weight": 365, + "group": "providers", + "weight": 363, "cookies": false, "type": "", "deprecated": false, @@ -15001,9 +14974,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15134,7 +15104,8 @@ }, "x-appwrite": { "method": "createTelesignProvider", - "weight": 354, + "group": "providers", + "weight": 352, "cookies": false, "type": "", "deprecated": false, @@ -15149,9 +15120,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15232,7 +15200,8 @@ }, "x-appwrite": { "method": "updateTelesignProvider", - "weight": 367, + "group": "providers", + "weight": 365, "cookies": false, "type": "", "deprecated": false, @@ -15247,9 +15216,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15333,7 +15299,8 @@ }, "x-appwrite": { "method": "createTextmagicProvider", - "weight": 355, + "group": "providers", + "weight": 353, "cookies": false, "type": "", "deprecated": false, @@ -15348,9 +15315,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15431,7 +15395,8 @@ }, "x-appwrite": { "method": "updateTextmagicProvider", - "weight": 368, + "group": "providers", + "weight": 366, "cookies": false, "type": "", "deprecated": false, @@ -15446,9 +15411,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15532,7 +15494,8 @@ }, "x-appwrite": { "method": "createTwilioProvider", - "weight": 356, + "group": "providers", + "weight": 354, "cookies": false, "type": "", "deprecated": false, @@ -15547,9 +15510,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15630,7 +15590,8 @@ }, "x-appwrite": { "method": "updateTwilioProvider", - "weight": 369, + "group": "providers", + "weight": 367, "cookies": false, "type": "", "deprecated": false, @@ -15645,9 +15606,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15731,7 +15689,8 @@ }, "x-appwrite": { "method": "createVonageProvider", - "weight": 357, + "group": "providers", + "weight": 355, "cookies": false, "type": "", "deprecated": false, @@ -15746,9 +15705,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15829,7 +15785,8 @@ }, "x-appwrite": { "method": "updateVonageProvider", - "weight": 370, + "group": "providers", + "weight": 368, "cookies": false, "type": "", "deprecated": false, @@ -15844,9 +15801,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15930,7 +15884,8 @@ }, "x-appwrite": { "method": "getProvider", - "weight": 362, + "group": "providers", + "weight": 360, "cookies": false, "type": "", "deprecated": false, @@ -15945,9 +15900,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15986,7 +15938,8 @@ }, "x-appwrite": { "method": "deleteProvider", - "weight": 373, + "group": "providers", + "weight": 371, "cookies": false, "type": "", "deprecated": false, @@ -16001,9 +15954,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16051,7 +16001,8 @@ }, "x-appwrite": { "method": "listProviderLogs", - "weight": 361, + "group": "providers", + "weight": 359, "cookies": false, "type": "", "deprecated": false, @@ -16066,9 +16017,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16129,7 +16077,8 @@ }, "x-appwrite": { "method": "listSubscriberLogs", - "weight": 382, + "group": "subscribers", + "weight": 380, "cookies": false, "type": "", "deprecated": false, @@ -16144,9 +16093,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16207,7 +16153,8 @@ }, "x-appwrite": { "method": "listTopics", - "weight": 375, + "group": "topics", + "weight": 373, "cookies": false, "type": "", "deprecated": false, @@ -16222,9 +16169,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16284,7 +16228,8 @@ }, "x-appwrite": { "method": "createTopic", - "weight": 374, + "group": "topics", + "weight": 372, "cookies": false, "type": "", "deprecated": false, @@ -16299,9 +16244,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16370,7 +16312,8 @@ }, "x-appwrite": { "method": "getTopic", - "weight": 377, + "group": "topics", + "weight": 375, "cookies": false, "type": "", "deprecated": false, @@ -16385,9 +16328,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16433,7 +16373,8 @@ }, "x-appwrite": { "method": "updateTopic", - "weight": 378, + "group": "topics", + "weight": 376, "cookies": false, "type": "", "deprecated": false, @@ -16448,9 +16389,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16513,7 +16451,8 @@ }, "x-appwrite": { "method": "deleteTopic", - "weight": 379, + "group": "topics", + "weight": 377, "cookies": false, "type": "", "deprecated": false, @@ -16528,9 +16467,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16578,7 +16514,8 @@ }, "x-appwrite": { "method": "listTopicLogs", - "weight": 376, + "group": "topics", + "weight": 374, "cookies": false, "type": "", "deprecated": false, @@ -16593,9 +16530,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16656,7 +16590,8 @@ }, "x-appwrite": { "method": "listSubscribers", - "weight": 381, + "group": "subscribers", + "weight": 379, "cookies": false, "type": "", "deprecated": false, @@ -16671,9 +16606,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16743,7 +16675,8 @@ }, "x-appwrite": { "method": "createSubscriber", - "weight": 380, + "group": "subscribers", + "weight": 378, "cookies": false, "type": "", "deprecated": false, @@ -16760,9 +16693,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "JWT": [] @@ -16837,7 +16767,8 @@ }, "x-appwrite": { "method": "getSubscriber", - "weight": 383, + "group": "subscribers", + "weight": 381, "cookies": false, "type": "", "deprecated": false, @@ -16852,9 +16783,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16903,7 +16831,8 @@ }, "x-appwrite": { "method": "deleteSubscriber", - "weight": 384, + "group": "subscribers", + "weight": 382, "cookies": false, "type": "", "deprecated": false, @@ -16920,9 +16849,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "JWT": [] @@ -16982,7 +16908,8 @@ }, "x-appwrite": { "method": "listBuckets", - "weight": 201, + "group": "buckets", + "weight": 205, "cookies": false, "type": "", "deprecated": false, @@ -16996,9 +16923,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -17058,7 +16982,8 @@ }, "x-appwrite": { "method": "createBucket", - "weight": 200, + "group": "buckets", + "weight": 204, "cookies": false, "type": "", "deprecated": false, @@ -17072,9 +16997,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -17188,7 +17110,8 @@ }, "x-appwrite": { "method": "getBucket", - "weight": 202, + "group": "buckets", + "weight": 206, "cookies": false, "type": "", "deprecated": false, @@ -17202,9 +17125,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -17250,7 +17170,8 @@ }, "x-appwrite": { "method": "updateBucket", - "weight": 203, + "group": "buckets", + "weight": 207, "cookies": false, "type": "", "deprecated": false, @@ -17264,9 +17185,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -17377,7 +17295,8 @@ }, "x-appwrite": { "method": "deleteBucket", - "weight": 204, + "group": "buckets", + "weight": 208, "cookies": false, "type": "", "deprecated": false, @@ -17391,9 +17310,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -17441,7 +17357,8 @@ }, "x-appwrite": { "method": "listFiles", - "weight": 206, + "group": "files", + "weight": 210, "cookies": false, "type": "", "deprecated": false, @@ -17457,9 +17374,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -17531,7 +17445,8 @@ }, "x-appwrite": { "method": "createFile", - "weight": 205, + "group": "files", + "weight": 209, "cookies": false, "type": "upload", "deprecated": false, @@ -17547,9 +17462,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -17633,7 +17545,8 @@ }, "x-appwrite": { "method": "getFile", - "weight": 207, + "group": "files", + "weight": 211, "cookies": false, "type": "", "deprecated": false, @@ -17649,9 +17562,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -17709,7 +17619,8 @@ }, "x-appwrite": { "method": "updateFile", - "weight": 212, + "group": "files", + "weight": 216, "cookies": false, "type": "", "deprecated": false, @@ -17725,9 +17636,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -17789,7 +17697,7 @@ } }, "delete": { - "summary": "Delete File", + "summary": "Delete file", "operationId": "storageDeleteFile", "tags": [ "storage" @@ -17802,7 +17710,8 @@ }, "x-appwrite": { "method": "deleteFile", - "weight": 213, + "group": "files", + "weight": 217, "cookies": false, "type": "", "deprecated": false, @@ -17818,9 +17727,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -17873,7 +17779,8 @@ }, "x-appwrite": { "method": "getFileDownload", - "weight": 209, + "group": "files", + "weight": 213, "cookies": false, "type": "location", "deprecated": false, @@ -17889,9 +17796,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -17944,7 +17848,8 @@ }, "x-appwrite": { "method": "getFilePreview", - "weight": 208, + "group": "files", + "weight": 212, "cookies": false, "type": "location", "deprecated": false, @@ -17960,9 +17865,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18137,7 +18039,9 @@ "jpeg", "gif", "png", - "webp" + "webp", + "heic", + "avif" ], "x-enum-name": "ImageFormat", "x-enum-keys": [], @@ -18163,7 +18067,8 @@ }, "x-appwrite": { "method": "getFileView", - "weight": 210, + "group": "files", + "weight": 214, "cookies": false, "type": "location", "deprecated": false, @@ -18179,9 +18084,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18241,7 +18143,8 @@ }, "x-appwrite": { "method": "list", - "weight": 217, + "group": "teams", + "weight": 221, "cookies": false, "type": "", "deprecated": false, @@ -18257,9 +18160,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18321,7 +18221,8 @@ }, "x-appwrite": { "method": "create", - "weight": 216, + "group": "teams", + "weight": 220, "cookies": false, "type": "", "deprecated": false, @@ -18337,9 +18238,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18410,7 +18308,8 @@ }, "x-appwrite": { "method": "get", - "weight": 218, + "group": "teams", + "weight": 222, "cookies": false, "type": "", "deprecated": false, @@ -18426,9 +18325,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "{teamId}", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18476,7 +18372,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 220, + "group": "teams", + "weight": 224, "cookies": false, "type": "", "deprecated": false, @@ -18492,9 +18389,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "{teamId}", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18554,7 +18448,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 222, + "group": "teams", + "weight": 226, "cookies": false, "type": "", "deprecated": false, @@ -18570,9 +18465,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18607,7 +18499,7 @@ "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.", + "description": "Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint. Hide sensitive attributes from the response by toggling membership privacy in the Console.", "responses": { "200": { "description": "Memberships List", @@ -18622,7 +18514,8 @@ }, "x-appwrite": { "method": "listMemberships", - "weight": 224, + "group": "memberships", + "weight": 228, "cookies": false, "type": "", "deprecated": false, @@ -18638,9 +18531,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/memberships", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18712,7 +18602,8 @@ }, "x-appwrite": { "method": "createMembership", - "weight": 223, + "group": "memberships", + "weight": 227, "cookies": false, "type": "", "deprecated": false, @@ -18728,9 +18619,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18812,7 +18700,7 @@ "tags": [ "teams" ], - "description": "Get a team member by the membership unique id. All team members have read access for this resource.", + "description": "Get a team member by the membership unique id. All team members have read access for this resource. Hide sensitive attributes from the response by toggling membership privacy in the Console.", "responses": { "200": { "description": "Membership", @@ -18827,7 +18715,8 @@ }, "x-appwrite": { "method": "getMembership", - "weight": 225, + "group": "memberships", + "weight": 229, "cookies": false, "type": "", "deprecated": false, @@ -18843,9 +18732,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/memberships", - "offline-key": "{membershipId}", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18903,7 +18789,8 @@ }, "x-appwrite": { "method": "updateMembership", - "weight": 226, + "group": "memberships", + "weight": 230, "cookies": false, "type": "", "deprecated": false, @@ -18919,9 +18806,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18994,7 +18878,8 @@ }, "x-appwrite": { "method": "deleteMembership", - "weight": 228, + "group": "memberships", + "weight": 232, "cookies": false, "type": "", "deprecated": false, @@ -19010,9 +18895,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -19072,7 +18954,8 @@ }, "x-appwrite": { "method": "updateMembershipStatus", - "weight": 227, + "group": "memberships", + "weight": 231, "cookies": false, "type": "", "deprecated": false, @@ -19087,9 +18970,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -19173,7 +19053,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 219, + "group": "teams", + "weight": 223, "cookies": false, "type": "", "deprecated": false, @@ -19188,9 +19069,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/prefs", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -19237,7 +19115,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 221, + "group": "teams", + "weight": 225, "cookies": false, "type": "", "deprecated": false, @@ -19252,9 +19131,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/prefs", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -19322,7 +19198,8 @@ }, "x-appwrite": { "method": "list", - "weight": 239, + "group": "users", + "weight": 243, "cookies": false, "type": "", "deprecated": false, @@ -19336,9 +19213,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -19398,7 +19272,8 @@ }, "x-appwrite": { "method": "create", - "weight": 230, + "group": "users", + "weight": 234, "cookies": false, "type": "", "deprecated": false, @@ -19412,9 +19287,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -19489,7 +19361,8 @@ }, "x-appwrite": { "method": "createArgon2User", - "weight": 233, + "group": "users", + "weight": 237, "cookies": false, "type": "", "deprecated": false, @@ -19503,9 +19376,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -19577,7 +19447,8 @@ }, "x-appwrite": { "method": "createBcryptUser", - "weight": 231, + "group": "users", + "weight": 235, "cookies": false, "type": "", "deprecated": false, @@ -19591,9 +19462,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -19645,7 +19513,7 @@ }, "\/users\/identities": { "get": { - "summary": "List Identities", + "summary": "List identities", "operationId": "usersListIdentities", "tags": [ "users" @@ -19665,7 +19533,8 @@ }, "x-appwrite": { "method": "listIdentities", - "weight": 247, + "group": "identities", + "weight": 251, "cookies": false, "type": "", "deprecated": false, @@ -19679,9 +19548,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -19736,7 +19602,8 @@ }, "x-appwrite": { "method": "deleteIdentity", - "weight": 270, + "group": "identities", + "weight": 274, "cookies": false, "type": "", "deprecated": false, @@ -19750,9 +19617,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -19800,7 +19664,8 @@ }, "x-appwrite": { "method": "createMD5User", - "weight": 232, + "group": "users", + "weight": 236, "cookies": false, "type": "", "deprecated": false, @@ -19814,9 +19679,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -19888,7 +19750,8 @@ }, "x-appwrite": { "method": "createPHPassUser", - "weight": 235, + "group": "users", + "weight": 239, "cookies": false, "type": "", "deprecated": false, @@ -19902,9 +19765,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -19976,7 +19836,8 @@ }, "x-appwrite": { "method": "createScryptUser", - "weight": 236, + "group": "users", + "weight": 240, "cookies": false, "type": "", "deprecated": false, @@ -19990,9 +19851,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20094,7 +19952,8 @@ }, "x-appwrite": { "method": "createScryptModifiedUser", - "weight": 237, + "group": "users", + "weight": 241, "cookies": false, "type": "", "deprecated": false, @@ -20108,9 +19967,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20200,7 +20056,8 @@ }, "x-appwrite": { "method": "createSHAUser", - "weight": 234, + "group": "users", + "weight": 238, "cookies": false, "type": "", "deprecated": false, @@ -20214,9 +20071,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20308,7 +20162,8 @@ }, "x-appwrite": { "method": "get", - "weight": 240, + "group": "users", + "weight": 244, "cookies": false, "type": "", "deprecated": false, @@ -20322,9 +20177,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20363,7 +20215,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 268, + "group": "users", + "weight": 272, "cookies": false, "type": "", "deprecated": false, @@ -20377,9 +20230,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20427,7 +20277,8 @@ }, "x-appwrite": { "method": "updateEmail", - "weight": 253, + "group": "users", + "weight": 257, "cookies": false, "type": "", "deprecated": false, @@ -20441,9 +20292,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20510,7 +20358,8 @@ }, "x-appwrite": { "method": "createJWT", - "weight": 271, + "group": "sessions", + "weight": 275, "cookies": false, "type": "", "deprecated": false, @@ -20524,9 +20373,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20595,7 +20441,8 @@ }, "x-appwrite": { "method": "updateLabels", - "weight": 249, + "group": "users", + "weight": 253, "cookies": false, "type": "", "deprecated": false, @@ -20609,9 +20456,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20681,7 +20525,8 @@ }, "x-appwrite": { "method": "listLogs", - "weight": 245, + "group": "logs", + "weight": 249, "cookies": false, "type": "", "deprecated": false, @@ -20695,9 +20540,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20758,7 +20600,8 @@ }, "x-appwrite": { "method": "listMemberships", - "weight": 244, + "group": "memberships", + "weight": 248, "cookies": false, "type": "", "deprecated": false, @@ -20772,9 +20615,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20822,7 +20662,8 @@ }, "x-appwrite": { "method": "updateMfa", - "weight": 258, + "group": "users", + "weight": 262, "cookies": false, "type": "", "deprecated": false, @@ -20836,9 +20677,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20885,27 +20723,21 @@ }, "\/users\/{userId}\/mfa\/authenticators\/{type}": { "delete": { - "summary": "Delete Authenticator", + "summary": "Delete authenticator", "operationId": "usersDeleteMfaAuthenticator", "tags": [ "users" ], "description": "Delete an authenticator app.", "responses": { - "200": { - "description": "User", - "content": { - "application\/json": { - "schema": { - "$ref": "#\/components\/schemas\/user" - } - } - } + "204": { + "description": "No content" } }, "x-appwrite": { "method": "deleteMfaAuthenticator", - "weight": 263, + "group": "mfa", + "weight": 267, "cookies": false, "type": "", "deprecated": false, @@ -20919,9 +20751,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20964,7 +20793,7 @@ }, "\/users\/{userId}\/mfa\/factors": { "get": { - "summary": "List Factors", + "summary": "List factors", "operationId": "usersListMfaFactors", "tags": [ "users" @@ -20984,7 +20813,8 @@ }, "x-appwrite": { "method": "listMfaFactors", - "weight": 259, + "group": "mfa", + "weight": 263, "cookies": false, "type": "", "deprecated": false, @@ -20998,9 +20828,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21028,7 +20855,7 @@ }, "\/users\/{userId}\/mfa\/recovery-codes": { "get": { - "summary": "Get MFA Recovery Codes", + "summary": "Get MFA recovery codes", "operationId": "usersGetMfaRecoveryCodes", "tags": [ "users" @@ -21048,7 +20875,8 @@ }, "x-appwrite": { "method": "getMfaRecoveryCodes", - "weight": 260, + "group": "mfa", + "weight": 264, "cookies": false, "type": "", "deprecated": false, @@ -21062,9 +20890,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21090,7 +20915,7 @@ ] }, "put": { - "summary": "Regenerate MFA Recovery Codes", + "summary": "Update MFA recovery codes (regenerate)", "operationId": "usersUpdateMfaRecoveryCodes", "tags": [ "users" @@ -21110,7 +20935,8 @@ }, "x-appwrite": { "method": "updateMfaRecoveryCodes", - "weight": 262, + "group": "mfa", + "weight": 266, "cookies": false, "type": "", "deprecated": false, @@ -21124,9 +20950,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21152,7 +20975,7 @@ ] }, "patch": { - "summary": "Create MFA Recovery Codes", + "summary": "Create MFA recovery codes", "operationId": "usersCreateMfaRecoveryCodes", "tags": [ "users" @@ -21172,7 +20995,8 @@ }, "x-appwrite": { "method": "createMfaRecoveryCodes", - "weight": 261, + "group": "mfa", + "weight": 265, "cookies": false, "type": "", "deprecated": false, @@ -21186,9 +21010,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21236,7 +21057,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 251, + "group": "users", + "weight": 255, "cookies": false, "type": "", "deprecated": false, @@ -21250,9 +21072,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21319,7 +21138,8 @@ }, "x-appwrite": { "method": "updatePassword", - "weight": 252, + "group": "users", + "weight": 256, "cookies": false, "type": "", "deprecated": false, @@ -21333,9 +21153,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21402,7 +21219,8 @@ }, "x-appwrite": { "method": "updatePhone", - "weight": 254, + "group": "users", + "weight": 258, "cookies": false, "type": "", "deprecated": false, @@ -21416,9 +21234,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21485,7 +21300,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 241, + "group": "users", + "weight": 245, "cookies": false, "type": "", "deprecated": false, @@ -21499,9 +21315,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21547,7 +21360,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 256, + "group": "users", + "weight": 260, "cookies": false, "type": "", "deprecated": false, @@ -21561,9 +21375,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21630,7 +21441,8 @@ }, "x-appwrite": { "method": "listSessions", - "weight": 243, + "group": "sessions", + "weight": 247, "cookies": false, "type": "", "deprecated": false, @@ -21644,9 +21456,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21692,7 +21501,8 @@ }, "x-appwrite": { "method": "createSession", - "weight": 264, + "group": "sessions", + "weight": 268, "cookies": false, "type": "", "deprecated": false, @@ -21706,9 +21516,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21747,7 +21554,8 @@ }, "x-appwrite": { "method": "deleteSessions", - "weight": 267, + "group": "sessions", + "weight": 271, "cookies": false, "type": "", "deprecated": false, @@ -21761,9 +21569,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21804,7 +21609,8 @@ }, "x-appwrite": { "method": "deleteSession", - "weight": 266, + "group": "sessions", + "weight": 270, "cookies": false, "type": "", "deprecated": false, @@ -21818,9 +21624,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21878,7 +21681,8 @@ }, "x-appwrite": { "method": "updateStatus", - "weight": 248, + "group": "users", + "weight": 252, "cookies": false, "type": "", "deprecated": false, @@ -21892,9 +21696,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21941,7 +21742,7 @@ }, "\/users\/{userId}\/targets": { "get": { - "summary": "List User Targets", + "summary": "List user targets", "operationId": "usersListTargets", "tags": [ "users" @@ -21961,7 +21762,8 @@ }, "x-appwrite": { "method": "listTargets", - "weight": 246, + "group": "targets", + "weight": 250, "cookies": false, "type": "", "deprecated": false, @@ -21976,9 +21778,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22017,7 +21816,7 @@ ] }, "post": { - "summary": "Create User Target", + "summary": "Create user target", "operationId": "usersCreateTarget", "tags": [ "users" @@ -22037,7 +21836,8 @@ }, "x-appwrite": { "method": "createTarget", - "weight": 238, + "group": "targets", + "weight": 242, "cookies": false, "type": "", "deprecated": false, @@ -22052,9 +21852,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22130,7 +21927,7 @@ }, "\/users\/{userId}\/targets\/{targetId}": { "get": { - "summary": "Get User Target", + "summary": "Get user target", "operationId": "usersGetTarget", "tags": [ "users" @@ -22150,7 +21947,8 @@ }, "x-appwrite": { "method": "getTarget", - "weight": 242, + "group": "targets", + "weight": 246, "cookies": false, "type": "", "deprecated": false, @@ -22165,9 +21963,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22203,7 +21998,7 @@ ] }, "patch": { - "summary": "Update User target", + "summary": "Update user target", "operationId": "usersUpdateTarget", "tags": [ "users" @@ -22223,7 +22018,8 @@ }, "x-appwrite": { "method": "updateTarget", - "weight": 257, + "group": "targets", + "weight": 261, "cookies": false, "type": "", "deprecated": false, @@ -22238,9 +22034,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22315,7 +22108,8 @@ }, "x-appwrite": { "method": "deleteTarget", - "weight": 269, + "group": "targets", + "weight": 273, "cookies": false, "type": "", "deprecated": false, @@ -22330,9 +22124,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22390,7 +22181,8 @@ }, "x-appwrite": { "method": "createToken", - "weight": 265, + "group": "sessions", + "weight": 269, "cookies": false, "type": "", "deprecated": false, @@ -22404,9 +22196,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22475,7 +22264,8 @@ }, "x-appwrite": { "method": "updateEmailVerification", - "weight": 255, + "group": "users", + "weight": 259, "cookies": false, "type": "", "deprecated": false, @@ -22489,9 +22279,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22558,7 +22345,8 @@ }, "x-appwrite": { "method": "updatePhoneVerification", - "weight": 250, + "group": "users", + "weight": 254, "cookies": false, "type": "", "deprecated": false, @@ -22572,9 +22360,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22623,85 +22408,67 @@ "tags": [ { "name": "account", - "description": "The Account service allows you to authenticate and manage a user account.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Avatars service aims to help you complete everyday tasks related to your app image, icons, and avatars." }, { "name": "databases", - "description": "The Databases service allows you to create structured collections of documents, query and filter lists of documents", - "x-globalAttributes": [ - "databaseId" - ] + "description": "The Databases 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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Project service allows you to manage all the projects in your Appwrite server." }, { "name": "project", - "description": "The Project service allows you to manage all the projects in your Appwrite server.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Functions Service allows you view, create and manage your Cloud Functions." }, { "name": "proxy", - "description": "The Proxy Service allows you to configure actions for your domains beyond DNS configuration.", - "x-globalAttributes": [] + "description": "The Proxy Service allows you to configure actions for your domains beyond DNS configuration." }, { "name": "graphql", - "description": "The GraphQL API allows you to query and mutate your Appwrite server using GraphQL.", - "x-globalAttributes": [] + "description": "The GraphQL API allows you to query and mutate your Appwrite server using GraphQL." }, { "name": "console", - "description": "The Console service allows you to interact with console relevant informations.", - "x-globalAttributes": [] + "description": "The Console service allows you to interact with console relevant informations." }, { "name": "migrations", - "description": "The Migrations service allows you to migrate third-party data to your Appwrite project.", - "x-globalAttributes": [] + "description": "The Migrations service allows you to migrate third-party data to your Appwrite project." }, { "name": "messaging", - "description": "The Messaging service allows you to send messages to any provider type (SMTP, push notification, SMS, etc.).", - "x-globalAttributes": [] + "description": "The Messaging service allows you to send messages to any provider type (SMTP, push notification, SMS, etc.)." } ], "components": { @@ -23677,6 +23444,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "size": { "type": "integer", "description": "Attribute size.", @@ -23696,6 +23473,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "size" ] }, @@ -23734,6 +23513,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "min": { "type": "integer", "description": "Minimum value to enforce for new documents.", @@ -23761,7 +23550,9 @@ "type", "status", "error", - "required" + "required", + "$createdAt", + "$updatedAt" ] }, "attributeFloat": { @@ -23799,6 +23590,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "min": { "type": "number", "description": "Minimum value to enforce for new documents.", @@ -23826,7 +23627,9 @@ "type", "status", "error", - "required" + "required", + "$createdAt", + "$updatedAt" ] }, "attributeBoolean": { @@ -23864,6 +23667,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "default": { "type": "boolean", "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", @@ -23876,7 +23689,9 @@ "type", "status", "error", - "required" + "required", + "$createdAt", + "$updatedAt" ] }, "attributeEmail": { @@ -23914,6 +23729,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "String format.", @@ -23932,6 +23757,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -23970,6 +23797,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "elements": { "type": "array", "description": "Array of elements in enumerated type.", @@ -23996,6 +23833,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "elements", "format" ] @@ -24035,6 +23874,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "String format.", @@ -24053,6 +23902,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -24091,6 +23942,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "String format.", @@ -24109,6 +23970,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -24147,6 +24010,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "ISO 8601 format.", @@ -24165,6 +24038,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -24203,6 +24078,16 @@ "x-example": false, "nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "relatedCollection": { "type": "string", "description": "The ID of the related collection.", @@ -24240,6 +24125,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "relatedCollection", "relationType", "twoWay", @@ -24288,6 +24175,16 @@ }, "x-example": [], "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Index creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Index update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" } }, "required": [ @@ -24295,7 +24192,9 @@ "type", "status", "error", - "attributes" + "attributes", + "$createdAt", + "$updatedAt" ] }, "document": { @@ -25447,12 +25346,12 @@ }, "userName": { "type": "string", - "description": "User name.", + "description": "User name. Hide this attribute by toggling membership privacy in the Console.", "x-example": "John Doe" }, "userEmail": { "type": "string", - "description": "User email address.", + "description": "User email address. Hide this attribute by toggling membership privacy in the Console.", "x-example": "john@appwrite.io" }, "teamId": { @@ -25482,7 +25381,7 @@ }, "mfa": { "type": "boolean", - "description": "Multi factor authentication status, true if the user has MFA enabled or false otherwise.", + "description": "Multi factor authentication status, true if the user has MFA enabled or false otherwise. Hide this attribute by toggling membership privacy in the Console.", "x-example": false }, "roles": { @@ -25595,7 +25494,7 @@ }, "schedule": { "type": "string", - "description": "Function execution schedult in CRON format.", + "description": "Function execution schedule in CRON format.", "x-example": "5 4 * * *" }, "timeout": { @@ -25647,7 +25546,7 @@ "specification": { "type": "string", "description": "Machine specification for builds and executions.", - "x-example": "s-0.5vcpu-512mb" + "x-example": "s-1vcpu-512mb" } }, "required": [ @@ -25966,7 +25865,7 @@ "responseBody": { "type": "string", "description": "HTTP response body. This will return empty unless execution is created as synchronous.", - "x-example": "Developers are awesome." + "x-example": "" }, "responseHeaders": { "type": "array", @@ -26459,7 +26358,7 @@ "slug": { "type": "string", "description": "Size slug.", - "x-example": "s-0.5vcpu-512mb" + "x-example": "s-1vcpu-512mb" } }, "required": [ @@ -26907,7 +26806,7 @@ "name": { "type": "string", "description": "Target Name.", - "x-example": "Aegon apple token" + "x-example": "Apple iPhone 12" }, "userId": { "type": "string", @@ -26929,6 +26828,11 @@ "type": "string", "description": "The target identifier.", "x-example": "token" + }, + "expired": { + "type": "boolean", + "description": "Is the target expired.", + "x-example": false } }, "required": [ @@ -26938,7 +26842,8 @@ "name", "userId", "providerType", - "identifier" + "identifier", + "expired" ] } }, diff --git a/app/config/specs/swagger2-1.6.x-client.json b/app/config/specs/swagger2-1.6.x-client.json index ce9ea857bb7..6033eb40eaf 100644 --- a/app/config/specs/swagger2-1.6.x-client.json +++ b/app/config/specs/swagger2-1.6.x-client.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "1.6.0", + "version": "1.6.2", "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", @@ -16,6 +16,7 @@ } }, "host": "cloud.appwrite.io", + "x-host-docs": ".cloud.appwrite.io", "basePath": "\/v1", "schemes": [ "https" @@ -67,9 +68,7 @@ "get": { "summary": "Get account", "operationId": "accountGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -87,7 +86,8 @@ }, "x-appwrite": { "method": "get", - "weight": 8, + "group": "account", + "weight": 9, "cookies": false, "type": "", "deprecated": false, @@ -102,9 +102,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -140,7 +137,8 @@ }, "x-appwrite": { "method": "create", - "weight": 7, + "group": "account", + "weight": 8, "cookies": false, "type": "", "deprecated": false, @@ -155,9 +153,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -233,7 +228,8 @@ }, "x-appwrite": { "method": "updateEmail", - "weight": 33, + "group": "account", + "weight": 34, "cookies": false, "type": "", "deprecated": false, @@ -248,9 +244,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -293,11 +286,9 @@ }, "\/account\/identities": { "get": { - "summary": "List Identities", + "summary": "List identities", "operationId": "accountListIdentities", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -315,7 +306,8 @@ }, "x-appwrite": { "method": "listIdentities", - "weight": 56, + "group": "identities", + "weight": 57, "cookies": false, "type": "", "deprecated": false, @@ -330,9 +322,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/identities", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -379,7 +368,8 @@ }, "x-appwrite": { "method": "deleteIdentity", - "weight": 57, + "group": "identities", + "weight": 58, "cookies": false, "type": "", "deprecated": false, @@ -394,9 +384,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -444,7 +431,8 @@ }, "x-appwrite": { "method": "createJWT", - "weight": 28, + "group": "tokens", + "weight": 29, "cookies": false, "type": "", "deprecated": false, @@ -459,9 +447,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -477,9 +462,7 @@ "get": { "summary": "List logs", "operationId": "accountListLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -497,7 +480,8 @@ }, "x-appwrite": { "method": "listLogs", - "weight": 30, + "group": "logs", + "weight": 31, "cookies": false, "type": "", "deprecated": false, @@ -512,9 +496,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -566,7 +547,8 @@ }, "x-appwrite": { "method": "updateMFA", - "weight": 43, + "group": "mfa", + "weight": 44, "cookies": false, "type": "", "deprecated": false, @@ -581,9 +563,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -619,7 +598,7 @@ }, "\/account\/mfa\/authenticators\/{type}": { "post": { - "summary": "Create Authenticator", + "summary": "Create authenticator", "operationId": "accountCreateMfaAuthenticator", "consumes": [ "application\/json" @@ -641,7 +620,8 @@ }, "x-appwrite": { "method": "createMfaAuthenticator", - "weight": 45, + "group": "mfa", + "weight": 46, "cookies": false, "type": "", "deprecated": false, @@ -656,9 +636,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -687,7 +664,7 @@ ] }, "put": { - "summary": "Verify Authenticator", + "summary": "Update authenticator (confirmation)", "operationId": "accountUpdateMfaAuthenticator", "consumes": [ "application\/json" @@ -709,7 +686,8 @@ }, "x-appwrite": { "method": "updateMfaAuthenticator", - "weight": 46, + "group": "mfa", + "weight": 47, "cookies": false, "type": "", "deprecated": false, @@ -724,9 +702,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -773,7 +748,7 @@ ] }, "delete": { - "summary": "Delete Authenticator", + "summary": "Delete authenticator", "operationId": "accountDeleteMfaAuthenticator", "consumes": [ "application\/json" @@ -790,7 +765,8 @@ }, "x-appwrite": { "method": "deleteMfaAuthenticator", - "weight": 50, + "group": "mfa", + "weight": 51, "cookies": false, "type": "", "deprecated": false, @@ -805,9 +781,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -838,7 +811,7 @@ }, "\/account\/mfa\/challenge": { "post": { - "summary": "Create MFA Challenge", + "summary": "Create MFA challenge", "operationId": "accountCreateMfaChallenge", "consumes": [ "application\/json" @@ -860,7 +833,8 @@ }, "x-appwrite": { "method": "createMfaChallenge", - "weight": 51, + "group": "mfa", + "weight": 52, "cookies": false, "type": "", "deprecated": false, @@ -875,9 +849,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -917,24 +888,30 @@ ] }, "put": { - "summary": "Create MFA Challenge (confirmation)", + "summary": "Update MFA challenge (confirmation)", "operationId": "accountUpdateMfaChallenge", "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "account" ], "description": "Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", "responses": { - "204": { - "description": "No content" + "200": { + "description": "Session", + "schema": { + "$ref": "#\/definitions\/session" + } } }, "x-appwrite": { "method": "updateMfaChallenge", - "weight": 52, + "group": "mfa", + "weight": 53, "cookies": false, "type": "", "deprecated": false, @@ -949,9 +926,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -994,11 +968,9 @@ }, "\/account\/mfa\/factors": { "get": { - "summary": "List Factors", + "summary": "List factors", "operationId": "accountListMfaFactors", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -1016,7 +988,8 @@ }, "x-appwrite": { "method": "listMfaFactors", - "weight": 44, + "group": "mfa", + "weight": 45, "cookies": false, "type": "", "deprecated": false, @@ -1031,9 +1004,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1049,11 +1019,9 @@ }, "\/account\/mfa\/recovery-codes": { "get": { - "summary": "Get MFA Recovery Codes", + "summary": "List MFA recovery codes", "operationId": "accountGetMfaRecoveryCodes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -1071,7 +1039,8 @@ }, "x-appwrite": { "method": "getMfaRecoveryCodes", - "weight": 49, + "group": "mfa", + "weight": 50, "cookies": false, "type": "", "deprecated": false, @@ -1086,9 +1055,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1102,7 +1068,7 @@ ] }, "post": { - "summary": "Create MFA Recovery Codes", + "summary": "Create MFA recovery codes", "operationId": "accountCreateMfaRecoveryCodes", "consumes": [ "application\/json" @@ -1124,7 +1090,8 @@ }, "x-appwrite": { "method": "createMfaRecoveryCodes", - "weight": 47, + "group": "mfa", + "weight": 48, "cookies": false, "type": "", "deprecated": false, @@ -1139,9 +1106,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1155,7 +1119,7 @@ ] }, "patch": { - "summary": "Regenerate MFA Recovery Codes", + "summary": "Update MFA recovery codes (regenerate)", "operationId": "accountUpdateMfaRecoveryCodes", "consumes": [ "application\/json" @@ -1177,7 +1141,8 @@ }, "x-appwrite": { "method": "updateMfaRecoveryCodes", - "weight": 48, + "group": "mfa", + "weight": 49, "cookies": false, "type": "", "deprecated": false, @@ -1192,9 +1157,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1232,7 +1194,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 31, + "group": "account", + "weight": 32, "cookies": false, "type": "", "deprecated": false, @@ -1247,9 +1210,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1307,7 +1267,8 @@ }, "x-appwrite": { "method": "updatePassword", - "weight": 32, + "group": "account", + "weight": 33, "cookies": false, "type": "", "deprecated": false, @@ -1322,9 +1283,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1388,7 +1346,8 @@ }, "x-appwrite": { "method": "updatePhone", - "weight": 34, + "group": "account", + "weight": 35, "cookies": false, "type": "", "deprecated": false, @@ -1403,9 +1362,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1450,9 +1406,7 @@ "get": { "summary": "Get account preferences", "operationId": "accountGetPrefs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -1470,7 +1424,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 29, + "group": "account", + "weight": 30, "cookies": false, "type": "", "deprecated": false, @@ -1485,9 +1440,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/prefs", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1523,7 +1475,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 35, + "group": "account", + "weight": 36, "cookies": false, "type": "", "deprecated": false, @@ -1538,9 +1491,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/prefs", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1598,7 +1548,8 @@ }, "x-appwrite": { "method": "createRecovery", - "weight": 37, + "group": "recovery", + "weight": 38, "cookies": false, "type": "", "deprecated": false, @@ -1616,9 +1567,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1659,7 +1607,7 @@ ] }, "put": { - "summary": "Create password recovery (confirmation)", + "summary": "Update password recovery (confirmation)", "operationId": "accountUpdateRecovery", "consumes": [ "application\/json" @@ -1681,7 +1629,8 @@ }, "x-appwrite": { "method": "updateRecovery", - "weight": 38, + "group": "recovery", + "weight": 39, "cookies": false, "type": "", "deprecated": false, @@ -1696,9 +1645,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1750,9 +1696,7 @@ "get": { "summary": "List sessions", "operationId": "accountListSessions", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -1770,7 +1714,8 @@ }, "x-appwrite": { "method": "listSessions", - "weight": 10, + "group": "sessions", + "weight": 11, "cookies": false, "type": "", "deprecated": false, @@ -1785,9 +1730,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/sessions", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1818,7 +1760,8 @@ }, "x-appwrite": { "method": "deleteSessions", - "weight": 11, + "group": "sessions", + "weight": 12, "cookies": false, "type": "", "deprecated": false, @@ -1833,9 +1776,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1873,7 +1813,8 @@ }, "x-appwrite": { "method": "createAnonymousSession", - "weight": 16, + "group": "sessions", + "weight": 17, "cookies": false, "type": "", "deprecated": false, @@ -1888,9 +1829,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1926,7 +1864,8 @@ }, "x-appwrite": { "method": "createEmailPasswordSession", - "weight": 15, + "group": "sessions", + "weight": 16, "cookies": false, "type": "", "deprecated": false, @@ -1941,9 +1880,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2006,7 +1942,8 @@ }, "x-appwrite": { "method": "updateMagicURLSession", - "weight": 25, + "group": "sessions", + "weight": 26, "cookies": false, "type": "", "deprecated": true, @@ -2021,9 +1958,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2066,9 +2000,7 @@ "get": { "summary": "Create OAuth2 session", "operationId": "accountCreateOAuth2Session", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "text\/html" ], @@ -2083,7 +2015,8 @@ }, "x-appwrite": { "method": "createOAuth2Session", - "weight": 18, + "group": "sessions", + "weight": 19, "cookies": false, "type": "webAuth", "deprecated": false, @@ -2098,9 +2031,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2113,7 +2043,7 @@ "parameters": [ { "name": "provider", - "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", + "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", "required": true, "type": "string", "x-example": "amazon", @@ -2132,6 +2062,7 @@ "dropbox", "etsy", "facebook", + "figma", "github", "gitlab", "google", @@ -2221,7 +2152,8 @@ }, "x-appwrite": { "method": "updatePhoneSession", - "weight": 26, + "group": "sessions", + "weight": 27, "cookies": false, "type": "", "deprecated": true, @@ -2236,9 +2168,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2301,7 +2230,8 @@ }, "x-appwrite": { "method": "createSession", - "weight": 17, + "group": "sessions", + "weight": 18, "cookies": false, "type": "", "deprecated": false, @@ -2316,9 +2246,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2361,9 +2288,7 @@ "get": { "summary": "Get session", "operationId": "accountGetSession", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -2381,7 +2306,8 @@ }, "x-appwrite": { "method": "getSession", - "weight": 12, + "group": "sessions", + "weight": 13, "cookies": false, "type": "", "deprecated": false, @@ -2396,9 +2322,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/sessions", - "offline-key": "{sessionId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2444,7 +2367,8 @@ }, "x-appwrite": { "method": "updateSession", - "weight": 14, + "group": "sessions", + "weight": 15, "cookies": false, "type": "", "deprecated": false, @@ -2459,9 +2383,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2502,7 +2423,8 @@ }, "x-appwrite": { "method": "deleteSession", - "weight": 13, + "group": "sessions", + "weight": 14, "cookies": false, "type": "", "deprecated": false, @@ -2517,9 +2439,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2567,7 +2486,8 @@ }, "x-appwrite": { "method": "updateStatus", - "weight": 36, + "group": "account", + "weight": 37, "cookies": false, "type": "", "deprecated": false, @@ -2582,9 +2502,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2611,7 +2528,7 @@ "tags": [ "account" ], - "description": "", + "description": "Use this endpoint to register a device for push notifications. Provide a target ID (custom or generated using ID.unique()), a device identifier (usually a device token), and optionally specify which provider should send notifications to this target. The target is automatically linked to the current session and includes device information like brand and model.", "responses": { "201": { "description": "Target", @@ -2622,12 +2539,13 @@ }, "x-appwrite": { "method": "createPushTarget", - "weight": 53, + "group": "pushTargets", + "weight": 54, "cookies": false, "type": "", "deprecated": false, "demo": "account\/create-push-target.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-push-target.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -2636,9 +2554,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2697,7 +2612,7 @@ "tags": [ "account" ], - "description": "", + "description": "Update the currently logged in user's push notification target. You can modify the target's identifier (device token) and provider ID (token, email, phone etc.). The target must exist and belong to the current user. If you change the provider ID, notifications will be sent through the new messaging provider instead.", "responses": { "200": { "description": "Target", @@ -2708,12 +2623,13 @@ }, "x-appwrite": { "method": "updatePushTarget", - "weight": 54, + "group": "pushTargets", + "weight": 55, "cookies": false, "type": "", "deprecated": false, "demo": "account\/update-push-target.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-push-target.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -2722,9 +2638,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2770,13 +2683,11 @@ "consumes": [ "application\/json" ], - "produces": [ - "application\/json" - ], + "produces": [], "tags": [ "account" ], - "description": "", + "description": "Delete a push notification target for the currently logged in user. After deletion, the device will no longer receive push notifications. The target must exist and belong to the current user.", "responses": { "204": { "description": "No content" @@ -2784,12 +2695,13 @@ }, "x-appwrite": { "method": "deletePushTarget", - "weight": 55, + "group": "pushTargets", + "weight": 56, "cookies": false, "type": "", "deprecated": false, "demo": "account\/delete-push-target.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/delete-push-target.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -2798,9 +2710,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2847,7 +2756,8 @@ }, "x-appwrite": { "method": "createEmailToken", - "weight": 24, + "group": "tokens", + "weight": 25, "cookies": false, "type": "", "deprecated": false, @@ -2855,16 +2765,16 @@ "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-email.md", "rate-limit": 10, "rate-time": 3600, - "rate-key": "url:{url},email:{param-email}", + "rate-key": [ + "url:{url},email:{param-email}", + "url:{url},ip:{ip}" + ], "scope": "sessions.write", "platforms": [ "server", "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2922,7 +2832,7 @@ "tags": [ "account" ], - "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. 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 [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) 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.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", + "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. 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 [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) endpoint to complete the login process. The link sent to the user's email address is valid for 1 hour.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", "responses": { "201": { "description": "Token", @@ -2933,7 +2843,8 @@ }, "x-appwrite": { "method": "createMagicURLToken", - "weight": 23, + "group": "tokens", + "weight": 24, "cookies": false, "type": "", "deprecated": false, @@ -2951,9 +2862,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3008,9 +2916,7 @@ "get": { "summary": "Create OAuth2 token", "operationId": "accountCreateOAuth2Token", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "text\/html" ], @@ -3025,7 +2931,8 @@ }, "x-appwrite": { "method": "createOAuth2Token", - "weight": 22, + "group": "tokens", + "weight": 23, "cookies": false, "type": "webAuth", "deprecated": false, @@ -3040,9 +2947,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3055,7 +2959,7 @@ "parameters": [ { "name": "provider", - "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", + "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", "required": true, "type": "string", "x-example": "amazon", @@ -3074,6 +2978,7 @@ "dropbox", "etsy", "facebook", + "figma", "github", "gitlab", "google", @@ -3163,7 +3068,8 @@ }, "x-appwrite": { "method": "createPhoneToken", - "weight": 27, + "group": "tokens", + "weight": 28, "cookies": false, "type": "", "deprecated": false, @@ -3181,9 +3087,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3246,7 +3149,8 @@ }, "x-appwrite": { "method": "createVerification", - "weight": 39, + "group": "verification", + "weight": 40, "cookies": false, "type": "", "deprecated": false, @@ -3261,9 +3165,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3297,7 +3198,7 @@ ] }, "put": { - "summary": "Create email verification (confirmation)", + "summary": "Update email verification (confirmation)", "operationId": "accountUpdateVerification", "consumes": [ "application\/json" @@ -3319,7 +3220,8 @@ }, "x-appwrite": { "method": "updateVerification", - "weight": 40, + "group": "verification", + "weight": 41, "cookies": false, "type": "", "deprecated": false, @@ -3334,9 +3236,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3401,7 +3300,8 @@ }, "x-appwrite": { "method": "createPhoneVerification", - "weight": 41, + "group": "verification", + "weight": 42, "cookies": false, "type": "", "deprecated": false, @@ -3419,9 +3319,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3457,7 +3354,8 @@ }, "x-appwrite": { "method": "updatePhoneVerification", - "weight": 42, + "group": "verification", + "weight": 43, "cookies": false, "type": "", "deprecated": false, @@ -3472,9 +3370,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3519,9 +3414,7 @@ "get": { "summary": "Get browser icon", "operationId": "avatarsGetBrowser", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/png" ], @@ -3539,7 +3432,8 @@ }, "x-appwrite": { "method": "getBrowser", - "weight": 59, + "group": null, + "weight": 60, "cookies": false, "type": "location", "deprecated": false, @@ -3555,9 +3449,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3648,9 +3539,7 @@ "get": { "summary": "Get credit card icon", "operationId": "avatarsGetCreditCard", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/png" ], @@ -3668,7 +3557,8 @@ }, "x-appwrite": { "method": "getCreditCard", - "weight": 58, + "group": null, + "weight": 59, "cookies": false, "type": "location", "deprecated": false, @@ -3684,9 +3574,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3701,7 +3588,7 @@ "parameters": [ { "name": "code", - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro.", + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", "required": true, "type": "string", "x-example": "amex", @@ -3721,7 +3608,8 @@ "union-china-pay", "visa", "mir", - "maestro" + "maestro", + "rupay" ], "x-enum-name": "CreditCard", "x-enum-keys": [ @@ -3740,7 +3628,8 @@ "Union China Pay", "Visa", "MIR", - "Maestro" + "Maestro", + "Rupay" ], "in": "path" }, @@ -3781,9 +3670,7 @@ "get": { "summary": "Get favicon", "operationId": "avatarsGetFavicon", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/*" ], @@ -3801,7 +3688,8 @@ }, "x-appwrite": { "method": "getFavicon", - "weight": 62, + "group": null, + "weight": 63, "cookies": false, "type": "location", "deprecated": false, @@ -3817,9 +3705,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3848,9 +3733,7 @@ "get": { "summary": "Get country flag", "operationId": "avatarsGetFlag", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/png" ], @@ -3868,7 +3751,8 @@ }, "x-appwrite": { "method": "getFlag", - "weight": 60, + "group": null, + "weight": 61, "cookies": false, "type": "location", "deprecated": false, @@ -3884,9 +3768,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4339,9 +4220,7 @@ "get": { "summary": "Get image from URL", "operationId": "avatarsGetImage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/*" ], @@ -4359,7 +4238,8 @@ }, "x-appwrite": { "method": "getImage", - "weight": 61, + "group": null, + "weight": 62, "cookies": false, "type": "location", "deprecated": false, @@ -4375,9 +4255,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4426,9 +4303,7 @@ "get": { "summary": "Get user initials", "operationId": "avatarsGetInitials", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/png" ], @@ -4446,7 +4321,8 @@ }, "x-appwrite": { "method": "getInitials", - "weight": 64, + "group": null, + "weight": 65, "cookies": false, "type": "location", "deprecated": false, @@ -4462,9 +4338,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4521,9 +4394,7 @@ "get": { "summary": "Get QR code", "operationId": "avatarsGetQR", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/png" ], @@ -4541,7 +4412,8 @@ }, "x-appwrite": { "method": "getQR", - "weight": 63, + "group": null, + "weight": 64, "cookies": false, "type": "location", "deprecated": false, @@ -4557,9 +4429,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4616,9 +4485,7 @@ "get": { "summary": "List documents", "operationId": "databasesListDocuments", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -4636,7 +4503,8 @@ }, "x-appwrite": { "method": "listDocuments", - "weight": 108, + "group": "documents", + "weight": 109, "cookies": false, "type": "", "deprecated": false, @@ -4652,9 +4520,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4720,7 +4585,8 @@ }, "x-appwrite": { "method": "createDocument", - "weight": 107, + "group": "documents", + "weight": 108, "cookies": false, "type": "", "deprecated": false, @@ -4736,9 +4602,31 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", + "methods": [ + { + "name": "createDocument", + "parameters": [ + "databaseId", + "collectionId", + "documentId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "collectionId", + "documentId", + "data" + ], + "responses": [ + { + "code": 201, + "model": "#\/definitions\/document" + } + ], + "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + } + ], "auth": { "Project": [] } @@ -4776,13 +4664,13 @@ "documentId": { "type": "string", "description": "Document ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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, + "default": "", "x-example": "" }, "data": { "type": "object", "description": "Document data as JSON object.", - "default": {}, + "default": [], "x-example": "{}" }, "permissions": { @@ -4793,12 +4681,17 @@ "items": { "type": "string" } + }, + "documents": { + "type": "array", + "description": "Array of documents data as JSON objects.", + "default": [], + "x-example": null, + "items": { + "type": "object" + } } - }, - "required": [ - "documentId", - "data" - ] + } } } ] @@ -4808,9 +4701,7 @@ "get": { "summary": "Get document", "operationId": "databasesGetDocument", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -4828,7 +4719,8 @@ }, "x-appwrite": { "method": "getDocument", - "weight": 109, + "group": "documents", + "weight": 110, "cookies": false, "type": "", "deprecated": false, @@ -4844,9 +4736,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4920,7 +4809,8 @@ }, "x-appwrite": { "method": "updateDocument", - "weight": 111, + "group": "documents", + "weight": 112, "cookies": false, "type": "", "deprecated": false, @@ -4936,9 +4826,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5019,7 +4906,8 @@ }, "x-appwrite": { "method": "deleteDocument", - "weight": 112, + "group": "documents", + "weight": 115, "cookies": false, "type": "", "deprecated": false, @@ -5035,9 +4923,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5081,9 +4966,7 @@ "get": { "summary": "List executions", "operationId": "functionsListExecutions", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -5101,7 +4984,8 @@ }, "x-appwrite": { "method": "listExecutions", - "weight": 304, + "group": "executions", + "weight": 308, "cookies": false, "type": "", "deprecated": false, @@ -5117,9 +5001,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5167,7 +5048,7 @@ "summary": "Create execution", "operationId": "functionsCreateExecution", "consumes": [ - "multipart\/form-data" + "application\/json" ], "produces": [ "multipart\/form-data" @@ -5186,7 +5067,8 @@ }, "x-appwrite": { "method": "createExecution", - "weight": 303, + "group": "executions", + "weight": 307, "cookies": false, "type": "", "deprecated": false, @@ -5202,9 +5084,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5226,65 +5105,59 @@ "in": "path" }, { - "name": "body", - "description": "HTTP body of execution. Default value is empty string.", - "required": false, - "type": "payload", - "default": "", - "in": "formData" - }, - { - "name": "async", - "description": "Execute code in the background. Default value is false.", - "required": false, - "type": "boolean", - "x-example": false, - "default": false, - "in": "formData" - }, - { - "name": "path", - "description": "HTTP path of execution. Path can include query params. Default value is \/", - "required": false, - "type": "string", - "x-example": "", - "default": "\/", - "in": "formData" - }, - { - "name": "method", - "description": "HTTP method of execution. Default value is GET.", - "required": false, - "type": "string", - "x-example": "GET", - "enum": [ - "GET", - "POST", - "PUT", - "PATCH", - "DELETE", - "OPTIONS" - ], - "x-enum-name": "ExecutionMethod", - "x-enum-keys": [], - "default": "POST", - "in": "formData" - }, - { - "name": "headers", - "description": "HTTP headers of execution. Defaults to empty.", - "required": false, - "type": "object", - "default": [], - "x-example": "{}", - "in": "formData" - }, - { - "name": "scheduledAt", - "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", - "required": false, - "type": "string", - "in": "formData" + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "body": { + "type": "string", + "description": "HTTP body of execution. Default value is empty string.", + "default": "", + "x-example": "" + }, + "async": { + "type": "boolean", + "description": "Execute code in the background. Default value is false.", + "default": false, + "x-example": false + }, + "path": { + "type": "string", + "description": "HTTP path of execution. Path can include query params. Default value is \/", + "default": "\/", + "x-example": "" + }, + "method": { + "type": "string", + "description": "HTTP method of execution. Default value is GET.", + "default": "POST", + "x-example": "GET", + "enum": [ + "GET", + "POST", + "PUT", + "PATCH", + "DELETE", + "OPTIONS" + ], + "x-enum-name": "ExecutionMethod", + "x-enum-keys": [] + }, + "headers": { + "type": "object", + "description": "HTTP headers of execution. Defaults to empty.", + "default": [], + "x-example": "{}" + }, + "scheduledAt": { + "type": "string", + "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", + "default": null, + "x-example": null + } + } + } } ] } @@ -5293,9 +5166,7 @@ "get": { "summary": "Get execution", "operationId": "functionsGetExecution", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -5313,7 +5184,8 @@ }, "x-appwrite": { "method": "getExecution", - "weight": 305, + "group": "executions", + "weight": 309, "cookies": false, "type": "", "deprecated": false, @@ -5329,9 +5201,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5387,7 +5256,8 @@ }, "x-appwrite": { "method": "query", - "weight": 329, + "group": "graphql", + "weight": 333, "cookies": false, "type": "graphql", "deprecated": false, @@ -5403,9 +5273,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5463,7 +5330,8 @@ }, "x-appwrite": { "method": "mutation", - "weight": 328, + "group": "graphql", + "weight": 332, "cookies": false, "type": "graphql", "deprecated": false, @@ -5479,9 +5347,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5519,9 +5384,7 @@ "get": { "summary": "Get user locale", "operationId": "localeGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -5539,7 +5402,8 @@ }, "x-appwrite": { "method": "get", - "weight": 116, + "group": null, + "weight": 120, "cookies": false, "type": "", "deprecated": false, @@ -5555,9 +5419,6 @@ "server" ], "packaging": false, - "offline-model": "\/localed", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5573,11 +5434,9 @@ }, "\/locale\/codes": { "get": { - "summary": "List Locale Codes", + "summary": "List locale codes", "operationId": "localeListCodes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -5595,7 +5454,8 @@ }, "x-appwrite": { "method": "listCodes", - "weight": 117, + "group": null, + "weight": 121, "cookies": false, "type": "", "deprecated": false, @@ -5611,9 +5471,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/localeCode", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5631,9 +5488,7 @@ "get": { "summary": "List continents", "operationId": "localeListContinents", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -5651,7 +5506,8 @@ }, "x-appwrite": { "method": "listContinents", - "weight": 121, + "group": null, + "weight": 125, "cookies": false, "type": "", "deprecated": false, @@ -5667,9 +5523,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/continents", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -5687,9 +5540,7 @@ "get": { "summary": "List countries", "operationId": "localeListCountries", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -5707,7 +5558,8 @@ }, "x-appwrite": { "method": "listCountries", - "weight": 118, + "group": null, + "weight": 122, "cookies": false, "type": "", "deprecated": false, @@ -5723,9 +5575,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -5743,9 +5592,7 @@ "get": { "summary": "List EU countries", "operationId": "localeListCountriesEU", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -5763,7 +5610,8 @@ }, "x-appwrite": { "method": "listCountriesEU", - "weight": 119, + "group": null, + "weight": 123, "cookies": false, "type": "", "deprecated": false, @@ -5779,9 +5627,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries\/eu", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -5799,9 +5644,7 @@ "get": { "summary": "List countries phone codes", "operationId": "localeListCountriesPhones", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -5819,7 +5662,8 @@ }, "x-appwrite": { "method": "listCountriesPhones", - "weight": 120, + "group": null, + "weight": 124, "cookies": false, "type": "", "deprecated": false, @@ -5835,9 +5679,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries\/phones", - "offline-key": "", - "offline-response-key": "countryCode", "auth": { "Project": [] } @@ -5855,9 +5696,7 @@ "get": { "summary": "List currencies", "operationId": "localeListCurrencies", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -5875,7 +5714,8 @@ }, "x-appwrite": { "method": "listCurrencies", - "weight": 122, + "group": null, + "weight": 126, "cookies": false, "type": "", "deprecated": false, @@ -5891,9 +5731,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/currencies", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -5911,9 +5748,7 @@ "get": { "summary": "List languages", "operationId": "localeListLanguages", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -5931,7 +5766,8 @@ }, "x-appwrite": { "method": "listLanguages", - "weight": 123, + "group": null, + "weight": 127, "cookies": false, "type": "", "deprecated": false, @@ -5947,9 +5783,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/languages", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -5987,7 +5820,8 @@ }, "x-appwrite": { "method": "createSubscriber", - "weight": 380, + "group": "subscribers", + "weight": 378, "cookies": false, "type": "", "deprecated": false, @@ -6004,9 +5838,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6062,9 +5893,7 @@ "consumes": [ "application\/json" ], - "produces": [ - "application\/json" - ], + "produces": [], "tags": [ "messaging" ], @@ -6076,7 +5905,8 @@ }, "x-appwrite": { "method": "deleteSubscriber", - "weight": 384, + "group": "subscribers", + "weight": 382, "cookies": false, "type": "", "deprecated": false, @@ -6093,9 +5923,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6131,9 +5958,7 @@ "get": { "summary": "List files", "operationId": "storageListFiles", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -6151,7 +5976,8 @@ }, "x-appwrite": { "method": "listFiles", - "weight": 206, + "group": "files", + "weight": 210, "cookies": false, "type": "", "deprecated": false, @@ -6167,9 +5993,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6236,7 +6059,8 @@ }, "x-appwrite": { "method": "createFile", - "weight": 205, + "group": "files", + "weight": 209, "cookies": false, "type": "upload", "deprecated": false, @@ -6252,9 +6076,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6310,9 +6131,7 @@ "get": { "summary": "Get file", "operationId": "storageGetFile", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -6330,7 +6149,8 @@ }, "x-appwrite": { "method": "getFile", - "weight": 207, + "group": "files", + "weight": 211, "cookies": false, "type": "", "deprecated": false, @@ -6346,9 +6166,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6402,7 +6219,8 @@ }, "x-appwrite": { "method": "updateFile", - "weight": 212, + "group": "files", + "weight": 216, "cookies": false, "type": "", "deprecated": false, @@ -6418,9 +6236,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6476,7 +6291,7 @@ ] }, "delete": { - "summary": "Delete File", + "summary": "Delete file", "operationId": "storageDeleteFile", "consumes": [ "application\/json" @@ -6493,7 +6308,8 @@ }, "x-appwrite": { "method": "deleteFile", - "weight": 213, + "group": "files", + "weight": 217, "cookies": false, "type": "", "deprecated": false, @@ -6509,9 +6325,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6547,9 +6360,7 @@ "get": { "summary": "Get file for download", "operationId": "storageGetFileDownload", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "*\/*" ], @@ -6567,7 +6378,8 @@ }, "x-appwrite": { "method": "getFileDownload", - "weight": 209, + "group": "files", + "weight": 213, "cookies": false, "type": "location", "deprecated": false, @@ -6583,9 +6395,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6621,9 +6430,7 @@ "get": { "summary": "Get file preview", "operationId": "storageGetFilePreview", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/*" ], @@ -6641,7 +6448,8 @@ }, "x-appwrite": { "method": "getFilePreview", - "weight": 208, + "group": "files", + "weight": 212, "cookies": false, "type": "location", "deprecated": false, @@ -6657,9 +6465,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6807,7 +6612,9 @@ "jpeg", "gif", "png", - "webp" + "webp", + "heic", + "avif" ], "x-enum-name": "ImageFormat", "x-enum-keys": [], @@ -6821,9 +6628,7 @@ "get": { "summary": "Get file for view", "operationId": "storageGetFileView", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "*\/*" ], @@ -6841,7 +6646,8 @@ }, "x-appwrite": { "method": "getFileView", - "weight": 210, + "group": "files", + "weight": 214, "cookies": false, "type": "location", "deprecated": false, @@ -6857,9 +6663,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6895,9 +6698,7 @@ "get": { "summary": "List teams", "operationId": "teamsList", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -6915,7 +6716,8 @@ }, "x-appwrite": { "method": "list", - "weight": 217, + "group": "teams", + "weight": 221, "cookies": false, "type": "", "deprecated": false, @@ -6931,9 +6733,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6992,7 +6791,8 @@ }, "x-appwrite": { "method": "create", - "weight": 216, + "group": "teams", + "weight": 220, "cookies": false, "type": "", "deprecated": false, @@ -7008,9 +6808,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7066,9 +6863,7 @@ "get": { "summary": "Get team", "operationId": "teamsGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -7086,7 +6881,8 @@ }, "x-appwrite": { "method": "get", - "weight": 218, + "group": "teams", + "weight": 222, "cookies": false, "type": "", "deprecated": false, @@ -7102,9 +6898,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "{teamId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7150,7 +6943,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 220, + "group": "teams", + "weight": 224, "cookies": false, "type": "", "deprecated": false, @@ -7166,9 +6960,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "{teamId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7227,7 +7018,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 222, + "group": "teams", + "weight": 226, "cookies": false, "type": "", "deprecated": false, @@ -7243,9 +7035,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7273,16 +7062,14 @@ "get": { "summary": "List team memberships", "operationId": "teamsListMemberships", - "consumes": [ - "application\/json" - ], + "consumes": [], "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.", + "description": "Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint. Hide sensitive attributes from the response by toggling membership privacy in the Console.", "responses": { "200": { "description": "Memberships List", @@ -7293,7 +7080,8 @@ }, "x-appwrite": { "method": "listMemberships", - "weight": 224, + "group": "memberships", + "weight": 228, "cookies": false, "type": "", "deprecated": false, @@ -7309,9 +7097,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/memberships", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7378,7 +7163,8 @@ }, "x-appwrite": { "method": "createMembership", - "weight": 223, + "group": "memberships", + "weight": 227, "cookies": false, "type": "", "deprecated": false, @@ -7394,9 +7180,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7475,16 +7258,14 @@ "get": { "summary": "Get team membership", "operationId": "teamsGetMembership", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "teams" ], - "description": "Get a team member by the membership unique id. All team members have read access for this resource.", + "description": "Get a team member by the membership unique id. All team members have read access for this resource. Hide sensitive attributes from the response by toggling membership privacy in the Console.", "responses": { "200": { "description": "Membership", @@ -7495,7 +7276,8 @@ }, "x-appwrite": { "method": "getMembership", - "weight": 225, + "group": "memberships", + "weight": 229, "cookies": false, "type": "", "deprecated": false, @@ -7511,9 +7293,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/memberships", - "offline-key": "{membershipId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7567,7 +7346,8 @@ }, "x-appwrite": { "method": "updateMembership", - "weight": 226, + "group": "memberships", + "weight": 230, "cookies": false, "type": "", "deprecated": false, @@ -7583,9 +7363,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7655,7 +7432,8 @@ }, "x-appwrite": { "method": "deleteMembership", - "weight": 228, + "group": "memberships", + "weight": 232, "cookies": false, "type": "", "deprecated": false, @@ -7671,9 +7449,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7729,7 +7504,8 @@ }, "x-appwrite": { "method": "updateMembershipStatus", - "weight": 227, + "group": "memberships", + "weight": 231, "cookies": false, "type": "", "deprecated": false, @@ -7744,9 +7520,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7807,9 +7580,7 @@ "get": { "summary": "Get team preferences", "operationId": "teamsGetPrefs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -7827,7 +7598,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 219, + "group": "teams", + "weight": 223, "cookies": false, "type": "", "deprecated": false, @@ -7842,9 +7614,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/prefs", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7890,7 +7659,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 221, + "group": "teams", + "weight": 225, "cookies": false, "type": "", "deprecated": false, @@ -7905,9 +7675,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/prefs", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7953,85 +7720,67 @@ "tags": [ { "name": "account", - "description": "The Account service allows you to authenticate and manage a user account.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Avatars service aims to help you complete everyday tasks related to your app image, icons, and avatars." }, { "name": "databases", - "description": "The Databases service allows you to create structured collections of documents, query and filter lists of documents", - "x-globalAttributes": [ - "databaseId" - ] + "description": "The Databases 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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Project service allows you to manage all the projects in your Appwrite server." }, { "name": "project", - "description": "The Project service allows you to manage all the projects in your Appwrite server.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Functions Service allows you view, create and manage your Cloud Functions." }, { "name": "proxy", - "description": "The Proxy Service allows you to configure actions for your domains beyond DNS configuration.", - "x-globalAttributes": [] + "description": "The Proxy Service allows you to configure actions for your domains beyond DNS configuration." }, { "name": "graphql", - "description": "The GraphQL API allows you to query and mutate your Appwrite server using GraphQL.", - "x-globalAttributes": [] + "description": "The GraphQL API allows you to query and mutate your Appwrite server using GraphQL." }, { "name": "console", - "description": "The Console service allows you to interact with console relevant informations.", - "x-globalAttributes": [] + "description": "The Console service allows you to interact with console relevant informations." }, { "name": "migrations", - "description": "The Migrations service allows you to migrate third-party data to your Appwrite project.", - "x-globalAttributes": [] + "description": "The Migrations service allows you to migrate third-party data to your Appwrite project." }, { "name": "messaging", - "description": "The Messaging service allows you to send messages to any provider type (SMTP, push notification, SMS, etc.).", - "x-globalAttributes": [] + "description": "The Messaging service allows you to send messages to any provider type (SMTP, push notification, SMS, etc.)." } ], "definitions": { @@ -9450,12 +9199,12 @@ }, "userName": { "type": "string", - "description": "User name.", + "description": "User name. Hide this attribute by toggling membership privacy in the Console.", "x-example": "John Doe" }, "userEmail": { "type": "string", - "description": "User email address.", + "description": "User email address. Hide this attribute by toggling membership privacy in the Console.", "x-example": "john@appwrite.io" }, "teamId": { @@ -9485,7 +9234,7 @@ }, "mfa": { "type": "boolean", - "description": "Multi factor authentication status, true if the user has MFA enabled or false otherwise.", + "description": "Multi factor authentication status, true if the user has MFA enabled or false otherwise. Hide this attribute by toggling membership privacy in the Console.", "x-example": false }, "roles": { @@ -9591,7 +9340,7 @@ "responseBody": { "type": "string", "description": "HTTP response body. This will return empty unless execution is created as synchronous.", - "x-example": "Developers are awesome." + "x-example": "" }, "responseHeaders": { "type": "array", @@ -10013,7 +9762,7 @@ "name": { "type": "string", "description": "Target Name.", - "x-example": "Aegon apple token" + "x-example": "Apple iPhone 12" }, "userId": { "type": "string", @@ -10035,6 +9784,11 @@ "type": "string", "description": "The target identifier.", "x-example": "token" + }, + "expired": { + "type": "boolean", + "description": "Is the target expired.", + "x-example": false } }, "required": [ @@ -10044,7 +9798,8 @@ "name", "userId", "providerType", - "identifier" + "identifier", + "expired" ] } }, diff --git a/app/config/specs/swagger2-1.6.x-console.json b/app/config/specs/swagger2-1.6.x-console.json index 51935a5e011..5b61ba75d6a 100644 --- a/app/config/specs/swagger2-1.6.x-console.json +++ b/app/config/specs/swagger2-1.6.x-console.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "1.6.0", + "version": "1.6.2", "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", @@ -16,6 +16,7 @@ } }, "host": "cloud.appwrite.io", + "x-host-docs": ".cloud.appwrite.io", "basePath": "\/v1", "schemes": [ "https" @@ -79,9 +80,7 @@ "get": { "summary": "Get account", "operationId": "accountGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -99,7 +98,8 @@ }, "x-appwrite": { "method": "get", - "weight": 8, + "group": "account", + "weight": 9, "cookies": false, "type": "", "deprecated": false, @@ -114,9 +114,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -151,7 +148,8 @@ }, "x-appwrite": { "method": "create", - "weight": 7, + "group": "account", + "weight": 8, "cookies": false, "type": "", "deprecated": false, @@ -166,9 +164,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -237,7 +232,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 9, + "group": "account", + "weight": 10, "cookies": false, "type": "", "deprecated": false, @@ -251,9 +247,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -289,7 +282,8 @@ }, "x-appwrite": { "method": "updateEmail", - "weight": 33, + "group": "account", + "weight": 34, "cookies": false, "type": "", "deprecated": false, @@ -304,9 +298,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -348,11 +339,9 @@ }, "\/account\/identities": { "get": { - "summary": "List Identities", + "summary": "List identities", "operationId": "accountListIdentities", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -370,7 +359,8 @@ }, "x-appwrite": { "method": "listIdentities", - "weight": 56, + "group": "identities", + "weight": 57, "cookies": false, "type": "", "deprecated": false, @@ -385,9 +375,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/identities", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -433,7 +420,8 @@ }, "x-appwrite": { "method": "deleteIdentity", - "weight": 57, + "group": "identities", + "weight": 58, "cookies": false, "type": "", "deprecated": false, @@ -448,9 +436,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -497,7 +482,8 @@ }, "x-appwrite": { "method": "createJWT", - "weight": 28, + "group": "tokens", + "weight": 29, "cookies": false, "type": "", "deprecated": false, @@ -512,9 +498,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -530,9 +513,7 @@ "get": { "summary": "List logs", "operationId": "accountListLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -550,7 +531,8 @@ }, "x-appwrite": { "method": "listLogs", - "weight": 30, + "group": "logs", + "weight": 31, "cookies": false, "type": "", "deprecated": false, @@ -565,9 +547,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -618,7 +597,8 @@ }, "x-appwrite": { "method": "updateMFA", - "weight": 43, + "group": "mfa", + "weight": 44, "cookies": false, "type": "", "deprecated": false, @@ -633,9 +613,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -670,7 +647,7 @@ }, "\/account\/mfa\/authenticators\/{type}": { "post": { - "summary": "Create Authenticator", + "summary": "Create authenticator", "operationId": "accountCreateMfaAuthenticator", "consumes": [ "application\/json" @@ -692,7 +669,8 @@ }, "x-appwrite": { "method": "createMfaAuthenticator", - "weight": 45, + "group": "mfa", + "weight": 46, "cookies": false, "type": "", "deprecated": false, @@ -707,9 +685,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -737,7 +712,7 @@ ] }, "put": { - "summary": "Verify Authenticator", + "summary": "Update authenticator (confirmation)", "operationId": "accountUpdateMfaAuthenticator", "consumes": [ "application\/json" @@ -759,7 +734,8 @@ }, "x-appwrite": { "method": "updateMfaAuthenticator", - "weight": 46, + "group": "mfa", + "weight": 47, "cookies": false, "type": "", "deprecated": false, @@ -774,9 +750,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -822,7 +795,7 @@ ] }, "delete": { - "summary": "Delete Authenticator", + "summary": "Delete authenticator", "operationId": "accountDeleteMfaAuthenticator", "consumes": [ "application\/json" @@ -839,7 +812,8 @@ }, "x-appwrite": { "method": "deleteMfaAuthenticator", - "weight": 50, + "group": "mfa", + "weight": 51, "cookies": false, "type": "", "deprecated": false, @@ -854,9 +828,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -886,7 +857,7 @@ }, "\/account\/mfa\/challenge": { "post": { - "summary": "Create MFA Challenge", + "summary": "Create MFA challenge", "operationId": "accountCreateMfaChallenge", "consumes": [ "application\/json" @@ -908,7 +879,8 @@ }, "x-appwrite": { "method": "createMfaChallenge", - "weight": 51, + "group": "mfa", + "weight": 52, "cookies": false, "type": "", "deprecated": false, @@ -923,9 +895,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -965,24 +934,30 @@ ] }, "put": { - "summary": "Create MFA Challenge (confirmation)", + "summary": "Update MFA challenge (confirmation)", "operationId": "accountUpdateMfaChallenge", "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "account" ], "description": "Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", "responses": { - "204": { - "description": "No content" + "200": { + "description": "Session", + "schema": { + "$ref": "#\/definitions\/session" + } } }, "x-appwrite": { "method": "updateMfaChallenge", - "weight": 52, + "group": "mfa", + "weight": 53, "cookies": false, "type": "", "deprecated": false, @@ -997,9 +972,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1041,11 +1013,9 @@ }, "\/account\/mfa\/factors": { "get": { - "summary": "List Factors", + "summary": "List factors", "operationId": "accountListMfaFactors", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -1063,7 +1033,8 @@ }, "x-appwrite": { "method": "listMfaFactors", - "weight": 44, + "group": "mfa", + "weight": 45, "cookies": false, "type": "", "deprecated": false, @@ -1078,9 +1049,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1095,11 +1063,9 @@ }, "\/account\/mfa\/recovery-codes": { "get": { - "summary": "Get MFA Recovery Codes", + "summary": "List MFA recovery codes", "operationId": "accountGetMfaRecoveryCodes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -1117,7 +1083,8 @@ }, "x-appwrite": { "method": "getMfaRecoveryCodes", - "weight": 49, + "group": "mfa", + "weight": 50, "cookies": false, "type": "", "deprecated": false, @@ -1132,9 +1099,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1147,7 +1111,7 @@ ] }, "post": { - "summary": "Create MFA Recovery Codes", + "summary": "Create MFA recovery codes", "operationId": "accountCreateMfaRecoveryCodes", "consumes": [ "application\/json" @@ -1169,7 +1133,8 @@ }, "x-appwrite": { "method": "createMfaRecoveryCodes", - "weight": 47, + "group": "mfa", + "weight": 48, "cookies": false, "type": "", "deprecated": false, @@ -1184,9 +1149,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1199,7 +1161,7 @@ ] }, "patch": { - "summary": "Regenerate MFA Recovery Codes", + "summary": "Update MFA recovery codes (regenerate)", "operationId": "accountUpdateMfaRecoveryCodes", "consumes": [ "application\/json" @@ -1221,7 +1183,8 @@ }, "x-appwrite": { "method": "updateMfaRecoveryCodes", - "weight": 48, + "group": "mfa", + "weight": 49, "cookies": false, "type": "", "deprecated": false, @@ -1236,9 +1199,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1275,7 +1235,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 31, + "group": "account", + "weight": 32, "cookies": false, "type": "", "deprecated": false, @@ -1290,9 +1251,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1349,7 +1307,8 @@ }, "x-appwrite": { "method": "updatePassword", - "weight": 32, + "group": "account", + "weight": 33, "cookies": false, "type": "", "deprecated": false, @@ -1364,9 +1323,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1429,7 +1385,8 @@ }, "x-appwrite": { "method": "updatePhone", - "weight": 34, + "group": "account", + "weight": 35, "cookies": false, "type": "", "deprecated": false, @@ -1444,9 +1401,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1490,9 +1444,7 @@ "get": { "summary": "Get account preferences", "operationId": "accountGetPrefs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -1510,7 +1462,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 29, + "group": "account", + "weight": 30, "cookies": false, "type": "", "deprecated": false, @@ -1525,9 +1478,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/prefs", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1562,7 +1512,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 35, + "group": "account", + "weight": 36, "cookies": false, "type": "", "deprecated": false, @@ -1577,9 +1528,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/prefs", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1636,7 +1584,8 @@ }, "x-appwrite": { "method": "createRecovery", - "weight": 37, + "group": "recovery", + "weight": 38, "cookies": false, "type": "", "deprecated": false, @@ -1654,9 +1603,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1696,7 +1642,7 @@ ] }, "put": { - "summary": "Create password recovery (confirmation)", + "summary": "Update password recovery (confirmation)", "operationId": "accountUpdateRecovery", "consumes": [ "application\/json" @@ -1718,7 +1664,8 @@ }, "x-appwrite": { "method": "updateRecovery", - "weight": 38, + "group": "recovery", + "weight": 39, "cookies": false, "type": "", "deprecated": false, @@ -1733,9 +1680,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1786,9 +1730,7 @@ "get": { "summary": "List sessions", "operationId": "accountListSessions", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -1806,7 +1748,8 @@ }, "x-appwrite": { "method": "listSessions", - "weight": 10, + "group": "sessions", + "weight": 11, "cookies": false, "type": "", "deprecated": false, @@ -1821,9 +1764,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/sessions", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1853,7 +1793,8 @@ }, "x-appwrite": { "method": "deleteSessions", - "weight": 11, + "group": "sessions", + "weight": 12, "cookies": false, "type": "", "deprecated": false, @@ -1868,9 +1809,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1907,7 +1845,8 @@ }, "x-appwrite": { "method": "createAnonymousSession", - "weight": 16, + "group": "sessions", + "weight": 17, "cookies": false, "type": "", "deprecated": false, @@ -1922,9 +1861,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1960,7 +1896,8 @@ }, "x-appwrite": { "method": "createEmailPasswordSession", - "weight": 15, + "group": "sessions", + "weight": 16, "cookies": false, "type": "", "deprecated": false, @@ -1975,9 +1912,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2040,7 +1974,8 @@ }, "x-appwrite": { "method": "updateMagicURLSession", - "weight": 25, + "group": "sessions", + "weight": 26, "cookies": false, "type": "", "deprecated": true, @@ -2055,9 +1990,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2100,9 +2032,7 @@ "get": { "summary": "Create OAuth2 session", "operationId": "accountCreateOAuth2Session", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "text\/html" ], @@ -2117,7 +2047,8 @@ }, "x-appwrite": { "method": "createOAuth2Session", - "weight": 18, + "group": "sessions", + "weight": 19, "cookies": false, "type": "webAuth", "deprecated": false, @@ -2132,9 +2063,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2147,7 +2075,7 @@ "parameters": [ { "name": "provider", - "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", + "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", "required": true, "type": "string", "x-example": "amazon", @@ -2166,6 +2094,7 @@ "dropbox", "etsy", "facebook", + "figma", "github", "gitlab", "google", @@ -2255,7 +2184,8 @@ }, "x-appwrite": { "method": "updatePhoneSession", - "weight": 26, + "group": "sessions", + "weight": 27, "cookies": false, "type": "", "deprecated": true, @@ -2270,9 +2200,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2335,7 +2262,8 @@ }, "x-appwrite": { "method": "createSession", - "weight": 17, + "group": "sessions", + "weight": 18, "cookies": false, "type": "", "deprecated": false, @@ -2350,9 +2278,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2395,9 +2320,7 @@ "get": { "summary": "Get session", "operationId": "accountGetSession", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -2415,7 +2338,8 @@ }, "x-appwrite": { "method": "getSession", - "weight": 12, + "group": "sessions", + "weight": 13, "cookies": false, "type": "", "deprecated": false, @@ -2430,9 +2354,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/sessions", - "offline-key": "{sessionId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2477,7 +2398,8 @@ }, "x-appwrite": { "method": "updateSession", - "weight": 14, + "group": "sessions", + "weight": 15, "cookies": false, "type": "", "deprecated": false, @@ -2492,9 +2414,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2534,7 +2453,8 @@ }, "x-appwrite": { "method": "deleteSession", - "weight": 13, + "group": "sessions", + "weight": 14, "cookies": false, "type": "", "deprecated": false, @@ -2549,9 +2469,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2598,7 +2515,8 @@ }, "x-appwrite": { "method": "updateStatus", - "weight": 36, + "group": "account", + "weight": 37, "cookies": false, "type": "", "deprecated": false, @@ -2613,9 +2531,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2641,7 +2556,7 @@ "tags": [ "account" ], - "description": "", + "description": "Use this endpoint to register a device for push notifications. Provide a target ID (custom or generated using ID.unique()), a device identifier (usually a device token), and optionally specify which provider should send notifications to this target. The target is automatically linked to the current session and includes device information like brand and model.", "responses": { "201": { "description": "Target", @@ -2652,12 +2567,13 @@ }, "x-appwrite": { "method": "createPushTarget", - "weight": 53, + "group": "pushTargets", + "weight": 54, "cookies": false, "type": "", "deprecated": false, "demo": "account\/create-push-target.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-push-target.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -2666,9 +2582,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2726,7 +2639,7 @@ "tags": [ "account" ], - "description": "", + "description": "Update the currently logged in user's push notification target. You can modify the target's identifier (device token) and provider ID (token, email, phone etc.). The target must exist and belong to the current user. If you change the provider ID, notifications will be sent through the new messaging provider instead.", "responses": { "200": { "description": "Target", @@ -2737,12 +2650,13 @@ }, "x-appwrite": { "method": "updatePushTarget", - "weight": 54, + "group": "pushTargets", + "weight": 55, "cookies": false, "type": "", "deprecated": false, "demo": "account\/update-push-target.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-push-target.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -2751,9 +2665,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2798,13 +2709,11 @@ "consumes": [ "application\/json" ], - "produces": [ - "application\/json" - ], + "produces": [], "tags": [ "account" ], - "description": "", + "description": "Delete a push notification target for the currently logged in user. After deletion, the device will no longer receive push notifications. The target must exist and belong to the current user.", "responses": { "204": { "description": "No content" @@ -2812,12 +2721,13 @@ }, "x-appwrite": { "method": "deletePushTarget", - "weight": 55, + "group": "pushTargets", + "weight": 56, "cookies": false, "type": "", "deprecated": false, "demo": "account\/delete-push-target.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/delete-push-target.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -2826,9 +2736,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2874,7 +2781,8 @@ }, "x-appwrite": { "method": "createEmailToken", - "weight": 24, + "group": "tokens", + "weight": 25, "cookies": false, "type": "", "deprecated": false, @@ -2882,16 +2790,16 @@ "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-email.md", "rate-limit": 10, "rate-time": 3600, - "rate-key": "url:{url},email:{param-email}", + "rate-key": [ + "url:{url},email:{param-email}", + "url:{url},ip:{ip}" + ], "scope": "sessions.write", "platforms": [ "server", "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2949,7 +2857,7 @@ "tags": [ "account" ], - "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. 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 [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) 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.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", + "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. 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 [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) endpoint to complete the login process. The link sent to the user's email address is valid for 1 hour.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", "responses": { "201": { "description": "Token", @@ -2960,7 +2868,8 @@ }, "x-appwrite": { "method": "createMagicURLToken", - "weight": 23, + "group": "tokens", + "weight": 24, "cookies": false, "type": "", "deprecated": false, @@ -2978,9 +2887,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3035,9 +2941,7 @@ "get": { "summary": "Create OAuth2 token", "operationId": "accountCreateOAuth2Token", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "text\/html" ], @@ -3052,7 +2956,8 @@ }, "x-appwrite": { "method": "createOAuth2Token", - "weight": 22, + "group": "tokens", + "weight": 23, "cookies": false, "type": "webAuth", "deprecated": false, @@ -3067,9 +2972,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3082,7 +2984,7 @@ "parameters": [ { "name": "provider", - "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", + "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", "required": true, "type": "string", "x-example": "amazon", @@ -3101,6 +3003,7 @@ "dropbox", "etsy", "facebook", + "figma", "github", "gitlab", "google", @@ -3190,7 +3093,8 @@ }, "x-appwrite": { "method": "createPhoneToken", - "weight": 27, + "group": "tokens", + "weight": 28, "cookies": false, "type": "", "deprecated": false, @@ -3208,9 +3112,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3273,7 +3174,8 @@ }, "x-appwrite": { "method": "createVerification", - "weight": 39, + "group": "verification", + "weight": 40, "cookies": false, "type": "", "deprecated": false, @@ -3288,9 +3190,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3323,7 +3222,7 @@ ] }, "put": { - "summary": "Create email verification (confirmation)", + "summary": "Update email verification (confirmation)", "operationId": "accountUpdateVerification", "consumes": [ "application\/json" @@ -3345,7 +3244,8 @@ }, "x-appwrite": { "method": "updateVerification", - "weight": 40, + "group": "verification", + "weight": 41, "cookies": false, "type": "", "deprecated": false, @@ -3360,9 +3260,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3426,7 +3323,8 @@ }, "x-appwrite": { "method": "createPhoneVerification", - "weight": 41, + "group": "verification", + "weight": 42, "cookies": false, "type": "", "deprecated": false, @@ -3444,9 +3342,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3481,7 +3376,8 @@ }, "x-appwrite": { "method": "updatePhoneVerification", - "weight": 42, + "group": "verification", + "weight": 43, "cookies": false, "type": "", "deprecated": false, @@ -3496,9 +3392,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3542,9 +3435,7 @@ "get": { "summary": "Get browser icon", "operationId": "avatarsGetBrowser", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/png" ], @@ -3562,7 +3453,8 @@ }, "x-appwrite": { "method": "getBrowser", - "weight": 59, + "group": null, + "weight": 60, "cookies": false, "type": "location", "deprecated": false, @@ -3578,9 +3470,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3671,9 +3560,7 @@ "get": { "summary": "Get credit card icon", "operationId": "avatarsGetCreditCard", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/png" ], @@ -3691,7 +3578,8 @@ }, "x-appwrite": { "method": "getCreditCard", - "weight": 58, + "group": null, + "weight": 59, "cookies": false, "type": "location", "deprecated": false, @@ -3707,9 +3595,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3724,7 +3609,7 @@ "parameters": [ { "name": "code", - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro.", + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", "required": true, "type": "string", "x-example": "amex", @@ -3744,7 +3629,8 @@ "union-china-pay", "visa", "mir", - "maestro" + "maestro", + "rupay" ], "x-enum-name": "CreditCard", "x-enum-keys": [ @@ -3763,7 +3649,8 @@ "Union China Pay", "Visa", "MIR", - "Maestro" + "Maestro", + "Rupay" ], "in": "path" }, @@ -3804,9 +3691,7 @@ "get": { "summary": "Get favicon", "operationId": "avatarsGetFavicon", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/*" ], @@ -3824,7 +3709,8 @@ }, "x-appwrite": { "method": "getFavicon", - "weight": 62, + "group": null, + "weight": 63, "cookies": false, "type": "location", "deprecated": false, @@ -3840,9 +3726,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3871,9 +3754,7 @@ "get": { "summary": "Get country flag", "operationId": "avatarsGetFlag", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/png" ], @@ -3891,7 +3772,8 @@ }, "x-appwrite": { "method": "getFlag", - "weight": 60, + "group": null, + "weight": 61, "cookies": false, "type": "location", "deprecated": false, @@ -3907,9 +3789,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4362,9 +4241,7 @@ "get": { "summary": "Get image from URL", "operationId": "avatarsGetImage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/*" ], @@ -4382,7 +4259,8 @@ }, "x-appwrite": { "method": "getImage", - "weight": 61, + "group": null, + "weight": 62, "cookies": false, "type": "location", "deprecated": false, @@ -4398,9 +4276,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4449,9 +4324,7 @@ "get": { "summary": "Get user initials", "operationId": "avatarsGetInitials", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/png" ], @@ -4469,7 +4342,8 @@ }, "x-appwrite": { "method": "getInitials", - "weight": 64, + "group": null, + "weight": 65, "cookies": false, "type": "location", "deprecated": false, @@ -4485,9 +4359,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4544,9 +4415,7 @@ "get": { "summary": "Get QR code", "operationId": "avatarsGetQR", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/png" ], @@ -4564,7 +4433,8 @@ }, "x-appwrite": { "method": "getQR", - "weight": 63, + "group": null, + "weight": 64, "cookies": false, "type": "location", "deprecated": false, @@ -4580,9 +4450,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4637,7 +4504,7 @@ }, "\/console\/assistant": { "post": { - "summary": "Ask Query", + "summary": "Create assistant query", "operationId": "assistantChat", "consumes": [ "application\/json" @@ -4648,7 +4515,7 @@ "tags": [ "assistant" ], - "description": "", + "description": "Send a prompt to the AI assistant and receive a response. This endpoint allows you to interact with Appwrite's AI assistant by sending questions or prompts and receiving helpful responses in real-time through a server-sent events stream. ", "responses": { "200": { "description": "File", @@ -4659,7 +4526,8 @@ }, "x-appwrite": { "method": "chat", - "weight": 331, + "group": "console", + "weight": 335, "cookies": false, "type": "", "deprecated": false, @@ -4673,9 +4541,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4711,9 +4576,7 @@ "get": { "summary": "Get variables", "operationId": "consoleVariables", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -4731,7 +4594,8 @@ }, "x-appwrite": { "method": "variables", - "weight": 330, + "group": "console", + "weight": 334, "cookies": false, "type": "", "deprecated": false, @@ -4745,9 +4609,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4763,9 +4624,7 @@ "get": { "summary": "List databases", "operationId": "databasesList", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -4783,7 +4642,8 @@ }, "x-appwrite": { "method": "list", - "weight": 69, + "group": "databases", + "weight": 70, "cookies": false, "type": "", "deprecated": false, @@ -4797,9 +4657,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4857,7 +4714,8 @@ }, "x-appwrite": { "method": "create", - "weight": 68, + "group": "databases", + "weight": 69, "cookies": false, "type": "", "deprecated": false, @@ -4871,9 +4729,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4923,16 +4778,14 @@ "get": { "summary": "Get databases usage stats", "operationId": "databasesGetUsage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "databases" ], - "description": "", + "description": "Get usage metrics and statistics for all databases in the project. You can view the total number of databases, collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", "responses": { "200": { "description": "UsageDatabases", @@ -4943,12 +4796,13 @@ }, "x-appwrite": { "method": "getUsage", - "weight": 113, + "group": null, + "weight": 117, "cookies": false, "type": "", "deprecated": false, "demo": "databases\/get-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -4957,9 +4811,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4997,9 +4848,7 @@ "get": { "summary": "Get database", "operationId": "databasesGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -5017,7 +4866,8 @@ }, "x-appwrite": { "method": "get", - "weight": 70, + "group": "databases", + "weight": 71, "cookies": false, "type": "", "deprecated": false, @@ -5031,9 +4881,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5078,7 +4925,8 @@ }, "x-appwrite": { "method": "update", - "weight": 72, + "group": "databases", + "weight": 73, "cookies": false, "type": "", "deprecated": false, @@ -5092,9 +4940,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5158,7 +5003,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 73, + "group": "databases", + "weight": 74, "cookies": false, "type": "", "deprecated": false, @@ -5172,9 +5018,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5201,9 +5044,7 @@ "get": { "summary": "List collections", "operationId": "databasesListCollections", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -5221,7 +5062,8 @@ }, "x-appwrite": { "method": "listCollections", - "weight": 75, + "group": "collections", + "weight": 76, "cookies": false, "type": "", "deprecated": false, @@ -5235,9 +5077,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5303,7 +5142,8 @@ }, "x-appwrite": { "method": "createCollection", - "weight": 74, + "group": "collections", + "weight": 75, "cookies": false, "type": "", "deprecated": false, @@ -5317,9 +5157,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5392,9 +5229,7 @@ "get": { "summary": "Get collection", "operationId": "databasesGetCollection", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -5412,7 +5247,8 @@ }, "x-appwrite": { "method": "getCollection", - "weight": 76, + "group": "collections", + "weight": 77, "cookies": false, "type": "", "deprecated": false, @@ -5426,9 +5262,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5481,7 +5314,8 @@ }, "x-appwrite": { "method": "updateCollection", - "weight": 78, + "group": "collections", + "weight": 79, "cookies": false, "type": "", "deprecated": false, @@ -5495,9 +5329,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5584,7 +5415,8 @@ }, "x-appwrite": { "method": "deleteCollection", - "weight": 79, + "group": "collections", + "weight": 80, "cookies": false, "type": "", "deprecated": false, @@ -5598,9 +5430,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5635,9 +5464,7 @@ "get": { "summary": "List attributes", "operationId": "databasesListAttributes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -5655,7 +5482,8 @@ }, "x-appwrite": { "method": "listAttributes", - "weight": 90, + "group": "attributes", + "weight": 91, "cookies": false, "type": "", "deprecated": false, @@ -5669,9 +5497,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5738,7 +5563,8 @@ }, "x-appwrite": { "method": "createBooleanAttribute", - "weight": 87, + "group": "attributes", + "weight": 88, "cookies": false, "type": "", "deprecated": false, @@ -5752,9 +5578,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5829,7 +5652,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -5844,7 +5669,8 @@ }, "x-appwrite": { "method": "updateBooleanAttribute", - "weight": 99, + "group": "attributes", + "weight": 100, "cookies": false, "type": "", "deprecated": false, @@ -5858,9 +5684,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5954,7 +5777,8 @@ }, "x-appwrite": { "method": "createDatetimeAttribute", - "weight": 88, + "group": "attributes", + "weight": 89, "cookies": false, "type": "", "deprecated": false, @@ -5968,9 +5792,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6045,7 +5866,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -6060,7 +5883,8 @@ }, "x-appwrite": { "method": "updateDatetimeAttribute", - "weight": 100, + "group": "attributes", + "weight": 101, "cookies": false, "type": "", "deprecated": false, @@ -6074,9 +5898,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6170,7 +5991,8 @@ }, "x-appwrite": { "method": "createEmailAttribute", - "weight": 81, + "group": "attributes", + "weight": 82, "cookies": false, "type": "", "deprecated": false, @@ -6184,9 +6006,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6261,7 +6080,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -6276,7 +6097,8 @@ }, "x-appwrite": { "method": "updateEmailAttribute", - "weight": 93, + "group": "attributes", + "weight": 94, "cookies": false, "type": "", "deprecated": false, @@ -6290,9 +6112,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6386,7 +6205,8 @@ }, "x-appwrite": { "method": "createEnumAttribute", - "weight": 82, + "group": "attributes", + "weight": 83, "cookies": false, "type": "", "deprecated": false, @@ -6400,9 +6220,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6487,7 +6304,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -6502,7 +6321,8 @@ }, "x-appwrite": { "method": "updateEnumAttribute", - "weight": 94, + "group": "attributes", + "weight": 95, "cookies": false, "type": "", "deprecated": false, @@ -6516,9 +6336,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6622,7 +6439,8 @@ }, "x-appwrite": { "method": "createFloatAttribute", - "weight": 86, + "group": "attributes", + "weight": 87, "cookies": false, "type": "", "deprecated": false, @@ -6636,9 +6454,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6725,7 +6540,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -6740,7 +6557,8 @@ }, "x-appwrite": { "method": "updateFloatAttribute", - "weight": 98, + "group": "attributes", + "weight": 99, "cookies": false, "type": "", "deprecated": false, @@ -6754,9 +6572,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6831,8 +6646,6 @@ }, "required": [ "required", - "min", - "max", "default" ] } @@ -6864,7 +6677,8 @@ }, "x-appwrite": { "method": "createIntegerAttribute", - "weight": 85, + "group": "attributes", + "weight": 86, "cookies": false, "type": "", "deprecated": false, @@ -6878,9 +6692,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6967,7 +6778,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -6982,7 +6795,8 @@ }, "x-appwrite": { "method": "updateIntegerAttribute", - "weight": 97, + "group": "attributes", + "weight": 98, "cookies": false, "type": "", "deprecated": false, @@ -6996,9 +6810,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7073,8 +6884,6 @@ }, "required": [ "required", - "min", - "max", "default" ] } @@ -7106,7 +6915,8 @@ }, "x-appwrite": { "method": "createIpAttribute", - "weight": 83, + "group": "attributes", + "weight": 84, "cookies": false, "type": "", "deprecated": false, @@ -7120,9 +6930,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7197,7 +7004,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -7212,7 +7021,8 @@ }, "x-appwrite": { "method": "updateIpAttribute", - "weight": 95, + "group": "attributes", + "weight": 96, "cookies": false, "type": "", "deprecated": false, @@ -7226,9 +7036,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7322,7 +7129,8 @@ }, "x-appwrite": { "method": "createRelationshipAttribute", - "weight": 89, + "group": "attributes", + "weight": 90, "cookies": false, "type": "", "deprecated": false, @@ -7336,9 +7144,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7457,7 +7262,8 @@ }, "x-appwrite": { "method": "createStringAttribute", - "weight": 80, + "group": "attributes", + "weight": 81, "cookies": false, "type": "", "deprecated": false, @@ -7471,9 +7277,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7561,7 +7364,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -7576,7 +7381,8 @@ }, "x-appwrite": { "method": "updateStringAttribute", - "weight": 92, + "group": "attributes", + "weight": 93, "cookies": false, "type": "", "deprecated": false, @@ -7590,9 +7396,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7650,7 +7453,7 @@ "type": "integer", "description": "Maximum size of the string attribute.", "default": null, - "x-example": null + "x-example": 1 }, "newKey": { "type": "string", @@ -7692,7 +7495,8 @@ }, "x-appwrite": { "method": "createUrlAttribute", - "weight": 84, + "group": "attributes", + "weight": 85, "cookies": false, "type": "", "deprecated": false, @@ -7706,9 +7510,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7783,7 +7584,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -7798,7 +7601,8 @@ }, "x-appwrite": { "method": "updateUrlAttribute", - "weight": 96, + "group": "attributes", + "weight": 97, "cookies": false, "type": "", "deprecated": false, @@ -7812,9 +7616,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7888,9 +7689,7 @@ "get": { "summary": "Get attribute", "operationId": "databasesGetAttribute", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -7939,7 +7738,8 @@ }, "x-appwrite": { "method": "getAttribute", - "weight": 91, + "group": "attributes", + "weight": 92, "cookies": false, "type": "", "deprecated": false, @@ -7953,9 +7753,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8010,7 +7807,8 @@ }, "x-appwrite": { "method": "deleteAttribute", - "weight": 102, + "group": "attributes", + "weight": 103, "cookies": false, "type": "", "deprecated": false, @@ -8024,9 +7822,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8071,7 +7866,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -8086,7 +7883,8 @@ }, "x-appwrite": { "method": "updateRelationshipAttribute", - "weight": 101, + "group": "attributes", + "weight": 102, "cookies": false, "type": "", "deprecated": false, @@ -8100,9 +7898,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8172,9 +7967,7 @@ "get": { "summary": "List documents", "operationId": "databasesListDocuments", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -8192,7 +7985,8 @@ }, "x-appwrite": { "method": "listDocuments", - "weight": 108, + "group": "documents", + "weight": 109, "cookies": false, "type": "", "deprecated": false, @@ -8208,9 +8002,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8276,7 +8067,8 @@ }, "x-appwrite": { "method": "createDocument", - "weight": 107, + "group": "documents", + "weight": 108, "cookies": false, "type": "", "deprecated": false, @@ -8292,9 +8084,31 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", + "methods": [ + { + "name": "createDocument", + "parameters": [ + "databaseId", + "collectionId", + "documentId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "collectionId", + "documentId", + "data" + ], + "responses": [ + { + "code": 201, + "model": "#\/definitions\/document" + } + ], + "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + } + ], "auth": { "Project": [] } @@ -8332,13 +8146,13 @@ "documentId": { "type": "string", "description": "Document ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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, + "default": "", "x-example": "" }, "data": { "type": "object", "description": "Document data as JSON object.", - "default": {}, + "default": [], "x-example": "{}" }, "permissions": { @@ -8349,21 +8163,24 @@ "items": { "type": "string" } + }, + "documents": { + "type": "array", + "description": "Array of documents data as JSON objects.", + "default": [], + "x-example": null, + "items": { + "type": "object" + } } - }, - "required": [ - "documentId", - "data" - ] + } } } ] - } - }, - "\/databases\/{databaseId}\/collections\/{collectionId}\/documents\/{documentId}": { - "get": { - "summary": "Get document", - "operationId": "databasesGetDocument", + }, + "put": { + "summary": "Create or update documents", + "operationId": "databasesUpsertDocuments", "consumes": [ "application\/json" ], @@ -8373,36 +8190,32 @@ "tags": [ "databases" ], - "description": "Get a document by its unique ID. This endpoint response returns a JSON object with the document data.", + "description": "Create or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.\n", "responses": { "200": { - "description": "Document", + "description": "Documents List", "schema": { - "$ref": "#\/definitions\/document" + "$ref": "#\/definitions\/documentList" } } }, "x-appwrite": { - "method": "getDocument", - "weight": 109, + "method": "upsertDocuments", + "group": "documents", + "weight": 114, "cookies": false, "type": "", "deprecated": false, - "demo": "databases\/get-document.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-document.md", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "documents.read", + "demo": "databases\/upsert-documents.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-documents.md", + "rate-limit": 120, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", "platforms": [ - "client", - "server", "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8410,8 +8223,7 @@ "security": [ { "Project": [], - "Key": [], - "JWT": [] + "Key": [] } ], "parameters": [ @@ -8425,37 +8237,35 @@ }, { "name": "collectionId", - "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "description": "Collection ID.", "required": true, "type": "string", "x-example": "", "in": "path" }, { - "name": "documentId", - "description": "Document ID.", - "required": true, - "type": "string", - "x-example": "", - "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\/queries). Maximum of 100 queries are allowed, each 4096 characters long.", - "required": false, - "type": "array", - "collectionFormat": "multi", - "items": { - "type": "string" - }, - "default": [], - "in": "query" + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "documents": { + "type": "array", + "description": "Array of document data as JSON objects. May contain partial documents.", + "default": [], + "x-example": null, + "items": { + "type": "object" + } + } + } + } } ] }, "patch": { - "summary": "Update document", - "operationId": "databasesUpdateDocument", + "summary": "Update documents", + "operationId": "databasesUpdateDocuments", "consumes": [ "application\/json" ], @@ -8465,36 +8275,32 @@ "tags": [ "databases" ], - "description": "Update a document by its unique ID. Using the patch method you can pass only specific fields that will get updated.", + "description": "Update all documents that match your queries, if no queries are submitted then all documents are updated. You can pass only specific fields to be updated.", "responses": { "200": { - "description": "Document", + "description": "Documents List", "schema": { - "$ref": "#\/definitions\/document" + "$ref": "#\/definitions\/documentList" } } }, "x-appwrite": { - "method": "updateDocument", - "weight": 111, + "method": "updateDocuments", + "group": "documents", + "weight": 113, "cookies": false, "type": "", "deprecated": false, - "demo": "databases\/update-document.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-document.md", + "demo": "databases\/update-documents.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-documents.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", "scope": "documents.write", "platforms": [ - "client", - "server", "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8502,8 +8308,7 @@ "security": [ { "Project": [], - "Key": [], - "JWT": [] + "Key": [] } ], "parameters": [ @@ -8523,14 +8328,6 @@ "x-example": "", "in": "path" }, - { - "name": "documentId", - "description": "Document ID.", - "required": true, - "type": "string", - "x-example": "", - "in": "path" - }, { "name": "payload", "in": "body", @@ -8543,11 +8340,11 @@ "default": [], "x-example": "{}" }, - "permissions": { + "queries": { "type": "array", - "description": "An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).", - "default": null, - "x-example": "[\"read(\"any\")\"]", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Maximum of 100 queries are allowed, each 4096 characters long.", + "default": [], + "x-example": null, "items": { "type": "string" } @@ -8558,29 +8355,307 @@ ] }, "delete": { - "summary": "Delete document", - "operationId": "databasesDeleteDocument", + "summary": "Delete documents", + "operationId": "databasesDeleteDocuments", "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], - "description": "Delete a document by its unique ID.", + "description": "Bulk delete documents using queries, if no queries are passed then all documents are deleted.", "responses": { - "204": { - "description": "No content" + "200": { + "description": "Documents List", + "schema": { + "$ref": "#\/definitions\/documentList" + } } }, "x-appwrite": { - "method": "deleteDocument", - "weight": 112, + "method": "deleteDocuments", + "group": "documents", + "weight": 116, "cookies": false, "type": "", "deprecated": false, - "demo": "databases\/delete-document.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-document.md", + "demo": "databases\/delete-documents.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-documents.md", + "rate-limit": 60, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "queries": { + "type": "array", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Maximum of 100 queries are allowed, each 4096 characters long.", + "default": [], + "x-example": null, + "items": { + "type": "string" + } + } + } + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/documents\/{documentId}": { + "get": { + "summary": "Get document", + "operationId": "databasesGetDocument", + "consumes": [], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "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", + "group": "documents", + "weight": 110, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/get-document.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/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": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "documentId", + "description": "Document ID.", + "required": true, + "type": "string", + "x-example": "", + "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\/queries). Maximum of 100 queries are allowed, each 4096 characters long.", + "required": false, + "type": "array", + "collectionFormat": "multi", + "items": { + "type": "string" + }, + "default": [], + "in": "query" + } + ] + }, + "patch": { + "summary": "Update document", + "operationId": "databasesUpdateDocument", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "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", + "group": "documents", + "weight": 112, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/update-document.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-document.md", + "rate-limit": 120, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "client", + "server", + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [], + "JWT": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "documentId", + "description": "Document ID.", + "required": true, + "type": "string", + "x-example": "", + "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": "{}" + }, + "permissions": { + "type": "array", + "description": "An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).", + "default": null, + "x-example": "[\"read(\"any\")\"]", + "items": { + "type": "string" + } + } + } + } + } + ] + }, + "delete": { + "summary": "Delete document", + "operationId": "databasesDeleteDocument", + "consumes": [ + "application\/json" + ], + "produces": [], + "tags": [ + "databases" + ], + "description": "Delete a document by its unique ID.", + "responses": { + "204": { + "description": "No content" + } + }, + "x-appwrite": { + "method": "deleteDocument", + "group": "documents", + "weight": 115, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/delete-document.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-document.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -8591,9 +8666,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8637,9 +8709,7 @@ "get": { "summary": "List document logs", "operationId": "databasesListDocumentLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -8657,7 +8727,8 @@ }, "x-appwrite": { "method": "listDocumentLogs", - "weight": 110, + "group": "logs", + "weight": 111, "cookies": false, "type": "", "deprecated": false, @@ -8671,9 +8742,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8727,9 +8795,7 @@ "get": { "summary": "List indexes", "operationId": "databasesListIndexes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -8747,7 +8813,8 @@ }, "x-appwrite": { "method": "listIndexes", - "weight": 104, + "group": "indexes", + "weight": 105, "cookies": false, "type": "", "deprecated": false, @@ -8761,9 +8828,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8828,7 +8892,8 @@ }, "x-appwrite": { "method": "createIndex", - "weight": 103, + "group": "collections", + "weight": 104, "cookies": false, "type": "", "deprecated": false, @@ -8842,9 +8907,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8930,9 +8992,7 @@ "get": { "summary": "Get index", "operationId": "databasesGetIndex", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -8950,7 +9010,8 @@ }, "x-appwrite": { "method": "getIndex", - "weight": 105, + "group": "indexes", + "weight": 106, "cookies": false, "type": "", "deprecated": false, @@ -8964,9 +9025,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9021,7 +9079,8 @@ }, "x-appwrite": { "method": "deleteIndex", - "weight": 106, + "group": "indexes", + "weight": 107, "cookies": false, "type": "", "deprecated": false, @@ -9035,9 +9094,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9079,9 +9135,7 @@ "get": { "summary": "List collection logs", "operationId": "databasesListCollectionLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -9099,7 +9153,8 @@ }, "x-appwrite": { "method": "listCollectionLogs", - "weight": 77, + "group": "collections", + "weight": 78, "cookies": false, "type": "", "deprecated": false, @@ -9113,9 +9168,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9161,16 +9213,14 @@ "get": { "summary": "Get collection usage stats", "operationId": "databasesGetCollectionUsage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "databases" ], - "description": "", + "description": "Get usage metrics and statistics for a collection. Returning the total number of documents. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", "responses": { "200": { "description": "UsageCollection", @@ -9181,12 +9231,13 @@ }, "x-appwrite": { "method": "getCollectionUsage", - "weight": 115, + "group": null, + "weight": 119, "cookies": false, "type": "", "deprecated": false, "demo": "databases\/get-collection-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-collection-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9195,9 +9246,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9251,9 +9299,7 @@ "get": { "summary": "List database logs", "operationId": "databasesListLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -9271,7 +9317,8 @@ }, "x-appwrite": { "method": "listLogs", - "weight": 71, + "group": "logs", + "weight": 72, "cookies": false, "type": "", "deprecated": false, @@ -9285,9 +9332,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9325,16 +9369,14 @@ "get": { "summary": "Get database usage stats", "operationId": "databasesGetDatabaseUsage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "databases" ], - "description": "", + "description": "Get usage metrics and statistics for a database. You can view the total number of collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", "responses": { "200": { "description": "UsageDatabase", @@ -9345,12 +9387,13 @@ }, "x-appwrite": { "method": "getDatabaseUsage", - "weight": 114, + "group": null, + "weight": 118, "cookies": false, "type": "", "deprecated": false, "demo": "databases\/get-database-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-database-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9359,9 +9402,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9407,9 +9447,7 @@ "get": { "summary": "List functions", "operationId": "functionsList", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -9427,7 +9465,8 @@ }, "x-appwrite": { "method": "list", - "weight": 287, + "group": "functions", + "weight": 291, "cookies": false, "type": "", "deprecated": false, @@ -9441,9 +9480,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9501,7 +9537,8 @@ }, "x-appwrite": { "method": "create", - "weight": 286, + "group": "functions", + "weight": 290, "cookies": false, "type": "", "deprecated": false, @@ -9515,9 +9552,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9559,6 +9593,7 @@ "node-19.0", "node-20.0", "node-21.0", + "node-22", "php-8.0", "php-8.1", "php-8.2", @@ -9577,6 +9612,8 @@ "deno-1.24", "deno-1.35", "deno-1.40", + "deno-1.46", + "deno-2.0", "dart-2.15", "dart-2.16", "dart-2.17", @@ -9584,24 +9621,31 @@ "dart-3.0", "dart-3.1", "dart-3.3", - "dotnet-3.1", + "dart-3.5", "dotnet-6.0", "dotnet-7.0", + "dotnet-8.0", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", + "java-22", "swift-5.5", "swift-5.8", "swift-5.9", + "swift-5.10", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", + "kotlin-2.0", "cpp-17", "cpp-20", "bun-1.0", - "go-1.23" + "bun-1.1", + "go-1.23", + "static-1", + "flutter-3.24" ], "x-enum-name": null, "x-enum-keys": [] @@ -9726,7 +9770,7 @@ "specification": { "type": "string", "description": "Runtime specification for the function and builds.", - "default": "s-0.5vcpu-512mb", + "default": "s-1vcpu-512mb", "x-example": null } }, @@ -9744,9 +9788,7 @@ "get": { "summary": "List runtimes", "operationId": "functionsListRuntimes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -9764,7 +9806,8 @@ }, "x-appwrite": { "method": "listRuntimes", - "weight": 288, + "group": "runtimes", + "weight": 292, "cookies": false, "type": "", "deprecated": false, @@ -9778,9 +9821,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9797,9 +9837,7 @@ "get": { "summary": "List available function runtime specifications", "operationId": "functionsListSpecifications", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -9817,7 +9855,8 @@ }, "x-appwrite": { "method": "listSpecifications", - "weight": 289, + "group": "runtimes", + "weight": 293, "cookies": false, "type": "", "deprecated": false, @@ -9832,9 +9871,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9851,9 +9887,7 @@ "get": { "summary": "List function templates", "operationId": "functionsListTemplates", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -9871,7 +9905,8 @@ }, "x-appwrite": { "method": "listTemplates", - "weight": 312, + "group": "templates", + "weight": 316, "cookies": false, "type": "", "deprecated": false, @@ -9885,9 +9920,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9949,9 +9981,7 @@ "get": { "summary": "Get function template", "operationId": "functionsGetTemplate", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -9969,7 +9999,8 @@ }, "x-appwrite": { "method": "getTemplate", - "weight": 313, + "group": "templates", + "weight": 317, "cookies": false, "type": "", "deprecated": false, @@ -9983,9 +10014,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10011,16 +10039,14 @@ "get": { "summary": "Get functions usage", "operationId": "functionsGetUsage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "functions" ], - "description": "", + "description": "Get usage metrics and statistics for a for all functions. View statistics including total functions, deployments, builds, executions, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days.", "responses": { "200": { "description": "UsageFunctions", @@ -10031,12 +10057,13 @@ }, "x-appwrite": { "method": "getUsage", - "weight": 292, + "group": null, + "weight": 296, "cookies": false, "type": "", "deprecated": false, "demo": "functions\/get-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/get-functions-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10045,9 +10072,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10085,9 +10109,7 @@ "get": { "summary": "Get function", "operationId": "functionsGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -10105,7 +10127,8 @@ }, "x-appwrite": { "method": "get", - "weight": 290, + "group": "functions", + "weight": 294, "cookies": false, "type": "", "deprecated": false, @@ -10119,9 +10142,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10166,7 +10186,8 @@ }, "x-appwrite": { "method": "update", - "weight": 293, + "group": "functions", + "weight": 297, "cookies": false, "type": "", "deprecated": false, @@ -10180,9 +10201,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10226,6 +10244,7 @@ "node-19.0", "node-20.0", "node-21.0", + "node-22", "php-8.0", "php-8.1", "php-8.2", @@ -10244,6 +10263,8 @@ "deno-1.24", "deno-1.35", "deno-1.40", + "deno-1.46", + "deno-2.0", "dart-2.15", "dart-2.16", "dart-2.17", @@ -10251,24 +10272,31 @@ "dart-3.0", "dart-3.1", "dart-3.3", - "dotnet-3.1", + "dart-3.5", "dotnet-6.0", "dotnet-7.0", + "dotnet-8.0", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", + "java-22", "swift-5.5", "swift-5.8", "swift-5.9", + "swift-5.10", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", + "kotlin-2.0", "cpp-17", "cpp-20", "bun-1.0", - "go-1.23" + "bun-1.1", + "go-1.23", + "static-1", + "flutter-3.24" ], "x-enum-name": null, "x-enum-keys": [] @@ -10370,7 +10398,7 @@ "specification": { "type": "string", "description": "Runtime specification for the function and builds.", - "default": "s-0.5vcpu-512mb", + "default": "s-1vcpu-512mb", "x-example": null } }, @@ -10399,7 +10427,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 296, + "group": "functions", + "weight": 300, "cookies": false, "type": "", "deprecated": false, @@ -10413,9 +10442,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10442,9 +10468,7 @@ "get": { "summary": "List deployments", "operationId": "functionsListDeployments", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -10462,7 +10486,8 @@ }, "x-appwrite": { "method": "listDeployments", - "weight": 298, + "group": "deployments", + "weight": 302, "cookies": false, "type": "", "deprecated": false, @@ -10476,9 +10501,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10544,7 +10566,8 @@ }, "x-appwrite": { "method": "createDeployment", - "weight": 297, + "group": "deployments", + "weight": 301, "cookies": false, "type": "upload", "deprecated": false, @@ -10558,9 +10581,6 @@ "server" ], "packaging": true, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10618,9 +10638,7 @@ "get": { "summary": "Get deployment", "operationId": "functionsGetDeployment", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -10638,7 +10656,8 @@ }, "x-appwrite": { "method": "getDeployment", - "weight": 299, + "group": "deployments", + "weight": 303, "cookies": false, "type": "", "deprecated": false, @@ -10652,9 +10671,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10707,7 +10723,8 @@ }, "x-appwrite": { "method": "updateDeployment", - "weight": 295, + "group": "deployments", + "weight": 299, "cookies": false, "type": "", "deprecated": false, @@ -10721,9 +10738,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10771,7 +10785,8 @@ }, "x-appwrite": { "method": "deleteDeployment", - "weight": 300, + "group": "deployments", + "weight": 304, "cookies": false, "type": "", "deprecated": false, @@ -10785,9 +10800,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10820,16 +10832,18 @@ }, "\/functions\/{functionId}\/deployments\/{deploymentId}\/build": { "post": { - "summary": "Rebuild deployment", + "summary": "Create deployment build", "operationId": "functionsCreateBuild", "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "functions" ], - "description": "", + "description": "Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build.", "responses": { "204": { "description": "No content" @@ -10837,12 +10851,13 @@ }, "x-appwrite": { "method": "createBuild", - "weight": 301, + "group": "deployments", + "weight": 305, "cookies": false, "type": "", "deprecated": false, "demo": "functions\/create-build.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/create-build.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10851,9 +10866,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10910,7 +10922,7 @@ "tags": [ "functions" ], - "description": "", + "description": "Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn't started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status 'ready') or failed. The response includes the final build status and details.", "responses": { "200": { "description": "Build", @@ -10921,12 +10933,13 @@ }, "x-appwrite": { "method": "updateDeploymentBuild", - "weight": 302, + "group": "deployments", + "weight": 306, "cookies": false, "type": "", "deprecated": false, "demo": "functions\/update-deployment-build.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/update-deployment-build.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10935,9 +10948,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10970,11 +10980,9 @@ }, "\/functions\/{functionId}\/deployments\/{deploymentId}\/download": { "get": { - "summary": "Download deployment", + "summary": "Get deployment download", "operationId": "functionsGetDeploymentDownload", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "*\/*" ], @@ -10992,7 +11000,8 @@ }, "x-appwrite": { "method": "getDeploymentDownload", - "weight": 294, + "group": "deployments", + "weight": 298, "cookies": false, "type": "location", "deprecated": false, @@ -11007,9 +11016,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11045,9 +11051,7 @@ "get": { "summary": "List executions", "operationId": "functionsListExecutions", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11065,7 +11069,8 @@ }, "x-appwrite": { "method": "listExecutions", - "weight": 304, + "group": "executions", + "weight": 308, "cookies": false, "type": "", "deprecated": false, @@ -11081,9 +11086,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11131,7 +11133,7 @@ "summary": "Create execution", "operationId": "functionsCreateExecution", "consumes": [ - "multipart\/form-data" + "application\/json" ], "produces": [ "multipart\/form-data" @@ -11150,7 +11152,8 @@ }, "x-appwrite": { "method": "createExecution", - "weight": 303, + "group": "executions", + "weight": 307, "cookies": false, "type": "", "deprecated": false, @@ -11166,9 +11169,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11190,65 +11190,59 @@ "in": "path" }, { - "name": "body", - "description": "HTTP body of execution. Default value is empty string.", - "required": false, - "type": "payload", - "default": "", - "in": "formData" - }, - { - "name": "async", - "description": "Execute code in the background. Default value is false.", - "required": false, - "type": "boolean", - "x-example": false, - "default": false, - "in": "formData" - }, - { - "name": "path", - "description": "HTTP path of execution. Path can include query params. Default value is \/", - "required": false, - "type": "string", - "x-example": "", - "default": "\/", - "in": "formData" - }, - { - "name": "method", - "description": "HTTP method of execution. Default value is GET.", - "required": false, - "type": "string", - "x-example": "GET", - "enum": [ - "GET", - "POST", - "PUT", - "PATCH", - "DELETE", - "OPTIONS" - ], - "x-enum-name": "ExecutionMethod", - "x-enum-keys": [], - "default": "POST", - "in": "formData" - }, - { - "name": "headers", - "description": "HTTP headers of execution. Defaults to empty.", - "required": false, - "type": "object", - "default": [], - "x-example": "{}", - "in": "formData" - }, - { - "name": "scheduledAt", - "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", - "required": false, - "type": "string", - "in": "formData" + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "body": { + "type": "string", + "description": "HTTP body of execution. Default value is empty string.", + "default": "", + "x-example": "" + }, + "async": { + "type": "boolean", + "description": "Execute code in the background. Default value is false.", + "default": false, + "x-example": false + }, + "path": { + "type": "string", + "description": "HTTP path of execution. Path can include query params. Default value is \/", + "default": "\/", + "x-example": "" + }, + "method": { + "type": "string", + "description": "HTTP method of execution. Default value is GET.", + "default": "POST", + "x-example": "GET", + "enum": [ + "GET", + "POST", + "PUT", + "PATCH", + "DELETE", + "OPTIONS" + ], + "x-enum-name": "ExecutionMethod", + "x-enum-keys": [] + }, + "headers": { + "type": "object", + "description": "HTTP headers of execution. Defaults to empty.", + "default": [], + "x-example": "{}" + }, + "scheduledAt": { + "type": "string", + "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", + "default": null, + "x-example": null + } + } + } } ] } @@ -11257,9 +11251,7 @@ "get": { "summary": "Get execution", "operationId": "functionsGetExecution", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11277,7 +11269,8 @@ }, "x-appwrite": { "method": "getExecution", - "weight": 305, + "group": "executions", + "weight": 309, "cookies": false, "type": "", "deprecated": false, @@ -11293,9 +11286,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11344,7 +11334,8 @@ }, "x-appwrite": { "method": "deleteExecution", - "weight": 306, + "group": "executions", + "weight": 310, "cookies": false, "type": "", "deprecated": false, @@ -11358,9 +11349,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11395,16 +11383,14 @@ "get": { "summary": "Get function usage", "operationId": "functionsGetFunctionUsage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "functions" ], - "description": "", + "description": "Get usage metrics and statistics for a for a specific function. View statistics including total deployments, builds, executions, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days.", "responses": { "200": { "description": "UsageFunction", @@ -11415,12 +11401,13 @@ }, "x-appwrite": { "method": "getFunctionUsage", - "weight": 291, + "group": null, + "weight": 295, "cookies": false, "type": "", "deprecated": false, "demo": "functions\/get-function-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/get-function-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11429,9 +11416,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11477,9 +11461,7 @@ "get": { "summary": "List variables", "operationId": "functionsListVariables", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11497,7 +11479,8 @@ }, "x-appwrite": { "method": "listVariables", - "weight": 308, + "group": "variables", + "weight": 312, "cookies": false, "type": "", "deprecated": false, @@ -11511,9 +11494,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11558,7 +11538,8 @@ }, "x-appwrite": { "method": "createVariable", - "weight": 307, + "group": "variables", + "weight": 311, "cookies": false, "type": "", "deprecated": false, @@ -11572,9 +11553,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11626,9 +11604,7 @@ "get": { "summary": "Get variable", "operationId": "functionsGetVariable", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11646,7 +11622,8 @@ }, "x-appwrite": { "method": "getVariable", - "weight": 309, + "group": "variables", + "weight": 313, "cookies": false, "type": "", "deprecated": false, @@ -11660,9 +11637,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11715,7 +11689,8 @@ }, "x-appwrite": { "method": "updateVariable", - "weight": 310, + "group": "variables", + "weight": 314, "cookies": false, "type": "", "deprecated": false, @@ -11729,9 +11704,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11803,7 +11775,8 @@ }, "x-appwrite": { "method": "deleteVariable", - "weight": 311, + "group": "variables", + "weight": 315, "cookies": false, "type": "", "deprecated": false, @@ -11817,9 +11790,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11874,7 +11844,8 @@ }, "x-appwrite": { "method": "query", - "weight": 329, + "group": "graphql", + "weight": 333, "cookies": false, "type": "graphql", "deprecated": false, @@ -11890,9 +11861,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11950,7 +11918,8 @@ }, "x-appwrite": { "method": "mutation", - "weight": 328, + "group": "graphql", + "weight": 332, "cookies": false, "type": "graphql", "deprecated": false, @@ -11966,9 +11935,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12006,9 +11972,7 @@ "get": { "summary": "Get HTTP", "operationId": "healthGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12026,7 +11990,8 @@ }, "x-appwrite": { "method": "get", - "weight": 124, + "group": "health", + "weight": 128, "cookies": false, "type": "", "deprecated": false, @@ -12040,9 +12005,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12059,9 +12021,7 @@ "get": { "summary": "Get antivirus", "operationId": "healthGetAntivirus", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12079,7 +12039,8 @@ }, "x-appwrite": { "method": "getAntivirus", - "weight": 146, + "group": "health", + "weight": 149, "cookies": false, "type": "", "deprecated": false, @@ -12093,9 +12054,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12112,9 +12070,7 @@ "get": { "summary": "Get cache", "operationId": "healthGetCache", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12132,7 +12088,8 @@ }, "x-appwrite": { "method": "getCache", - "weight": 127, + "group": "health", + "weight": 131, "cookies": false, "type": "", "deprecated": false, @@ -12146,9 +12103,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12165,9 +12119,7 @@ "get": { "summary": "Get the SSL certificate for a domain", "operationId": "healthGetCertificate", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12185,7 +12137,8 @@ }, "x-appwrite": { "method": "getCertificate", - "weight": 133, + "group": "health", + "weight": 136, "cookies": false, "type": "", "deprecated": false, @@ -12199,9 +12152,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12227,9 +12177,7 @@ "get": { "summary": "Get DB", "operationId": "healthGetDB", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12247,7 +12195,8 @@ }, "x-appwrite": { "method": "getDB", - "weight": 126, + "group": "health", + "weight": 130, "cookies": false, "type": "", "deprecated": false, @@ -12261,9 +12210,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12280,9 +12226,7 @@ "get": { "summary": "Get pubsub", "operationId": "healthGetPubSub", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12300,7 +12244,8 @@ }, "x-appwrite": { "method": "getPubSub", - "weight": 129, + "group": "health", + "weight": 132, "cookies": false, "type": "", "deprecated": false, @@ -12314,62 +12259,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", - "auth": { - "Project": [] - } - }, - "security": [ - { - "Project": [], - "Key": [] - } - ] - } - }, - "\/health\/queue": { - "get": { - "summary": "Get queue", - "operationId": "healthGetQueue", - "consumes": [ - "application\/json" - ], - "produces": [ - "application\/json" - ], - "tags": [ - "health" - ], - "description": "Check the Appwrite queue messaging servers are up and connection is successful.", - "responses": { - "200": { - "description": "Health Status", - "schema": { - "$ref": "#\/definitions\/healthStatus" - } - } - }, - "x-appwrite": { - "method": "getQueue", - "weight": 128, - "cookies": false, - "type": "", - "deprecated": false, - "demo": "health\/get-queue.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue.md", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "health.read", - "platforms": [ - "server" - ], - "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12386,9 +12275,7 @@ "get": { "summary": "Get builds queue", "operationId": "healthGetQueueBuilds", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12406,7 +12293,8 @@ }, "x-appwrite": { "method": "getQueueBuilds", - "weight": 135, + "group": "queue", + "weight": 138, "cookies": false, "type": "", "deprecated": false, @@ -12420,9 +12308,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12450,9 +12335,7 @@ "get": { "summary": "Get certificates queue", "operationId": "healthGetQueueCertificates", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12470,7 +12353,8 @@ }, "x-appwrite": { "method": "getQueueCertificates", - "weight": 134, + "group": "queue", + "weight": 137, "cookies": false, "type": "", "deprecated": false, @@ -12484,9 +12368,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12514,9 +12395,7 @@ "get": { "summary": "Get databases queue", "operationId": "healthGetQueueDatabases", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12534,7 +12413,8 @@ }, "x-appwrite": { "method": "getQueueDatabases", - "weight": 136, + "group": "queue", + "weight": 139, "cookies": false, "type": "", "deprecated": false, @@ -12548,9 +12428,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12587,9 +12464,7 @@ "get": { "summary": "Get deletes queue", "operationId": "healthGetQueueDeletes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12607,7 +12482,8 @@ }, "x-appwrite": { "method": "getQueueDeletes", - "weight": 137, + "group": "queue", + "weight": 140, "cookies": false, "type": "", "deprecated": false, @@ -12621,9 +12497,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12651,9 +12524,7 @@ "get": { "summary": "Get number of failed queue jobs", "operationId": "healthGetFailedJobs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12671,7 +12542,8 @@ }, "x-appwrite": { "method": "getFailedJobs", - "weight": 147, + "group": "queue", + "weight": 150, "cookies": false, "type": "", "deprecated": false, @@ -12685,9 +12557,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12711,8 +12580,8 @@ "v1-audits", "v1-mails", "v1-functions", - "v1-usage", - "v1-usage-dump", + "v1-stats-resources", + "v1-stats-usage", "v1-webhooks", "v1-certificates", "v1-builds", @@ -12739,9 +12608,7 @@ "get": { "summary": "Get functions queue", "operationId": "healthGetQueueFunctions", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12759,7 +12626,8 @@ }, "x-appwrite": { "method": "getQueueFunctions", - "weight": 141, + "group": "queue", + "weight": 144, "cookies": false, "type": "", "deprecated": false, @@ -12773,9 +12641,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12803,9 +12668,7 @@ "get": { "summary": "Get logs queue", "operationId": "healthGetQueueLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12823,7 +12686,8 @@ }, "x-appwrite": { "method": "getQueueLogs", - "weight": 132, + "group": "queue", + "weight": 135, "cookies": false, "type": "", "deprecated": false, @@ -12837,9 +12701,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12867,9 +12728,7 @@ "get": { "summary": "Get mails queue", "operationId": "healthGetQueueMails", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12887,7 +12746,8 @@ }, "x-appwrite": { "method": "getQueueMails", - "weight": 138, + "group": "queue", + "weight": 141, "cookies": false, "type": "", "deprecated": false, @@ -12901,9 +12761,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12931,9 +12788,7 @@ "get": { "summary": "Get messaging queue", "operationId": "healthGetQueueMessaging", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12951,7 +12806,8 @@ }, "x-appwrite": { "method": "getQueueMessaging", - "weight": 139, + "group": "queue", + "weight": 142, "cookies": false, "type": "", "deprecated": false, @@ -12965,9 +12821,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12995,9 +12848,7 @@ "get": { "summary": "Get migrations queue", "operationId": "healthGetQueueMigrations", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13015,7 +12866,8 @@ }, "x-appwrite": { "method": "getQueueMigrations", - "weight": 140, + "group": "queue", + "weight": 143, "cookies": false, "type": "", "deprecated": false, @@ -13029,9 +12881,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13055,20 +12904,18 @@ ] } }, - "\/health\/queue\/usage": { + "\/health\/queue\/stats-resources": { "get": { - "summary": "Get usage queue", - "operationId": "healthGetQueueUsage", - "consumes": [ - "application\/json" - ], + "summary": "Get stats resources queue", + "operationId": "healthGetQueueStatsResources", + "consumes": [], "produces": [ "application\/json" ], "tags": [ "health" ], - "description": "Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.", + "description": "Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.", "responses": { "200": { "description": "Health Queue", @@ -13078,13 +12925,14 @@ } }, "x-appwrite": { - "method": "getQueueUsage", - "weight": 142, + "method": "getQueueStatsResources", + "group": "queue", + "weight": 145, "cookies": false, "type": "", "deprecated": false, - "demo": "health\/get-queue-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-usage.md", + "demo": "health\/get-queue-stats-resources.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-stats-resources.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13093,9 +12941,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13119,20 +12964,18 @@ ] } }, - "\/health\/queue\/usage-dump": { + "\/health\/queue\/stats-usage": { "get": { - "summary": "Get usage dump queue", - "operationId": "healthGetQueueUsageDump", - "consumes": [ - "application\/json" - ], + "summary": "Get stats usage queue", + "operationId": "healthGetQueueUsage", + "consumes": [], "produces": [ "application\/json" ], "tags": [ "health" ], - "description": "Get the number of projects containing metrics that are waiting to be processed in the Appwrite internal queue server.", + "description": "Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.", "responses": { "200": { "description": "Health Queue", @@ -13142,13 +12985,14 @@ } }, "x-appwrite": { - "method": "getQueueUsageDump", - "weight": 143, + "method": "getQueueUsage", + "group": "queue", + "weight": 146, "cookies": false, "type": "", "deprecated": false, - "demo": "health\/get-queue-usage-dump.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-usage-dump.md", + "demo": "health\/get-queue-usage.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-stats-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13157,9 +13001,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13187,9 +13028,7 @@ "get": { "summary": "Get webhooks queue", "operationId": "healthGetQueueWebhooks", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13207,7 +13046,8 @@ }, "x-appwrite": { "method": "getQueueWebhooks", - "weight": 131, + "group": "queue", + "weight": 134, "cookies": false, "type": "", "deprecated": false, @@ -13221,9 +13061,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13251,9 +13088,7 @@ "get": { "summary": "Get storage", "operationId": "healthGetStorage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13271,7 +13106,8 @@ }, "x-appwrite": { "method": "getStorage", - "weight": 145, + "group": "storage", + "weight": 148, "cookies": false, "type": "", "deprecated": false, @@ -13285,9 +13121,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13304,9 +13137,7 @@ "get": { "summary": "Get local storage", "operationId": "healthGetStorageLocal", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13324,7 +13155,8 @@ }, "x-appwrite": { "method": "getStorageLocal", - "weight": 144, + "group": "storage", + "weight": 147, "cookies": false, "type": "", "deprecated": false, @@ -13338,9 +13170,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13357,9 +13186,7 @@ "get": { "summary": "Get time", "operationId": "healthGetTime", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13377,7 +13204,8 @@ }, "x-appwrite": { "method": "getTime", - "weight": 130, + "group": "health", + "weight": 133, "cookies": false, "type": "", "deprecated": false, @@ -13391,9 +13219,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13410,9 +13235,7 @@ "get": { "summary": "Get user locale", "operationId": "localeGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13430,7 +13253,8 @@ }, "x-appwrite": { "method": "get", - "weight": 116, + "group": null, + "weight": 120, "cookies": false, "type": "", "deprecated": false, @@ -13446,9 +13270,6 @@ "server" ], "packaging": false, - "offline-model": "\/localed", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13464,11 +13285,9 @@ }, "\/locale\/codes": { "get": { - "summary": "List Locale Codes", + "summary": "List locale codes", "operationId": "localeListCodes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13486,7 +13305,8 @@ }, "x-appwrite": { "method": "listCodes", - "weight": 117, + "group": null, + "weight": 121, "cookies": false, "type": "", "deprecated": false, @@ -13502,9 +13322,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/localeCode", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13522,9 +13339,7 @@ "get": { "summary": "List continents", "operationId": "localeListContinents", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13542,7 +13357,8 @@ }, "x-appwrite": { "method": "listContinents", - "weight": 121, + "group": null, + "weight": 125, "cookies": false, "type": "", "deprecated": false, @@ -13558,9 +13374,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/continents", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -13578,9 +13391,7 @@ "get": { "summary": "List countries", "operationId": "localeListCountries", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13598,7 +13409,8 @@ }, "x-appwrite": { "method": "listCountries", - "weight": 118, + "group": null, + "weight": 122, "cookies": false, "type": "", "deprecated": false, @@ -13614,9 +13426,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -13634,9 +13443,7 @@ "get": { "summary": "List EU countries", "operationId": "localeListCountriesEU", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13654,7 +13461,8 @@ }, "x-appwrite": { "method": "listCountriesEU", - "weight": 119, + "group": null, + "weight": 123, "cookies": false, "type": "", "deprecated": false, @@ -13670,9 +13478,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries\/eu", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -13690,9 +13495,7 @@ "get": { "summary": "List countries phone codes", "operationId": "localeListCountriesPhones", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13710,7 +13513,8 @@ }, "x-appwrite": { "method": "listCountriesPhones", - "weight": 120, + "group": null, + "weight": 124, "cookies": false, "type": "", "deprecated": false, @@ -13726,9 +13530,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries\/phones", - "offline-key": "", - "offline-response-key": "countryCode", "auth": { "Project": [] } @@ -13746,9 +13547,7 @@ "get": { "summary": "List currencies", "operationId": "localeListCurrencies", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13766,7 +13565,8 @@ }, "x-appwrite": { "method": "listCurrencies", - "weight": 122, + "group": null, + "weight": 126, "cookies": false, "type": "", "deprecated": false, @@ -13782,9 +13582,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/currencies", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -13802,9 +13599,7 @@ "get": { "summary": "List languages", "operationId": "localeListLanguages", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13822,7 +13617,8 @@ }, "x-appwrite": { "method": "listLanguages", - "weight": 123, + "group": null, + "weight": 127, "cookies": false, "type": "", "deprecated": false, @@ -13838,9 +13634,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/languages", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -13858,9 +13651,7 @@ "get": { "summary": "List messages", "operationId": "messagingListMessages", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13878,7 +13669,8 @@ }, "x-appwrite": { "method": "listMessages", - "weight": 388, + "group": "messages", + "weight": 386, "cookies": false, "type": "", "deprecated": false, @@ -13893,9 +13685,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13955,7 +13744,8 @@ }, "x-appwrite": { "method": "createEmail", - "weight": 385, + "group": "messages", + "weight": 383, "cookies": false, "type": "", "deprecated": false, @@ -13970,9 +13760,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14104,7 +13891,7 @@ "tags": [ "messaging" ], - "description": "Update an email message by its unique ID.\n", + "description": "Update an email message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", "responses": { "200": { "description": "Message", @@ -14115,7 +13902,8 @@ }, "x-appwrite": { "method": "updateEmail", - "weight": 392, + "group": "messages", + "weight": 390, "cookies": false, "type": "", "deprecated": false, @@ -14130,9 +13918,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14272,7 +14057,8 @@ }, "x-appwrite": { "method": "createPush", - "weight": 387, + "group": "messages", + "weight": 385, "cookies": false, "type": "", "deprecated": false, @@ -14287,9 +14073,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14316,13 +14099,13 @@ "title": { "type": "string", "description": "Title for push notification.", - "default": null, + "default": "", "x-example": "" }, "body": { "type": "string", "description": "Body for push notification.", - "default": null, + "default": "", "x-example": "<BODY>" }, "topics": { @@ -14354,7 +14137,7 @@ }, "data": { "type": "object", - "description": "Additional Data for push notification.", + "description": "Additional key-value pair data for push notification.", "default": {}, "x-example": "{}" }, @@ -14378,7 +14161,7 @@ }, "sound": { "type": "string", - "description": "Sound for push notification. Available only for Android and IOS Platform.", + "description": "Sound for push notification. Available only for Android and iOS Platform.", "default": "", "x-example": "<SOUND>" }, @@ -14395,10 +14178,10 @@ "x-example": "<TAG>" }, "badge": { - "type": "string", - "description": "Badge for push notification. Available only for IOS Platform.", - "default": "", - "x-example": "<BADGE>" + "type": "integer", + "description": "Badge for push notification. Available only for iOS Platform.", + "default": -1, + "x-example": null }, "draft": { "type": "boolean", @@ -14411,12 +14194,34 @@ "description": "Scheduled delivery time for message in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future.", "default": null, "x-example": null + }, + "contentAvailable": { + "type": "boolean", + "description": "If set to true, the notification will be delivered in the background. Available only for iOS Platform.", + "default": false, + "x-example": false + }, + "critical": { + "type": "boolean", + "description": "If set to true, the notification will be marked as critical. This requires the app to have the critical notification entitlement. Available only for iOS Platform.", + "default": false, + "x-example": false + }, + "priority": { + "type": "string", + "description": "Set the notification priority. \"normal\" will consider device state and may not deliver notifications immediately. \"high\" will always attempt to immediately deliver the notification.", + "default": "high", + "x-example": "normal", + "enum": [ + "normal", + "high" + ], + "x-enum-name": "MessagePriority", + "x-enum-keys": [] } }, "required": [ - "messageId", - "title", - "body" + "messageId" ] } } @@ -14436,7 +14241,7 @@ "tags": [ "messaging" ], - "description": "Update a push notification by its unique ID.\n", + "description": "Update a push notification by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", "responses": { "200": { "description": "Message", @@ -14447,7 +14252,8 @@ }, "x-appwrite": { "method": "updatePush", - "weight": 394, + "group": "messages", + "weight": 392, "cookies": false, "type": "", "deprecated": false, @@ -14462,9 +14268,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14588,6 +14391,30 @@ "description": "Scheduled delivery time for message in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future.", "default": null, "x-example": null + }, + "contentAvailable": { + "type": "boolean", + "description": "If set to true, the notification will be delivered in the background. Available only for iOS Platform.", + "default": null, + "x-example": false + }, + "critical": { + "type": "boolean", + "description": "If set to true, the notification will be marked as critical. This requires the app to have the critical notification entitlement. Available only for iOS Platform.", + "default": null, + "x-example": false + }, + "priority": { + "type": "string", + "description": "Set the notification priority. \"normal\" will consider device battery state and may send notifications later. \"high\" will always attempt to immediately deliver the notification.", + "default": null, + "x-example": "normal", + "enum": [ + "normal", + "high" + ], + "x-enum-name": "MessagePriority", + "x-enum-keys": [] } } } @@ -14619,7 +14446,8 @@ }, "x-appwrite": { "method": "createSms", - "weight": 386, + "group": "messages", + "weight": 384, "cookies": false, "type": "", "deprecated": false, @@ -14634,9 +14462,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14728,7 +14553,7 @@ "tags": [ "messaging" ], - "description": "Update an email message by its unique ID.\n", + "description": "Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", "responses": { "200": { "description": "Message", @@ -14739,12 +14564,13 @@ }, "x-appwrite": { "method": "updateSms", - "weight": 393, + "group": "messages", + "weight": 391, "cookies": false, "type": "", "deprecated": false, "demo": "messaging\/update-sms.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/update-email.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/update-sms.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -14754,9 +14580,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14837,9 +14660,7 @@ "get": { "summary": "Get message", "operationId": "messagingGetMessage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -14857,7 +14678,8 @@ }, "x-appwrite": { "method": "getMessage", - "weight": 391, + "group": "messages", + "weight": 389, "cookies": false, "type": "", "deprecated": false, @@ -14872,9 +14694,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14902,9 +14721,7 @@ "consumes": [ "application\/json" ], - "produces": [ - "application\/json" - ], + "produces": [], "tags": [ "messaging" ], @@ -14916,7 +14733,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 395, + "group": "messages", + "weight": 393, "cookies": false, "type": "", "deprecated": false, @@ -14931,9 +14749,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14960,9 +14775,7 @@ "get": { "summary": "List message logs", "operationId": "messagingListMessageLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -14980,7 +14793,8 @@ }, "x-appwrite": { "method": "listMessageLogs", - "weight": 389, + "group": "logs", + "weight": 387, "cookies": false, "type": "", "deprecated": false, @@ -14995,9 +14809,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15036,9 +14847,7 @@ "get": { "summary": "List message targets", "operationId": "messagingListTargets", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -15056,7 +14865,8 @@ }, "x-appwrite": { "method": "listTargets", - "weight": 390, + "group": "messages", + "weight": 388, "cookies": false, "type": "", "deprecated": false, @@ -15071,9 +14881,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15112,9 +14919,7 @@ "get": { "summary": "List providers", "operationId": "messagingListProviders", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -15132,7 +14937,8 @@ }, "x-appwrite": { "method": "listProviders", - "weight": 360, + "group": "providers", + "weight": 358, "cookies": false, "type": "", "deprecated": false, @@ -15147,9 +14953,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15209,7 +15012,8 @@ }, "x-appwrite": { "method": "createApnsProvider", - "weight": 359, + "group": "providers", + "weight": 357, "cookies": false, "type": "", "deprecated": false, @@ -15224,9 +15028,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15326,7 +15127,8 @@ }, "x-appwrite": { "method": "updateApnsProvider", - "weight": 372, + "group": "providers", + "weight": 370, "cookies": false, "type": "", "deprecated": false, @@ -15341,9 +15143,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15441,7 +15240,8 @@ }, "x-appwrite": { "method": "createFcmProvider", - "weight": 358, + "group": "providers", + "weight": 356, "cookies": false, "type": "", "deprecated": false, @@ -15456,9 +15256,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15534,7 +15331,8 @@ }, "x-appwrite": { "method": "updateFcmProvider", - "weight": 371, + "group": "providers", + "weight": 369, "cookies": false, "type": "", "deprecated": false, @@ -15549,9 +15347,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15625,7 +15420,8 @@ }, "x-appwrite": { "method": "createMailgunProvider", - "weight": 350, + "group": "providers", + "weight": 348, "cookies": false, "type": "", "deprecated": false, @@ -15640,9 +15436,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15754,7 +15547,8 @@ }, "x-appwrite": { "method": "updateMailgunProvider", - "weight": 363, + "group": "providers", + "weight": 361, "cookies": false, "type": "", "deprecated": false, @@ -15769,9 +15563,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15881,7 +15672,8 @@ }, "x-appwrite": { "method": "createMsg91Provider", - "weight": 353, + "group": "providers", + "weight": 351, "cookies": false, "type": "", "deprecated": false, @@ -15896,9 +15688,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15986,7 +15775,8 @@ }, "x-appwrite": { "method": "updateMsg91Provider", - "weight": 366, + "group": "providers", + "weight": 364, "cookies": false, "type": "", "deprecated": false, @@ -16001,9 +15791,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16089,7 +15876,8 @@ }, "x-appwrite": { "method": "createSendgridProvider", - "weight": 351, + "group": "providers", + "weight": 349, "cookies": false, "type": "", "deprecated": false, @@ -16104,9 +15892,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16206,7 +15991,8 @@ }, "x-appwrite": { "method": "updateSendgridProvider", - "weight": 364, + "group": "providers", + "weight": 362, "cookies": false, "type": "", "deprecated": false, @@ -16221,9 +16007,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16321,7 +16104,8 @@ }, "x-appwrite": { "method": "createSmtpProvider", - "weight": 352, + "group": "providers", + "weight": 350, "cookies": false, "type": "", "deprecated": false, @@ -16336,9 +16120,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16482,7 +16263,8 @@ }, "x-appwrite": { "method": "updateSmtpProvider", - "weight": 365, + "group": "providers", + "weight": 363, "cookies": false, "type": "", "deprecated": false, @@ -16497,9 +16279,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16640,7 +16419,8 @@ }, "x-appwrite": { "method": "createTelesignProvider", - "weight": 354, + "group": "providers", + "weight": 352, "cookies": false, "type": "", "deprecated": false, @@ -16655,9 +16435,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16745,7 +16522,8 @@ }, "x-appwrite": { "method": "updateTelesignProvider", - "weight": 367, + "group": "providers", + "weight": 365, "cookies": false, "type": "", "deprecated": false, @@ -16760,9 +16538,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16848,7 +16623,8 @@ }, "x-appwrite": { "method": "createTextmagicProvider", - "weight": 355, + "group": "providers", + "weight": 353, "cookies": false, "type": "", "deprecated": false, @@ -16863,9 +16639,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16953,7 +16726,8 @@ }, "x-appwrite": { "method": "updateTextmagicProvider", - "weight": 368, + "group": "providers", + "weight": 366, "cookies": false, "type": "", "deprecated": false, @@ -16968,9 +16742,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17056,7 +16827,8 @@ }, "x-appwrite": { "method": "createTwilioProvider", - "weight": 356, + "group": "providers", + "weight": 354, "cookies": false, "type": "", "deprecated": false, @@ -17071,9 +16843,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17161,7 +16930,8 @@ }, "x-appwrite": { "method": "updateTwilioProvider", - "weight": 369, + "group": "providers", + "weight": 367, "cookies": false, "type": "", "deprecated": false, @@ -17176,9 +16946,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17264,7 +17031,8 @@ }, "x-appwrite": { "method": "createVonageProvider", - "weight": 357, + "group": "providers", + "weight": 355, "cookies": false, "type": "", "deprecated": false, @@ -17279,9 +17047,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17369,7 +17134,8 @@ }, "x-appwrite": { "method": "updateVonageProvider", - "weight": 370, + "group": "providers", + "weight": 368, "cookies": false, "type": "", "deprecated": false, @@ -17384,9 +17150,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17452,9 +17215,7 @@ "get": { "summary": "Get provider", "operationId": "messagingGetProvider", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -17472,7 +17233,8 @@ }, "x-appwrite": { "method": "getProvider", - "weight": 362, + "group": "providers", + "weight": 360, "cookies": false, "type": "", "deprecated": false, @@ -17487,9 +17249,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17517,9 +17276,7 @@ "consumes": [ "application\/json" ], - "produces": [ - "application\/json" - ], + "produces": [], "tags": [ "messaging" ], @@ -17531,7 +17288,8 @@ }, "x-appwrite": { "method": "deleteProvider", - "weight": 373, + "group": "providers", + "weight": 371, "cookies": false, "type": "", "deprecated": false, @@ -17546,9 +17304,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17575,9 +17330,7 @@ "get": { "summary": "List provider logs", "operationId": "messagingListProviderLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -17595,7 +17348,8 @@ }, "x-appwrite": { "method": "listProviderLogs", - "weight": 361, + "group": "providers", + "weight": 359, "cookies": false, "type": "", "deprecated": false, @@ -17610,9 +17364,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17651,9 +17402,7 @@ "get": { "summary": "List subscriber logs", "operationId": "messagingListSubscriberLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -17671,7 +17420,8 @@ }, "x-appwrite": { "method": "listSubscriberLogs", - "weight": 382, + "group": "subscribers", + "weight": 380, "cookies": false, "type": "", "deprecated": false, @@ -17686,9 +17436,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17727,9 +17474,7 @@ "get": { "summary": "List topics", "operationId": "messagingListTopics", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -17747,7 +17492,8 @@ }, "x-appwrite": { "method": "listTopics", - "weight": 375, + "group": "topics", + "weight": 373, "cookies": false, "type": "", "deprecated": false, @@ -17762,9 +17508,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17822,7 +17565,8 @@ }, "x-appwrite": { "method": "createTopic", - "weight": 374, + "group": "topics", + "weight": 372, "cookies": false, "type": "", "deprecated": false, @@ -17837,9 +17581,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17894,9 +17635,7 @@ "get": { "summary": "Get topic", "operationId": "messagingGetTopic", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -17914,7 +17653,8 @@ }, "x-appwrite": { "method": "getTopic", - "weight": 377, + "group": "topics", + "weight": 375, "cookies": false, "type": "", "deprecated": false, @@ -17929,9 +17669,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17976,7 +17713,8 @@ }, "x-appwrite": { "method": "updateTopic", - "weight": 378, + "group": "topics", + "weight": 376, "cookies": false, "type": "", "deprecated": false, @@ -17991,9 +17729,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18045,9 +17780,7 @@ "consumes": [ "application\/json" ], - "produces": [ - "application\/json" - ], + "produces": [], "tags": [ "messaging" ], @@ -18059,7 +17792,8 @@ }, "x-appwrite": { "method": "deleteTopic", - "weight": 379, + "group": "topics", + "weight": 377, "cookies": false, "type": "", "deprecated": false, @@ -18074,9 +17808,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18103,9 +17834,7 @@ "get": { "summary": "List topic logs", "operationId": "messagingListTopicLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -18123,7 +17852,8 @@ }, "x-appwrite": { "method": "listTopicLogs", - "weight": 376, + "group": "topics", + "weight": 374, "cookies": false, "type": "", "deprecated": false, @@ -18138,9 +17868,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18179,9 +17906,7 @@ "get": { "summary": "List subscribers", "operationId": "messagingListSubscribers", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -18199,7 +17924,8 @@ }, "x-appwrite": { "method": "listSubscribers", - "weight": 381, + "group": "subscribers", + "weight": 379, "cookies": false, "type": "", "deprecated": false, @@ -18214,9 +17940,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18282,7 +18005,8 @@ }, "x-appwrite": { "method": "createSubscriber", - "weight": 380, + "group": "subscribers", + "weight": 378, "cookies": false, "type": "", "deprecated": false, @@ -18299,9 +18023,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18354,9 +18075,7 @@ "get": { "summary": "Get subscriber", "operationId": "messagingGetSubscriber", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -18374,7 +18093,8 @@ }, "x-appwrite": { "method": "getSubscriber", - "weight": 383, + "group": "subscribers", + "weight": 381, "cookies": false, "type": "", "deprecated": false, @@ -18389,9 +18109,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18427,9 +18144,7 @@ "consumes": [ "application\/json" ], - "produces": [ - "application\/json" - ], + "produces": [], "tags": [ "messaging" ], @@ -18441,7 +18156,8 @@ }, "x-appwrite": { "method": "deleteSubscriber", - "weight": 384, + "group": "subscribers", + "weight": 382, "cookies": false, "type": "", "deprecated": false, @@ -18458,9 +18174,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18494,18 +18207,16 @@ }, "\/migrations": { "get": { - "summary": "List Migrations", + "summary": "List migrations", "operationId": "migrationsList", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "migrations" ], - "description": "", + "description": "List all migrations in the current project. This endpoint returns a list of all migrations including their status, progress, and any errors that occurred during the migration process.", "responses": { "200": { "description": "Migrations List", @@ -18516,7 +18227,8 @@ }, "x-appwrite": { "method": "list", - "weight": 337, + "group": null, + "weight": 340, "cookies": false, "type": "", "deprecated": false, @@ -18530,9 +18242,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18545,7 +18254,7 @@ "parameters": [ { "name": "queries", - "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: status, stage, source, resources, statusCounters, resourceData, errors", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: status, stage, source, destination, resources, statusCounters, resourceData, errors", "required": false, "type": "array", "collectionFormat": "multi", @@ -18569,7 +18278,7 @@ }, "\/migrations\/appwrite": { "post": { - "summary": "Migrate Appwrite Data", + "summary": "Create Appwrite migration", "operationId": "migrationsCreateAppwriteMigration", "consumes": [ "application\/json" @@ -18580,7 +18289,7 @@ "tags": [ "migrations" ], - "description": "", + "description": "Migrate data from another Appwrite project to your current project. This endpoint allows you to migrate resources like databases, collections, documents, users, and files from an existing Appwrite project. ", "responses": { "202": { "description": "Migration", @@ -18591,7 +18300,8 @@ }, "x-appwrite": { "method": "createAppwriteMigration", - "weight": 332, + "group": null, + "weight": 336, "cookies": false, "type": "", "deprecated": false, @@ -18605,329 +18315,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", - "auth": { - "Project": [] - } - }, - "security": [ - { - "Project": [] - } - ], - "parameters": [ - { - "name": "payload", - "in": "body", - "schema": { - "type": "object", - "properties": { - "resources": { - "type": "array", - "description": "List of resources to migrate", - "default": null, - "x-example": null, - "items": { - "type": "string" - } - }, - "endpoint": { - "type": "string", - "description": "Source's Appwrite Endpoint", - "default": null, - "x-example": "https:\/\/example.com" - }, - "projectId": { - "type": "string", - "description": "Source's Project ID", - "default": null, - "x-example": "<PROJECT_ID>" - }, - "apiKey": { - "type": "string", - "description": "Source's API Key", - "default": null, - "x-example": "<API_KEY>" - } - }, - "required": [ - "resources", - "endpoint", - "projectId", - "apiKey" - ] - } - } - ] - } - }, - "\/migrations\/appwrite\/report": { - "get": { - "summary": "Generate a report on Appwrite Data", - "operationId": "migrationsGetAppwriteReport", - "consumes": [ - "application\/json" - ], - "produces": [ - "application\/json" - ], - "tags": [ - "migrations" - ], - "description": "", - "responses": { - "200": { - "description": "Migration Report", - "schema": { - "$ref": "#\/definitions\/migrationReport" - } - } - }, - "x-appwrite": { - "method": "getAppwriteReport", - "weight": 339, - "cookies": false, - "type": "", - "deprecated": false, - "demo": "migrations\/get-appwrite-report.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/migrations\/migration-appwrite-report.md", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "migrations.write", - "platforms": [ - "console" - ], - "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", - "auth": { - "Project": [] - } - }, - "security": [ - { - "Project": [] - } - ], - "parameters": [ - { - "name": "resources", - "description": "List of resources to migrate", - "required": true, - "type": "array", - "collectionFormat": "multi", - "items": { - "type": "string" - }, - "in": "query" - }, - { - "name": "endpoint", - "description": "Source's Appwrite Endpoint", - "required": true, - "type": "string", - "format": "url", - "x-example": "https:\/\/example.com", - "in": "query" - }, - { - "name": "projectID", - "description": "Source's Project ID", - "required": true, - "type": "string", - "x-example": "<PROJECT_ID>", - "in": "query" - }, - { - "name": "key", - "description": "Source's API Key", - "required": true, - "type": "string", - "x-example": "<KEY>", - "in": "query" - } - ] - } - }, - "\/migrations\/firebase": { - "post": { - "summary": "Migrate Firebase Data (Service Account)", - "operationId": "migrationsCreateFirebaseMigration", - "consumes": [ - "application\/json" - ], - "produces": [ - "application\/json" - ], - "tags": [ - "migrations" - ], - "description": "", - "responses": { - "202": { - "description": "Migration", - "schema": { - "$ref": "#\/definitions\/migration" - } - } - }, - "x-appwrite": { - "method": "createFirebaseMigration", - "weight": 334, - "cookies": false, - "type": "", - "deprecated": false, - "demo": "migrations\/create-firebase-migration.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/migrations\/migration-firebase.md", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "migrations.write", - "platforms": [ - "console" - ], - "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", - "auth": { - "Project": [] - } - }, - "security": [ - { - "Project": [] - } - ], - "parameters": [ - { - "name": "payload", - "in": "body", - "schema": { - "type": "object", - "properties": { - "resources": { - "type": "array", - "description": "List of resources to migrate", - "default": null, - "x-example": null, - "items": { - "type": "string" - } - }, - "serviceAccount": { - "type": "string", - "description": "JSON of the Firebase service account credentials", - "default": null, - "x-example": "<SERVICE_ACCOUNT>" - } - }, - "required": [ - "resources", - "serviceAccount" - ] - } - } - ] - } - }, - "\/migrations\/firebase\/deauthorize": { - "get": { - "summary": "Revoke Appwrite's authorization to access Firebase Projects", - "operationId": "migrationsDeleteFirebaseAuth", - "consumes": [ - "application\/json" - ], - "produces": [ - "application\/json" - ], - "tags": [ - "migrations" - ], - "description": "", - "responses": { - "200": { - "description": "File", - "schema": { - "type": "file" - } - } - }, - "x-appwrite": { - "method": "deleteFirebaseAuth", - "weight": 345, - "cookies": false, - "type": "", - "deprecated": false, - "demo": "migrations\/delete-firebase-auth.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "migrations.write", - "platforms": [ - "console" - ], - "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", - "auth": { - "Project": [] - } - }, - "security": [ - { - "Project": [] - } - ] - } - }, - "\/migrations\/firebase\/oauth": { - "post": { - "summary": "Migrate Firebase Data (OAuth)", - "operationId": "migrationsCreateFirebaseOAuthMigration", - "consumes": [ - "application\/json" - ], - "produces": [ - "application\/json" - ], - "tags": [ - "migrations" - ], - "description": "", - "responses": { - "202": { - "description": "Migration", - "schema": { - "$ref": "#\/definitions\/migration" - } - } - }, - "x-appwrite": { - "method": "createFirebaseOAuthMigration", - "weight": 333, - "cookies": false, - "type": "", - "deprecated": false, - "demo": "migrations\/create-firebase-o-auth-migration.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/migrations\/migration-firebase.md", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "migrations.write", - "platforms": [ - "console" - ], - "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18953,63 +18340,73 @@ "type": "string" } }, + "endpoint": { + "type": "string", + "description": "Source Appwrite endpoint", + "default": null, + "x-example": "https:\/\/example.com" + }, "projectId": { "type": "string", - "description": "Project ID of the Firebase Project", + "description": "Source Project ID", "default": null, "x-example": "<PROJECT_ID>" + }, + "apiKey": { + "type": "string", + "description": "Source API Key", + "default": null, + "x-example": "<API_KEY>" } }, "required": [ "resources", - "projectId" + "endpoint", + "projectId", + "apiKey" ] } } ] } }, - "\/migrations\/firebase\/projects": { + "\/migrations\/appwrite\/report": { "get": { - "summary": "List Firebase Projects", - "operationId": "migrationsListFirebaseProjects", - "consumes": [ - "application\/json" - ], + "summary": "Get Appwrite migration report", + "operationId": "migrationsGetAppwriteReport", + "consumes": [], "produces": [ "application\/json" ], "tags": [ "migrations" ], - "description": "", + "description": "Generate a report of the data in an Appwrite project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated.", "responses": { "200": { - "description": "Migrations Firebase Projects List", + "description": "Migration Report", "schema": { - "$ref": "#\/definitions\/firebaseProjectList" + "$ref": "#\/definitions\/migrationReport" } } }, "x-appwrite": { - "method": "listFirebaseProjects", - "weight": 344, + "method": "getAppwriteReport", + "group": null, + "weight": 342, "cookies": false, "type": "", "deprecated": false, - "demo": "migrations\/list-firebase-projects.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "demo": "migrations\/get-appwrite-report.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/migrations\/migration-appwrite-report.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "migrations.read", + "scope": "migrations.write", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19018,13 +18415,51 @@ { "Project": [] } + ], + "parameters": [ + { + "name": "resources", + "description": "List of resources to migrate", + "required": true, + "type": "array", + "collectionFormat": "multi", + "items": { + "type": "string" + }, + "in": "query" + }, + { + "name": "endpoint", + "description": "Source's Appwrite Endpoint", + "required": true, + "type": "string", + "format": "url", + "x-example": "https:\/\/example.com", + "in": "query" + }, + { + "name": "projectID", + "description": "Source's Project ID", + "required": true, + "type": "string", + "x-example": "<PROJECT_ID>", + "in": "query" + }, + { + "name": "key", + "description": "Source's API Key", + "required": true, + "type": "string", + "x-example": "<KEY>", + "in": "query" + } ] } }, - "\/migrations\/firebase\/report": { - "get": { - "summary": "Generate a report on Firebase Data", - "operationId": "migrationsGetFirebaseReport", + "\/migrations\/firebase": { + "post": { + "summary": "Create Firebase migration", + "operationId": "migrationsCreateFirebaseMigration", "consumes": [ "application\/json" ], @@ -19034,23 +18469,24 @@ "tags": [ "migrations" ], - "description": "", + "description": "Migrate data from a Firebase project to your Appwrite project. This endpoint allows you to migrate resources like authentication and other supported services from a Firebase project. ", "responses": { - "200": { - "description": "Migration Report", + "202": { + "description": "Migration", "schema": { - "$ref": "#\/definitions\/migrationReport" + "$ref": "#\/definitions\/migration" } } }, "x-appwrite": { - "method": "getFirebaseReport", - "weight": 340, + "method": "createFirebaseMigration", + "group": null, + "weight": 337, "cookies": false, "type": "", "deprecated": false, - "demo": "migrations\/get-firebase-report.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/migrations\/migration-firebase-report.md", + "demo": "migrations\/create-firebase-migration.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/migrations\/migration-firebase.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -19059,9 +18495,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19073,41 +18506,48 @@ ], "parameters": [ { - "name": "resources", - "description": "List of resources to migrate", - "required": true, - "type": "array", - "collectionFormat": "multi", - "items": { - "type": "string" - }, - "in": "query" - }, - { - "name": "serviceAccount", - "description": "JSON of the Firebase service account credentials", - "required": true, - "type": "string", - "x-example": "<SERVICE_ACCOUNT>", - "in": "query" + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "resources": { + "type": "array", + "description": "List of resources to migrate", + "default": null, + "x-example": null, + "items": { + "type": "string" + } + }, + "serviceAccount": { + "type": "string", + "description": "JSON of the Firebase service account credentials", + "default": null, + "x-example": "<SERVICE_ACCOUNT>" + } + }, + "required": [ + "resources", + "serviceAccount" + ] + } } ] } }, - "\/migrations\/firebase\/report\/oauth": { + "\/migrations\/firebase\/report": { "get": { - "summary": "Generate a report on Firebase Data using OAuth", - "operationId": "migrationsGetFirebaseReportOAuth", - "consumes": [ - "application\/json" - ], + "summary": "Get Firebase migration report", + "operationId": "migrationsGetFirebaseReport", + "consumes": [], "produces": [ "application\/json" ], "tags": [ "migrations" ], - "description": "", + "description": "Generate a report of the data in a Firebase project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated.", "responses": { "200": { "description": "Migration Report", @@ -19117,12 +18557,13 @@ } }, "x-appwrite": { - "method": "getFirebaseReportOAuth", - "weight": 341, + "method": "getFirebaseReport", + "group": null, + "weight": 343, "cookies": false, "type": "", "deprecated": false, - "demo": "migrations\/get-firebase-report-o-auth.md", + "demo": "migrations\/get-firebase-report.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/migrations\/migration-firebase-report.md", "rate-limit": 0, "rate-time": 3600, @@ -19132,9 +18573,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19157,11 +18595,11 @@ "in": "query" }, { - "name": "projectId", - "description": "Project ID", + "name": "serviceAccount", + "description": "JSON of the Firebase service account credentials", "required": true, "type": "string", - "x-example": "<PROJECT_ID>", + "x-example": "<SERVICE_ACCOUNT>", "in": "query" } ] @@ -19169,7 +18607,7 @@ }, "\/migrations\/nhost": { "post": { - "summary": "Migrate NHost Data", + "summary": "Create NHost migration", "operationId": "migrationsCreateNHostMigration", "consumes": [ "application\/json" @@ -19180,7 +18618,7 @@ "tags": [ "migrations" ], - "description": "", + "description": "Migrate data from an NHost project to your Appwrite project. This endpoint allows you to migrate resources like authentication, databases, and other supported services from an NHost project. ", "responses": { "202": { "description": "Migration", @@ -19191,7 +18629,8 @@ }, "x-appwrite": { "method": "createNHostMigration", - "weight": 336, + "group": null, + "weight": 339, "cookies": false, "type": "", "deprecated": false, @@ -19205,9 +18644,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19292,18 +18728,16 @@ }, "\/migrations\/nhost\/report": { "get": { - "summary": "Generate a report on NHost Data", + "summary": "Get NHost migration report", "operationId": "migrationsGetNHostReport", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "migrations" ], - "description": "", + "description": "Generate a detailed report of the data in an NHost project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated. ", "responses": { "200": { "description": "Migration Report", @@ -19314,7 +18748,8 @@ }, "x-appwrite": { "method": "getNHostReport", - "weight": 347, + "group": null, + "weight": 345, "cookies": false, "type": "", "deprecated": false, @@ -19328,9 +18763,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19414,7 +18846,7 @@ }, "\/migrations\/supabase": { "post": { - "summary": "Migrate Supabase Data", + "summary": "Create Supabase migration", "operationId": "migrationsCreateSupabaseMigration", "consumes": [ "application\/json" @@ -19425,7 +18857,7 @@ "tags": [ "migrations" ], - "description": "", + "description": "Migrate data from a Supabase project to your Appwrite project. This endpoint allows you to migrate resources like authentication, databases, and other supported services from a Supabase project. ", "responses": { "202": { "description": "Migration", @@ -19436,7 +18868,8 @@ }, "x-appwrite": { "method": "createSupabaseMigration", - "weight": 335, + "group": null, + "weight": 338, "cookies": false, "type": "", "deprecated": false, @@ -19450,9 +18883,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19530,18 +18960,16 @@ }, "\/migrations\/supabase\/report": { "get": { - "summary": "Generate a report on Supabase Data", + "summary": "Get Supabase migration report", "operationId": "migrationsGetSupabaseReport", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "migrations" ], - "description": "", + "description": "Generate a report of the data in a Supabase project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated. ", "responses": { "200": { "description": "Migration Report", @@ -19552,7 +18980,8 @@ }, "x-appwrite": { "method": "getSupabaseReport", - "weight": 346, + "group": null, + "weight": 344, "cookies": false, "type": "", "deprecated": false, @@ -19566,9 +18995,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19645,18 +19071,16 @@ }, "\/migrations\/{migrationId}": { "get": { - "summary": "Get Migration", + "summary": "Get migration", "operationId": "migrationsGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "migrations" ], - "description": "", + "description": "Get a migration by its unique ID. This endpoint returns detailed information about a specific migration including its current status, progress, and any errors that occurred during the migration process. ", "responses": { "200": { "description": "Migration", @@ -19667,7 +19091,8 @@ }, "x-appwrite": { "method": "get", - "weight": 338, + "group": null, + "weight": 341, "cookies": false, "type": "", "deprecated": false, @@ -19681,9 +19106,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19705,7 +19127,7 @@ ] }, "patch": { - "summary": "Retry Migration", + "summary": "Update retry migration", "operationId": "migrationsRetry", "consumes": [ "application\/json" @@ -19716,7 +19138,7 @@ "tags": [ "migrations" ], - "description": "", + "description": "Retry a failed migration. This endpoint allows you to retry a migration that has previously failed.", "responses": { "202": { "description": "Migration", @@ -19727,7 +19149,8 @@ }, "x-appwrite": { "method": "retry", - "weight": 348, + "group": null, + "weight": 346, "cookies": false, "type": "", "deprecated": false, @@ -19741,9 +19164,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19765,7 +19185,7 @@ ] }, "delete": { - "summary": "Delete Migration", + "summary": "Delete migration", "operationId": "migrationsDelete", "consumes": [ "application\/json" @@ -19774,7 +19194,7 @@ "tags": [ "migrations" ], - "description": "", + "description": "Delete a migration by its unique ID. This endpoint allows you to remove a migration from your project's migration history. ", "responses": { "204": { "description": "No content" @@ -19782,7 +19202,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 349, + "group": null, + "weight": 347, "cookies": false, "type": "", "deprecated": false, @@ -19796,9 +19217,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19824,16 +19242,14 @@ "get": { "summary": "Get project usage stats", "operationId": "projectGetUsage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "project" ], - "description": "", + "description": "Get comprehensive usage statistics for your project. View metrics including network requests, bandwidth, storage, function executions, database usage, and user activity. Specify a time range with startDate and endDate, and optionally set the data granularity with period (1h or 1d). The response includes both total counts and detailed breakdowns by resource, along with historical data over the specified period.", "responses": { "200": { "description": "UsageProject", @@ -19844,12 +19260,13 @@ }, "x-appwrite": { "method": "getUsage", - "weight": 194, + "group": null, + "weight": 198, "cookies": false, "type": "", "deprecated": false, "demo": "project\/get-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/project\/get-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -19858,9 +19275,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19908,11 +19322,9 @@ }, "\/project\/variables": { "get": { - "summary": "List Variables", + "summary": "List variables", "operationId": "projectListVariables", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -19930,7 +19342,8 @@ }, "x-appwrite": { "method": "listVariables", - "weight": 196, + "group": null, + "weight": 200, "cookies": false, "type": "", "deprecated": false, @@ -19944,9 +19357,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19958,7 +19368,7 @@ ] }, "post": { - "summary": "Create Variable", + "summary": "Create variable", "operationId": "projectCreateVariable", "consumes": [ "application\/json" @@ -19980,7 +19390,8 @@ }, "x-appwrite": { "method": "createVariable", - "weight": 195, + "group": null, + "weight": 199, "cookies": false, "type": "", "deprecated": false, @@ -19994,9 +19405,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20037,11 +19445,9 @@ }, "\/project\/variables\/{variableId}": { "get": { - "summary": "Get Variable", + "summary": "Get variable", "operationId": "projectGetVariable", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -20059,7 +19465,8 @@ }, "x-appwrite": { "method": "getVariable", - "weight": 197, + "group": null, + "weight": 201, "cookies": false, "type": "", "deprecated": false, @@ -20073,9 +19480,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20097,7 +19501,7 @@ ] }, "put": { - "summary": "Update Variable", + "summary": "Update variable", "operationId": "projectUpdateVariable", "consumes": [ "application\/json" @@ -20119,7 +19523,8 @@ }, "x-appwrite": { "method": "updateVariable", - "weight": 198, + "group": null, + "weight": 202, "cookies": false, "type": "", "deprecated": false, @@ -20133,9 +19538,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20181,7 +19583,7 @@ ] }, "delete": { - "summary": "Delete Variable", + "summary": "Delete variable", "operationId": "projectDeleteVariable", "consumes": [ "application\/json" @@ -20198,7 +19600,8 @@ }, "x-appwrite": { "method": "deleteVariable", - "weight": 199, + "group": null, + "weight": 203, "cookies": false, "type": "", "deprecated": false, @@ -20212,9 +19615,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20240,16 +19640,14 @@ "get": { "summary": "List projects", "operationId": "projectsList", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "projects" ], - "description": "", + "description": "Get a list of all projects. You can use the query params to filter your results. ", "responses": { "200": { "description": "Projects List", @@ -20260,12 +19658,13 @@ }, "x-appwrite": { "method": "list", - "weight": 150, + "group": "projects", + "weight": 153, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/list.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/list.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20274,9 +19673,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20322,7 +19718,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Create a new project. You can create a maximum of 100 projects per account. ", "responses": { "201": { "description": "Project", @@ -20333,12 +19729,13 @@ }, "x-appwrite": { "method": "create", - "weight": 149, + "group": "projects", + "weight": 152, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/create.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/create.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20347,9 +19744,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20390,8 +19784,7 @@ "default": "default", "x-example": "default", "enum": [ - "default", - "fra" + "default" ], "x-enum-name": null, "x-enum-keys": [] @@ -20465,16 +19858,14 @@ "get": { "summary": "Get project", "operationId": "projectsGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "projects" ], - "description": "", + "description": "Get a project by its unique ID. This endpoint allows you to retrieve the project's details, including its name, description, team, region, and other metadata. ", "responses": { "200": { "description": "Project", @@ -20485,12 +19876,13 @@ }, "x-appwrite": { "method": "get", - "weight": 151, + "group": "projects", + "weight": 154, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/get.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/get.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20499,9 +19891,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20534,7 +19923,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update a project by its unique ID.", "responses": { "200": { "description": "Project", @@ -20545,12 +19934,13 @@ }, "x-appwrite": { "method": "update", - "weight": 152, + "group": "projects", + "weight": 155, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20559,9 +19949,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20664,7 +20051,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Delete a project by its unique ID.", "responses": { "204": { "description": "No content" @@ -20672,12 +20059,13 @@ }, "x-appwrite": { "method": "delete", - "weight": 168, + "group": "projects", + "weight": 172, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/delete.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/delete.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20686,9 +20074,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20723,7 +20108,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the status of a specific API type. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime.", "responses": { "200": { "description": "Project", @@ -20734,12 +20119,13 @@ }, "x-appwrite": { "method": "updateApiStatus", - "weight": 156, + "group": "projects", + "weight": 159, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-api-status.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-api-status.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20748,9 +20134,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20817,7 +20200,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the status of all API types. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime all at once.", "responses": { "200": { "description": "Project", @@ -20828,12 +20211,91 @@ }, "x-appwrite": { "method": "updateApiStatusAll", - "weight": 157, + "group": "projects", + "weight": 160, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-api-status-all.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-api-status-all.md", + "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": { + "status": { + "type": "boolean", + "description": "API status.", + "default": null, + "x-example": false + } + }, + "required": [ + "status" + ] + } + } + ] + } + }, + "\/projects\/{projectId}\/auth\/duration": { + "patch": { + "summary": "Update project authentication duration", + "operationId": "projectsUpdateAuthDuration", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "projects" + ], + "description": "Update how long sessions created within a project should stay active for.", + "responses": { + "200": { + "description": "Project", + "schema": { + "$ref": "#\/definitions\/project" + } + } + }, + "x-appwrite": { + "method": "updateAuthDuration", + "group": "auth", + "weight": 165, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "projects\/update-auth-duration.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-auth-duration.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20842,9 +20304,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20869,25 +20328,25 @@ "schema": { "type": "object", "properties": { - "status": { - "type": "boolean", - "description": "API status.", + "duration": { + "type": "integer", + "description": "Project session length in seconds. Max length: 31536000 seconds.", "default": null, - "x-example": false + "x-example": 0 } }, "required": [ - "status" + "duration" ] } } ] } }, - "\/projects\/{projectId}\/auth\/duration": { + "\/projects\/{projectId}\/auth\/limit": { "patch": { - "summary": "Update project authentication duration", - "operationId": "projectsUpdateAuthDuration", + "summary": "Update project users limit", + "operationId": "projectsUpdateAuthLimit", "consumes": [ "application\/json" ], @@ -20897,7 +20356,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the maximum number of users allowed in this project. Set to 0 for unlimited users. ", "responses": { "200": { "description": "Project", @@ -20907,13 +20366,14 @@ } }, "x-appwrite": { - "method": "updateAuthDuration", - "weight": 161, + "method": "updateAuthLimit", + "group": "auth", + "weight": 164, "cookies": false, "type": "", "deprecated": false, - "demo": "projects\/update-auth-duration.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "demo": "projects\/update-auth-limit.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-auth-limit.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20922,9 +20382,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20949,25 +20406,25 @@ "schema": { "type": "object", "properties": { - "duration": { + "limit": { "type": "integer", - "description": "Project session length in seconds. Max length: 31536000 seconds.", + "description": "Set the max number of users allowed in this project. Use 0 for unlimited.", "default": null, "x-example": 0 } }, "required": [ - "duration" + "limit" ] } } ] } }, - "\/projects\/{projectId}\/auth\/limit": { + "\/projects\/{projectId}\/auth\/max-sessions": { "patch": { - "summary": "Update project users limit", - "operationId": "projectsUpdateAuthLimit", + "summary": "Update project user sessions limit", + "operationId": "projectsUpdateAuthSessionsLimit", "consumes": [ "application\/json" ], @@ -20977,7 +20434,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the maximum number of sessions allowed per user within the project, if the limit is hit the oldest session will be deleted to make room for new sessions.", "responses": { "200": { "description": "Project", @@ -20987,13 +20444,14 @@ } }, "x-appwrite": { - "method": "updateAuthLimit", - "weight": 160, + "method": "updateAuthSessionsLimit", + "group": "auth", + "weight": 170, "cookies": false, "type": "", "deprecated": false, - "demo": "projects\/update-auth-limit.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "demo": "projects\/update-auth-sessions-limit.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-auth-sessions-limit.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -21002,9 +20460,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21031,9 +20486,9 @@ "properties": { "limit": { "type": "integer", - "description": "Set the max number of users allowed in this project. Use 0 for unlimited.", + "description": "Set the max number of users allowed in this project. Value allowed is between 1-100. Default is 10", "default": null, - "x-example": 0 + "x-example": 1 } }, "required": [ @@ -21044,10 +20499,10 @@ ] } }, - "\/projects\/{projectId}\/auth\/max-sessions": { + "\/projects\/{projectId}\/auth\/memberships-privacy": { "patch": { - "summary": "Update project user sessions limit", - "operationId": "projectsUpdateAuthSessionsLimit", + "summary": "Update project memberships privacy attributes", + "operationId": "projectsUpdateMembershipsPrivacy", "consumes": [ "application\/json" ], @@ -21057,7 +20512,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update project membership privacy settings. Use this endpoint to control what user information is visible to other team members, such as user name, email, and MFA status. ", "responses": { "200": { "description": "Project", @@ -21067,13 +20522,14 @@ } }, "x-appwrite": { - "method": "updateAuthSessionsLimit", - "weight": 166, + "method": "updateMembershipsPrivacy", + "group": "auth", + "weight": 163, "cookies": false, "type": "", "deprecated": false, - "demo": "projects\/update-auth-sessions-limit.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "demo": "projects\/update-memberships-privacy.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-memberships-privacy.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -21082,9 +20538,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21109,15 +20562,29 @@ "schema": { "type": "object", "properties": { - "limit": { - "type": "integer", - "description": "Set the max number of users allowed in this project. Value allowed is between 1-100. Default is 10", + "userName": { + "type": "boolean", + "description": "Set to true to show userName to members of a team.", "default": null, - "x-example": 1 + "x-example": false + }, + "userEmail": { + "type": "boolean", + "description": "Set to true to show email to members of a team.", + "default": null, + "x-example": false + }, + "mfa": { + "type": "boolean", + "description": "Set to true to show mfa to members of a team.", + "default": null, + "x-example": false } }, "required": [ - "limit" + "userName", + "userEmail", + "mfa" ] } } @@ -21137,7 +20604,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the list of mock phone numbers for testing. Use these numbers to bypass SMS verification in development. ", "responses": { "200": { "description": "Project", @@ -21148,12 +20615,13 @@ }, "x-appwrite": { "method": "updateMockNumbers", - "weight": 167, + "group": "auth", + "weight": 171, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-mock-numbers.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-mock-numbers.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -21162,9 +20630,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21220,7 +20685,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Enable or disable checking user passwords against common passwords dictionary. This helps ensure users don't use common and insecure passwords. ", "responses": { "200": { "description": "Project", @@ -21231,12 +20696,13 @@ }, "x-appwrite": { "method": "updateAuthPasswordDictionary", - "weight": 164, + "group": "auth", + "weight": 168, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-auth-password-dictionary.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-auth-password-dictionary.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -21245,9 +20711,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21300,7 +20763,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the authentication password history requirement. Use this endpoint to require new passwords to be different than the last X amount of previously used ones.", "responses": { "200": { "description": "Project", @@ -21311,12 +20774,13 @@ }, "x-appwrite": { "method": "updateAuthPasswordHistory", - "weight": 163, + "group": "auth", + "weight": 167, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-auth-password-history.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-auth-password-history.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -21325,9 +20789,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21369,7 +20830,7 @@ }, "\/projects\/{projectId}\/auth\/personal-data": { "patch": { - "summary": "Enable or disable checking user passwords for similarity with their personal data.", + "summary": "Update personal data check", "operationId": "projectsUpdatePersonalDataCheck", "consumes": [ "application\/json" @@ -21380,7 +20841,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Enable or disable checking user passwords against their personal data. This helps prevent users from using personal information in their passwords. ", "responses": { "200": { "description": "Project", @@ -21391,12 +20852,13 @@ }, "x-appwrite": { "method": "updatePersonalDataCheck", - "weight": 165, + "group": "auth", + "weight": 169, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-personal-data-check.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-personal-data-check.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -21405,9 +20867,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21460,7 +20919,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Enable or disable session email alerts. When enabled, users will receive email notifications when new sessions are created.", "responses": { "200": { "description": "Project", @@ -21471,12 +20930,13 @@ }, "x-appwrite": { "method": "updateSessionAlerts", - "weight": 159, + "group": "auth", + "weight": 162, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-session-alerts.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-session-alerts.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -21485,9 +20945,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21540,7 +20997,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the status of a specific authentication method. Use this endpoint to enable or disable different authentication methods such as email, magic urls or sms in your project. ", "responses": { "200": { "description": "Project", @@ -21551,12 +21008,13 @@ }, "x-appwrite": { "method": "updateAuthStatus", - "weight": 162, + "group": "auth", + "weight": 166, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-auth-status.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-auth-status.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -21565,9 +21023,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21639,7 +21094,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Create a new JWT token. This token can be used to authenticate users with custom scopes and expiration time. ", "responses": { "201": { "description": "JWT", @@ -21650,12 +21105,13 @@ }, "x-appwrite": { "method": "createJWT", - "weight": 180, + "group": "auth", + "weight": 184, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/create-j-w-t.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/create-jwt.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -21664,9 +21120,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21719,16 +21172,14 @@ "get": { "summary": "List keys", "operationId": "projectsListKeys", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "projects" ], - "description": "", + "description": "Get a list of all API keys from the current project. ", "responses": { "200": { "description": "API Keys List", @@ -21739,23 +21190,21 @@ }, "x-appwrite": { "method": "listKeys", - "weight": 176, + "group": "keys", + "weight": 180, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/list-keys.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/list-keys.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.read", + "scope": "keys.read", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21788,7 +21237,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Create a new API key. It's recommended to have multiple API keys with strict scopes for separate functions within your project.", "responses": { "201": { "description": "Key", @@ -21799,23 +21248,21 @@ }, "x-appwrite": { "method": "createKey", - "weight": 175, + "group": "keys", + "weight": 179, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/create-key.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/create-key.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.write", + "scope": "keys.write", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21875,16 +21322,14 @@ "get": { "summary": "Get key", "operationId": "projectsGetKey", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "projects" ], - "description": "", + "description": "Get a key by its unique ID. This endpoint returns details about a specific API key in your project including it's scopes.", "responses": { "200": { "description": "Key", @@ -21895,23 +21340,21 @@ }, "x-appwrite": { "method": "getKey", - "weight": 177, + "group": "keys", + "weight": 181, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/get-key.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/get-key.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.read", + "scope": "keys.read", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21952,7 +21395,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update a key by its unique ID. Use this endpoint to update the name, scopes, or expiration time of an API key. ", "responses": { "200": { "description": "Key", @@ -21963,23 +21406,21 @@ }, "x-appwrite": { "method": "updateKey", - "weight": 178, + "group": "keys", + "weight": 182, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-key.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-key.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.write", + "scope": "keys.write", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22052,7 +21493,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Delete a key by its unique ID. Once deleted, the key can no longer be used to authenticate API calls. ", "responses": { "204": { "description": "No content" @@ -22060,23 +21501,21 @@ }, "x-appwrite": { "method": "deleteKey", - "weight": 179, + "group": "keys", + "weight": 183, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/delete-key.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/delete-key.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.write", + "scope": "keys.write", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22119,7 +21558,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the OAuth2 provider configurations. Use this endpoint to set up or update the OAuth2 provider credentials or enable\/disable providers. ", "responses": { "200": { "description": "Project", @@ -22130,12 +21569,13 @@ }, "x-appwrite": { "method": "updateOAuth2", - "weight": 158, + "group": "auth", + "weight": 161, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-o-auth2.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-oauth2.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -22144,9 +21584,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22191,6 +21628,7 @@ "dropbox", "etsy", "facebook", + "figma", "github", "gitlab", "google", @@ -22251,16 +21689,14 @@ "get": { "summary": "List platforms", "operationId": "projectsListPlatforms", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "projects" ], - "description": "", + "description": "Get a list of all platforms in the project. This endpoint returns an array of all platforms and their configurations. ", "responses": { "200": { "description": "Platforms List", @@ -22271,23 +21707,21 @@ }, "x-appwrite": { "method": "listPlatforms", - "weight": 182, + "group": "platforms", + "weight": 186, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/list-platforms.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/list-platforms.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.read", + "scope": "platforms.read", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22320,7 +21754,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Create a new platform for your project. Use this endpoint to register a new platform where your users will run your application which will interact with the Appwrite API.", "responses": { "201": { "description": "Platform", @@ -22331,23 +21765,21 @@ }, "x-appwrite": { "method": "createPlatform", - "weight": 181, + "group": "platforms", + "weight": 185, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/create-platform.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/create-platform.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.write", + "scope": "platforms.write", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22435,16 +21867,14 @@ "get": { "summary": "Get platform", "operationId": "projectsGetPlatform", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "projects" ], - "description": "", + "description": "Get a platform by its unique ID. This endpoint returns the platform's details, including its name, type, and key configurations. ", "responses": { "200": { "description": "Platform", @@ -22455,23 +21885,21 @@ }, "x-appwrite": { "method": "getPlatform", - "weight": 183, + "group": "platforms", + "weight": 187, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/get-platform.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/get-platform.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.read", + "scope": "platforms.read", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22512,7 +21940,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update a platform by its unique ID. Use this endpoint to update the platform's name, key, platform store ID, or hostname. ", "responses": { "200": { "description": "Platform", @@ -22523,23 +21951,21 @@ }, "x-appwrite": { "method": "updatePlatform", - "weight": 184, + "group": "platforms", + "weight": 188, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-platform.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-platform.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.write", + "scope": "platforms.write", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22614,7 +22040,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Delete a platform by its unique ID. This endpoint removes the platform and all its configurations from the project. ", "responses": { "204": { "description": "No content" @@ -22622,23 +22048,21 @@ }, "x-appwrite": { "method": "deletePlatform", - "weight": 185, + "group": "platforms", + "weight": 189, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/delete-platform.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/delete-platform.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.write", + "scope": "platforms.write", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22681,7 +22105,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the status of a specific service. Use this endpoint to enable or disable a service in your project. ", "responses": { "200": { "description": "Project", @@ -22692,12 +22116,13 @@ }, "x-appwrite": { "method": "updateServiceStatus", - "weight": 154, + "group": "projects", + "weight": 157, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-service-status.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-service-status.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -22706,9 +22131,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22783,7 +22205,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the status of all services. Use this endpoint to enable or disable all optional services at once. ", "responses": { "200": { "description": "Project", @@ -22794,12 +22216,13 @@ }, "x-appwrite": { "method": "updateServiceStatusAll", - "weight": 155, + "group": "projects", + "weight": 158, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-service-status-all.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-service-status-all.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -22808,9 +22231,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22863,7 +22283,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the SMTP configuration for your project. Use this endpoint to configure your project's SMTP provider with your custom settings for sending transactional emails. ", "responses": { "200": { "description": "Project", @@ -22874,12 +22294,13 @@ }, "x-appwrite": { "method": "updateSmtp", - "weight": 186, + "group": "templates", + "weight": 190, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-smtp.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-smtp.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -22888,9 +22309,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22991,11 +22409,13 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "projects" ], - "description": "", + "description": "Send a test email to verify SMTP configuration. ", "responses": { "204": { "description": "No content" @@ -23003,12 +22423,13 @@ }, "x-appwrite": { "method": "createSmtpTest", - "weight": 187, + "group": "templates", + "weight": 191, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/create-smtp-test.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/create-smtp-test.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -23017,9 +22438,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -23101,7 +22519,8 @@ "default": "", "x-example": "tls", "enum": [ - "tls" + "tls", + "ssl" ], "x-enum-name": "SMTPSecure", "x-enum-keys": [] @@ -23131,7 +22550,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the team ID of a project allowing for it to be transferred to another team.", "responses": { "200": { "description": "Project", @@ -23142,12 +22561,13 @@ }, "x-appwrite": { "method": "updateTeam", - "weight": 153, + "group": "projects", + "weight": 156, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-team.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-team.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -23156,9 +22576,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -23202,16 +22619,14 @@ "get": { "summary": "Get custom email template", "operationId": "projectsGetEmailTemplate", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "projects" ], - "description": "", + "description": "Get a custom email template for the specified locale and type. This endpoint returns the template content, subject, and other configuration details. ", "responses": { "200": { "description": "EmailTemplate", @@ -23222,12 +22637,13 @@ }, "x-appwrite": { "method": "getEmailTemplate", - "weight": 189, + "group": "templates", + "weight": 193, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/get-email-template.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/get-email-template.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -23236,9 +22652,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -23433,23 +22846,24 @@ "tags": [ "projects" ], - "description": "", + "description": "Update a custom email template for the specified locale and type. Use this endpoint to modify the content of your email templates.", "responses": { "200": { - "description": "Project", + "description": "EmailTemplate", "schema": { - "$ref": "#\/definitions\/project" + "$ref": "#\/definitions\/emailTemplate" } } }, "x-appwrite": { "method": "updateEmailTemplate", - "weight": 191, + "group": "templates", + "weight": 195, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-email-template.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-email-template.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -23458,9 +22872,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -23687,7 +23098,7 @@ ] }, "delete": { - "summary": "Reset custom email template", + "summary": "Delete custom email template", "operationId": "projectsDeleteEmailTemplate", "consumes": [ "application\/json" @@ -23698,7 +23109,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Reset a custom email template to its default value. This endpoint removes any custom content and restores the template to its original state. ", "responses": { "200": { "description": "EmailTemplate", @@ -23709,12 +23120,13 @@ }, "x-appwrite": { "method": "deleteEmailTemplate", - "weight": 193, + "group": "templates", + "weight": 197, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/delete-email-template.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/delete-email-template.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -23723,9 +23135,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -23913,16 +23322,14 @@ "get": { "summary": "Get custom SMS template", "operationId": "projectsGetSmsTemplate", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "projects" ], - "description": "", + "description": "Get a custom SMS template for the specified locale and type returning it's contents.", "responses": { "200": { "description": "SmsTemplate", @@ -23933,12 +23340,13 @@ }, "x-appwrite": { "method": "getSmsTemplate", - "weight": 188, + "group": "templates", + "weight": 192, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/get-sms-template.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/get-sms-template.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -23947,9 +23355,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24141,7 +23546,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update a custom SMS template for the specified locale and type. Use this endpoint to modify the content of your SMS templates. ", "responses": { "200": { "description": "SmsTemplate", @@ -24152,12 +23557,13 @@ }, "x-appwrite": { "method": "updateSmsTemplate", - "weight": 190, + "group": "templates", + "weight": 194, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-sms-template.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-sms-template.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -24166,9 +23572,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24378,7 +23781,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Reset a custom SMS template to its default value. This endpoint removes any custom message and restores the template to its original state. ", "responses": { "200": { "description": "SmsTemplate", @@ -24389,12 +23792,13 @@ }, "x-appwrite": { "method": "deleteSmsTemplate", - "weight": 192, + "group": "templates", + "weight": 196, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/delete-sms-template.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/delete-sms-template.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -24403,9 +23807,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24590,16 +23991,14 @@ "get": { "summary": "List webhooks", "operationId": "projectsListWebhooks", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "projects" ], - "description": "", + "description": "Get a list of all webhooks belonging to the project. You can use the query params to filter your results. ", "responses": { "200": { "description": "Webhooks List", @@ -24610,12 +24009,13 @@ }, "x-appwrite": { "method": "listWebhooks", - "weight": 170, + "group": "webhooks", + "weight": 174, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/list-webhooks.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/list-webhooks.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -24624,9 +24024,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24659,7 +24056,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Create a new webhook. Use this endpoint to configure a URL that will receive events from Appwrite when specific events occur. ", "responses": { "201": { "description": "Webhook", @@ -24670,12 +24067,13 @@ }, "x-appwrite": { "method": "createWebhook", - "weight": 169, + "group": "webhooks", + "weight": 173, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/create-webhook.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/create-webhook.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -24684,9 +24082,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24772,16 +24167,14 @@ "get": { "summary": "Get webhook", "operationId": "projectsGetWebhook", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "projects" ], - "description": "", + "description": "Get a webhook by its unique ID. This endpoint returns details about a specific webhook configured for a project. ", "responses": { "200": { "description": "Webhook", @@ -24792,12 +24185,13 @@ }, "x-appwrite": { "method": "getWebhook", - "weight": 171, + "group": "webhooks", + "weight": 175, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/get-webhook.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/get-webhook.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -24806,9 +24200,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24849,7 +24240,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update a webhook by its unique ID. Use this endpoint to update the URL, events, or status of an existing webhook. ", "responses": { "200": { "description": "Webhook", @@ -24860,12 +24251,13 @@ }, "x-appwrite": { "method": "updateWebhook", - "weight": 172, + "group": "webhooks", + "weight": 176, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-webhook.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-webhook.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -24874,9 +24266,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24975,7 +24364,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Delete a webhook by its unique ID. Once deleted, the webhook will no longer receive project events. ", "responses": { "204": { "description": "No content" @@ -24983,12 +24372,13 @@ }, "x-appwrite": { "method": "deleteWebhook", - "weight": 174, + "group": "webhooks", + "weight": 178, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/delete-webhook.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/delete-webhook.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -24997,9 +24387,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25042,7 +24429,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the webhook signature key. This endpoint can be used to regenerate the signature key used to sign and validate payload deliveries for a specific webhook. ", "responses": { "200": { "description": "Webhook", @@ -25053,12 +24440,13 @@ }, "x-appwrite": { "method": "updateWebhookSignature", - "weight": 173, + "group": "webhooks", + "weight": 177, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-webhook-signature.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-webhook-signature.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -25067,9 +24455,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25101,11 +24486,9 @@ }, "\/proxy\/rules": { "get": { - "summary": "List Rules", + "summary": "List rules", "operationId": "proxyListRules", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -25123,7 +24506,8 @@ }, "x-appwrite": { "method": "listRules", - "weight": 315, + "group": null, + "weight": 319, "cookies": false, "type": "", "deprecated": false, @@ -25137,9 +24521,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25174,7 +24555,7 @@ ] }, "post": { - "summary": "Create Rule", + "summary": "Create rule", "operationId": "proxyCreateRule", "consumes": [ "application\/json" @@ -25196,7 +24577,8 @@ }, "x-appwrite": { "method": "createRule", - "weight": 314, + "group": null, + "weight": 318, "cookies": false, "type": "", "deprecated": false, @@ -25210,9 +24592,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25265,11 +24644,9 @@ }, "\/proxy\/rules\/{ruleId}": { "get": { - "summary": "Get Rule", + "summary": "Get rule", "operationId": "proxyGetRule", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -25287,7 +24664,8 @@ }, "x-appwrite": { "method": "getRule", - "weight": 316, + "group": null, + "weight": 320, "cookies": false, "type": "", "deprecated": false, @@ -25301,9 +24679,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25325,7 +24700,7 @@ ] }, "delete": { - "summary": "Delete Rule", + "summary": "Delete rule", "operationId": "proxyDeleteRule", "consumes": [ "application\/json" @@ -25342,7 +24717,8 @@ }, "x-appwrite": { "method": "deleteRule", - "weight": 317, + "group": null, + "weight": 321, "cookies": false, "type": "", "deprecated": false, @@ -25356,9 +24732,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25382,7 +24755,7 @@ }, "\/proxy\/rules\/{ruleId}\/verification": { "patch": { - "summary": "Update Rule Verification Status", + "summary": "Update rule verification status", "operationId": "proxyUpdateRuleVerification", "consumes": [ "application\/json" @@ -25393,7 +24766,7 @@ "tags": [ "proxy" ], - "description": "", + "description": "Retry getting verification process of a proxy rule. This endpoint triggers domain verification by checking DNS records (CNAME) against the configured target domain. If verification is successful, a TLS certificate will be automatically provisioned for the domain.", "responses": { "200": { "description": "Rule", @@ -25404,12 +24777,13 @@ }, "x-appwrite": { "method": "updateRuleVerification", - "weight": 318, + "group": null, + "weight": 322, "cookies": false, "type": "", "deprecated": false, "demo": "proxy\/update-rule-verification.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/proxy\/update-rule-verification.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -25418,9 +24792,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25446,9 +24817,7 @@ "get": { "summary": "List buckets", "operationId": "storageListBuckets", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -25466,7 +24835,8 @@ }, "x-appwrite": { "method": "listBuckets", - "weight": 201, + "group": "buckets", + "weight": 205, "cookies": false, "type": "", "deprecated": false, @@ -25480,9 +24850,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25540,7 +24907,8 @@ }, "x-appwrite": { "method": "createBucket", - "weight": 200, + "group": "buckets", + "weight": 204, "cookies": false, "type": "", "deprecated": false, @@ -25554,9 +24922,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25661,9 +25026,7 @@ "get": { "summary": "Get bucket", "operationId": "storageGetBucket", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -25681,7 +25044,8 @@ }, "x-appwrite": { "method": "getBucket", - "weight": 202, + "group": "buckets", + "weight": 206, "cookies": false, "type": "", "deprecated": false, @@ -25695,9 +25059,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25742,7 +25103,8 @@ }, "x-appwrite": { "method": "updateBucket", - "weight": 203, + "group": "buckets", + "weight": 207, "cookies": false, "type": "", "deprecated": false, @@ -25756,9 +25118,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25877,7 +25236,8 @@ }, "x-appwrite": { "method": "deleteBucket", - "weight": 204, + "group": "buckets", + "weight": 208, "cookies": false, "type": "", "deprecated": false, @@ -25891,9 +25251,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25920,9 +25277,7 @@ "get": { "summary": "List files", "operationId": "storageListFiles", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -25940,7 +25295,8 @@ }, "x-appwrite": { "method": "listFiles", - "weight": 206, + "group": "files", + "weight": 210, "cookies": false, "type": "", "deprecated": false, @@ -25956,9 +25312,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26025,7 +25378,8 @@ }, "x-appwrite": { "method": "createFile", - "weight": 205, + "group": "files", + "weight": 209, "cookies": false, "type": "upload", "deprecated": false, @@ -26041,9 +25395,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26099,9 +25450,7 @@ "get": { "summary": "Get file", "operationId": "storageGetFile", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -26119,7 +25468,8 @@ }, "x-appwrite": { "method": "getFile", - "weight": 207, + "group": "files", + "weight": 211, "cookies": false, "type": "", "deprecated": false, @@ -26135,9 +25485,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26191,7 +25538,8 @@ }, "x-appwrite": { "method": "updateFile", - "weight": 212, + "group": "files", + "weight": 216, "cookies": false, "type": "", "deprecated": false, @@ -26207,9 +25555,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26265,7 +25610,7 @@ ] }, "delete": { - "summary": "Delete File", + "summary": "Delete file", "operationId": "storageDeleteFile", "consumes": [ "application\/json" @@ -26282,7 +25627,8 @@ }, "x-appwrite": { "method": "deleteFile", - "weight": 213, + "group": "files", + "weight": 217, "cookies": false, "type": "", "deprecated": false, @@ -26298,9 +25644,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26336,9 +25679,7 @@ "get": { "summary": "Get file for download", "operationId": "storageGetFileDownload", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "*\/*" ], @@ -26356,7 +25697,8 @@ }, "x-appwrite": { "method": "getFileDownload", - "weight": 209, + "group": "files", + "weight": 213, "cookies": false, "type": "location", "deprecated": false, @@ -26372,9 +25714,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26410,9 +25749,7 @@ "get": { "summary": "Get file preview", "operationId": "storageGetFilePreview", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/*" ], @@ -26430,7 +25767,8 @@ }, "x-appwrite": { "method": "getFilePreview", - "weight": 208, + "group": "files", + "weight": 212, "cookies": false, "type": "location", "deprecated": false, @@ -26446,9 +25784,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26596,7 +25931,9 @@ "jpeg", "gif", "png", - "webp" + "webp", + "heic", + "avif" ], "x-enum-name": "ImageFormat", "x-enum-keys": [], @@ -26610,9 +25947,7 @@ "get": { "summary": "Get file for view", "operationId": "storageGetFileView", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "*\/*" ], @@ -26630,7 +25965,8 @@ }, "x-appwrite": { "method": "getFileView", - "weight": 210, + "group": "files", + "weight": 214, "cookies": false, "type": "location", "deprecated": false, @@ -26646,9 +25982,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26684,16 +26017,14 @@ "get": { "summary": "Get storage usage stats", "operationId": "storageGetUsage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "storage" ], - "description": "", + "description": "Get usage metrics and statistics for all buckets in the project. You can view the total number of buckets, files, storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.\n", "responses": { "200": { "description": "StorageUsage", @@ -26704,12 +26035,13 @@ }, "x-appwrite": { "method": "getUsage", - "weight": 214, + "group": null, + "weight": 218, "cookies": false, "type": "", "deprecated": false, "demo": "storage\/get-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -26718,9 +26050,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26758,16 +26087,14 @@ "get": { "summary": "Get bucket usage stats", "operationId": "storageGetBucketUsage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "storage" ], - "description": "", + "description": "Get usage metrics and statistics a specific bucket in the project. You can view the total number of files, storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.\n", "responses": { "200": { "description": "UsageBuckets", @@ -26778,12 +26105,13 @@ }, "x-appwrite": { "method": "getBucketUsage", - "weight": 215, + "group": null, + "weight": 219, "cookies": false, "type": "", "deprecated": false, "demo": "storage\/get-bucket-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-bucket-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -26792,9 +26120,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26840,9 +26165,7 @@ "get": { "summary": "List teams", "operationId": "teamsList", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -26860,7 +26183,8 @@ }, "x-appwrite": { "method": "list", - "weight": 217, + "group": "teams", + "weight": 221, "cookies": false, "type": "", "deprecated": false, @@ -26876,9 +26200,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26937,7 +26258,8 @@ }, "x-appwrite": { "method": "create", - "weight": 216, + "group": "teams", + "weight": 220, "cookies": false, "type": "", "deprecated": false, @@ -26953,9 +26275,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27011,9 +26330,7 @@ "get": { "summary": "Get team", "operationId": "teamsGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -27031,7 +26348,8 @@ }, "x-appwrite": { "method": "get", - "weight": 218, + "group": "teams", + "weight": 222, "cookies": false, "type": "", "deprecated": false, @@ -27047,9 +26365,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "{teamId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27095,7 +26410,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 220, + "group": "teams", + "weight": 224, "cookies": false, "type": "", "deprecated": false, @@ -27111,9 +26427,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "{teamId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27172,7 +26485,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 222, + "group": "teams", + "weight": 226, "cookies": false, "type": "", "deprecated": false, @@ -27188,9 +26502,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27218,9 +26529,7 @@ "get": { "summary": "List team logs", "operationId": "teamsListLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -27238,7 +26547,8 @@ }, "x-appwrite": { "method": "listLogs", - "weight": 229, + "group": "logs", + "weight": 233, "cookies": false, "type": "", "deprecated": false, @@ -27252,9 +26562,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27292,16 +26599,14 @@ "get": { "summary": "List team memberships", "operationId": "teamsListMemberships", - "consumes": [ - "application\/json" - ], + "consumes": [], "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.", + "description": "Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint. Hide sensitive attributes from the response by toggling membership privacy in the Console.", "responses": { "200": { "description": "Memberships List", @@ -27312,7 +26617,8 @@ }, "x-appwrite": { "method": "listMemberships", - "weight": 224, + "group": "memberships", + "weight": 228, "cookies": false, "type": "", "deprecated": false, @@ -27328,9 +26634,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/memberships", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27397,7 +26700,8 @@ }, "x-appwrite": { "method": "createMembership", - "weight": 223, + "group": "memberships", + "weight": 227, "cookies": false, "type": "", "deprecated": false, @@ -27413,9 +26717,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27494,16 +26795,14 @@ "get": { "summary": "Get team membership", "operationId": "teamsGetMembership", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "teams" ], - "description": "Get a team member by the membership unique id. All team members have read access for this resource.", + "description": "Get a team member by the membership unique id. All team members have read access for this resource. Hide sensitive attributes from the response by toggling membership privacy in the Console.", "responses": { "200": { "description": "Membership", @@ -27514,7 +26813,8 @@ }, "x-appwrite": { "method": "getMembership", - "weight": 225, + "group": "memberships", + "weight": 229, "cookies": false, "type": "", "deprecated": false, @@ -27530,9 +26830,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/memberships", - "offline-key": "{membershipId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27586,7 +26883,8 @@ }, "x-appwrite": { "method": "updateMembership", - "weight": 226, + "group": "memberships", + "weight": 230, "cookies": false, "type": "", "deprecated": false, @@ -27602,9 +26900,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27674,7 +26969,8 @@ }, "x-appwrite": { "method": "deleteMembership", - "weight": 228, + "group": "memberships", + "weight": 232, "cookies": false, "type": "", "deprecated": false, @@ -27690,9 +26986,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27748,7 +27041,8 @@ }, "x-appwrite": { "method": "updateMembershipStatus", - "weight": 227, + "group": "memberships", + "weight": 231, "cookies": false, "type": "", "deprecated": false, @@ -27763,9 +27057,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27825,9 +27116,7 @@ "get": { "summary": "Get team preferences", "operationId": "teamsGetPrefs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -27845,7 +27134,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 219, + "group": "teams", + "weight": 223, "cookies": false, "type": "", "deprecated": false, @@ -27860,9 +27150,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/prefs", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27907,7 +27194,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 221, + "group": "teams", + "weight": 225, "cookies": false, "type": "", "deprecated": false, @@ -27922,9 +27210,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/prefs", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27969,9 +27254,7 @@ "get": { "summary": "List users", "operationId": "usersList", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -27989,7 +27272,8 @@ }, "x-appwrite": { "method": "list", - "weight": 239, + "group": "users", + "weight": 243, "cookies": false, "type": "", "deprecated": false, @@ -28003,9 +27287,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28063,7 +27344,8 @@ }, "x-appwrite": { "method": "create", - "weight": 230, + "group": "users", + "weight": 234, "cookies": false, "type": "", "deprecated": false, @@ -28077,9 +27359,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28160,7 +27439,8 @@ }, "x-appwrite": { "method": "createArgon2User", - "weight": 233, + "group": "users", + "weight": 237, "cookies": false, "type": "", "deprecated": false, @@ -28174,9 +27454,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28253,7 +27530,8 @@ }, "x-appwrite": { "method": "createBcryptUser", - "weight": 231, + "group": "users", + "weight": 235, "cookies": false, "type": "", "deprecated": false, @@ -28267,9 +27545,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28324,11 +27599,9 @@ }, "\/users\/identities": { "get": { - "summary": "List Identities", + "summary": "List identities", "operationId": "usersListIdentities", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -28346,7 +27619,8 @@ }, "x-appwrite": { "method": "listIdentities", - "weight": 247, + "group": "identities", + "weight": 251, "cookies": false, "type": "", "deprecated": false, @@ -28360,9 +27634,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28417,7 +27688,8 @@ }, "x-appwrite": { "method": "deleteIdentity", - "weight": 270, + "group": "identities", + "weight": 274, "cookies": false, "type": "", "deprecated": false, @@ -28431,9 +27703,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28480,7 +27749,8 @@ }, "x-appwrite": { "method": "createMD5User", - "weight": 232, + "group": "users", + "weight": 236, "cookies": false, "type": "", "deprecated": false, @@ -28494,9 +27764,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28573,7 +27840,8 @@ }, "x-appwrite": { "method": "createPHPassUser", - "weight": 235, + "group": "users", + "weight": 239, "cookies": false, "type": "", "deprecated": false, @@ -28587,9 +27855,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28666,7 +27931,8 @@ }, "x-appwrite": { "method": "createScryptUser", - "weight": 236, + "group": "users", + "weight": 240, "cookies": false, "type": "", "deprecated": false, @@ -28680,9 +27946,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28794,7 +28057,8 @@ }, "x-appwrite": { "method": "createScryptModifiedUser", - "weight": 237, + "group": "users", + "weight": 241, "cookies": false, "type": "", "deprecated": false, @@ -28808,9 +28072,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28908,7 +28169,8 @@ }, "x-appwrite": { "method": "createSHAUser", - "weight": 234, + "group": "users", + "weight": 238, "cookies": false, "type": "", "deprecated": false, @@ -28922,9 +28184,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29002,16 +28261,14 @@ "get": { "summary": "Get users usage stats", "operationId": "usersGetUsage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "users" ], - "description": "", + "description": "Get usage metrics and statistics for all users in the project. You can view the total number of users and sessions. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.\n", "responses": { "200": { "description": "UsageUsers", @@ -29022,12 +28279,13 @@ }, "x-appwrite": { "method": "getUsage", - "weight": 272, + "group": null, + "weight": 276, "cookies": false, "type": "", "deprecated": false, "demo": "users\/get-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/get-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -29036,9 +28294,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29076,9 +28331,7 @@ "get": { "summary": "Get user", "operationId": "usersGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -29096,7 +28349,8 @@ }, "x-appwrite": { "method": "get", - "weight": 240, + "group": "users", + "weight": 244, "cookies": false, "type": "", "deprecated": false, @@ -29110,9 +28364,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29152,7 +28403,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 268, + "group": "users", + "weight": 272, "cookies": false, "type": "", "deprecated": false, @@ -29166,9 +28418,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29215,7 +28464,8 @@ }, "x-appwrite": { "method": "updateEmail", - "weight": 253, + "group": "users", + "weight": 257, "cookies": false, "type": "", "deprecated": false, @@ -29229,9 +28479,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29296,7 +28543,8 @@ }, "x-appwrite": { "method": "createJWT", - "weight": 271, + "group": "sessions", + "weight": 275, "cookies": false, "type": "", "deprecated": false, @@ -29310,9 +28558,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29380,7 +28625,8 @@ }, "x-appwrite": { "method": "updateLabels", - "weight": 249, + "group": "users", + "weight": 253, "cookies": false, "type": "", "deprecated": false, @@ -29394,9 +28640,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29444,9 +28687,7 @@ "get": { "summary": "List user logs", "operationId": "usersListLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -29464,7 +28705,8 @@ }, "x-appwrite": { "method": "listLogs", - "weight": 245, + "group": "logs", + "weight": 249, "cookies": false, "type": "", "deprecated": false, @@ -29478,9 +28720,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29519,9 +28758,7 @@ "get": { "summary": "List user memberships", "operationId": "usersListMemberships", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -29539,7 +28776,8 @@ }, "x-appwrite": { "method": "listMemberships", - "weight": 244, + "group": "memberships", + "weight": 248, "cookies": false, "type": "", "deprecated": false, @@ -29553,9 +28791,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29602,7 +28837,8 @@ }, "x-appwrite": { "method": "updateMfa", - "weight": 258, + "group": "users", + "weight": 262, "cookies": false, "type": "", "deprecated": false, @@ -29616,9 +28852,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29661,29 +28894,25 @@ }, "\/users\/{userId}\/mfa\/authenticators\/{type}": { "delete": { - "summary": "Delete Authenticator", + "summary": "Delete authenticator", "operationId": "usersDeleteMfaAuthenticator", "consumes": [ "application\/json" ], - "produces": [ - "application\/json" - ], + "produces": [], "tags": [ "users" ], "description": "Delete an authenticator app.", "responses": { - "200": { - "description": "User", - "schema": { - "$ref": "#\/definitions\/user" - } + "204": { + "description": "No content" } }, "x-appwrite": { "method": "deleteMfaAuthenticator", - "weight": 263, + "group": "mfa", + "weight": 267, "cookies": false, "type": "", "deprecated": false, @@ -29697,9 +28926,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29737,11 +28963,9 @@ }, "\/users\/{userId}\/mfa\/factors": { "get": { - "summary": "List Factors", + "summary": "List factors", "operationId": "usersListMfaFactors", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -29759,7 +28983,8 @@ }, "x-appwrite": { "method": "listMfaFactors", - "weight": 259, + "group": "mfa", + "weight": 263, "cookies": false, "type": "", "deprecated": false, @@ -29773,9 +28998,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29800,11 +29022,9 @@ }, "\/users\/{userId}\/mfa\/recovery-codes": { "get": { - "summary": "Get MFA Recovery Codes", + "summary": "Get MFA recovery codes", "operationId": "usersGetMfaRecoveryCodes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -29822,7 +29042,8 @@ }, "x-appwrite": { "method": "getMfaRecoveryCodes", - "weight": 260, + "group": "mfa", + "weight": 264, "cookies": false, "type": "", "deprecated": false, @@ -29836,9 +29057,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29861,7 +29079,7 @@ ] }, "put": { - "summary": "Regenerate MFA Recovery Codes", + "summary": "Update MFA recovery codes (regenerate)", "operationId": "usersUpdateMfaRecoveryCodes", "consumes": [ "application\/json" @@ -29883,7 +29101,8 @@ }, "x-appwrite": { "method": "updateMfaRecoveryCodes", - "weight": 262, + "group": "mfa", + "weight": 266, "cookies": false, "type": "", "deprecated": false, @@ -29897,9 +29116,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29922,7 +29138,7 @@ ] }, "patch": { - "summary": "Create MFA Recovery Codes", + "summary": "Create MFA recovery codes", "operationId": "usersCreateMfaRecoveryCodes", "consumes": [ "application\/json" @@ -29944,7 +29160,8 @@ }, "x-appwrite": { "method": "createMfaRecoveryCodes", - "weight": 261, + "group": "mfa", + "weight": 265, "cookies": false, "type": "", "deprecated": false, @@ -29958,9 +29175,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30007,7 +29221,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 251, + "group": "users", + "weight": 255, "cookies": false, "type": "", "deprecated": false, @@ -30021,9 +29236,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30088,7 +29300,8 @@ }, "x-appwrite": { "method": "updatePassword", - "weight": 252, + "group": "users", + "weight": 256, "cookies": false, "type": "", "deprecated": false, @@ -30102,9 +29315,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30169,7 +29379,8 @@ }, "x-appwrite": { "method": "updatePhone", - "weight": 254, + "group": "users", + "weight": 258, "cookies": false, "type": "", "deprecated": false, @@ -30183,9 +29394,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30230,9 +29438,7 @@ "get": { "summary": "Get user preferences", "operationId": "usersGetPrefs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -30250,7 +29456,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 241, + "group": "users", + "weight": 245, "cookies": false, "type": "", "deprecated": false, @@ -30264,9 +29471,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30311,7 +29515,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 256, + "group": "users", + "weight": 260, "cookies": false, "type": "", "deprecated": false, @@ -30325,9 +29530,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30372,9 +29574,7 @@ "get": { "summary": "List user sessions", "operationId": "usersListSessions", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -30392,7 +29592,8 @@ }, "x-appwrite": { "method": "listSessions", - "weight": 243, + "group": "sessions", + "weight": 247, "cookies": false, "type": "", "deprecated": false, @@ -30406,9 +29607,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30453,7 +29651,8 @@ }, "x-appwrite": { "method": "createSession", - "weight": 264, + "group": "sessions", + "weight": 268, "cookies": false, "type": "", "deprecated": false, @@ -30467,9 +29666,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30509,7 +29705,8 @@ }, "x-appwrite": { "method": "deleteSessions", - "weight": 267, + "group": "sessions", + "weight": 271, "cookies": false, "type": "", "deprecated": false, @@ -30523,9 +29720,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30567,7 +29761,8 @@ }, "x-appwrite": { "method": "deleteSession", - "weight": 266, + "group": "sessions", + "weight": 270, "cookies": false, "type": "", "deprecated": false, @@ -30581,9 +29776,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30638,7 +29830,8 @@ }, "x-appwrite": { "method": "updateStatus", - "weight": 248, + "group": "users", + "weight": 252, "cookies": false, "type": "", "deprecated": false, @@ -30652,9 +29845,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30697,11 +29887,9 @@ }, "\/users\/{userId}\/targets": { "get": { - "summary": "List User Targets", + "summary": "List user targets", "operationId": "usersListTargets", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -30719,7 +29907,8 @@ }, "x-appwrite": { "method": "listTargets", - "weight": 246, + "group": "targets", + "weight": 250, "cookies": false, "type": "", "deprecated": false, @@ -30734,9 +29923,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30771,7 +29957,7 @@ ] }, "post": { - "summary": "Create User Target", + "summary": "Create user target", "operationId": "usersCreateTarget", "consumes": [ "application\/json" @@ -30793,7 +29979,8 @@ }, "x-appwrite": { "method": "createTarget", - "weight": 238, + "group": "targets", + "weight": 242, "cookies": false, "type": "", "deprecated": false, @@ -30808,9 +29995,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30886,11 +30070,9 @@ }, "\/users\/{userId}\/targets\/{targetId}": { "get": { - "summary": "Get User Target", + "summary": "Get user target", "operationId": "usersGetTarget", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -30908,7 +30090,8 @@ }, "x-appwrite": { "method": "getTarget", - "weight": 242, + "group": "targets", + "weight": 246, "cookies": false, "type": "", "deprecated": false, @@ -30923,9 +30106,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30956,7 +30136,7 @@ ] }, "patch": { - "summary": "Update User target", + "summary": "Update user target", "operationId": "usersUpdateTarget", "consumes": [ "application\/json" @@ -30978,7 +30158,8 @@ }, "x-appwrite": { "method": "updateTarget", - "weight": 257, + "group": "targets", + "weight": 261, "cookies": false, "type": "", "deprecated": false, @@ -30993,9 +30174,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31058,9 +30236,7 @@ "consumes": [ "application\/json" ], - "produces": [ - "application\/json" - ], + "produces": [], "tags": [ "users" ], @@ -31072,7 +30248,8 @@ }, "x-appwrite": { "method": "deleteTarget", - "weight": 269, + "group": "targets", + "weight": 273, "cookies": false, "type": "", "deprecated": false, @@ -31087,9 +30264,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31144,7 +30318,8 @@ }, "x-appwrite": { "method": "createToken", - "weight": 265, + "group": "sessions", + "weight": 269, "cookies": false, "type": "", "deprecated": false, @@ -31158,9 +30333,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31228,7 +30400,8 @@ }, "x-appwrite": { "method": "updateEmailVerification", - "weight": 255, + "group": "users", + "weight": 259, "cookies": false, "type": "", "deprecated": false, @@ -31242,9 +30415,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31309,7 +30479,8 @@ }, "x-appwrite": { "method": "updatePhoneVerification", - "weight": 250, + "group": "users", + "weight": 254, "cookies": false, "type": "", "deprecated": false, @@ -31323,9 +30494,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31368,18 +30536,16 @@ }, "\/vcs\/github\/installations\/{installationId}\/providerRepositories": { "get": { - "summary": "List Repositories", + "summary": "List repositories", "operationId": "vcsListRepositories", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "vcs" ], - "description": "", + "description": "Get a list of GitHub repositories available through your installation. This endpoint returns repositories with their basic information, detected runtime environments, and latest push dates. You can optionally filter repositories using a search term. Each repository's runtime is automatically detected based on its contents and language statistics. The GitHub installation must be properly configured for this endpoint to work.", "responses": { "200": { "description": "Provider Repositories List", @@ -31390,12 +30556,13 @@ }, "x-appwrite": { "method": "listRepositories", - "weight": 277, + "group": "repositories", + "weight": 281, "cookies": false, "type": "", "deprecated": false, "demo": "vcs\/list-repositories.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/vcs\/list-repositories.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -31404,9 +30571,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31448,7 +30612,7 @@ "tags": [ "vcs" ], - "description": "", + "description": "Create a new GitHub repository through your installation. This endpoint allows you to create either a public or private repository by specifying a name and visibility setting. The repository will be created under your GitHub user account or organization, depending on your installation type. The GitHub installation must be properly configured and have the necessary permissions for repository creation.", "responses": { "200": { "description": "ProviderRepository", @@ -31459,12 +30623,13 @@ }, "x-appwrite": { "method": "createRepository", - "weight": 278, + "group": "repositories", + "weight": 282, "cookies": false, "type": "", "deprecated": false, "demo": "vcs\/create-repository.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/vcs\/create-repository.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -31473,9 +30638,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31526,16 +30688,14 @@ "get": { "summary": "Get repository", "operationId": "vcsGetRepository", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "vcs" ], - "description": "", + "description": "Get detailed information about a specific GitHub repository from your installation. This endpoint returns repository details including its ID, name, visibility status, organization, and latest push date. The GitHub installation must be properly configured and have access to the requested repository for this endpoint to work.", "responses": { "200": { "description": "ProviderRepository", @@ -31546,12 +30706,13 @@ }, "x-appwrite": { "method": "getRepository", - "weight": 279, + "group": "repositories", + "weight": 283, "cookies": false, "type": "", "deprecated": false, "demo": "vcs\/get-repository.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/vcs\/get-repository.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -31560,9 +30721,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31594,18 +30752,16 @@ }, "\/vcs\/github\/installations\/{installationId}\/providerRepositories\/{providerRepositoryId}\/branches": { "get": { - "summary": "List Repository Branches", + "summary": "List repository branches", "operationId": "vcsListRepositoryBranches", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "vcs" ], - "description": "", + "description": "Get a list of all branches from a GitHub repository in your installation. This endpoint returns the names of all branches in the repository and their total count. The GitHub installation must be properly configured and have access to the requested repository for this endpoint to work.\n", "responses": { "200": { "description": "Branches List", @@ -31616,12 +30772,13 @@ }, "x-appwrite": { "method": "listRepositoryBranches", - "weight": 280, + "group": "repositories", + "weight": 284, "cookies": false, "type": "", "deprecated": false, "demo": "vcs\/list-repository-branches.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/vcs\/list-repository-branches.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -31630,9 +30787,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31666,16 +30820,14 @@ "get": { "summary": "Get files and directories of a VCS repository", "operationId": "vcsGetRepositoryContents", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "vcs" ], - "description": "", + "description": "Get a list of files and directories from a GitHub repository connected to your project. This endpoint returns the contents of a specified repository path, including file names, sizes, and whether each item is a file or directory. The GitHub installation must be properly configured and the repository must be accessible through your installation for this endpoint to work.\n", "responses": { "200": { "description": "VCS Content List", @@ -31686,12 +30838,13 @@ }, "x-appwrite": { "method": "getRepositoryContents", - "weight": 275, + "group": "repositories", + "weight": 279, "cookies": false, "type": "", "deprecated": false, "demo": "vcs\/get-repository-contents.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/vcs\/get-repository-contents.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -31700,9 +30853,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31743,7 +30893,7 @@ }, "\/vcs\/github\/installations\/{installationId}\/providerRepositories\/{providerRepositoryId}\/detection": { "post": { - "summary": "Detect runtime settings from source code", + "summary": "Create runtime settings detection", "operationId": "vcsCreateRepositoryDetection", "consumes": [ "application\/json" @@ -31754,7 +30904,7 @@ "tags": [ "vcs" ], - "description": "", + "description": "Analyze a GitHub repository to automatically detect the programming language and runtime environment. This endpoint scans the repository's files and language statistics to determine the appropriate runtime settings for your function. The GitHub installation must be properly configured and the repository must be accessible through your installation for this endpoint to work.", "responses": { "200": { "description": "Detection", @@ -31765,12 +30915,13 @@ }, "x-appwrite": { "method": "createRepositoryDetection", - "weight": 276, + "group": "repositories", + "weight": 280, "cookies": false, "type": "", "deprecated": false, "demo": "vcs\/create-repository-detection.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/vcs\/create-repository-detection.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -31779,9 +30930,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31828,16 +30976,18 @@ }, "\/vcs\/github\/installations\/{installationId}\/repositories\/{repositoryId}": { "patch": { - "summary": "Authorize external deployment", + "summary": "Update external deployment (authorize)", "operationId": "vcsUpdateExternalDeployments", "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "vcs" ], - "description": "", + "description": "Authorize and create deployments for a GitHub pull request in your project. This endpoint allows external contributions by creating deployments from pull requests, enabling preview environments for code review. The pull request must be open and not previously authorized. The GitHub installation must be properly configured and have access to both the repository and pull request for this endpoint to work.", "responses": { "204": { "description": "No content" @@ -31845,12 +30995,13 @@ }, "x-appwrite": { "method": "updateExternalDeployments", - "weight": 285, + "group": "repositories", + "weight": 289, "cookies": false, "type": "", "deprecated": false, "demo": "vcs\/update-external-deployments.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/vcs\/update-external-deployments.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -31859,9 +31010,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31913,16 +31061,14 @@ "get": { "summary": "List installations", "operationId": "vcsListInstallations", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "vcs" ], - "description": "", + "description": "List all VCS installations configured for the current project. This endpoint returns a list of installations including their provider, organization, and other configuration details.\n", "responses": { "200": { "description": "Installations List", @@ -31933,7 +31079,8 @@ }, "x-appwrite": { "method": "listInstallations", - "weight": 282, + "group": "installations", + "weight": 286, "cookies": false, "type": "", "deprecated": false, @@ -31947,9 +31094,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31988,16 +31132,14 @@ "get": { "summary": "Get installation", "operationId": "vcsGetInstallation", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "vcs" ], - "description": "", + "description": "Get a VCS installation by its unique ID. This endpoint returns the installation's details including its provider, organization, and configuration. ", "responses": { "200": { "description": "Installation", @@ -32008,7 +31150,8 @@ }, "x-appwrite": { "method": "getInstallation", - "weight": 283, + "group": "installations", + "weight": 287, "cookies": false, "type": "", "deprecated": false, @@ -32022,9 +31165,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -32046,7 +31186,7 @@ ] }, "delete": { - "summary": "Delete Installation", + "summary": "Delete installation", "operationId": "vcsDeleteInstallation", "consumes": [ "application\/json" @@ -32055,7 +31195,7 @@ "tags": [ "vcs" ], - "description": "", + "description": "Delete a VCS installation by its unique ID. This endpoint removes the installation and all its associated repositories from the project.", "responses": { "204": { "description": "No content" @@ -32063,7 +31203,8 @@ }, "x-appwrite": { "method": "deleteInstallation", - "weight": 284, + "group": "installations", + "weight": 288, "cookies": false, "type": "", "deprecated": false, @@ -32077,9 +31218,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -32105,85 +31243,67 @@ "tags": [ { "name": "account", - "description": "The Account service allows you to authenticate and manage a user account.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Avatars service aims to help you complete everyday tasks related to your app image, icons, and avatars." }, { "name": "databases", - "description": "The Databases service allows you to create structured collections of documents, query and filter lists of documents", - "x-globalAttributes": [ - "databaseId" - ] + "description": "The Databases 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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Project service allows you to manage all the projects in your Appwrite server." }, { "name": "project", - "description": "The Project service allows you to manage all the projects in your Appwrite server.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Functions Service allows you view, create and manage your Cloud Functions." }, { "name": "proxy", - "description": "The Proxy Service allows you to configure actions for your domains beyond DNS configuration.", - "x-globalAttributes": [] + "description": "The Proxy Service allows you to configure actions for your domains beyond DNS configuration." }, { "name": "graphql", - "description": "The GraphQL API allows you to query and mutate your Appwrite server using GraphQL.", - "x-globalAttributes": [] + "description": "The GraphQL API allows you to query and mutate your Appwrite server using GraphQL." }, { "name": "console", - "description": "The Console service allows you to interact with console relevant informations.", - "x-globalAttributes": [] + "description": "The Console service allows you to interact with console relevant informations." }, { "name": "migrations", - "description": "The Migrations service allows you to migrate third-party data to your Appwrite project.", - "x-globalAttributes": [] + "description": "The Migrations service allows you to migrate third-party data to your Appwrite project." }, { "name": "messaging", - "description": "The Messaging service allows you to send messages to any provider type (SMTP, push notification, SMS, etc.).", - "x-globalAttributes": [] + "description": "The Messaging service allows you to send messages to any provider type (SMTP, push notification, SMS, etc.)." } ], "definitions": { @@ -33142,31 +32262,6 @@ "migrations" ] }, - "firebaseProjectList": { - "description": "Migrations Firebase 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\/firebaseProject" - }, - "x-example": "" - } - }, - "required": [ - "total", - "projects" - ] - }, "specificationList": { "description": "Specifications List", "type": "object", @@ -33456,6 +32551,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "size": { "type": "integer", "description": "Attribute size.", @@ -33475,6 +32580,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "size" ] }, @@ -33513,6 +32620,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "min": { "type": "integer", "description": "Minimum value to enforce for new documents.", @@ -33540,7 +32657,9 @@ "type", "status", "error", - "required" + "required", + "$createdAt", + "$updatedAt" ] }, "attributeFloat": { @@ -33578,6 +32697,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "min": { "type": "number", "description": "Minimum value to enforce for new documents.", @@ -33605,7 +32734,9 @@ "type", "status", "error", - "required" + "required", + "$createdAt", + "$updatedAt" ] }, "attributeBoolean": { @@ -33643,6 +32774,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "default": { "type": "boolean", "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", @@ -33655,7 +32796,9 @@ "type", "status", "error", - "required" + "required", + "$createdAt", + "$updatedAt" ] }, "attributeEmail": { @@ -33693,6 +32836,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "String format.", @@ -33711,6 +32864,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -33749,6 +32904,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "elements": { "type": "array", "description": "Array of elements in enumerated type.", @@ -33775,6 +32940,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "elements", "format" ] @@ -33814,6 +32981,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "String format.", @@ -33832,6 +33009,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -33870,6 +33049,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "String format.", @@ -33888,6 +33077,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -33926,6 +33117,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "ISO 8601 format.", @@ -33944,6 +33145,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -33982,6 +33185,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "relatedCollection": { "type": "string", "description": "The ID of the related collection.", @@ -34019,6 +33232,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "relatedCollection", "relationType", "twoWay", @@ -34067,6 +33282,16 @@ }, "x-example": [], "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Index creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Index update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" } }, "required": [ @@ -34074,7 +33299,9 @@ "type", "status", "error", - "attributes" + "attributes", + "$createdAt", + "$updatedAt" ] }, "document": { @@ -35229,12 +34456,12 @@ }, "userName": { "type": "string", - "description": "User name.", + "description": "User name. Hide this attribute by toggling membership privacy in the Console.", "x-example": "John Doe" }, "userEmail": { "type": "string", - "description": "User email address.", + "description": "User email address. Hide this attribute by toggling membership privacy in the Console.", "x-example": "john@appwrite.io" }, "teamId": { @@ -35264,7 +34491,7 @@ }, "mfa": { "type": "boolean", - "description": "Multi factor authentication status, true if the user has MFA enabled or false otherwise.", + "description": "Multi factor authentication status, true if the user has MFA enabled or false otherwise. Hide this attribute by toggling membership privacy in the Console.", "x-example": false }, "roles": { @@ -35378,7 +34605,7 @@ }, "schedule": { "type": "string", - "description": "Function execution schedult in CRON format.", + "description": "Function execution schedule in CRON format.", "x-example": "5 4 * * *" }, "timeout": { @@ -35430,7 +34657,7 @@ "specification": { "type": "string", "description": "Machine specification for builds and executions.", - "x-example": "s-0.5vcpu-512mb" + "x-example": "s-1vcpu-512mb" } }, "required": [ @@ -36106,7 +35333,7 @@ "responseBody": { "type": "string", "description": "HTTP response body. This will return empty unless execution is created as synchronous.", - "x-example": "Developers are awesome." + "x-example": "" }, "responseHeaders": { "type": "array", @@ -36351,6 +35578,21 @@ "description": "Whether or not to send session alert emails to users.", "x-example": true }, + "authMembershipsUserName": { + "type": "boolean", + "description": "Whether or not to show user names in the teams membership response.", + "x-example": true + }, + "authMembershipsUserEmail": { + "type": "boolean", + "description": "Whether or not to show user emails in the teams membership response.", + "x-example": true + }, + "authMembershipsMfa": { + "type": "boolean", + "description": "Whether or not to show user MFA status in the teams membership response.", + "x-example": true + }, "oAuthProviders": { "type": "array", "description": "List of Auth Providers.", @@ -36435,6 +35677,17 @@ "description": "SMTP server secure protocol", "x-example": "tls" }, + "pingCount": { + "type": "integer", + "description": "Number of times the ping was received for this project.", + "x-example": 1, + "format": "int32" + }, + "pingedAt": { + "type": "string", + "description": "Last ping datetime in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "authEmailPassword": { "type": "boolean", "description": "Email\/Password auth method status", @@ -36549,6 +35802,9 @@ "authPersonalDataCheck", "authMockNumbers", "authSessionAlerts", + "authMembershipsUserName", + "authMembershipsUserEmail", + "authMembershipsMfa", "oAuthProviders", "platforms", "webhooks", @@ -36562,6 +35818,8 @@ "smtpUsername", "smtpPassword", "smtpSecure", + "pingCount", + "pingedAt", "authEmailPassword", "authUsersAuthMagicURL", "authEmailOtp", @@ -37223,7 +36481,8 @@ "resourceId": { "type": "string", "description": "Resource ID.", - "x-example": "5e5ea5c16897e" + "x-example": "5e5ea5c16897e", + "x-nullable": true }, "name": { "type": "string", @@ -37235,10 +36494,16 @@ "description": "The value of this metric at the timestamp.", "x-example": 1, "format": "int32" + }, + "estimate": { + "type": "number", + "description": "The estimated value of this metric at the end of the period.", + "x-example": 1, + "format": "double", + "x-nullable": true } }, "required": [ - "resourceId", "name", "value" ] @@ -37270,6 +36535,24 @@ "x-example": 0, "format": "int32" }, + "storageTotal": { + "type": "integer", + "description": "Total aggregated number of total databases storage in bytes.", + "x-example": 0, + "format": "int32" + }, + "databasesReadsTotal": { + "type": "integer", + "description": "Total number of databases reads.", + "x-example": 0, + "format": "int32" + }, + "databasesWritesTotal": { + "type": "integer", + "description": "Total number of databases writes.", + "x-example": 0, + "format": "int32" + }, "databases": { "type": "array", "description": "Aggregated number of databases per period.", @@ -37296,6 +36579,33 @@ "$ref": "#\/definitions\/metric" }, "x-example": [] + }, + "storage": { + "type": "array", + "description": "An array of the aggregated number of databases storage in bytes per period.", + "items": { + "type": "object", + "$ref": "#\/definitions\/metric" + }, + "x-example": [] + }, + "databasesReads": { + "type": "array", + "description": "An array of aggregated number of database reads.", + "items": { + "type": "object", + "$ref": "#\/definitions\/metric" + }, + "x-example": [] + }, + "databasesWrites": { + "type": "array", + "description": "An array of aggregated number of database writes.", + "items": { + "type": "object", + "$ref": "#\/definitions\/metric" + }, + "x-example": [] } }, "required": [ @@ -37303,9 +36613,15 @@ "databasesTotal", "collectionsTotal", "documentsTotal", + "storageTotal", + "databasesReadsTotal", + "databasesWritesTotal", "databases", "collections", - "documents" + "documents", + "storage", + "databasesReads", + "databasesWrites" ] }, "usageDatabase": { @@ -37329,6 +36645,24 @@ "x-example": 0, "format": "int32" }, + "storageTotal": { + "type": "integer", + "description": "Total aggregated number of total storage used in bytes.", + "x-example": 0, + "format": "int32" + }, + "databaseReadsTotal": { + "type": "integer", + "description": "Total number of databases reads.", + "x-example": 0, + "format": "int32" + }, + "databaseWritesTotal": { + "type": "integer", + "description": "Total number of databases writes.", + "x-example": 0, + "format": "int32" + }, "collections": { "type": "array", "description": "Aggregated number of collections per period.", @@ -37346,14 +36680,47 @@ "$ref": "#\/definitions\/metric" }, "x-example": [] + }, + "storage": { + "type": "array", + "description": "Aggregated storage used in bytes per period.", + "items": { + "type": "object", + "$ref": "#\/definitions\/metric" + }, + "x-example": [] + }, + "databaseReads": { + "type": "array", + "description": "An array of aggregated number of database reads.", + "items": { + "type": "object", + "$ref": "#\/definitions\/metric" + }, + "x-example": [] + }, + "databaseWrites": { + "type": "array", + "description": "An array of aggregated number of database writes.", + "items": { + "type": "object", + "$ref": "#\/definitions\/metric" + }, + "x-example": [] } }, "required": [ "range", "collectionsTotal", "documentsTotal", + "storageTotal", + "databaseReadsTotal", + "databaseWritesTotal", "collections", - "documents" + "documents", + "storage", + "databaseReads", + "databaseWrites" ] }, "usageCollection": { @@ -37538,6 +36905,21 @@ "$ref": "#\/definitions\/metric" }, "x-example": [] + }, + "imageTransformations": { + "type": "array", + "description": "Aggregated number of files transformations per period.", + "items": { + "type": "object", + "$ref": "#\/definitions\/metric" + }, + "x-example": [] + }, + "imageTransformationsTotal": { + "type": "integer", + "description": "Total aggregated number of files transformations.", + "x-example": 0, + "format": "int32" } }, "required": [ @@ -37545,7 +36927,9 @@ "filesTotal", "filesStorageTotal", "files", - "storage" + "storage", + "imageTransformations", + "imageTransformationsTotal" ] }, "usageFunctions": { @@ -37921,6 +37305,12 @@ "x-example": 0, "format": "int32" }, + "databasesStorageTotal": { + "type": "integer", + "description": "Total aggregated sum of databases storage size (in bytes).", + "x-example": 0, + "format": "int32" + }, "usersTotal": { "type": "integer", "description": "Total aggregated number of users.", @@ -37969,6 +37359,18 @@ "x-example": 0, "format": "int32" }, + "databasesReadsTotal": { + "type": "integer", + "description": "Total number of databases reads.", + "x-example": 0, + "format": "int32" + }, + "databasesWritesTotal": { + "type": "integer", + "description": "Total number of databases writes.", + "x-example": 0, + "format": "int32" + }, "requests": { "type": "array", "description": "Aggregated number of requests per period.", @@ -38023,6 +37425,15 @@ }, "x-example": [] }, + "databasesStorageBreakdown": { + "type": "array", + "description": "An array of the aggregated breakdown of storage usage by databases.", + "items": { + "type": "object", + "$ref": "#\/definitions\/metricBreakdown" + }, + "x-example": [] + }, "executionsMbSecondsBreakdown": { "type": "array", "description": "Aggregated breakdown in totals of execution mbSeconds by functions.", @@ -38049,12 +37460,67 @@ "$ref": "#\/definitions\/metricBreakdown" }, "x-example": [] + }, + "authPhoneTotal": { + "type": "integer", + "description": "Total aggregated number of phone auth.", + "x-example": 0, + "format": "int32" + }, + "authPhoneEstimate": { + "type": "number", + "description": "Estimated total aggregated cost of phone auth.", + "x-example": 0, + "format": "double" + }, + "authPhoneCountryBreakdown": { + "type": "array", + "description": "Aggregated breakdown in totals of phone auth by country.", + "items": { + "type": "object", + "$ref": "#\/definitions\/metricBreakdown" + }, + "x-example": [] + }, + "databasesReads": { + "type": "array", + "description": "An array of aggregated number of database reads.", + "items": { + "type": "object", + "$ref": "#\/definitions\/metric" + }, + "x-example": [] + }, + "databasesWrites": { + "type": "array", + "description": "An array of aggregated number of database writes.", + "items": { + "type": "object", + "$ref": "#\/definitions\/metric" + }, + "x-example": [] + }, + "imageTransformations": { + "type": "array", + "description": "An array of aggregated number of image transformations.", + "items": { + "type": "object", + "$ref": "#\/definitions\/metric" + }, + "x-example": [] + }, + "imageTransformationsTotal": { + "type": "integer", + "description": "Total aggregated number of image transformations.", + "x-example": 0, + "format": "int32" } }, "required": [ "executionsTotal", "documentsTotal", "databasesTotal", + "databasesStorageTotal", "usersTotal", "filesStorageTotal", "functionsStorageTotal", @@ -38063,15 +37529,25 @@ "bucketsTotal", "executionsMbSecondsTotal", "buildsMbSecondsTotal", + "databasesReadsTotal", + "databasesWritesTotal", "requests", "network", "users", "executions", "executionsBreakdown", "bucketsBreakdown", + "databasesStorageBreakdown", "executionsMbSecondsBreakdown", "buildsMbSecondsBreakdown", - "functionsStorageBreakdown" + "functionsStorageBreakdown", + "authPhoneTotal", + "authPhoneEstimate", + "authPhoneCountryBreakdown", + "databasesReads", + "databasesWrites", + "imageTransformations", + "imageTransformationsTotal" ] }, "headers": { @@ -38118,7 +37594,7 @@ "slug": { "type": "string", "description": "Size slug.", - "x-example": "s-0.5vcpu-512mb" + "x-example": "s-1vcpu-512mb" } }, "required": [ @@ -38759,7 +38235,7 @@ "name": { "type": "string", "description": "Target Name.", - "x-example": "Aegon apple token" + "x-example": "Apple iPhone 12" }, "userId": { "type": "string", @@ -38781,6 +38257,11 @@ "type": "string", "description": "The target identifier.", "x-example": "token" + }, + "expired": { + "type": "boolean", + "description": "Is the target expired.", + "x-example": false } }, "required": [ @@ -38790,7 +38271,8 @@ "name", "userId", "providerType", - "identifier" + "identifier", + "expired" ] }, "migration": { @@ -38804,7 +38286,7 @@ }, "$createdAt": { "type": "string", - "description": "Variable creation date in ISO 8601 format.", + "description": "Migration creation date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" }, "$updatedAt": { @@ -38827,9 +38309,14 @@ "description": "A string containing the type of source of the migration.", "x-example": "Appwrite" }, + "destination": { + "type": "string", + "description": "A string containing the type of destination of the migration.", + "x-example": "Appwrite" + }, "resources": { "type": "array", - "description": "Resources to migration.", + "description": "Resources to migrate.", "items": { "type": "string" }, @@ -38865,6 +38352,7 @@ "status", "stage", "source", + "destination", "resources", "statusCounters", "resourceData", @@ -38940,26 +38428,6 @@ "size", "version" ] - }, - "firebaseProject": { - "description": "MigrationFirebaseProject", - "type": "object", - "properties": { - "projectId": { - "type": "string", - "description": "Project ID.", - "x-example": "my-project" - }, - "displayName": { - "type": "string", - "description": "Project display name.", - "x-example": "My Project" - } - }, - "required": [ - "projectId", - "displayName" - ] } }, "externalDocs": { diff --git a/app/config/specs/swagger2-1.6.x-server.json b/app/config/specs/swagger2-1.6.x-server.json index af6274226f6..697f28c1e4c 100644 --- a/app/config/specs/swagger2-1.6.x-server.json +++ b/app/config/specs/swagger2-1.6.x-server.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "1.6.0", + "version": "1.6.2", "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", @@ -16,6 +16,7 @@ } }, "host": "cloud.appwrite.io", + "x-host-docs": "<REGION>.cloud.appwrite.io", "basePath": "\/v1", "schemes": [ "https" @@ -82,9 +83,7 @@ "get": { "summary": "Get account", "operationId": "accountGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -102,7 +101,8 @@ }, "x-appwrite": { "method": "get", - "weight": 8, + "group": "account", + "weight": 9, "cookies": false, "type": "", "deprecated": false, @@ -117,9 +117,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -156,7 +153,8 @@ }, "x-appwrite": { "method": "create", - "weight": 7, + "group": "account", + "weight": 8, "cookies": false, "type": "", "deprecated": false, @@ -171,9 +169,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -249,7 +244,8 @@ }, "x-appwrite": { "method": "updateEmail", - "weight": 33, + "group": "account", + "weight": 34, "cookies": false, "type": "", "deprecated": false, @@ -264,9 +260,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -310,11 +303,9 @@ }, "\/account\/identities": { "get": { - "summary": "List Identities", + "summary": "List identities", "operationId": "accountListIdentities", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -332,7 +323,8 @@ }, "x-appwrite": { "method": "listIdentities", - "weight": 56, + "group": "identities", + "weight": 57, "cookies": false, "type": "", "deprecated": false, @@ -347,9 +339,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/identities", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -397,7 +386,8 @@ }, "x-appwrite": { "method": "deleteIdentity", - "weight": 57, + "group": "identities", + "weight": 58, "cookies": false, "type": "", "deprecated": false, @@ -412,9 +402,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -463,7 +450,8 @@ }, "x-appwrite": { "method": "createJWT", - "weight": 28, + "group": "tokens", + "weight": 29, "cookies": false, "type": "", "deprecated": false, @@ -478,9 +466,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -496,9 +481,7 @@ "get": { "summary": "List logs", "operationId": "accountListLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -516,7 +499,8 @@ }, "x-appwrite": { "method": "listLogs", - "weight": 30, + "group": "logs", + "weight": 31, "cookies": false, "type": "", "deprecated": false, @@ -531,9 +515,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -586,7 +567,8 @@ }, "x-appwrite": { "method": "updateMFA", - "weight": 43, + "group": "mfa", + "weight": 44, "cookies": false, "type": "", "deprecated": false, @@ -601,9 +583,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -640,7 +619,7 @@ }, "\/account\/mfa\/authenticators\/{type}": { "post": { - "summary": "Create Authenticator", + "summary": "Create authenticator", "operationId": "accountCreateMfaAuthenticator", "consumes": [ "application\/json" @@ -662,7 +641,8 @@ }, "x-appwrite": { "method": "createMfaAuthenticator", - "weight": 45, + "group": "mfa", + "weight": 46, "cookies": false, "type": "", "deprecated": false, @@ -677,9 +657,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -709,7 +686,7 @@ ] }, "put": { - "summary": "Verify Authenticator", + "summary": "Update authenticator (confirmation)", "operationId": "accountUpdateMfaAuthenticator", "consumes": [ "application\/json" @@ -731,7 +708,8 @@ }, "x-appwrite": { "method": "updateMfaAuthenticator", - "weight": 46, + "group": "mfa", + "weight": 47, "cookies": false, "type": "", "deprecated": false, @@ -746,9 +724,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -796,7 +771,7 @@ ] }, "delete": { - "summary": "Delete Authenticator", + "summary": "Delete authenticator", "operationId": "accountDeleteMfaAuthenticator", "consumes": [ "application\/json" @@ -813,7 +788,8 @@ }, "x-appwrite": { "method": "deleteMfaAuthenticator", - "weight": 50, + "group": "mfa", + "weight": 51, "cookies": false, "type": "", "deprecated": false, @@ -828,9 +804,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -862,7 +835,7 @@ }, "\/account\/mfa\/challenge": { "post": { - "summary": "Create MFA Challenge", + "summary": "Create MFA challenge", "operationId": "accountCreateMfaChallenge", "consumes": [ "application\/json" @@ -884,7 +857,8 @@ }, "x-appwrite": { "method": "createMfaChallenge", - "weight": 51, + "group": "mfa", + "weight": 52, "cookies": false, "type": "", "deprecated": false, @@ -899,9 +873,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -941,24 +912,30 @@ ] }, "put": { - "summary": "Create MFA Challenge (confirmation)", + "summary": "Update MFA challenge (confirmation)", "operationId": "accountUpdateMfaChallenge", "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "account" ], "description": "Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", "responses": { - "204": { - "description": "No content" + "200": { + "description": "Session", + "schema": { + "$ref": "#\/definitions\/session" + } } }, "x-appwrite": { "method": "updateMfaChallenge", - "weight": 52, + "group": "mfa", + "weight": 53, "cookies": false, "type": "", "deprecated": false, @@ -973,9 +950,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1019,11 +993,9 @@ }, "\/account\/mfa\/factors": { "get": { - "summary": "List Factors", + "summary": "List factors", "operationId": "accountListMfaFactors", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -1041,7 +1013,8 @@ }, "x-appwrite": { "method": "listMfaFactors", - "weight": 44, + "group": "mfa", + "weight": 45, "cookies": false, "type": "", "deprecated": false, @@ -1056,9 +1029,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1075,11 +1045,9 @@ }, "\/account\/mfa\/recovery-codes": { "get": { - "summary": "Get MFA Recovery Codes", + "summary": "List MFA recovery codes", "operationId": "accountGetMfaRecoveryCodes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -1097,7 +1065,8 @@ }, "x-appwrite": { "method": "getMfaRecoveryCodes", - "weight": 49, + "group": "mfa", + "weight": 50, "cookies": false, "type": "", "deprecated": false, @@ -1112,9 +1081,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1129,7 +1095,7 @@ ] }, "post": { - "summary": "Create MFA Recovery Codes", + "summary": "Create MFA recovery codes", "operationId": "accountCreateMfaRecoveryCodes", "consumes": [ "application\/json" @@ -1151,7 +1117,8 @@ }, "x-appwrite": { "method": "createMfaRecoveryCodes", - "weight": 47, + "group": "mfa", + "weight": 48, "cookies": false, "type": "", "deprecated": false, @@ -1166,9 +1133,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1183,7 +1147,7 @@ ] }, "patch": { - "summary": "Regenerate MFA Recovery Codes", + "summary": "Update MFA recovery codes (regenerate)", "operationId": "accountUpdateMfaRecoveryCodes", "consumes": [ "application\/json" @@ -1205,7 +1169,8 @@ }, "x-appwrite": { "method": "updateMfaRecoveryCodes", - "weight": 48, + "group": "mfa", + "weight": 49, "cookies": false, "type": "", "deprecated": false, @@ -1220,9 +1185,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1261,7 +1223,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 31, + "group": "account", + "weight": 32, "cookies": false, "type": "", "deprecated": false, @@ -1276,9 +1239,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1337,7 +1297,8 @@ }, "x-appwrite": { "method": "updatePassword", - "weight": 32, + "group": "account", + "weight": 33, "cookies": false, "type": "", "deprecated": false, @@ -1352,9 +1313,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1419,7 +1377,8 @@ }, "x-appwrite": { "method": "updatePhone", - "weight": 34, + "group": "account", + "weight": 35, "cookies": false, "type": "", "deprecated": false, @@ -1434,9 +1393,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1482,9 +1438,7 @@ "get": { "summary": "Get account preferences", "operationId": "accountGetPrefs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -1502,7 +1456,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 29, + "group": "account", + "weight": 30, "cookies": false, "type": "", "deprecated": false, @@ -1517,9 +1472,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/prefs", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1556,7 +1508,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 35, + "group": "account", + "weight": 36, "cookies": false, "type": "", "deprecated": false, @@ -1571,9 +1524,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/prefs", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1632,7 +1582,8 @@ }, "x-appwrite": { "method": "createRecovery", - "weight": 37, + "group": "recovery", + "weight": 38, "cookies": false, "type": "", "deprecated": false, @@ -1650,9 +1601,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1694,7 +1642,7 @@ ] }, "put": { - "summary": "Create password recovery (confirmation)", + "summary": "Update password recovery (confirmation)", "operationId": "accountUpdateRecovery", "consumes": [ "application\/json" @@ -1716,7 +1664,8 @@ }, "x-appwrite": { "method": "updateRecovery", - "weight": 38, + "group": "recovery", + "weight": 39, "cookies": false, "type": "", "deprecated": false, @@ -1731,9 +1680,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1786,9 +1732,7 @@ "get": { "summary": "List sessions", "operationId": "accountListSessions", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -1806,7 +1750,8 @@ }, "x-appwrite": { "method": "listSessions", - "weight": 10, + "group": "sessions", + "weight": 11, "cookies": false, "type": "", "deprecated": false, @@ -1821,9 +1766,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/sessions", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1855,7 +1797,8 @@ }, "x-appwrite": { "method": "deleteSessions", - "weight": 11, + "group": "sessions", + "weight": 12, "cookies": false, "type": "", "deprecated": false, @@ -1870,9 +1813,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1911,7 +1851,8 @@ }, "x-appwrite": { "method": "createAnonymousSession", - "weight": 16, + "group": "sessions", + "weight": 17, "cookies": false, "type": "", "deprecated": false, @@ -1926,9 +1867,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1964,7 +1902,8 @@ }, "x-appwrite": { "method": "createEmailPasswordSession", - "weight": 15, + "group": "sessions", + "weight": 16, "cookies": false, "type": "", "deprecated": false, @@ -1979,9 +1918,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2044,7 +1980,8 @@ }, "x-appwrite": { "method": "updateMagicURLSession", - "weight": 25, + "group": "sessions", + "weight": 26, "cookies": false, "type": "", "deprecated": true, @@ -2059,9 +1996,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2124,7 +2058,8 @@ }, "x-appwrite": { "method": "updatePhoneSession", - "weight": 26, + "group": "sessions", + "weight": 27, "cookies": false, "type": "", "deprecated": true, @@ -2139,9 +2074,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2204,7 +2136,8 @@ }, "x-appwrite": { "method": "createSession", - "weight": 17, + "group": "sessions", + "weight": 18, "cookies": false, "type": "", "deprecated": false, @@ -2219,9 +2152,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2264,9 +2194,7 @@ "get": { "summary": "Get session", "operationId": "accountGetSession", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -2284,7 +2212,8 @@ }, "x-appwrite": { "method": "getSession", - "weight": 12, + "group": "sessions", + "weight": 13, "cookies": false, "type": "", "deprecated": false, @@ -2299,9 +2228,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/sessions", - "offline-key": "{sessionId}", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -2348,7 +2274,8 @@ }, "x-appwrite": { "method": "updateSession", - "weight": 14, + "group": "sessions", + "weight": 15, "cookies": false, "type": "", "deprecated": false, @@ -2363,9 +2290,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -2407,7 +2331,8 @@ }, "x-appwrite": { "method": "deleteSession", - "weight": 13, + "group": "sessions", + "weight": 14, "cookies": false, "type": "", "deprecated": false, @@ -2422,9 +2347,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -2473,7 +2395,8 @@ }, "x-appwrite": { "method": "updateStatus", - "weight": 36, + "group": "account", + "weight": 37, "cookies": false, "type": "", "deprecated": false, @@ -2488,9 +2411,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -2529,7 +2449,8 @@ }, "x-appwrite": { "method": "createEmailToken", - "weight": 24, + "group": "tokens", + "weight": 25, "cookies": false, "type": "", "deprecated": false, @@ -2537,16 +2458,16 @@ "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-email.md", "rate-limit": 10, "rate-time": 3600, - "rate-key": "url:{url},email:{param-email}", + "rate-key": [ + "url:{url},email:{param-email}", + "url:{url},ip:{ip}" + ], "scope": "sessions.write", "platforms": [ "server", "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2604,7 +2525,7 @@ "tags": [ "account" ], - "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. 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 [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) 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.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", + "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. 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 [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) endpoint to complete the login process. The link sent to the user's email address is valid for 1 hour.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", "responses": { "201": { "description": "Token", @@ -2615,7 +2536,8 @@ }, "x-appwrite": { "method": "createMagicURLToken", - "weight": 23, + "group": "tokens", + "weight": 24, "cookies": false, "type": "", "deprecated": false, @@ -2633,9 +2555,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2690,9 +2609,7 @@ "get": { "summary": "Create OAuth2 token", "operationId": "accountCreateOAuth2Token", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "text\/html" ], @@ -2707,7 +2624,8 @@ }, "x-appwrite": { "method": "createOAuth2Token", - "weight": 22, + "group": "tokens", + "weight": 23, "cookies": false, "type": "webAuth", "deprecated": false, @@ -2722,9 +2640,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2737,7 +2652,7 @@ "parameters": [ { "name": "provider", - "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", + "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", "required": true, "type": "string", "x-example": "amazon", @@ -2756,6 +2671,7 @@ "dropbox", "etsy", "facebook", + "figma", "github", "gitlab", "google", @@ -2845,7 +2761,8 @@ }, "x-appwrite": { "method": "createPhoneToken", - "weight": 27, + "group": "tokens", + "weight": 28, "cookies": false, "type": "", "deprecated": false, @@ -2863,9 +2780,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2928,7 +2842,8 @@ }, "x-appwrite": { "method": "createVerification", - "weight": 39, + "group": "verification", + "weight": 40, "cookies": false, "type": "", "deprecated": false, @@ -2943,9 +2858,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -2980,7 +2892,7 @@ ] }, "put": { - "summary": "Create email verification (confirmation)", + "summary": "Update email verification (confirmation)", "operationId": "accountUpdateVerification", "consumes": [ "application\/json" @@ -3002,7 +2914,8 @@ }, "x-appwrite": { "method": "updateVerification", - "weight": 40, + "group": "verification", + "weight": 41, "cookies": false, "type": "", "deprecated": false, @@ -3017,9 +2930,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -3085,7 +2995,8 @@ }, "x-appwrite": { "method": "createPhoneVerification", - "weight": 41, + "group": "verification", + "weight": 42, "cookies": false, "type": "", "deprecated": false, @@ -3103,9 +3014,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -3142,7 +3050,8 @@ }, "x-appwrite": { "method": "updatePhoneVerification", - "weight": 42, + "group": "verification", + "weight": 43, "cookies": false, "type": "", "deprecated": false, @@ -3157,9 +3066,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -3205,9 +3111,7 @@ "get": { "summary": "Get browser icon", "operationId": "avatarsGetBrowser", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/png" ], @@ -3225,7 +3129,8 @@ }, "x-appwrite": { "method": "getBrowser", - "weight": 59, + "group": null, + "weight": 60, "cookies": false, "type": "location", "deprecated": false, @@ -3241,9 +3146,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -3336,9 +3238,7 @@ "get": { "summary": "Get credit card icon", "operationId": "avatarsGetCreditCard", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/png" ], @@ -3356,7 +3256,8 @@ }, "x-appwrite": { "method": "getCreditCard", - "weight": 58, + "group": null, + "weight": 59, "cookies": false, "type": "location", "deprecated": false, @@ -3372,9 +3273,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -3391,7 +3289,7 @@ "parameters": [ { "name": "code", - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro.", + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", "required": true, "type": "string", "x-example": "amex", @@ -3411,7 +3309,8 @@ "union-china-pay", "visa", "mir", - "maestro" + "maestro", + "rupay" ], "x-enum-name": "CreditCard", "x-enum-keys": [ @@ -3430,7 +3329,8 @@ "Union China Pay", "Visa", "MIR", - "Maestro" + "Maestro", + "Rupay" ], "in": "path" }, @@ -3471,9 +3371,7 @@ "get": { "summary": "Get favicon", "operationId": "avatarsGetFavicon", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/*" ], @@ -3491,7 +3389,8 @@ }, "x-appwrite": { "method": "getFavicon", - "weight": 62, + "group": null, + "weight": 63, "cookies": false, "type": "location", "deprecated": false, @@ -3507,9 +3406,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -3540,9 +3436,7 @@ "get": { "summary": "Get country flag", "operationId": "avatarsGetFlag", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/png" ], @@ -3560,7 +3454,8 @@ }, "x-appwrite": { "method": "getFlag", - "weight": 60, + "group": null, + "weight": 61, "cookies": false, "type": "location", "deprecated": false, @@ -3576,9 +3471,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -4033,9 +3925,7 @@ "get": { "summary": "Get image from URL", "operationId": "avatarsGetImage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/*" ], @@ -4053,7 +3943,8 @@ }, "x-appwrite": { "method": "getImage", - "weight": 61, + "group": null, + "weight": 62, "cookies": false, "type": "location", "deprecated": false, @@ -4069,9 +3960,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -4122,9 +4010,7 @@ "get": { "summary": "Get user initials", "operationId": "avatarsGetInitials", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/png" ], @@ -4142,7 +4028,8 @@ }, "x-appwrite": { "method": "getInitials", - "weight": 64, + "group": null, + "weight": 65, "cookies": false, "type": "location", "deprecated": false, @@ -4158,9 +4045,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -4219,9 +4103,7 @@ "get": { "summary": "Get QR code", "operationId": "avatarsGetQR", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/png" ], @@ -4239,7 +4121,8 @@ }, "x-appwrite": { "method": "getQR", - "weight": 63, + "group": null, + "weight": 64, "cookies": false, "type": "location", "deprecated": false, @@ -4255,9 +4138,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -4316,9 +4196,7 @@ "get": { "summary": "List databases", "operationId": "databasesList", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -4336,7 +4214,8 @@ }, "x-appwrite": { "method": "list", - "weight": 69, + "group": "databases", + "weight": 70, "cookies": false, "type": "", "deprecated": false, @@ -4350,9 +4229,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4411,7 +4287,8 @@ }, "x-appwrite": { "method": "create", - "weight": 68, + "group": "databases", + "weight": 69, "cookies": false, "type": "", "deprecated": false, @@ -4425,9 +4302,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4478,9 +4352,7 @@ "get": { "summary": "Get database", "operationId": "databasesGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -4498,7 +4370,8 @@ }, "x-appwrite": { "method": "get", - "weight": 70, + "group": "databases", + "weight": 71, "cookies": false, "type": "", "deprecated": false, @@ -4512,9 +4385,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4560,7 +4430,8 @@ }, "x-appwrite": { "method": "update", - "weight": 72, + "group": "databases", + "weight": 73, "cookies": false, "type": "", "deprecated": false, @@ -4574,9 +4445,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4641,7 +4509,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 73, + "group": "databases", + "weight": 74, "cookies": false, "type": "", "deprecated": false, @@ -4655,9 +4524,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4685,9 +4551,7 @@ "get": { "summary": "List collections", "operationId": "databasesListCollections", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -4705,7 +4569,8 @@ }, "x-appwrite": { "method": "listCollections", - "weight": 75, + "group": "collections", + "weight": 76, "cookies": false, "type": "", "deprecated": false, @@ -4719,9 +4584,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4788,7 +4650,8 @@ }, "x-appwrite": { "method": "createCollection", - "weight": 74, + "group": "collections", + "weight": 75, "cookies": false, "type": "", "deprecated": false, @@ -4802,9 +4665,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4878,9 +4738,7 @@ "get": { "summary": "Get collection", "operationId": "databasesGetCollection", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -4898,7 +4756,8 @@ }, "x-appwrite": { "method": "getCollection", - "weight": 76, + "group": "collections", + "weight": 77, "cookies": false, "type": "", "deprecated": false, @@ -4912,9 +4771,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4968,7 +4824,8 @@ }, "x-appwrite": { "method": "updateCollection", - "weight": 78, + "group": "collections", + "weight": 79, "cookies": false, "type": "", "deprecated": false, @@ -4982,9 +4839,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5072,7 +4926,8 @@ }, "x-appwrite": { "method": "deleteCollection", - "weight": 79, + "group": "collections", + "weight": 80, "cookies": false, "type": "", "deprecated": false, @@ -5086,9 +4941,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5124,9 +4976,7 @@ "get": { "summary": "List attributes", "operationId": "databasesListAttributes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -5144,7 +4994,8 @@ }, "x-appwrite": { "method": "listAttributes", - "weight": 90, + "group": "attributes", + "weight": 91, "cookies": false, "type": "", "deprecated": false, @@ -5158,9 +5009,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5228,7 +5076,8 @@ }, "x-appwrite": { "method": "createBooleanAttribute", - "weight": 87, + "group": "attributes", + "weight": 88, "cookies": false, "type": "", "deprecated": false, @@ -5242,9 +5091,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5320,7 +5166,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -5335,7 +5183,8 @@ }, "x-appwrite": { "method": "updateBooleanAttribute", - "weight": 99, + "group": "attributes", + "weight": 100, "cookies": false, "type": "", "deprecated": false, @@ -5349,9 +5198,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5446,7 +5292,8 @@ }, "x-appwrite": { "method": "createDatetimeAttribute", - "weight": 88, + "group": "attributes", + "weight": 89, "cookies": false, "type": "", "deprecated": false, @@ -5460,9 +5307,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5538,7 +5382,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -5553,7 +5399,8 @@ }, "x-appwrite": { "method": "updateDatetimeAttribute", - "weight": 100, + "group": "attributes", + "weight": 101, "cookies": false, "type": "", "deprecated": false, @@ -5567,9 +5414,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5664,7 +5508,8 @@ }, "x-appwrite": { "method": "createEmailAttribute", - "weight": 81, + "group": "attributes", + "weight": 82, "cookies": false, "type": "", "deprecated": false, @@ -5678,9 +5523,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5756,7 +5598,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -5771,7 +5615,8 @@ }, "x-appwrite": { "method": "updateEmailAttribute", - "weight": 93, + "group": "attributes", + "weight": 94, "cookies": false, "type": "", "deprecated": false, @@ -5785,9 +5630,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5882,7 +5724,8 @@ }, "x-appwrite": { "method": "createEnumAttribute", - "weight": 82, + "group": "attributes", + "weight": 83, "cookies": false, "type": "", "deprecated": false, @@ -5896,9 +5739,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5984,7 +5824,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -5999,7 +5841,8 @@ }, "x-appwrite": { "method": "updateEnumAttribute", - "weight": 94, + "group": "attributes", + "weight": 95, "cookies": false, "type": "", "deprecated": false, @@ -6013,9 +5856,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6120,7 +5960,8 @@ }, "x-appwrite": { "method": "createFloatAttribute", - "weight": 86, + "group": "attributes", + "weight": 87, "cookies": false, "type": "", "deprecated": false, @@ -6134,9 +5975,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6224,7 +6062,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -6239,7 +6079,8 @@ }, "x-appwrite": { "method": "updateFloatAttribute", - "weight": 98, + "group": "attributes", + "weight": 99, "cookies": false, "type": "", "deprecated": false, @@ -6253,9 +6094,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6331,8 +6169,6 @@ }, "required": [ "required", - "min", - "max", "default" ] } @@ -6364,7 +6200,8 @@ }, "x-appwrite": { "method": "createIntegerAttribute", - "weight": 85, + "group": "attributes", + "weight": 86, "cookies": false, "type": "", "deprecated": false, @@ -6378,9 +6215,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6468,7 +6302,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -6483,7 +6319,8 @@ }, "x-appwrite": { "method": "updateIntegerAttribute", - "weight": 97, + "group": "attributes", + "weight": 98, "cookies": false, "type": "", "deprecated": false, @@ -6497,9 +6334,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6575,8 +6409,6 @@ }, "required": [ "required", - "min", - "max", "default" ] } @@ -6608,7 +6440,8 @@ }, "x-appwrite": { "method": "createIpAttribute", - "weight": 83, + "group": "attributes", + "weight": 84, "cookies": false, "type": "", "deprecated": false, @@ -6622,9 +6455,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6700,7 +6530,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -6715,7 +6547,8 @@ }, "x-appwrite": { "method": "updateIpAttribute", - "weight": 95, + "group": "attributes", + "weight": 96, "cookies": false, "type": "", "deprecated": false, @@ -6729,9 +6562,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6826,7 +6656,8 @@ }, "x-appwrite": { "method": "createRelationshipAttribute", - "weight": 89, + "group": "attributes", + "weight": 90, "cookies": false, "type": "", "deprecated": false, @@ -6840,9 +6671,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6962,7 +6790,8 @@ }, "x-appwrite": { "method": "createStringAttribute", - "weight": 80, + "group": "attributes", + "weight": 81, "cookies": false, "type": "", "deprecated": false, @@ -6976,9 +6805,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -7067,7 +6893,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -7082,7 +6910,8 @@ }, "x-appwrite": { "method": "updateStringAttribute", - "weight": 92, + "group": "attributes", + "weight": 93, "cookies": false, "type": "", "deprecated": false, @@ -7096,9 +6925,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -7157,7 +6983,7 @@ "type": "integer", "description": "Maximum size of the string attribute.", "default": null, - "x-example": null + "x-example": 1 }, "newKey": { "type": "string", @@ -7199,7 +7025,8 @@ }, "x-appwrite": { "method": "createUrlAttribute", - "weight": 84, + "group": "attributes", + "weight": 85, "cookies": false, "type": "", "deprecated": false, @@ -7213,9 +7040,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -7291,7 +7115,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -7306,7 +7132,8 @@ }, "x-appwrite": { "method": "updateUrlAttribute", - "weight": 96, + "group": "attributes", + "weight": 97, "cookies": false, "type": "", "deprecated": false, @@ -7320,9 +7147,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -7397,9 +7221,7 @@ "get": { "summary": "Get attribute", "operationId": "databasesGetAttribute", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -7448,7 +7270,8 @@ }, "x-appwrite": { "method": "getAttribute", - "weight": 91, + "group": "attributes", + "weight": 92, "cookies": false, "type": "", "deprecated": false, @@ -7462,9 +7285,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -7520,7 +7340,8 @@ }, "x-appwrite": { "method": "deleteAttribute", - "weight": 102, + "group": "attributes", + "weight": 103, "cookies": false, "type": "", "deprecated": false, @@ -7534,9 +7355,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -7582,7 +7400,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -7597,7 +7417,8 @@ }, "x-appwrite": { "method": "updateRelationshipAttribute", - "weight": 101, + "group": "attributes", + "weight": 102, "cookies": false, "type": "", "deprecated": false, @@ -7611,9 +7432,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -7684,9 +7502,7 @@ "get": { "summary": "List documents", "operationId": "databasesListDocuments", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -7704,7 +7520,8 @@ }, "x-appwrite": { "method": "listDocuments", - "weight": 108, + "group": "documents", + "weight": 109, "cookies": false, "type": "", "deprecated": false, @@ -7720,9 +7537,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -7790,7 +7604,8 @@ }, "x-appwrite": { "method": "createDocument", - "weight": 107, + "group": "documents", + "weight": 108, "cookies": false, "type": "", "deprecated": false, @@ -7806,9 +7621,31 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", + "methods": [ + { + "name": "createDocument", + "parameters": [ + "databaseId", + "collectionId", + "documentId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "collectionId", + "documentId", + "data" + ], + "responses": [ + { + "code": 201, + "model": "#\/definitions\/document" + } + ], + "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + } + ], "auth": { "Project": [], "Session": [] @@ -7848,13 +7685,13 @@ "documentId": { "type": "string", "description": "Document ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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, + "default": "", "x-example": "<DOCUMENT_ID>" }, "data": { "type": "object", "description": "Document data as JSON object.", - "default": {}, + "default": [], "x-example": "{}" }, "permissions": { @@ -7865,12 +7702,281 @@ "items": { "type": "string" } + }, + "documents": { + "type": "array", + "description": "Array of documents data as JSON objects.", + "default": [], + "x-example": null, + "items": { + "type": "object" + } } - }, - "required": [ - "documentId", - "data" - ] + } + } + } + ] + }, + "put": { + "summary": "Create or update documents", + "operationId": "databasesUpsertDocuments", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.\n", + "responses": { + "200": { + "description": "Documents List", + "schema": { + "$ref": "#\/definitions\/documentList" + } + } + }, + "x-appwrite": { + "method": "upsertDocuments", + "group": "documents", + "weight": 114, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/upsert-documents.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-documents.md", + "rate-limit": 120, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "<DATABASE_ID>", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID.", + "required": true, + "type": "string", + "x-example": "<COLLECTION_ID>", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "documents": { + "type": "array", + "description": "Array of document data as JSON objects. May contain partial documents.", + "default": [], + "x-example": null, + "items": { + "type": "object" + } + } + } + } + } + ] + }, + "patch": { + "summary": "Update documents", + "operationId": "databasesUpdateDocuments", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update all documents that match your queries, if no queries are submitted then all documents are updated. You can pass only specific fields to be updated.", + "responses": { + "200": { + "description": "Documents List", + "schema": { + "$ref": "#\/definitions\/documentList" + } + } + }, + "x-appwrite": { + "method": "updateDocuments", + "group": "documents", + "weight": 113, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/update-documents.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-documents.md", + "rate-limit": 120, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "<DATABASE_ID>", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID.", + "required": true, + "type": "string", + "x-example": "<COLLECTION_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": "{}" + }, + "queries": { + "type": "array", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Maximum of 100 queries are allowed, each 4096 characters long.", + "default": [], + "x-example": null, + "items": { + "type": "string" + } + } + } + } + } + ] + }, + "delete": { + "summary": "Delete documents", + "operationId": "databasesDeleteDocuments", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Bulk delete documents using queries, if no queries are passed then all documents are deleted.", + "responses": { + "200": { + "description": "Documents List", + "schema": { + "$ref": "#\/definitions\/documentList" + } + } + }, + "x-appwrite": { + "method": "deleteDocuments", + "group": "documents", + "weight": 116, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/delete-documents.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-documents.md", + "rate-limit": 60, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "<DATABASE_ID>", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "<COLLECTION_ID>", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "queries": { + "type": "array", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Maximum of 100 queries are allowed, each 4096 characters long.", + "default": [], + "x-example": null, + "items": { + "type": "string" + } + } + } } } ] @@ -7880,9 +7986,7 @@ "get": { "summary": "Get document", "operationId": "databasesGetDocument", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -7900,7 +8004,8 @@ }, "x-appwrite": { "method": "getDocument", - "weight": 109, + "group": "documents", + "weight": 110, "cookies": false, "type": "", "deprecated": false, @@ -7916,9 +8021,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -7994,7 +8096,8 @@ }, "x-appwrite": { "method": "updateDocument", - "weight": 111, + "group": "documents", + "weight": 112, "cookies": false, "type": "", "deprecated": false, @@ -8010,9 +8113,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -8095,7 +8195,8 @@ }, "x-appwrite": { "method": "deleteDocument", - "weight": 112, + "group": "documents", + "weight": 115, "cookies": false, "type": "", "deprecated": false, @@ -8111,9 +8212,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -8159,9 +8257,7 @@ "get": { "summary": "List indexes", "operationId": "databasesListIndexes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -8179,7 +8275,8 @@ }, "x-appwrite": { "method": "listIndexes", - "weight": 104, + "group": "indexes", + "weight": 105, "cookies": false, "type": "", "deprecated": false, @@ -8193,9 +8290,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8261,7 +8355,8 @@ }, "x-appwrite": { "method": "createIndex", - "weight": 103, + "group": "collections", + "weight": 104, "cookies": false, "type": "", "deprecated": false, @@ -8275,9 +8370,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8364,9 +8456,7 @@ "get": { "summary": "Get index", "operationId": "databasesGetIndex", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -8384,7 +8474,8 @@ }, "x-appwrite": { "method": "getIndex", - "weight": 105, + "group": "indexes", + "weight": 106, "cookies": false, "type": "", "deprecated": false, @@ -8398,9 +8489,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8456,7 +8544,8 @@ }, "x-appwrite": { "method": "deleteIndex", - "weight": 106, + "group": "indexes", + "weight": 107, "cookies": false, "type": "", "deprecated": false, @@ -8470,9 +8559,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8515,9 +8601,7 @@ "get": { "summary": "List functions", "operationId": "functionsList", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -8535,7 +8619,8 @@ }, "x-appwrite": { "method": "list", - "weight": 287, + "group": "functions", + "weight": 291, "cookies": false, "type": "", "deprecated": false, @@ -8549,9 +8634,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8610,7 +8692,8 @@ }, "x-appwrite": { "method": "create", - "weight": 286, + "group": "functions", + "weight": 290, "cookies": false, "type": "", "deprecated": false, @@ -8624,9 +8707,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8669,6 +8749,7 @@ "node-19.0", "node-20.0", "node-21.0", + "node-22", "php-8.0", "php-8.1", "php-8.2", @@ -8687,6 +8768,8 @@ "deno-1.24", "deno-1.35", "deno-1.40", + "deno-1.46", + "deno-2.0", "dart-2.15", "dart-2.16", "dart-2.17", @@ -8694,24 +8777,31 @@ "dart-3.0", "dart-3.1", "dart-3.3", - "dotnet-3.1", + "dart-3.5", "dotnet-6.0", "dotnet-7.0", + "dotnet-8.0", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", + "java-22", "swift-5.5", "swift-5.8", "swift-5.9", + "swift-5.10", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", + "kotlin-2.0", "cpp-17", "cpp-20", "bun-1.0", - "go-1.23" + "bun-1.1", + "go-1.23", + "static-1", + "flutter-3.24" ], "x-enum-name": null, "x-enum-keys": [] @@ -8836,7 +8926,7 @@ "specification": { "type": "string", "description": "Runtime specification for the function and builds.", - "default": "s-0.5vcpu-512mb", + "default": "s-1vcpu-512mb", "x-example": null } }, @@ -8854,9 +8944,7 @@ "get": { "summary": "List runtimes", "operationId": "functionsListRuntimes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -8874,7 +8962,8 @@ }, "x-appwrite": { "method": "listRuntimes", - "weight": 288, + "group": "runtimes", + "weight": 292, "cookies": false, "type": "", "deprecated": false, @@ -8888,9 +8977,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8908,9 +8994,7 @@ "get": { "summary": "List available function runtime specifications", "operationId": "functionsListSpecifications", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -8928,7 +9012,8 @@ }, "x-appwrite": { "method": "listSpecifications", - "weight": 289, + "group": "runtimes", + "weight": 293, "cookies": false, "type": "", "deprecated": false, @@ -8943,9 +9028,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8963,9 +9045,7 @@ "get": { "summary": "Get function", "operationId": "functionsGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -8983,7 +9063,8 @@ }, "x-appwrite": { "method": "get", - "weight": 290, + "group": "functions", + "weight": 294, "cookies": false, "type": "", "deprecated": false, @@ -8997,9 +9078,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9045,7 +9123,8 @@ }, "x-appwrite": { "method": "update", - "weight": 293, + "group": "functions", + "weight": 297, "cookies": false, "type": "", "deprecated": false, @@ -9059,9 +9138,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9106,6 +9182,7 @@ "node-19.0", "node-20.0", "node-21.0", + "node-22", "php-8.0", "php-8.1", "php-8.2", @@ -9124,6 +9201,8 @@ "deno-1.24", "deno-1.35", "deno-1.40", + "deno-1.46", + "deno-2.0", "dart-2.15", "dart-2.16", "dart-2.17", @@ -9131,24 +9210,31 @@ "dart-3.0", "dart-3.1", "dart-3.3", - "dotnet-3.1", + "dart-3.5", "dotnet-6.0", "dotnet-7.0", + "dotnet-8.0", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", + "java-22", "swift-5.5", "swift-5.8", "swift-5.9", + "swift-5.10", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", + "kotlin-2.0", "cpp-17", "cpp-20", "bun-1.0", - "go-1.23" + "bun-1.1", + "go-1.23", + "static-1", + "flutter-3.24" ], "x-enum-name": null, "x-enum-keys": [] @@ -9250,7 +9336,7 @@ "specification": { "type": "string", "description": "Runtime specification for the function and builds.", - "default": "s-0.5vcpu-512mb", + "default": "s-1vcpu-512mb", "x-example": null } }, @@ -9279,7 +9365,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 296, + "group": "functions", + "weight": 300, "cookies": false, "type": "", "deprecated": false, @@ -9293,9 +9380,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9323,9 +9407,7 @@ "get": { "summary": "List deployments", "operationId": "functionsListDeployments", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -9343,7 +9425,8 @@ }, "x-appwrite": { "method": "listDeployments", - "weight": 298, + "group": "deployments", + "weight": 302, "cookies": false, "type": "", "deprecated": false, @@ -9357,9 +9440,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9426,7 +9506,8 @@ }, "x-appwrite": { "method": "createDeployment", - "weight": 297, + "group": "deployments", + "weight": 301, "cookies": false, "type": "upload", "deprecated": false, @@ -9440,9 +9521,6 @@ "server" ], "packaging": true, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9501,9 +9579,7 @@ "get": { "summary": "Get deployment", "operationId": "functionsGetDeployment", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -9521,7 +9597,8 @@ }, "x-appwrite": { "method": "getDeployment", - "weight": 299, + "group": "deployments", + "weight": 303, "cookies": false, "type": "", "deprecated": false, @@ -9535,9 +9612,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9591,7 +9665,8 @@ }, "x-appwrite": { "method": "updateDeployment", - "weight": 295, + "group": "deployments", + "weight": 299, "cookies": false, "type": "", "deprecated": false, @@ -9605,9 +9680,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9656,7 +9728,8 @@ }, "x-appwrite": { "method": "deleteDeployment", - "weight": 300, + "group": "deployments", + "weight": 304, "cookies": false, "type": "", "deprecated": false, @@ -9670,9 +9743,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9706,16 +9776,18 @@ }, "\/functions\/{functionId}\/deployments\/{deploymentId}\/build": { "post": { - "summary": "Rebuild deployment", + "summary": "Create deployment build", "operationId": "functionsCreateBuild", "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "functions" ], - "description": "", + "description": "Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build.", "responses": { "204": { "description": "No content" @@ -9723,12 +9795,13 @@ }, "x-appwrite": { "method": "createBuild", - "weight": 301, + "group": "deployments", + "weight": 305, "cookies": false, "type": "", "deprecated": false, "demo": "functions\/create-build.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/create-build.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9737,9 +9810,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9797,7 +9867,7 @@ "tags": [ "functions" ], - "description": "", + "description": "Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn't started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status 'ready') or failed. The response includes the final build status and details.", "responses": { "200": { "description": "Build", @@ -9808,12 +9878,13 @@ }, "x-appwrite": { "method": "updateDeploymentBuild", - "weight": 302, + "group": "deployments", + "weight": 306, "cookies": false, "type": "", "deprecated": false, "demo": "functions\/update-deployment-build.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/update-deployment-build.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9822,9 +9893,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9858,11 +9926,9 @@ }, "\/functions\/{functionId}\/deployments\/{deploymentId}\/download": { "get": { - "summary": "Download deployment", + "summary": "Get deployment download", "operationId": "functionsGetDeploymentDownload", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "*\/*" ], @@ -9880,7 +9946,8 @@ }, "x-appwrite": { "method": "getDeploymentDownload", - "weight": 294, + "group": "deployments", + "weight": 298, "cookies": false, "type": "location", "deprecated": false, @@ -9895,9 +9962,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9934,9 +9998,7 @@ "get": { "summary": "List executions", "operationId": "functionsListExecutions", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -9954,7 +10016,8 @@ }, "x-appwrite": { "method": "listExecutions", - "weight": 304, + "group": "executions", + "weight": 308, "cookies": false, "type": "", "deprecated": false, @@ -9970,9 +10033,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -10022,7 +10082,7 @@ "summary": "Create execution", "operationId": "functionsCreateExecution", "consumes": [ - "multipart\/form-data" + "application\/json" ], "produces": [ "multipart\/form-data" @@ -10041,7 +10101,8 @@ }, "x-appwrite": { "method": "createExecution", - "weight": 303, + "group": "executions", + "weight": 307, "cookies": false, "type": "", "deprecated": false, @@ -10057,9 +10118,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -10069,79 +10127,73 @@ { "Project": [], "Session": [], - "Key": [], - "JWT": [] - } - ], - "parameters": [ - { - "name": "functionId", - "description": "Function ID.", - "required": true, - "type": "string", - "x-example": "<FUNCTION_ID>", - "in": "path" - }, - { - "name": "body", - "description": "HTTP body of execution. Default value is empty string.", - "required": false, - "type": "payload", - "default": "", - "in": "formData" - }, - { - "name": "async", - "description": "Execute code in the background. Default value is false.", - "required": false, - "type": "boolean", - "x-example": false, - "default": false, - "in": "formData" - }, - { - "name": "path", - "description": "HTTP path of execution. Path can include query params. Default value is \/", - "required": false, - "type": "string", - "x-example": "<PATH>", - "default": "\/", - "in": "formData" - }, - { - "name": "method", - "description": "HTTP method of execution. Default value is GET.", - "required": false, - "type": "string", - "x-example": "GET", - "enum": [ - "GET", - "POST", - "PUT", - "PATCH", - "DELETE", - "OPTIONS" - ], - "x-enum-name": "ExecutionMethod", - "x-enum-keys": [], - "default": "POST", - "in": "formData" - }, + "Key": [], + "JWT": [] + } + ], + "parameters": [ { - "name": "headers", - "description": "HTTP headers of execution. Defaults to empty.", - "required": false, - "type": "object", - "default": [], - "x-example": "{}", - "in": "formData" + "name": "functionId", + "description": "Function ID.", + "required": true, + "type": "string", + "x-example": "<FUNCTION_ID>", + "in": "path" }, { - "name": "scheduledAt", - "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", - "required": false, - "type": "string", - "in": "formData" + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "body": { + "type": "string", + "description": "HTTP body of execution. Default value is empty string.", + "default": "", + "x-example": "<BODY>" + }, + "async": { + "type": "boolean", + "description": "Execute code in the background. Default value is false.", + "default": false, + "x-example": false + }, + "path": { + "type": "string", + "description": "HTTP path of execution. Path can include query params. Default value is \/", + "default": "\/", + "x-example": "<PATH>" + }, + "method": { + "type": "string", + "description": "HTTP method of execution. Default value is GET.", + "default": "POST", + "x-example": "GET", + "enum": [ + "GET", + "POST", + "PUT", + "PATCH", + "DELETE", + "OPTIONS" + ], + "x-enum-name": "ExecutionMethod", + "x-enum-keys": [] + }, + "headers": { + "type": "object", + "description": "HTTP headers of execution. Defaults to empty.", + "default": [], + "x-example": "{}" + }, + "scheduledAt": { + "type": "string", + "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", + "default": null, + "x-example": null + } + } + } } ] } @@ -10150,9 +10202,7 @@ "get": { "summary": "Get execution", "operationId": "functionsGetExecution", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -10170,7 +10220,8 @@ }, "x-appwrite": { "method": "getExecution", - "weight": 305, + "group": "executions", + "weight": 309, "cookies": false, "type": "", "deprecated": false, @@ -10186,9 +10237,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -10239,7 +10287,8 @@ }, "x-appwrite": { "method": "deleteExecution", - "weight": 306, + "group": "executions", + "weight": 310, "cookies": false, "type": "", "deprecated": false, @@ -10253,9 +10302,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10291,9 +10337,7 @@ "get": { "summary": "List variables", "operationId": "functionsListVariables", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -10311,7 +10355,8 @@ }, "x-appwrite": { "method": "listVariables", - "weight": 308, + "group": "variables", + "weight": 312, "cookies": false, "type": "", "deprecated": false, @@ -10325,9 +10370,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10373,7 +10415,8 @@ }, "x-appwrite": { "method": "createVariable", - "weight": 307, + "group": "variables", + "weight": 311, "cookies": false, "type": "", "deprecated": false, @@ -10387,9 +10430,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10442,9 +10482,7 @@ "get": { "summary": "Get variable", "operationId": "functionsGetVariable", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -10462,7 +10500,8 @@ }, "x-appwrite": { "method": "getVariable", - "weight": 309, + "group": "variables", + "weight": 313, "cookies": false, "type": "", "deprecated": false, @@ -10476,9 +10515,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10532,7 +10568,8 @@ }, "x-appwrite": { "method": "updateVariable", - "weight": 310, + "group": "variables", + "weight": 314, "cookies": false, "type": "", "deprecated": false, @@ -10546,9 +10583,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10621,7 +10655,8 @@ }, "x-appwrite": { "method": "deleteVariable", - "weight": 311, + "group": "variables", + "weight": 315, "cookies": false, "type": "", "deprecated": false, @@ -10635,9 +10670,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10693,7 +10725,8 @@ }, "x-appwrite": { "method": "query", - "weight": 329, + "group": "graphql", + "weight": 333, "cookies": false, "type": "graphql", "deprecated": false, @@ -10709,9 +10742,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10771,7 +10801,8 @@ }, "x-appwrite": { "method": "mutation", - "weight": 328, + "group": "graphql", + "weight": 332, "cookies": false, "type": "graphql", "deprecated": false, @@ -10787,9 +10818,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10829,9 +10857,7 @@ "get": { "summary": "Get HTTP", "operationId": "healthGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -10849,7 +10875,8 @@ }, "x-appwrite": { "method": "get", - "weight": 124, + "group": "health", + "weight": 128, "cookies": false, "type": "", "deprecated": false, @@ -10863,9 +10890,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10883,9 +10907,7 @@ "get": { "summary": "Get antivirus", "operationId": "healthGetAntivirus", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -10903,7 +10925,8 @@ }, "x-appwrite": { "method": "getAntivirus", - "weight": 146, + "group": "health", + "weight": 149, "cookies": false, "type": "", "deprecated": false, @@ -10917,9 +10940,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10937,9 +10957,7 @@ "get": { "summary": "Get cache", "operationId": "healthGetCache", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -10957,7 +10975,8 @@ }, "x-appwrite": { "method": "getCache", - "weight": 127, + "group": "health", + "weight": 131, "cookies": false, "type": "", "deprecated": false, @@ -10971,9 +10990,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10991,9 +11007,7 @@ "get": { "summary": "Get the SSL certificate for a domain", "operationId": "healthGetCertificate", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11011,7 +11025,8 @@ }, "x-appwrite": { "method": "getCertificate", - "weight": 133, + "group": "health", + "weight": 136, "cookies": false, "type": "", "deprecated": false, @@ -11025,9 +11040,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11054,9 +11066,7 @@ "get": { "summary": "Get DB", "operationId": "healthGetDB", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11074,7 +11084,8 @@ }, "x-appwrite": { "method": "getDB", - "weight": 126, + "group": "health", + "weight": 130, "cookies": false, "type": "", "deprecated": false, @@ -11088,9 +11099,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11108,9 +11116,7 @@ "get": { "summary": "Get pubsub", "operationId": "healthGetPubSub", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11128,7 +11134,8 @@ }, "x-appwrite": { "method": "getPubSub", - "weight": 129, + "group": "health", + "weight": 132, "cookies": false, "type": "", "deprecated": false, @@ -11142,63 +11149,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", - "auth": { - "Project": [], - "Key": [] - } - }, - "security": [ - { - "Project": [], - "Key": [] - } - ] - } - }, - "\/health\/queue": { - "get": { - "summary": "Get queue", - "operationId": "healthGetQueue", - "consumes": [ - "application\/json" - ], - "produces": [ - "application\/json" - ], - "tags": [ - "health" - ], - "description": "Check the Appwrite queue messaging servers are up and connection is successful.", - "responses": { - "200": { - "description": "Health Status", - "schema": { - "$ref": "#\/definitions\/healthStatus" - } - } - }, - "x-appwrite": { - "method": "getQueue", - "weight": 128, - "cookies": false, - "type": "", - "deprecated": false, - "demo": "health\/get-queue.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue.md", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "health.read", - "platforms": [ - "server" - ], - "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11216,9 +11166,7 @@ "get": { "summary": "Get builds queue", "operationId": "healthGetQueueBuilds", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11236,7 +11184,8 @@ }, "x-appwrite": { "method": "getQueueBuilds", - "weight": 135, + "group": "queue", + "weight": 138, "cookies": false, "type": "", "deprecated": false, @@ -11250,9 +11199,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11281,9 +11227,7 @@ "get": { "summary": "Get certificates queue", "operationId": "healthGetQueueCertificates", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11301,7 +11245,8 @@ }, "x-appwrite": { "method": "getQueueCertificates", - "weight": 134, + "group": "queue", + "weight": 137, "cookies": false, "type": "", "deprecated": false, @@ -11315,9 +11260,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11346,9 +11288,7 @@ "get": { "summary": "Get databases queue", "operationId": "healthGetQueueDatabases", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11366,7 +11306,8 @@ }, "x-appwrite": { "method": "getQueueDatabases", - "weight": 136, + "group": "queue", + "weight": 139, "cookies": false, "type": "", "deprecated": false, @@ -11380,9 +11321,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11420,9 +11358,7 @@ "get": { "summary": "Get deletes queue", "operationId": "healthGetQueueDeletes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11440,7 +11376,8 @@ }, "x-appwrite": { "method": "getQueueDeletes", - "weight": 137, + "group": "queue", + "weight": 140, "cookies": false, "type": "", "deprecated": false, @@ -11454,9 +11391,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11485,9 +11419,7 @@ "get": { "summary": "Get number of failed queue jobs", "operationId": "healthGetFailedJobs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11505,7 +11437,8 @@ }, "x-appwrite": { "method": "getFailedJobs", - "weight": 147, + "group": "queue", + "weight": 150, "cookies": false, "type": "", "deprecated": false, @@ -11519,9 +11452,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11546,8 +11476,8 @@ "v1-audits", "v1-mails", "v1-functions", - "v1-usage", - "v1-usage-dump", + "v1-stats-resources", + "v1-stats-usage", "v1-webhooks", "v1-certificates", "v1-builds", @@ -11574,9 +11504,7 @@ "get": { "summary": "Get functions queue", "operationId": "healthGetQueueFunctions", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11594,7 +11522,8 @@ }, "x-appwrite": { "method": "getQueueFunctions", - "weight": 141, + "group": "queue", + "weight": 144, "cookies": false, "type": "", "deprecated": false, @@ -11608,9 +11537,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11639,9 +11565,7 @@ "get": { "summary": "Get logs queue", "operationId": "healthGetQueueLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11659,7 +11583,8 @@ }, "x-appwrite": { "method": "getQueueLogs", - "weight": 132, + "group": "queue", + "weight": 135, "cookies": false, "type": "", "deprecated": false, @@ -11673,9 +11598,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11704,9 +11626,7 @@ "get": { "summary": "Get mails queue", "operationId": "healthGetQueueMails", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11724,7 +11644,8 @@ }, "x-appwrite": { "method": "getQueueMails", - "weight": 138, + "group": "queue", + "weight": 141, "cookies": false, "type": "", "deprecated": false, @@ -11738,9 +11659,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11769,9 +11687,7 @@ "get": { "summary": "Get messaging queue", "operationId": "healthGetQueueMessaging", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11789,7 +11705,8 @@ }, "x-appwrite": { "method": "getQueueMessaging", - "weight": 139, + "group": "queue", + "weight": 142, "cookies": false, "type": "", "deprecated": false, @@ -11803,9 +11720,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11834,9 +11748,7 @@ "get": { "summary": "Get migrations queue", "operationId": "healthGetQueueMigrations", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11854,7 +11766,8 @@ }, "x-appwrite": { "method": "getQueueMigrations", - "weight": 140, + "group": "queue", + "weight": 143, "cookies": false, "type": "", "deprecated": false, @@ -11868,9 +11781,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11895,20 +11805,18 @@ ] } }, - "\/health\/queue\/usage": { + "\/health\/queue\/stats-resources": { "get": { - "summary": "Get usage queue", - "operationId": "healthGetQueueUsage", - "consumes": [ - "application\/json" - ], + "summary": "Get stats resources queue", + "operationId": "healthGetQueueStatsResources", + "consumes": [], "produces": [ "application\/json" ], "tags": [ "health" ], - "description": "Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.", + "description": "Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.", "responses": { "200": { "description": "Health Queue", @@ -11918,13 +11826,14 @@ } }, "x-appwrite": { - "method": "getQueueUsage", - "weight": 142, + "method": "getQueueStatsResources", + "group": "queue", + "weight": 145, "cookies": false, "type": "", "deprecated": false, - "demo": "health\/get-queue-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-usage.md", + "demo": "health\/get-queue-stats-resources.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-stats-resources.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11933,9 +11842,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11960,20 +11866,18 @@ ] } }, - "\/health\/queue\/usage-dump": { + "\/health\/queue\/stats-usage": { "get": { - "summary": "Get usage dump queue", - "operationId": "healthGetQueueUsageDump", - "consumes": [ - "application\/json" - ], + "summary": "Get stats usage queue", + "operationId": "healthGetQueueUsage", + "consumes": [], "produces": [ "application\/json" ], "tags": [ "health" ], - "description": "Get the number of projects containing metrics that are waiting to be processed in the Appwrite internal queue server.", + "description": "Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.", "responses": { "200": { "description": "Health Queue", @@ -11983,13 +11887,14 @@ } }, "x-appwrite": { - "method": "getQueueUsageDump", - "weight": 143, + "method": "getQueueUsage", + "group": "queue", + "weight": 146, "cookies": false, "type": "", "deprecated": false, - "demo": "health\/get-queue-usage-dump.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-usage-dump.md", + "demo": "health\/get-queue-usage.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-stats-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11998,9 +11903,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -12029,9 +11931,7 @@ "get": { "summary": "Get webhooks queue", "operationId": "healthGetQueueWebhooks", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12049,7 +11949,8 @@ }, "x-appwrite": { "method": "getQueueWebhooks", - "weight": 131, + "group": "queue", + "weight": 134, "cookies": false, "type": "", "deprecated": false, @@ -12063,9 +11964,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -12094,9 +11992,7 @@ "get": { "summary": "Get storage", "operationId": "healthGetStorage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12114,7 +12010,8 @@ }, "x-appwrite": { "method": "getStorage", - "weight": 145, + "group": "storage", + "weight": 148, "cookies": false, "type": "", "deprecated": false, @@ -12128,9 +12025,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -12148,9 +12042,7 @@ "get": { "summary": "Get local storage", "operationId": "healthGetStorageLocal", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12168,7 +12060,8 @@ }, "x-appwrite": { "method": "getStorageLocal", - "weight": 144, + "group": "storage", + "weight": 147, "cookies": false, "type": "", "deprecated": false, @@ -12182,9 +12075,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -12202,9 +12092,7 @@ "get": { "summary": "Get time", "operationId": "healthGetTime", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12222,7 +12110,8 @@ }, "x-appwrite": { "method": "getTime", - "weight": 130, + "group": "health", + "weight": 133, "cookies": false, "type": "", "deprecated": false, @@ -12236,9 +12125,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -12256,9 +12142,7 @@ "get": { "summary": "Get user locale", "operationId": "localeGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12276,7 +12160,8 @@ }, "x-appwrite": { "method": "get", - "weight": 116, + "group": null, + "weight": 120, "cookies": false, "type": "", "deprecated": false, @@ -12292,9 +12177,6 @@ "server" ], "packaging": false, - "offline-model": "\/localed", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -12312,11 +12194,9 @@ }, "\/locale\/codes": { "get": { - "summary": "List Locale Codes", + "summary": "List locale codes", "operationId": "localeListCodes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12334,7 +12214,8 @@ }, "x-appwrite": { "method": "listCodes", - "weight": 117, + "group": null, + "weight": 121, "cookies": false, "type": "", "deprecated": false, @@ -12350,9 +12231,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/localeCode", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -12372,9 +12250,7 @@ "get": { "summary": "List continents", "operationId": "localeListContinents", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12392,7 +12268,8 @@ }, "x-appwrite": { "method": "listContinents", - "weight": 121, + "group": null, + "weight": 125, "cookies": false, "type": "", "deprecated": false, @@ -12408,9 +12285,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/continents", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [], "Session": [] @@ -12430,9 +12304,7 @@ "get": { "summary": "List countries", "operationId": "localeListCountries", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12450,7 +12322,8 @@ }, "x-appwrite": { "method": "listCountries", - "weight": 118, + "group": null, + "weight": 122, "cookies": false, "type": "", "deprecated": false, @@ -12466,9 +12339,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [], "Session": [] @@ -12488,9 +12358,7 @@ "get": { "summary": "List EU countries", "operationId": "localeListCountriesEU", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12508,7 +12376,8 @@ }, "x-appwrite": { "method": "listCountriesEU", - "weight": 119, + "group": null, + "weight": 123, "cookies": false, "type": "", "deprecated": false, @@ -12524,9 +12393,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries\/eu", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [], "Session": [] @@ -12546,9 +12412,7 @@ "get": { "summary": "List countries phone codes", "operationId": "localeListCountriesPhones", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12566,7 +12430,8 @@ }, "x-appwrite": { "method": "listCountriesPhones", - "weight": 120, + "group": null, + "weight": 124, "cookies": false, "type": "", "deprecated": false, @@ -12582,9 +12447,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries\/phones", - "offline-key": "", - "offline-response-key": "countryCode", "auth": { "Project": [], "Session": [] @@ -12604,9 +12466,7 @@ "get": { "summary": "List currencies", "operationId": "localeListCurrencies", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12624,7 +12484,8 @@ }, "x-appwrite": { "method": "listCurrencies", - "weight": 122, + "group": null, + "weight": 126, "cookies": false, "type": "", "deprecated": false, @@ -12640,9 +12501,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/currencies", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [], "Session": [] @@ -12662,9 +12520,7 @@ "get": { "summary": "List languages", "operationId": "localeListLanguages", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12682,7 +12538,8 @@ }, "x-appwrite": { "method": "listLanguages", - "weight": 123, + "group": null, + "weight": 127, "cookies": false, "type": "", "deprecated": false, @@ -12698,9 +12555,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/languages", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [], "Session": [] @@ -12720,9 +12574,7 @@ "get": { "summary": "List messages", "operationId": "messagingListMessages", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12740,7 +12592,8 @@ }, "x-appwrite": { "method": "listMessages", - "weight": 388, + "group": "messages", + "weight": 386, "cookies": false, "type": "", "deprecated": false, @@ -12755,9 +12608,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -12818,7 +12668,8 @@ }, "x-appwrite": { "method": "createEmail", - "weight": 385, + "group": "messages", + "weight": 383, "cookies": false, "type": "", "deprecated": false, @@ -12833,9 +12684,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -12968,7 +12816,7 @@ "tags": [ "messaging" ], - "description": "Update an email message by its unique ID.\n", + "description": "Update an email message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", "responses": { "200": { "description": "Message", @@ -12979,7 +12827,8 @@ }, "x-appwrite": { "method": "updateEmail", - "weight": 392, + "group": "messages", + "weight": 390, "cookies": false, "type": "", "deprecated": false, @@ -12994,9 +12843,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13137,7 +12983,8 @@ }, "x-appwrite": { "method": "createPush", - "weight": 387, + "group": "messages", + "weight": 385, "cookies": false, "type": "", "deprecated": false, @@ -13152,9 +12999,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13182,13 +13026,13 @@ "title": { "type": "string", "description": "Title for push notification.", - "default": null, + "default": "", "x-example": "<TITLE>" }, "body": { "type": "string", "description": "Body for push notification.", - "default": null, + "default": "", "x-example": "<BODY>" }, "topics": { @@ -13220,7 +13064,7 @@ }, "data": { "type": "object", - "description": "Additional Data for push notification.", + "description": "Additional key-value pair data for push notification.", "default": {}, "x-example": "{}" }, @@ -13244,7 +13088,7 @@ }, "sound": { "type": "string", - "description": "Sound for push notification. Available only for Android and IOS Platform.", + "description": "Sound for push notification. Available only for Android and iOS Platform.", "default": "", "x-example": "<SOUND>" }, @@ -13261,10 +13105,10 @@ "x-example": "<TAG>" }, "badge": { - "type": "string", - "description": "Badge for push notification. Available only for IOS Platform.", - "default": "", - "x-example": "<BADGE>" + "type": "integer", + "description": "Badge for push notification. Available only for iOS Platform.", + "default": -1, + "x-example": null }, "draft": { "type": "boolean", @@ -13277,12 +13121,34 @@ "description": "Scheduled delivery time for message in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future.", "default": null, "x-example": null + }, + "contentAvailable": { + "type": "boolean", + "description": "If set to true, the notification will be delivered in the background. Available only for iOS Platform.", + "default": false, + "x-example": false + }, + "critical": { + "type": "boolean", + "description": "If set to true, the notification will be marked as critical. This requires the app to have the critical notification entitlement. Available only for iOS Platform.", + "default": false, + "x-example": false + }, + "priority": { + "type": "string", + "description": "Set the notification priority. \"normal\" will consider device state and may not deliver notifications immediately. \"high\" will always attempt to immediately deliver the notification.", + "default": "high", + "x-example": "normal", + "enum": [ + "normal", + "high" + ], + "x-enum-name": "MessagePriority", + "x-enum-keys": [] } }, "required": [ - "messageId", - "title", - "body" + "messageId" ] } } @@ -13302,7 +13168,7 @@ "tags": [ "messaging" ], - "description": "Update a push notification by its unique ID.\n", + "description": "Update a push notification by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", "responses": { "200": { "description": "Message", @@ -13313,7 +13179,8 @@ }, "x-appwrite": { "method": "updatePush", - "weight": 394, + "group": "messages", + "weight": 392, "cookies": false, "type": "", "deprecated": false, @@ -13328,9 +13195,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13455,6 +13319,30 @@ "description": "Scheduled delivery time for message in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future.", "default": null, "x-example": null + }, + "contentAvailable": { + "type": "boolean", + "description": "If set to true, the notification will be delivered in the background. Available only for iOS Platform.", + "default": null, + "x-example": false + }, + "critical": { + "type": "boolean", + "description": "If set to true, the notification will be marked as critical. This requires the app to have the critical notification entitlement. Available only for iOS Platform.", + "default": null, + "x-example": false + }, + "priority": { + "type": "string", + "description": "Set the notification priority. \"normal\" will consider device battery state and may send notifications later. \"high\" will always attempt to immediately deliver the notification.", + "default": null, + "x-example": "normal", + "enum": [ + "normal", + "high" + ], + "x-enum-name": "MessagePriority", + "x-enum-keys": [] } } } @@ -13486,7 +13374,8 @@ }, "x-appwrite": { "method": "createSms", - "weight": 386, + "group": "messages", + "weight": 384, "cookies": false, "type": "", "deprecated": false, @@ -13501,9 +13390,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13596,7 +13482,7 @@ "tags": [ "messaging" ], - "description": "Update an email message by its unique ID.\n", + "description": "Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", "responses": { "200": { "description": "Message", @@ -13607,12 +13493,13 @@ }, "x-appwrite": { "method": "updateSms", - "weight": 393, + "group": "messages", + "weight": 391, "cookies": false, "type": "", "deprecated": false, "demo": "messaging\/update-sms.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/update-email.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/update-sms.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13622,9 +13509,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13706,9 +13590,7 @@ "get": { "summary": "Get message", "operationId": "messagingGetMessage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13726,7 +13608,8 @@ }, "x-appwrite": { "method": "getMessage", - "weight": 391, + "group": "messages", + "weight": 389, "cookies": false, "type": "", "deprecated": false, @@ -13741,9 +13624,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13772,9 +13652,7 @@ "consumes": [ "application\/json" ], - "produces": [ - "application\/json" - ], + "produces": [], "tags": [ "messaging" ], @@ -13786,7 +13664,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 395, + "group": "messages", + "weight": 393, "cookies": false, "type": "", "deprecated": false, @@ -13801,9 +13680,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13831,9 +13707,7 @@ "get": { "summary": "List message logs", "operationId": "messagingListMessageLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13851,7 +13725,8 @@ }, "x-appwrite": { "method": "listMessageLogs", - "weight": 389, + "group": "logs", + "weight": 387, "cookies": false, "type": "", "deprecated": false, @@ -13866,9 +13741,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13908,9 +13780,7 @@ "get": { "summary": "List message targets", "operationId": "messagingListTargets", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13928,7 +13798,8 @@ }, "x-appwrite": { "method": "listTargets", - "weight": 390, + "group": "messages", + "weight": 388, "cookies": false, "type": "", "deprecated": false, @@ -13943,9 +13814,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13985,9 +13853,7 @@ "get": { "summary": "List providers", "operationId": "messagingListProviders", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -14005,7 +13871,8 @@ }, "x-appwrite": { "method": "listProviders", - "weight": 360, + "group": "providers", + "weight": 358, "cookies": false, "type": "", "deprecated": false, @@ -14020,9 +13887,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14083,7 +13947,8 @@ }, "x-appwrite": { "method": "createApnsProvider", - "weight": 359, + "group": "providers", + "weight": 357, "cookies": false, "type": "", "deprecated": false, @@ -14098,9 +13963,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14201,7 +14063,8 @@ }, "x-appwrite": { "method": "updateApnsProvider", - "weight": 372, + "group": "providers", + "weight": 370, "cookies": false, "type": "", "deprecated": false, @@ -14216,9 +14079,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14317,7 +14177,8 @@ }, "x-appwrite": { "method": "createFcmProvider", - "weight": 358, + "group": "providers", + "weight": 356, "cookies": false, "type": "", "deprecated": false, @@ -14332,9 +14193,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14411,7 +14269,8 @@ }, "x-appwrite": { "method": "updateFcmProvider", - "weight": 371, + "group": "providers", + "weight": 369, "cookies": false, "type": "", "deprecated": false, @@ -14426,9 +14285,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14503,7 +14359,8 @@ }, "x-appwrite": { "method": "createMailgunProvider", - "weight": 350, + "group": "providers", + "weight": 348, "cookies": false, "type": "", "deprecated": false, @@ -14518,9 +14375,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14633,7 +14487,8 @@ }, "x-appwrite": { "method": "updateMailgunProvider", - "weight": 363, + "group": "providers", + "weight": 361, "cookies": false, "type": "", "deprecated": false, @@ -14648,9 +14503,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14761,7 +14613,8 @@ }, "x-appwrite": { "method": "createMsg91Provider", - "weight": 353, + "group": "providers", + "weight": 351, "cookies": false, "type": "", "deprecated": false, @@ -14776,9 +14629,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14867,7 +14717,8 @@ }, "x-appwrite": { "method": "updateMsg91Provider", - "weight": 366, + "group": "providers", + "weight": 364, "cookies": false, "type": "", "deprecated": false, @@ -14882,9 +14733,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14971,7 +14819,8 @@ }, "x-appwrite": { "method": "createSendgridProvider", - "weight": 351, + "group": "providers", + "weight": 349, "cookies": false, "type": "", "deprecated": false, @@ -14986,9 +14835,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15089,7 +14935,8 @@ }, "x-appwrite": { "method": "updateSendgridProvider", - "weight": 364, + "group": "providers", + "weight": 362, "cookies": false, "type": "", "deprecated": false, @@ -15104,9 +14951,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15205,7 +15049,8 @@ }, "x-appwrite": { "method": "createSmtpProvider", - "weight": 352, + "group": "providers", + "weight": 350, "cookies": false, "type": "", "deprecated": false, @@ -15220,9 +15065,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15367,7 +15209,8 @@ }, "x-appwrite": { "method": "updateSmtpProvider", - "weight": 365, + "group": "providers", + "weight": 363, "cookies": false, "type": "", "deprecated": false, @@ -15382,9 +15225,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15526,7 +15366,8 @@ }, "x-appwrite": { "method": "createTelesignProvider", - "weight": 354, + "group": "providers", + "weight": 352, "cookies": false, "type": "", "deprecated": false, @@ -15541,9 +15382,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15632,7 +15470,8 @@ }, "x-appwrite": { "method": "updateTelesignProvider", - "weight": 367, + "group": "providers", + "weight": 365, "cookies": false, "type": "", "deprecated": false, @@ -15647,9 +15486,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15736,7 +15572,8 @@ }, "x-appwrite": { "method": "createTextmagicProvider", - "weight": 355, + "group": "providers", + "weight": 353, "cookies": false, "type": "", "deprecated": false, @@ -15751,9 +15588,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15842,7 +15676,8 @@ }, "x-appwrite": { "method": "updateTextmagicProvider", - "weight": 368, + "group": "providers", + "weight": 366, "cookies": false, "type": "", "deprecated": false, @@ -15857,9 +15692,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15946,7 +15778,8 @@ }, "x-appwrite": { "method": "createTwilioProvider", - "weight": 356, + "group": "providers", + "weight": 354, "cookies": false, "type": "", "deprecated": false, @@ -15961,9 +15794,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16052,7 +15882,8 @@ }, "x-appwrite": { "method": "updateTwilioProvider", - "weight": 369, + "group": "providers", + "weight": 367, "cookies": false, "type": "", "deprecated": false, @@ -16067,9 +15898,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16156,7 +15984,8 @@ }, "x-appwrite": { "method": "createVonageProvider", - "weight": 357, + "group": "providers", + "weight": 355, "cookies": false, "type": "", "deprecated": false, @@ -16171,9 +16000,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16262,7 +16088,8 @@ }, "x-appwrite": { "method": "updateVonageProvider", - "weight": 370, + "group": "providers", + "weight": 368, "cookies": false, "type": "", "deprecated": false, @@ -16277,9 +16104,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16346,9 +16170,7 @@ "get": { "summary": "Get provider", "operationId": "messagingGetProvider", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -16366,7 +16188,8 @@ }, "x-appwrite": { "method": "getProvider", - "weight": 362, + "group": "providers", + "weight": 360, "cookies": false, "type": "", "deprecated": false, @@ -16381,9 +16204,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16412,9 +16232,7 @@ "consumes": [ "application\/json" ], - "produces": [ - "application\/json" - ], + "produces": [], "tags": [ "messaging" ], @@ -16426,7 +16244,8 @@ }, "x-appwrite": { "method": "deleteProvider", - "weight": 373, + "group": "providers", + "weight": 371, "cookies": false, "type": "", "deprecated": false, @@ -16441,9 +16260,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16471,9 +16287,7 @@ "get": { "summary": "List provider logs", "operationId": "messagingListProviderLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -16491,7 +16305,8 @@ }, "x-appwrite": { "method": "listProviderLogs", - "weight": 361, + "group": "providers", + "weight": 359, "cookies": false, "type": "", "deprecated": false, @@ -16506,9 +16321,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16548,9 +16360,7 @@ "get": { "summary": "List subscriber logs", "operationId": "messagingListSubscriberLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -16568,7 +16378,8 @@ }, "x-appwrite": { "method": "listSubscriberLogs", - "weight": 382, + "group": "subscribers", + "weight": 380, "cookies": false, "type": "", "deprecated": false, @@ -16583,9 +16394,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16625,9 +16433,7 @@ "get": { "summary": "List topics", "operationId": "messagingListTopics", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -16645,7 +16451,8 @@ }, "x-appwrite": { "method": "listTopics", - "weight": 375, + "group": "topics", + "weight": 373, "cookies": false, "type": "", "deprecated": false, @@ -16660,9 +16467,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16721,7 +16525,8 @@ }, "x-appwrite": { "method": "createTopic", - "weight": 374, + "group": "topics", + "weight": 372, "cookies": false, "type": "", "deprecated": false, @@ -16736,9 +16541,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16794,9 +16596,7 @@ "get": { "summary": "Get topic", "operationId": "messagingGetTopic", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -16814,7 +16614,8 @@ }, "x-appwrite": { "method": "getTopic", - "weight": 377, + "group": "topics", + "weight": 375, "cookies": false, "type": "", "deprecated": false, @@ -16829,9 +16630,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16877,7 +16675,8 @@ }, "x-appwrite": { "method": "updateTopic", - "weight": 378, + "group": "topics", + "weight": 376, "cookies": false, "type": "", "deprecated": false, @@ -16892,9 +16691,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16947,9 +16743,7 @@ "consumes": [ "application\/json" ], - "produces": [ - "application\/json" - ], + "produces": [], "tags": [ "messaging" ], @@ -16961,7 +16755,8 @@ }, "x-appwrite": { "method": "deleteTopic", - "weight": 379, + "group": "topics", + "weight": 377, "cookies": false, "type": "", "deprecated": false, @@ -16976,9 +16771,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -17006,9 +16798,7 @@ "get": { "summary": "List topic logs", "operationId": "messagingListTopicLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -17026,7 +16816,8 @@ }, "x-appwrite": { "method": "listTopicLogs", - "weight": 376, + "group": "topics", + "weight": 374, "cookies": false, "type": "", "deprecated": false, @@ -17041,9 +16832,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -17083,9 +16871,7 @@ "get": { "summary": "List subscribers", "operationId": "messagingListSubscribers", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -17103,7 +16889,8 @@ }, "x-appwrite": { "method": "listSubscribers", - "weight": 381, + "group": "subscribers", + "weight": 379, "cookies": false, "type": "", "deprecated": false, @@ -17118,9 +16905,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -17187,7 +16971,8 @@ }, "x-appwrite": { "method": "createSubscriber", - "weight": 380, + "group": "subscribers", + "weight": 378, "cookies": false, "type": "", "deprecated": false, @@ -17204,9 +16989,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "JWT": [] @@ -17261,9 +17043,7 @@ "get": { "summary": "Get subscriber", "operationId": "messagingGetSubscriber", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -17281,7 +17061,8 @@ }, "x-appwrite": { "method": "getSubscriber", - "weight": 383, + "group": "subscribers", + "weight": 381, "cookies": false, "type": "", "deprecated": false, @@ -17296,9 +17077,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -17335,9 +17113,7 @@ "consumes": [ "application\/json" ], - "produces": [ - "application\/json" - ], + "produces": [], "tags": [ "messaging" ], @@ -17349,7 +17125,8 @@ }, "x-appwrite": { "method": "deleteSubscriber", - "weight": 384, + "group": "subscribers", + "weight": 382, "cookies": false, "type": "", "deprecated": false, @@ -17366,9 +17143,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "JWT": [] @@ -17406,9 +17180,7 @@ "get": { "summary": "List buckets", "operationId": "storageListBuckets", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -17426,7 +17198,8 @@ }, "x-appwrite": { "method": "listBuckets", - "weight": 201, + "group": "buckets", + "weight": 205, "cookies": false, "type": "", "deprecated": false, @@ -17440,9 +17213,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -17501,7 +17271,8 @@ }, "x-appwrite": { "method": "createBucket", - "weight": 200, + "group": "buckets", + "weight": 204, "cookies": false, "type": "", "deprecated": false, @@ -17515,9 +17286,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -17623,9 +17391,7 @@ "get": { "summary": "Get bucket", "operationId": "storageGetBucket", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -17643,7 +17409,8 @@ }, "x-appwrite": { "method": "getBucket", - "weight": 202, + "group": "buckets", + "weight": 206, "cookies": false, "type": "", "deprecated": false, @@ -17657,9 +17424,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -17705,7 +17469,8 @@ }, "x-appwrite": { "method": "updateBucket", - "weight": 203, + "group": "buckets", + "weight": 207, "cookies": false, "type": "", "deprecated": false, @@ -17719,9 +17484,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -17841,7 +17603,8 @@ }, "x-appwrite": { "method": "deleteBucket", - "weight": 204, + "group": "buckets", + "weight": 208, "cookies": false, "type": "", "deprecated": false, @@ -17855,9 +17618,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -17885,9 +17645,7 @@ "get": { "summary": "List files", "operationId": "storageListFiles", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -17905,7 +17663,8 @@ }, "x-appwrite": { "method": "listFiles", - "weight": 206, + "group": "files", + "weight": 210, "cookies": false, "type": "", "deprecated": false, @@ -17921,9 +17680,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -17992,7 +17748,8 @@ }, "x-appwrite": { "method": "createFile", - "weight": 205, + "group": "files", + "weight": 209, "cookies": false, "type": "upload", "deprecated": false, @@ -18008,9 +17765,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18068,9 +17822,7 @@ "get": { "summary": "Get file", "operationId": "storageGetFile", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -18088,7 +17840,8 @@ }, "x-appwrite": { "method": "getFile", - "weight": 207, + "group": "files", + "weight": 211, "cookies": false, "type": "", "deprecated": false, @@ -18104,9 +17857,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18162,7 +17912,8 @@ }, "x-appwrite": { "method": "updateFile", - "weight": 212, + "group": "files", + "weight": 216, "cookies": false, "type": "", "deprecated": false, @@ -18178,9 +17929,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18238,7 +17986,7 @@ ] }, "delete": { - "summary": "Delete File", + "summary": "Delete file", "operationId": "storageDeleteFile", "consumes": [ "application\/json" @@ -18255,7 +18003,8 @@ }, "x-appwrite": { "method": "deleteFile", - "weight": 213, + "group": "files", + "weight": 217, "cookies": false, "type": "", "deprecated": false, @@ -18271,9 +18020,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18311,9 +18057,7 @@ "get": { "summary": "Get file for download", "operationId": "storageGetFileDownload", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "*\/*" ], @@ -18331,7 +18075,8 @@ }, "x-appwrite": { "method": "getFileDownload", - "weight": 209, + "group": "files", + "weight": 213, "cookies": false, "type": "location", "deprecated": false, @@ -18347,9 +18092,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18387,9 +18129,7 @@ "get": { "summary": "Get file preview", "operationId": "storageGetFilePreview", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/*" ], @@ -18407,7 +18147,8 @@ }, "x-appwrite": { "method": "getFilePreview", - "weight": 208, + "group": "files", + "weight": 212, "cookies": false, "type": "location", "deprecated": false, @@ -18423,9 +18164,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18575,7 +18313,9 @@ "jpeg", "gif", "png", - "webp" + "webp", + "heic", + "avif" ], "x-enum-name": "ImageFormat", "x-enum-keys": [], @@ -18589,9 +18329,7 @@ "get": { "summary": "Get file for view", "operationId": "storageGetFileView", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "*\/*" ], @@ -18609,7 +18347,8 @@ }, "x-appwrite": { "method": "getFileView", - "weight": 210, + "group": "files", + "weight": 214, "cookies": false, "type": "location", "deprecated": false, @@ -18625,9 +18364,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18665,9 +18401,7 @@ "get": { "summary": "List teams", "operationId": "teamsList", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -18685,7 +18419,8 @@ }, "x-appwrite": { "method": "list", - "weight": 217, + "group": "teams", + "weight": 221, "cookies": false, "type": "", "deprecated": false, @@ -18701,9 +18436,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18764,7 +18496,8 @@ }, "x-appwrite": { "method": "create", - "weight": 216, + "group": "teams", + "weight": 220, "cookies": false, "type": "", "deprecated": false, @@ -18780,9 +18513,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18840,9 +18570,7 @@ "get": { "summary": "Get team", "operationId": "teamsGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -18860,7 +18588,8 @@ }, "x-appwrite": { "method": "get", - "weight": 218, + "group": "teams", + "weight": 222, "cookies": false, "type": "", "deprecated": false, @@ -18876,9 +18605,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "{teamId}", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18926,7 +18652,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 220, + "group": "teams", + "weight": 224, "cookies": false, "type": "", "deprecated": false, @@ -18942,9 +18669,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "{teamId}", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -19005,7 +18729,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 222, + "group": "teams", + "weight": 226, "cookies": false, "type": "", "deprecated": false, @@ -19021,9 +18746,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -19053,16 +18775,14 @@ "get": { "summary": "List team memberships", "operationId": "teamsListMemberships", - "consumes": [ - "application\/json" - ], + "consumes": [], "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.", + "description": "Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint. Hide sensitive attributes from the response by toggling membership privacy in the Console.", "responses": { "200": { "description": "Memberships List", @@ -19073,7 +18793,8 @@ }, "x-appwrite": { "method": "listMemberships", - "weight": 224, + "group": "memberships", + "weight": 228, "cookies": false, "type": "", "deprecated": false, @@ -19089,9 +18810,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/memberships", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -19160,7 +18878,8 @@ }, "x-appwrite": { "method": "createMembership", - "weight": 223, + "group": "memberships", + "weight": 227, "cookies": false, "type": "", "deprecated": false, @@ -19176,9 +18895,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -19259,16 +18975,14 @@ "get": { "summary": "Get team membership", "operationId": "teamsGetMembership", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "teams" ], - "description": "Get a team member by the membership unique id. All team members have read access for this resource.", + "description": "Get a team member by the membership unique id. All team members have read access for this resource. Hide sensitive attributes from the response by toggling membership privacy in the Console.", "responses": { "200": { "description": "Membership", @@ -19279,7 +18993,8 @@ }, "x-appwrite": { "method": "getMembership", - "weight": 225, + "group": "memberships", + "weight": 229, "cookies": false, "type": "", "deprecated": false, @@ -19295,9 +19010,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/memberships", - "offline-key": "{membershipId}", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -19353,7 +19065,8 @@ }, "x-appwrite": { "method": "updateMembership", - "weight": 226, + "group": "memberships", + "weight": 230, "cookies": false, "type": "", "deprecated": false, @@ -19369,9 +19082,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -19443,7 +19153,8 @@ }, "x-appwrite": { "method": "deleteMembership", - "weight": 228, + "group": "memberships", + "weight": 232, "cookies": false, "type": "", "deprecated": false, @@ -19459,9 +19170,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -19519,7 +19227,8 @@ }, "x-appwrite": { "method": "updateMembershipStatus", - "weight": 227, + "group": "memberships", + "weight": 231, "cookies": false, "type": "", "deprecated": false, @@ -19534,9 +19243,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -19598,9 +19304,7 @@ "get": { "summary": "Get team preferences", "operationId": "teamsGetPrefs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -19618,7 +19322,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 219, + "group": "teams", + "weight": 223, "cookies": false, "type": "", "deprecated": false, @@ -19633,9 +19338,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/prefs", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -19682,7 +19384,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 221, + "group": "teams", + "weight": 225, "cookies": false, "type": "", "deprecated": false, @@ -19697,9 +19400,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/prefs", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -19746,9 +19446,7 @@ "get": { "summary": "List users", "operationId": "usersList", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -19766,7 +19464,8 @@ }, "x-appwrite": { "method": "list", - "weight": 239, + "group": "users", + "weight": 243, "cookies": false, "type": "", "deprecated": false, @@ -19780,9 +19479,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -19841,7 +19537,8 @@ }, "x-appwrite": { "method": "create", - "weight": 230, + "group": "users", + "weight": 234, "cookies": false, "type": "", "deprecated": false, @@ -19855,9 +19552,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -19939,7 +19633,8 @@ }, "x-appwrite": { "method": "createArgon2User", - "weight": 233, + "group": "users", + "weight": 237, "cookies": false, "type": "", "deprecated": false, @@ -19953,9 +19648,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20033,7 +19725,8 @@ }, "x-appwrite": { "method": "createBcryptUser", - "weight": 231, + "group": "users", + "weight": 235, "cookies": false, "type": "", "deprecated": false, @@ -20047,9 +19740,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20105,11 +19795,9 @@ }, "\/users\/identities": { "get": { - "summary": "List Identities", + "summary": "List identities", "operationId": "usersListIdentities", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -20127,7 +19815,8 @@ }, "x-appwrite": { "method": "listIdentities", - "weight": 247, + "group": "identities", + "weight": 251, "cookies": false, "type": "", "deprecated": false, @@ -20141,9 +19830,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20199,7 +19885,8 @@ }, "x-appwrite": { "method": "deleteIdentity", - "weight": 270, + "group": "identities", + "weight": 274, "cookies": false, "type": "", "deprecated": false, @@ -20213,9 +19900,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20263,7 +19947,8 @@ }, "x-appwrite": { "method": "createMD5User", - "weight": 232, + "group": "users", + "weight": 236, "cookies": false, "type": "", "deprecated": false, @@ -20277,9 +19962,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20357,7 +20039,8 @@ }, "x-appwrite": { "method": "createPHPassUser", - "weight": 235, + "group": "users", + "weight": 239, "cookies": false, "type": "", "deprecated": false, @@ -20371,9 +20054,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20451,7 +20131,8 @@ }, "x-appwrite": { "method": "createScryptUser", - "weight": 236, + "group": "users", + "weight": 240, "cookies": false, "type": "", "deprecated": false, @@ -20465,9 +20146,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20580,7 +20258,8 @@ }, "x-appwrite": { "method": "createScryptModifiedUser", - "weight": 237, + "group": "users", + "weight": 241, "cookies": false, "type": "", "deprecated": false, @@ -20594,9 +20273,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20695,7 +20371,8 @@ }, "x-appwrite": { "method": "createSHAUser", - "weight": 234, + "group": "users", + "weight": 238, "cookies": false, "type": "", "deprecated": false, @@ -20709,9 +20386,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20790,9 +20464,7 @@ "get": { "summary": "Get user", "operationId": "usersGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -20810,7 +20482,8 @@ }, "x-appwrite": { "method": "get", - "weight": 240, + "group": "users", + "weight": 244, "cookies": false, "type": "", "deprecated": false, @@ -20824,9 +20497,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20867,7 +20537,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 268, + "group": "users", + "weight": 272, "cookies": false, "type": "", "deprecated": false, @@ -20881,9 +20552,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20931,7 +20599,8 @@ }, "x-appwrite": { "method": "updateEmail", - "weight": 253, + "group": "users", + "weight": 257, "cookies": false, "type": "", "deprecated": false, @@ -20945,9 +20614,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21013,7 +20679,8 @@ }, "x-appwrite": { "method": "createJWT", - "weight": 271, + "group": "sessions", + "weight": 275, "cookies": false, "type": "", "deprecated": false, @@ -21027,9 +20694,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21098,7 +20762,8 @@ }, "x-appwrite": { "method": "updateLabels", - "weight": 249, + "group": "users", + "weight": 253, "cookies": false, "type": "", "deprecated": false, @@ -21112,9 +20777,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21163,9 +20825,7 @@ "get": { "summary": "List user logs", "operationId": "usersListLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -21183,7 +20843,8 @@ }, "x-appwrite": { "method": "listLogs", - "weight": 245, + "group": "logs", + "weight": 249, "cookies": false, "type": "", "deprecated": false, @@ -21197,9 +20858,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21239,9 +20897,7 @@ "get": { "summary": "List user memberships", "operationId": "usersListMemberships", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -21259,7 +20915,8 @@ }, "x-appwrite": { "method": "listMemberships", - "weight": 244, + "group": "memberships", + "weight": 248, "cookies": false, "type": "", "deprecated": false, @@ -21273,9 +20930,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21323,7 +20977,8 @@ }, "x-appwrite": { "method": "updateMfa", - "weight": 258, + "group": "users", + "weight": 262, "cookies": false, "type": "", "deprecated": false, @@ -21337,9 +20992,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21383,29 +21035,25 @@ }, "\/users\/{userId}\/mfa\/authenticators\/{type}": { "delete": { - "summary": "Delete Authenticator", + "summary": "Delete authenticator", "operationId": "usersDeleteMfaAuthenticator", "consumes": [ "application\/json" ], - "produces": [ - "application\/json" - ], + "produces": [], "tags": [ "users" ], "description": "Delete an authenticator app.", "responses": { - "200": { - "description": "User", - "schema": { - "$ref": "#\/definitions\/user" - } + "204": { + "description": "No content" } }, "x-appwrite": { "method": "deleteMfaAuthenticator", - "weight": 263, + "group": "mfa", + "weight": 267, "cookies": false, "type": "", "deprecated": false, @@ -21419,9 +21067,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21460,11 +21105,9 @@ }, "\/users\/{userId}\/mfa\/factors": { "get": { - "summary": "List Factors", + "summary": "List factors", "operationId": "usersListMfaFactors", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -21482,7 +21125,8 @@ }, "x-appwrite": { "method": "listMfaFactors", - "weight": 259, + "group": "mfa", + "weight": 263, "cookies": false, "type": "", "deprecated": false, @@ -21496,9 +21140,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21524,11 +21165,9 @@ }, "\/users\/{userId}\/mfa\/recovery-codes": { "get": { - "summary": "Get MFA Recovery Codes", + "summary": "Get MFA recovery codes", "operationId": "usersGetMfaRecoveryCodes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -21546,7 +21185,8 @@ }, "x-appwrite": { "method": "getMfaRecoveryCodes", - "weight": 260, + "group": "mfa", + "weight": 264, "cookies": false, "type": "", "deprecated": false, @@ -21560,9 +21200,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21586,7 +21223,7 @@ ] }, "put": { - "summary": "Regenerate MFA Recovery Codes", + "summary": "Update MFA recovery codes (regenerate)", "operationId": "usersUpdateMfaRecoveryCodes", "consumes": [ "application\/json" @@ -21608,7 +21245,8 @@ }, "x-appwrite": { "method": "updateMfaRecoveryCodes", - "weight": 262, + "group": "mfa", + "weight": 266, "cookies": false, "type": "", "deprecated": false, @@ -21622,9 +21260,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21648,7 +21283,7 @@ ] }, "patch": { - "summary": "Create MFA Recovery Codes", + "summary": "Create MFA recovery codes", "operationId": "usersCreateMfaRecoveryCodes", "consumes": [ "application\/json" @@ -21670,7 +21305,8 @@ }, "x-appwrite": { "method": "createMfaRecoveryCodes", - "weight": 261, + "group": "mfa", + "weight": 265, "cookies": false, "type": "", "deprecated": false, @@ -21684,9 +21320,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21734,7 +21367,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 251, + "group": "users", + "weight": 255, "cookies": false, "type": "", "deprecated": false, @@ -21748,9 +21382,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21816,7 +21447,8 @@ }, "x-appwrite": { "method": "updatePassword", - "weight": 252, + "group": "users", + "weight": 256, "cookies": false, "type": "", "deprecated": false, @@ -21830,9 +21462,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21898,7 +21527,8 @@ }, "x-appwrite": { "method": "updatePhone", - "weight": 254, + "group": "users", + "weight": 258, "cookies": false, "type": "", "deprecated": false, @@ -21912,9 +21542,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21960,9 +21587,7 @@ "get": { "summary": "Get user preferences", "operationId": "usersGetPrefs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -21980,7 +21605,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 241, + "group": "users", + "weight": 245, "cookies": false, "type": "", "deprecated": false, @@ -21994,9 +21620,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22042,7 +21665,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 256, + "group": "users", + "weight": 260, "cookies": false, "type": "", "deprecated": false, @@ -22056,9 +21680,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22104,9 +21725,7 @@ "get": { "summary": "List user sessions", "operationId": "usersListSessions", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -22124,7 +21743,8 @@ }, "x-appwrite": { "method": "listSessions", - "weight": 243, + "group": "sessions", + "weight": 247, "cookies": false, "type": "", "deprecated": false, @@ -22138,9 +21758,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22186,7 +21803,8 @@ }, "x-appwrite": { "method": "createSession", - "weight": 264, + "group": "sessions", + "weight": 268, "cookies": false, "type": "", "deprecated": false, @@ -22200,9 +21818,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22243,7 +21858,8 @@ }, "x-appwrite": { "method": "deleteSessions", - "weight": 267, + "group": "sessions", + "weight": 271, "cookies": false, "type": "", "deprecated": false, @@ -22257,9 +21873,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22302,7 +21915,8 @@ }, "x-appwrite": { "method": "deleteSession", - "weight": 266, + "group": "sessions", + "weight": 270, "cookies": false, "type": "", "deprecated": false, @@ -22316,9 +21930,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22374,7 +21985,8 @@ }, "x-appwrite": { "method": "updateStatus", - "weight": 248, + "group": "users", + "weight": 252, "cookies": false, "type": "", "deprecated": false, @@ -22388,9 +22000,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22434,11 +22043,9 @@ }, "\/users\/{userId}\/targets": { "get": { - "summary": "List User Targets", + "summary": "List user targets", "operationId": "usersListTargets", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -22456,7 +22063,8 @@ }, "x-appwrite": { "method": "listTargets", - "weight": 246, + "group": "targets", + "weight": 250, "cookies": false, "type": "", "deprecated": false, @@ -22471,9 +22079,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22509,7 +22114,7 @@ ] }, "post": { - "summary": "Create User Target", + "summary": "Create user target", "operationId": "usersCreateTarget", "consumes": [ "application\/json" @@ -22531,7 +22136,8 @@ }, "x-appwrite": { "method": "createTarget", - "weight": 238, + "group": "targets", + "weight": 242, "cookies": false, "type": "", "deprecated": false, @@ -22546,9 +22152,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22625,11 +22228,9 @@ }, "\/users\/{userId}\/targets\/{targetId}": { "get": { - "summary": "Get User Target", + "summary": "Get user target", "operationId": "usersGetTarget", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -22647,7 +22248,8 @@ }, "x-appwrite": { "method": "getTarget", - "weight": 242, + "group": "targets", + "weight": 246, "cookies": false, "type": "", "deprecated": false, @@ -22662,9 +22264,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22696,7 +22295,7 @@ ] }, "patch": { - "summary": "Update User target", + "summary": "Update user target", "operationId": "usersUpdateTarget", "consumes": [ "application\/json" @@ -22718,7 +22317,8 @@ }, "x-appwrite": { "method": "updateTarget", - "weight": 257, + "group": "targets", + "weight": 261, "cookies": false, "type": "", "deprecated": false, @@ -22733,9 +22333,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22799,9 +22396,7 @@ "consumes": [ "application\/json" ], - "produces": [ - "application\/json" - ], + "produces": [], "tags": [ "users" ], @@ -22813,7 +22408,8 @@ }, "x-appwrite": { "method": "deleteTarget", - "weight": 269, + "group": "targets", + "weight": 273, "cookies": false, "type": "", "deprecated": false, @@ -22828,9 +22424,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22886,7 +22479,8 @@ }, "x-appwrite": { "method": "createToken", - "weight": 265, + "group": "sessions", + "weight": 269, "cookies": false, "type": "", "deprecated": false, @@ -22900,9 +22494,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22971,7 +22562,8 @@ }, "x-appwrite": { "method": "updateEmailVerification", - "weight": 255, + "group": "users", + "weight": 259, "cookies": false, "type": "", "deprecated": false, @@ -22985,9 +22577,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -23053,7 +22642,8 @@ }, "x-appwrite": { "method": "updatePhoneVerification", - "weight": 250, + "group": "users", + "weight": 254, "cookies": false, "type": "", "deprecated": false, @@ -23067,9 +22657,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -23115,85 +22702,67 @@ "tags": [ { "name": "account", - "description": "The Account service allows you to authenticate and manage a user account.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Avatars service aims to help you complete everyday tasks related to your app image, icons, and avatars." }, { "name": "databases", - "description": "The Databases service allows you to create structured collections of documents, query and filter lists of documents", - "x-globalAttributes": [ - "databaseId" - ] + "description": "The Databases 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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Project service allows you to manage all the projects in your Appwrite server." }, { "name": "project", - "description": "The Project service allows you to manage all the projects in your Appwrite server.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Functions Service allows you view, create and manage your Cloud Functions." }, { "name": "proxy", - "description": "The Proxy Service allows you to configure actions for your domains beyond DNS configuration.", - "x-globalAttributes": [] + "description": "The Proxy Service allows you to configure actions for your domains beyond DNS configuration." }, { "name": "graphql", - "description": "The GraphQL API allows you to query and mutate your Appwrite server using GraphQL.", - "x-globalAttributes": [] + "description": "The GraphQL API allows you to query and mutate your Appwrite server using GraphQL." }, { "name": "console", - "description": "The Console service allows you to interact with console relevant informations.", - "x-globalAttributes": [] + "description": "The Console service allows you to interact with console relevant informations." }, { "name": "migrations", - "description": "The Migrations service allows you to migrate third-party data to your Appwrite project.", - "x-globalAttributes": [] + "description": "The Migrations service allows you to migrate third-party data to your Appwrite project." }, { "name": "messaging", - "description": "The Messaging service allows you to send messages to any provider type (SMTP, push notification, SMS, etc.).", - "x-globalAttributes": [] + "description": "The Messaging service allows you to send messages to any provider type (SMTP, push notification, SMS, etc.)." } ], "definitions": { @@ -24166,6 +23735,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "size": { "type": "integer", "description": "Attribute size.", @@ -24185,6 +23764,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "size" ] }, @@ -24223,6 +23804,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "min": { "type": "integer", "description": "Minimum value to enforce for new documents.", @@ -24250,7 +23841,9 @@ "type", "status", "error", - "required" + "required", + "$createdAt", + "$updatedAt" ] }, "attributeFloat": { @@ -24288,6 +23881,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "min": { "type": "number", "description": "Minimum value to enforce for new documents.", @@ -24315,7 +23918,9 @@ "type", "status", "error", - "required" + "required", + "$createdAt", + "$updatedAt" ] }, "attributeBoolean": { @@ -24353,6 +23958,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "default": { "type": "boolean", "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", @@ -24365,7 +23980,9 @@ "type", "status", "error", - "required" + "required", + "$createdAt", + "$updatedAt" ] }, "attributeEmail": { @@ -24403,6 +24020,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "String format.", @@ -24421,6 +24048,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -24459,6 +24088,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "elements": { "type": "array", "description": "Array of elements in enumerated type.", @@ -24485,6 +24124,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "elements", "format" ] @@ -24524,6 +24165,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "String format.", @@ -24542,6 +24193,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -24580,6 +24233,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "String format.", @@ -24598,6 +24261,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -24636,6 +24301,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "ISO 8601 format.", @@ -24654,6 +24329,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -24692,6 +24369,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "relatedCollection": { "type": "string", "description": "The ID of the related collection.", @@ -24729,6 +24416,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "relatedCollection", "relationType", "twoWay", @@ -24777,6 +24466,16 @@ }, "x-example": [], "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Index creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Index update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" } }, "required": [ @@ -24784,7 +24483,9 @@ "type", "status", "error", - "attributes" + "attributes", + "$createdAt", + "$updatedAt" ] }, "document": { @@ -25939,12 +25640,12 @@ }, "userName": { "type": "string", - "description": "User name.", + "description": "User name. Hide this attribute by toggling membership privacy in the Console.", "x-example": "John Doe" }, "userEmail": { "type": "string", - "description": "User email address.", + "description": "User email address. Hide this attribute by toggling membership privacy in the Console.", "x-example": "john@appwrite.io" }, "teamId": { @@ -25974,7 +25675,7 @@ }, "mfa": { "type": "boolean", - "description": "Multi factor authentication status, true if the user has MFA enabled or false otherwise.", + "description": "Multi factor authentication status, true if the user has MFA enabled or false otherwise. Hide this attribute by toggling membership privacy in the Console.", "x-example": false }, "roles": { @@ -26088,7 +25789,7 @@ }, "schedule": { "type": "string", - "description": "Function execution schedult in CRON format.", + "description": "Function execution schedule in CRON format.", "x-example": "5 4 * * *" }, "timeout": { @@ -26140,7 +25841,7 @@ "specification": { "type": "string", "description": "Machine specification for builds and executions.", - "x-example": "s-0.5vcpu-512mb" + "x-example": "s-1vcpu-512mb" } }, "required": [ @@ -26460,7 +26161,7 @@ "responseBody": { "type": "string", "description": "HTTP response body. This will return empty unless execution is created as synchronous.", - "x-example": "Developers are awesome." + "x-example": "" }, "responseHeaders": { "type": "array", @@ -26954,7 +26655,7 @@ "slug": { "type": "string", "description": "Size slug.", - "x-example": "s-0.5vcpu-512mb" + "x-example": "s-1vcpu-512mb" } }, "required": [ @@ -27405,7 +27106,7 @@ "name": { "type": "string", "description": "Target Name.", - "x-example": "Aegon apple token" + "x-example": "Apple iPhone 12" }, "userId": { "type": "string", @@ -27427,6 +27128,11 @@ "type": "string", "description": "The target identifier.", "x-example": "token" + }, + "expired": { + "type": "boolean", + "description": "Is the target expired.", + "x-example": false } }, "required": [ @@ -27436,7 +27142,8 @@ "name", "userId", "providerType", - "identifier" + "identifier", + "expired" ] } }, diff --git a/app/config/specs/swagger2-latest-client.json b/app/config/specs/swagger2-latest-client.json index ce9ea857bb7..6033eb40eaf 100644 --- a/app/config/specs/swagger2-latest-client.json +++ b/app/config/specs/swagger2-latest-client.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "1.6.0", + "version": "1.6.2", "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", @@ -16,6 +16,7 @@ } }, "host": "cloud.appwrite.io", + "x-host-docs": "<REGION>.cloud.appwrite.io", "basePath": "\/v1", "schemes": [ "https" @@ -67,9 +68,7 @@ "get": { "summary": "Get account", "operationId": "accountGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -87,7 +86,8 @@ }, "x-appwrite": { "method": "get", - "weight": 8, + "group": "account", + "weight": 9, "cookies": false, "type": "", "deprecated": false, @@ -102,9 +102,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -140,7 +137,8 @@ }, "x-appwrite": { "method": "create", - "weight": 7, + "group": "account", + "weight": 8, "cookies": false, "type": "", "deprecated": false, @@ -155,9 +153,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -233,7 +228,8 @@ }, "x-appwrite": { "method": "updateEmail", - "weight": 33, + "group": "account", + "weight": 34, "cookies": false, "type": "", "deprecated": false, @@ -248,9 +244,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -293,11 +286,9 @@ }, "\/account\/identities": { "get": { - "summary": "List Identities", + "summary": "List identities", "operationId": "accountListIdentities", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -315,7 +306,8 @@ }, "x-appwrite": { "method": "listIdentities", - "weight": 56, + "group": "identities", + "weight": 57, "cookies": false, "type": "", "deprecated": false, @@ -330,9 +322,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/identities", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -379,7 +368,8 @@ }, "x-appwrite": { "method": "deleteIdentity", - "weight": 57, + "group": "identities", + "weight": 58, "cookies": false, "type": "", "deprecated": false, @@ -394,9 +384,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -444,7 +431,8 @@ }, "x-appwrite": { "method": "createJWT", - "weight": 28, + "group": "tokens", + "weight": 29, "cookies": false, "type": "", "deprecated": false, @@ -459,9 +447,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -477,9 +462,7 @@ "get": { "summary": "List logs", "operationId": "accountListLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -497,7 +480,8 @@ }, "x-appwrite": { "method": "listLogs", - "weight": 30, + "group": "logs", + "weight": 31, "cookies": false, "type": "", "deprecated": false, @@ -512,9 +496,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -566,7 +547,8 @@ }, "x-appwrite": { "method": "updateMFA", - "weight": 43, + "group": "mfa", + "weight": 44, "cookies": false, "type": "", "deprecated": false, @@ -581,9 +563,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -619,7 +598,7 @@ }, "\/account\/mfa\/authenticators\/{type}": { "post": { - "summary": "Create Authenticator", + "summary": "Create authenticator", "operationId": "accountCreateMfaAuthenticator", "consumes": [ "application\/json" @@ -641,7 +620,8 @@ }, "x-appwrite": { "method": "createMfaAuthenticator", - "weight": 45, + "group": "mfa", + "weight": 46, "cookies": false, "type": "", "deprecated": false, @@ -656,9 +636,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -687,7 +664,7 @@ ] }, "put": { - "summary": "Verify Authenticator", + "summary": "Update authenticator (confirmation)", "operationId": "accountUpdateMfaAuthenticator", "consumes": [ "application\/json" @@ -709,7 +686,8 @@ }, "x-appwrite": { "method": "updateMfaAuthenticator", - "weight": 46, + "group": "mfa", + "weight": 47, "cookies": false, "type": "", "deprecated": false, @@ -724,9 +702,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -773,7 +748,7 @@ ] }, "delete": { - "summary": "Delete Authenticator", + "summary": "Delete authenticator", "operationId": "accountDeleteMfaAuthenticator", "consumes": [ "application\/json" @@ -790,7 +765,8 @@ }, "x-appwrite": { "method": "deleteMfaAuthenticator", - "weight": 50, + "group": "mfa", + "weight": 51, "cookies": false, "type": "", "deprecated": false, @@ -805,9 +781,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -838,7 +811,7 @@ }, "\/account\/mfa\/challenge": { "post": { - "summary": "Create MFA Challenge", + "summary": "Create MFA challenge", "operationId": "accountCreateMfaChallenge", "consumes": [ "application\/json" @@ -860,7 +833,8 @@ }, "x-appwrite": { "method": "createMfaChallenge", - "weight": 51, + "group": "mfa", + "weight": 52, "cookies": false, "type": "", "deprecated": false, @@ -875,9 +849,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -917,24 +888,30 @@ ] }, "put": { - "summary": "Create MFA Challenge (confirmation)", + "summary": "Update MFA challenge (confirmation)", "operationId": "accountUpdateMfaChallenge", "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "account" ], "description": "Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", "responses": { - "204": { - "description": "No content" + "200": { + "description": "Session", + "schema": { + "$ref": "#\/definitions\/session" + } } }, "x-appwrite": { "method": "updateMfaChallenge", - "weight": 52, + "group": "mfa", + "weight": 53, "cookies": false, "type": "", "deprecated": false, @@ -949,9 +926,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -994,11 +968,9 @@ }, "\/account\/mfa\/factors": { "get": { - "summary": "List Factors", + "summary": "List factors", "operationId": "accountListMfaFactors", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -1016,7 +988,8 @@ }, "x-appwrite": { "method": "listMfaFactors", - "weight": 44, + "group": "mfa", + "weight": 45, "cookies": false, "type": "", "deprecated": false, @@ -1031,9 +1004,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1049,11 +1019,9 @@ }, "\/account\/mfa\/recovery-codes": { "get": { - "summary": "Get MFA Recovery Codes", + "summary": "List MFA recovery codes", "operationId": "accountGetMfaRecoveryCodes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -1071,7 +1039,8 @@ }, "x-appwrite": { "method": "getMfaRecoveryCodes", - "weight": 49, + "group": "mfa", + "weight": 50, "cookies": false, "type": "", "deprecated": false, @@ -1086,9 +1055,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1102,7 +1068,7 @@ ] }, "post": { - "summary": "Create MFA Recovery Codes", + "summary": "Create MFA recovery codes", "operationId": "accountCreateMfaRecoveryCodes", "consumes": [ "application\/json" @@ -1124,7 +1090,8 @@ }, "x-appwrite": { "method": "createMfaRecoveryCodes", - "weight": 47, + "group": "mfa", + "weight": 48, "cookies": false, "type": "", "deprecated": false, @@ -1139,9 +1106,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1155,7 +1119,7 @@ ] }, "patch": { - "summary": "Regenerate MFA Recovery Codes", + "summary": "Update MFA recovery codes (regenerate)", "operationId": "accountUpdateMfaRecoveryCodes", "consumes": [ "application\/json" @@ -1177,7 +1141,8 @@ }, "x-appwrite": { "method": "updateMfaRecoveryCodes", - "weight": 48, + "group": "mfa", + "weight": 49, "cookies": false, "type": "", "deprecated": false, @@ -1192,9 +1157,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1232,7 +1194,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 31, + "group": "account", + "weight": 32, "cookies": false, "type": "", "deprecated": false, @@ -1247,9 +1210,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1307,7 +1267,8 @@ }, "x-appwrite": { "method": "updatePassword", - "weight": 32, + "group": "account", + "weight": 33, "cookies": false, "type": "", "deprecated": false, @@ -1322,9 +1283,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1388,7 +1346,8 @@ }, "x-appwrite": { "method": "updatePhone", - "weight": 34, + "group": "account", + "weight": 35, "cookies": false, "type": "", "deprecated": false, @@ -1403,9 +1362,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1450,9 +1406,7 @@ "get": { "summary": "Get account preferences", "operationId": "accountGetPrefs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -1470,7 +1424,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 29, + "group": "account", + "weight": 30, "cookies": false, "type": "", "deprecated": false, @@ -1485,9 +1440,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/prefs", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1523,7 +1475,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 35, + "group": "account", + "weight": 36, "cookies": false, "type": "", "deprecated": false, @@ -1538,9 +1491,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/prefs", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1598,7 +1548,8 @@ }, "x-appwrite": { "method": "createRecovery", - "weight": 37, + "group": "recovery", + "weight": 38, "cookies": false, "type": "", "deprecated": false, @@ -1616,9 +1567,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1659,7 +1607,7 @@ ] }, "put": { - "summary": "Create password recovery (confirmation)", + "summary": "Update password recovery (confirmation)", "operationId": "accountUpdateRecovery", "consumes": [ "application\/json" @@ -1681,7 +1629,8 @@ }, "x-appwrite": { "method": "updateRecovery", - "weight": 38, + "group": "recovery", + "weight": 39, "cookies": false, "type": "", "deprecated": false, @@ -1696,9 +1645,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1750,9 +1696,7 @@ "get": { "summary": "List sessions", "operationId": "accountListSessions", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -1770,7 +1714,8 @@ }, "x-appwrite": { "method": "listSessions", - "weight": 10, + "group": "sessions", + "weight": 11, "cookies": false, "type": "", "deprecated": false, @@ -1785,9 +1730,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/sessions", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1818,7 +1760,8 @@ }, "x-appwrite": { "method": "deleteSessions", - "weight": 11, + "group": "sessions", + "weight": 12, "cookies": false, "type": "", "deprecated": false, @@ -1833,9 +1776,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1873,7 +1813,8 @@ }, "x-appwrite": { "method": "createAnonymousSession", - "weight": 16, + "group": "sessions", + "weight": 17, "cookies": false, "type": "", "deprecated": false, @@ -1888,9 +1829,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1926,7 +1864,8 @@ }, "x-appwrite": { "method": "createEmailPasswordSession", - "weight": 15, + "group": "sessions", + "weight": 16, "cookies": false, "type": "", "deprecated": false, @@ -1941,9 +1880,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2006,7 +1942,8 @@ }, "x-appwrite": { "method": "updateMagicURLSession", - "weight": 25, + "group": "sessions", + "weight": 26, "cookies": false, "type": "", "deprecated": true, @@ -2021,9 +1958,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2066,9 +2000,7 @@ "get": { "summary": "Create OAuth2 session", "operationId": "accountCreateOAuth2Session", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "text\/html" ], @@ -2083,7 +2015,8 @@ }, "x-appwrite": { "method": "createOAuth2Session", - "weight": 18, + "group": "sessions", + "weight": 19, "cookies": false, "type": "webAuth", "deprecated": false, @@ -2098,9 +2031,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2113,7 +2043,7 @@ "parameters": [ { "name": "provider", - "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", + "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", "required": true, "type": "string", "x-example": "amazon", @@ -2132,6 +2062,7 @@ "dropbox", "etsy", "facebook", + "figma", "github", "gitlab", "google", @@ -2221,7 +2152,8 @@ }, "x-appwrite": { "method": "updatePhoneSession", - "weight": 26, + "group": "sessions", + "weight": 27, "cookies": false, "type": "", "deprecated": true, @@ -2236,9 +2168,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2301,7 +2230,8 @@ }, "x-appwrite": { "method": "createSession", - "weight": 17, + "group": "sessions", + "weight": 18, "cookies": false, "type": "", "deprecated": false, @@ -2316,9 +2246,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2361,9 +2288,7 @@ "get": { "summary": "Get session", "operationId": "accountGetSession", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -2381,7 +2306,8 @@ }, "x-appwrite": { "method": "getSession", - "weight": 12, + "group": "sessions", + "weight": 13, "cookies": false, "type": "", "deprecated": false, @@ -2396,9 +2322,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/sessions", - "offline-key": "{sessionId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2444,7 +2367,8 @@ }, "x-appwrite": { "method": "updateSession", - "weight": 14, + "group": "sessions", + "weight": 15, "cookies": false, "type": "", "deprecated": false, @@ -2459,9 +2383,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2502,7 +2423,8 @@ }, "x-appwrite": { "method": "deleteSession", - "weight": 13, + "group": "sessions", + "weight": 14, "cookies": false, "type": "", "deprecated": false, @@ -2517,9 +2439,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2567,7 +2486,8 @@ }, "x-appwrite": { "method": "updateStatus", - "weight": 36, + "group": "account", + "weight": 37, "cookies": false, "type": "", "deprecated": false, @@ -2582,9 +2502,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2611,7 +2528,7 @@ "tags": [ "account" ], - "description": "", + "description": "Use this endpoint to register a device for push notifications. Provide a target ID (custom or generated using ID.unique()), a device identifier (usually a device token), and optionally specify which provider should send notifications to this target. The target is automatically linked to the current session and includes device information like brand and model.", "responses": { "201": { "description": "Target", @@ -2622,12 +2539,13 @@ }, "x-appwrite": { "method": "createPushTarget", - "weight": 53, + "group": "pushTargets", + "weight": 54, "cookies": false, "type": "", "deprecated": false, "demo": "account\/create-push-target.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-push-target.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -2636,9 +2554,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2697,7 +2612,7 @@ "tags": [ "account" ], - "description": "", + "description": "Update the currently logged in user's push notification target. You can modify the target's identifier (device token) and provider ID (token, email, phone etc.). The target must exist and belong to the current user. If you change the provider ID, notifications will be sent through the new messaging provider instead.", "responses": { "200": { "description": "Target", @@ -2708,12 +2623,13 @@ }, "x-appwrite": { "method": "updatePushTarget", - "weight": 54, + "group": "pushTargets", + "weight": 55, "cookies": false, "type": "", "deprecated": false, "demo": "account\/update-push-target.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-push-target.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -2722,9 +2638,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2770,13 +2683,11 @@ "consumes": [ "application\/json" ], - "produces": [ - "application\/json" - ], + "produces": [], "tags": [ "account" ], - "description": "", + "description": "Delete a push notification target for the currently logged in user. After deletion, the device will no longer receive push notifications. The target must exist and belong to the current user.", "responses": { "204": { "description": "No content" @@ -2784,12 +2695,13 @@ }, "x-appwrite": { "method": "deletePushTarget", - "weight": 55, + "group": "pushTargets", + "weight": 56, "cookies": false, "type": "", "deprecated": false, "demo": "account\/delete-push-target.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/delete-push-target.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -2798,9 +2710,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2847,7 +2756,8 @@ }, "x-appwrite": { "method": "createEmailToken", - "weight": 24, + "group": "tokens", + "weight": 25, "cookies": false, "type": "", "deprecated": false, @@ -2855,16 +2765,16 @@ "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-email.md", "rate-limit": 10, "rate-time": 3600, - "rate-key": "url:{url},email:{param-email}", + "rate-key": [ + "url:{url},email:{param-email}", + "url:{url},ip:{ip}" + ], "scope": "sessions.write", "platforms": [ "server", "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2922,7 +2832,7 @@ "tags": [ "account" ], - "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. 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 [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) 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.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", + "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. 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 [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) endpoint to complete the login process. The link sent to the user's email address is valid for 1 hour.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", "responses": { "201": { "description": "Token", @@ -2933,7 +2843,8 @@ }, "x-appwrite": { "method": "createMagicURLToken", - "weight": 23, + "group": "tokens", + "weight": 24, "cookies": false, "type": "", "deprecated": false, @@ -2951,9 +2862,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3008,9 +2916,7 @@ "get": { "summary": "Create OAuth2 token", "operationId": "accountCreateOAuth2Token", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "text\/html" ], @@ -3025,7 +2931,8 @@ }, "x-appwrite": { "method": "createOAuth2Token", - "weight": 22, + "group": "tokens", + "weight": 23, "cookies": false, "type": "webAuth", "deprecated": false, @@ -3040,9 +2947,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3055,7 +2959,7 @@ "parameters": [ { "name": "provider", - "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", + "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", "required": true, "type": "string", "x-example": "amazon", @@ -3074,6 +2978,7 @@ "dropbox", "etsy", "facebook", + "figma", "github", "gitlab", "google", @@ -3163,7 +3068,8 @@ }, "x-appwrite": { "method": "createPhoneToken", - "weight": 27, + "group": "tokens", + "weight": 28, "cookies": false, "type": "", "deprecated": false, @@ -3181,9 +3087,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3246,7 +3149,8 @@ }, "x-appwrite": { "method": "createVerification", - "weight": 39, + "group": "verification", + "weight": 40, "cookies": false, "type": "", "deprecated": false, @@ -3261,9 +3165,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3297,7 +3198,7 @@ ] }, "put": { - "summary": "Create email verification (confirmation)", + "summary": "Update email verification (confirmation)", "operationId": "accountUpdateVerification", "consumes": [ "application\/json" @@ -3319,7 +3220,8 @@ }, "x-appwrite": { "method": "updateVerification", - "weight": 40, + "group": "verification", + "weight": 41, "cookies": false, "type": "", "deprecated": false, @@ -3334,9 +3236,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3401,7 +3300,8 @@ }, "x-appwrite": { "method": "createPhoneVerification", - "weight": 41, + "group": "verification", + "weight": 42, "cookies": false, "type": "", "deprecated": false, @@ -3419,9 +3319,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3457,7 +3354,8 @@ }, "x-appwrite": { "method": "updatePhoneVerification", - "weight": 42, + "group": "verification", + "weight": 43, "cookies": false, "type": "", "deprecated": false, @@ -3472,9 +3370,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3519,9 +3414,7 @@ "get": { "summary": "Get browser icon", "operationId": "avatarsGetBrowser", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/png" ], @@ -3539,7 +3432,8 @@ }, "x-appwrite": { "method": "getBrowser", - "weight": 59, + "group": null, + "weight": 60, "cookies": false, "type": "location", "deprecated": false, @@ -3555,9 +3449,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3648,9 +3539,7 @@ "get": { "summary": "Get credit card icon", "operationId": "avatarsGetCreditCard", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/png" ], @@ -3668,7 +3557,8 @@ }, "x-appwrite": { "method": "getCreditCard", - "weight": 58, + "group": null, + "weight": 59, "cookies": false, "type": "location", "deprecated": false, @@ -3684,9 +3574,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3701,7 +3588,7 @@ "parameters": [ { "name": "code", - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro.", + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", "required": true, "type": "string", "x-example": "amex", @@ -3721,7 +3608,8 @@ "union-china-pay", "visa", "mir", - "maestro" + "maestro", + "rupay" ], "x-enum-name": "CreditCard", "x-enum-keys": [ @@ -3740,7 +3628,8 @@ "Union China Pay", "Visa", "MIR", - "Maestro" + "Maestro", + "Rupay" ], "in": "path" }, @@ -3781,9 +3670,7 @@ "get": { "summary": "Get favicon", "operationId": "avatarsGetFavicon", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/*" ], @@ -3801,7 +3688,8 @@ }, "x-appwrite": { "method": "getFavicon", - "weight": 62, + "group": null, + "weight": 63, "cookies": false, "type": "location", "deprecated": false, @@ -3817,9 +3705,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3848,9 +3733,7 @@ "get": { "summary": "Get country flag", "operationId": "avatarsGetFlag", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/png" ], @@ -3868,7 +3751,8 @@ }, "x-appwrite": { "method": "getFlag", - "weight": 60, + "group": null, + "weight": 61, "cookies": false, "type": "location", "deprecated": false, @@ -3884,9 +3768,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4339,9 +4220,7 @@ "get": { "summary": "Get image from URL", "operationId": "avatarsGetImage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/*" ], @@ -4359,7 +4238,8 @@ }, "x-appwrite": { "method": "getImage", - "weight": 61, + "group": null, + "weight": 62, "cookies": false, "type": "location", "deprecated": false, @@ -4375,9 +4255,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4426,9 +4303,7 @@ "get": { "summary": "Get user initials", "operationId": "avatarsGetInitials", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/png" ], @@ -4446,7 +4321,8 @@ }, "x-appwrite": { "method": "getInitials", - "weight": 64, + "group": null, + "weight": 65, "cookies": false, "type": "location", "deprecated": false, @@ -4462,9 +4338,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4521,9 +4394,7 @@ "get": { "summary": "Get QR code", "operationId": "avatarsGetQR", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/png" ], @@ -4541,7 +4412,8 @@ }, "x-appwrite": { "method": "getQR", - "weight": 63, + "group": null, + "weight": 64, "cookies": false, "type": "location", "deprecated": false, @@ -4557,9 +4429,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4616,9 +4485,7 @@ "get": { "summary": "List documents", "operationId": "databasesListDocuments", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -4636,7 +4503,8 @@ }, "x-appwrite": { "method": "listDocuments", - "weight": 108, + "group": "documents", + "weight": 109, "cookies": false, "type": "", "deprecated": false, @@ -4652,9 +4520,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4720,7 +4585,8 @@ }, "x-appwrite": { "method": "createDocument", - "weight": 107, + "group": "documents", + "weight": 108, "cookies": false, "type": "", "deprecated": false, @@ -4736,9 +4602,31 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", + "methods": [ + { + "name": "createDocument", + "parameters": [ + "databaseId", + "collectionId", + "documentId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "collectionId", + "documentId", + "data" + ], + "responses": [ + { + "code": 201, + "model": "#\/definitions\/document" + } + ], + "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + } + ], "auth": { "Project": [] } @@ -4776,13 +4664,13 @@ "documentId": { "type": "string", "description": "Document ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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, + "default": "", "x-example": "<DOCUMENT_ID>" }, "data": { "type": "object", "description": "Document data as JSON object.", - "default": {}, + "default": [], "x-example": "{}" }, "permissions": { @@ -4793,12 +4681,17 @@ "items": { "type": "string" } + }, + "documents": { + "type": "array", + "description": "Array of documents data as JSON objects.", + "default": [], + "x-example": null, + "items": { + "type": "object" + } } - }, - "required": [ - "documentId", - "data" - ] + } } } ] @@ -4808,9 +4701,7 @@ "get": { "summary": "Get document", "operationId": "databasesGetDocument", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -4828,7 +4719,8 @@ }, "x-appwrite": { "method": "getDocument", - "weight": 109, + "group": "documents", + "weight": 110, "cookies": false, "type": "", "deprecated": false, @@ -4844,9 +4736,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4920,7 +4809,8 @@ }, "x-appwrite": { "method": "updateDocument", - "weight": 111, + "group": "documents", + "weight": 112, "cookies": false, "type": "", "deprecated": false, @@ -4936,9 +4826,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5019,7 +4906,8 @@ }, "x-appwrite": { "method": "deleteDocument", - "weight": 112, + "group": "documents", + "weight": 115, "cookies": false, "type": "", "deprecated": false, @@ -5035,9 +4923,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5081,9 +4966,7 @@ "get": { "summary": "List executions", "operationId": "functionsListExecutions", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -5101,7 +4984,8 @@ }, "x-appwrite": { "method": "listExecutions", - "weight": 304, + "group": "executions", + "weight": 308, "cookies": false, "type": "", "deprecated": false, @@ -5117,9 +5001,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5167,7 +5048,7 @@ "summary": "Create execution", "operationId": "functionsCreateExecution", "consumes": [ - "multipart\/form-data" + "application\/json" ], "produces": [ "multipart\/form-data" @@ -5186,7 +5067,8 @@ }, "x-appwrite": { "method": "createExecution", - "weight": 303, + "group": "executions", + "weight": 307, "cookies": false, "type": "", "deprecated": false, @@ -5202,9 +5084,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5226,65 +5105,59 @@ "in": "path" }, { - "name": "body", - "description": "HTTP body of execution. Default value is empty string.", - "required": false, - "type": "payload", - "default": "", - "in": "formData" - }, - { - "name": "async", - "description": "Execute code in the background. Default value is false.", - "required": false, - "type": "boolean", - "x-example": false, - "default": false, - "in": "formData" - }, - { - "name": "path", - "description": "HTTP path of execution. Path can include query params. Default value is \/", - "required": false, - "type": "string", - "x-example": "<PATH>", - "default": "\/", - "in": "formData" - }, - { - "name": "method", - "description": "HTTP method of execution. Default value is GET.", - "required": false, - "type": "string", - "x-example": "GET", - "enum": [ - "GET", - "POST", - "PUT", - "PATCH", - "DELETE", - "OPTIONS" - ], - "x-enum-name": "ExecutionMethod", - "x-enum-keys": [], - "default": "POST", - "in": "formData" - }, - { - "name": "headers", - "description": "HTTP headers of execution. Defaults to empty.", - "required": false, - "type": "object", - "default": [], - "x-example": "{}", - "in": "formData" - }, - { - "name": "scheduledAt", - "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", - "required": false, - "type": "string", - "in": "formData" + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "body": { + "type": "string", + "description": "HTTP body of execution. Default value is empty string.", + "default": "", + "x-example": "<BODY>" + }, + "async": { + "type": "boolean", + "description": "Execute code in the background. Default value is false.", + "default": false, + "x-example": false + }, + "path": { + "type": "string", + "description": "HTTP path of execution. Path can include query params. Default value is \/", + "default": "\/", + "x-example": "<PATH>" + }, + "method": { + "type": "string", + "description": "HTTP method of execution. Default value is GET.", + "default": "POST", + "x-example": "GET", + "enum": [ + "GET", + "POST", + "PUT", + "PATCH", + "DELETE", + "OPTIONS" + ], + "x-enum-name": "ExecutionMethod", + "x-enum-keys": [] + }, + "headers": { + "type": "object", + "description": "HTTP headers of execution. Defaults to empty.", + "default": [], + "x-example": "{}" + }, + "scheduledAt": { + "type": "string", + "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", + "default": null, + "x-example": null + } + } + } } ] } @@ -5293,9 +5166,7 @@ "get": { "summary": "Get execution", "operationId": "functionsGetExecution", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -5313,7 +5184,8 @@ }, "x-appwrite": { "method": "getExecution", - "weight": 305, + "group": "executions", + "weight": 309, "cookies": false, "type": "", "deprecated": false, @@ -5329,9 +5201,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5387,7 +5256,8 @@ }, "x-appwrite": { "method": "query", - "weight": 329, + "group": "graphql", + "weight": 333, "cookies": false, "type": "graphql", "deprecated": false, @@ -5403,9 +5273,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5463,7 +5330,8 @@ }, "x-appwrite": { "method": "mutation", - "weight": 328, + "group": "graphql", + "weight": 332, "cookies": false, "type": "graphql", "deprecated": false, @@ -5479,9 +5347,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5519,9 +5384,7 @@ "get": { "summary": "Get user locale", "operationId": "localeGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -5539,7 +5402,8 @@ }, "x-appwrite": { "method": "get", - "weight": 116, + "group": null, + "weight": 120, "cookies": false, "type": "", "deprecated": false, @@ -5555,9 +5419,6 @@ "server" ], "packaging": false, - "offline-model": "\/localed", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5573,11 +5434,9 @@ }, "\/locale\/codes": { "get": { - "summary": "List Locale Codes", + "summary": "List locale codes", "operationId": "localeListCodes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -5595,7 +5454,8 @@ }, "x-appwrite": { "method": "listCodes", - "weight": 117, + "group": null, + "weight": 121, "cookies": false, "type": "", "deprecated": false, @@ -5611,9 +5471,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/localeCode", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5631,9 +5488,7 @@ "get": { "summary": "List continents", "operationId": "localeListContinents", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -5651,7 +5506,8 @@ }, "x-appwrite": { "method": "listContinents", - "weight": 121, + "group": null, + "weight": 125, "cookies": false, "type": "", "deprecated": false, @@ -5667,9 +5523,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/continents", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -5687,9 +5540,7 @@ "get": { "summary": "List countries", "operationId": "localeListCountries", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -5707,7 +5558,8 @@ }, "x-appwrite": { "method": "listCountries", - "weight": 118, + "group": null, + "weight": 122, "cookies": false, "type": "", "deprecated": false, @@ -5723,9 +5575,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -5743,9 +5592,7 @@ "get": { "summary": "List EU countries", "operationId": "localeListCountriesEU", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -5763,7 +5610,8 @@ }, "x-appwrite": { "method": "listCountriesEU", - "weight": 119, + "group": null, + "weight": 123, "cookies": false, "type": "", "deprecated": false, @@ -5779,9 +5627,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries\/eu", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -5799,9 +5644,7 @@ "get": { "summary": "List countries phone codes", "operationId": "localeListCountriesPhones", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -5819,7 +5662,8 @@ }, "x-appwrite": { "method": "listCountriesPhones", - "weight": 120, + "group": null, + "weight": 124, "cookies": false, "type": "", "deprecated": false, @@ -5835,9 +5679,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries\/phones", - "offline-key": "", - "offline-response-key": "countryCode", "auth": { "Project": [] } @@ -5855,9 +5696,7 @@ "get": { "summary": "List currencies", "operationId": "localeListCurrencies", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -5875,7 +5714,8 @@ }, "x-appwrite": { "method": "listCurrencies", - "weight": 122, + "group": null, + "weight": 126, "cookies": false, "type": "", "deprecated": false, @@ -5891,9 +5731,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/currencies", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -5911,9 +5748,7 @@ "get": { "summary": "List languages", "operationId": "localeListLanguages", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -5931,7 +5766,8 @@ }, "x-appwrite": { "method": "listLanguages", - "weight": 123, + "group": null, + "weight": 127, "cookies": false, "type": "", "deprecated": false, @@ -5947,9 +5783,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/languages", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -5987,7 +5820,8 @@ }, "x-appwrite": { "method": "createSubscriber", - "weight": 380, + "group": "subscribers", + "weight": 378, "cookies": false, "type": "", "deprecated": false, @@ -6004,9 +5838,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6062,9 +5893,7 @@ "consumes": [ "application\/json" ], - "produces": [ - "application\/json" - ], + "produces": [], "tags": [ "messaging" ], @@ -6076,7 +5905,8 @@ }, "x-appwrite": { "method": "deleteSubscriber", - "weight": 384, + "group": "subscribers", + "weight": 382, "cookies": false, "type": "", "deprecated": false, @@ -6093,9 +5923,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6131,9 +5958,7 @@ "get": { "summary": "List files", "operationId": "storageListFiles", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -6151,7 +5976,8 @@ }, "x-appwrite": { "method": "listFiles", - "weight": 206, + "group": "files", + "weight": 210, "cookies": false, "type": "", "deprecated": false, @@ -6167,9 +5993,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6236,7 +6059,8 @@ }, "x-appwrite": { "method": "createFile", - "weight": 205, + "group": "files", + "weight": 209, "cookies": false, "type": "upload", "deprecated": false, @@ -6252,9 +6076,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6310,9 +6131,7 @@ "get": { "summary": "Get file", "operationId": "storageGetFile", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -6330,7 +6149,8 @@ }, "x-appwrite": { "method": "getFile", - "weight": 207, + "group": "files", + "weight": 211, "cookies": false, "type": "", "deprecated": false, @@ -6346,9 +6166,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6402,7 +6219,8 @@ }, "x-appwrite": { "method": "updateFile", - "weight": 212, + "group": "files", + "weight": 216, "cookies": false, "type": "", "deprecated": false, @@ -6418,9 +6236,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6476,7 +6291,7 @@ ] }, "delete": { - "summary": "Delete File", + "summary": "Delete file", "operationId": "storageDeleteFile", "consumes": [ "application\/json" @@ -6493,7 +6308,8 @@ }, "x-appwrite": { "method": "deleteFile", - "weight": 213, + "group": "files", + "weight": 217, "cookies": false, "type": "", "deprecated": false, @@ -6509,9 +6325,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6547,9 +6360,7 @@ "get": { "summary": "Get file for download", "operationId": "storageGetFileDownload", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "*\/*" ], @@ -6567,7 +6378,8 @@ }, "x-appwrite": { "method": "getFileDownload", - "weight": 209, + "group": "files", + "weight": 213, "cookies": false, "type": "location", "deprecated": false, @@ -6583,9 +6395,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6621,9 +6430,7 @@ "get": { "summary": "Get file preview", "operationId": "storageGetFilePreview", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/*" ], @@ -6641,7 +6448,8 @@ }, "x-appwrite": { "method": "getFilePreview", - "weight": 208, + "group": "files", + "weight": 212, "cookies": false, "type": "location", "deprecated": false, @@ -6657,9 +6465,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6807,7 +6612,9 @@ "jpeg", "gif", "png", - "webp" + "webp", + "heic", + "avif" ], "x-enum-name": "ImageFormat", "x-enum-keys": [], @@ -6821,9 +6628,7 @@ "get": { "summary": "Get file for view", "operationId": "storageGetFileView", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "*\/*" ], @@ -6841,7 +6646,8 @@ }, "x-appwrite": { "method": "getFileView", - "weight": 210, + "group": "files", + "weight": 214, "cookies": false, "type": "location", "deprecated": false, @@ -6857,9 +6663,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6895,9 +6698,7 @@ "get": { "summary": "List teams", "operationId": "teamsList", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -6915,7 +6716,8 @@ }, "x-appwrite": { "method": "list", - "weight": 217, + "group": "teams", + "weight": 221, "cookies": false, "type": "", "deprecated": false, @@ -6931,9 +6733,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6992,7 +6791,8 @@ }, "x-appwrite": { "method": "create", - "weight": 216, + "group": "teams", + "weight": 220, "cookies": false, "type": "", "deprecated": false, @@ -7008,9 +6808,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7066,9 +6863,7 @@ "get": { "summary": "Get team", "operationId": "teamsGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -7086,7 +6881,8 @@ }, "x-appwrite": { "method": "get", - "weight": 218, + "group": "teams", + "weight": 222, "cookies": false, "type": "", "deprecated": false, @@ -7102,9 +6898,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "{teamId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7150,7 +6943,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 220, + "group": "teams", + "weight": 224, "cookies": false, "type": "", "deprecated": false, @@ -7166,9 +6960,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "{teamId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7227,7 +7018,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 222, + "group": "teams", + "weight": 226, "cookies": false, "type": "", "deprecated": false, @@ -7243,9 +7035,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7273,16 +7062,14 @@ "get": { "summary": "List team memberships", "operationId": "teamsListMemberships", - "consumes": [ - "application\/json" - ], + "consumes": [], "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.", + "description": "Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint. Hide sensitive attributes from the response by toggling membership privacy in the Console.", "responses": { "200": { "description": "Memberships List", @@ -7293,7 +7080,8 @@ }, "x-appwrite": { "method": "listMemberships", - "weight": 224, + "group": "memberships", + "weight": 228, "cookies": false, "type": "", "deprecated": false, @@ -7309,9 +7097,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/memberships", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7378,7 +7163,8 @@ }, "x-appwrite": { "method": "createMembership", - "weight": 223, + "group": "memberships", + "weight": 227, "cookies": false, "type": "", "deprecated": false, @@ -7394,9 +7180,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7475,16 +7258,14 @@ "get": { "summary": "Get team membership", "operationId": "teamsGetMembership", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "teams" ], - "description": "Get a team member by the membership unique id. All team members have read access for this resource.", + "description": "Get a team member by the membership unique id. All team members have read access for this resource. Hide sensitive attributes from the response by toggling membership privacy in the Console.", "responses": { "200": { "description": "Membership", @@ -7495,7 +7276,8 @@ }, "x-appwrite": { "method": "getMembership", - "weight": 225, + "group": "memberships", + "weight": 229, "cookies": false, "type": "", "deprecated": false, @@ -7511,9 +7293,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/memberships", - "offline-key": "{membershipId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7567,7 +7346,8 @@ }, "x-appwrite": { "method": "updateMembership", - "weight": 226, + "group": "memberships", + "weight": 230, "cookies": false, "type": "", "deprecated": false, @@ -7583,9 +7363,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7655,7 +7432,8 @@ }, "x-appwrite": { "method": "deleteMembership", - "weight": 228, + "group": "memberships", + "weight": 232, "cookies": false, "type": "", "deprecated": false, @@ -7671,9 +7449,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7729,7 +7504,8 @@ }, "x-appwrite": { "method": "updateMembershipStatus", - "weight": 227, + "group": "memberships", + "weight": 231, "cookies": false, "type": "", "deprecated": false, @@ -7744,9 +7520,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7807,9 +7580,7 @@ "get": { "summary": "Get team preferences", "operationId": "teamsGetPrefs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -7827,7 +7598,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 219, + "group": "teams", + "weight": 223, "cookies": false, "type": "", "deprecated": false, @@ -7842,9 +7614,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/prefs", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7890,7 +7659,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 221, + "group": "teams", + "weight": 225, "cookies": false, "type": "", "deprecated": false, @@ -7905,9 +7675,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/prefs", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7953,85 +7720,67 @@ "tags": [ { "name": "account", - "description": "The Account service allows you to authenticate and manage a user account.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Avatars service aims to help you complete everyday tasks related to your app image, icons, and avatars." }, { "name": "databases", - "description": "The Databases service allows you to create structured collections of documents, query and filter lists of documents", - "x-globalAttributes": [ - "databaseId" - ] + "description": "The Databases 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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Project service allows you to manage all the projects in your Appwrite server." }, { "name": "project", - "description": "The Project service allows you to manage all the projects in your Appwrite server.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Functions Service allows you view, create and manage your Cloud Functions." }, { "name": "proxy", - "description": "The Proxy Service allows you to configure actions for your domains beyond DNS configuration.", - "x-globalAttributes": [] + "description": "The Proxy Service allows you to configure actions for your domains beyond DNS configuration." }, { "name": "graphql", - "description": "The GraphQL API allows you to query and mutate your Appwrite server using GraphQL.", - "x-globalAttributes": [] + "description": "The GraphQL API allows you to query and mutate your Appwrite server using GraphQL." }, { "name": "console", - "description": "The Console service allows you to interact with console relevant informations.", - "x-globalAttributes": [] + "description": "The Console service allows you to interact with console relevant informations." }, { "name": "migrations", - "description": "The Migrations service allows you to migrate third-party data to your Appwrite project.", - "x-globalAttributes": [] + "description": "The Migrations service allows you to migrate third-party data to your Appwrite project." }, { "name": "messaging", - "description": "The Messaging service allows you to send messages to any provider type (SMTP, push notification, SMS, etc.).", - "x-globalAttributes": [] + "description": "The Messaging service allows you to send messages to any provider type (SMTP, push notification, SMS, etc.)." } ], "definitions": { @@ -9450,12 +9199,12 @@ }, "userName": { "type": "string", - "description": "User name.", + "description": "User name. Hide this attribute by toggling membership privacy in the Console.", "x-example": "John Doe" }, "userEmail": { "type": "string", - "description": "User email address.", + "description": "User email address. Hide this attribute by toggling membership privacy in the Console.", "x-example": "john@appwrite.io" }, "teamId": { @@ -9485,7 +9234,7 @@ }, "mfa": { "type": "boolean", - "description": "Multi factor authentication status, true if the user has MFA enabled or false otherwise.", + "description": "Multi factor authentication status, true if the user has MFA enabled or false otherwise. Hide this attribute by toggling membership privacy in the Console.", "x-example": false }, "roles": { @@ -9591,7 +9340,7 @@ "responseBody": { "type": "string", "description": "HTTP response body. This will return empty unless execution is created as synchronous.", - "x-example": "Developers are awesome." + "x-example": "" }, "responseHeaders": { "type": "array", @@ -10013,7 +9762,7 @@ "name": { "type": "string", "description": "Target Name.", - "x-example": "Aegon apple token" + "x-example": "Apple iPhone 12" }, "userId": { "type": "string", @@ -10035,6 +9784,11 @@ "type": "string", "description": "The target identifier.", "x-example": "token" + }, + "expired": { + "type": "boolean", + "description": "Is the target expired.", + "x-example": false } }, "required": [ @@ -10044,7 +9798,8 @@ "name", "userId", "providerType", - "identifier" + "identifier", + "expired" ] } }, diff --git a/app/config/specs/swagger2-latest-console.json b/app/config/specs/swagger2-latest-console.json index 51935a5e011..5b61ba75d6a 100644 --- a/app/config/specs/swagger2-latest-console.json +++ b/app/config/specs/swagger2-latest-console.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "1.6.0", + "version": "1.6.2", "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", @@ -16,6 +16,7 @@ } }, "host": "cloud.appwrite.io", + "x-host-docs": "<REGION>.cloud.appwrite.io", "basePath": "\/v1", "schemes": [ "https" @@ -79,9 +80,7 @@ "get": { "summary": "Get account", "operationId": "accountGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -99,7 +98,8 @@ }, "x-appwrite": { "method": "get", - "weight": 8, + "group": "account", + "weight": 9, "cookies": false, "type": "", "deprecated": false, @@ -114,9 +114,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -151,7 +148,8 @@ }, "x-appwrite": { "method": "create", - "weight": 7, + "group": "account", + "weight": 8, "cookies": false, "type": "", "deprecated": false, @@ -166,9 +164,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -237,7 +232,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 9, + "group": "account", + "weight": 10, "cookies": false, "type": "", "deprecated": false, @@ -251,9 +247,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -289,7 +282,8 @@ }, "x-appwrite": { "method": "updateEmail", - "weight": 33, + "group": "account", + "weight": 34, "cookies": false, "type": "", "deprecated": false, @@ -304,9 +298,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -348,11 +339,9 @@ }, "\/account\/identities": { "get": { - "summary": "List Identities", + "summary": "List identities", "operationId": "accountListIdentities", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -370,7 +359,8 @@ }, "x-appwrite": { "method": "listIdentities", - "weight": 56, + "group": "identities", + "weight": 57, "cookies": false, "type": "", "deprecated": false, @@ -385,9 +375,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/identities", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -433,7 +420,8 @@ }, "x-appwrite": { "method": "deleteIdentity", - "weight": 57, + "group": "identities", + "weight": 58, "cookies": false, "type": "", "deprecated": false, @@ -448,9 +436,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -497,7 +482,8 @@ }, "x-appwrite": { "method": "createJWT", - "weight": 28, + "group": "tokens", + "weight": 29, "cookies": false, "type": "", "deprecated": false, @@ -512,9 +498,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -530,9 +513,7 @@ "get": { "summary": "List logs", "operationId": "accountListLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -550,7 +531,8 @@ }, "x-appwrite": { "method": "listLogs", - "weight": 30, + "group": "logs", + "weight": 31, "cookies": false, "type": "", "deprecated": false, @@ -565,9 +547,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -618,7 +597,8 @@ }, "x-appwrite": { "method": "updateMFA", - "weight": 43, + "group": "mfa", + "weight": 44, "cookies": false, "type": "", "deprecated": false, @@ -633,9 +613,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -670,7 +647,7 @@ }, "\/account\/mfa\/authenticators\/{type}": { "post": { - "summary": "Create Authenticator", + "summary": "Create authenticator", "operationId": "accountCreateMfaAuthenticator", "consumes": [ "application\/json" @@ -692,7 +669,8 @@ }, "x-appwrite": { "method": "createMfaAuthenticator", - "weight": 45, + "group": "mfa", + "weight": 46, "cookies": false, "type": "", "deprecated": false, @@ -707,9 +685,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -737,7 +712,7 @@ ] }, "put": { - "summary": "Verify Authenticator", + "summary": "Update authenticator (confirmation)", "operationId": "accountUpdateMfaAuthenticator", "consumes": [ "application\/json" @@ -759,7 +734,8 @@ }, "x-appwrite": { "method": "updateMfaAuthenticator", - "weight": 46, + "group": "mfa", + "weight": 47, "cookies": false, "type": "", "deprecated": false, @@ -774,9 +750,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -822,7 +795,7 @@ ] }, "delete": { - "summary": "Delete Authenticator", + "summary": "Delete authenticator", "operationId": "accountDeleteMfaAuthenticator", "consumes": [ "application\/json" @@ -839,7 +812,8 @@ }, "x-appwrite": { "method": "deleteMfaAuthenticator", - "weight": 50, + "group": "mfa", + "weight": 51, "cookies": false, "type": "", "deprecated": false, @@ -854,9 +828,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -886,7 +857,7 @@ }, "\/account\/mfa\/challenge": { "post": { - "summary": "Create MFA Challenge", + "summary": "Create MFA challenge", "operationId": "accountCreateMfaChallenge", "consumes": [ "application\/json" @@ -908,7 +879,8 @@ }, "x-appwrite": { "method": "createMfaChallenge", - "weight": 51, + "group": "mfa", + "weight": 52, "cookies": false, "type": "", "deprecated": false, @@ -923,9 +895,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -965,24 +934,30 @@ ] }, "put": { - "summary": "Create MFA Challenge (confirmation)", + "summary": "Update MFA challenge (confirmation)", "operationId": "accountUpdateMfaChallenge", "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "account" ], "description": "Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", "responses": { - "204": { - "description": "No content" + "200": { + "description": "Session", + "schema": { + "$ref": "#\/definitions\/session" + } } }, "x-appwrite": { "method": "updateMfaChallenge", - "weight": 52, + "group": "mfa", + "weight": 53, "cookies": false, "type": "", "deprecated": false, @@ -997,9 +972,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1041,11 +1013,9 @@ }, "\/account\/mfa\/factors": { "get": { - "summary": "List Factors", + "summary": "List factors", "operationId": "accountListMfaFactors", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -1063,7 +1033,8 @@ }, "x-appwrite": { "method": "listMfaFactors", - "weight": 44, + "group": "mfa", + "weight": 45, "cookies": false, "type": "", "deprecated": false, @@ -1078,9 +1049,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1095,11 +1063,9 @@ }, "\/account\/mfa\/recovery-codes": { "get": { - "summary": "Get MFA Recovery Codes", + "summary": "List MFA recovery codes", "operationId": "accountGetMfaRecoveryCodes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -1117,7 +1083,8 @@ }, "x-appwrite": { "method": "getMfaRecoveryCodes", - "weight": 49, + "group": "mfa", + "weight": 50, "cookies": false, "type": "", "deprecated": false, @@ -1132,9 +1099,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1147,7 +1111,7 @@ ] }, "post": { - "summary": "Create MFA Recovery Codes", + "summary": "Create MFA recovery codes", "operationId": "accountCreateMfaRecoveryCodes", "consumes": [ "application\/json" @@ -1169,7 +1133,8 @@ }, "x-appwrite": { "method": "createMfaRecoveryCodes", - "weight": 47, + "group": "mfa", + "weight": 48, "cookies": false, "type": "", "deprecated": false, @@ -1184,9 +1149,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1199,7 +1161,7 @@ ] }, "patch": { - "summary": "Regenerate MFA Recovery Codes", + "summary": "Update MFA recovery codes (regenerate)", "operationId": "accountUpdateMfaRecoveryCodes", "consumes": [ "application\/json" @@ -1221,7 +1183,8 @@ }, "x-appwrite": { "method": "updateMfaRecoveryCodes", - "weight": 48, + "group": "mfa", + "weight": 49, "cookies": false, "type": "", "deprecated": false, @@ -1236,9 +1199,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1275,7 +1235,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 31, + "group": "account", + "weight": 32, "cookies": false, "type": "", "deprecated": false, @@ -1290,9 +1251,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1349,7 +1307,8 @@ }, "x-appwrite": { "method": "updatePassword", - "weight": 32, + "group": "account", + "weight": 33, "cookies": false, "type": "", "deprecated": false, @@ -1364,9 +1323,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1429,7 +1385,8 @@ }, "x-appwrite": { "method": "updatePhone", - "weight": 34, + "group": "account", + "weight": 35, "cookies": false, "type": "", "deprecated": false, @@ -1444,9 +1401,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1490,9 +1444,7 @@ "get": { "summary": "Get account preferences", "operationId": "accountGetPrefs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -1510,7 +1462,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 29, + "group": "account", + "weight": 30, "cookies": false, "type": "", "deprecated": false, @@ -1525,9 +1478,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/prefs", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1562,7 +1512,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 35, + "group": "account", + "weight": 36, "cookies": false, "type": "", "deprecated": false, @@ -1577,9 +1528,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/prefs", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1636,7 +1584,8 @@ }, "x-appwrite": { "method": "createRecovery", - "weight": 37, + "group": "recovery", + "weight": 38, "cookies": false, "type": "", "deprecated": false, @@ -1654,9 +1603,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1696,7 +1642,7 @@ ] }, "put": { - "summary": "Create password recovery (confirmation)", + "summary": "Update password recovery (confirmation)", "operationId": "accountUpdateRecovery", "consumes": [ "application\/json" @@ -1718,7 +1664,8 @@ }, "x-appwrite": { "method": "updateRecovery", - "weight": 38, + "group": "recovery", + "weight": 39, "cookies": false, "type": "", "deprecated": false, @@ -1733,9 +1680,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1786,9 +1730,7 @@ "get": { "summary": "List sessions", "operationId": "accountListSessions", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -1806,7 +1748,8 @@ }, "x-appwrite": { "method": "listSessions", - "weight": 10, + "group": "sessions", + "weight": 11, "cookies": false, "type": "", "deprecated": false, @@ -1821,9 +1764,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/sessions", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1853,7 +1793,8 @@ }, "x-appwrite": { "method": "deleteSessions", - "weight": 11, + "group": "sessions", + "weight": 12, "cookies": false, "type": "", "deprecated": false, @@ -1868,9 +1809,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1907,7 +1845,8 @@ }, "x-appwrite": { "method": "createAnonymousSession", - "weight": 16, + "group": "sessions", + "weight": 17, "cookies": false, "type": "", "deprecated": false, @@ -1922,9 +1861,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1960,7 +1896,8 @@ }, "x-appwrite": { "method": "createEmailPasswordSession", - "weight": 15, + "group": "sessions", + "weight": 16, "cookies": false, "type": "", "deprecated": false, @@ -1975,9 +1912,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2040,7 +1974,8 @@ }, "x-appwrite": { "method": "updateMagicURLSession", - "weight": 25, + "group": "sessions", + "weight": 26, "cookies": false, "type": "", "deprecated": true, @@ -2055,9 +1990,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2100,9 +2032,7 @@ "get": { "summary": "Create OAuth2 session", "operationId": "accountCreateOAuth2Session", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "text\/html" ], @@ -2117,7 +2047,8 @@ }, "x-appwrite": { "method": "createOAuth2Session", - "weight": 18, + "group": "sessions", + "weight": 19, "cookies": false, "type": "webAuth", "deprecated": false, @@ -2132,9 +2063,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2147,7 +2075,7 @@ "parameters": [ { "name": "provider", - "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", + "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", "required": true, "type": "string", "x-example": "amazon", @@ -2166,6 +2094,7 @@ "dropbox", "etsy", "facebook", + "figma", "github", "gitlab", "google", @@ -2255,7 +2184,8 @@ }, "x-appwrite": { "method": "updatePhoneSession", - "weight": 26, + "group": "sessions", + "weight": 27, "cookies": false, "type": "", "deprecated": true, @@ -2270,9 +2200,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2335,7 +2262,8 @@ }, "x-appwrite": { "method": "createSession", - "weight": 17, + "group": "sessions", + "weight": 18, "cookies": false, "type": "", "deprecated": false, @@ -2350,9 +2278,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2395,9 +2320,7 @@ "get": { "summary": "Get session", "operationId": "accountGetSession", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -2415,7 +2338,8 @@ }, "x-appwrite": { "method": "getSession", - "weight": 12, + "group": "sessions", + "weight": 13, "cookies": false, "type": "", "deprecated": false, @@ -2430,9 +2354,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/sessions", - "offline-key": "{sessionId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2477,7 +2398,8 @@ }, "x-appwrite": { "method": "updateSession", - "weight": 14, + "group": "sessions", + "weight": 15, "cookies": false, "type": "", "deprecated": false, @@ -2492,9 +2414,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2534,7 +2453,8 @@ }, "x-appwrite": { "method": "deleteSession", - "weight": 13, + "group": "sessions", + "weight": 14, "cookies": false, "type": "", "deprecated": false, @@ -2549,9 +2469,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2598,7 +2515,8 @@ }, "x-appwrite": { "method": "updateStatus", - "weight": 36, + "group": "account", + "weight": 37, "cookies": false, "type": "", "deprecated": false, @@ -2613,9 +2531,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2641,7 +2556,7 @@ "tags": [ "account" ], - "description": "", + "description": "Use this endpoint to register a device for push notifications. Provide a target ID (custom or generated using ID.unique()), a device identifier (usually a device token), and optionally specify which provider should send notifications to this target. The target is automatically linked to the current session and includes device information like brand and model.", "responses": { "201": { "description": "Target", @@ -2652,12 +2567,13 @@ }, "x-appwrite": { "method": "createPushTarget", - "weight": 53, + "group": "pushTargets", + "weight": 54, "cookies": false, "type": "", "deprecated": false, "demo": "account\/create-push-target.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-push-target.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -2666,9 +2582,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2726,7 +2639,7 @@ "tags": [ "account" ], - "description": "", + "description": "Update the currently logged in user's push notification target. You can modify the target's identifier (device token) and provider ID (token, email, phone etc.). The target must exist and belong to the current user. If you change the provider ID, notifications will be sent through the new messaging provider instead.", "responses": { "200": { "description": "Target", @@ -2737,12 +2650,13 @@ }, "x-appwrite": { "method": "updatePushTarget", - "weight": 54, + "group": "pushTargets", + "weight": 55, "cookies": false, "type": "", "deprecated": false, "demo": "account\/update-push-target.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-push-target.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -2751,9 +2665,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2798,13 +2709,11 @@ "consumes": [ "application\/json" ], - "produces": [ - "application\/json" - ], + "produces": [], "tags": [ "account" ], - "description": "", + "description": "Delete a push notification target for the currently logged in user. After deletion, the device will no longer receive push notifications. The target must exist and belong to the current user.", "responses": { "204": { "description": "No content" @@ -2812,12 +2721,13 @@ }, "x-appwrite": { "method": "deletePushTarget", - "weight": 55, + "group": "pushTargets", + "weight": 56, "cookies": false, "type": "", "deprecated": false, "demo": "account\/delete-push-target.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/delete-push-target.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -2826,9 +2736,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2874,7 +2781,8 @@ }, "x-appwrite": { "method": "createEmailToken", - "weight": 24, + "group": "tokens", + "weight": 25, "cookies": false, "type": "", "deprecated": false, @@ -2882,16 +2790,16 @@ "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-email.md", "rate-limit": 10, "rate-time": 3600, - "rate-key": "url:{url},email:{param-email}", + "rate-key": [ + "url:{url},email:{param-email}", + "url:{url},ip:{ip}" + ], "scope": "sessions.write", "platforms": [ "server", "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2949,7 +2857,7 @@ "tags": [ "account" ], - "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. 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 [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) 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.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", + "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. 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 [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) endpoint to complete the login process. The link sent to the user's email address is valid for 1 hour.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", "responses": { "201": { "description": "Token", @@ -2960,7 +2868,8 @@ }, "x-appwrite": { "method": "createMagicURLToken", - "weight": 23, + "group": "tokens", + "weight": 24, "cookies": false, "type": "", "deprecated": false, @@ -2978,9 +2887,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3035,9 +2941,7 @@ "get": { "summary": "Create OAuth2 token", "operationId": "accountCreateOAuth2Token", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "text\/html" ], @@ -3052,7 +2956,8 @@ }, "x-appwrite": { "method": "createOAuth2Token", - "weight": 22, + "group": "tokens", + "weight": 23, "cookies": false, "type": "webAuth", "deprecated": false, @@ -3067,9 +2972,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3082,7 +2984,7 @@ "parameters": [ { "name": "provider", - "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", + "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", "required": true, "type": "string", "x-example": "amazon", @@ -3101,6 +3003,7 @@ "dropbox", "etsy", "facebook", + "figma", "github", "gitlab", "google", @@ -3190,7 +3093,8 @@ }, "x-appwrite": { "method": "createPhoneToken", - "weight": 27, + "group": "tokens", + "weight": 28, "cookies": false, "type": "", "deprecated": false, @@ -3208,9 +3112,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3273,7 +3174,8 @@ }, "x-appwrite": { "method": "createVerification", - "weight": 39, + "group": "verification", + "weight": 40, "cookies": false, "type": "", "deprecated": false, @@ -3288,9 +3190,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3323,7 +3222,7 @@ ] }, "put": { - "summary": "Create email verification (confirmation)", + "summary": "Update email verification (confirmation)", "operationId": "accountUpdateVerification", "consumes": [ "application\/json" @@ -3345,7 +3244,8 @@ }, "x-appwrite": { "method": "updateVerification", - "weight": 40, + "group": "verification", + "weight": 41, "cookies": false, "type": "", "deprecated": false, @@ -3360,9 +3260,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3426,7 +3323,8 @@ }, "x-appwrite": { "method": "createPhoneVerification", - "weight": 41, + "group": "verification", + "weight": 42, "cookies": false, "type": "", "deprecated": false, @@ -3444,9 +3342,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3481,7 +3376,8 @@ }, "x-appwrite": { "method": "updatePhoneVerification", - "weight": 42, + "group": "verification", + "weight": 43, "cookies": false, "type": "", "deprecated": false, @@ -3496,9 +3392,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3542,9 +3435,7 @@ "get": { "summary": "Get browser icon", "operationId": "avatarsGetBrowser", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/png" ], @@ -3562,7 +3453,8 @@ }, "x-appwrite": { "method": "getBrowser", - "weight": 59, + "group": null, + "weight": 60, "cookies": false, "type": "location", "deprecated": false, @@ -3578,9 +3470,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3671,9 +3560,7 @@ "get": { "summary": "Get credit card icon", "operationId": "avatarsGetCreditCard", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/png" ], @@ -3691,7 +3578,8 @@ }, "x-appwrite": { "method": "getCreditCard", - "weight": 58, + "group": null, + "weight": 59, "cookies": false, "type": "location", "deprecated": false, @@ -3707,9 +3595,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3724,7 +3609,7 @@ "parameters": [ { "name": "code", - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro.", + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", "required": true, "type": "string", "x-example": "amex", @@ -3744,7 +3629,8 @@ "union-china-pay", "visa", "mir", - "maestro" + "maestro", + "rupay" ], "x-enum-name": "CreditCard", "x-enum-keys": [ @@ -3763,7 +3649,8 @@ "Union China Pay", "Visa", "MIR", - "Maestro" + "Maestro", + "Rupay" ], "in": "path" }, @@ -3804,9 +3691,7 @@ "get": { "summary": "Get favicon", "operationId": "avatarsGetFavicon", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/*" ], @@ -3824,7 +3709,8 @@ }, "x-appwrite": { "method": "getFavicon", - "weight": 62, + "group": null, + "weight": 63, "cookies": false, "type": "location", "deprecated": false, @@ -3840,9 +3726,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -3871,9 +3754,7 @@ "get": { "summary": "Get country flag", "operationId": "avatarsGetFlag", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/png" ], @@ -3891,7 +3772,8 @@ }, "x-appwrite": { "method": "getFlag", - "weight": 60, + "group": null, + "weight": 61, "cookies": false, "type": "location", "deprecated": false, @@ -3907,9 +3789,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4362,9 +4241,7 @@ "get": { "summary": "Get image from URL", "operationId": "avatarsGetImage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/*" ], @@ -4382,7 +4259,8 @@ }, "x-appwrite": { "method": "getImage", - "weight": 61, + "group": null, + "weight": 62, "cookies": false, "type": "location", "deprecated": false, @@ -4398,9 +4276,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4449,9 +4324,7 @@ "get": { "summary": "Get user initials", "operationId": "avatarsGetInitials", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/png" ], @@ -4469,7 +4342,8 @@ }, "x-appwrite": { "method": "getInitials", - "weight": 64, + "group": null, + "weight": 65, "cookies": false, "type": "location", "deprecated": false, @@ -4485,9 +4359,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4544,9 +4415,7 @@ "get": { "summary": "Get QR code", "operationId": "avatarsGetQR", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/png" ], @@ -4564,7 +4433,8 @@ }, "x-appwrite": { "method": "getQR", - "weight": 63, + "group": null, + "weight": 64, "cookies": false, "type": "location", "deprecated": false, @@ -4580,9 +4450,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4637,7 +4504,7 @@ }, "\/console\/assistant": { "post": { - "summary": "Ask Query", + "summary": "Create assistant query", "operationId": "assistantChat", "consumes": [ "application\/json" @@ -4648,7 +4515,7 @@ "tags": [ "assistant" ], - "description": "", + "description": "Send a prompt to the AI assistant and receive a response. This endpoint allows you to interact with Appwrite's AI assistant by sending questions or prompts and receiving helpful responses in real-time through a server-sent events stream. ", "responses": { "200": { "description": "File", @@ -4659,7 +4526,8 @@ }, "x-appwrite": { "method": "chat", - "weight": 331, + "group": "console", + "weight": 335, "cookies": false, "type": "", "deprecated": false, @@ -4673,9 +4541,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4711,9 +4576,7 @@ "get": { "summary": "Get variables", "operationId": "consoleVariables", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -4731,7 +4594,8 @@ }, "x-appwrite": { "method": "variables", - "weight": 330, + "group": "console", + "weight": 334, "cookies": false, "type": "", "deprecated": false, @@ -4745,9 +4609,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4763,9 +4624,7 @@ "get": { "summary": "List databases", "operationId": "databasesList", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -4783,7 +4642,8 @@ }, "x-appwrite": { "method": "list", - "weight": 69, + "group": "databases", + "weight": 70, "cookies": false, "type": "", "deprecated": false, @@ -4797,9 +4657,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4857,7 +4714,8 @@ }, "x-appwrite": { "method": "create", - "weight": 68, + "group": "databases", + "weight": 69, "cookies": false, "type": "", "deprecated": false, @@ -4871,9 +4729,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4923,16 +4778,14 @@ "get": { "summary": "Get databases usage stats", "operationId": "databasesGetUsage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "databases" ], - "description": "", + "description": "Get usage metrics and statistics for all databases in the project. You can view the total number of databases, collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", "responses": { "200": { "description": "UsageDatabases", @@ -4943,12 +4796,13 @@ }, "x-appwrite": { "method": "getUsage", - "weight": 113, + "group": null, + "weight": 117, "cookies": false, "type": "", "deprecated": false, "demo": "databases\/get-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -4957,9 +4811,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -4997,9 +4848,7 @@ "get": { "summary": "Get database", "operationId": "databasesGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -5017,7 +4866,8 @@ }, "x-appwrite": { "method": "get", - "weight": 70, + "group": "databases", + "weight": 71, "cookies": false, "type": "", "deprecated": false, @@ -5031,9 +4881,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5078,7 +4925,8 @@ }, "x-appwrite": { "method": "update", - "weight": 72, + "group": "databases", + "weight": 73, "cookies": false, "type": "", "deprecated": false, @@ -5092,9 +4940,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5158,7 +5003,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 73, + "group": "databases", + "weight": 74, "cookies": false, "type": "", "deprecated": false, @@ -5172,9 +5018,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5201,9 +5044,7 @@ "get": { "summary": "List collections", "operationId": "databasesListCollections", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -5221,7 +5062,8 @@ }, "x-appwrite": { "method": "listCollections", - "weight": 75, + "group": "collections", + "weight": 76, "cookies": false, "type": "", "deprecated": false, @@ -5235,9 +5077,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5303,7 +5142,8 @@ }, "x-appwrite": { "method": "createCollection", - "weight": 74, + "group": "collections", + "weight": 75, "cookies": false, "type": "", "deprecated": false, @@ -5317,9 +5157,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5392,9 +5229,7 @@ "get": { "summary": "Get collection", "operationId": "databasesGetCollection", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -5412,7 +5247,8 @@ }, "x-appwrite": { "method": "getCollection", - "weight": 76, + "group": "collections", + "weight": 77, "cookies": false, "type": "", "deprecated": false, @@ -5426,9 +5262,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5481,7 +5314,8 @@ }, "x-appwrite": { "method": "updateCollection", - "weight": 78, + "group": "collections", + "weight": 79, "cookies": false, "type": "", "deprecated": false, @@ -5495,9 +5329,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5584,7 +5415,8 @@ }, "x-appwrite": { "method": "deleteCollection", - "weight": 79, + "group": "collections", + "weight": 80, "cookies": false, "type": "", "deprecated": false, @@ -5598,9 +5430,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5635,9 +5464,7 @@ "get": { "summary": "List attributes", "operationId": "databasesListAttributes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -5655,7 +5482,8 @@ }, "x-appwrite": { "method": "listAttributes", - "weight": 90, + "group": "attributes", + "weight": 91, "cookies": false, "type": "", "deprecated": false, @@ -5669,9 +5497,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5738,7 +5563,8 @@ }, "x-appwrite": { "method": "createBooleanAttribute", - "weight": 87, + "group": "attributes", + "weight": 88, "cookies": false, "type": "", "deprecated": false, @@ -5752,9 +5578,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5829,7 +5652,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -5844,7 +5669,8 @@ }, "x-appwrite": { "method": "updateBooleanAttribute", - "weight": 99, + "group": "attributes", + "weight": 100, "cookies": false, "type": "", "deprecated": false, @@ -5858,9 +5684,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -5954,7 +5777,8 @@ }, "x-appwrite": { "method": "createDatetimeAttribute", - "weight": 88, + "group": "attributes", + "weight": 89, "cookies": false, "type": "", "deprecated": false, @@ -5968,9 +5792,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6045,7 +5866,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -6060,7 +5883,8 @@ }, "x-appwrite": { "method": "updateDatetimeAttribute", - "weight": 100, + "group": "attributes", + "weight": 101, "cookies": false, "type": "", "deprecated": false, @@ -6074,9 +5898,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6170,7 +5991,8 @@ }, "x-appwrite": { "method": "createEmailAttribute", - "weight": 81, + "group": "attributes", + "weight": 82, "cookies": false, "type": "", "deprecated": false, @@ -6184,9 +6006,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6261,7 +6080,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -6276,7 +6097,8 @@ }, "x-appwrite": { "method": "updateEmailAttribute", - "weight": 93, + "group": "attributes", + "weight": 94, "cookies": false, "type": "", "deprecated": false, @@ -6290,9 +6112,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6386,7 +6205,8 @@ }, "x-appwrite": { "method": "createEnumAttribute", - "weight": 82, + "group": "attributes", + "weight": 83, "cookies": false, "type": "", "deprecated": false, @@ -6400,9 +6220,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6487,7 +6304,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -6502,7 +6321,8 @@ }, "x-appwrite": { "method": "updateEnumAttribute", - "weight": 94, + "group": "attributes", + "weight": 95, "cookies": false, "type": "", "deprecated": false, @@ -6516,9 +6336,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6622,7 +6439,8 @@ }, "x-appwrite": { "method": "createFloatAttribute", - "weight": 86, + "group": "attributes", + "weight": 87, "cookies": false, "type": "", "deprecated": false, @@ -6636,9 +6454,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6725,7 +6540,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -6740,7 +6557,8 @@ }, "x-appwrite": { "method": "updateFloatAttribute", - "weight": 98, + "group": "attributes", + "weight": 99, "cookies": false, "type": "", "deprecated": false, @@ -6754,9 +6572,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6831,8 +6646,6 @@ }, "required": [ "required", - "min", - "max", "default" ] } @@ -6864,7 +6677,8 @@ }, "x-appwrite": { "method": "createIntegerAttribute", - "weight": 85, + "group": "attributes", + "weight": 86, "cookies": false, "type": "", "deprecated": false, @@ -6878,9 +6692,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -6967,7 +6778,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -6982,7 +6795,8 @@ }, "x-appwrite": { "method": "updateIntegerAttribute", - "weight": 97, + "group": "attributes", + "weight": 98, "cookies": false, "type": "", "deprecated": false, @@ -6996,9 +6810,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7073,8 +6884,6 @@ }, "required": [ "required", - "min", - "max", "default" ] } @@ -7106,7 +6915,8 @@ }, "x-appwrite": { "method": "createIpAttribute", - "weight": 83, + "group": "attributes", + "weight": 84, "cookies": false, "type": "", "deprecated": false, @@ -7120,9 +6930,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7197,7 +7004,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -7212,7 +7021,8 @@ }, "x-appwrite": { "method": "updateIpAttribute", - "weight": 95, + "group": "attributes", + "weight": 96, "cookies": false, "type": "", "deprecated": false, @@ -7226,9 +7036,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7322,7 +7129,8 @@ }, "x-appwrite": { "method": "createRelationshipAttribute", - "weight": 89, + "group": "attributes", + "weight": 90, "cookies": false, "type": "", "deprecated": false, @@ -7336,9 +7144,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7457,7 +7262,8 @@ }, "x-appwrite": { "method": "createStringAttribute", - "weight": 80, + "group": "attributes", + "weight": 81, "cookies": false, "type": "", "deprecated": false, @@ -7471,9 +7277,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7561,7 +7364,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -7576,7 +7381,8 @@ }, "x-appwrite": { "method": "updateStringAttribute", - "weight": 92, + "group": "attributes", + "weight": 93, "cookies": false, "type": "", "deprecated": false, @@ -7590,9 +7396,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7650,7 +7453,7 @@ "type": "integer", "description": "Maximum size of the string attribute.", "default": null, - "x-example": null + "x-example": 1 }, "newKey": { "type": "string", @@ -7692,7 +7495,8 @@ }, "x-appwrite": { "method": "createUrlAttribute", - "weight": 84, + "group": "attributes", + "weight": 85, "cookies": false, "type": "", "deprecated": false, @@ -7706,9 +7510,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7783,7 +7584,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -7798,7 +7601,8 @@ }, "x-appwrite": { "method": "updateUrlAttribute", - "weight": 96, + "group": "attributes", + "weight": 97, "cookies": false, "type": "", "deprecated": false, @@ -7812,9 +7616,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -7888,9 +7689,7 @@ "get": { "summary": "Get attribute", "operationId": "databasesGetAttribute", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -7939,7 +7738,8 @@ }, "x-appwrite": { "method": "getAttribute", - "weight": 91, + "group": "attributes", + "weight": 92, "cookies": false, "type": "", "deprecated": false, @@ -7953,9 +7753,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8010,7 +7807,8 @@ }, "x-appwrite": { "method": "deleteAttribute", - "weight": 102, + "group": "attributes", + "weight": 103, "cookies": false, "type": "", "deprecated": false, @@ -8024,9 +7822,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8071,7 +7866,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -8086,7 +7883,8 @@ }, "x-appwrite": { "method": "updateRelationshipAttribute", - "weight": 101, + "group": "attributes", + "weight": 102, "cookies": false, "type": "", "deprecated": false, @@ -8100,9 +7898,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8172,9 +7967,7 @@ "get": { "summary": "List documents", "operationId": "databasesListDocuments", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -8192,7 +7985,8 @@ }, "x-appwrite": { "method": "listDocuments", - "weight": 108, + "group": "documents", + "weight": 109, "cookies": false, "type": "", "deprecated": false, @@ -8208,9 +8002,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8276,7 +8067,8 @@ }, "x-appwrite": { "method": "createDocument", - "weight": 107, + "group": "documents", + "weight": 108, "cookies": false, "type": "", "deprecated": false, @@ -8292,9 +8084,31 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", + "methods": [ + { + "name": "createDocument", + "parameters": [ + "databaseId", + "collectionId", + "documentId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "collectionId", + "documentId", + "data" + ], + "responses": [ + { + "code": 201, + "model": "#\/definitions\/document" + } + ], + "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + } + ], "auth": { "Project": [] } @@ -8332,13 +8146,13 @@ "documentId": { "type": "string", "description": "Document ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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, + "default": "", "x-example": "<DOCUMENT_ID>" }, "data": { "type": "object", "description": "Document data as JSON object.", - "default": {}, + "default": [], "x-example": "{}" }, "permissions": { @@ -8349,21 +8163,24 @@ "items": { "type": "string" } + }, + "documents": { + "type": "array", + "description": "Array of documents data as JSON objects.", + "default": [], + "x-example": null, + "items": { + "type": "object" + } } - }, - "required": [ - "documentId", - "data" - ] + } } } ] - } - }, - "\/databases\/{databaseId}\/collections\/{collectionId}\/documents\/{documentId}": { - "get": { - "summary": "Get document", - "operationId": "databasesGetDocument", + }, + "put": { + "summary": "Create or update documents", + "operationId": "databasesUpsertDocuments", "consumes": [ "application\/json" ], @@ -8373,36 +8190,32 @@ "tags": [ "databases" ], - "description": "Get a document by its unique ID. This endpoint response returns a JSON object with the document data.", + "description": "Create or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.\n", "responses": { "200": { - "description": "Document", + "description": "Documents List", "schema": { - "$ref": "#\/definitions\/document" + "$ref": "#\/definitions\/documentList" } } }, "x-appwrite": { - "method": "getDocument", - "weight": 109, + "method": "upsertDocuments", + "group": "documents", + "weight": 114, "cookies": false, "type": "", "deprecated": false, - "demo": "databases\/get-document.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-document.md", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "documents.read", + "demo": "databases\/upsert-documents.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-documents.md", + "rate-limit": 120, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", "platforms": [ - "client", - "server", "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8410,8 +8223,7 @@ "security": [ { "Project": [], - "Key": [], - "JWT": [] + "Key": [] } ], "parameters": [ @@ -8425,37 +8237,35 @@ }, { "name": "collectionId", - "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "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": "queries", - "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Maximum of 100 queries are allowed, each 4096 characters long.", - "required": false, - "type": "array", - "collectionFormat": "multi", - "items": { - "type": "string" - }, - "default": [], - "in": "query" + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "documents": { + "type": "array", + "description": "Array of document data as JSON objects. May contain partial documents.", + "default": [], + "x-example": null, + "items": { + "type": "object" + } + } + } + } } ] }, "patch": { - "summary": "Update document", - "operationId": "databasesUpdateDocument", + "summary": "Update documents", + "operationId": "databasesUpdateDocuments", "consumes": [ "application\/json" ], @@ -8465,36 +8275,32 @@ "tags": [ "databases" ], - "description": "Update a document by its unique ID. Using the patch method you can pass only specific fields that will get updated.", + "description": "Update all documents that match your queries, if no queries are submitted then all documents are updated. You can pass only specific fields to be updated.", "responses": { "200": { - "description": "Document", + "description": "Documents List", "schema": { - "$ref": "#\/definitions\/document" + "$ref": "#\/definitions\/documentList" } } }, "x-appwrite": { - "method": "updateDocument", - "weight": 111, + "method": "updateDocuments", + "group": "documents", + "weight": 113, "cookies": false, "type": "", "deprecated": false, - "demo": "databases\/update-document.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-document.md", + "demo": "databases\/update-documents.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-documents.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", "scope": "documents.write", "platforms": [ - "client", - "server", "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8502,8 +8308,7 @@ "security": [ { "Project": [], - "Key": [], - "JWT": [] + "Key": [] } ], "parameters": [ @@ -8523,14 +8328,6 @@ "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", @@ -8543,11 +8340,11 @@ "default": [], "x-example": "{}" }, - "permissions": { + "queries": { "type": "array", - "description": "An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).", - "default": null, - "x-example": "[\"read(\"any\")\"]", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Maximum of 100 queries are allowed, each 4096 characters long.", + "default": [], + "x-example": null, "items": { "type": "string" } @@ -8558,29 +8355,307 @@ ] }, "delete": { - "summary": "Delete document", - "operationId": "databasesDeleteDocument", + "summary": "Delete documents", + "operationId": "databasesDeleteDocuments", "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], - "description": "Delete a document by its unique ID.", + "description": "Bulk delete documents using queries, if no queries are passed then all documents are deleted.", "responses": { - "204": { - "description": "No content" + "200": { + "description": "Documents List", + "schema": { + "$ref": "#\/definitions\/documentList" + } } }, "x-appwrite": { - "method": "deleteDocument", - "weight": 112, + "method": "deleteDocuments", + "group": "documents", + "weight": 116, "cookies": false, "type": "", "deprecated": false, - "demo": "databases\/delete-document.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-document.md", + "demo": "databases\/delete-documents.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-documents.md", + "rate-limit": 60, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "<DATABASE_ID>", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "<COLLECTION_ID>", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "queries": { + "type": "array", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Maximum of 100 queries are allowed, each 4096 characters long.", + "default": [], + "x-example": null, + "items": { + "type": "string" + } + } + } + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/documents\/{documentId}": { + "get": { + "summary": "Get document", + "operationId": "databasesGetDocument", + "consumes": [], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "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", + "group": "documents", + "weight": 110, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/get-document.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/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": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "<DATABASE_ID>", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "<COLLECTION_ID>", + "in": "path" + }, + { + "name": "documentId", + "description": "Document ID.", + "required": true, + "type": "string", + "x-example": "<DOCUMENT_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\/queries). Maximum of 100 queries are allowed, each 4096 characters long.", + "required": false, + "type": "array", + "collectionFormat": "multi", + "items": { + "type": "string" + }, + "default": [], + "in": "query" + } + ] + }, + "patch": { + "summary": "Update document", + "operationId": "databasesUpdateDocument", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "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", + "group": "documents", + "weight": 112, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/update-document.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-document.md", + "rate-limit": 120, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "client", + "server", + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [], + "JWT": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "<DATABASE_ID>", + "in": "path" + }, + { + "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": "{}" + }, + "permissions": { + "type": "array", + "description": "An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).", + "default": null, + "x-example": "[\"read(\"any\")\"]", + "items": { + "type": "string" + } + } + } + } + } + ] + }, + "delete": { + "summary": "Delete document", + "operationId": "databasesDeleteDocument", + "consumes": [ + "application\/json" + ], + "produces": [], + "tags": [ + "databases" + ], + "description": "Delete a document by its unique ID.", + "responses": { + "204": { + "description": "No content" + } + }, + "x-appwrite": { + "method": "deleteDocument", + "group": "documents", + "weight": 115, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/delete-document.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-document.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", @@ -8591,9 +8666,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8637,9 +8709,7 @@ "get": { "summary": "List document logs", "operationId": "databasesListDocumentLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -8657,7 +8727,8 @@ }, "x-appwrite": { "method": "listDocumentLogs", - "weight": 110, + "group": "logs", + "weight": 111, "cookies": false, "type": "", "deprecated": false, @@ -8671,9 +8742,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8727,9 +8795,7 @@ "get": { "summary": "List indexes", "operationId": "databasesListIndexes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -8747,7 +8813,8 @@ }, "x-appwrite": { "method": "listIndexes", - "weight": 104, + "group": "indexes", + "weight": 105, "cookies": false, "type": "", "deprecated": false, @@ -8761,9 +8828,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8828,7 +8892,8 @@ }, "x-appwrite": { "method": "createIndex", - "weight": 103, + "group": "collections", + "weight": 104, "cookies": false, "type": "", "deprecated": false, @@ -8842,9 +8907,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -8930,9 +8992,7 @@ "get": { "summary": "Get index", "operationId": "databasesGetIndex", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -8950,7 +9010,8 @@ }, "x-appwrite": { "method": "getIndex", - "weight": 105, + "group": "indexes", + "weight": 106, "cookies": false, "type": "", "deprecated": false, @@ -8964,9 +9025,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9021,7 +9079,8 @@ }, "x-appwrite": { "method": "deleteIndex", - "weight": 106, + "group": "indexes", + "weight": 107, "cookies": false, "type": "", "deprecated": false, @@ -9035,9 +9094,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9079,9 +9135,7 @@ "get": { "summary": "List collection logs", "operationId": "databasesListCollectionLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -9099,7 +9153,8 @@ }, "x-appwrite": { "method": "listCollectionLogs", - "weight": 77, + "group": "collections", + "weight": 78, "cookies": false, "type": "", "deprecated": false, @@ -9113,9 +9168,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9161,16 +9213,14 @@ "get": { "summary": "Get collection usage stats", "operationId": "databasesGetCollectionUsage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "databases" ], - "description": "", + "description": "Get usage metrics and statistics for a collection. Returning the total number of documents. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", "responses": { "200": { "description": "UsageCollection", @@ -9181,12 +9231,13 @@ }, "x-appwrite": { "method": "getCollectionUsage", - "weight": 115, + "group": null, + "weight": 119, "cookies": false, "type": "", "deprecated": false, "demo": "databases\/get-collection-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-collection-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9195,9 +9246,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9251,9 +9299,7 @@ "get": { "summary": "List database logs", "operationId": "databasesListLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -9271,7 +9317,8 @@ }, "x-appwrite": { "method": "listLogs", - "weight": 71, + "group": "logs", + "weight": 72, "cookies": false, "type": "", "deprecated": false, @@ -9285,9 +9332,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9325,16 +9369,14 @@ "get": { "summary": "Get database usage stats", "operationId": "databasesGetDatabaseUsage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "databases" ], - "description": "", + "description": "Get usage metrics and statistics for a database. You can view the total number of collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", "responses": { "200": { "description": "UsageDatabase", @@ -9345,12 +9387,13 @@ }, "x-appwrite": { "method": "getDatabaseUsage", - "weight": 114, + "group": null, + "weight": 118, "cookies": false, "type": "", "deprecated": false, "demo": "databases\/get-database-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-database-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9359,9 +9402,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9407,9 +9447,7 @@ "get": { "summary": "List functions", "operationId": "functionsList", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -9427,7 +9465,8 @@ }, "x-appwrite": { "method": "list", - "weight": 287, + "group": "functions", + "weight": 291, "cookies": false, "type": "", "deprecated": false, @@ -9441,9 +9480,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9501,7 +9537,8 @@ }, "x-appwrite": { "method": "create", - "weight": 286, + "group": "functions", + "weight": 290, "cookies": false, "type": "", "deprecated": false, @@ -9515,9 +9552,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9559,6 +9593,7 @@ "node-19.0", "node-20.0", "node-21.0", + "node-22", "php-8.0", "php-8.1", "php-8.2", @@ -9577,6 +9612,8 @@ "deno-1.24", "deno-1.35", "deno-1.40", + "deno-1.46", + "deno-2.0", "dart-2.15", "dart-2.16", "dart-2.17", @@ -9584,24 +9621,31 @@ "dart-3.0", "dart-3.1", "dart-3.3", - "dotnet-3.1", + "dart-3.5", "dotnet-6.0", "dotnet-7.0", + "dotnet-8.0", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", + "java-22", "swift-5.5", "swift-5.8", "swift-5.9", + "swift-5.10", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", + "kotlin-2.0", "cpp-17", "cpp-20", "bun-1.0", - "go-1.23" + "bun-1.1", + "go-1.23", + "static-1", + "flutter-3.24" ], "x-enum-name": null, "x-enum-keys": [] @@ -9726,7 +9770,7 @@ "specification": { "type": "string", "description": "Runtime specification for the function and builds.", - "default": "s-0.5vcpu-512mb", + "default": "s-1vcpu-512mb", "x-example": null } }, @@ -9744,9 +9788,7 @@ "get": { "summary": "List runtimes", "operationId": "functionsListRuntimes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -9764,7 +9806,8 @@ }, "x-appwrite": { "method": "listRuntimes", - "weight": 288, + "group": "runtimes", + "weight": 292, "cookies": false, "type": "", "deprecated": false, @@ -9778,9 +9821,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9797,9 +9837,7 @@ "get": { "summary": "List available function runtime specifications", "operationId": "functionsListSpecifications", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -9817,7 +9855,8 @@ }, "x-appwrite": { "method": "listSpecifications", - "weight": 289, + "group": "runtimes", + "weight": 293, "cookies": false, "type": "", "deprecated": false, @@ -9832,9 +9871,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9851,9 +9887,7 @@ "get": { "summary": "List function templates", "operationId": "functionsListTemplates", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -9871,7 +9905,8 @@ }, "x-appwrite": { "method": "listTemplates", - "weight": 312, + "group": "templates", + "weight": 316, "cookies": false, "type": "", "deprecated": false, @@ -9885,9 +9920,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -9949,9 +9981,7 @@ "get": { "summary": "Get function template", "operationId": "functionsGetTemplate", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -9969,7 +9999,8 @@ }, "x-appwrite": { "method": "getTemplate", - "weight": 313, + "group": "templates", + "weight": 317, "cookies": false, "type": "", "deprecated": false, @@ -9983,9 +10014,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10011,16 +10039,14 @@ "get": { "summary": "Get functions usage", "operationId": "functionsGetUsage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "functions" ], - "description": "", + "description": "Get usage metrics and statistics for a for all functions. View statistics including total functions, deployments, builds, executions, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days.", "responses": { "200": { "description": "UsageFunctions", @@ -10031,12 +10057,13 @@ }, "x-appwrite": { "method": "getUsage", - "weight": 292, + "group": null, + "weight": 296, "cookies": false, "type": "", "deprecated": false, "demo": "functions\/get-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/get-functions-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10045,9 +10072,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10085,9 +10109,7 @@ "get": { "summary": "Get function", "operationId": "functionsGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -10105,7 +10127,8 @@ }, "x-appwrite": { "method": "get", - "weight": 290, + "group": "functions", + "weight": 294, "cookies": false, "type": "", "deprecated": false, @@ -10119,9 +10142,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10166,7 +10186,8 @@ }, "x-appwrite": { "method": "update", - "weight": 293, + "group": "functions", + "weight": 297, "cookies": false, "type": "", "deprecated": false, @@ -10180,9 +10201,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10226,6 +10244,7 @@ "node-19.0", "node-20.0", "node-21.0", + "node-22", "php-8.0", "php-8.1", "php-8.2", @@ -10244,6 +10263,8 @@ "deno-1.24", "deno-1.35", "deno-1.40", + "deno-1.46", + "deno-2.0", "dart-2.15", "dart-2.16", "dart-2.17", @@ -10251,24 +10272,31 @@ "dart-3.0", "dart-3.1", "dart-3.3", - "dotnet-3.1", + "dart-3.5", "dotnet-6.0", "dotnet-7.0", + "dotnet-8.0", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", + "java-22", "swift-5.5", "swift-5.8", "swift-5.9", + "swift-5.10", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", + "kotlin-2.0", "cpp-17", "cpp-20", "bun-1.0", - "go-1.23" + "bun-1.1", + "go-1.23", + "static-1", + "flutter-3.24" ], "x-enum-name": null, "x-enum-keys": [] @@ -10370,7 +10398,7 @@ "specification": { "type": "string", "description": "Runtime specification for the function and builds.", - "default": "s-0.5vcpu-512mb", + "default": "s-1vcpu-512mb", "x-example": null } }, @@ -10399,7 +10427,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 296, + "group": "functions", + "weight": 300, "cookies": false, "type": "", "deprecated": false, @@ -10413,9 +10442,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10442,9 +10468,7 @@ "get": { "summary": "List deployments", "operationId": "functionsListDeployments", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -10462,7 +10486,8 @@ }, "x-appwrite": { "method": "listDeployments", - "weight": 298, + "group": "deployments", + "weight": 302, "cookies": false, "type": "", "deprecated": false, @@ -10476,9 +10501,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10544,7 +10566,8 @@ }, "x-appwrite": { "method": "createDeployment", - "weight": 297, + "group": "deployments", + "weight": 301, "cookies": false, "type": "upload", "deprecated": false, @@ -10558,9 +10581,6 @@ "server" ], "packaging": true, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10618,9 +10638,7 @@ "get": { "summary": "Get deployment", "operationId": "functionsGetDeployment", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -10638,7 +10656,8 @@ }, "x-appwrite": { "method": "getDeployment", - "weight": 299, + "group": "deployments", + "weight": 303, "cookies": false, "type": "", "deprecated": false, @@ -10652,9 +10671,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10707,7 +10723,8 @@ }, "x-appwrite": { "method": "updateDeployment", - "weight": 295, + "group": "deployments", + "weight": 299, "cookies": false, "type": "", "deprecated": false, @@ -10721,9 +10738,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10771,7 +10785,8 @@ }, "x-appwrite": { "method": "deleteDeployment", - "weight": 300, + "group": "deployments", + "weight": 304, "cookies": false, "type": "", "deprecated": false, @@ -10785,9 +10800,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10820,16 +10832,18 @@ }, "\/functions\/{functionId}\/deployments\/{deploymentId}\/build": { "post": { - "summary": "Rebuild deployment", + "summary": "Create deployment build", "operationId": "functionsCreateBuild", "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "functions" ], - "description": "", + "description": "Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build.", "responses": { "204": { "description": "No content" @@ -10837,12 +10851,13 @@ }, "x-appwrite": { "method": "createBuild", - "weight": 301, + "group": "deployments", + "weight": 305, "cookies": false, "type": "", "deprecated": false, "demo": "functions\/create-build.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/create-build.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10851,9 +10866,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10910,7 +10922,7 @@ "tags": [ "functions" ], - "description": "", + "description": "Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn't started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status 'ready') or failed. The response includes the final build status and details.", "responses": { "200": { "description": "Build", @@ -10921,12 +10933,13 @@ }, "x-appwrite": { "method": "updateDeploymentBuild", - "weight": 302, + "group": "deployments", + "weight": 306, "cookies": false, "type": "", "deprecated": false, "demo": "functions\/update-deployment-build.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/update-deployment-build.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -10935,9 +10948,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -10970,11 +10980,9 @@ }, "\/functions\/{functionId}\/deployments\/{deploymentId}\/download": { "get": { - "summary": "Download deployment", + "summary": "Get deployment download", "operationId": "functionsGetDeploymentDownload", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "*\/*" ], @@ -10992,7 +11000,8 @@ }, "x-appwrite": { "method": "getDeploymentDownload", - "weight": 294, + "group": "deployments", + "weight": 298, "cookies": false, "type": "location", "deprecated": false, @@ -11007,9 +11016,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11045,9 +11051,7 @@ "get": { "summary": "List executions", "operationId": "functionsListExecutions", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11065,7 +11069,8 @@ }, "x-appwrite": { "method": "listExecutions", - "weight": 304, + "group": "executions", + "weight": 308, "cookies": false, "type": "", "deprecated": false, @@ -11081,9 +11086,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11131,7 +11133,7 @@ "summary": "Create execution", "operationId": "functionsCreateExecution", "consumes": [ - "multipart\/form-data" + "application\/json" ], "produces": [ "multipart\/form-data" @@ -11150,7 +11152,8 @@ }, "x-appwrite": { "method": "createExecution", - "weight": 303, + "group": "executions", + "weight": 307, "cookies": false, "type": "", "deprecated": false, @@ -11166,9 +11169,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11190,65 +11190,59 @@ "in": "path" }, { - "name": "body", - "description": "HTTP body of execution. Default value is empty string.", - "required": false, - "type": "payload", - "default": "", - "in": "formData" - }, - { - "name": "async", - "description": "Execute code in the background. Default value is false.", - "required": false, - "type": "boolean", - "x-example": false, - "default": false, - "in": "formData" - }, - { - "name": "path", - "description": "HTTP path of execution. Path can include query params. Default value is \/", - "required": false, - "type": "string", - "x-example": "<PATH>", - "default": "\/", - "in": "formData" - }, - { - "name": "method", - "description": "HTTP method of execution. Default value is GET.", - "required": false, - "type": "string", - "x-example": "GET", - "enum": [ - "GET", - "POST", - "PUT", - "PATCH", - "DELETE", - "OPTIONS" - ], - "x-enum-name": "ExecutionMethod", - "x-enum-keys": [], - "default": "POST", - "in": "formData" - }, - { - "name": "headers", - "description": "HTTP headers of execution. Defaults to empty.", - "required": false, - "type": "object", - "default": [], - "x-example": "{}", - "in": "formData" - }, - { - "name": "scheduledAt", - "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", - "required": false, - "type": "string", - "in": "formData" + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "body": { + "type": "string", + "description": "HTTP body of execution. Default value is empty string.", + "default": "", + "x-example": "<BODY>" + }, + "async": { + "type": "boolean", + "description": "Execute code in the background. Default value is false.", + "default": false, + "x-example": false + }, + "path": { + "type": "string", + "description": "HTTP path of execution. Path can include query params. Default value is \/", + "default": "\/", + "x-example": "<PATH>" + }, + "method": { + "type": "string", + "description": "HTTP method of execution. Default value is GET.", + "default": "POST", + "x-example": "GET", + "enum": [ + "GET", + "POST", + "PUT", + "PATCH", + "DELETE", + "OPTIONS" + ], + "x-enum-name": "ExecutionMethod", + "x-enum-keys": [] + }, + "headers": { + "type": "object", + "description": "HTTP headers of execution. Defaults to empty.", + "default": [], + "x-example": "{}" + }, + "scheduledAt": { + "type": "string", + "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", + "default": null, + "x-example": null + } + } + } } ] } @@ -11257,9 +11251,7 @@ "get": { "summary": "Get execution", "operationId": "functionsGetExecution", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11277,7 +11269,8 @@ }, "x-appwrite": { "method": "getExecution", - "weight": 305, + "group": "executions", + "weight": 309, "cookies": false, "type": "", "deprecated": false, @@ -11293,9 +11286,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11344,7 +11334,8 @@ }, "x-appwrite": { "method": "deleteExecution", - "weight": 306, + "group": "executions", + "weight": 310, "cookies": false, "type": "", "deprecated": false, @@ -11358,9 +11349,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11395,16 +11383,14 @@ "get": { "summary": "Get function usage", "operationId": "functionsGetFunctionUsage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "functions" ], - "description": "", + "description": "Get usage metrics and statistics for a for a specific function. View statistics including total deployments, builds, executions, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days.", "responses": { "200": { "description": "UsageFunction", @@ -11415,12 +11401,13 @@ }, "x-appwrite": { "method": "getFunctionUsage", - "weight": 291, + "group": null, + "weight": 295, "cookies": false, "type": "", "deprecated": false, "demo": "functions\/get-function-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/get-function-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11429,9 +11416,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11477,9 +11461,7 @@ "get": { "summary": "List variables", "operationId": "functionsListVariables", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11497,7 +11479,8 @@ }, "x-appwrite": { "method": "listVariables", - "weight": 308, + "group": "variables", + "weight": 312, "cookies": false, "type": "", "deprecated": false, @@ -11511,9 +11494,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11558,7 +11538,8 @@ }, "x-appwrite": { "method": "createVariable", - "weight": 307, + "group": "variables", + "weight": 311, "cookies": false, "type": "", "deprecated": false, @@ -11572,9 +11553,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11626,9 +11604,7 @@ "get": { "summary": "Get variable", "operationId": "functionsGetVariable", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11646,7 +11622,8 @@ }, "x-appwrite": { "method": "getVariable", - "weight": 309, + "group": "variables", + "weight": 313, "cookies": false, "type": "", "deprecated": false, @@ -11660,9 +11637,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11715,7 +11689,8 @@ }, "x-appwrite": { "method": "updateVariable", - "weight": 310, + "group": "variables", + "weight": 314, "cookies": false, "type": "", "deprecated": false, @@ -11729,9 +11704,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11803,7 +11775,8 @@ }, "x-appwrite": { "method": "deleteVariable", - "weight": 311, + "group": "variables", + "weight": 315, "cookies": false, "type": "", "deprecated": false, @@ -11817,9 +11790,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11874,7 +11844,8 @@ }, "x-appwrite": { "method": "query", - "weight": 329, + "group": "graphql", + "weight": 333, "cookies": false, "type": "graphql", "deprecated": false, @@ -11890,9 +11861,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -11950,7 +11918,8 @@ }, "x-appwrite": { "method": "mutation", - "weight": 328, + "group": "graphql", + "weight": 332, "cookies": false, "type": "graphql", "deprecated": false, @@ -11966,9 +11935,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12006,9 +11972,7 @@ "get": { "summary": "Get HTTP", "operationId": "healthGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12026,7 +11990,8 @@ }, "x-appwrite": { "method": "get", - "weight": 124, + "group": "health", + "weight": 128, "cookies": false, "type": "", "deprecated": false, @@ -12040,9 +12005,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12059,9 +12021,7 @@ "get": { "summary": "Get antivirus", "operationId": "healthGetAntivirus", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12079,7 +12039,8 @@ }, "x-appwrite": { "method": "getAntivirus", - "weight": 146, + "group": "health", + "weight": 149, "cookies": false, "type": "", "deprecated": false, @@ -12093,9 +12054,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12112,9 +12070,7 @@ "get": { "summary": "Get cache", "operationId": "healthGetCache", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12132,7 +12088,8 @@ }, "x-appwrite": { "method": "getCache", - "weight": 127, + "group": "health", + "weight": 131, "cookies": false, "type": "", "deprecated": false, @@ -12146,9 +12103,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12165,9 +12119,7 @@ "get": { "summary": "Get the SSL certificate for a domain", "operationId": "healthGetCertificate", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12185,7 +12137,8 @@ }, "x-appwrite": { "method": "getCertificate", - "weight": 133, + "group": "health", + "weight": 136, "cookies": false, "type": "", "deprecated": false, @@ -12199,9 +12152,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12227,9 +12177,7 @@ "get": { "summary": "Get DB", "operationId": "healthGetDB", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12247,7 +12195,8 @@ }, "x-appwrite": { "method": "getDB", - "weight": 126, + "group": "health", + "weight": 130, "cookies": false, "type": "", "deprecated": false, @@ -12261,9 +12210,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12280,9 +12226,7 @@ "get": { "summary": "Get pubsub", "operationId": "healthGetPubSub", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12300,7 +12244,8 @@ }, "x-appwrite": { "method": "getPubSub", - "weight": 129, + "group": "health", + "weight": 132, "cookies": false, "type": "", "deprecated": false, @@ -12314,62 +12259,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", - "auth": { - "Project": [] - } - }, - "security": [ - { - "Project": [], - "Key": [] - } - ] - } - }, - "\/health\/queue": { - "get": { - "summary": "Get queue", - "operationId": "healthGetQueue", - "consumes": [ - "application\/json" - ], - "produces": [ - "application\/json" - ], - "tags": [ - "health" - ], - "description": "Check the Appwrite queue messaging servers are up and connection is successful.", - "responses": { - "200": { - "description": "Health Status", - "schema": { - "$ref": "#\/definitions\/healthStatus" - } - } - }, - "x-appwrite": { - "method": "getQueue", - "weight": 128, - "cookies": false, - "type": "", - "deprecated": false, - "demo": "health\/get-queue.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue.md", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "health.read", - "platforms": [ - "server" - ], - "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12386,9 +12275,7 @@ "get": { "summary": "Get builds queue", "operationId": "healthGetQueueBuilds", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12406,7 +12293,8 @@ }, "x-appwrite": { "method": "getQueueBuilds", - "weight": 135, + "group": "queue", + "weight": 138, "cookies": false, "type": "", "deprecated": false, @@ -12420,9 +12308,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12450,9 +12335,7 @@ "get": { "summary": "Get certificates queue", "operationId": "healthGetQueueCertificates", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12470,7 +12353,8 @@ }, "x-appwrite": { "method": "getQueueCertificates", - "weight": 134, + "group": "queue", + "weight": 137, "cookies": false, "type": "", "deprecated": false, @@ -12484,9 +12368,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12514,9 +12395,7 @@ "get": { "summary": "Get databases queue", "operationId": "healthGetQueueDatabases", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12534,7 +12413,8 @@ }, "x-appwrite": { "method": "getQueueDatabases", - "weight": 136, + "group": "queue", + "weight": 139, "cookies": false, "type": "", "deprecated": false, @@ -12548,9 +12428,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12587,9 +12464,7 @@ "get": { "summary": "Get deletes queue", "operationId": "healthGetQueueDeletes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12607,7 +12482,8 @@ }, "x-appwrite": { "method": "getQueueDeletes", - "weight": 137, + "group": "queue", + "weight": 140, "cookies": false, "type": "", "deprecated": false, @@ -12621,9 +12497,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12651,9 +12524,7 @@ "get": { "summary": "Get number of failed queue jobs", "operationId": "healthGetFailedJobs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12671,7 +12542,8 @@ }, "x-appwrite": { "method": "getFailedJobs", - "weight": 147, + "group": "queue", + "weight": 150, "cookies": false, "type": "", "deprecated": false, @@ -12685,9 +12557,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12711,8 +12580,8 @@ "v1-audits", "v1-mails", "v1-functions", - "v1-usage", - "v1-usage-dump", + "v1-stats-resources", + "v1-stats-usage", "v1-webhooks", "v1-certificates", "v1-builds", @@ -12739,9 +12608,7 @@ "get": { "summary": "Get functions queue", "operationId": "healthGetQueueFunctions", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12759,7 +12626,8 @@ }, "x-appwrite": { "method": "getQueueFunctions", - "weight": 141, + "group": "queue", + "weight": 144, "cookies": false, "type": "", "deprecated": false, @@ -12773,9 +12641,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12803,9 +12668,7 @@ "get": { "summary": "Get logs queue", "operationId": "healthGetQueueLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12823,7 +12686,8 @@ }, "x-appwrite": { "method": "getQueueLogs", - "weight": 132, + "group": "queue", + "weight": 135, "cookies": false, "type": "", "deprecated": false, @@ -12837,9 +12701,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12867,9 +12728,7 @@ "get": { "summary": "Get mails queue", "operationId": "healthGetQueueMails", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12887,7 +12746,8 @@ }, "x-appwrite": { "method": "getQueueMails", - "weight": 138, + "group": "queue", + "weight": 141, "cookies": false, "type": "", "deprecated": false, @@ -12901,9 +12761,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12931,9 +12788,7 @@ "get": { "summary": "Get messaging queue", "operationId": "healthGetQueueMessaging", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12951,7 +12806,8 @@ }, "x-appwrite": { "method": "getQueueMessaging", - "weight": 139, + "group": "queue", + "weight": 142, "cookies": false, "type": "", "deprecated": false, @@ -12965,9 +12821,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -12995,9 +12848,7 @@ "get": { "summary": "Get migrations queue", "operationId": "healthGetQueueMigrations", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13015,7 +12866,8 @@ }, "x-appwrite": { "method": "getQueueMigrations", - "weight": 140, + "group": "queue", + "weight": 143, "cookies": false, "type": "", "deprecated": false, @@ -13029,9 +12881,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13055,20 +12904,18 @@ ] } }, - "\/health\/queue\/usage": { + "\/health\/queue\/stats-resources": { "get": { - "summary": "Get usage queue", - "operationId": "healthGetQueueUsage", - "consumes": [ - "application\/json" - ], + "summary": "Get stats resources queue", + "operationId": "healthGetQueueStatsResources", + "consumes": [], "produces": [ "application\/json" ], "tags": [ "health" ], - "description": "Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.", + "description": "Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.", "responses": { "200": { "description": "Health Queue", @@ -13078,13 +12925,14 @@ } }, "x-appwrite": { - "method": "getQueueUsage", - "weight": 142, + "method": "getQueueStatsResources", + "group": "queue", + "weight": 145, "cookies": false, "type": "", "deprecated": false, - "demo": "health\/get-queue-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-usage.md", + "demo": "health\/get-queue-stats-resources.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-stats-resources.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13093,9 +12941,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13119,20 +12964,18 @@ ] } }, - "\/health\/queue\/usage-dump": { + "\/health\/queue\/stats-usage": { "get": { - "summary": "Get usage dump queue", - "operationId": "healthGetQueueUsageDump", - "consumes": [ - "application\/json" - ], + "summary": "Get stats usage queue", + "operationId": "healthGetQueueUsage", + "consumes": [], "produces": [ "application\/json" ], "tags": [ "health" ], - "description": "Get the number of projects containing metrics that are waiting to be processed in the Appwrite internal queue server.", + "description": "Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.", "responses": { "200": { "description": "Health Queue", @@ -13142,13 +12985,14 @@ } }, "x-appwrite": { - "method": "getQueueUsageDump", - "weight": 143, + "method": "getQueueUsage", + "group": "queue", + "weight": 146, "cookies": false, "type": "", "deprecated": false, - "demo": "health\/get-queue-usage-dump.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-usage-dump.md", + "demo": "health\/get-queue-usage.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-stats-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13157,9 +13001,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13187,9 +13028,7 @@ "get": { "summary": "Get webhooks queue", "operationId": "healthGetQueueWebhooks", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13207,7 +13046,8 @@ }, "x-appwrite": { "method": "getQueueWebhooks", - "weight": 131, + "group": "queue", + "weight": 134, "cookies": false, "type": "", "deprecated": false, @@ -13221,9 +13061,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13251,9 +13088,7 @@ "get": { "summary": "Get storage", "operationId": "healthGetStorage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13271,7 +13106,8 @@ }, "x-appwrite": { "method": "getStorage", - "weight": 145, + "group": "storage", + "weight": 148, "cookies": false, "type": "", "deprecated": false, @@ -13285,9 +13121,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13304,9 +13137,7 @@ "get": { "summary": "Get local storage", "operationId": "healthGetStorageLocal", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13324,7 +13155,8 @@ }, "x-appwrite": { "method": "getStorageLocal", - "weight": 144, + "group": "storage", + "weight": 147, "cookies": false, "type": "", "deprecated": false, @@ -13338,9 +13170,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13357,9 +13186,7 @@ "get": { "summary": "Get time", "operationId": "healthGetTime", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13377,7 +13204,8 @@ }, "x-appwrite": { "method": "getTime", - "weight": 130, + "group": "health", + "weight": 133, "cookies": false, "type": "", "deprecated": false, @@ -13391,9 +13219,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13410,9 +13235,7 @@ "get": { "summary": "Get user locale", "operationId": "localeGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13430,7 +13253,8 @@ }, "x-appwrite": { "method": "get", - "weight": 116, + "group": null, + "weight": 120, "cookies": false, "type": "", "deprecated": false, @@ -13446,9 +13270,6 @@ "server" ], "packaging": false, - "offline-model": "\/localed", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13464,11 +13285,9 @@ }, "\/locale\/codes": { "get": { - "summary": "List Locale Codes", + "summary": "List locale codes", "operationId": "localeListCodes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13486,7 +13305,8 @@ }, "x-appwrite": { "method": "listCodes", - "weight": 117, + "group": null, + "weight": 121, "cookies": false, "type": "", "deprecated": false, @@ -13502,9 +13322,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/localeCode", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13522,9 +13339,7 @@ "get": { "summary": "List continents", "operationId": "localeListContinents", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13542,7 +13357,8 @@ }, "x-appwrite": { "method": "listContinents", - "weight": 121, + "group": null, + "weight": 125, "cookies": false, "type": "", "deprecated": false, @@ -13558,9 +13374,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/continents", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -13578,9 +13391,7 @@ "get": { "summary": "List countries", "operationId": "localeListCountries", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13598,7 +13409,8 @@ }, "x-appwrite": { "method": "listCountries", - "weight": 118, + "group": null, + "weight": 122, "cookies": false, "type": "", "deprecated": false, @@ -13614,9 +13426,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -13634,9 +13443,7 @@ "get": { "summary": "List EU countries", "operationId": "localeListCountriesEU", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13654,7 +13461,8 @@ }, "x-appwrite": { "method": "listCountriesEU", - "weight": 119, + "group": null, + "weight": 123, "cookies": false, "type": "", "deprecated": false, @@ -13670,9 +13478,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries\/eu", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -13690,9 +13495,7 @@ "get": { "summary": "List countries phone codes", "operationId": "localeListCountriesPhones", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13710,7 +13513,8 @@ }, "x-appwrite": { "method": "listCountriesPhones", - "weight": 120, + "group": null, + "weight": 124, "cookies": false, "type": "", "deprecated": false, @@ -13726,9 +13530,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries\/phones", - "offline-key": "", - "offline-response-key": "countryCode", "auth": { "Project": [] } @@ -13746,9 +13547,7 @@ "get": { "summary": "List currencies", "operationId": "localeListCurrencies", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13766,7 +13565,8 @@ }, "x-appwrite": { "method": "listCurrencies", - "weight": 122, + "group": null, + "weight": 126, "cookies": false, "type": "", "deprecated": false, @@ -13782,9 +13582,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/currencies", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -13802,9 +13599,7 @@ "get": { "summary": "List languages", "operationId": "localeListLanguages", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13822,7 +13617,8 @@ }, "x-appwrite": { "method": "listLanguages", - "weight": 123, + "group": null, + "weight": 127, "cookies": false, "type": "", "deprecated": false, @@ -13838,9 +13634,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/languages", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [] } @@ -13858,9 +13651,7 @@ "get": { "summary": "List messages", "operationId": "messagingListMessages", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13878,7 +13669,8 @@ }, "x-appwrite": { "method": "listMessages", - "weight": 388, + "group": "messages", + "weight": 386, "cookies": false, "type": "", "deprecated": false, @@ -13893,9 +13685,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -13955,7 +13744,8 @@ }, "x-appwrite": { "method": "createEmail", - "weight": 385, + "group": "messages", + "weight": 383, "cookies": false, "type": "", "deprecated": false, @@ -13970,9 +13760,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14104,7 +13891,7 @@ "tags": [ "messaging" ], - "description": "Update an email message by its unique ID.\n", + "description": "Update an email message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", "responses": { "200": { "description": "Message", @@ -14115,7 +13902,8 @@ }, "x-appwrite": { "method": "updateEmail", - "weight": 392, + "group": "messages", + "weight": 390, "cookies": false, "type": "", "deprecated": false, @@ -14130,9 +13918,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14272,7 +14057,8 @@ }, "x-appwrite": { "method": "createPush", - "weight": 387, + "group": "messages", + "weight": 385, "cookies": false, "type": "", "deprecated": false, @@ -14287,9 +14073,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14316,13 +14099,13 @@ "title": { "type": "string", "description": "Title for push notification.", - "default": null, + "default": "", "x-example": "<TITLE>" }, "body": { "type": "string", "description": "Body for push notification.", - "default": null, + "default": "", "x-example": "<BODY>" }, "topics": { @@ -14354,7 +14137,7 @@ }, "data": { "type": "object", - "description": "Additional Data for push notification.", + "description": "Additional key-value pair data for push notification.", "default": {}, "x-example": "{}" }, @@ -14378,7 +14161,7 @@ }, "sound": { "type": "string", - "description": "Sound for push notification. Available only for Android and IOS Platform.", + "description": "Sound for push notification. Available only for Android and iOS Platform.", "default": "", "x-example": "<SOUND>" }, @@ -14395,10 +14178,10 @@ "x-example": "<TAG>" }, "badge": { - "type": "string", - "description": "Badge for push notification. Available only for IOS Platform.", - "default": "", - "x-example": "<BADGE>" + "type": "integer", + "description": "Badge for push notification. Available only for iOS Platform.", + "default": -1, + "x-example": null }, "draft": { "type": "boolean", @@ -14411,12 +14194,34 @@ "description": "Scheduled delivery time for message in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future.", "default": null, "x-example": null + }, + "contentAvailable": { + "type": "boolean", + "description": "If set to true, the notification will be delivered in the background. Available only for iOS Platform.", + "default": false, + "x-example": false + }, + "critical": { + "type": "boolean", + "description": "If set to true, the notification will be marked as critical. This requires the app to have the critical notification entitlement. Available only for iOS Platform.", + "default": false, + "x-example": false + }, + "priority": { + "type": "string", + "description": "Set the notification priority. \"normal\" will consider device state and may not deliver notifications immediately. \"high\" will always attempt to immediately deliver the notification.", + "default": "high", + "x-example": "normal", + "enum": [ + "normal", + "high" + ], + "x-enum-name": "MessagePriority", + "x-enum-keys": [] } }, "required": [ - "messageId", - "title", - "body" + "messageId" ] } } @@ -14436,7 +14241,7 @@ "tags": [ "messaging" ], - "description": "Update a push notification by its unique ID.\n", + "description": "Update a push notification by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", "responses": { "200": { "description": "Message", @@ -14447,7 +14252,8 @@ }, "x-appwrite": { "method": "updatePush", - "weight": 394, + "group": "messages", + "weight": 392, "cookies": false, "type": "", "deprecated": false, @@ -14462,9 +14268,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14588,6 +14391,30 @@ "description": "Scheduled delivery time for message in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future.", "default": null, "x-example": null + }, + "contentAvailable": { + "type": "boolean", + "description": "If set to true, the notification will be delivered in the background. Available only for iOS Platform.", + "default": null, + "x-example": false + }, + "critical": { + "type": "boolean", + "description": "If set to true, the notification will be marked as critical. This requires the app to have the critical notification entitlement. Available only for iOS Platform.", + "default": null, + "x-example": false + }, + "priority": { + "type": "string", + "description": "Set the notification priority. \"normal\" will consider device battery state and may send notifications later. \"high\" will always attempt to immediately deliver the notification.", + "default": null, + "x-example": "normal", + "enum": [ + "normal", + "high" + ], + "x-enum-name": "MessagePriority", + "x-enum-keys": [] } } } @@ -14619,7 +14446,8 @@ }, "x-appwrite": { "method": "createSms", - "weight": 386, + "group": "messages", + "weight": 384, "cookies": false, "type": "", "deprecated": false, @@ -14634,9 +14462,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14728,7 +14553,7 @@ "tags": [ "messaging" ], - "description": "Update an email message by its unique ID.\n", + "description": "Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", "responses": { "200": { "description": "Message", @@ -14739,12 +14564,13 @@ }, "x-appwrite": { "method": "updateSms", - "weight": 393, + "group": "messages", + "weight": 391, "cookies": false, "type": "", "deprecated": false, "demo": "messaging\/update-sms.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/update-email.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/update-sms.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -14754,9 +14580,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14837,9 +14660,7 @@ "get": { "summary": "Get message", "operationId": "messagingGetMessage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -14857,7 +14678,8 @@ }, "x-appwrite": { "method": "getMessage", - "weight": 391, + "group": "messages", + "weight": 389, "cookies": false, "type": "", "deprecated": false, @@ -14872,9 +14694,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14902,9 +14721,7 @@ "consumes": [ "application\/json" ], - "produces": [ - "application\/json" - ], + "produces": [], "tags": [ "messaging" ], @@ -14916,7 +14733,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 395, + "group": "messages", + "weight": 393, "cookies": false, "type": "", "deprecated": false, @@ -14931,9 +14749,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -14960,9 +14775,7 @@ "get": { "summary": "List message logs", "operationId": "messagingListMessageLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -14980,7 +14793,8 @@ }, "x-appwrite": { "method": "listMessageLogs", - "weight": 389, + "group": "logs", + "weight": 387, "cookies": false, "type": "", "deprecated": false, @@ -14995,9 +14809,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15036,9 +14847,7 @@ "get": { "summary": "List message targets", "operationId": "messagingListTargets", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -15056,7 +14865,8 @@ }, "x-appwrite": { "method": "listTargets", - "weight": 390, + "group": "messages", + "weight": 388, "cookies": false, "type": "", "deprecated": false, @@ -15071,9 +14881,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15112,9 +14919,7 @@ "get": { "summary": "List providers", "operationId": "messagingListProviders", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -15132,7 +14937,8 @@ }, "x-appwrite": { "method": "listProviders", - "weight": 360, + "group": "providers", + "weight": 358, "cookies": false, "type": "", "deprecated": false, @@ -15147,9 +14953,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15209,7 +15012,8 @@ }, "x-appwrite": { "method": "createApnsProvider", - "weight": 359, + "group": "providers", + "weight": 357, "cookies": false, "type": "", "deprecated": false, @@ -15224,9 +15028,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15326,7 +15127,8 @@ }, "x-appwrite": { "method": "updateApnsProvider", - "weight": 372, + "group": "providers", + "weight": 370, "cookies": false, "type": "", "deprecated": false, @@ -15341,9 +15143,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15441,7 +15240,8 @@ }, "x-appwrite": { "method": "createFcmProvider", - "weight": 358, + "group": "providers", + "weight": 356, "cookies": false, "type": "", "deprecated": false, @@ -15456,9 +15256,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15534,7 +15331,8 @@ }, "x-appwrite": { "method": "updateFcmProvider", - "weight": 371, + "group": "providers", + "weight": 369, "cookies": false, "type": "", "deprecated": false, @@ -15549,9 +15347,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15625,7 +15420,8 @@ }, "x-appwrite": { "method": "createMailgunProvider", - "weight": 350, + "group": "providers", + "weight": 348, "cookies": false, "type": "", "deprecated": false, @@ -15640,9 +15436,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15754,7 +15547,8 @@ }, "x-appwrite": { "method": "updateMailgunProvider", - "weight": 363, + "group": "providers", + "weight": 361, "cookies": false, "type": "", "deprecated": false, @@ -15769,9 +15563,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15881,7 +15672,8 @@ }, "x-appwrite": { "method": "createMsg91Provider", - "weight": 353, + "group": "providers", + "weight": 351, "cookies": false, "type": "", "deprecated": false, @@ -15896,9 +15688,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -15986,7 +15775,8 @@ }, "x-appwrite": { "method": "updateMsg91Provider", - "weight": 366, + "group": "providers", + "weight": 364, "cookies": false, "type": "", "deprecated": false, @@ -16001,9 +15791,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16089,7 +15876,8 @@ }, "x-appwrite": { "method": "createSendgridProvider", - "weight": 351, + "group": "providers", + "weight": 349, "cookies": false, "type": "", "deprecated": false, @@ -16104,9 +15892,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16206,7 +15991,8 @@ }, "x-appwrite": { "method": "updateSendgridProvider", - "weight": 364, + "group": "providers", + "weight": 362, "cookies": false, "type": "", "deprecated": false, @@ -16221,9 +16007,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16321,7 +16104,8 @@ }, "x-appwrite": { "method": "createSmtpProvider", - "weight": 352, + "group": "providers", + "weight": 350, "cookies": false, "type": "", "deprecated": false, @@ -16336,9 +16120,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16482,7 +16263,8 @@ }, "x-appwrite": { "method": "updateSmtpProvider", - "weight": 365, + "group": "providers", + "weight": 363, "cookies": false, "type": "", "deprecated": false, @@ -16497,9 +16279,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16640,7 +16419,8 @@ }, "x-appwrite": { "method": "createTelesignProvider", - "weight": 354, + "group": "providers", + "weight": 352, "cookies": false, "type": "", "deprecated": false, @@ -16655,9 +16435,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16745,7 +16522,8 @@ }, "x-appwrite": { "method": "updateTelesignProvider", - "weight": 367, + "group": "providers", + "weight": 365, "cookies": false, "type": "", "deprecated": false, @@ -16760,9 +16538,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16848,7 +16623,8 @@ }, "x-appwrite": { "method": "createTextmagicProvider", - "weight": 355, + "group": "providers", + "weight": 353, "cookies": false, "type": "", "deprecated": false, @@ -16863,9 +16639,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -16953,7 +16726,8 @@ }, "x-appwrite": { "method": "updateTextmagicProvider", - "weight": 368, + "group": "providers", + "weight": 366, "cookies": false, "type": "", "deprecated": false, @@ -16968,9 +16742,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17056,7 +16827,8 @@ }, "x-appwrite": { "method": "createTwilioProvider", - "weight": 356, + "group": "providers", + "weight": 354, "cookies": false, "type": "", "deprecated": false, @@ -17071,9 +16843,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17161,7 +16930,8 @@ }, "x-appwrite": { "method": "updateTwilioProvider", - "weight": 369, + "group": "providers", + "weight": 367, "cookies": false, "type": "", "deprecated": false, @@ -17176,9 +16946,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17264,7 +17031,8 @@ }, "x-appwrite": { "method": "createVonageProvider", - "weight": 357, + "group": "providers", + "weight": 355, "cookies": false, "type": "", "deprecated": false, @@ -17279,9 +17047,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17369,7 +17134,8 @@ }, "x-appwrite": { "method": "updateVonageProvider", - "weight": 370, + "group": "providers", + "weight": 368, "cookies": false, "type": "", "deprecated": false, @@ -17384,9 +17150,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17452,9 +17215,7 @@ "get": { "summary": "Get provider", "operationId": "messagingGetProvider", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -17472,7 +17233,8 @@ }, "x-appwrite": { "method": "getProvider", - "weight": 362, + "group": "providers", + "weight": 360, "cookies": false, "type": "", "deprecated": false, @@ -17487,9 +17249,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17517,9 +17276,7 @@ "consumes": [ "application\/json" ], - "produces": [ - "application\/json" - ], + "produces": [], "tags": [ "messaging" ], @@ -17531,7 +17288,8 @@ }, "x-appwrite": { "method": "deleteProvider", - "weight": 373, + "group": "providers", + "weight": 371, "cookies": false, "type": "", "deprecated": false, @@ -17546,9 +17304,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17575,9 +17330,7 @@ "get": { "summary": "List provider logs", "operationId": "messagingListProviderLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -17595,7 +17348,8 @@ }, "x-appwrite": { "method": "listProviderLogs", - "weight": 361, + "group": "providers", + "weight": 359, "cookies": false, "type": "", "deprecated": false, @@ -17610,9 +17364,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17651,9 +17402,7 @@ "get": { "summary": "List subscriber logs", "operationId": "messagingListSubscriberLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -17671,7 +17420,8 @@ }, "x-appwrite": { "method": "listSubscriberLogs", - "weight": 382, + "group": "subscribers", + "weight": 380, "cookies": false, "type": "", "deprecated": false, @@ -17686,9 +17436,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17727,9 +17474,7 @@ "get": { "summary": "List topics", "operationId": "messagingListTopics", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -17747,7 +17492,8 @@ }, "x-appwrite": { "method": "listTopics", - "weight": 375, + "group": "topics", + "weight": 373, "cookies": false, "type": "", "deprecated": false, @@ -17762,9 +17508,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17822,7 +17565,8 @@ }, "x-appwrite": { "method": "createTopic", - "weight": 374, + "group": "topics", + "weight": 372, "cookies": false, "type": "", "deprecated": false, @@ -17837,9 +17581,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17894,9 +17635,7 @@ "get": { "summary": "Get topic", "operationId": "messagingGetTopic", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -17914,7 +17653,8 @@ }, "x-appwrite": { "method": "getTopic", - "weight": 377, + "group": "topics", + "weight": 375, "cookies": false, "type": "", "deprecated": false, @@ -17929,9 +17669,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -17976,7 +17713,8 @@ }, "x-appwrite": { "method": "updateTopic", - "weight": 378, + "group": "topics", + "weight": 376, "cookies": false, "type": "", "deprecated": false, @@ -17991,9 +17729,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18045,9 +17780,7 @@ "consumes": [ "application\/json" ], - "produces": [ - "application\/json" - ], + "produces": [], "tags": [ "messaging" ], @@ -18059,7 +17792,8 @@ }, "x-appwrite": { "method": "deleteTopic", - "weight": 379, + "group": "topics", + "weight": 377, "cookies": false, "type": "", "deprecated": false, @@ -18074,9 +17808,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18103,9 +17834,7 @@ "get": { "summary": "List topic logs", "operationId": "messagingListTopicLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -18123,7 +17852,8 @@ }, "x-appwrite": { "method": "listTopicLogs", - "weight": 376, + "group": "topics", + "weight": 374, "cookies": false, "type": "", "deprecated": false, @@ -18138,9 +17868,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18179,9 +17906,7 @@ "get": { "summary": "List subscribers", "operationId": "messagingListSubscribers", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -18199,7 +17924,8 @@ }, "x-appwrite": { "method": "listSubscribers", - "weight": 381, + "group": "subscribers", + "weight": 379, "cookies": false, "type": "", "deprecated": false, @@ -18214,9 +17940,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18282,7 +18005,8 @@ }, "x-appwrite": { "method": "createSubscriber", - "weight": 380, + "group": "subscribers", + "weight": 378, "cookies": false, "type": "", "deprecated": false, @@ -18299,9 +18023,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18354,9 +18075,7 @@ "get": { "summary": "Get subscriber", "operationId": "messagingGetSubscriber", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -18374,7 +18093,8 @@ }, "x-appwrite": { "method": "getSubscriber", - "weight": 383, + "group": "subscribers", + "weight": 381, "cookies": false, "type": "", "deprecated": false, @@ -18389,9 +18109,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18427,9 +18144,7 @@ "consumes": [ "application\/json" ], - "produces": [ - "application\/json" - ], + "produces": [], "tags": [ "messaging" ], @@ -18441,7 +18156,8 @@ }, "x-appwrite": { "method": "deleteSubscriber", - "weight": 384, + "group": "subscribers", + "weight": 382, "cookies": false, "type": "", "deprecated": false, @@ -18458,9 +18174,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18494,18 +18207,16 @@ }, "\/migrations": { "get": { - "summary": "List Migrations", + "summary": "List migrations", "operationId": "migrationsList", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "migrations" ], - "description": "", + "description": "List all migrations in the current project. This endpoint returns a list of all migrations including their status, progress, and any errors that occurred during the migration process.", "responses": { "200": { "description": "Migrations List", @@ -18516,7 +18227,8 @@ }, "x-appwrite": { "method": "list", - "weight": 337, + "group": null, + "weight": 340, "cookies": false, "type": "", "deprecated": false, @@ -18530,9 +18242,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18545,7 +18254,7 @@ "parameters": [ { "name": "queries", - "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: status, stage, source, resources, statusCounters, resourceData, errors", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: status, stage, source, destination, resources, statusCounters, resourceData, errors", "required": false, "type": "array", "collectionFormat": "multi", @@ -18569,7 +18278,7 @@ }, "\/migrations\/appwrite": { "post": { - "summary": "Migrate Appwrite Data", + "summary": "Create Appwrite migration", "operationId": "migrationsCreateAppwriteMigration", "consumes": [ "application\/json" @@ -18580,7 +18289,7 @@ "tags": [ "migrations" ], - "description": "", + "description": "Migrate data from another Appwrite project to your current project. This endpoint allows you to migrate resources like databases, collections, documents, users, and files from an existing Appwrite project. ", "responses": { "202": { "description": "Migration", @@ -18591,7 +18300,8 @@ }, "x-appwrite": { "method": "createAppwriteMigration", - "weight": 332, + "group": null, + "weight": 336, "cookies": false, "type": "", "deprecated": false, @@ -18605,329 +18315,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", - "auth": { - "Project": [] - } - }, - "security": [ - { - "Project": [] - } - ], - "parameters": [ - { - "name": "payload", - "in": "body", - "schema": { - "type": "object", - "properties": { - "resources": { - "type": "array", - "description": "List of resources to migrate", - "default": null, - "x-example": null, - "items": { - "type": "string" - } - }, - "endpoint": { - "type": "string", - "description": "Source's Appwrite Endpoint", - "default": null, - "x-example": "https:\/\/example.com" - }, - "projectId": { - "type": "string", - "description": "Source's Project ID", - "default": null, - "x-example": "<PROJECT_ID>" - }, - "apiKey": { - "type": "string", - "description": "Source's API Key", - "default": null, - "x-example": "<API_KEY>" - } - }, - "required": [ - "resources", - "endpoint", - "projectId", - "apiKey" - ] - } - } - ] - } - }, - "\/migrations\/appwrite\/report": { - "get": { - "summary": "Generate a report on Appwrite Data", - "operationId": "migrationsGetAppwriteReport", - "consumes": [ - "application\/json" - ], - "produces": [ - "application\/json" - ], - "tags": [ - "migrations" - ], - "description": "", - "responses": { - "200": { - "description": "Migration Report", - "schema": { - "$ref": "#\/definitions\/migrationReport" - } - } - }, - "x-appwrite": { - "method": "getAppwriteReport", - "weight": 339, - "cookies": false, - "type": "", - "deprecated": false, - "demo": "migrations\/get-appwrite-report.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/migrations\/migration-appwrite-report.md", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "migrations.write", - "platforms": [ - "console" - ], - "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", - "auth": { - "Project": [] - } - }, - "security": [ - { - "Project": [] - } - ], - "parameters": [ - { - "name": "resources", - "description": "List of resources to migrate", - "required": true, - "type": "array", - "collectionFormat": "multi", - "items": { - "type": "string" - }, - "in": "query" - }, - { - "name": "endpoint", - "description": "Source's Appwrite Endpoint", - "required": true, - "type": "string", - "format": "url", - "x-example": "https:\/\/example.com", - "in": "query" - }, - { - "name": "projectID", - "description": "Source's Project ID", - "required": true, - "type": "string", - "x-example": "<PROJECT_ID>", - "in": "query" - }, - { - "name": "key", - "description": "Source's API Key", - "required": true, - "type": "string", - "x-example": "<KEY>", - "in": "query" - } - ] - } - }, - "\/migrations\/firebase": { - "post": { - "summary": "Migrate Firebase Data (Service Account)", - "operationId": "migrationsCreateFirebaseMigration", - "consumes": [ - "application\/json" - ], - "produces": [ - "application\/json" - ], - "tags": [ - "migrations" - ], - "description": "", - "responses": { - "202": { - "description": "Migration", - "schema": { - "$ref": "#\/definitions\/migration" - } - } - }, - "x-appwrite": { - "method": "createFirebaseMigration", - "weight": 334, - "cookies": false, - "type": "", - "deprecated": false, - "demo": "migrations\/create-firebase-migration.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/migrations\/migration-firebase.md", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "migrations.write", - "platforms": [ - "console" - ], - "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", - "auth": { - "Project": [] - } - }, - "security": [ - { - "Project": [] - } - ], - "parameters": [ - { - "name": "payload", - "in": "body", - "schema": { - "type": "object", - "properties": { - "resources": { - "type": "array", - "description": "List of resources to migrate", - "default": null, - "x-example": null, - "items": { - "type": "string" - } - }, - "serviceAccount": { - "type": "string", - "description": "JSON of the Firebase service account credentials", - "default": null, - "x-example": "<SERVICE_ACCOUNT>" - } - }, - "required": [ - "resources", - "serviceAccount" - ] - } - } - ] - } - }, - "\/migrations\/firebase\/deauthorize": { - "get": { - "summary": "Revoke Appwrite's authorization to access Firebase Projects", - "operationId": "migrationsDeleteFirebaseAuth", - "consumes": [ - "application\/json" - ], - "produces": [ - "application\/json" - ], - "tags": [ - "migrations" - ], - "description": "", - "responses": { - "200": { - "description": "File", - "schema": { - "type": "file" - } - } - }, - "x-appwrite": { - "method": "deleteFirebaseAuth", - "weight": 345, - "cookies": false, - "type": "", - "deprecated": false, - "demo": "migrations\/delete-firebase-auth.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "migrations.write", - "platforms": [ - "console" - ], - "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", - "auth": { - "Project": [] - } - }, - "security": [ - { - "Project": [] - } - ] - } - }, - "\/migrations\/firebase\/oauth": { - "post": { - "summary": "Migrate Firebase Data (OAuth)", - "operationId": "migrationsCreateFirebaseOAuthMigration", - "consumes": [ - "application\/json" - ], - "produces": [ - "application\/json" - ], - "tags": [ - "migrations" - ], - "description": "", - "responses": { - "202": { - "description": "Migration", - "schema": { - "$ref": "#\/definitions\/migration" - } - } - }, - "x-appwrite": { - "method": "createFirebaseOAuthMigration", - "weight": 333, - "cookies": false, - "type": "", - "deprecated": false, - "demo": "migrations\/create-firebase-o-auth-migration.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/migrations\/migration-firebase.md", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "migrations.write", - "platforms": [ - "console" - ], - "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -18953,63 +18340,73 @@ "type": "string" } }, + "endpoint": { + "type": "string", + "description": "Source Appwrite endpoint", + "default": null, + "x-example": "https:\/\/example.com" + }, "projectId": { "type": "string", - "description": "Project ID of the Firebase Project", + "description": "Source Project ID", "default": null, "x-example": "<PROJECT_ID>" + }, + "apiKey": { + "type": "string", + "description": "Source API Key", + "default": null, + "x-example": "<API_KEY>" } }, "required": [ "resources", - "projectId" + "endpoint", + "projectId", + "apiKey" ] } } ] } }, - "\/migrations\/firebase\/projects": { + "\/migrations\/appwrite\/report": { "get": { - "summary": "List Firebase Projects", - "operationId": "migrationsListFirebaseProjects", - "consumes": [ - "application\/json" - ], + "summary": "Get Appwrite migration report", + "operationId": "migrationsGetAppwriteReport", + "consumes": [], "produces": [ "application\/json" ], "tags": [ "migrations" ], - "description": "", + "description": "Generate a report of the data in an Appwrite project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated.", "responses": { "200": { - "description": "Migrations Firebase Projects List", + "description": "Migration Report", "schema": { - "$ref": "#\/definitions\/firebaseProjectList" + "$ref": "#\/definitions\/migrationReport" } } }, "x-appwrite": { - "method": "listFirebaseProjects", - "weight": 344, + "method": "getAppwriteReport", + "group": null, + "weight": 342, "cookies": false, "type": "", "deprecated": false, - "demo": "migrations\/list-firebase-projects.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "demo": "migrations\/get-appwrite-report.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/migrations\/migration-appwrite-report.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "migrations.read", + "scope": "migrations.write", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19018,13 +18415,51 @@ { "Project": [] } + ], + "parameters": [ + { + "name": "resources", + "description": "List of resources to migrate", + "required": true, + "type": "array", + "collectionFormat": "multi", + "items": { + "type": "string" + }, + "in": "query" + }, + { + "name": "endpoint", + "description": "Source's Appwrite Endpoint", + "required": true, + "type": "string", + "format": "url", + "x-example": "https:\/\/example.com", + "in": "query" + }, + { + "name": "projectID", + "description": "Source's Project ID", + "required": true, + "type": "string", + "x-example": "<PROJECT_ID>", + "in": "query" + }, + { + "name": "key", + "description": "Source's API Key", + "required": true, + "type": "string", + "x-example": "<KEY>", + "in": "query" + } ] } }, - "\/migrations\/firebase\/report": { - "get": { - "summary": "Generate a report on Firebase Data", - "operationId": "migrationsGetFirebaseReport", + "\/migrations\/firebase": { + "post": { + "summary": "Create Firebase migration", + "operationId": "migrationsCreateFirebaseMigration", "consumes": [ "application\/json" ], @@ -19034,23 +18469,24 @@ "tags": [ "migrations" ], - "description": "", + "description": "Migrate data from a Firebase project to your Appwrite project. This endpoint allows you to migrate resources like authentication and other supported services from a Firebase project. ", "responses": { - "200": { - "description": "Migration Report", + "202": { + "description": "Migration", "schema": { - "$ref": "#\/definitions\/migrationReport" + "$ref": "#\/definitions\/migration" } } }, "x-appwrite": { - "method": "getFirebaseReport", - "weight": 340, + "method": "createFirebaseMigration", + "group": null, + "weight": 337, "cookies": false, "type": "", "deprecated": false, - "demo": "migrations\/get-firebase-report.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/migrations\/migration-firebase-report.md", + "demo": "migrations\/create-firebase-migration.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/migrations\/migration-firebase.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -19059,9 +18495,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19073,41 +18506,48 @@ ], "parameters": [ { - "name": "resources", - "description": "List of resources to migrate", - "required": true, - "type": "array", - "collectionFormat": "multi", - "items": { - "type": "string" - }, - "in": "query" - }, - { - "name": "serviceAccount", - "description": "JSON of the Firebase service account credentials", - "required": true, - "type": "string", - "x-example": "<SERVICE_ACCOUNT>", - "in": "query" + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "resources": { + "type": "array", + "description": "List of resources to migrate", + "default": null, + "x-example": null, + "items": { + "type": "string" + } + }, + "serviceAccount": { + "type": "string", + "description": "JSON of the Firebase service account credentials", + "default": null, + "x-example": "<SERVICE_ACCOUNT>" + } + }, + "required": [ + "resources", + "serviceAccount" + ] + } } ] } }, - "\/migrations\/firebase\/report\/oauth": { + "\/migrations\/firebase\/report": { "get": { - "summary": "Generate a report on Firebase Data using OAuth", - "operationId": "migrationsGetFirebaseReportOAuth", - "consumes": [ - "application\/json" - ], + "summary": "Get Firebase migration report", + "operationId": "migrationsGetFirebaseReport", + "consumes": [], "produces": [ "application\/json" ], "tags": [ "migrations" ], - "description": "", + "description": "Generate a report of the data in a Firebase project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated.", "responses": { "200": { "description": "Migration Report", @@ -19117,12 +18557,13 @@ } }, "x-appwrite": { - "method": "getFirebaseReportOAuth", - "weight": 341, + "method": "getFirebaseReport", + "group": null, + "weight": 343, "cookies": false, "type": "", "deprecated": false, - "demo": "migrations\/get-firebase-report-o-auth.md", + "demo": "migrations\/get-firebase-report.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/migrations\/migration-firebase-report.md", "rate-limit": 0, "rate-time": 3600, @@ -19132,9 +18573,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19157,11 +18595,11 @@ "in": "query" }, { - "name": "projectId", - "description": "Project ID", + "name": "serviceAccount", + "description": "JSON of the Firebase service account credentials", "required": true, "type": "string", - "x-example": "<PROJECT_ID>", + "x-example": "<SERVICE_ACCOUNT>", "in": "query" } ] @@ -19169,7 +18607,7 @@ }, "\/migrations\/nhost": { "post": { - "summary": "Migrate NHost Data", + "summary": "Create NHost migration", "operationId": "migrationsCreateNHostMigration", "consumes": [ "application\/json" @@ -19180,7 +18618,7 @@ "tags": [ "migrations" ], - "description": "", + "description": "Migrate data from an NHost project to your Appwrite project. This endpoint allows you to migrate resources like authentication, databases, and other supported services from an NHost project. ", "responses": { "202": { "description": "Migration", @@ -19191,7 +18629,8 @@ }, "x-appwrite": { "method": "createNHostMigration", - "weight": 336, + "group": null, + "weight": 339, "cookies": false, "type": "", "deprecated": false, @@ -19205,9 +18644,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19292,18 +18728,16 @@ }, "\/migrations\/nhost\/report": { "get": { - "summary": "Generate a report on NHost Data", + "summary": "Get NHost migration report", "operationId": "migrationsGetNHostReport", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "migrations" ], - "description": "", + "description": "Generate a detailed report of the data in an NHost project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated. ", "responses": { "200": { "description": "Migration Report", @@ -19314,7 +18748,8 @@ }, "x-appwrite": { "method": "getNHostReport", - "weight": 347, + "group": null, + "weight": 345, "cookies": false, "type": "", "deprecated": false, @@ -19328,9 +18763,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19414,7 +18846,7 @@ }, "\/migrations\/supabase": { "post": { - "summary": "Migrate Supabase Data", + "summary": "Create Supabase migration", "operationId": "migrationsCreateSupabaseMigration", "consumes": [ "application\/json" @@ -19425,7 +18857,7 @@ "tags": [ "migrations" ], - "description": "", + "description": "Migrate data from a Supabase project to your Appwrite project. This endpoint allows you to migrate resources like authentication, databases, and other supported services from a Supabase project. ", "responses": { "202": { "description": "Migration", @@ -19436,7 +18868,8 @@ }, "x-appwrite": { "method": "createSupabaseMigration", - "weight": 335, + "group": null, + "weight": 338, "cookies": false, "type": "", "deprecated": false, @@ -19450,9 +18883,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19530,18 +18960,16 @@ }, "\/migrations\/supabase\/report": { "get": { - "summary": "Generate a report on Supabase Data", + "summary": "Get Supabase migration report", "operationId": "migrationsGetSupabaseReport", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "migrations" ], - "description": "", + "description": "Generate a report of the data in a Supabase project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated. ", "responses": { "200": { "description": "Migration Report", @@ -19552,7 +18980,8 @@ }, "x-appwrite": { "method": "getSupabaseReport", - "weight": 346, + "group": null, + "weight": 344, "cookies": false, "type": "", "deprecated": false, @@ -19566,9 +18995,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19645,18 +19071,16 @@ }, "\/migrations\/{migrationId}": { "get": { - "summary": "Get Migration", + "summary": "Get migration", "operationId": "migrationsGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "migrations" ], - "description": "", + "description": "Get a migration by its unique ID. This endpoint returns detailed information about a specific migration including its current status, progress, and any errors that occurred during the migration process. ", "responses": { "200": { "description": "Migration", @@ -19667,7 +19091,8 @@ }, "x-appwrite": { "method": "get", - "weight": 338, + "group": null, + "weight": 341, "cookies": false, "type": "", "deprecated": false, @@ -19681,9 +19106,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19705,7 +19127,7 @@ ] }, "patch": { - "summary": "Retry Migration", + "summary": "Update retry migration", "operationId": "migrationsRetry", "consumes": [ "application\/json" @@ -19716,7 +19138,7 @@ "tags": [ "migrations" ], - "description": "", + "description": "Retry a failed migration. This endpoint allows you to retry a migration that has previously failed.", "responses": { "202": { "description": "Migration", @@ -19727,7 +19149,8 @@ }, "x-appwrite": { "method": "retry", - "weight": 348, + "group": null, + "weight": 346, "cookies": false, "type": "", "deprecated": false, @@ -19741,9 +19164,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19765,7 +19185,7 @@ ] }, "delete": { - "summary": "Delete Migration", + "summary": "Delete migration", "operationId": "migrationsDelete", "consumes": [ "application\/json" @@ -19774,7 +19194,7 @@ "tags": [ "migrations" ], - "description": "", + "description": "Delete a migration by its unique ID. This endpoint allows you to remove a migration from your project's migration history. ", "responses": { "204": { "description": "No content" @@ -19782,7 +19202,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 349, + "group": null, + "weight": 347, "cookies": false, "type": "", "deprecated": false, @@ -19796,9 +19217,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19824,16 +19242,14 @@ "get": { "summary": "Get project usage stats", "operationId": "projectGetUsage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "project" ], - "description": "", + "description": "Get comprehensive usage statistics for your project. View metrics including network requests, bandwidth, storage, function executions, database usage, and user activity. Specify a time range with startDate and endDate, and optionally set the data granularity with period (1h or 1d). The response includes both total counts and detailed breakdowns by resource, along with historical data over the specified period.", "responses": { "200": { "description": "UsageProject", @@ -19844,12 +19260,13 @@ }, "x-appwrite": { "method": "getUsage", - "weight": 194, + "group": null, + "weight": 198, "cookies": false, "type": "", "deprecated": false, "demo": "project\/get-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/project\/get-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -19858,9 +19275,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19908,11 +19322,9 @@ }, "\/project\/variables": { "get": { - "summary": "List Variables", + "summary": "List variables", "operationId": "projectListVariables", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -19930,7 +19342,8 @@ }, "x-appwrite": { "method": "listVariables", - "weight": 196, + "group": null, + "weight": 200, "cookies": false, "type": "", "deprecated": false, @@ -19944,9 +19357,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -19958,7 +19368,7 @@ ] }, "post": { - "summary": "Create Variable", + "summary": "Create variable", "operationId": "projectCreateVariable", "consumes": [ "application\/json" @@ -19980,7 +19390,8 @@ }, "x-appwrite": { "method": "createVariable", - "weight": 195, + "group": null, + "weight": 199, "cookies": false, "type": "", "deprecated": false, @@ -19994,9 +19405,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20037,11 +19445,9 @@ }, "\/project\/variables\/{variableId}": { "get": { - "summary": "Get Variable", + "summary": "Get variable", "operationId": "projectGetVariable", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -20059,7 +19465,8 @@ }, "x-appwrite": { "method": "getVariable", - "weight": 197, + "group": null, + "weight": 201, "cookies": false, "type": "", "deprecated": false, @@ -20073,9 +19480,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20097,7 +19501,7 @@ ] }, "put": { - "summary": "Update Variable", + "summary": "Update variable", "operationId": "projectUpdateVariable", "consumes": [ "application\/json" @@ -20119,7 +19523,8 @@ }, "x-appwrite": { "method": "updateVariable", - "weight": 198, + "group": null, + "weight": 202, "cookies": false, "type": "", "deprecated": false, @@ -20133,9 +19538,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20181,7 +19583,7 @@ ] }, "delete": { - "summary": "Delete Variable", + "summary": "Delete variable", "operationId": "projectDeleteVariable", "consumes": [ "application\/json" @@ -20198,7 +19600,8 @@ }, "x-appwrite": { "method": "deleteVariable", - "weight": 199, + "group": null, + "weight": 203, "cookies": false, "type": "", "deprecated": false, @@ -20212,9 +19615,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20240,16 +19640,14 @@ "get": { "summary": "List projects", "operationId": "projectsList", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "projects" ], - "description": "", + "description": "Get a list of all projects. You can use the query params to filter your results. ", "responses": { "200": { "description": "Projects List", @@ -20260,12 +19658,13 @@ }, "x-appwrite": { "method": "list", - "weight": 150, + "group": "projects", + "weight": 153, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/list.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/list.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20274,9 +19673,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20322,7 +19718,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Create a new project. You can create a maximum of 100 projects per account. ", "responses": { "201": { "description": "Project", @@ -20333,12 +19729,13 @@ }, "x-appwrite": { "method": "create", - "weight": 149, + "group": "projects", + "weight": 152, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/create.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/create.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20347,9 +19744,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20390,8 +19784,7 @@ "default": "default", "x-example": "default", "enum": [ - "default", - "fra" + "default" ], "x-enum-name": null, "x-enum-keys": [] @@ -20465,16 +19858,14 @@ "get": { "summary": "Get project", "operationId": "projectsGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "projects" ], - "description": "", + "description": "Get a project by its unique ID. This endpoint allows you to retrieve the project's details, including its name, description, team, region, and other metadata. ", "responses": { "200": { "description": "Project", @@ -20485,12 +19876,13 @@ }, "x-appwrite": { "method": "get", - "weight": 151, + "group": "projects", + "weight": 154, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/get.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/get.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20499,9 +19891,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20534,7 +19923,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update a project by its unique ID.", "responses": { "200": { "description": "Project", @@ -20545,12 +19934,13 @@ }, "x-appwrite": { "method": "update", - "weight": 152, + "group": "projects", + "weight": 155, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20559,9 +19949,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20664,7 +20051,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Delete a project by its unique ID.", "responses": { "204": { "description": "No content" @@ -20672,12 +20059,13 @@ }, "x-appwrite": { "method": "delete", - "weight": 168, + "group": "projects", + "weight": 172, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/delete.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/delete.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20686,9 +20074,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20723,7 +20108,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the status of a specific API type. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime.", "responses": { "200": { "description": "Project", @@ -20734,12 +20119,13 @@ }, "x-appwrite": { "method": "updateApiStatus", - "weight": 156, + "group": "projects", + "weight": 159, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-api-status.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-api-status.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20748,9 +20134,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20817,7 +20200,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the status of all API types. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime all at once.", "responses": { "200": { "description": "Project", @@ -20828,12 +20211,91 @@ }, "x-appwrite": { "method": "updateApiStatusAll", - "weight": 157, + "group": "projects", + "weight": 160, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-api-status-all.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-api-status-all.md", + "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": { + "status": { + "type": "boolean", + "description": "API status.", + "default": null, + "x-example": false + } + }, + "required": [ + "status" + ] + } + } + ] + } + }, + "\/projects\/{projectId}\/auth\/duration": { + "patch": { + "summary": "Update project authentication duration", + "operationId": "projectsUpdateAuthDuration", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "projects" + ], + "description": "Update how long sessions created within a project should stay active for.", + "responses": { + "200": { + "description": "Project", + "schema": { + "$ref": "#\/definitions\/project" + } + } + }, + "x-appwrite": { + "method": "updateAuthDuration", + "group": "auth", + "weight": 165, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "projects\/update-auth-duration.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-auth-duration.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20842,9 +20304,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20869,25 +20328,25 @@ "schema": { "type": "object", "properties": { - "status": { - "type": "boolean", - "description": "API status.", + "duration": { + "type": "integer", + "description": "Project session length in seconds. Max length: 31536000 seconds.", "default": null, - "x-example": false + "x-example": 0 } }, "required": [ - "status" + "duration" ] } } ] } }, - "\/projects\/{projectId}\/auth\/duration": { + "\/projects\/{projectId}\/auth\/limit": { "patch": { - "summary": "Update project authentication duration", - "operationId": "projectsUpdateAuthDuration", + "summary": "Update project users limit", + "operationId": "projectsUpdateAuthLimit", "consumes": [ "application\/json" ], @@ -20897,7 +20356,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the maximum number of users allowed in this project. Set to 0 for unlimited users. ", "responses": { "200": { "description": "Project", @@ -20907,13 +20366,14 @@ } }, "x-appwrite": { - "method": "updateAuthDuration", - "weight": 161, + "method": "updateAuthLimit", + "group": "auth", + "weight": 164, "cookies": false, "type": "", "deprecated": false, - "demo": "projects\/update-auth-duration.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "demo": "projects\/update-auth-limit.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-auth-limit.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -20922,9 +20382,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -20949,25 +20406,25 @@ "schema": { "type": "object", "properties": { - "duration": { + "limit": { "type": "integer", - "description": "Project session length in seconds. Max length: 31536000 seconds.", + "description": "Set the max number of users allowed in this project. Use 0 for unlimited.", "default": null, "x-example": 0 } }, "required": [ - "duration" + "limit" ] } } ] } }, - "\/projects\/{projectId}\/auth\/limit": { + "\/projects\/{projectId}\/auth\/max-sessions": { "patch": { - "summary": "Update project users limit", - "operationId": "projectsUpdateAuthLimit", + "summary": "Update project user sessions limit", + "operationId": "projectsUpdateAuthSessionsLimit", "consumes": [ "application\/json" ], @@ -20977,7 +20434,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the maximum number of sessions allowed per user within the project, if the limit is hit the oldest session will be deleted to make room for new sessions.", "responses": { "200": { "description": "Project", @@ -20987,13 +20444,14 @@ } }, "x-appwrite": { - "method": "updateAuthLimit", - "weight": 160, + "method": "updateAuthSessionsLimit", + "group": "auth", + "weight": 170, "cookies": false, "type": "", "deprecated": false, - "demo": "projects\/update-auth-limit.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "demo": "projects\/update-auth-sessions-limit.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-auth-sessions-limit.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -21002,9 +20460,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21031,9 +20486,9 @@ "properties": { "limit": { "type": "integer", - "description": "Set the max number of users allowed in this project. Use 0 for unlimited.", + "description": "Set the max number of users allowed in this project. Value allowed is between 1-100. Default is 10", "default": null, - "x-example": 0 + "x-example": 1 } }, "required": [ @@ -21044,10 +20499,10 @@ ] } }, - "\/projects\/{projectId}\/auth\/max-sessions": { + "\/projects\/{projectId}\/auth\/memberships-privacy": { "patch": { - "summary": "Update project user sessions limit", - "operationId": "projectsUpdateAuthSessionsLimit", + "summary": "Update project memberships privacy attributes", + "operationId": "projectsUpdateMembershipsPrivacy", "consumes": [ "application\/json" ], @@ -21057,7 +20512,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update project membership privacy settings. Use this endpoint to control what user information is visible to other team members, such as user name, email, and MFA status. ", "responses": { "200": { "description": "Project", @@ -21067,13 +20522,14 @@ } }, "x-appwrite": { - "method": "updateAuthSessionsLimit", - "weight": 166, + "method": "updateMembershipsPrivacy", + "group": "auth", + "weight": 163, "cookies": false, "type": "", "deprecated": false, - "demo": "projects\/update-auth-sessions-limit.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "demo": "projects\/update-memberships-privacy.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-memberships-privacy.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -21082,9 +20538,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21109,15 +20562,29 @@ "schema": { "type": "object", "properties": { - "limit": { - "type": "integer", - "description": "Set the max number of users allowed in this project. Value allowed is between 1-100. Default is 10", + "userName": { + "type": "boolean", + "description": "Set to true to show userName to members of a team.", "default": null, - "x-example": 1 + "x-example": false + }, + "userEmail": { + "type": "boolean", + "description": "Set to true to show email to members of a team.", + "default": null, + "x-example": false + }, + "mfa": { + "type": "boolean", + "description": "Set to true to show mfa to members of a team.", + "default": null, + "x-example": false } }, "required": [ - "limit" + "userName", + "userEmail", + "mfa" ] } } @@ -21137,7 +20604,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the list of mock phone numbers for testing. Use these numbers to bypass SMS verification in development. ", "responses": { "200": { "description": "Project", @@ -21148,12 +20615,13 @@ }, "x-appwrite": { "method": "updateMockNumbers", - "weight": 167, + "group": "auth", + "weight": 171, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-mock-numbers.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-mock-numbers.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -21162,9 +20630,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21220,7 +20685,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Enable or disable checking user passwords against common passwords dictionary. This helps ensure users don't use common and insecure passwords. ", "responses": { "200": { "description": "Project", @@ -21231,12 +20696,13 @@ }, "x-appwrite": { "method": "updateAuthPasswordDictionary", - "weight": 164, + "group": "auth", + "weight": 168, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-auth-password-dictionary.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-auth-password-dictionary.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -21245,9 +20711,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21300,7 +20763,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the authentication password history requirement. Use this endpoint to require new passwords to be different than the last X amount of previously used ones.", "responses": { "200": { "description": "Project", @@ -21311,12 +20774,13 @@ }, "x-appwrite": { "method": "updateAuthPasswordHistory", - "weight": 163, + "group": "auth", + "weight": 167, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-auth-password-history.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-auth-password-history.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -21325,9 +20789,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21369,7 +20830,7 @@ }, "\/projects\/{projectId}\/auth\/personal-data": { "patch": { - "summary": "Enable or disable checking user passwords for similarity with their personal data.", + "summary": "Update personal data check", "operationId": "projectsUpdatePersonalDataCheck", "consumes": [ "application\/json" @@ -21380,7 +20841,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Enable or disable checking user passwords against their personal data. This helps prevent users from using personal information in their passwords. ", "responses": { "200": { "description": "Project", @@ -21391,12 +20852,13 @@ }, "x-appwrite": { "method": "updatePersonalDataCheck", - "weight": 165, + "group": "auth", + "weight": 169, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-personal-data-check.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-personal-data-check.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -21405,9 +20867,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21460,7 +20919,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Enable or disable session email alerts. When enabled, users will receive email notifications when new sessions are created.", "responses": { "200": { "description": "Project", @@ -21471,12 +20930,13 @@ }, "x-appwrite": { "method": "updateSessionAlerts", - "weight": 159, + "group": "auth", + "weight": 162, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-session-alerts.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-session-alerts.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -21485,9 +20945,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21540,7 +20997,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the status of a specific authentication method. Use this endpoint to enable or disable different authentication methods such as email, magic urls or sms in your project. ", "responses": { "200": { "description": "Project", @@ -21551,12 +21008,13 @@ }, "x-appwrite": { "method": "updateAuthStatus", - "weight": 162, + "group": "auth", + "weight": 166, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-auth-status.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-auth-status.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -21565,9 +21023,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21639,7 +21094,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Create a new JWT token. This token can be used to authenticate users with custom scopes and expiration time. ", "responses": { "201": { "description": "JWT", @@ -21650,12 +21105,13 @@ }, "x-appwrite": { "method": "createJWT", - "weight": 180, + "group": "auth", + "weight": 184, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/create-j-w-t.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/create-jwt.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -21664,9 +21120,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21719,16 +21172,14 @@ "get": { "summary": "List keys", "operationId": "projectsListKeys", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "projects" ], - "description": "", + "description": "Get a list of all API keys from the current project. ", "responses": { "200": { "description": "API Keys List", @@ -21739,23 +21190,21 @@ }, "x-appwrite": { "method": "listKeys", - "weight": 176, + "group": "keys", + "weight": 180, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/list-keys.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/list-keys.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.read", + "scope": "keys.read", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21788,7 +21237,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Create a new API key. It's recommended to have multiple API keys with strict scopes for separate functions within your project.", "responses": { "201": { "description": "Key", @@ -21799,23 +21248,21 @@ }, "x-appwrite": { "method": "createKey", - "weight": 175, + "group": "keys", + "weight": 179, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/create-key.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/create-key.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.write", + "scope": "keys.write", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21875,16 +21322,14 @@ "get": { "summary": "Get key", "operationId": "projectsGetKey", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "projects" ], - "description": "", + "description": "Get a key by its unique ID. This endpoint returns details about a specific API key in your project including it's scopes.", "responses": { "200": { "description": "Key", @@ -21895,23 +21340,21 @@ }, "x-appwrite": { "method": "getKey", - "weight": 177, + "group": "keys", + "weight": 181, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/get-key.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/get-key.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.read", + "scope": "keys.read", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -21952,7 +21395,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update a key by its unique ID. Use this endpoint to update the name, scopes, or expiration time of an API key. ", "responses": { "200": { "description": "Key", @@ -21963,23 +21406,21 @@ }, "x-appwrite": { "method": "updateKey", - "weight": 178, + "group": "keys", + "weight": 182, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-key.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-key.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.write", + "scope": "keys.write", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22052,7 +21493,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Delete a key by its unique ID. Once deleted, the key can no longer be used to authenticate API calls. ", "responses": { "204": { "description": "No content" @@ -22060,23 +21501,21 @@ }, "x-appwrite": { "method": "deleteKey", - "weight": 179, + "group": "keys", + "weight": 183, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/delete-key.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/delete-key.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.write", + "scope": "keys.write", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22119,7 +21558,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the OAuth2 provider configurations. Use this endpoint to set up or update the OAuth2 provider credentials or enable\/disable providers. ", "responses": { "200": { "description": "Project", @@ -22130,12 +21569,13 @@ }, "x-appwrite": { "method": "updateOAuth2", - "weight": 158, + "group": "auth", + "weight": 161, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-o-auth2.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-oauth2.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -22144,9 +21584,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22191,6 +21628,7 @@ "dropbox", "etsy", "facebook", + "figma", "github", "gitlab", "google", @@ -22251,16 +21689,14 @@ "get": { "summary": "List platforms", "operationId": "projectsListPlatforms", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "projects" ], - "description": "", + "description": "Get a list of all platforms in the project. This endpoint returns an array of all platforms and their configurations. ", "responses": { "200": { "description": "Platforms List", @@ -22271,23 +21707,21 @@ }, "x-appwrite": { "method": "listPlatforms", - "weight": 182, + "group": "platforms", + "weight": 186, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/list-platforms.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/list-platforms.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.read", + "scope": "platforms.read", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22320,7 +21754,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Create a new platform for your project. Use this endpoint to register a new platform where your users will run your application which will interact with the Appwrite API.", "responses": { "201": { "description": "Platform", @@ -22331,23 +21765,21 @@ }, "x-appwrite": { "method": "createPlatform", - "weight": 181, + "group": "platforms", + "weight": 185, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/create-platform.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/create-platform.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.write", + "scope": "platforms.write", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22435,16 +21867,14 @@ "get": { "summary": "Get platform", "operationId": "projectsGetPlatform", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "projects" ], - "description": "", + "description": "Get a platform by its unique ID. This endpoint returns the platform's details, including its name, type, and key configurations. ", "responses": { "200": { "description": "Platform", @@ -22455,23 +21885,21 @@ }, "x-appwrite": { "method": "getPlatform", - "weight": 183, + "group": "platforms", + "weight": 187, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/get-platform.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/get-platform.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.read", + "scope": "platforms.read", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22512,7 +21940,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update a platform by its unique ID. Use this endpoint to update the platform's name, key, platform store ID, or hostname. ", "responses": { "200": { "description": "Platform", @@ -22523,23 +21951,21 @@ }, "x-appwrite": { "method": "updatePlatform", - "weight": 184, + "group": "platforms", + "weight": 188, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-platform.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-platform.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.write", + "scope": "platforms.write", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22614,7 +22040,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Delete a platform by its unique ID. This endpoint removes the platform and all its configurations from the project. ", "responses": { "204": { "description": "No content" @@ -22622,23 +22048,21 @@ }, "x-appwrite": { "method": "deletePlatform", - "weight": 185, + "group": "platforms", + "weight": 189, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/delete-platform.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/delete-platform.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "projects.write", + "scope": "platforms.write", "platforms": [ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22681,7 +22105,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the status of a specific service. Use this endpoint to enable or disable a service in your project. ", "responses": { "200": { "description": "Project", @@ -22692,12 +22116,13 @@ }, "x-appwrite": { "method": "updateServiceStatus", - "weight": 154, + "group": "projects", + "weight": 157, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-service-status.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-service-status.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -22706,9 +22131,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22783,7 +22205,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the status of all services. Use this endpoint to enable or disable all optional services at once. ", "responses": { "200": { "description": "Project", @@ -22794,12 +22216,13 @@ }, "x-appwrite": { "method": "updateServiceStatusAll", - "weight": 155, + "group": "projects", + "weight": 158, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-service-status-all.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-service-status-all.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -22808,9 +22231,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22863,7 +22283,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the SMTP configuration for your project. Use this endpoint to configure your project's SMTP provider with your custom settings for sending transactional emails. ", "responses": { "200": { "description": "Project", @@ -22874,12 +22294,13 @@ }, "x-appwrite": { "method": "updateSmtp", - "weight": 186, + "group": "templates", + "weight": 190, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-smtp.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-smtp.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -22888,9 +22309,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -22991,11 +22409,13 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "projects" ], - "description": "", + "description": "Send a test email to verify SMTP configuration. ", "responses": { "204": { "description": "No content" @@ -23003,12 +22423,13 @@ }, "x-appwrite": { "method": "createSmtpTest", - "weight": 187, + "group": "templates", + "weight": 191, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/create-smtp-test.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/create-smtp-test.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -23017,9 +22438,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -23101,7 +22519,8 @@ "default": "", "x-example": "tls", "enum": [ - "tls" + "tls", + "ssl" ], "x-enum-name": "SMTPSecure", "x-enum-keys": [] @@ -23131,7 +22550,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the team ID of a project allowing for it to be transferred to another team.", "responses": { "200": { "description": "Project", @@ -23142,12 +22561,13 @@ }, "x-appwrite": { "method": "updateTeam", - "weight": 153, + "group": "projects", + "weight": 156, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-team.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-team.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -23156,9 +22576,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -23202,16 +22619,14 @@ "get": { "summary": "Get custom email template", "operationId": "projectsGetEmailTemplate", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "projects" ], - "description": "", + "description": "Get a custom email template for the specified locale and type. This endpoint returns the template content, subject, and other configuration details. ", "responses": { "200": { "description": "EmailTemplate", @@ -23222,12 +22637,13 @@ }, "x-appwrite": { "method": "getEmailTemplate", - "weight": 189, + "group": "templates", + "weight": 193, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/get-email-template.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/get-email-template.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -23236,9 +22652,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -23433,23 +22846,24 @@ "tags": [ "projects" ], - "description": "", + "description": "Update a custom email template for the specified locale and type. Use this endpoint to modify the content of your email templates.", "responses": { "200": { - "description": "Project", + "description": "EmailTemplate", "schema": { - "$ref": "#\/definitions\/project" + "$ref": "#\/definitions\/emailTemplate" } } }, "x-appwrite": { "method": "updateEmailTemplate", - "weight": 191, + "group": "templates", + "weight": 195, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-email-template.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-email-template.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -23458,9 +22872,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -23687,7 +23098,7 @@ ] }, "delete": { - "summary": "Reset custom email template", + "summary": "Delete custom email template", "operationId": "projectsDeleteEmailTemplate", "consumes": [ "application\/json" @@ -23698,7 +23109,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Reset a custom email template to its default value. This endpoint removes any custom content and restores the template to its original state. ", "responses": { "200": { "description": "EmailTemplate", @@ -23709,12 +23120,13 @@ }, "x-appwrite": { "method": "deleteEmailTemplate", - "weight": 193, + "group": "templates", + "weight": 197, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/delete-email-template.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/delete-email-template.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -23723,9 +23135,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -23913,16 +23322,14 @@ "get": { "summary": "Get custom SMS template", "operationId": "projectsGetSmsTemplate", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "projects" ], - "description": "", + "description": "Get a custom SMS template for the specified locale and type returning it's contents.", "responses": { "200": { "description": "SmsTemplate", @@ -23933,12 +23340,13 @@ }, "x-appwrite": { "method": "getSmsTemplate", - "weight": 188, + "group": "templates", + "weight": 192, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/get-sms-template.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/get-sms-template.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -23947,9 +23355,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24141,7 +23546,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update a custom SMS template for the specified locale and type. Use this endpoint to modify the content of your SMS templates. ", "responses": { "200": { "description": "SmsTemplate", @@ -24152,12 +23557,13 @@ }, "x-appwrite": { "method": "updateSmsTemplate", - "weight": 190, + "group": "templates", + "weight": 194, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-sms-template.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-sms-template.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -24166,9 +23572,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24378,7 +23781,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Reset a custom SMS template to its default value. This endpoint removes any custom message and restores the template to its original state. ", "responses": { "200": { "description": "SmsTemplate", @@ -24389,12 +23792,13 @@ }, "x-appwrite": { "method": "deleteSmsTemplate", - "weight": 192, + "group": "templates", + "weight": 196, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/delete-sms-template.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/delete-sms-template.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -24403,9 +23807,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24590,16 +23991,14 @@ "get": { "summary": "List webhooks", "operationId": "projectsListWebhooks", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "projects" ], - "description": "", + "description": "Get a list of all webhooks belonging to the project. You can use the query params to filter your results. ", "responses": { "200": { "description": "Webhooks List", @@ -24610,12 +24009,13 @@ }, "x-appwrite": { "method": "listWebhooks", - "weight": 170, + "group": "webhooks", + "weight": 174, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/list-webhooks.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/list-webhooks.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -24624,9 +24024,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24659,7 +24056,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Create a new webhook. Use this endpoint to configure a URL that will receive events from Appwrite when specific events occur. ", "responses": { "201": { "description": "Webhook", @@ -24670,12 +24067,13 @@ }, "x-appwrite": { "method": "createWebhook", - "weight": 169, + "group": "webhooks", + "weight": 173, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/create-webhook.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/create-webhook.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -24684,9 +24082,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24772,16 +24167,14 @@ "get": { "summary": "Get webhook", "operationId": "projectsGetWebhook", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "projects" ], - "description": "", + "description": "Get a webhook by its unique ID. This endpoint returns details about a specific webhook configured for a project. ", "responses": { "200": { "description": "Webhook", @@ -24792,12 +24185,13 @@ }, "x-appwrite": { "method": "getWebhook", - "weight": 171, + "group": "webhooks", + "weight": 175, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/get-webhook.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/get-webhook.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -24806,9 +24200,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24849,7 +24240,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update a webhook by its unique ID. Use this endpoint to update the URL, events, or status of an existing webhook. ", "responses": { "200": { "description": "Webhook", @@ -24860,12 +24251,13 @@ }, "x-appwrite": { "method": "updateWebhook", - "weight": 172, + "group": "webhooks", + "weight": 176, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-webhook.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-webhook.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -24874,9 +24266,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -24975,7 +24364,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Delete a webhook by its unique ID. Once deleted, the webhook will no longer receive project events. ", "responses": { "204": { "description": "No content" @@ -24983,12 +24372,13 @@ }, "x-appwrite": { "method": "deleteWebhook", - "weight": 174, + "group": "webhooks", + "weight": 178, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/delete-webhook.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/delete-webhook.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -24997,9 +24387,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25042,7 +24429,7 @@ "tags": [ "projects" ], - "description": "", + "description": "Update the webhook signature key. This endpoint can be used to regenerate the signature key used to sign and validate payload deliveries for a specific webhook. ", "responses": { "200": { "description": "Webhook", @@ -25053,12 +24440,13 @@ }, "x-appwrite": { "method": "updateWebhookSignature", - "weight": 173, + "group": "webhooks", + "weight": 177, "cookies": false, "type": "", "deprecated": false, "demo": "projects\/update-webhook-signature.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-webhook-signature.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -25067,9 +24455,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25101,11 +24486,9 @@ }, "\/proxy\/rules": { "get": { - "summary": "List Rules", + "summary": "List rules", "operationId": "proxyListRules", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -25123,7 +24506,8 @@ }, "x-appwrite": { "method": "listRules", - "weight": 315, + "group": null, + "weight": 319, "cookies": false, "type": "", "deprecated": false, @@ -25137,9 +24521,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25174,7 +24555,7 @@ ] }, "post": { - "summary": "Create Rule", + "summary": "Create rule", "operationId": "proxyCreateRule", "consumes": [ "application\/json" @@ -25196,7 +24577,8 @@ }, "x-appwrite": { "method": "createRule", - "weight": 314, + "group": null, + "weight": 318, "cookies": false, "type": "", "deprecated": false, @@ -25210,9 +24592,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25265,11 +24644,9 @@ }, "\/proxy\/rules\/{ruleId}": { "get": { - "summary": "Get Rule", + "summary": "Get rule", "operationId": "proxyGetRule", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -25287,7 +24664,8 @@ }, "x-appwrite": { "method": "getRule", - "weight": 316, + "group": null, + "weight": 320, "cookies": false, "type": "", "deprecated": false, @@ -25301,9 +24679,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25325,7 +24700,7 @@ ] }, "delete": { - "summary": "Delete Rule", + "summary": "Delete rule", "operationId": "proxyDeleteRule", "consumes": [ "application\/json" @@ -25342,7 +24717,8 @@ }, "x-appwrite": { "method": "deleteRule", - "weight": 317, + "group": null, + "weight": 321, "cookies": false, "type": "", "deprecated": false, @@ -25356,9 +24732,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25382,7 +24755,7 @@ }, "\/proxy\/rules\/{ruleId}\/verification": { "patch": { - "summary": "Update Rule Verification Status", + "summary": "Update rule verification status", "operationId": "proxyUpdateRuleVerification", "consumes": [ "application\/json" @@ -25393,7 +24766,7 @@ "tags": [ "proxy" ], - "description": "", + "description": "Retry getting verification process of a proxy rule. This endpoint triggers domain verification by checking DNS records (CNAME) against the configured target domain. If verification is successful, a TLS certificate will be automatically provisioned for the domain.", "responses": { "200": { "description": "Rule", @@ -25404,12 +24777,13 @@ }, "x-appwrite": { "method": "updateRuleVerification", - "weight": 318, + "group": null, + "weight": 322, "cookies": false, "type": "", "deprecated": false, "demo": "proxy\/update-rule-verification.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/proxy\/update-rule-verification.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -25418,9 +24792,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25446,9 +24817,7 @@ "get": { "summary": "List buckets", "operationId": "storageListBuckets", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -25466,7 +24835,8 @@ }, "x-appwrite": { "method": "listBuckets", - "weight": 201, + "group": "buckets", + "weight": 205, "cookies": false, "type": "", "deprecated": false, @@ -25480,9 +24850,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25540,7 +24907,8 @@ }, "x-appwrite": { "method": "createBucket", - "weight": 200, + "group": "buckets", + "weight": 204, "cookies": false, "type": "", "deprecated": false, @@ -25554,9 +24922,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25661,9 +25026,7 @@ "get": { "summary": "Get bucket", "operationId": "storageGetBucket", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -25681,7 +25044,8 @@ }, "x-appwrite": { "method": "getBucket", - "weight": 202, + "group": "buckets", + "weight": 206, "cookies": false, "type": "", "deprecated": false, @@ -25695,9 +25059,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25742,7 +25103,8 @@ }, "x-appwrite": { "method": "updateBucket", - "weight": 203, + "group": "buckets", + "weight": 207, "cookies": false, "type": "", "deprecated": false, @@ -25756,9 +25118,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25877,7 +25236,8 @@ }, "x-appwrite": { "method": "deleteBucket", - "weight": 204, + "group": "buckets", + "weight": 208, "cookies": false, "type": "", "deprecated": false, @@ -25891,9 +25251,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -25920,9 +25277,7 @@ "get": { "summary": "List files", "operationId": "storageListFiles", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -25940,7 +25295,8 @@ }, "x-appwrite": { "method": "listFiles", - "weight": 206, + "group": "files", + "weight": 210, "cookies": false, "type": "", "deprecated": false, @@ -25956,9 +25312,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26025,7 +25378,8 @@ }, "x-appwrite": { "method": "createFile", - "weight": 205, + "group": "files", + "weight": 209, "cookies": false, "type": "upload", "deprecated": false, @@ -26041,9 +25395,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26099,9 +25450,7 @@ "get": { "summary": "Get file", "operationId": "storageGetFile", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -26119,7 +25468,8 @@ }, "x-appwrite": { "method": "getFile", - "weight": 207, + "group": "files", + "weight": 211, "cookies": false, "type": "", "deprecated": false, @@ -26135,9 +25485,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26191,7 +25538,8 @@ }, "x-appwrite": { "method": "updateFile", - "weight": 212, + "group": "files", + "weight": 216, "cookies": false, "type": "", "deprecated": false, @@ -26207,9 +25555,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26265,7 +25610,7 @@ ] }, "delete": { - "summary": "Delete File", + "summary": "Delete file", "operationId": "storageDeleteFile", "consumes": [ "application\/json" @@ -26282,7 +25627,8 @@ }, "x-appwrite": { "method": "deleteFile", - "weight": 213, + "group": "files", + "weight": 217, "cookies": false, "type": "", "deprecated": false, @@ -26298,9 +25644,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26336,9 +25679,7 @@ "get": { "summary": "Get file for download", "operationId": "storageGetFileDownload", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "*\/*" ], @@ -26356,7 +25697,8 @@ }, "x-appwrite": { "method": "getFileDownload", - "weight": 209, + "group": "files", + "weight": 213, "cookies": false, "type": "location", "deprecated": false, @@ -26372,9 +25714,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26410,9 +25749,7 @@ "get": { "summary": "Get file preview", "operationId": "storageGetFilePreview", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/*" ], @@ -26430,7 +25767,8 @@ }, "x-appwrite": { "method": "getFilePreview", - "weight": 208, + "group": "files", + "weight": 212, "cookies": false, "type": "location", "deprecated": false, @@ -26446,9 +25784,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26596,7 +25931,9 @@ "jpeg", "gif", "png", - "webp" + "webp", + "heic", + "avif" ], "x-enum-name": "ImageFormat", "x-enum-keys": [], @@ -26610,9 +25947,7 @@ "get": { "summary": "Get file for view", "operationId": "storageGetFileView", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "*\/*" ], @@ -26630,7 +25965,8 @@ }, "x-appwrite": { "method": "getFileView", - "weight": 210, + "group": "files", + "weight": 214, "cookies": false, "type": "location", "deprecated": false, @@ -26646,9 +25982,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26684,16 +26017,14 @@ "get": { "summary": "Get storage usage stats", "operationId": "storageGetUsage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "storage" ], - "description": "", + "description": "Get usage metrics and statistics for all buckets in the project. You can view the total number of buckets, files, storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.\n", "responses": { "200": { "description": "StorageUsage", @@ -26704,12 +26035,13 @@ }, "x-appwrite": { "method": "getUsage", - "weight": 214, + "group": null, + "weight": 218, "cookies": false, "type": "", "deprecated": false, "demo": "storage\/get-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -26718,9 +26050,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26758,16 +26087,14 @@ "get": { "summary": "Get bucket usage stats", "operationId": "storageGetBucketUsage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "storage" ], - "description": "", + "description": "Get usage metrics and statistics a specific bucket in the project. You can view the total number of files, storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.\n", "responses": { "200": { "description": "UsageBuckets", @@ -26778,12 +26105,13 @@ }, "x-appwrite": { "method": "getBucketUsage", - "weight": 215, + "group": null, + "weight": 219, "cookies": false, "type": "", "deprecated": false, "demo": "storage\/get-bucket-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/storage\/get-bucket-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -26792,9 +26120,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26840,9 +26165,7 @@ "get": { "summary": "List teams", "operationId": "teamsList", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -26860,7 +26183,8 @@ }, "x-appwrite": { "method": "list", - "weight": 217, + "group": "teams", + "weight": 221, "cookies": false, "type": "", "deprecated": false, @@ -26876,9 +26200,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -26937,7 +26258,8 @@ }, "x-appwrite": { "method": "create", - "weight": 216, + "group": "teams", + "weight": 220, "cookies": false, "type": "", "deprecated": false, @@ -26953,9 +26275,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27011,9 +26330,7 @@ "get": { "summary": "Get team", "operationId": "teamsGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -27031,7 +26348,8 @@ }, "x-appwrite": { "method": "get", - "weight": 218, + "group": "teams", + "weight": 222, "cookies": false, "type": "", "deprecated": false, @@ -27047,9 +26365,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "{teamId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27095,7 +26410,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 220, + "group": "teams", + "weight": 224, "cookies": false, "type": "", "deprecated": false, @@ -27111,9 +26427,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "{teamId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27172,7 +26485,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 222, + "group": "teams", + "weight": 226, "cookies": false, "type": "", "deprecated": false, @@ -27188,9 +26502,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27218,9 +26529,7 @@ "get": { "summary": "List team logs", "operationId": "teamsListLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -27238,7 +26547,8 @@ }, "x-appwrite": { "method": "listLogs", - "weight": 229, + "group": "logs", + "weight": 233, "cookies": false, "type": "", "deprecated": false, @@ -27252,9 +26562,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27292,16 +26599,14 @@ "get": { "summary": "List team memberships", "operationId": "teamsListMemberships", - "consumes": [ - "application\/json" - ], + "consumes": [], "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.", + "description": "Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint. Hide sensitive attributes from the response by toggling membership privacy in the Console.", "responses": { "200": { "description": "Memberships List", @@ -27312,7 +26617,8 @@ }, "x-appwrite": { "method": "listMemberships", - "weight": 224, + "group": "memberships", + "weight": 228, "cookies": false, "type": "", "deprecated": false, @@ -27328,9 +26634,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/memberships", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27397,7 +26700,8 @@ }, "x-appwrite": { "method": "createMembership", - "weight": 223, + "group": "memberships", + "weight": 227, "cookies": false, "type": "", "deprecated": false, @@ -27413,9 +26717,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27494,16 +26795,14 @@ "get": { "summary": "Get team membership", "operationId": "teamsGetMembership", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "teams" ], - "description": "Get a team member by the membership unique id. All team members have read access for this resource.", + "description": "Get a team member by the membership unique id. All team members have read access for this resource. Hide sensitive attributes from the response by toggling membership privacy in the Console.", "responses": { "200": { "description": "Membership", @@ -27514,7 +26813,8 @@ }, "x-appwrite": { "method": "getMembership", - "weight": 225, + "group": "memberships", + "weight": 229, "cookies": false, "type": "", "deprecated": false, @@ -27530,9 +26830,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/memberships", - "offline-key": "{membershipId}", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27586,7 +26883,8 @@ }, "x-appwrite": { "method": "updateMembership", - "weight": 226, + "group": "memberships", + "weight": 230, "cookies": false, "type": "", "deprecated": false, @@ -27602,9 +26900,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27674,7 +26969,8 @@ }, "x-appwrite": { "method": "deleteMembership", - "weight": 228, + "group": "memberships", + "weight": 232, "cookies": false, "type": "", "deprecated": false, @@ -27690,9 +26986,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27748,7 +27041,8 @@ }, "x-appwrite": { "method": "updateMembershipStatus", - "weight": 227, + "group": "memberships", + "weight": 231, "cookies": false, "type": "", "deprecated": false, @@ -27763,9 +27057,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27825,9 +27116,7 @@ "get": { "summary": "Get team preferences", "operationId": "teamsGetPrefs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -27845,7 +27134,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 219, + "group": "teams", + "weight": 223, "cookies": false, "type": "", "deprecated": false, @@ -27860,9 +27150,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/prefs", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27907,7 +27194,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 221, + "group": "teams", + "weight": 225, "cookies": false, "type": "", "deprecated": false, @@ -27922,9 +27210,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/prefs", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -27969,9 +27254,7 @@ "get": { "summary": "List users", "operationId": "usersList", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -27989,7 +27272,8 @@ }, "x-appwrite": { "method": "list", - "weight": 239, + "group": "users", + "weight": 243, "cookies": false, "type": "", "deprecated": false, @@ -28003,9 +27287,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28063,7 +27344,8 @@ }, "x-appwrite": { "method": "create", - "weight": 230, + "group": "users", + "weight": 234, "cookies": false, "type": "", "deprecated": false, @@ -28077,9 +27359,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28160,7 +27439,8 @@ }, "x-appwrite": { "method": "createArgon2User", - "weight": 233, + "group": "users", + "weight": 237, "cookies": false, "type": "", "deprecated": false, @@ -28174,9 +27454,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28253,7 +27530,8 @@ }, "x-appwrite": { "method": "createBcryptUser", - "weight": 231, + "group": "users", + "weight": 235, "cookies": false, "type": "", "deprecated": false, @@ -28267,9 +27545,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28324,11 +27599,9 @@ }, "\/users\/identities": { "get": { - "summary": "List Identities", + "summary": "List identities", "operationId": "usersListIdentities", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -28346,7 +27619,8 @@ }, "x-appwrite": { "method": "listIdentities", - "weight": 247, + "group": "identities", + "weight": 251, "cookies": false, "type": "", "deprecated": false, @@ -28360,9 +27634,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28417,7 +27688,8 @@ }, "x-appwrite": { "method": "deleteIdentity", - "weight": 270, + "group": "identities", + "weight": 274, "cookies": false, "type": "", "deprecated": false, @@ -28431,9 +27703,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28480,7 +27749,8 @@ }, "x-appwrite": { "method": "createMD5User", - "weight": 232, + "group": "users", + "weight": 236, "cookies": false, "type": "", "deprecated": false, @@ -28494,9 +27764,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28573,7 +27840,8 @@ }, "x-appwrite": { "method": "createPHPassUser", - "weight": 235, + "group": "users", + "weight": 239, "cookies": false, "type": "", "deprecated": false, @@ -28587,9 +27855,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28666,7 +27931,8 @@ }, "x-appwrite": { "method": "createScryptUser", - "weight": 236, + "group": "users", + "weight": 240, "cookies": false, "type": "", "deprecated": false, @@ -28680,9 +27946,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28794,7 +28057,8 @@ }, "x-appwrite": { "method": "createScryptModifiedUser", - "weight": 237, + "group": "users", + "weight": 241, "cookies": false, "type": "", "deprecated": false, @@ -28808,9 +28072,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -28908,7 +28169,8 @@ }, "x-appwrite": { "method": "createSHAUser", - "weight": 234, + "group": "users", + "weight": 238, "cookies": false, "type": "", "deprecated": false, @@ -28922,9 +28184,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29002,16 +28261,14 @@ "get": { "summary": "Get users usage stats", "operationId": "usersGetUsage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "users" ], - "description": "", + "description": "Get usage metrics and statistics for all users in the project. You can view the total number of users and sessions. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.\n", "responses": { "200": { "description": "UsageUsers", @@ -29022,12 +28279,13 @@ }, "x-appwrite": { "method": "getUsage", - "weight": 272, + "group": null, + "weight": 276, "cookies": false, "type": "", "deprecated": false, "demo": "users\/get-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/get-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -29036,9 +28294,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29076,9 +28331,7 @@ "get": { "summary": "Get user", "operationId": "usersGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -29096,7 +28349,8 @@ }, "x-appwrite": { "method": "get", - "weight": 240, + "group": "users", + "weight": 244, "cookies": false, "type": "", "deprecated": false, @@ -29110,9 +28364,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29152,7 +28403,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 268, + "group": "users", + "weight": 272, "cookies": false, "type": "", "deprecated": false, @@ -29166,9 +28418,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29215,7 +28464,8 @@ }, "x-appwrite": { "method": "updateEmail", - "weight": 253, + "group": "users", + "weight": 257, "cookies": false, "type": "", "deprecated": false, @@ -29229,9 +28479,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29296,7 +28543,8 @@ }, "x-appwrite": { "method": "createJWT", - "weight": 271, + "group": "sessions", + "weight": 275, "cookies": false, "type": "", "deprecated": false, @@ -29310,9 +28558,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29380,7 +28625,8 @@ }, "x-appwrite": { "method": "updateLabels", - "weight": 249, + "group": "users", + "weight": 253, "cookies": false, "type": "", "deprecated": false, @@ -29394,9 +28640,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29444,9 +28687,7 @@ "get": { "summary": "List user logs", "operationId": "usersListLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -29464,7 +28705,8 @@ }, "x-appwrite": { "method": "listLogs", - "weight": 245, + "group": "logs", + "weight": 249, "cookies": false, "type": "", "deprecated": false, @@ -29478,9 +28720,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29519,9 +28758,7 @@ "get": { "summary": "List user memberships", "operationId": "usersListMemberships", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -29539,7 +28776,8 @@ }, "x-appwrite": { "method": "listMemberships", - "weight": 244, + "group": "memberships", + "weight": 248, "cookies": false, "type": "", "deprecated": false, @@ -29553,9 +28791,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29602,7 +28837,8 @@ }, "x-appwrite": { "method": "updateMfa", - "weight": 258, + "group": "users", + "weight": 262, "cookies": false, "type": "", "deprecated": false, @@ -29616,9 +28852,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29661,29 +28894,25 @@ }, "\/users\/{userId}\/mfa\/authenticators\/{type}": { "delete": { - "summary": "Delete Authenticator", + "summary": "Delete authenticator", "operationId": "usersDeleteMfaAuthenticator", "consumes": [ "application\/json" ], - "produces": [ - "application\/json" - ], + "produces": [], "tags": [ "users" ], "description": "Delete an authenticator app.", "responses": { - "200": { - "description": "User", - "schema": { - "$ref": "#\/definitions\/user" - } + "204": { + "description": "No content" } }, "x-appwrite": { "method": "deleteMfaAuthenticator", - "weight": 263, + "group": "mfa", + "weight": 267, "cookies": false, "type": "", "deprecated": false, @@ -29697,9 +28926,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29737,11 +28963,9 @@ }, "\/users\/{userId}\/mfa\/factors": { "get": { - "summary": "List Factors", + "summary": "List factors", "operationId": "usersListMfaFactors", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -29759,7 +28983,8 @@ }, "x-appwrite": { "method": "listMfaFactors", - "weight": 259, + "group": "mfa", + "weight": 263, "cookies": false, "type": "", "deprecated": false, @@ -29773,9 +28998,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29800,11 +29022,9 @@ }, "\/users\/{userId}\/mfa\/recovery-codes": { "get": { - "summary": "Get MFA Recovery Codes", + "summary": "Get MFA recovery codes", "operationId": "usersGetMfaRecoveryCodes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -29822,7 +29042,8 @@ }, "x-appwrite": { "method": "getMfaRecoveryCodes", - "weight": 260, + "group": "mfa", + "weight": 264, "cookies": false, "type": "", "deprecated": false, @@ -29836,9 +29057,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29861,7 +29079,7 @@ ] }, "put": { - "summary": "Regenerate MFA Recovery Codes", + "summary": "Update MFA recovery codes (regenerate)", "operationId": "usersUpdateMfaRecoveryCodes", "consumes": [ "application\/json" @@ -29883,7 +29101,8 @@ }, "x-appwrite": { "method": "updateMfaRecoveryCodes", - "weight": 262, + "group": "mfa", + "weight": 266, "cookies": false, "type": "", "deprecated": false, @@ -29897,9 +29116,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -29922,7 +29138,7 @@ ] }, "patch": { - "summary": "Create MFA Recovery Codes", + "summary": "Create MFA recovery codes", "operationId": "usersCreateMfaRecoveryCodes", "consumes": [ "application\/json" @@ -29944,7 +29160,8 @@ }, "x-appwrite": { "method": "createMfaRecoveryCodes", - "weight": 261, + "group": "mfa", + "weight": 265, "cookies": false, "type": "", "deprecated": false, @@ -29958,9 +29175,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30007,7 +29221,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 251, + "group": "users", + "weight": 255, "cookies": false, "type": "", "deprecated": false, @@ -30021,9 +29236,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30088,7 +29300,8 @@ }, "x-appwrite": { "method": "updatePassword", - "weight": 252, + "group": "users", + "weight": 256, "cookies": false, "type": "", "deprecated": false, @@ -30102,9 +29315,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30169,7 +29379,8 @@ }, "x-appwrite": { "method": "updatePhone", - "weight": 254, + "group": "users", + "weight": 258, "cookies": false, "type": "", "deprecated": false, @@ -30183,9 +29394,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30230,9 +29438,7 @@ "get": { "summary": "Get user preferences", "operationId": "usersGetPrefs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -30250,7 +29456,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 241, + "group": "users", + "weight": 245, "cookies": false, "type": "", "deprecated": false, @@ -30264,9 +29471,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30311,7 +29515,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 256, + "group": "users", + "weight": 260, "cookies": false, "type": "", "deprecated": false, @@ -30325,9 +29530,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30372,9 +29574,7 @@ "get": { "summary": "List user sessions", "operationId": "usersListSessions", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -30392,7 +29592,8 @@ }, "x-appwrite": { "method": "listSessions", - "weight": 243, + "group": "sessions", + "weight": 247, "cookies": false, "type": "", "deprecated": false, @@ -30406,9 +29607,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30453,7 +29651,8 @@ }, "x-appwrite": { "method": "createSession", - "weight": 264, + "group": "sessions", + "weight": 268, "cookies": false, "type": "", "deprecated": false, @@ -30467,9 +29666,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30509,7 +29705,8 @@ }, "x-appwrite": { "method": "deleteSessions", - "weight": 267, + "group": "sessions", + "weight": 271, "cookies": false, "type": "", "deprecated": false, @@ -30523,9 +29720,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30567,7 +29761,8 @@ }, "x-appwrite": { "method": "deleteSession", - "weight": 266, + "group": "sessions", + "weight": 270, "cookies": false, "type": "", "deprecated": false, @@ -30581,9 +29776,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30638,7 +29830,8 @@ }, "x-appwrite": { "method": "updateStatus", - "weight": 248, + "group": "users", + "weight": 252, "cookies": false, "type": "", "deprecated": false, @@ -30652,9 +29845,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30697,11 +29887,9 @@ }, "\/users\/{userId}\/targets": { "get": { - "summary": "List User Targets", + "summary": "List user targets", "operationId": "usersListTargets", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -30719,7 +29907,8 @@ }, "x-appwrite": { "method": "listTargets", - "weight": 246, + "group": "targets", + "weight": 250, "cookies": false, "type": "", "deprecated": false, @@ -30734,9 +29923,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30771,7 +29957,7 @@ ] }, "post": { - "summary": "Create User Target", + "summary": "Create user target", "operationId": "usersCreateTarget", "consumes": [ "application\/json" @@ -30793,7 +29979,8 @@ }, "x-appwrite": { "method": "createTarget", - "weight": 238, + "group": "targets", + "weight": 242, "cookies": false, "type": "", "deprecated": false, @@ -30808,9 +29995,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30886,11 +30070,9 @@ }, "\/users\/{userId}\/targets\/{targetId}": { "get": { - "summary": "Get User Target", + "summary": "Get user target", "operationId": "usersGetTarget", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -30908,7 +30090,8 @@ }, "x-appwrite": { "method": "getTarget", - "weight": 242, + "group": "targets", + "weight": 246, "cookies": false, "type": "", "deprecated": false, @@ -30923,9 +30106,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -30956,7 +30136,7 @@ ] }, "patch": { - "summary": "Update User target", + "summary": "Update user target", "operationId": "usersUpdateTarget", "consumes": [ "application\/json" @@ -30978,7 +30158,8 @@ }, "x-appwrite": { "method": "updateTarget", - "weight": 257, + "group": "targets", + "weight": 261, "cookies": false, "type": "", "deprecated": false, @@ -30993,9 +30174,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31058,9 +30236,7 @@ "consumes": [ "application\/json" ], - "produces": [ - "application\/json" - ], + "produces": [], "tags": [ "users" ], @@ -31072,7 +30248,8 @@ }, "x-appwrite": { "method": "deleteTarget", - "weight": 269, + "group": "targets", + "weight": 273, "cookies": false, "type": "", "deprecated": false, @@ -31087,9 +30264,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31144,7 +30318,8 @@ }, "x-appwrite": { "method": "createToken", - "weight": 265, + "group": "sessions", + "weight": 269, "cookies": false, "type": "", "deprecated": false, @@ -31158,9 +30333,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31228,7 +30400,8 @@ }, "x-appwrite": { "method": "updateEmailVerification", - "weight": 255, + "group": "users", + "weight": 259, "cookies": false, "type": "", "deprecated": false, @@ -31242,9 +30415,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31309,7 +30479,8 @@ }, "x-appwrite": { "method": "updatePhoneVerification", - "weight": 250, + "group": "users", + "weight": 254, "cookies": false, "type": "", "deprecated": false, @@ -31323,9 +30494,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31368,18 +30536,16 @@ }, "\/vcs\/github\/installations\/{installationId}\/providerRepositories": { "get": { - "summary": "List Repositories", + "summary": "List repositories", "operationId": "vcsListRepositories", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "vcs" ], - "description": "", + "description": "Get a list of GitHub repositories available through your installation. This endpoint returns repositories with their basic information, detected runtime environments, and latest push dates. You can optionally filter repositories using a search term. Each repository's runtime is automatically detected based on its contents and language statistics. The GitHub installation must be properly configured for this endpoint to work.", "responses": { "200": { "description": "Provider Repositories List", @@ -31390,12 +30556,13 @@ }, "x-appwrite": { "method": "listRepositories", - "weight": 277, + "group": "repositories", + "weight": 281, "cookies": false, "type": "", "deprecated": false, "demo": "vcs\/list-repositories.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/vcs\/list-repositories.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -31404,9 +30571,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31448,7 +30612,7 @@ "tags": [ "vcs" ], - "description": "", + "description": "Create a new GitHub repository through your installation. This endpoint allows you to create either a public or private repository by specifying a name and visibility setting. The repository will be created under your GitHub user account or organization, depending on your installation type. The GitHub installation must be properly configured and have the necessary permissions for repository creation.", "responses": { "200": { "description": "ProviderRepository", @@ -31459,12 +30623,13 @@ }, "x-appwrite": { "method": "createRepository", - "weight": 278, + "group": "repositories", + "weight": 282, "cookies": false, "type": "", "deprecated": false, "demo": "vcs\/create-repository.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/vcs\/create-repository.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -31473,9 +30638,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31526,16 +30688,14 @@ "get": { "summary": "Get repository", "operationId": "vcsGetRepository", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "vcs" ], - "description": "", + "description": "Get detailed information about a specific GitHub repository from your installation. This endpoint returns repository details including its ID, name, visibility status, organization, and latest push date. The GitHub installation must be properly configured and have access to the requested repository for this endpoint to work.", "responses": { "200": { "description": "ProviderRepository", @@ -31546,12 +30706,13 @@ }, "x-appwrite": { "method": "getRepository", - "weight": 279, + "group": "repositories", + "weight": 283, "cookies": false, "type": "", "deprecated": false, "demo": "vcs\/get-repository.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/vcs\/get-repository.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -31560,9 +30721,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31594,18 +30752,16 @@ }, "\/vcs\/github\/installations\/{installationId}\/providerRepositories\/{providerRepositoryId}\/branches": { "get": { - "summary": "List Repository Branches", + "summary": "List repository branches", "operationId": "vcsListRepositoryBranches", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "vcs" ], - "description": "", + "description": "Get a list of all branches from a GitHub repository in your installation. This endpoint returns the names of all branches in the repository and their total count. The GitHub installation must be properly configured and have access to the requested repository for this endpoint to work.\n", "responses": { "200": { "description": "Branches List", @@ -31616,12 +30772,13 @@ }, "x-appwrite": { "method": "listRepositoryBranches", - "weight": 280, + "group": "repositories", + "weight": 284, "cookies": false, "type": "", "deprecated": false, "demo": "vcs\/list-repository-branches.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/vcs\/list-repository-branches.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -31630,9 +30787,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31666,16 +30820,14 @@ "get": { "summary": "Get files and directories of a VCS repository", "operationId": "vcsGetRepositoryContents", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "vcs" ], - "description": "", + "description": "Get a list of files and directories from a GitHub repository connected to your project. This endpoint returns the contents of a specified repository path, including file names, sizes, and whether each item is a file or directory. The GitHub installation must be properly configured and the repository must be accessible through your installation for this endpoint to work.\n", "responses": { "200": { "description": "VCS Content List", @@ -31686,12 +30838,13 @@ }, "x-appwrite": { "method": "getRepositoryContents", - "weight": 275, + "group": "repositories", + "weight": 279, "cookies": false, "type": "", "deprecated": false, "demo": "vcs\/get-repository-contents.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/vcs\/get-repository-contents.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -31700,9 +30853,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31743,7 +30893,7 @@ }, "\/vcs\/github\/installations\/{installationId}\/providerRepositories\/{providerRepositoryId}\/detection": { "post": { - "summary": "Detect runtime settings from source code", + "summary": "Create runtime settings detection", "operationId": "vcsCreateRepositoryDetection", "consumes": [ "application\/json" @@ -31754,7 +30904,7 @@ "tags": [ "vcs" ], - "description": "", + "description": "Analyze a GitHub repository to automatically detect the programming language and runtime environment. This endpoint scans the repository's files and language statistics to determine the appropriate runtime settings for your function. The GitHub installation must be properly configured and the repository must be accessible through your installation for this endpoint to work.", "responses": { "200": { "description": "Detection", @@ -31765,12 +30915,13 @@ }, "x-appwrite": { "method": "createRepositoryDetection", - "weight": 276, + "group": "repositories", + "weight": 280, "cookies": false, "type": "", "deprecated": false, "demo": "vcs\/create-repository-detection.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/vcs\/create-repository-detection.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -31779,9 +30930,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31828,16 +30976,18 @@ }, "\/vcs\/github\/installations\/{installationId}\/repositories\/{repositoryId}": { "patch": { - "summary": "Authorize external deployment", + "summary": "Update external deployment (authorize)", "operationId": "vcsUpdateExternalDeployments", "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "vcs" ], - "description": "", + "description": "Authorize and create deployments for a GitHub pull request in your project. This endpoint allows external contributions by creating deployments from pull requests, enabling preview environments for code review. The pull request must be open and not previously authorized. The GitHub installation must be properly configured and have access to both the repository and pull request for this endpoint to work.", "responses": { "204": { "description": "No content" @@ -31845,12 +30995,13 @@ }, "x-appwrite": { "method": "updateExternalDeployments", - "weight": 285, + "group": "repositories", + "weight": 289, "cookies": false, "type": "", "deprecated": false, "demo": "vcs\/update-external-deployments.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/vcs\/update-external-deployments.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -31859,9 +31010,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31913,16 +31061,14 @@ "get": { "summary": "List installations", "operationId": "vcsListInstallations", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "vcs" ], - "description": "", + "description": "List all VCS installations configured for the current project. This endpoint returns a list of installations including their provider, organization, and other configuration details.\n", "responses": { "200": { "description": "Installations List", @@ -31933,7 +31079,8 @@ }, "x-appwrite": { "method": "listInstallations", - "weight": 282, + "group": "installations", + "weight": 286, "cookies": false, "type": "", "deprecated": false, @@ -31947,9 +31094,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -31988,16 +31132,14 @@ "get": { "summary": "Get installation", "operationId": "vcsGetInstallation", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "vcs" ], - "description": "", + "description": "Get a VCS installation by its unique ID. This endpoint returns the installation's details including its provider, organization, and configuration. ", "responses": { "200": { "description": "Installation", @@ -32008,7 +31150,8 @@ }, "x-appwrite": { "method": "getInstallation", - "weight": 283, + "group": "installations", + "weight": 287, "cookies": false, "type": "", "deprecated": false, @@ -32022,9 +31165,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -32046,7 +31186,7 @@ ] }, "delete": { - "summary": "Delete Installation", + "summary": "Delete installation", "operationId": "vcsDeleteInstallation", "consumes": [ "application\/json" @@ -32055,7 +31195,7 @@ "tags": [ "vcs" ], - "description": "", + "description": "Delete a VCS installation by its unique ID. This endpoint removes the installation and all its associated repositories from the project.", "responses": { "204": { "description": "No content" @@ -32063,7 +31203,8 @@ }, "x-appwrite": { "method": "deleteInstallation", - "weight": 284, + "group": "installations", + "weight": 288, "cookies": false, "type": "", "deprecated": false, @@ -32077,9 +31218,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -32105,85 +31243,67 @@ "tags": [ { "name": "account", - "description": "The Account service allows you to authenticate and manage a user account.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Avatars service aims to help you complete everyday tasks related to your app image, icons, and avatars." }, { "name": "databases", - "description": "The Databases service allows you to create structured collections of documents, query and filter lists of documents", - "x-globalAttributes": [ - "databaseId" - ] + "description": "The Databases 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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Project service allows you to manage all the projects in your Appwrite server." }, { "name": "project", - "description": "The Project service allows you to manage all the projects in your Appwrite server.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Functions Service allows you view, create and manage your Cloud Functions." }, { "name": "proxy", - "description": "The Proxy Service allows you to configure actions for your domains beyond DNS configuration.", - "x-globalAttributes": [] + "description": "The Proxy Service allows you to configure actions for your domains beyond DNS configuration." }, { "name": "graphql", - "description": "The GraphQL API allows you to query and mutate your Appwrite server using GraphQL.", - "x-globalAttributes": [] + "description": "The GraphQL API allows you to query and mutate your Appwrite server using GraphQL." }, { "name": "console", - "description": "The Console service allows you to interact with console relevant informations.", - "x-globalAttributes": [] + "description": "The Console service allows you to interact with console relevant informations." }, { "name": "migrations", - "description": "The Migrations service allows you to migrate third-party data to your Appwrite project.", - "x-globalAttributes": [] + "description": "The Migrations service allows you to migrate third-party data to your Appwrite project." }, { "name": "messaging", - "description": "The Messaging service allows you to send messages to any provider type (SMTP, push notification, SMS, etc.).", - "x-globalAttributes": [] + "description": "The Messaging service allows you to send messages to any provider type (SMTP, push notification, SMS, etc.)." } ], "definitions": { @@ -33142,31 +32262,6 @@ "migrations" ] }, - "firebaseProjectList": { - "description": "Migrations Firebase 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\/firebaseProject" - }, - "x-example": "" - } - }, - "required": [ - "total", - "projects" - ] - }, "specificationList": { "description": "Specifications List", "type": "object", @@ -33456,6 +32551,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "size": { "type": "integer", "description": "Attribute size.", @@ -33475,6 +32580,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "size" ] }, @@ -33513,6 +32620,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "min": { "type": "integer", "description": "Minimum value to enforce for new documents.", @@ -33540,7 +32657,9 @@ "type", "status", "error", - "required" + "required", + "$createdAt", + "$updatedAt" ] }, "attributeFloat": { @@ -33578,6 +32697,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "min": { "type": "number", "description": "Minimum value to enforce for new documents.", @@ -33605,7 +32734,9 @@ "type", "status", "error", - "required" + "required", + "$createdAt", + "$updatedAt" ] }, "attributeBoolean": { @@ -33643,6 +32774,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "default": { "type": "boolean", "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", @@ -33655,7 +32796,9 @@ "type", "status", "error", - "required" + "required", + "$createdAt", + "$updatedAt" ] }, "attributeEmail": { @@ -33693,6 +32836,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "String format.", @@ -33711,6 +32864,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -33749,6 +32904,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "elements": { "type": "array", "description": "Array of elements in enumerated type.", @@ -33775,6 +32940,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "elements", "format" ] @@ -33814,6 +32981,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "String format.", @@ -33832,6 +33009,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -33870,6 +33049,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "String format.", @@ -33888,6 +33077,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -33926,6 +33117,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "ISO 8601 format.", @@ -33944,6 +33145,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -33982,6 +33185,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "relatedCollection": { "type": "string", "description": "The ID of the related collection.", @@ -34019,6 +33232,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "relatedCollection", "relationType", "twoWay", @@ -34067,6 +33282,16 @@ }, "x-example": [], "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Index creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Index update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" } }, "required": [ @@ -34074,7 +33299,9 @@ "type", "status", "error", - "attributes" + "attributes", + "$createdAt", + "$updatedAt" ] }, "document": { @@ -35229,12 +34456,12 @@ }, "userName": { "type": "string", - "description": "User name.", + "description": "User name. Hide this attribute by toggling membership privacy in the Console.", "x-example": "John Doe" }, "userEmail": { "type": "string", - "description": "User email address.", + "description": "User email address. Hide this attribute by toggling membership privacy in the Console.", "x-example": "john@appwrite.io" }, "teamId": { @@ -35264,7 +34491,7 @@ }, "mfa": { "type": "boolean", - "description": "Multi factor authentication status, true if the user has MFA enabled or false otherwise.", + "description": "Multi factor authentication status, true if the user has MFA enabled or false otherwise. Hide this attribute by toggling membership privacy in the Console.", "x-example": false }, "roles": { @@ -35378,7 +34605,7 @@ }, "schedule": { "type": "string", - "description": "Function execution schedult in CRON format.", + "description": "Function execution schedule in CRON format.", "x-example": "5 4 * * *" }, "timeout": { @@ -35430,7 +34657,7 @@ "specification": { "type": "string", "description": "Machine specification for builds and executions.", - "x-example": "s-0.5vcpu-512mb" + "x-example": "s-1vcpu-512mb" } }, "required": [ @@ -36106,7 +35333,7 @@ "responseBody": { "type": "string", "description": "HTTP response body. This will return empty unless execution is created as synchronous.", - "x-example": "Developers are awesome." + "x-example": "" }, "responseHeaders": { "type": "array", @@ -36351,6 +35578,21 @@ "description": "Whether or not to send session alert emails to users.", "x-example": true }, + "authMembershipsUserName": { + "type": "boolean", + "description": "Whether or not to show user names in the teams membership response.", + "x-example": true + }, + "authMembershipsUserEmail": { + "type": "boolean", + "description": "Whether or not to show user emails in the teams membership response.", + "x-example": true + }, + "authMembershipsMfa": { + "type": "boolean", + "description": "Whether or not to show user MFA status in the teams membership response.", + "x-example": true + }, "oAuthProviders": { "type": "array", "description": "List of Auth Providers.", @@ -36435,6 +35677,17 @@ "description": "SMTP server secure protocol", "x-example": "tls" }, + "pingCount": { + "type": "integer", + "description": "Number of times the ping was received for this project.", + "x-example": 1, + "format": "int32" + }, + "pingedAt": { + "type": "string", + "description": "Last ping datetime in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "authEmailPassword": { "type": "boolean", "description": "Email\/Password auth method status", @@ -36549,6 +35802,9 @@ "authPersonalDataCheck", "authMockNumbers", "authSessionAlerts", + "authMembershipsUserName", + "authMembershipsUserEmail", + "authMembershipsMfa", "oAuthProviders", "platforms", "webhooks", @@ -36562,6 +35818,8 @@ "smtpUsername", "smtpPassword", "smtpSecure", + "pingCount", + "pingedAt", "authEmailPassword", "authUsersAuthMagicURL", "authEmailOtp", @@ -37223,7 +36481,8 @@ "resourceId": { "type": "string", "description": "Resource ID.", - "x-example": "5e5ea5c16897e" + "x-example": "5e5ea5c16897e", + "x-nullable": true }, "name": { "type": "string", @@ -37235,10 +36494,16 @@ "description": "The value of this metric at the timestamp.", "x-example": 1, "format": "int32" + }, + "estimate": { + "type": "number", + "description": "The estimated value of this metric at the end of the period.", + "x-example": 1, + "format": "double", + "x-nullable": true } }, "required": [ - "resourceId", "name", "value" ] @@ -37270,6 +36535,24 @@ "x-example": 0, "format": "int32" }, + "storageTotal": { + "type": "integer", + "description": "Total aggregated number of total databases storage in bytes.", + "x-example": 0, + "format": "int32" + }, + "databasesReadsTotal": { + "type": "integer", + "description": "Total number of databases reads.", + "x-example": 0, + "format": "int32" + }, + "databasesWritesTotal": { + "type": "integer", + "description": "Total number of databases writes.", + "x-example": 0, + "format": "int32" + }, "databases": { "type": "array", "description": "Aggregated number of databases per period.", @@ -37296,6 +36579,33 @@ "$ref": "#\/definitions\/metric" }, "x-example": [] + }, + "storage": { + "type": "array", + "description": "An array of the aggregated number of databases storage in bytes per period.", + "items": { + "type": "object", + "$ref": "#\/definitions\/metric" + }, + "x-example": [] + }, + "databasesReads": { + "type": "array", + "description": "An array of aggregated number of database reads.", + "items": { + "type": "object", + "$ref": "#\/definitions\/metric" + }, + "x-example": [] + }, + "databasesWrites": { + "type": "array", + "description": "An array of aggregated number of database writes.", + "items": { + "type": "object", + "$ref": "#\/definitions\/metric" + }, + "x-example": [] } }, "required": [ @@ -37303,9 +36613,15 @@ "databasesTotal", "collectionsTotal", "documentsTotal", + "storageTotal", + "databasesReadsTotal", + "databasesWritesTotal", "databases", "collections", - "documents" + "documents", + "storage", + "databasesReads", + "databasesWrites" ] }, "usageDatabase": { @@ -37329,6 +36645,24 @@ "x-example": 0, "format": "int32" }, + "storageTotal": { + "type": "integer", + "description": "Total aggregated number of total storage used in bytes.", + "x-example": 0, + "format": "int32" + }, + "databaseReadsTotal": { + "type": "integer", + "description": "Total number of databases reads.", + "x-example": 0, + "format": "int32" + }, + "databaseWritesTotal": { + "type": "integer", + "description": "Total number of databases writes.", + "x-example": 0, + "format": "int32" + }, "collections": { "type": "array", "description": "Aggregated number of collections per period.", @@ -37346,14 +36680,47 @@ "$ref": "#\/definitions\/metric" }, "x-example": [] + }, + "storage": { + "type": "array", + "description": "Aggregated storage used in bytes per period.", + "items": { + "type": "object", + "$ref": "#\/definitions\/metric" + }, + "x-example": [] + }, + "databaseReads": { + "type": "array", + "description": "An array of aggregated number of database reads.", + "items": { + "type": "object", + "$ref": "#\/definitions\/metric" + }, + "x-example": [] + }, + "databaseWrites": { + "type": "array", + "description": "An array of aggregated number of database writes.", + "items": { + "type": "object", + "$ref": "#\/definitions\/metric" + }, + "x-example": [] } }, "required": [ "range", "collectionsTotal", "documentsTotal", + "storageTotal", + "databaseReadsTotal", + "databaseWritesTotal", "collections", - "documents" + "documents", + "storage", + "databaseReads", + "databaseWrites" ] }, "usageCollection": { @@ -37538,6 +36905,21 @@ "$ref": "#\/definitions\/metric" }, "x-example": [] + }, + "imageTransformations": { + "type": "array", + "description": "Aggregated number of files transformations per period.", + "items": { + "type": "object", + "$ref": "#\/definitions\/metric" + }, + "x-example": [] + }, + "imageTransformationsTotal": { + "type": "integer", + "description": "Total aggregated number of files transformations.", + "x-example": 0, + "format": "int32" } }, "required": [ @@ -37545,7 +36927,9 @@ "filesTotal", "filesStorageTotal", "files", - "storage" + "storage", + "imageTransformations", + "imageTransformationsTotal" ] }, "usageFunctions": { @@ -37921,6 +37305,12 @@ "x-example": 0, "format": "int32" }, + "databasesStorageTotal": { + "type": "integer", + "description": "Total aggregated sum of databases storage size (in bytes).", + "x-example": 0, + "format": "int32" + }, "usersTotal": { "type": "integer", "description": "Total aggregated number of users.", @@ -37969,6 +37359,18 @@ "x-example": 0, "format": "int32" }, + "databasesReadsTotal": { + "type": "integer", + "description": "Total number of databases reads.", + "x-example": 0, + "format": "int32" + }, + "databasesWritesTotal": { + "type": "integer", + "description": "Total number of databases writes.", + "x-example": 0, + "format": "int32" + }, "requests": { "type": "array", "description": "Aggregated number of requests per period.", @@ -38023,6 +37425,15 @@ }, "x-example": [] }, + "databasesStorageBreakdown": { + "type": "array", + "description": "An array of the aggregated breakdown of storage usage by databases.", + "items": { + "type": "object", + "$ref": "#\/definitions\/metricBreakdown" + }, + "x-example": [] + }, "executionsMbSecondsBreakdown": { "type": "array", "description": "Aggregated breakdown in totals of execution mbSeconds by functions.", @@ -38049,12 +37460,67 @@ "$ref": "#\/definitions\/metricBreakdown" }, "x-example": [] + }, + "authPhoneTotal": { + "type": "integer", + "description": "Total aggregated number of phone auth.", + "x-example": 0, + "format": "int32" + }, + "authPhoneEstimate": { + "type": "number", + "description": "Estimated total aggregated cost of phone auth.", + "x-example": 0, + "format": "double" + }, + "authPhoneCountryBreakdown": { + "type": "array", + "description": "Aggregated breakdown in totals of phone auth by country.", + "items": { + "type": "object", + "$ref": "#\/definitions\/metricBreakdown" + }, + "x-example": [] + }, + "databasesReads": { + "type": "array", + "description": "An array of aggregated number of database reads.", + "items": { + "type": "object", + "$ref": "#\/definitions\/metric" + }, + "x-example": [] + }, + "databasesWrites": { + "type": "array", + "description": "An array of aggregated number of database writes.", + "items": { + "type": "object", + "$ref": "#\/definitions\/metric" + }, + "x-example": [] + }, + "imageTransformations": { + "type": "array", + "description": "An array of aggregated number of image transformations.", + "items": { + "type": "object", + "$ref": "#\/definitions\/metric" + }, + "x-example": [] + }, + "imageTransformationsTotal": { + "type": "integer", + "description": "Total aggregated number of image transformations.", + "x-example": 0, + "format": "int32" } }, "required": [ "executionsTotal", "documentsTotal", "databasesTotal", + "databasesStorageTotal", "usersTotal", "filesStorageTotal", "functionsStorageTotal", @@ -38063,15 +37529,25 @@ "bucketsTotal", "executionsMbSecondsTotal", "buildsMbSecondsTotal", + "databasesReadsTotal", + "databasesWritesTotal", "requests", "network", "users", "executions", "executionsBreakdown", "bucketsBreakdown", + "databasesStorageBreakdown", "executionsMbSecondsBreakdown", "buildsMbSecondsBreakdown", - "functionsStorageBreakdown" + "functionsStorageBreakdown", + "authPhoneTotal", + "authPhoneEstimate", + "authPhoneCountryBreakdown", + "databasesReads", + "databasesWrites", + "imageTransformations", + "imageTransformationsTotal" ] }, "headers": { @@ -38118,7 +37594,7 @@ "slug": { "type": "string", "description": "Size slug.", - "x-example": "s-0.5vcpu-512mb" + "x-example": "s-1vcpu-512mb" } }, "required": [ @@ -38759,7 +38235,7 @@ "name": { "type": "string", "description": "Target Name.", - "x-example": "Aegon apple token" + "x-example": "Apple iPhone 12" }, "userId": { "type": "string", @@ -38781,6 +38257,11 @@ "type": "string", "description": "The target identifier.", "x-example": "token" + }, + "expired": { + "type": "boolean", + "description": "Is the target expired.", + "x-example": false } }, "required": [ @@ -38790,7 +38271,8 @@ "name", "userId", "providerType", - "identifier" + "identifier", + "expired" ] }, "migration": { @@ -38804,7 +38286,7 @@ }, "$createdAt": { "type": "string", - "description": "Variable creation date in ISO 8601 format.", + "description": "Migration creation date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" }, "$updatedAt": { @@ -38827,9 +38309,14 @@ "description": "A string containing the type of source of the migration.", "x-example": "Appwrite" }, + "destination": { + "type": "string", + "description": "A string containing the type of destination of the migration.", + "x-example": "Appwrite" + }, "resources": { "type": "array", - "description": "Resources to migration.", + "description": "Resources to migrate.", "items": { "type": "string" }, @@ -38865,6 +38352,7 @@ "status", "stage", "source", + "destination", "resources", "statusCounters", "resourceData", @@ -38940,26 +38428,6 @@ "size", "version" ] - }, - "firebaseProject": { - "description": "MigrationFirebaseProject", - "type": "object", - "properties": { - "projectId": { - "type": "string", - "description": "Project ID.", - "x-example": "my-project" - }, - "displayName": { - "type": "string", - "description": "Project display name.", - "x-example": "My Project" - } - }, - "required": [ - "projectId", - "displayName" - ] } }, "externalDocs": { diff --git a/app/config/specs/swagger2-latest-server.json b/app/config/specs/swagger2-latest-server.json index af6274226f6..697f28c1e4c 100644 --- a/app/config/specs/swagger2-latest-server.json +++ b/app/config/specs/swagger2-latest-server.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "1.6.0", + "version": "1.6.2", "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", @@ -16,6 +16,7 @@ } }, "host": "cloud.appwrite.io", + "x-host-docs": "<REGION>.cloud.appwrite.io", "basePath": "\/v1", "schemes": [ "https" @@ -82,9 +83,7 @@ "get": { "summary": "Get account", "operationId": "accountGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -102,7 +101,8 @@ }, "x-appwrite": { "method": "get", - "weight": 8, + "group": "account", + "weight": 9, "cookies": false, "type": "", "deprecated": false, @@ -117,9 +117,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -156,7 +153,8 @@ }, "x-appwrite": { "method": "create", - "weight": 7, + "group": "account", + "weight": 8, "cookies": false, "type": "", "deprecated": false, @@ -171,9 +169,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -249,7 +244,8 @@ }, "x-appwrite": { "method": "updateEmail", - "weight": 33, + "group": "account", + "weight": 34, "cookies": false, "type": "", "deprecated": false, @@ -264,9 +260,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -310,11 +303,9 @@ }, "\/account\/identities": { "get": { - "summary": "List Identities", + "summary": "List identities", "operationId": "accountListIdentities", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -332,7 +323,8 @@ }, "x-appwrite": { "method": "listIdentities", - "weight": 56, + "group": "identities", + "weight": 57, "cookies": false, "type": "", "deprecated": false, @@ -347,9 +339,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/identities", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -397,7 +386,8 @@ }, "x-appwrite": { "method": "deleteIdentity", - "weight": 57, + "group": "identities", + "weight": 58, "cookies": false, "type": "", "deprecated": false, @@ -412,9 +402,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -463,7 +450,8 @@ }, "x-appwrite": { "method": "createJWT", - "weight": 28, + "group": "tokens", + "weight": 29, "cookies": false, "type": "", "deprecated": false, @@ -478,9 +466,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -496,9 +481,7 @@ "get": { "summary": "List logs", "operationId": "accountListLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -516,7 +499,8 @@ }, "x-appwrite": { "method": "listLogs", - "weight": 30, + "group": "logs", + "weight": 31, "cookies": false, "type": "", "deprecated": false, @@ -531,9 +515,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -586,7 +567,8 @@ }, "x-appwrite": { "method": "updateMFA", - "weight": 43, + "group": "mfa", + "weight": 44, "cookies": false, "type": "", "deprecated": false, @@ -601,9 +583,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -640,7 +619,7 @@ }, "\/account\/mfa\/authenticators\/{type}": { "post": { - "summary": "Create Authenticator", + "summary": "Create authenticator", "operationId": "accountCreateMfaAuthenticator", "consumes": [ "application\/json" @@ -662,7 +641,8 @@ }, "x-appwrite": { "method": "createMfaAuthenticator", - "weight": 45, + "group": "mfa", + "weight": 46, "cookies": false, "type": "", "deprecated": false, @@ -677,9 +657,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -709,7 +686,7 @@ ] }, "put": { - "summary": "Verify Authenticator", + "summary": "Update authenticator (confirmation)", "operationId": "accountUpdateMfaAuthenticator", "consumes": [ "application\/json" @@ -731,7 +708,8 @@ }, "x-appwrite": { "method": "updateMfaAuthenticator", - "weight": 46, + "group": "mfa", + "weight": 47, "cookies": false, "type": "", "deprecated": false, @@ -746,9 +724,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -796,7 +771,7 @@ ] }, "delete": { - "summary": "Delete Authenticator", + "summary": "Delete authenticator", "operationId": "accountDeleteMfaAuthenticator", "consumes": [ "application\/json" @@ -813,7 +788,8 @@ }, "x-appwrite": { "method": "deleteMfaAuthenticator", - "weight": 50, + "group": "mfa", + "weight": 51, "cookies": false, "type": "", "deprecated": false, @@ -828,9 +804,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -862,7 +835,7 @@ }, "\/account\/mfa\/challenge": { "post": { - "summary": "Create MFA Challenge", + "summary": "Create MFA challenge", "operationId": "accountCreateMfaChallenge", "consumes": [ "application\/json" @@ -884,7 +857,8 @@ }, "x-appwrite": { "method": "createMfaChallenge", - "weight": 51, + "group": "mfa", + "weight": 52, "cookies": false, "type": "", "deprecated": false, @@ -899,9 +873,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -941,24 +912,30 @@ ] }, "put": { - "summary": "Create MFA Challenge (confirmation)", + "summary": "Update MFA challenge (confirmation)", "operationId": "accountUpdateMfaChallenge", "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "account" ], "description": "Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", "responses": { - "204": { - "description": "No content" + "200": { + "description": "Session", + "schema": { + "$ref": "#\/definitions\/session" + } } }, "x-appwrite": { "method": "updateMfaChallenge", - "weight": 52, + "group": "mfa", + "weight": 53, "cookies": false, "type": "", "deprecated": false, @@ -973,9 +950,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1019,11 +993,9 @@ }, "\/account\/mfa\/factors": { "get": { - "summary": "List Factors", + "summary": "List factors", "operationId": "accountListMfaFactors", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -1041,7 +1013,8 @@ }, "x-appwrite": { "method": "listMfaFactors", - "weight": 44, + "group": "mfa", + "weight": 45, "cookies": false, "type": "", "deprecated": false, @@ -1056,9 +1029,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1075,11 +1045,9 @@ }, "\/account\/mfa\/recovery-codes": { "get": { - "summary": "Get MFA Recovery Codes", + "summary": "List MFA recovery codes", "operationId": "accountGetMfaRecoveryCodes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -1097,7 +1065,8 @@ }, "x-appwrite": { "method": "getMfaRecoveryCodes", - "weight": 49, + "group": "mfa", + "weight": 50, "cookies": false, "type": "", "deprecated": false, @@ -1112,9 +1081,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1129,7 +1095,7 @@ ] }, "post": { - "summary": "Create MFA Recovery Codes", + "summary": "Create MFA recovery codes", "operationId": "accountCreateMfaRecoveryCodes", "consumes": [ "application\/json" @@ -1151,7 +1117,8 @@ }, "x-appwrite": { "method": "createMfaRecoveryCodes", - "weight": 47, + "group": "mfa", + "weight": 48, "cookies": false, "type": "", "deprecated": false, @@ -1166,9 +1133,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1183,7 +1147,7 @@ ] }, "patch": { - "summary": "Regenerate MFA Recovery Codes", + "summary": "Update MFA recovery codes (regenerate)", "operationId": "accountUpdateMfaRecoveryCodes", "consumes": [ "application\/json" @@ -1205,7 +1169,8 @@ }, "x-appwrite": { "method": "updateMfaRecoveryCodes", - "weight": 48, + "group": "mfa", + "weight": 49, "cookies": false, "type": "", "deprecated": false, @@ -1220,9 +1185,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1261,7 +1223,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 31, + "group": "account", + "weight": 32, "cookies": false, "type": "", "deprecated": false, @@ -1276,9 +1239,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1337,7 +1297,8 @@ }, "x-appwrite": { "method": "updatePassword", - "weight": 32, + "group": "account", + "weight": 33, "cookies": false, "type": "", "deprecated": false, @@ -1352,9 +1313,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1419,7 +1377,8 @@ }, "x-appwrite": { "method": "updatePhone", - "weight": 34, + "group": "account", + "weight": 35, "cookies": false, "type": "", "deprecated": false, @@ -1434,9 +1393,6 @@ "server" ], "packaging": false, - "offline-model": "\/account", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1482,9 +1438,7 @@ "get": { "summary": "Get account preferences", "operationId": "accountGetPrefs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -1502,7 +1456,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 29, + "group": "account", + "weight": 30, "cookies": false, "type": "", "deprecated": false, @@ -1517,9 +1472,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/prefs", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1556,7 +1508,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 35, + "group": "account", + "weight": 36, "cookies": false, "type": "", "deprecated": false, @@ -1571,9 +1524,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/prefs", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1632,7 +1582,8 @@ }, "x-appwrite": { "method": "createRecovery", - "weight": 37, + "group": "recovery", + "weight": 38, "cookies": false, "type": "", "deprecated": false, @@ -1650,9 +1601,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1694,7 +1642,7 @@ ] }, "put": { - "summary": "Create password recovery (confirmation)", + "summary": "Update password recovery (confirmation)", "operationId": "accountUpdateRecovery", "consumes": [ "application\/json" @@ -1716,7 +1664,8 @@ }, "x-appwrite": { "method": "updateRecovery", - "weight": 38, + "group": "recovery", + "weight": 39, "cookies": false, "type": "", "deprecated": false, @@ -1731,9 +1680,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1786,9 +1732,7 @@ "get": { "summary": "List sessions", "operationId": "accountListSessions", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -1806,7 +1750,8 @@ }, "x-appwrite": { "method": "listSessions", - "weight": 10, + "group": "sessions", + "weight": 11, "cookies": false, "type": "", "deprecated": false, @@ -1821,9 +1766,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/sessions", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1855,7 +1797,8 @@ }, "x-appwrite": { "method": "deleteSessions", - "weight": 11, + "group": "sessions", + "weight": 12, "cookies": false, "type": "", "deprecated": false, @@ -1870,9 +1813,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -1911,7 +1851,8 @@ }, "x-appwrite": { "method": "createAnonymousSession", - "weight": 16, + "group": "sessions", + "weight": 17, "cookies": false, "type": "", "deprecated": false, @@ -1926,9 +1867,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -1964,7 +1902,8 @@ }, "x-appwrite": { "method": "createEmailPasswordSession", - "weight": 15, + "group": "sessions", + "weight": 16, "cookies": false, "type": "", "deprecated": false, @@ -1979,9 +1918,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2044,7 +1980,8 @@ }, "x-appwrite": { "method": "updateMagicURLSession", - "weight": 25, + "group": "sessions", + "weight": 26, "cookies": false, "type": "", "deprecated": true, @@ -2059,9 +1996,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2124,7 +2058,8 @@ }, "x-appwrite": { "method": "updatePhoneSession", - "weight": 26, + "group": "sessions", + "weight": 27, "cookies": false, "type": "", "deprecated": true, @@ -2139,9 +2074,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2204,7 +2136,8 @@ }, "x-appwrite": { "method": "createSession", - "weight": 17, + "group": "sessions", + "weight": 18, "cookies": false, "type": "", "deprecated": false, @@ -2219,9 +2152,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2264,9 +2194,7 @@ "get": { "summary": "Get session", "operationId": "accountGetSession", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -2284,7 +2212,8 @@ }, "x-appwrite": { "method": "getSession", - "weight": 12, + "group": "sessions", + "weight": 13, "cookies": false, "type": "", "deprecated": false, @@ -2299,9 +2228,6 @@ "server" ], "packaging": false, - "offline-model": "\/account\/sessions", - "offline-key": "{sessionId}", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -2348,7 +2274,8 @@ }, "x-appwrite": { "method": "updateSession", - "weight": 14, + "group": "sessions", + "weight": 15, "cookies": false, "type": "", "deprecated": false, @@ -2363,9 +2290,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -2407,7 +2331,8 @@ }, "x-appwrite": { "method": "deleteSession", - "weight": 13, + "group": "sessions", + "weight": 14, "cookies": false, "type": "", "deprecated": false, @@ -2422,9 +2347,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -2473,7 +2395,8 @@ }, "x-appwrite": { "method": "updateStatus", - "weight": 36, + "group": "account", + "weight": 37, "cookies": false, "type": "", "deprecated": false, @@ -2488,9 +2411,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -2529,7 +2449,8 @@ }, "x-appwrite": { "method": "createEmailToken", - "weight": 24, + "group": "tokens", + "weight": 25, "cookies": false, "type": "", "deprecated": false, @@ -2537,16 +2458,16 @@ "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-email.md", "rate-limit": 10, "rate-time": 3600, - "rate-key": "url:{url},email:{param-email}", + "rate-key": [ + "url:{url},email:{param-email}", + "url:{url},ip:{ip}" + ], "scope": "sessions.write", "platforms": [ "server", "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2604,7 +2525,7 @@ "tags": [ "account" ], - "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. 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 [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) 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.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", + "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. 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 [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) endpoint to complete the login process. The link sent to the user's email address is valid for 1 hour.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", "responses": { "201": { "description": "Token", @@ -2615,7 +2536,8 @@ }, "x-appwrite": { "method": "createMagicURLToken", - "weight": 23, + "group": "tokens", + "weight": 24, "cookies": false, "type": "", "deprecated": false, @@ -2633,9 +2555,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2690,9 +2609,7 @@ "get": { "summary": "Create OAuth2 token", "operationId": "accountCreateOAuth2Token", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "text\/html" ], @@ -2707,7 +2624,8 @@ }, "x-appwrite": { "method": "createOAuth2Token", - "weight": 22, + "group": "tokens", + "weight": 23, "cookies": false, "type": "webAuth", "deprecated": false, @@ -2722,9 +2640,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2737,7 +2652,7 @@ "parameters": [ { "name": "provider", - "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", + "description": "OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.", "required": true, "type": "string", "x-example": "amazon", @@ -2756,6 +2671,7 @@ "dropbox", "etsy", "facebook", + "figma", "github", "gitlab", "google", @@ -2845,7 +2761,8 @@ }, "x-appwrite": { "method": "createPhoneToken", - "weight": 27, + "group": "tokens", + "weight": 28, "cookies": false, "type": "", "deprecated": false, @@ -2863,9 +2780,6 @@ "client" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [] } @@ -2928,7 +2842,8 @@ }, "x-appwrite": { "method": "createVerification", - "weight": 39, + "group": "verification", + "weight": 40, "cookies": false, "type": "", "deprecated": false, @@ -2943,9 +2858,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -2980,7 +2892,7 @@ ] }, "put": { - "summary": "Create email verification (confirmation)", + "summary": "Update email verification (confirmation)", "operationId": "accountUpdateVerification", "consumes": [ "application\/json" @@ -3002,7 +2914,8 @@ }, "x-appwrite": { "method": "updateVerification", - "weight": 40, + "group": "verification", + "weight": 41, "cookies": false, "type": "", "deprecated": false, @@ -3017,9 +2930,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -3085,7 +2995,8 @@ }, "x-appwrite": { "method": "createPhoneVerification", - "weight": 41, + "group": "verification", + "weight": 42, "cookies": false, "type": "", "deprecated": false, @@ -3103,9 +3014,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -3142,7 +3050,8 @@ }, "x-appwrite": { "method": "updatePhoneVerification", - "weight": 42, + "group": "verification", + "weight": 43, "cookies": false, "type": "", "deprecated": false, @@ -3157,9 +3066,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -3205,9 +3111,7 @@ "get": { "summary": "Get browser icon", "operationId": "avatarsGetBrowser", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/png" ], @@ -3225,7 +3129,8 @@ }, "x-appwrite": { "method": "getBrowser", - "weight": 59, + "group": null, + "weight": 60, "cookies": false, "type": "location", "deprecated": false, @@ -3241,9 +3146,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -3336,9 +3238,7 @@ "get": { "summary": "Get credit card icon", "operationId": "avatarsGetCreditCard", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/png" ], @@ -3356,7 +3256,8 @@ }, "x-appwrite": { "method": "getCreditCard", - "weight": 58, + "group": null, + "weight": 59, "cookies": false, "type": "location", "deprecated": false, @@ -3372,9 +3273,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -3391,7 +3289,7 @@ "parameters": [ { "name": "code", - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro.", + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", "required": true, "type": "string", "x-example": "amex", @@ -3411,7 +3309,8 @@ "union-china-pay", "visa", "mir", - "maestro" + "maestro", + "rupay" ], "x-enum-name": "CreditCard", "x-enum-keys": [ @@ -3430,7 +3329,8 @@ "Union China Pay", "Visa", "MIR", - "Maestro" + "Maestro", + "Rupay" ], "in": "path" }, @@ -3471,9 +3371,7 @@ "get": { "summary": "Get favicon", "operationId": "avatarsGetFavicon", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/*" ], @@ -3491,7 +3389,8 @@ }, "x-appwrite": { "method": "getFavicon", - "weight": 62, + "group": null, + "weight": 63, "cookies": false, "type": "location", "deprecated": false, @@ -3507,9 +3406,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -3540,9 +3436,7 @@ "get": { "summary": "Get country flag", "operationId": "avatarsGetFlag", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/png" ], @@ -3560,7 +3454,8 @@ }, "x-appwrite": { "method": "getFlag", - "weight": 60, + "group": null, + "weight": 61, "cookies": false, "type": "location", "deprecated": false, @@ -3576,9 +3471,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -4033,9 +3925,7 @@ "get": { "summary": "Get image from URL", "operationId": "avatarsGetImage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/*" ], @@ -4053,7 +3943,8 @@ }, "x-appwrite": { "method": "getImage", - "weight": 61, + "group": null, + "weight": 62, "cookies": false, "type": "location", "deprecated": false, @@ -4069,9 +3960,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -4122,9 +4010,7 @@ "get": { "summary": "Get user initials", "operationId": "avatarsGetInitials", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/png" ], @@ -4142,7 +4028,8 @@ }, "x-appwrite": { "method": "getInitials", - "weight": 64, + "group": null, + "weight": 65, "cookies": false, "type": "location", "deprecated": false, @@ -4158,9 +4045,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -4219,9 +4103,7 @@ "get": { "summary": "Get QR code", "operationId": "avatarsGetQR", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/png" ], @@ -4239,7 +4121,8 @@ }, "x-appwrite": { "method": "getQR", - "weight": 63, + "group": null, + "weight": 64, "cookies": false, "type": "location", "deprecated": false, @@ -4255,9 +4138,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -4316,9 +4196,7 @@ "get": { "summary": "List databases", "operationId": "databasesList", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -4336,7 +4214,8 @@ }, "x-appwrite": { "method": "list", - "weight": 69, + "group": "databases", + "weight": 70, "cookies": false, "type": "", "deprecated": false, @@ -4350,9 +4229,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4411,7 +4287,8 @@ }, "x-appwrite": { "method": "create", - "weight": 68, + "group": "databases", + "weight": 69, "cookies": false, "type": "", "deprecated": false, @@ -4425,9 +4302,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4478,9 +4352,7 @@ "get": { "summary": "Get database", "operationId": "databasesGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -4498,7 +4370,8 @@ }, "x-appwrite": { "method": "get", - "weight": 70, + "group": "databases", + "weight": 71, "cookies": false, "type": "", "deprecated": false, @@ -4512,9 +4385,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4560,7 +4430,8 @@ }, "x-appwrite": { "method": "update", - "weight": 72, + "group": "databases", + "weight": 73, "cookies": false, "type": "", "deprecated": false, @@ -4574,9 +4445,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4641,7 +4509,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 73, + "group": "databases", + "weight": 74, "cookies": false, "type": "", "deprecated": false, @@ -4655,9 +4524,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4685,9 +4551,7 @@ "get": { "summary": "List collections", "operationId": "databasesListCollections", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -4705,7 +4569,8 @@ }, "x-appwrite": { "method": "listCollections", - "weight": 75, + "group": "collections", + "weight": 76, "cookies": false, "type": "", "deprecated": false, @@ -4719,9 +4584,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4788,7 +4650,8 @@ }, "x-appwrite": { "method": "createCollection", - "weight": 74, + "group": "collections", + "weight": 75, "cookies": false, "type": "", "deprecated": false, @@ -4802,9 +4665,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4878,9 +4738,7 @@ "get": { "summary": "Get collection", "operationId": "databasesGetCollection", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -4898,7 +4756,8 @@ }, "x-appwrite": { "method": "getCollection", - "weight": 76, + "group": "collections", + "weight": 77, "cookies": false, "type": "", "deprecated": false, @@ -4912,9 +4771,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -4968,7 +4824,8 @@ }, "x-appwrite": { "method": "updateCollection", - "weight": 78, + "group": "collections", + "weight": 79, "cookies": false, "type": "", "deprecated": false, @@ -4982,9 +4839,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5072,7 +4926,8 @@ }, "x-appwrite": { "method": "deleteCollection", - "weight": 79, + "group": "collections", + "weight": 80, "cookies": false, "type": "", "deprecated": false, @@ -5086,9 +4941,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5124,9 +4976,7 @@ "get": { "summary": "List attributes", "operationId": "databasesListAttributes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -5144,7 +4994,8 @@ }, "x-appwrite": { "method": "listAttributes", - "weight": 90, + "group": "attributes", + "weight": 91, "cookies": false, "type": "", "deprecated": false, @@ -5158,9 +5009,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5228,7 +5076,8 @@ }, "x-appwrite": { "method": "createBooleanAttribute", - "weight": 87, + "group": "attributes", + "weight": 88, "cookies": false, "type": "", "deprecated": false, @@ -5242,9 +5091,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5320,7 +5166,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -5335,7 +5183,8 @@ }, "x-appwrite": { "method": "updateBooleanAttribute", - "weight": 99, + "group": "attributes", + "weight": 100, "cookies": false, "type": "", "deprecated": false, @@ -5349,9 +5198,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5446,7 +5292,8 @@ }, "x-appwrite": { "method": "createDatetimeAttribute", - "weight": 88, + "group": "attributes", + "weight": 89, "cookies": false, "type": "", "deprecated": false, @@ -5460,9 +5307,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5538,7 +5382,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -5553,7 +5399,8 @@ }, "x-appwrite": { "method": "updateDatetimeAttribute", - "weight": 100, + "group": "attributes", + "weight": 101, "cookies": false, "type": "", "deprecated": false, @@ -5567,9 +5414,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5664,7 +5508,8 @@ }, "x-appwrite": { "method": "createEmailAttribute", - "weight": 81, + "group": "attributes", + "weight": 82, "cookies": false, "type": "", "deprecated": false, @@ -5678,9 +5523,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5756,7 +5598,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -5771,7 +5615,8 @@ }, "x-appwrite": { "method": "updateEmailAttribute", - "weight": 93, + "group": "attributes", + "weight": 94, "cookies": false, "type": "", "deprecated": false, @@ -5785,9 +5630,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5882,7 +5724,8 @@ }, "x-appwrite": { "method": "createEnumAttribute", - "weight": 82, + "group": "attributes", + "weight": 83, "cookies": false, "type": "", "deprecated": false, @@ -5896,9 +5739,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -5984,7 +5824,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -5999,7 +5841,8 @@ }, "x-appwrite": { "method": "updateEnumAttribute", - "weight": 94, + "group": "attributes", + "weight": 95, "cookies": false, "type": "", "deprecated": false, @@ -6013,9 +5856,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6120,7 +5960,8 @@ }, "x-appwrite": { "method": "createFloatAttribute", - "weight": 86, + "group": "attributes", + "weight": 87, "cookies": false, "type": "", "deprecated": false, @@ -6134,9 +5975,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6224,7 +6062,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -6239,7 +6079,8 @@ }, "x-appwrite": { "method": "updateFloatAttribute", - "weight": 98, + "group": "attributes", + "weight": 99, "cookies": false, "type": "", "deprecated": false, @@ -6253,9 +6094,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6331,8 +6169,6 @@ }, "required": [ "required", - "min", - "max", "default" ] } @@ -6364,7 +6200,8 @@ }, "x-appwrite": { "method": "createIntegerAttribute", - "weight": 85, + "group": "attributes", + "weight": 86, "cookies": false, "type": "", "deprecated": false, @@ -6378,9 +6215,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6468,7 +6302,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -6483,7 +6319,8 @@ }, "x-appwrite": { "method": "updateIntegerAttribute", - "weight": 97, + "group": "attributes", + "weight": 98, "cookies": false, "type": "", "deprecated": false, @@ -6497,9 +6334,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6575,8 +6409,6 @@ }, "required": [ "required", - "min", - "max", "default" ] } @@ -6608,7 +6440,8 @@ }, "x-appwrite": { "method": "createIpAttribute", - "weight": 83, + "group": "attributes", + "weight": 84, "cookies": false, "type": "", "deprecated": false, @@ -6622,9 +6455,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6700,7 +6530,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -6715,7 +6547,8 @@ }, "x-appwrite": { "method": "updateIpAttribute", - "weight": 95, + "group": "attributes", + "weight": 96, "cookies": false, "type": "", "deprecated": false, @@ -6729,9 +6562,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6826,7 +6656,8 @@ }, "x-appwrite": { "method": "createRelationshipAttribute", - "weight": 89, + "group": "attributes", + "weight": 90, "cookies": false, "type": "", "deprecated": false, @@ -6840,9 +6671,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -6962,7 +6790,8 @@ }, "x-appwrite": { "method": "createStringAttribute", - "weight": 80, + "group": "attributes", + "weight": 81, "cookies": false, "type": "", "deprecated": false, @@ -6976,9 +6805,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -7067,7 +6893,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -7082,7 +6910,8 @@ }, "x-appwrite": { "method": "updateStringAttribute", - "weight": 92, + "group": "attributes", + "weight": 93, "cookies": false, "type": "", "deprecated": false, @@ -7096,9 +6925,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -7157,7 +6983,7 @@ "type": "integer", "description": "Maximum size of the string attribute.", "default": null, - "x-example": null + "x-example": 1 }, "newKey": { "type": "string", @@ -7199,7 +7025,8 @@ }, "x-appwrite": { "method": "createUrlAttribute", - "weight": 84, + "group": "attributes", + "weight": 85, "cookies": false, "type": "", "deprecated": false, @@ -7213,9 +7040,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -7291,7 +7115,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -7306,7 +7132,8 @@ }, "x-appwrite": { "method": "updateUrlAttribute", - "weight": 96, + "group": "attributes", + "weight": 97, "cookies": false, "type": "", "deprecated": false, @@ -7320,9 +7147,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -7397,9 +7221,7 @@ "get": { "summary": "Get attribute", "operationId": "databasesGetAttribute", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -7448,7 +7270,8 @@ }, "x-appwrite": { "method": "getAttribute", - "weight": 91, + "group": "attributes", + "weight": 92, "cookies": false, "type": "", "deprecated": false, @@ -7462,9 +7285,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -7520,7 +7340,8 @@ }, "x-appwrite": { "method": "deleteAttribute", - "weight": 102, + "group": "attributes", + "weight": 103, "cookies": false, "type": "", "deprecated": false, @@ -7534,9 +7355,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -7582,7 +7400,9 @@ "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "databases" ], @@ -7597,7 +7417,8 @@ }, "x-appwrite": { "method": "updateRelationshipAttribute", - "weight": 101, + "group": "attributes", + "weight": 102, "cookies": false, "type": "", "deprecated": false, @@ -7611,9 +7432,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -7684,9 +7502,7 @@ "get": { "summary": "List documents", "operationId": "databasesListDocuments", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -7704,7 +7520,8 @@ }, "x-appwrite": { "method": "listDocuments", - "weight": 108, + "group": "documents", + "weight": 109, "cookies": false, "type": "", "deprecated": false, @@ -7720,9 +7537,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -7790,7 +7604,8 @@ }, "x-appwrite": { "method": "createDocument", - "weight": 107, + "group": "documents", + "weight": 108, "cookies": false, "type": "", "deprecated": false, @@ -7806,9 +7621,31 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", + "methods": [ + { + "name": "createDocument", + "parameters": [ + "databaseId", + "collectionId", + "documentId", + "data", + "permissions" + ], + "required": [ + "databaseId", + "collectionId", + "documentId", + "data" + ], + "responses": [ + { + "code": 201, + "model": "#\/definitions\/document" + } + ], + "description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console." + } + ], "auth": { "Project": [], "Session": [] @@ -7848,13 +7685,13 @@ "documentId": { "type": "string", "description": "Document ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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, + "default": "", "x-example": "<DOCUMENT_ID>" }, "data": { "type": "object", "description": "Document data as JSON object.", - "default": {}, + "default": [], "x-example": "{}" }, "permissions": { @@ -7865,12 +7702,281 @@ "items": { "type": "string" } + }, + "documents": { + "type": "array", + "description": "Array of documents data as JSON objects.", + "default": [], + "x-example": null, + "items": { + "type": "object" + } } - }, - "required": [ - "documentId", - "data" - ] + } + } + } + ] + }, + "put": { + "summary": "Create or update documents", + "operationId": "databasesUpsertDocuments", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.\n", + "responses": { + "200": { + "description": "Documents List", + "schema": { + "$ref": "#\/definitions\/documentList" + } + } + }, + "x-appwrite": { + "method": "upsertDocuments", + "group": "documents", + "weight": 114, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/upsert-documents.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-documents.md", + "rate-limit": 120, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "<DATABASE_ID>", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID.", + "required": true, + "type": "string", + "x-example": "<COLLECTION_ID>", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "documents": { + "type": "array", + "description": "Array of document data as JSON objects. May contain partial documents.", + "default": [], + "x-example": null, + "items": { + "type": "object" + } + } + } + } + } + ] + }, + "patch": { + "summary": "Update documents", + "operationId": "databasesUpdateDocuments", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update all documents that match your queries, if no queries are submitted then all documents are updated. You can pass only specific fields to be updated.", + "responses": { + "200": { + "description": "Documents List", + "schema": { + "$ref": "#\/definitions\/documentList" + } + } + }, + "x-appwrite": { + "method": "updateDocuments", + "group": "documents", + "weight": 113, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/update-documents.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-documents.md", + "rate-limit": 120, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "<DATABASE_ID>", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID.", + "required": true, + "type": "string", + "x-example": "<COLLECTION_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": "{}" + }, + "queries": { + "type": "array", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Maximum of 100 queries are allowed, each 4096 characters long.", + "default": [], + "x-example": null, + "items": { + "type": "string" + } + } + } + } + } + ] + }, + "delete": { + "summary": "Delete documents", + "operationId": "databasesDeleteDocuments", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Bulk delete documents using queries, if no queries are passed then all documents are deleted.", + "responses": { + "200": { + "description": "Documents List", + "schema": { + "$ref": "#\/definitions\/documentList" + } + } + }, + "x-appwrite": { + "method": "deleteDocuments", + "group": "documents", + "weight": 116, + "cookies": false, + "type": "", + "deprecated": false, + "demo": "databases\/delete-documents.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-documents.md", + "rate-limit": 60, + "rate-time": 60, + "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", + "scope": "documents.write", + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "<DATABASE_ID>", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "<COLLECTION_ID>", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "queries": { + "type": "array", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Maximum of 100 queries are allowed, each 4096 characters long.", + "default": [], + "x-example": null, + "items": { + "type": "string" + } + } + } } } ] @@ -7880,9 +7986,7 @@ "get": { "summary": "Get document", "operationId": "databasesGetDocument", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -7900,7 +8004,8 @@ }, "x-appwrite": { "method": "getDocument", - "weight": 109, + "group": "documents", + "weight": 110, "cookies": false, "type": "", "deprecated": false, @@ -7916,9 +8021,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -7994,7 +8096,8 @@ }, "x-appwrite": { "method": "updateDocument", - "weight": 111, + "group": "documents", + "weight": 112, "cookies": false, "type": "", "deprecated": false, @@ -8010,9 +8113,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -8095,7 +8195,8 @@ }, "x-appwrite": { "method": "deleteDocument", - "weight": 112, + "group": "documents", + "weight": 115, "cookies": false, "type": "", "deprecated": false, @@ -8111,9 +8212,6 @@ "server" ], "packaging": false, - "offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents", - "offline-key": "{documentId}", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -8159,9 +8257,7 @@ "get": { "summary": "List indexes", "operationId": "databasesListIndexes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -8179,7 +8275,8 @@ }, "x-appwrite": { "method": "listIndexes", - "weight": 104, + "group": "indexes", + "weight": 105, "cookies": false, "type": "", "deprecated": false, @@ -8193,9 +8290,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8261,7 +8355,8 @@ }, "x-appwrite": { "method": "createIndex", - "weight": 103, + "group": "collections", + "weight": 104, "cookies": false, "type": "", "deprecated": false, @@ -8275,9 +8370,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8364,9 +8456,7 @@ "get": { "summary": "Get index", "operationId": "databasesGetIndex", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -8384,7 +8474,8 @@ }, "x-appwrite": { "method": "getIndex", - "weight": 105, + "group": "indexes", + "weight": 106, "cookies": false, "type": "", "deprecated": false, @@ -8398,9 +8489,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8456,7 +8544,8 @@ }, "x-appwrite": { "method": "deleteIndex", - "weight": 106, + "group": "indexes", + "weight": 107, "cookies": false, "type": "", "deprecated": false, @@ -8470,9 +8559,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8515,9 +8601,7 @@ "get": { "summary": "List functions", "operationId": "functionsList", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -8535,7 +8619,8 @@ }, "x-appwrite": { "method": "list", - "weight": 287, + "group": "functions", + "weight": 291, "cookies": false, "type": "", "deprecated": false, @@ -8549,9 +8634,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8610,7 +8692,8 @@ }, "x-appwrite": { "method": "create", - "weight": 286, + "group": "functions", + "weight": 290, "cookies": false, "type": "", "deprecated": false, @@ -8624,9 +8707,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8669,6 +8749,7 @@ "node-19.0", "node-20.0", "node-21.0", + "node-22", "php-8.0", "php-8.1", "php-8.2", @@ -8687,6 +8768,8 @@ "deno-1.24", "deno-1.35", "deno-1.40", + "deno-1.46", + "deno-2.0", "dart-2.15", "dart-2.16", "dart-2.17", @@ -8694,24 +8777,31 @@ "dart-3.0", "dart-3.1", "dart-3.3", - "dotnet-3.1", + "dart-3.5", "dotnet-6.0", "dotnet-7.0", + "dotnet-8.0", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", + "java-22", "swift-5.5", "swift-5.8", "swift-5.9", + "swift-5.10", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", + "kotlin-2.0", "cpp-17", "cpp-20", "bun-1.0", - "go-1.23" + "bun-1.1", + "go-1.23", + "static-1", + "flutter-3.24" ], "x-enum-name": null, "x-enum-keys": [] @@ -8836,7 +8926,7 @@ "specification": { "type": "string", "description": "Runtime specification for the function and builds.", - "default": "s-0.5vcpu-512mb", + "default": "s-1vcpu-512mb", "x-example": null } }, @@ -8854,9 +8944,7 @@ "get": { "summary": "List runtimes", "operationId": "functionsListRuntimes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -8874,7 +8962,8 @@ }, "x-appwrite": { "method": "listRuntimes", - "weight": 288, + "group": "runtimes", + "weight": 292, "cookies": false, "type": "", "deprecated": false, @@ -8888,9 +8977,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8908,9 +8994,7 @@ "get": { "summary": "List available function runtime specifications", "operationId": "functionsListSpecifications", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -8928,7 +9012,8 @@ }, "x-appwrite": { "method": "listSpecifications", - "weight": 289, + "group": "runtimes", + "weight": 293, "cookies": false, "type": "", "deprecated": false, @@ -8943,9 +9028,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -8963,9 +9045,7 @@ "get": { "summary": "Get function", "operationId": "functionsGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -8983,7 +9063,8 @@ }, "x-appwrite": { "method": "get", - "weight": 290, + "group": "functions", + "weight": 294, "cookies": false, "type": "", "deprecated": false, @@ -8997,9 +9078,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9045,7 +9123,8 @@ }, "x-appwrite": { "method": "update", - "weight": 293, + "group": "functions", + "weight": 297, "cookies": false, "type": "", "deprecated": false, @@ -9059,9 +9138,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9106,6 +9182,7 @@ "node-19.0", "node-20.0", "node-21.0", + "node-22", "php-8.0", "php-8.1", "php-8.2", @@ -9124,6 +9201,8 @@ "deno-1.24", "deno-1.35", "deno-1.40", + "deno-1.46", + "deno-2.0", "dart-2.15", "dart-2.16", "dart-2.17", @@ -9131,24 +9210,31 @@ "dart-3.0", "dart-3.1", "dart-3.3", - "dotnet-3.1", + "dart-3.5", "dotnet-6.0", "dotnet-7.0", + "dotnet-8.0", "java-8.0", "java-11.0", "java-17.0", "java-18.0", "java-21.0", + "java-22", "swift-5.5", "swift-5.8", "swift-5.9", + "swift-5.10", "kotlin-1.6", "kotlin-1.8", "kotlin-1.9", + "kotlin-2.0", "cpp-17", "cpp-20", "bun-1.0", - "go-1.23" + "bun-1.1", + "go-1.23", + "static-1", + "flutter-3.24" ], "x-enum-name": null, "x-enum-keys": [] @@ -9250,7 +9336,7 @@ "specification": { "type": "string", "description": "Runtime specification for the function and builds.", - "default": "s-0.5vcpu-512mb", + "default": "s-1vcpu-512mb", "x-example": null } }, @@ -9279,7 +9365,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 296, + "group": "functions", + "weight": 300, "cookies": false, "type": "", "deprecated": false, @@ -9293,9 +9380,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9323,9 +9407,7 @@ "get": { "summary": "List deployments", "operationId": "functionsListDeployments", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -9343,7 +9425,8 @@ }, "x-appwrite": { "method": "listDeployments", - "weight": 298, + "group": "deployments", + "weight": 302, "cookies": false, "type": "", "deprecated": false, @@ -9357,9 +9440,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9426,7 +9506,8 @@ }, "x-appwrite": { "method": "createDeployment", - "weight": 297, + "group": "deployments", + "weight": 301, "cookies": false, "type": "upload", "deprecated": false, @@ -9440,9 +9521,6 @@ "server" ], "packaging": true, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9501,9 +9579,7 @@ "get": { "summary": "Get deployment", "operationId": "functionsGetDeployment", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -9521,7 +9597,8 @@ }, "x-appwrite": { "method": "getDeployment", - "weight": 299, + "group": "deployments", + "weight": 303, "cookies": false, "type": "", "deprecated": false, @@ -9535,9 +9612,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9591,7 +9665,8 @@ }, "x-appwrite": { "method": "updateDeployment", - "weight": 295, + "group": "deployments", + "weight": 299, "cookies": false, "type": "", "deprecated": false, @@ -9605,9 +9680,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9656,7 +9728,8 @@ }, "x-appwrite": { "method": "deleteDeployment", - "weight": 300, + "group": "deployments", + "weight": 304, "cookies": false, "type": "", "deprecated": false, @@ -9670,9 +9743,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9706,16 +9776,18 @@ }, "\/functions\/{functionId}\/deployments\/{deploymentId}\/build": { "post": { - "summary": "Rebuild deployment", + "summary": "Create deployment build", "operationId": "functionsCreateBuild", "consumes": [ "application\/json" ], - "produces": [], + "produces": [ + "application\/json" + ], "tags": [ "functions" ], - "description": "", + "description": "Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build.", "responses": { "204": { "description": "No content" @@ -9723,12 +9795,13 @@ }, "x-appwrite": { "method": "createBuild", - "weight": 301, + "group": "deployments", + "weight": 305, "cookies": false, "type": "", "deprecated": false, "demo": "functions\/create-build.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/create-build.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9737,9 +9810,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9797,7 +9867,7 @@ "tags": [ "functions" ], - "description": "", + "description": "Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn't started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status 'ready') or failed. The response includes the final build status and details.", "responses": { "200": { "description": "Build", @@ -9808,12 +9878,13 @@ }, "x-appwrite": { "method": "updateDeploymentBuild", - "weight": 302, + "group": "deployments", + "weight": 306, "cookies": false, "type": "", "deprecated": false, "demo": "functions\/update-deployment-build.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/functions\/update-deployment-build.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -9822,9 +9893,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9858,11 +9926,9 @@ }, "\/functions\/{functionId}\/deployments\/{deploymentId}\/download": { "get": { - "summary": "Download deployment", + "summary": "Get deployment download", "operationId": "functionsGetDeploymentDownload", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "*\/*" ], @@ -9880,7 +9946,8 @@ }, "x-appwrite": { "method": "getDeploymentDownload", - "weight": 294, + "group": "deployments", + "weight": 298, "cookies": false, "type": "location", "deprecated": false, @@ -9895,9 +9962,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -9934,9 +9998,7 @@ "get": { "summary": "List executions", "operationId": "functionsListExecutions", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -9954,7 +10016,8 @@ }, "x-appwrite": { "method": "listExecutions", - "weight": 304, + "group": "executions", + "weight": 308, "cookies": false, "type": "", "deprecated": false, @@ -9970,9 +10033,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -10022,7 +10082,7 @@ "summary": "Create execution", "operationId": "functionsCreateExecution", "consumes": [ - "multipart\/form-data" + "application\/json" ], "produces": [ "multipart\/form-data" @@ -10041,7 +10101,8 @@ }, "x-appwrite": { "method": "createExecution", - "weight": 303, + "group": "executions", + "weight": 307, "cookies": false, "type": "", "deprecated": false, @@ -10057,9 +10118,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -10069,79 +10127,73 @@ { "Project": [], "Session": [], - "Key": [], - "JWT": [] - } - ], - "parameters": [ - { - "name": "functionId", - "description": "Function ID.", - "required": true, - "type": "string", - "x-example": "<FUNCTION_ID>", - "in": "path" - }, - { - "name": "body", - "description": "HTTP body of execution. Default value is empty string.", - "required": false, - "type": "payload", - "default": "", - "in": "formData" - }, - { - "name": "async", - "description": "Execute code in the background. Default value is false.", - "required": false, - "type": "boolean", - "x-example": false, - "default": false, - "in": "formData" - }, - { - "name": "path", - "description": "HTTP path of execution. Path can include query params. Default value is \/", - "required": false, - "type": "string", - "x-example": "<PATH>", - "default": "\/", - "in": "formData" - }, - { - "name": "method", - "description": "HTTP method of execution. Default value is GET.", - "required": false, - "type": "string", - "x-example": "GET", - "enum": [ - "GET", - "POST", - "PUT", - "PATCH", - "DELETE", - "OPTIONS" - ], - "x-enum-name": "ExecutionMethod", - "x-enum-keys": [], - "default": "POST", - "in": "formData" - }, + "Key": [], + "JWT": [] + } + ], + "parameters": [ { - "name": "headers", - "description": "HTTP headers of execution. Defaults to empty.", - "required": false, - "type": "object", - "default": [], - "x-example": "{}", - "in": "formData" + "name": "functionId", + "description": "Function ID.", + "required": true, + "type": "string", + "x-example": "<FUNCTION_ID>", + "in": "path" }, { - "name": "scheduledAt", - "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", - "required": false, - "type": "string", - "in": "formData" + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "body": { + "type": "string", + "description": "HTTP body of execution. Default value is empty string.", + "default": "", + "x-example": "<BODY>" + }, + "async": { + "type": "boolean", + "description": "Execute code in the background. Default value is false.", + "default": false, + "x-example": false + }, + "path": { + "type": "string", + "description": "HTTP path of execution. Path can include query params. Default value is \/", + "default": "\/", + "x-example": "<PATH>" + }, + "method": { + "type": "string", + "description": "HTTP method of execution. Default value is GET.", + "default": "POST", + "x-example": "GET", + "enum": [ + "GET", + "POST", + "PUT", + "PATCH", + "DELETE", + "OPTIONS" + ], + "x-enum-name": "ExecutionMethod", + "x-enum-keys": [] + }, + "headers": { + "type": "object", + "description": "HTTP headers of execution. Defaults to empty.", + "default": [], + "x-example": "{}" + }, + "scheduledAt": { + "type": "string", + "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", + "default": null, + "x-example": null + } + } + } } ] } @@ -10150,9 +10202,7 @@ "get": { "summary": "Get execution", "operationId": "functionsGetExecution", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -10170,7 +10220,8 @@ }, "x-appwrite": { "method": "getExecution", - "weight": 305, + "group": "executions", + "weight": 309, "cookies": false, "type": "", "deprecated": false, @@ -10186,9 +10237,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -10239,7 +10287,8 @@ }, "x-appwrite": { "method": "deleteExecution", - "weight": 306, + "group": "executions", + "weight": 310, "cookies": false, "type": "", "deprecated": false, @@ -10253,9 +10302,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10291,9 +10337,7 @@ "get": { "summary": "List variables", "operationId": "functionsListVariables", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -10311,7 +10355,8 @@ }, "x-appwrite": { "method": "listVariables", - "weight": 308, + "group": "variables", + "weight": 312, "cookies": false, "type": "", "deprecated": false, @@ -10325,9 +10370,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10373,7 +10415,8 @@ }, "x-appwrite": { "method": "createVariable", - "weight": 307, + "group": "variables", + "weight": 311, "cookies": false, "type": "", "deprecated": false, @@ -10387,9 +10430,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10442,9 +10482,7 @@ "get": { "summary": "Get variable", "operationId": "functionsGetVariable", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -10462,7 +10500,8 @@ }, "x-appwrite": { "method": "getVariable", - "weight": 309, + "group": "variables", + "weight": 313, "cookies": false, "type": "", "deprecated": false, @@ -10476,9 +10515,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10532,7 +10568,8 @@ }, "x-appwrite": { "method": "updateVariable", - "weight": 310, + "group": "variables", + "weight": 314, "cookies": false, "type": "", "deprecated": false, @@ -10546,9 +10583,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10621,7 +10655,8 @@ }, "x-appwrite": { "method": "deleteVariable", - "weight": 311, + "group": "variables", + "weight": 315, "cookies": false, "type": "", "deprecated": false, @@ -10635,9 +10670,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10693,7 +10725,8 @@ }, "x-appwrite": { "method": "query", - "weight": 329, + "group": "graphql", + "weight": 333, "cookies": false, "type": "graphql", "deprecated": false, @@ -10709,9 +10742,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10771,7 +10801,8 @@ }, "x-appwrite": { "method": "mutation", - "weight": 328, + "group": "graphql", + "weight": 332, "cookies": false, "type": "graphql", "deprecated": false, @@ -10787,9 +10818,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10829,9 +10857,7 @@ "get": { "summary": "Get HTTP", "operationId": "healthGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -10849,7 +10875,8 @@ }, "x-appwrite": { "method": "get", - "weight": 124, + "group": "health", + "weight": 128, "cookies": false, "type": "", "deprecated": false, @@ -10863,9 +10890,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10883,9 +10907,7 @@ "get": { "summary": "Get antivirus", "operationId": "healthGetAntivirus", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -10903,7 +10925,8 @@ }, "x-appwrite": { "method": "getAntivirus", - "weight": 146, + "group": "health", + "weight": 149, "cookies": false, "type": "", "deprecated": false, @@ -10917,9 +10940,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10937,9 +10957,7 @@ "get": { "summary": "Get cache", "operationId": "healthGetCache", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -10957,7 +10975,8 @@ }, "x-appwrite": { "method": "getCache", - "weight": 127, + "group": "health", + "weight": 131, "cookies": false, "type": "", "deprecated": false, @@ -10971,9 +10990,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -10991,9 +11007,7 @@ "get": { "summary": "Get the SSL certificate for a domain", "operationId": "healthGetCertificate", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11011,7 +11025,8 @@ }, "x-appwrite": { "method": "getCertificate", - "weight": 133, + "group": "health", + "weight": 136, "cookies": false, "type": "", "deprecated": false, @@ -11025,9 +11040,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11054,9 +11066,7 @@ "get": { "summary": "Get DB", "operationId": "healthGetDB", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11074,7 +11084,8 @@ }, "x-appwrite": { "method": "getDB", - "weight": 126, + "group": "health", + "weight": 130, "cookies": false, "type": "", "deprecated": false, @@ -11088,9 +11099,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11108,9 +11116,7 @@ "get": { "summary": "Get pubsub", "operationId": "healthGetPubSub", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11128,7 +11134,8 @@ }, "x-appwrite": { "method": "getPubSub", - "weight": 129, + "group": "health", + "weight": 132, "cookies": false, "type": "", "deprecated": false, @@ -11142,63 +11149,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", - "auth": { - "Project": [], - "Key": [] - } - }, - "security": [ - { - "Project": [], - "Key": [] - } - ] - } - }, - "\/health\/queue": { - "get": { - "summary": "Get queue", - "operationId": "healthGetQueue", - "consumes": [ - "application\/json" - ], - "produces": [ - "application\/json" - ], - "tags": [ - "health" - ], - "description": "Check the Appwrite queue messaging servers are up and connection is successful.", - "responses": { - "200": { - "description": "Health Status", - "schema": { - "$ref": "#\/definitions\/healthStatus" - } - } - }, - "x-appwrite": { - "method": "getQueue", - "weight": 128, - "cookies": false, - "type": "", - "deprecated": false, - "demo": "health\/get-queue.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue.md", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "health.read", - "platforms": [ - "server" - ], - "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11216,9 +11166,7 @@ "get": { "summary": "Get builds queue", "operationId": "healthGetQueueBuilds", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11236,7 +11184,8 @@ }, "x-appwrite": { "method": "getQueueBuilds", - "weight": 135, + "group": "queue", + "weight": 138, "cookies": false, "type": "", "deprecated": false, @@ -11250,9 +11199,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11281,9 +11227,7 @@ "get": { "summary": "Get certificates queue", "operationId": "healthGetQueueCertificates", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11301,7 +11245,8 @@ }, "x-appwrite": { "method": "getQueueCertificates", - "weight": 134, + "group": "queue", + "weight": 137, "cookies": false, "type": "", "deprecated": false, @@ -11315,9 +11260,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11346,9 +11288,7 @@ "get": { "summary": "Get databases queue", "operationId": "healthGetQueueDatabases", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11366,7 +11306,8 @@ }, "x-appwrite": { "method": "getQueueDatabases", - "weight": 136, + "group": "queue", + "weight": 139, "cookies": false, "type": "", "deprecated": false, @@ -11380,9 +11321,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11420,9 +11358,7 @@ "get": { "summary": "Get deletes queue", "operationId": "healthGetQueueDeletes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11440,7 +11376,8 @@ }, "x-appwrite": { "method": "getQueueDeletes", - "weight": 137, + "group": "queue", + "weight": 140, "cookies": false, "type": "", "deprecated": false, @@ -11454,9 +11391,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11485,9 +11419,7 @@ "get": { "summary": "Get number of failed queue jobs", "operationId": "healthGetFailedJobs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11505,7 +11437,8 @@ }, "x-appwrite": { "method": "getFailedJobs", - "weight": 147, + "group": "queue", + "weight": 150, "cookies": false, "type": "", "deprecated": false, @@ -11519,9 +11452,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11546,8 +11476,8 @@ "v1-audits", "v1-mails", "v1-functions", - "v1-usage", - "v1-usage-dump", + "v1-stats-resources", + "v1-stats-usage", "v1-webhooks", "v1-certificates", "v1-builds", @@ -11574,9 +11504,7 @@ "get": { "summary": "Get functions queue", "operationId": "healthGetQueueFunctions", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11594,7 +11522,8 @@ }, "x-appwrite": { "method": "getQueueFunctions", - "weight": 141, + "group": "queue", + "weight": 144, "cookies": false, "type": "", "deprecated": false, @@ -11608,9 +11537,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11639,9 +11565,7 @@ "get": { "summary": "Get logs queue", "operationId": "healthGetQueueLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11659,7 +11583,8 @@ }, "x-appwrite": { "method": "getQueueLogs", - "weight": 132, + "group": "queue", + "weight": 135, "cookies": false, "type": "", "deprecated": false, @@ -11673,9 +11598,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11704,9 +11626,7 @@ "get": { "summary": "Get mails queue", "operationId": "healthGetQueueMails", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11724,7 +11644,8 @@ }, "x-appwrite": { "method": "getQueueMails", - "weight": 138, + "group": "queue", + "weight": 141, "cookies": false, "type": "", "deprecated": false, @@ -11738,9 +11659,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11769,9 +11687,7 @@ "get": { "summary": "Get messaging queue", "operationId": "healthGetQueueMessaging", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11789,7 +11705,8 @@ }, "x-appwrite": { "method": "getQueueMessaging", - "weight": 139, + "group": "queue", + "weight": 142, "cookies": false, "type": "", "deprecated": false, @@ -11803,9 +11720,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11834,9 +11748,7 @@ "get": { "summary": "Get migrations queue", "operationId": "healthGetQueueMigrations", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -11854,7 +11766,8 @@ }, "x-appwrite": { "method": "getQueueMigrations", - "weight": 140, + "group": "queue", + "weight": 143, "cookies": false, "type": "", "deprecated": false, @@ -11868,9 +11781,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11895,20 +11805,18 @@ ] } }, - "\/health\/queue\/usage": { + "\/health\/queue\/stats-resources": { "get": { - "summary": "Get usage queue", - "operationId": "healthGetQueueUsage", - "consumes": [ - "application\/json" - ], + "summary": "Get stats resources queue", + "operationId": "healthGetQueueStatsResources", + "consumes": [], "produces": [ "application\/json" ], "tags": [ "health" ], - "description": "Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.", + "description": "Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.", "responses": { "200": { "description": "Health Queue", @@ -11918,13 +11826,14 @@ } }, "x-appwrite": { - "method": "getQueueUsage", - "weight": 142, + "method": "getQueueStatsResources", + "group": "queue", + "weight": 145, "cookies": false, "type": "", "deprecated": false, - "demo": "health\/get-queue-usage.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-usage.md", + "demo": "health\/get-queue-stats-resources.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-stats-resources.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11933,9 +11842,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -11960,20 +11866,18 @@ ] } }, - "\/health\/queue\/usage-dump": { + "\/health\/queue\/stats-usage": { "get": { - "summary": "Get usage dump queue", - "operationId": "healthGetQueueUsageDump", - "consumes": [ - "application\/json" - ], + "summary": "Get stats usage queue", + "operationId": "healthGetQueueUsage", + "consumes": [], "produces": [ "application\/json" ], "tags": [ "health" ], - "description": "Get the number of projects containing metrics that are waiting to be processed in the Appwrite internal queue server.", + "description": "Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.", "responses": { "200": { "description": "Health Queue", @@ -11983,13 +11887,14 @@ } }, "x-appwrite": { - "method": "getQueueUsageDump", - "weight": 143, + "method": "getQueueUsage", + "group": "queue", + "weight": 146, "cookies": false, "type": "", "deprecated": false, - "demo": "health\/get-queue-usage-dump.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-usage-dump.md", + "demo": "health\/get-queue-usage.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-queue-stats-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -11998,9 +11903,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -12029,9 +11931,7 @@ "get": { "summary": "Get webhooks queue", "operationId": "healthGetQueueWebhooks", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12049,7 +11949,8 @@ }, "x-appwrite": { "method": "getQueueWebhooks", - "weight": 131, + "group": "queue", + "weight": 134, "cookies": false, "type": "", "deprecated": false, @@ -12063,9 +11964,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -12094,9 +11992,7 @@ "get": { "summary": "Get storage", "operationId": "healthGetStorage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12114,7 +12010,8 @@ }, "x-appwrite": { "method": "getStorage", - "weight": 145, + "group": "storage", + "weight": 148, "cookies": false, "type": "", "deprecated": false, @@ -12128,9 +12025,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -12148,9 +12042,7 @@ "get": { "summary": "Get local storage", "operationId": "healthGetStorageLocal", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12168,7 +12060,8 @@ }, "x-appwrite": { "method": "getStorageLocal", - "weight": 144, + "group": "storage", + "weight": 147, "cookies": false, "type": "", "deprecated": false, @@ -12182,9 +12075,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -12202,9 +12092,7 @@ "get": { "summary": "Get time", "operationId": "healthGetTime", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12222,7 +12110,8 @@ }, "x-appwrite": { "method": "getTime", - "weight": 130, + "group": "health", + "weight": 133, "cookies": false, "type": "", "deprecated": false, @@ -12236,9 +12125,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -12256,9 +12142,7 @@ "get": { "summary": "Get user locale", "operationId": "localeGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12276,7 +12160,8 @@ }, "x-appwrite": { "method": "get", - "weight": 116, + "group": null, + "weight": 120, "cookies": false, "type": "", "deprecated": false, @@ -12292,9 +12177,6 @@ "server" ], "packaging": false, - "offline-model": "\/localed", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -12312,11 +12194,9 @@ }, "\/locale\/codes": { "get": { - "summary": "List Locale Codes", + "summary": "List locale codes", "operationId": "localeListCodes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12334,7 +12214,8 @@ }, "x-appwrite": { "method": "listCodes", - "weight": 117, + "group": null, + "weight": 121, "cookies": false, "type": "", "deprecated": false, @@ -12350,9 +12231,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/localeCode", - "offline-key": "current", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -12372,9 +12250,7 @@ "get": { "summary": "List continents", "operationId": "localeListContinents", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12392,7 +12268,8 @@ }, "x-appwrite": { "method": "listContinents", - "weight": 121, + "group": null, + "weight": 125, "cookies": false, "type": "", "deprecated": false, @@ -12408,9 +12285,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/continents", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [], "Session": [] @@ -12430,9 +12304,7 @@ "get": { "summary": "List countries", "operationId": "localeListCountries", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12450,7 +12322,8 @@ }, "x-appwrite": { "method": "listCountries", - "weight": 118, + "group": null, + "weight": 122, "cookies": false, "type": "", "deprecated": false, @@ -12466,9 +12339,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [], "Session": [] @@ -12488,9 +12358,7 @@ "get": { "summary": "List EU countries", "operationId": "localeListCountriesEU", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12508,7 +12376,8 @@ }, "x-appwrite": { "method": "listCountriesEU", - "weight": 119, + "group": null, + "weight": 123, "cookies": false, "type": "", "deprecated": false, @@ -12524,9 +12393,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries\/eu", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [], "Session": [] @@ -12546,9 +12412,7 @@ "get": { "summary": "List countries phone codes", "operationId": "localeListCountriesPhones", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12566,7 +12430,8 @@ }, "x-appwrite": { "method": "listCountriesPhones", - "weight": 120, + "group": null, + "weight": 124, "cookies": false, "type": "", "deprecated": false, @@ -12582,9 +12447,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/countries\/phones", - "offline-key": "", - "offline-response-key": "countryCode", "auth": { "Project": [], "Session": [] @@ -12604,9 +12466,7 @@ "get": { "summary": "List currencies", "operationId": "localeListCurrencies", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12624,7 +12484,8 @@ }, "x-appwrite": { "method": "listCurrencies", - "weight": 122, + "group": null, + "weight": 126, "cookies": false, "type": "", "deprecated": false, @@ -12640,9 +12501,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/currencies", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [], "Session": [] @@ -12662,9 +12520,7 @@ "get": { "summary": "List languages", "operationId": "localeListLanguages", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12682,7 +12538,8 @@ }, "x-appwrite": { "method": "listLanguages", - "weight": 123, + "group": null, + "weight": 127, "cookies": false, "type": "", "deprecated": false, @@ -12698,9 +12555,6 @@ "server" ], "packaging": false, - "offline-model": "\/locale\/languages", - "offline-key": "", - "offline-response-key": "code", "auth": { "Project": [], "Session": [] @@ -12720,9 +12574,7 @@ "get": { "summary": "List messages", "operationId": "messagingListMessages", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -12740,7 +12592,8 @@ }, "x-appwrite": { "method": "listMessages", - "weight": 388, + "group": "messages", + "weight": 386, "cookies": false, "type": "", "deprecated": false, @@ -12755,9 +12608,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -12818,7 +12668,8 @@ }, "x-appwrite": { "method": "createEmail", - "weight": 385, + "group": "messages", + "weight": 383, "cookies": false, "type": "", "deprecated": false, @@ -12833,9 +12684,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -12968,7 +12816,7 @@ "tags": [ "messaging" ], - "description": "Update an email message by its unique ID.\n", + "description": "Update an email message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", "responses": { "200": { "description": "Message", @@ -12979,7 +12827,8 @@ }, "x-appwrite": { "method": "updateEmail", - "weight": 392, + "group": "messages", + "weight": 390, "cookies": false, "type": "", "deprecated": false, @@ -12994,9 +12843,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13137,7 +12983,8 @@ }, "x-appwrite": { "method": "createPush", - "weight": 387, + "group": "messages", + "weight": 385, "cookies": false, "type": "", "deprecated": false, @@ -13152,9 +12999,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13182,13 +13026,13 @@ "title": { "type": "string", "description": "Title for push notification.", - "default": null, + "default": "", "x-example": "<TITLE>" }, "body": { "type": "string", "description": "Body for push notification.", - "default": null, + "default": "", "x-example": "<BODY>" }, "topics": { @@ -13220,7 +13064,7 @@ }, "data": { "type": "object", - "description": "Additional Data for push notification.", + "description": "Additional key-value pair data for push notification.", "default": {}, "x-example": "{}" }, @@ -13244,7 +13088,7 @@ }, "sound": { "type": "string", - "description": "Sound for push notification. Available only for Android and IOS Platform.", + "description": "Sound for push notification. Available only for Android and iOS Platform.", "default": "", "x-example": "<SOUND>" }, @@ -13261,10 +13105,10 @@ "x-example": "<TAG>" }, "badge": { - "type": "string", - "description": "Badge for push notification. Available only for IOS Platform.", - "default": "", - "x-example": "<BADGE>" + "type": "integer", + "description": "Badge for push notification. Available only for iOS Platform.", + "default": -1, + "x-example": null }, "draft": { "type": "boolean", @@ -13277,12 +13121,34 @@ "description": "Scheduled delivery time for message in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future.", "default": null, "x-example": null + }, + "contentAvailable": { + "type": "boolean", + "description": "If set to true, the notification will be delivered in the background. Available only for iOS Platform.", + "default": false, + "x-example": false + }, + "critical": { + "type": "boolean", + "description": "If set to true, the notification will be marked as critical. This requires the app to have the critical notification entitlement. Available only for iOS Platform.", + "default": false, + "x-example": false + }, + "priority": { + "type": "string", + "description": "Set the notification priority. \"normal\" will consider device state and may not deliver notifications immediately. \"high\" will always attempt to immediately deliver the notification.", + "default": "high", + "x-example": "normal", + "enum": [ + "normal", + "high" + ], + "x-enum-name": "MessagePriority", + "x-enum-keys": [] } }, "required": [ - "messageId", - "title", - "body" + "messageId" ] } } @@ -13302,7 +13168,7 @@ "tags": [ "messaging" ], - "description": "Update a push notification by its unique ID.\n", + "description": "Update a push notification by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", "responses": { "200": { "description": "Message", @@ -13313,7 +13179,8 @@ }, "x-appwrite": { "method": "updatePush", - "weight": 394, + "group": "messages", + "weight": 392, "cookies": false, "type": "", "deprecated": false, @@ -13328,9 +13195,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13455,6 +13319,30 @@ "description": "Scheduled delivery time for message in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future.", "default": null, "x-example": null + }, + "contentAvailable": { + "type": "boolean", + "description": "If set to true, the notification will be delivered in the background. Available only for iOS Platform.", + "default": null, + "x-example": false + }, + "critical": { + "type": "boolean", + "description": "If set to true, the notification will be marked as critical. This requires the app to have the critical notification entitlement. Available only for iOS Platform.", + "default": null, + "x-example": false + }, + "priority": { + "type": "string", + "description": "Set the notification priority. \"normal\" will consider device battery state and may send notifications later. \"high\" will always attempt to immediately deliver the notification.", + "default": null, + "x-example": "normal", + "enum": [ + "normal", + "high" + ], + "x-enum-name": "MessagePriority", + "x-enum-keys": [] } } } @@ -13486,7 +13374,8 @@ }, "x-appwrite": { "method": "createSms", - "weight": 386, + "group": "messages", + "weight": 384, "cookies": false, "type": "", "deprecated": false, @@ -13501,9 +13390,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13596,7 +13482,7 @@ "tags": [ "messaging" ], - "description": "Update an email message by its unique ID.\n", + "description": "Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", "responses": { "200": { "description": "Message", @@ -13607,12 +13493,13 @@ }, "x-appwrite": { "method": "updateSms", - "weight": 393, + "group": "messages", + "weight": 391, "cookies": false, "type": "", "deprecated": false, "demo": "messaging\/update-sms.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/update-email.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/update-sms.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -13622,9 +13509,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13706,9 +13590,7 @@ "get": { "summary": "Get message", "operationId": "messagingGetMessage", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13726,7 +13608,8 @@ }, "x-appwrite": { "method": "getMessage", - "weight": 391, + "group": "messages", + "weight": 389, "cookies": false, "type": "", "deprecated": false, @@ -13741,9 +13624,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13772,9 +13652,7 @@ "consumes": [ "application\/json" ], - "produces": [ - "application\/json" - ], + "produces": [], "tags": [ "messaging" ], @@ -13786,7 +13664,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 395, + "group": "messages", + "weight": 393, "cookies": false, "type": "", "deprecated": false, @@ -13801,9 +13680,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13831,9 +13707,7 @@ "get": { "summary": "List message logs", "operationId": "messagingListMessageLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13851,7 +13725,8 @@ }, "x-appwrite": { "method": "listMessageLogs", - "weight": 389, + "group": "logs", + "weight": 387, "cookies": false, "type": "", "deprecated": false, @@ -13866,9 +13741,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13908,9 +13780,7 @@ "get": { "summary": "List message targets", "operationId": "messagingListTargets", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -13928,7 +13798,8 @@ }, "x-appwrite": { "method": "listTargets", - "weight": 390, + "group": "messages", + "weight": 388, "cookies": false, "type": "", "deprecated": false, @@ -13943,9 +13814,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -13985,9 +13853,7 @@ "get": { "summary": "List providers", "operationId": "messagingListProviders", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -14005,7 +13871,8 @@ }, "x-appwrite": { "method": "listProviders", - "weight": 360, + "group": "providers", + "weight": 358, "cookies": false, "type": "", "deprecated": false, @@ -14020,9 +13887,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14083,7 +13947,8 @@ }, "x-appwrite": { "method": "createApnsProvider", - "weight": 359, + "group": "providers", + "weight": 357, "cookies": false, "type": "", "deprecated": false, @@ -14098,9 +13963,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14201,7 +14063,8 @@ }, "x-appwrite": { "method": "updateApnsProvider", - "weight": 372, + "group": "providers", + "weight": 370, "cookies": false, "type": "", "deprecated": false, @@ -14216,9 +14079,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14317,7 +14177,8 @@ }, "x-appwrite": { "method": "createFcmProvider", - "weight": 358, + "group": "providers", + "weight": 356, "cookies": false, "type": "", "deprecated": false, @@ -14332,9 +14193,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14411,7 +14269,8 @@ }, "x-appwrite": { "method": "updateFcmProvider", - "weight": 371, + "group": "providers", + "weight": 369, "cookies": false, "type": "", "deprecated": false, @@ -14426,9 +14285,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14503,7 +14359,8 @@ }, "x-appwrite": { "method": "createMailgunProvider", - "weight": 350, + "group": "providers", + "weight": 348, "cookies": false, "type": "", "deprecated": false, @@ -14518,9 +14375,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14633,7 +14487,8 @@ }, "x-appwrite": { "method": "updateMailgunProvider", - "weight": 363, + "group": "providers", + "weight": 361, "cookies": false, "type": "", "deprecated": false, @@ -14648,9 +14503,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14761,7 +14613,8 @@ }, "x-appwrite": { "method": "createMsg91Provider", - "weight": 353, + "group": "providers", + "weight": 351, "cookies": false, "type": "", "deprecated": false, @@ -14776,9 +14629,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14867,7 +14717,8 @@ }, "x-appwrite": { "method": "updateMsg91Provider", - "weight": 366, + "group": "providers", + "weight": 364, "cookies": false, "type": "", "deprecated": false, @@ -14882,9 +14733,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -14971,7 +14819,8 @@ }, "x-appwrite": { "method": "createSendgridProvider", - "weight": 351, + "group": "providers", + "weight": 349, "cookies": false, "type": "", "deprecated": false, @@ -14986,9 +14835,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15089,7 +14935,8 @@ }, "x-appwrite": { "method": "updateSendgridProvider", - "weight": 364, + "group": "providers", + "weight": 362, "cookies": false, "type": "", "deprecated": false, @@ -15104,9 +14951,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15205,7 +15049,8 @@ }, "x-appwrite": { "method": "createSmtpProvider", - "weight": 352, + "group": "providers", + "weight": 350, "cookies": false, "type": "", "deprecated": false, @@ -15220,9 +15065,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15367,7 +15209,8 @@ }, "x-appwrite": { "method": "updateSmtpProvider", - "weight": 365, + "group": "providers", + "weight": 363, "cookies": false, "type": "", "deprecated": false, @@ -15382,9 +15225,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15526,7 +15366,8 @@ }, "x-appwrite": { "method": "createTelesignProvider", - "weight": 354, + "group": "providers", + "weight": 352, "cookies": false, "type": "", "deprecated": false, @@ -15541,9 +15382,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15632,7 +15470,8 @@ }, "x-appwrite": { "method": "updateTelesignProvider", - "weight": 367, + "group": "providers", + "weight": 365, "cookies": false, "type": "", "deprecated": false, @@ -15647,9 +15486,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15736,7 +15572,8 @@ }, "x-appwrite": { "method": "createTextmagicProvider", - "weight": 355, + "group": "providers", + "weight": 353, "cookies": false, "type": "", "deprecated": false, @@ -15751,9 +15588,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15842,7 +15676,8 @@ }, "x-appwrite": { "method": "updateTextmagicProvider", - "weight": 368, + "group": "providers", + "weight": 366, "cookies": false, "type": "", "deprecated": false, @@ -15857,9 +15692,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -15946,7 +15778,8 @@ }, "x-appwrite": { "method": "createTwilioProvider", - "weight": 356, + "group": "providers", + "weight": 354, "cookies": false, "type": "", "deprecated": false, @@ -15961,9 +15794,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16052,7 +15882,8 @@ }, "x-appwrite": { "method": "updateTwilioProvider", - "weight": 369, + "group": "providers", + "weight": 367, "cookies": false, "type": "", "deprecated": false, @@ -16067,9 +15898,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16156,7 +15984,8 @@ }, "x-appwrite": { "method": "createVonageProvider", - "weight": 357, + "group": "providers", + "weight": 355, "cookies": false, "type": "", "deprecated": false, @@ -16171,9 +16000,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16262,7 +16088,8 @@ }, "x-appwrite": { "method": "updateVonageProvider", - "weight": 370, + "group": "providers", + "weight": 368, "cookies": false, "type": "", "deprecated": false, @@ -16277,9 +16104,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16346,9 +16170,7 @@ "get": { "summary": "Get provider", "operationId": "messagingGetProvider", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -16366,7 +16188,8 @@ }, "x-appwrite": { "method": "getProvider", - "weight": 362, + "group": "providers", + "weight": 360, "cookies": false, "type": "", "deprecated": false, @@ -16381,9 +16204,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16412,9 +16232,7 @@ "consumes": [ "application\/json" ], - "produces": [ - "application\/json" - ], + "produces": [], "tags": [ "messaging" ], @@ -16426,7 +16244,8 @@ }, "x-appwrite": { "method": "deleteProvider", - "weight": 373, + "group": "providers", + "weight": 371, "cookies": false, "type": "", "deprecated": false, @@ -16441,9 +16260,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16471,9 +16287,7 @@ "get": { "summary": "List provider logs", "operationId": "messagingListProviderLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -16491,7 +16305,8 @@ }, "x-appwrite": { "method": "listProviderLogs", - "weight": 361, + "group": "providers", + "weight": 359, "cookies": false, "type": "", "deprecated": false, @@ -16506,9 +16321,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16548,9 +16360,7 @@ "get": { "summary": "List subscriber logs", "operationId": "messagingListSubscriberLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -16568,7 +16378,8 @@ }, "x-appwrite": { "method": "listSubscriberLogs", - "weight": 382, + "group": "subscribers", + "weight": 380, "cookies": false, "type": "", "deprecated": false, @@ -16583,9 +16394,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16625,9 +16433,7 @@ "get": { "summary": "List topics", "operationId": "messagingListTopics", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -16645,7 +16451,8 @@ }, "x-appwrite": { "method": "listTopics", - "weight": 375, + "group": "topics", + "weight": 373, "cookies": false, "type": "", "deprecated": false, @@ -16660,9 +16467,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16721,7 +16525,8 @@ }, "x-appwrite": { "method": "createTopic", - "weight": 374, + "group": "topics", + "weight": 372, "cookies": false, "type": "", "deprecated": false, @@ -16736,9 +16541,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16794,9 +16596,7 @@ "get": { "summary": "Get topic", "operationId": "messagingGetTopic", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -16814,7 +16614,8 @@ }, "x-appwrite": { "method": "getTopic", - "weight": 377, + "group": "topics", + "weight": 375, "cookies": false, "type": "", "deprecated": false, @@ -16829,9 +16630,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16877,7 +16675,8 @@ }, "x-appwrite": { "method": "updateTopic", - "weight": 378, + "group": "topics", + "weight": 376, "cookies": false, "type": "", "deprecated": false, @@ -16892,9 +16691,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -16947,9 +16743,7 @@ "consumes": [ "application\/json" ], - "produces": [ - "application\/json" - ], + "produces": [], "tags": [ "messaging" ], @@ -16961,7 +16755,8 @@ }, "x-appwrite": { "method": "deleteTopic", - "weight": 379, + "group": "topics", + "weight": 377, "cookies": false, "type": "", "deprecated": false, @@ -16976,9 +16771,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -17006,9 +16798,7 @@ "get": { "summary": "List topic logs", "operationId": "messagingListTopicLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -17026,7 +16816,8 @@ }, "x-appwrite": { "method": "listTopicLogs", - "weight": 376, + "group": "topics", + "weight": 374, "cookies": false, "type": "", "deprecated": false, @@ -17041,9 +16832,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -17083,9 +16871,7 @@ "get": { "summary": "List subscribers", "operationId": "messagingListSubscribers", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -17103,7 +16889,8 @@ }, "x-appwrite": { "method": "listSubscribers", - "weight": 381, + "group": "subscribers", + "weight": 379, "cookies": false, "type": "", "deprecated": false, @@ -17118,9 +16905,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -17187,7 +16971,8 @@ }, "x-appwrite": { "method": "createSubscriber", - "weight": 380, + "group": "subscribers", + "weight": 378, "cookies": false, "type": "", "deprecated": false, @@ -17204,9 +16989,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "JWT": [] @@ -17261,9 +17043,7 @@ "get": { "summary": "Get subscriber", "operationId": "messagingGetSubscriber", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -17281,7 +17061,8 @@ }, "x-appwrite": { "method": "getSubscriber", - "weight": 383, + "group": "subscribers", + "weight": 381, "cookies": false, "type": "", "deprecated": false, @@ -17296,9 +17077,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -17335,9 +17113,7 @@ "consumes": [ "application\/json" ], - "produces": [ - "application\/json" - ], + "produces": [], "tags": [ "messaging" ], @@ -17349,7 +17125,8 @@ }, "x-appwrite": { "method": "deleteSubscriber", - "weight": 384, + "group": "subscribers", + "weight": 382, "cookies": false, "type": "", "deprecated": false, @@ -17366,9 +17143,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "JWT": [] @@ -17406,9 +17180,7 @@ "get": { "summary": "List buckets", "operationId": "storageListBuckets", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -17426,7 +17198,8 @@ }, "x-appwrite": { "method": "listBuckets", - "weight": 201, + "group": "buckets", + "weight": 205, "cookies": false, "type": "", "deprecated": false, @@ -17440,9 +17213,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -17501,7 +17271,8 @@ }, "x-appwrite": { "method": "createBucket", - "weight": 200, + "group": "buckets", + "weight": 204, "cookies": false, "type": "", "deprecated": false, @@ -17515,9 +17286,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -17623,9 +17391,7 @@ "get": { "summary": "Get bucket", "operationId": "storageGetBucket", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -17643,7 +17409,8 @@ }, "x-appwrite": { "method": "getBucket", - "weight": 202, + "group": "buckets", + "weight": 206, "cookies": false, "type": "", "deprecated": false, @@ -17657,9 +17424,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -17705,7 +17469,8 @@ }, "x-appwrite": { "method": "updateBucket", - "weight": 203, + "group": "buckets", + "weight": 207, "cookies": false, "type": "", "deprecated": false, @@ -17719,9 +17484,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -17841,7 +17603,8 @@ }, "x-appwrite": { "method": "deleteBucket", - "weight": 204, + "group": "buckets", + "weight": 208, "cookies": false, "type": "", "deprecated": false, @@ -17855,9 +17618,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -17885,9 +17645,7 @@ "get": { "summary": "List files", "operationId": "storageListFiles", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -17905,7 +17663,8 @@ }, "x-appwrite": { "method": "listFiles", - "weight": 206, + "group": "files", + "weight": 210, "cookies": false, "type": "", "deprecated": false, @@ -17921,9 +17680,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -17992,7 +17748,8 @@ }, "x-appwrite": { "method": "createFile", - "weight": 205, + "group": "files", + "weight": 209, "cookies": false, "type": "upload", "deprecated": false, @@ -18008,9 +17765,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18068,9 +17822,7 @@ "get": { "summary": "Get file", "operationId": "storageGetFile", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -18088,7 +17840,8 @@ }, "x-appwrite": { "method": "getFile", - "weight": 207, + "group": "files", + "weight": 211, "cookies": false, "type": "", "deprecated": false, @@ -18104,9 +17857,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18162,7 +17912,8 @@ }, "x-appwrite": { "method": "updateFile", - "weight": 212, + "group": "files", + "weight": 216, "cookies": false, "type": "", "deprecated": false, @@ -18178,9 +17929,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18238,7 +17986,7 @@ ] }, "delete": { - "summary": "Delete File", + "summary": "Delete file", "operationId": "storageDeleteFile", "consumes": [ "application\/json" @@ -18255,7 +18003,8 @@ }, "x-appwrite": { "method": "deleteFile", - "weight": 213, + "group": "files", + "weight": 217, "cookies": false, "type": "", "deprecated": false, @@ -18271,9 +18020,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18311,9 +18057,7 @@ "get": { "summary": "Get file for download", "operationId": "storageGetFileDownload", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "*\/*" ], @@ -18331,7 +18075,8 @@ }, "x-appwrite": { "method": "getFileDownload", - "weight": 209, + "group": "files", + "weight": 213, "cookies": false, "type": "location", "deprecated": false, @@ -18347,9 +18092,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18387,9 +18129,7 @@ "get": { "summary": "Get file preview", "operationId": "storageGetFilePreview", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "image\/*" ], @@ -18407,7 +18147,8 @@ }, "x-appwrite": { "method": "getFilePreview", - "weight": 208, + "group": "files", + "weight": 212, "cookies": false, "type": "location", "deprecated": false, @@ -18423,9 +18164,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18575,7 +18313,9 @@ "jpeg", "gif", "png", - "webp" + "webp", + "heic", + "avif" ], "x-enum-name": "ImageFormat", "x-enum-keys": [], @@ -18589,9 +18329,7 @@ "get": { "summary": "Get file for view", "operationId": "storageGetFileView", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "*\/*" ], @@ -18609,7 +18347,8 @@ }, "x-appwrite": { "method": "getFileView", - "weight": 210, + "group": "files", + "weight": 214, "cookies": false, "type": "location", "deprecated": false, @@ -18625,9 +18364,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18665,9 +18401,7 @@ "get": { "summary": "List teams", "operationId": "teamsList", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -18685,7 +18419,8 @@ }, "x-appwrite": { "method": "list", - "weight": 217, + "group": "teams", + "weight": 221, "cookies": false, "type": "", "deprecated": false, @@ -18701,9 +18436,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18764,7 +18496,8 @@ }, "x-appwrite": { "method": "create", - "weight": 216, + "group": "teams", + "weight": 220, "cookies": false, "type": "", "deprecated": false, @@ -18780,9 +18513,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18840,9 +18570,7 @@ "get": { "summary": "Get team", "operationId": "teamsGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -18860,7 +18588,8 @@ }, "x-appwrite": { "method": "get", - "weight": 218, + "group": "teams", + "weight": 222, "cookies": false, "type": "", "deprecated": false, @@ -18876,9 +18605,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "{teamId}", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -18926,7 +18652,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 220, + "group": "teams", + "weight": 224, "cookies": false, "type": "", "deprecated": false, @@ -18942,9 +18669,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams", - "offline-key": "{teamId}", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -19005,7 +18729,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 222, + "group": "teams", + "weight": 226, "cookies": false, "type": "", "deprecated": false, @@ -19021,9 +18746,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -19053,16 +18775,14 @@ "get": { "summary": "List team memberships", "operationId": "teamsListMemberships", - "consumes": [ - "application\/json" - ], + "consumes": [], "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.", + "description": "Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint. Hide sensitive attributes from the response by toggling membership privacy in the Console.", "responses": { "200": { "description": "Memberships List", @@ -19073,7 +18793,8 @@ }, "x-appwrite": { "method": "listMemberships", - "weight": 224, + "group": "memberships", + "weight": 228, "cookies": false, "type": "", "deprecated": false, @@ -19089,9 +18810,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/memberships", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -19160,7 +18878,8 @@ }, "x-appwrite": { "method": "createMembership", - "weight": 223, + "group": "memberships", + "weight": 227, "cookies": false, "type": "", "deprecated": false, @@ -19176,9 +18895,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -19259,16 +18975,14 @@ "get": { "summary": "Get team membership", "operationId": "teamsGetMembership", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], "tags": [ "teams" ], - "description": "Get a team member by the membership unique id. All team members have read access for this resource.", + "description": "Get a team member by the membership unique id. All team members have read access for this resource. Hide sensitive attributes from the response by toggling membership privacy in the Console.", "responses": { "200": { "description": "Membership", @@ -19279,7 +18993,8 @@ }, "x-appwrite": { "method": "getMembership", - "weight": 225, + "group": "memberships", + "weight": 229, "cookies": false, "type": "", "deprecated": false, @@ -19295,9 +19010,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/memberships", - "offline-key": "{membershipId}", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -19353,7 +19065,8 @@ }, "x-appwrite": { "method": "updateMembership", - "weight": 226, + "group": "memberships", + "weight": 230, "cookies": false, "type": "", "deprecated": false, @@ -19369,9 +19082,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -19443,7 +19153,8 @@ }, "x-appwrite": { "method": "deleteMembership", - "weight": 228, + "group": "memberships", + "weight": 232, "cookies": false, "type": "", "deprecated": false, @@ -19459,9 +19170,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -19519,7 +19227,8 @@ }, "x-appwrite": { "method": "updateMembershipStatus", - "weight": 227, + "group": "memberships", + "weight": 231, "cookies": false, "type": "", "deprecated": false, @@ -19534,9 +19243,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -19598,9 +19304,7 @@ "get": { "summary": "Get team preferences", "operationId": "teamsGetPrefs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -19618,7 +19322,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 219, + "group": "teams", + "weight": 223, "cookies": false, "type": "", "deprecated": false, @@ -19633,9 +19338,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/prefs", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -19682,7 +19384,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 221, + "group": "teams", + "weight": 225, "cookies": false, "type": "", "deprecated": false, @@ -19697,9 +19400,6 @@ "server" ], "packaging": false, - "offline-model": "\/teams\/{teamId}\/prefs", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Session": [] @@ -19746,9 +19446,7 @@ "get": { "summary": "List users", "operationId": "usersList", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -19766,7 +19464,8 @@ }, "x-appwrite": { "method": "list", - "weight": 239, + "group": "users", + "weight": 243, "cookies": false, "type": "", "deprecated": false, @@ -19780,9 +19479,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -19841,7 +19537,8 @@ }, "x-appwrite": { "method": "create", - "weight": 230, + "group": "users", + "weight": 234, "cookies": false, "type": "", "deprecated": false, @@ -19855,9 +19552,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -19939,7 +19633,8 @@ }, "x-appwrite": { "method": "createArgon2User", - "weight": 233, + "group": "users", + "weight": 237, "cookies": false, "type": "", "deprecated": false, @@ -19953,9 +19648,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20033,7 +19725,8 @@ }, "x-appwrite": { "method": "createBcryptUser", - "weight": 231, + "group": "users", + "weight": 235, "cookies": false, "type": "", "deprecated": false, @@ -20047,9 +19740,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20105,11 +19795,9 @@ }, "\/users\/identities": { "get": { - "summary": "List Identities", + "summary": "List identities", "operationId": "usersListIdentities", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -20127,7 +19815,8 @@ }, "x-appwrite": { "method": "listIdentities", - "weight": 247, + "group": "identities", + "weight": 251, "cookies": false, "type": "", "deprecated": false, @@ -20141,9 +19830,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20199,7 +19885,8 @@ }, "x-appwrite": { "method": "deleteIdentity", - "weight": 270, + "group": "identities", + "weight": 274, "cookies": false, "type": "", "deprecated": false, @@ -20213,9 +19900,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20263,7 +19947,8 @@ }, "x-appwrite": { "method": "createMD5User", - "weight": 232, + "group": "users", + "weight": 236, "cookies": false, "type": "", "deprecated": false, @@ -20277,9 +19962,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20357,7 +20039,8 @@ }, "x-appwrite": { "method": "createPHPassUser", - "weight": 235, + "group": "users", + "weight": 239, "cookies": false, "type": "", "deprecated": false, @@ -20371,9 +20054,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20451,7 +20131,8 @@ }, "x-appwrite": { "method": "createScryptUser", - "weight": 236, + "group": "users", + "weight": 240, "cookies": false, "type": "", "deprecated": false, @@ -20465,9 +20146,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20580,7 +20258,8 @@ }, "x-appwrite": { "method": "createScryptModifiedUser", - "weight": 237, + "group": "users", + "weight": 241, "cookies": false, "type": "", "deprecated": false, @@ -20594,9 +20273,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20695,7 +20371,8 @@ }, "x-appwrite": { "method": "createSHAUser", - "weight": 234, + "group": "users", + "weight": 238, "cookies": false, "type": "", "deprecated": false, @@ -20709,9 +20386,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20790,9 +20464,7 @@ "get": { "summary": "Get user", "operationId": "usersGet", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -20810,7 +20482,8 @@ }, "x-appwrite": { "method": "get", - "weight": 240, + "group": "users", + "weight": 244, "cookies": false, "type": "", "deprecated": false, @@ -20824,9 +20497,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20867,7 +20537,8 @@ }, "x-appwrite": { "method": "delete", - "weight": 268, + "group": "users", + "weight": 272, "cookies": false, "type": "", "deprecated": false, @@ -20881,9 +20552,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -20931,7 +20599,8 @@ }, "x-appwrite": { "method": "updateEmail", - "weight": 253, + "group": "users", + "weight": 257, "cookies": false, "type": "", "deprecated": false, @@ -20945,9 +20614,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21013,7 +20679,8 @@ }, "x-appwrite": { "method": "createJWT", - "weight": 271, + "group": "sessions", + "weight": 275, "cookies": false, "type": "", "deprecated": false, @@ -21027,9 +20694,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21098,7 +20762,8 @@ }, "x-appwrite": { "method": "updateLabels", - "weight": 249, + "group": "users", + "weight": 253, "cookies": false, "type": "", "deprecated": false, @@ -21112,9 +20777,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21163,9 +20825,7 @@ "get": { "summary": "List user logs", "operationId": "usersListLogs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -21183,7 +20843,8 @@ }, "x-appwrite": { "method": "listLogs", - "weight": 245, + "group": "logs", + "weight": 249, "cookies": false, "type": "", "deprecated": false, @@ -21197,9 +20858,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21239,9 +20897,7 @@ "get": { "summary": "List user memberships", "operationId": "usersListMemberships", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -21259,7 +20915,8 @@ }, "x-appwrite": { "method": "listMemberships", - "weight": 244, + "group": "memberships", + "weight": 248, "cookies": false, "type": "", "deprecated": false, @@ -21273,9 +20930,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21323,7 +20977,8 @@ }, "x-appwrite": { "method": "updateMfa", - "weight": 258, + "group": "users", + "weight": 262, "cookies": false, "type": "", "deprecated": false, @@ -21337,9 +20992,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21383,29 +21035,25 @@ }, "\/users\/{userId}\/mfa\/authenticators\/{type}": { "delete": { - "summary": "Delete Authenticator", + "summary": "Delete authenticator", "operationId": "usersDeleteMfaAuthenticator", "consumes": [ "application\/json" ], - "produces": [ - "application\/json" - ], + "produces": [], "tags": [ "users" ], "description": "Delete an authenticator app.", "responses": { - "200": { - "description": "User", - "schema": { - "$ref": "#\/definitions\/user" - } + "204": { + "description": "No content" } }, "x-appwrite": { "method": "deleteMfaAuthenticator", - "weight": 263, + "group": "mfa", + "weight": 267, "cookies": false, "type": "", "deprecated": false, @@ -21419,9 +21067,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21460,11 +21105,9 @@ }, "\/users\/{userId}\/mfa\/factors": { "get": { - "summary": "List Factors", + "summary": "List factors", "operationId": "usersListMfaFactors", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -21482,7 +21125,8 @@ }, "x-appwrite": { "method": "listMfaFactors", - "weight": 259, + "group": "mfa", + "weight": 263, "cookies": false, "type": "", "deprecated": false, @@ -21496,9 +21140,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21524,11 +21165,9 @@ }, "\/users\/{userId}\/mfa\/recovery-codes": { "get": { - "summary": "Get MFA Recovery Codes", + "summary": "Get MFA recovery codes", "operationId": "usersGetMfaRecoveryCodes", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -21546,7 +21185,8 @@ }, "x-appwrite": { "method": "getMfaRecoveryCodes", - "weight": 260, + "group": "mfa", + "weight": 264, "cookies": false, "type": "", "deprecated": false, @@ -21560,9 +21200,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21586,7 +21223,7 @@ ] }, "put": { - "summary": "Regenerate MFA Recovery Codes", + "summary": "Update MFA recovery codes (regenerate)", "operationId": "usersUpdateMfaRecoveryCodes", "consumes": [ "application\/json" @@ -21608,7 +21245,8 @@ }, "x-appwrite": { "method": "updateMfaRecoveryCodes", - "weight": 262, + "group": "mfa", + "weight": 266, "cookies": false, "type": "", "deprecated": false, @@ -21622,9 +21260,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21648,7 +21283,7 @@ ] }, "patch": { - "summary": "Create MFA Recovery Codes", + "summary": "Create MFA recovery codes", "operationId": "usersCreateMfaRecoveryCodes", "consumes": [ "application\/json" @@ -21670,7 +21305,8 @@ }, "x-appwrite": { "method": "createMfaRecoveryCodes", - "weight": 261, + "group": "mfa", + "weight": 265, "cookies": false, "type": "", "deprecated": false, @@ -21684,9 +21320,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21734,7 +21367,8 @@ }, "x-appwrite": { "method": "updateName", - "weight": 251, + "group": "users", + "weight": 255, "cookies": false, "type": "", "deprecated": false, @@ -21748,9 +21382,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21816,7 +21447,8 @@ }, "x-appwrite": { "method": "updatePassword", - "weight": 252, + "group": "users", + "weight": 256, "cookies": false, "type": "", "deprecated": false, @@ -21830,9 +21462,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21898,7 +21527,8 @@ }, "x-appwrite": { "method": "updatePhone", - "weight": 254, + "group": "users", + "weight": 258, "cookies": false, "type": "", "deprecated": false, @@ -21912,9 +21542,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -21960,9 +21587,7 @@ "get": { "summary": "Get user preferences", "operationId": "usersGetPrefs", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -21980,7 +21605,8 @@ }, "x-appwrite": { "method": "getPrefs", - "weight": 241, + "group": "users", + "weight": 245, "cookies": false, "type": "", "deprecated": false, @@ -21994,9 +21620,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22042,7 +21665,8 @@ }, "x-appwrite": { "method": "updatePrefs", - "weight": 256, + "group": "users", + "weight": 260, "cookies": false, "type": "", "deprecated": false, @@ -22056,9 +21680,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22104,9 +21725,7 @@ "get": { "summary": "List user sessions", "operationId": "usersListSessions", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -22124,7 +21743,8 @@ }, "x-appwrite": { "method": "listSessions", - "weight": 243, + "group": "sessions", + "weight": 247, "cookies": false, "type": "", "deprecated": false, @@ -22138,9 +21758,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22186,7 +21803,8 @@ }, "x-appwrite": { "method": "createSession", - "weight": 264, + "group": "sessions", + "weight": 268, "cookies": false, "type": "", "deprecated": false, @@ -22200,9 +21818,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22243,7 +21858,8 @@ }, "x-appwrite": { "method": "deleteSessions", - "weight": 267, + "group": "sessions", + "weight": 271, "cookies": false, "type": "", "deprecated": false, @@ -22257,9 +21873,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22302,7 +21915,8 @@ }, "x-appwrite": { "method": "deleteSession", - "weight": 266, + "group": "sessions", + "weight": 270, "cookies": false, "type": "", "deprecated": false, @@ -22316,9 +21930,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22374,7 +21985,8 @@ }, "x-appwrite": { "method": "updateStatus", - "weight": 248, + "group": "users", + "weight": 252, "cookies": false, "type": "", "deprecated": false, @@ -22388,9 +22000,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22434,11 +22043,9 @@ }, "\/users\/{userId}\/targets": { "get": { - "summary": "List User Targets", + "summary": "List user targets", "operationId": "usersListTargets", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -22456,7 +22063,8 @@ }, "x-appwrite": { "method": "listTargets", - "weight": 246, + "group": "targets", + "weight": 250, "cookies": false, "type": "", "deprecated": false, @@ -22471,9 +22079,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22509,7 +22114,7 @@ ] }, "post": { - "summary": "Create User Target", + "summary": "Create user target", "operationId": "usersCreateTarget", "consumes": [ "application\/json" @@ -22531,7 +22136,8 @@ }, "x-appwrite": { "method": "createTarget", - "weight": 238, + "group": "targets", + "weight": 242, "cookies": false, "type": "", "deprecated": false, @@ -22546,9 +22152,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22625,11 +22228,9 @@ }, "\/users\/{userId}\/targets\/{targetId}": { "get": { - "summary": "Get User Target", + "summary": "Get user target", "operationId": "usersGetTarget", - "consumes": [ - "application\/json" - ], + "consumes": [], "produces": [ "application\/json" ], @@ -22647,7 +22248,8 @@ }, "x-appwrite": { "method": "getTarget", - "weight": 242, + "group": "targets", + "weight": 246, "cookies": false, "type": "", "deprecated": false, @@ -22662,9 +22264,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22696,7 +22295,7 @@ ] }, "patch": { - "summary": "Update User target", + "summary": "Update user target", "operationId": "usersUpdateTarget", "consumes": [ "application\/json" @@ -22718,7 +22317,8 @@ }, "x-appwrite": { "method": "updateTarget", - "weight": 257, + "group": "targets", + "weight": 261, "cookies": false, "type": "", "deprecated": false, @@ -22733,9 +22333,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22799,9 +22396,7 @@ "consumes": [ "application\/json" ], - "produces": [ - "application\/json" - ], + "produces": [], "tags": [ "users" ], @@ -22813,7 +22408,8 @@ }, "x-appwrite": { "method": "deleteTarget", - "weight": 269, + "group": "targets", + "weight": 273, "cookies": false, "type": "", "deprecated": false, @@ -22828,9 +22424,6 @@ "console" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22886,7 +22479,8 @@ }, "x-appwrite": { "method": "createToken", - "weight": 265, + "group": "sessions", + "weight": 269, "cookies": false, "type": "", "deprecated": false, @@ -22900,9 +22494,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -22971,7 +22562,8 @@ }, "x-appwrite": { "method": "updateEmailVerification", - "weight": 255, + "group": "users", + "weight": 259, "cookies": false, "type": "", "deprecated": false, @@ -22985,9 +22577,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -23053,7 +22642,8 @@ }, "x-appwrite": { "method": "updatePhoneVerification", - "weight": 250, + "group": "users", + "weight": 254, "cookies": false, "type": "", "deprecated": false, @@ -23067,9 +22657,6 @@ "server" ], "packaging": false, - "offline-model": "", - "offline-key": "", - "offline-response-key": "$id", "auth": { "Project": [], "Key": [] @@ -23115,85 +22702,67 @@ "tags": [ { "name": "account", - "description": "The Account service allows you to authenticate and manage a user account.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Avatars service aims to help you complete everyday tasks related to your app image, icons, and avatars." }, { "name": "databases", - "description": "The Databases service allows you to create structured collections of documents, query and filter lists of documents", - "x-globalAttributes": [ - "databaseId" - ] + "description": "The Databases 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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Project service allows you to manage all the projects in your Appwrite server." }, { "name": "project", - "description": "The Project service allows you to manage all the projects in your Appwrite server.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "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.", - "x-globalAttributes": [] + "description": "The Functions Service allows you view, create and manage your Cloud Functions." }, { "name": "proxy", - "description": "The Proxy Service allows you to configure actions for your domains beyond DNS configuration.", - "x-globalAttributes": [] + "description": "The Proxy Service allows you to configure actions for your domains beyond DNS configuration." }, { "name": "graphql", - "description": "The GraphQL API allows you to query and mutate your Appwrite server using GraphQL.", - "x-globalAttributes": [] + "description": "The GraphQL API allows you to query and mutate your Appwrite server using GraphQL." }, { "name": "console", - "description": "The Console service allows you to interact with console relevant informations.", - "x-globalAttributes": [] + "description": "The Console service allows you to interact with console relevant informations." }, { "name": "migrations", - "description": "The Migrations service allows you to migrate third-party data to your Appwrite project.", - "x-globalAttributes": [] + "description": "The Migrations service allows you to migrate third-party data to your Appwrite project." }, { "name": "messaging", - "description": "The Messaging service allows you to send messages to any provider type (SMTP, push notification, SMS, etc.).", - "x-globalAttributes": [] + "description": "The Messaging service allows you to send messages to any provider type (SMTP, push notification, SMS, etc.)." } ], "definitions": { @@ -24166,6 +23735,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "size": { "type": "integer", "description": "Attribute size.", @@ -24185,6 +23764,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "size" ] }, @@ -24223,6 +23804,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "min": { "type": "integer", "description": "Minimum value to enforce for new documents.", @@ -24250,7 +23841,9 @@ "type", "status", "error", - "required" + "required", + "$createdAt", + "$updatedAt" ] }, "attributeFloat": { @@ -24288,6 +23881,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "min": { "type": "number", "description": "Minimum value to enforce for new documents.", @@ -24315,7 +23918,9 @@ "type", "status", "error", - "required" + "required", + "$createdAt", + "$updatedAt" ] }, "attributeBoolean": { @@ -24353,6 +23958,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "default": { "type": "boolean", "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", @@ -24365,7 +23980,9 @@ "type", "status", "error", - "required" + "required", + "$createdAt", + "$updatedAt" ] }, "attributeEmail": { @@ -24403,6 +24020,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "String format.", @@ -24421,6 +24048,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -24459,6 +24088,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "elements": { "type": "array", "description": "Array of elements in enumerated type.", @@ -24485,6 +24124,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "elements", "format" ] @@ -24524,6 +24165,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "String format.", @@ -24542,6 +24193,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -24580,6 +24233,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "String format.", @@ -24598,6 +24261,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -24636,6 +24301,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "format": { "type": "string", "description": "ISO 8601 format.", @@ -24654,6 +24329,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "format" ] }, @@ -24692,6 +24369,16 @@ "x-example": false, "x-nullable": true }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "relatedCollection": { "type": "string", "description": "The ID of the related collection.", @@ -24729,6 +24416,8 @@ "status", "error", "required", + "$createdAt", + "$updatedAt", "relatedCollection", "relationType", "twoWay", @@ -24777,6 +24466,16 @@ }, "x-example": [], "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Index creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Index update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" } }, "required": [ @@ -24784,7 +24483,9 @@ "type", "status", "error", - "attributes" + "attributes", + "$createdAt", + "$updatedAt" ] }, "document": { @@ -25939,12 +25640,12 @@ }, "userName": { "type": "string", - "description": "User name.", + "description": "User name. Hide this attribute by toggling membership privacy in the Console.", "x-example": "John Doe" }, "userEmail": { "type": "string", - "description": "User email address.", + "description": "User email address. Hide this attribute by toggling membership privacy in the Console.", "x-example": "john@appwrite.io" }, "teamId": { @@ -25974,7 +25675,7 @@ }, "mfa": { "type": "boolean", - "description": "Multi factor authentication status, true if the user has MFA enabled or false otherwise.", + "description": "Multi factor authentication status, true if the user has MFA enabled or false otherwise. Hide this attribute by toggling membership privacy in the Console.", "x-example": false }, "roles": { @@ -26088,7 +25789,7 @@ }, "schedule": { "type": "string", - "description": "Function execution schedult in CRON format.", + "description": "Function execution schedule in CRON format.", "x-example": "5 4 * * *" }, "timeout": { @@ -26140,7 +25841,7 @@ "specification": { "type": "string", "description": "Machine specification for builds and executions.", - "x-example": "s-0.5vcpu-512mb" + "x-example": "s-1vcpu-512mb" } }, "required": [ @@ -26460,7 +26161,7 @@ "responseBody": { "type": "string", "description": "HTTP response body. This will return empty unless execution is created as synchronous.", - "x-example": "Developers are awesome." + "x-example": "" }, "responseHeaders": { "type": "array", @@ -26954,7 +26655,7 @@ "slug": { "type": "string", "description": "Size slug.", - "x-example": "s-0.5vcpu-512mb" + "x-example": "s-1vcpu-512mb" } }, "required": [ @@ -27405,7 +27106,7 @@ "name": { "type": "string", "description": "Target Name.", - "x-example": "Aegon apple token" + "x-example": "Apple iPhone 12" }, "userId": { "type": "string", @@ -27427,6 +27128,11 @@ "type": "string", "description": "The target identifier.", "x-example": "token" + }, + "expired": { + "type": "boolean", + "description": "Is the target expired.", + "x-example": false } }, "required": [ @@ -27436,7 +27142,8 @@ "name", "userId", "providerType", - "identifier" + "identifier", + "expired" ] } }, diff --git a/app/config/storage/inputs.php b/app/config/storage/inputs.php index 3b832692615..edcf667d862 100644 --- a/app/config/storage/inputs.php +++ b/app/config/storage/inputs.php @@ -1,8 +1,10 @@ <?php -return [ // Accepted inputs files - 'jpg' => 'image/jpeg', - 'jpeg' => 'image/jpeg', - 'gif' => 'image/gif', - 'png' => 'image/png', +return [ + // Accepted inputs files + "jpg" => "image/jpeg", + "jpeg" => "image/jpeg", + "png" => "image/png", + "heic" => "image/heic", + "webp" => "image/webp", ]; diff --git a/app/config/storage/mimes.php b/app/config/storage/mimes.php index 5d315f45bca..5c1752ca51c 100644 --- a/app/config/storage/mimes.php +++ b/app/config/storage/mimes.php @@ -1,67 +1,71 @@ <?php return [ - 'image/jpeg', - 'image/jpeg', - 'image/gif', - 'image/png', - 'image/webp', + "image/jpeg", + "image/jpeg", + "image/gif", + "image/png", + "image/webp", + "image/heic", + "image/heic-sequence", + "image/avif", // Video Files - 'video/mp4', - 'video/x-flv', - 'video/webm', - 'application/x-mpegURL', - 'video/MP2T', - 'video/3gpp', - 'video/quicktime', - 'video/x-msvideo', - 'video/x-ms-wmv', + "video/mp4", + "video/x-flv", + "video/webm", + "application/x-mpegURL", + "video/MP2T", + "video/3gpp", + "video/quicktime", + "video/x-msvideo", + "video/x-ms-wmv", // Audio Files - 'audio/basic', // au snd RFC 2046 - 'auido/L24', // Linear PCM RFC 3190 - 'audio/mid', // mid rmi - 'audio/mpeg', // mp3 RFC 3003 - 'audio/mp4', // mp4 audio - 'audio/x-aiff', // aif aifc aiff - 'audio/x-mpegurl', // m3u - 'audio/vnd.rn-realaudio', // ra ram - 'audio/ogg', // Ogg Vorbis RFC 5334 - 'audio/vorbis', // Vorbis RFC 5215 - 'audio/vnd.wav', // wav RFC 2361 - 'audio/aac', //AAC audio - 'audio/x-hx-aac-adts', // AAC audio + "audio/basic", // au snd RFC 2046 + "auido/L24", // Linear PCM RFC 3190 + "audio/mid", // mid rmi + "audio/mpeg", // mp3 RFC 3003 + "audio/mp4", // mp4 audio + "audio/x-aiff", // aif aifc aiff + "audio/x-mpegurl", // m3u + "audio/vnd.rn-realaudio", // ra ram + "audio/ogg", // Ogg Vorbis RFC 5334 + "audio/vorbis", // Vorbis RFC 5215 + "audio/vnd.wav", // wav RFC 2361 + "audio/x-wav", // php reads .wav as this - https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types + "audio/aac", //AAC audio + "audio/x-hx-aac-adts", // AAC audio // Microsoft Word - 'application/msword', - 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', - 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', - 'application/vnd.ms-word.document.macroEnabled.12', + "application/msword", + "application/vnd.openxmlformats-officedocument.wordprocessingml.document", + "application/vnd.openxmlformats-officedocument.wordprocessingml.template", + "application/vnd.ms-word.document.macroEnabled.12", // Microsoft Excel - 'application/vnd.ms-excel', - 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', - 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', - 'application/vnd.ms-excel.sheet.macroEnabled.12', - 'application/vnd.ms-excel.template.macroEnabled.12', - 'application/vnd.ms-excel.addin.macroEnabled.12', - 'application/vnd.ms-excel.sheet.binary.macroEnabled.12', + "application/vnd.ms-excel", + "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", + "application/vnd.openxmlformats-officedocument.spreadsheetml.template", + "application/vnd.ms-excel.sheet.macroEnabled.12", + "application/vnd.ms-excel.template.macroEnabled.12", + "application/vnd.ms-excel.addin.macroEnabled.12", + "application/vnd.ms-excel.sheet.binary.macroEnabled.12", // Microsoft Power Point - 'application/vnd.ms-powerpoint', - 'application/vnd.openxmlformats-officedocument.presentationml.presentation', - 'application/vnd.openxmlformats-officedocument.presentationml.template', - 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', - 'application/vnd.ms-powerpoint.addin.macroEnabled.12', - 'application/vnd.ms-powerpoint.presentation.macroEnabled.12', - 'application/vnd.ms-powerpoint.template.macroEnabled.12', - 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12', + "application/vnd.ms-powerpoint", + "application/vnd.openxmlformats-officedocument.presentationml.presentation", + "application/vnd.openxmlformats-officedocument.presentationml.template", + "application/vnd.openxmlformats-officedocument.presentationml.slideshow", + "application/vnd.ms-powerpoint.addin.macroEnabled.12", + "application/vnd.ms-powerpoint.presentation.macroEnabled.12", + "application/vnd.ms-powerpoint.template.macroEnabled.12", + "application/vnd.ms-powerpoint.slideshow.macroEnabled.12", // Microsoft Access - 'application/vnd.ms-access', + "application/vnd.ms-access", // Adobe PDF - 'application/pdf', + "application/pdf", ]; diff --git a/app/config/storage/outputs.php b/app/config/storage/outputs.php index 507a9ce6671..519ff825feb 100644 --- a/app/config/storage/outputs.php +++ b/app/config/storage/outputs.php @@ -1,9 +1,11 @@ <?php -return [ // Accepted outputs files - 'jpg' => 'image/jpeg', - 'jpeg' => 'image/jpeg', - 'gif' => 'image/gif', - 'png' => 'image/png', - 'webp' => 'image/webp', +return [ + // Accepted outputs files + "jpg" => "image/jpeg", + "jpeg" => "image/jpeg", + "png" => "image/png", + "webp" => "image/webp", + "heic" => "image/heic", + "avif" => "image/avif", ]; diff --git a/app/config/variables.php b/app/config/variables.php index 113fbae3352..f79d4cb5178 100644 --- a/app/config/variables.php +++ b/app/config/variables.php @@ -79,6 +79,15 @@ 'question' => 'Enter your Appwrite hostname', 'filter' => '' ], + [ + 'name' => '_APP_CUSTOM_DOMAIN_DENY_LIST', + 'description' => 'List of reserved or prohibited domains when configuring custom domains.', + 'introduction' => '', + 'default' => 'example.com,test.com,app.example.com', + 'required' => false, + 'question' => '', + 'filter' => '' + ], [ 'name' => '_APP_DOMAIN_FUNCTIONS', 'description' => 'A domain to use for function preview URLs. Setting to empty turns off function preview URLs.', @@ -268,6 +277,24 @@ 'question' => '', 'filter' => '' ], + [ + 'name' => '_APP_COMPRESSION_ENABLED', + 'description' => 'This option allows you to enable or disable the response compression for the Appwrite API. It\'s enabled by default with value "enabled", and to disable it, pass value "disabled".', + 'introduction' => '1.6.0', + 'default' => 'enabled', + 'required' => false, + 'question' => '', + 'filter' => '' + ], + [ + 'name' => '_APP_COMPRESSION_MIN_SIZE_BYTES', + 'description' => 'This option allows you to set the minimum size in bytes for the response compression to be applied. The default value is 1024 bytes.', + 'introduction' => '1.6.0', + 'default' => 1024, + 'required' => false, + 'question' => '', + 'filter' => '' + ] ], ], [ @@ -554,7 +581,7 @@ ], [ 'name' => '_APP_STORAGE_S3_ACCESS_KEY', - 'description' => 'AWS S3 storage access key. Required when the storage adapter is set to S3. You can get your access key from your AWS console', + 'description' => 'S3 storage access key. Required when the storage adapter is set to S3. You can get your access key from your S3 storage provider', 'introduction' => '0.13.0', 'default' => '', 'required' => false, @@ -562,7 +589,7 @@ ], [ 'name' => '_APP_STORAGE_S3_SECRET', - 'description' => 'AWS S3 storage secret key. Required when the storage adapter is set to S3. You can get your secret key from your AWS console.', + 'description' => 'S3 storage secret key. Required when the storage adapter is set to S3. You can get your secret key from your S3 storage provider.', 'introduction' => '0.13.0', 'default' => '', 'required' => false, @@ -570,7 +597,7 @@ ], [ 'name' => '_APP_STORAGE_S3_REGION', - 'description' => 'AWS S3 storage region. Required when storage adapter is set to S3. You can find your region info for your bucket from AWS console.', + 'description' => 'S3 storage region. Required when storage adapter is set to S3. You can find your region info for your bucket from your S3 storage provider.', 'introduction' => '0.13.0', 'default' => 'us-east-1', 'required' => false, @@ -578,12 +605,20 @@ ], [ 'name' => '_APP_STORAGE_S3_BUCKET', - 'description' => 'AWS S3 storage bucket. Required when storage adapter is set to S3. You can create buckets in your AWS console.', + 'description' => 'S3 storage bucket. Required when storage adapter is set to S3. You can create buckets in your S3 storage provider.', 'introduction' => '0.13.0', 'default' => '', 'required' => false, 'question' => '', ], + [ + 'name' => '_APP_STORAGE_S3_ENDPOINT', + 'description' => 'S3 storage endpoint. Required when using S3 storage providers other than AWS.', + 'introduction' => '0.16.2', + 'default' => '', + 'required' => false, + 'question' => '', + ], [ 'name' => '_APP_STORAGE_DO_SPACES_ACCESS_KEY', 'description' => 'DigitalOcean spaces access key. Required when the storage adapter is set to DOSpaces. You can get your access key from your DigitalOcean console.', @@ -765,7 +800,7 @@ ], [ 'name' => '_APP_FUNCTIONS_CPUS', - 'description' => 'The maximum number of CPU core a single cloud function is allowed to use. Please note that setting a value higher than available cores will result in a function error, which might result in an error. The default value is empty. When it\'s empty, CPU limit will be disabled.', + 'description' => 'The maximum number of CPU core a single cloud function is allowed to use. Please note that setting a value higher than available cores will result in a function error, which might result in an error. The default value is empty. When it\'s empty or 0, CPU limit will be disabled.', 'introduction' => '0.7.0', 'default' => '0', 'required' => false, @@ -774,7 +809,7 @@ ], [ 'name' => '_APP_FUNCTIONS_MEMORY', - 'description' => 'The maximum amount of memory a single cloud function is allowed to use in megabytes. The default value is empty. When it\'s empty, memory limit will be disabled.', + 'description' => 'The maximum amount of memory a single cloud function is allowed to use in megabytes. The default value is empty. When it\'s empty or 0, memory limit will be disabled.', 'introduction' => '0.7.0', 'default' => '0', 'required' => false, @@ -995,13 +1030,22 @@ ], [ 'name' => '_APP_MAINTENANCE_DELAY', - 'description' => 'Delay value containing the number of seconds that the Appwrite maintenance process should wait before executing system cleanups and optimizations. The default value is 0 seconds.', + 'description' => 'Deprecated with 1.6.2 use _APP_MAINTENANCE_START_TIME instead to run the maintenance at a specific time per day.', 'introduction' => '1.5.0', 'default' => '0', 'required' => false, 'question' => '', 'filter' => '' ], + [ + 'name' => '_APP_MAINTENANCE_START_TIME', + 'description' => 'The time of day (in 24-hour format) when the maintenance process should start. The default value is 00:00.', + 'introduction' => '1.6.2', + 'default' => '00:00', + 'required' => false, + 'question' => '', + 'filter' => '' + ], [ 'name' => '_APP_MAINTENANCE_RETENTION_CACHE', 'description' => 'The maximum duration (in seconds) upto which to retain cached files. The default value is 2592000 seconds (30 days).', @@ -1022,13 +1066,22 @@ ], [ 'name' => '_APP_MAINTENANCE_RETENTION_AUDIT', - 'description' => 'IThe maximum duration (in seconds) upto which to retain audit logs. The default value is 1209600 seconds (14 days).', + 'description' => 'The maximum duration (in seconds) upto which to retain audit logs. The default value is 1209600 seconds (14 days).', 'introduction' => '0.7.0', 'default' => '1209600', 'required' => false, 'question' => '', 'filter' => '' ], + [ + 'name' => '_APP_MAINTENANCE_RETENTION_AUDIT_CONSOLE', + 'description' => 'The maximum duration (in seconds) upto which to retain console audit logs. The default value is 15778800 seconds (6 months).', + 'introduction' => '1.6.2', + 'default' => '15778800', + 'required' => false, + 'question' => '', + 'filter' => '' + ], [ 'name' => '_APP_MAINTENANCE_RETENTION_ABUSE', 'description' => 'The maximum duration (in seconds) upto which to retain abuse logs. The default value is 86400 seconds (1 day).', diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 737bd3e09d4..810c27c5f2f 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -17,17 +17,25 @@ use Appwrite\Event\Event; use Appwrite\Event\Mail; use Appwrite\Event\Messaging; +use Appwrite\Event\StatsUsage; use Appwrite\Extend\Exception; use Appwrite\Hooks\Hooks; use Appwrite\Network\Validator\Email; use Appwrite\OpenSSL\OpenSSL; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\MethodType; +use Appwrite\SDK\Response as SDKResponse; use Appwrite\Template\Template; use Appwrite\URL\URL as URLParser; use Appwrite\Utopia\Database\Validator\CustomId; use Appwrite\Utopia\Database\Validator\Queries\Identities; use Appwrite\Utopia\Request; use Appwrite\Utopia\Response; +use libphonenumber\PhoneNumberUtil; use MaxMind\Db\Reader; +use Utopia\Abuse\Abuse; use Utopia\App; use Utopia\Audit\Audit as EventAudit; use Utopia\Config\Config; @@ -35,6 +43,7 @@ use Utopia\Database\DateTime; use Utopia\Database\Document; use Utopia\Database\Exception\Duplicate; +use Utopia\Database\Exception\Order as OrderException; use Utopia\Database\Exception\Query as QueryException; use Utopia\Database\Helpers\ID; use Utopia\Database\Helpers\Permission; @@ -42,6 +51,7 @@ use Utopia\Database\Query; use Utopia\Database\Validator\Authorization; use Utopia\Database\Validator\Queries; +use Utopia\Database\Validator\Query\Cursor; use Utopia\Database\Validator\Query\Limit; use Utopia\Database\Validator\Query\Offset; use Utopia\Database\Validator\UID; @@ -146,9 +156,6 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc $createSession = function (string $userId, string $secret, Request $request, Response $response, Document $user, Database $dbForProject, Document $project, Locale $locale, Reader $geodb, Event $queueForEvents, Mail $queueForMails) { - $roles = Authorization::getRoles(); - $isPrivilegedUser = Auth::isPrivilegedUser($roles); - $isAppUser = Auth::isAppUser($roles); /** @var Utopia\Database\Document $user */ $userFromRequest = Authorization::skip(fn () => $dbForProject->getDocument('users', $userId)); @@ -264,7 +271,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->setAttribute('current', true) ->setAttribute('countryName', $countryName) ->setAttribute('expire', $expire) - ->setAttribute('secret', ($isPrivilegedUser || $isAppUser) ? Auth::encodeSession($user->getId(), $sessionSecret) : '') + ->setAttribute('secret', Auth::encodeSession($user->getId(), $sessionSecret)) ; $response->dynamic($session, Response::MODEL_SESSION); @@ -273,19 +280,25 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc App::post('/v1/account') ->desc('Create account') ->groups(['api', 'account', 'auth']) - ->label('event', 'users.[userId].create') ->label('scope', 'sessions.write') - ->label('auth.type', 'emailPassword') + ->label('auth.type', 'email-password') ->label('audits.event', 'user.create') ->label('audits.resource', 'user/{response.$id}') ->label('audits.userId', '{response.$id}') - ->label('sdk.auth', []) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'create') - ->label('sdk.description', '/docs/references/account/create.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USER) + ->label('sdk', new Method( + namespace: 'account', + group: 'account', + name: 'create', + description: '/docs/references/account/create.md', + auth: [], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_USER, + ) + ], + contentType: ContentType::JSON + )) ->label('abuse-limit', 10) ->param('userId', '', new CustomId(), 'User ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') ->param('email', '', new Email(), 'User email.') @@ -296,9 +309,8 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->inject('user') ->inject('project') ->inject('dbForProject') - ->inject('queueForEvents') ->inject('hooks') - ->action(function (string $userId, string $email, string $password, string $name, Request $request, Response $response, Document $user, Document $project, Database $dbForProject, Event $queueForEvents, Hooks $hooks) { + ->action(function (string $userId, string $email, string $password, string $name, Request $request, Response $response, Document $user, Document $project, Database $dbForProject, Hooks $hooks) { $email = \strtolower($email); if ('console' === $project->getId()) { @@ -331,7 +343,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc $identityWithMatchingEmail = $dbForProject->findOne('identities', [ Query::equal('providerEmail', [$email]), ]); - if ($identityWithMatchingEmail !== false && !$identityWithMatchingEmail->isEmpty()) { + if (!$identityWithMatchingEmail->isEmpty()) { throw new Exception(Exception::GENERAL_BAD_REQUEST); /** Return a generic bad request to prevent exposing existing accounts */ } @@ -394,7 +406,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc $existingTarget = $dbForProject->findOne('targets', [ Query::equal('identifier', [$email]), ]); - if ($existingTarget) { + if (!$existingTarget->isEmpty()) { $user->setAttribute('targets', $existingTarget, Document::SET_TYPE_APPEND); } } @@ -408,8 +420,6 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc Authorization::setRole(Role::user($user->getId())->toString()); Authorization::setRole(Role::users()->toString()); - $queueForEvents->setParam('userId', $user->getId()); - $response ->setStatusCode(Response::STATUS_CODE_CREATED) ->dynamic($user, Response::MODEL_ACCOUNT); @@ -419,15 +429,20 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->desc('Get account') ->groups(['api', 'account']) ->label('scope', 'account') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'get') - ->label('sdk.description', '/docs/references/account/get.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USER) - ->label('sdk.offline.model', '/account') - ->label('sdk.offline.key', 'current') + ->label('sdk', new Method( + namespace: 'account', + group: 'account', + name: 'get', + description: '/docs/references/account/get.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USER, + ) + ], + contentType: ContentType::JSON + )) ->inject('response') ->inject('user') ->action(function (Response $response, Document $user) { @@ -441,16 +456,23 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc App::delete('/v1/account') ->desc('Delete account') ->groups(['api', 'account']) - ->label('event', 'users.[userId].delete') ->label('scope', 'account') ->label('audits.event', 'user.delete') ->label('audits.resource', 'user/{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'delete') - ->label('sdk.description', '/docs/references/account/delete.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'account', + group: 'account', + name: 'delete', + description: '/docs/references/account/delete.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->inject('user') ->inject('project') ->inject('response') @@ -490,23 +512,26 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->desc('List sessions') ->groups(['api', 'account']) ->label('scope', 'account') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'listSessions') - ->label('sdk.description', '/docs/references/account/list-sessions.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_SESSION_LIST) - ->label('sdk.offline.model', '/account/sessions') + ->label('sdk', new Method( + namespace: 'account', + group: 'sessions', + name: 'listSessions', + description: '/docs/references/account/list-sessions.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_SESSION_LIST, + ) + ], + contentType: ContentType::JSON, + )) ->inject('response') ->inject('user') ->inject('locale') ->inject('project') ->action(function (Response $response, Document $user, Locale $locale, Document $project) { - $roles = Authorization::getRoles(); - $isPrivilegedUser = Auth::isPrivilegedUser($roles); - $isAppUser = Auth::isAppUser($roles); $sessions = $user->getAttribute('sessions', []); $current = Auth::sessionVerify($sessions, Auth::$secret); @@ -516,7 +541,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc $session->setAttribute('countryName', $countryName); $session->setAttribute('current', ($current == $session->getId()) ? true : false); - $session->setAttribute('secret', ($isPrivilegedUser || $isAppUser) ? $session->getAttribute('secret', '') : ''); + $session->setAttribute('secret', $session->getAttribute('secret', '')); $sessions[$key] = $session; } @@ -534,12 +559,20 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->label('event', 'users.[userId].sessions.[sessionId].delete') ->label('audits.event', 'session.delete') ->label('audits.resource', 'user/{user.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'deleteSessions') - ->label('sdk.description', '/docs/references/account/delete-sessions.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'account', + group: 'sessions', + name: 'deleteSessions', + description: '/docs/references/account/delete-sessions.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->label('abuse-limit', 100) ->inject('request') ->inject('response') @@ -596,15 +629,20 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->desc('Get session') ->groups(['api', 'account']) ->label('scope', 'account') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'getSession') - ->label('sdk.description', '/docs/references/account/get-session.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_SESSION) - ->label('sdk.offline.model', '/account/sessions') - ->label('sdk.offline.key', '{sessionId}') + ->label('sdk', new Method( + namespace: 'account', + group: 'sessions', + name: 'getSession', + description: '/docs/references/account/get-session.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_SESSION, + ) + ], + contentType: ContentType::JSON + )) ->param('sessionId', '', new UID(), 'Session ID. Use the string \'current\' to get the current device session.') ->inject('response') ->inject('user') @@ -612,10 +650,6 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->inject('project') ->action(function (?string $sessionId, Response $response, Document $user, Locale $locale, Document $project) { - $roles = Authorization::getRoles(); - $isPrivilegedUser = Auth::isPrivilegedUser($roles); - $isAppUser = Auth::isAppUser($roles); - $sessions = $user->getAttribute('sessions', []); $sessionId = ($sessionId === 'current') ? Auth::sessionVerify($user->getAttribute('sessions'), Auth::$secret) @@ -628,7 +662,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc $session ->setAttribute('current', ($session->getAttribute('secret') == Auth::hash(Auth::$secret))) ->setAttribute('countryName', $countryName) - ->setAttribute('secret', ($isPrivilegedUser || $isAppUser) ? $session->getAttribute('secret', '') : '') + ->setAttribute('secret', $session->getAttribute('secret', '')) ; return $response->dynamic($session, Response::MODEL_SESSION); @@ -645,12 +679,20 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->label('event', 'users.[userId].sessions.[sessionId].delete') ->label('audits.event', 'session.delete') ->label('audits.resource', 'user/{user.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'deleteSession') - ->label('sdk.description', '/docs/references/account/delete-session.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'account', + group: 'sessions', + name: 'deleteSession', + description: '/docs/references/account/delete-session.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->label('abuse-limit', 100) ->param('sessionId', '', new UID(), 'Session ID. Use the string \'current\' to delete the current device session.') ->inject('requestTimestamp') @@ -677,9 +719,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc continue; } - $dbForProject->withRequestTimestamp($requestTimestamp, function () use ($dbForProject, $session) { - return $dbForProject->deleteDocument('sessions', $session->getId()); - }); + $dbForProject->deleteDocument('sessions', $session->getId()); unset($sessions[$key]); @@ -726,13 +766,20 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->label('audits.event', 'session.update') ->label('audits.resource', 'user/{response.userId}') ->label('audits.userId', '{response.userId}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'updateSession') - ->label('sdk.description', '/docs/references/account/update-session.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_SESSION) + ->label('sdk', new Method( + namespace: 'account', + group: 'sessions', + name: 'updateSession', + description: '/docs/references/account/update-session.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_SESSION, + ) + ], + contentType: ContentType::JSON + )) ->label('abuse-limit', 10) ->param('sessionId', '', new UID(), 'Session ID. Use the string \'current\' to update the current device session.') ->inject('response') @@ -800,17 +847,24 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->groups(['api', 'account', 'auth', 'session']) ->label('event', 'users.[userId].sessions.[sessionId].create') ->label('scope', 'sessions.write') - ->label('auth.type', 'emailPassword') + ->label('auth.type', 'email-password') ->label('audits.event', 'session.create') ->label('audits.resource', 'user/{response.userId}') ->label('audits.userId', '{response.userId}') - ->label('sdk.auth', []) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'createEmailPasswordSession') - ->label('sdk.description', '/docs/references/account/create-session-email-password.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_SESSION) + ->label('sdk', new Method( + namespace: 'account', + group: 'sessions', + name: 'createEmailPasswordSession', + description: '/docs/references/account/create-session-email-password.md', + auth: [], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_SESSION, + ) + ], + contentType: ContentType::JSON + )) ->label('abuse-limit', 10) ->label('abuse-key', 'url:{url},email:{param-email}') ->param('email', '', new Email(), 'User email.') @@ -833,7 +887,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc Query::equal('email', [$email]), ]); - if (!$profile || empty($profile->getAttribute('passwordUpdate')) || !Auth::passwordVerify($password, $profile->getAttribute('password'), $profile->getAttribute('hash'), $profile->getAttribute('hashOptions'))) { + if ($profile->isEmpty() || empty($profile->getAttribute('passwordUpdate')) || !Auth::passwordVerify($password, $profile->getAttribute('password'), $profile->getAttribute('hash'), $profile->getAttribute('hashOptions'))) { throw new Exception(Exception::USER_INVALID_CREDENTIALS); } @@ -841,10 +895,6 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc throw new Exception(Exception::USER_BLOCKED); // User is in status blocked } - $roles = Authorization::getRoles(); - $isPrivilegedUser = Auth::isPrivilegedUser($roles); - $isAppUser = Auth::isAppUser($roles); - $user->setAttributes($profile->getArrayCopy()); $hooks->trigger('passwordValidator', [$dbForProject, $project, $password, &$user, false]); @@ -910,7 +960,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc $session ->setAttribute('current', true) ->setAttribute('countryName', $countryName) - ->setAttribute('secret', ($isPrivilegedUser || $isAppUser) ? Auth::encodeSession($user->getId(), $secret) : '') + ->setAttribute('secret', Auth::encodeSession($user->getId(), $secret)) ; $queueForEvents @@ -938,13 +988,20 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->label('audits.event', 'session.create') ->label('audits.resource', 'user/{response.userId}') ->label('audits.userId', '{response.userId}') - ->label('sdk.auth', []) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'createAnonymousSession') - ->label('sdk.description', '/docs/references/account/create-session-anonymous.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_SESSION) + ->label('sdk', new Method( + namespace: 'account', + group: 'sessions', + name: 'createAnonymousSession', + description: '/docs/references/account/create-session-anonymous.md', + auth: [], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_SESSION, + ) + ], + contentType: ContentType::JSON + )) ->label('abuse-limit', 50) ->label('abuse-key', 'ip:{ip}') ->inject('request') @@ -957,9 +1014,6 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->inject('queueForEvents') ->action(function (Request $request, Response $response, Locale $locale, Document $user, Document $project, Database $dbForProject, Reader $geodb, Event $queueForEvents) { $protocol = $request->getProtocol(); - $roles = Authorization::getRoles(); - $isPrivilegedUser = Auth::isPrivilegedUser($roles); - $isAppUser = Auth::isAppUser($roles); if ('console' === $project->getId()) { throw new Exception(Exception::USER_ANONYMOUS_CONSOLE_PROHIBITED, 'Failed to create anonymous user'); @@ -1061,7 +1115,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc $session ->setAttribute('current', true) ->setAttribute('countryName', $countryName) - ->setAttribute('secret', ($isPrivilegedUser || $isAppUser) ? Auth::encodeSession($user->getId(), $secret) : '') + ->setAttribute('secret', Auth::encodeSession($user->getId(), $secret)) ; $response->dynamic($session, Response::MODEL_SESSION); @@ -1075,13 +1129,20 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->label('audits.event', 'session.create') ->label('audits.resource', 'user/{response.userId}') ->label('audits.userId', '{response.userId}') - ->label('sdk.auth', []) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'createSession') - ->label('sdk.description', '/docs/references/account/create-session.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_SESSION) + ->label('sdk', new Method( + namespace: 'account', + group: 'sessions', + name: 'createSession', + description: '/docs/references/account/create-session.md', + auth: [], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_SESSION, + ) + ], + contentType: ContentType::JSON + )) ->label('abuse-limit', 10) ->label('abuse-key', 'ip:{ip},userId:{param-userId}') ->param('userId', '', new CustomId(), 'User ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') @@ -1102,14 +1163,22 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->groups(['api', 'account']) ->label('error', __DIR__ . '/../../views/general/error.phtml') ->label('scope', 'sessions.write') - ->label('sdk.auth', []) - ->label('sdk.hide', [APP_PLATFORM_SERVER]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'createOAuth2Session') - ->label('sdk.description', '/docs/references/account/create-session-oauth2.md') - ->label('sdk.response.code', Response::STATUS_CODE_MOVED_PERMANENTLY) - ->label('sdk.response.type', Response::CONTENT_TYPE_HTML) - ->label('sdk.methodType', 'webAuth') + ->label('sdk', new Method( + namespace: 'account', + group: 'sessions', + name: 'createOAuth2Session', + description: '/docs/references/account/create-session-oauth2.md', + type: MethodType::WEBAUTH, + auth: [], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_MOVED_PERMANENTLY, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::HTML, + hide: [APP_PLATFORM_SERVER], + )) ->label('abuse-limit', 50) ->label('abuse-key', 'ip:{ip}') ->param('provider', '', new WhiteList(\array_keys(Config::getParam('oAuthProviders')), true), 'OAuth2 Provider. Currently, supported providers are: ' . \implode(', ', \array_keys(\array_filter(Config::getParam('oAuthProviders'), fn ($node) => (!$node['mock'])))) . '.') @@ -1168,7 +1237,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc }); App::get('/v1/account/sessions/oauth2/callback/:provider/:projectId') - ->desc('OAuth2 callback') + ->desc('Get OAuth2 callback') ->groups(['account']) ->label('error', __DIR__ . '/../../views/general/error.phtml') ->label('scope', 'public') @@ -1198,7 +1267,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc }); App::post('/v1/account/sessions/oauth2/callback/:provider/:projectId') - ->desc('OAuth2 callback') + ->desc('Create OAuth2 callback') ->groups(['account']) ->label('error', __DIR__ . '/../../views/general/error.phtml') ->label('scope', 'public') @@ -1229,7 +1298,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc }); App::get('/v1/account/sessions/oauth2/:provider/redirect') - ->desc('OAuth2 redirect') + ->desc('Get OAuth2 redirect') ->groups(['api', 'account', 'session']) ->label('error', __DIR__ . '/../../views/general/error.phtml') ->label('event', 'users.[userId].sessions.[sessionId].create') @@ -1373,8 +1442,8 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc Query::equal('providerEmail', [$email]), Query::notEqual('userInternalId', $user->getInternalId()), ]); - if (!empty($identityWithMatchingEmail)) { - throw new Exception(Exception::USER_ALREADY_EXISTS); + if (!$identityWithMatchingEmail->isEmpty()) { + $failureRedirect(Exception::USER_ALREADY_EXISTS); } $userWithMatchingEmail = $dbForProject->find('users', [ @@ -1382,7 +1451,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc Query::notEqual('$id', $userId), ]); if (!empty($userWithMatchingEmail)) { - throw new Exception(Exception::USER_ALREADY_EXISTS); + $failureRedirect(Exception::USER_ALREADY_EXISTS); } $sessionUpgrade = true; @@ -1404,14 +1473,14 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc Query::equal('provider', [$provider]), Query::equal('providerUid', [$oauth2ID]), ]); - if ($session !== false && !$session->isEmpty()) { + if (!$session->isEmpty()) { $user->setAttributes($dbForProject->getDocument('users', $session->getAttribute('userId'))->getArrayCopy()); } } if ($user === false || $user->isEmpty()) { // No user logged in or with OAuth2 provider ID, create new one or connect with account with same email if (empty($email)) { - throw new Exception(Exception::USER_UNAUTHORIZED, 'OAuth provider failed to return email.'); + $failureRedirect(Exception::USER_UNAUTHORIZED, 'OAuth provider failed to return email.'); } /** @@ -1422,7 +1491,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc $userWithEmail = $dbForProject->findOne('users', [ Query::equal('email', [$email]), ]); - if ($userWithEmail !== false && !$userWithEmail->isEmpty()) { + if (!$userWithEmail->isEmpty()) { $user->setAttributes($userWithEmail->getArrayCopy()); } @@ -1433,7 +1502,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc Query::equal('providerUid', [$oauth2ID]), ]); - if ($identity !== false && !$identity->isEmpty()) { + if (!$identity->isEmpty()) { $user = $dbForProject->getDocument('users', $identity->getAttribute('userId')); } } @@ -1453,8 +1522,8 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc $identityWithMatchingEmail = $dbForProject->findOne('identities', [ Query::equal('providerEmail', [$email]), ]); - if ($identityWithMatchingEmail !== false && !$identityWithMatchingEmail->isEmpty()) { - throw new Exception(Exception::GENERAL_BAD_REQUEST); /** Return a generic bad request to prevent exposing existing accounts */ + if (!$identityWithMatchingEmail->isEmpty()) { + $failureRedirect(Exception::GENERAL_BAD_REQUEST); /** Return a generic bad request to prevent exposing existing accounts */ } try { @@ -1498,6 +1567,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc 'providerType' => MESSAGE_TYPE_EMAIL, 'identifier' => $email, ])); + } catch (Duplicate) { $failureRedirect(Exception::USER_ALREADY_EXISTS); } @@ -1516,7 +1586,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc Query::equal('provider', [$provider]), Query::equal('providerUid', [$oauth2ID]), ]); - if ($identity === false || $identity->isEmpty()) { + if ($identity->isEmpty()) { // Before creating the identity, check if the email is already associated with another user $userId = $user->getId(); @@ -1525,7 +1595,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc Query::notEqual('userInternalId', $user->getInternalId()), ]); if (!empty($identitiesWithMatchingEmail)) { - throw new Exception(Exception::GENERAL_BAD_REQUEST); /** Return a generic bad request to prevent exposing existing accounts */ + $failureRedirect(Exception::GENERAL_BAD_REQUEST); /** Return a generic bad request to prevent exposing existing accounts */ } $dbForProject->createDocument('identities', new Document([ @@ -1691,13 +1761,21 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->groups(['api', 'account']) ->label('error', __DIR__ . '/../../views/general/error.phtml') ->label('scope', 'sessions.write') - ->label('sdk.auth', []) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'createOAuth2Token') - ->label('sdk.description', '/docs/references/account/create-token-oauth2.md') - ->label('sdk.response.code', Response::STATUS_CODE_MOVED_PERMANENTLY) - ->label('sdk.response.type', Response::CONTENT_TYPE_HTML) - ->label('sdk.methodType', 'webAuth') + ->label('sdk', new Method( + namespace: 'account', + group: 'tokens', + name: 'createOAuth2Token', + description: '/docs/references/account/create-token-oauth2.md', + auth: [], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_MOVED_PERMANENTLY, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::HTML, + type: MethodType::WEBAUTH, + )) ->label('abuse-limit', 50) ->label('abuse-key', 'ip:{ip}') ->param('provider', '', new WhiteList(\array_keys(Config::getParam('oAuthProviders')), true), 'OAuth2 Provider. Currently, supported providers are: ' . \implode(', ', \array_keys(\array_filter(Config::getParam('oAuthProviders'), fn ($node) => (!$node['mock'])))) . '.') @@ -1764,13 +1842,20 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->label('audits.event', 'session.create') ->label('audits.resource', 'user/{response.userId}') ->label('audits.userId', '{response.userId}') - ->label('sdk.auth', []) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'createMagicURLToken') - ->label('sdk.description', '/docs/references/account/create-token-magic-url.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_TOKEN) + ->label('sdk', new Method( + namespace: 'account', + group: 'tokens', + name: 'createMagicURLToken', + description: '/docs/references/account/create-token-magic-url.md', + auth: [], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_TOKEN, + ) + ], + contentType: ContentType::JSON, + )) ->label('abuse-limit', 60) ->label('abuse-key', ['url:{url},email:{param-email}', 'url:{url},ip:{ip}']) ->param('userId', '', new CustomId(), 'Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') @@ -1795,12 +1880,9 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc $phrase = Phrase::generate(); } - $roles = Authorization::getRoles(); - $isPrivilegedUser = Auth::isPrivilegedUser($roles); - $isAppUser = Auth::isAppUser($roles); $result = $dbForProject->findOne('users', [Query::equal('email', [$email])]); - if ($result !== false && !$result->isEmpty()) { + if (!$result->isEmpty()) { $user->setAttributes($result->getArrayCopy()); } else { $limit = $project->getAttribute('auths', [])['limit'] ?? 0; @@ -1817,7 +1899,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc $identityWithMatchingEmail = $dbForProject->findOne('identities', [ Query::equal('providerEmail', [$email]), ]); - if ($identityWithMatchingEmail !== false && !$identityWithMatchingEmail->isEmpty()) { + if (!$identityWithMatchingEmail->isEmpty()) { throw new Exception(Exception::USER_EMAIL_ALREADY_EXISTS); } @@ -1917,6 +1999,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc $senderEmail = System::getEnv('_APP_SYSTEM_EMAIL_ADDRESS', APP_EMAIL_TEAM); $senderName = System::getEnv('_APP_SYSTEM_EMAIL_NAME', APP_NAME . ' Server'); + $replyTo = ""; if ($smtpEnabled) { @@ -1979,17 +2062,11 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->setRecipient($email) ->trigger(); - // Set to unhashed secret for events and server responses $token->setAttribute('secret', $tokenSecret); $queueForEvents ->setPayload($response->output($token, Response::MODEL_TOKEN), sensitive: ['secret']); - // Hide secret for clients - if (!$isPrivilegedUser && !$isAppUser) { - $token->setAttribute('secret', ''); - } - if (!empty($phrase)) { $token->setAttribute('phrase', $phrase); } @@ -2007,15 +2084,22 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->label('audits.event', 'session.create') ->label('audits.resource', 'user/{response.userId}') ->label('audits.userId', '{response.userId}') - ->label('sdk.auth', []) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'createEmailToken') - ->label('sdk.description', '/docs/references/account/create-token-email.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_TOKEN) + ->label('sdk', new Method( + namespace: 'account', + group: 'tokens', + name: 'createEmailToken', + description: '/docs/references/account/create-token-email.md', + auth: [], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_TOKEN, + ) + ], + contentType: ContentType::JSON, + )) ->label('abuse-limit', 10) - ->label('abuse-key', 'url:{url},email:{param-email}') + ->label('abuse-key', ['url:{url},email:{param-email}', 'url:{url},ip:{ip}']) ->param('userId', '', new CustomId(), 'User ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') ->param('email', '', new Email(), 'User email.') ->param('phrase', false, new Boolean(), 'Toggle for security phrase. If enabled, email will be send with a randomly generated phrase and the phrase will also be included in the response. Confirming phrases match increases the security of your authentication flow.', true) @@ -2036,12 +2120,8 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc $phrase = Phrase::generate(); } - $roles = Authorization::getRoles(); - $isPrivilegedUser = Auth::isPrivilegedUser($roles); - $isAppUser = Auth::isAppUser($roles); - $result = $dbForProject->findOne('users', [Query::equal('email', [$email])]); - if ($result !== false && !$result->isEmpty()) { + if (!$result->isEmpty()) { $user->setAttributes($result->getArrayCopy()); } else { $limit = $project->getAttribute('auths', [])['limit'] ?? 0; @@ -2058,7 +2138,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc $identityWithMatchingEmail = $dbForProject->findOne('identities', [ Query::equal('providerEmail', [$email]), ]); - if ($identityWithMatchingEmail !== false && !$identityWithMatchingEmail->isEmpty()) { + if (!$identityWithMatchingEmail->isEmpty()) { throw new Exception(Exception::GENERAL_BAD_REQUEST); /** Return a generic bad request to prevent exposing existing accounts */ } @@ -2208,17 +2288,11 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->setRecipient($email) ->trigger(); - // Set to unhashed secret for events and server responses $token->setAttribute('secret', $tokenSecret); $queueForEvents ->setPayload($response->output($token, Response::MODEL_TOKEN), sensitive: ['secret']); - // Hide secret for clients - if (!$isPrivilegedUser && !$isAppUser) { - $token->setAttribute('secret', ''); - } - if (!empty($phrase)) { $token->setAttribute('phrase', $phrase); } @@ -2236,14 +2310,21 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->label('audits.event', 'session.create') ->label('audits.resource', 'user/{response.userId}') ->label('audits.userId', '{response.userId}') - ->label('sdk.auth', []) - ->label('sdk.deprecated', true) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'updateMagicURLSession') - ->label('sdk.description', '/docs/references/account/create-session.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_SESSION) + ->label('sdk', new Method( + namespace: 'account', + group: 'sessions', + name: 'updateMagicURLSession', + description: '/docs/references/account/create-session.md', + auth: [], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_SESSION, + ) + ], + contentType: ContentType::JSON, + deprecated: true, + )) ->label('abuse-limit', 10) ->label('abuse-key', 'ip:{ip},userId:{param-userId}') ->param('userId', '', new CustomId(), 'User ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') @@ -2267,14 +2348,21 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->label('audits.event', 'session.create') ->label('audits.resource', 'user/{response.userId}') ->label('audits.userId', '{response.userId}') - ->label('sdk.auth', []) - ->label('sdk.deprecated', true) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'updatePhoneSession') - ->label('sdk.description', '/docs/references/account/create-session.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_SESSION) + ->label('sdk', new Method( + namespace: 'account', + group: 'sessions', + name: 'updatePhoneSession', + description: '/docs/references/account/create-session.md', + auth: [], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_SESSION, + ) + ], + contentType: ContentType::JSON, + deprecated: true, + )) ->label('abuse-limit', 10) ->label('abuse-key', 'ip:{ip},userId:{param-userId}') ->param('userId', '', new CustomId(), 'User ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') @@ -2293,19 +2381,26 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc App::post('/v1/account/tokens/phone') ->alias('/v1/account/sessions/phone') ->desc('Create phone token') - ->groups(['api', 'account']) + ->groups(['api', 'account', 'auth']) ->label('scope', 'sessions.write') ->label('auth.type', 'phone') ->label('audits.event', 'session.create') ->label('audits.resource', 'user/{response.userId}') ->label('audits.userId', '{response.userId}') - ->label('sdk.auth', []) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'createPhoneToken') - ->label('sdk.description', '/docs/references/account/create-token-phone.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_TOKEN) + ->label('sdk', new Method( + namespace: 'account', + group: 'tokens', + name: 'createPhoneToken', + description: '/docs/references/account/create-token-phone.md', + auth: [], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_TOKEN, + ) + ], + contentType: ContentType::JSON, + )) ->label('abuse-limit', 10) ->label('abuse-key', ['url:{url},phone:{param-phone}', 'url:{url},ip:{ip}']) ->param('userId', '', new CustomId(), 'Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') @@ -2318,17 +2413,16 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->inject('queueForEvents') ->inject('queueForMessaging') ->inject('locale') - ->action(function (string $userId, string $phone, Request $request, Response $response, Document $user, Document $project, Database $dbForProject, Event $queueForEvents, Messaging $queueForMessaging, Locale $locale) { + ->inject('timelimit') + ->inject('queueForStatsUsage') + ->inject('plan') + ->action(function (string $userId, string $phone, Request $request, Response $response, Document $user, Document $project, Database $dbForProject, Event $queueForEvents, Messaging $queueForMessaging, Locale $locale, callable $timelimit, StatsUsage $queueForStatsUsage, array $plan) { if (empty(System::getEnv('_APP_SMS_PROVIDER'))) { throw new Exception(Exception::GENERAL_PHONE_DISABLED, 'Phone provider not configured'); } - $roles = Authorization::getRoles(); - $isPrivilegedUser = Auth::isPrivilegedUser($roles); - $isAppUser = Auth::isAppUser($roles); - $result = $dbForProject->findOne('users', [Query::equal('phone', [$phone])]); - if ($result !== false && !$result->isEmpty()) { + if (!$result->isEmpty()) { $user->setAttributes($result->getArrayCopy()); } else { $limit = $project->getAttribute('auths', [])['limit'] ?? 0; @@ -2385,7 +2479,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc $existingTarget = $dbForProject->findOne('targets', [ Query::equal('identifier', [$phone]), ]); - $user->setAttribute('targets', [...$user->getAttribute('targets', []), $existingTarget]); + $user->setAttribute('targets', [...$user->getAttribute('targets', []), $existingTarget->isEmpty() ? false : $existingTarget]); } $dbForProject->purgeCachedDocument('users', $user->getId()); } @@ -2455,16 +2549,36 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->setMessage($messageDoc) ->setRecipients([$phone]) ->setProviderType(MESSAGE_TYPE_SMS); + + if (isset($plan['authPhone'])) { + $timelimit = $timelimit('organization:{organizationId}', $plan['authPhone'], 30 * 24 * 60 * 60); // 30 days + $timelimit + ->setParam('{organizationId}', $project->getAttribute('teamId')); + + $abuse = new Abuse($timelimit); + if ($abuse->check() && System::getEnv('_APP_OPTIONS_ABUSE', 'enabled') === 'enabled') { + $helper = PhoneNumberUtil::getInstance(); + $countryCode = $helper->parse($phone)->getCountryCode(); + + if (!empty($countryCode)) { + $queueForStatsUsage + ->addMetric(str_replace('{countryCode}', $countryCode, METRIC_AUTH_METHOD_PHONE_COUNTRY_CODE), 1); + } + } + $queueForStatsUsage + ->addMetric(METRIC_AUTH_METHOD_PHONE, 1) + ->setProject($project) + ->trigger(); + } } - // Set to unhashed secret for events and server responses $token->setAttribute('secret', $secret); $queueForEvents ->setPayload($response->output($token, Response::MODEL_TOKEN), sensitive: ['secret']); - // Hide secret for clients - $token->setAttribute('secret', ($isPrivilegedUser || $isAppUser) ? Auth::encodeSession($user->getId(), $secret) : ''); + // Encode secret for clients + $token->setAttribute('secret', Auth::encodeSession($user->getId(), $secret)); $response ->setStatusCode(Response::STATUS_CODE_CREATED) @@ -2477,13 +2591,20 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->groups(['api', 'account', 'auth']) ->label('scope', 'account') ->label('auth.type', 'jwt') - ->label('sdk.auth', []) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'createJWT') - ->label('sdk.description', '/docs/references/account/create-jwt.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_JWT) + ->label('sdk', new Method( + namespace: 'account', + group: 'tokens', + name: 'createJWT', + description: '/docs/references/account/create-jwt.md', + auth: [], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_JWT, + ) + ], + contentType: ContentType::JSON, + )) ->label('abuse-limit', 100) ->label('abuse-key', 'url:{url},userId:{userId}') ->inject('response') @@ -2519,15 +2640,20 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->desc('Get account preferences') ->groups(['api', 'account']) ->label('scope', 'account') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'getPrefs') - ->label('sdk.description', '/docs/references/account/get-prefs.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PREFERENCES) - ->label('sdk.offline.model', '/account/prefs') - ->label('sdk.offline.key', 'current') + ->label('sdk', new Method( + namespace: 'account', + group: 'account', + name: 'getPrefs', + description: '/docs/references/account/get-prefs.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PREFERENCES, + ) + ], + contentType: ContentType::JSON + )) ->inject('response') ->inject('user') ->action(function (Response $response, Document $user) { @@ -2541,13 +2667,20 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->desc('List logs') ->groups(['api', 'account']) ->label('scope', 'account') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'listLogs') - ->label('sdk.description', '/docs/references/account/list-logs.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_LOG_LIST) + ->label('sdk', new Method( + namespace: 'account', + group: 'logs', + name: 'listLogs', + description: '/docs/references/account/list-logs.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_LOG_LIST, + ) + ], + contentType: ContentType::JSON, + )) ->param('queries', [], new Queries([new Limit(), new Offset()]), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset', true) ->inject('response') ->inject('user') @@ -2562,13 +2695,15 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); } - $grouped = Query::groupByType($queries); - $limit = $grouped['limit'] ?? APP_LIMIT_COUNT; - $offset = $grouped['offset'] ?? 0; + // Temp fix for logs + $queries[] = Query::or([ + Query::greaterThan('$createdAt', DateTime::format(new \DateTime('2025-02-26T01:30+00:00'))), + Query::lessThan('$createdAt', DateTime::format(new \DateTime('2025-02-13T00:00+00:00'))), + ]); $audit = new EventAudit($dbForProject); - $logs = $audit->getLogsByUser($user->getInternalId(), $limit, $offset); + $logs = $audit->getLogsByUser($user->getInternalId(), $queries); $output = []; @@ -2597,7 +2732,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc } $response->dynamic(new Document([ - 'total' => $audit->countLogsByUser($user->getInternalId()), + 'total' => $audit->countLogsByUser($user->getInternalId(), $queries), 'logs' => $output, ]), Response::MODEL_LOG_LIST); }); @@ -2609,15 +2744,20 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->label('scope', 'account') ->label('audits.event', 'user.update') ->label('audits.resource', 'user/{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'updateName') - ->label('sdk.description', '/docs/references/account/update-name.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USER) - ->label('sdk.offline.model', '/account') - ->label('sdk.offline.key', 'current') + ->label('sdk', new Method( + namespace: 'account', + group: 'account', + name: 'updateName', + description: '/docs/references/account/update-name.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USER, + ) + ], + contentType: ContentType::JSON + )) ->param('name', '', new Text(128), 'User name. Max length: 128 chars.') ->inject('requestTimestamp') ->inject('response') @@ -2628,7 +2768,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc $user->setAttribute('name', $name); - $user = $dbForProject->withRequestTimestamp($requestTimestamp, fn () => $dbForProject->updateDocument('users', $user->getId(), $user)); + $user = $dbForProject->updateDocument('users', $user->getId(), $user); $queueForEvents->setParam('userId', $user->getId()); @@ -2643,15 +2783,20 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->label('audits.event', 'user.update') ->label('audits.resource', 'user/{response.$id}') ->label('audits.userId', '{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'updatePassword') - ->label('sdk.description', '/docs/references/account/update-password.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USER) - ->label('sdk.offline.model', '/account') - ->label('sdk.offline.key', 'current') + ->label('sdk', new Method( + namespace: 'account', + group: 'account', + name: 'updatePassword', + description: '/docs/references/account/update-password.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USER, + ) + ], + contentType: ContentType::JSON + )) ->label('abuse-limit', 10) ->param('password', '', fn ($project, $passwordsDictionary) => new PasswordDictionary($passwordsDictionary, $project->getAttribute('auths', [])['passwordDictionary'] ?? false), 'New user password. Must be at least 8 chars.', false, ['project', 'passwordsDictionary']) ->param('oldPassword', '', new Password(), 'Current user password. Must be at least 8 chars.', true) @@ -2698,7 +2843,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->setAttribute('hash', Auth::DEFAULT_ALGO) ->setAttribute('hashOptions', Auth::DEFAULT_ALGO_OPTIONS); - $user = $dbForProject->withRequestTimestamp($requestTimestamp, fn () => $dbForProject->updateDocument('users', $user->getId(), $user)); + $user = $dbForProject->updateDocument('users', $user->getId(), $user); $queueForEvents->setParam('userId', $user->getId()); @@ -2712,15 +2857,20 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->label('scope', 'account') ->label('audits.event', 'user.update') ->label('audits.resource', 'user/{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'updateEmail') - ->label('sdk.description', '/docs/references/account/update-email.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USER) - ->label('sdk.offline.model', '/account') - ->label('sdk.offline.key', 'current') + ->label('sdk', new Method( + namespace: 'account', + group: 'account', + name: 'updateEmail', + description: '/docs/references/account/update-email.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USER, + ) + ], + contentType: ContentType::JSON + )) ->param('email', '', new Email(), 'User email.') ->param('password', '', new Password(), 'User password. Must be at least 8 chars.') ->inject('requestTimestamp') @@ -2752,7 +2902,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc Query::equal('providerEmail', [$email]), Query::notEqual('userInternalId', $user->getInternalId()), ]); - if ($identityWithMatchingEmail !== false && !$identityWithMatchingEmail->isEmpty()) { + if (!$identityWithMatchingEmail->isEmpty()) { throw new Exception(Exception::GENERAL_BAD_REQUEST); /** Return a generic bad request to prevent exposing existing accounts */ } @@ -2773,12 +2923,12 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc Query::equal('identifier', [$email]), ])); - if ($target instanceof Document && !$target->isEmpty()) { + if (!$target->isEmpty()) { throw new Exception(Exception::USER_TARGET_ALREADY_EXISTS); } try { - $user = $dbForProject->withRequestTimestamp($requestTimestamp, fn () => $dbForProject->updateDocument('users', $user->getId(), $user)); + $user = $dbForProject->updateDocument('users', $user->getId(), $user); /** * @var Document $oldTarget */ @@ -2804,15 +2954,20 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->label('scope', 'account') ->label('audits.event', 'user.update') ->label('audits.resource', 'user/{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'updatePhone') - ->label('sdk.description', '/docs/references/account/update-phone.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USER) - ->label('sdk.offline.model', '/account') - ->label('sdk.offline.key', 'current') + ->label('sdk', new Method( + namespace: 'account', + group: 'account', + name: 'updatePhone', + description: '/docs/references/account/update-phone.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USER, + ) + ], + contentType: ContentType::JSON + )) ->param('phone', '', new Phone(), 'Phone number. Format this number with a leading \'+\' and a country code, e.g., +16175551212.') ->param('password', '', new Password(), 'User password. Must be at least 8 chars.') ->inject('requestTimestamp') @@ -2839,7 +2994,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc Query::equal('identifier', [$phone]), ])); - if ($target instanceof Document && !$target->isEmpty()) { + if (!$target->isEmpty()) { throw new Exception(Exception::USER_TARGET_ALREADY_EXISTS); } @@ -2859,7 +3014,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc } try { - $user = $dbForProject->withRequestTimestamp($requestTimestamp, fn () => $dbForProject->updateDocument('users', $user->getId(), $user)); + $user = $dbForProject->updateDocument('users', $user->getId(), $user); /** * @var Document $oldTarget */ @@ -2885,15 +3040,20 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->label('scope', 'account') ->label('audits.event', 'user.update') ->label('audits.resource', 'user/{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'updatePrefs') - ->label('sdk.description', '/docs/references/account/update-prefs.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USER) - ->label('sdk.offline.model', '/account/prefs') - ->label('sdk.offline.key', 'current') + ->label('sdk', new Method( + namespace: 'account', + group: 'account', + name: 'updatePrefs', + description: '/docs/references/account/update-prefs.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USER, + ) + ], + contentType: ContentType::JSON + )) ->param('prefs', [], new Assoc(), 'Prefs key-value JSON object.') ->inject('requestTimestamp') ->inject('response') @@ -2904,7 +3064,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc $user->setAttribute('prefs', $prefs); - $user = $dbForProject->withRequestTimestamp($requestTimestamp, fn () => $dbForProject->updateDocument('users', $user->getId(), $user)); + $user = $dbForProject->updateDocument('users', $user->getId(), $user); $queueForEvents->setParam('userId', $user->getId()); @@ -2918,13 +3078,20 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->label('scope', 'account') ->label('audits.event', 'user.update') ->label('audits.resource', 'user/{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'updateStatus') - ->label('sdk.description', '/docs/references/account/update-status.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USER) + ->label('sdk', new Method( + namespace: 'account', + group: 'account', + name: 'updateStatus', + description: '/docs/references/account/update-status.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USER, + ) + ], + contentType: ContentType::JSON, + )) ->inject('requestTimestamp') ->inject('request') ->inject('response') @@ -2935,7 +3102,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc $user->setAttribute('status', false); - $user = $dbForProject->withRequestTimestamp($requestTimestamp, fn () => $dbForProject->updateDocument('users', $user->getId(), $user)); + $user = $dbForProject->updateDocument('users', $user->getId(), $user); $queueForEvents ->setParam('userId', $user->getId()) @@ -2962,13 +3129,20 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->label('audits.event', 'recovery.create') ->label('audits.resource', 'user/{response.userId}') ->label('audits.userId', '{response.userId}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'createRecovery') - ->label('sdk.description', '/docs/references/account/create-recovery.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_TOKEN) + ->label('sdk', new Method( + namespace: 'account', + group: 'recovery', + name: 'createRecovery', + description: '/docs/references/account/create-recovery.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_TOKEN, + ) + ], + contentType: ContentType::JSON, + )) ->label('abuse-limit', 10) ->label('abuse-key', ['url:{url},email:{param-email}', 'url:{url},ip:{ip}']) ->param('email', '', new Email(), 'User email.') @@ -2987,18 +3161,13 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc throw new Exception(Exception::GENERAL_SMTP_DISABLED, 'SMTP Disabled'); } $url = htmlentities($url); - - $roles = Authorization::getRoles(); - $isPrivilegedUser = Auth::isPrivilegedUser($roles); - $isAppUser = Auth::isAppUser($roles); - $email = \strtolower($email); $profile = $dbForProject->findOne('users', [ Query::equal('email', [$email]), ]); - if (!$profile) { + if ($profile->isEmpty()) { throw new Exception(Exception::USER_NOT_FOUND); } @@ -3115,19 +3284,13 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->setSubject($subject) ->trigger(); - // Set to unhashed secret for events and server responses $recovery->setAttribute('secret', $secret); $queueForEvents ->setParam('userId', $profile->getId()) ->setParam('tokenId', $recovery->getId()) ->setUser($profile) - ->setPayload($response->output($recovery, Response::MODEL_TOKEN), sensitive: ['secret']); - - // Hide secret for clients - if (!$isPrivilegedUser && !$isAppUser) { - $recovery->setAttribute('secret', ''); - } + ->setPayload(Response::showSensitive(fn () => $response->output($recovery, Response::MODEL_TOKEN)), sensitive: ['secret']); $response ->setStatusCode(Response::STATUS_CODE_CREATED) @@ -3135,20 +3298,27 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc }); App::put('/v1/account/recovery') - ->desc('Create password recovery (confirmation)') + ->desc('Update password recovery (confirmation)') ->groups(['api', 'account']) ->label('scope', 'sessions.write') ->label('event', 'users.[userId].recovery.[tokenId].update') ->label('audits.event', 'recovery.update') ->label('audits.resource', 'user/{response.userId}') ->label('audits.userId', '{response.userId}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'updateRecovery') - ->label('sdk.description', '/docs/references/account/update-recovery.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_TOKEN) + ->label('sdk', new Method( + namespace: 'account', + group: 'recovery', + name: 'updateRecovery', + description: '/docs/references/account/update-recovery.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_TOKEN, + ) + ], + contentType: ContentType::JSON + )) ->label('abuse-limit', 10) ->label('abuse-key', 'url:{url},userId:{param-userId}') ->param('userId', '', new UID(), 'User ID.') @@ -3214,7 +3384,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc $queueForEvents ->setParam('userId', $profile->getId()) ->setParam('tokenId', $recoveryDocument->getId()) - ; + ->setPayload(Response::showSensitive(fn () => $response->output($recoveryDocument, Response::MODEL_TOKEN)), sensitive: ['secret']); $response->dynamic($recoveryDocument, Response::MODEL_TOKEN); }); @@ -3226,13 +3396,20 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->label('event', 'users.[userId].verification.[tokenId].create') ->label('audits.event', 'verification.create') ->label('audits.resource', 'user/{response.userId}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'createVerification') - ->label('sdk.description', '/docs/references/account/create-email-verification.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_TOKEN) + ->label('sdk', new Method( + namespace: 'account', + group: 'verification', + name: 'createVerification', + description: '/docs/references/account/create-email-verification.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_TOKEN, + ) + ], + contentType: ContentType::JSON, + )) ->label('abuse-limit', 10) ->label('abuse-key', 'url:{url},userId:{userId}') ->param('url', '', fn ($clients) => new Host($clients), '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.', false, ['clients']) // TODO add built-in confirm page @@ -3255,9 +3432,6 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc throw new Exception(Exception::USER_EMAIL_ALREADY_VERIFIED); } - $roles = Authorization::getRoles(); - $isPrivilegedUser = Auth::isPrivilegedUser($roles); - $isAppUser = Auth::isAppUser($roles); $verificationSecret = Auth::tokenGenerator(Auth::TOKEN_LENGTH_VERIFICATION); $expire = DateTime::addSeconds(new \DateTime(), Auth::TOKEN_EXPIRATION_CONFIRM); @@ -3366,18 +3540,12 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->setName($user->getAttribute('name') ?? '') ->trigger(); - // Set to unhashed secret for events and server responses $verification->setAttribute('secret', $verificationSecret); $queueForEvents ->setParam('userId', $user->getId()) ->setParam('tokenId', $verification->getId()) - ->setPayload($response->output($verification, Response::MODEL_TOKEN), sensitive: ['secret']); - - // Hide secret for clients - if (!$isPrivilegedUser && !$isAppUser) { - $verification->setAttribute('secret', ''); - } + ->setPayload(Response::showSensitive(fn () => $response->output($verification, Response::MODEL_TOKEN)), sensitive: ['secret']); $response ->setStatusCode(Response::STATUS_CODE_CREATED) @@ -3385,19 +3553,26 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc }); App::put('/v1/account/verification') - ->desc('Create email verification (confirmation)') + ->desc('Update email verification (confirmation)') ->groups(['api', 'account']) ->label('scope', 'public') ->label('event', 'users.[userId].verification.[tokenId].update') ->label('audits.event', 'verification.update') ->label('audits.resource', 'user/{response.userId}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'updateVerification') - ->label('sdk.description', '/docs/references/account/update-email-verification.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_TOKEN) + ->label('sdk', new Method( + namespace: 'account', + group: 'verification', + name: 'updateVerification', + description: '/docs/references/account/update-email-verification.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_TOKEN, + ) + ], + contentType: ContentType::JSON + )) ->label('abuse-limit', 10) ->label('abuse-key', 'url:{url},userId:{param-userId}') ->param('userId', '', new UID(), 'User ID.') @@ -3438,7 +3613,8 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc $queueForEvents ->setParam('userId', $userId) - ->setParam('tokenId', $verification->getId()); + ->setParam('tokenId', $verification->getId()) + ->setPayload(Response::showSensitive(fn () => $response->output($verification, Response::MODEL_TOKEN)), sensitive: ['secret']); $response->dynamic($verification, Response::MODEL_TOKEN); }); @@ -3451,13 +3627,20 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->label('event', 'users.[userId].verification.[tokenId].create') ->label('audits.event', 'verification.create') ->label('audits.resource', 'user/{response.userId}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'createPhoneVerification') - ->label('sdk.description', '/docs/references/account/create-phone-verification.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_TOKEN) + ->label('sdk', new Method( + namespace: 'account', + group: 'verification', + name: 'createPhoneVerification', + description: '/docs/references/account/create-phone-verification.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_TOKEN, + ) + ], + contentType: ContentType::JSON, + )) ->label('abuse-limit', 10) ->label('abuse-key', ['url:{url},userId:{userId}', 'url:{url},ip:{ip}']) ->inject('request') @@ -3468,7 +3651,10 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->inject('queueForMessaging') ->inject('project') ->inject('locale') - ->action(function (Request $request, Response $response, Document $user, Database $dbForProject, Event $queueForEvents, Messaging $queueForMessaging, Document $project, Locale $locale) { + ->inject('timelimit') + ->inject('queueForStatsUsage') + ->inject('plan') + ->action(function (Request $request, Response $response, Document $user, Database $dbForProject, Event $queueForEvents, Messaging $queueForMessaging, Document $project, Locale $locale, callable $timelimit, StatsUsage $queueForStatsUsage, array $plan) { if (empty(System::getEnv('_APP_SMS_PROVIDER'))) { throw new Exception(Exception::GENERAL_PHONE_DISABLED, 'Phone provider not configured'); } @@ -3482,10 +3668,6 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc throw new Exception(Exception::USER_PHONE_ALREADY_VERIFIED); } - $roles = Authorization::getRoles(); - $isPrivilegedUser = Auth::isPrivilegedUser($roles); - $isAppUser = Auth::isAppUser($roles); - $secret = null; $sendSMS = true; $mockNumbers = $project->getAttribute('auths', [])['mockNumbers'] ?? []; @@ -3551,9 +3733,29 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->setMessage($messageDoc) ->setRecipients([$user->getAttribute('phone')]) ->setProviderType(MESSAGE_TYPE_SMS); + + if (isset($plan['authPhone'])) { + $timelimit = $timelimit('organization:{organizationId}', $plan['authPhone'], 30 * 24 * 60 * 60); // 30 days + $timelimit + ->setParam('{organizationId}', $project->getAttribute('teamId')); + + $abuse = new Abuse($timelimit); + if ($abuse->check() && System::getEnv('_APP_OPTIONS_ABUSE', 'enabled') === 'enabled') { + $helper = PhoneNumberUtil::getInstance(); + $countryCode = $helper->parse($phone)->getCountryCode(); + + if (!empty($countryCode)) { + $queueForStatsUsage + ->addMetric(str_replace('{countryCode}', $countryCode, METRIC_AUTH_METHOD_PHONE_COUNTRY_CODE), 1); + } + } + $queueForStatsUsage + ->addMetric(METRIC_AUTH_METHOD_PHONE, 1) + ->setProject($project) + ->trigger(); + } } - // Set to unhashed secret for events and server responses $verification->setAttribute('secret', $secret); $queueForEvents @@ -3561,11 +3763,6 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->setParam('tokenId', $verification->getId()) ->setPayload($response->output($verification, Response::MODEL_TOKEN), sensitive: ['secret']); - // Hide secret for clients - if (!$isPrivilegedUser && !$isAppUser) { - $verification->setAttribute('secret', ''); - } - $response ->setStatusCode(Response::STATUS_CODE_CREATED) ->dynamic($verification, Response::MODEL_TOKEN); @@ -3578,13 +3775,20 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->label('event', 'users.[userId].verification.[tokenId].update') ->label('audits.event', 'verification.update') ->label('audits.resource', 'user/{response.userId}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'updatePhoneVerification') - ->label('sdk.description', '/docs/references/account/update-phone-verification.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_TOKEN) + ->label('sdk', new Method( + namespace: 'account', + group: 'verification', + name: 'updatePhoneVerification', + description: '/docs/references/account/update-phone-verification.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_TOKEN, + ) + ], + contentType: ContentType::JSON + )) ->label('abuse-limit', 10) ->label('abuse-key', 'userId:{param-userId}') ->param('userId', '', new UID(), 'User ID.') @@ -3637,15 +3841,20 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->label('audits.event', 'user.update') ->label('audits.resource', 'user/{response.$id}') ->label('audits.userId', '{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'updateMFA') - ->label('sdk.description', '/docs/references/account/update-mfa.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USER) - ->label('sdk.offline.model', '/account') - ->label('sdk.offline.key', 'current') + ->label('sdk', new Method( + namespace: 'account', + group: 'mfa', + name: 'updateMFA', + description: '/docs/references/account/update-mfa.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USER, + ) + ], + contentType: ContentType::JSON + )) ->param('mfa', null, new Boolean(), 'Enable or disable MFA.') ->inject('requestTimestamp') ->inject('response') @@ -3657,7 +3866,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc $user->setAttribute('mfa', $mfa); - $user = $dbForProject->withRequestTimestamp($requestTimestamp, fn () => $dbForProject->updateDocument('users', $user->getId(), $user)); + $user = $dbForProject->updateDocument('users', $user->getId(), $user); if ($mfa) { $factors = $session->getAttribute('factors', []); @@ -3683,18 +3892,23 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc }); App::get('/v1/account/mfa/factors') - ->desc('List Factors') + ->desc('List factors') ->groups(['api', 'account', 'mfa']) ->label('scope', 'account') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'listMfaFactors') - ->label('sdk.description', '/docs/references/account/list-mfa-factors.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MFA_FACTORS) - ->label('sdk.offline.model', '/account') - ->label('sdk.offline.key', 'current') + ->label('sdk', new Method( + namespace: 'account', + group: 'mfa', + name: 'listMfaFactors', + description: '/docs/references/account/list-mfa-factors.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_MFA_FACTORS, + ) + ], + contentType: ContentType::JSON + )) ->inject('response') ->inject('user') ->action(function (Response $response, Document $user) { @@ -3715,22 +3929,27 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc }); App::post('/v1/account/mfa/authenticators/:type') - ->desc('Create Authenticator') + ->desc('Create authenticator') ->groups(['api', 'account']) ->label('event', 'users.[userId].update.mfa') ->label('scope', 'account') ->label('audits.event', 'user.update') ->label('audits.resource', 'user/{response.$id}') ->label('audits.userId', '{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'createMfaAuthenticator') - ->label('sdk.description', '/docs/references/account/create-mfa-authenticator.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MFA_TYPE) - ->label('sdk.offline.model', '/account') - ->label('sdk.offline.key', 'current') + ->label('sdk', new Method( + namespace: 'account', + group: 'mfa', + name: 'createMfaAuthenticator', + description: '/docs/references/account/create-mfa-authenticator.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_MFA_TYPE, + ) + ], + contentType: ContentType::JSON + )) ->param('type', null, new WhiteList([Type::TOTP]), 'Type of authenticator. Must be `' . Type::TOTP . '`') ->inject('requestTimestamp') ->inject('response') @@ -3787,22 +4006,27 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc }); App::put('/v1/account/mfa/authenticators/:type') - ->desc('Verify Authenticator') + ->desc('Update authenticator (confirmation)') ->groups(['api', 'account']) ->label('event', 'users.[userId].update.mfa') ->label('scope', 'account') ->label('audits.event', 'user.update') ->label('audits.resource', 'user/{response.$id}') ->label('audits.userId', '{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'updateMfaAuthenticator') - ->label('sdk.description', '/docs/references/account/update-mfa-authenticator.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USER) - ->label('sdk.offline.model', '/account') - ->label('sdk.offline.key', 'current') + ->label('sdk', new Method( + namespace: 'account', + group: 'mfa', + name: 'updateMfaAuthenticator', + description: '/docs/references/account/update-mfa-authenticator.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USER, + ) + ], + contentType: ContentType::JSON + )) ->param('type', null, new WhiteList([Type::TOTP]), 'Type of authenticator.') ->param('otp', '', new Text(256), 'Valid verification token.') ->inject('response') @@ -3852,22 +4076,27 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc }); App::post('/v1/account/mfa/recovery-codes') - ->desc('Create MFA Recovery Codes') + ->desc('Create MFA recovery codes') ->groups(['api', 'account']) ->label('event', 'users.[userId].update.mfa') ->label('scope', 'account') ->label('audits.event', 'user.update') ->label('audits.resource', 'user/{response.$id}') ->label('audits.userId', '{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'createMfaRecoveryCodes') - ->label('sdk.description', '/docs/references/account/create-mfa-recovery-codes.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MFA_RECOVERY_CODES) - ->label('sdk.offline.model', '/account') - ->label('sdk.offline.key', 'current') + ->label('sdk', new Method( + namespace: 'account', + group: 'mfa', + name: 'createMfaRecoveryCodes', + description: '/docs/references/account/create-mfa-recovery-codes.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_MFA_RECOVERY_CODES, + ) + ], + contentType: ContentType::JSON + )) ->inject('response') ->inject('user') ->inject('dbForProject') @@ -3894,22 +4123,27 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc }); App::patch('/v1/account/mfa/recovery-codes') - ->desc('Regenerate MFA Recovery Codes') + ->desc('Update MFA recovery codes (regenerate)') ->groups(['api', 'account', 'mfaProtected']) ->label('event', 'users.[userId].update.mfa') ->label('scope', 'account') ->label('audits.event', 'user.update') ->label('audits.resource', 'user/{response.$id}') ->label('audits.userId', '{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'updateMfaRecoveryCodes') - ->label('sdk.description', '/docs/references/account/update-mfa-recovery-codes.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MFA_RECOVERY_CODES) - ->label('sdk.offline.model', '/account') - ->label('sdk.offline.key', 'current') + ->label('sdk', new Method( + namespace: 'account', + group: 'mfa', + name: 'updateMfaRecoveryCodes', + description: '/docs/references/account/update-mfa-recovery-codes.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_MFA_RECOVERY_CODES, + ) + ], + contentType: ContentType::JSON + )) ->inject('dbForProject') ->inject('response') ->inject('user') @@ -3935,18 +4169,23 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc }); App::get('/v1/account/mfa/recovery-codes') - ->desc('Get MFA Recovery Codes') + ->desc('List MFA recovery codes') ->groups(['api', 'account', 'mfaProtected']) ->label('scope', 'account') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'getMfaRecoveryCodes') - ->label('sdk.description', '/docs/references/account/get-mfa-recovery-codes.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MFA_RECOVERY_CODES) - ->label('sdk.offline.model', '/account') - ->label('sdk.offline.key', 'current') + ->label('sdk', new Method( + namespace: 'account', + group: 'mfa', + name: 'getMfaRecoveryCodes', + description: '/docs/references/account/get-mfa-recovery-codes.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_MFA_RECOVERY_CODES, + ) + ], + contentType: ContentType::JSON + )) ->inject('response') ->inject('user') ->action(function (Response $response, Document $user) { @@ -3965,19 +4204,27 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc }); App::delete('/v1/account/mfa/authenticators/:type') - ->desc('Delete Authenticator') + ->desc('Delete authenticator') ->groups(['api', 'account', 'mfaProtected']) ->label('event', 'users.[userId].delete.mfa') ->label('scope', 'account') ->label('audits.event', 'user.update') ->label('audits.resource', 'user/{response.$id}') ->label('audits.userId', '{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'deleteMfaAuthenticator') - ->label('sdk.description', '/docs/references/account/delete-mfa-authenticator.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'account', + group: 'mfa', + name: 'deleteMfaAuthenticator', + description: '/docs/references/account/delete-mfa-authenticator.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('type', null, new WhiteList([Type::TOTP]), 'Type of authenticator.') ->inject('response') ->inject('user') @@ -4003,20 +4250,27 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc }); App::post('/v1/account/mfa/challenge') - ->desc('Create MFA Challenge') + ->desc('Create MFA challenge') ->groups(['api', 'account', 'mfa']) ->label('scope', 'account') ->label('event', 'users.[userId].challenges.[challengeId].create') ->label('audits.event', 'challenge.create') ->label('audits.resource', 'user/{response.userId}') ->label('audits.userId', '{response.userId}') - ->label('sdk.auth', []) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'createMfaChallenge') - ->label('sdk.description', '/docs/references/account/create-mfa-challenge.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MFA_CHALLENGE) + ->label('sdk', new Method( + namespace: 'account', + group: 'mfa', + name: 'createMfaChallenge', + description: '/docs/references/account/create-mfa-challenge.md', + auth: [], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_MFA_CHALLENGE, + ) + ], + contentType: ContentType::JSON, + )) ->label('abuse-limit', 10) ->label('abuse-key', 'url:{url},userId:{userId}') ->param('factor', '', new WhiteList([Type::EMAIL, Type::PHONE, Type::TOTP, Type::RECOVERY_CODE]), 'Factor used for verification. Must be one of following: `' . Type::EMAIL . '`, `' . Type::PHONE . '`, `' . Type::TOTP . '`, `' . Type::RECOVERY_CODE . '`.') @@ -4029,7 +4283,10 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->inject('queueForEvents') ->inject('queueForMessaging') ->inject('queueForMails') - ->action(function (string $factor, Response $response, Database $dbForProject, Document $user, Locale $locale, Document $project, Request $request, Event $queueForEvents, Messaging $queueForMessaging, Mail $queueForMails) { + ->inject('timelimit') + ->inject('queueForStatsUsage') + ->inject('plan') + ->action(function (string $factor, Response $response, Database $dbForProject, Document $user, Locale $locale, Document $project, Request $request, Event $queueForEvents, Messaging $queueForMessaging, Mail $queueForMails, callable $timelimit, StatsUsage $queueForStatsUsage, array $plan) { $expire = DateTime::addSeconds(new \DateTime(), Auth::TOKEN_EXPIRATION_CONFIRM); $code = Auth::codeGenerator(); @@ -4077,6 +4334,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc $message = $message->render(); + $phone = $user->getAttribute('phone'); $queueForMessaging ->setType(MESSAGE_SEND_TYPE_INTERNAL) ->setMessage(new Document([ @@ -4085,8 +4343,29 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc 'content' => $code, ], ])) - ->setRecipients([$user->getAttribute('phone')]) + ->setRecipients([$phone]) ->setProviderType(MESSAGE_TYPE_SMS); + + if (isset($plan['authPhone'])) { + $timelimit = $timelimit('organization:{organizationId}', $plan['authPhone'], 30 * 24 * 60 * 60); // 30 days + $timelimit + ->setParam('{organizationId}', $project->getAttribute('teamId')); + + $abuse = new Abuse($timelimit); + if ($abuse->check() && System::getEnv('_APP_OPTIONS_ABUSE', 'enabled') === 'enabled') { + $helper = PhoneNumberUtil::getInstance(); + $countryCode = $helper->parse($phone)->getCountryCode(); + + if (!empty($countryCode)) { + $queueForStatsUsage + ->addMetric(str_replace('{countryCode}', $countryCode, METRIC_AUTH_METHOD_PHONE_COUNTRY_CODE), 1); + } + } + $queueForStatsUsage + ->addMetric(METRIC_AUTH_METHOD_PHONE, 1) + ->setProject($project) + ->trigger(); + } break; case Type::EMAIL: if (empty(System::getEnv('_APP_SMTP_HOST'))) { @@ -4191,19 +4470,27 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc }); App::put('/v1/account/mfa/challenge') - ->desc('Create MFA Challenge (confirmation)') + ->desc('Update MFA challenge (confirmation)') ->groups(['api', 'account', 'mfa']) ->label('scope', 'account') ->label('event', 'users.[userId].sessions.[sessionId].create') ->label('audits.event', 'challenges.update') ->label('audits.resource', 'user/{response.userId}') ->label('audits.userId', '{response.userId}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'updateMfaChallenge') - ->label('sdk.description', '/docs/references/account/update-mfa-challenge.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_SESSION) + ->label('sdk', new Method( + namespace: 'account', + group: 'mfa', + name: 'updateMfaChallenge', + description: '/docs/references/account/update-mfa-challenge.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_SESSION, + ) + ], + contentType: ContentType::JSON + )) ->label('abuse-limit', 10) ->label('abuse-key', 'url:{url},challengeId:{param-challengeId}') ->param('challengeId', '', new Text(256), 'ID of the challenge.') @@ -4284,12 +4571,20 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->label('audits.event', 'target.create') ->label('audits.resource', 'target/response.$id') ->label('event', 'users.[userId].targets.[targetId].create') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'createPushTarget') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_TARGET) + ->label('sdk', new Method( + namespace: 'account', + group: 'pushTargets', + name: 'createPushTarget', + description: '/docs/references/account/create-push-target.md', + auth: [AuthType::SESSION], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_TARGET, + ) + ], + contentType: ContentType::JSON + )) ->param('targetId', '', new CustomId(), 'Target ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') ->param('identifier', '', new Text(Database::LENGTH_KEY), 'The target identifier (token, email, phone etc.)') ->param('providerId', '', new UID(), 'Provider ID. Message will be sent to this target from the specified provider ID. If no provider ID is set the first setup provider will be used.', true) @@ -4314,7 +4609,7 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc $device = $detector->getDevice(); - $sessionId = Auth::sessionVerify($user->getAttribute('sessions'), Auth::$secret); + $sessionId = Auth::sessionVerify($user->getAttribute('sessions', []), Auth::$secret); $session = $dbForProject->getDocument('sessions', $sessionId); try { @@ -4357,12 +4652,20 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->label('audits.event', 'target.update') ->label('audits.resource', 'target/response.$id') ->label('event', 'users.[userId].targets.[targetId].update') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'updatePushTarget') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_TARGET) + ->label('sdk', new Method( + namespace: 'account', + group: 'pushTargets', + name: 'updatePushTarget', + description: '/docs/references/account/update-push-target.md', + auth: [AuthType::SESSION], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_TARGET, + ) + ], + contentType: ContentType::JSON + )) ->param('targetId', '', new UID(), 'Target ID.') ->param('identifier', '', new Text(Database::LENGTH_KEY), 'The target identifier (token, email, phone etc.)') ->inject('queueForEvents') @@ -4383,7 +4686,9 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc } if ($identifier) { - $target->setAttribute('identifier', $identifier); + $target + ->setAttribute('identifier', $identifier) + ->setAttribute('expired', false); } $detector = new Detector($request->getUserAgent()); @@ -4412,12 +4717,20 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->label('audits.event', 'target.delete') ->label('audits.resource', 'target/response.$id') ->label('event', 'users.[userId].targets.[targetId].delete') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'deletePushTarget') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_TARGET) + ->label('sdk', new Method( + namespace: 'account', + group: 'pushTargets', + name: 'deletePushTarget', + description: '/docs/references/account/delete-push-target.md', + auth: [AuthType::SESSION], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('targetId', '', new UID(), 'Target ID.') ->inject('queueForEvents') ->inject('queueForDeletes') @@ -4452,17 +4765,23 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc $response->noContent(); }); App::get('/v1/account/identities') - ->desc('List Identities') + ->desc('List identities') ->groups(['api', 'account']) ->label('scope', 'account') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'listIdentities') - ->label('sdk.description', '/docs/references/account/list-identities.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_IDENTITY_LIST) - ->label('sdk.offline.model', '/account/identities') + ->label('sdk', new Method( + namespace: 'account', + group: 'identities', + name: 'listIdentities', + description: '/docs/references/account/list-identities.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_IDENTITY_LIST, + ) + ], + contentType: ContentType::JSON + )) ->param('queries', [], new Identities(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Identities::ALLOWED_ATTRIBUTES), true) ->inject('response') ->inject('user') @@ -4486,6 +4805,12 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc $cursor = reset($cursor); if ($cursor) { /** @var Query $cursor */ + + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + $identityId = $cursor->getValue(); $cursorDocument = $dbForProject->getDocument('identities', $identityId); @@ -4497,8 +4822,11 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc } $filterQueries = Query::groupByType($queries)['filters']; - - $results = $dbForProject->find('identities', $queries); + try { + $results = $dbForProject->find('identities', $queries); + } catch (OrderException $e) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); + } $total = $dbForProject->count('identities', $filterQueries, APP_LIMIT_COUNT); $response->dynamic(new Document([ @@ -4515,12 +4843,20 @@ function sendSessionAlert(Locale $locale, Document $user, Document $project, Doc ->label('audits.event', 'identity.delete') ->label('audits.resource', 'identity/{request.$identityId}') ->label('audits.userId', '{user.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'deleteIdentity') - ->label('sdk.description', '/docs/references/account/delete-identity.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'account', + group: 'identities', + name: 'deleteIdentity', + description: '/docs/references/account/delete-identity.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('identityId', '', new UID(), 'Identity ID.') ->inject('response') ->inject('dbForProject') diff --git a/app/controllers/api/avatars.php b/app/controllers/api/avatars.php index a3bd47595d1..05a9af81f89 100644 --- a/app/controllers/api/avatars.php +++ b/app/controllers/api/avatars.php @@ -1,6 +1,11 @@ <?php use Appwrite\Extend\Exception; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\MethodType; +use Appwrite\SDK\Response as SDKResponse; use Appwrite\URL\URL as URLParse; use Appwrite\Utopia\Response; use chillerlan\QRCode\QRCode; @@ -55,15 +60,15 @@ $output = (empty($output)) ? $type : $output; $data = $image->output($output, $quality); $response - ->addHeader('Expires', \date('D, d M Y H:i:s', \time() + 60 * 60 * 24 * 30) . ' GMT') + ->addHeader('Cache-Control', 'private, max-age=2592000') // 30 days ->setContentType('image/png') ->file($data); unset($image); }; -$getUserGitHub = function (string $userId, Document $project, Database $dbForProject, Database $dbForConsole, ?Logger $logger) { +$getUserGitHub = function (string $userId, Document $project, Database $dbForProject, Database $dbForPlatform, ?Logger $logger) { try { - $user = Authorization::skip(fn () => $dbForConsole->getDocument('users', $userId)); + $user = Authorization::skip(fn () => $dbForPlatform->getDocument('users', $userId)); $sessions = $user->getAttribute('sessions', []); @@ -122,7 +127,7 @@ do { $previousAccessToken = $gitHubSession->getAttribute('providerAccessToken'); - $user = Authorization::skip(fn () => $dbForConsole->getDocument('users', $userId)); + $user = Authorization::skip(fn () => $dbForPlatform->getDocument('users', $userId)); $sessions = $user->getAttribute('sessions', []); $gitHubSession = new Document(); @@ -164,17 +169,25 @@ ->label('scope', 'avatars.read') ->label('cache', true) ->label('cache.resource', 'avatar/credit-card') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'avatars') - ->label('sdk.method', 'getCreditCard') - ->label('sdk.methodType', 'location') - ->label('sdk.description', '/docs/references/avatars/get-credit-card.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_IMAGE_PNG) + ->label('sdk', new Method( + namespace: 'avatars', + group: null, + name: 'getCreditCard', + description: '/docs/references/avatars/get-credit-card.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + type: MethodType::LOCATION, + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::IMAGE_PNG + )) ->param('code', '', new WhiteList(\array_keys(Config::getParam('avatar-credit-cards'))), 'Credit Card Code. Possible values: ' . \implode(', ', \array_keys(Config::getParam('avatar-credit-cards'))) . '.') ->param('width', 100, new Range(0, 2000), 'Image width. Pass an integer between 0 to 2000. Defaults to 100.', true) ->param('height', 100, new Range(0, 2000), 'Image height. Pass an integer between 0 to 2000. Defaults to 100.', true) - ->param('quality', 100, new Range(0, 100), 'Image quality. Pass an integer between 0 to 100. Defaults to 100.', true) + ->param('quality', -1, new Range(-1, 100), 'Image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.', true) ->inject('response') ->action(fn (string $code, int $width, int $height, int $quality, Response $response) => $avatarCallback('credit-cards', $code, $width, $height, $quality, $response)); @@ -184,17 +197,25 @@ ->label('scope', 'avatars.read') ->label('cache', true) ->label('cache.resource', 'avatar/browser') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'avatars') - ->label('sdk.method', 'getBrowser') - ->label('sdk.methodType', 'location') - ->label('sdk.description', '/docs/references/avatars/get-browser.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_IMAGE_PNG) + ->label('sdk', new Method( + namespace: 'avatars', + group: null, + name: 'getBrowser', + description: '/docs/references/avatars/get-browser.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + type: MethodType::LOCATION, + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::IMAGE_PNG + )) ->param('code', '', new WhiteList(\array_keys(Config::getParam('avatar-browsers'))), 'Browser Code.') ->param('width', 100, new Range(0, 2000), 'Image width. Pass an integer between 0 to 2000. Defaults to 100.', true) ->param('height', 100, new Range(0, 2000), 'Image height. Pass an integer between 0 to 2000. Defaults to 100.', true) - ->param('quality', 100, new Range(0, 100), 'Image quality. Pass an integer between 0 to 100. Defaults to 100.', true) + ->param('quality', -1, new Range(-1, 100), 'Image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.', true) ->inject('response') ->action(fn (string $code, int $width, int $height, int $quality, Response $response) => $avatarCallback('browsers', $code, $width, $height, $quality, $response)); @@ -204,17 +225,25 @@ ->label('scope', 'avatars.read') ->label('cache', true) ->label('cache.resource', 'avatar/flag') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'avatars') - ->label('sdk.method', 'getFlag') - ->label('sdk.methodType', 'location') - ->label('sdk.description', '/docs/references/avatars/get-flag.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_IMAGE_PNG) + ->label('sdk', new Method( + namespace: 'avatars', + group: null, + name: 'getFlag', + description: '/docs/references/avatars/get-flag.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + type: MethodType::LOCATION, + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::IMAGE_PNG + )) ->param('code', '', new WhiteList(\array_keys(Config::getParam('avatar-flags'))), 'Country Code. ISO Alpha-2 country code format.') ->param('width', 100, new Range(0, 2000), 'Image width. Pass an integer between 0 to 2000. Defaults to 100.', true) ->param('height', 100, new Range(0, 2000), 'Image height. Pass an integer between 0 to 2000. Defaults to 100.', true) - ->param('quality', 100, new Range(0, 100), 'Image quality. Pass an integer between 0 to 100. Defaults to 100.', true) + ->param('quality', -1, new Range(-1, 100), 'Image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.', true) ->inject('response') ->action(fn (string $code, int $width, int $height, int $quality, Response $response) => $avatarCallback('flags', $code, $width, $height, $quality, $response)); @@ -224,13 +253,21 @@ ->label('scope', 'avatars.read') ->label('cache', true) ->label('cache.resource', 'avatar/image') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'avatars') - ->label('sdk.method', 'getImage') - ->label('sdk.methodType', 'location') - ->label('sdk.description', '/docs/references/avatars/get-image.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_IMAGE) + ->label('sdk', new Method( + namespace: 'avatars', + group: null, + name: 'getImage', + description: '/docs/references/avatars/get-image.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + type: MethodType::LOCATION, + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::IMAGE + )) ->param('url', '', new URL(['http', 'https']), 'Image URL which you want to crop.') ->param('width', 400, new Range(0, 2000), 'Resize preview image width, Pass an integer between 0 to 2000. Defaults to 400.', true) ->param('height', 400, new Range(0, 2000), 'Resize preview image height, Pass an integer between 0 to 2000. Defaults to 400.', true) @@ -275,7 +312,7 @@ $data = $image->output($output, $quality); $response - ->addHeader('Expires', \date('D, d M Y H:i:s', \time() + 60 * 60 * 24 * 30) . ' GMT') + ->addHeader('Cache-Control', 'private, max-age=2592000') // 30 days ->setContentType('image/png') ->file($data); unset($image); @@ -287,13 +324,21 @@ ->label('scope', 'avatars.read') ->label('cache', true) ->label('cache.resource', 'avatar/favicon') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'avatars') - ->label('sdk.method', 'getFavicon') - ->label('sdk.methodType', 'location') - ->label('sdk.description', '/docs/references/avatars/get-favicon.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_IMAGE) + ->label('sdk', new Method( + namespace: 'avatars', + group: null, + name: 'getFavicon', + description: '/docs/references/avatars/get-favicon.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + type: MethodType::LOCATION, + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::IMAGE + )) ->param('url', '', new URL(['http', 'https']), 'Website URL which you want to fetch the favicon from.') ->inject('response') ->action(function (string $url, Response $response) { @@ -409,7 +454,7 @@ throw new Exception(Exception::AVATAR_ICON_NOT_FOUND, 'Favicon not found'); } $response - ->addHeader('Expires', \date('D, d M Y H:i:s', \time() + 60 * 60 * 24 * 30) . ' GMT') + ->addHeader('Cache-Control', 'private, max-age=2592000') // 30 days ->setContentType('image/x-icon') ->file($data); } @@ -420,7 +465,7 @@ $data = $image->output($output, $quality); $response - ->addHeader('Expires', \date('D, d M Y H:i:s', \time() + 60 * 60 * 24 * 30) . ' GMT') + ->addHeader('Cache-Control', 'private, max-age=2592000') // 30 days ->setContentType('image/png') ->file($data); unset($image); @@ -430,13 +475,21 @@ ->desc('Get QR code') ->groups(['api', 'avatars']) ->label('scope', 'avatars.read') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'avatars') - ->label('sdk.method', 'getQR') - ->label('sdk.methodType', 'location') - ->label('sdk.description', '/docs/references/avatars/get-qr.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_IMAGE_PNG) + ->label('sdk', new Method( + namespace: 'avatars', + group: null, + name: 'getQR', + description: '/docs/references/avatars/get-qr.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + type: MethodType::LOCATION, + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::IMAGE_PNG + )) ->param('text', '', new Text(512), 'Plain text to be converted to QR code image.') ->param('size', 400, new Range(1, 1000), 'QR code size. Pass an integer between 1 to 1000. Defaults to 400.', true) ->param('margin', 1, new Range(0, 10), 'Margin from edge. Pass an integer between 0 to 10. Defaults to 1.', true) @@ -461,7 +514,7 @@ $image->crop((int) $size, (int) $size); $response - ->addHeader('Expires', \date('D, d M Y H:i:s', \time() + (60 * 60 * 24 * 45)) . ' GMT') // 45 days cache + ->addHeader('Cache-Control', 'private, max-age=3888000') // 45 days ->setContentType('image/png') ->send($image->output('png', 9)); }); @@ -471,13 +524,21 @@ ->groups(['api', 'avatars']) ->label('scope', 'avatars.read') ->label('cache.resource', 'avatar/initials') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'avatars') - ->label('sdk.method', 'getInitials') - ->label('sdk.methodType', 'location') - ->label('sdk.description', '/docs/references/avatars/get-initials.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_IMAGE_PNG) + ->label('sdk', new Method( + namespace: 'avatars', + group: null, + name: 'getInitials', + description: '/docs/references/avatars/get-initials.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + type: MethodType::LOCATION, + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::IMAGE_PNG + )) ->param('name', '', new Text(128), 'Full Name. When empty, current user name or email will be used. Max length: 128 chars.', true) ->param('width', 500, new Range(0, 2000), 'Image width. Pass an integer between 0 to 2000. Defaults to 100.', true) ->param('height', 500, new Range(0, 2000), 'Image height. Pass an integer between 0 to 2000. Defaults to 100.', true) @@ -544,13 +605,13 @@ $image->compositeImage($punch, Imagick::COMPOSITE_COPYOPACITY, 0, 0); $response - ->addHeader('Expires', \date('D, d M Y H:i:s', \time() + (60 * 60 * 24 * 45)) . ' GMT') // 45 days cache + ->addHeader('Cache-Control', 'private, max-age=3888000') // 45 days ->setContentType('image/png') ->file($image->getImageBlob()); }); App::get('/v1/cards/cloud') - ->desc('Get Front Of Cloud Card') + ->desc('Get front Of Cloud Card') ->groups(['api', 'avatars']) ->label('scope', 'avatars.read') ->label('cache', true) @@ -565,14 +626,14 @@ ->inject('user') ->inject('project') ->inject('dbForProject') - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('response') ->inject('heroes') ->inject('contributors') ->inject('employees') ->inject('logger') - ->action(function (string $userId, string $mock, int $width, int $height, Document $user, Document $project, Database $dbForProject, Database $dbForConsole, Response $response, array $heroes, array $contributors, array $employees, ?Logger $logger) use ($getUserGitHub) { - $user = Authorization::skip(fn () => $dbForConsole->getDocument('users', $userId)); + ->action(function (string $userId, string $mock, int $width, int $height, Document $user, Document $project, Database $dbForProject, Database $dbForPlatform, Response $response, array $heroes, array $contributors, array $employees, ?Logger $logger) use ($getUserGitHub) { + $user = Authorization::skip(fn () => $dbForPlatform->getDocument('users', $userId)); if ($user->isEmpty() && empty($mock)) { throw new Exception(Exception::USER_NOT_FOUND); @@ -583,7 +644,7 @@ $email = $user->getAttribute('email', ''); $createdAt = new \DateTime($user->getCreatedAt()); - $gitHub = $getUserGitHub($user->getId(), $project, $dbForProject, $dbForConsole, $logger); + $gitHub = $getUserGitHub($user->getId(), $project, $dbForProject, $dbForPlatform, $logger); $githubName = $gitHub['name'] ?? ''; $githubId = $gitHub['id'] ?? ''; @@ -751,13 +812,13 @@ } $response - ->addHeader('Expires', \date('D, d M Y H:i:s', \time() + (60 * 60 * 24 * 45)) . ' GMT') // 45 days cache + ->addHeader('Cache-Control', 'private, max-age=3888000') // 45 days ->setContentType('image/png') ->file($baseImage->getImageBlob()); }); App::get('/v1/cards/cloud-back') - ->desc('Get Back Of Cloud Card') + ->desc('Get back Of Cloud Card') ->groups(['api', 'avatars']) ->label('scope', 'avatars.read') ->label('cache', true) @@ -772,14 +833,14 @@ ->inject('user') ->inject('project') ->inject('dbForProject') - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('response') ->inject('heroes') ->inject('contributors') ->inject('employees') ->inject('logger') - ->action(function (string $userId, string $mock, int $width, int $height, Document $user, Document $project, Database $dbForProject, Database $dbForConsole, Response $response, array $heroes, array $contributors, array $employees, ?Logger $logger) use ($getUserGitHub) { - $user = Authorization::skip(fn () => $dbForConsole->getDocument('users', $userId)); + ->action(function (string $userId, string $mock, int $width, int $height, Document $user, Document $project, Database $dbForProject, Database $dbForPlatform, Response $response, array $heroes, array $contributors, array $employees, ?Logger $logger) use ($getUserGitHub) { + $user = Authorization::skip(fn () => $dbForPlatform->getDocument('users', $userId)); if ($user->isEmpty() && empty($mock)) { throw new Exception(Exception::USER_NOT_FOUND); @@ -789,7 +850,7 @@ $userId = $user->getId(); $email = $user->getAttribute('email', ''); - $gitHub = $getUserGitHub($user->getId(), $project, $dbForProject, $dbForConsole, $logger); + $gitHub = $getUserGitHub($user->getId(), $project, $dbForProject, $dbForPlatform, $logger); $githubId = $gitHub['id'] ?? ''; $isHero = \array_key_exists($email, $heroes); @@ -829,13 +890,13 @@ } $response - ->addHeader('Expires', \date('D, d M Y H:i:s', \time() + (60 * 60 * 24 * 45)) . ' GMT') // 45 days cache + ->addHeader('Cache-Control', 'private, max-age=3888000') // 45 days ->setContentType('image/png') ->file($baseImage->getImageBlob()); }); App::get('/v1/cards/cloud-og') - ->desc('Get OG Image From Cloud Card') + ->desc('Get OG image From Cloud Card') ->groups(['api', 'avatars']) ->label('scope', 'avatars.read') ->label('cache', true) @@ -850,14 +911,14 @@ ->inject('user') ->inject('project') ->inject('dbForProject') - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('response') ->inject('heroes') ->inject('contributors') ->inject('employees') ->inject('logger') - ->action(function (string $userId, string $mock, int $width, int $height, Document $user, Document $project, Database $dbForProject, Database $dbForConsole, Response $response, array $heroes, array $contributors, array $employees, ?Logger $logger) use ($getUserGitHub) { - $user = Authorization::skip(fn () => $dbForConsole->getDocument('users', $userId)); + ->action(function (string $userId, string $mock, int $width, int $height, Document $user, Document $project, Database $dbForProject, Database $dbForPlatform, Response $response, array $heroes, array $contributors, array $employees, ?Logger $logger) use ($getUserGitHub) { + $user = Authorization::skip(fn () => $dbForPlatform->getDocument('users', $userId)); if ($user->isEmpty() && empty($mock)) { throw new Exception(Exception::USER_NOT_FOUND); @@ -872,7 +933,7 @@ $email = $user->getAttribute('email', ''); $createdAt = new \DateTime($user->getCreatedAt()); - $gitHub = $getUserGitHub($user->getId(), $project, $dbForProject, $dbForConsole, $logger); + $gitHub = $getUserGitHub($user->getId(), $project, $dbForProject, $dbForPlatform, $logger); $githubName = $gitHub['name'] ?? ''; $githubId = $gitHub['id'] ?? ''; @@ -1219,7 +1280,7 @@ } $response - ->addHeader('Expires', \date('D, d M Y H:i:s', \time() + (60 * 60 * 24 * 45)) . ' GMT') // 45 days cache + ->addHeader('Cache-Control', 'private, max-age=3888000') // 45 days ->setContentType('image/png') ->file($baseImage->getImageBlob()); }); diff --git a/app/controllers/api/console.php b/app/controllers/api/console.php index 82d7c75592e..3a48d3978fb 100644 --- a/app/controllers/api/console.php +++ b/app/controllers/api/console.php @@ -1,6 +1,10 @@ <?php use Appwrite\Extend\Exception; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Response; use Utopia\App; use Utopia\Database\Document; @@ -21,13 +25,20 @@ ->desc('Get variables') ->groups(['api', 'projects']) ->label('scope', 'projects.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'console') - ->label('sdk.method', 'variables') - ->label('sdk.description', '/docs/references/console/variables.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_CONSOLE_VARIABLES) + ->label('sdk', new Method( + namespace: 'console', + group: 'console', + name: 'variables', + description: '/docs/references/console/variables.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_CONSOLE_VARIABLES, + ) + ], + contentType: ContentType::JSON + )) ->inject('response') ->action(function (Response $response) { $isDomainEnabled = !empty(System::getEnv('_APP_DOMAIN', '')) @@ -57,21 +68,29 @@ }); App::post('/v1/console/assistant') - ->desc('Ask Query') + ->desc('Create assistant query') ->groups(['api', 'assistant']) ->label('scope', 'assistant.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'assistant') - ->label('sdk.method', 'chat') - ->label('sdk.description', '/docs/references/assistant/chat.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_TEXT) + ->label('sdk', new Method( + namespace: 'assistant', + group: 'console', + name: 'chat', + description: '/docs/references/assistant/chat.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::TEXT + )) ->label('abuse-limit', 15) ->label('abuse-key', 'userId:{userId}') ->param('prompt', '', new Text(2000), 'Prompt. A string containing questions asked to the AI assistant.') ->inject('response') ->action(function (string $prompt, Response $response) { - $ch = curl_init('http://appwrite-assistant:3003/'); + $ch = curl_init('http://appwrite-assistant:3003/v1/models/assistant/prompt'); $responseHeaders = []; $query = json_encode(['prompt' => $prompt]); $headers = ['accept: text/event-stream']; diff --git a/app/controllers/api/databases.php b/app/controllers/api/databases.php index a9bb58df4b8..68d8891067e 100644 --- a/app/controllers/api/databases.php +++ b/app/controllers/api/databases.php @@ -3,10 +3,15 @@ use Appwrite\Auth\Auth; use Appwrite\Detector\Detector; use Appwrite\Event\Database as EventDatabase; -use Appwrite\Event\Delete; use Appwrite\Event\Event; +use Appwrite\Event\StatsUsage; use Appwrite\Extend\Exception; use Appwrite\Network\Validator\Email; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Parameter; +use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Database\Validator\CustomId; use Appwrite\Utopia\Database\Validator\Queries\Attributes; use Appwrite\Utopia\Database\Validator\Queries\Collections; @@ -19,13 +24,17 @@ use Utopia\Audit\Audit; use Utopia\Config\Config; use Utopia\Database\Database; +use Utopia\Database\DateTime; use Utopia\Database\Document; -use Utopia\Database\Exception as DatabaseException; use Utopia\Database\Exception\Authorization as AuthorizationException; use Utopia\Database\Exception\Conflict as ConflictException; use Utopia\Database\Exception\Duplicate as DuplicateException; +use Utopia\Database\Exception\Index as IndexException; use Utopia\Database\Exception\Limit as LimitException; +use Utopia\Database\Exception\NotFound as NotFoundException; +use Utopia\Database\Exception\Order as OrderException; use Utopia\Database\Exception\Query as QueryException; +use Utopia\Database\Exception\Relationship as RelationshipException; use Utopia\Database\Exception\Restricted as RestrictedException; use Utopia\Database\Exception\Structure as StructureException; use Utopia\Database\Exception\Truncate as TruncateException; @@ -36,9 +45,11 @@ use Utopia\Database\Validator\Authorization; use Utopia\Database\Validator\Datetime as DatetimeValidator; use Utopia\Database\Validator\Index as IndexValidator; +use Utopia\Database\Validator\IndexDependency as IndexDependencyValidator; use Utopia\Database\Validator\Key; use Utopia\Database\Validator\Permissions; use Utopia\Database\Validator\Queries; +use Utopia\Database\Validator\Query\Cursor; use Utopia\Database\Validator\Query\Limit; use Utopia\Database\Validator\Query\Offset; use Utopia\Database\Validator\Structure; @@ -90,13 +101,13 @@ function createAttribute(string $databaseId, string $collectionId, Document $att $default = $attribute->getAttribute('default'); $options = $attribute->getAttribute('options', []); - $db = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); + $database = $dbForProject->getDocument('databases', $databaseId); - if ($db->isEmpty()) { + if ($database->isEmpty()) { throw new Exception(Exception::DATABASE_NOT_FOUND); } - $collection = $dbForProject->getDocument('database_' . $db->getInternalId(), $collectionId); + $collection = $dbForProject->getDocument('database_' . $database->getInternalId(), $collectionId); if ($collection->isEmpty()) { throw new Exception(Exception::COLLECTION_NOT_FOUND); @@ -119,7 +130,7 @@ function createAttribute(string $databaseId, string $collectionId, Document $att if ($type === Database::VAR_RELATIONSHIP) { $options['side'] = Database::RELATION_SIDE_PARENT; - $relatedCollection = $dbForProject->getDocument('database_' . $db->getInternalId(), $options['relatedCollection'] ?? ''); + $relatedCollection = $dbForProject->getDocument('database_' . $database->getInternalId(), $options['relatedCollection'] ?? ''); if ($relatedCollection->isEmpty()) { throw new Exception(Exception::COLLECTION_NOT_FOUND, 'The related collection was not found.'); } @@ -127,10 +138,10 @@ function createAttribute(string $databaseId, string $collectionId, Document $att try { $attribute = new Document([ - '$id' => ID::custom($db->getInternalId() . '_' . $collection->getInternalId() . '_' . $key), + '$id' => ID::custom($database->getInternalId() . '_' . $collection->getInternalId() . '_' . $key), 'key' => $key, - 'databaseInternalId' => $db->getInternalId(), - 'databaseId' => $db->getId(), + 'databaseInternalId' => $database->getInternalId(), + 'databaseId' => $database->getId(), 'collectionInternalId' => $collection->getInternalId(), 'collectionId' => $collectionId, 'type' => $type, @@ -151,15 +162,15 @@ function createAttribute(string $databaseId, string $collectionId, Document $att } catch (DuplicateException) { throw new Exception(Exception::ATTRIBUTE_ALREADY_EXISTS); } catch (LimitException) { - throw new Exception(Exception::ATTRIBUTE_LIMIT_EXCEEDED, 'Attribute limit exceeded'); + throw new Exception(Exception::ATTRIBUTE_LIMIT_EXCEEDED); } catch (\Throwable $e) { - $dbForProject->purgeCachedDocument('database_' . $db->getInternalId(), $collectionId); - $dbForProject->purgeCachedCollection('database_' . $db->getInternalId() . '_collection_' . $collection->getInternalId()); + $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $collectionId); + $dbForProject->purgeCachedCollection('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId()); throw $e; } - $dbForProject->purgeCachedDocument('database_' . $db->getInternalId(), $collectionId); - $dbForProject->purgeCachedCollection('database_' . $db->getInternalId() . '_collection_' . $collection->getInternalId()); + $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $collectionId); + $dbForProject->purgeCachedCollection('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId()); if ($type === Database::VAR_RELATIONSHIP && $options['twoWay']) { $twoWayKey = $options['twoWayKey']; @@ -168,53 +179,58 @@ function createAttribute(string $databaseId, string $collectionId, Document $att $options['side'] = Database::RELATION_SIDE_CHILD; try { - $twoWayAttribute = new Document([ - '$id' => ID::custom($db->getInternalId() . '_' . $relatedCollection->getInternalId() . '_' . $twoWayKey), - 'key' => $twoWayKey, - 'databaseInternalId' => $db->getInternalId(), - 'databaseId' => $db->getId(), - 'collectionInternalId' => $relatedCollection->getInternalId(), - 'collectionId' => $relatedCollection->getId(), - 'type' => $type, - 'status' => 'processing', // processing, available, failed, deleting, stuck - 'size' => $size, - 'required' => $required, - 'signed' => $signed, - 'default' => $default, - 'array' => $array, - 'format' => $format, - 'formatOptions' => $formatOptions, - 'filters' => $filters, - 'options' => $options, - ]); + try { + $twoWayAttribute = new Document([ + '$id' => ID::custom($database->getInternalId() . '_' . $relatedCollection->getInternalId() . '_' . $twoWayKey), + 'key' => $twoWayKey, + 'databaseInternalId' => $database->getInternalId(), + 'databaseId' => $database->getId(), + 'collectionInternalId' => $relatedCollection->getInternalId(), + 'collectionId' => $relatedCollection->getId(), + 'type' => $type, + 'status' => 'processing', // processing, available, failed, deleting, stuck + 'size' => $size, + 'required' => $required, + 'signed' => $signed, + 'default' => $default, + 'array' => $array, + 'format' => $format, + 'formatOptions' => $formatOptions, + 'filters' => $filters, + 'options' => $options, + ]); - $dbForProject->checkAttribute($relatedCollection, $twoWayAttribute); - $dbForProject->createDocument('attributes', $twoWayAttribute); - } catch (DuplicateException) { - $dbForProject->deleteDocument('attributes', $attribute->getId()); - throw new Exception(Exception::ATTRIBUTE_ALREADY_EXISTS); - } catch (LimitException) { - $dbForProject->deleteDocument('attributes', $attribute->getId()); - throw new Exception(Exception::ATTRIBUTE_LIMIT_EXCEEDED, 'Attribute limit exceeded'); + $dbForProject->checkAttribute($relatedCollection, $twoWayAttribute); + $dbForProject->createDocument('attributes', $twoWayAttribute); + } catch (DuplicateException) { + throw new Exception(Exception::DOCUMENT_ALREADY_EXISTS); + } catch (LimitException) { + throw new Exception(Exception::ATTRIBUTE_LIMIT_EXCEEDED); + } catch (StructureException $e) { + throw new Exception(Exception::DOCUMENT_INVALID_STRUCTURE, $e->getMessage()); + } } catch (\Throwable $e) { - $dbForProject->purgeCachedDocument('database_' . $db->getInternalId(), $relatedCollection->getId()); - $dbForProject->purgeCachedCollection('database_' . $db->getInternalId() . '_collection_' . $relatedCollection->getInternalId()); + $dbForProject->deleteDocument('attributes', $attribute->getId()); throw $e; + } finally { + $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $collectionId); + $dbForProject->purgeCachedCollection('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId()); } - $dbForProject->purgeCachedDocument('database_' . $db->getInternalId(), $relatedCollection->getId()); - $dbForProject->purgeCachedCollection('database_' . $db->getInternalId() . '_collection_' . $relatedCollection->getInternalId()); + // If operation succeeded, purge the cache for the related collection too + $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $relatedCollection->getId()); + $dbForProject->purgeCachedCollection('database_' . $database->getInternalId() . '_collection_' . $relatedCollection->getInternalId()); } $queueForDatabase ->setType(DATABASE_TYPE_CREATE_ATTRIBUTE) - ->setDatabase($db) + ->setDatabase($database) ->setCollection($collection) ->setDocument($attribute); $queueForEvents ->setContext('collection', $collection) - ->setContext('database', $db) + ->setContext('database', $database) ->setParam('databaseId', $databaseId) ->setParam('collectionId', $collection->getId()) ->setParam('attributeId', $attribute->getId()); @@ -235,26 +251,23 @@ function updateAttribute( string $filter = null, string|bool|int|float $default = null, bool $required = null, - int|float $min = null, - int|float $max = null, + int|float|null $min = null, + int|float|null $max = null, array $elements = null, array $options = [], string $newKey = null, ): Document { - $db = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); - - if ($db->isEmpty()) { + $database = $dbForProject->getDocument('databases', $databaseId); + if ($database->isEmpty()) { throw new Exception(Exception::DATABASE_NOT_FOUND); } - $collection = $dbForProject->getDocument('database_' . $db->getInternalId(), $collectionId); - + $collection = $dbForProject->getDocument('database_' . $database->getInternalId(), $collectionId); if ($collection->isEmpty()) { throw new Exception(Exception::COLLECTION_NOT_FOUND); } - $attribute = $dbForProject->getDocument('attributes', $db->getInternalId() . '_' . $collection->getInternalId() . '_' . $key); - + $attribute = $dbForProject->getDocument('attributes', $database->getInternalId() . '_' . $collection->getInternalId() . '_' . $key); if ($attribute->isEmpty()) { throw new Exception(Exception::ATTRIBUTE_NOT_FOUND); } @@ -279,7 +292,7 @@ function updateAttribute( throw new Exception(Exception::ATTRIBUTE_DEFAULT_UNSUPPORTED, 'Cannot set default value for array attributes'); } - $collectionId = 'database_' . $db->getInternalId() . '_collection_' . $collection->getInternalId(); + $collectionId = 'database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(); $attribute ->setAttribute('default', $default) @@ -289,14 +302,11 @@ function updateAttribute( $attribute->setAttribute('size', $size); } - $formatOptions = $attribute->getAttribute('formatOptions'); - switch ($attribute->getAttribute('format')) { case APP_DATABASE_ATTRIBUTE_INT_RANGE: case APP_DATABASE_ATTRIBUTE_FLOAT_RANGE: - if ($min === $formatOptions['min'] && $max === $formatOptions['max']) { - break; - } + $min ??= $attribute->getAttribute('formatOptions')['min']; + $max ??= $attribute->getAttribute('formatOptions')['max']; if ($min > $max) { throw new Exception(Exception::ATTRIBUTE_VALUE_INVALID, 'Minimum value must be lesser than maximum value'); @@ -350,18 +360,26 @@ function updateAttribute( if ($type === Database::VAR_RELATIONSHIP) { $primaryDocumentOptions = \array_merge($attribute->getAttribute('options', []), $options); $attribute->setAttribute('options', $primaryDocumentOptions); - - $dbForProject->updateRelationship( - collection: $collectionId, - id: $key, - newKey: $newKey, - onDelete: $primaryDocumentOptions['onDelete'], - ); + try { + $dbForProject->updateRelationship( + collection: $collectionId, + id: $key, + newKey: $newKey, + onDelete: $primaryDocumentOptions['onDelete'], + ); + } catch (IndexException) { + throw new Exception(Exception::INDEX_INVALID); + } catch (LimitException) { + throw new Exception(Exception::ATTRIBUTE_LIMIT_EXCEEDED); + } catch (RelationshipException $e) { + throw new Exception(Exception::RELATIONSHIP_VALUE_INVALID, $e->getMessage()); + } catch (StructureException $e) { + throw new Exception(Exception::DOCUMENT_INVALID_STRUCTURE, $e->getMessage()); + } if ($primaryDocumentOptions['twoWay']) { - $relatedCollection = $dbForProject->getDocument('database_' . $db->getInternalId(), $primaryDocumentOptions['relatedCollection']); - - $relatedAttribute = $dbForProject->getDocument('attributes', $db->getInternalId() . '_' . $relatedCollection->getInternalId() . '_' . $primaryDocumentOptions['twoWayKey']); + $relatedCollection = $dbForProject->getDocument('database_' . $database->getInternalId(), $primaryDocumentOptions['relatedCollection']); + $relatedAttribute = $dbForProject->getDocument('attributes', $database->getInternalId() . '_' . $relatedCollection->getInternalId() . '_' . $primaryDocumentOptions['twoWayKey']); if (!empty($newKey) && $newKey !== $key) { $options['twoWayKey'] = $newKey; @@ -369,9 +387,10 @@ function updateAttribute( $relatedOptions = \array_merge($relatedAttribute->getAttribute('options'), $options); $relatedAttribute->setAttribute('options', $relatedOptions); - $dbForProject->updateDocument('attributes', $db->getInternalId() . '_' . $relatedCollection->getInternalId() . '_' . $primaryDocumentOptions['twoWayKey'], $relatedAttribute); - $dbForProject->purgeCachedDocument('database_' . $db->getInternalId(), $relatedCollection->getId()); + + $dbForProject->updateDocument('attributes', $database->getInternalId() . '_' . $relatedCollection->getInternalId() . '_' . $primaryDocumentOptions['twoWayKey'], $relatedAttribute); + $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $relatedCollection->getId()); } } else { try { @@ -381,38 +400,58 @@ function updateAttribute( size: $size, required: $required, default: $default, - formatOptions: $options ?? null, + formatOptions: $options, newKey: $newKey ?? null ); + } catch (DuplicateException) { + throw new Exception(Exception::DOCUMENT_ALREADY_EXISTS); + } catch (IndexException $e) { + throw new Exception(Exception::INDEX_INVALID, $e->getMessage()); + } catch (LimitException) { + throw new Exception(Exception::ATTRIBUTE_LIMIT_EXCEEDED); } catch (TruncateException) { throw new Exception(Exception::ATTRIBUTE_INVALID_RESIZE); } } if (!empty($newKey) && $key !== $newKey) { - // Delete attribute and recreate since we can't modify IDs - $original = clone $attribute; - - $dbForProject->deleteDocument('attributes', $attribute->getId()); + $originalUid = $attribute->getId(); $attribute - ->setAttribute('$id', ID::custom($db->getInternalId() . '_' . $collection->getInternalId() . '_' . $newKey)) + ->setAttribute('$id', ID::custom($database->getInternalId() . '_' . $collection->getInternalId() . '_' . $newKey)) ->setAttribute('key', $newKey); try { - $attribute = $dbForProject->createDocument('attributes', $attribute); - } catch (DatabaseException|PDOException) { - $attribute = $dbForProject->createDocument('attributes', $original); + $dbForProject->updateDocument('attributes', $originalUid, $attribute); + } catch (DuplicateException) { + throw new Exception(Exception::DOCUMENT_ALREADY_EXISTS); + } + + /** + * @var Document $index + */ + foreach ($collection->getAttribute('indexes') as $index) { + /** + * @var string[] $attributes + */ + $attributes = $index->getAttribute('attributes', []); + $found = \array_search($key, $attributes); + + if ($found !== false) { + $attributes[$found] = $newKey; + $index->setAttribute('attributes', $attributes); + $dbForProject->updateDocument('indexes', $index->getId(), $index); + } } } else { - $attribute = $dbForProject->updateDocument('attributes', $db->getInternalId() . '_' . $collection->getInternalId() . '_' . $key, $attribute); + $attribute = $dbForProject->updateDocument('attributes', $database->getInternalId() . '_' . $collection->getInternalId() . '_' . $key, $attribute); } - $dbForProject->purgeCachedDocument('database_' . $db->getInternalId(), $collection->getId()); + $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $collection->getId()); $queueForEvents ->setContext('collection', $collection) - ->setContext('database', $db) + ->setContext('database', $database) ->setParam('databaseId', $databaseId) ->setParam('collectionId', $collection->getId()) ->setParam('attributeId', $attribute->getId()); @@ -437,15 +476,23 @@ function updateAttribute( ->groups(['api', 'database']) ->label('event', 'databases.[databaseId].create') ->label('scope', 'databases.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('audits.event', 'database.create') ->label('audits.resource', 'database/{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'create') - ->label('sdk.description', '/docs/references/databases/create.md') // create this file later - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_DATABASE) // Model for database needs to be created + ->label('sdk', new Method( + namespace: 'databases', + group: 'databases', + name: 'create', + description: '/docs/references/databases/create.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_DATABASE, + ) + ], + contentType: ContentType::JSON + )) ->param('databaseId', '', new CustomId(), 'Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') ->param('name', '', new Text(128), 'Database name. Max length: 128 chars.') ->param('enabled', true, new Boolean(), 'Is the database enabled? When set to \'disabled\', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled.', true) @@ -454,7 +501,9 @@ function updateAttribute( ->inject('queueForEvents') ->action(function (string $databaseId, string $name, bool $enabled, Response $response, Database $dbForProject, Event $queueForEvents) { - $databaseId = $databaseId == 'unique()' ? ID::unique() : $databaseId; + $databaseId = $databaseId === 'unique()' + ? ID::unique() + : $databaseId; try { $dbForProject->createDocument('databases', new Document([ @@ -463,42 +512,37 @@ function updateAttribute( 'enabled' => $enabled, 'search' => implode(' ', [$databaseId, $name]), ])); - $database = $dbForProject->getDocument('databases', $databaseId); + } catch (DuplicateException) { + throw new Exception(Exception::DATABASE_ALREADY_EXISTS); + } catch (StructureException $e) { + throw new Exception(Exception::DOCUMENT_INVALID_STRUCTURE, $e->getMessage()); + } - $collections = (Config::getParam('collections', [])['databases'] ?? [])['collections'] ?? []; - if (empty($collections)) { - throw new Exception(Exception::GENERAL_SERVER_ERROR, 'The "collections" collection is not configured.'); - } + $database = $dbForProject->getDocument('databases', $databaseId); - $attributes = []; - $indexes = []; - - foreach ($collections['attributes'] as $attribute) { - $attributes[] = new Document([ - '$id' => $attribute['$id'], - 'type' => $attribute['type'], - 'size' => $attribute['size'], - 'required' => $attribute['required'], - 'signed' => $attribute['signed'], - 'array' => $attribute['array'], - 'filters' => $attribute['filters'], - 'default' => $attribute['default'] ?? null, - 'format' => $attribute['format'] ?? '' - ]); - } + $collections = (Config::getParam('collections', [])['databases'] ?? [])['collections'] ?? []; + if (empty($collections)) { + throw new Exception(Exception::GENERAL_SERVER_ERROR, 'The "collections" collection is not configured.'); + } - foreach ($collections['indexes'] as $index) { - $indexes[] = new Document([ - '$id' => $index['$id'], - 'type' => $index['type'], - 'attributes' => $index['attributes'], - 'lengths' => $index['lengths'], - 'orders' => $index['orders'], - ]); - } + $attributes = []; + foreach ($collections['attributes'] as $attribute) { + $attributes[] = new Document($attribute); + } + + $indexes = []; + foreach ($collections['indexes'] as $index) { + $indexes[] = new Document($index); + } + + try { $dbForProject->createCollection('database_' . $database->getInternalId(), $attributes, $indexes); } catch (DuplicateException) { throw new Exception(Exception::DATABASE_ALREADY_EXISTS); + } catch (IndexException) { + throw new Exception(Exception::INDEX_INVALID); + } catch (LimitException) { + throw new Exception(Exception::COLLECTION_LIMIT_EXCEEDED); } $queueForEvents->setParam('databaseId', $database->getId()); @@ -512,24 +556,27 @@ function updateAttribute( ->desc('List databases') ->groups(['api', 'database']) ->label('scope', 'databases.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'list') - ->label('sdk.description', '/docs/references/databases/list.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_DATABASE_LIST) + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('sdk', new Method( + namespace: 'databases', + group: 'databases', + name: 'list', + description: '/docs/references/databases/list.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_DATABASE_LIST, + ) + ], + contentType: ContentType::JSON + )) ->param('queries', [], new Databases(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Databases::ALLOWED_ATTRIBUTES), true) ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) ->inject('response') ->inject('dbForProject') ->action(function (array $queries, string $search, Response $response, Database $dbForProject) { - - try { - $queries = Query::parseQueries($queries); - } catch (QueryException $e) { - throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); - } + $queries = Query::parseQueries($queries); if (!empty($search)) { $queries[] = Query::search('search', $search); @@ -541,11 +588,19 @@ function updateAttribute( $cursor = \array_filter($queries, function ($query) { return \in_array($query->getMethod(), [Query::TYPE_CURSOR_AFTER, Query::TYPE_CURSOR_BEFORE]); }); + $cursor = reset($cursor); if ($cursor) { + /** @var Query $cursor */ + + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + $databaseId = $cursor->getValue(); - $cursorDocument = $dbForProject->getDocument('databases', $databaseId); + $cursorDocument = $dbForProject->getDocument('databases', $databaseId); if ($cursorDocument->isEmpty()) { throw new Exception(Exception::GENERAL_CURSOR_NOT_FOUND, "Database '{$databaseId}' for the 'cursor' value not found."); } @@ -553,11 +608,18 @@ function updateAttribute( $cursor->setValue($cursorDocument); } - $filterQueries = Query::groupByType($queries)['filters']; + try { + $databases = $dbForProject->find('databases', $queries); + $total = $dbForProject->count('databases', $queries, APP_LIMIT_COUNT); + } catch (OrderException) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL); + } catch (QueryException) { + throw new Exception(Exception::GENERAL_QUERY_INVALID); + } $response->dynamic(new Document([ - 'databases' => $dbForProject->find('databases', $queries), - 'total' => $dbForProject->count('databases', $filterQueries, APP_LIMIT_COUNT), + 'databases' => $databases, + 'total' => $total, ]), Response::MODEL_DATABASE_LIST); }); @@ -565,20 +627,26 @@ function updateAttribute( ->desc('Get database') ->groups(['api', 'database']) ->label('scope', 'databases.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'get') - ->label('sdk.description', '/docs/references/databases/get.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_DATABASE) + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('sdk', new Method( + namespace: 'databases', + group: 'databases', + name: 'get', + description: '/docs/references/databases/get.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_DATABASE, + ) + ], + contentType: ContentType::JSON + )) ->param('databaseId', '', new UID(), 'Database ID.') ->inject('response') ->inject('dbForProject') ->action(function (string $databaseId, Response $response, Database $dbForProject) { - $database = $dbForProject->getDocument('databases', $databaseId); - if ($database->isEmpty()) { throw new Exception(Exception::DATABASE_NOT_FOUND); } @@ -590,13 +658,21 @@ function updateAttribute( ->desc('List database logs') ->groups(['api', 'database']) ->label('scope', 'databases.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'listLogs') - ->label('sdk.description', '/docs/references/databases/get-logs.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_LOG_LIST) + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('sdk', new Method( + namespace: 'databases', + group: 'logs', + name: 'listLogs', + description: '/docs/references/databases/get-logs.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_LOG_LIST, + ) + ], + contentType: ContentType::JSON + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('queries', [], new Queries([new Limit(), new Offset()]), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset', true) ->inject('response') @@ -604,9 +680,7 @@ function updateAttribute( ->inject('locale') ->inject('geodb') ->action(function (string $databaseId, array $queries, Response $response, Database $dbForProject, Locale $locale, Reader $geodb) { - $database = $dbForProject->getDocument('databases', $databaseId); - if ($database->isEmpty()) { throw new Exception(Exception::DATABASE_NOT_FOUND); } @@ -617,13 +691,15 @@ function updateAttribute( throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); } - $grouped = Query::groupByType($queries); - $limit = $grouped['limit'] ?? APP_LIMIT_COUNT; - $offset = $grouped['offset'] ?? 0; + // Temp fix for logs + $queries[] = Query::or([ + Query::greaterThan('$createdAt', DateTime::format(new \DateTime('2025-02-26T01:30+00:00'))), + Query::lessThan('$createdAt', DateTime::format(new \DateTime('2025-02-13T00:00+00:00'))), + ]); $audit = new Audit($dbForProject); $resource = 'database/' . $databaseId; - $logs = $audit->getLogsByResource($resource, $limit, $offset); + $logs = $audit->getLogsByResource($resource, $queries); $output = []; @@ -671,7 +747,7 @@ function updateAttribute( } $response->dynamic(new Document([ - 'total' => $audit->countLogsByResource($resource), + 'total' => $audit->countLogsByResource($resource, $queries), 'logs' => $output, ]), Response::MODEL_LOG_LIST); }); @@ -681,16 +757,24 @@ function updateAttribute( ->desc('Update database') ->groups(['api', 'database', 'schema']) ->label('scope', 'databases.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].update') ->label('audits.event', 'database.update') ->label('audits.resource', 'database/{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'update') - ->label('sdk.description', '/docs/references/databases/update.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_DATABASE) + ->label('sdk', new Method( + namespace: 'databases', + group: 'databases', + name: 'update', + description: '/docs/references/databases/update.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_DATABASE, + ) + ], + contentType: ContentType::JSON + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('name', null, new Text(128), 'Database name. Max length: 128 chars.') ->param('enabled', true, new Boolean(), 'Is database enabled? When set to \'disabled\', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled.', true) @@ -698,17 +782,18 @@ function updateAttribute( ->inject('dbForProject') ->inject('queueForEvents') ->action(function (string $databaseId, string $name, bool $enabled, Response $response, Database $dbForProject, Event $queueForEvents) { - $database = $dbForProject->getDocument('databases', $databaseId); if ($database->isEmpty()) { throw new Exception(Exception::DATABASE_NOT_FOUND); } - $database = $dbForProject->updateDocument('databases', $databaseId, $database + $database ->setAttribute('name', $name) ->setAttribute('enabled', $enabled) - ->setAttribute('search', implode(' ', [$databaseId, $name]))); + ->setAttribute('search', implode(' ', [$databaseId, $name])); + + $database = $dbForProject->updateDocument('databases', $databaseId, $database); $queueForEvents->setParam('databaseId', $database->getId()); @@ -719,22 +804,30 @@ function updateAttribute( ->desc('Delete database') ->groups(['api', 'database', 'schema']) ->label('scope', 'databases.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].delete') ->label('audits.event', 'database.delete') ->label('audits.resource', 'database/{request.databaseId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'delete') - ->label('sdk.description', '/docs/references/databases/delete.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'databases', + group: 'databases', + name: 'delete', + description: '/docs/references/databases/delete.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('databaseId', '', new UID(), 'Database ID.') ->inject('response') ->inject('dbForProject') ->inject('queueForDatabase') ->inject('queueForEvents') ->action(function (string $databaseId, Response $response, Database $dbForProject, EventDatabase $queueForDatabase, Event $queueForEvents) { - $database = $dbForProject->getDocument('databases', $databaseId); if ($database->isEmpty()) { @@ -742,7 +835,7 @@ function updateAttribute( } if (!$dbForProject->deleteDocument('databases', $databaseId)) { - throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Failed to remove collection from DB'); + throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Failed to remove database from database'); } $dbForProject->purgeCachedDocument('databases', $database->getId()); @@ -764,15 +857,23 @@ function updateAttribute( ->groups(['api', 'database']) ->label('event', 'databases.[databaseId].collections.[collectionId].create') ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('audits.event', 'collection.create') ->label('audits.resource', 'database/{request.databaseId}/collection/{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'createCollection') - ->label('sdk.description', '/docs/references/databases/create-collection.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_COLLECTION) + ->label('sdk', new Method( + namespace: 'databases', + group: 'collections', + name: 'createCollection', + description: '/docs/references/databases/create-collection.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_COLLECTION, + ) + ], + contentType: ContentType::JSON + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new CustomId(), 'Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') ->param('name', '', new Text(128), 'Collection name. Max length: 128 chars.') @@ -784,34 +885,48 @@ function updateAttribute( ->inject('mode') ->inject('queueForEvents') ->action(function (string $databaseId, string $collectionId, string $name, ?array $permissions, bool $documentSecurity, bool $enabled, Response $response, Database $dbForProject, string $mode, Event $queueForEvents) { - - $database = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); + $database = $dbForProject->getDocument('databases', $databaseId); if ($database->isEmpty()) { throw new Exception(Exception::DATABASE_NOT_FOUND); } - $collectionId = $collectionId == 'unique()' ? ID::unique() : $collectionId; + $collectionId = $collectionId === 'unique()' + ? ID::unique() + : $collectionId; // Map aggregate permissions into the multiple permissions they represent. - $permissions = Permission::aggregate($permissions); + $permissions = Permission::aggregate($permissions) ?? []; try { - $dbForProject->createDocument('database_' . $database->getInternalId(), new Document([ + $collection = $dbForProject->createDocument('database_' . $database->getInternalId(), new Document([ '$id' => $collectionId, 'databaseInternalId' => $database->getInternalId(), 'databaseId' => $databaseId, - '$permissions' => $permissions ?? [], + '$permissions' => $permissions, 'documentSecurity' => $documentSecurity, 'enabled' => $enabled, 'name' => $name, 'search' => implode(' ', [$collectionId, $name]), ])); - $collection = $dbForProject->getDocument('database_' . $database->getInternalId(), $collectionId); + } catch (DuplicateException) { + throw new Exception(Exception::COLLECTION_ALREADY_EXISTS); + } catch (LimitException) { + throw new Exception(Exception::COLLECTION_LIMIT_EXCEEDED); + } catch (NotFoundException) { + throw new Exception(Exception::DATABASE_NOT_FOUND); + } - $dbForProject->createCollection('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), permissions: $permissions ?? [], documentSecurity: $documentSecurity); + try { + $dbForProject->createCollection( + id: 'database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), + permissions: $permissions, + documentSecurity: $documentSecurity + ); } catch (DuplicateException) { throw new Exception(Exception::COLLECTION_ALREADY_EXISTS); + } catch (IndexException) { + throw new Exception(Exception::INDEX_INVALID); } catch (LimitException) { throw new Exception(Exception::COLLECTION_LIMIT_EXCEEDED); } @@ -827,26 +942,32 @@ function updateAttribute( }); App::get('/v1/databases/:databaseId/collections') - ->alias('/v1/database/collections', ['databaseId' => 'default']) + ->alias('/v1/database/collections') ->desc('List collections') ->groups(['api', 'database']) ->label('scope', 'collections.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'listCollections') - ->label('sdk.description', '/docs/references/databases/list-collections.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_COLLECTION_LIST) + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('sdk', new Method( + namespace: 'databases', + group: 'collections', + name: 'listCollections', + description: '/docs/references/databases/list-collections.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_COLLECTION_LIST, + ) + ], + contentType: ContentType::JSON + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('queries', [], new Collections(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Collections::ALLOWED_ATTRIBUTES), true) ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) ->inject('response') ->inject('dbForProject') - ->inject('mode') - ->action(function (string $databaseId, array $queries, string $search, Response $response, Database $dbForProject, string $mode) { - - $database = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); + ->action(function (string $databaseId, array $queries, string $search, Response $response, Database $dbForProject) { + $database = $dbForProject->getDocument('databases', $databaseId); if ($database->isEmpty()) { throw new Exception(Exception::DATABASE_NOT_FOUND); @@ -871,7 +992,14 @@ function updateAttribute( $cursor = reset($cursor); if ($cursor) { /** @var Query $cursor */ + + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + $collectionId = $cursor->getValue(); + $cursorDocument = $dbForProject->getDocument('database_' . $database->getInternalId(), $collectionId); if ($cursorDocument->isEmpty()) { @@ -881,34 +1009,49 @@ function updateAttribute( $cursor->setValue($cursorDocument); } - $filterQueries = Query::groupByType($queries)['filters']; + $collectionId = 'database_' . $database->getInternalId(); + + try { + $collections = $dbForProject->find($collectionId, $queries); + $total = $dbForProject->count($collectionId, $queries, APP_LIMIT_COUNT); + } catch (OrderException) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL); + } catch (QueryException) { + throw new Exception(Exception::GENERAL_QUERY_INVALID); + } $response->dynamic(new Document([ - 'collections' => $dbForProject->find('database_' . $database->getInternalId(), $queries), - 'total' => $dbForProject->count('database_' . $database->getInternalId(), $filterQueries, APP_LIMIT_COUNT), + 'collections' => $collections, + 'total' => $total, ]), Response::MODEL_COLLECTION_LIST); }); App::get('/v1/databases/:databaseId/collections/:collectionId') - ->alias('/v1/database/collections/:collectionId', ['databaseId' => 'default']) + ->alias('/v1/database/collections/:collectionId') ->desc('Get collection') ->groups(['api', 'database']) ->label('scope', 'collections.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'getCollection') - ->label('sdk.description', '/docs/references/databases/get-collection.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_COLLECTION) + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('sdk', new Method( + namespace: 'databases', + group: 'collections', + name: 'getCollection', + description: '/docs/references/databases/get-collection.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_COLLECTION, + ) + ], + contentType: ContentType::JSON + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID.') ->inject('response') ->inject('dbForProject') - ->inject('mode') - ->action(function (string $databaseId, string $collectionId, Response $response, Database $dbForProject, string $mode) { - - $database = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); + ->action(function (string $databaseId, string $collectionId, Response $response, Database $dbForProject) { + $database = $dbForProject->getDocument('databases', $databaseId); if ($database->isEmpty()) { throw new Exception(Exception::DATABASE_NOT_FOUND); @@ -924,17 +1067,25 @@ function updateAttribute( }); App::get('/v1/databases/:databaseId/collections/:collectionId/logs') - ->alias('/v1/database/collections/:collectionId/logs', ['databaseId' => 'default']) + ->alias('/v1/database/collections/:collectionId/logs') ->desc('List collection logs') ->groups(['api', 'database']) ->label('scope', 'collections.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'listCollectionLogs') - ->label('sdk.description', '/docs/references/databases/get-collection-logs.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_LOG_LIST) + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('sdk', new Method( + namespace: 'databases', + group: 'collections', + name: 'listCollectionLogs', + description: '/docs/references/databases/get-collection-logs.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_LOG_LIST, + ) + ], + contentType: ContentType::JSON + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID.') ->param('queries', [], new Queries([new Limit(), new Offset()]), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset', true) @@ -943,8 +1094,7 @@ function updateAttribute( ->inject('locale') ->inject('geodb') ->action(function (string $databaseId, string $collectionId, array $queries, Response $response, Database $dbForProject, Locale $locale, Reader $geodb) { - - $database = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); + $database = $dbForProject->getDocument('databases', $databaseId); if ($database->isEmpty()) { throw new Exception(Exception::DATABASE_NOT_FOUND); @@ -953,7 +1103,7 @@ function updateAttribute( $collectionDocument = $dbForProject->getDocument('database_' . $database->getInternalId(), $collectionId); $collection = $dbForProject->getCollection('database_' . $database->getInternalId() . '_collection_' . $collectionDocument->getInternalId()); - if ($collection->isEmpty()) { + if ($collectionDocument->isEmpty() || $collection->isEmpty()) { throw new Exception(Exception::COLLECTION_NOT_FOUND); } @@ -963,13 +1113,15 @@ function updateAttribute( throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); } - $grouped = Query::groupByType($queries); - $limit = $grouped['limit'] ?? APP_LIMIT_COUNT; - $offset = $grouped['offset'] ?? 0; + // Temp fix for logs + $queries[] = Query::or([ + Query::greaterThan('$createdAt', DateTime::format(new \DateTime('2025-02-26T01:30+00:00'))), + Query::lessThan('$createdAt', DateTime::format(new \DateTime('2025-02-13T00:00+00:00'))), + ]); $audit = new Audit($dbForProject); $resource = 'database/' . $databaseId . '/collection/' . $collectionId; - $logs = $audit->getLogsByResource($resource, $limit, $offset); + $logs = $audit->getLogsByResource($resource, $queries); $output = []; @@ -1017,27 +1169,35 @@ function updateAttribute( } $response->dynamic(new Document([ - 'total' => $audit->countLogsByResource($resource), + 'total' => $audit->countLogsByResource($resource, $queries), 'logs' => $output, ]), Response::MODEL_LOG_LIST); }); App::put('/v1/databases/:databaseId/collections/:collectionId') - ->alias('/v1/database/collections/:collectionId', ['databaseId' => 'default']) + ->alias('/v1/database/collections/:collectionId') ->desc('Update collection') ->groups(['api', 'database', 'schema']) ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].collections.[collectionId].update') ->label('audits.event', 'collection.update') ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'updateCollection') - ->label('sdk.description', '/docs/references/databases/update-collection.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_COLLECTION) + ->label('sdk', new Method( + namespace: 'databases', + group: 'collections', + name: 'updateCollection', + description: '/docs/references/databases/update-collection.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_COLLECTION, + ) + ], + contentType: ContentType::JSON + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID.') ->param('name', null, new Text(128), 'Collection name. Max length: 128 chars.') @@ -1049,8 +1209,7 @@ function updateAttribute( ->inject('mode') ->inject('queueForEvents') ->action(function (string $databaseId, string $collectionId, string $name, ?array $permissions, bool $documentSecurity, bool $enabled, Response $response, Database $dbForProject, string $mode, Event $queueForEvents) { - - $database = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); + $database = $dbForProject->getDocument('databases', $databaseId); if ($database->isEmpty()) { throw new Exception(Exception::DATABASE_NOT_FOUND); @@ -1069,12 +1228,18 @@ function updateAttribute( $enabled ??= $collection->getAttribute('enabled', true); - $collection = $dbForProject->updateDocument('database_' . $database->getInternalId(), $collectionId, $collection + $collection ->setAttribute('name', $name) ->setAttribute('$permissions', $permissions) ->setAttribute('documentSecurity', $documentSecurity) ->setAttribute('enabled', $enabled) - ->setAttribute('search', implode(' ', [$collectionId, $name]))); + ->setAttribute('search', \implode(' ', [$collectionId, $name])); + + $collection = $dbForProject->updateDocument( + 'database_' . $database->getInternalId(), + $collectionId, + $collection + ); $dbForProject->updateCollection('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), $permissions, $documentSecurity); @@ -1087,29 +1252,36 @@ function updateAttribute( }); App::delete('/v1/databases/:databaseId/collections/:collectionId') - ->alias('/v1/database/collections/:collectionId', ['databaseId' => 'default']) + ->alias('/v1/database/collections/:collectionId') ->desc('Delete collection') ->groups(['api', 'database', 'schema']) ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].collections.[collectionId].delete') ->label('audits.event', 'collection.delete') ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'deleteCollection') - ->label('sdk.description', '/docs/references/databases/delete-collection.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'databases', + group: 'collections', + name: 'deleteCollection', + description: '/docs/references/databases/delete-collection.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID.') ->inject('response') ->inject('dbForProject') ->inject('queueForDatabase') ->inject('queueForEvents') - ->inject('mode') - ->action(function (string $databaseId, string $collectionId, Response $response, Database $dbForProject, EventDatabase $queueForDatabase, Event $queueForEvents, string $mode) { - - $database = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); + ->action(function (string $databaseId, string $collectionId, Response $response, Database $dbForProject, EventDatabase $queueForDatabase, Event $queueForEvents) { + $database = $dbForProject->getDocument('databases', $databaseId); if ($database->isEmpty()) { throw new Exception(Exception::DATABASE_NOT_FOUND); @@ -1142,20 +1314,27 @@ function updateAttribute( }); App::post('/v1/databases/:databaseId/collections/:collectionId/attributes/string') - ->alias('/v1/database/collections/:collectionId/attributes/string', ['databaseId' => 'default']) + ->alias('/v1/database/collections/:collectionId/attributes/string') ->desc('Create string attribute') ->groups(['api', 'database', 'schema']) ->label('event', 'databases.[databaseId].collections.[collectionId].attributes.[attributeId].create') ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('audits.event', 'attribute.create') ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'createStringAttribute') - ->label('sdk.description', '/docs/references/databases/create-string-attribute.md') - ->label('sdk.response.code', Response::STATUS_CODE_ACCEPTED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_ATTRIBUTE_STRING) + ->label('sdk', new Method( + namespace: 'databases', + group: 'attributes', + name: 'createStringAttribute', + description: '/docs/references/databases/create-string-attribute.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_ACCEPTED, + model: Response::MODEL_ATTRIBUTE_STRING + ) + ] + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('key', '', new Key(), 'Attribute Key.') @@ -1169,7 +1348,6 @@ function updateAttribute( ->inject('queueForDatabase') ->inject('queueForEvents') ->action(function (string $databaseId, string $collectionId, string $key, ?int $size, ?bool $required, ?string $default, bool $array, bool $encrypt, Response $response, Database $dbForProject, EventDatabase $queueForDatabase, Event $queueForEvents) { - // Ensure attribute default is within required size $validator = new Text($size, 0); if (!is_null($default) && !$validator->isValid($default)) { @@ -1177,7 +1355,6 @@ function updateAttribute( } $filters = []; - if ($encrypt) { $filters[] = 'encrypt'; } @@ -1192,27 +1369,33 @@ function updateAttribute( 'filters' => $filters, ]), $response, $dbForProject, $queueForDatabase, $queueForEvents); - $response ->setStatusCode(Response::STATUS_CODE_ACCEPTED) ->dynamic($attribute, Response::MODEL_ATTRIBUTE_STRING); }); App::post('/v1/databases/:databaseId/collections/:collectionId/attributes/email') - ->alias('/v1/database/collections/:collectionId/attributes/email', ['databaseId' => 'default']) + ->alias('/v1/database/collections/:collectionId/attributes/email') ->desc('Create email attribute') ->groups(['api', 'database', 'schema']) ->label('event', 'databases.[databaseId].collections.[collectionId].attributes.[attributeId].create') ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('audits.event', 'attribute.create') ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') - ->label('sdk.namespace', 'databases') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.method', 'createEmailAttribute') - ->label('sdk.description', '/docs/references/databases/create-email-attribute.md') - ->label('sdk.response.code', Response::STATUS_CODE_ACCEPTED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_ATTRIBUTE_EMAIL) + ->label('sdk', new Method( + namespace: 'databases', + group: 'attributes', + name: 'createEmailAttribute', + description: '/docs/references/databases/create-email-attribute.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_ACCEPTED, + model: Response::MODEL_ATTRIBUTE_EMAIL, + ) + ] + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('key', '', new Key(), 'Attribute Key.') @@ -1224,7 +1407,6 @@ function updateAttribute( ->inject('queueForDatabase') ->inject('queueForEvents') ->action(function (string $databaseId, string $collectionId, string $key, ?bool $required, ?string $default, bool $array, Response $response, Database $dbForProject, EventDatabase $queueForDatabase, Event $queueForEvents) { - $attribute = createAttribute($databaseId, $collectionId, new Document([ 'key' => $key, 'type' => Database::VAR_STRING, @@ -1241,20 +1423,27 @@ function updateAttribute( }); App::post('/v1/databases/:databaseId/collections/:collectionId/attributes/enum') - ->alias('/v1/database/collections/:collectionId/attributes/enum', ['databaseId' => 'default']) + ->alias('/v1/database/collections/:collectionId/attributes/enum') ->desc('Create enum attribute') ->groups(['api', 'database', 'schema']) ->label('event', 'databases.[databaseId].collections.[collectionId].attributes.[attributeId].create') ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('audits.event', 'attribute.create') ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') - ->label('sdk.namespace', 'databases') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.method', 'createEnumAttribute') - ->label('sdk.description', '/docs/references/databases/create-attribute-enum.md') - ->label('sdk.response.code', Response::STATUS_CODE_ACCEPTED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_ATTRIBUTE_ENUM) + ->label('sdk', new Method( + namespace: 'databases', + group: 'attributes', + name: 'createEnumAttribute', + description: '/docs/references/databases/create-attribute-enum.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_ACCEPTED, + model: Response::MODEL_ATTRIBUTE_ENUM, + ) + ] + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('key', '', new Key(), 'Attribute Key.') @@ -1288,20 +1477,27 @@ function updateAttribute( }); App::post('/v1/databases/:databaseId/collections/:collectionId/attributes/ip') - ->alias('/v1/database/collections/:collectionId/attributes/ip', ['databaseId' => 'default']) + ->alias('/v1/database/collections/:collectionId/attributes/ip') ->desc('Create IP address attribute') ->groups(['api', 'database', 'schema']) ->label('event', 'databases.[databaseId].collections.[collectionId].attributes.[attributeId].create') ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('audits.event', 'attribute.create') ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') - ->label('sdk.namespace', 'databases') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.method', 'createIpAttribute') - ->label('sdk.description', '/docs/references/databases/create-ip-attribute.md') - ->label('sdk.response.code', Response::STATUS_CODE_ACCEPTED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_ATTRIBUTE_IP) + ->label('sdk', new Method( + namespace: 'databases', + group: 'attributes', + name: 'createIpAttribute', + description: '/docs/references/databases/create-ip-attribute.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_ACCEPTED, + model: Response::MODEL_ATTRIBUTE_IP, + ) + ] + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('key', '', new Key(), 'Attribute Key.') @@ -1313,7 +1509,6 @@ function updateAttribute( ->inject('queueForDatabase') ->inject('queueForEvents') ->action(function (string $databaseId, string $collectionId, string $key, ?bool $required, ?string $default, bool $array, Response $response, Database $dbForProject, EventDatabase $queueForDatabase, Event $queueForEvents) { - $attribute = createAttribute($databaseId, $collectionId, new Document([ 'key' => $key, 'type' => Database::VAR_STRING, @@ -1330,20 +1525,27 @@ function updateAttribute( }); App::post('/v1/databases/:databaseId/collections/:collectionId/attributes/url') - ->alias('/v1/database/collections/:collectionId/attributes/url', ['databaseId' => 'default']) + ->alias('/v1/database/collections/:collectionId/attributes/url') ->desc('Create URL attribute') ->groups(['api', 'database', 'schema']) ->label('event', 'databases.[databaseId].collections.[collectionId].attributes.[attributeId].create') ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('audits.event', 'attribute.create') ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') - ->label('sdk.namespace', 'databases') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.method', 'createUrlAttribute') - ->label('sdk.description', '/docs/references/databases/create-url-attribute.md') - ->label('sdk.response.code', Response::STATUS_CODE_ACCEPTED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_ATTRIBUTE_URL) + ->label('sdk', new Method( + namespace: 'databases', + group: 'attributes', + name: 'createUrlAttribute', + description: '/docs/references/databases/create-url-attribute.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_ACCEPTED, + model: Response::MODEL_ATTRIBUTE_URL, + ) + ] + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('key', '', new Key(), 'Attribute Key.') @@ -1355,7 +1557,6 @@ function updateAttribute( ->inject('queueForDatabase') ->inject('queueForEvents') ->action(function (string $databaseId, string $collectionId, string $key, ?bool $required, ?string $default, bool $array, Response $response, Database $dbForProject, EventDatabase $queueForDatabase, Event $queueForEvents) { - $attribute = createAttribute($databaseId, $collectionId, new Document([ 'key' => $key, 'type' => Database::VAR_STRING, @@ -1372,20 +1573,27 @@ function updateAttribute( }); App::post('/v1/databases/:databaseId/collections/:collectionId/attributes/integer') - ->alias('/v1/database/collections/:collectionId/attributes/integer', ['databaseId' => 'default']) + ->alias('/v1/database/collections/:collectionId/attributes/integer') ->desc('Create integer attribute') ->groups(['api', 'database', 'schema']) ->label('event', 'databases.[databaseId].collections.[collectionId].attributes.[attributeId].create') ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('audits.event', 'attribute.create') ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') - ->label('sdk.namespace', 'databases') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.method', 'createIntegerAttribute') - ->label('sdk.description', '/docs/references/databases/create-integer-attribute.md') - ->label('sdk.response.code', Response::STATUS_CODE_ACCEPTED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_ATTRIBUTE_INTEGER) + ->label('sdk', new Method( + namespace: 'databases', + group: 'attributes', + name: 'createIntegerAttribute', + description: '/docs/references/databases/create-integer-attribute.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_ACCEPTED, + model: Response::MODEL_ATTRIBUTE_INTEGER, + ) + ] + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('key', '', new Key(), 'Attribute Key.') @@ -1399,10 +1607,9 @@ function updateAttribute( ->inject('queueForDatabase') ->inject('queueForEvents') ->action(function (string $databaseId, string $collectionId, string $key, ?bool $required, ?int $min, ?int $max, ?int $default, bool $array, Response $response, Database $dbForProject, EventDatabase $queueForDatabase, Event $queueForEvents) { - // Ensure attribute default is within range - $min = (is_null($min)) ? PHP_INT_MIN : \intval($min); - $max = (is_null($max)) ? PHP_INT_MAX : \intval($max); + $min ??= PHP_INT_MIN; + $max ??= PHP_INT_MAX; if ($min > $max) { throw new Exception(Exception::ATTRIBUTE_VALUE_INVALID, 'Minimum value must be lesser than maximum value'); @@ -1443,20 +1650,27 @@ function updateAttribute( }); App::post('/v1/databases/:databaseId/collections/:collectionId/attributes/float') - ->alias('/v1/database/collections/:collectionId/attributes/float', ['databaseId' => 'default']) + ->alias('/v1/database/collections/:collectionId/attributes/float') ->desc('Create float attribute') ->groups(['api', 'database', 'schema']) ->label('event', 'databases.[databaseId].collections.[collectionId].attributes.[attributeId].create') ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('audits.event', 'attribute.create') ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') - ->label('sdk.namespace', 'databases') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.method', 'createFloatAttribute') - ->label('sdk.description', '/docs/references/databases/create-float-attribute.md') - ->label('sdk.response.code', Response::STATUS_CODE_ACCEPTED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_ATTRIBUTE_FLOAT) + ->label('sdk', new Method( + namespace: 'databases', + group: 'attributes', + name: 'createFloatAttribute', + description: '/docs/references/databases/create-float-attribute.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_ACCEPTED, + model: Response::MODEL_ATTRIBUTE_FLOAT, + ) + ] + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('key', '', new Key(), 'Attribute Key.') @@ -1470,23 +1684,17 @@ function updateAttribute( ->inject('queueForDatabase') ->inject('queueForEvents') ->action(function (string $databaseId, string $collectionId, string $key, ?bool $required, ?float $min, ?float $max, ?float $default, bool $array, Response $response, Database $dbForProject, EventDatabase $queueForDatabase, Event $queueForEvents) { - // Ensure attribute default is within range - $min = (is_null($min)) ? -PHP_FLOAT_MAX : \floatval($min); - $max = (is_null($max)) ? PHP_FLOAT_MAX : \floatval($max); + $min ??= -PHP_FLOAT_MAX; + $max ??= PHP_FLOAT_MAX; if ($min > $max) { throw new Exception(Exception::ATTRIBUTE_VALUE_INVALID, 'Minimum value must be lesser than maximum value'); } - // Ensure default value is a float - if (!is_null($default)) { - $default = \floatval($default); - } - $validator = new Range($min, $max, Database::VAR_FLOAT); - if (!is_null($default) && !$validator->isValid($default)) { + if (!\is_null($default) && !$validator->isValid($default)) { throw new Exception(Exception::ATTRIBUTE_VALUE_INVALID, $validator->getDescription()); } @@ -1517,20 +1725,27 @@ function updateAttribute( }); App::post('/v1/databases/:databaseId/collections/:collectionId/attributes/boolean') - ->alias('/v1/database/collections/:collectionId/attributes/boolean', ['databaseId' => 'default']) + ->alias('/v1/database/collections/:collectionId/attributes/boolean') ->desc('Create boolean attribute') ->groups(['api', 'database', 'schema']) ->label('event', 'databases.[databaseId].collections.[collectionId].attributes.[attributeId].create') ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('audits.event', 'attribute.create') ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') - ->label('sdk.namespace', 'databases') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.method', 'createBooleanAttribute') - ->label('sdk.description', '/docs/references/databases/create-boolean-attribute.md') - ->label('sdk.response.code', Response::STATUS_CODE_ACCEPTED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_ATTRIBUTE_BOOLEAN) + ->label('sdk', new Method( + namespace: 'databases', + group: 'attributes', + name: 'createBooleanAttribute', + description: '/docs/references/databases/create-boolean-attribute.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_ACCEPTED, + model: Response::MODEL_ATTRIBUTE_BOOLEAN, + ) + ] + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('key', '', new Key(), 'Attribute Key.') @@ -1542,7 +1757,6 @@ function updateAttribute( ->inject('queueForDatabase') ->inject('queueForEvents') ->action(function (string $databaseId, string $collectionId, string $key, ?bool $required, ?bool $default, bool $array, Response $response, Database $dbForProject, EventDatabase $queueForDatabase, Event $queueForEvents) { - $attribute = createAttribute($databaseId, $collectionId, new Document([ 'key' => $key, 'type' => Database::VAR_BOOLEAN, @@ -1558,32 +1772,38 @@ function updateAttribute( }); App::post('/v1/databases/:databaseId/collections/:collectionId/attributes/datetime') - ->alias('/v1/database/collections/:collectionId/attributes/datetime', ['databaseId' => 'default']) + ->alias('/v1/database/collections/:collectionId/attributes/datetime') ->desc('Create datetime attribute') ->groups(['api', 'database']) ->label('event', 'databases.[databaseId].collections.[collectionId].attributes.[attributeId].create') ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('audits.event', 'attribute.create') ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') - ->label('sdk.namespace', 'databases') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.method', 'createDatetimeAttribute') - ->label('sdk.description', '/docs/references/databases/create-datetime-attribute.md') - ->label('sdk.response.code', Response::STATUS_CODE_ACCEPTED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_ATTRIBUTE_DATETIME) + ->label('sdk', new Method( + namespace: 'databases', + group: 'attributes', + name: 'createDatetimeAttribute', + description: '/docs/references/databases/create-datetime-attribute.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_ACCEPTED, + model: Response::MODEL_ATTRIBUTE_DATETIME, + ) + ] + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('key', '', new Key(), 'Attribute Key.') ->param('required', null, new Boolean(), 'Is attribute required?') - ->param('default', null, new DatetimeValidator(), 'Default value for the attribute in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Cannot be set when attribute is required.', true) + ->param('default', null, fn (Database $dbForProject) => new DatetimeValidator($dbForProject->getAdapter()->getMinDateTime(), $dbForProject->getAdapter()->getMaxDateTime()), 'Default value for the attribute in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Cannot be set when attribute is required.', true, ['dbForProject']) ->param('array', false, new Boolean(), 'Is attribute an array?', true) ->inject('response') ->inject('dbForProject') ->inject('queueForDatabase') ->inject('queueForEvents') ->action(function (string $databaseId, string $collectionId, string $key, ?bool $required, ?string $default, bool $array, Response $response, Database $dbForProject, EventDatabase $queueForDatabase, Event $queueForEvents) { - $filters[] = 'datetime'; $attribute = createAttribute($databaseId, $collectionId, new Document([ @@ -1602,20 +1822,27 @@ function updateAttribute( }); App::post('/v1/databases/:databaseId/collections/:collectionId/attributes/relationship') - ->alias('/v1/database/collections/:collectionId/attributes/relationship', ['databaseId' => 'default']) + ->alias('/v1/database/collections/:collectionId/attributes/relationship') ->desc('Create relationship attribute') ->groups(['api', 'database']) ->label('event', 'databases.[databaseId].collections.[collectionId].attributes.[attributeId].create') ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('audits.event', 'attribute.create') ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') - ->label('sdk.namespace', 'databases') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.method', 'createRelationshipAttribute') - ->label('sdk.description', '/docs/references/databases/create-relationship-attribute.md') - ->label('sdk.response.code', Response::STATUS_CODE_ACCEPTED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_ATTRIBUTE_RELATIONSHIP) + ->label('sdk', new Method( + namespace: 'databases', + group: 'attributes', + name: 'createRelationshipAttribute', + description: '/docs/references/databases/create-relationship-attribute.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_ACCEPTED, + model: Response::MODEL_ATTRIBUTE_RELATIONSHIP, + ) + ] + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('relatedCollectionId', '', new UID(), 'Related Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') @@ -1645,7 +1872,7 @@ function updateAttribute( $key ??= $relatedCollectionId; $twoWayKey ??= $collectionId; - $database = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); + $database = $dbForProject->getDocument('databases', $databaseId); if ($database->isEmpty()) { throw new Exception(Exception::DATABASE_NOT_FOUND); @@ -1666,6 +1893,7 @@ function updateAttribute( } $attributes = $collection->getAttribute('attributes', []); + /** @var Document[] $attributes */ foreach ($attributes as $attribute) { if ($attribute->getAttribute('type') !== Database::VAR_RELATIONSHIP) { @@ -1730,32 +1958,36 @@ function updateAttribute( }); App::get('/v1/databases/:databaseId/collections/:collectionId/attributes') - ->alias('/v1/database/collections/:collectionId/attributes', ['databaseId' => 'default']) + ->alias('/v1/database/collections/:collectionId/attributes') ->desc('List attributes') ->groups(['api', 'database']) ->label('scope', 'collections.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'listAttributes') - ->label('sdk.description', '/docs/references/databases/list-attributes.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_ATTRIBUTE_LIST) + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('sdk', new Method( + namespace: 'databases', + group: 'attributes', + name: 'listAttributes', + description: '/docs/references/databases/list-attributes.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_ATTRIBUTE_LIST + ) + ] + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('queries', [], new Attributes(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Attributes::ALLOWED_ATTRIBUTES), true) ->inject('response') ->inject('dbForProject') ->action(function (string $databaseId, string $collectionId, array $queries, Response $response, Database $dbForProject) { - /** @var Document $database */ - $database = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); - + $database = $dbForProject->getDocument('databases', $databaseId); if ($database->isEmpty()) { throw new Exception(Exception::DATABASE_NOT_FOUND); } $collection = $dbForProject->getDocument('database_' . $database->getInternalId(), $collectionId); - if ($collection->isEmpty()) { throw new Exception(Exception::COLLECTION_NOT_FOUND); } @@ -1768,8 +2000,8 @@ function updateAttribute( \array_push( $queries, + Query::equal('databaseInternalId', [$database->getInternalId()]), Query::equal('collectionInternalId', [$collection->getInternalId()]), - Query::equal('databaseInternalId', [$database->getInternalId()]) ); /** @@ -1778,28 +2010,42 @@ function updateAttribute( $cursor = \array_filter($queries, function ($query) { return \in_array($query->getMethod(), [Query::TYPE_CURSOR_AFTER, Query::TYPE_CURSOR_BEFORE]); }); + $cursor = \reset($cursor); if ($cursor) { + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + $attributeId = $cursor->getValue(); - $cursorDocument = Authorization::skip(fn () => $dbForProject->find('attributes', [ - Query::equal('collectionInternalId', [$collection->getInternalId()]), - Query::equal('databaseInternalId', [$database->getInternalId()]), - Query::equal('key', [$attributeId]), - Query::limit(1), - ])); - if (empty($cursorDocument) || $cursorDocument[0]->isEmpty()) { + try { + $cursorDocument = $dbForProject->findOne('attributes', [ + Query::equal('databaseInternalId', [$database->getInternalId()]), + Query::equal('collectionInternalId', [$collection->getInternalId()]), + Query::equal('key', [$attributeId]), + ]); + } catch (QueryException $e) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); + } + + if ($cursorDocument->isEmpty()) { throw new Exception(Exception::GENERAL_CURSOR_NOT_FOUND, "Attribute '{$attributeId}' for the 'cursor' value not found."); } - $cursor->setValue($cursorDocument[0]); + $cursor->setValue($cursorDocument); } - $filters = Query::groupByType($queries)['filters']; - - $attributes = $dbForProject->find('attributes', $queries); - $total = $dbForProject->count('attributes', $filters, APP_LIMIT_COUNT); + try { + $attributes = $dbForProject->find('attributes', $queries); + $total = $dbForProject->count('attributes', $queries, APP_LIMIT_COUNT); + } catch (OrderException) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL); + } catch (QueryException) { + throw new Exception(Exception::GENERAL_QUERY_INVALID); + } $response->dynamic(new Document([ 'attributes' => $attributes, @@ -1808,35 +2054,42 @@ function updateAttribute( }); App::get('/v1/databases/:databaseId/collections/:collectionId/attributes/:key') - ->alias('/v1/database/collections/:collectionId/attributes/:key', ['databaseId' => 'default']) + ->alias('/v1/database/collections/:collectionId/attributes/:key') ->desc('Get attribute') ->groups(['api', 'database']) ->label('scope', 'collections.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'getAttribute') - ->label('sdk.description', '/docs/references/databases/get-attribute.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', [ - Response::MODEL_ATTRIBUTE_BOOLEAN, - Response::MODEL_ATTRIBUTE_INTEGER, - Response::MODEL_ATTRIBUTE_FLOAT, - Response::MODEL_ATTRIBUTE_EMAIL, - Response::MODEL_ATTRIBUTE_ENUM, - Response::MODEL_ATTRIBUTE_URL, - Response::MODEL_ATTRIBUTE_IP, - Response::MODEL_ATTRIBUTE_DATETIME, - Response::MODEL_ATTRIBUTE_RELATIONSHIP, - Response::MODEL_ATTRIBUTE_STRING])// needs to be last, since its condition would dominate any other string attribute + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('sdk', new Method( + namespace: 'databases', + group: 'attributes', + name: 'getAttribute', + description: '/docs/references/databases/get-attribute.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: [ + Response::MODEL_ATTRIBUTE_BOOLEAN, + Response::MODEL_ATTRIBUTE_INTEGER, + Response::MODEL_ATTRIBUTE_FLOAT, + Response::MODEL_ATTRIBUTE_EMAIL, + Response::MODEL_ATTRIBUTE_ENUM, + Response::MODEL_ATTRIBUTE_URL, + Response::MODEL_ATTRIBUTE_IP, + Response::MODEL_ATTRIBUTE_DATETIME, + Response::MODEL_ATTRIBUTE_RELATIONSHIP, + Response::MODEL_ATTRIBUTE_STRING + ] + ), + ] + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('key', '', new Key(), 'Attribute Key.') ->inject('response') ->inject('dbForProject') ->action(function (string $databaseId, string $collectionId, string $key, Response $response, Database $dbForProject) { - - $database = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); + $database = $dbForProject->getDocument('databases', $databaseId); if ($database->isEmpty()) { throw new Exception(Exception::DATABASE_NOT_FOUND); @@ -1886,27 +2139,35 @@ function updateAttribute( ->desc('Update string attribute') ->groups(['api', 'database', 'schema']) ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].collections.[collectionId].attributes.[attributeId].update') ->label('audits.event', 'attribute.update') ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'updateStringAttribute') - ->label('sdk.description', '/docs/references/databases/update-string-attribute.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.model', Response::MODEL_ATTRIBUTE_STRING) + ->label('sdk', new Method( + namespace: 'databases', + group: 'attributes', + name: 'updateStringAttribute', + description: '/docs/references/databases/update-string-attribute.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_ATTRIBUTE_STRING, + ) + ], + contentType: ContentType::JSON + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('key', '', new Key(), 'Attribute Key.') ->param('required', null, new Boolean(), 'Is attribute required?') ->param('default', null, new Nullable(new Text(0, 0)), 'Default value for attribute when not provided. Cannot be set when attribute is required.') - ->param('size', null, new Integer(), 'Maximum size of the string attribute.', true) + ->param('size', null, new Range(1, APP_DATABASE_ATTRIBUTE_STRING_MAX_LENGTH, Range::TYPE_INTEGER), 'Maximum size of the string attribute.', true) ->param('newKey', null, new Key(), 'New attribute key.', true) ->inject('response') ->inject('dbForProject') ->inject('queueForEvents') ->action(function (string $databaseId, string $collectionId, string $key, ?bool $required, ?string $default, ?int $size, ?string $newKey, Response $response, Database $dbForProject, Event $queueForEvents) { - $attribute = updateAttribute( databaseId: $databaseId, collectionId: $collectionId, @@ -1929,15 +2190,24 @@ function updateAttribute( ->desc('Update email attribute') ->groups(['api', 'database', 'schema']) ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].collections.[collectionId].attributes.[attributeId].update') ->label('audits.event', 'attribute.update') ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'updateEmailAttribute') - ->label('sdk.description', '/docs/references/databases/update-email-attribute.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.model', Response::MODEL_ATTRIBUTE_EMAIL) + ->label('sdk', new Method( + namespace: 'databases', + group: 'attributes', + name: 'updateEmailAttribute', + description: '/docs/references/databases/update-email-attribute.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_ATTRIBUTE_EMAIL, + ) + ], + contentType: ContentType::JSON + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('key', '', new Key(), 'Attribute Key.') @@ -1970,15 +2240,24 @@ function updateAttribute( ->desc('Update enum attribute') ->groups(['api', 'database', 'schema']) ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].collections.[collectionId].attributes.[attributeId].update') ->label('audits.event', 'attribute.update') ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'updateEnumAttribute') - ->label('sdk.description', '/docs/references/databases/update-enum-attribute.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.model', Response::MODEL_ATTRIBUTE_ENUM) + ->label('sdk', new Method( + namespace: 'databases', + group: 'attributes', + name: 'updateEnumAttribute', + description: '/docs/references/databases/update-enum-attribute.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_ATTRIBUTE_ENUM, + ) + ], + contentType: ContentType::JSON + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('key', '', new Key(), 'Attribute Key.') @@ -2013,15 +2292,24 @@ function updateAttribute( ->desc('Update IP address attribute') ->groups(['api', 'database', 'schema']) ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].collections.[collectionId].attributes.[attributeId].update') ->label('audits.event', 'attribute.update') ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'updateIpAttribute') - ->label('sdk.description', '/docs/references/databases/update-ip-attribute.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.model', Response::MODEL_ATTRIBUTE_IP) + ->label('sdk', new Method( + namespace: 'databases', + group: 'attributes', + name: 'updateIpAttribute', + description: '/docs/references/databases/update-ip-attribute.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_ATTRIBUTE_IP, + ) + ], + contentType: ContentType::JSON + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('key', '', new Key(), 'Attribute Key.') @@ -2054,15 +2342,24 @@ function updateAttribute( ->desc('Update URL attribute') ->groups(['api', 'database', 'schema']) ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].collections.[collectionId].attributes.[attributeId].update') ->label('audits.event', 'attribute.update') ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'updateUrlAttribute') - ->label('sdk.description', '/docs/references/databases/update-url-attribute.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.model', Response::MODEL_ATTRIBUTE_URL) + ->label('sdk', new Method( + namespace: 'databases', + group: 'attributes', + name: 'updateUrlAttribute', + description: '/docs/references/databases/update-url-attribute.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_ATTRIBUTE_URL, + ) + ], + contentType: ContentType::JSON + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('key', '', new Key(), 'Attribute Key.') @@ -2095,21 +2392,30 @@ function updateAttribute( ->desc('Update integer attribute') ->groups(['api', 'database', 'schema']) ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].collections.[collectionId].attributes.[attributeId].update') ->label('audits.event', 'attribute.update') ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'updateIntegerAttribute') - ->label('sdk.description', '/docs/references/databases/update-integer-attribute.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.model', Response::MODEL_ATTRIBUTE_INTEGER) + ->label('sdk', new Method( + namespace: 'databases', + group: 'attributes', + name: 'updateIntegerAttribute', + description: '/docs/references/databases/update-integer-attribute.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_ATTRIBUTE_INTEGER, + ) + ], + contentType: ContentType::JSON + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('key', '', new Key(), 'Attribute Key.') ->param('required', null, new Boolean(), 'Is attribute required?') - ->param('min', null, new Integer(), 'Minimum value to enforce on new documents') - ->param('max', null, new Integer(), 'Maximum value to enforce on new documents') + ->param('min', null, new Integer(), 'Minimum value to enforce on new documents', true) + ->param('max', null, new Integer(), 'Maximum value to enforce on new documents', true) ->param('default', null, new Nullable(new Integer()), 'Default value for attribute when not provided. Cannot be set when attribute is required.') ->param('newKey', null, new Key(), 'New attribute key.', true) ->inject('response') @@ -2146,21 +2452,30 @@ function updateAttribute( ->desc('Update float attribute') ->groups(['api', 'database', 'schema']) ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].collections.[collectionId].attributes.[attributeId].update') ->label('audits.event', 'attribute.update') ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'updateFloatAttribute') - ->label('sdk.description', '/docs/references/databases/update-float-attribute.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.model', Response::MODEL_ATTRIBUTE_FLOAT) + ->label('sdk', new Method( + namespace: 'databases', + group: 'attributes', + name: 'updateFloatAttribute', + description: '/docs/references/databases/update-float-attribute.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_ATTRIBUTE_FLOAT, + ) + ], + contentType: ContentType::JSON + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('key', '', new Key(), 'Attribute Key.') ->param('required', null, new Boolean(), 'Is attribute required?') - ->param('min', null, new FloatValidator(), 'Minimum value to enforce on new documents') - ->param('max', null, new FloatValidator(), 'Maximum value to enforce on new documents') + ->param('min', null, new FloatValidator(), 'Minimum value to enforce on new documents', true) + ->param('max', null, new FloatValidator(), 'Maximum value to enforce on new documents', true) ->param('default', null, new Nullable(new FloatValidator()), 'Default value for attribute when not provided. Cannot be set when attribute is required.') ->param('newKey', null, new Key(), 'New attribute key.', true) ->inject('response') @@ -2197,15 +2512,24 @@ function updateAttribute( ->desc('Update boolean attribute') ->groups(['api', 'database', 'schema']) ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].collections.[collectionId].attributes.[attributeId].update') ->label('audits.event', 'attribute.update') ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'updateBooleanAttribute') - ->label('sdk.description', '/docs/references/databases/update-boolean-attribute.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.model', Response::MODEL_ATTRIBUTE_BOOLEAN) + ->label('sdk', new Method( + namespace: 'databases', + group: 'attributes', + name: 'updateBooleanAttribute', + description: '/docs/references/databases/update-boolean-attribute.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_ATTRIBUTE_BOOLEAN, + ) + ], + contentType: ContentType::JSON + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('key', '', new Key(), 'Attribute Key.') @@ -2237,20 +2561,29 @@ function updateAttribute( ->desc('Update dateTime attribute') ->groups(['api', 'database', 'schema']) ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].collections.[collectionId].attributes.[attributeId].update') ->label('audits.event', 'attribute.update') ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'updateDatetimeAttribute') - ->label('sdk.description', '/docs/references/databases/update-datetime-attribute.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.model', Response::MODEL_ATTRIBUTE_DATETIME) + ->label('sdk', new Method( + namespace: 'databases', + group: 'attributes', + name: 'updateDatetimeAttribute', + description: '/docs/references/databases/update-datetime-attribute.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_ATTRIBUTE_DATETIME, + ) + ], + contentType: ContentType::JSON + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('key', '', new Key(), 'Attribute Key.') ->param('required', null, new Boolean(), 'Is attribute required?') - ->param('default', null, new Nullable(new DatetimeValidator()), 'Default value for attribute when not provided. Cannot be set when attribute is required.') + ->param('default', null, fn (Database $dbForProject) => new Nullable(new DatetimeValidator($dbForProject->getAdapter()->getMinDateTime(), $dbForProject->getAdapter()->getMaxDateTime())), 'Default value for attribute when not provided. Cannot be set when attribute is required.', injections: ['dbForProject']) ->param('newKey', null, new Key(), 'New attribute key.', true) ->inject('response') ->inject('dbForProject') @@ -2277,15 +2610,24 @@ function updateAttribute( ->desc('Update relationship attribute') ->groups(['api', 'database', 'schema']) ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].collections.[collectionId].attributes.[attributeId].update') ->label('audits.event', 'attribute.update') ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'updateRelationshipAttribute') - ->label('sdk.description', '/docs/references/databases/update-relationship-attribute.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.model', Response::MODEL_ATTRIBUTE_RELATIONSHIP) + ->label('sdk', new Method( + namespace: 'databases', + group: 'attributes', + name: 'updateRelationshipAttribute', + description: '/docs/references/databases/update-relationship-attribute.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_ATTRIBUTE_RELATIONSHIP, + ) + ], + contentType: ContentType::JSON + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('key', '', new Key(), 'Attribute Key.') @@ -2330,19 +2672,28 @@ function updateAttribute( }); App::delete('/v1/databases/:databaseId/collections/:collectionId/attributes/:key') - ->alias('/v1/database/collections/:collectionId/attributes/:key', ['databaseId' => 'default']) + ->alias('/v1/database/collections/:collectionId/attributes/:key') ->desc('Delete attribute') ->groups(['api', 'database', 'schema']) ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].collections.[collectionId].attributes.[attributeId].update') ->label('audits.event', 'attribute.delete') ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'deleteAttribute') - ->label('sdk.description', '/docs/references/databases/delete-attribute.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'databases', + group: 'attributes', + name: 'deleteAttribute', + description: '/docs/references/databases/delete-attribute.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('key', '', new Key(), 'Attribute Key.') @@ -2351,42 +2702,54 @@ function updateAttribute( ->inject('queueForDatabase') ->inject('queueForEvents') ->action(function (string $databaseId, string $collectionId, string $key, Response $response, Database $dbForProject, EventDatabase $queueForDatabase, Event $queueForEvents) { + $database = $dbForProject->getDocument('databases', $databaseId); - $db = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); - - if ($db->isEmpty()) { + if ($database->isEmpty()) { throw new Exception(Exception::DATABASE_NOT_FOUND); } - $collection = $dbForProject->getDocument('database_' . $db->getInternalId(), $collectionId); + + $collection = $dbForProject->getDocument('database_' . $database->getInternalId(), $collectionId); if ($collection->isEmpty()) { throw new Exception(Exception::COLLECTION_NOT_FOUND); } - $attribute = $dbForProject->getDocument('attributes', $db->getInternalId() . '_' . $collection->getInternalId() . '_' . $key); + $attribute = $dbForProject->getDocument('attributes', $database->getInternalId() . '_' . $collection->getInternalId() . '_' . $key); if ($attribute->isEmpty()) { throw new Exception(Exception::ATTRIBUTE_NOT_FOUND); } + /** + * Check index dependency + */ + $validator = new IndexDependencyValidator( + $collection->getAttribute('indexes'), + $dbForProject->getAdapter()->getSupportForCastIndexArray(), + ); + + if (! $validator->isValid($attribute)) { + throw new Exception(Exception::INDEX_DEPENDENCY); + } + // Only update status if removing available attribute if ($attribute->getAttribute('status') === 'available') { $attribute = $dbForProject->updateDocument('attributes', $attribute->getId(), $attribute->setAttribute('status', 'deleting')); } - $dbForProject->purgeCachedDocument('database_' . $db->getInternalId(), $collectionId); - $dbForProject->purgeCachedCollection('database_' . $db->getInternalId() . '_collection_' . $collection->getInternalId()); + $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $collectionId); + $dbForProject->purgeCachedCollection('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId()); if ($attribute->getAttribute('type') === Database::VAR_RELATIONSHIP) { $options = $attribute->getAttribute('options'); if ($options['twoWay']) { - $relatedCollection = $dbForProject->getDocument('database_' . $db->getInternalId(), $options['relatedCollection']); + $relatedCollection = $dbForProject->getDocument('database_' . $database->getInternalId(), $options['relatedCollection']); if ($relatedCollection->isEmpty()) { throw new Exception(Exception::COLLECTION_NOT_FOUND); } - $relatedAttribute = $dbForProject->getDocument('attributes', $db->getInternalId() . '_' . $relatedCollection->getInternalId() . '_' . $options['twoWayKey']); + $relatedAttribute = $dbForProject->getDocument('attributes', $database->getInternalId() . '_' . $relatedCollection->getInternalId() . '_' . $options['twoWayKey']); if ($relatedAttribute->isEmpty()) { throw new Exception(Exception::ATTRIBUTE_NOT_FOUND); @@ -2396,15 +2759,15 @@ function updateAttribute( $dbForProject->updateDocument('attributes', $relatedAttribute->getId(), $relatedAttribute->setAttribute('status', 'deleting')); } - $dbForProject->purgeCachedDocument('database_' . $db->getInternalId(), $options['relatedCollection']); - $dbForProject->purgeCachedCollection('database_' . $db->getInternalId() . '_collection_' . $relatedCollection->getInternalId()); + $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $options['relatedCollection']); + $dbForProject->purgeCachedCollection('database_' . $database->getInternalId() . '_collection_' . $relatedCollection->getInternalId()); } } $queueForDatabase ->setType(DATABASE_TYPE_DELETE_ATTRIBUTE) ->setCollection($collection) - ->setDatabase($db) + ->setDatabase($database) ->setDocument($attribute); // Select response model based on type and format @@ -2432,63 +2795,72 @@ function updateAttribute( ->setParam('collectionId', $collection->getId()) ->setParam('attributeId', $attribute->getId()) ->setContext('collection', $collection) - ->setContext('database', $db) + ->setContext('database', $database) ->setPayload($response->output($attribute, $model)); $response->noContent(); }); App::post('/v1/databases/:databaseId/collections/:collectionId/indexes') - ->alias('/v1/database/collections/:collectionId/indexes', ['databaseId' => 'default']) + ->alias('/v1/database/collections/:collectionId/indexes') ->desc('Create index') ->groups(['api', 'database']) ->label('event', 'databases.[databaseId].collections.[collectionId].indexes.[indexId].create') ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('audits.event', 'index.create') ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'createIndex') - ->label('sdk.description', '/docs/references/databases/create-index.md') - ->label('sdk.response.code', Response::STATUS_CODE_ACCEPTED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_INDEX) + ->label('sdk', new Method( + namespace: 'databases', + group: 'collections', + name: 'createIndex', + description: '/docs/references/databases/create-index.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_ACCEPTED, + model: Response::MODEL_INDEX, + ) + ], + contentType: ContentType::JSON + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('key', null, new Key(), 'Index Key.') ->param('type', null, new WhiteList([Database::INDEX_KEY, Database::INDEX_FULLTEXT, Database::INDEX_UNIQUE]), 'Index type.') ->param('attributes', null, new ArrayList(new Key(true), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Array of attributes to index. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' attributes are allowed, each 32 characters long.') ->param('orders', [], new ArrayList(new WhiteList(['ASC', 'DESC'], false, Database::VAR_STRING), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Array of index orders. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' orders are allowed.', true) + ->param('lengths', [], new ArrayList(new Nullable(new Integer()), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Length of index. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE, optional:true) ->inject('response') ->inject('dbForProject') ->inject('queueForDatabase') ->inject('queueForEvents') - ->action(function (string $databaseId, string $collectionId, string $key, string $type, array $attributes, array $orders, Response $response, Database $dbForProject, EventDatabase $queueForDatabase, Event $queueForEvents) { - - $db = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); + ->action(function (string $databaseId, string $collectionId, string $key, string $type, array $attributes, array $orders, array $lengths, Response $response, Database $dbForProject, EventDatabase $queueForDatabase, Event $queueForEvents) { + $database = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); - if ($db->isEmpty()) { + if ($database->isEmpty()) { throw new Exception(Exception::DATABASE_NOT_FOUND); } - $collection = $dbForProject->getDocument('database_' . $db->getInternalId(), $collectionId); + $collection = $dbForProject->getDocument('database_' . $database->getInternalId(), $collectionId); if ($collection->isEmpty()) { throw new Exception(Exception::COLLECTION_NOT_FOUND); } + $limit = $dbForProject->getLimitForIndexes(); + $count = $dbForProject->count('indexes', [ Query::equal('collectionInternalId', [$collection->getInternalId()]), - Query::equal('databaseInternalId', [$db->getInternalId()]) - ], 61); + Query::equal('databaseInternalId', [$database->getInternalId()]) + ], max: $limit); - $limit = $dbForProject->getLimitForIndexes(); if ($count >= $limit) { throw new Exception(Exception::INDEX_LIMIT_EXCEEDED, 'Index limit exceeded'); } - // Convert Document[] to array of attribute metadata + // Convert Document array to array of attribute metadata $oldAttributes = \array_map(fn ($a) => $a->getArrayCopy(), $collection->getAttribute('attributes')); $oldAttributes[] = [ @@ -2498,9 +2870,8 @@ function updateAttribute( 'required' => true, 'array' => false, 'default' => null, - 'size' => 36 + 'size' => Database::LENGTH_KEY ]; - $oldAttributes[] = [ 'key' => '$createdAt', 'type' => Database::VAR_DATETIME, @@ -2511,7 +2882,6 @@ function updateAttribute( 'default' => null, 'size' => 0 ]; - $oldAttributes[] = [ 'key' => '$updatedAt', 'type' => Database::VAR_DATETIME, @@ -2523,20 +2893,16 @@ function updateAttribute( 'size' => 0 ]; - // lengths hidden by default - $lengths = []; - foreach ($attributes as $i => $attribute) { - // find attribute metadata in collection document + // Find attribute metadata in collection document $attributeIndex = \array_search($attribute, array_column($oldAttributes, 'key')); if ($attributeIndex === false) { - throw new Exception(Exception::ATTRIBUTE_UNKNOWN, 'Unknown attribute: ' . $attribute); + throw new Exception(Exception::ATTRIBUTE_UNKNOWN, 'Unknown attribute: ' . $attribute . '. Verify the attribute name or create the attribute.'); } $attributeStatus = $oldAttributes[$attributeIndex]['status']; $attributeType = $oldAttributes[$attributeIndex]['type']; - $attributeSize = $oldAttributes[$attributeIndex]['size']; $attributeArray = $oldAttributes[$attributeIndex]['array'] ?? false; if ($attributeType === Database::VAR_RELATIONSHIP) { @@ -2548,12 +2914,7 @@ function updateAttribute( throw new Exception(Exception::ATTRIBUTE_NOT_AVAILABLE, 'Attribute not available: ' . $oldAttributes[$attributeIndex]['key']); } - $lengths[$i] = null; - - if ($attributeType === Database::VAR_STRING) { - $lengths[$i] = $attributeSize; // set attribute size as index length only for strings - } - + $lengths[$i] ??= null; if ($attributeArray === true) { $lengths[$i] = Database::ARRAY_INDEX_LENGTH; $orders[$i] = null; @@ -2561,10 +2922,10 @@ function updateAttribute( } $index = new Document([ - '$id' => ID::custom($db->getInternalId() . '_' . $collection->getInternalId() . '_' . $key), + '$id' => ID::custom($database->getInternalId() . '_' . $collection->getInternalId() . '_' . $key), 'key' => $key, 'status' => 'processing', // processing, available, failed, deleting, stuck - 'databaseInternalId' => $db->getInternalId(), + 'databaseInternalId' => $database->getInternalId(), 'databaseId' => $databaseId, 'collectionInternalId' => $collection->getInternalId(), 'collectionId' => $collectionId, @@ -2576,8 +2937,10 @@ function updateAttribute( $validator = new IndexValidator( $collection->getAttribute('attributes'), - $dbForProject->getAdapter()->getMaxIndexLength() + $dbForProject->getAdapter()->getMaxIndexLength(), + $dbForProject->getAdapter()->getInternalIndexesKeys(), ); + if (!$validator->isValid($index)) { throw new Exception(Exception::INDEX_INVALID, $validator->getDescription()); } @@ -2588,11 +2951,11 @@ function updateAttribute( throw new Exception(Exception::INDEX_ALREADY_EXISTS); } - $dbForProject->purgeCachedDocument('database_' . $db->getInternalId(), $collectionId); + $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $collectionId); $queueForDatabase ->setType(DATABASE_TYPE_CREATE_INDEX) - ->setDatabase($db) + ->setDatabase($database) ->setCollection($collection) ->setDocument($index); @@ -2601,7 +2964,7 @@ function updateAttribute( ->setParam('collectionId', $collection->getId()) ->setParam('indexId', $index->getId()) ->setContext('collection', $collection) - ->setContext('database', $db); + ->setContext('database', $database); $response ->setStatusCode(Response::STATUS_CODE_ACCEPTED) @@ -2609,25 +2972,32 @@ function updateAttribute( }); App::get('/v1/databases/:databaseId/collections/:collectionId/indexes') - ->alias('/v1/database/collections/:collectionId/indexes', ['databaseId' => 'default']) + ->alias('/v1/database/collections/:collectionId/indexes') ->desc('List indexes') ->groups(['api', 'database']) ->label('scope', 'collections.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'listIndexes') - ->label('sdk.description', '/docs/references/databases/list-indexes.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_INDEX_LIST) + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('sdk', new Method( + namespace: 'databases', + group: 'indexes', + name: 'listIndexes', + description: '/docs/references/databases/list-indexes.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_INDEX_LIST, + ) + ], + contentType: ContentType::JSON + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('queries', [], new Indexes(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Indexes::ALLOWED_ATTRIBUTES), true) ->inject('response') ->inject('dbForProject') ->action(function (string $databaseId, string $collectionId, array $queries, Response $response, Database $dbForProject) { - /** @var Document $database */ - $database = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); + $database = $dbForProject->getDocument('databases', $databaseId); if ($database->isEmpty()) { throw new Exception(Exception::DATABASE_NOT_FOUND); @@ -2639,13 +3009,13 @@ function updateAttribute( throw new Exception(Exception::COLLECTION_NOT_FOUND); } - try { - $queries = Query::parseQueries($queries); - } catch (QueryException $e) { - throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); - } + $queries = Query::parseQueries($queries); - \array_push($queries, Query::equal('collectionId', [$collectionId]), Query::equal('databaseId', [$databaseId])); + \array_push( + $queries, + Query::equal('databaseId', [$databaseId]), + Query::equal('collectionId', [$collectionId]), + ); /** * Get cursor document if there was a cursor query, we use array_filter and reset for reference $cursor to $queries @@ -2653,9 +3023,15 @@ function updateAttribute( $cursor = \array_filter($queries, function ($query) { return \in_array($query->getMethod(), [Query::TYPE_CURSOR_AFTER, Query::TYPE_CURSOR_BEFORE]); }); + $cursor = reset($cursor); if ($cursor) { + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + $indexId = $cursor->getValue(); $cursorDocument = Authorization::skip(fn () => $dbForProject->find('indexes', [ Query::equal('collectionInternalId', [$collection->getInternalId()]), @@ -2671,37 +3047,53 @@ function updateAttribute( $cursor->setValue($cursorDocument[0]); } - $filterQueries = Query::groupByType($queries)['filters']; + try { + $total = $dbForProject->count('indexes', $queries, APP_LIMIT_COUNT); + $indexes = $dbForProject->find('indexes', $queries); + } catch (OrderException $e) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); + } catch (QueryException $e) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); + } + $response->dynamic(new Document([ - 'total' => $dbForProject->count('indexes', $filterQueries, APP_LIMIT_COUNT), - 'indexes' => $dbForProject->find('indexes', $queries), + 'total' => $total, + 'indexes' => $indexes, ]), Response::MODEL_INDEX_LIST); }); App::get('/v1/databases/:databaseId/collections/:collectionId/indexes/:key') - ->alias('/v1/database/collections/:collectionId/indexes/:key', ['databaseId' => 'default']) + ->alias('/v1/database/collections/:collectionId/indexes/:key') ->desc('Get index') ->groups(['api', 'database']) ->label('scope', 'collections.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'getIndex') - ->label('sdk.description', '/docs/references/databases/get-index.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_INDEX) + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('sdk', new Method( + namespace: 'databases', + group: 'indexes', + name: 'getIndex', + description: '/docs/references/databases/get-index.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_INDEX, + ) + ], + contentType: ContentType::JSON + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('key', null, new Key(), 'Index Key.') ->inject('response') ->inject('dbForProject') ->action(function (string $databaseId, string $collectionId, string $key, Response $response, Database $dbForProject) { - $database = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); if ($database->isEmpty()) { throw new Exception(Exception::DATABASE_NOT_FOUND); } + $collection = $dbForProject->getDocument('database_' . $database->getInternalId(), $collectionId); if ($collection->isEmpty()) { @@ -2709,6 +3101,7 @@ function updateAttribute( } $index = $collection->find('key', $key, 'indexes'); + if (empty($index)) { throw new Exception(Exception::INDEX_NOT_FOUND); } @@ -2718,19 +3111,28 @@ function updateAttribute( App::delete('/v1/databases/:databaseId/collections/:collectionId/indexes/:key') - ->alias('/v1/database/collections/:collectionId/indexes/:key', ['databaseId' => 'default']) + ->alias('/v1/database/collections/:collectionId/indexes/:key') ->desc('Delete index') ->groups(['api', 'database']) ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].collections.[collectionId].indexes.[indexId].update') ->label('audits.event', 'index.delete') ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'deleteIndex') - ->label('sdk.description', '/docs/references/databases/delete-index.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'databases', + group: 'indexes', + name: 'deleteIndex', + description: '/docs/references/databases/delete-index.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('key', '', new Key(), 'Index Key.') @@ -2739,21 +3141,21 @@ function updateAttribute( ->inject('queueForDatabase') ->inject('queueForEvents') ->action(function (string $databaseId, string $collectionId, string $key, Response $response, Database $dbForProject, EventDatabase $queueForDatabase, Event $queueForEvents) { + $database = $dbForProject->getDocument('databases', $databaseId); - $db = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); - - if ($db->isEmpty()) { + if ($database->isEmpty()) { throw new Exception(Exception::DATABASE_NOT_FOUND); } - $collection = $dbForProject->getDocument('database_' . $db->getInternalId(), $collectionId); + + $collection = $dbForProject->getDocument('database_' . $database->getInternalId(), $collectionId); if ($collection->isEmpty()) { throw new Exception(Exception::COLLECTION_NOT_FOUND); } - $index = $dbForProject->getDocument('indexes', $db->getInternalId() . '_' . $collection->getInternalId() . '_' . $key); + $index = $dbForProject->getDocument('indexes', $database->getInternalId() . '_' . $collection->getInternalId() . '_' . $key); - if (empty($index->getId())) { + if ($index->isEmpty()) { throw new Exception(Exception::INDEX_NOT_FOUND); } @@ -2762,11 +3164,11 @@ function updateAttribute( $index = $dbForProject->updateDocument('indexes', $index->getId(), $index->setAttribute('status', 'deleting')); } - $dbForProject->purgeCachedDocument('database_' . $db->getInternalId(), $collectionId); + $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $collectionId); $queueForDatabase ->setType(DATABASE_TYPE_DELETE_INDEX) - ->setDatabase($db) + ->setDatabase($database) ->setCollection($collection) ->setDocument($index); @@ -2775,114 +3177,201 @@ function updateAttribute( ->setParam('collectionId', $collection->getId()) ->setParam('indexId', $index->getId()) ->setContext('collection', $collection) - ->setContext('database', $db) + ->setContext('database', $database) ->setPayload($response->output($index, Response::MODEL_INDEX)); $response->noContent(); }); App::post('/v1/databases/:databaseId/collections/:collectionId/documents') - ->alias('/v1/database/collections/:collectionId/documents', ['databaseId' => 'default']) + ->alias('/v1/database/collections/:collectionId/documents') ->desc('Create document') ->groups(['api', 'database']) - ->label('event', 'databases.[databaseId].collections.[collectionId].documents.[documentId].create') ->label('scope', 'documents.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('audits.event', 'document.create') ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') ->label('abuse-key', 'ip:{ip},method:{method},url:{url},userId:{userId}') ->label('abuse-limit', APP_LIMIT_WRITE_RATE_DEFAULT * 2) ->label('abuse-time', APP_LIMIT_WRITE_RATE_PERIOD_DEFAULT) - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'createDocument') - ->label('sdk.description', '/docs/references/databases/create-document.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_DOCUMENT) - ->label('sdk.offline.model', '/databases/{databaseId}/collections/{collectionId}/documents') - ->label('sdk.offline.key', '{documentId}') + ->label( + 'sdk', + // Using multiple methods to abstract the complexity for SDK users + [ + new Method( + namespace: 'databases', + group: 'documents', + name: 'createDocument', + description: '/docs/references/databases/create-document.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_DOCUMENT, + ) + ], + contentType: ContentType::JSON, + parameters: [ + new Parameter('databaseId', optional: false), + new Parameter('collectionId', optional: false), + new Parameter('documentId', optional: false), + new Parameter('data', optional: false), + new Parameter('permissions', optional: true), + ] + ), + // new Method( + // namespace: 'databases', + // group: 'documents', + // name: 'createDocuments', + // description: '/docs/references/databases/create-documents.md', + // auth: [AuthType::KEY], + // responses: [ + // new SDKResponse( + // code: Response::STATUS_CODE_CREATED, + // model: Response::MODEL_DOCUMENT_LIST, + // ) + // ], + // contentType: ContentType::JSON, + // parameters: [ + // new Parameter('databaseId', optional: false), + // new Parameter('collectionId', optional: false), + // new Parameter('documents', optional: false), + // ] + // ) + ] + ) ->param('databaseId', '', new UID(), 'Database ID.') - ->param('documentId', '', new CustomId(), 'Document ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') + ->param('documentId', '', new CustomId(), 'Document ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.', true) ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). Make sure to define attributes before creating documents.') - ->param('data', [], new JSON(), 'Document data as JSON object.') + ->param('data', [], new JSON(), 'Document data as JSON object.', true) ->param('permissions', null, new Permissions(APP_LIMIT_ARRAY_PARAMS_SIZE, [Database::PERMISSION_READ, Database::PERMISSION_UPDATE, Database::PERMISSION_DELETE, Database::PERMISSION_WRITE]), 'An array of permissions strings. By default, only the current user is granted all permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).', true) + ->param('documents', [], fn (array $plan) => new ArrayList(new JSON(), $plan['databasesBatchSize'] ?? APP_LIMIT_DATABASE_BATCH), 'Array of documents data as JSON objects.', true, ['plan']) ->inject('response') ->inject('dbForProject') ->inject('user') ->inject('queueForEvents') - ->inject('mode') - ->action(function (string $databaseId, string $documentId, string $collectionId, string|array $data, ?array $permissions, Response $response, Database $dbForProject, Document $user, Event $queueForEvents, string $mode) { - - $data = (\is_string($data)) ? \json_decode($data, true) : $data; // Cast to JSON array + ->inject('queueForStatsUsage') + ->action(function (string $databaseId, ?string $documentId, string $collectionId, string|array|null $data, ?array $permissions, ?array $documents, Response $response, Database $dbForProject, Document $user, Event $queueForEvents, StatsUsage $queueForStatsUsage) { + $data = \is_string($data) + ? \json_decode($data, true) + : $data; - if (empty($data)) { + /** + * Determine which internal path to call, single or bulk + */ + if (empty($data) && empty($documents)) { + // No single or bulk documents provided throw new Exception(Exception::DOCUMENT_MISSING_DATA); } - - if (isset($data['$id'])) { - throw new Exception(Exception::DOCUMENT_INVALID_STRUCTURE, '$id is not allowed for creating new documents, try update instead'); + if (!empty($data) && !empty($documents)) { + // Both single and bulk documents provided + throw new Exception(Exception::GENERAL_BAD_REQUEST, 'You can only send one of the following parameters: data, documents'); + } + if (!empty($data) && empty($documentId)) { + // Single document provided without document ID + throw new Exception(Exception::DOCUMENT_MISSING_DATA, 'Document ID is required when creating a single document'); + } + if (!empty($documents) && !empty($documentId)) { + // Bulk documents provided with document ID + throw new Exception(Exception::GENERAL_BAD_REQUEST, 'Param "documentId" is disallowed when creating multiple documents, set "$id" in each document instead'); + } + if (!empty($documents) && !empty($permissions)) { + // Bulk documents provided with permissions + throw new Exception(Exception::GENERAL_BAD_REQUEST, 'Param "permissions" is disallowed when creating multiple documents, set "$permissions" in each document instead'); } - $database = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); + $isBulk = true; + if (!empty($data)) { + // Single document provided, convert to single item array + // But remember that it was single to respond with a single document + $isBulk = false; + $documents = [$data]; + } $isAPIKey = Auth::isAppUser(Authorization::getRoles()); $isPrivilegedUser = Auth::isPrivilegedUser(Authorization::getRoles()); + if ($isBulk && !$isAPIKey && !$isPrivilegedUser) { + throw new Exception(Exception::GENERAL_UNAUTHORIZED_SCOPE); + } + + $database = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); if ($database->isEmpty() || (!$database->getAttribute('enabled', false) && !$isAPIKey && !$isPrivilegedUser)) { throw new Exception(Exception::DATABASE_NOT_FOUND); } $collection = Authorization::skip(fn () => $dbForProject->getDocument('database_' . $database->getInternalId(), $collectionId)); - if ($collection->isEmpty() || (!$collection->getAttribute('enabled', false) && !$isAPIKey && !$isPrivilegedUser)) { throw new Exception(Exception::COLLECTION_NOT_FOUND); } - $allowedPermissions = [ - Database::PERMISSION_READ, - Database::PERMISSION_UPDATE, - Database::PERMISSION_DELETE, - ]; + $hasRelationships = \array_filter( + $collection->getAttribute('attributes', []), + fn ($attribute) => $attribute->getAttribute('type') === Database::VAR_RELATIONSHIP + ); - // Map aggregate permissions to into the set of individual permissions they represent. - $permissions = Permission::aggregate($permissions, $allowedPermissions); + if ($isBulk && $hasRelationships) { + throw new Exception(Exception::GENERAL_BAD_REQUEST, 'Bulk create is not supported for collections with relationship attributes'); + } - // Add permissions for current the user if none were provided. - if (\is_null($permissions)) { - $permissions = []; - if (!empty($user->getId())) { - foreach ($allowedPermissions as $permission) { - $permissions[] = (new Permission($permission, 'user', $user->getId()))->toString(); + $setPermissions = function (Document $document, ?array $permissions) use ($user, $isAPIKey, $isPrivilegedUser, $isBulk) { + $allowedPermissions = [ + Database::PERMISSION_READ, + Database::PERMISSION_UPDATE, + Database::PERMISSION_DELETE, + ]; + + // If bulk, we need to validate permissions explicitly per document + if ($isBulk) { + $permissions = $document['$permissions'] ?? null; + if (!empty($permissions)) { + $validator = new Permissions(); + if (!$validator->isValid($permissions)) { + throw new Exception(Exception::GENERAL_BAD_REQUEST, $validator->getDescription()); + } } } - } - // Users can only manage their own roles, API keys and Admin users can manage any - if (!$isAPIKey && !$isPrivilegedUser) { - foreach (Database::PERMISSIONS as $type) { - foreach ($permissions as $permission) { - $permission = Permission::parse($permission); - if ($permission->getPermission() != $type) { - continue; + $permissions = Permission::aggregate($permissions, $allowedPermissions); + + // Add permissions for current the user if none were provided. + if (\is_null($permissions)) { + $permissions = []; + if (!empty($user->getId())) { + foreach ($allowedPermissions as $permission) { + $permissions[] = (new Permission($permission, 'user', $user->getId()))->toString(); } - $role = (new Role( - $permission->getRole(), - $permission->getIdentifier(), - $permission->getDimension() - ))->toString(); - if (!Authorization::isRole($role)) { - throw new Exception(Exception::USER_UNAUTHORIZED, 'Permissions must be one of: (' . \implode(', ', Authorization::getRoles()) . ')'); + } + } + + // Users can only manage their own roles, API keys and Admin users can manage any + if (!$isAPIKey && !$isPrivilegedUser) { + foreach (Database::PERMISSIONS as $type) { + foreach ($permissions as $permission) { + $permission = Permission::parse($permission); + if ($permission->getPermission() != $type) { + continue; + } + $role = (new Role( + $permission->getRole(), + $permission->getIdentifier(), + $permission->getDimension() + ))->toString(); + if (!Authorization::isRole($role)) { + throw new Exception(Exception::USER_UNAUTHORIZED, 'Permissions must be one of: (' . \implode(', ', Authorization::getRoles()) . ')'); + } } } } - } - $data['$collection'] = $collection->getId(); // Adding this param to make API easier for developers - $data['$id'] = $documentId == 'unique()' ? ID::unique() : $documentId; - $data['$permissions'] = $permissions; - $document = new Document($data); + $document->setAttribute('$permissions', $permissions); + }; + + $operations = 0; + + $checkPermissions = function (Document $collection, Document $document, string $permission) use (&$checkPermissions, $dbForProject, $database, &$operations) { + $operations++; - $checkPermissions = function (Document $collection, Document $document, string $permission) use (&$checkPermissions, $dbForProject, $database) { $documentSecurity = $collection->getAttribute('documentSecurity', false); $validator = new Authorization($permission); @@ -2962,18 +3451,55 @@ function updateAttribute( } }; - $checkPermissions($collection, $document, Database::PERMISSION_CREATE); + $documents = \array_map(function ($document) use ($collection, $permissions, $checkPermissions, $isBulk, $documentId, $setPermissions) { + $document['$collection'] = $collection->getId(); + + // Determine the source ID depending on whether it's a bulk operation. + $sourceId = $isBulk + ? ($document['$id'] ?? ID::unique()) + : $documentId; + + // If bulk, we need to validate ID explicitly + if ($isBulk) { + $validator = new CustomId(); + if (!$validator->isValid($sourceId)) { + throw new Exception(Exception::GENERAL_BAD_REQUEST, $validator->getDescription()); + } + } + + // Assign a unique ID if needed, otherwise use the provided ID. + $document['$id'] = $sourceId === 'unique()' ? ID::unique() : $sourceId; + $document = new Document($document); + $setPermissions($document, $permissions); + $checkPermissions($collection, $document, Database::PERMISSION_CREATE); + + return $document; + }, $documents); try { - $document = $dbForProject->createDocument('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), $document); - } catch (StructureException $exception) { - throw new Exception(Exception::DOCUMENT_INVALID_STRUCTURE, $exception->getMessage()); - } catch (DuplicateException $exception) { + $dbForProject->createDocuments( + 'database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), + $documents + ); + } catch (DuplicateException) { throw new Exception(Exception::DOCUMENT_ALREADY_EXISTS); + } catch (NotFoundException) { + throw new Exception(Exception::COLLECTION_NOT_FOUND); + } catch (RelationshipException $e) { + throw new Exception(Exception::RELATIONSHIP_VALUE_INVALID, $e->getMessage()); + } catch (StructureException $e) { + throw new Exception(Exception::DOCUMENT_INVALID_STRUCTURE, $e->getMessage()); } + $queueForEvents + ->setParam('databaseId', $databaseId) + ->setParam('collectionId', $collection->getId()) + ->setContext('collection', $collection) + ->setContext('database', $database); + // Add $collectionId and $databaseId for all documents $processDocument = function (Document $collection, Document $document) use (&$processDocument, $dbForProject, $database) { + $document->removeAttribute('$collection'); $document->setAttribute('$databaseId', $database->getId()); $document->setAttribute('$collectionId', $collection->getId()); @@ -3005,60 +3531,71 @@ function updateAttribute( } }; - $processDocument($collection, $document); + foreach ($documents as $document) { + $processDocument($collection, $document); + } - $response - ->setStatusCode(Response::STATUS_CODE_CREATED) - ->dynamic($document, Response::MODEL_DOCUMENT); + $queueForStatsUsage + ->addMetric(METRIC_DATABASES_OPERATIONS_WRITES, \max(1, $operations)) + ->addMetric(str_replace('{databaseInternalId}', $database->getInternalId(), METRIC_DATABASE_ID_OPERATIONS_WRITES), \max(1, $operations)); // per collection - $relationships = \array_map( - fn ($document) => $document->getAttribute('key'), - \array_filter( - $collection->getAttribute('attributes', []), - fn ($attribute) => $attribute->getAttribute('type') === Database::VAR_RELATIONSHIP - ) - ); + $response->setStatusCode(Response::STATUS_CODE_CREATED); + + if ($isBulk) { + $response->dynamic(new Document([ + 'total' => count($documents), + 'documents' => $documents + ]), Response::MODEL_DOCUMENT_LIST); + + return; + } $queueForEvents - ->setParam('databaseId', $databaseId) - ->setParam('collectionId', $collection->getId()) - ->setParam('documentId', $document->getId()) - ->setContext('collection', $collection) - ->setContext('database', $database) - ->setPayload($response->getPayload(), sensitive: $relationships); + ->setParam('documentId', $documents[0]->getId()) + ->setEvent('databases.[databaseId].collections.[collectionId].documents.[documentId].create'); + $response->dynamic( + $documents[0], + Response::MODEL_DOCUMENT + ); }); App::get('/v1/databases/:databaseId/collections/:collectionId/documents') - ->alias('/v1/database/collections/:collectionId/documents', ['databaseId' => 'default']) + ->alias('/v1/database/collections/:collectionId/documents') ->desc('List documents') ->groups(['api', 'database']) ->label('scope', 'documents.read') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'listDocuments') - ->label('sdk.description', '/docs/references/databases/list-documents.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_DOCUMENT_LIST) - ->label('sdk.offline.model', '/databases/{databaseId}/collections/{collectionId}/documents') + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('sdk', new Method( + namespace: 'databases', + group: 'documents', + name: 'listDocuments', + description: '/docs/references/databases/list-documents.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_DOCUMENT_LIST, + ) + ], + contentType: ContentType::JSON + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('queries', [], new ArrayList(new Text(APP_LIMIT_ARRAY_ELEMENT_SIZE), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long.', true) ->inject('response') ->inject('dbForProject') - ->inject('mode') - ->action(function (string $databaseId, string $collectionId, array $queries, Response $response, Database $dbForProject, string $mode) { - $database = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); + ->inject('queueForStatsUsage') + ->action(function (string $databaseId, string $collectionId, array $queries, Response $response, Database $dbForProject, StatsUsage $queueForStatsUsage) { $isAPIKey = Auth::isAppUser(Authorization::getRoles()); $isPrivilegedUser = Auth::isPrivilegedUser(Authorization::getRoles()); + $database = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); if ($database->isEmpty() || (!$database->getAttribute('enabled', false) && !$isAPIKey && !$isPrivilegedUser)) { throw new Exception(Exception::DATABASE_NOT_FOUND); } $collection = Authorization::skip(fn () => $dbForProject->getDocument('database_' . $database->getInternalId(), $collectionId)); - if ($collection->isEmpty() || (!$collection->getAttribute('enabled', false) && !$isAPIKey && !$isPrivilegedUser)) { throw new Exception(Exception::COLLECTION_NOT_FOUND); } @@ -3079,6 +3616,11 @@ function updateAttribute( $cursor = \reset($cursor); if ($cursor) { + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + $documentId = $cursor->getValue(); $cursorDocument = Authorization::skip(fn () => $dbForProject->getDocument('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), $documentId)); @@ -3089,23 +3631,25 @@ function updateAttribute( $cursor->setValue($cursorDocument); } - try { $documents = $dbForProject->find('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), $queries); $total = $dbForProject->count('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), $queries, APP_LIMIT_COUNT); - } catch (AuthorizationException) { - throw new Exception(Exception::USER_UNAUTHORIZED); + } catch (OrderException $e) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); } catch (QueryException $e) { throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); } + $operations = 0; + // Add $collectionId and $databaseId for all documents - $processDocument = (function (Document $collection, Document $document) use (&$processDocument, $dbForProject, $database): bool { + $processDocument = (function (Document $collection, Document $document) use (&$processDocument, $dbForProject, $database, &$operations): bool { if ($document->isEmpty()) { return false; } - $document->removeAttribute('$collection'); + $operations++; + $document->setAttribute('$databaseId', $database->getId()); $document->setAttribute('$collectionId', $collection->getId()); @@ -3118,8 +3662,13 @@ function updateAttribute( $related = $document->getAttribute($relationship->getAttribute('key')); if (empty($related)) { + if (\in_array(\gettype($related), ['array', 'object'])) { + $operations++; + } + continue; } + if (!\is_array($related)) { $relations = [$related]; } else { @@ -3127,6 +3676,7 @@ function updateAttribute( } $relatedCollectionId = $relationship->getAttribute('relatedCollection'); + // todo: Use local cache for this getDocument $relatedCollection = Authorization::skip(fn () => $dbForProject->getDocument('database_' . $database->getInternalId(), $relatedCollectionId)); foreach ($relations as $index => $doc) { @@ -3151,6 +3701,10 @@ function updateAttribute( $processDocument($collection, $document); } + $queueForStatsUsage + ->addMetric(METRIC_DATABASES_OPERATIONS_READS, \max(1, $operations)) + ->addMetric(str_replace('{databaseInternalId}', $database->getInternalId(), METRIC_DATABASE_ID_OPERATIONS_READS), \max(1, $operations)); + $select = \array_reduce($queries, function ($result, $query) { return $result || ($query->getMethod() === Query::TYPE_SELECT); }, false); @@ -3185,47 +3739,54 @@ function updateAttribute( }); App::get('/v1/databases/:databaseId/collections/:collectionId/documents/:documentId') - ->alias('/v1/database/collections/:collectionId/documents/:documentId', ['databaseId' => 'default']) + ->alias('/v1/database/collections/:collectionId/documents/:documentId') ->desc('Get document') ->groups(['api', 'database']) ->label('scope', 'documents.read') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'getDocument') - ->label('sdk.description', '/docs/references/databases/get-document.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_DOCUMENT) - ->label('sdk.offline.model', '/databases/{databaseId}/collections/{collectionId}/documents') - ->label('sdk.offline.key', '{documentId}') + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('sdk', new Method( + namespace: 'databases', + group: 'documents', + name: 'getDocument', + description: '/docs/references/databases/get-document.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_DOCUMENT, + ) + ], + contentType: ContentType::JSON + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('documentId', '', new UID(), 'Document ID.') ->param('queries', [], new ArrayList(new Text(APP_LIMIT_ARRAY_ELEMENT_SIZE), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long.', true) ->inject('response') ->inject('dbForProject') - ->inject('mode') - ->action(function (string $databaseId, string $collectionId, string $documentId, array $queries, Response $response, Database $dbForProject, string $mode) { - $database = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); - + ->inject('queueForStatsUsage') + ->action(function (string $databaseId, string $collectionId, string $documentId, array $queries, Response $response, Database $dbForProject, StatsUsage $queueForStatsUsage) { $isAPIKey = Auth::isAppUser(Authorization::getRoles()); $isPrivilegedUser = Auth::isPrivilegedUser(Authorization::getRoles()); + $database = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); if ($database->isEmpty() || (!$database->getAttribute('enabled', false) && !$isAPIKey && !$isPrivilegedUser)) { throw new Exception(Exception::DATABASE_NOT_FOUND); } $collection = Authorization::skip(fn () => $dbForProject->getDocument('database_' . $database->getInternalId(), $collectionId)); - if ($collection->isEmpty() || (!$collection->getAttribute('enabled', false) && !$isAPIKey && !$isPrivilegedUser)) { throw new Exception(Exception::COLLECTION_NOT_FOUND); } try { $queries = Query::parseQueries($queries); + } catch (QueryException $e) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); + } + + try { $document = $dbForProject->getDocument('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), $documentId, $queries); - } catch (AuthorizationException) { - throw new Exception(Exception::USER_UNAUTHORIZED); } catch (QueryException $e) { throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); } @@ -3234,12 +3795,16 @@ function updateAttribute( throw new Exception(Exception::DOCUMENT_NOT_FOUND); } + $operations = 0; + // Add $collectionId and $databaseId for all documents - $processDocument = function (Document $collection, Document $document) use (&$processDocument, $dbForProject, $database) { + $processDocument = function (Document $collection, Document $document) use (&$processDocument, $dbForProject, $database, &$operations) { if ($document->isEmpty()) { return; } + $operations++; + $document->setAttribute('$databaseId', $database->getId()); $document->setAttribute('$collectionId', $collection->getId()); @@ -3252,8 +3817,13 @@ function updateAttribute( $related = $document->getAttribute($relationship->getAttribute('key')); if (empty($related)) { + if (\in_array(\gettype($related), ['array', 'object'])) { + $operations++; + } + continue; } + if (!\is_array($related)) { $related = [$related]; } @@ -3273,21 +3843,33 @@ function updateAttribute( $processDocument($collection, $document); + $queueForStatsUsage + ->addMetric(METRIC_DATABASES_OPERATIONS_READS, \max(1, $operations)) + ->addMetric(str_replace('{databaseInternalId}', $database->getInternalId(), METRIC_DATABASE_ID_OPERATIONS_READS), \max(1, $operations)); + $response->dynamic($document, Response::MODEL_DOCUMENT); }); App::get('/v1/databases/:databaseId/collections/:collectionId/documents/:documentId/logs') - ->alias('/v1/database/collections/:collectionId/documents/:documentId/logs', ['databaseId' => 'default']) + ->alias('/v1/database/collections/:collectionId/documents/:documentId/logs') ->desc('List document logs') ->groups(['api', 'database']) ->label('scope', 'documents.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'listDocumentLogs') - ->label('sdk.description', '/docs/references/databases/get-document-logs.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_LOG_LIST) + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('sdk', new Method( + namespace: 'databases', + group: 'logs', + name: 'listDocumentLogs', + description: '/docs/references/databases/get-document-logs.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_LOG_LIST, + ) + ], + contentType: ContentType::JSON, + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID.') ->param('documentId', '', new UID(), 'Document ID.') @@ -3297,15 +3879,12 @@ function updateAttribute( ->inject('locale') ->inject('geodb') ->action(function (string $databaseId, string $collectionId, string $documentId, array $queries, Response $response, Database $dbForProject, Locale $locale, Reader $geodb) { - $database = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); - if ($database->isEmpty()) { throw new Exception(Exception::DATABASE_NOT_FOUND); } $collection = $dbForProject->getDocument('database_' . $database->getInternalId(), $collectionId); - if ($collection->isEmpty()) { throw new Exception(Exception::COLLECTION_NOT_FOUND); } @@ -3322,13 +3901,15 @@ function updateAttribute( throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); } - $grouped = Query::groupByType($queries); - $limit = $grouped['limit'] ?? APP_LIMIT_COUNT; - $offset = $grouped['offset'] ?? 0; + // Temp fix for logs + $queries[] = Query::or([ + Query::greaterThan('$createdAt', DateTime::format(new \DateTime('2025-02-26T01:30+00:00'))), + Query::lessThan('$createdAt', DateTime::format(new \DateTime('2025-02-13T00:00+00:00'))), + ]); $audit = new Audit($dbForProject); $resource = 'database/' . $databaseId . '/collection/' . $collectionId . '/document/' . $document->getId(); - $logs = $audit->getLogsByResource($resource, $limit, $offset); + $logs = $audit->getLogsByResource($resource, $queries); $output = []; @@ -3374,32 +3955,39 @@ function updateAttribute( $output[$i]['countryName'] = $locale->getText('locale.country.unknown'); } } + $response->dynamic(new Document([ - 'total' => $audit->countLogsByResource($resource), + 'total' => $audit->countLogsByResource($resource, $queries), 'logs' => $output, ]), Response::MODEL_LOG_LIST); }); App::patch('/v1/databases/:databaseId/collections/:collectionId/documents/:documentId') - ->alias('/v1/database/collections/:collectionId/documents/:documentId', ['databaseId' => 'default']) + ->alias('/v1/database/collections/:collectionId/documents/:documentId') ->desc('Update document') ->groups(['api', 'database']) ->label('event', 'databases.[databaseId].collections.[collectionId].documents.[documentId].update') ->label('scope', 'documents.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('audits.event', 'document.update') ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}/document/{response.$id}') ->label('abuse-key', 'ip:{ip},method:{method},url:{url},userId:{userId}') ->label('abuse-limit', APP_LIMIT_WRITE_RATE_DEFAULT * 2) ->label('abuse-time', APP_LIMIT_WRITE_RATE_PERIOD_DEFAULT) - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'updateDocument') - ->label('sdk.description', '/docs/references/databases/update-document.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_DOCUMENT) - ->label('sdk.offline.model', '/databases/{databaseId}/collections/{collectionId}/documents') - ->label('sdk.offline.key', '{documentId}') + ->label('sdk', new Method( + namespace: 'databases', + group: 'documents', + name: 'updateDocument', + description: '/docs/references/databases/update-document.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_DOCUMENT, + ) + ], + contentType: ContentType::JSON + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID.') ->param('documentId', '', new UID(), 'Document ID.') @@ -3409,34 +3997,29 @@ function updateAttribute( ->inject('response') ->inject('dbForProject') ->inject('queueForEvents') - ->inject('mode') - ->action(function (string $databaseId, string $collectionId, string $documentId, string|array $data, ?array $permissions, ?\DateTime $requestTimestamp, Response $response, Database $dbForProject, Event $queueForEvents, string $mode) { - + ->inject('queueForStatsUsage') + ->action(function (string $databaseId, string $collectionId, string $documentId, string|array $data, ?array $permissions, ?\DateTime $requestTimestamp, Response $response, Database $dbForProject, Event $queueForEvents, StatsUsage $queueForStatsUsage) { $data = (\is_string($data)) ? \json_decode($data, true) : $data; // Cast to JSON array if (empty($data) && \is_null($permissions)) { throw new Exception(Exception::DOCUMENT_MISSING_PAYLOAD); } - $database = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); - $isAPIKey = Auth::isAppUser(Authorization::getRoles()); $isPrivilegedUser = Auth::isPrivilegedUser(Authorization::getRoles()); + $database = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); if ($database->isEmpty() || (!$database->getAttribute('enabled', false) && !$isAPIKey && !$isPrivilegedUser)) { throw new Exception(Exception::DATABASE_NOT_FOUND); } $collection = Authorization::skip(fn () => $dbForProject->getDocument('database_' . $database->getInternalId(), $collectionId)); - if ($collection->isEmpty() || (!$collection->getAttribute('enabled', false) && !$isAPIKey && !$isPrivilegedUser)) { throw new Exception(Exception::COLLECTION_NOT_FOUND); } // Read permission should not be required for update - /** @var Document $document */ $document = Authorization::skip(fn () => $dbForProject->getDocument('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), $documentId)); - if ($document->isEmpty()) { throw new Exception(Exception::DOCUMENT_NOT_FOUND); } @@ -3477,7 +4060,12 @@ function updateAttribute( $data['$permissions'] = $permissions; $newDocument = new Document($data); - $setCollection = (function (Document $collection, Document $document) use (&$setCollection, $dbForProject, $database) { + $operations = 0; + + $setCollection = (function (Document $collection, Document $document) use (&$setCollection, $dbForProject, $database, &$operations) { + + $operations++; + $relationships = \array_filter( $collection->getAttribute('attributes', []), fn ($attribute) => $attribute->getAttribute('type') === Database::VAR_RELATIONSHIP @@ -3545,21 +4133,24 @@ function updateAttribute( $setCollection($collection, $newDocument); + $queueForStatsUsage + ->addMetric(METRIC_DATABASES_OPERATIONS_WRITES, \max(1, $operations)) + ->addMetric(str_replace('{databaseInternalId}', $database->getInternalId(), METRIC_DATABASE_ID_OPERATIONS_WRITES), \max(1, $operations)); + try { - $document = $dbForProject->withRequestTimestamp( - $requestTimestamp, - fn () => $dbForProject->updateDocument( - 'database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), - $document->getId(), - $newDocument - ) + $document = $dbForProject->updateDocument( + 'database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), + $document->getId(), + $newDocument ); - } catch (AuthorizationException) { - throw new Exception(Exception::USER_UNAUTHORIZED); + } catch (ConflictException) { + throw new Exception(Exception::DOCUMENT_UPDATE_CONFLICT); } catch (DuplicateException) { throw new Exception(Exception::DOCUMENT_ALREADY_EXISTS); - } catch (StructureException $exception) { - throw new Exception(Exception::DOCUMENT_INVALID_STRUCTURE, $exception->getMessage()); + } catch (RelationshipException $e) { + throw new Exception(Exception::RELATIONSHIP_VALUE_INVALID, $e->getMessage()); + } catch (StructureException $e) { + throw new Exception(Exception::DOCUMENT_INVALID_STRUCTURE, $e->getMessage()); } // Add $collectionId and $databaseId for all documents @@ -3597,8 +4188,6 @@ function updateAttribute( $processDocument($collection, $document); - $response->dynamic($document, Response::MODEL_DOCUMENT); - $relationships = \array_map( fn ($document) => $document->getAttribute('key'), \array_filter( @@ -3614,70 +4203,102 @@ function updateAttribute( ->setContext('collection', $collection) ->setContext('database', $database) ->setPayload($response->getPayload(), sensitive: $relationships); + + $response->dynamic($document, Response::MODEL_DOCUMENT); }); -App::delete('/v1/databases/:databaseId/collections/:collectionId/documents/:documentId') - ->alias('/v1/database/collections/:collectionId/documents/:documentId', ['databaseId' => 'default']) - ->desc('Delete document') +App::put('/v1/databases/:databaseId/collections/:collectionId/documents/:documentId') + ->desc('Upsert document') ->groups(['api', 'database']) + ->label('event', 'databases.[databaseId].collections.[collectionId].documents.[documentId].upsert') ->label('scope', 'documents.write') - ->label('event', 'databases.[databaseId].collections.[collectionId].documents.[documentId].delete') - ->label('audits.event', 'document.delete') - ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}/document/{request.documentId}') + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('audits.event', 'document.upsert') + ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}/document/{response.$id}') ->label('abuse-key', 'ip:{ip},method:{method},url:{url},userId:{userId}') - ->label('abuse-limit', APP_LIMIT_WRITE_RATE_DEFAULT) + ->label('abuse-limit', APP_LIMIT_WRITE_RATE_DEFAULT * 2) ->label('abuse-time', APP_LIMIT_WRITE_RATE_PERIOD_DEFAULT) - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'deleteDocument') - ->label('sdk.description', '/docs/references/databases/delete-document.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) - ->label('sdk.offline.model', '/databases/{databaseId}/collections/{collectionId}/documents') - ->label('sdk.offline.key', '{documentId}') + ->label('sdk', new Method( + namespace: 'databases', + group: 'documents', + name: 'upsertDocument', + description: '/docs/references/databases/upsert-document.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_DOCUMENT, + ) + ], + contentType: ContentType::JSON + )) ->param('databaseId', '', new UID(), 'Database ID.') - ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') - ->param('documentId', '', new UID(), 'Document ID.') + ->param('collectionId', '', new UID(), 'Collection ID.') + ->param('documentId', '', new CustomId(), 'Document ID.') + ->param('data', [], new JSON(), 'Document data as JSON object. Include all required attributes of the document to be created or updated.') + ->param('permissions', null, new Permissions(APP_LIMIT_ARRAY_PARAMS_SIZE, [Database::PERMISSION_READ, Database::PERMISSION_UPDATE, Database::PERMISSION_DELETE, Database::PERMISSION_WRITE]), 'An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).', true) ->inject('requestTimestamp') ->inject('response') ->inject('dbForProject') - ->inject('queueForDeletes') ->inject('queueForEvents') - ->inject('mode') - ->action(function (string $databaseId, string $collectionId, string $documentId, ?\DateTime $requestTimestamp, Response $response, Database $dbForProject, Delete $queueForDeletes, Event $queueForEvents, string $mode) { - $database = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); + ->inject('queueForStatsUsage') + ->action(function (string $databaseId, string $collectionId, string $documentId, string|array $data, ?array $permissions, ?\DateTime $requestTimestamp, Response $response, Database $dbForProject, Event $queueForEvents, StatsUsage $queueForStatsUsage) { + $data = (\is_string($data)) ? \json_decode($data, true) : $data; // Cast to JSON array + + if (empty($data) && \is_null($permissions)) { + throw new Exception(Exception::DOCUMENT_MISSING_PAYLOAD); + } $isAPIKey = Auth::isAppUser(Authorization::getRoles()); $isPrivilegedUser = Auth::isPrivilegedUser(Authorization::getRoles()); + $database = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); if ($database->isEmpty() || (!$database->getAttribute('enabled', false) && !$isAPIKey && !$isPrivilegedUser)) { throw new Exception(Exception::DATABASE_NOT_FOUND); } $collection = Authorization::skip(fn () => $dbForProject->getDocument('database_' . $database->getInternalId(), $collectionId)); - if ($collection->isEmpty() || (!$collection->getAttribute('enabled', false) && !$isAPIKey && !$isPrivilegedUser)) { throw new Exception(Exception::COLLECTION_NOT_FOUND); } - // Read permission should not be required for delete - $document = Authorization::skip(fn () => $dbForProject->getDocument('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), $documentId)); + // Map aggregate permissions into the multiple permissions they represent. + $permissions = Permission::aggregate($permissions, [ + Database::PERMISSION_READ, + Database::PERMISSION_UPDATE, + Database::PERMISSION_DELETE, + ]); - if ($document->isEmpty()) { - throw new Exception(Exception::DOCUMENT_NOT_FOUND); + // Users can only manage their own roles, API keys and Admin users can manage any + $roles = Authorization::getRoles(); + if (!$isAPIKey && !$isPrivilegedUser && !\is_null($permissions)) { + foreach (Database::PERMISSIONS as $type) { + foreach ($permissions as $permission) { + $permission = Permission::parse($permission); + if ($permission->getPermission() != $type) { + continue; + } + $role = (new Role( + $permission->getRole(), + $permission->getIdentifier(), + $permission->getDimension() + ))->toString(); + if (!Authorization::isRole($role)) { + throw new Exception(Exception::USER_UNAUTHORIZED, 'Permissions must be one of: (' . \implode(', ', $roles) . ')'); + } + } + } } - $dbForProject->withRequestTimestamp($requestTimestamp, function () use ($dbForProject, $database, $collection, $documentId) { - $dbForProject->deleteDocument( - 'database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), - $documentId - ); - }); + $data['$id'] = $documentId; + $data['$permissions'] = $permissions; + $newDocument = new Document($data); - // Add $collectionId and $databaseId for all documents - $processDocument = function (Document $collection, Document $document) use (&$processDocument, $dbForProject, $database) { - $document->setAttribute('$databaseId', $database->getId()); - $document->setAttribute('$collectionId', $collection->getId()); + $operations = 0; + + $setCollection = (function (Document $collection, Document $document) use (&$setCollection, $dbForProject, $database, &$operations) { + + $operations++; $relationships = \array_filter( $collection->getAttribute('attributes', []), @@ -3690,8 +4311,13 @@ function updateAttribute( if (empty($related)) { continue; } - if (!\is_array($related)) { - $related = [$related]; + + $isList = \is_array($related) && \array_values($related) === $related; + + if ($isList) { + $relations = $related; + } else { + $relations = [$related]; } $relatedCollectionId = $relationship->getAttribute('relatedCollection'); @@ -3699,15 +4325,106 @@ function updateAttribute( fn () => $dbForProject->getDocument('database_' . $database->getInternalId(), $relatedCollectionId) ); - foreach ($related as $relation) { - if ($relation instanceof Document) { - $processDocument($relatedCollection, $relation); + foreach ($relations as &$relation) { + // If the relation is an array it can be either update or create a child document. + if ( + \is_array($relation) + && \array_values($relation) !== $relation + && !isset($relation['$id']) + ) { + $relation['$id'] = ID::unique(); + $relation = new Document($relation); } - } - } - }; + if ($relation instanceof Document) { + $oldDocument = Authorization::skip(fn () => $dbForProject->getDocument( + 'database_' . $database->getInternalId() . '_collection_' . $relatedCollection->getInternalId(), + $relation->getId() + )); + $relation->removeAttribute('$collectionId'); + $relation->removeAttribute('$databaseId'); + // Attribute $collection is required for Utopia. + $relation->setAttribute( + '$collection', + 'database_' . $database->getInternalId() . '_collection_' . $relatedCollection->getInternalId() + ); - $processDocument($collection, $document); + if ($oldDocument->isEmpty()) { + if (isset($relation['$id']) && $relation['$id'] === 'unique()') { + $relation['$id'] = ID::unique(); + } + } + $setCollection($relatedCollection, $relation); + } + } + + if ($isList) { + $document->setAttribute($relationship->getAttribute('key'), \array_values($relations)); + } else { + $document->setAttribute($relationship->getAttribute('key'), \reset($relations)); + } + } + }); + + $setCollection($collection, $newDocument); + + $queueForStatsUsage + ->addMetric(METRIC_DATABASES_OPERATIONS_WRITES, \max(1, $operations)) + ->addMetric(str_replace('{databaseInternalId}', $database->getInternalId(), METRIC_DATABASE_ID_OPERATIONS_WRITES), \max(1, $operations)); + + $upserted = []; + try { + $modified = $dbForProject->createOrUpdateDocuments( + 'database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), + [$newDocument], + onNext: function (Document $document) use (&$upserted) { + $upserted[] = $document; + }, + ); + } catch (ConflictException) { + throw new Exception(Exception::DOCUMENT_UPDATE_CONFLICT); + } catch (DuplicateException) { + throw new Exception(Exception::DOCUMENT_ALREADY_EXISTS); + } catch (RelationshipException $e) { + throw new Exception(Exception::RELATIONSHIP_VALUE_INVALID, $e->getMessage()); + } catch (StructureException $e) { + throw new Exception(Exception::DOCUMENT_INVALID_STRUCTURE, $e->getMessage()); + } + + $document = $upserted[0]; + // Add $collectionId and $databaseId for all documents + $processDocument = function (Document $collection, Document $document) use (&$processDocument, $dbForProject, $database) { + $document->setAttribute('$databaseId', $database->getId()); + $document->setAttribute('$collectionId', $collection->getId()); + + $relationships = \array_filter( + $collection->getAttribute('attributes', []), + fn ($attribute) => $attribute->getAttribute('type') === Database::VAR_RELATIONSHIP + ); + + foreach ($relationships as $relationship) { + $related = $document->getAttribute($relationship->getAttribute('key')); + + if (empty($related)) { + continue; + } + if (!\is_array($related)) { + $related = [$related]; + } + + $relatedCollectionId = $relationship->getAttribute('relatedCollection'); + $relatedCollection = Authorization::skip( + fn () => $dbForProject->getDocument('database_' . $database->getInternalId(), $relatedCollectionId) + ); + + foreach ($related as $relation) { + if ($relation instanceof Document) { + $processDocument($relatedCollection, $relation); + } + } + } + }; + + $processDocument($collection, $document); $relationships = \array_map( fn ($document) => $document->getAttribute('key'), @@ -3717,9 +4434,334 @@ function updateAttribute( ) ); - $queueForDeletes - ->setType(DELETE_TYPE_AUDIT) - ->setDocument($document); + $queueForEvents + ->setParam('databaseId', $databaseId) + ->setParam('collectionId', $collection->getId()) + ->setParam('documentId', $document->getId()) + ->setContext('collection', $collection) + ->setContext('database', $database) + ->setPayload($response->getPayload(), sensitive: $relationships); + + $response->dynamic($document, Response::MODEL_DOCUMENT); + }); + +App::patch('/v1/databases/:databaseId/collections/:collectionId/documents') + ->desc('Update documents') + ->groups(['api', 'database']) + ->label('scope', 'documents.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('audits.event', 'documents.update') + ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') + ->label('abuse-key', 'ip:{ip},method:{method},url:{url},userId:{userId}') + ->label('abuse-limit', APP_LIMIT_WRITE_RATE_DEFAULT * 2) + ->label('abuse-time', APP_LIMIT_WRITE_RATE_PERIOD_DEFAULT) + ->label('sdk', new Method( + namespace: 'databases', + group: 'documents', + name: 'updateDocuments', + description: '/docs/references/databases/update-documents.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_DOCUMENT_LIST, + ) + ], + contentType: ContentType::JSON + )) + ->param('databaseId', '', new UID(), 'Database ID.') + ->param('collectionId', '', new UID(), 'Collection ID.') + ->param('data', [], new JSON(), 'Document data as JSON object. Include only attribute and value pairs to be updated.', true) + ->param('queries', [], new ArrayList(new Text(APP_LIMIT_ARRAY_ELEMENT_SIZE), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long.', true) + ->inject('requestTimestamp') + ->inject('response') + ->inject('dbForProject') + ->inject('queueForStatsUsage') + ->inject('plan') + ->action(function (string $databaseId, string $collectionId, string|array $data, array $queries, ?\DateTime $requestTimestamp, Response $response, Database $dbForProject, StatsUsage $queueForStatsUsage, array $plan) { + $data = \is_string($data) + ? \json_decode($data, true) + : $data; + + if (empty($data)) { + throw new Exception(Exception::DOCUMENT_MISSING_PAYLOAD); + } + + $database = $dbForProject->getDocument('databases', $databaseId); + if ($database->isEmpty()) { + throw new Exception(Exception::DATABASE_NOT_FOUND); + } + + $collection = $dbForProject->getDocument('database_' . $database->getInternalId(), $collectionId); + if ($collection->isEmpty()) { + throw new Exception(Exception::COLLECTION_NOT_FOUND); + } + + $hasRelationships = \array_filter( + $collection->getAttribute('attributes', []), + fn ($attribute) => $attribute->getAttribute('type') === Database::VAR_RELATIONSHIP + ); + + if ($hasRelationships) { + throw new Exception(Exception::GENERAL_BAD_REQUEST, 'Bulk update is not supported for collections with relationship attributes'); + } + + try { + $queries = Query::parseQueries($queries); + } catch (QueryException $e) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); + } + + if ($data['$permissions']) { + $validator = new Permissions(); + if (!$validator->isValid($data['$permissions'])) { + throw new Exception(Exception::GENERAL_BAD_REQUEST, $validator->getDescription()); + } + } + + $documents = []; + + try { + $modified = $dbForProject->updateDocuments( + 'database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), + new Document($data), + $queries, + onNext: function (Document $document) use ($plan, &$documents) { + if (\count($documents) < ($plan['databasesBatchSize'] ?? APP_LIMIT_DATABASE_BATCH)) { + $documents[] = $document; + } + }, + ); + } catch (ConflictException) { + throw new Exception(Exception::DOCUMENT_UPDATE_CONFLICT); + } catch (RelationshipException $e) { + throw new Exception(Exception::RELATIONSHIP_VALUE_INVALID, $e->getMessage()); + } catch (StructureException $e) { + throw new Exception(Exception::DOCUMENT_INVALID_STRUCTURE, $e->getMessage()); + } + + foreach ($documents as $document) { + $document->setAttribute('$databaseId', $database->getId()); + $document->setAttribute('$collectionId', $collection->getId()); + } + + $queueForStatsUsage + ->addMetric(METRIC_DATABASES_OPERATIONS_WRITES, \max(1, $modified)) + ->addMetric(str_replace('{databaseInternalId}', $database->getInternalId(), METRIC_DATABASE_ID_OPERATIONS_WRITES), \max(1, $modified)); + + $response->dynamic(new Document([ + 'total' => $modified, + 'documents' => $documents + ]), Response::MODEL_DOCUMENT_LIST); + }); + +App::put('/v1/databases/:databaseId/collections/:collectionId/documents') + ->desc('Create or update documents') + ->groups(['api', 'database']) + ->label('scope', 'documents.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('audits.event', 'documents.upsert') + ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') + ->label('abuse-key', 'ip:{ip},method:{method},url:{url},userId:{userId}') + ->label('abuse-limit', APP_LIMIT_WRITE_RATE_DEFAULT * 2) + ->label('abuse-time', APP_LIMIT_WRITE_RATE_PERIOD_DEFAULT) + ->label('sdk', new Method( + namespace: 'databases', + group: 'documents', + name: 'upsertDocuments', + description: '/docs/references/databases/upsert-documents.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_DOCUMENT_LIST, + ) + ], + contentType: ContentType::JSON + )) + ->param('databaseId', '', new UID(), 'Database ID.') + ->param('collectionId', '', new UID(), 'Collection ID.') + ->param('documents', [], fn (array $plan) => new ArrayList(new JSON(), $plan['databasesBatchSize'] ?? APP_LIMIT_DATABASE_BATCH), 'Array of document data as JSON objects. May contain partial documents.', true, ['plan']) + ->inject('response') + ->inject('dbForProject') + ->inject('queueForStatsUsage') + ->inject('plan') + ->action(function (string $databaseId, string $collectionId, array $documents, Response $response, Database $dbForProject, StatsUsage $queueForStatsUsage, array $plan) { + $database = $dbForProject->getDocument('databases', $databaseId); + if ($database->isEmpty()) { + throw new Exception(Exception::DATABASE_NOT_FOUND); + } + + $collection = $dbForProject->getDocument('database_' . $database->getInternalId(), $collectionId); + if ($collection->isEmpty()) { + throw new Exception(Exception::COLLECTION_NOT_FOUND); + } + + $hasRelationships = \array_filter( + $collection->getAttribute('attributes', []), + fn ($attribute) => $attribute->getAttribute('type') === Database::VAR_RELATIONSHIP + ); + + if ($hasRelationships) { + throw new Exception(Exception::GENERAL_BAD_REQUEST, 'Bulk upsert is not supported for collections with relationship attributes'); + } + + foreach ($documents as $key => $document) { + $documents[$key] = new Document($document); + } + + $upserted = []; + + try { + $modified = $dbForProject->createOrUpdateDocuments( + 'database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), + $documents, + onNext: function (Document $document) use ($plan, &$upserted) { + if (\count($upserted) < ($plan['databasesBatchSize'] ?? APP_LIMIT_DATABASE_BATCH)) { + $upserted[] = $document; + } + }, + ); + } catch (ConflictException) { + throw new Exception(Exception::DOCUMENT_UPDATE_CONFLICT); + } catch (DuplicateException) { + throw new Exception(Exception::DOCUMENT_ALREADY_EXISTS); + } catch (RelationshipException $e) { + throw new Exception(Exception::RELATIONSHIP_VALUE_INVALID, $e->getMessage()); + } catch (StructureException $e) { + throw new Exception(Exception::DOCUMENT_INVALID_STRUCTURE, $e->getMessage()); + } + + foreach ($upserted as $document) { + $document->setAttribute('$databaseId', $database->getId()); + $document->setAttribute('$collectionId', $collection->getId()); + } + + $queueForStatsUsage + ->addMetric(METRIC_DATABASES_OPERATIONS_WRITES, \max(1, $modified)) + ->addMetric(str_replace('{databaseInternalId}', $database->getInternalId(), METRIC_DATABASE_ID_OPERATIONS_WRITES), \max(1, $modified)); + + $response->dynamic(new Document([ + 'total' => $modified, + 'documents' => $upserted + ]), Response::MODEL_DOCUMENT_LIST); + }); + +App::delete('/v1/databases/:databaseId/collections/:collectionId/documents/:documentId') + ->alias('/v1/database/collections/:collectionId/documents/:documentId') + ->desc('Delete document') + ->groups(['api', 'database']) + ->label('scope', 'documents.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('event', 'databases.[databaseId].collections.[collectionId].documents.[documentId].delete') + ->label('audits.event', 'document.delete') + ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}/document/{request.documentId}') + ->label('abuse-key', 'ip:{ip},method:{method},url:{url},userId:{userId}') + ->label('abuse-limit', APP_LIMIT_WRITE_RATE_DEFAULT) + ->label('abuse-time', APP_LIMIT_WRITE_RATE_PERIOD_DEFAULT) + ->label('sdk', new Method( + namespace: 'databases', + group: 'documents', + name: 'deleteDocument', + description: '/docs/references/databases/delete-document.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) + ->param('databaseId', '', new UID(), 'Database ID.') + ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') + ->param('documentId', '', new UID(), 'Document ID.') + ->inject('requestTimestamp') + ->inject('response') + ->inject('dbForProject') + ->inject('queueForEvents') + ->inject('queueForStatsUsage') + ->action(function (string $databaseId, string $collectionId, string $documentId, ?\DateTime $requestTimestamp, Response $response, Database $dbForProject, Event $queueForEvents, StatsUsage $queueForStatsUsage) { + $isAPIKey = Auth::isAppUser(Authorization::getRoles()); + $isPrivilegedUser = Auth::isPrivilegedUser(Authorization::getRoles()); + + $database = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); + if ($database->isEmpty() || (!$database->getAttribute('enabled', false) && !$isAPIKey && !$isPrivilegedUser)) { + throw new Exception(Exception::DATABASE_NOT_FOUND); + } + + $collection = Authorization::skip(fn () => $dbForProject->getDocument('database_' . $database->getInternalId(), $collectionId)); + if ($collection->isEmpty() || (!$collection->getAttribute('enabled', false) && !$isAPIKey && !$isPrivilegedUser)) { + throw new Exception(Exception::COLLECTION_NOT_FOUND); + } + + // Read permission should not be required for delete + $document = Authorization::skip(fn () => $dbForProject->getDocument('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), $documentId)); + if ($document->isEmpty()) { + throw new Exception(Exception::DOCUMENT_NOT_FOUND); + } + + try { + $dbForProject->deleteDocument( + 'database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), + $documentId + ); + } catch (ConflictException) { + throw new Exception(Exception::DOCUMENT_UPDATE_CONFLICT); + } catch (RestrictedException) { + throw new Exception(Exception::DOCUMENT_DELETE_RESTRICTED); + } + + $operations = 0; + + // Add $collectionId and $databaseId for all documents + $processDocument = function (Document $collection, Document $document) use (&$processDocument, $dbForProject, $database, &$operations) { + $operations++; + + $document->setAttribute('$databaseId', $database->getId()); + $document->setAttribute('$collectionId', $collection->getId()); + + $relationships = \array_filter( + $collection->getAttribute('attributes', []), + fn ($attribute) => $attribute->getAttribute('type') === Database::VAR_RELATIONSHIP + ); + + foreach ($relationships as $relationship) { + $related = $document->getAttribute($relationship->getAttribute('key')); + + if (empty($related)) { + continue; + } + if (!\is_array($related)) { + $related = [$related]; + } + + $relatedCollectionId = $relationship->getAttribute('relatedCollection'); + $relatedCollection = Authorization::skip( + fn () => $dbForProject->getDocument('database_' . $database->getInternalId(), $relatedCollectionId) + ); + + foreach ($related as $relation) { + if ($relation instanceof Document) { + $processDocument($relatedCollection, $relation); + } + } + } + }; + + $processDocument($collection, $document); + + $queueForStatsUsage + ->addMetric(METRIC_DATABASES_OPERATIONS_WRITES, \max(1, $operations)) + ->addMetric(str_replace('{databaseInternalId}', $database->getInternalId(), METRIC_DATABASE_ID_OPERATIONS_WRITES), \max(1, $operations)); + + $relationships = \array_map( + fn ($document) => $document->getAttribute('key'), + \array_filter( + $collection->getAttribute('attributes', []), + fn ($attribute) => $attribute->getAttribute('type') === Database::VAR_RELATIONSHIP + ) + ); $queueForEvents ->setParam('databaseId', $databaseId) @@ -3732,21 +4774,120 @@ function updateAttribute( $response->noContent(); }); +App::delete('/v1/databases/:databaseId/collections/:collectionId/documents') + ->desc('Delete documents') + ->groups(['api', 'database']) + ->label('scope', 'documents.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('audits.event', 'documents.delete') + ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') + ->label('abuse-key', 'ip:{ip},method:{method},url:{url},userId:{userId}') + ->label('abuse-limit', APP_LIMIT_WRITE_RATE_DEFAULT) + ->label('abuse-time', APP_LIMIT_WRITE_RATE_PERIOD_DEFAULT) + ->label('sdk', new Method( + namespace: 'databases', + group: 'documents', + name: 'deleteDocuments', + description: '/docs/references/databases/delete-documents.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_DOCUMENT_LIST, + ) + ], + contentType: ContentType::JSON + )) + ->param('databaseId', '', new UID(), 'Database ID.') + ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') + ->param('queries', [], new ArrayList(new Text(APP_LIMIT_ARRAY_ELEMENT_SIZE), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long.', true) + ->inject('requestTimestamp') + ->inject('response') + ->inject('dbForProject') + ->inject('queueForStatsUsage') + ->inject('plan') + ->action(function (string $databaseId, string $collectionId, array $queries, ?\DateTime $requestTimestamp, Response $response, Database $dbForProject, StatsUsage $queueForStatsUsage, array $plan) { + $database = $dbForProject->getDocument('databases', $databaseId); + if ($database->isEmpty()) { + throw new Exception(Exception::DATABASE_NOT_FOUND); + } + + $collection = $dbForProject->getDocument('database_' . $database->getInternalId(), $collectionId); + if ($collection->isEmpty()) { + throw new Exception(Exception::COLLECTION_NOT_FOUND); + } + + $hasRelationships = \array_filter( + $collection->getAttribute('attributes', []), + fn ($attribute) => $attribute->getAttribute('type') === Database::VAR_RELATIONSHIP + ); + + if ($hasRelationships) { + throw new Exception(Exception::GENERAL_BAD_REQUEST, 'Bulk delete is not supported for collections with relationship attributes'); + } + + try { + $queries = Query::parseQueries($queries); + } catch (QueryException $e) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); + } + + $documents = []; + + try { + $modified = $dbForProject->deleteDocuments( + 'database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), + $queries, + onNext: function (Document $document) use ($plan, &$documents) { + if (\count($documents) < ($plan['databasesBatchSize'] ?? APP_LIMIT_DATABASE_BATCH)) { + $documents[] = $document; + } + }, + ); + } catch (ConflictException) { + throw new Exception(Exception::DOCUMENT_UPDATE_CONFLICT); + } catch (RestrictedException) { + throw new Exception(Exception::DOCUMENT_DELETE_RESTRICTED); + } + + foreach ($documents as $document) { + $document->setAttribute('$databaseId', $database->getId()); + $document->setAttribute('$collectionId', $collection->getId()); + } + + $queueForStatsUsage + ->addMetric(METRIC_DATABASES_OPERATIONS_WRITES, \max(1, $modified)) + ->addMetric(str_replace('{databaseInternalId}', $database->getInternalId(), METRIC_DATABASE_ID_OPERATIONS_WRITES), \max(1, $modified)); + + $response->dynamic(new Document([ + 'total' => $modified, + 'documents' => $documents, + ]), Response::MODEL_DOCUMENT_LIST); + }); + App::get('/v1/databases/usage') ->desc('Get databases usage stats') ->groups(['api', 'database', 'usage']) ->label('scope', 'collections.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'getUsage') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USAGE_DATABASES) + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('sdk', new Method( + namespace: 'databases', + group: null, + name: 'getUsage', + description: '/docs/references/databases/get-usage.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USAGE_DATABASES, + ) + ], + contentType: ContentType::JSON + )) ->param('range', '30d', new WhiteList(['24h', '30d', '90d'], true), '`Date range.', true) ->inject('response') ->inject('dbForProject') ->action(function (string $range, Response $response, Database $dbForProject) { - $periods = Config::getParam('usage', []); $stats = $usage = []; $days = $periods[$range]; @@ -3754,6 +4895,9 @@ function updateAttribute( METRIC_DATABASES, METRIC_COLLECTIONS, METRIC_DOCUMENTS, + METRIC_DATABASES_STORAGE, + METRIC_DATABASES_OPERATIONS_READS, + METRIC_DATABASES_OPERATIONS_WRITES, ]; Authorization::skip(function () use ($dbForProject, $days, $metrics, &$stats) { @@ -3804,9 +4948,15 @@ function updateAttribute( 'databasesTotal' => $usage[$metrics[0]]['total'], 'collectionsTotal' => $usage[$metrics[1]]['total'], 'documentsTotal' => $usage[$metrics[2]]['total'], + 'storageTotal' => $usage[$metrics[3]]['total'], + 'databasesReadsTotal' => $usage[$metrics[4]]['total'], + 'databasesWritesTotal' => $usage[$metrics[5]]['total'], 'databases' => $usage[$metrics[0]]['data'], 'collections' => $usage[$metrics[1]]['data'], 'documents' => $usage[$metrics[2]]['data'], + 'storage' => $usage[$metrics[3]]['data'], + 'databasesReads' => $usage[$metrics[4]]['data'], + 'databasesWrites' => $usage[$metrics[5]]['data'], ]), Response::MODEL_USAGE_DATABASES); }); @@ -3814,20 +4964,27 @@ function updateAttribute( ->desc('Get database usage stats') ->groups(['api', 'database', 'usage']) ->label('scope', 'collections.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'getDatabaseUsage') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USAGE_DATABASE) + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('sdk', new Method( + namespace: 'databases', + group: null, + name: 'getDatabaseUsage', + description: '/docs/references/databases/get-database-usage.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USAGE_DATABASE, + ) + ], + contentType: ContentType::JSON, + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('range', '30d', new WhiteList(['24h', '30d', '90d'], true), '`Date range.', true) ->inject('response') ->inject('dbForProject') ->action(function (string $databaseId, string $range, Response $response, Database $dbForProject) { - $database = $dbForProject->getDocument('databases', $databaseId); - if ($database->isEmpty()) { throw new Exception(Exception::DATABASE_NOT_FOUND); } @@ -3838,6 +4995,9 @@ function updateAttribute( $metrics = [ str_replace('{databaseInternalId}', $database->getInternalId(), METRIC_DATABASE_ID_COLLECTIONS), str_replace('{databaseInternalId}', $database->getInternalId(), METRIC_DATABASE_ID_DOCUMENTS), + str_replace('{databaseInternalId}', $database->getInternalId(), METRIC_DATABASE_ID_STORAGE), + str_replace('{databaseInternalId}', $database->getInternalId(), METRIC_DATABASE_ID_OPERATIONS_READS), + str_replace('{databaseInternalId}', $database->getInternalId(), METRIC_DATABASE_ID_OPERATIONS_WRITES) ]; Authorization::skip(function () use ($dbForProject, $days, $metrics, &$stats) { @@ -3888,29 +5048,43 @@ function updateAttribute( 'range' => $range, 'collectionsTotal' => $usage[$metrics[0]]['total'], 'documentsTotal' => $usage[$metrics[1]]['total'], + 'storageTotal' => $usage[$metrics[2]]['total'], + 'databaseReadsTotal' => $usage[$metrics[3]]['total'], + 'databaseWritesTotal' => $usage[$metrics[4]]['total'], 'collections' => $usage[$metrics[0]]['data'], 'documents' => $usage[$metrics[1]]['data'], + 'storage' => $usage[$metrics[2]]['data'], + 'databaseReads' => $usage[$metrics[3]]['data'], + 'databaseWrites' => $usage[$metrics[4]]['data'], ]), Response::MODEL_USAGE_DATABASE); }); App::get('/v1/databases/:databaseId/collections/:collectionId/usage') - ->alias('/v1/database/:collectionId/usage', ['databaseId' => 'default']) + ->alias('/v1/database/:collectionId/usage') ->desc('Get collection usage stats') ->groups(['api', 'database', 'usage']) ->label('scope', 'collections.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'databases') - ->label('sdk.method', 'getCollectionUsage') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USAGE_COLLECTION) + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('sdk', new Method( + namespace: 'databases', + group: null, + name: 'getCollectionUsage', + description: '/docs/references/databases/get-collection-usage.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USAGE_COLLECTION, + ) + ], + contentType: ContentType::JSON, + )) ->param('databaseId', '', new UID(), 'Database ID.') ->param('range', '30d', new WhiteList(['24h', '30d', '90d'], true), 'Date range.', true) ->param('collectionId', '', new UID(), 'Collection ID.') ->inject('response') ->inject('dbForProject') ->action(function (string $databaseId, string $range, string $collectionId, Response $response, Database $dbForProject) { - $database = $dbForProject->getDocument('databases', $databaseId); $collectionDocument = $dbForProject->getDocument('database_' . $database->getInternalId(), $collectionId); $collection = $dbForProject->getCollection('database_' . $database->getInternalId() . '_collection_' . $collectionDocument->getInternalId()); @@ -3972,7 +5146,7 @@ function updateAttribute( $response->dynamic(new Document([ 'range' => $range, - 'documentsTotal' => $usage[$metrics[0]]['total'], - 'documents' => $usage[$metrics[0]]['data'], + 'documentsTotal' => $usage[$metrics[0]]['total'], + 'documents' => $usage[$metrics[0]]['data'], ]), Response::MODEL_USAGE_COLLECTION); }); diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index 6e429fd8cfa..179cd0b6e53 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -6,15 +6,20 @@ use Appwrite\Event\Delete; use Appwrite\Event\Event; use Appwrite\Event\Func; -use Appwrite\Event\Usage; +use Appwrite\Event\Realtime; +use Appwrite\Event\StatsUsage; use Appwrite\Event\Validator\FunctionEvent; +use Appwrite\Event\Webhook; use Appwrite\Extend\Exception; use Appwrite\Extend\Exception as AppwriteException; use Appwrite\Functions\Validator\Headers; -use Appwrite\Functions\Validator\Payload; use Appwrite\Functions\Validator\RuntimeSpecification; -use Appwrite\Messaging\Adapter\Realtime; use Appwrite\Platform\Tasks\ScheduleExecutions; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\MethodType; +use Appwrite\SDK\Response as SDKResponse; use Appwrite\Task\Validator\Cron; use Appwrite\Utopia\Database\Validator\CustomId; use Appwrite\Utopia\Database\Validator\Queries\Deployments; @@ -24,6 +29,7 @@ use Appwrite\Utopia\Response\Model\Rule; use Executor\Executor; use MaxMind\Db\Reader; +use Utopia\Abuse\Abuse; use Utopia\App; use Utopia\CLI\Console; use Utopia\Config\Config; @@ -31,6 +37,7 @@ use Utopia\Database\DateTime; use Utopia\Database\Document; use Utopia\Database\Exception\Duplicate as DuplicateException; +use Utopia\Database\Exception\Order as OrderException; use Utopia\Database\Exception\Query as QueryException; use Utopia\Database\Helpers\ID; use Utopia\Database\Helpers\Permission; @@ -38,6 +45,7 @@ use Utopia\Database\Query; use Utopia\Database\Validator\Authorization; use Utopia\Database\Validator\Datetime as DatetimeValidator; +use Utopia\Database\Validator\Query\Cursor; use Utopia\Database\Validator\Roles; use Utopia\Database\Validator\UID; use Utopia\Storage\Device; @@ -138,15 +146,22 @@ ->desc('Create function') ->label('scope', 'functions.write') ->label('event', 'functions.[functionId].create') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) ->label('audits.event', 'function.create') ->label('audits.resource', 'function/{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'functions') - ->label('sdk.method', 'create') - ->label('sdk.description', '/docs/references/functions/create-function.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_FUNCTION) + ->label('sdk', new Method( + namespace: 'functions', + group: 'functions', + name: 'create', + description: '/docs/references/functions/create-function.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_FUNCTION, + ) + ], + )) ->param('functionId', '', new CustomId(), 'Function ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') ->param('name', '', new Text(128), 'Function name. Max length: 128 chars.') ->param('runtime', '', new WhiteList(array_keys(Config::getParam('runtimes')), true), 'Execution runtime.') @@ -171,21 +186,54 @@ ->param('specification', APP_FUNCTION_SPECIFICATION_DEFAULT, fn (array $plan) => new RuntimeSpecification( $plan, Config::getParam('runtime-specifications', []), - App::getEnv('_APP_FUNCTIONS_CPUS', APP_FUNCTION_CPUS_DEFAULT), - App::getEnv('_APP_FUNCTIONS_MEMORY', APP_FUNCTION_MEMORY_DEFAULT) + System::getEnv('_APP_FUNCTIONS_CPUS', 0), + System::getEnv('_APP_FUNCTIONS_MEMORY', 0) ), 'Runtime specification for the function and builds.', true, ['plan']) ->inject('request') ->inject('response') ->inject('dbForProject') + ->inject('timelimit') ->inject('project') ->inject('user') ->inject('queueForEvents') ->inject('queueForBuilds') - ->inject('dbForConsole') + ->inject('queueForWebhooks') + ->inject('queueForFunctions') + ->inject('queueForRealtime') + ->inject('dbForPlatform') ->inject('gitHub') - ->action(function (string $functionId, string $name, string $runtime, array $execute, array $events, string $schedule, int $timeout, bool $enabled, bool $logging, string $entrypoint, string $commands, array $scopes, string $installationId, string $providerRepositoryId, string $providerBranch, bool $providerSilentMode, string $providerRootDirectory, string $templateRepository, string $templateOwner, string $templateRootDirectory, string $templateVersion, string $specification, Request $request, Response $response, Database $dbForProject, Document $project, Document $user, Event $queueForEvents, Build $queueForBuilds, Database $dbForConsole, GitHub $github) use ($redeployVcs) { + ->action(function (string $functionId, string $name, string $runtime, array $execute, array $events, string $schedule, int $timeout, bool $enabled, bool $logging, string $entrypoint, string $commands, array $scopes, string $installationId, string $providerRepositoryId, string $providerBranch, bool $providerSilentMode, string $providerRootDirectory, string $templateRepository, string $templateOwner, string $templateRootDirectory, string $templateVersion, string $specification, Request $request, Response $response, Database $dbForProject, callable $timelimit, Document $project, Document $user, Event $queueForEvents, Build $queueForBuilds, Webhook $queueForWebhooks, Func $queueForFunctions, Realtime $queueForRealtime, Database $dbForPlatform, GitHub $github) use ($redeployVcs) { $functionId = ($functionId == 'unique()') ? ID::unique() : $functionId; + // Temporary abuse check + $abuseCheck = function () use ($project, $timelimit, $response) { + $abuseKey = "projectId:{projectId},url:{url}"; + $abuseLimit = App::getEnv('_APP_FUNCTIONS_CREATION_ABUSE_LIMIT', 50); + $abuseTime = 86400; // 1 day + + $timeLimit = $timelimit($abuseKey, $abuseLimit, $abuseTime); + $timeLimit + ->setParam('{projectId}', $project->getId()) + ->setParam('{url}', '/v1/functions'); + + $abuse = new Abuse($timeLimit); + $remaining = $timeLimit->remaining(); + $limit = $timeLimit->limit(); + $time = $timeLimit->time() + $abuseTime; + + $response + ->addHeader('X-RateLimit-Limit', $limit) + ->addHeader('X-RateLimit-Remaining', $remaining) + ->addHeader('X-RateLimit-Reset', $time); + + $enabled = System::getEnv('_APP_OPTIONS_ABUSE', 'enabled') !== 'disabled'; + if ($enabled && $abuse->check()) { + throw new Exception(Exception::GENERAL_RATE_LIMIT_EXCEEDED); + } + }; + + $abuseCheck(); + $allowList = \array_filter(\explode(',', System::getEnv('_APP_FUNCTIONS_RUNTIMES', ''))); if (!empty($allowList) && !\in_array($runtime, $allowList)) { @@ -206,7 +254,7 @@ ->setAttribute('version', $templateVersion); } - $installation = $dbForConsole->getDocument('installations', $installationId); + $installation = $dbForPlatform->getDocument('installations', $installationId); if (!empty($installationId) && $installation->isEmpty()) { throw new Exception(Exception::INSTALLATION_NOT_FOUND); @@ -248,8 +296,8 @@ ])); $schedule = Authorization::skip( - fn () => $dbForConsole->createDocument('schedules', new Document([ - 'region' => System::getEnv('_APP_REGION', 'default'), // Todo replace with projects region + fn () => $dbForPlatform->createDocument('schedules', new Document([ + 'region' => $project->getAttribute('region'), 'resourceType' => 'function', 'resourceId' => $function->getId(), 'resourceInternalId' => $function->getInternalId(), @@ -267,7 +315,7 @@ if (!empty($providerRepositoryId)) { $teamId = $project->getAttribute('teamId', ''); - $repository = $dbForConsole->createDocument('repositories', new Document([ + $repository = $dbForPlatform->createDocument('repositories', new Document([ '$id' => ID::unique(), '$permissions' => [ Permission::read(Role::team(ID::custom($teamId))), @@ -325,12 +373,13 @@ $functionsDomain = System::getEnv('_APP_DOMAIN_FUNCTIONS', ''); if (!empty($functionsDomain)) { - $ruleId = ID::unique(); $routeSubdomain = ID::unique(); $domain = "{$routeSubdomain}.{$functionsDomain}"; + // TODO: @christyjacob remove once we migrate the rules in 1.7.x + $ruleId = System::getEnv('_APP_RULES_FORMAT') === 'md5' ? md5($domain) : ID::unique(); $rule = Authorization::skip( - fn () => $dbForConsole->createDocument('rules', new Document([ + fn () => $dbForPlatform->createDocument('rules', new Document([ '$id' => $ruleId, 'projectId' => $project->getId(), 'projectInternalId' => $project->getInternalId(), @@ -340,53 +389,34 @@ 'resourceInternalId' => $function->getInternalId(), 'status' => 'verified', 'certificateId' => '', + 'owner' => 'Appwrite', + 'region' => $project->getAttribute('region') ])) ); - /** Trigger Webhook */ $ruleModel = new Rule(); $ruleCreate = $queueForEvents - ->setClass(Event::WEBHOOK_CLASS_NAME) - ->setQueue(Event::WEBHOOK_QUEUE_NAME); - - $ruleCreate - ->setProject($project) - ->setEvent('rules.[ruleId].create') - ->setParam('ruleId', $rule->getId()) - ->setPayload($rule->getArrayCopy(array_keys($ruleModel->getRules()))) + ->setProject($project) + ->setEvent('rules.[ruleId].create') + ->setParam('ruleId', $rule->getId()) + ->setPayload($rule->getArrayCopy(array_keys($ruleModel->getRules()))); + + /** Trigger Webhook */ + $queueForWebhooks + ->from($ruleCreate) ->trigger(); /** Trigger Functions */ - $ruleCreate - ->setClass(Event::FUNCTIONS_CLASS_NAME) - ->setQueue(Event::FUNCTIONS_QUEUE_NAME) + $queueForFunctions + ->from($ruleCreate) ->trigger(); - /** Trigger realtime event */ - $allEvents = Event::generateEvents('rules.[ruleId].create', [ - 'ruleId' => $rule->getId(), - ]); - $target = Realtime::fromPayload( - // Pass first, most verbose event pattern - event: $allEvents[0], - payload: $rule, - project: $project - ); - Realtime::send( - projectId: 'console', - payload: $rule->getArrayCopy(), - events: $allEvents, - channels: $target['channels'], - roles: $target['roles'] - ); - Realtime::send( - projectId: $project->getId(), - payload: $rule->getArrayCopy(), - events: $allEvents, - channels: $target['channels'], - roles: $target['roles'] - ); + /** Trigger Realtime Events */ + $queueForRealtime + ->from($ruleCreate) + ->setSubscribers(['console', $project->getId()]) + ->trigger(); } $queueForEvents->setParam('functionId', $function->getId()); @@ -400,13 +430,20 @@ ->groups(['api', 'functions']) ->desc('List functions') ->label('scope', 'functions.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'functions') - ->label('sdk.method', 'list') - ->label('sdk.description', '/docs/references/functions/list-functions.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_FUNCTION_LIST) + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('sdk', new Method( + namespace: 'functions', + group: 'functions', + name: 'list', + description: '/docs/references/functions/list-functions.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_FUNCTION_LIST, + ) + ] + )) ->param('queries', [], new Functions(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Functions::ALLOWED_ATTRIBUTES), true) ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) ->inject('response') @@ -432,6 +469,12 @@ $cursor = reset($cursor); if ($cursor) { /** @var Query $cursor */ + + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + $functionId = $cursor->getValue(); $cursorDocument = $dbForProject->getDocument('functions', $functionId); @@ -443,10 +486,15 @@ } $filterQueries = Query::groupByType($queries)['filters']; - + try { + $functions = $dbForProject->find('functions', $queries); + $total = $dbForProject->count('functions', $filterQueries, APP_LIMIT_COUNT); + } catch (OrderException $e) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); + } $response->dynamic(new Document([ - 'functions' => $dbForProject->find('functions', $queries), - 'total' => $dbForProject->count('functions', $filterQueries, APP_LIMIT_COUNT), + 'functions' => $functions, + 'total' => $total, ]), Response::MODEL_FUNCTION_LIST); }); @@ -454,13 +502,20 @@ ->groups(['api', 'functions']) ->desc('List runtimes') ->label('scope', 'functions.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'functions') - ->label('sdk.method', 'listRuntimes') - ->label('sdk.description', '/docs/references/functions/list-runtimes.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_RUNTIME_LIST) + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('sdk', new Method( + namespace: 'functions', + group: 'runtimes', + name: 'listRuntimes', + description: '/docs/references/functions/list-runtimes.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_RUNTIME_LIST, + ) + ] + )) ->inject('response') ->action(function (Response $response) { $runtimes = Config::getParam('runtimes'); @@ -487,13 +542,20 @@ ->groups(['api', 'functions']) ->desc('List available function runtime specifications') ->label('scope', 'functions.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'functions') - ->label('sdk.method', 'listSpecifications') - ->label('sdk.description', '/docs/references/functions/list-specifications.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_SPECIFICATION_LIST) + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('sdk', new Method( + namespace: 'functions', + group: 'runtimes', + name: 'listSpecifications', + description: '/docs/references/functions/list-specifications.md', + auth: [AuthType::KEY, AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_SPECIFICATION_LIST, + ) + ] + )) ->inject('response') ->inject('plan') ->action(function (Response $response, array $plan) { @@ -507,8 +569,12 @@ $spec['enabled'] = in_array($spec['slug'], $plan['runtimeSpecifications']); } + $maxCpus = System::getEnv('_APP_FUNCTIONS_CPUS', 0); + $maxMemory = System::getEnv('_APP_FUNCTIONS_MEMORY', 0); + // Only add specs that are within the limits set by environment variables - if ($spec['cpus'] <= System::getEnv('_APP_FUNCTIONS_CPUS', 1) && $spec['memory'] <= System::getEnv('_APP_FUNCTIONS_MEMORY', 512)) { + // Treat 0 as no limit + if ((empty($maxCpus) || $spec['cpus'] <= $maxCpus) && (empty($maxMemory) || $spec['memory'] <= $maxMemory)) { $runtimeSpecs[] = $spec; } } @@ -523,13 +589,20 @@ ->groups(['api', 'functions']) ->desc('Get function') ->label('scope', 'functions.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'functions') - ->label('sdk.method', 'get') - ->label('sdk.description', '/docs/references/functions/get-function.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_FUNCTION) + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('sdk', new Method( + namespace: 'functions', + group: 'functions', + name: 'get', + description: '/docs/references/functions/get-function.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_FUNCTION, + ) + ] + )) ->param('functionId', '', new UID(), 'Function ID.') ->inject('response') ->inject('dbForProject') @@ -547,12 +620,20 @@ ->desc('Get function usage') ->groups(['api', 'functions', 'usage']) ->label('scope', 'functions.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'functions') - ->label('sdk.method', 'getFunctionUsage') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USAGE_FUNCTION) + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('sdk', new Method( + namespace: 'functions', + group: null, + name: 'getFunctionUsage', + description: '/docs/references/functions/get-function-usage.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USAGE_FUNCTION, + ) + ] + )) ->param('functionId', '', new UID(), 'Function ID.') ->param('range', '30d', new WhiteList(['24h', '30d', '90d']), 'Date range.', true) ->inject('response') @@ -651,12 +732,20 @@ ->desc('Get functions usage') ->groups(['api', 'functions']) ->label('scope', 'functions.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'functions') - ->label('sdk.method', 'getUsage') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USAGE_FUNCTIONS) + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('sdk', new Method( + namespace: 'functions', + group: null, + name: 'getUsage', + description: '/docs/references/functions/get-functions-usage.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USAGE_FUNCTIONS, + ) + ] + )) ->param('range', '30d', new WhiteList(['24h', '30d', '90d']), 'Date range.', true) ->inject('response') ->inject('dbForProject') @@ -750,16 +839,23 @@ ->groups(['api', 'functions']) ->desc('Update function') ->label('scope', 'functions.write') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) ->label('event', 'functions.[functionId].update') ->label('audits.event', 'function.update') ->label('audits.resource', 'function/{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'functions') - ->label('sdk.method', 'update') - ->label('sdk.description', '/docs/references/functions/update-function.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_FUNCTION) + ->label('sdk', new Method( + namespace: 'functions', + group: 'functions', + name: 'update', + description: '/docs/references/functions/update-function.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_FUNCTION, + ) + ] + )) ->param('functionId', '', new UID(), 'Function ID.') ->param('name', '', new Text(128), 'Function name. Max length: 128 chars.') ->param('runtime', '', new WhiteList(array_keys(Config::getParam('runtimes')), true), 'Execution runtime.', true) @@ -780,8 +876,8 @@ ->param('specification', APP_FUNCTION_SPECIFICATION_DEFAULT, fn (array $plan) => new RuntimeSpecification( $plan, Config::getParam('runtime-specifications', []), - App::getEnv('_APP_FUNCTIONS_CPUS', APP_FUNCTION_CPUS_DEFAULT), - App::getEnv('_APP_FUNCTIONS_MEMORY', APP_FUNCTION_MEMORY_DEFAULT) + System::getEnv('_APP_FUNCTIONS_CPUS', 0), + System::getEnv('_APP_FUNCTIONS_MEMORY', 0) ), 'Runtime specification for the function and builds.', true, ['plan']) ->inject('request') ->inject('response') @@ -789,9 +885,10 @@ ->inject('project') ->inject('queueForEvents') ->inject('queueForBuilds') - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('gitHub') - ->action(function (string $functionId, string $name, string $runtime, array $execute, array $events, string $schedule, int $timeout, bool $enabled, bool $logging, string $entrypoint, string $commands, array $scopes, string $installationId, ?string $providerRepositoryId, string $providerBranch, bool $providerSilentMode, string $providerRootDirectory, string $specification, Request $request, Response $response, Database $dbForProject, Document $project, Event $queueForEvents, Build $queueForBuilds, Database $dbForConsole, GitHub $github) use ($redeployVcs) { + ->inject('executor') + ->action(function (string $functionId, string $name, string $runtime, array $execute, array $events, string $schedule, int $timeout, bool $enabled, bool $logging, string $entrypoint, string $commands, array $scopes, string $installationId, ?string $providerRepositoryId, string $providerBranch, bool $providerSilentMode, string $providerRootDirectory, string $specification, Request $request, Response $response, Database $dbForProject, Document $project, Event $queueForEvents, Build $queueForBuilds, Database $dbForPlatform, GitHub $github, Executor $executor) use ($redeployVcs) { // TODO: If only branch changes, re-deploy $function = $dbForProject->getDocument('functions', $functionId); @@ -799,7 +896,7 @@ throw new Exception(Exception::FUNCTION_NOT_FOUND); } - $installation = $dbForConsole->getDocument('installations', $installationId); + $installation = $dbForPlatform->getDocument('installations', $installationId); if (!empty($installationId) && $installation->isEmpty()) { throw new Exception(Exception::INSTALLATION_NOT_FOUND); @@ -830,7 +927,7 @@ // Git disconnect logic. Disconnecting only when providerRepositoryId is empty, allowing for continue updates without disconnecting git if ($isConnected && ($providerRepositoryId !== null && empty($providerRepositoryId))) { - $repositories = $dbForConsole->find('repositories', [ + $repositories = $dbForPlatform->find('repositories', [ Query::equal('projectInternalId', [$project->getInternalId()]), Query::equal('resourceInternalId', [$function->getInternalId()]), Query::equal('resourceType', ['function']), @@ -838,7 +935,7 @@ ]); foreach ($repositories as $repository) { - $dbForConsole->deleteDocument('repositories', $repository->getId()); + $dbForPlatform->deleteDocument('repositories', $repository->getId()); } $providerRepositoryId = ''; @@ -854,7 +951,7 @@ if (!$isConnected && !empty($providerRepositoryId)) { $teamId = $project->getAttribute('teamId', ''); - $repository = $dbForConsole->createDocument('repositories', new Document([ + $repository = $dbForPlatform->createDocument('repositories', new Document([ '$id' => ID::unique(), '$permissions' => [ Permission::read(Role::team(ID::custom($teamId))), @@ -894,7 +991,6 @@ // Enforce Cold Start if spec limits change. if ($function->getAttribute('specification') !== $specification && !empty($function->getAttribute('deployment'))) { - $executor = new Executor(App::getEnv('_APP_EXECUTOR_HOST')); try { $executor->deleteRuntime($project->getId(), $function->getAttribute('deployment')); } catch (\Throwable $th) { @@ -936,12 +1032,12 @@ } // Inform scheduler if function is still active - $schedule = $dbForConsole->getDocument('schedules', $function->getAttribute('scheduleId')); + $schedule = $dbForPlatform->getDocument('schedules', $function->getAttribute('scheduleId')); $schedule ->setAttribute('resourceUpdatedAt', DateTime::now()) ->setAttribute('schedule', $function->getAttribute('schedule')) ->setAttribute('active', !empty($function->getAttribute('schedule')) && !empty($function->getAttribute('deployment'))); - Authorization::skip(fn () => $dbForConsole->updateDocument('schedules', $schedule->getId(), $schedule)); + Authorization::skip(fn () => $dbForPlatform->updateDocument('schedules', $schedule->getId(), $schedule)); $queueForEvents->setParam('functionId', $function->getId()); @@ -950,15 +1046,24 @@ App::get('/v1/functions/:functionId/deployments/:deploymentId/download') ->groups(['api', 'functions']) - ->desc('Download deployment') + ->desc('Get deployment download') ->label('scope', 'functions.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'functions') - ->label('sdk.method', 'getDeploymentDownload') - ->label('sdk.description', '/docs/references/functions/get-deployment-download.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', '*/*') - ->label('sdk.methodType', 'location') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('sdk', new Method( + namespace: 'functions', + group: 'deployments', + name: 'getDeploymentDownload', + description: '/docs/references/functions/get-deployment-download.md', + auth: [AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::ANY, + type: MethodType::LOCATION + )) ->param('functionId', '', new UID(), 'Function ID.') ->param('deploymentId', '', new UID(), 'Deployment ID.') ->inject('response') @@ -988,7 +1093,7 @@ $response ->setContentType('application/gzip') - ->addHeader('Expires', \date('D, d M Y H:i:s', \time() + (60 * 60 * 24 * 45)) . ' GMT') // 45 days cache + ->addHeader('Cache-Control', 'private, max-age=3888000') // 45 days ->addHeader('X-Peak', \memory_get_peak_usage()) ->addHeader('Content-Disposition', 'attachment; filename="' . $deploymentId . '.tar.gz"'); @@ -1037,23 +1142,30 @@ ->groups(['api', 'functions']) ->desc('Update deployment') ->label('scope', 'functions.write') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) ->label('event', 'functions.[functionId].deployments.[deploymentId].update') ->label('audits.event', 'deployment.update') ->label('audits.resource', 'function/{request.functionId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'functions') - ->label('sdk.method', 'updateDeployment') - ->label('sdk.description', '/docs/references/functions/update-function-deployment.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_FUNCTION) + ->label('sdk', new Method( + namespace: 'functions', + group: 'deployments', + name: 'updateDeployment', + description: '/docs/references/functions/update-function-deployment.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_FUNCTION, + ) + ] + )) ->param('functionId', '', new UID(), 'Function ID.') ->param('deploymentId', '', new UID(), 'Deployment ID.') ->inject('response') ->inject('dbForProject') ->inject('queueForEvents') - ->inject('dbForConsole') - ->action(function (string $functionId, string $deploymentId, Response $response, Database $dbForProject, Event $queueForEvents, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $functionId, string $deploymentId, Response $response, Database $dbForProject, Event $queueForEvents, Database $dbForPlatform) { $function = $dbForProject->getDocument('functions', $functionId); $deployment = $dbForProject->getDocument('deployments', $deploymentId); @@ -1081,12 +1193,12 @@ ]))); // Inform scheduler if function is still active - $schedule = $dbForConsole->getDocument('schedules', $function->getAttribute('scheduleId')); + $schedule = $dbForPlatform->getDocument('schedules', $function->getAttribute('scheduleId')); $schedule ->setAttribute('resourceUpdatedAt', DateTime::now()) ->setAttribute('schedule', $function->getAttribute('schedule')) ->setAttribute('active', !empty($function->getAttribute('schedule')) && !empty($function->getAttribute('deployment'))); - Authorization::skip(fn () => $dbForConsole->updateDocument('schedules', $schedule->getId(), $schedule)); + Authorization::skip(fn () => $dbForPlatform->updateDocument('schedules', $schedule->getId(), $schedule)); $queueForEvents ->setParam('functionId', $function->getId()) @@ -1099,22 +1211,31 @@ ->groups(['api', 'functions']) ->desc('Delete function') ->label('scope', 'functions.write') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) ->label('event', 'functions.[functionId].delete') ->label('audits.event', 'function.delete') ->label('audits.resource', 'function/{request.functionId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'functions') - ->label('sdk.method', 'delete') - ->label('sdk.description', '/docs/references/functions/delete-function.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'functions', + group: 'functions', + name: 'delete', + description: '/docs/references/functions/delete-function.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('functionId', '', new UID(), 'Function ID.') ->inject('response') ->inject('dbForProject') ->inject('queueForDeletes') ->inject('queueForEvents') - ->inject('dbForConsole') - ->action(function (string $functionId, Response $response, Database $dbForProject, Delete $queueForDeletes, Event $queueForEvents, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $functionId, Response $response, Database $dbForProject, Delete $queueForDeletes, Event $queueForEvents, Database $dbForPlatform) { $function = $dbForProject->getDocument('functions', $functionId); @@ -1127,11 +1248,11 @@ } // Inform scheduler to no longer run function - $schedule = $dbForConsole->getDocument('schedules', $function->getAttribute('scheduleId')); + $schedule = $dbForPlatform->getDocument('schedules', $function->getAttribute('scheduleId')); $schedule ->setAttribute('resourceUpdatedAt', DateTime::now()) ->setAttribute('active', false); - Authorization::skip(fn () => $dbForConsole->updateDocument('schedules', $schedule->getId(), $schedule)); + Authorization::skip(fn () => $dbForPlatform->updateDocument('schedules', $schedule->getId(), $schedule)); $queueForDeletes ->setType(DELETE_TYPE_DOCUMENT) @@ -1146,19 +1267,26 @@ ->groups(['api', 'functions']) ->desc('Create deployment') ->label('scope', 'functions.write') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) ->label('event', 'functions.[functionId].deployments.[deploymentId].create') ->label('audits.event', 'deployment.create') ->label('audits.resource', 'function/{request.functionId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'functions') - ->label('sdk.method', 'createDeployment') - ->label('sdk.methodType', 'upload') - ->label('sdk.description', '/docs/references/functions/create-deployment.md') - ->label('sdk.packaging', true) - ->label('sdk.request.type', 'multipart/form-data') - ->label('sdk.response.code', Response::STATUS_CODE_ACCEPTED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_DEPLOYMENT) + ->label('sdk', new Method( + namespace: 'functions', + group: 'deployments', + name: 'createDeployment', + description: '/docs/references/functions/create-deployment.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_ACCEPTED, + model: Response::MODEL_DEPLOYMENT, + ) + ], + type: MethodType::UPLOAD, + packaging: true, + requestType: ContentType::MULTIPART, + )) ->param('functionId', '', new UID(), 'Function ID.') ->param('entrypoint', null, new Text(1028), 'Entrypoint File.', true) ->param('commands', null, new Text(8192, 0), 'Build Commands.', true) @@ -1365,13 +1493,20 @@ ->groups(['api', 'functions']) ->desc('List deployments') ->label('scope', 'functions.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'functions') - ->label('sdk.method', 'listDeployments') - ->label('sdk.description', '/docs/references/functions/list-deployments.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_DEPLOYMENT_LIST) + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('sdk', new Method( + namespace: 'functions', + group: 'deployments', + name: 'listDeployments', + description: '/docs/references/functions/list-deployments.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_DEPLOYMENT_LIST, + ) + ] + )) ->param('functionId', '', new UID(), 'Function ID.') ->param('queries', [], new Deployments(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Deployments::ALLOWED_ATTRIBUTES), true) ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) @@ -1408,6 +1543,12 @@ $cursor = reset($cursor); if ($cursor) { /** @var Query $cursor */ + + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + $deploymentId = $cursor->getValue(); $cursorDocument = $dbForProject->getDocument('deployments', $deploymentId); @@ -1419,9 +1560,12 @@ } $filterQueries = Query::groupByType($queries)['filters']; - - $results = $dbForProject->find('deployments', $queries); - $total = $dbForProject->count('deployments', $filterQueries, APP_LIMIT_COUNT); + try { + $results = $dbForProject->find('deployments', $queries); + $total = $dbForProject->count('deployments', $filterQueries, APP_LIMIT_COUNT); + } catch (OrderException $e) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); + } foreach ($results as $result) { $build = $dbForProject->getDocument('builds', $result->getAttribute('buildId', '')); @@ -1442,13 +1586,20 @@ ->groups(['api', 'functions']) ->desc('Get deployment') ->label('scope', 'functions.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'functions') - ->label('sdk.method', 'getDeployment') - ->label('sdk.description', '/docs/references/functions/get-deployment.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_DEPLOYMENT) + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('sdk', new Method( + namespace: 'functions', + group: 'deployments', + name: 'getDeployment', + description: '/docs/references/functions/get-deployment.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_DEPLOYMENT, + ) + ] + )) ->param('functionId', '', new UID(), 'Function ID.') ->param('deploymentId', '', new UID(), 'Deployment ID.') ->inject('response') @@ -1485,15 +1636,24 @@ ->groups(['api', 'functions']) ->desc('Delete deployment') ->label('scope', 'functions.write') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) ->label('event', 'functions.[functionId].deployments.[deploymentId].delete') ->label('audits.event', 'deployment.delete') ->label('audits.resource', 'function/{request.functionId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'functions') - ->label('sdk.method', 'deleteDeployment') - ->label('sdk.description', '/docs/references/functions/delete-deployment.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'functions', + group: 'deployments', + name: 'deleteDeployment', + description: '/docs/references/functions/delete-deployment.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('functionId', '', new UID(), 'Function ID.') ->param('deploymentId', '', new UID(), 'Deployment ID.') ->inject('response') @@ -1548,16 +1708,25 @@ App::post('/v1/functions/:functionId/deployments/:deploymentId/build') ->alias('/v1/functions/:functionId/deployments/:deploymentId/builds/:buildId') ->groups(['api', 'functions']) - ->desc('Rebuild deployment') + ->desc('Create deployment build') ->label('scope', 'functions.write') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) ->label('event', 'functions.[functionId].deployments.[deploymentId].update') ->label('audits.event', 'deployment.update') ->label('audits.resource', 'function/{request.functionId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'functions') - ->label('sdk.method', 'createBuild') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'functions', + group: 'deployments', + name: 'createBuild', + description: '/docs/references/functions/create-build.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ] + )) ->param('functionId', '', new UID(), 'Function ID.') ->param('deploymentId', '', new UID(), 'Deployment ID.') ->param('buildId', '', new UID(), 'Build unique ID.', true) // added as optional param for backward compatibility @@ -1618,21 +1787,30 @@ ->groups(['api', 'functions']) ->desc('Cancel deployment') ->label('scope', 'functions.write') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) ->label('audits.event', 'deployment.update') ->label('audits.resource', 'function/{request.functionId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'functions') - ->label('sdk.method', 'updateDeploymentBuild') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_BUILD) + ->label('sdk', new Method( + namespace: 'functions', + group: 'deployments', + name: 'updateDeploymentBuild', + description: '/docs/references/functions/update-deployment-build.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_BUILD, + ) + ] + )) ->param('functionId', '', new UID(), 'Function ID.') ->param('deploymentId', '', new UID(), 'Deployment ID.') ->inject('response') ->inject('dbForProject') ->inject('project') ->inject('queueForEvents') - ->action(function (string $functionId, string $deploymentId, Response $response, Database $dbForProject, Document $project, Event $queueForEvents) { + ->inject('executor') + ->action(function (string $functionId, string $deploymentId, Response $response, Database $dbForProject, Document $project, Event $queueForEvents, Executor $executor) { $function = $dbForProject->getDocument('functions', $functionId); if ($function->isEmpty()) { @@ -1687,7 +1865,6 @@ $dbForProject->purgeCachedDocument('deployments', $deployment->getId()); try { - $executor = new Executor(App::getEnv('_APP_EXECUTOR_HOST')); $executor->deleteRuntime($project->getId(), $deploymentId . "-build"); } catch (\Throwable $th) { // Don't throw if the deployment doesn't exist @@ -1707,33 +1884,42 @@ ->groups(['api', 'functions']) ->desc('Create execution') ->label('scope', 'execution.write') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) ->label('event', 'functions.[functionId].executions.[executionId].create') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'functions') - ->label('sdk.method', 'createExecution') - ->label('sdk.description', '/docs/references/functions/create-execution.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_MULTIPART) - ->label('sdk.response.model', Response::MODEL_EXECUTION) - ->label('sdk.request.type', Response::CONTENT_TYPE_JSON) + ->label('sdk', new Method( + namespace: 'functions', + group: 'executions', + name: 'createExecution', + description: '/docs/references/functions/create-execution.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_EXECUTION, + ) + ], + contentType: ContentType::MULTIPART, + )) ->param('functionId', '', new UID(), 'Function ID.') - ->param('body', '', new Payload(10485760, 0), 'HTTP body of execution. Default value is empty string.', true) - ->param('async', false, new Boolean(), 'Execute code in the background. Default value is false.', true) + ->param('body', '', new Text(10485760, 0), 'HTTP body of execution. Default value is empty string.', true) + ->param('async', false, new Boolean(true), 'Execute code in the background. Default value is false.', true) ->param('path', '/', new Text(2048), 'HTTP path of execution. Path can include query params. Default value is /', true) ->param('method', 'POST', new Whitelist(['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'], true), 'HTTP method of execution. Default value is GET.', true) ->param('headers', [], new AnyOf([new Assoc(), new Text(65535)], AnyOf::TYPE_MIXED), 'HTTP headers of execution. Defaults to empty.', true) - ->param('scheduledAt', null, new DatetimeValidator(true, DateTimeValidator::PRECISION_MINUTES, 60), 'Scheduled execution time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.', true) + ->param('scheduledAt', null, new DatetimeValidator(requireDateInFuture: true, precision: DateTimeValidator::PRECISION_MINUTES, offset: 60), 'Scheduled execution time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.', true) ->inject('response') ->inject('request') ->inject('project') ->inject('dbForProject') - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('user') ->inject('queueForEvents') - ->inject('queueForUsage') + ->inject('queueForStatsUsage') ->inject('queueForFunctions') + ->inject('executor') ->inject('geodb') - ->action(function (string $functionId, string $body, bool $async, string $path, string $method, mixed $headers, ?string $scheduledAt, Response $response, Request $request, Document $project, Database $dbForProject, Database $dbForConsole, Document $user, Event $queueForEvents, Usage $queueForUsage, Func $queueForFunctions, Reader $geodb) { + ->action(function (string $functionId, string $body, mixed $async, string $path, string $method, mixed $headers, ?string $scheduledAt, Response $response, Request $request, Document $project, Database $dbForProject, Database $dbForPlatform, Document $user, Event $queueForEvents, StatsUsage $queueForStatsUsage, Func $queueForFunctions, Executor $executor, Reader $geodb) { + $async = \strval($async) === 'true' || \strval($async) === '1'; if (!$async && !is_null($scheduledAt)) { throw new Exception(Exception::GENERAL_BAD_REQUEST, 'Scheduled executions must run asynchronously. Set scheduledAt to a future date, or set async to true.'); @@ -1923,8 +2109,8 @@ 'userId' => $user->getId() ]; - $schedule = $dbForConsole->createDocument('schedules', new Document([ - 'region' => System::getEnv('_APP_REGION', 'default'), + $schedule = $dbForPlatform->createDocument('schedules', new Document([ + 'region' => $project->getAttribute('region'), 'resourceType' => ScheduleExecutions::getSupportedResource(), 'resourceId' => $execution->getId(), 'resourceInternalId' => $execution->getInternalId(), @@ -2005,7 +2191,6 @@ ]); /** Execute function */ - $executor = new Executor(System::getEnv('_APP_EXECUTOR_HOST')); try { $version = $function->getAttribute('version', 'v2'); $command = $runtime['startCommand']; @@ -2059,7 +2244,7 @@ throw $th; } } finally { - $queueForUsage + $queueForStatsUsage ->addMetric(METRIC_EXECUTIONS, 1) ->addMetric(str_replace('{functionInternalId}', $function->getInternalId(), METRIC_FUNCTION_ID_EXECUTIONS), 1) ->addMetric(METRIC_EXECUTIONS_COMPUTE, (int)($execution->getAttribute('duration') * 1000)) // per project @@ -2071,15 +2256,6 @@ $execution = Authorization::skip(fn () => $dbForProject->createDocument('executions', $execution)); } - $roles = Authorization::getRoles(); - $isPrivilegedUser = Auth::isPrivilegedUser($roles); - $isAppUser = Auth::isAppUser($roles); - - if (!$isPrivilegedUser && !$isAppUser) { - $execution->setAttribute('logs', ''); - $execution->setAttribute('errors', ''); - } - $headers = []; foreach (($executionResponse['headers'] ?? []) as $key => $value) { $headers[] = ['name' => $key, 'value' => $value]; @@ -2108,13 +2284,20 @@ ->groups(['api', 'functions']) ->desc('List executions') ->label('scope', 'execution.read') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'functions') - ->label('sdk.method', 'listExecutions') - ->label('sdk.description', '/docs/references/functions/list-executions.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_EXECUTION_LIST) + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('sdk', new Method( + namespace: 'functions', + group: 'executions', + name: 'listExecutions', + description: '/docs/references/functions/list-executions.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_EXECUTION_LIST, + ) + ] + )) ->param('functionId', '', new UID(), 'Function ID.') ->param('queries', [], new Executions(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Executions::ALLOWED_ATTRIBUTES), true) ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) @@ -2153,6 +2336,12 @@ $cursor = reset($cursor); if ($cursor) { /** @var Query $cursor */ + + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + $executionId = $cursor->getValue(); $cursorDocument = $dbForProject->getDocument('executions', $executionId); @@ -2164,19 +2353,11 @@ } $filterQueries = Query::groupByType($queries)['filters']; - - $results = $dbForProject->find('executions', $queries); - $total = $dbForProject->count('executions', $filterQueries, APP_LIMIT_COUNT); - - $roles = Authorization::getRoles(); - $isPrivilegedUser = Auth::isPrivilegedUser($roles); - $isAppUser = Auth::isAppUser($roles); - if (!$isPrivilegedUser && !$isAppUser) { - $results = array_map(function ($execution) { - $execution->setAttribute('logs', ''); - $execution->setAttribute('errors', ''); - return $execution; - }, $results); + try { + $results = $dbForProject->find('executions', $queries); + $total = $dbForProject->count('executions', $filterQueries, APP_LIMIT_COUNT); + } catch (OrderException $e) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); } $response->dynamic(new Document([ @@ -2189,13 +2370,20 @@ ->groups(['api', 'functions']) ->desc('Get execution') ->label('scope', 'execution.read') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'functions') - ->label('sdk.method', 'getExecution') - ->label('sdk.description', '/docs/references/functions/get-execution.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_EXECUTION) + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('sdk', new Method( + namespace: 'functions', + group: 'executions', + name: 'getExecution', + description: '/docs/references/functions/get-execution.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_EXECUTION, + ) + ] + )) ->param('functionId', '', new UID(), 'Function ID.') ->param('executionId', '', new UID(), 'Execution ID.') ->inject('response') @@ -2221,14 +2409,6 @@ throw new Exception(Exception::EXECUTION_NOT_FOUND); } - $roles = Authorization::getRoles(); - $isPrivilegedUser = Auth::isPrivilegedUser($roles); - $isAppUser = Auth::isAppUser($roles); - if (!$isPrivilegedUser && !$isAppUser) { - $execution->setAttribute('logs', ''); - $execution->setAttribute('errors', ''); - } - $response->dynamic($execution, Response::MODEL_EXECUTION); }); @@ -2236,22 +2416,31 @@ ->groups(['api', 'functions']) ->desc('Delete execution') ->label('scope', 'execution.write') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) ->label('event', 'functions.[functionId].executions.[executionId].delete') ->label('audits.event', 'executions.delete') ->label('audits.resource', 'function/{request.functionId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'functions') - ->label('sdk.method', 'deleteExecution') - ->label('sdk.description', '/docs/references/functions/delete-execution.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'functions', + group: 'executions', + name: 'deleteExecution', + description: '/docs/references/functions/delete-execution.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('functionId', '', new UID(), 'Function ID.') ->param('executionId', '', new UID(), 'Execution ID.') ->inject('response') ->inject('dbForProject') - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('queueForEvents') - ->action(function (string $functionId, string $executionId, Response $response, Database $dbForProject, Database $dbForConsole, Event $queueForEvents) { + ->action(function (string $functionId, string $executionId, Response $response, Database $dbForProject, Database $dbForPlatform, Event $queueForEvents) { $function = $dbForProject->getDocument('functions', $functionId); if ($function->isEmpty()) { @@ -2277,18 +2466,18 @@ } if ($status === 'scheduled') { - $schedule = $dbForConsole->findOne('schedules', [ + $schedule = $dbForPlatform->findOne('schedules', [ Query::equal('resourceId', [$execution->getId()]), Query::equal('resourceType', [ScheduleExecutions::getSupportedResource()]), Query::equal('active', [true]), ]); - if ($schedule && !$schedule->isEmpty()) { + if (!$schedule->isEmpty()) { $schedule ->setAttribute('resourceUpdatedAt', DateTime::now()) ->setAttribute('active', false); - Authorization::skip(fn () => $dbForConsole->updateDocument('schedules', $schedule->getId(), $schedule)); + Authorization::skip(fn () => $dbForPlatform->updateDocument('schedules', $schedule->getId(), $schedule)); } } @@ -2306,22 +2495,29 @@ ->desc('Create variable') ->groups(['api', 'functions']) ->label('scope', 'functions.write') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) ->label('audits.event', 'variable.create') ->label('audits.resource', 'function/{request.functionId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'functions') - ->label('sdk.method', 'createVariable') - ->label('sdk.description', '/docs/references/functions/create-variable.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_VARIABLE) + ->label('sdk', new Method( + namespace: 'functions', + group: 'variables', + name: 'createVariable', + description: '/docs/references/functions/create-variable.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_VARIABLE, + ) + ] + )) ->param('functionId', '', new UID(), 'Function unique ID.', false) ->param('key', null, new Text(Database::LENGTH_KEY), 'Variable key. Max length: ' . Database::LENGTH_KEY . ' chars.', false) ->param('value', null, new Text(8192, 0), 'Variable value. Max length: 8192 chars.', false) ->inject('response') ->inject('dbForProject') - ->inject('dbForConsole') - ->action(function (string $functionId, string $key, string $value, Response $response, Database $dbForProject, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $functionId, string $key, string $value, Response $response, Database $dbForProject, Database $dbForPlatform) { $function = $dbForProject->getDocument('functions', $functionId); if ($function->isEmpty()) { @@ -2354,12 +2550,12 @@ $dbForProject->updateDocument('functions', $function->getId(), $function->setAttribute('live', false)); // Inform scheduler to pull the latest changes - $schedule = $dbForConsole->getDocument('schedules', $function->getAttribute('scheduleId')); + $schedule = $dbForPlatform->getDocument('schedules', $function->getAttribute('scheduleId')); $schedule ->setAttribute('resourceUpdatedAt', DateTime::now()) ->setAttribute('schedule', $function->getAttribute('schedule')) ->setAttribute('active', !empty($function->getAttribute('schedule')) && !empty($function->getAttribute('deployment'))); - Authorization::skip(fn () => $dbForConsole->updateDocument('schedules', $schedule->getId(), $schedule)); + Authorization::skip(fn () => $dbForPlatform->updateDocument('schedules', $schedule->getId(), $schedule)); $response ->setStatusCode(Response::STATUS_CODE_CREATED) @@ -2370,13 +2566,23 @@ ->desc('List variables') ->groups(['api', 'functions']) ->label('scope', 'functions.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'functions') - ->label('sdk.method', 'listVariables') - ->label('sdk.description', '/docs/references/functions/list-variables.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_VARIABLE_LIST) + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label( + 'sdk', + new Method( + namespace: 'functions', + group: 'variables', + name: 'listVariables', + description: '/docs/references/functions/list-variables.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_VARIABLE_LIST, + ) + ], + ) + ) ->param('functionId', '', new UID(), 'Function unique ID.', false) ->inject('response') ->inject('dbForProject') @@ -2397,13 +2603,23 @@ ->desc('Get variable') ->groups(['api', 'functions']) ->label('scope', 'functions.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'functions') - ->label('sdk.method', 'getVariable') - ->label('sdk.description', '/docs/references/functions/get-variable.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_VARIABLE) + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label( + 'sdk', + new Method( + namespace: 'functions', + group: 'variables', + name: 'getVariable', + description: '/docs/references/functions/get-variable.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_VARIABLE, + ) + ], + ) + ) ->param('functionId', '', new UID(), 'Function unique ID.', false) ->param('variableId', '', new UID(), 'Variable unique ID.', false) ->inject('response') @@ -2436,23 +2652,30 @@ ->desc('Update variable') ->groups(['api', 'functions']) ->label('scope', 'functions.write') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) ->label('audits.event', 'variable.update') ->label('audits.resource', 'function/{request.functionId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'functions') - ->label('sdk.method', 'updateVariable') - ->label('sdk.description', '/docs/references/functions/update-variable.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_VARIABLE) + ->label('sdk', new Method( + namespace: 'functions', + group: 'variables', + name: 'updateVariable', + description: '/docs/references/functions/update-variable.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_VARIABLE, + ) + ] + )) ->param('functionId', '', new UID(), 'Function unique ID.', false) ->param('variableId', '', new UID(), 'Variable unique ID.', false) ->param('key', null, new Text(255), 'Variable key. Max length: 255 chars.', false) ->param('value', null, new Text(8192, 0), 'Variable value. Max length: 8192 chars.', true) ->inject('response') ->inject('dbForProject') - ->inject('dbForConsole') - ->action(function (string $functionId, string $variableId, string $key, ?string $value, Response $response, Database $dbForProject, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $functionId, string $variableId, string $key, ?string $value, Response $response, Database $dbForProject, Database $dbForPlatform) { $function = $dbForProject->getDocument('functions', $functionId); @@ -2483,12 +2706,12 @@ $dbForProject->updateDocument('functions', $function->getId(), $function->setAttribute('live', false)); // Inform scheduler to pull the latest changes - $schedule = $dbForConsole->getDocument('schedules', $function->getAttribute('scheduleId')); + $schedule = $dbForPlatform->getDocument('schedules', $function->getAttribute('scheduleId')); $schedule ->setAttribute('resourceUpdatedAt', DateTime::now()) ->setAttribute('schedule', $function->getAttribute('schedule')) ->setAttribute('active', !empty($function->getAttribute('schedule')) && !empty($function->getAttribute('deployment'))); - Authorization::skip(fn () => $dbForConsole->updateDocument('schedules', $schedule->getId(), $schedule)); + Authorization::skip(fn () => $dbForPlatform->updateDocument('schedules', $schedule->getId(), $schedule)); $response->dynamic($variable, Response::MODEL_VARIABLE); }); @@ -2497,20 +2720,29 @@ ->desc('Delete variable') ->groups(['api', 'functions']) ->label('scope', 'functions.write') + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) ->label('audits.event', 'variable.delete') ->label('audits.resource', 'function/{request.functionId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'functions') - ->label('sdk.method', 'deleteVariable') - ->label('sdk.description', '/docs/references/functions/delete-variable.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'functions', + group: 'variables', + name: 'deleteVariable', + description: '/docs/references/functions/delete-variable.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('functionId', '', new UID(), 'Function unique ID.', false) ->param('variableId', '', new UID(), 'Variable unique ID.', false) ->inject('response') ->inject('dbForProject') - ->inject('dbForConsole') - ->action(function (string $functionId, string $variableId, Response $response, Database $dbForProject, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $functionId, string $variableId, Response $response, Database $dbForProject, Database $dbForPlatform) { $function = $dbForProject->getDocument('functions', $functionId); if ($function->isEmpty()) { @@ -2531,12 +2763,12 @@ $dbForProject->updateDocument('functions', $function->getId(), $function->setAttribute('live', false)); // Inform scheduler to pull the latest changes - $schedule = $dbForConsole->getDocument('schedules', $function->getAttribute('scheduleId')); + $schedule = $dbForPlatform->getDocument('schedules', $function->getAttribute('scheduleId')); $schedule ->setAttribute('resourceUpdatedAt', DateTime::now()) ->setAttribute('schedule', $function->getAttribute('schedule')) ->setAttribute('active', !empty($function->getAttribute('schedule')) && !empty($function->getAttribute('deployment'))); - Authorization::skip(fn () => $dbForConsole->updateDocument('schedules', $schedule->getId(), $schedule)); + Authorization::skip(fn () => $dbForPlatform->updateDocument('schedules', $schedule->getId(), $schedule)); $response->noContent(); }); @@ -2545,13 +2777,20 @@ ->groups(['api']) ->desc('List function templates') ->label('scope', 'public') - ->label('sdk.namespace', 'functions') - ->label('sdk.method', 'listTemplates') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.description', '/docs/references/functions/list-templates.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_TEMPLATE_FUNCTION_LIST) + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('sdk', new Method( + namespace: 'functions', + group: 'templates', + name: 'listTemplates', + description: '/docs/references/functions/list-templates.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_TEMPLATE_FUNCTION_LIST, + ) + ] + )) ->param('runtimes', [], new ArrayList(new WhiteList(array_keys(Config::getParam('runtimes')), true), APP_LIMIT_ARRAY_PARAMS_SIZE), 'List of runtimes allowed for filtering function templates. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' runtimes are allowed.', true) ->param('useCases', [], new ArrayList(new WhiteList(['dev-tools','starter','databases','ai','messaging','utilities']), APP_LIMIT_ARRAY_PARAMS_SIZE), 'List of use cases allowed for filtering function templates. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' use cases are allowed.', true) ->param('limit', 25, new Range(1, 5000), 'Limit the number of templates returned in the response. Default limit is 25, and maximum limit is 5000.', true) @@ -2582,21 +2821,30 @@ App::get('/v1/functions/templates/:templateId') ->desc('Get function template') ->label('scope', 'public') - ->label('sdk.namespace', 'functions') - ->label('sdk.method', 'getTemplate') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.description', '/docs/references/functions/get-template.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_TEMPLATE_FUNCTION) + ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) + ->label('sdk', new Method( + namespace: 'functions', + group: 'templates', + name: 'getTemplate', + description: '/docs/references/functions/get-template.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_TEMPLATE_FUNCTION, + ) + ] + )) ->param('templateId', '', new Text(128), 'Template ID.') ->inject('response') ->action(function (string $templateId, Response $response) { $templates = Config::getParam('function-templates', []); - $template = array_shift(\array_filter($templates, function ($template) use ($templateId) { + $filtered = \array_filter($templates, function ($template) use ($templateId) { return $template['id'] === $templateId; - })); + }); + + $template = array_shift($filtered); if (empty($template)) { throw new Exception(Exception::FUNCTION_TEMPLATE_NOT_FOUND); diff --git a/app/controllers/api/graphql.php b/app/controllers/api/graphql.php index f79f433b5ca..482b38d6989 100644 --- a/app/controllers/api/graphql.php +++ b/app/controllers/api/graphql.php @@ -5,6 +5,10 @@ use Appwrite\Extend\Exception as AppwriteException; use Appwrite\GraphQL\Promises\Adapter; use Appwrite\GraphQL\Schema; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\MethodType; +use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Request; use Appwrite\Utopia\Response; use GraphQL\Error\DebugFlag; @@ -38,13 +42,20 @@ ->desc('GraphQL endpoint') ->groups(['graphql']) ->label('scope', 'graphql') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'graphql') - ->label('sdk.hide', true) - ->label('sdk.description', '/docs/references/graphql/get.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_ANY) + ->label('sdk', new Method( + namespace: 'graphql', + group: 'graphql', + name: 'get', + auth: [AuthType::KEY, AuthType::SESSION, AuthType::JWT], + hide: true, + description: '/docs/references/graphql/get.md', + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_ANY, + ) + ] + )) ->label('abuse-limit', 60) ->label('abuse-time', 60) ->param('query', '', new Text(0, 0), 'The query to execute.') @@ -78,17 +89,23 @@ ->desc('GraphQL endpoint') ->groups(['graphql']) ->label('scope', 'graphql') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'graphql') - ->label('sdk.method', 'mutation') - ->label('sdk.methodType', 'graphql') - ->label('sdk.description', '/docs/references/graphql/post.md') - ->label('sdk.parameters', [ - 'query' => ['default' => [], 'validator' => new JSON(), 'description' => 'The query or queries to execute.', 'optional' => false], - ]) - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_ANY) + ->label('sdk', new Method( + namespace: 'graphql', + group: 'graphql', + name: 'mutation', + auth: [AuthType::KEY, AuthType::SESSION, AuthType::JWT], + description: '/docs/references/graphql/post.md', + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_ANY, + ) + ], + type: MethodType::GRAPHQL, + additionalParameters: [ + 'query' => ['default' => [], 'validator' => new JSON(), 'description' => 'The query or queries to execute.', 'optional' => false], + ], + )) ->label('abuse-limit', 60) ->label('abuse-time', 60) ->inject('request') @@ -123,17 +140,23 @@ ->desc('GraphQL endpoint') ->groups(['graphql']) ->label('scope', 'graphql') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'graphql') - ->label('sdk.method', 'query') - ->label('sdk.methodType', 'graphql') - ->label('sdk.description', '/docs/references/graphql/post.md') - ->label('sdk.parameters', [ - 'query' => ['default' => [], 'validator' => new JSON(), 'description' => 'The query or queries to execute.', 'optional' => false], - ]) - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_ANY) + ->label('sdk', new Method( + namespace: 'graphql', + group: 'graphql', + name: 'query', + auth: [AuthType::KEY, AuthType::SESSION, AuthType::JWT], + description: '/docs/references/graphql/post.md', + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_ANY, + ) + ], + type: MethodType::GRAPHQL, + additionalParameters: [ + 'query' => ['default' => [], 'validator' => new JSON(), 'description' => 'The query or queries to execute.', 'optional' => false], + ], + )) ->label('abuse-limit', 60) ->label('abuse-time', 60) ->inject('request') diff --git a/app/controllers/api/health.php b/app/controllers/api/health.php index f4581df8e43..5fe2de55490 100644 --- a/app/controllers/api/health.php +++ b/app/controllers/api/health.php @@ -3,14 +3,21 @@ use Appwrite\ClamAV\Network; use Appwrite\Event\Event; use Appwrite\Extend\Exception; +use Appwrite\PubSub\Adapter\Pool as PubSubPool; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Response; use Utopia\App; +use Utopia\Cache\Adapter\Pool as CachePool; use Utopia\Config\Config; +use Utopia\Database\Adapter\Pool as DatabasePool; use Utopia\Database\Document; use Utopia\Domains\Validator\PublicDomain; use Utopia\Pools\Group; -use Utopia\Queue\Client; -use Utopia\Queue\Connection; +use Utopia\Queue\Publisher; +use Utopia\Queue\Queue; use Utopia\Registry\Registry; use Utopia\Storage\Device; use Utopia\Storage\Device\Local; @@ -26,13 +33,20 @@ ->desc('Get HTTP') ->groups(['api', 'health']) ->label('scope', 'health.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'health') - ->label('sdk.method', 'get') - ->label('sdk.description', '/docs/references/health/get.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_HEALTH_STATUS) + ->label('sdk', new Method( + namespace: 'health', + group: 'health', + name: 'get', + description: '/docs/references/health/get.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_HEALTH_STATUS, + ) + ], + contentType: ContentType::JSON + )) ->inject('response') ->action(function (Response $response) { @@ -49,9 +63,6 @@ ->desc('Get version') ->groups(['api', 'health']) ->label('scope', 'public') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_HEALTH_VERSION) ->inject('response') ->action(function (Response $response) { $response->dynamic(new Document([ 'version' => APP_VERSION_STABLE ]), Response::MODEL_HEALTH_VERSION); @@ -61,18 +72,25 @@ ->desc('Get DB') ->groups(['api', 'health']) ->label('scope', 'health.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'health') - ->label('sdk.method', 'getDB') - ->label('sdk.description', '/docs/references/health/get-db.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_HEALTH_STATUS) + ->label('sdk', new Method( + namespace: 'health', + group: 'health', + name: 'getDB', + description: '/docs/references/health/get-db.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_HEALTH_STATUS, + ) + ], + contentType: ContentType::JSON + )) ->inject('response') ->inject('pools') ->action(function (Response $response, Group $pools) { - $output = []; + $failures = []; $configs = [ 'Console.DB' => Config::getParam('pools-console'), @@ -82,7 +100,7 @@ foreach ($configs as $key => $config) { foreach ($config as $database) { try { - $adapter = $pools->get($database)->pop()->getResource(); + $adapter = new DatabasePool($pools->get($database)); $checkStart = \microtime(true); @@ -93,16 +111,16 @@ 'ping' => \round((\microtime(true) - $checkStart) / 1000) ]); } else { - $failure[] = $database; + $failures[] = $database; } - } catch (\Throwable $th) { - $failure[] = $database; + } catch (\Throwable) { + $failures[] = $database; } } } - if (!empty($failure)) { - throw new Exception(Exception::GENERAL_SERVER_ERROR, 'DB failure on: ' . implode(", ", $failure)); + if (!empty($failures)) { + throw new Exception(Exception::GENERAL_SERVER_ERROR, 'DB failure on: ' . implode(", ", $failures)); } $response->dynamic(new Document([ @@ -115,108 +133,54 @@ ->desc('Get cache') ->groups(['api', 'health']) ->label('scope', 'health.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'health') - ->label('sdk.method', 'getCache') - ->label('sdk.description', '/docs/references/health/get-cache.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_HEALTH_STATUS) + ->label('sdk', new Method( + namespace: 'health', + group: 'health', + name: 'getCache', + description: '/docs/references/health/get-cache.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_HEALTH_STATUS, + ) + ], + contentType: ContentType::JSON + )) ->inject('response') ->inject('pools') ->action(function (Response $response, Group $pools) { - $output = []; + $failures = []; $configs = [ 'Cache' => Config::getParam('pools-cache'), ]; foreach ($configs as $key => $config) { - foreach ($config as $database) { + foreach ($config as $cache) { try { - $adapter = $pools->get($database)->pop()->getResource(); + $adapter = new CachePool($pools->get($cache)); $checkStart = \microtime(true); if ($adapter->ping()) { $output[] = new Document([ - 'name' => $key . " ($database)", + 'name' => $key . " ($cache)", 'status' => 'pass', 'ping' => \round((\microtime(true) - $checkStart) / 1000) ]); } else { - $output[] = new Document([ - 'name' => $key . " ($database)", - 'status' => 'fail', - 'ping' => \round((\microtime(true) - $checkStart) / 1000) - ]); + $failures[] = $cache; } - } catch (\Throwable $th) { - $output[] = new Document([ - 'name' => $key . " ($database)", - 'status' => 'fail', - 'ping' => \round((\microtime(true) - $checkStart) / 1000) - ]); + } catch (\Throwable) { + $failures[] = $cache; } } } - $response->dynamic(new Document([ - 'statuses' => $output, - 'total' => count($output), - ]), Response::MODEL_HEALTH_STATUS_LIST); - }); - -App::get('/v1/health/queue') - ->desc('Get queue') - ->groups(['api', 'health']) - ->label('scope', 'health.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'health') - ->label('sdk.method', 'getQueue') - ->label('sdk.description', '/docs/references/health/get-queue.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_HEALTH_STATUS) - ->inject('response') - ->inject('pools') - ->action(function (Response $response, Group $pools) { - - $output = []; - - $configs = [ - 'Queue' => Config::getParam('pools-queue'), - ]; - - foreach ($configs as $key => $config) { - foreach ($config as $database) { - try { - $adapter = $pools->get($database)->pop()->getResource(); - - $checkStart = \microtime(true); - - if ($adapter->ping()) { - $output[] = new Document([ - 'name' => $key . " ($database)", - 'status' => 'pass', - 'ping' => \round((\microtime(true) - $checkStart) / 1000) - ]); - } else { - $output[] = new Document([ - 'name' => $key . " ($database)", - 'status' => 'fail', - 'ping' => \round((\microtime(true) - $checkStart) / 1000) - ]); - } - } catch (\Throwable $th) { - $output[] = new Document([ - 'name' => $key . " ($database)", - 'status' => 'fail', - 'ping' => \round((\microtime(true) - $checkStart) / 1000) - ]); - } - } + if (!empty($failures)) { + throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Cache failure on: ' . implode(", ", $failures)); } $response->dynamic(new Document([ @@ -229,53 +193,56 @@ ->desc('Get pubsub') ->groups(['api', 'health']) ->label('scope', 'health.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'health') - ->label('sdk.method', 'getPubSub') - ->label('sdk.description', '/docs/references/health/get-pubsub.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_HEALTH_STATUS) + ->label('sdk', new Method( + namespace: 'health', + group: 'health', + name: 'getPubSub', + description: '/docs/references/health/get-pubsub.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_HEALTH_STATUS, + ) + ], + contentType: ContentType::JSON + )) ->inject('response') ->inject('pools') ->action(function (Response $response, Group $pools) { - $output = []; + $failures = []; $configs = [ 'PubSub' => Config::getParam('pools-pubsub'), ]; foreach ($configs as $key => $config) { - foreach ($config as $database) { + foreach ($config as $pubsub) { try { - $adapter = $pools->get($database)->pop()->getResource(); + $adapter = new PubSubPool($pools->get($pubsub)); $checkStart = \microtime(true); if ($adapter->ping()) { $output[] = new Document([ - 'name' => $key . " ($database)", + 'name' => $key . " ($pubsub)", 'status' => 'pass', 'ping' => \round((\microtime(true) - $checkStart) / 1000) ]); } else { - $output[] = new Document([ - 'name' => $key . " ($database)", - 'status' => 'fail', - 'ping' => \round((\microtime(true) - $checkStart) / 1000) - ]); + $failures[] = $pubsub; } - } catch (\Throwable $th) { - $output[] = new Document([ - 'name' => $key . " ($database)", - 'status' => 'fail', - 'ping' => \round((\microtime(true) - $checkStart) / 1000) - ]); + } catch (\Throwable) { + $failures[] = $pubsub; } } } + if (!empty($failures)) { + throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Pubsub failure on: ' . implode(", ", $failures)); + } + $response->dynamic(new Document([ 'statuses' => $output, 'total' => count($output), @@ -286,13 +253,20 @@ ->desc('Get time') ->groups(['api', 'health']) ->label('scope', 'health.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'health') - ->label('sdk.method', 'getTime') - ->label('sdk.description', '/docs/references/health/get-time.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_HEALTH_TIME) + ->label('sdk', new Method( + namespace: 'health', + group: 'health', + name: 'getTime', + description: '/docs/references/health/get-time.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_HEALTH_TIME, + ) + ], + contentType: ContentType::JSON + )) ->inject('response') ->action(function (Response $response) { @@ -343,67 +317,86 @@ ->desc('Get webhooks queue') ->groups(['api', 'health']) ->label('scope', 'health.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'health') - ->label('sdk.method', 'getQueueWebhooks') - ->label('sdk.description', '/docs/references/health/get-queue-webhooks.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_HEALTH_QUEUE) + ->label('sdk', new Method( + namespace: 'health', + group: 'queue', + name: 'getQueueWebhooks', + description: '/docs/references/health/get-queue-webhooks.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_HEALTH_QUEUE, + ) + ], + contentType: ContentType::JSON + )) ->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true) - ->inject('queue') + ->inject('publisher') ->inject('response') - ->action(function (int|string $threshold, Connection $queue, Response $response) { + ->action(function (int|string $threshold, Publisher $publisher, Response $response) { $threshold = \intval($threshold); - $client = new Client(Event::WEBHOOK_QUEUE_NAME, $queue); - $size = $client->getQueueSize(); + $size = $publisher->getQueueSize(new Queue(Event::WEBHOOK_QUEUE_NAME)); if ($size >= $threshold) { throw new Exception(Exception::HEALTH_QUEUE_SIZE_EXCEEDED, "Queue size threshold hit. Current size is {$size} and threshold is {$threshold}."); } $response->dynamic(new Document([ 'size' => $size ]), Response::MODEL_HEALTH_QUEUE); - }, ['response']); + }); App::get('/v1/health/queue/logs') ->desc('Get logs queue') ->groups(['api', 'health']) ->label('scope', 'health.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'health') - ->label('sdk.method', 'getQueueLogs') - ->label('sdk.description', '/docs/references/health/get-queue-logs.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_HEALTH_QUEUE) + ->label('sdk', new Method( + namespace: 'health', + group: 'queue', + name: 'getQueueLogs', + description: '/docs/references/health/get-queue-logs.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_HEALTH_QUEUE, + ) + ], + contentType: ContentType::JSON + )) ->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true) - ->inject('queue') + ->inject('publisher') ->inject('response') - ->action(function (int|string $threshold, Connection $queue, Response $response) { + ->action(function (int|string $threshold, Publisher $publisher, Response $response) { $threshold = \intval($threshold); - $client = new Client(Event::AUDITS_QUEUE_NAME, $queue); - $size = $client->getQueueSize(); + $size = $publisher->getQueueSize(new Queue(Event::AUDITS_QUEUE_NAME)); if ($size >= $threshold) { throw new Exception(Exception::HEALTH_QUEUE_SIZE_EXCEEDED, "Queue size threshold hit. Current size is {$size} and threshold is {$threshold}."); } $response->dynamic(new Document([ 'size' => $size ]), Response::MODEL_HEALTH_QUEUE); - }, ['response']); + }); App::get('/v1/health/certificate') ->desc('Get the SSL certificate for a domain') ->groups(['api', 'health']) ->label('scope', 'health.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'health') - ->label('sdk.method', 'getCertificate') - ->label('sdk.description', '/docs/references/health/get-certificate.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_HEALTH_CERTIFICATE) + ->label('sdk', new Method( + namespace: 'health', + group: 'health', + name: 'getCertificate', + description: '/docs/references/health/get-certificate.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_HEALTH_CERTIFICATE, + ) + ], + contentType: ContentType::JSON + )) ->param('domain', null, new Multiple([new Domain(), new PublicDomain()]), Multiple::TYPE_STRING, 'Domain name') ->inject('response') ->action(function (string $domain, Response $response) { @@ -441,244 +434,298 @@ 'validTo' => $certificatePayload['validTo_time_t'], 'signatureTypeSN' => $certificatePayload['signatureTypeSN'], ]), Response::MODEL_HEALTH_CERTIFICATE); - }, ['response']); + }); App::get('/v1/health/queue/certificates') ->desc('Get certificates queue') ->groups(['api', 'health']) ->label('scope', 'health.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'health') - ->label('sdk.method', 'getQueueCertificates') - ->label('sdk.description', '/docs/references/health/get-queue-certificates.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_HEALTH_QUEUE) + ->label('sdk', new Method( + namespace: 'health', + group: 'queue', + name: 'getQueueCertificates', + description: '/docs/references/health/get-queue-certificates.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_HEALTH_QUEUE, + ) + ], + contentType: ContentType::JSON + )) ->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true) - ->inject('queue') + ->inject('publisher') ->inject('response') - ->action(function (int|string $threshold, Connection $queue, Response $response) { + ->action(function (int|string $threshold, Publisher $publisher, Response $response) { $threshold = \intval($threshold); - $client = new Client(Event::CERTIFICATES_QUEUE_NAME, $queue); - $size = $client->getQueueSize(); + $size = $publisher->getQueueSize(new Queue(Event::CERTIFICATES_QUEUE_NAME)); if ($size >= $threshold) { throw new Exception(Exception::HEALTH_QUEUE_SIZE_EXCEEDED, "Queue size threshold hit. Current size is {$size} and threshold is {$threshold}."); } $response->dynamic(new Document([ 'size' => $size ]), Response::MODEL_HEALTH_QUEUE); - }, ['response']); + }); App::get('/v1/health/queue/builds') ->desc('Get builds queue') ->groups(['api', 'health']) ->label('scope', 'health.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'health') - ->label('sdk.method', 'getQueueBuilds') - ->label('sdk.description', '/docs/references/health/get-queue-builds.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_HEALTH_QUEUE) + ->label('sdk', new Method( + namespace: 'health', + group: 'queue', + name: 'getQueueBuilds', + description: '/docs/references/health/get-queue-builds.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_HEALTH_QUEUE, + ) + ], + contentType: ContentType::JSON + )) ->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true) - ->inject('queue') + ->inject('publisher') ->inject('response') - ->action(function (int|string $threshold, Connection $queue, Response $response) { + ->action(function (int|string $threshold, Publisher $publisher, Response $response) { $threshold = \intval($threshold); - $client = new Client(Event::BUILDS_QUEUE_NAME, $queue); - $size = $client->getQueueSize(); + $size = $publisher->getQueueSize(new Queue(Event::BUILDS_QUEUE_NAME)); if ($size >= $threshold) { throw new Exception(Exception::HEALTH_QUEUE_SIZE_EXCEEDED, "Queue size threshold hit. Current size is {$size} and threshold is {$threshold}."); } $response->dynamic(new Document([ 'size' => $size ]), Response::MODEL_HEALTH_QUEUE); - }, ['response']); + }); App::get('/v1/health/queue/databases') ->desc('Get databases queue') ->groups(['api', 'health']) ->label('scope', 'health.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'health') - ->label('sdk.method', 'getQueueDatabases') - ->label('sdk.description', '/docs/references/health/get-queue-databases.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_HEALTH_QUEUE) + ->label('sdk', new Method( + namespace: 'health', + group: 'queue', + name: 'getQueueDatabases', + description: '/docs/references/health/get-queue-databases.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_HEALTH_QUEUE, + ) + ], + contentType: ContentType::JSON + )) ->param('name', 'database_db_main', new Text(256), 'Queue name for which to check the queue size', true) ->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true) - ->inject('queue') + ->inject('publisher') ->inject('response') - ->action(function (string $name, int|string $threshold, Connection $queue, Response $response) { + ->action(function (string $name, int|string $threshold, Publisher $publisher, Response $response) { $threshold = \intval($threshold); - $client = new Client($name, $queue); - $size = $client->getQueueSize(); + $size = $publisher->getQueueSize(new Queue($name)); if ($size >= $threshold) { throw new Exception(Exception::HEALTH_QUEUE_SIZE_EXCEEDED, "Queue size threshold hit. Current size is {$size} and threshold is {$threshold}."); } $response->dynamic(new Document([ 'size' => $size ]), Response::MODEL_HEALTH_QUEUE); - }, ['response']); + }); App::get('/v1/health/queue/deletes') ->desc('Get deletes queue') ->groups(['api', 'health']) ->label('scope', 'health.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'health') - ->label('sdk.method', 'getQueueDeletes') - ->label('sdk.description', '/docs/references/health/get-queue-deletes.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_HEALTH_QUEUE) + ->label('sdk', new Method( + namespace: 'health', + group: 'queue', + name: 'getQueueDeletes', + description: '/docs/references/health/get-queue-deletes.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_HEALTH_QUEUE, + ) + ], + contentType: ContentType::JSON + )) ->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true) - ->inject('queue') + ->inject('publisher') ->inject('response') - ->action(function (int|string $threshold, Connection $queue, Response $response) { + ->action(function (int|string $threshold, Publisher $publisher, Response $response) { $threshold = \intval($threshold); - $client = new Client(Event::DELETE_QUEUE_NAME, $queue); - $size = $client->getQueueSize(); + $size = $publisher->getQueueSize(new Queue(Event::DELETE_QUEUE_NAME)); if ($size >= $threshold) { throw new Exception(Exception::HEALTH_QUEUE_SIZE_EXCEEDED, "Queue size threshold hit. Current size is {$size} and threshold is {$threshold}."); } $response->dynamic(new Document([ 'size' => $size ]), Response::MODEL_HEALTH_QUEUE); - }, ['response']); + }); App::get('/v1/health/queue/mails') ->desc('Get mails queue') ->groups(['api', 'health']) ->label('scope', 'health.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'health') - ->label('sdk.method', 'getQueueMails') - ->label('sdk.description', '/docs/references/health/get-queue-mails.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_HEALTH_QUEUE) + ->label('sdk', new Method( + namespace: 'health', + group: 'queue', + name: 'getQueueMails', + description: '/docs/references/health/get-queue-mails.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_HEALTH_QUEUE, + ) + ], + contentType: ContentType::JSON + )) ->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true) - ->inject('queue') + ->inject('publisher') ->inject('response') - ->action(function (int|string $threshold, Connection $queue, Response $response) { + ->action(function (int|string $threshold, Publisher $publisher, Response $response) { $threshold = \intval($threshold); - $client = new Client(Event::MAILS_QUEUE_NAME, $queue); - $size = $client->getQueueSize(); + $size = $publisher->getQueueSize(new Queue(Event::MAILS_QUEUE_NAME)); if ($size >= $threshold) { throw new Exception(Exception::HEALTH_QUEUE_SIZE_EXCEEDED, "Queue size threshold hit. Current size is {$size} and threshold is {$threshold}."); } $response->dynamic(new Document([ 'size' => $size ]), Response::MODEL_HEALTH_QUEUE); - }, ['response']); + }); App::get('/v1/health/queue/messaging') ->desc('Get messaging queue') ->groups(['api', 'health']) ->label('scope', 'health.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'health') - ->label('sdk.method', 'getQueueMessaging') - ->label('sdk.description', '/docs/references/health/get-queue-messaging.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_HEALTH_QUEUE) + ->label('sdk', new Method( + namespace: 'health', + group: 'queue', + name: 'getQueueMessaging', + description: '/docs/references/health/get-queue-messaging.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_HEALTH_QUEUE, + ) + ], + contentType: ContentType::JSON + )) ->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true) - ->inject('queue') + ->inject('publisher') ->inject('response') - ->action(function (int|string $threshold, Connection $queue, Response $response) { + ->action(function (int|string $threshold, Publisher $publisher, Response $response) { $threshold = \intval($threshold); - $client = new Client(Event::MESSAGING_QUEUE_NAME, $queue); - $size = $client->getQueueSize(); + $size = $publisher->getQueueSize(new Queue(Event::MESSAGING_QUEUE_NAME)); if ($size >= $threshold) { throw new Exception(Exception::HEALTH_QUEUE_SIZE_EXCEEDED, "Queue size threshold hit. Current size is {$size} and threshold is {$threshold}."); } $response->dynamic(new Document([ 'size' => $size ]), Response::MODEL_HEALTH_QUEUE); - }, ['response']); + }); App::get('/v1/health/queue/migrations') ->desc('Get migrations queue') ->groups(['api', 'health']) ->label('scope', 'health.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'health') - ->label('sdk.method', 'getQueueMigrations') - ->label('sdk.description', '/docs/references/health/get-queue-migrations.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_HEALTH_QUEUE) + ->label('sdk', new Method( + namespace: 'health', + group: 'queue', + name: 'getQueueMigrations', + description: '/docs/references/health/get-queue-migrations.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_HEALTH_QUEUE, + ) + ], + contentType: ContentType::JSON + )) ->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true) - ->inject('queue') + ->inject('publisher') ->inject('response') - ->action(function (int|string $threshold, Connection $queue, Response $response) { + ->action(function (int|string $threshold, Publisher $publisher, Response $response) { $threshold = \intval($threshold); - $client = new Client(Event::MIGRATIONS_QUEUE_NAME, $queue); - $size = $client->getQueueSize(); + $size = $publisher->getQueueSize(new Queue(Event::MIGRATIONS_QUEUE_NAME)); if ($size >= $threshold) { throw new Exception(Exception::HEALTH_QUEUE_SIZE_EXCEEDED, "Queue size threshold hit. Current size is {$size} and threshold is {$threshold}."); } $response->dynamic(new Document([ 'size' => $size ]), Response::MODEL_HEALTH_QUEUE); - }, ['response']); + }); App::get('/v1/health/queue/functions') ->desc('Get functions queue') ->groups(['api', 'health']) ->label('scope', 'health.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'health') - ->label('sdk.method', 'getQueueFunctions') - ->label('sdk.description', '/docs/references/health/get-queue-functions.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_HEALTH_QUEUE) + ->label('sdk', new Method( + namespace: 'health', + group: 'queue', + name: 'getQueueFunctions', + description: '/docs/references/health/get-queue-functions.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_HEALTH_QUEUE, + ) + ], + contentType: ContentType::JSON + )) ->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true) - ->inject('queue') + ->inject('publisher') ->inject('response') - ->action(function (int|string $threshold, Connection $queue, Response $response) { + ->action(function (int|string $threshold, Publisher $publisher, Response $response) { $threshold = \intval($threshold); - $client = new Client(Event::FUNCTIONS_QUEUE_NAME, $queue); - $size = $client->getQueueSize(); + $size = $publisher->getQueueSize(new Queue(Event::FUNCTIONS_QUEUE_NAME)); if ($size >= $threshold) { throw new Exception(Exception::HEALTH_QUEUE_SIZE_EXCEEDED, "Queue size threshold hit. Current size is {$size} and threshold is {$threshold}."); } $response->dynamic(new Document([ 'size' => $size ]), Response::MODEL_HEALTH_QUEUE); - }, ['response']); + }); -App::get('/v1/health/queue/usage') - ->desc('Get usage queue') +App::get('/v1/health/queue/stats-resources') + ->desc('Get stats resources queue') ->groups(['api', 'health']) ->label('scope', 'health.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'health') - ->label('sdk.method', 'getQueueUsage') - ->label('sdk.description', '/docs/references/health/get-queue-usage.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_HEALTH_QUEUE) + ->label('sdk', new Method( + namespace: 'health', + group: 'queue', + name: 'getQueueStatsResources', + description: '/docs/references/health/get-queue-stats-resources.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_HEALTH_QUEUE, + ) + ], + contentType: ContentType::JSON + )) ->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true) - ->inject('queue') + ->inject('publisher') ->inject('response') - ->action(function (int|string $threshold, Connection $queue, Response $response) { + ->action(function (int|string $threshold, Publisher $publisher, Response $response) { $threshold = \intval($threshold); - $client = new Client(Event::USAGE_QUEUE_NAME, $queue); - $size = $client->getQueueSize(); + $size = $publisher->getQueueSize(new Queue(Event::STATS_RESOURCES_QUEUE_NAME)); if ($size >= $threshold) { throw new Exception(Exception::HEALTH_QUEUE_SIZE_EXCEEDED, "Queue size threshold hit. Current size is {$size} and threshold is {$threshold}."); @@ -687,25 +734,31 @@ $response->dynamic(new Document([ 'size' => $size ]), Response::MODEL_HEALTH_QUEUE); }); -App::get('/v1/health/queue/usage-dump') - ->desc('Get usage dump queue') +App::get('/v1/health/queue/stats-usage') + ->desc('Get stats usage queue') ->groups(['api', 'health']) ->label('scope', 'health.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'health') - ->label('sdk.method', 'getQueueUsageDump') - ->label('sdk.description', '/docs/references/health/get-queue-usage-dump.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_HEALTH_QUEUE) + ->label('sdk', new Method( + namespace: 'health', + group: 'queue', + name: 'getQueueUsage', + description: '/docs/references/health/get-queue-stats-usage.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_HEALTH_QUEUE, + ) + ], + contentType: ContentType::JSON + )) ->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true) - ->inject('queue') + ->inject('publisher') ->inject('response') - ->action(function (int|string $threshold, Connection $queue, Response $response) { + ->action(function (int|string $threshold, Publisher $publisher, Response $response) { $threshold = \intval($threshold); - $client = new Client(Event::USAGE_DUMP_QUEUE_NAME, $queue); - $size = $client->getQueueSize(); + $size = $publisher->getQueueSize(new Queue(Event::STATS_USAGE_QUEUE_NAME)); if ($size >= $threshold) { throw new Exception(Exception::HEALTH_QUEUE_SIZE_EXCEEDED, "Queue size threshold hit. Current size is {$size} and threshold is {$threshold}."); @@ -718,13 +771,20 @@ ->desc('Get local storage') ->groups(['api', 'health']) ->label('scope', 'health.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'health') - ->label('sdk.method', 'getStorageLocal') - ->label('sdk.description', '/docs/references/health/get-storage-local.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_HEALTH_STATUS) + ->label('sdk', new Method( + namespace: 'health', + group: 'storage', + name: 'getStorageLocal', + description: '/docs/references/health/get-storage-local.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_HEALTH_STATUS, + ) + ], + contentType: ContentType::JSON + )) ->inject('response') ->action(function (Response $response) { @@ -761,13 +821,20 @@ ->desc('Get storage') ->groups(['api', 'health']) ->label('scope', 'health.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'health') - ->label('sdk.method', 'getStorage') - ->label('sdk.description', '/docs/references/health/get-storage.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_HEALTH_STATUS) + ->label('sdk', new Method( + namespace: 'health', + group: 'storage', + name: 'getStorage', + description: '/docs/references/health/get-storage.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_HEALTH_STATUS, + ) + ], + contentType: ContentType::JSON + )) ->inject('response') ->inject('deviceForFiles') ->inject('deviceForFunctions') @@ -802,13 +869,20 @@ ->desc('Get antivirus') ->groups(['api', 'health']) ->label('scope', 'health.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'health') - ->label('sdk.method', 'getAntivirus') - ->label('sdk.description', '/docs/references/health/get-storage-anti-virus.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_HEALTH_ANTIVIRUS) + ->label('sdk', new Method( + namespace: 'health', + group: 'health', + name: 'getAntivirus', + description: '/docs/references/health/get-storage-anti-virus.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_HEALTH_ANTIVIRUS, + ) + ], + contentType: ContentType::JSON + )) ->inject('response') ->action(function (Response $response) { @@ -841,17 +915,28 @@ ->desc('Get number of failed queue jobs') ->groups(['api', 'health']) ->label('scope', 'health.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'health') - ->label('sdk.method', 'getFailedJobs') + ->label('sdk', new Method( + namespace: 'health', + group: 'queue', + name: 'getFailedJobs', + description: '/docs/references/health/get-failed-queue-jobs.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_HEALTH_QUEUE, + ) + ], + contentType: ContentType::JSON + )) ->param('name', '', new WhiteList([ Event::DATABASE_QUEUE_NAME, Event::DELETE_QUEUE_NAME, Event::AUDITS_QUEUE_NAME, Event::MAILS_QUEUE_NAME, Event::FUNCTIONS_QUEUE_NAME, - Event::USAGE_QUEUE_NAME, - Event::USAGE_DUMP_QUEUE_NAME, + Event::STATS_RESOURCES_QUEUE_NAME, + Event::STATS_USAGE_QUEUE_NAME, Event::WEBHOOK_QUEUE_NAME, Event::CERTIFICATES_QUEUE_NAME, Event::BUILDS_QUEUE_NAME, @@ -859,17 +944,12 @@ Event::MIGRATIONS_QUEUE_NAME ]), 'The name of the queue') ->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true) - ->label('sdk.description', '/docs/references/health/get-failed-queue-jobs.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_HEALTH_QUEUE) ->inject('response') - ->inject('queue') - ->action(function (string $name, int|string $threshold, Response $response, Connection $queue) { + ->inject('publisher') + ->action(function (string $name, int|string $threshold, Response $response, Publisher $publisher) { $threshold = \intval($threshold); - $client = new Client($name, $queue); - $failed = $client->countFailedJobs(); + $failed = $publisher->getQueueSize(new Queue($name), failedJobs: true); if ($failed >= $threshold) { throw new Exception(Exception::HEALTH_QUEUE_SIZE_EXCEEDED, "Queue failed jobs threshold hit. Current size is {$failed} and threshold is {$threshold}."); @@ -882,9 +962,6 @@ ->desc('Get system stats') ->groups(['api', 'health']) ->label('scope', 'root') - // ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - // ->label('sdk.namespace', 'health') - // ->label('sdk.method', 'getStats') ->label('docs', false) ->inject('response') ->inject('register') diff --git a/app/controllers/api/locale.php b/app/controllers/api/locale.php index abb47ab3c43..2c8a38de07e 100644 --- a/app/controllers/api/locale.php +++ b/app/controllers/api/locale.php @@ -1,5 +1,8 @@ <?php +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Request; use Appwrite\Utopia\Response; use MaxMind\Db\Reader; @@ -12,15 +15,19 @@ ->desc('Get user locale') ->groups(['api', 'locale']) ->label('scope', 'locale.read') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'locale') - ->label('sdk.method', 'get') - ->label('sdk.description', '/docs/references/locale/get-locale.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_LOCALE) - ->label('sdk.offline.model', '/localed') - ->label('sdk.offline.key', 'current') + ->label('sdk', new Method( + namespace: 'locale', + group: null, + name: 'get', + description: '/docs/references/locale/get-locale.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_LOCALE, + ) + ] + )) ->inject('request') ->inject('response') ->inject('locale') @@ -63,24 +70,28 @@ $response ->addHeader('Cache-Control', 'public, max-age=' . $time) - ->addHeader('Expires', \date('D, d M Y H:i:s', \time() + $time) . ' GMT') // 45 days cache + ->addHeader('Cache-Control', 'private, max-age=3888000') // 45 days ; $response->dynamic(new Document($output), Response::MODEL_LOCALE); }); App::get('/v1/locale/codes') - ->desc('List Locale Codes') + ->desc('List locale codes') ->groups(['api', 'locale']) ->label('scope', 'locale.read') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'locale') - ->label('sdk.method', 'listCodes') - ->label('sdk.description', '/docs/references/locale/list-locale-codes.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_LOCALE_CODE_LIST) - ->label('sdk.offline.model', '/locale/localeCode') - ->label('sdk.offline.key', 'current') + ->label('sdk', new Method( + namespace: 'locale', + group: null, + name: 'listCodes', + description: '/docs/references/locale/list-locale-codes.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_LOCALE_CODE_LIST, + ) + ] + )) ->inject('response') ->action(function (Response $response) { $codes = Config::getParam('locale-codes'); @@ -94,19 +105,23 @@ ->desc('List countries') ->groups(['api', 'locale']) ->label('scope', 'locale.read') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'locale') - ->label('sdk.method', 'listCountries') - ->label('sdk.description', '/docs/references/locale/list-countries.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_COUNTRY_LIST) - ->label('sdk.offline.model', '/locale/countries') - ->label('sdk.offline.response.key', 'code') + ->label('sdk', new Method( + namespace: 'locale', + group: null, + name: 'listCountries', + description: '/docs/references/locale/list-countries.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_COUNTRY_LIST, + ) + ] + )) ->inject('response') ->inject('locale') ->action(function (Response $response, Locale $locale) { - $list = Config::getParam('locale-countries'); /* @var $list array */ + $list = array_keys(Config::getParam('locale-countries')); /* @var $list array */ $output = []; foreach ($list as $value) { @@ -127,15 +142,19 @@ ->desc('List EU countries') ->groups(['api', 'locale']) ->label('scope', 'locale.read') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'locale') - ->label('sdk.method', 'listCountriesEU') - ->label('sdk.description', '/docs/references/locale/list-countries-eu.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_COUNTRY_LIST) - ->label('sdk.offline.model', '/locale/countries/eu') - ->label('sdk.offline.response.key', 'code') + ->label('sdk', new Method( + namespace: 'locale', + group: null, + name: 'listCountriesEU', + description: '/docs/references/locale/list-countries-eu.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_COUNTRY_LIST, + ) + ] + )) ->inject('response') ->inject('locale') ->action(function (Response $response, Locale $locale) { @@ -162,15 +181,19 @@ ->desc('List countries phone codes') ->groups(['api', 'locale']) ->label('scope', 'locale.read') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'locale') - ->label('sdk.method', 'listCountriesPhones') - ->label('sdk.description', '/docs/references/locale/list-countries-phones.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PHONE_LIST) - ->label('sdk.offline.model', '/locale/countries/phones') - ->label('sdk.offline.response.key', 'countryCode') + ->label('sdk', new Method( + namespace: 'locale', + group: null, + name: 'listCountriesPhones', + description: '/docs/references/locale/list-countries-phones.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PHONE_LIST, + ) + ] + )) ->inject('response') ->inject('locale') ->action(function (Response $response, Locale $locale) { @@ -196,19 +219,23 @@ ->desc('List continents') ->groups(['api', 'locale']) ->label('scope', 'locale.read') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'locale') - ->label('sdk.method', 'listContinents') - ->label('sdk.description', '/docs/references/locale/list-continents.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_CONTINENT_LIST) - ->label('sdk.offline.model', '/locale/continents') - ->label('sdk.offline.response.key', 'code') + ->label('sdk', new Method( + namespace: 'locale', + group: null, + name: 'listContinents', + description: '/docs/references/locale/list-continents.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_CONTINENT_LIST, + ) + ] + )) ->inject('response') ->inject('locale') ->action(function (Response $response, Locale $locale) { - $list = Config::getParam('locale-continents'); + $list = array_keys(Config::getParam('locale-continents')); foreach ($list as $value) { $output[] = new Document([ @@ -228,15 +255,19 @@ ->desc('List currencies') ->groups(['api', 'locale']) ->label('scope', 'locale.read') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'locale') - ->label('sdk.method', 'listCurrencies') - ->label('sdk.description', '/docs/references/locale/list-currencies.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_CURRENCY_LIST) - ->label('sdk.offline.model', '/locale/currencies') - ->label('sdk.offline.response.key', 'code') + ->label('sdk', new Method( + namespace: 'locale', + group: null, + name: 'listCurrencies', + description: '/docs/references/locale/list-currencies.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_CURRENCY_LIST, + ) + ] + )) ->inject('response') ->action(function (Response $response) { $list = Config::getParam('locale-currencies'); @@ -251,15 +282,19 @@ ->desc('List languages') ->groups(['api', 'locale']) ->label('scope', 'locale.read') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'locale') - ->label('sdk.method', 'listLanguages') - ->label('sdk.description', '/docs/references/locale/list-languages.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_LANGUAGE_LIST) - ->label('sdk.offline.model', '/locale/languages') - ->label('sdk.offline.response.key', 'code') + ->label('sdk', new Method( + namespace: 'locale', + group: null, + name: 'listLanguages', + description: '/docs/references/locale/list-languages.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_LANGUAGE_LIST, + ) + ] + )) ->inject('response') ->action(function (Response $response) { $list = Config::getParam('locale-languages'); diff --git a/app/controllers/api/messaging.php b/app/controllers/api/messaging.php index 7da0348a8f5..1d11e6c3926 100644 --- a/app/controllers/api/messaging.php +++ b/app/controllers/api/messaging.php @@ -11,6 +11,10 @@ use Appwrite\Network\Validator\Email; use Appwrite\Permission; use Appwrite\Role; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Database\Validator\CompoundUID; use Appwrite\Utopia\Database\Validator\CustomId; use Appwrite\Utopia\Database\Validator\Queries\Messages; @@ -26,12 +30,14 @@ use Utopia\Database\DateTime; use Utopia\Database\Document; use Utopia\Database\Exception\Duplicate as DuplicateException; +use Utopia\Database\Exception\Order as OrderException; use Utopia\Database\Exception\Query as QueryException; use Utopia\Database\Helpers\ID; use Utopia\Database\Query; use Utopia\Database\Validator\Authorization; use Utopia\Database\Validator\Datetime as DatetimeValidator; use Utopia\Database\Validator\Queries; +use Utopia\Database\Validator\Query\Cursor; use Utopia\Database\Validator\Query\Limit; use Utopia\Database\Validator\Query\Offset; use Utopia\Database\Validator\Roles; @@ -55,13 +61,20 @@ ->label('audits.resource', 'provider/{response.$id}') ->label('event', 'providers.[providerId].create') ->label('scope', 'providers.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'createMailgunProvider') - ->label('sdk.description', '/docs/references/messaging/create-mailgun-provider.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROVIDER) + ->label('resourceType', RESOURCE_TYPE_PROVIDERS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'providers', + name: 'createMailgunProvider', + description: '/docs/references/messaging/create-mailgun-provider.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_PROVIDER, + ) + ] + )) ->param('providerId', '', new CustomId(), 'Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') ->param('name', '', new Text(128), 'Provider name.') ->param('apiKey', '', new Text(0), 'Mailgun API Key.', true) @@ -142,13 +155,20 @@ ->label('audits.resource', 'provider/{response.$id}') ->label('event', 'providers.[providerId].create') ->label('scope', 'providers.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'createSendgridProvider') - ->label('sdk.description', '/docs/references/messaging/create-sendgrid-provider.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROVIDER) + ->label('resourceType', RESOURCE_TYPE_PROVIDERS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'providers', + name: 'createSendgridProvider', + description: '/docs/references/messaging/create-sendgrid-provider.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_PROVIDER, + ) + ] + )) ->param('providerId', '', new CustomId(), 'Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') ->param('name', '', new Text(128), 'Provider name.') ->param('apiKey', '', new Text(0), 'Sendgrid API key.', true) @@ -217,13 +237,20 @@ ->label('audits.resource', 'provider/{response.$id}') ->label('event', 'providers.[providerId].create') ->label('scope', 'providers.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'createSmtpProvider') - ->label('sdk.description', '/docs/references/messaging/create-smtp-provider.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROVIDER) + ->label('resourceType', RESOURCE_TYPE_PROVIDERS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'providers', + name: 'createSmtpProvider', + description: '/docs/references/messaging/create-smtp-provider.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_PROVIDER, + ) + ] + )) ->param('providerId', '', new CustomId(), 'Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') ->param('name', '', new Text(128), 'Provider name.') ->param('host', '', new Text(0), 'SMTP hosts. Either a single hostname or multiple semicolon-delimited hostnames. You can also specify a different port for each host such as `smtp1.example.com:25;smtp2.example.com`. You can also specify encryption type, for example: `tls://smtp1.example.com:587;ssl://smtp2.example.com:465"`. Hosts will be tried in order.') @@ -304,14 +331,21 @@ ->label('audits.event', 'provider.create') ->label('audits.resource', 'provider/{response.$id}') ->label('scope', 'providers.write') + ->label('resourceType', RESOURCE_TYPE_PROVIDERS) ->label('event', 'providers.[providerId].create') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'createMsg91Provider') - ->label('sdk.description', '/docs/references/messaging/create-msg91-provider.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROVIDER) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'providers', + name: 'createMsg91Provider', + description: '/docs/references/messaging/create-msg91-provider.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_PROVIDER, + ) + ] + )) ->param('providerId', '', new CustomId(), 'Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') ->param('name', '', new Text(128), 'Provider name.') ->param('templateId', '', new Text(0), 'Msg91 template ID', true) @@ -381,13 +415,20 @@ ->label('audits.resource', 'provider/{response.$id}') ->label('event', 'providers.[providerId].create') ->label('scope', 'providers.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'createTelesignProvider') - ->label('sdk.description', '/docs/references/messaging/create-telesign-provider.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROVIDER) + ->label('resourceType', RESOURCE_TYPE_PROVIDERS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'providers', + name: 'createTelesignProvider', + description: '/docs/references/messaging/create-telesign-provider.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_PROVIDER, + ) + ] + )) ->param('providerId', '', new CustomId(), 'Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') ->param('name', '', new Text(128), 'Provider name.') ->param('from', '', new Phone(), 'Sender Phone number. Format this number with a leading \'+\' and a country code, e.g., +16175551212.', true) @@ -458,13 +499,20 @@ ->label('audits.resource', 'provider/{response.$id}') ->label('event', 'providers.[providerId].create') ->label('scope', 'providers.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'createTextmagicProvider') - ->label('sdk.description', '/docs/references/messaging/create-textmagic-provider.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROVIDER) + ->label('resourceType', RESOURCE_TYPE_PROVIDERS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'providers', + name: 'createTextmagicProvider', + description: '/docs/references/messaging/create-textmagic-provider.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_PROVIDER, + ) + ] + )) ->param('providerId', '', new CustomId(), 'Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') ->param('name', '', new Text(128), 'Provider name.') ->param('from', '', new Phone(), 'Sender Phone number. Format this number with a leading \'+\' and a country code, e.g., +16175551212.', true) @@ -535,13 +583,20 @@ ->label('audits.resource', 'provider/{response.$id}') ->label('event', 'providers.[providerId].create') ->label('scope', 'providers.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'createTwilioProvider') - ->label('sdk.description', '/docs/references/messaging/create-twilio-provider.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROVIDER) + ->label('resourceType', RESOURCE_TYPE_PROVIDERS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'providers', + name: 'createTwilioProvider', + description: '/docs/references/messaging/create-twilio-provider.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_PROVIDER, + ) + ] + )) ->param('providerId', '', new CustomId(), 'Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') ->param('name', '', new Text(128), 'Provider name.') ->param('from', '', new Phone(), 'Sender Phone number. Format this number with a leading \'+\' and a country code, e.g., +16175551212.', true) @@ -612,13 +667,20 @@ ->label('audits.resource', 'provider/{response.$id}') ->label('event', 'providers.[providerId].create') ->label('scope', 'providers.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'createVonageProvider') - ->label('sdk.description', '/docs/references/messaging/create-vonage-provider.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROVIDER) + ->label('resourceType', RESOURCE_TYPE_PROVIDERS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'providers', + name: 'createVonageProvider', + description: '/docs/references/messaging/create-vonage-provider.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_PROVIDER, + ) + ] + )) ->param('providerId', '', new CustomId(), 'Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') ->param('name', '', new Text(128), 'Provider name.') ->param('from', '', new Phone(), 'Sender Phone number. Format this number with a leading \'+\' and a country code, e.g., +16175551212.', true) @@ -689,13 +751,20 @@ ->label('audits.resource', 'provider/{response.$id}') ->label('event', 'providers.[providerId].create') ->label('scope', 'providers.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'createFcmProvider') - ->label('sdk.description', '/docs/references/messaging/create-fcm-provider.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROVIDER) + ->label('resourceType', RESOURCE_TYPE_PROVIDERS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'providers', + name: 'createFcmProvider', + description: '/docs/references/messaging/create-fcm-provider.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_PROVIDER, + ) + ] + )) ->param('providerId', '', new CustomId(), 'Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') ->param('name', '', new Text(128), 'Provider name.') ->param('serviceAccountJSON', null, new JSON(), 'FCM service account JSON.', true) @@ -752,13 +821,20 @@ ->label('audits.resource', 'provider/{response.$id}') ->label('event', 'providers.[providerId].create') ->label('scope', 'providers.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'createApnsProvider') - ->label('sdk.description', '/docs/references/messaging/create-apns-provider.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROVIDER) + ->label('resourceType', RESOURCE_TYPE_PROVIDERS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'providers', + name: 'createApnsProvider', + description: '/docs/references/messaging/create-apns-provider.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_PROVIDER, + ) + ] + )) ->param('providerId', '', new CustomId(), 'Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') ->param('name', '', new Text(128), 'Provider name.') ->param('authKey', '', new Text(0), 'APNS authentication key.', true) @@ -835,13 +911,20 @@ ->desc('List providers') ->groups(['api', 'messaging']) ->label('scope', 'providers.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'listProviders') - ->label('sdk.description', '/docs/references/messaging/list-providers.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROVIDER_LIST) + ->label('resourceType', RESOURCE_TYPE_PROVIDERS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'providers', + name: 'listProviders', + description: '/docs/references/messaging/list-providers.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROVIDER_LIST, + ) + ] + )) ->param('queries', [], new Providers(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Providers::ALLOWED_ATTRIBUTES), true) ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) ->inject('dbForProject') @@ -866,6 +949,11 @@ $cursor = reset($cursor); if ($cursor) { + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + $providerId = $cursor->getValue(); $cursorDocument = Authorization::skip(fn () => $dbForProject->getDocument('providers', $providerId)); @@ -875,10 +963,15 @@ $cursor->setValue($cursorDocument); } - + try { + $providers = $dbForProject->find('providers', $queries); + $total = $dbForProject->count('providers', $queries, APP_LIMIT_COUNT); + } catch (OrderException $e) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); + } $response->dynamic(new Document([ - 'providers' => $dbForProject->find('providers', $queries), - 'total' => $dbForProject->count('providers', $queries, APP_LIMIT_COUNT), + 'providers' => $providers, + 'total' => $total, ]), Response::MODEL_PROVIDER_LIST); }); @@ -886,13 +979,20 @@ ->desc('List provider logs') ->groups(['api', 'messaging']) ->label('scope', 'providers.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'listProviderLogs') - ->label('sdk.description', '/docs/references/messaging/list-provider-logs.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_LOG_LIST) + ->label('resourceType', RESOURCE_TYPE_PROVIDERS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'providers', + name: 'listProviderLogs', + description: '/docs/references/messaging/list-provider-logs.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_LOG_LIST, + ) + ] + )) ->param('providerId', '', new UID(), 'Provider ID.') ->param('queries', [], new Queries([new Limit(), new Offset()]), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset', true) ->inject('response') @@ -912,13 +1012,15 @@ throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); } - $grouped = Query::groupByType($queries); - $limit = $grouped['limit'] ?? APP_LIMIT_COUNT; - $offset = $grouped['offset'] ?? 0; + // Temp fix for logs + $queries[] = Query::or([ + Query::greaterThan('$createdAt', DateTime::format(new \DateTime('2025-02-26T01:30+00:00'))), + Query::lessThan('$createdAt', DateTime::format(new \DateTime('2025-02-13T00:00+00:00'))), + ]); $audit = new Audit($dbForProject); $resource = 'provider/' . $providerId; - $logs = $audit->getLogsByResource($resource, $limit, $offset); + $logs = $audit->getLogsByResource($resource, $queries); $output = []; foreach ($logs as $i => &$log) { @@ -965,7 +1067,7 @@ } $response->dynamic(new Document([ - 'total' => $audit->countLogsByResource($resource), + 'total' => $audit->countLogsByResource($resource, $queries), 'logs' => $output, ]), Response::MODEL_LOG_LIST); }); @@ -974,13 +1076,20 @@ ->desc('Get provider') ->groups(['api', 'messaging']) ->label('scope', 'providers.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'getProvider') - ->label('sdk.description', '/docs/references/messaging/get-provider.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROVIDER) + ->label('resourceType', RESOURCE_TYPE_PROVIDERS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'providers', + name: 'getProvider', + description: '/docs/references/messaging/get-provider.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROVIDER, + ) + ] + )) ->param('providerId', '', new UID(), 'Provider ID.') ->inject('dbForProject') ->inject('response') @@ -1001,13 +1110,20 @@ ->label('audits.resource', 'provider/{response.$id}') ->label('event', 'providers.[providerId].update') ->label('scope', 'providers.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'updateMailgunProvider') - ->label('sdk.description', '/docs/references/messaging/update-mailgun-provider.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROVIDER) + ->label('resourceType', RESOURCE_TYPE_PROVIDERS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'providers', + name: 'updateMailgunProvider', + description: '/docs/references/messaging/update-mailgun-provider.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROVIDER, + ) + ] + )) ->param('providerId', '', new UID(), 'Provider ID.') ->param('name', '', new Text(128), 'Provider name.', true) ->param('apiKey', '', new Text(0), 'Mailgun API Key.', true) @@ -1107,13 +1223,20 @@ ->label('audits.resource', 'provider/{response.$id}') ->label('event', 'providers.[providerId].update') ->label('scope', 'providers.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'updateSendgridProvider') - ->label('sdk.description', '/docs/references/messaging/update-sendgrid-provider.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROVIDER) + ->label('resourceType', RESOURCE_TYPE_PROVIDERS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'providers', + name: 'updateSendgridProvider', + description: '/docs/references/messaging/update-sendgrid-provider.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROVIDER, + ) + ] + )) ->param('providerId', '', new UID(), 'Provider ID.') ->param('name', '', new Text(128), 'Provider name.', true) ->param('enabled', null, new Boolean(), 'Set as enabled.', true) @@ -1198,13 +1321,20 @@ ->label('audits.resource', 'provider/{response.$id}') ->label('event', 'providers.[providerId].update') ->label('scope', 'providers.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'updateSmtpProvider') - ->label('sdk.description', '/docs/references/messaging/update-smtp-provider.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROVIDER) + ->label('resourceType', RESOURCE_TYPE_PROVIDERS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'providers', + name: 'updateSmtpProvider', + description: '/docs/references/messaging/update-smtp-provider.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROVIDER, + ) + ] + )) ->param('providerId', '', new UID(), 'Provider ID.') ->param('name', '', new Text(128), 'Provider name.', true) ->param('host', '', new Text(0), 'SMTP hosts. Either a single hostname or multiple semicolon-delimited hostnames. You can also specify a different port for each host such as `smtp1.example.com:25;smtp2.example.com`. You can also specify encryption type, for example: `tls://smtp1.example.com:587;ssl://smtp2.example.com:465"`. Hosts will be tried in order.', true) @@ -1320,13 +1450,20 @@ ->label('audits.resource', 'provider/{response.$id}') ->label('event', 'providers.[providerId].update') ->label('scope', 'providers.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'updateMsg91Provider') - ->label('sdk.description', '/docs/references/messaging/update-msg91-provider.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROVIDER) + ->label('resourceType', RESOURCE_TYPE_PROVIDERS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'providers', + name: 'updateMsg91Provider', + description: '/docs/references/messaging/update-msg91-provider.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROVIDER, + ) + ] + )) ->param('providerId', '', new UID(), 'Provider ID.') ->param('name', '', new Text(128), 'Provider name.', true) ->param('enabled', null, new Boolean(), 'Set as enabled.', true) @@ -1400,13 +1537,20 @@ ->label('audits.resource', 'provider/{response.$id}') ->label('event', 'providers.[providerId].update') ->label('scope', 'providers.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'updateTelesignProvider') - ->label('sdk.description', '/docs/references/messaging/update-telesign-provider.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROVIDER) + ->label('resourceType', RESOURCE_TYPE_PROVIDERS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'providers', + name: 'updateTelesignProvider', + description: '/docs/references/messaging/update-telesign-provider.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROVIDER, + ) + ] + )) ->param('providerId', '', new UID(), 'Provider ID.') ->param('name', '', new Text(128), 'Provider name.', true) ->param('enabled', null, new Boolean(), 'Set as enabled.', true) @@ -1482,13 +1626,20 @@ ->label('audits.resource', 'provider/{response.$id}') ->label('event', 'providers.[providerId].update') ->label('scope', 'providers.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'updateTextmagicProvider') - ->label('sdk.description', '/docs/references/messaging/update-textmagic-provider.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROVIDER) + ->label('resourceType', RESOURCE_TYPE_PROVIDERS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'providers', + name: 'updateTextmagicProvider', + description: '/docs/references/messaging/update-textmagic-provider.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROVIDER, + ) + ] + )) ->param('providerId', '', new UID(), 'Provider ID.') ->param('name', '', new Text(128), 'Provider name.', true) ->param('enabled', null, new Boolean(), 'Set as enabled.', true) @@ -1564,13 +1715,20 @@ ->label('audits.resource', 'provider/{response.$id}') ->label('event', 'providers.[providerId].update') ->label('scope', 'providers.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'updateTwilioProvider') - ->label('sdk.description', '/docs/references/messaging/update-twilio-provider.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROVIDER) + ->label('resourceType', RESOURCE_TYPE_PROVIDERS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'providers', + name: 'updateTwilioProvider', + description: '/docs/references/messaging/update-twilio-provider.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROVIDER, + ) + ] + )) ->param('providerId', '', new UID(), 'Provider ID.') ->param('name', '', new Text(128), 'Provider name.', true) ->param('enabled', null, new Boolean(), 'Set as enabled.', true) @@ -1646,13 +1804,20 @@ ->label('audits.resource', 'provider/{response.$id}') ->label('event', 'providers.[providerId].update') ->label('scope', 'providers.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'updateVonageProvider') - ->label('sdk.description', '/docs/references/messaging/update-vonage-provider.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROVIDER) + ->label('resourceType', RESOURCE_TYPE_PROVIDERS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'providers', + name: 'updateVonageProvider', + description: '/docs/references/messaging/update-vonage-provider.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROVIDER, + ) + ] + )) ->param('providerId', '', new UID(), 'Provider ID.') ->param('name', '', new Text(128), 'Provider name.', true) ->param('enabled', null, new Boolean(), 'Set as enabled.', true) @@ -1728,13 +1893,20 @@ ->label('audits.resource', 'provider/{response.$id}') ->label('event', 'providers.[providerId].update') ->label('scope', 'providers.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'updateFcmProvider') - ->label('sdk.description', '/docs/references/messaging/update-fcm-provider.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROVIDER) + ->label('resourceType', RESOURCE_TYPE_PROVIDERS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'providers', + name: 'updateFcmProvider', + description: '/docs/references/messaging/update-fcm-provider.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROVIDER, + ) + ] + )) ->param('providerId', '', new UID(), 'Provider ID.') ->param('name', '', new Text(128), 'Provider name.', true) ->param('enabled', null, new Boolean(), 'Set as enabled.', true) @@ -1797,13 +1969,20 @@ ->label('audits.resource', 'provider/{response.$id}') ->label('event', 'providers.[providerId].update') ->label('scope', 'providers.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'updateApnsProvider') - ->label('sdk.description', '/docs/references/messaging/update-apns-provider.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROVIDER) + ->label('resourceType', RESOURCE_TYPE_PROVIDERS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'providers', + name: 'updateApnsProvider', + description: '/docs/references/messaging/update-apns-provider.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROVIDER, + ) + ] + )) ->param('providerId', '', new UID(), 'Provider ID.') ->param('name', '', new Text(128), 'Provider name.', true) ->param('enabled', null, new Boolean(), 'Set as enabled.', true) @@ -1892,13 +2071,21 @@ ->label('audits.resource', 'provider/{request.$providerId}') ->label('event', 'providers.[providerId].delete') ->label('scope', 'providers.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'deleteProvider') - ->label('sdk.description', '/docs/references/messaging/delete-provider.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('resourceType', RESOURCE_TYPE_PROVIDERS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'providers', + name: 'deleteProvider', + description: '/docs/references/messaging/delete-provider.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('providerId', '', new UID(), 'Provider ID.') ->inject('queueForEvents') ->inject('dbForProject') @@ -1927,13 +2114,20 @@ ->label('audits.resource', 'topic/{response.$id}') ->label('event', 'topics.[topicId].create') ->label('scope', 'topics.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'createTopic') - ->label('sdk.description', '/docs/references/messaging/create-topic.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_TOPIC) + ->label('resourceType', RESOURCE_TYPE_TOPICS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'topics', + name: 'createTopic', + description: '/docs/references/messaging/create-topic.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_TOPIC, + ) + ] + )) ->param('topicId', '', new CustomId(), 'Topic ID. Choose a custom Topic ID or a new Topic ID.') ->param('name', '', new Text(128), 'Topic Name.') ->param('subscribe', [Role::users()], new Roles(APP_LIMIT_ARRAY_PARAMS_SIZE), 'An array of role strings with subscribe permission. By default all users are granted with any subscribe permission. [learn more about roles](https://appwrite.io/docs/permissions#permission-roles). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' roles are allowed, each 64 characters long.', true) @@ -1967,13 +2161,20 @@ ->desc('List topics') ->groups(['api', 'messaging']) ->label('scope', 'topics.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'listTopics') - ->label('sdk.description', '/docs/references/messaging/list-topics.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_TOPIC_LIST) + ->label('resourceType', RESOURCE_TYPE_TOPICS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'topics', + name: 'listTopics', + description: '/docs/references/messaging/list-topics.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_TOPIC_LIST, + ) + ] + )) ->param('queries', [], new Topics(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Topics::ALLOWED_ATTRIBUTES), true) ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) ->inject('dbForProject') @@ -1998,6 +2199,11 @@ $cursor = reset($cursor); if ($cursor) { + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + $topicId = $cursor->getValue(); $cursorDocument = Authorization::skip(fn () => $dbForProject->getDocument('topics', $topicId)); @@ -2007,10 +2213,15 @@ $cursor->setValue($cursorDocument[0]); } - + try { + $topics = $dbForProject->find('topics', $queries); + $total = $dbForProject->count('topics', $queries, APP_LIMIT_COUNT); + } catch (OrderException $e) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); + } $response->dynamic(new Document([ - 'topics' => $dbForProject->find('topics', $queries), - 'total' => $dbForProject->count('topics', $queries, APP_LIMIT_COUNT), + 'topics' => $topics, + 'total' => $total, ]), Response::MODEL_TOPIC_LIST); }); @@ -2018,13 +2229,20 @@ ->desc('List topic logs') ->groups(['api', 'messaging']) ->label('scope', 'topics.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'listTopicLogs') - ->label('sdk.description', '/docs/references/messaging/list-topic-logs.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_LOG_LIST) + ->label('resourceType', RESOURCE_TYPE_TOPICS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'topics', + name: 'listTopicLogs', + description: '/docs/references/messaging/list-topic-logs.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_LOG_LIST, + ) + ] + )) ->param('topicId', '', new UID(), 'Topic ID.') ->param('queries', [], new Queries([new Limit(), new Offset()]), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset', true) ->inject('response') @@ -2044,13 +2262,15 @@ throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); } - $grouped = Query::groupByType($queries); - $limit = $grouped['limit'] ?? APP_LIMIT_COUNT; - $offset = $grouped['offset'] ?? 0; + // Temp fix for logs + $queries[] = Query::or([ + Query::greaterThan('$createdAt', DateTime::format(new \DateTime('2025-02-26T01:30+00:00'))), + Query::lessThan('$createdAt', DateTime::format(new \DateTime('2025-02-13T00:00+00:00'))), + ]); $audit = new Audit($dbForProject); $resource = 'topic/' . $topicId; - $logs = $audit->getLogsByResource($resource, $limit, $offset); + $logs = $audit->getLogsByResource($resource, $queries); $output = []; @@ -2098,7 +2318,7 @@ } $response->dynamic(new Document([ - 'total' => $audit->countLogsByResource($resource), + 'total' => $audit->countLogsByResource($resource, $queries), 'logs' => $output, ]), Response::MODEL_LOG_LIST); }); @@ -2107,13 +2327,20 @@ ->desc('Get topic') ->groups(['api', 'messaging']) ->label('scope', 'topics.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'getTopic') - ->label('sdk.description', '/docs/references/messaging/get-topic.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_TOPIC) + ->label('resourceType', RESOURCE_TYPE_TOPICS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'topics', + name: 'getTopic', + description: '/docs/references/messaging/get-topic.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_TOPIC, + ) + ] + )) ->param('topicId', '', new UID(), 'Topic ID.') ->inject('dbForProject') ->inject('response') @@ -2135,13 +2362,20 @@ ->label('audits.resource', 'topic/{response.$id}') ->label('event', 'topics.[topicId].update') ->label('scope', 'topics.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'updateTopic') - ->label('sdk.description', '/docs/references/messaging/update-topic.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_TOPIC) + ->label('resourceType', RESOURCE_TYPE_TOPICS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'topics', + name: 'updateTopic', + description: '/docs/references/messaging/update-topic.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_TOPIC, + ) + ] + )) ->param('topicId', '', new UID(), 'Topic ID.') ->param('name', null, new Text(128), 'Topic Name.', true) ->param('subscribe', null, new Roles(APP_LIMIT_ARRAY_PARAMS_SIZE), 'An array of role strings with subscribe permission. By default all users are granted with any subscribe permission. [learn more about roles](https://appwrite.io/docs/permissions#permission-roles). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' roles are allowed, each 64 characters long.', true) @@ -2179,13 +2413,21 @@ ->label('audits.resource', 'topic/{request.$topicId}') ->label('event', 'topics.[topicId].delete') ->label('scope', 'topics.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'deleteTopic') - ->label('sdk.description', '/docs/references/messaging/delete-topic.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('resourceType', RESOURCE_TYPE_TOPICS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'topics', + name: 'deleteTopic', + description: '/docs/references/messaging/delete-topic.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('topicId', '', new UID(), 'Topic ID.') ->inject('queueForEvents') ->inject('dbForProject') @@ -2219,13 +2461,20 @@ ->label('audits.resource', 'subscriber/{response.$id}') ->label('event', 'topics.[topicId].subscribers.[subscriberId].create') ->label('scope', 'subscribers.write') - ->label('sdk.auth', [APP_AUTH_TYPE_JWT, APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'createSubscriber') - ->label('sdk.description', '/docs/references/messaging/create-subscriber.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_SUBSCRIBER) + ->label('resourceType', RESOURCE_TYPE_SUBSCRIBERS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'subscribers', + name: 'createSubscriber', + description: '/docs/references/messaging/create-subscriber.md', + auth: [AuthType::JWT, AuthType::SESSION, AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_SUBSCRIBER, + ) + ] + )) ->param('subscriberId', '', new CustomId(), 'Subscriber ID. Choose a custom Subscriber ID or a new Subscriber ID.') ->param('topicId', '', new UID(), 'Topic ID. The topic ID to subscribe to.') ->param('targetId', '', new UID(), 'Target ID. The target ID to link to the specified Topic ID.') @@ -2312,13 +2561,20 @@ ->desc('List subscribers') ->groups(['api', 'messaging']) ->label('scope', 'subscribers.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'listSubscribers') - ->label('sdk.description', '/docs/references/messaging/list-subscribers.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_SUBSCRIBER_LIST) + ->label('resourceType', RESOURCE_TYPE_SUBSCRIBERS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'subscribers', + name: 'listSubscribers', + description: '/docs/references/messaging/list-subscribers.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_SUBSCRIBER_LIST, + ) + ] + )) ->param('topicId', '', new UID(), 'Topic ID. The topic ID subscribed to.') ->param('queries', [], new Subscribers(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Providers::ALLOWED_ATTRIBUTES), true) ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) @@ -2352,6 +2608,11 @@ $cursor = reset($cursor); if ($cursor) { + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + $subscriberId = $cursor->getValue(); $cursorDocument = Authorization::skip(fn () => $dbForProject->getDocument('subscribers', $subscriberId)); @@ -2361,8 +2622,11 @@ $cursor->setValue($cursorDocument); } - - $subscribers = $dbForProject->find('subscribers', $queries); + try { + $subscribers = $dbForProject->find('subscribers', $queries); + } catch (OrderException $e) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); + } $subscribers = batch(\array_map(function (Document $subscriber) use ($dbForProject) { return function () use ($subscriber, $dbForProject) { @@ -2386,13 +2650,20 @@ ->desc('List subscriber logs') ->groups(['api', 'messaging']) ->label('scope', 'subscribers.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'listSubscriberLogs') - ->label('sdk.description', '/docs/references/messaging/list-subscriber-logs.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_LOG_LIST) + ->label('resourceType', RESOURCE_TYPE_SUBSCRIBERS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'subscribers', + name: 'listSubscriberLogs', + description: '/docs/references/messaging/list-subscriber-logs.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_LOG_LIST, + ) + ] + )) ->param('subscriberId', '', new UID(), 'Subscriber ID.') ->param('queries', [], new Queries([new Limit(), new Offset()]), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset', true) ->inject('response') @@ -2412,13 +2683,15 @@ throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); } - $grouped = Query::groupByType($queries); - $limit = $grouped['limit'] ?? APP_LIMIT_COUNT; - $offset = $grouped['offset'] ?? 0; + // Temp fix for logs + $queries[] = Query::or([ + Query::greaterThan('$createdAt', DateTime::format(new \DateTime('2025-02-26T01:30+00:00'))), + Query::lessThan('$createdAt', DateTime::format(new \DateTime('2025-02-13T00:00+00:00'))), + ]); $audit = new Audit($dbForProject); $resource = 'subscriber/' . $subscriberId; - $logs = $audit->getLogsByResource($resource, $limit, $offset); + $logs = $audit->getLogsByResource($resource, $queries); $output = []; @@ -2466,7 +2739,7 @@ } $response->dynamic(new Document([ - 'total' => $audit->countLogsByResource($resource), + 'total' => $audit->countLogsByResource($resource, $queries), 'logs' => $output, ]), Response::MODEL_LOG_LIST); }); @@ -2475,13 +2748,20 @@ ->desc('Get subscriber') ->groups(['api', 'messaging']) ->label('scope', 'subscribers.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'getSubscriber') - ->label('sdk.description', '/docs/references/messaging/get-subscriber.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_SUBSCRIBER) + ->label('resourceType', RESOURCE_TYPE_SUBSCRIBERS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'subscribers', + name: 'getSubscriber', + description: '/docs/references/messaging/get-subscriber.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_SUBSCRIBER, + ) + ] + )) ->param('topicId', '', new UID(), 'Topic ID. The topic ID subscribed to.') ->param('subscriberId', '', new UID(), 'Subscriber ID.') ->inject('dbForProject') @@ -2517,13 +2797,21 @@ ->label('audits.resource', 'subscriber/{request.$subscriberId}') ->label('event', 'topics.[topicId].subscribers.[subscriberId].delete') ->label('scope', 'subscribers.write') - ->label('sdk.auth', [APP_AUTH_TYPE_JWT, APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'deleteSubscriber') - ->label('sdk.description', '/docs/references/messaging/delete-subscriber.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('resourceType', RESOURCE_TYPE_SUBSCRIBERS) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'subscribers', + name: 'deleteSubscriber', + description: '/docs/references/messaging/delete-subscriber.md', + auth: [AuthType::JWT, AuthType::SESSION, AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('topicId', '', new UID(), 'Topic ID. The topic ID subscribed to.') ->param('subscriberId', '', new UID(), 'Subscriber ID.') ->inject('queueForEvents') @@ -2576,13 +2864,20 @@ ->label('audits.resource', 'message/{response.$id}') ->label('event', 'messages.[messageId].create') ->label('scope', 'messages.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'createEmail') - ->label('sdk.description', '/docs/references/messaging/create-email.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MESSAGE) + ->label('resourceType', RESOURCE_TYPE_MESSAGES) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'messages', + name: 'createEmail', + description: '/docs/references/messaging/create-email.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_MESSAGE, + ) + ] + )) ->param('messageId', '', new CustomId(), 'Message ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') ->param('subject', '', new Text(998), 'Email Subject.') ->param('content', '', new Text(64230), 'Email Content.') @@ -2597,11 +2892,11 @@ ->param('scheduledAt', null, new DatetimeValidator(requireDateInFuture: true), 'Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.', true) ->inject('queueForEvents') ->inject('dbForProject') - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('project') ->inject('queueForMessaging') ->inject('response') - ->action(function (string $messageId, string $subject, string $content, array $topics, array $users, array $targets, array $cc, array $bcc, array $attachments, bool $draft, bool $html, ?string $scheduledAt, Event $queueForEvents, Database $dbForProject, Database $dbForConsole, Document $project, Messaging $queueForMessaging, Response $response) { + ->action(function (string $messageId, string $subject, string $content, array $topics, array $users, array $targets, array $cc, array $bcc, array $attachments, bool $draft, bool $html, ?string $scheduledAt, Event $queueForEvents, Database $dbForProject, Database $dbForPlatform, Document $project, Messaging $queueForMessaging, Response $response) { $messageId = $messageId == 'unique()' ? ID::unique() : $messageId; @@ -2690,8 +2985,8 @@ ->setMessageId($message->getId()); break; case MessageStatus::SCHEDULED: - $schedule = $dbForConsole->createDocument('schedules', new Document([ - 'region' => System::getEnv('_APP_REGION', 'default'), + $schedule = $dbForPlatform->createDocument('schedules', new Document([ + 'region' => $project->getAttribute('region'), 'resourceType' => 'message', 'resourceId' => $message->getId(), 'resourceInternalId' => $message->getInternalId(), @@ -2728,13 +3023,20 @@ ->label('audits.resource', 'message/{response.$id}') ->label('event', 'messages.[messageId].create') ->label('scope', 'messages.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'createSms') - ->label('sdk.description', '/docs/references/messaging/create-sms.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MESSAGE) + ->label('resourceType', RESOURCE_TYPE_MESSAGES) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'messages', + name: 'createSms', + description: '/docs/references/messaging/create-sms.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_MESSAGE, + ) + ] + )) ->param('messageId', '', new CustomId(), 'Message ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') ->param('content', '', new Text(64230), 'SMS Content.') ->param('topics', [], new ArrayList(new UID()), 'List of Topic IDs.', true) @@ -2744,11 +3046,11 @@ ->param('scheduledAt', null, new DatetimeValidator(requireDateInFuture: true), 'Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.', true) ->inject('queueForEvents') ->inject('dbForProject') - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('project') ->inject('queueForMessaging') ->inject('response') - ->action(function (string $messageId, string $content, array $topics, array $users, array $targets, bool $draft, ?string $scheduledAt, Event $queueForEvents, Database $dbForProject, Database $dbForConsole, Document $project, Messaging $queueForMessaging, Response $response) { + ->action(function (string $messageId, string $content, array $topics, array $users, array $targets, bool $draft, ?string $scheduledAt, Event $queueForEvents, Database $dbForProject, Database $dbForPlatform, Document $project, Messaging $queueForMessaging, Response $response) { $messageId = $messageId == 'unique()' ? ID::unique() : $messageId; @@ -2806,8 +3108,8 @@ ->setMessageId($message->getId()); break; case MessageStatus::SCHEDULED: - $schedule = $dbForConsole->createDocument('schedules', new Document([ - 'region' => System::getEnv('_APP_REGION', 'default'), + $schedule = $dbForPlatform->createDocument('schedules', new Document([ + 'region' => $project->getAttribute('region'), 'resourceType' => 'message', 'resourceId' => $message->getId(), 'resourceInternalId' => $message->getInternalId(), @@ -2844,36 +3146,46 @@ ->label('audits.resource', 'message/{response.$id}') ->label('event', 'messages.[messageId].create') ->label('scope', 'messages.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'createPush') - ->label('sdk.description', '/docs/references/messaging/create-push.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MESSAGE) + ->label('resourceType', RESOURCE_TYPE_MESSAGES) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'messages', + name: 'createPush', + description: '/docs/references/messaging/create-push.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_MESSAGE, + ) + ] + )) ->param('messageId', '', new CustomId(), 'Message ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') - ->param('title', '', new Text(256), 'Title for push notification.') - ->param('body', '', new Text(64230), 'Body for push notification.') + ->param('title', '', new Text(256), 'Title for push notification.', true) + ->param('body', '', new Text(64230), 'Body for push notification.', true) ->param('topics', [], new ArrayList(new UID()), 'List of Topic IDs.', true) ->param('users', [], new ArrayList(new UID()), 'List of User IDs.', true) ->param('targets', [], new ArrayList(new UID()), 'List of Targets IDs.', true) - ->param('data', null, new JSON(), 'Additional Data for push notification.', true) + ->param('data', null, new JSON(), 'Additional key-value pair data for push notification.', true) ->param('action', '', new Text(256), 'Action for push notification.', true) ->param('image', '', new CompoundUID(), 'Image for push notification. Must be a compound bucket ID to file ID of a jpeg, png, or bmp image in Appwrite Storage. It should be formatted as <BUCKET_ID>:<FILE_ID>.', true) ->param('icon', '', new Text(256), 'Icon for push notification. Available only for Android and Web Platform.', true) - ->param('sound', '', new Text(256), 'Sound for push notification. Available only for Android and IOS Platform.', true) + ->param('sound', '', new Text(256), 'Sound for push notification. Available only for Android and iOS Platform.', true) ->param('color', '', new Text(256), 'Color for push notification. Available only for Android Platform.', true) ->param('tag', '', new Text(256), 'Tag for push notification. Available only for Android Platform.', true) - ->param('badge', '', new Text(256), 'Badge for push notification. Available only for IOS Platform.', true) + ->param('badge', -1, new Integer(), 'Badge for push notification. Available only for iOS Platform.', true) ->param('draft', false, new Boolean(), 'Is message a draft', true) ->param('scheduledAt', null, new DatetimeValidator(requireDateInFuture: true), 'Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.', true) + ->param('contentAvailable', false, new Boolean(), 'If set to true, the notification will be delivered in the background. Available only for iOS Platform.', true) + ->param('critical', false, new Boolean(), 'If set to true, the notification will be marked as critical. This requires the app to have the critical notification entitlement. Available only for iOS Platform.', true) + ->param('priority', 'high', new WhiteList(['normal', 'high']), 'Set the notification priority. "normal" will consider device state and may not deliver notifications immediately. "high" will always attempt to immediately deliver the notification.', true) ->inject('queueForEvents') ->inject('dbForProject') - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('project') ->inject('queueForMessaging') ->inject('response') - ->action(function (string $messageId, string $title, string $body, array $topics, array $users, array $targets, ?array $data, string $action, string $image, string $icon, string $sound, string $color, string $tag, string $badge, bool $draft, ?string $scheduledAt, Event $queueForEvents, Database $dbForProject, Database $dbForConsole, Document $project, Messaging $queueForMessaging, Response $response) { + ->action(function (string $messageId, string $title, string $body, array $topics, array $users, array $targets, ?array $data, string $action, string $image, string $icon, string $sound, string $color, string $tag, int $badge, bool $draft, ?string $scheduledAt, bool $contentAvailable, bool $critical, string $priority, Event $queueForEvents, Database $dbForProject, Database $dbForPlatform, Document $project, Messaging $queueForMessaging, Response $response) { $messageId = $messageId == 'unique()' ? ID::unique() : $messageId; @@ -2956,12 +3268,44 @@ $pushData = []; - $keys = ['title', 'body', 'data', 'action', 'image', 'icon', 'sound', 'color', 'tag', 'badge']; - - foreach ($keys as $key) { - if (!empty($$key)) { - $pushData[$key] = $$key; - } + if (!empty($title)) { + $pushData['title'] = $title; + } + if (!empty($body)) { + $pushData['body'] = $body; + } + if (!empty($data)) { + $pushData['data'] = $data; + } + if (!empty($action)) { + $pushData['action'] = $action; + } + if (!empty($image)) { + $pushData['image'] = $image; + } + if (!empty($icon)) { + $pushData['icon'] = $icon; + } + if (!empty($sound)) { + $pushData['sound'] = $sound; + } + if (!empty($color)) { + $pushData['color'] = $color; + } + if (!empty($tag)) { + $pushData['tag'] = $tag; + } + if ($badge >= 0) { + $pushData['badge'] = $badge; + } + if ($contentAvailable) { + $pushData['contentAvailable'] = true; + } + if ($critical) { + $pushData['critical'] = true; + } + if (!empty($priority)) { + $pushData['priority'] = $priority; } $message = $dbForProject->createDocument('messages', new Document([ @@ -2982,8 +3326,8 @@ ->setMessageId($message->getId()); break; case MessageStatus::SCHEDULED: - $schedule = $dbForConsole->createDocument('schedules', new Document([ - 'region' => System::getEnv('_APP_REGION', 'default'), + $schedule = $dbForPlatform->createDocument('schedules', new Document([ + 'region' => $project->getAttribute('region'), 'resourceType' => 'message', 'resourceId' => $message->getId(), 'resourceInternalId' => $message->getInternalId(), @@ -3017,13 +3361,20 @@ ->desc('List messages') ->groups(['api', 'messaging']) ->label('scope', 'messages.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'listMessages') - ->label('sdk.description', '/docs/references/messaging/list-messages.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MESSAGE_LIST) + ->label('resourceType', RESOURCE_TYPE_MESSAGES) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'messages', + name: 'listMessages', + description: '/docs/references/messaging/list-messages.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_MESSAGE_LIST, + ) + ], + )) ->param('queries', [], new Messages(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Messages::ALLOWED_ATTRIBUTES), true) ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) ->inject('dbForProject') @@ -3048,6 +3399,11 @@ $cursor = reset($cursor); if ($cursor) { + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + $messageId = $cursor->getValue(); $cursorDocument = Authorization::skip(fn () => $dbForProject->getDocument('messages', $messageId)); @@ -3057,10 +3413,15 @@ $cursor->setValue($cursorDocument); } - + try { + $messages = $dbForProject->find('messages', $queries); + $total = $dbForProject->count('messages', $queries, APP_LIMIT_COUNT); + } catch (OrderException $e) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); + } $response->dynamic(new Document([ - 'messages' => $dbForProject->find('messages', $queries), - 'total' => $dbForProject->count('messages', $queries, APP_LIMIT_COUNT), + 'messages' => $messages, + 'total' => $total, ]), Response::MODEL_MESSAGE_LIST); }); @@ -3068,13 +3429,20 @@ ->desc('List message logs') ->groups(['api', 'messaging']) ->label('scope', 'messages.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'listMessageLogs') - ->label('sdk.description', '/docs/references/messaging/list-message-logs.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_LOG_LIST) + ->label('resourceType', RESOURCE_TYPE_MESSAGES) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'logs', + name: 'listMessageLogs', + description: '/docs/references/messaging/list-message-logs.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_LOG_LIST, + ) + ], + )) ->param('messageId', '', new UID(), 'Message ID.') ->param('queries', [], new Queries([new Limit(), new Offset()]), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset', true) ->inject('response') @@ -3094,13 +3462,15 @@ throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); } - $grouped = Query::groupByType($queries); - $limit = $grouped['limit'] ?? APP_LIMIT_COUNT; - $offset = $grouped['offset'] ?? 0; + // Temp fix for logs + $queries[] = Query::or([ + Query::greaterThan('$createdAt', DateTime::format(new \DateTime('2025-02-26T01:30+00:00'))), + Query::lessThan('$createdAt', DateTime::format(new \DateTime('2025-02-13T00:00+00:00'))), + ]); $audit = new Audit($dbForProject); $resource = 'message/' . $messageId; - $logs = $audit->getLogsByResource($resource, $limit, $offset); + $logs = $audit->getLogsByResource($resource, $queries); $output = []; @@ -3148,7 +3518,7 @@ } $response->dynamic(new Document([ - 'total' => $audit->countLogsByResource($resource), + 'total' => $audit->countLogsByResource($resource, $queries), 'logs' => $output, ]), Response::MODEL_LOG_LIST); }); @@ -3157,13 +3527,20 @@ ->desc('List message targets') ->groups(['api', 'messaging']) ->label('scope', 'messages.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'listTargets') - ->label('sdk.description', '/docs/references/messaging/list-message-targets.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_TARGET_LIST) + ->label('resourceType', RESOURCE_TYPE_MESSAGES) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'messages', + name: 'listTargets', + description: '/docs/references/messaging/list-message-targets.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_TARGET_LIST, + ) + ], + )) ->param('messageId', '', new UID(), 'Message ID.') ->param('queries', [], new Targets(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Targets::ALLOWED_ATTRIBUTES), true) ->inject('response') @@ -3202,6 +3579,11 @@ $cursor = reset($cursor); if ($cursor) { + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + $targetId = $cursor->getValue(); $cursorDocument = $dbForProject->getDocument('targets', $targetId); @@ -3211,10 +3593,15 @@ $cursor->setValue($cursorDocument); } - + try { + $targets = $dbForProject->find('targets', $queries); + $total = $dbForProject->count('targets', $queries, APP_LIMIT_COUNT); + } catch (OrderException $e) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); + } $response->dynamic(new Document([ - 'targets' => $dbForProject->find('targets', $queries), - 'total' => $dbForProject->count('targets', $queries, APP_LIMIT_COUNT), + 'targets' => $targets, + 'total' => $total, ]), Response::MODEL_TARGET_LIST); }); @@ -3222,13 +3609,20 @@ ->desc('Get message') ->groups(['api', 'messaging']) ->label('scope', 'messages.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'getMessage') - ->label('sdk.description', '/docs/references/messaging/get-message.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MESSAGE) + ->label('resourceType', RESOURCE_TYPE_MESSAGES) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'messages', + name: 'getMessage', + description: '/docs/references/messaging/get-message.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_MESSAGE, + ) + ] + )) ->param('messageId', '', new UID(), 'Message ID.') ->inject('dbForProject') ->inject('response') @@ -3249,13 +3643,20 @@ ->label('audits.resource', 'message/{response.$id}') ->label('event', 'messages.[messageId].update') ->label('scope', 'messages.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'updateEmail') - ->label('sdk.description', '/docs/references/messaging/update-email.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MESSAGE) + ->label('resourceType', RESOURCE_TYPE_MESSAGES) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'messages', + name: 'updateEmail', + description: '/docs/references/messaging/update-email.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_MESSAGE, + ) + ] + )) ->param('messageId', '', new UID(), 'Message ID.') ->param('topics', null, new ArrayList(new UID()), 'List of Topic IDs.', true) ->param('users', null, new ArrayList(new UID()), 'List of User IDs.', true) @@ -3270,11 +3671,11 @@ ->param('attachments', null, new ArrayList(new CompoundUID()), 'Array of compound ID strings of bucket IDs and file IDs to be attached to the email. They should be formatted as <BUCKET_ID>:<FILE_ID>.', true) ->inject('queueForEvents') ->inject('dbForProject') - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('project') ->inject('queueForMessaging') ->inject('response') - ->action(function (string $messageId, ?array $topics, ?array $users, ?array $targets, ?string $subject, ?string $content, ?bool $draft, ?bool $html, ?array $cc, ?array $bcc, ?string $scheduledAt, ?array $attachments, Event $queueForEvents, Database $dbForProject, Database $dbForConsole, Document $project, Messaging $queueForMessaging, Response $response) { + ->action(function (string $messageId, ?array $topics, ?array $users, ?array $targets, ?string $subject, ?string $content, ?bool $draft, ?bool $html, ?array $cc, ?array $bcc, ?string $scheduledAt, ?array $attachments, Event $queueForEvents, Database $dbForProject, Database $dbForPlatform, Document $project, Messaging $queueForMessaging, Response $response) { $message = $dbForProject->getDocument('messages', $messageId); if ($message->isEmpty()) { @@ -3326,8 +3727,8 @@ } if (\is_null($currentScheduledAt) && !\is_null($scheduledAt)) { - $schedule = $dbForConsole->createDocument('schedules', new Document([ - 'region' => System::getEnv('_APP_REGION', 'default'), + $schedule = $dbForPlatform->createDocument('schedules', new Document([ + 'region' => $project->getAttribute('region'), 'resourceType' => 'message', 'resourceId' => $message->getId(), 'resourceInternalId' => $message->getInternalId(), @@ -3341,7 +3742,7 @@ } if (!\is_null($currentScheduledAt)) { - $schedule = $dbForConsole->getDocument('schedules', $message->getAttribute('scheduleId')); + $schedule = $dbForPlatform->getDocument('schedules', $message->getAttribute('scheduleId')); $scheduledStatus = ($status ?? $message->getAttribute('status')) === MessageStatus::SCHEDULED; if ($schedule->isEmpty()) { @@ -3356,7 +3757,7 @@ $schedule->setAttribute('schedule', $scheduledAt); } - $dbForConsole->updateDocument('schedules', $schedule->getId(), $schedule); + $dbForPlatform->updateDocument('schedules', $schedule->getId(), $schedule); } if (!\is_null($scheduledAt)) { @@ -3449,13 +3850,20 @@ ->label('audits.resource', 'message/{response.$id}') ->label('event', 'messages.[messageId].update') ->label('scope', 'messages.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'updateSms') - ->label('sdk.description', '/docs/references/messaging/update-email.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MESSAGE) + ->label('resourceType', RESOURCE_TYPE_MESSAGES) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'messages', + name: 'updateSms', + description: '/docs/references/messaging/update-sms.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_MESSAGE, + ) + ] + )) ->param('messageId', '', new UID(), 'Message ID.') ->param('topics', null, new ArrayList(new UID()), 'List of Topic IDs.', true) ->param('users', null, new ArrayList(new UID()), 'List of User IDs.', true) @@ -3465,11 +3873,11 @@ ->param('scheduledAt', null, new DatetimeValidator(requireDateInFuture: true), 'Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.', true) ->inject('queueForEvents') ->inject('dbForProject') - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('project') ->inject('queueForMessaging') ->inject('response') - ->action(function (string $messageId, ?array $topics, ?array $users, ?array $targets, ?string $content, ?bool $draft, ?string $scheduledAt, Event $queueForEvents, Database $dbForProject, Database $dbForConsole, Document $project, Messaging $queueForMessaging, Response $response) { + ->action(function (string $messageId, ?array $topics, ?array $users, ?array $targets, ?string $content, ?bool $draft, ?string $scheduledAt, Event $queueForEvents, Database $dbForProject, Database $dbForPlatform, Document $project, Messaging $queueForMessaging, Response $response) { $message = $dbForProject->getDocument('messages', $messageId); if ($message->isEmpty()) { @@ -3521,8 +3929,8 @@ } if (\is_null($currentScheduledAt) && !\is_null($scheduledAt)) { - $schedule = $dbForConsole->createDocument('schedules', new Document([ - 'region' => System::getEnv('_APP_REGION', 'default'), + $schedule = $dbForPlatform->createDocument('schedules', new Document([ + 'region' => $project->getAttribute('region'), 'resourceType' => 'message', 'resourceId' => $message->getId(), 'resourceInternalId' => $message->getInternalId(), @@ -3536,7 +3944,7 @@ } if (!\is_null($currentScheduledAt)) { - $schedule = $dbForConsole->getDocument('schedules', $message->getAttribute('scheduleId')); + $schedule = $dbForPlatform->getDocument('schedules', $message->getAttribute('scheduleId')); $scheduledStatus = ($status ?? $message->getAttribute('status')) === MessageStatus::SCHEDULED; if ($schedule->isEmpty()) { @@ -3551,7 +3959,7 @@ $schedule->setAttribute('schedule', $scheduledAt); } - $dbForConsole->updateDocument('schedules', $schedule->getId(), $schedule); + $dbForPlatform->updateDocument('schedules', $schedule->getId(), $schedule); } if (!\is_null($scheduledAt)) { @@ -3604,13 +4012,20 @@ ->label('audits.resource', 'message/{response.$id}') ->label('event', 'messages.[messageId].update') ->label('scope', 'messages.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'updatePush') - ->label('sdk.description', '/docs/references/messaging/update-push.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MESSAGE) + ->label('resourceType', RESOURCE_TYPE_MESSAGES) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'messages', + name: 'updatePush', + description: '/docs/references/messaging/update-push.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_MESSAGE, + ) + ] + )) ->param('messageId', '', new UID(), 'Message ID.') ->param('topics', null, new ArrayList(new UID()), 'List of Topic IDs.', true) ->param('users', null, new ArrayList(new UID()), 'List of User IDs.', true) @@ -3627,13 +4042,16 @@ ->param('badge', null, new Integer(), 'Badge for push notification. Available only for iOS platforms.', true) ->param('draft', null, new Boolean(), 'Is message a draft', true) ->param('scheduledAt', null, new DatetimeValidator(requireDateInFuture: true), 'Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.', true) + ->param('contentAvailable', null, new Boolean(), 'If set to true, the notification will be delivered in the background. Available only for iOS Platform.', true) + ->param('critical', null, new Boolean(), 'If set to true, the notification will be marked as critical. This requires the app to have the critical notification entitlement. Available only for iOS Platform.', true) + ->param('priority', null, new WhiteList(['normal', 'high']), 'Set the notification priority. "normal" will consider device battery state and may send notifications later. "high" will always attempt to immediately deliver the notification.', true) ->inject('queueForEvents') ->inject('dbForProject') - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('project') ->inject('queueForMessaging') ->inject('response') - ->action(function (string $messageId, ?array $topics, ?array $users, ?array $targets, ?string $title, ?string $body, ?array $data, ?string $action, ?string $image, ?string $icon, ?string $sound, ?string $color, ?string $tag, ?int $badge, ?bool $draft, ?string $scheduledAt, Event $queueForEvents, Database $dbForProject, Database $dbForConsole, Document $project, Messaging $queueForMessaging, Response $response) { + ->action(function (string $messageId, ?array $topics, ?array $users, ?array $targets, ?string $title, ?string $body, ?array $data, ?string $action, ?string $image, ?string $icon, ?string $sound, ?string $color, ?string $tag, ?int $badge, ?bool $draft, ?string $scheduledAt, ?bool $contentAvailable, ?bool $critical, ?string $priority, Event $queueForEvents, Database $dbForProject, Database $dbForPlatform, Document $project, Messaging $queueForMessaging, Response $response) { $message = $dbForProject->getDocument('messages', $messageId); if ($message->isEmpty()) { @@ -3685,8 +4103,8 @@ } if (\is_null($currentScheduledAt) && !\is_null($scheduledAt)) { - $schedule = $dbForConsole->createDocument('schedules', new Document([ - 'region' => System::getEnv('_APP_REGION', 'default'), + $schedule = $dbForPlatform->createDocument('schedules', new Document([ + 'region' => $project->getAttribute('region'), 'resourceType' => 'message', 'resourceId' => $message->getId(), 'resourceInternalId' => $message->getInternalId(), @@ -3700,7 +4118,7 @@ } if (!\is_null($currentScheduledAt)) { - $schedule = $dbForConsole->getDocument('schedules', $message->getAttribute('scheduleId')); + $schedule = $dbForPlatform->getDocument('schedules', $message->getAttribute('scheduleId')); $scheduledStatus = ($status ?? $message->getAttribute('status')) === MessageStatus::SCHEDULED; if ($schedule->isEmpty()) { @@ -3715,7 +4133,7 @@ $schedule->setAttribute('schedule', $scheduledAt); } - $dbForConsole->updateDocument('schedules', $schedule->getId(), $schedule); + $dbForPlatform->updateDocument('schedules', $schedule->getId(), $schedule); } if (!\is_null($scheduledAt)) { @@ -3772,6 +4190,18 @@ $pushData['badge'] = $badge; } + if (!\is_null($contentAvailable)) { + $pushData['contentAvailable'] = $contentAvailable; + } + + if (!\is_null($critical)) { + $pushData['critical'] = $critical; + } + + if (!\is_null($priority)) { + $pushData['priority'] = $priority; + } + if (!\is_null($image)) { [$bucketId, $fileId] = CompoundUID::parse($image); @@ -3842,19 +4272,27 @@ ->label('audits.resource', 'message/{request.messageId}') ->label('event', 'messages.[messageId].delete') ->label('scope', 'messages.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN, APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'messaging') - ->label('sdk.method', 'delete') - ->label('sdk.description', '/docs/references/messaging/delete-message.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('resourceType', RESOURCE_TYPE_MESSAGES) + ->label('sdk', new Method( + namespace: 'messaging', + group: 'messages', + name: 'delete', + description: '/docs/references/messaging/delete-message.md', + auth: [AuthType::ADMIN, AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('messageId', '', new UID(), 'Message ID.') ->inject('dbForProject') - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('queueForEvents') ->inject('response') - ->action(function (string $messageId, Database $dbForProject, Database $dbForConsole, Event $queueForEvents, Response $response) { + ->action(function (string $messageId, Database $dbForProject, Database $dbForPlatform, Event $queueForEvents, Response $response) { $message = $dbForProject->getDocument('messages', $messageId); if ($message->isEmpty()) { @@ -3877,7 +4315,7 @@ if (!empty($scheduleId)) { try { - $dbForConsole->deleteDocument('schedules', $scheduleId); + $dbForPlatform->deleteDocument('schedules', $scheduleId); } catch (Exception) { // Ignore } diff --git a/app/controllers/api/migrations.php b/app/controllers/api/migrations.php index 3899b26ad42..4d8e64d65a5 100644 --- a/app/controllers/api/migrations.php +++ b/app/controllers/api/migrations.php @@ -1,29 +1,28 @@ <?php -use Appwrite\Auth\OAuth2\Firebase as OAuth2Firebase; use Appwrite\Event\Event; use Appwrite\Event\Migration; use Appwrite\Extend\Exception; -use Appwrite\Permission; -use Appwrite\Role; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Database\Validator\Queries\Migrations; -use Appwrite\Utopia\Request; use Appwrite\Utopia\Response; use Utopia\App; use Utopia\Database\Database; -use Utopia\Database\DateTime; use Utopia\Database\Document; +use Utopia\Database\Exception\Order as OrderException; use Utopia\Database\Exception\Query as QueryException; use Utopia\Database\Helpers\ID; use Utopia\Database\Query; +use Utopia\Database\Validator\Query\Cursor; use Utopia\Database\Validator\UID; use Utopia\Migration\Sources\Appwrite; use Utopia\Migration\Sources\Firebase; use Utopia\Migration\Sources\NHost; use Utopia\Migration\Sources\Supabase; -use Utopia\System\System; use Utopia\Validator\ArrayList; -use Utopia\Validator\Host; use Utopia\Validator\Integer; use Utopia\Validator\Text; use Utopia\Validator\URL; @@ -33,21 +32,27 @@ App::post('/v1/migrations/appwrite') ->groups(['api', 'migrations']) - ->desc('Migrate Appwrite Data') + ->desc('Create Appwrite migration') ->label('scope', 'migrations.write') ->label('event', 'migrations.[migrationId].create') ->label('audits.event', 'migration.create') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'migrations') - ->label('sdk.method', 'createAppwriteMigration') - ->label('sdk.description', '/docs/references/migrations/migration-appwrite.md') - ->label('sdk.response.code', Response::STATUS_CODE_ACCEPTED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MIGRATION) + ->label('sdk', new Method( + namespace: 'migrations', + group: null, + name: 'createAppwriteMigration', + description: '/docs/references/migrations/migration-appwrite.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_ACCEPTED, + model: Response::MODEL_MIGRATION, + ) + ] + )) ->param('resources', [], new ArrayList(new WhiteList(Appwrite::getSupportedResources())), 'List of resources to migrate') - ->param('endpoint', '', new URL(), "Source's Appwrite Endpoint") - ->param('projectId', '', new UID(), "Source's Project ID") - ->param('apiKey', '', new Text(512), "Source's API Key") + ->param('endpoint', '', new URL(), 'Source Appwrite endpoint') + ->param('projectId', '', new UID(), 'Source Project ID') + ->param('apiKey', '', new Text(512), 'Source API Key') ->inject('response') ->inject('dbForProject') ->inject('project') @@ -60,6 +65,7 @@ 'status' => 'pending', 'stage' => 'init', 'source' => Appwrite::getName(), + 'destination' => Appwrite::getName(), 'credentials' => [ 'endpoint' => $endpoint, 'projectId' => $projectId, @@ -85,121 +91,26 @@ ->dynamic($migration, Response::MODEL_MIGRATION); }); -App::post('/v1/migrations/firebase/oauth') - ->groups(['api', 'migrations']) - ->desc('Migrate Firebase Data (OAuth)') - ->label('scope', 'migrations.write') - ->label('event', 'migrations.[migrationId].create') - ->label('audits.event', 'migration.create') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'migrations') - ->label('sdk.method', 'createFirebaseOAuthMigration') - ->label('sdk.description', '/docs/references/migrations/migration-firebase.md') - ->label('sdk.response.code', Response::STATUS_CODE_ACCEPTED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MIGRATION) - ->param('resources', [], new ArrayList(new WhiteList(Firebase::getSupportedResources())), 'List of resources to migrate') - ->param('projectId', '', new Text(65536), 'Project ID of the Firebase Project') - ->inject('response') - ->inject('dbForProject') - ->inject('dbForConsole') - ->inject('project') - ->inject('user') - ->inject('queueForEvents') - ->inject('queueForMigrations') - ->inject('request') - ->action(function (array $resources, string $projectId, Response $response, Database $dbForProject, Database $dbForConsole, Document $project, Document $user, Event $queueForEvents, Migration $queueForMigrations, Request $request) { - $firebase = new OAuth2Firebase( - System::getEnv('_APP_MIGRATIONS_FIREBASE_CLIENT_ID', ''), - System::getEnv('_APP_MIGRATIONS_FIREBASE_CLIENT_SECRET', ''), - $request->getProtocol() . '://' . $request->getHostname() . '/v1/migrations/firebase/redirect' - ); - - $identity = $dbForConsole->findOne('identities', [ - Query::equal('provider', ['firebase']), - Query::equal('userInternalId', [$user->getInternalId()]), - ]); - if ($identity === false || $identity->isEmpty()) { - throw new Exception(Exception::USER_IDENTITY_NOT_FOUND); - } - - $accessToken = $identity->getAttribute('providerAccessToken'); - $refreshToken = $identity->getAttribute('providerRefreshToken'); - $accessTokenExpiry = $identity->getAttribute('providerAccessTokenExpiry'); - - $isExpired = new \DateTime($accessTokenExpiry) < new \DateTime('now'); - if ($isExpired) { - $firebase->refreshTokens($refreshToken); - - $accessToken = $firebase->getAccessToken(''); - $refreshToken = $firebase->getRefreshToken(''); - - $verificationId = $firebase->getUserID($accessToken); - - if (empty($verificationId)) { - throw new Exception(Exception::GENERAL_RATE_LIMIT_EXCEEDED, 'Another request is currently refreshing OAuth token. Please try again.'); - } - - $identity = $identity - ->setAttribute('providerAccessToken', $accessToken) - ->setAttribute('providerRefreshToken', $refreshToken) - ->setAttribute('providerAccessTokenExpiry', DateTime::addSeconds(new \DateTime(), (int)$firebase->getAccessTokenExpiry(''))); - - $dbForConsole->updateDocument('identities', $identity->getId(), $identity); - } - - if ($identity->getAttribute('secrets')) { - $serviceAccount = $identity->getAttribute('secrets'); - } else { - $firebase->cleanupServiceAccounts($accessToken, $projectId); - $serviceAccount = $firebase->createServiceAccount($accessToken, $projectId); - $identity = $identity - ->setAttribute('secrets', json_encode($serviceAccount)); - - $dbForConsole->updateDocument('identities', $identity->getId(), $identity); - } - - $migration = $dbForProject->createDocument('migrations', new Document([ - '$id' => ID::unique(), - 'status' => 'pending', - 'stage' => 'init', - 'source' => Firebase::getName(), - 'credentials' => [ - 'serviceAccount' => json_encode($serviceAccount), - ], - 'resources' => $resources, - 'statusCounters' => '{}', - 'resourceData' => '{}', - 'errors' => [] - ])); - - $queueForEvents->setParam('migrationId', $migration->getId()); - - // Trigger Transfer - $queueForMigrations - ->setMigration($migration) - ->setProject($project) - ->setUser($user) - ->trigger(); - - $response - ->setStatusCode(Response::STATUS_CODE_ACCEPTED) - ->dynamic($migration, Response::MODEL_MIGRATION); - }); App::post('/v1/migrations/firebase') ->groups(['api', 'migrations']) - ->desc('Migrate Firebase Data (Service Account)') + ->desc('Create Firebase migration') ->label('scope', 'migrations.write') ->label('event', 'migrations.[migrationId].create') ->label('audits.event', 'migration.create') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'migrations') - ->label('sdk.method', 'createFirebaseMigration') - ->label('sdk.description', '/docs/references/migrations/migration-firebase.md') - ->label('sdk.response.code', Response::STATUS_CODE_ACCEPTED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MIGRATION) + ->label('sdk', new Method( + namespace: 'migrations', + group: null, + name: 'createFirebaseMigration', + description: '/docs/references/migrations/migration-firebase.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_ACCEPTED, + model: Response::MODEL_MIGRATION, + ) + ] + )) ->param('resources', [], new ArrayList(new WhiteList(Firebase::getSupportedResources())), 'List of resources to migrate') ->param('serviceAccount', '', new Text(65536), 'JSON of the Firebase service account credentials') ->inject('response') @@ -224,6 +135,7 @@ 'status' => 'pending', 'stage' => 'init', 'source' => Firebase::getName(), + 'destination' => Appwrite::getName(), 'credentials' => [ 'serviceAccount' => $serviceAccount, ], @@ -249,17 +161,23 @@ App::post('/v1/migrations/supabase') ->groups(['api', 'migrations']) - ->desc('Migrate Supabase Data') + ->desc('Create Supabase migration') ->label('scope', 'migrations.write') ->label('event', 'migrations.[migrationId].create') ->label('audits.event', 'migration.create') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'migrations') - ->label('sdk.method', 'createSupabaseMigration') - ->label('sdk.description', '/docs/references/migrations/migration-supabase.md') - ->label('sdk.response.code', Response::STATUS_CODE_ACCEPTED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MIGRATION) + ->label('sdk', new Method( + namespace: 'migrations', + group: null, + name: 'createSupabaseMigration', + description: '/docs/references/migrations/migration-supabase.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_ACCEPTED, + model: Response::MODEL_MIGRATION, + ) + ] + )) ->param('resources', [], new ArrayList(new WhiteList(Supabase::getSupportedResources(), true)), 'List of resources to migrate') ->param('endpoint', '', new URL(), 'Source\'s Supabase Endpoint') ->param('apiKey', '', new Text(512), 'Source\'s API Key') @@ -279,6 +197,7 @@ 'status' => 'pending', 'stage' => 'init', 'source' => Supabase::getName(), + 'destination' => Appwrite::getName(), 'credentials' => [ 'endpoint' => $endpoint, 'apiKey' => $apiKey, @@ -309,17 +228,23 @@ App::post('/v1/migrations/nhost') ->groups(['api', 'migrations']) - ->desc('Migrate NHost Data') + ->desc('Create NHost migration') ->label('scope', 'migrations.write') ->label('event', 'migrations.[migrationId].create') ->label('audits.event', 'migration.create') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'migrations') - ->label('sdk.method', 'createNHostMigration') - ->label('sdk.description', '/docs/references/migrations/migration-nhost.md') - ->label('sdk.response.code', Response::STATUS_CODE_ACCEPTED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MIGRATION) + ->label('sdk', new Method( + namespace: 'migrations', + group: null, + name: 'createNHostMigration', + description: '/docs/references/migrations/migration-nhost.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_ACCEPTED, + model: Response::MODEL_MIGRATION, + ) + ] + )) ->param('resources', [], new ArrayList(new WhiteList(NHost::getSupportedResources())), 'List of resources to migrate') ->param('subdomain', '', new Text(512), 'Source\'s Subdomain') ->param('region', '', new Text(512), 'Source\'s Region') @@ -340,6 +265,7 @@ 'status' => 'pending', 'stage' => 'init', 'source' => NHost::getName(), + 'destination' => Appwrite::getName(), 'credentials' => [ 'subdomain' => $subdomain, 'region' => $region, @@ -371,15 +297,21 @@ App::get('/v1/migrations') ->groups(['api', 'migrations']) - ->desc('List Migrations') + ->desc('List migrations') ->label('scope', 'migrations.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'migrations') - ->label('sdk.method', 'list') - ->label('sdk.description', '/docs/references/migrations/list-migrations.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MIGRATION_LIST) + ->label('sdk', new Method( + namespace: 'migrations', + group: null, + name: 'list', + description: '/docs/references/migrations/list-migrations.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_MIGRATION_LIST, + ) + ] + )) ->param('queries', [], new Migrations(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Migrations::ALLOWED_ATTRIBUTES), true) ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) ->inject('response') @@ -404,6 +336,12 @@ $cursor = reset($cursor); if ($cursor) { /** @var Query $cursor */ + + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + $migrationId = $cursor->getValue(); $cursorDocument = $dbForProject->getDocument('migrations', $migrationId); @@ -415,24 +353,35 @@ } $filterQueries = Query::groupByType($queries)['filters']; - + try { + $migrations = $dbForProject->find('migrations', $queries); + $total = $dbForProject->count('migrations', $filterQueries, APP_LIMIT_COUNT); + } catch (OrderException $e) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); + } $response->dynamic(new Document([ - 'migrations' => $dbForProject->find('migrations', $queries), - 'total' => $dbForProject->count('migrations', $filterQueries, APP_LIMIT_COUNT), + 'migrations' => $migrations, + 'total' => $total, ]), Response::MODEL_MIGRATION_LIST); }); App::get('/v1/migrations/:migrationId') ->groups(['api', 'migrations']) - ->desc('Get Migration') + ->desc('Get migration') ->label('scope', 'migrations.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'migrations') - ->label('sdk.method', 'get') - ->label('sdk.description', '/docs/references/migrations/get-migration.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MIGRATION) + ->label('sdk', new Method( + namespace: 'migrations', + group: null, + name: 'get', + description: '/docs/references/migrations/get-migration.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_MIGRATION, + ) + ] + )) ->param('migrationId', '', new UID(), 'Migration unique ID.') ->inject('response') ->inject('dbForProject') @@ -448,15 +397,21 @@ App::get('/v1/migrations/appwrite/report') ->groups(['api', 'migrations']) - ->desc('Generate a report on Appwrite Data') + ->desc('Get Appwrite migration report') ->label('scope', 'migrations.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'migrations') - ->label('sdk.method', 'getAppwriteReport') - ->label('sdk.description', '/docs/references/migrations/migration-appwrite-report.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MIGRATION_REPORT) + ->label('sdk', new Method( + namespace: 'migrations', + group: null, + name: 'getAppwriteReport', + description: '/docs/references/migrations/migration-appwrite-report.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_MIGRATION_REPORT, + ) + ] + )) ->param('resources', [], new ArrayList(new WhiteList(Appwrite::getSupportedResources())), 'List of resources to migrate') ->param('endpoint', '', new URL(), "Source's Appwrite Endpoint") ->param('projectID', '', new Text(512), "Source's Project ID") @@ -466,6 +421,7 @@ ->inject('project') ->inject('user') ->action(function (array $resources, string $endpoint, string $projectID, string $key, Response $response) { + $appwrite = new Appwrite($projectID, $endpoint, $key); try { @@ -490,15 +446,21 @@ App::get('/v1/migrations/firebase/report') ->groups(['api', 'migrations']) - ->desc('Generate a report on Firebase Data') + ->desc('Get Firebase migration report') ->label('scope', 'migrations.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'migrations') - ->label('sdk.method', 'getFirebaseReport') - ->label('sdk.description', '/docs/references/migrations/migration-firebase-report.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MIGRATION_REPORT) + ->label('sdk', new Method( + namespace: 'migrations', + group: null, + name: 'getFirebaseReport', + description: '/docs/references/migrations/migration-firebase-report.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_MIGRATION_REPORT, + ) + ] + )) ->param('resources', [], new ArrayList(new WhiteList(Firebase::getSupportedResources())), 'List of resources to migrate') ->param('serviceAccount', '', new Text(65536), 'JSON of the Firebase service account credentials') ->inject('response') @@ -535,379 +497,23 @@ ->dynamic(new Document($report), Response::MODEL_MIGRATION_REPORT); }); -App::get('/v1/migrations/firebase/report/oauth') - ->groups(['api', 'migrations']) - ->desc('Generate a report on Firebase Data using OAuth') - ->label('scope', 'migrations.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'migrations') - ->label('sdk.method', 'getFirebaseReportOAuth') - ->label('sdk.description', '/docs/references/migrations/migration-firebase-report.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MIGRATION_REPORT) - ->param('resources', [], new ArrayList(new WhiteList(Firebase::getSupportedResources())), 'List of resources to migrate') - ->param('projectId', '', new Text(65536), 'Project ID') - ->inject('response') - ->inject('request') - ->inject('user') - ->inject('dbForConsole') - ->action(function (array $resources, string $projectId, Response $response, Request $request, Document $user, Database $dbForConsole) { - $firebase = new OAuth2Firebase( - System::getEnv('_APP_MIGRATIONS_FIREBASE_CLIENT_ID', ''), - System::getEnv('_APP_MIGRATIONS_FIREBASE_CLIENT_SECRET', ''), - $request->getProtocol() . '://' . $request->getHostname() . '/v1/migrations/firebase/redirect' - ); - - $identity = $dbForConsole->findOne('identities', [ - Query::equal('provider', ['firebase']), - Query::equal('userInternalId', [$user->getInternalId()]), - ]); - - if ($identity === false || $identity->isEmpty()) { - throw new Exception(Exception::USER_IDENTITY_NOT_FOUND); - } - - $accessToken = $identity->getAttribute('providerAccessToken'); - $refreshToken = $identity->getAttribute('providerRefreshToken'); - $accessTokenExpiry = $identity->getAttribute('providerAccessTokenExpiry'); - - if (empty($accessToken) || empty($refreshToken) || empty($accessTokenExpiry)) { - throw new Exception(Exception::USER_IDENTITY_NOT_FOUND); - } - - if (System::getEnv('_APP_MIGRATIONS_FIREBASE_CLIENT_ID', '') === '' || System::getEnv('_APP_MIGRATIONS_FIREBASE_CLIENT_SECRET', '') === '') { - throw new Exception(Exception::USER_IDENTITY_NOT_FOUND); - } - - $isExpired = new \DateTime($accessTokenExpiry) < new \DateTime('now'); - if ($isExpired) { - $firebase->refreshTokens($refreshToken); - - $accessToken = $firebase->getAccessToken(''); - $refreshToken = $firebase->getRefreshToken(''); - - $verificationId = $firebase->getUserID($accessToken); - - if (empty($verificationId)) { - throw new Exception(Exception::GENERAL_RATE_LIMIT_EXCEEDED, 'Another request is currently refreshing OAuth token. Please try again.'); - } - - $identity = $identity - ->setAttribute('providerAccessToken', $accessToken) - ->setAttribute('providerRefreshToken', $refreshToken) - ->setAttribute('providerAccessTokenExpiry', DateTime::addSeconds(new \DateTime(), (int)$firebase->getAccessTokenExpiry(''))); - - $dbForConsole->updateDocument('identities', $identity->getId(), $identity); - } - - // Get Service Account - if ($identity->getAttribute('secrets')) { - $serviceAccount = $identity->getAttribute('secrets'); - } else { - $firebase->cleanupServiceAccounts($accessToken, $projectId); - $serviceAccount = $firebase->createServiceAccount($accessToken, $projectId); - $identity = $identity - ->setAttribute('secrets', json_encode($serviceAccount)); - - $dbForConsole->updateDocument('identities', $identity->getId(), $identity); - } - - $firebase = new Firebase($serviceAccount); - - try { - $report = $firebase->report($resources); - } catch (\Throwable $e) { - throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Source Error: ' . $e->getMessage()); - } - - $response - ->setStatusCode(Response::STATUS_CODE_OK) - ->dynamic(new Document($report), Response::MODEL_MIGRATION_REPORT); - }); - -App::get('/v1/migrations/firebase/connect') - ->desc('Authorize with firebase') - ->groups(['api', 'migrations']) - ->label('scope', 'migrations.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'migrations') - ->label('sdk.method', 'createFirebaseAuth') - ->label('sdk.description', '') - ->label('sdk.response.code', Response::STATUS_CODE_MOVED_PERMANENTLY) - ->label('sdk.response.type', Response::CONTENT_TYPE_HTML) - ->label('sdk.methodType', 'webAuth') - ->label('sdk.hide', true) - ->param('redirect', '', fn ($clients) => new Host($clients), 'URL to redirect back to your Firebase authorization. Only console hostnames are allowed.', true, ['clients']) - ->param('projectId', '', new UID(), 'Project ID') - ->inject('response') - ->inject('request') - ->inject('user') - ->inject('dbForConsole') - ->action(function (string $redirect, string $projectId, Response $response, Request $request, Document $user, Database $dbForConsole) { - $state = \json_encode([ - 'projectId' => $projectId, - 'redirect' => $redirect, - ]); - - $prefs = $user->getAttribute('prefs', []); - $prefs['migrationState'] = $state; - $user->setAttribute('prefs', $prefs); - $dbForConsole->updateDocument('users', $user->getId(), $user); - - $oauth2 = new OAuth2Firebase( - System::getEnv('_APP_MIGRATIONS_FIREBASE_CLIENT_ID', ''), - System::getEnv('_APP_MIGRATIONS_FIREBASE_CLIENT_SECRET', ''), - $request->getProtocol() . '://' . $request->getHostname() . '/v1/migrations/firebase/redirect' - ); - $url = $oauth2->getLoginURL(); - - $response - ->addHeader('Cache-Control', 'no-store, no-cache, must-revalidate, max-age=0') - ->addHeader('Pragma', 'no-cache') - ->redirect($url); - }); - -App::get('/v1/migrations/firebase/redirect') - ->desc('Capture and receive data on Firebase authorization') - ->groups(['api', 'migrations']) - ->label('scope', 'public') - ->label('error', __DIR__ . '/../../views/general/error.phtml') - ->param('code', '', new Text(2048), 'OAuth2 code. This is a temporary code that the will be later exchanged for an access token.', true) - ->inject('user') - ->inject('project') - ->inject('request') - ->inject('response') - ->inject('dbForConsole') - ->action(function (string $code, Document $user, Document $project, Request $request, Response $response, Database $dbForConsole) { - $state = $user['prefs']['migrationState'] ?? '{}'; - $prefs['migrationState'] = ''; - $user->setAttribute('prefs', $prefs); - $dbForConsole->updateDocument('users', $user->getId(), $user); - - if (empty($state)) { - throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'Installation requests from organisation members for the Appwrite Google App are currently unsupported.'); - } - - $state = \json_decode($state, true); - $redirect = $state['redirect'] ?? ''; - $projectId = $state['projectId'] ?? ''; - - $project = $dbForConsole->getDocument('projects', $projectId); - - if (empty($redirect)) { - $redirect = $request->getProtocol() . '://' . $request->getHostname() . '/console/project-$projectId/settings/migrations'; - } - - if ($project->isEmpty()) { - $response - ->addHeader('Cache-Control', 'no-store, no-cache, must-revalidate, max-age=0') - ->addHeader('Pragma', 'no-cache') - ->redirect($redirect); - - return; - } - - // OAuth Authroization - if (!empty($code)) { - $oauth2 = new OAuth2Firebase( - System::getEnv('_APP_MIGRATIONS_FIREBASE_CLIENT_ID', ''), - System::getEnv('_APP_MIGRATIONS_FIREBASE_CLIENT_SECRET', ''), - $request->getProtocol() . '://' . $request->getHostname() . '/v1/migrations/firebase/redirect' - ); - - $accessToken = $oauth2->getAccessToken($code); - $refreshToken = $oauth2->getRefreshToken($code); - $accessTokenExpiry = $oauth2->getAccessTokenExpiry($code); - $email = $oauth2->getUserEmail($accessToken); - $oauth2ID = $oauth2->getUserID($accessToken); - - if (empty($accessToken)) { - throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Failed to get access token.'); - } - - if (empty($refreshToken)) { - throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Failed to get refresh token.'); - } - - if (empty($accessTokenExpiry)) { - throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Failed to get access token expiry.'); - } - - // Makes sure this email is not already used in another identity - $identity = $dbForConsole->findOne('identities', [ - Query::equal('providerEmail', [$email]), - ]); - - if ($identity !== false && !$identity->isEmpty()) { - if ($identity->getAttribute('userInternalId', '') !== $user->getInternalId()) { - throw new Exception(Exception::USER_EMAIL_ALREADY_EXISTS); - } - } - - if ($identity !== false && !$identity->isEmpty()) { - $identity = $identity - ->setAttribute('providerAccessToken', $accessToken) - ->setAttribute('providerRefreshToken', $refreshToken) - ->setAttribute('providerAccessTokenExpiry', DateTime::addSeconds(new \DateTime(), (int)$accessTokenExpiry)); - - $dbForConsole->updateDocument('identities', $identity->getId(), $identity); - } else { - $identity = $dbForConsole->createDocument('identities', new Document([ - '$id' => ID::unique(), - '$permissions' => [ - Permission::read(Role::any()), - Permission::update(Role::user($user->getId())), - Permission::delete(Role::user($user->getId())), - ], - 'userInternalId' => $user->getInternalId(), - 'userId' => $user->getId(), - 'provider' => 'firebase', - 'providerUid' => $oauth2ID, - 'providerEmail' => $email, - 'providerAccessToken' => $accessToken, - 'providerRefreshToken' => $refreshToken, - 'providerAccessTokenExpiry' => DateTime::addSeconds(new \DateTime(), (int)$accessTokenExpiry), - ])); - } - } else { - throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Missing OAuth2 code.'); - } - - $response - ->addHeader('Cache-Control', 'no-store, no-cache, must-revalidate, max-age=0') - ->addHeader('Pragma', 'no-cache') - ->redirect($redirect); - }); - -App::get('/v1/migrations/firebase/projects') - ->desc('List Firebase Projects') - ->groups(['api', 'migrations']) - ->label('scope', 'migrations.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'migrations') - ->label('sdk.method', 'listFirebaseProjects') - ->label('sdk.description', '') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MIGRATION_FIREBASE_PROJECT_LIST) - ->inject('user') - ->inject('response') - ->inject('project') - ->inject('dbForConsole') - ->inject('request') - ->action(function (Document $user, Response $response, Document $project, Database $dbForConsole, Request $request) { - $firebase = new OAuth2Firebase( - System::getEnv('_APP_MIGRATIONS_FIREBASE_CLIENT_ID', ''), - System::getEnv('_APP_MIGRATIONS_FIREBASE_CLIENT_SECRET', ''), - $request->getProtocol() . '://' . $request->getHostname() . '/v1/migrations/firebase/redirect' - ); - - $identity = $dbForConsole->findOne('identities', [ - Query::equal('provider', ['firebase']), - Query::equal('userInternalId', [$user->getInternalId()]), - ]); - - if ($identity === false || $identity->isEmpty()) { - throw new Exception(Exception::USER_IDENTITY_NOT_FOUND); - } - - $accessToken = $identity->getAttribute('providerAccessToken'); - $refreshToken = $identity->getAttribute('providerRefreshToken'); - $accessTokenExpiry = $identity->getAttribute('providerAccessTokenExpiry'); - - if (empty($accessToken) || empty($refreshToken) || empty($accessTokenExpiry)) { - throw new Exception(Exception::USER_IDENTITY_NOT_FOUND); - } - - if (System::getEnv('_APP_MIGRATIONS_FIREBASE_CLIENT_ID', '') === '' || System::getEnv('_APP_MIGRATIONS_FIREBASE_CLIENT_SECRET', '') === '') { - throw new Exception(Exception::USER_IDENTITY_NOT_FOUND); - } - - try { - $isExpired = new \DateTime($accessTokenExpiry) < new \DateTime('now'); - if ($isExpired) { - try { - $firebase->refreshTokens($refreshToken); - } catch (\Throwable $e) { - throw new Exception(Exception::USER_IDENTITY_NOT_FOUND); - } - - $accessToken = $firebase->getAccessToken(''); - $refreshToken = $firebase->getRefreshToken(''); - - $verificationId = $firebase->getUserID($accessToken); - - if (empty($verificationId)) { - throw new Exception(Exception::GENERAL_RATE_LIMIT_EXCEEDED, 'Another request is currently refreshing OAuth token. Please try again.'); - } - - $identity = $identity - ->setAttribute('providerAccessToken', $accessToken) - ->setAttribute('providerRefreshToken', $refreshToken) - ->setAttribute('providerAccessTokenExpiry', DateTime::addSeconds(new \DateTime(), (int)$firebase->getAccessTokenExpiry(''))); - - $dbForConsole->updateDocument('identities', $identity->getId(), $identity); - } - - $projects = $firebase->getProjects($accessToken); - - $output = []; - foreach ($projects as $project) { - $output[] = [ - 'displayName' => $project['displayName'], - 'projectId' => $project['projectId'], - ]; - } - } catch (\Throwable $e) { - throw new Exception(Exception::USER_IDENTITY_NOT_FOUND); - } - - $response->dynamic(new Document([ - 'projects' => $output, - 'total' => count($output), - ]), Response::MODEL_MIGRATION_FIREBASE_PROJECT_LIST); - }); - -App::get('/v1/migrations/firebase/deauthorize') - ->desc('Revoke Appwrite\'s authorization to access Firebase Projects') - ->groups(['api', 'migrations']) - ->label('scope', 'migrations.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'migrations') - ->label('sdk.method', 'deleteFirebaseAuth') - ->label('sdk.description', '') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->inject('user') - ->inject('response') - ->inject('dbForConsole') - ->action(function (Document $user, Response $response, Database $dbForConsole) { - $identity = $dbForConsole->findOne('identities', [ - Query::equal('provider', ['firebase']), - Query::equal('userInternalId', [$user->getInternalId()]), - ]); - - if ($identity === false || $identity->isEmpty()) { - throw new Exception(Exception::GENERAL_ACCESS_FORBIDDEN, 'Not authenticated with Firebase'); //TODO: Replace with USER_IDENTITY_NOT_FOUND - } - - $dbForConsole->deleteDocument('identities', $identity->getId()); - - $response->noContent(); - }); - App::get('/v1/migrations/supabase/report') ->groups(['api', 'migrations']) - ->desc('Generate a report on Supabase Data') + ->desc('Get Supabase migration report') ->label('scope', 'migrations.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'migrations') - ->label('sdk.method', 'getSupabaseReport') - ->label('sdk.description', '/docs/references/migrations/migration-supabase-report.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MIGRATION_REPORT) + ->label('sdk', new Method( + namespace: 'migrations', + group: null, + name: 'getSupabaseReport', + description: '/docs/references/migrations/migration-supabase-report.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_MIGRATION_REPORT, + ) + ] + )) ->param('resources', [], new ArrayList(new WhiteList(Supabase::getSupportedResources(), true)), 'List of resources to migrate') ->param('endpoint', '', new URL(), 'Source\'s Supabase Endpoint.') ->param('apiKey', '', new Text(512), 'Source\'s API Key.') @@ -942,15 +548,21 @@ App::get('/v1/migrations/nhost/report') ->groups(['api', 'migrations']) - ->desc('Generate a report on NHost Data') + ->desc('Get NHost migration report') ->label('scope', 'migrations.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'migrations') - ->label('sdk.method', 'getNHostReport') - ->label('sdk.description', '/docs/references/migrations/migration-nhost-report.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MIGRATION_REPORT) + ->label('sdk', new Method( + namespace: 'migrations', + group: null, + name: 'getNHostReport', + description: '/docs/references/migrations/migration-nhost-report.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_MIGRATION_REPORT, + ) + ] + )) ->param('resources', [], new ArrayList(new WhiteList(NHost::getSupportedResources())), 'List of resources to migrate.') ->param('subdomain', '', new Text(512), 'Source\'s Subdomain.') ->param('region', '', new Text(512), 'Source\'s Region.') @@ -985,18 +597,24 @@ App::patch('/v1/migrations/:migrationId') ->groups(['api', 'migrations']) - ->desc('Retry Migration') + ->desc('Update retry migration') ->label('scope', 'migrations.write') ->label('event', 'migrations.[migrationId].retry') ->label('audits.event', 'migration.retry') ->label('audits.resource', 'migrations/{request.migrationId}') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'migrations') - ->label('sdk.method', 'retry') - ->label('sdk.description', '/docs/references/migrations/retry-migration.md') - ->label('sdk.response.code', Response::STATUS_CODE_ACCEPTED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MIGRATION) + ->label('sdk', new Method( + namespace: 'migrations', + group: null, + name: 'retry', + description: '/docs/references/migrations/retry-migration.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_ACCEPTED, + model: Response::MODEL_MIGRATION, + ) + ] + )) ->param('migrationId', '', new UID(), 'Migration unique ID.') ->inject('response') ->inject('dbForProject') @@ -1030,17 +648,25 @@ App::delete('/v1/migrations/:migrationId') ->groups(['api', 'migrations']) - ->desc('Delete Migration') + ->desc('Delete migration') ->label('scope', 'migrations.write') ->label('event', 'migrations.[migrationId].delete') ->label('audits.event', 'migrationId.delete') ->label('audits.resource', 'migrations/{request.migrationId}') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'migrations') - ->label('sdk.method', 'delete') - ->label('sdk.description', '/docs/references/migrations/delete-migration.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'migrations', + group: null, + name: 'delete', + description: '/docs/references/migrations/delete-migration.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('migrationId', '', new UID(), 'Migration ID.') ->inject('response') ->inject('dbForProject') diff --git a/app/controllers/api/project.php b/app/controllers/api/project.php index d885e980dfb..ae6c58e4f52 100644 --- a/app/controllers/api/project.php +++ b/app/controllers/api/project.php @@ -1,6 +1,10 @@ <?php use Appwrite\Extend\Exception; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Response; use Utopia\App; use Utopia\Database\Database; @@ -20,23 +24,35 @@ ->desc('Get project usage stats') ->groups(['api', 'usage']) ->label('scope', 'projects.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'project') - ->label('sdk.method', 'getUsage') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USAGE_PROJECT) + ->label('sdk', new Method( + namespace: 'project', + group: null, + name: 'getUsage', + description: '/docs/references/project/get-usage.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USAGE_PROJECT, + ) + ] + )) ->param('startDate', '', new DateTimeValidator(), 'Starting date for the usage') ->param('endDate', '', new DateTimeValidator(), 'End date for the usage') ->param('period', '1d', new WhiteList(['1h', '1d']), 'Period used', true) ->inject('response') + ->inject('project') ->inject('dbForProject') - ->action(function (string $startDate, string $endDate, string $period, Response $response, Database $dbForProject) { + ->inject('getLogsDB') + ->inject('smsRates') + ->action(function (string $startDate, string $endDate, string $period, Response $response, Document $project, Database $dbForProject, callable $getLogsDB, array $smsRates) { $stats = $total = $usage = []; $format = 'Y-m-d 00:00:00'; $firstDay = (new DateTime($startDate))->format($format); $lastDay = (new DateTime($endDate))->format($format); + $dbForLogs = call_user_func($getLogsDB, $project); + $metrics = [ 'total' => [ METRIC_EXECUTIONS, @@ -47,8 +63,12 @@ METRIC_USERS, METRIC_BUCKETS, METRIC_FILES_STORAGE, + METRIC_DATABASES_STORAGE, METRIC_DEPLOYMENTS_STORAGE, - METRIC_BUILDS_STORAGE + METRIC_BUILDS_STORAGE, + METRIC_DATABASES_OPERATIONS_READS, + METRIC_DATABASES_OPERATIONS_WRITES, + METRIC_FILES_IMAGES_TRANSFORMED, ], 'period' => [ METRIC_NETWORK_REQUESTS, @@ -56,8 +76,12 @@ METRIC_NETWORK_OUTBOUND, METRIC_USERS, METRIC_EXECUTIONS, + METRIC_DATABASES_STORAGE, METRIC_EXECUTIONS_MB_SECONDS, - METRIC_BUILDS_MB_SECONDS + METRIC_BUILDS_MB_SECONDS, + METRIC_DATABASES_OPERATIONS_READS, + METRIC_DATABASES_OPERATIONS_WRITES, + METRIC_FILES_IMAGES_TRANSFORMED, ] ]; @@ -76,9 +100,11 @@ '1d' => 'Y-m-d\T00:00:00.000P', }; - Authorization::skip(function () use ($dbForProject, $firstDay, $lastDay, $period, $metrics, $limit, &$total, &$stats) { + Authorization::skip(function () use ($dbForProject, $dbForLogs, $firstDay, $lastDay, $period, $metrics, $limit, &$total, &$stats) { foreach ($metrics['total'] as $metric) { - $result = $dbForProject->findOne('stats', [ + $db = ($metric === METRIC_FILES_IMAGES_TRANSFORMED) ? $dbForLogs : $dbForProject; + + $result = $db->findOne('stats', [ Query::equal('metric', [$metric]), Query::equal('period', ['inf']) ]); @@ -86,7 +112,9 @@ } foreach ($metrics['period'] as $metric) { - $results = $dbForProject->find('stats', [ + $db = ($metric === METRIC_FILES_IMAGES_TRANSFORMED) ? $dbForLogs : $dbForProject; + + $results = $db->find('stats', [ Query::equal('metric', [$metric]), Query::equal('period', [$period]), Query::greaterThanEqual('time', $firstDay), @@ -182,6 +210,23 @@ ]; }, $dbForProject->find('buckets')); + $databasesStorageBreakdown = array_map(function ($database) use ($dbForProject) { + $id = $database->getId(); + $name = $database->getAttribute('name'); + $metric = str_replace('{databaseInternalId}', $database->getInternalId(), METRIC_DATABASE_ID_STORAGE); + + $value = $dbForProject->findOne('stats', [ + Query::equal('metric', [$metric]), + Query::equal('period', ['inf']) + ]); + + return [ + 'resourceId' => $id, + 'name' => $name, + 'value' => $value['value'] ?? 0, + ]; + }, $dbForProject->find('databases')); + $functionsStorageBreakdown = array_map(function ($function) use ($dbForProject) { $id = $function->getId(); $name = $function->getAttribute('name'); @@ -238,6 +283,46 @@ ]; }, $dbForProject->find('functions')); + // This total is includes free and paid SMS usage + $authPhoneTotal = Authorization::skip(fn () => $dbForProject->sum('stats', 'value', [ + Query::equal('metric', [METRIC_AUTH_METHOD_PHONE]), + Query::equal('period', ['1d']), + Query::greaterThanEqual('time', $firstDay), + Query::lessThan('time', $lastDay), + ])); + + // This estimate is only for paid SMS usage + $authPhoneMetrics = Authorization::skip(fn () => $dbForProject->find('stats', [ + Query::startsWith('metric', METRIC_AUTH_METHOD_PHONE . '.'), + Query::equal('period', ['1d']), + Query::greaterThanEqual('time', $firstDay), + Query::lessThan('time', $lastDay), + ])); + + $authPhoneEstimate = 0.0; + $authPhoneCountryBreakdown = []; + foreach ($authPhoneMetrics as $metric) { + $parts = explode('.', $metric->getAttribute('metric')); + $countryCode = $parts[3] ?? null; + if ($countryCode === null) { + continue; + } + + $value = $metric->getAttribute('value', 0); + + if (isset($smsRates[$countryCode])) { + $authPhoneEstimate += $value * $smsRates[$countryCode]; + } + + $authPhoneCountryBreakdown[] = [ + 'name' => $countryCode, + 'value' => $value, + 'estimate' => isset($smsRates[$countryCode]) + ? $value * $smsRates[$countryCode] + : 0.0, + ]; + } + // merge network inbound + outbound $projectBandwidth = []; foreach ($usage[METRIC_NETWORK_INBOUND] as $item) { @@ -269,43 +354,58 @@ 'buildsMbSecondsTotal' => $total[METRIC_BUILDS_MB_SECONDS], 'documentsTotal' => $total[METRIC_DOCUMENTS], 'databasesTotal' => $total[METRIC_DATABASES], + 'databasesStorageTotal' => $total[METRIC_DATABASES_STORAGE], 'usersTotal' => $total[METRIC_USERS], 'bucketsTotal' => $total[METRIC_BUCKETS], 'filesStorageTotal' => $total[METRIC_FILES_STORAGE], 'functionsStorageTotal' => $total[METRIC_DEPLOYMENTS_STORAGE] + $total[METRIC_BUILDS_STORAGE], 'buildsStorageTotal' => $total[METRIC_BUILDS_STORAGE], 'deploymentsStorageTotal' => $total[METRIC_DEPLOYMENTS_STORAGE], + 'databasesReadsTotal' => $total[METRIC_DATABASES_OPERATIONS_READS], + 'databasesWritesTotal' => $total[METRIC_DATABASES_OPERATIONS_WRITES], 'executionsBreakdown' => $executionsBreakdown, - 'executionsMbSecondsBreakdown' => $executionsMbSecondsBreakdown, - 'buildsMbSecondsBreakdown' => $buildsMbSecondsBreakdown, 'bucketsBreakdown' => $bucketsBreakdown, + 'databasesReads' => $usage[METRIC_DATABASES_OPERATIONS_READS], + 'databasesWrites' => $usage[METRIC_DATABASES_OPERATIONS_WRITES], + 'databasesStorageBreakdown' => $databasesStorageBreakdown, 'executionsMbSecondsBreakdown' => $executionsMbSecondsBreakdown, 'buildsMbSecondsBreakdown' => $buildsMbSecondsBreakdown, 'functionsStorageBreakdown' => $functionsStorageBreakdown, + 'authPhoneTotal' => $authPhoneTotal, + 'authPhoneEstimate' => $authPhoneEstimate, + 'authPhoneCountryBreakdown' => $authPhoneCountryBreakdown, + 'imageTransformations' => $usage[METRIC_FILES_IMAGES_TRANSFORMED], + 'imageTransformationsTotal' => $total[METRIC_FILES_IMAGES_TRANSFORMED], ]), Response::MODEL_USAGE_PROJECT); }); // Variables App::post('/v1/project/variables') - ->desc('Create Variable') + ->desc('Create variable') ->groups(['api']) ->label('scope', 'projects.write') ->label('audits.event', 'variable.create') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'project') - ->label('sdk.method', 'createVariable') - ->label('sdk.description', '/docs/references/project/create-variable.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_VARIABLE) + ->label('sdk', new Method( + namespace: 'project', + group: null, + name: 'createVariable', + description: '/docs/references/project/create-variable.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_VARIABLE, + ) + ] + )) ->param('key', null, new Text(Database::LENGTH_KEY), 'Variable key. Max length: ' . Database::LENGTH_KEY . ' chars.', false) ->param('value', null, new Text(8192, 0), 'Variable value. Max length: 8192 chars.', false) ->inject('project') ->inject('response') ->inject('dbForProject') - ->inject('dbForConsole') - ->action(function (string $key, string $value, Document $project, Response $response, Database $dbForProject, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $key, string $value, Document $project, Response $response, Database $dbForProject, Database $dbForPlatform) { $variableId = ID::unique(); $variable = new Document([ @@ -343,16 +443,22 @@ }); App::get('/v1/project/variables') - ->desc('List Variables') + ->desc('List variables') ->groups(['api']) ->label('scope', 'projects.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'project') - ->label('sdk.method', 'listVariables') - ->label('sdk.description', '/docs/references/project/list-variables.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_VARIABLE_LIST) + ->label('sdk', new Method( + namespace: 'project', + group: null, + name: 'listVariables', + description: '/docs/references/project/list-variables.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_VARIABLE_LIST, + ) + ] + )) ->inject('response') ->inject('dbForProject') ->action(function (Response $response, Database $dbForProject) { @@ -368,16 +474,22 @@ }); App::get('/v1/project/variables/:variableId') - ->desc('Get Variable') + ->desc('Get variable') ->groups(['api']) ->label('scope', 'projects.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'project') - ->label('sdk.method', 'getVariable') - ->label('sdk.description', '/docs/references/project/get-variable.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_VARIABLE) + ->label('sdk', new Method( + namespace: 'project', + group: null, + name: 'getVariable', + description: '/docs/references/project/get-variable.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_VARIABLE, + ) + ] + )) ->param('variableId', '', new UID(), 'Variable unique ID.', false) ->inject('response') ->inject('project') @@ -392,24 +504,30 @@ }); App::put('/v1/project/variables/:variableId') - ->desc('Update Variable') + ->desc('Update variable') ->groups(['api']) ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'project') - ->label('sdk.method', 'updateVariable') - ->label('sdk.description', '/docs/references/project/update-variable.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_VARIABLE) + ->label('sdk', new Method( + namespace: 'project', + group: null, + name: 'updateVariable', + description: '/docs/references/project/update-variable.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_VARIABLE, + ) + ] + )) ->param('variableId', '', new UID(), 'Variable unique ID.', false) ->param('key', null, new Text(255), 'Variable key. Max length: 255 chars.', false) ->param('value', null, new Text(8192, 0), 'Variable value. Max length: 8192 chars.', true) ->inject('project') ->inject('response') ->inject('dbForProject') - ->inject('dbForConsole') - ->action(function (string $variableId, string $key, ?string $value, Document $project, Response $response, Database $dbForProject, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $variableId, string $key, ?string $value, Document $project, Response $response, Database $dbForProject, Database $dbForPlatform) { $variable = $dbForProject->getDocument('variables', $variableId); if ($variable === false || $variable->isEmpty() || $variable->getAttribute('resourceType') !== 'project') { throw new Exception(Exception::VARIABLE_NOT_FOUND); @@ -438,15 +556,23 @@ }); App::delete('/v1/project/variables/:variableId') - ->desc('Delete Variable') + ->desc('Delete variable') ->groups(['api']) ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'project') - ->label('sdk.method', 'deleteVariable') - ->label('sdk.description', '/docs/references/project/delete-variable.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'project', + group: null, + name: 'deleteVariable', + description: '/docs/references/project/delete-variable.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('variableId', '', new UID(), 'Variable unique ID.', false) ->inject('project') ->inject('response') diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php index 3a8c2321950..c4f0b6a9df3 100644 --- a/app/controllers/api/projects.php +++ b/app/controllers/api/projects.php @@ -10,27 +10,33 @@ use Appwrite\Hooks\Hooks; use Appwrite\Network\Validator\Email; use Appwrite\Network\Validator\Origin; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; use Appwrite\Template\Template; use Appwrite\Utopia\Database\Validator\ProjectId; use Appwrite\Utopia\Database\Validator\Queries\Projects; use Appwrite\Utopia\Request; use Appwrite\Utopia\Response; use PHPMailer\PHPMailer\PHPMailer; -use Utopia\Abuse\Adapters\Database\TimeLimit; use Utopia\App; use Utopia\Audit\Audit; use Utopia\Cache\Cache; use Utopia\Config\Config; +use Utopia\Database\Adapter\Pool as DatabasePool; use Utopia\Database\Database; use Utopia\Database\DateTime; use Utopia\Database\Document; use Utopia\Database\Exception\Duplicate; +use Utopia\Database\Exception\Order as OrderException; use Utopia\Database\Exception\Query as QueryException; use Utopia\Database\Helpers\ID; use Utopia\Database\Helpers\Permission; use Utopia\Database\Helpers\Role; use Utopia\Database\Query; use Utopia\Database\Validator\Datetime as DatetimeValidator; +use Utopia\Database\Validator\Query\Cursor; use Utopia\Database\Validator\UID; use Utopia\Domains\Validator\PublicDomain; use Utopia\DSN\DSN; @@ -60,13 +66,21 @@ ->desc('Create project') ->groups(['api', 'projects']) ->label('audits.event', 'projects.create') + ->label('audits.resource', 'project/{response.$id}') ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'create') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROJECT) + ->label('sdk', new Method( + namespace: 'projects', + group: 'projects', + name: 'create', + description: '/docs/references/projects/create.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_PROJECT, + ) + ] + )) ->param('projectId', '', new ProjectId(), 'Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, and hyphen. Can\'t start with a special char. Max length is 36 chars.') ->param('name', null, new Text(128), 'Project name. Max length: 128 chars.') ->param('teamId', '', new UID(), 'Team unique ID.') @@ -82,13 +96,13 @@ ->param('legalTaxId', '', new Text(256), 'Project legal Tax ID. Max length: 256 chars.', true) ->inject('request') ->inject('response') - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('cache') ->inject('pools') ->inject('hooks') - ->action(function (string $projectId, string $name, string $teamId, string $region, string $description, string $logo, string $url, string $legalName, string $legalCountry, string $legalState, string $legalCity, string $legalAddress, string $legalTaxId, Request $request, Response $response, Database $dbForConsole, Cache $cache, Group $pools, Hooks $hooks) { + ->action(function (string $projectId, string $name, string $teamId, string $region, string $description, string $logo, string $url, string $legalName, string $legalCountry, string $legalState, string $legalCity, string $legalAddress, string $legalTaxId, Request $request, Response $response, Database $dbForPlatform, Cache $cache, Group $pools, Hooks $hooks) { - $team = $dbForConsole->getDocument('teams', $teamId); + $team = $dbForPlatform->getDocument('teams', $teamId); if ($team->isEmpty()) { throw new Exception(Exception::TEAM_NOT_FOUND); @@ -110,6 +124,9 @@ 'personalDataCheck' => false, 'mockNumbers' => [], 'sessionAlerts' => false, + 'membershipsUserName' => false, + 'membershipsUserEmail' => false, + 'membershipsMfa' => false, ]; foreach ($auth as $method) { @@ -118,8 +135,20 @@ $projectId = ($projectId == 'unique()') ? ID::unique() : $projectId; + if ($projectId === 'console') { + throw new Exception(Exception::PROJECT_RESERVED_PROJECT, "'console' is a reserved project."); + } + $databases = Config::getParam('pools-database', []); + if ($region !== 'default') { + $databaseKeys = System::getEnv('_APP_DATABASE_KEYS', ''); + $keys = explode(',', $databaseKeys); + $databases = array_filter($keys, function ($value) use ($region) { + return str_contains($value, $region); + }); + } + $databaseOverride = System::getEnv('_APP_DATABASE_OVERRIDE'); $index = \array_search($databaseOverride, $databases); if ($index !== false) { @@ -128,16 +157,14 @@ $dsn = $databases[array_rand($databases)]; } - if ($projectId === 'console') { - throw new Exception(Exception::PROJECT_RESERVED_PROJECT, "'console' is a reserved project."); - } - // TODO: Temporary until all projects are using shared tables. - if ($dsn === System::getEnv('_APP_DATABASE_SHARED_TABLES', '')) { + $sharedTables = \explode(',', System::getEnv('_APP_DATABASE_SHARED_TABLES', '')); + + if (\in_array($dsn, $sharedTables)) { $schema = 'appwrite'; $database = 'appwrite'; $namespace = System::getEnv('_APP_DATABASE_SHARED_NAMESPACE', ''); - $dsn = $schema . '://' . System::getEnv('_APP_DATABASE_SHARED_TABLES', '') . '?database=' . $database; + $dsn = $schema . '://' . $dsn . '?database=' . $database; if (!empty($namespace)) { $dsn .= '&namespace=' . $namespace; @@ -145,7 +172,7 @@ } try { - $project = $dbForConsole->createDocument('projects', new Document([ + $project = $dbForPlatform->createDocument('projects', new Document([ '$id' => $projectId, '$permissions' => [ Permission::read(Role::team(ID::custom($teamId))), @@ -189,49 +216,80 @@ $dsn = new DSN('mysql://' . $dsn); } - $adapter = $pools->get($dsn->getHost())->pop()->getResource(); - $dbForProject = new Database($adapter, $cache); - - if ($dsn->getHost() === System::getEnv('_APP_DATABASE_SHARED_TABLES', '')) { - $dbForProject - ->setSharedTables(true) - ->setTenant($project->getInternalId()) - ->setNamespace($dsn->getParam('namespace')); - } else { - $dbForProject - ->setSharedTables(false) - ->setTenant(null) - ->setNamespace('_' . $project->getInternalId()); - } - - $dbForProject->create(); - - $audit = new Audit($dbForProject); - $audit->setup(); - - $abuse = new TimeLimit('', 0, 1, $dbForProject); - $abuse->setup(); + $sharedTables = \explode(',', System::getEnv('_APP_DATABASE_SHARED_TABLES', '')); + $sharedTablesV1 = \explode(',', System::getEnv('_APP_DATABASE_SHARED_TABLES_V1', '')); + $projectTables = !\in_array($dsn->getHost(), $sharedTables); + $sharedTablesV1 = \in_array($dsn->getHost(), $sharedTablesV1); + $sharedTablesV2 = !$projectTables && !$sharedTablesV1; + $sharedTables = $sharedTablesV1 || $sharedTablesV2; + + if (!$sharedTablesV2) { + $adapter = new DatabasePool($pools->get($dsn->getHost())); + $dbForProject = new Database($adapter, $cache); + + if ($sharedTables) { + $dbForProject + ->setSharedTables(true) + ->setTenant($sharedTablesV1 ? $project->getInternalId() : null) + ->setNamespace($dsn->getParam('namespace')); + } else { + $dbForProject + ->setSharedTables(false) + ->setTenant(null) + ->setNamespace('_' . $project->getInternalId()); + } - /** @var array $collections */ - $collections = Config::getParam('collections', [])['projects'] ?? []; + $create = true; - foreach ($collections as $key => $collection) { - if (($collection['$collection'] ?? '') !== Database::METADATA) { - continue; + try { + $dbForProject->create(); + } catch (Duplicate) { + $create = false; } - $attributes = \array_map(function (array $attribute) { - return new Document($attribute); - }, $collection['attributes']); + if ($create || $projectTables) { + $audit = new Audit($dbForProject); + $audit->setup(); + } - $indexes = \array_map(function (array $index) { - return new Document($index); - }, $collection['indexes']); + if (!$create && $sharedTablesV1) { + $attributes = \array_map(fn ($attribute) => new Document($attribute), Audit::ATTRIBUTES); + $indexes = \array_map(fn (array $index) => new Document($index), Audit::INDEXES); + $dbForProject->createDocument(Database::METADATA, new Document([ + '$id' => ID::custom('audit'), + '$permissions' => [Permission::create(Role::any())], + 'name' => 'audit', + 'attributes' => $attributes, + 'indexes' => $indexes, + 'documentSecurity' => true + ])); + } - try { - $dbForProject->createCollection($key, $attributes, $indexes); - } catch (Duplicate) { - // Collection already exists + if ($create || $sharedTablesV1) { + /** @var array $collections */ + $collections = Config::getParam('collections', [])['projects'] ?? []; + + foreach ($collections as $key => $collection) { + if (($collection['$collection'] ?? '') !== Database::METADATA) { + continue; + } + + $attributes = \array_map(fn ($attribute) => new Document($attribute), $collection['attributes']); + $indexes = \array_map(fn (array $index) => new Document($index), $collection['indexes']); + + try { + $dbForProject->createCollection($key, $attributes, $indexes); + } catch (Duplicate) { + $dbForProject->createDocument(Database::METADATA, new Document([ + '$id' => ID::custom($key), + '$permissions' => [Permission::create(Role::any())], + 'name' => $key, + 'attributes' => $attributes, + 'indexes' => $indexes, + 'documentSecurity' => true + ])); + } + } } } @@ -248,17 +306,24 @@ ->desc('List projects') ->groups(['api', 'projects']) ->label('scope', 'projects.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'list') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROJECT_LIST) + ->label('sdk', new Method( + namespace: 'projects', + group: 'projects', + name: 'list', + description: '/docs/references/projects/list.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROJECT_LIST, + ) + ] + )) ->param('queries', [], new Projects(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Projects::ALLOWED_ATTRIBUTES), true) ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) ->inject('response') - ->inject('dbForConsole') - ->action(function (array $queries, string $search, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (array $queries, string $search, Response $response, Database $dbForPlatform) { try { $queries = Query::parseQueries($queries); @@ -279,8 +344,14 @@ $cursor = reset($cursor); if ($cursor) { /** @var Query $cursor */ + + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + $projectId = $cursor->getValue(); - $cursorDocument = $dbForConsole->getDocument('projects', $projectId); + $cursorDocument = $dbForPlatform->getDocument('projects', $projectId); if ($cursorDocument->isEmpty()) { throw new Exception(Exception::GENERAL_CURSOR_NOT_FOUND, "Project '{$projectId}' for the 'cursor' value not found."); @@ -290,10 +361,15 @@ } $filterQueries = Query::groupByType($queries)['filters']; - + try { + $projects = $dbForPlatform->find('projects', $queries); + $total = $dbForPlatform->count('projects', $filterQueries, APP_LIMIT_COUNT); + } catch (OrderException $e) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); + } $response->dynamic(new Document([ - 'projects' => $dbForConsole->find('projects', $queries), - 'total' => $dbForConsole->count('projects', $filterQueries, APP_LIMIT_COUNT), + 'projects' => $projects, + 'total' => $total, ]), Response::MODEL_PROJECT_LIST); }); @@ -301,18 +377,25 @@ ->desc('Get project') ->groups(['api', 'projects']) ->label('scope', 'projects.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'get') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROJECT) + ->label('sdk', new Method( + namespace: 'projects', + group: 'projects', + name: 'get', + description: '/docs/references/projects/get.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROJECT, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); @@ -325,12 +408,21 @@ ->desc('Update project') ->groups(['api', 'projects']) ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'update') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROJECT) + ->label('audits.event', 'projects.update') + ->label('audits.resource', 'project/{request.projectId}') + ->label('sdk', new Method( + namespace: 'projects', + group: 'projects', + name: 'update', + description: '/docs/references/projects/update.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROJECT, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('name', null, new Text(128), 'Project name. Max length: 128 chars.') ->param('description', '', new Text(256), 'Project description. Max length: 256 chars.', true) @@ -343,16 +435,16 @@ ->param('legalAddress', '', new Text(256), 'Project legal address. Max length: 256 chars.', true) ->param('legalTaxId', '', new Text(256), 'Project legal tax ID. Max length: 256 chars.', true) ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, string $name, string $description, string $logo, string $url, string $legalName, string $legalCountry, string $legalState, string $legalCity, string $legalAddress, string $legalTaxId, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, string $name, string $description, string $logo, string $url, string $legalName, string $legalCountry, string $legalState, string $legalCity, string $legalAddress, string $legalTaxId, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); } - $project = $dbForConsole->updateDocument('projects', $project->getId(), $project + $project = $dbForPlatform->updateDocument('projects', $project->getId(), $project ->setAttribute('name', $name) ->setAttribute('description', $description) ->setAttribute('logo', $logo) @@ -372,20 +464,27 @@ ->desc('Update project team') ->groups(['api', 'projects']) ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'updateTeam') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROJECT) + ->label('sdk', new Method( + namespace: 'projects', + group: 'projects', + name: 'updateTeam', + description: '/docs/references/projects/update-team.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROJECT, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('teamId', '', new UID(), 'Team ID of the team to transfer project to.') ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, string $teamId, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, string $teamId, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); - $team = $dbForConsole->getDocument('teams', $teamId); + $project = $dbForPlatform->getDocument('projects', $projectId); + $team = $dbForPlatform->getDocument('teams', $teamId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); @@ -407,30 +506,30 @@ ->setAttribute('teamId', $teamId) ->setAttribute('teamInternalId', $team->getInternalId()) ->setAttribute('$permissions', $permissions); - $project = $dbForConsole->updateDocument('projects', $project->getId(), $project); + $project = $dbForPlatform->updateDocument('projects', $project->getId(), $project); - $installations = $dbForConsole->find('installations', [ + $installations = $dbForPlatform->find('installations', [ Query::equal('projectInternalId', [$project->getInternalId()]), ]); foreach ($installations as $installation) { $installation->getAttribute('$permissions', $permissions); - $dbForConsole->updateDocument('installations', $installation->getId(), $installation); + $dbForPlatform->updateDocument('installations', $installation->getId(), $installation); } - $repositories = $dbForConsole->find('repositories', [ + $repositories = $dbForPlatform->find('repositories', [ Query::equal('projectInternalId', [$project->getInternalId()]), ]); foreach ($repositories as $repository) { $repository->getAttribute('$permissions', $permissions); - $dbForConsole->updateDocument('repositories', $repository->getId(), $repository); + $dbForPlatform->updateDocument('repositories', $repository->getId(), $repository); } - $vcsComments = $dbForConsole->find('vcsComments', [ + $vcsComments = $dbForPlatform->find('vcsComments', [ Query::equal('projectInternalId', [$project->getInternalId()]), ]); foreach ($vcsComments as $vcsComment) { $vcsComment->getAttribute('$permissions', $permissions); - $dbForConsole->updateDocument('vcsComments', $vcsComment->getId(), $vcsComment); + $dbForPlatform->updateDocument('vcsComments', $vcsComment->getId(), $vcsComment); } $response->dynamic($project, Response::MODEL_PROJECT); @@ -440,20 +539,27 @@ ->desc('Update service status') ->groups(['api', 'projects']) ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'updateServiceStatus') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROJECT) + ->label('sdk', new Method( + namespace: 'projects', + group: 'projects', + name: 'updateServiceStatus', + description: '/docs/references/projects/update-service-status.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROJECT, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('service', '', new WhiteList(array_keys(array_filter(Config::getParam('services'), fn ($element) => $element['optional'])), true), 'Service name.') ->param('status', null, new Boolean(), 'Service status.') ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, string $service, bool $status, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, string $service, bool $status, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); @@ -462,7 +568,7 @@ $services = $project->getAttribute('services', []); $services[$service] = $status; - $project = $dbForConsole->updateDocument('projects', $project->getId(), $project->setAttribute('services', $services)); + $project = $dbForPlatform->updateDocument('projects', $project->getId(), $project->setAttribute('services', $services)); $response->dynamic($project, Response::MODEL_PROJECT); }); @@ -471,19 +577,26 @@ ->desc('Update all service status') ->groups(['api', 'projects']) ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'updateServiceStatusAll') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROJECT) + ->label('sdk', new Method( + namespace: 'projects', + group: 'projects', + name: 'updateServiceStatusAll', + description: '/docs/references/projects/update-service-status-all.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROJECT, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('status', null, new Boolean(), 'Service status.') ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, bool $status, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, bool $status, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); @@ -496,7 +609,7 @@ $services[$service] = $status; } - $project = $dbForConsole->updateDocument('projects', $project->getId(), $project->setAttribute('services', $services)); + $project = $dbForPlatform->updateDocument('projects', $project->getId(), $project->setAttribute('services', $services)); $response->dynamic($project, Response::MODEL_PROJECT); }); @@ -505,20 +618,27 @@ ->desc('Update API status') ->groups(['api', 'projects']) ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'updateApiStatus') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROJECT) + ->label('sdk', new Method( + namespace: 'projects', + group: 'projects', + name: 'updateApiStatus', + description: '/docs/references/projects/update-api-status.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROJECT, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('api', '', new WhiteList(array_keys(Config::getParam('apis')), true), 'API name.') ->param('status', null, new Boolean(), 'API status.') ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, string $api, bool $status, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, string $api, bool $status, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); @@ -527,7 +647,7 @@ $apis = $project->getAttribute('apis', []); $apis[$api] = $status; - $project = $dbForConsole->updateDocument('projects', $project->getId(), $project->setAttribute('apis', $apis)); + $project = $dbForPlatform->updateDocument('projects', $project->getId(), $project->setAttribute('apis', $apis)); $response->dynamic($project, Response::MODEL_PROJECT); }); @@ -536,19 +656,26 @@ ->desc('Update all API status') ->groups(['api', 'projects']) ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'updateApiStatusAll') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROJECT) + ->label('sdk', new Method( + namespace: 'projects', + group: 'projects', + name: 'updateApiStatusAll', + description: '/docs/references/projects/update-api-status-all.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROJECT, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('status', null, new Boolean(), 'API status.') ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, bool $status, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, bool $status, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); @@ -561,7 +688,7 @@ $apis[$api] = $status; } - $project = $dbForConsole->updateDocument('projects', $project->getId(), $project->setAttribute('apis', $apis)); + $project = $dbForPlatform->updateDocument('projects', $project->getId(), $project->setAttribute('apis', $apis)); $response->dynamic($project, Response::MODEL_PROJECT); }); @@ -570,22 +697,29 @@ ->desc('Update project OAuth2') ->groups(['api', 'projects']) ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'updateOAuth2') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROJECT) + ->label('sdk', new Method( + namespace: 'projects', + group: 'auth', + name: 'updateOAuth2', + description: '/docs/references/projects/update-oauth2.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROJECT, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('provider', '', new WhiteList(\array_keys(Config::getParam('oAuthProviders')), true), 'Provider Name') ->param('appId', null, new Text(256), 'Provider app ID. Max length: 256 chars.', true) ->param('secret', null, new text(512), 'Provider secret key. Max length: 512 chars.', true) ->param('enabled', null, new Boolean(), 'Provider status. Set to \'false\' to disable new session creation.', true) ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, string $provider, ?string $appId, ?string $secret, ?bool $enabled, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, string $provider, ?string $appId, ?string $secret, ?bool $enabled, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); @@ -605,7 +739,7 @@ $providers[$provider . 'Enabled'] = $enabled; } - $project = $dbForConsole->updateDocument('projects', $project->getId(), $project->setAttribute('oAuthProviders', $providers)); + $project = $dbForPlatform->updateDocument('projects', $project->getId(), $project->setAttribute('oAuthProviders', $providers)); $response->dynamic($project, Response::MODEL_PROJECT); }); @@ -614,19 +748,26 @@ ->desc('Update project sessions emails') ->groups(['api', 'projects']) ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'updateSessionAlerts') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROJECT) + ->label('sdk', new Method( + namespace: 'projects', + group: 'auth', + name: 'updateSessionAlerts', + description: '/docs/references/projects/update-session-alerts.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROJECT, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('alerts', false, new Boolean(true), 'Set to true to enable session emails.') ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, bool $alerts, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, bool $alerts, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); @@ -635,7 +776,49 @@ $auths = $project->getAttribute('auths', []); $auths['sessionAlerts'] = $alerts; - $dbForConsole->updateDocument('projects', $project->getId(), $project + $dbForPlatform->updateDocument('projects', $project->getId(), $project + ->setAttribute('auths', $auths)); + + $response->dynamic($project, Response::MODEL_PROJECT); + }); + +App::patch('/v1/projects/:projectId/auth/memberships-privacy') + ->desc('Update project memberships privacy attributes') + ->groups(['api', 'projects']) + ->label('scope', 'projects.write') + ->label('sdk', new Method( + namespace: 'projects', + group: 'auth', + name: 'updateMembershipsPrivacy', + description: '/docs/references/projects/update-memberships-privacy.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROJECT, + ) + ] + )) + ->param('projectId', '', new UID(), 'Project unique ID.') + ->param('userName', true, new Boolean(true), 'Set to true to show userName to members of a team.') + ->param('userEmail', true, new Boolean(true), 'Set to true to show email to members of a team.') + ->param('mfa', true, new Boolean(true), 'Set to true to show mfa to members of a team.') + ->inject('response') + ->inject('dbForPlatform') + ->action(function (string $projectId, bool $userName, bool $userEmail, bool $mfa, Response $response, Database $dbForPlatform) { + $project = $dbForPlatform->getDocument('projects', $projectId); + + if ($project->isEmpty()) { + throw new Exception(Exception::PROJECT_NOT_FOUND); + } + + $auths = $project->getAttribute('auths', []); + + $auths['membershipsUserName'] = $userName; + $auths['membershipsUserEmail'] = $userEmail; + $auths['membershipsMfa'] = $mfa; + + $dbForPlatform->updateDocument('projects', $project->getId(), $project ->setAttribute('auths', $auths)); $response->dynamic($project, Response::MODEL_PROJECT); @@ -645,19 +828,26 @@ ->desc('Update project users limit') ->groups(['api', 'projects']) ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'updateAuthLimit') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROJECT) + ->label('sdk', new Method( + namespace: 'projects', + group: 'auth', + name: 'updateAuthLimit', + description: '/docs/references/projects/update-auth-limit.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROJECT, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('limit', false, new Range(0, APP_LIMIT_USERS), 'Set the max number of users allowed in this project. Use 0 for unlimited.') ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, int $limit, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, int $limit, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); @@ -666,7 +856,7 @@ $auths = $project->getAttribute('auths', []); $auths['limit'] = $limit; - $dbForConsole->updateDocument('projects', $project->getId(), $project + $dbForPlatform->updateDocument('projects', $project->getId(), $project ->setAttribute('auths', $auths)); $response->dynamic($project, Response::MODEL_PROJECT); @@ -676,19 +866,26 @@ ->desc('Update project authentication duration') ->groups(['api', 'projects']) ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'updateAuthDuration') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROJECT) + ->label('sdk', new Method( + namespace: 'projects', + group: 'auth', + name: 'updateAuthDuration', + description: '/docs/references/projects/update-auth-duration.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROJECT, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('duration', 31536000, new Range(0, 31536000), 'Project session length in seconds. Max length: 31536000 seconds.') ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, int $duration, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, int $duration, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); @@ -697,7 +894,7 @@ $auths = $project->getAttribute('auths', []); $auths['duration'] = $duration; - $dbForConsole->updateDocument('projects', $project->getId(), $project + $dbForPlatform->updateDocument('projects', $project->getId(), $project ->setAttribute('auths', $auths)); $response->dynamic($project, Response::MODEL_PROJECT); @@ -707,20 +904,27 @@ ->desc('Update project auth method status. Use this endpoint to enable or disable a given auth method for this project.') ->groups(['api', 'projects']) ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'updateAuthStatus') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROJECT) + ->label('sdk', new Method( + namespace: 'projects', + group: 'auth', + name: 'updateAuthStatus', + description: '/docs/references/projects/update-auth-status.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROJECT, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('method', '', new WhiteList(\array_keys(Config::getParam('auth')), true), 'Auth Method. Possible values: ' . implode(',', \array_keys(Config::getParam('auth'))), false) ->param('status', false, new Boolean(true), 'Set the status of this auth method.') ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, string $method, bool $status, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, string $method, bool $status, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); $auth = Config::getParam('auth')[$method] ?? []; $authKey = $auth['key'] ?? ''; $status = ($status === '1' || $status === 'true' || $status === 1 || $status === true); @@ -732,7 +936,7 @@ $auths = $project->getAttribute('auths', []); $auths[$authKey] = $status; - $project = $dbForConsole->updateDocument('projects', $project->getId(), $project->setAttribute('auths', $auths)); + $project = $dbForPlatform->updateDocument('projects', $project->getId(), $project->setAttribute('auths', $auths)); $response->dynamic($project, Response::MODEL_PROJECT); }); @@ -741,19 +945,26 @@ ->desc('Update authentication password history. Use this endpoint to set the number of password history to save and 0 to disable password history.') ->groups(['api', 'projects']) ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'updateAuthPasswordHistory') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROJECT) + ->label('sdk', new Method( + namespace: 'projects', + group: 'auth', + name: 'updateAuthPasswordHistory', + description: '/docs/references/projects/update-auth-password-history.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROJECT, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('limit', 0, new Range(0, APP_LIMIT_USER_PASSWORD_HISTORY), 'Set the max number of passwords to store in user history. User can\'t choose a new password that is already stored in the password history list. Max number of passwords allowed in history is' . APP_LIMIT_USER_PASSWORD_HISTORY . '. Default value is 0') ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, int $limit, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, int $limit, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); @@ -762,7 +973,7 @@ $auths = $project->getAttribute('auths', []); $auths['passwordHistory'] = $limit; - $dbForConsole->updateDocument('projects', $project->getId(), $project + $dbForPlatform->updateDocument('projects', $project->getId(), $project ->setAttribute('auths', $auths)); $response->dynamic($project, Response::MODEL_PROJECT); @@ -772,19 +983,26 @@ ->desc('Update authentication password dictionary status. Use this endpoint to enable or disable the dicitonary check for user password') ->groups(['api', 'projects']) ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'updateAuthPasswordDictionary') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROJECT) + ->label('sdk', new Method( + namespace: 'projects', + group: 'auth', + name: 'updateAuthPasswordDictionary', + description: '/docs/references/projects/update-auth-password-dictionary.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROJECT, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('enabled', false, new Boolean(false), 'Set whether or not to enable checking user\'s password against most commonly used passwords. Default is false.') ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, bool $enabled, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, bool $enabled, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); @@ -793,29 +1011,36 @@ $auths = $project->getAttribute('auths', []); $auths['passwordDictionary'] = $enabled; - $dbForConsole->updateDocument('projects', $project->getId(), $project + $dbForPlatform->updateDocument('projects', $project->getId(), $project ->setAttribute('auths', $auths)); $response->dynamic($project, Response::MODEL_PROJECT); }); App::patch('/v1/projects/:projectId/auth/personal-data') - ->desc('Enable or disable checking user passwords for similarity with their personal data.') + ->desc('Update personal data check') ->groups(['api', 'projects']) ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'updatePersonalDataCheck') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROJECT) + ->label('sdk', new Method( + namespace: 'projects', + group: 'auth', + name: 'updatePersonalDataCheck', + description: '/docs/references/projects/update-personal-data-check.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROJECT, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('enabled', false, new Boolean(false), 'Set whether or not to check a password for similarity with personal data. Default is false.') ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, bool $enabled, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, bool $enabled, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); @@ -824,7 +1049,7 @@ $auths = $project->getAttribute('auths', []); $auths['personalDataCheck'] = $enabled; - $dbForConsole->updateDocument('projects', $project->getId(), $project + $dbForPlatform->updateDocument('projects', $project->getId(), $project ->setAttribute('auths', $auths)); $response->dynamic($project, Response::MODEL_PROJECT); @@ -834,19 +1059,26 @@ ->desc('Update project user sessions limit') ->groups(['api', 'projects']) ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'updateAuthSessionsLimit') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROJECT) + ->label('sdk', new Method( + namespace: 'projects', + group: 'auth', + name: 'updateAuthSessionsLimit', + description: '/docs/references/projects/update-auth-sessions-limit.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROJECT, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('limit', false, new Range(1, APP_LIMIT_USER_SESSIONS_MAX), 'Set the max number of users allowed in this project. Value allowed is between 1-' . APP_LIMIT_USER_SESSIONS_MAX . '. Default is ' . APP_LIMIT_USER_SESSIONS_DEFAULT) ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, int $limit, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, int $limit, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); @@ -855,7 +1087,7 @@ $auths = $project->getAttribute('auths', []); $auths['maxSessions'] = $limit; - $dbForConsole->updateDocument('projects', $project->getId(), $project + $dbForPlatform->updateDocument('projects', $project->getId(), $project ->setAttribute('auths', $auths)); $response->dynamic($project, Response::MODEL_PROJECT); @@ -865,17 +1097,24 @@ ->desc('Update the mock numbers for the project') ->groups(['api', 'projects']) ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'updateMockNumbers') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROJECT) + ->label('sdk', new Method( + namespace: 'projects', + group: 'auth', + name: 'updateMockNumbers', + description: '/docs/references/projects/update-mock-numbers.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROJECT, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('numbers', '', new ArrayList(new MockNumber(), 10), 'An array of mock numbers and their corresponding verification codes (OTPs). Each number should be a valid E.164 formatted phone number. Maximum of 10 numbers are allowed.') ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, array $numbers, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, array $numbers, Response $response, Database $dbForPlatform) { $uniqueNumbers = []; foreach ($numbers as $number) { @@ -885,7 +1124,7 @@ $uniqueNumbers[$number['phone']] = $number['otp']; } - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); @@ -895,7 +1134,7 @@ $auths['mockNumbers'] = $numbers; - $project = $dbForConsole->updateDocument('projects', $project->getId(), $project->setAttribute('auths', $auths)); + $project = $dbForPlatform->updateDocument('projects', $project->getId(), $project->setAttribute('auths', $auths)); $response->dynamic($project, Response::MODEL_PROJECT); }); @@ -904,29 +1143,40 @@ ->desc('Delete project') ->groups(['api', 'projects']) ->label('audits.event', 'projects.delete') + ->label('audits.resource', 'project/{request.projectId}') ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'delete') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'projects', + group: 'projects', + name: 'delete', + description: '/docs/references/projects/delete.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->inject('response') ->inject('user') - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('queueForDeletes') - ->action(function (string $projectId, Response $response, Document $user, Database $dbForConsole, Delete $queueForDeletes) { - $project = $dbForConsole->getDocument('projects', $projectId); + ->action(function (string $projectId, Response $response, Document $user, Database $dbForPlatform, Delete $queueForDeletes) { + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); } $queueForDeletes + ->setProject($project) ->setType(DELETE_TYPE_DOCUMENT) ->setDocument($project); - if (!$dbForConsole->deleteDocument('projects', $projectId)) { + if (!$dbForPlatform->deleteDocument('projects', $projectId)) { throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Failed to remove project from DB'); } @@ -939,12 +1189,19 @@ ->desc('Create webhook') ->groups(['api', 'projects']) ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'createWebhook') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_WEBHOOK) + ->label('sdk', new Method( + namespace: 'projects', + group: 'webhooks', + name: 'createWebhook', + description: '/docs/references/projects/create-webhook.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_WEBHOOK, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('name', null, new Text(128), 'Webhook name. Max length: 128 chars.') ->param('enabled', true, new Boolean(true), 'Enable or disable a webhook.', true) @@ -954,10 +1211,10 @@ ->param('httpUser', '', new Text(256), 'Webhook HTTP user. Max length: 256 chars.', true) ->param('httpPass', '', new Text(256), 'Webhook HTTP password. Max length: 256 chars.', true) ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, string $name, bool $enabled, array $events, string $url, bool $security, string $httpUser, string $httpPass, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, string $name, bool $enabled, array $events, string $url, bool $security, string $httpUser, string $httpPass, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); @@ -984,9 +1241,9 @@ 'enabled' => $enabled, ]); - $webhook = $dbForConsole->createDocument('webhooks', $webhook); + $webhook = $dbForPlatform->createDocument('webhooks', $webhook); - $dbForConsole->purgeCachedDocument('projects', $project->getId()); + $dbForPlatform->purgeCachedDocument('projects', $project->getId()); $response ->setStatusCode(Response::STATUS_CODE_CREATED) @@ -997,24 +1254,31 @@ ->desc('List webhooks') ->groups(['api', 'projects']) ->label('scope', 'projects.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'listWebhooks') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_WEBHOOK_LIST) + ->label('sdk', new Method( + namespace: 'projects', + group: 'webhooks', + name: 'listWebhooks', + description: '/docs/references/projects/list-webhooks.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_WEBHOOK_LIST, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); } - $webhooks = $dbForConsole->find('webhooks', [ + $webhooks = $dbForPlatform->find('webhooks', [ Query::equal('projectInternalId', [$project->getInternalId()]), Query::limit(5000), ]); @@ -1029,30 +1293,37 @@ ->desc('Get webhook') ->groups(['api', 'projects']) ->label('scope', 'projects.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'getWebhook') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_WEBHOOK) + ->label('sdk', new Method( + namespace: 'projects', + group: 'webhooks', + name: 'getWebhook', + description: '/docs/references/projects/get-webhook.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_WEBHOOK, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('webhookId', '', new UID(), 'Webhook unique ID.') ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, string $webhookId, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, string $webhookId, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); } - $webhook = $dbForConsole->findOne('webhooks', [ + $webhook = $dbForPlatform->findOne('webhooks', [ Query::equal('$id', [$webhookId]), Query::equal('projectInternalId', [$project->getInternalId()]), ]); - if ($webhook === false || $webhook->isEmpty()) { + if ($webhook->isEmpty()) { throw new Exception(Exception::WEBHOOK_NOT_FOUND); } @@ -1063,12 +1334,19 @@ ->desc('Update webhook') ->groups(['api', 'projects']) ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'updateWebhook') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_WEBHOOK) + ->label('sdk', new Method( + namespace: 'projects', + group: 'webhooks', + name: 'updateWebhook', + description: '/docs/references/projects/update-webhook.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_WEBHOOK, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('webhookId', '', new UID(), 'Webhook unique ID.') ->param('name', null, new Text(128), 'Webhook name. Max length: 128 chars.') @@ -1079,10 +1357,10 @@ ->param('httpUser', '', new Text(256), 'Webhook HTTP user. Max length: 256 chars.', true) ->param('httpPass', '', new Text(256), 'Webhook HTTP password. Max length: 256 chars.', true) ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, string $webhookId, string $name, bool $enabled, array $events, string $url, bool $security, string $httpUser, string $httpPass, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, string $webhookId, string $name, bool $enabled, array $events, string $url, bool $security, string $httpUser, string $httpPass, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); @@ -1090,12 +1368,12 @@ $security = ($security === '1' || $security === 'true' || $security === 1 || $security === true); - $webhook = $dbForConsole->findOne('webhooks', [ + $webhook = $dbForPlatform->findOne('webhooks', [ Query::equal('$id', [$webhookId]), Query::equal('projectInternalId', [$project->getInternalId()]), ]); - if ($webhook === false || $webhook->isEmpty()) { + if ($webhook->isEmpty()) { throw new Exception(Exception::WEBHOOK_NOT_FOUND); } @@ -1112,8 +1390,8 @@ $webhook->setAttribute('attempts', 0); } - $dbForConsole->updateDocument('webhooks', $webhook->getId(), $webhook); - $dbForConsole->purgeCachedDocument('projects', $project->getId()); + $dbForPlatform->updateDocument('webhooks', $webhook->getId(), $webhook); + $dbForPlatform->purgeCachedDocument('projects', $project->getId()); $response->dynamic($webhook, Response::MODEL_WEBHOOK); }); @@ -1122,37 +1400,44 @@ ->desc('Update webhook signature key') ->groups(['api', 'projects']) ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'updateWebhookSignature') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_WEBHOOK) + ->label('sdk', new Method( + namespace: 'projects', + group: 'webhooks', + name: 'updateWebhookSignature', + description: '/docs/references/projects/update-webhook-signature.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_WEBHOOK, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('webhookId', '', new UID(), 'Webhook unique ID.') ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, string $webhookId, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, string $webhookId, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); } - $webhook = $dbForConsole->findOne('webhooks', [ + $webhook = $dbForPlatform->findOne('webhooks', [ Query::equal('$id', [$webhookId]), Query::equal('projectInternalId', [$project->getInternalId()]), ]); - if ($webhook === false || $webhook->isEmpty()) { + if ($webhook->isEmpty()) { throw new Exception(Exception::WEBHOOK_NOT_FOUND); } $webhook->setAttribute('signatureKey', \bin2hex(\random_bytes(64))); - $dbForConsole->updateDocument('webhooks', $webhook->getId(), $webhook); - $dbForConsole->purgeCachedDocument('projects', $project->getId()); + $dbForPlatform->updateDocument('webhooks', $webhook->getId(), $webhook); + $dbForPlatform->purgeCachedDocument('projects', $project->getId()); $response->dynamic($webhook, Response::MODEL_WEBHOOK); }); @@ -1161,35 +1446,44 @@ ->desc('Delete webhook') ->groups(['api', 'projects']) ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'deleteWebhook') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'projects', + group: 'webhooks', + name: 'deleteWebhook', + description: '/docs/references/projects/delete-webhook.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('webhookId', '', new UID(), 'Webhook unique ID.') ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, string $webhookId, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, string $webhookId, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); } - $webhook = $dbForConsole->findOne('webhooks', [ + $webhook = $dbForPlatform->findOne('webhooks', [ Query::equal('$id', [$webhookId]), Query::equal('projectInternalId', [$project->getInternalId()]), ]); - if ($webhook === false || $webhook->isEmpty()) { + if ($webhook->isEmpty()) { throw new Exception(Exception::WEBHOOK_NOT_FOUND); } - $dbForConsole->deleteDocument('webhooks', $webhook->getId()); + $dbForPlatform->deleteDocument('webhooks', $webhook->getId()); - $dbForConsole->purgeCachedDocument('projects', $project->getId()); + $dbForPlatform->purgeCachedDocument('projects', $project->getId()); $response->noContent(); }); @@ -1199,22 +1493,29 @@ App::post('/v1/projects/:projectId/keys') ->desc('Create key') ->groups(['api', 'projects']) - ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'createKey') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_KEY) + ->label('scope', 'keys.write') + ->label('sdk', new Method( + namespace: 'projects', + group: 'keys', + name: 'createKey', + description: '/docs/references/projects/create-key.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_KEY, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('name', null, new Text(128), 'Key name. Max length: 128 chars.') ->param('scopes', null, new ArrayList(new WhiteList(array_keys(Config::getParam('scopes')), true), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Key scopes list. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' scopes are allowed.') ->param('expire', null, new DatetimeValidator(), 'Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.', true) ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, string $name, array $scopes, ?string $expire, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, string $name, array $scopes, ?string $expire, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); @@ -1237,9 +1538,9 @@ 'secret' => API_KEY_STANDARD . '_' . \bin2hex(\random_bytes(128)), ]); - $key = $dbForConsole->createDocument('keys', $key); + $key = $dbForPlatform->createDocument('keys', $key); - $dbForConsole->purgeCachedDocument('projects', $project->getId()); + $dbForPlatform->purgeCachedDocument('projects', $project->getId()); $response ->setStatusCode(Response::STATUS_CODE_CREATED) @@ -1249,25 +1550,32 @@ App::get('/v1/projects/:projectId/keys') ->desc('List keys') ->groups(['api', 'projects']) - ->label('scope', 'projects.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'listKeys') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_KEY_LIST) + ->label('scope', 'keys.read') + ->label('sdk', new Method( + namespace: 'projects', + group: 'keys', + name: 'listKeys', + description: '/docs/references/projects/list-keys.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_KEY_LIST, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); } - $keys = $dbForConsole->find('keys', [ + $keys = $dbForPlatform->find('keys', [ Query::equal('projectInternalId', [$project->getInternalId()]), Query::limit(5000), ]); @@ -1281,31 +1589,38 @@ App::get('/v1/projects/:projectId/keys/:keyId') ->desc('Get key') ->groups(['api', 'projects']) - ->label('scope', 'projects.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'getKey') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_KEY) + ->label('scope', 'keys.read') + ->label('sdk', new Method( + namespace: 'projects', + group: 'keys', + name: 'getKey', + description: '/docs/references/projects/get-key.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_KEY, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('keyId', '', new UID(), 'Key unique ID.') ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, string $keyId, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, string $keyId, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); } - $key = $dbForConsole->findOne('keys', [ + $key = $dbForPlatform->findOne('keys', [ Query::equal('$id', [$keyId]), Query::equal('projectInternalId', [$project->getInternalId()]), ]); - if ($key === false || $key->isEmpty()) { + if ($key->isEmpty()) { throw new Exception(Exception::KEY_NOT_FOUND); } @@ -1315,34 +1630,41 @@ App::put('/v1/projects/:projectId/keys/:keyId') ->desc('Update key') ->groups(['api', 'projects']) - ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'updateKey') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_KEY) + ->label('scope', 'keys.write') + ->label('sdk', new Method( + namespace: 'projects', + group: 'keys', + name: 'updateKey', + description: '/docs/references/projects/update-key.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_KEY, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('keyId', '', new UID(), 'Key unique ID.') ->param('name', null, new Text(128), 'Key name. Max length: 128 chars.') ->param('scopes', null, new ArrayList(new WhiteList(array_keys(Config::getParam('scopes')), true), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Key scopes list. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' events are allowed.') ->param('expire', null, new DatetimeValidator(), 'Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.', true) ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, string $keyId, string $name, array $scopes, ?string $expire, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, string $keyId, string $name, array $scopes, ?string $expire, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); } - $key = $dbForConsole->findOne('keys', [ + $key = $dbForPlatform->findOne('keys', [ Query::equal('$id', [$keyId]), Query::equal('projectInternalId', [$project->getInternalId()]), ]); - if ($key === false || $key->isEmpty()) { + if ($key->isEmpty()) { throw new Exception(Exception::KEY_NOT_FOUND); } @@ -1351,9 +1673,9 @@ ->setAttribute('scopes', $scopes) ->setAttribute('expire', $expire); - $dbForConsole->updateDocument('keys', $key->getId(), $key); + $dbForPlatform->updateDocument('keys', $key->getId(), $key); - $dbForConsole->purgeCachedDocument('projects', $project->getId()); + $dbForPlatform->purgeCachedDocument('projects', $project->getId()); $response->dynamic($key, Response::MODEL_KEY); }); @@ -1361,36 +1683,45 @@ App::delete('/v1/projects/:projectId/keys/:keyId') ->desc('Delete key') ->groups(['api', 'projects']) - ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'deleteKey') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('scope', 'keys.write') + ->label('sdk', new Method( + namespace: 'projects', + group: 'keys', + name: 'deleteKey', + description: '/docs/references/projects/delete-key.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('keyId', '', new UID(), 'Key unique ID.') ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, string $keyId, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, string $keyId, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); } - $key = $dbForConsole->findOne('keys', [ + $key = $dbForPlatform->findOne('keys', [ Query::equal('$id', [$keyId]), Query::equal('projectInternalId', [$project->getInternalId()]), ]); - if ($key === false || $key->isEmpty()) { + if ($key->isEmpty()) { throw new Exception(Exception::KEY_NOT_FOUND); } - $dbForConsole->deleteDocument('keys', $key->getId()); + $dbForPlatform->deleteDocument('keys', $key->getId()); - $dbForConsole->purgeCachedDocument('projects', $project->getId()); + $dbForPlatform->purgeCachedDocument('projects', $project->getId()); $response->noContent(); }); @@ -1401,20 +1732,27 @@ ->groups(['api', 'projects']) ->desc('Create JWT') ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'createJWT') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_JWT) + ->label('sdk', new Method( + namespace: 'projects', + group: 'auth', + name: 'createJWT', + description: '/docs/references/projects/create-jwt.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_JWT, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('scopes', [], new ArrayList(new WhiteList(array_keys(Config::getParam('scopes')), true), APP_LIMIT_ARRAY_PARAMS_SIZE), 'List of scopes allowed for JWT key. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' scopes are allowed.') ->param('duration', 900, new Range(0, 3600), 'Time in seconds before JWT expires. Default duration is 900 seconds, and maximum is 3600 seconds.', true) ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, array $scopes, int $duration, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, array $scopes, int $duration, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); @@ -1436,13 +1774,21 @@ ->desc('Create platform') ->groups(['api', 'projects']) ->label('audits.event', 'platforms.create') - ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'createPlatform') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PLATFORM) + ->label('audits.resource', 'project/{request.projectId}') + ->label('scope', 'platforms.write') + ->label('sdk', new Method( + namespace: 'projects', + group: 'platforms', + name: 'createPlatform', + description: '/docs/references/projects/create-platform.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_PLATFORM, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('type', null, new WhiteList([Origin::CLIENT_TYPE_WEB, Origin::CLIENT_TYPE_FLUTTER_WEB, Origin::CLIENT_TYPE_FLUTTER_IOS, Origin::CLIENT_TYPE_FLUTTER_ANDROID, Origin::CLIENT_TYPE_FLUTTER_LINUX, Origin::CLIENT_TYPE_FLUTTER_MACOS, Origin::CLIENT_TYPE_FLUTTER_WINDOWS, Origin::CLIENT_TYPE_APPLE_IOS, Origin::CLIENT_TYPE_APPLE_MACOS, Origin::CLIENT_TYPE_APPLE_WATCHOS, Origin::CLIENT_TYPE_APPLE_TVOS, Origin::CLIENT_TYPE_ANDROID, Origin::CLIENT_TYPE_UNITY, Origin::CLIENT_TYPE_REACT_NATIVE_IOS, Origin::CLIENT_TYPE_REACT_NATIVE_ANDROID], true), 'Platform type.') ->param('name', null, new Text(128), 'Platform name. Max length: 128 chars.') @@ -1450,9 +1796,9 @@ ->param('store', '', new Text(256), 'App store or Google Play store ID. Max length: 256 chars.', true) ->param('hostname', '', new Hostname(), 'Platform client hostname. Max length: 256 chars.', true) ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, string $type, string $name, string $key, string $store, string $hostname, Response $response, Database $dbForConsole) { - $project = $dbForConsole->getDocument('projects', $projectId); + ->inject('dbForPlatform') + ->action(function (string $projectId, string $type, string $name, string $key, string $store, string $hostname, Response $response, Database $dbForPlatform) { + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); @@ -1474,9 +1820,9 @@ 'hostname' => $hostname ]); - $platform = $dbForConsole->createDocument('platforms', $platform); + $platform = $dbForPlatform->createDocument('platforms', $platform); - $dbForConsole->purgeCachedDocument('projects', $project->getId()); + $dbForPlatform->purgeCachedDocument('projects', $project->getId()); $response ->setStatusCode(Response::STATUS_CODE_CREATED) @@ -1486,25 +1832,32 @@ App::get('/v1/projects/:projectId/platforms') ->desc('List platforms') ->groups(['api', 'projects']) - ->label('scope', 'projects.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'listPlatforms') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PLATFORM_LIST) + ->label('scope', 'platforms.read') + ->label('sdk', new Method( + namespace: 'projects', + group: 'platforms', + name: 'listPlatforms', + description: '/docs/references/projects/list-platforms.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PLATFORM_LIST, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); } - $platforms = $dbForConsole->find('platforms', [ + $platforms = $dbForPlatform->find('platforms', [ Query::equal('projectInternalId', [$project->getInternalId()]), Query::limit(5000), ]); @@ -1518,31 +1871,38 @@ App::get('/v1/projects/:projectId/platforms/:platformId') ->desc('Get platform') ->groups(['api', 'projects']) - ->label('scope', 'projects.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'getPlatform') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PLATFORM) + ->label('scope', 'platforms.read') + ->label('sdk', new Method( + namespace: 'projects', + group: 'platforms', + name: 'getPlatform', + description: '/docs/references/projects/get-platform.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PLATFORM, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('platformId', '', new UID(), 'Platform unique ID.') ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, string $platformId, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, string $platformId, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); } - $platform = $dbForConsole->findOne('platforms', [ + $platform = $dbForPlatform->findOne('platforms', [ Query::equal('$id', [$platformId]), Query::equal('projectInternalId', [$project->getInternalId()]), ]); - if ($platform === false || $platform->isEmpty()) { + if ($platform->isEmpty()) { throw new Exception(Exception::PLATFORM_NOT_FOUND); } @@ -1552,13 +1912,20 @@ App::put('/v1/projects/:projectId/platforms/:platformId') ->desc('Update platform') ->groups(['api', 'projects']) - ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'updatePlatform') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PLATFORM) + ->label('scope', 'platforms.write') + ->label('sdk', new Method( + namespace: 'projects', + group: 'platforms', + name: 'updatePlatform', + description: '/docs/references/projects/update-platform.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PLATFORM, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('platformId', '', new UID(), 'Platform unique ID.') ->param('name', null, new Text(128), 'Platform name. Max length: 128 chars.') @@ -1566,20 +1933,20 @@ ->param('store', '', new Text(256), 'App store or Google Play store ID. Max length: 256 chars.', true) ->param('hostname', '', new Hostname(), 'Platform client URL. Max length: 256 chars.', true) ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, string $platformId, string $name, string $key, string $store, string $hostname, Response $response, Database $dbForConsole) { - $project = $dbForConsole->getDocument('projects', $projectId); + ->inject('dbForPlatform') + ->action(function (string $projectId, string $platformId, string $name, string $key, string $store, string $hostname, Response $response, Database $dbForPlatform) { + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); } - $platform = $dbForConsole->findOne('platforms', [ + $platform = $dbForPlatform->findOne('platforms', [ Query::equal('$id', [$platformId]), Query::equal('projectInternalId', [$project->getInternalId()]), ]); - if ($platform === false || $platform->isEmpty()) { + if ($platform->isEmpty()) { throw new Exception(Exception::PLATFORM_NOT_FOUND); } @@ -1589,9 +1956,9 @@ ->setAttribute('store', $store) ->setAttribute('hostname', $hostname); - $dbForConsole->updateDocument('platforms', $platform->getId(), $platform); + $dbForPlatform->updateDocument('platforms', $platform->getId(), $platform); - $dbForConsole->purgeCachedDocument('projects', $project->getId()); + $dbForPlatform->purgeCachedDocument('projects', $project->getId()); $response->dynamic($platform, Response::MODEL_PLATFORM); }); @@ -1600,36 +1967,46 @@ ->desc('Delete platform') ->groups(['api', 'projects']) ->label('audits.event', 'platforms.delete') - ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'deletePlatform') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('audits.resource', 'project/{request.projectId}/platform/${request.platformId}') + ->label('scope', 'platforms.write') + ->label('sdk', new Method( + namespace: 'projects', + group: 'platforms', + name: 'deletePlatform', + description: '/docs/references/projects/delete-platform.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('platformId', '', new UID(), 'Platform unique ID.') ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, string $platformId, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, string $platformId, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); } - $platform = $dbForConsole->findOne('platforms', [ + $platform = $dbForPlatform->findOne('platforms', [ Query::equal('$id', [$platformId]), Query::equal('projectInternalId', [$project->getInternalId()]), ]); - if ($platform === false || $platform->isEmpty()) { + if ($platform->isEmpty()) { throw new Exception(Exception::PLATFORM_NOT_FOUND); } - $dbForConsole->deleteDocument('platforms', $platformId); + $dbForPlatform->deleteDocument('platforms', $platformId); - $dbForConsole->purgeCachedDocument('projects', $project->getId()); + $dbForPlatform->purgeCachedDocument('projects', $project->getId()); $response->noContent(); }); @@ -1640,12 +2017,19 @@ ->desc('Update SMTP') ->groups(['api', 'projects']) ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'updateSmtp') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROJECT) + ->label('sdk', new Method( + namespace: 'projects', + group: 'templates', + name: 'updateSmtp', + description: '/docs/references/projects/update-smtp.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROJECT, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('enabled', false, new Boolean(), 'Enable custom SMTP service') ->param('senderName', '', new Text(255, 0), 'Name of the email sender', true) @@ -1657,10 +2041,10 @@ ->param('password', '', new Text(0, 0), 'SMTP server password', true) ->param('secure', '', new WhiteList(['tls', 'ssl'], true), 'Does SMTP server use secure connection', true) ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, bool $enabled, string $senderName, string $senderEmail, string $replyTo, string $host, int $port, string $username, string $password, string $secure, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, bool $enabled, string $senderName, string $senderEmail, string $replyTo, string $host, int $port, string $username, string $password, string $secure, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); @@ -1721,7 +2105,7 @@ ]; } - $project = $dbForConsole->updateDocument('projects', $project->getId(), $project->setAttribute('smtp', $smtp)); + $project = $dbForPlatform->updateDocument('projects', $project->getId(), $project->setAttribute('smtp', $smtp)); $response->dynamic($project, Response::MODEL_PROJECT); }); @@ -1730,11 +2114,19 @@ ->desc('Create SMTP test') ->groups(['api', 'projects']) ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'createSmtpTest') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'projects', + group: 'templates', + name: 'createSmtpTest', + description: '/docs/references/projects/create-smtp-test.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('emails', [], new ArrayList(new Email(), 10), 'Array of emails to send test email to. Maximum of 10 emails are allowed.') ->param('senderName', System::getEnv('_APP_SYSTEM_EMAIL_NAME', APP_NAME . ' Server'), new Text(255, 0), 'Name of the email sender') @@ -1744,12 +2136,12 @@ ->param('port', 587, new Integer(), 'SMTP server port', true) ->param('username', '', new Text(0, 0), 'SMTP server username', true) ->param('password', '', new Text(0, 0), 'SMTP server password', true) - ->param('secure', '', new WhiteList(['tls'], true), 'Does SMTP server use secure connection', true) + ->param('secure', '', new WhiteList(['tls', 'ssl'], true), 'Does SMTP server use secure connection', true) ->inject('response') - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('queueForMails') - ->action(function (string $projectId, array $emails, string $senderName, string $senderEmail, string $replyTo, string $host, int $port, string $username, string $password, string $secure, Response $response, Database $dbForConsole, Mail $queueForMails) { - $project = $dbForConsole->getDocument('projects', $projectId); + ->action(function (string $projectId, array $emails, string $senderName, string $senderEmail, string $replyTo, string $host, int $port, string $username, string $password, string $secure, Response $response, Database $dbForPlatform, Mail $queueForMails) { + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); @@ -1789,22 +2181,29 @@ ->desc('Get custom SMS template') ->groups(['api', 'projects']) ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'getSmsTemplate') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_SMS_TEMPLATE) + ->label('sdk', new Method( + namespace: 'projects', + group: 'templates', + name: 'getSmsTemplate', + description: '/docs/references/projects/get-sms-template.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_SMS_TEMPLATE, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('type', '', new WhiteList(Config::getParam('locale-templates')['sms'] ?? []), 'Template type') ->param('locale', '', fn ($localeCodes) => new WhiteList($localeCodes), 'Template locale', false, ['localeCodes']) ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, string $type, string $locale, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, string $type, string $locale, Response $response, Database $dbForPlatform) { throw new Exception(Exception::GENERAL_NOT_IMPLEMENTED); - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); @@ -1830,20 +2229,27 @@ ->desc('Get custom email template') ->groups(['api', 'projects']) ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'getEmailTemplate') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_EMAIL_TEMPLATE) + ->label('sdk', new Method( + namespace: 'projects', + group: 'templates', + name: 'getEmailTemplate', + description: '/docs/references/projects/get-email-template.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_EMAIL_TEMPLATE, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('type', '', new WhiteList(Config::getParam('locale-templates')['email'] ?? []), 'Template type') ->param('locale', '', fn ($localeCodes) => new WhiteList($localeCodes), 'Template locale', false, ['localeCodes']) ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, string $type, string $locale, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, string $type, string $locale, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); @@ -1882,23 +2288,30 @@ ->desc('Update custom SMS template') ->groups(['api', 'projects']) ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'updateSmsTemplate') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_SMS_TEMPLATE) + ->label('sdk', new Method( + namespace: 'projects', + group: 'templates', + name: 'updateSmsTemplate', + description: '/docs/references/projects/update-sms-template.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_SMS_TEMPLATE, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('type', '', new WhiteList(Config::getParam('locale-templates')['sms'] ?? []), 'Template type') ->param('locale', '', fn ($localeCodes) => new WhiteList($localeCodes), 'Template locale', false, ['localeCodes']) ->param('message', '', new Text(0), 'Template message') ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, string $type, string $locale, string $message, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, string $type, string $locale, string $message, Response $response, Database $dbForPlatform) { throw new Exception(Exception::GENERAL_NOT_IMPLEMENTED); - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); @@ -1909,7 +2322,7 @@ 'message' => $message ]; - $project = $dbForConsole->updateDocument('projects', $project->getId(), $project->setAttribute('templates', $templates)); + $project = $dbForPlatform->updateDocument('projects', $project->getId(), $project->setAttribute('templates', $templates)); $response->dynamic(new Document([ 'message' => $message, @@ -1922,12 +2335,19 @@ ->desc('Update custom email templates') ->groups(['api', 'projects']) ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'updateEmailTemplate') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROJECT) + ->label('sdk', new Method( + namespace: 'projects', + group: 'templates', + name: 'updateEmailTemplate', + description: '/docs/references/projects/update-email-template.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_EMAIL_TEMPLATE, + ) + ] + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('type', '', new WhiteList(Config::getParam('locale-templates')['email'] ?? []), 'Template type') ->param('locale', '', fn ($localeCodes) => new WhiteList($localeCodes), 'Template locale', false, ['localeCodes']) @@ -1937,10 +2357,10 @@ ->param('senderEmail', '', new Email(), 'Email of the sender', true) ->param('replyTo', '', new Email(), 'Reply to email', true) ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, string $type, string $locale, string $subject, string $message, string $senderName, string $senderEmail, string $replyTo, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, string $type, string $locale, string $subject, string $message, string $senderName, string $senderEmail, string $replyTo, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); @@ -1955,7 +2375,7 @@ 'message' => $message ]; - $project = $dbForConsole->updateDocument('projects', $project->getId(), $project->setAttribute('templates', $templates)); + $project = $dbForPlatform->updateDocument('projects', $project->getId(), $project->setAttribute('templates', $templates)); $response->dynamic(new Document([ 'type' => $type, @@ -1972,22 +2392,30 @@ ->desc('Reset custom SMS template') ->groups(['api', 'projects']) ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'deleteSmsTemplate') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_SMS_TEMPLATE) + ->label('sdk', new Method( + namespace: 'projects', + group: 'templates', + name: 'deleteSmsTemplate', + description: '/docs/references/projects/delete-sms-template.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_SMS_TEMPLATE, + ) + ], + contentType: ContentType::JSON + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('type', '', new WhiteList(Config::getParam('locale-templates')['sms'] ?? []), 'Template type') ->param('locale', '', fn ($localeCodes) => new WhiteList($localeCodes), 'Template locale', false, ['localeCodes']) ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, string $type, string $locale, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, string $type, string $locale, Response $response, Database $dbForPlatform) { throw new Exception(Exception::GENERAL_NOT_IMPLEMENTED); - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); @@ -2002,7 +2430,7 @@ unset($template['sms.' . $type . '-' . $locale]); - $project = $dbForConsole->updateDocument('projects', $project->getId(), $project->setAttribute('templates', $templates)); + $project = $dbForPlatform->updateDocument('projects', $project->getId(), $project->setAttribute('templates', $templates)); $response->dynamic(new Document([ 'type' => $type, @@ -2012,23 +2440,31 @@ }); App::delete('/v1/projects/:projectId/templates/email/:type/:locale') - ->desc('Reset custom email template') + ->desc('Delete custom email template') ->groups(['api', 'projects']) ->label('scope', 'projects.write') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'projects') - ->label('sdk.method', 'deleteEmailTemplate') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_EMAIL_TEMPLATE) + ->label('sdk', new Method( + namespace: 'projects', + group: 'templates', + name: 'deleteEmailTemplate', + description: '/docs/references/projects/delete-email-template.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_EMAIL_TEMPLATE, + ) + ], + contentType: ContentType::JSON + )) ->param('projectId', '', new UID(), 'Project unique ID.') ->param('type', '', new WhiteList(Config::getParam('locale-templates')['email'] ?? []), 'Template type') ->param('locale', '', fn ($localeCodes) => new WhiteList($localeCodes), 'Template locale', false, ['localeCodes']) ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, string $type, string $locale, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, string $type, string $locale, Response $response, Database $dbForPlatform) { - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); @@ -2043,7 +2479,7 @@ unset($templates['email.' . $type . '-' . $locale]); - $project = $dbForConsole->updateDocument('projects', $project->getId(), $project->setAttribute('templates', $templates)); + $project = $dbForPlatform->updateDocument('projects', $project->getId(), $project->setAttribute('templates', $templates)); $response->dynamic(new Document([ 'type' => $type, diff --git a/app/controllers/api/proxy.php b/app/controllers/api/proxy.php index f60a6393021..cb3b249d8d4 100644 --- a/app/controllers/api/proxy.php +++ b/app/controllers/api/proxy.php @@ -5,6 +5,10 @@ use Appwrite\Event\Event; use Appwrite\Extend\Exception; use Appwrite\Network\Validator\CNAME; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Database\Validator\Queries\Rules; use Appwrite\Utopia\Response; use Utopia\App; @@ -13,6 +17,7 @@ use Utopia\Database\Exception\Query as QueryException; use Utopia\Database\Helpers\ID; use Utopia\Database\Query; +use Utopia\Database\Validator\Query\Cursor; use Utopia\Database\Validator\UID; use Utopia\Domains\Domain; use Utopia\Logger\Log; @@ -23,18 +28,24 @@ App::post('/v1/proxy/rules') ->groups(['api', 'proxy']) - ->desc('Create Rule') + ->desc('Create rule') ->label('scope', 'rules.write') ->label('event', 'rules.[ruleId].create') ->label('audits.event', 'rule.create') ->label('audits.resource', 'rule/{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'proxy') - ->label('sdk.method', 'createRule') - ->label('sdk.description', '/docs/references/proxy/create-rule.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROXY_RULE) + ->label('sdk', new Method( + namespace: 'proxy', + group: null, + name: 'createRule', + description: '/docs/references/proxy/create-rule.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_PROXY_RULE, + ) + ] + )) ->param('domain', null, new ValidatorDomain(), 'Domain name.') ->param('resourceType', null, new WhiteList(['api', 'function']), 'Action definition for the rule. Possible values are "api", "function"') ->param('resourceId', '', new UID(), 'ID of resource for the action type. If resourceType is "api", leave empty. If resourceType is "function", provide ID of the function.', true) @@ -42,28 +53,45 @@ ->inject('project') ->inject('queueForCertificates') ->inject('queueForEvents') - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('dbForProject') - ->action(function (string $domain, string $resourceType, string $resourceId, Response $response, Document $project, Certificate $queueForCertificates, Event $queueForEvents, Database $dbForConsole, Database $dbForProject) { + ->action(function (string $domain, string $resourceType, string $resourceId, Response $response, Document $project, Certificate $queueForCertificates, Event $queueForEvents, Database $dbForPlatform, Database $dbForProject) { + $mainDomain = System::getEnv('_APP_DOMAIN', ''); if ($domain === $mainDomain) { throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'You cannot assign your main domain to specific resource. Please use subdomain or a different domain.'); } - $functionsDomain = System::getEnv('_APP_DOMAIN_FUNCTIONS', ''); - if ($functionsDomain != '' && str_ends_with($domain, $functionsDomain)) { - throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'You cannot assign your functions domain or it\'s subdomain to specific resource. Please use different domain.'); + $functionsDomain = System::getEnv('_APP_DOMAIN_FUNCTIONS'); + $denyListDomains = System::getEnv('_APP_CUSTOM_DOMAIN_DENY_LIST'); + + if (!empty($denyListDomains)) { + $functionsDomain .= ',' . $denyListDomains; + } + + $deniedDomains = array_map('trim', explode(',', $functionsDomain)); + + foreach ($deniedDomains as $deniedDomain) { + if (str_ends_with($domain, $deniedDomain)) { + throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'You cannot assign your functions domain or its subdomain to a specific resource. Please use a different domain.'); + } } if ($domain === 'localhost' || $domain === APP_HOSTNAME_INTERNAL) { throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'This domain name is not allowed. Please pick another one.'); } - $document = $dbForConsole->findOne('rules', [ - Query::equal('domain', [$domain]), - ]); + // TODO: @christyjacob remove once we migrate the rules in 1.7.x + if (System::getEnv('_APP_RULES_FORMAT') === 'md5') { + $document = $dbForPlatform->getDocument('rules', md5($domain)); + } else { + $document = $dbForPlatform->findOne('rules', [ + Query::equal('domain', [$domain]), + ]); + } - if ($document && !$document->isEmpty()) { + + if (!$document->isEmpty()) { if ($document->getAttribute('projectId') === $project->getId()) { $resourceType = $document->getAttribute('resourceType'); $resourceId = $document->getAttribute('resourceId'); @@ -102,7 +130,9 @@ throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'Domain may not start with http:// or https://.'); } - $ruleId = ID::unique(); + // TODO: @christyjacob remove once we migrate the rules in 1.7.x + $ruleId = System::getEnv('_APP_RULES_FORMAT') === 'md5' ? md5($domain->get()) : ID::unique(); + $rule = new Document([ '$id' => $ruleId, 'projectId' => $project->getId(), @@ -112,6 +142,8 @@ 'resourceId' => $resourceId, 'resourceInternalId' => $resourceInternalId, 'certificateId' => '', + 'owner' => '', + 'region' => $project->getAttribute('region') ]); $status = 'created'; @@ -136,7 +168,7 @@ } $rule->setAttribute('status', $status); - $rule = $dbForConsole->createDocument('rules', $rule); + $rule = $dbForPlatform->createDocument('rules', $rule); $queueForEvents->setParam('ruleId', $rule->getId()); @@ -149,21 +181,27 @@ App::get('/v1/proxy/rules') ->groups(['api', 'proxy']) - ->desc('List Rules') + ->desc('List rules') ->label('scope', 'rules.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'proxy') - ->label('sdk.method', 'listRules') - ->label('sdk.description', '/docs/references/proxy/list-rules.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROXY_RULE_LIST) + ->label('sdk', new Method( + namespace: 'proxy', + group: null, + name: 'listRules', + description: '/docs/references/proxy/list-rules.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROXY_RULE_LIST, + ) + ] + )) ->param('queries', [], new Rules(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Rules::ALLOWED_ATTRIBUTES), true) ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) ->inject('response') ->inject('project') - ->inject('dbForConsole') - ->action(function (array $queries, string $search, Response $response, Document $project, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (array $queries, string $search, Response $response, Document $project, Database $dbForPlatform) { try { $queries = Query::parseQueries($queries); } catch (QueryException $e) { @@ -185,8 +223,14 @@ $cursor = reset($cursor); if ($cursor) { /** @var Query $cursor */ + + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + $ruleId = $cursor->getValue(); - $cursorDocument = $dbForConsole->getDocument('rules', $ruleId); + $cursorDocument = $dbForPlatform->getDocument('rules', $ruleId); if ($cursorDocument->isEmpty()) { throw new Exception(Exception::GENERAL_CURSOR_NOT_FOUND, "Rule '{$ruleId}' for the 'cursor' value not found."); @@ -197,42 +241,48 @@ $filterQueries = Query::groupByType($queries)['filters']; - $rules = $dbForConsole->find('rules', $queries); + $rules = $dbForPlatform->find('rules', $queries); foreach ($rules as $rule) { - $certificate = $dbForConsole->getDocument('certificates', $rule->getAttribute('certificateId', '')); + $certificate = $dbForPlatform->getDocument('certificates', $rule->getAttribute('certificateId', '')); $rule->setAttribute('logs', $certificate->getAttribute('logs', '')); $rule->setAttribute('renewAt', $certificate->getAttribute('renewDate', '')); } $response->dynamic(new Document([ 'rules' => $rules, - 'total' => $dbForConsole->count('rules', $filterQueries, APP_LIMIT_COUNT), + 'total' => $dbForPlatform->count('rules', $filterQueries, APP_LIMIT_COUNT), ]), Response::MODEL_PROXY_RULE_LIST); }); App::get('/v1/proxy/rules/:ruleId') ->groups(['api', 'proxy']) - ->desc('Get Rule') + ->desc('Get rule') ->label('scope', 'rules.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'proxy') - ->label('sdk.method', 'getRule') - ->label('sdk.description', '/docs/references/proxy/get-rule.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROXY_RULE) + ->label('sdk', new Method( + namespace: 'proxy', + group: null, + name: 'getRule', + description: '/docs/references/proxy/get-rule.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROXY_RULE, + ) + ] + )) ->param('ruleId', '', new UID(), 'Rule ID.') ->inject('response') ->inject('project') - ->inject('dbForConsole') - ->action(function (string $ruleId, Response $response, Document $project, Database $dbForConsole) { - $rule = $dbForConsole->getDocument('rules', $ruleId); + ->inject('dbForPlatform') + ->action(function (string $ruleId, Response $response, Document $project, Database $dbForPlatform) { + $rule = $dbForPlatform->getDocument('rules', $ruleId); if ($rule->isEmpty() || $rule->getAttribute('projectInternalId') !== $project->getInternalId()) { throw new Exception(Exception::RULE_NOT_FOUND); } - $certificate = $dbForConsole->getDocument('certificates', $rule->getAttribute('certificateId', '')); + $certificate = $dbForPlatform->getDocument('certificates', $rule->getAttribute('certificateId', '')); $rule->setAttribute('logs', $certificate->getAttribute('logs', '')); $rule->setAttribute('renewAt', $certificate->getAttribute('renewDate', '')); @@ -241,31 +291,39 @@ App::delete('/v1/proxy/rules/:ruleId') ->groups(['api', 'proxy']) - ->desc('Delete Rule') + ->desc('Delete rule') ->label('scope', 'rules.write') ->label('event', 'rules.[ruleId].delete') ->label('audits.event', 'rules.delete') ->label('audits.resource', 'rule/{request.ruleId}') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'proxy') - ->label('sdk.method', 'deleteRule') - ->label('sdk.description', '/docs/references/proxy/delete-rule.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'proxy', + group: null, + name: 'deleteRule', + description: '/docs/references/proxy/delete-rule.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('ruleId', '', new UID(), 'Rule ID.') ->inject('response') ->inject('project') - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('queueForDeletes') ->inject('queueForEvents') - ->action(function (string $ruleId, Response $response, Document $project, Database $dbForConsole, Delete $queueForDeletes, Event $queueForEvents) { - $rule = $dbForConsole->getDocument('rules', $ruleId); + ->action(function (string $ruleId, Response $response, Document $project, Database $dbForPlatform, Delete $queueForDeletes, Event $queueForEvents) { + $rule = $dbForPlatform->getDocument('rules', $ruleId); if ($rule->isEmpty() || $rule->getAttribute('projectInternalId') !== $project->getInternalId()) { throw new Exception(Exception::RULE_NOT_FOUND); } - $dbForConsole->deleteDocument('rules', $rule->getId()); + $dbForPlatform->deleteDocument('rules', $rule->getId()); $queueForDeletes ->setType(DELETE_TYPE_DOCUMENT) @@ -277,27 +335,34 @@ }); App::patch('/v1/proxy/rules/:ruleId/verification') - ->desc('Update Rule Verification Status') + ->desc('Update rule verification status') ->groups(['api', 'proxy']) ->label('scope', 'rules.write') ->label('event', 'rules.[ruleId].update') ->label('audits.event', 'rule.update') ->label('audits.resource', 'rule/{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'proxy') - ->label('sdk.method', 'updateRuleVerification') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROXY_RULE) + ->label('sdk', new Method( + namespace: 'proxy', + group: null, + name: 'updateRuleVerification', + description: '/docs/references/proxy/update-rule-verification.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROXY_RULE, + ) + ] + )) ->param('ruleId', '', new UID(), 'Rule ID.') ->inject('response') ->inject('queueForCertificates') ->inject('queueForEvents') ->inject('project') - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('log') - ->action(function (string $ruleId, Response $response, Certificate $queueForCertificates, Event $queueForEvents, Document $project, Database $dbForConsole, Log $log) { - $rule = $dbForConsole->getDocument('rules', $ruleId); + ->action(function (string $ruleId, Response $response, Certificate $queueForCertificates, Event $queueForEvents, Document $project, Database $dbForPlatform, Log $log) { + $rule = $dbForPlatform->getDocument('rules', $ruleId); if ($rule->isEmpty() || $rule->getAttribute('projectInternalId') !== $project->getInternalId()) { throw new Exception(Exception::RULE_NOT_FOUND); @@ -327,7 +392,7 @@ throw new Exception(Exception::RULE_VERIFICATION_FAILED); } - $dbForConsole->updateDocument('rules', $rule->getId(), $rule->setAttribute('status', 'verifying')); + $dbForPlatform->updateDocument('rules', $rule->getId(), $rule->setAttribute('status', 'verifying')); // Issue a TLS certificate when domain is verified $queueForCertificates @@ -338,7 +403,7 @@ $queueForEvents->setParam('ruleId', $rule->getId()); - $certificate = $dbForConsole->getDocument('certificates', $rule->getAttribute('certificateId', '')); + $certificate = $dbForPlatform->getDocument('certificates', $rule->getAttribute('certificateId', '')); $rule->setAttribute('logs', $certificate->getAttribute('logs', '')); $response->dynamic($rule, Response::MODEL_PROXY_RULE); diff --git a/app/controllers/api/storage.php b/app/controllers/api/storage.php index b080066653a..4a158bb68e4 100644 --- a/app/controllers/api/storage.php +++ b/app/controllers/api/storage.php @@ -8,6 +8,11 @@ use Appwrite\Event\Event; use Appwrite\Extend\Exception; use Appwrite\OpenSSL\OpenSSL; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\MethodType; +use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Database\Validator\CustomId; use Appwrite\Utopia\Database\Validator\Queries\Buckets; use Appwrite\Utopia\Database\Validator\Queries\Files; @@ -15,8 +20,11 @@ use Utopia\App; use Utopia\Config\Config; use Utopia\Database\Database; +use Utopia\Database\DateTime; use Utopia\Database\Document; -use Utopia\Database\Exception\Duplicate; +use Utopia\Database\Exception\Duplicate as DuplicateException; +use Utopia\Database\Exception\NotFound as NotFoundException; +use Utopia\Database\Exception\Order as OrderException; use Utopia\Database\Exception\Query as QueryException; use Utopia\Database\Helpers\ID; use Utopia\Database\Helpers\Permission; @@ -24,6 +32,7 @@ use Utopia\Database\Query; use Utopia\Database\Validator\Authorization; use Utopia\Database\Validator\Permissions; +use Utopia\Database\Validator\Query\Cursor; use Utopia\Database\Validator\UID; use Utopia\Image\Image; use Utopia\Storage\Compression\Algorithms\GZIP; @@ -48,16 +57,23 @@ ->desc('Create bucket') ->groups(['api', 'storage']) ->label('scope', 'buckets.write') + ->label('resourceType', RESOURCE_TYPE_BUCKETS) ->label('event', 'buckets.[bucketId].create') ->label('audits.event', 'bucket.create') ->label('audits.resource', 'bucket/{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'storage') - ->label('sdk.method', 'createBucket') - ->label('sdk.description', '/docs/references/storage/create-bucket.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_BUCKET) + ->label('sdk', new Method( + namespace: 'storage', + group: 'buckets', + name: 'createBucket', + description: '/docs/references/storage/create-bucket.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_BUCKET, + ) + ] + )) ->param('bucketId', '', new CustomId(), 'Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') ->param('name', '', new Text(128), 'Bucket name') ->param('permissions', null, new Permissions(APP_LIMIT_ARRAY_PARAMS_SIZE), 'An array of permission strings. By default, no user is granted with any permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).', true) @@ -65,19 +81,20 @@ ->param('enabled', true, new Boolean(true), 'Is bucket enabled? When set to \'disabled\', users cannot access the files in this bucket but Server SDKs with and API key can still access the bucket. No files are lost when this is toggled.', true) ->param('maximumFileSize', fn (array $plan) => empty($plan['fileSize']) ? (int) System::getEnv('_APP_STORAGE_LIMIT', 0) : $plan['fileSize'] * 1000 * 1000, fn (array $plan) => new Range(1, empty($plan['fileSize']) ? (int) System::getEnv('_APP_STORAGE_LIMIT', 0) : $plan['fileSize'] * 1000 * 1000), 'Maximum file size allowed in bytes. Maximum allowed value is ' . Storage::human(System::getEnv('_APP_STORAGE_LIMIT', 0), 0) . '.', true, ['plan']) ->param('allowedFileExtensions', [], new ArrayList(new Text(64), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Allowed file extensions. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' extensions are allowed, each 64 characters long.', true) - ->param('compression', Compression::NONE, new WhiteList([Compression::NONE, Compression::GZIP, Compression::ZSTD]), 'Compression algorithm choosen for compression. Can be one of ' . Compression::NONE . ', [' . Compression::GZIP . '](https://en.wikipedia.org/wiki/Gzip), or [' . Compression::ZSTD . '](https://en.wikipedia.org/wiki/Zstd), For file size above ' . Storage::human(APP_STORAGE_READ_BUFFER, 0) . ' compression is skipped even if it\'s enabled', true) + ->param('compression', Compression::NONE, new WhiteList([Compression::NONE, Compression::GZIP, Compression::ZSTD], true), 'Compression algorithm choosen for compression. Can be one of ' . Compression::NONE . ', [' . Compression::GZIP . '](https://en.wikipedia.org/wiki/Gzip), or [' . Compression::ZSTD . '](https://en.wikipedia.org/wiki/Zstd), For file size above ' . Storage::human(APP_STORAGE_READ_BUFFER, 0) . ' compression is skipped even if it\'s enabled', true) ->param('encryption', true, new Boolean(true), 'Is encryption enabled? For file size above ' . Storage::human(APP_STORAGE_READ_BUFFER, 0) . ' encryption is skipped even if it\'s enabled', true) ->param('antivirus', true, new Boolean(true), 'Is virus scanning enabled? For file size above ' . Storage::human(APP_LIMIT_ANTIVIRUS, 0) . ' AntiVirus scanning is skipped even if it\'s enabled', true) ->inject('response') ->inject('dbForProject') ->inject('queueForEvents') - ->action(function (string $bucketId, string $name, ?array $permissions, bool $fileSecurity, bool $enabled, int $maximumFileSize, array $allowedFileExtensions, string $compression, bool $encryption, bool $antivirus, Response $response, Database $dbForProject, Event $queueForEvents) { + ->action(function (string $bucketId, string $name, ?array $permissions, bool $fileSecurity, bool $enabled, int $maximumFileSize, array $allowedFileExtensions, ?string $compression, ?bool $encryption, bool $antivirus, Response $response, Database $dbForProject, Event $queueForEvents) { $bucketId = $bucketId === 'unique()' ? ID::unique() : $bucketId; // Map aggregate permissions into the multiple permissions they represent. $permissions = Permission::aggregate($permissions); - + $compression ??= Compression::NONE; + $encryption ??= true; try { $files = (Config::getParam('collections', [])['buckets'] ?? [])['files'] ?? []; if (empty($files)) { @@ -129,7 +146,7 @@ $bucket = $dbForProject->getDocument('buckets', $bucketId); $dbForProject->createCollection('bucket_' . $bucket->getInternalId(), $attributes, $indexes, permissions: $permissions ?? [], documentSecurity: $fileSecurity); - } catch (Duplicate) { + } catch (DuplicateException) { throw new Exception(Exception::STORAGE_BUCKET_ALREADY_EXISTS); } @@ -146,13 +163,20 @@ ->desc('List buckets') ->groups(['api', 'storage']) ->label('scope', 'buckets.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'storage') - ->label('sdk.method', 'listBuckets') - ->label('sdk.description', '/docs/references/storage/list-buckets.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_BUCKET_LIST) + ->label('resourceType', RESOURCE_TYPE_BUCKETS) + ->label('sdk', new Method( + namespace: 'storage', + group: 'buckets', + name: 'listBuckets', + description: '/docs/references/storage/list-buckets.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_BUCKET_LIST, + ) + ] + )) ->param('queries', [], new Buckets(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Buckets::ALLOWED_ATTRIBUTES), true) ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) ->inject('response') @@ -178,6 +202,12 @@ $cursor = reset($cursor); if ($cursor) { /** @var Query $cursor */ + + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + $bucketId = $cursor->getValue(); $cursorDocument = $dbForProject->getDocument('buckets', $bucketId); @@ -189,10 +219,15 @@ } $filterQueries = Query::groupByType($queries)['filters']; - + try { + $buckets = $dbForProject->find('buckets', $queries); + $total = $dbForProject->count('buckets', $filterQueries, APP_LIMIT_COUNT); + } catch (OrderException $e) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); + } $response->dynamic(new Document([ - 'buckets' => $dbForProject->find('buckets', $queries), - 'total' => $dbForProject->count('buckets', $filterQueries, APP_LIMIT_COUNT), + 'buckets' => $buckets, + 'total' => $total, ]), Response::MODEL_BUCKET_LIST); }); @@ -200,13 +235,20 @@ ->desc('Get bucket') ->groups(['api', 'storage']) ->label('scope', 'buckets.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'storage') - ->label('sdk.method', 'getBucket') - ->label('sdk.description', '/docs/references/storage/get-bucket.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_BUCKET) + ->label('resourceType', RESOURCE_TYPE_BUCKETS) + ->label('sdk', new Method( + namespace: 'storage', + group: 'buckets', + name: 'getBucket', + description: '/docs/references/storage/get-bucket.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_BUCKET, + ) + ] + )) ->param('bucketId', '', new UID(), 'Bucket unique ID.') ->inject('response') ->inject('dbForProject') @@ -225,16 +267,23 @@ ->desc('Update bucket') ->groups(['api', 'storage']) ->label('scope', 'buckets.write') + ->label('resourceType', RESOURCE_TYPE_BUCKETS) ->label('event', 'buckets.[bucketId].update') ->label('audits.event', 'bucket.update') ->label('audits.resource', 'bucket/{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'storage') - ->label('sdk.method', 'updateBucket') - ->label('sdk.description', '/docs/references/storage/update-bucket.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_BUCKET) + ->label('sdk', new Method( + namespace: 'storage', + group: 'buckets', + name: 'updateBucket', + description: '/docs/references/storage/update-bucket.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_BUCKET, + ) + ] + )) ->param('bucketId', '', new UID(), 'Bucket unique ID.') ->param('name', null, new Text(128), 'Bucket name', false) ->param('permissions', null, new Permissions(APP_LIMIT_ARRAY_PARAMS_SIZE), 'An array of permission strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).', true) @@ -242,13 +291,13 @@ ->param('enabled', true, new Boolean(true), 'Is bucket enabled? When set to \'disabled\', users cannot access the files in this bucket but Server SDKs with and API key can still access the bucket. No files are lost when this is toggled.', true) ->param('maximumFileSize', fn (array $plan) => empty($plan['fileSize']) ? (int) System::getEnv('_APP_STORAGE_LIMIT', 0) : $plan['fileSize'] * 1000 * 1000, fn (array $plan) => new Range(1, empty($plan['fileSize']) ? (int) System::getEnv('_APP_STORAGE_LIMIT', 0) : $plan['fileSize'] * 1000 * 1000), 'Maximum file size allowed in bytes. Maximum allowed value is ' . Storage::human(System::getEnv('_APP_STORAGE_LIMIT', 0), 0) . '.', true, ['plan']) ->param('allowedFileExtensions', [], new ArrayList(new Text(64), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Allowed file extensions. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' extensions are allowed, each 64 characters long.', true) - ->param('compression', Compression::NONE, new WhiteList([Compression::NONE, Compression::GZIP, Compression::ZSTD]), 'Compression algorithm choosen for compression. Can be one of ' . Compression::NONE . ', [' . Compression::GZIP . '](https://en.wikipedia.org/wiki/Gzip), or [' . Compression::ZSTD . '](https://en.wikipedia.org/wiki/Zstd), For file size above ' . Storage::human(APP_STORAGE_READ_BUFFER, 0) . ' compression is skipped even if it\'s enabled', true) + ->param('compression', Compression::NONE, new WhiteList([Compression::NONE, Compression::GZIP, Compression::ZSTD], true), 'Compression algorithm choosen for compression. Can be one of ' . Compression::NONE . ', [' . Compression::GZIP . '](https://en.wikipedia.org/wiki/Gzip), or [' . Compression::ZSTD . '](https://en.wikipedia.org/wiki/Zstd), For file size above ' . Storage::human(APP_STORAGE_READ_BUFFER, 0) . ' compression is skipped even if it\'s enabled', true) ->param('encryption', true, new Boolean(true), 'Is encryption enabled? For file size above ' . Storage::human(APP_STORAGE_READ_BUFFER, 0) . ' encryption is skipped even if it\'s enabled', true) ->param('antivirus', true, new Boolean(true), 'Is virus scanning enabled? For file size above ' . Storage::human(APP_LIMIT_ANTIVIRUS, 0) . ' AntiVirus scanning is skipped even if it\'s enabled', true) ->inject('response') ->inject('dbForProject') ->inject('queueForEvents') - ->action(function (string $bucketId, string $name, ?array $permissions, bool $fileSecurity, bool $enabled, ?int $maximumFileSize, array $allowedFileExtensions, string $compression, bool $encryption, bool $antivirus, Response $response, Database $dbForProject, Event $queueForEvents) { + ->action(function (string $bucketId, string $name, ?array $permissions, bool $fileSecurity, bool $enabled, ?int $maximumFileSize, array $allowedFileExtensions, ?string $compression, ?bool $encryption, bool $antivirus, Response $response, Database $dbForProject, Event $queueForEvents) { $bucket = $dbForProject->getDocument('buckets', $bucketId); if ($bucket->isEmpty()) { @@ -261,11 +310,8 @@ $enabled ??= $bucket->getAttribute('enabled', true); $encryption ??= $bucket->getAttribute('encryption', true); $antivirus ??= $bucket->getAttribute('antivirus', true); + $compression ??= $bucket->getAttribute('compression', Compression::NONE); - /** - * Map aggregate permissions into the multiple permissions they represent, - * accounting for the resource type given that some types not allowed specific permissions. - */ // Map aggregate permissions into the multiple permissions they represent. $permissions = Permission::aggregate($permissions); @@ -279,11 +325,11 @@ ->setAttribute('encryption', $encryption) ->setAttribute('compression', $compression) ->setAttribute('antivirus', $antivirus)); + $dbForProject->updateCollection('bucket_' . $bucket->getInternalId(), $permissions, $fileSecurity); $queueForEvents - ->setParam('bucketId', $bucket->getId()) - ; + ->setParam('bucketId', $bucket->getId()); $response->dynamic($bucket, Response::MODEL_BUCKET); }); @@ -292,15 +338,24 @@ ->desc('Delete bucket') ->groups(['api', 'storage']) ->label('scope', 'buckets.write') + ->label('resourceType', RESOURCE_TYPE_BUCKETS) ->label('audits.event', 'bucket.delete') ->label('event', 'buckets.[bucketId].delete') ->label('audits.resource', 'bucket/{request.bucketId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'storage') - ->label('sdk.method', 'deleteBucket') - ->label('sdk.description', '/docs/references/storage/delete-bucket.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'storage', + group: 'buckets', + name: 'deleteBucket', + description: '/docs/references/storage/delete-bucket.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('bucketId', '', new UID(), 'Bucket unique ID.') ->inject('response') ->inject('dbForProject') @@ -330,25 +385,32 @@ }); App::post('/v1/storage/buckets/:bucketId/files') - ->alias('/v1/storage/files', ['bucketId' => 'default']) + ->alias('/v1/storage/files') ->desc('Create file') ->groups(['api', 'storage']) ->label('scope', 'files.write') + ->label('resourceType', RESOURCE_TYPE_BUCKETS) ->label('audits.event', 'file.create') ->label('event', 'buckets.[bucketId].files.[fileId].create') ->label('audits.resource', 'file/{response.$id}') ->label('abuse-key', 'ip:{ip},method:{method},url:{url},userId:{userId},chunkId:{chunkId}') ->label('abuse-limit', APP_LIMIT_WRITE_RATE_DEFAULT) ->label('abuse-time', APP_LIMIT_WRITE_RATE_PERIOD_DEFAULT) - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'storage') - ->label('sdk.method', 'createFile') - ->label('sdk.description', '/docs/references/storage/create-file.md') - ->label('sdk.request.type', 'multipart/form-data') - ->label('sdk.methodType', 'upload') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_FILE) + ->label('sdk', new Method( + namespace: 'storage', + group: 'files', + name: 'createFile', + description: '/docs/references/storage/create-file.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_FILE, + ) + ], + type: MethodType::UPLOAD, + requestType: ContentType::MULTIPART + )) ->param('bucketId', '', new UID(), 'Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).') ->param('fileId', '', new CustomId(), 'File ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') ->param('file', [], new File(), 'Binary file. Appwrite SDKs provide helpers to handle file input. [Learn about file input](https://appwrite.io/docs/products/storage/upload-download#input-file).', skipValidation: true) @@ -657,7 +719,11 @@ 'metadata' => $metadata, ]); - $file = $dbForProject->createDocument('bucket_' . $bucket->getInternalId(), $doc); + try { + $file = $dbForProject->createDocument('bucket_' . $bucket->getInternalId(), $doc); + } catch (NotFoundException) { + throw new Exception(Exception::STORAGE_BUCKET_NOT_FOUND); + } } else { $file = $file ->setAttribute('chunksUploaded', $chunksUploaded) @@ -673,15 +739,19 @@ if (!$validator->isValid($bucket->getCreate())) { throw new Exception(Exception::USER_UNAUTHORIZED); } - $file = Authorization::skip(fn () => $dbForProject->updateDocument('bucket_' . $bucket->getInternalId(), $fileId, $file)); + + try { + $file = Authorization::skip(fn () => $dbForProject->updateDocument('bucket_' . $bucket->getInternalId(), $fileId, $file)); + } catch (NotFoundException) { + throw new Exception(Exception::STORAGE_BUCKET_NOT_FOUND); + } } } $queueForEvents ->setParam('bucketId', $bucket->getId()) ->setParam('fileId', $file->getId()) - ->setContext('bucket', $bucket) - ; + ->setContext('bucket', $bucket); $metadata = null; // was causing leaks as it was passed by reference @@ -691,17 +761,24 @@ }); App::get('/v1/storage/buckets/:bucketId/files') - ->alias('/v1/storage/files', ['bucketId' => 'default']) + ->alias('/v1/storage/files') ->desc('List files') ->groups(['api', 'storage']) ->label('scope', 'files.read') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'storage') - ->label('sdk.method', 'listFiles') - ->label('sdk.description', '/docs/references/storage/list-files.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_FILE_LIST) + ->label('resourceType', RESOURCE_TYPE_BUCKETS) + ->label('sdk', new Method( + namespace: 'storage', + group: 'files', + name: 'listFiles', + description: '/docs/references/storage/list-files.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_FILE_LIST, + ) + ] + )) ->param('bucketId', '', new UID(), 'Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).') ->param('queries', [], new Files(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Files::ALLOWED_ATTRIBUTES), true) ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) @@ -725,11 +802,7 @@ throw new Exception(Exception::USER_UNAUTHORIZED); } - try { - $queries = Query::parseQueries($queries); - } catch (QueryException $e) { - throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); - } + $queries = Query::parseQueries($queries); if (!empty($search)) { $queries[] = Query::search('search', $search); @@ -744,6 +817,12 @@ $cursor = reset($cursor); if ($cursor) { /** @var Query $cursor */ + + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + $fileId = $cursor->getValue(); if ($fileSecurity && !$valid) { @@ -761,12 +840,18 @@ $filterQueries = Query::groupByType($queries)['filters']; - if ($fileSecurity && !$valid) { - $files = $dbForProject->find('bucket_' . $bucket->getInternalId(), $queries); - $total = $dbForProject->count('bucket_' . $bucket->getInternalId(), $filterQueries, APP_LIMIT_COUNT); - } else { - $files = Authorization::skip(fn () => $dbForProject->find('bucket_' . $bucket->getInternalId(), $queries)); - $total = Authorization::skip(fn () => $dbForProject->count('bucket_' . $bucket->getInternalId(), $filterQueries, APP_LIMIT_COUNT)); + try { + if ($fileSecurity && !$valid) { + $files = $dbForProject->find('bucket_' . $bucket->getInternalId(), $queries); + $total = $dbForProject->count('bucket_' . $bucket->getInternalId(), $filterQueries, APP_LIMIT_COUNT); + } else { + $files = Authorization::skip(fn () => $dbForProject->find('bucket_' . $bucket->getInternalId(), $queries)); + $total = Authorization::skip(fn () => $dbForProject->count('bucket_' . $bucket->getInternalId(), $filterQueries, APP_LIMIT_COUNT)); + } + } catch (NotFoundException) { + throw new Exception(Exception::STORAGE_BUCKET_NOT_FOUND); + } catch (OrderException $e) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); } $response->dynamic(new Document([ @@ -776,17 +861,24 @@ }); App::get('/v1/storage/buckets/:bucketId/files/:fileId') - ->alias('/v1/storage/files/:fileId', ['bucketId' => 'default']) + ->alias('/v1/storage/files/:fileId') ->desc('Get file') ->groups(['api', 'storage']) ->label('scope', 'files.read') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'storage') - ->label('sdk.method', 'getFile') - ->label('sdk.description', '/docs/references/storage/get-file.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_FILE) + ->label('resourceType', RESOURCE_TYPE_BUCKETS) + ->label('sdk', new Method( + namespace: 'storage', + group: 'files', + name: 'getFile', + description: '/docs/references/storage/get-file.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_FILE, + ) + ] + )) ->param('bucketId', '', new UID(), 'Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).') ->param('fileId', '', new UID(), 'File ID.') ->inject('response') @@ -823,26 +915,35 @@ }); App::get('/v1/storage/buckets/:bucketId/files/:fileId/preview') - ->alias('/v1/storage/files/:fileId/preview', ['bucketId' => 'default']) + ->alias('/v1/storage/files/:fileId/preview') ->desc('Get file preview') ->groups(['api', 'storage']) ->label('scope', 'files.read') + ->label('resourceType', RESOURCE_TYPE_BUCKETS) ->label('cache', true) ->label('cache.resourceType', 'bucket/{request.bucketId}') ->label('cache.resource', 'file/{request.fileId}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'storage') - ->label('sdk.method', 'getFilePreview') - ->label('sdk.description', '/docs/references/storage/get-file-preview.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_IMAGE) - ->label('sdk.methodType', 'location') + ->label('sdk', new Method( + namespace: 'storage', + group: 'files', + name: 'getFilePreview', + description: '/docs/references/storage/get-file-preview.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_NONE + ) + ], + type: MethodType::LOCATION, + contentType: ContentType::IMAGE + )) ->param('bucketId', '', new UID(), 'Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).') ->param('fileId', '', new UID(), 'File ID') ->param('width', 0, new Range(0, 4000), 'Resize preview image width, Pass an integer between 0 to 4000.', true) ->param('height', 0, new Range(0, 4000), 'Resize preview image height, Pass an integer between 0 to 4000.', true) ->param('gravity', Image::GRAVITY_CENTER, new WhiteList(Image::getGravityTypes()), 'Image crop gravity. Can be one of ' . implode(",", Image::getGravityTypes()), true) - ->param('quality', 100, new Range(0, 100), 'Preview image quality. Pass an integer between 0 to 100. Defaults to 100.', true) + ->param('quality', -1, new Range(-1, 100), 'Preview image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.', true) ->param('borderWidth', 0, new Range(0, 100), 'Preview image border in pixels. Pass an integer between 0 to 100. Defaults to 0.', true) ->param('borderColor', '', new HexColor(), 'Preview image border color. Use a valid HEX color, no # is needed for prefix.', true) ->param('borderRadius', 0, new Range(0, 4000), 'Preview image border radius in pixels. Pass an integer between 0 to 4000.', true) @@ -850,14 +951,11 @@ ->param('rotation', 0, new Range(-360, 360), 'Preview image rotation in degrees. Pass an integer between -360 and 360.', true) ->param('background', '', new HexColor(), 'Preview image background color. Only works with transparent images (png). Use a valid HEX color, no # is needed for prefix.', true) ->param('output', '', new WhiteList(\array_keys(Config::getParam('storage-outputs')), true), 'Output format type (jpeg, jpg, png, gif and webp).', true) - ->inject('request') ->inject('response') - ->inject('project') ->inject('dbForProject') - ->inject('mode') ->inject('deviceForFiles') ->inject('deviceForLocal') - ->action(function (string $bucketId, string $fileId, int $width, int $height, string $gravity, int $quality, int $borderWidth, string $borderColor, int $borderRadius, float $opacity, int $rotation, string $background, string $output, Request $request, Response $response, Document $project, Database $dbForProject, string $mode, Device $deviceForFiles, Device $deviceForLocal) { + ->action(function (string $bucketId, string $fileId, int $width, int $height, string $gravity, int $quality, int $borderWidth, string $borderColor, int $borderRadius, float $opacity, int $rotation, string $background, string $output, Response $response, Database $dbForProject, Device $deviceForFiles, Device $deviceForLocal) { if (!\extension_loaded('imagick')) { throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Imagick extension is missing'); @@ -889,10 +987,6 @@ throw new Exception(Exception::STORAGE_FILE_NOT_FOUND); } - if ((\strpos($request->getAccept(), 'image/webp') === false) && ('webp' === $output)) { // Fallback webp to jpeg when no browser support - $output = 'jpg'; - } - $inputs = Config::getParam('storage-inputs'); $outputs = Config::getParam('storage-outputs'); $fileLogos = Config::getParam('storage-logos'); @@ -902,7 +996,7 @@ $algorithm = $file->getAttribute('algorithm', Compression::NONE); $cipher = $file->getAttribute('openSSLCipher'); $mime = $file->getAttribute('mimeType'); - if (!\in_array($mime, $inputs) || $file->getAttribute('sizeActual') > (int) System::getEnv('_APP_STORAGE_PREVIEW_LIMIT', 20000000)) { + if (!\in_array($mime, $inputs) || $file->getAttribute('sizeActual') > (int) System::getEnv('_APP_STORAGE_PREVIEW_LIMIT', APP_STORAGE_READ_BUFFER)) { if (!\in_array($mime, $inputs)) { $path = (\array_key_exists($mime, $fileLogos)) ? $fileLogos[$mime] : $fileLogos['default']; } else { @@ -989,27 +1083,44 @@ $contentType = (\array_key_exists($output, $outputs)) ? $outputs[$output] : $outputs['jpg']; + //Do not update transformedAt if it's a console user + if (!Auth::isPrivilegedUser(Authorization::getRoles())) { + $transformedAt = $file->getAttribute('transformedAt', ''); + if (DateTime::formatTz(DateTime::addSeconds(new \DateTime(), -APP_PROJECT_ACCESS)) > $transformedAt) { + $file->setAttribute('transformedAt', DateTime::now()); + Authorization::skip(fn () => $dbForProject->updateDocument('bucket_' . $file->getAttribute('bucketInternalId'), $file->getId(), $file)); + } + } + $response - ->addHeader('Expires', \date('D, d M Y H:i:s', \time() + 60 * 60 * 24 * 30) . ' GMT') + ->addHeader('Cache-Control', 'private, max-age=2592000') // 30 days ->setContentType($contentType) - ->file($data) - ; + ->file($data); unset($image); }); App::get('/v1/storage/buckets/:bucketId/files/:fileId/download') - ->alias('/v1/storage/files/:fileId/download', ['bucketId' => 'default']) + ->alias('/v1/storage/files/:fileId/download') ->desc('Get file for download') ->groups(['api', 'storage']) ->label('scope', 'files.read') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'storage') - ->label('sdk.method', 'getFileDownload') - ->label('sdk.description', '/docs/references/storage/get-file-download.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', '*/*') - ->label('sdk.methodType', 'location') + ->label('resourceType', RESOURCE_TYPE_BUCKETS) + ->label('sdk', new Method( + namespace: 'storage', + group: 'files', + name: 'getFileDownload', + description: '/docs/references/storage/get-file-download.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_NONE + ) + ], + type: MethodType::LOCATION, + contentType: ContentType::ANY, + )) ->param('bucketId', '', new UID(), 'Storage bucket ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).') ->param('fileId', '', new UID(), 'File ID.') ->inject('request') @@ -1051,13 +1162,6 @@ throw new Exception(Exception::STORAGE_FILE_NOT_FOUND, 'File not found in ' . $path); } - $response - ->setContentType($file->getAttribute('mimeType')) - ->addHeader('Expires', \date('D, d M Y H:i:s', \time() + (60 * 60 * 24 * 45)) . ' GMT') // 45 days cache - ->addHeader('X-Peak', \memory_get_peak_usage()) - ->addHeader('Content-Disposition', 'attachment; filename="' . $file->getAttribute('name', '') . '"') - ; - $size = $file->getAttribute('sizeOriginal', 0); $rangeHeader = $request->getHeader('range'); @@ -1066,7 +1170,7 @@ $end = $request->getRangeEnd(); $unit = $request->getRangeUnit(); - if ($end === null) { + if ($end === null || $end - $start > APP_STORAGE_READ_BUFFER) { $end = min(($start + MAX_OUTPUT_CHUNK_SIZE - 1), ($size - 1)); } @@ -1081,6 +1185,13 @@ ->setStatusCode(Response::STATUS_CODE_PARTIALCONTENT); } + $response + ->setContentType($file->getAttribute('mimeType')) + ->addHeader('Cache-Control', 'private, max-age=3888000') // 45 days + ->addHeader('X-Peak', \memory_get_peak_usage()) + ->addHeader('Content-Disposition', 'attachment; filename="' . $file->getAttribute('name', '') . '"') + ; + $source = ''; if (!empty($file->getAttribute('openSSLCipher'))) { // Decrypt $source = $deviceForFiles->read($path); @@ -1114,12 +1225,15 @@ if (!empty($source)) { if (!empty($rangeHeader)) { $response->send(substr($source, $start, ($end - $start + 1))); + return; } $response->send($source); + return; } if (!empty($rangeHeader)) { $response->send($deviceForFiles->read($path, $start, ($end - $start + 1))); + return; } if ($size > APP_STORAGE_READ_BUFFER) { @@ -1139,17 +1253,26 @@ }); App::get('/v1/storage/buckets/:bucketId/files/:fileId/view') - ->alias('/v1/storage/files/:fileId/view', ['bucketId' => 'default']) + ->alias('/v1/storage/files/:fileId/view') ->desc('Get file for view') ->groups(['api', 'storage']) ->label('scope', 'files.read') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'storage') - ->label('sdk.method', 'getFileView') - ->label('sdk.description', '/docs/references/storage/get-file-view.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', '*/*') - ->label('sdk.methodType', 'location') + ->label('resourceType', RESOURCE_TYPE_BUCKETS) + ->label('sdk', new Method( + namespace: 'storage', + group: 'files', + name: 'getFileView', + description: '/docs/references/storage/get-file-view.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_NONE, + ) + ], + type: MethodType::LOCATION, + contentType: ContentType::ANY, + )) ->param('bucketId', '', new UID(), 'Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).') ->param('fileId', '', new UID(), 'File ID.') ->inject('response') @@ -1198,15 +1321,6 @@ $contentType = $file->getAttribute('mimeType'); } - $response - ->setContentType($contentType) - ->addHeader('Content-Security-Policy', 'script-src none;') - ->addHeader('X-Content-Type-Options', 'nosniff') - ->addHeader('Content-Disposition', 'inline; filename="' . $file->getAttribute('name', '') . '"') - ->addHeader('Expires', \date('D, d M Y H:i:s', \time() + (60 * 60 * 24 * 45)) . ' GMT') // 45 days cache - ->addHeader('X-Peak', \memory_get_peak_usage()) - ; - $size = $file->getAttribute('sizeOriginal', 0); $rangeHeader = $request->getHeader('range'); @@ -1215,8 +1329,8 @@ $end = $request->getRangeEnd(); $unit = $request->getRangeUnit(); - if ($end === null) { - $end = min(($start + 2000000 - 1), ($size - 1)); + if ($end === null || $end - $start > APP_STORAGE_READ_BUFFER) { + $end = min(($start + APP_STORAGE_READ_BUFFER - 1), ($size - 1)); } if ($unit != 'bytes' || $start >= $end || $end >= $size) { @@ -1230,6 +1344,15 @@ ->setStatusCode(Response::STATUS_CODE_PARTIALCONTENT); } + $response + ->setContentType($contentType) + ->addHeader('Content-Security-Policy', 'script-src none;') + ->addHeader('X-Content-Type-Options', 'nosniff') + ->addHeader('Content-Disposition', 'inline; filename="' . $file->getAttribute('name', '') . '"') + ->addHeader('Cache-Control', 'private, max-age=3888000') // 45 days + ->addHeader('X-Peak', \memory_get_peak_usage()) + ; + $source = ''; if (!empty($file->getAttribute('openSSLCipher'))) { // Decrypt $source = $deviceForFiles->read($path); @@ -1263,6 +1386,7 @@ if (!empty($source)) { if (!empty($rangeHeader)) { $response->send(substr($source, $start, ($end - $start + 1))); + return; } $response->send($source); return; @@ -1294,9 +1418,7 @@ ->desc('Get file for push notification') ->groups(['api', 'storage']) ->label('scope', 'public') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', '*/*') - ->label('sdk.methodType', 'location') + ->label('resourceType', RESOURCE_TYPE_BUCKETS) ->param('bucketId', '', new UID(), 'Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).') ->param('fileId', '', new UID(), 'File ID.') ->param('jwt', '', new Text(2048, 0), 'JSON Web Token to validate', true) @@ -1352,14 +1474,6 @@ $contentType = $file->getAttribute('mimeType'); } - $response - ->setContentType($contentType) - ->addHeader('Content-Security-Policy', 'script-src none;') - ->addHeader('X-Content-Type-Options', 'nosniff') - ->addHeader('Content-Disposition', 'inline; filename="' . $file->getAttribute('name', '') . '"') - ->addHeader('Expires', \date('D, d M Y H:i:s', \time() + (60 * 60 * 24 * 45)) . ' GMT') // 45 days cache - ->addHeader('X-Peak', \memory_get_peak_usage()); - $size = $file->getAttribute('sizeOriginal', 0); $rangeHeader = $request->getHeader('range'); @@ -1368,8 +1482,8 @@ $end = $request->getRangeEnd(); $unit = $request->getRangeUnit(); - if ($end === null) { - $end = min(($start + 2000000 - 1), ($size - 1)); + if ($end === null || $end - $start > APP_STORAGE_READ_BUFFER) { + $end = min(($start + APP_STORAGE_READ_BUFFER - 1), ($size - 1)); } if ($unit != 'bytes' || $start >= $end || $end >= $size) { @@ -1383,6 +1497,14 @@ ->setStatusCode(Response::STATUS_CODE_PARTIALCONTENT); } + $response + ->setContentType($contentType) + ->addHeader('Content-Security-Policy', 'script-src none;') + ->addHeader('X-Content-Type-Options', 'nosniff') + ->addHeader('Content-Disposition', 'inline; filename="' . $file->getAttribute('name', '') . '"') + ->addHeader('Cache-Control', 'private, max-age=3888000') // 45 days + ->addHeader('X-Peak', \memory_get_peak_usage()); + $source = ''; if (!empty($file->getAttribute('openSSLCipher'))) { // Decrypt $source = $deviceForFiles->read($path); @@ -1416,6 +1538,7 @@ if (!empty($source)) { if (!empty($rangeHeader)) { $response->send(substr($source, $start, ($end - $start + 1))); + return; } $response->send($source); return; @@ -1444,23 +1567,30 @@ }); App::put('/v1/storage/buckets/:bucketId/files/:fileId') - ->alias('/v1/storage/files/:fileId', ['bucketId' => 'default']) + ->alias('/v1/storage/files/:fileId') ->desc('Update file') ->groups(['api', 'storage']) ->label('scope', 'files.write') + ->label('resourceType', RESOURCE_TYPE_BUCKETS) ->label('event', 'buckets.[bucketId].files.[fileId].update') ->label('audits.event', 'file.update') ->label('audits.resource', 'file/{response.$id}') ->label('abuse-key', 'ip:{ip},method:{method},url:{url},userId:{userId}') ->label('abuse-limit', APP_LIMIT_WRITE_RATE_DEFAULT) ->label('abuse-time', APP_LIMIT_WRITE_RATE_PERIOD_DEFAULT) - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'storage') - ->label('sdk.method', 'updateFile') - ->label('sdk.description', '/docs/references/storage/update-file.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_FILE) + ->label('sdk', new Method( + namespace: 'storage', + group: 'files', + name: 'updateFile', + description: '/docs/references/storage/update-file.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_FILE, + ) + ] + )) ->param('bucketId', '', new UID(), 'Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).') ->param('fileId', '', new UID(), 'File unique ID.') ->param('name', null, new Text(255), 'Name of the file', true) @@ -1533,10 +1663,14 @@ $file->setAttribute('name', $name); } - if ($fileSecurity && !$valid) { - $file = $dbForProject->updateDocument('bucket_' . $bucket->getInternalId(), $fileId, $file); - } else { - $file = Authorization::skip(fn () => $dbForProject->updateDocument('bucket_' . $bucket->getInternalId(), $fileId, $file)); + try { + if ($fileSecurity && !$valid) { + $file = $dbForProject->updateDocument('bucket_' . $bucket->getInternalId(), $fileId, $file); + } else { + $file = Authorization::skip(fn () => $dbForProject->updateDocument('bucket_' . $bucket->getInternalId(), $fileId, $file)); + } + } catch (NotFoundException) { + throw new Exception(Exception::STORAGE_BUCKET_NOT_FOUND); } $queueForEvents @@ -1549,21 +1683,30 @@ }); App::delete('/v1/storage/buckets/:bucketId/files/:fileId') - ->desc('Delete File') + ->desc('Delete file') ->groups(['api', 'storage']) ->label('scope', 'files.write') + ->label('resourceType', RESOURCE_TYPE_BUCKETS) ->label('event', 'buckets.[bucketId].files.[fileId].delete') ->label('audits.event', 'file.delete') ->label('audits.resource', 'file/{request.fileId}') ->label('abuse-key', 'ip:{ip},method:{method},url:{url},userId:{userId}') ->label('abuse-limit', APP_LIMIT_WRITE_RATE_DEFAULT) ->label('abuse-time', APP_LIMIT_WRITE_RATE_PERIOD_DEFAULT) - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'storage') - ->label('sdk.method', 'deleteFile') - ->label('sdk.description', '/docs/references/storage/delete-file.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'storage', + group: 'files', + name: 'deleteFile', + description: '/docs/references/storage/delete-file.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('bucketId', '', new UID(), 'Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).') ->param('fileId', '', new UID(), 'File ID.') ->inject('response') @@ -1618,10 +1761,14 @@ ->setResource('file/' . $fileId) ; - if ($fileSecurity && !$valid) { - $deleted = $dbForProject->deleteDocument('bucket_' . $bucket->getInternalId(), $fileId); - } else { - $deleted = Authorization::skip(fn () => $dbForProject->deleteDocument('bucket_' . $bucket->getInternalId(), $fileId)); + try { + if ($fileSecurity && !$valid) { + $deleted = $dbForProject->deleteDocument('bucket_' . $bucket->getInternalId(), $fileId); + } else { + $deleted = Authorization::skip(fn () => $dbForProject->deleteDocument('bucket_' . $bucket->getInternalId(), $fileId)); + } + } catch (NotFoundException) { + throw new Exception(Exception::STORAGE_BUCKET_NOT_FOUND); } if (!$deleted) { @@ -1645,12 +1792,20 @@ ->desc('Get storage usage stats') ->groups(['api', 'storage']) ->label('scope', 'files.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'storage') - ->label('sdk.method', 'getUsage') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USAGE_STORAGE) + ->label('resourceType', RESOURCE_TYPE_BUCKETS) + ->label('sdk', new Method( + namespace: 'storage', + group: null, + name: 'getUsage', + description: '/docs/references/storage/get-usage.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USAGE_STORAGE, + ) + ] + )) ->param('range', '30d', new WhiteList(['24h', '30d', '90d'], true), 'Date range.', true) ->inject('response') ->inject('dbForProject') @@ -1724,18 +1879,29 @@ ->desc('Get bucket usage stats') ->groups(['api', 'storage']) ->label('scope', 'files.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'storage') - ->label('sdk.method', 'getBucketUsage') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USAGE_BUCKETS) + ->label('resourceType', RESOURCE_TYPE_BUCKETS) + ->label('sdk', new Method( + namespace: 'storage', + group: null, + name: 'getBucketUsage', + description: '/docs/references/storage/get-bucket-usage.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USAGE_BUCKETS, + ) + ] + )) ->param('bucketId', '', new UID(), 'Bucket ID.') ->param('range', '30d', new WhiteList(['24h', '30d', '90d'], true), 'Date range.', true) ->inject('response') + ->inject('project') ->inject('dbForProject') - ->action(function (string $bucketId, string $range, Response $response, Database $dbForProject) { + ->inject('getLogsDB') + ->action(function (string $bucketId, string $range, Response $response, Document $project, Database $dbForProject, callable $getLogsDB) { + $dbForLogs = call_user_func($getLogsDB, $project); $bucket = $dbForProject->getDocument('buckets', $bucketId); if ($bucket->isEmpty()) { @@ -1748,12 +1914,16 @@ $metrics = [ str_replace('{bucketInternalId}', $bucket->getInternalId(), METRIC_BUCKET_ID_FILES), str_replace('{bucketInternalId}', $bucket->getInternalId(), METRIC_BUCKET_ID_FILES_STORAGE), + str_replace('{bucketInternalId}', $bucket->getInternalId(), METRIC_BUCKET_ID_FILES_IMAGES_TRANSFORMED), ]; - - Authorization::skip(function () use ($dbForProject, $days, $metrics, &$stats, &$total) { + Authorization::skip(function () use ($dbForProject, $dbForLogs, $bucket, $days, $metrics, &$stats) { foreach ($metrics as $metric) { - $result = $dbForProject->findOne('stats', [ + $db = ($metric === str_replace('{bucketInternalId}', $bucket->getInternalId(), METRIC_BUCKET_ID_FILES_IMAGES_TRANSFORMED)) + ? $dbForLogs + : $dbForProject; + + $result = $db->findOne('stats', [ Query::equal('metric', [$metric]), Query::equal('period', ['inf']) ]); @@ -1761,7 +1931,7 @@ $stats[$metric]['total'] = $result['value'] ?? 0; $limit = $days['limit']; $period = $days['period']; - $results = $dbForProject->find('stats', [ + $results = $db->find('stats', [ Query::equal('metric', [$metric]), Query::equal('period', [$period]), Query::limit($limit), @@ -1802,5 +1972,7 @@ 'filesStorageTotal' => $usage[$metrics[1]]['total'], 'files' => $usage[$metrics[0]]['data'], 'storage' => $usage[$metrics[1]]['data'], + 'imageTransformations' => $usage[$metrics[2]]['data'], + 'imageTransformationsTotal' => $usage[$metrics[2]]['total'], ]), Response::MODEL_USAGE_BUCKETS); }); diff --git a/app/controllers/api/teams.php b/app/controllers/api/teams.php index f98cdd721c8..9c383803f2c 100644 --- a/app/controllers/api/teams.php +++ b/app/controllers/api/teams.php @@ -8,16 +8,23 @@ use Appwrite\Event\Event; use Appwrite\Event\Mail; use Appwrite\Event\Messaging; +use Appwrite\Event\StatsUsage; use Appwrite\Extend\Exception; use Appwrite\Network\Validator\Email; use Appwrite\Platform\Workers\Deletes; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; use Appwrite\Template\Template; use Appwrite\Utopia\Database\Validator\CustomId; use Appwrite\Utopia\Database\Validator\Queries\Memberships; use Appwrite\Utopia\Database\Validator\Queries\Teams; use Appwrite\Utopia\Request; use Appwrite\Utopia\Response; +use libphonenumber\PhoneNumberUtil; use MaxMind\Db\Reader; +use Utopia\Abuse\Abuse; use Utopia\App; use Utopia\Audit\Audit; use Utopia\Config\Config; @@ -26,6 +33,7 @@ use Utopia\Database\Document; use Utopia\Database\Exception\Authorization as AuthorizationException; use Utopia\Database\Exception\Duplicate; +use Utopia\Database\Exception\Order as OrderException; use Utopia\Database\Exception\Query as QueryException; use Utopia\Database\Helpers\ID; use Utopia\Database\Helpers\Permission; @@ -34,6 +42,7 @@ use Utopia\Database\Validator\Authorization; use Utopia\Database\Validator\Key; use Utopia\Database\Validator\Queries; +use Utopia\Database\Validator\Query\Cursor; use Utopia\Database\Validator\Query\Limit; use Utopia\Database\Validator\Query\Offset; use Utopia\Database\Validator\UID; @@ -43,6 +52,7 @@ use Utopia\Validator\Assoc; use Utopia\Validator\Host; use Utopia\Validator\Text; +use Utopia\Validator\WhiteList; App::post('/v1/teams') ->desc('Create team') @@ -51,13 +61,19 @@ ->label('scope', 'teams.write') ->label('audits.event', 'team.create') ->label('audits.resource', 'team/{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'teams') - ->label('sdk.method', 'create') - ->label('sdk.description', '/docs/references/teams/create-team.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_TEAM) + ->label('sdk', new Method( + namespace: 'teams', + group: 'teams', + name: 'create', + description: '/docs/references/teams/create-team.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_TEAM, + ) + ] + )) ->param('teamId', '', new CustomId(), 'Team ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') ->param('name', null, new Text(128), 'Team name. Max length: 128 chars.') ->param('roles', ['owner'], new ArrayList(new Key(), APP_LIMIT_ARRAY_PARAMS_SIZE), '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](https://appwrite.io/docs/permissions). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' roles are allowed, each 32 characters long.', true) @@ -136,14 +152,19 @@ ->desc('List teams') ->groups(['api', 'teams']) ->label('scope', 'teams.read') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'teams') - ->label('sdk.method', 'list') - ->label('sdk.description', '/docs/references/teams/list-teams.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_TEAM_LIST) - ->label('sdk.offline.model', '/teams') + ->label('sdk', new Method( + namespace: 'teams', + group: 'teams', + name: 'list', + description: '/docs/references/teams/list-teams.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_TEAM_LIST, + ) + ] + )) ->param('queries', [], new Teams(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Teams::ALLOWED_ATTRIBUTES), true) ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) ->inject('response') @@ -169,6 +190,12 @@ $cursor = reset($cursor); if ($cursor) { /** @var Query $cursor */ + + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + $teamId = $cursor->getValue(); $cursorDocument = $dbForProject->getDocument('teams', $teamId); @@ -180,9 +207,12 @@ } $filterQueries = Query::groupByType($queries)['filters']; - - $results = $dbForProject->find('teams', $queries); - $total = $dbForProject->count('teams', $filterQueries, APP_LIMIT_COUNT); + try { + $results = $dbForProject->find('teams', $queries); + $total = $dbForProject->count('teams', $filterQueries, APP_LIMIT_COUNT); + } catch (OrderException $e) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); + } $response->dynamic(new Document([ 'teams' => $results, @@ -194,15 +224,19 @@ ->desc('Get team') ->groups(['api', 'teams']) ->label('scope', 'teams.read') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'teams') - ->label('sdk.method', 'get') - ->label('sdk.description', '/docs/references/teams/get-team.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_TEAM) - ->label('sdk.offline.model', '/teams') - ->label('sdk.offline.key', '{teamId}') + ->label('sdk', new Method( + namespace: 'teams', + group: 'teams', + name: 'get', + description: '/docs/references/teams/get-team.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_TEAM, + ) + ] + )) ->param('teamId', '', new UID(), 'Team ID.') ->inject('response') ->inject('dbForProject') @@ -221,14 +255,19 @@ ->desc('Get team preferences') ->groups(['api', 'teams']) ->label('scope', 'teams.read') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'teams') - ->label('sdk.method', 'getPrefs') - ->label('sdk.description', '/docs/references/teams/get-team-prefs.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PREFERENCES) - ->label('sdk.offline.model', '/teams/{teamId}/prefs') + ->label('sdk', new Method( + namespace: 'teams', + group: 'teams', + name: 'getPrefs', + description: '/docs/references/teams/get-team-prefs.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PREFERENCES, + ) + ] + )) ->param('teamId', '', new UID(), 'Team ID.') ->inject('response') ->inject('dbForProject') @@ -252,15 +291,19 @@ ->label('scope', 'teams.write') ->label('audits.event', 'team.update') ->label('audits.resource', 'team/{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'teams') - ->label('sdk.method', 'updateName') - ->label('sdk.description', '/docs/references/teams/update-team-name.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_TEAM) - ->label('sdk.offline.model', '/teams') - ->label('sdk.offline.key', '{teamId}') + ->label('sdk', new Method( + namespace: 'teams', + group: 'teams', + name: 'updateName', + description: '/docs/references/teams/update-team-name.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_TEAM, + ) + ] + )) ->param('teamId', '', new UID(), 'Team ID.') ->param('name', null, new Text(128), 'New team name. Max length: 128 chars.') ->inject('requestTimestamp') @@ -279,9 +322,7 @@ ->setAttribute('name', $name) ->setAttribute('search', implode(' ', [$teamId, $name])); - $team = $dbForProject->withRequestTimestamp($requestTimestamp, function () use ($dbForProject, $team) { - return $dbForProject->updateDocument('teams', $team->getId(), $team); - }); + $team = $dbForProject->updateDocument('teams', $team->getId(), $team); $queueForEvents->setParam('teamId', $team->getId()); @@ -296,14 +337,19 @@ ->label('audits.event', 'team.update') ->label('audits.resource', 'team/{response.$id}') ->label('audits.userId', '{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'teams') - ->label('sdk.method', 'updatePrefs') - ->label('sdk.description', '/docs/references/teams/update-team-prefs.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PREFERENCES) - ->label('sdk.offline.model', '/teams/{teamId}/prefs') + ->label('sdk', new Method( + namespace: 'teams', + group: 'teams', + name: 'updatePrefs', + description: '/docs/references/teams/update-team-prefs.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PREFERENCES, + ) + ] + )) ->param('teamId', '', new UID(), 'Team ID.') ->param('prefs', '', new Assoc(), 'Prefs key-value JSON object.') ->inject('response') @@ -331,12 +377,20 @@ ->label('scope', 'teams.write') ->label('audits.event', 'team.delete') ->label('audits.resource', 'team/{request.teamId}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'teams') - ->label('sdk.method', 'delete') - ->label('sdk.description', '/docs/references/teams/delete-team.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'teams', + group: 'teams', + name: 'delete', + description: '/docs/references/teams/delete-team.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('teamId', '', new UID(), 'Team ID.') ->inject('response') ->inject('getProjectDB') @@ -382,19 +436,35 @@ ->label('audits.event', 'membership.create') ->label('audits.resource', 'team/{request.teamId}') ->label('audits.userId', '{request.userId}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'teams') - ->label('sdk.method', 'createMembership') - ->label('sdk.description', '/docs/references/teams/create-team-membership.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MEMBERSHIP) + ->label('sdk', new Method( + namespace: 'teams', + group: 'memberships', + name: 'createMembership', + description: '/docs/references/teams/create-team-membership.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_MEMBERSHIP, + ) + ] + )) ->label('abuse-limit', 10) ->param('teamId', '', new UID(), 'Team ID.') ->param('email', '', new Email(), 'Email of the new team member.', true) ->param('userId', '', new UID(), 'ID of the user to be added to a team.', true) ->param('phone', '', new Phone(), 'Phone number. Format this number with a leading \'+\' and a country code, e.g., +16175551212.', true) - ->param('roles', [], new ArrayList(new Key(), APP_LIMIT_ARRAY_PARAMS_SIZE), '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](https://appwrite.io/docs/permissions). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' roles are allowed, each 32 characters long.') + ->param('roles', [], function (Document $project) { + if ($project->getId() === 'console') { + ; + $roles = array_keys(Config::getParam('roles', [])); + array_filter($roles, function ($role) { + return !in_array($role, [Auth::USER_ROLE_APPS, Auth::USER_ROLE_GUESTS, Auth::USER_ROLE_USERS]); + }); + return new ArrayList(new WhiteList($roles), APP_LIMIT_ARRAY_PARAMS_SIZE); + } + return new ArrayList(new Key(), APP_LIMIT_ARRAY_PARAMS_SIZE); + }, '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](https://appwrite.io/docs/permissions). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' roles are allowed, each 32 characters long.', false, ['project']) ->param('url', '', fn ($clients) => new Host($clients), 'URL to redirect the user back to your app from the invitation email. This parameter is not required when an API key is supplied. 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.', true, ['clients']) // TODO add our own built-in confirm page ->param('name', '', new Text(128), 'Name of the new team member. Max length: 128 chars.', true) ->inject('response') @@ -405,13 +475,16 @@ ->inject('queueForMails') ->inject('queueForMessaging') ->inject('queueForEvents') - ->action(function (string $teamId, string $email, string $userId, string $phone, array $roles, string $url, string $name, Response $response, Document $project, Document $user, Database $dbForProject, Locale $locale, Mail $queueForMails, Messaging $queueForMessaging, Event $queueForEvents) { - $isAPIKey = Auth::isAppUser(Authorization::getRoles()); + ->inject('timelimit') + ->inject('queueForStatsUsage') + ->inject('plan') + ->action(function (string $teamId, string $email, string $userId, string $phone, array $roles, string $url, string $name, Response $response, Document $project, Document $user, Database $dbForProject, Locale $locale, Mail $queueForMails, Messaging $queueForMessaging, Event $queueForEvents, callable $timelimit, StatsUsage $queueForStatsUsage, array $plan) { + $isAppUser = Auth::isAppUser(Authorization::getRoles()); $isPrivilegedUser = Auth::isPrivilegedUser(Authorization::getRoles()); $url = htmlentities($url); if (empty($url)) { - if (!$isAPIKey && !$isPrivilegedUser) { + if (!$isAppUser && !$isPrivilegedUser) { throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'URL is required'); } } @@ -419,15 +492,13 @@ if (empty($userId) && empty($email) && empty($phone)) { throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'At least one of userId, email, or phone is required'); } - $isPrivilegedUser = Auth::isPrivilegedUser(Authorization::getRoles()); - $isAppUser = Auth::isAppUser(Authorization::getRoles()); if (!$isPrivilegedUser && !$isAppUser && empty(System::getEnv('_APP_SMTP_HOST'))) { throw new Exception(Exception::GENERAL_SMTP_DISABLED); } $email = \strtolower($email); - $name = (empty($name)) ? $email : $name; + $name = empty($name) ? $email : $name; $team = $dbForProject->getDocument('teams', $teamId); if ($team->isEmpty()) { @@ -446,20 +517,20 @@ } $email = $invitee->getAttribute('email', ''); $phone = $invitee->getAttribute('phone', ''); - $name = empty($name) ? $invitee->getAttribute('name', '') : $name; + $name = $invitee->getAttribute('name', '') ?: $name; } elseif (!empty($email)) { $invitee = $dbForProject->findOne('users', [Query::equal('email', [$email])]); // Get user by email address - if (!empty($invitee) && !empty($phone) && $invitee->getAttribute('phone', '') !== $phone) { + if (!$invitee->isEmpty() && !empty($phone) && $invitee->getAttribute('phone', '') !== $phone) { throw new Exception(Exception::USER_ALREADY_EXISTS, 'Given email and phone doesn\'t match', 409); } } elseif (!empty($phone)) { $invitee = $dbForProject->findOne('users', [Query::equal('phone', [$phone])]); - if (!empty($invitee) && !empty($email) && $invitee->getAttribute('email', '') !== $email) { + if (!$invitee->isEmpty() && !empty($email) && $invitee->getAttribute('email', '') !== $email) { throw new Exception(Exception::USER_ALREADY_EXISTS, 'Given phone and email doesn\'t match', 409); } } - if (empty($invitee)) { // Create new user if no user with same email found + if ($invitee->isEmpty()) { // Create new user if no user with same email found $limit = $project->getAttribute('auths', [])['limit'] ?? 0; if (!$isPrivilegedUser && !$isAppUser && $limit !== 0 && $project->getId() !== 'console') { // check users limit, console invites are allways allowed. @@ -474,7 +545,7 @@ $identityWithMatchingEmail = $dbForProject->findOne('identities', [ Query::equal('providerEmail', [$email]), ]); - if ($identityWithMatchingEmail !== false && !$identityWithMatchingEmail->isEmpty()) { + if (!$identityWithMatchingEmail->isEmpty()) { throw new Exception(Exception::USER_EMAIL_ALREADY_EXISTS); } @@ -522,49 +593,64 @@ throw new Exception(Exception::USER_UNAUTHORIZED, 'User is not allowed to send invitations for this team'); } + $membership = $dbForProject->findOne('memberships', [ + Query::equal('userInternalId', [$invitee->getInternalId()]), + Query::equal('teamInternalId', [$team->getInternalId()]), + ]); + $secret = Auth::tokenGenerator(); + if ($membership->isEmpty()) { + $membershipId = ID::unique(); + $membership = new Document([ + '$id' => $membershipId, + '$permissions' => [ + Permission::read(Role::any()), + Permission::update(Role::user($invitee->getId())), + Permission::update(Role::team($team->getId(), 'owner')), + Permission::delete(Role::user($invitee->getId())), + Permission::delete(Role::team($team->getId(), 'owner')), + ], + 'userId' => $invitee->getId(), + 'userInternalId' => $invitee->getInternalId(), + 'teamId' => $team->getId(), + 'teamInternalId' => $team->getInternalId(), + 'roles' => $roles, + 'invited' => DateTime::now(), + 'joined' => ($isPrivilegedUser || $isAppUser) ? DateTime::now() : null, + 'confirm' => ($isPrivilegedUser || $isAppUser), + 'secret' => Auth::hash($secret), + 'search' => implode(' ', [$membershipId, $invitee->getId()]) + ]); - $membershipId = ID::unique(); - $membership = new Document([ - '$id' => $membershipId, - '$permissions' => [ - Permission::read(Role::any()), - Permission::update(Role::user($invitee->getId())), - Permission::update(Role::team($team->getId(), 'owner')), - Permission::delete(Role::user($invitee->getId())), - Permission::delete(Role::team($team->getId(), 'owner')), - ], - 'userId' => $invitee->getId(), - 'userInternalId' => $invitee->getInternalId(), - 'teamId' => $team->getId(), - 'teamInternalId' => $team->getInternalId(), - 'roles' => $roles, - 'invited' => DateTime::now(), - 'joined' => ($isPrivilegedUser || $isAppUser) ? DateTime::now() : null, - 'confirm' => ($isPrivilegedUser || $isAppUser), - 'secret' => Auth::hash($secret), - 'search' => implode(' ', [$membershipId, $invitee->getId()]) - ]); + $membership = ($isPrivilegedUser || $isAppUser) ? + Authorization::skip(fn () => $dbForProject->createDocument('memberships', $membership)) : + $dbForProject->createDocument('memberships', $membership); - if ($isPrivilegedUser || $isAppUser) { // Allow admin to create membership - try { - $membership = Authorization::skip(fn () => $dbForProject->createDocument('memberships', $membership)); - } catch (Duplicate $th) { - throw new Exception(Exception::TEAM_INVITE_ALREADY_EXISTS); + if ($isPrivilegedUser || $isAppUser) { + Authorization::skip(fn () => $dbForProject->increaseDocumentAttribute('teams', $team->getId(), 'total', 1)); } - Authorization::skip(fn () => $dbForProject->increaseDocumentAttribute('teams', $team->getId(), 'total', 1)); + } elseif ($membership->getAttribute('confirm') === false) { + $membership->setAttribute('secret', Auth::hash($secret)); + $membership->setAttribute('invited', DateTime::now()); - $dbForProject->purgeCachedDocument('users', $invitee->getId()); - } else { - try { - $membership = $dbForProject->createDocument('memberships', $membership); - } catch (Duplicate $th) { - throw new Exception(Exception::TEAM_INVITE_ALREADY_EXISTS); + if ($isPrivilegedUser || $isAppUser) { + $membership->setAttribute('joined', DateTime::now()); + $membership->setAttribute('confirm', true); } + $membership = ($isPrivilegedUser || $isAppUser) ? + Authorization::skip(fn () => $dbForProject->updateDocument('memberships', $membership->getId(), $membership)) : + $dbForProject->updateDocument('memberships', $membership->getId(), $membership); + } else { + throw new Exception(Exception::MEMBERSHIP_ALREADY_CONFIRMED); + } + + if ($isPrivilegedUser || $isAppUser) { + $dbForProject->purgeCachedDocument('users', $invitee->getId()); + } else { $url = Template::parseURL($url); - $url['query'] = Template::mergeQuery(((isset($url['query'])) ? $url['query'] : ''), ['membershipId' => $membership->getId(), 'userId' => $invitee->getId(), 'secret' => $secret, 'teamId' => $teamId]); + $url['query'] = Template::mergeQuery(((isset($url['query'])) ? $url['query'] : ''), ['membershipId' => $membership->getId(), 'userId' => $invitee->getId(), 'secret' => $secret, 'teamId' => $teamId, 'teamName' => $team->getAttribute('name')]); $url = Template::unParseURL($url); if (!empty($email)) { $projectName = $project->isEmpty() ? 'Console' : $project->getAttribute('name', '[APP-NAME]'); @@ -632,7 +718,7 @@ 'owner' => $user->getAttribute('name'), 'direction' => $locale->getText('settings.direction'), /* {{user}}, {{team}}, {{redirect}} and {{project}} are required in default and custom templates */ - 'user' => $user->getAttribute('name'), + 'user' => $name, 'team' => $team->getAttribute('name'), 'redirect' => $url, 'project' => $projectName @@ -642,10 +728,10 @@ ->setSubject($subject) ->setBody($body) ->setRecipient($invitee->getAttribute('email')) - ->setName($invitee->getAttribute('name')) + ->setName($invitee->getAttribute('name', '')) ->setVariables($emailVariables) - ->trigger() - ; + ->trigger(); + } elseif (!empty($phone)) { if (empty(System::getEnv('_APP_SMS_PROVIDER'))) { throw new Exception(Exception::GENERAL_PHONE_DISABLED, 'Phone provider not configured'); @@ -673,6 +759,27 @@ ->setMessage($messageDoc) ->setRecipients([$phone]) ->setProviderType('SMS'); + + if (isset($plan['authPhone'])) { + $timelimit = $timelimit('organization:{organizationId}', $plan['authPhone'], 30 * 24 * 60 * 60); // 30 days + $timelimit + ->setParam('{organizationId}', $project->getAttribute('teamId')); + + $abuse = new Abuse($timelimit); + if ($abuse->check() && System::getEnv('_APP_OPTIONS_ABUSE', 'enabled') === 'enabled') { + $helper = PhoneNumberUtil::getInstance(); + $countryCode = $helper->parse($phone)->getCountryCode(); + + if (!empty($countryCode)) { + $queueForStatsUsage + ->addMetric(str_replace('{countryCode}', $countryCode, METRIC_AUTH_METHOD_PHONE_COUNTRY_CODE), 1); + } + } + $queueForStatsUsage + ->addMetric(METRIC_AUTH_METHOD_PHONE, 1) + ->setProject($project) + ->trigger(); + } } } @@ -697,21 +804,26 @@ ->desc('List team memberships') ->groups(['api', 'teams']) ->label('scope', 'teams.read') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'teams') - ->label('sdk.method', 'listMemberships') - ->label('sdk.description', '/docs/references/teams/list-team-members.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MEMBERSHIP_LIST) - ->label('sdk.offline.model', '/teams/{teamId}/memberships') + ->label('sdk', new Method( + namespace: 'teams', + group: 'memberships', + name: 'listMemberships', + description: '/docs/references/teams/list-team-members.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_MEMBERSHIP_LIST, + ) + ] + )) ->param('teamId', '', new UID(), 'Team ID.') ->param('queries', [], new Memberships(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Memberships::ALLOWED_ATTRIBUTES), true) ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) ->inject('response') + ->inject('project') ->inject('dbForProject') - ->action(function (string $teamId, array $queries, string $search, Response $response, Database $dbForProject) { - + ->action(function (string $teamId, array $queries, string $search, Response $response, Document $project, Database $dbForProject) { $team = $dbForProject->getDocument('teams', $teamId); if ($team->isEmpty()) { @@ -740,6 +852,13 @@ $cursor = reset($cursor); if ($cursor) { /** @var Query $cursor */ + + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + + $membershipId = $cursor->getValue(); $cursorDocument = $dbForProject->getDocument('memberships', $membershipId); @@ -751,41 +870,68 @@ } $filterQueries = Query::groupByType($queries)['filters']; + try { + $memberships = $dbForProject->find( + collection: 'memberships', + queries: $queries, + ); + $total = $dbForProject->count( + collection: 'memberships', + queries: $filterQueries, + max: APP_LIMIT_COUNT + ); + } catch (OrderException $e) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); + } - $memberships = $dbForProject->find( - collection: 'memberships', - queries: $queries, - ); - - $total = $dbForProject->count( - collection: 'memberships', - queries: $filterQueries, - max: APP_LIMIT_COUNT - ); $memberships = array_filter($memberships, fn (Document $membership) => !empty($membership->getAttribute('userId'))); - $memberships = array_map(function ($membership) use ($dbForProject, $team) { - $user = $dbForProject->getDocument('users', $membership->getAttribute('userId')); + $membershipsPrivacy = [ + 'userName' => $project->getAttribute('auths', [])['membershipsUserName'] ?? true, + 'userEmail' => $project->getAttribute('auths', [])['membershipsUserEmail'] ?? true, + 'mfa' => $project->getAttribute('auths', [])['membershipsMfa'] ?? true, + ]; - $mfa = $user->getAttribute('mfa', false); - if ($mfa) { - $totp = TOTP::getAuthenticatorFromUser($user); - $totpEnabled = $totp && $totp->getAttribute('verified', false); - $emailEnabled = $user->getAttribute('email', false) && $user->getAttribute('emailVerification', false); - $phoneEnabled = $user->getAttribute('phone', false) && $user->getAttribute('phoneVerification', false); + $roles = Authorization::getRoles(); + $isPrivilegedUser = Auth::isPrivilegedUser($roles); + $isAppUser = Auth::isAppUser($roles); - if (!$totpEnabled && !$emailEnabled && !$phoneEnabled) { - $mfa = false; + $membershipsPrivacy = array_map(function ($privacy) use ($isPrivilegedUser, $isAppUser) { + return $privacy || $isPrivilegedUser || $isAppUser; + }, $membershipsPrivacy); + + $memberships = array_map(function ($membership) use ($dbForProject, $team, $membershipsPrivacy) { + $user = !empty(array_filter($membershipsPrivacy)) + ? $dbForProject->getDocument('users', $membership->getAttribute('userId')) + : new Document(); + + if ($membershipsPrivacy['mfa']) { + $mfa = $user->getAttribute('mfa', false); + + if ($mfa) { + $totp = TOTP::getAuthenticatorFromUser($user); + $totpEnabled = $totp && $totp->getAttribute('verified', false); + $emailEnabled = $user->getAttribute('email', false) && $user->getAttribute('emailVerification', false); + $phoneEnabled = $user->getAttribute('phone', false) && $user->getAttribute('phoneVerification', false); + + if (!$totpEnabled && !$emailEnabled && !$phoneEnabled) { + $mfa = false; + } } + + $membership->setAttribute('mfa', $mfa); } - $membership - ->setAttribute('mfa', $mfa) - ->setAttribute('teamName', $team->getAttribute('name')) - ->setAttribute('userName', $user->getAttribute('name')) - ->setAttribute('userEmail', $user->getAttribute('email')) - ; + if ($membershipsPrivacy['userName']) { + $membership->setAttribute('userName', $user->getAttribute('name')); + } + + if ($membershipsPrivacy['userEmail']) { + $membership->setAttribute('userEmail', $user->getAttribute('email')); + } + + $membership->setAttribute('teamName', $team->getAttribute('name')); return $membership; }, $memberships); @@ -800,20 +946,25 @@ ->desc('Get team membership') ->groups(['api', 'teams']) ->label('scope', 'teams.read') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'teams') - ->label('sdk.method', 'getMembership') - ->label('sdk.description', '/docs/references/teams/get-team-member.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MEMBERSHIP) - ->label('sdk.offline.model', '/teams/{teamId}/memberships') - ->label('sdk.offline.key', '{membershipId}') + ->label('sdk', new Method( + namespace: 'teams', + group: 'memberships', + name: 'getMembership', + description: '/docs/references/teams/get-team-member.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_MEMBERSHIP, + ) + ] + )) ->param('teamId', '', new UID(), 'Team ID.') ->param('membershipId', '', new UID(), 'Membership ID.') ->inject('response') + ->inject('project') ->inject('dbForProject') - ->action(function (string $teamId, string $membershipId, Response $response, Database $dbForProject) { + ->action(function (string $teamId, string $membershipId, Response $response, Document $project, Database $dbForProject) { $team = $dbForProject->getDocument('teams', $teamId); @@ -827,27 +978,50 @@ throw new Exception(Exception::MEMBERSHIP_NOT_FOUND); } - $user = $dbForProject->getDocument('users', $membership->getAttribute('userId')); + $membershipsPrivacy = [ + 'userName' => $project->getAttribute('auths', [])['membershipsUserName'] ?? true, + 'userEmail' => $project->getAttribute('auths', [])['membershipsUserEmail'] ?? true, + 'mfa' => $project->getAttribute('auths', [])['membershipsMfa'] ?? true, + ]; + + $roles = Authorization::getRoles(); + $isPrivilegedUser = Auth::isPrivilegedUser($roles); + $isAppUser = Auth::isAppUser($roles); - $mfa = $user->getAttribute('mfa', false); + $membershipsPrivacy = array_map(function ($privacy) use ($isPrivilegedUser, $isAppUser) { + return $privacy || $isPrivilegedUser || $isAppUser; + }, $membershipsPrivacy); - if ($mfa) { - $totp = TOTP::getAuthenticatorFromUser($user); - $totpEnabled = $totp && $totp->getAttribute('verified', false); - $emailEnabled = $user->getAttribute('email', false) && $user->getAttribute('emailVerification', false); - $phoneEnabled = $user->getAttribute('phone', false) && $user->getAttribute('phoneVerification', false); + $user = !empty(array_filter($membershipsPrivacy)) + ? $dbForProject->getDocument('users', $membership->getAttribute('userId')) + : new Document(); + + if ($membershipsPrivacy['mfa']) { + $mfa = $user->getAttribute('mfa', false); - if (!$totpEnabled && !$emailEnabled && !$phoneEnabled) { - $mfa = false; + if ($mfa) { + $totp = TOTP::getAuthenticatorFromUser($user); + $totpEnabled = $totp && $totp->getAttribute('verified', false); + $emailEnabled = $user->getAttribute('email', false) && $user->getAttribute('emailVerification', false); + $phoneEnabled = $user->getAttribute('phone', false) && $user->getAttribute('phoneVerification', false); + + if (!$totpEnabled && !$emailEnabled && !$phoneEnabled) { + $mfa = false; + } } + + $membership->setAttribute('mfa', $mfa); } - $membership - ->setAttribute('mfa', $mfa) - ->setAttribute('teamName', $team->getAttribute('name')) - ->setAttribute('userName', $user->getAttribute('name')) - ->setAttribute('userEmail', $user->getAttribute('email')) - ; + if ($membershipsPrivacy['userName']) { + $membership->setAttribute('userName', $user->getAttribute('name')); + } + + if ($membershipsPrivacy['userEmail']) { + $membership->setAttribute('userEmail', $user->getAttribute('email')); + } + + $membership->setAttribute('teamName', $team->getAttribute('name')); $response->dynamic($membership, Response::MODEL_MEMBERSHIP); }); @@ -859,22 +1033,38 @@ ->label('scope', 'teams.write') ->label('audits.event', 'membership.update') ->label('audits.resource', 'team/{request.teamId}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'teams') - ->label('sdk.method', 'updateMembership') - ->label('sdk.description', '/docs/references/teams/update-team-membership.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MEMBERSHIP) + ->label('sdk', new Method( + namespace: 'teams', + group: 'memberships', + name: 'updateMembership', + description: '/docs/references/teams/update-team-membership.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_MEMBERSHIP, + ) + ] + )) ->param('teamId', '', new UID(), 'Team ID.') ->param('membershipId', '', new UID(), 'Membership ID.') - ->param('roles', [], new ArrayList(new Key(), APP_LIMIT_ARRAY_PARAMS_SIZE), '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 ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' roles are allowed, each 32 characters long.') + ->param('roles', [], function (Document $project) { + if ($project->getId() === 'console') { + $roles = array_keys(Config::getParam('roles', [])); + array_filter($roles, function ($role) { + return !in_array($role, [Auth::USER_ROLE_APPS, Auth::USER_ROLE_GUESTS, Auth::USER_ROLE_USERS]); + }); + return new ArrayList(new WhiteList($roles), APP_LIMIT_ARRAY_PARAMS_SIZE); + } + return new ArrayList(new Key(), APP_LIMIT_ARRAY_PARAMS_SIZE); + }, '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 ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' roles are allowed, each 32 characters long.', false, ['project']) ->inject('request') ->inject('response') ->inject('user') + ->inject('project') ->inject('dbForProject') ->inject('queueForEvents') - ->action(function (string $teamId, string $membershipId, array $roles, Request $request, Response $response, Document $user, Database $dbForProject, Event $queueForEvents) { + ->action(function (string $teamId, string $membershipId, array $roles, Request $request, Response $response, Document $user, Document $project, Database $dbForProject, Event $queueForEvents) { $team = $dbForProject->getDocument('teams', $teamId); if ($team->isEmpty()) { @@ -895,6 +1085,24 @@ $isAppUser = Auth::isAppUser(Authorization::getRoles()); $isOwner = Authorization::isRole('team:' . $team->getId() . '/owner'); + if ($project->getId() === 'console') { + // Quick check: fetch up to 2 owners to determine if only one exists + $ownersCount = $dbForProject->count( + collection: 'memberships', + queries: [ + Query::contains('roles', ['owner']), + Query::equal('teamInternalId', [$team->getInternalId()]) + ], + max: 2 + ); + + // Prevent role change if there's only one owner left, + // the requester is that owner, and the new `$roles` no longer include 'owner'! + if ($ownersCount === 1 && $isOwner && !\in_array('owner', $roles)) { + throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'There must be at least one owner in the organization.'); + } + } + if (!$isOwner && !$isPrivilegedUser && !$isAppUser) { // Not owner, not admin, not app (server) throw new Exception(Exception::USER_UNAUTHORIZED, 'User is not allowed to modify roles'); } @@ -932,13 +1140,19 @@ ->label('audits.event', 'membership.update') ->label('audits.resource', 'team/{request.teamId}') ->label('audits.userId', '{request.userId}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'teams') - ->label('sdk.method', 'updateMembershipStatus') - ->label('sdk.description', '/docs/references/teams/update-team-membership-status.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MEMBERSHIP) + ->label('sdk', new Method( + namespace: 'teams', + group: 'memberships', + name: 'updateMembershipStatus', + description: '/docs/references/teams/update-team-membership-status.md', + auth: [AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_MEMBERSHIP, + ) + ] + )) ->param('teamId', '', new UID(), 'Team ID.') ->param('membershipId', '', new UID(), 'Membership ID.') ->param('userId', '', new UID(), 'User ID.') @@ -977,7 +1191,8 @@ throw new Exception(Exception::TEAM_INVITE_MISMATCH, 'Invite does not belong to current user (' . $user->getAttribute('email') . ')'); } - if ($user->isEmpty()) { + $hasSession = !$user->isEmpty(); + if (!$hasSession) { $user->setAttributes($dbForProject->getDocument('users', $userId)->getArrayCopy()); // Get user } @@ -996,39 +1211,64 @@ Authorization::skip(fn () => $dbForProject->updateDocument('users', $user->getId(), $user->setAttribute('emailVerification', true))); - // Log user in - - Authorization::setRole(Role::user($user->getId())->toString()); - - $detector = new Detector($request->getUserAgent('UNKNOWN')); - $record = $geodb->get($request->getIP()); - $authDuration = $project->getAttribute('auths', [])['duration'] ?? Auth::TOKEN_EXPIRATION_LOGIN_LONG; - $expire = DateTime::addSeconds(new \DateTime(), $authDuration); - $secret = Auth::tokenGenerator(); - $session = new Document(array_merge([ - '$id' => ID::unique(), - 'userId' => $user->getId(), - 'userInternalId' => $user->getInternalId(), - 'provider' => Auth::SESSION_PROVIDER_EMAIL, - 'providerUid' => $user->getAttribute('email'), - 'secret' => Auth::hash($secret), // One way hash encryption to protect DB leak - 'userAgent' => $request->getUserAgent('UNKNOWN'), - 'ip' => $request->getIP(), - 'factors' => ['email'], - 'countryCode' => ($record) ? \strtolower($record['country']['iso_code']) : '--', - 'expire' => DateTime::addSeconds(new \DateTime(), $authDuration) - ], $detector->getOS(), $detector->getClient(), $detector->getDevice())); - - $session = $dbForProject->createDocument('sessions', $session - ->setAttribute('$permissions', [ - Permission::read(Role::user($user->getId())), - Permission::update(Role::user($user->getId())), - Permission::delete(Role::user($user->getId())), - ])); - - $dbForProject->purgeCachedDocument('users', $user->getId()); + // Create session for the user if not logged in + if (!$hasSession) { + Authorization::setRole(Role::user($user->getId())->toString()); + + $detector = new Detector($request->getUserAgent('UNKNOWN')); + $record = $geodb->get($request->getIP()); + $authDuration = $project->getAttribute('auths', [])['duration'] ?? Auth::TOKEN_EXPIRATION_LOGIN_LONG; + $expire = DateTime::addSeconds(new \DateTime(), $authDuration); + $secret = Auth::tokenGenerator(); + $session = new Document(array_merge([ + '$id' => ID::unique(), + '$permissions' => [ + Permission::read(Role::user($user->getId())), + Permission::update(Role::user($user->getId())), + Permission::delete(Role::user($user->getId())), + ], + 'userId' => $user->getId(), + 'userInternalId' => $user->getInternalId(), + 'provider' => Auth::SESSION_PROVIDER_EMAIL, + 'providerUid' => $user->getAttribute('email'), + 'secret' => Auth::hash($secret), // One way hash encryption to protect DB leak + 'userAgent' => $request->getUserAgent('UNKNOWN'), + 'ip' => $request->getIP(), + 'factors' => ['email'], + 'countryCode' => ($record) ? \strtolower($record['country']['iso_code']) : '--', + 'expire' => DateTime::addSeconds(new \DateTime(), $authDuration) + ], $detector->getOS(), $detector->getClient(), $detector->getDevice())); + + $session = $dbForProject->createDocument('sessions', $session); + + Authorization::setRole(Role::user($userId)->toString()); + + if (!Config::getParam('domainVerification')) { + $response->addHeader('X-Fallback-Cookies', \json_encode([Auth::$cookieName => Auth::encodeSession($user->getId(), $secret)])); + } - Authorization::setRole(Role::user($userId)->toString()); + $response + ->addCookie( + name: Auth::$cookieName . '_legacy', + value: Auth::encodeSession($user->getId(), $secret), + expire: (new \DateTime($expire))->getTimestamp(), + path: '/', + domain: Config::getParam('cookieDomain'), + secure: ('https' === $protocol), + httponly: true + ) + ->addCookie( + name: Auth::$cookieName, + value: Auth::encodeSession($user->getId(), $secret), + expire: (new \DateTime($expire))->getTimestamp(), + path: '/', + domain: Config::getParam('cookieDomain'), + secure: ('https' === $protocol), + httponly: true, + sameSite: Config::getParam('cookieSamesite') + ) + ; + } $membership = $dbForProject->updateDocument('memberships', $membership->getId(), $membership); @@ -1042,22 +1282,11 @@ ->setParam('membershipId', $membership->getId()) ; - if (!Config::getParam('domainVerification')) { - $response - ->addHeader('X-Fallback-Cookies', \json_encode([Auth::$cookieName => Auth::encodeSession($user->getId(), $secret)])) - ; - } - - $response - ->addCookie(Auth::$cookieName . '_legacy', Auth::encodeSession($user->getId(), $secret), (new \DateTime($expire))->getTimestamp(), '/', Config::getParam('cookieDomain'), ('https' == $protocol), true, null) - ->addCookie(Auth::$cookieName, Auth::encodeSession($user->getId(), $secret), (new \DateTime($expire))->getTimestamp(), '/', Config::getParam('cookieDomain'), ('https' == $protocol), true, Config::getParam('cookieSamesite')) - ; - $response->dynamic( $membership - ->setAttribute('teamName', $team->getAttribute('name')) - ->setAttribute('userName', $user->getAttribute('name')) - ->setAttribute('userEmail', $user->getAttribute('email')), + ->setAttribute('teamName', $team->getAttribute('name')) + ->setAttribute('userName', $user->getAttribute('name')) + ->setAttribute('userEmail', $user->getAttribute('email')), Response::MODEL_MEMBERSHIP ); }); @@ -1069,12 +1298,20 @@ ->label('scope', 'teams.write') ->label('audits.event', 'membership.delete') ->label('audits.resource', 'team/{request.teamId}') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION, APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_JWT]) - ->label('sdk.namespace', 'teams') - ->label('sdk.method', 'deleteMembership') - ->label('sdk.description', '/docs/references/teams/delete-team-membership.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'teams', + group: 'memberships', + name: 'deleteMembership', + description: '/docs/references/teams/delete-team-membership.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('teamId', '', new UID(), 'Team ID.') ->param('membershipId', '', new UID(), 'Membership ID.') ->inject('response') @@ -1132,13 +1369,19 @@ ->desc('List team logs') ->groups(['api', 'teams']) ->label('scope', 'teams.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'teams') - ->label('sdk.method', 'listLogs') - ->label('sdk.description', '/docs/references/teams/get-team-logs.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_LOG_LIST) + ->label('sdk', new Method( + namespace: 'teams', + group: 'logs', + name: 'listLogs', + description: '/docs/references/teams/get-team-logs.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_LOG_LIST, + ) + ] + )) ->param('teamId', '', new UID(), 'Team ID.') ->param('queries', [], new Queries([new Limit(), new Offset()]), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset', true) ->inject('response') @@ -1159,13 +1402,15 @@ throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); } - $grouped = Query::groupByType($queries); - $limit = $grouped['limit'] ?? APP_LIMIT_COUNT; - $offset = $grouped['offset'] ?? 0; + // Temp fix for logs + $queries[] = Query::or([ + Query::greaterThan('$createdAt', DateTime::format(new \DateTime('2025-02-26T01:30+00:00'))), + Query::lessThan('$createdAt', DateTime::format(new \DateTime('2025-02-13T00:00+00:00'))), + ]); $audit = new Audit($dbForProject); $resource = 'team/' . $team->getId(); - $logs = $audit->getLogsByResource($resource, $limit, $offset); + $logs = $audit->getLogsByResource($resource, $queries); $output = []; @@ -1212,7 +1457,7 @@ } } $response->dynamic(new Document([ - 'total' => $audit->countLogsByResource($resource), + 'total' => $audit->countLogsByResource($resource, $queries), 'logs' => $output, ]), Response::MODEL_LOG_LIST); }); diff --git a/app/controllers/api/users.php b/app/controllers/api/users.php index 081e6a85bdb..bf2435936a2 100644 --- a/app/controllers/api/users.php +++ b/app/controllers/api/users.php @@ -9,12 +9,18 @@ use Appwrite\Auth\Validator\PasswordHistory; use Appwrite\Auth\Validator\PersonalData; use Appwrite\Auth\Validator\Phone; +use Appwrite\Deletes\Identities as DeleteIdentities; +use Appwrite\Deletes\Targets as DeleteTargets; use Appwrite\Detector\Detector; use Appwrite\Event\Delete; use Appwrite\Event\Event; use Appwrite\Extend\Exception; use Appwrite\Hooks\Hooks; use Appwrite\Network\Validator\Email; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Database\Validator\CustomId; use Appwrite\Utopia\Database\Validator\Queries\Identities; use Appwrite\Utopia\Database\Validator\Queries\Targets; @@ -29,6 +35,7 @@ use Utopia\Database\DateTime; use Utopia\Database\Document; use Utopia\Database\Exception\Duplicate; +use Utopia\Database\Exception\Order as OrderException; use Utopia\Database\Exception\Query as QueryException; use Utopia\Database\Helpers\ID; use Utopia\Database\Helpers\Permission; @@ -36,6 +43,7 @@ use Utopia\Database\Query; use Utopia\Database\Validator\Authorization; use Utopia\Database\Validator\Queries; +use Utopia\Database\Validator\Query\Cursor; use Utopia\Database\Validator\Query\Limit; use Utopia\Database\Validator\Query\Offset; use Utopia\Database\Validator\UID; @@ -50,7 +58,7 @@ use Utopia\Validator\WhiteList; /** TODO: Remove function when we move to using utopia/platform */ -function createUser(string $hash, mixed $hashOptions, string $userId, ?string $email, ?string $password, ?string $phone, string $name, Document $project, Database $dbForProject, Event $queueForEvents, Hooks $hooks): Document +function createUser(string $hash, mixed $hashOptions, string $userId, ?string $email, ?string $password, ?string $phone, string $name, Document $project, Database $dbForProject, Hooks $hooks): Document { $plaintextPassword = $password; $hashOptionsObject = (\is_string($hashOptions)) ? \json_decode($hashOptions, true) : $hashOptions; // Cast to JSON array @@ -63,7 +71,7 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e $identityWithMatchingEmail = $dbForProject->findOne('identities', [ Query::equal('providerEmail', [$email]), ]); - if ($identityWithMatchingEmail !== false && !$identityWithMatchingEmail->isEmpty()) { + if (!$identityWithMatchingEmail->isEmpty()) { throw new Exception(Exception::USER_EMAIL_ALREADY_EXISTS); } } @@ -140,7 +148,7 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e $existingTarget = $dbForProject->findOne('targets', [ Query::equal('identifier', [$email]), ]); - if ($existingTarget) { + if (!$existingTarget->isEmpty()) { $user->setAttribute('targets', $existingTarget, Document::SET_TYPE_APPEND); } } @@ -164,7 +172,7 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e $existingTarget = $dbForProject->findOne('targets', [ Query::equal('identifier', [$phone]), ]); - if ($existingTarget) { + if (!$existingTarget->isEmpty()) { $user->setAttribute('targets', $existingTarget, Document::SET_TYPE_APPEND); } } @@ -175,25 +183,28 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e throw new Exception(Exception::USER_ALREADY_EXISTS); } - $queueForEvents->setParam('userId', $user->getId()); - return $user; } App::post('/v1/users') ->desc('Create user') ->groups(['api', 'users']) - ->label('event', 'users.[userId].create') ->label('scope', 'users.write') ->label('audits.event', 'user.create') ->label('audits.resource', 'user/{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'create') - ->label('sdk.description', '/docs/references/users/create-user.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USER) + ->label('sdk', new Method( + namespace: 'users', + group: 'users', + name: 'create', + description: '/docs/references/users/create-user.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_USER, + ) + ] + )) ->param('userId', '', new CustomId(), 'User ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') ->param('email', null, new Email(), 'User email.', true) ->param('phone', null, new Phone(), 'Phone number. Format this number with a leading \'+\' and a country code, e.g., +16175551212.', true) @@ -202,10 +213,9 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->inject('response') ->inject('project') ->inject('dbForProject') - ->inject('queueForEvents') ->inject('hooks') - ->action(function (string $userId, ?string $email, ?string $phone, ?string $password, string $name, Response $response, Document $project, Database $dbForProject, Event $queueForEvents, Hooks $hooks) { - $user = createUser('plaintext', '{}', $userId, $email, $password, $phone, $name, $project, $dbForProject, $queueForEvents, $hooks); + ->action(function (string $userId, ?string $email, ?string $phone, ?string $password, string $name, Response $response, Document $project, Database $dbForProject, Hooks $hooks) { + $user = createUser('plaintext', '{}', $userId, $email, $password, $phone, $name, $project, $dbForProject, $hooks); $response ->setStatusCode(Response::STATUS_CODE_CREATED) ->dynamic($user, Response::MODEL_USER); @@ -214,17 +224,22 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e App::post('/v1/users/bcrypt') ->desc('Create user with bcrypt password') ->groups(['api', 'users']) - ->label('event', 'users.[userId].create') ->label('scope', 'users.write') ->label('audits.event', 'user.create') ->label('audits.resource', 'user/{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'createBcryptUser') - ->label('sdk.description', '/docs/references/users/create-bcrypt-user.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USER) + ->label('sdk', new Method( + namespace: 'users', + group: 'users', + name: 'createBcryptUser', + description: '/docs/references/users/create-bcrypt-user.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_USER, + ) + ] + )) ->param('userId', '', new CustomId(), 'User ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') ->param('email', '', new Email(), 'User email.') ->param('password', '', new Password(), 'User password hashed using Bcrypt.') @@ -232,10 +247,9 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->inject('response') ->inject('project') ->inject('dbForProject') - ->inject('queueForEvents') ->inject('hooks') - ->action(function (string $userId, string $email, string $password, string $name, Response $response, Document $project, Database $dbForProject, Event $queueForEvents, Hooks $hooks) { - $user = createUser('bcrypt', '{}', $userId, $email, $password, null, $name, $project, $dbForProject, $queueForEvents, $hooks); + ->action(function (string $userId, string $email, string $password, string $name, Response $response, Document $project, Database $dbForProject, Hooks $hooks) { + $user = createUser('bcrypt', '{}', $userId, $email, $password, null, $name, $project, $dbForProject, $hooks); $response ->setStatusCode(Response::STATUS_CODE_CREATED) @@ -245,17 +259,22 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e App::post('/v1/users/md5') ->desc('Create user with MD5 password') ->groups(['api', 'users']) - ->label('event', 'users.[userId].create') ->label('scope', 'users.write') ->label('audits.event', 'user.create') ->label('audits.resource', 'user/{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'createMD5User') - ->label('sdk.description', '/docs/references/users/create-md5-user.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USER) + ->label('sdk', new Method( + namespace: 'users', + group: 'users', + name: 'createMD5User', + description: '/docs/references/users/create-md5-user.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_USER, + ) + ] + )) ->param('userId', '', new CustomId(), 'User ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') ->param('email', '', new Email(), 'User email.') ->param('password', '', new Password(), 'User password hashed using MD5.') @@ -263,10 +282,9 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->inject('response') ->inject('project') ->inject('dbForProject') - ->inject('queueForEvents') ->inject('hooks') - ->action(function (string $userId, string $email, string $password, string $name, Response $response, Document $project, Database $dbForProject, Event $queueForEvents, Hooks $hooks) { - $user = createUser('md5', '{}', $userId, $email, $password, null, $name, $project, $dbForProject, $queueForEvents, $hooks); + ->action(function (string $userId, string $email, string $password, string $name, Response $response, Document $project, Database $dbForProject, Hooks $hooks) { + $user = createUser('md5', '{}', $userId, $email, $password, null, $name, $project, $dbForProject, $hooks); $response ->setStatusCode(Response::STATUS_CODE_CREATED) @@ -276,17 +294,22 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e App::post('/v1/users/argon2') ->desc('Create user with Argon2 password') ->groups(['api', 'users']) - ->label('event', 'users.[userId].create') ->label('scope', 'users.write') ->label('audits.event', 'user.create') ->label('audits.resource', 'user/{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'createArgon2User') - ->label('sdk.description', '/docs/references/users/create-argon2-user.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USER) + ->label('sdk', new Method( + namespace: 'users', + group: 'users', + name: 'createArgon2User', + description: '/docs/references/users/create-argon2-user.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_USER, + ) + ] + )) ->param('userId', '', new CustomId(), 'User ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') ->param('email', '', new Email(), 'User email.') ->param('password', '', new Password(), 'User password hashed using Argon2.') @@ -294,10 +317,9 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->inject('response') ->inject('project') ->inject('dbForProject') - ->inject('queueForEvents') ->inject('hooks') - ->action(function (string $userId, string $email, string $password, string $name, Response $response, Document $project, Database $dbForProject, Event $queueForEvents, Hooks $hooks) { - $user = createUser('argon2', '{}', $userId, $email, $password, null, $name, $project, $dbForProject, $queueForEvents, $hooks); + ->action(function (string $userId, string $email, string $password, string $name, Response $response, Document $project, Database $dbForProject, Hooks $hooks) { + $user = createUser('argon2', '{}', $userId, $email, $password, null, $name, $project, $dbForProject, $hooks); $response ->setStatusCode(Response::STATUS_CODE_CREATED) @@ -307,17 +329,22 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e App::post('/v1/users/sha') ->desc('Create user with SHA password') ->groups(['api', 'users']) - ->label('event', 'users.[userId].create') ->label('scope', 'users.write') ->label('audits.event', 'user.create') ->label('audits.resource', 'user/{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'createSHAUser') - ->label('sdk.description', '/docs/references/users/create-sha-user.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USER) + ->label('sdk', new Method( + namespace: 'users', + group: 'users', + name: 'createSHAUser', + description: '/docs/references/users/create-sha-user.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_USER, + ) + ] + )) ->param('userId', '', new CustomId(), 'User ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') ->param('email', '', new Email(), 'User email.') ->param('password', '', new Password(), 'User password hashed using SHA.') @@ -326,16 +353,15 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->inject('response') ->inject('project') ->inject('dbForProject') - ->inject('queueForEvents') ->inject('hooks') - ->action(function (string $userId, string $email, string $password, string $passwordVersion, string $name, Response $response, Document $project, Database $dbForProject, Event $queueForEvents, Hooks $hooks) { + ->action(function (string $userId, string $email, string $password, string $passwordVersion, string $name, Response $response, Document $project, Database $dbForProject, Hooks $hooks) { $options = '{}'; if (!empty($passwordVersion)) { $options = '{"version":"' . $passwordVersion . '"}'; } - $user = createUser('sha', $options, $userId, $email, $password, null, $name, $project, $dbForProject, $queueForEvents, $hooks); + $user = createUser('sha', $options, $userId, $email, $password, null, $name, $project, $dbForProject, $hooks); $response ->setStatusCode(Response::STATUS_CODE_CREATED) @@ -345,17 +371,22 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e App::post('/v1/users/phpass') ->desc('Create user with PHPass password') ->groups(['api', 'users']) - ->label('event', 'users.[userId].create') ->label('scope', 'users.write') ->label('audits.event', 'user.create') ->label('audits.resource', 'user/{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'createPHPassUser') - ->label('sdk.description', '/docs/references/users/create-phpass-user.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USER) + ->label('sdk', new Method( + namespace: 'users', + group: 'users', + name: 'createPHPassUser', + description: '/docs/references/users/create-phpass-user.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_USER, + ) + ] + )) ->param('userId', '', new CustomId(), 'User ID. Choose a custom ID or pass the string `ID.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.') ->param('email', '', new Email(), 'User email.') ->param('password', '', new Password(), 'User password hashed using PHPass.') @@ -363,10 +394,9 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->inject('response') ->inject('project') ->inject('dbForProject') - ->inject('queueForEvents') ->inject('hooks') - ->action(function (string $userId, string $email, string $password, string $name, Response $response, Document $project, Database $dbForProject, Event $queueForEvents, Hooks $hooks) { - $user = createUser('phpass', '{}', $userId, $email, $password, null, $name, $project, $dbForProject, $queueForEvents, $hooks); + ->action(function (string $userId, string $email, string $password, string $name, Response $response, Document $project, Database $dbForProject, Hooks $hooks) { + $user = createUser('phpass', '{}', $userId, $email, $password, null, $name, $project, $dbForProject, $hooks); $response ->setStatusCode(Response::STATUS_CODE_CREATED) @@ -376,17 +406,22 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e App::post('/v1/users/scrypt') ->desc('Create user with Scrypt password') ->groups(['api', 'users']) - ->label('event', 'users.[userId].create') ->label('scope', 'users.write') ->label('audits.event', 'user.create') ->label('audits.resource', 'user/{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'createScryptUser') - ->label('sdk.description', '/docs/references/users/create-scrypt-user.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USER) + ->label('sdk', new Method( + namespace: 'users', + group: 'users', + name: 'createScryptUser', + description: '/docs/references/users/create-scrypt-user.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_USER, + ) + ] + )) ->param('userId', '', new CustomId(), 'User ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') ->param('email', '', new Email(), 'User email.') ->param('password', '', new Password(), 'User password hashed using Scrypt.') @@ -399,9 +434,8 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->inject('response') ->inject('project') ->inject('dbForProject') - ->inject('queueForEvents') ->inject('hooks') - ->action(function (string $userId, string $email, string $password, string $passwordSalt, int $passwordCpu, int $passwordMemory, int $passwordParallel, int $passwordLength, string $name, Response $response, Document $project, Database $dbForProject, Event $queueForEvents, Hooks $hooks) { + ->action(function (string $userId, string $email, string $password, string $passwordSalt, int $passwordCpu, int $passwordMemory, int $passwordParallel, int $passwordLength, string $name, Response $response, Document $project, Database $dbForProject, Hooks $hooks) { $options = [ 'salt' => $passwordSalt, 'costCpu' => $passwordCpu, @@ -410,7 +444,7 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e 'length' => $passwordLength ]; - $user = createUser('scrypt', \json_encode($options), $userId, $email, $password, null, $name, $project, $dbForProject, $queueForEvents, $hooks); + $user = createUser('scrypt', \json_encode($options), $userId, $email, $password, null, $name, $project, $dbForProject, $hooks); $response ->setStatusCode(Response::STATUS_CODE_CREATED) @@ -420,17 +454,22 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e App::post('/v1/users/scrypt-modified') ->desc('Create user with Scrypt modified password') ->groups(['api', 'users']) - ->label('event', 'users.[userId].create') ->label('scope', 'users.write') ->label('audits.event', 'user.create') ->label('audits.resource', 'user/{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'createScryptModifiedUser') - ->label('sdk.description', '/docs/references/users/create-scrypt-modified-user.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USER) + ->label('sdk', new Method( + namespace: 'users', + group: 'users', + name: 'createScryptModifiedUser', + description: '/docs/references/users/create-scrypt-modified-user.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_USER, + ) + ] + )) ->param('userId', '', new CustomId(), 'User ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') ->param('email', '', new Email(), 'User email.') ->param('password', '', new Password(), 'User password hashed using Scrypt Modified.') @@ -441,10 +480,9 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->inject('response') ->inject('project') ->inject('dbForProject') - ->inject('queueForEvents') ->inject('hooks') - ->action(function (string $userId, string $email, string $password, string $passwordSalt, string $passwordSaltSeparator, string $passwordSignerKey, string $name, Response $response, Document $project, Database $dbForProject, Event $queueForEvents, Hooks $hooks) { - $user = createUser('scryptMod', '{"signerKey":"' . $passwordSignerKey . '","saltSeparator":"' . $passwordSaltSeparator . '","salt":"' . $passwordSalt . '"}', $userId, $email, $password, null, $name, $project, $dbForProject, $queueForEvents, $hooks); + ->action(function (string $userId, string $email, string $password, string $passwordSalt, string $passwordSaltSeparator, string $passwordSignerKey, string $name, Response $response, Document $project, Database $dbForProject, Hooks $hooks) { + $user = createUser('scryptMod', '{"signerKey":"' . $passwordSignerKey . '","saltSeparator":"' . $passwordSaltSeparator . '","salt":"' . $passwordSalt . '"}', $userId, $email, $password, null, $name, $project, $dbForProject, $hooks); $response ->setStatusCode(Response::STATUS_CODE_CREATED) @@ -452,19 +490,25 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e }); App::post('/v1/users/:userId/targets') - ->desc('Create User Target') + ->desc('Create user target') ->groups(['api', 'users']) ->label('audits.event', 'target.create') ->label('audits.resource', 'target/response.$id') ->label('event', 'users.[userId].targets.[targetId].create') ->label('scope', 'targets.write') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'createTarget') - ->label('sdk.description', '/docs/references/users/create-target.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_TARGET) + ->label('sdk', new Method( + namespace: 'users', + group: 'targets', + name: 'createTarget', + description: '/docs/references/users/create-target.md', + auth: [AuthType::KEY, AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_TARGET, + ) + ] + )) ->param('targetId', '', new CustomId(), 'Target ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') ->param('userId', '', new UID(), 'User ID.') ->param('providerType', '', new WhiteList([MESSAGE_TYPE_EMAIL, MESSAGE_TYPE_SMS, MESSAGE_TYPE_PUSH]), 'The target provider type. Can be one of the following: `email`, `sms` or `push`.') @@ -544,13 +588,19 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->desc('List users') ->groups(['api', 'users']) ->label('scope', 'users.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'list') - ->label('sdk.description', '/docs/references/users/list-users.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USER_LIST) + ->label('sdk', new Method( + namespace: 'users', + group: 'users', + name: 'list', + description: '/docs/references/users/list-users.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USER_LIST, + ) + ] + )) ->param('queries', [], new Users(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Users::ALLOWED_ATTRIBUTES), true) ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) ->inject('response') @@ -576,6 +626,12 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e $cursor = reset($cursor); if ($cursor) { /** @var Query $cursor */ + + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + $userId = $cursor->getValue(); $cursorDocument = $dbForProject->getDocument('users', $userId); @@ -587,10 +643,15 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e } $filterQueries = Query::groupByType($queries)['filters']; - + try { + $users = $dbForProject->find('users', $queries); + $total = $dbForProject->count('users', $filterQueries, APP_LIMIT_COUNT); + } catch (OrderException $e) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); + } $response->dynamic(new Document([ - 'users' => $dbForProject->find('users', $queries), - 'total' => $dbForProject->count('users', $filterQueries, APP_LIMIT_COUNT), + 'users' => $users, + 'total' => $total, ]), Response::MODEL_USER_LIST); }); @@ -598,13 +659,19 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->desc('Get user') ->groups(['api', 'users']) ->label('scope', 'users.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'get') - ->label('sdk.description', '/docs/references/users/get-user.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USER) + ->label('sdk', new Method( + namespace: 'users', + group: 'users', + name: 'get', + description: '/docs/references/users/get-user.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USER, + ) + ] + )) ->param('userId', '', new UID(), 'User ID.') ->inject('response') ->inject('dbForProject') @@ -623,13 +690,19 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->desc('Get user preferences') ->groups(['api', 'users']) ->label('scope', 'users.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'getPrefs') - ->label('sdk.description', '/docs/references/users/get-user-prefs.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PREFERENCES) + ->label('sdk', new Method( + namespace: 'users', + group: 'users', + name: 'getPrefs', + description: '/docs/references/users/get-user-prefs.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PREFERENCES, + ) + ] + )) ->param('userId', '', new UID(), 'User ID.') ->inject('response') ->inject('dbForProject') @@ -647,16 +720,22 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e }); App::get('/v1/users/:userId/targets/:targetId') - ->desc('Get User Target') + ->desc('Get user target') ->groups(['api', 'users']) ->label('scope', 'targets.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'getTarget') - ->label('sdk.description', '/docs/references/users/get-user-target.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_TARGET) + ->label('sdk', new Method( + namespace: 'users', + group: 'targets', + name: 'getTarget', + description: '/docs/references/users/get-user-target.md', + auth: [AuthType::KEY, AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_TARGET, + ) + ] + )) ->param('userId', '', new UID(), 'User ID.') ->param('targetId', '', new UID(), 'Target ID.') ->inject('response') @@ -682,13 +761,19 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->desc('List user sessions') ->groups(['api', 'users']) ->label('scope', 'users.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'listSessions') - ->label('sdk.description', '/docs/references/users/list-user-sessions.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_SESSION_LIST) + ->label('sdk', new Method( + namespace: 'users', + group: 'sessions', + name: 'listSessions', + description: '/docs/references/users/list-user-sessions.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_SESSION_LIST, + ) + ] + )) ->param('userId', '', new UID(), 'User ID.') ->inject('response') ->inject('dbForProject') @@ -723,13 +808,19 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->desc('List user memberships') ->groups(['api', 'users']) ->label('scope', 'users.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'listMemberships') - ->label('sdk.description', '/docs/references/users/list-user-memberships.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MEMBERSHIP_LIST) + ->label('sdk', new Method( + namespace: 'users', + group: 'memberships', + name: 'listMemberships', + description: '/docs/references/users/list-user-memberships.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_MEMBERSHIP_LIST, + ) + ] + )) ->param('userId', '', new UID(), 'User ID.') ->inject('response') ->inject('dbForProject') @@ -762,13 +853,19 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->desc('List user logs') ->groups(['api', 'users']) ->label('scope', 'users.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'listLogs') - ->label('sdk.description', '/docs/references/users/list-user-logs.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_LOG_LIST) + ->label('sdk', new Method( + namespace: 'users', + group: 'logs', + name: 'listLogs', + description: '/docs/references/users/list-user-logs.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_LOG_LIST, + ) + ] + )) ->param('userId', '', new UID(), 'User ID.') ->param('queries', [], new Queries([new Limit(), new Offset()]), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset', true) ->inject('response') @@ -789,13 +886,15 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); } - $grouped = Query::groupByType($queries); - $limit = $grouped['limit'] ?? APP_LIMIT_COUNT; - $offset = $grouped['offset'] ?? 0; + // Temp fix for logs + $queries[] = Query::or([ + Query::greaterThan('$createdAt', DateTime::format(new \DateTime('2025-02-26T01:30+00:00'))), + Query::lessThan('$createdAt', DateTime::format(new \DateTime('2025-02-13T00:00+00:00'))), + ]); $audit = new Audit($dbForProject); - $logs = $audit->getLogsByUser($user->getInternalId(), $limit, $offset); + $logs = $audit->getLogsByUser($user->getInternalId(), $queries); $output = []; @@ -842,22 +941,28 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e } $response->dynamic(new Document([ - 'total' => $audit->countLogsByUser($user->getInternalId()), + 'total' => $audit->countLogsByUser($user->getInternalId(), $queries), 'logs' => $output, ]), Response::MODEL_LOG_LIST); }); App::get('/v1/users/:userId/targets') - ->desc('List User Targets') + ->desc('List user targets') ->groups(['api', 'users']) ->label('scope', 'targets.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'listTargets') - ->label('sdk.description', '/docs/references/users/list-user-targets.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_TARGET_LIST) + ->label('sdk', new Method( + namespace: 'users', + group: 'targets', + name: 'listTargets', + description: '/docs/references/users/list-user-targets.md', + auth: [AuthType::KEY, AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_TARGET_LIST, + ) + ] + )) ->param('userId', '', new UID(), 'User ID.') ->param('queries', [], new Targets(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Users::ALLOWED_ATTRIBUTES), true) ->inject('response') @@ -886,6 +991,11 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e $cursor = reset($cursor); if ($cursor) { + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + $targetId = $cursor->getValue(); $cursorDocument = $dbForProject->getDocument('targets', $targetId); @@ -895,24 +1005,35 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e $cursor->setValue($cursorDocument); } - + try { + $targets = $dbForProject->find('targets', $queries); + $total = $dbForProject->count('targets', $queries, APP_LIMIT_COUNT); + } catch (OrderException $e) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); + } $response->dynamic(new Document([ - 'targets' => $dbForProject->find('targets', $queries), - 'total' => $dbForProject->count('targets', $queries, APP_LIMIT_COUNT), + 'targets' => $targets, + 'total' => $total, ]), Response::MODEL_TARGET_LIST); }); App::get('/v1/users/identities') - ->desc('List Identities') + ->desc('List identities') ->groups(['api', 'users']) ->label('scope', 'users.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'listIdentities') - ->label('sdk.description', '/docs/references/users/list-identities.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_IDENTITY_LIST) + ->label('sdk', new Method( + namespace: 'users', + group: 'identities', + name: 'listIdentities', + description: '/docs/references/users/list-identities.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_IDENTITY_LIST, + ) + ] + )) ->param('queries', [], new Identities(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Identities::ALLOWED_ATTRIBUTES), true) ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) ->inject('response') @@ -938,6 +1059,12 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e $cursor = reset($cursor); if ($cursor) { /** @var Query $cursor */ + + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + $identityId = $cursor->getValue(); $cursorDocument = $dbForProject->getDocument('identities', $identityId); @@ -949,10 +1076,15 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e } $filterQueries = Query::groupByType($queries)['filters']; - + try { + $identities = $dbForProject->find('identities', $queries); + $total = $dbForProject->count('identities', $filterQueries, APP_LIMIT_COUNT); + } catch (OrderException $e) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); + } $response->dynamic(new Document([ - 'identities' => $dbForProject->find('identities', $queries), - 'total' => $dbForProject->count('identities', $filterQueries, APP_LIMIT_COUNT), + 'identities' => $identities, + 'total' => $total, ]), Response::MODEL_IDENTITY_LIST); }); @@ -964,13 +1096,19 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->label('audits.event', 'user.update') ->label('audits.resource', 'user/{response.$id}') ->label('audits.userId', '{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'updateStatus') - ->label('sdk.description', '/docs/references/users/update-user-status.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USER) + ->label('sdk', new Method( + namespace: 'users', + group: 'users', + name: 'updateStatus', + description: '/docs/references/users/update-user-status.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USER, + ) + ] + )) ->param('userId', '', new UID(), 'User ID.') ->param('status', null, new Boolean(true), 'User Status. To activate the user pass `true` and to block the user pass `false`.') ->inject('response') @@ -999,13 +1137,19 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->label('scope', 'users.write') ->label('audits.event', 'user.update') ->label('audits.resource', 'user/{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'updateLabels') - ->label('sdk.description', '/docs/references/users/update-user-labels.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USER) + ->label('sdk', new Method( + namespace: 'users', + group: 'users', + name: 'updateLabels', + description: '/docs/references/users/update-user-labels.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USER, + ) + ] + )) ->param('userId', '', new UID(), 'User ID.') ->param('labels', [], new ArrayList(new Text(36, allowList: [...Text::NUMBERS, ...Text::ALPHABET_UPPER, ...Text::ALPHABET_LOWER]), APP_LIMIT_ARRAY_LABELS_SIZE), 'Array of user labels. Replaces the previous labels. Maximum of ' . APP_LIMIT_ARRAY_LABELS_SIZE . ' labels are allowed, each up to 36 alphanumeric characters long.') ->inject('response') @@ -1036,13 +1180,19 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->label('scope', 'users.write') ->label('audits.event', 'verification.update') ->label('audits.resource', 'user/{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'updatePhoneVerification') - ->label('sdk.description', '/docs/references/users/update-user-phone-verification.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USER) + ->label('sdk', new Method( + namespace: 'users', + group: 'users', + name: 'updatePhoneVerification', + description: '/docs/references/users/update-user-phone-verification.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USER, + ) + ] + )) ->param('userId', '', new UID(), 'User ID.') ->param('phoneVerification', false, new Boolean(), 'User phone verification status.') ->inject('response') @@ -1072,13 +1222,19 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->label('audits.event', 'user.update') ->label('audits.resource', 'user/{response.$id}') ->label('audits.userId', '{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'updateName') - ->label('sdk.description', '/docs/references/users/update-user-name.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USER) + ->label('sdk', new Method( + namespace: 'users', + group: 'users', + name: 'updateName', + description: '/docs/references/users/update-user-name.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USER, + ) + ] + )) ->param('userId', '', new UID(), 'User ID.') ->param('name', '', new Text(128, 0), 'User name. Max length: 128 chars.') ->inject('response') @@ -1109,13 +1265,19 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->label('audits.event', 'user.update') ->label('audits.resource', 'user/{response.$id}') ->label('audits.userId', '{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'updatePassword') - ->label('sdk.description', '/docs/references/users/update-user-password.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USER) + ->label('sdk', new Method( + namespace: 'users', + group: 'users', + name: 'updatePassword', + description: '/docs/references/users/update-user-password.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USER, + ) + ] + )) ->param('userId', '', new UID(), 'User ID.') ->param('password', '', fn ($project, $passwordsDictionary) => new PasswordDictionary($passwordsDictionary, enabled: $project->getAttribute('auths', [])['passwordDictionary'] ?? false, allowEmpty: true), 'New user password. Must be at least 8 chars.', false, ['project', 'passwordsDictionary']) ->inject('response') @@ -1186,13 +1348,19 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->label('audits.event', 'user.update') ->label('audits.resource', 'user/{response.$id}') ->label('audits.userId', '{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'updateEmail') - ->label('sdk.description', '/docs/references/users/update-user-email.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USER) + ->label('sdk', new Method( + namespace: 'users', + group: 'users', + name: 'updateEmail', + description: '/docs/references/users/update-user-email.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USER, + ) + ] + )) ->param('userId', '', new UID(), 'User ID.') ->param('email', '', new Email(allowEmpty: true), 'User email.') ->inject('response') @@ -1214,7 +1382,7 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e Query::equal('providerEmail', [$email]), Query::notEqual('userInternalId', $user->getInternalId()), ]); - if ($identityWithMatchingEmail !== false && !$identityWithMatchingEmail->isEmpty()) { + if (!$identityWithMatchingEmail->isEmpty()) { throw new Exception(Exception::USER_EMAIL_ALREADY_EXISTS); } @@ -1280,13 +1448,19 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->label('scope', 'users.write') ->label('audits.event', 'user.update') ->label('audits.resource', 'user/{response.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'updatePhone') - ->label('sdk.description', '/docs/references/users/update-user-phone.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USER) + ->label('sdk', new Method( + namespace: 'users', + group: 'users', + name: 'updatePhone', + description: '/docs/references/users/update-user-phone.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USER, + ) + ] + )) ->param('userId', '', new UID(), 'User ID.') ->param('number', '', new Phone(allowEmpty: true), 'User phone number.') ->inject('response') @@ -1364,13 +1538,19 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->label('audits.event', 'verification.update') ->label('audits.resource', 'user/{request.userId}') ->label('audits.userId', '{request.userId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'updateEmailVerification') - ->label('sdk.description', '/docs/references/users/update-user-email-verification.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USER) + ->label('sdk', new Method( + namespace: 'users', + group: 'users', + name: 'updateEmailVerification', + description: '/docs/references/users/update-user-email-verification.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USER, + ) + ] + )) ->param('userId', '', new UID(), 'User ID.') ->param('emailVerification', false, new Boolean(), 'User email verification status.') ->inject('response') @@ -1396,13 +1576,19 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->groups(['api', 'users']) ->label('event', 'users.[userId].update.prefs') ->label('scope', 'users.write') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'updatePrefs') - ->label('sdk.description', '/docs/references/users/update-user-prefs.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PREFERENCES) + ->label('sdk', new Method( + namespace: 'users', + group: 'users', + name: 'updatePrefs', + description: '/docs/references/users/update-user-prefs.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PREFERENCES, + ) + ] + )) ->param('userId', '', new UID(), 'User ID.') ->param('prefs', '', new Assoc(), 'Prefs key-value JSON object.') ->inject('response') @@ -1425,19 +1611,25 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e }); App::patch('/v1/users/:userId/targets/:targetId') - ->desc('Update User target') + ->desc('Update user target') ->groups(['api', 'users']) ->label('audits.event', 'target.update') ->label('audits.resource', 'target/{response.$id}') ->label('event', 'users.[userId].targets.[targetId].update') ->label('scope', 'targets.write') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'updateTarget') - ->label('sdk.description', '/docs/references/users/update-target.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_TARGET) + ->label('sdk', new Method( + namespace: 'users', + group: 'targets', + name: 'updateTarget', + description: '/docs/references/users/update-target.md', + auth: [AuthType::KEY, AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_TARGET, + ) + ] + )) ->param('userId', '', new UID(), 'User ID.') ->param('targetId', '', new UID(), 'Target ID.') ->param('identifier', '', new Text(Database::LENGTH_KEY), 'The target identifier (token, email, phone etc.)', true) @@ -1485,7 +1677,9 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e throw new Exception(Exception::PROVIDER_INCORRECT_TYPE); } - $target->setAttribute('identifier', $identifier); + $target + ->setAttribute('identifier', $identifier) + ->setAttribute('expired', false); } if ($providerId) { @@ -1499,8 +1693,9 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e throw new Exception(Exception::PROVIDER_INCORRECT_TYPE); } - $target->setAttribute('providerId', $provider->getId()); - $target->setAttribute('providerInternalId', $provider->getInternalId()); + $target + ->setAttribute('providerId', $provider->getId()) + ->setAttribute('providerInternalId', $provider->getInternalId()); } if ($name) { @@ -1527,13 +1722,19 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->label('audits.resource', 'user/{response.$id}') ->label('audits.userId', '{response.$id}') ->label('usage.metric', 'users.{scope}.requests.update') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'updateMfa') - ->label('sdk.description', '/docs/references/users/update-user-mfa.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USER) + ->label('sdk', new Method( + namespace: 'users', + group: 'users', + name: 'updateMfa', + description: '/docs/references/users/update-user-mfa.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USER, + ) + ] + )) ->param('userId', '', new UID(), 'User ID.') ->param('mfa', null, new Boolean(), 'Enable or disable MFA.') ->inject('response') @@ -1557,17 +1758,23 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e }); App::get('/v1/users/:userId/mfa/factors') - ->desc('List Factors') + ->desc('List factors') ->groups(['api', 'users']) ->label('scope', 'users.read') ->label('usage.metric', 'users.{scope}.requests.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'listMfaFactors') - ->label('sdk.description', '/docs/references/users/list-mfa-factors.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MFA_FACTORS) + ->label('sdk', new Method( + namespace: 'users', + group: 'mfa', + name: 'listMfaFactors', + description: '/docs/references/users/list-mfa-factors.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_MFA_FACTORS, + ) + ] + )) ->param('userId', '', new UID(), 'User ID.') ->inject('response') ->inject('dbForProject') @@ -1590,17 +1797,23 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e }); App::get('/v1/users/:userId/mfa/recovery-codes') - ->desc('Get MFA Recovery Codes') + ->desc('Get MFA recovery codes') ->groups(['api', 'users']) ->label('scope', 'users.read') ->label('usage.metric', 'users.{scope}.requests.read') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'getMfaRecoveryCodes') - ->label('sdk.description', '/docs/references/users/get-mfa-recovery-codes.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MFA_RECOVERY_CODES) + ->label('sdk', new Method( + namespace: 'users', + group: 'mfa', + name: 'getMfaRecoveryCodes', + description: '/docs/references/users/get-mfa-recovery-codes.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_MFA_RECOVERY_CODES, + ) + ] + )) ->param('userId', '', new UID(), 'User ID.') ->inject('response') ->inject('dbForProject') @@ -1625,7 +1838,7 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e }); App::patch('/v1/users/:userId/mfa/recovery-codes') - ->desc('Create MFA Recovery Codes') + ->desc('Create MFA recovery codes') ->groups(['api', 'users']) ->label('event', 'users.[userId].create.mfa.recovery-codes') ->label('scope', 'users.write') @@ -1633,13 +1846,19 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->label('audits.resource', 'user/{response.$id}') ->label('audits.userId', '{response.$id}') ->label('usage.metric', 'users.{scope}.requests.update') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'createMfaRecoveryCodes') - ->label('sdk.description', '/docs/references/users/create-mfa-recovery-codes.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MFA_RECOVERY_CODES) + ->label('sdk', new Method( + namespace: 'users', + group: 'mfa', + name: 'createMfaRecoveryCodes', + description: '/docs/references/users/create-mfa-recovery-codes.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_MFA_RECOVERY_CODES, + ) + ] + )) ->param('userId', '', new UID(), 'User ID.') ->inject('response') ->inject('dbForProject') @@ -1671,7 +1890,7 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e }); App::put('/v1/users/:userId/mfa/recovery-codes') - ->desc('Regenerate MFA Recovery Codes') + ->desc('Update MFA recovery codes (regenerate)') ->groups(['api', 'users']) ->label('event', 'users.[userId].update.mfa.recovery-codes') ->label('scope', 'users.write') @@ -1679,13 +1898,19 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->label('audits.resource', 'user/{response.$id}') ->label('audits.userId', '{response.$id}') ->label('usage.metric', 'users.{scope}.requests.update') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'updateMfaRecoveryCodes') - ->label('sdk.description', '/docs/references/users/update-mfa-recovery-codes.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_MFA_RECOVERY_CODES) + ->label('sdk', new Method( + namespace: 'users', + group: 'mfa', + name: 'updateMfaRecoveryCodes', + description: '/docs/references/users/update-mfa-recovery-codes.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_MFA_RECOVERY_CODES, + ) + ] + )) ->param('userId', '', new UID(), 'User ID.') ->inject('response') ->inject('dbForProject') @@ -1716,7 +1941,7 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e }); App::delete('/v1/users/:userId/mfa/authenticators/:type') - ->desc('Delete Authenticator') + ->desc('Delete authenticator') ->groups(['api', 'users']) ->label('event', 'users.[userId].delete.mfa') ->label('scope', 'users.write') @@ -1724,13 +1949,20 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->label('audits.resource', 'user/{response.$id}') ->label('audits.userId', '{response.$id}') ->label('usage.metric', 'users.{scope}.requests.update') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'deleteMfaAuthenticator') - ->label('sdk.description', '/docs/references/users/delete-mfa-authenticator.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USER) + ->label('sdk', new Method( + namespace: 'users', + group: 'mfa', + name: 'deleteMfaAuthenticator', + description: '/docs/references/users/delete-mfa-authenticator.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('userId', '', new UID(), 'User ID.') ->param('type', null, new WhiteList([Type::TOTP]), 'Type of authenticator.') ->inject('response') @@ -1765,13 +1997,19 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->label('audits.event', 'session.create') ->label('audits.resource', 'user/{request.userId}') ->label('usage.metric', 'sessions.{scope}.requests.create') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'createSession') - ->label('sdk.description', '/docs/references/users/create-session.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_SESSION) + ->label('sdk', new Method( + namespace: 'users', + group: 'sessions', + name: 'createSession', + description: '/docs/references/users/create-session.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_SESSION, + ) + ] + )) ->param('userId', '', new CustomId(), 'User ID. Choose a custom ID or generate a random ID with `ID.unique()`. 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.') ->inject('request') ->inject('response') @@ -1801,6 +2039,7 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e 'provider' => Auth::SESSION_PROVIDER_SERVER, 'secret' => Auth::hash($secret), // One way hash encryption to protect DB leak 'userAgent' => $request->getUserAgent('UNKNOWN'), + 'factors' => ['server'], 'ip' => $request->getIP(), 'countryCode' => ($record) ? \strtolower($record['country']['iso_code']) : '--', 'expire' => $expire, @@ -1810,11 +2049,20 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e $detector->getDevice() )); + $session->setAttribute('$permissions', [ + Permission::read(Role::user($user->getId())), + Permission::update(Role::user($user->getId())), + Permission::delete(Role::user($user->getId())), + ]); + $countryName = $locale->getText('countries.' . strtolower($session->getAttribute('countryCode')), $locale->getText('locale.country.unknown')); $session = $dbForProject->createDocument('sessions', $session); + + $dbForProject->purgeCachedDocument('users', $user->getId()); + $session - ->setAttribute('secret', $secret) + ->setAttribute('secret', Auth::encodeSession($user->getId(), $secret)) ->setAttribute('countryName', $countryName); $queueForEvents @@ -1834,13 +2082,19 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->label('scope', 'users.write') ->label('audits.event', 'tokens.create') ->label('audits.resource', 'user/{request.userId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'createToken') - ->label('sdk.description', '/docs/references/users/create-token.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_TOKEN) + ->label('sdk', new Method( + namespace: 'users', + group: 'sessions', + name: 'createToken', + description: '/docs/references/users/create-token.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_TOKEN, + ) + ] + )) ->param('userId', '', new UID(), 'User ID.') ->param('length', 6, new Range(4, 128), 'Token length in characters. The default length is 6 characters', true) ->param('expire', Auth::TOKEN_EXPIRATION_GENERIC, new Range(60, Auth::TOKEN_EXPIRATION_LOGIN_LONG), 'Token expiration period in seconds. The default expiration is 15 minutes.', true) @@ -1891,12 +2145,20 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->label('scope', 'users.write') ->label('audits.event', 'session.delete') ->label('audits.resource', 'user/{request.userId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'deleteSession') - ->label('sdk.description', '/docs/references/users/delete-user-session.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'users', + group: 'sessions', + name: 'deleteSession', + description: '/docs/references/users/delete-user-session.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('userId', '', new UID(), 'User ID.') ->param('sessionId', '', new UID(), 'Session ID.') ->inject('response') @@ -1934,12 +2196,20 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->label('scope', 'users.write') ->label('audits.event', 'session.delete') ->label('audits.resource', 'user/{user.$id}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'deleteSessions') - ->label('sdk.description', '/docs/references/users/delete-user-sessions.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'users', + group: 'sessions', + name: 'deleteSessions', + description: '/docs/references/users/delete-user-sessions.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('userId', '', new UID(), 'User ID.') ->inject('response') ->inject('dbForProject') @@ -1976,12 +2246,20 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->label('scope', 'users.write') ->label('audits.event', 'user.delete') ->label('audits.resource', 'user/{request.userId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'delete') - ->label('sdk.description', '/docs/references/users/delete.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'users', + group: 'users', + name: 'delete', + description: '/docs/references/users/delete.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('userId', '', new UID(), 'User ID.') ->inject('response') ->inject('dbForProject') @@ -1999,6 +2277,8 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e $clone = clone $user; $dbForProject->deleteDocument('users', $userId); + DeleteIdentities::delete($dbForProject, Query::equal('userInternalId', [$user->getInternalId()])); + DeleteTargets::delete($dbForProject, Query::equal('userInternalId', [$user->getInternalId()])); $queueForDeletes ->setType(DELETE_TYPE_DOCUMENT) @@ -2018,13 +2298,20 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->label('audits.resource', 'target/{request.$targetId}') ->label('event', 'users.[userId].targets.[targetId].delete') ->label('scope', 'targets.write') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY, APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'deleteTarget') - ->label('sdk.description', '/docs/references/users/delete-target.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'users', + group: 'targets', + name: 'deleteTarget', + description: '/docs/references/users/delete-target.md', + auth: [AuthType::KEY, AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('userId', '', new UID(), 'User ID.') ->param('targetId', '', new UID(), 'Target ID.') ->inject('queueForEvents') @@ -2069,12 +2356,20 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->label('scope', 'users.write') ->label('audits.event', 'identity.delete') ->label('audits.resource', 'identity/{request.$identityId}') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'deleteIdentity') - ->label('sdk.description', '/docs/references/users/delete-identity.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'users', + group: 'identities', + name: 'deleteIdentity', + description: '/docs/references/users/delete-identity.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE, + )) ->param('identityId', '', new UID(), 'Identity ID.') ->inject('response') ->inject('dbForProject') @@ -2101,13 +2396,19 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->desc('Create user JWT') ->groups(['api', 'users']) ->label('scope', 'users.write') - ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'createJWT') - ->label('sdk.description', '/docs/references/users/create-user-jwt.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_JWT) + ->label('sdk', new Method( + namespace: 'users', + group: 'sessions', + name: 'createJWT', + description: '/docs/references/users/create-user-jwt.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_JWT, + ) + ] + )) ->param('userId', '', new UID(), 'User ID.') ->param('sessionId', '', new UID(), 'Session ID. Use the string \'recent\' to use the most recent session. Defaults to the most recent session.', true) ->param('duration', 900, new Range(0, 3600), 'Time in seconds before JWT expires. Default duration is 900 seconds, and maximum is 3600 seconds.', true) @@ -2151,12 +2452,19 @@ function createUser(string $hash, mixed $hashOptions, string $userId, ?string $e ->desc('Get users usage stats') ->groups(['api', 'users']) ->label('scope', 'users.read') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.namespace', 'users') - ->label('sdk.method', 'getUsage') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_USAGE_USERS) + ->label('sdk', new Method( + namespace: 'users', + group: null, + name: 'getUsage', + description: '/docs/references/users/get-usage.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_USAGE_USERS, + ) + ] + )) ->param('range', '30d', new WhiteList(['24h', '30d', '90d'], true), 'Date range.', true) ->inject('response') ->inject('dbForProject') diff --git a/app/controllers/api/vcs.php b/app/controllers/api/vcs.php index 9610f44ace0..d94279beace 100644 --- a/app/controllers/api/vcs.php +++ b/app/controllers/api/vcs.php @@ -4,6 +4,11 @@ use Appwrite\Event\Build; use Appwrite\Event\Delete; use Appwrite\Extend\Exception; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\MethodType; +use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Database\Validator\Queries\Installations; use Appwrite\Utopia\Request; use Appwrite\Utopia\Response; @@ -14,12 +19,14 @@ use Utopia\Database\Database; use Utopia\Database\DateTime; use Utopia\Database\Document; +use Utopia\Database\Exception\Order as OrderException; use Utopia\Database\Exception\Query as QueryException; use Utopia\Database\Helpers\ID; use Utopia\Database\Helpers\Permission; use Utopia\Database\Helpers\Role; use Utopia\Database\Query; use Utopia\Database\Validator\Authorization; +use Utopia\Database\Validator\Query\Cursor; use Utopia\Detector\Adapter\Bun; use Utopia\Detector\Adapter\CPP; use Utopia\Detector\Adapter\Dart; @@ -41,7 +48,7 @@ use function Swoole\Coroutine\batch; -$createGitDeployments = function (GitHub $github, string $providerInstallationId, array $repositories, string $providerBranch, string $providerBranchUrl, string $providerRepositoryName, string $providerRepositoryUrl, string $providerRepositoryOwner, string $providerCommitHash, string $providerCommitAuthor, string $providerCommitAuthorUrl, string $providerCommitMessage, string $providerCommitUrl, string $providerPullRequestId, bool $external, Database $dbForConsole, Build $queueForBuilds, callable $getProjectDB, Request $request) { +$createGitDeployments = function (GitHub $github, string $providerInstallationId, array $repositories, string $providerBranch, string $providerBranchUrl, string $providerRepositoryName, string $providerRepositoryUrl, string $providerRepositoryOwner, string $providerCommitHash, string $providerCommitAuthor, string $providerCommitAuthorUrl, string $providerCommitMessage, string $providerCommitUrl, string $providerPullRequestId, bool $external, Database $dbForPlatform, Build $queueForBuilds, callable $getProjectDB, Request $request) { $errors = []; foreach ($repositories as $resource) { try { @@ -52,7 +59,7 @@ } $projectId = $resource->getAttribute('projectId'); - $project = Authorization::skip(fn () => $dbForConsole->getDocument('projects', $projectId)); + $project = Authorization::skip(fn () => $dbForPlatform->getDocument('projects', $projectId)); $dbForProject = $getProjectDB($project); $functionId = $resource->getAttribute('resourceId'); @@ -103,13 +110,13 @@ $latestCommentId = ''; if (!empty($providerPullRequestId) && $function->getAttribute('providerSilentMode', false) === false) { - $latestComment = Authorization::skip(fn () => $dbForConsole->findOne('vcsComments', [ + $latestComment = Authorization::skip(fn () => $dbForPlatform->findOne('vcsComments', [ Query::equal('providerRepositoryId', [$providerRepositoryId]), Query::equal('providerPullRequestId', [$providerPullRequestId]), Query::orderDesc('$createdAt'), ])); - if ($latestComment !== false && !$latestComment->isEmpty()) { + if (!$latestComment->isEmpty()) { $latestCommentId = $latestComment->getAttribute('providerCommentId', ''); $comment = new Comment(); $comment->parseComment($github->getComment($owner, $repositoryName, $latestCommentId)); @@ -124,7 +131,7 @@ if (!empty($latestCommentId)) { $teamId = $project->getAttribute('teamId', ''); - $latestComment = Authorization::skip(fn () => $dbForConsole->createDocument('vcsComments', new Document([ + $latestComment = Authorization::skip(fn () => $dbForPlatform->createDocument('vcsComments', new Document([ '$id' => ID::unique(), '$permissions' => [ Permission::read(Role::team(ID::custom($teamId))), @@ -145,7 +152,7 @@ } } } elseif (!empty($providerBranch)) { - $latestComments = Authorization::skip(fn () => $dbForConsole->find('vcsComments', [ + $latestComments = Authorization::skip(fn () => $dbForPlatform->find('vcsComments', [ Query::equal('providerRepositoryId', [$providerRepositoryId]), Query::equal('providerBranch', [$providerBranch]), Query::orderDesc('$createdAt'), @@ -263,18 +270,26 @@ }; App::get('/v1/vcs/github/authorize') - ->desc('Install GitHub App') + ->desc('Create GitHub app installation') ->groups(['api', 'vcs']) ->label('scope', 'vcs.read') - ->label('sdk.namespace', 'vcs') ->label('error', __DIR__ . '/../../views/general/error.phtml') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.method', 'createGitHubInstallation') - ->label('sdk.description', '') - ->label('sdk.response.code', Response::STATUS_CODE_MOVED_PERMANENTLY) - ->label('sdk.response.type', Response::CONTENT_TYPE_HTML) - ->label('sdk.methodType', 'webAuth') - ->label('sdk.hide', true) + ->label('sdk', new Method( + namespace: 'vcs', + group: 'installations', + name: 'createGitHubInstallation', + description: '/docs/references/vcs/create-github-installation.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_MOVED_PERMANENTLY, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::HTML, + type: MethodType::WEBAUTH, + hide: true, + )) ->param('success', '', fn ($clients) => new Host($clients), 'URL to redirect back to console after a successful installation attempt.', true, ['clients']) ->param('failure', '', fn ($clients) => new Host($clients), 'URL to redirect back to console after a failed installation attempt.', true, ['clients']) ->inject('request') @@ -305,7 +320,7 @@ }); App::get('/v1/vcs/github/callback') - ->desc('Capture installation and authorization from GitHub App') + ->desc('Get installation and authorization from GitHub app') ->groups(['api', 'vcs']) ->label('scope', 'public') ->label('error', __DIR__ . '/../../views/general/error.phtml') @@ -318,8 +333,8 @@ ->inject('project') ->inject('request') ->inject('response') - ->inject('dbForConsole') - ->action(function (string $providerInstallationId, string $setupAction, string $state, string $code, GitHub $github, Document $user, Document $project, Request $request, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $providerInstallationId, string $setupAction, string $state, string $code, GitHub $github, Document $user, Document $project, Request $request, Response $response, Database $dbForPlatform) { if (empty($state)) { $error = 'Installation requests from organisation members for the Appwrite GitHub App are currently unsupported. To proceed with the installation, login to the Appwrite Console and install the GitHub App.'; throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, $error); @@ -338,7 +353,7 @@ $redirectSuccess = $state['success'] ?? ''; $redirectFailure = $state['failure'] ?? ''; - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { $error = 'Project with the ID from state could not be found.'; @@ -354,55 +369,6 @@ throw new Exception(Exception::PROJECT_NOT_FOUND, $error); } - $personalSlug = ''; - - // OAuth Authroization - if (!empty($code)) { - $oauth2 = new OAuth2Github(System::getEnv('_APP_VCS_GITHUB_CLIENT_ID', ''), System::getEnv('_APP_VCS_GITHUB_CLIENT_SECRET', ''), ""); - $accessToken = $oauth2->getAccessToken($code) ?? ''; - $refreshToken = $oauth2->getRefreshToken($code) ?? ''; - $accessTokenExpiry = $oauth2->getAccessTokenExpiry($code) ?? ''; - $personalSlug = $oauth2->getUserSlug($accessToken) ?? ''; - $email = $oauth2->getUserEmail($accessToken); - $oauth2ID = $oauth2->getUserID($accessToken); - - // Makes sure this email is not already used in another identity - $identity = $dbForConsole->findOne('identities', [ - Query::equal('providerEmail', [$email]), - ]); - if ($identity !== false && !$identity->isEmpty()) { - if ($identity->getAttribute('userInternalId', '') !== $user->getInternalId()) { - throw new Exception(Exception::USER_EMAIL_ALREADY_EXISTS); - } - } - - if ($identity !== false && !$identity->isEmpty()) { - $identity = $identity - ->setAttribute('providerAccessToken', $accessToken) - ->setAttribute('providerRefreshToken', $refreshToken) - ->setAttribute('providerAccessTokenExpiry', DateTime::addSeconds(new \DateTime(), (int)$accessTokenExpiry)); - - $dbForConsole->updateDocument('identities', $identity->getId(), $identity); - } else { - $identity = $dbForConsole->createDocument('identities', new Document([ - '$id' => ID::unique(), - '$permissions' => [ - Permission::read(Role::any()), - Permission::update(Role::user($user->getId())), - Permission::delete(Role::user($user->getId())), - ], - 'userInternalId' => $user->getInternalId(), - 'userId' => $user->getId(), - 'provider' => 'github', - 'providerUid' => $oauth2ID, - 'providerEmail' => $email, - 'providerAccessToken' => $accessToken, - 'providerRefreshToken' => $refreshToken, - 'providerAccessTokenExpiry' => DateTime::addSeconds(new \DateTime(), (int)$accessTokenExpiry), - ])); - } - } - // Create / Update installation if (!empty($providerInstallationId)) { $privateKey = System::getEnv('_APP_VCS_GITHUB_PRIVATE_KEY'); @@ -412,12 +378,28 @@ $projectInternalId = $project->getInternalId(); - $installation = $dbForConsole->findOne('installations', [ + $installation = $dbForPlatform->findOne('installations', [ Query::equal('providerInstallationId', [$providerInstallationId]), Query::equal('projectInternalId', [$projectInternalId]) ]); - if ($installation === false || $installation->isEmpty()) { + $personal = false; + $refreshToken = null; + $accessToken = null; + $accessTokenExpiry = null; + + if (!empty($code)) { + $oauth2 = new OAuth2Github(System::getEnv('_APP_VCS_GITHUB_CLIENT_ID', ''), System::getEnv('_APP_VCS_GITHUB_CLIENT_SECRET', ''), ""); + + $accessToken = $oauth2->getAccessToken($code) ?? ''; + $refreshToken = $oauth2->getRefreshToken($code) ?? ''; + $accessTokenExpiry = DateTime::addSeconds(new \DateTime(), \intval($oauth2->getAccessTokenExpiry($code))); + + $personalSlug = $oauth2->getUserSlug($accessToken) ?? ''; + $personal = $personalSlug === $owner; + } + + if ($installation->isEmpty()) { $teamId = $project->getAttribute('teamId', ''); $installation = new Document([ @@ -434,15 +416,21 @@ 'projectInternalId' => $projectInternalId, 'provider' => 'github', 'organization' => $owner, - 'personal' => $personalSlug === $owner + 'personal' => $personal, + 'personalRefreshToken' => $refreshToken, + 'personalAccessToken' => $accessToken, + 'personalAccessTokenExpiry' => $accessTokenExpiry, ]); - $installation = $dbForConsole->createDocument('installations', $installation); + $installation = $dbForPlatform->createDocument('installations', $installation); } else { $installation = $installation ->setAttribute('organization', $owner) - ->setAttribute('personal', $personalSlug === $owner); - $installation = $dbForConsole->updateDocument('installations', $installation->getId(), $installation); + ->setAttribute('personal', $personal) + ->setAttribute('personalRefreshToken', $refreshToken) + ->setAttribute('personalAccessToken', $accessToken) + ->setAttribute('personalAccessTokenExpiry', $accessTokenExpiry); + $installation = $dbForPlatform->updateDocument('installations', $installation->getId(), $installation); } } else { $error = 'Installation of the Appwrite GitHub App on organization accounts is restricted to organization owners. As a member of the organization, you do not have the necessary permissions to install this GitHub App. Please contact the organization owner to create the installation from the Appwrite console.'; @@ -468,22 +456,28 @@ ->desc('Get files and directories of a VCS repository') ->groups(['api', 'vcs']) ->label('scope', 'vcs.read') - ->label('sdk.namespace', 'vcs') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.method', 'getRepositoryContents') - ->label('sdk.description', '') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_VCS_CONTENT_LIST) + ->label('sdk', new Method( + namespace: 'vcs', + group: 'repositories', + name: 'getRepositoryContents', + description: '/docs/references/vcs/get-repository-contents.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_VCS_CONTENT_LIST, + ) + ] + )) ->param('installationId', '', new Text(256), 'Installation Id') ->param('providerRepositoryId', '', new Text(256), 'Repository Id') ->param('providerRootDirectory', '', new Text(256, 0), 'Path to get contents of nested directory', true) ->inject('gitHub') ->inject('response') ->inject('project') - ->inject('dbForConsole') - ->action(function (string $installationId, string $providerRepositoryId, string $providerRootDirectory, GitHub $github, Response $response, Document $project, Database $dbForConsole) { - $installation = $dbForConsole->getDocument('installations', $installationId); + ->inject('dbForPlatform') + ->action(function (string $installationId, string $providerRepositoryId, string $providerRootDirectory, GitHub $github, Response $response, Document $project, Database $dbForPlatform) { + $installation = $dbForPlatform->getDocument('installations', $installationId); if ($installation->isEmpty()) { throw new Exception(Exception::INSTALLATION_NOT_FOUND); @@ -526,25 +520,31 @@ }); App::post('/v1/vcs/github/installations/:installationId/providerRepositories/:providerRepositoryId/detection') - ->desc('Detect runtime settings from source code') + ->desc('Create runtime settings detection') ->groups(['api', 'vcs']) ->label('scope', 'vcs.write') - ->label('sdk.namespace', 'vcs') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.method', 'createRepositoryDetection') - ->label('sdk.description', '') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_DETECTION) + ->label('sdk', new Method( + namespace: 'vcs', + group: 'repositories', + name: 'createRepositoryDetection', + description: '/docs/references/vcs/create-repository-detection.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_DETECTION, + ) + ] + )) ->param('installationId', '', new Text(256), 'Installation Id') ->param('providerRepositoryId', '', new Text(256), 'Repository Id') ->param('providerRootDirectory', '', new Text(256, 0), 'Path to Root Directory', true) ->inject('gitHub') ->inject('response') ->inject('project') - ->inject('dbForConsole') - ->action(function (string $installationId, string $providerRepositoryId, string $providerRootDirectory, GitHub $github, Response $response, Document $project, Database $dbForConsole) { - $installation = $dbForConsole->getDocument('installations', $installationId); + ->inject('dbForPlatform') + ->action(function (string $installationId, string $providerRepositoryId, string $providerRootDirectory, GitHub $github, Response $response, Document $project, Database $dbForPlatform) { + $installation = $dbForPlatform->getDocument('installations', $installationId); if ($installation->isEmpty()) { throw new Exception(Exception::INSTALLATION_NOT_FOUND); @@ -598,28 +598,34 @@ }); App::get('/v1/vcs/github/installations/:installationId/providerRepositories') - ->desc('List Repositories') + ->desc('List repositories') ->groups(['api', 'vcs']) ->label('scope', 'vcs.read') - ->label('sdk.namespace', 'vcs') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.method', 'listRepositories') - ->label('sdk.description', '') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROVIDER_REPOSITORY_LIST) + ->label('sdk', new Method( + namespace: 'vcs', + group: 'repositories', + name: 'listRepositories', + description: '/docs/references/vcs/list-repositories.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROVIDER_REPOSITORY_LIST, + ) + ] + )) ->param('installationId', '', new Text(256), 'Installation Id') ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) ->inject('gitHub') ->inject('response') ->inject('project') - ->inject('dbForConsole') - ->action(function (string $installationId, string $search, GitHub $github, Response $response, Document $project, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $installationId, string $search, GitHub $github, Response $response, Document $project, Database $dbForPlatform) { if (empty($search)) { $search = ""; } - $installation = $dbForConsole->getDocument('installations', $installationId); + $installation = $dbForPlatform->getDocument('installations', $installationId); if ($installation->isEmpty()) { throw new Exception(Exception::INSTALLATION_NOT_FOUND); @@ -696,13 +702,19 @@ ->desc('Create repository') ->groups(['api', 'vcs']) ->label('scope', 'vcs.write') - ->label('sdk.namespace', 'vcs') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.method', 'createRepository') - ->label('sdk.description', '') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROVIDER_REPOSITORY) + ->label('sdk', new Method( + namespace: 'vcs', + group: 'repositories', + name: 'createRepository', + description: '/docs/references/vcs/create-repository.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROVIDER_REPOSITORY, + ) + ] + )) ->param('installationId', '', new Text(256), 'Installation Id') ->param('name', '', new Text(256), 'Repository name (slug)') ->param('private', '', new Boolean(false), 'Mark repository public or private') @@ -710,9 +722,9 @@ ->inject('user') ->inject('response') ->inject('project') - ->inject('dbForConsole') - ->action(function (string $installationId, string $name, bool $private, GitHub $github, Document $user, Response $response, Document $project, Database $dbForConsole) { - $installation = $dbForConsole->getDocument('installations', $installationId); + ->inject('dbForPlatform') + ->action(function (string $installationId, string $name, bool $private, GitHub $github, Document $user, Response $response, Document $project, Database $dbForPlatform) { + $installation = $dbForPlatform->getDocument('installations', $installationId); if ($installation->isEmpty()) { throw new Exception(Exception::INSTALLATION_NOT_FOUND); @@ -721,17 +733,23 @@ if ($installation->getAttribute('personal', false) === true) { $oauth2 = new OAuth2Github(System::getEnv('_APP_VCS_GITHUB_CLIENT_ID', ''), System::getEnv('_APP_VCS_GITHUB_CLIENT_SECRET', ''), ""); - $identity = $dbForConsole->findOne('identities', [ - Query::equal('provider', ['github']), - Query::equal('userInternalId', [$user->getInternalId()]), - ]); - if ($identity === false || $identity->isEmpty()) { - throw new Exception(Exception::USER_IDENTITY_NOT_FOUND); - } + $accessToken = $installation->getAttribute('personalAccessToken'); + $refreshToken = $installation->getAttribute('personalRefreshToken'); + $accessTokenExpiry = $installation->getAttribute('personalAccessTokenExpiry'); - $accessToken = $identity->getAttribute('providerAccessToken'); - $refreshToken = $identity->getAttribute('providerRefreshToken'); - $accessTokenExpiry = $identity->getAttribute('providerAccessTokenExpiry'); + if (empty($accessToken) || empty($refreshToken) || empty($accessTokenExpiry)) { + $identity = $dbForPlatform->findOne('identities', [ + Query::equal('provider', ['github']), + Query::equal('userInternalId', [$user->getInternalId()]), + ]); + if ($identity->isEmpty()) { + throw new Exception(Exception::USER_IDENTITY_NOT_FOUND); + } + + $accessToken = $accessToken ?? $identity->getAttribute('providerAccessToken'); + $refreshToken = $refreshToken ?? $identity->getAttribute('providerRefreshToken'); + $accessTokenExpiry = $accessTokenExpiry ?? $identity->getAttribute('providerAccessTokenExpiry'); + } $isExpired = new \DateTime($accessTokenExpiry) < new \DateTime('now'); if ($isExpired) { @@ -746,12 +764,12 @@ throw new Exception(Exception::GENERAL_RATE_LIMIT_EXCEEDED, "Another request is currently refreshing OAuth token. Please try again."); } - $identity = $identity - ->setAttribute('providerAccessToken', $accessToken) - ->setAttribute('providerRefreshToken', $refreshToken) - ->setAttribute('providerAccessTokenExpiry', DateTime::addSeconds(new \DateTime(), (int)$oauth2->getAccessTokenExpiry(''))); + $installation = $installation + ->setAttribute('personalAccessToken', $accessToken) + ->setAttribute('personalRefreshToken', $refreshToken) + ->setAttribute('personalAccessTokenExpiry', DateTime::addSeconds(new \DateTime(), (int)$oauth2->getAccessTokenExpiry(''))); - $dbForConsole->updateDocument('identities', $identity->getId(), $identity); + $dbForPlatform->updateDocument('installations', $installation->getId(), $installation); } try { @@ -797,21 +815,27 @@ ->desc('Get repository') ->groups(['api', 'vcs']) ->label('scope', 'vcs.read') - ->label('sdk.namespace', 'vcs') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.method', 'getRepository') - ->label('sdk.description', '') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_PROVIDER_REPOSITORY) + ->label('sdk', new Method( + namespace: 'vcs', + group: 'repositories', + name: 'getRepository', + description: '/docs/references/vcs/get-repository.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PROVIDER_REPOSITORY, + ) + ] + )) ->param('installationId', '', new Text(256), 'Installation Id') ->param('providerRepositoryId', '', new Text(256), 'Repository Id') ->inject('gitHub') ->inject('response') ->inject('project') - ->inject('dbForConsole') - ->action(function (string $installationId, string $providerRepositoryId, GitHub $github, Response $response, Document $project, Database $dbForConsole) { - $installation = $dbForConsole->getDocument('installations', $installationId); + ->inject('dbForPlatform') + ->action(function (string $installationId, string $providerRepositoryId, GitHub $github, Response $response, Document $project, Database $dbForPlatform) { + $installation = $dbForPlatform->getDocument('installations', $installationId); if ($installation->isEmpty()) { throw new Exception(Exception::INSTALLATION_NOT_FOUND); @@ -843,24 +867,30 @@ }); App::get('/v1/vcs/github/installations/:installationId/providerRepositories/:providerRepositoryId/branches') - ->desc('List Repository Branches') + ->desc('List repository branches') ->groups(['api', 'vcs']) ->label('scope', 'vcs.read') - ->label('sdk.namespace', 'vcs') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.method', 'listRepositoryBranches') - ->label('sdk.description', '') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_BRANCH_LIST) + ->label('sdk', new Method( + namespace: 'vcs', + group: 'repositories', + name: 'listRepositoryBranches', + description: '/docs/references/vcs/list-repository-branches.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_BRANCH_LIST, + ) + ] + )) ->param('installationId', '', new Text(256), 'Installation Id') ->param('providerRepositoryId', '', new Text(256), 'Repository Id') ->inject('gitHub') ->inject('response') ->inject('project') - ->inject('dbForConsole') - ->action(function (string $installationId, string $providerRepositoryId, GitHub $github, Response $response, Document $project, Database $dbForConsole) { - $installation = $dbForConsole->getDocument('installations', $installationId); + ->inject('dbForPlatform') + ->action(function (string $installationId, string $providerRepositoryId, GitHub $github, Response $response, Document $project, Database $dbForPlatform) { + $installation = $dbForPlatform->getDocument('installations', $installationId); if ($installation->isEmpty()) { throw new Exception(Exception::INSTALLATION_NOT_FOUND); @@ -892,17 +922,17 @@ }); App::post('/v1/vcs/github/events') - ->desc('Create Event') + ->desc('Create event') ->groups(['api', 'vcs']) ->label('scope', 'public') ->inject('gitHub') ->inject('request') ->inject('response') - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('getProjectDB') ->inject('queueForBuilds') ->action( - function (GitHub $github, Request $request, Response $response, Database $dbForConsole, callable $getProjectDB, Build $queueForBuilds) use ($createGitDeployments) { + function (GitHub $github, Request $request, Response $response, Database $dbForPlatform, callable $getProjectDB, Build $queueForBuilds) use ($createGitDeployments) { $payload = $request->getRawPayload(); $signatureRemote = $request->getHeader('x-hub-signature-256', ''); $signatureLocal = System::getEnv('_APP_VCS_GITHUB_WEBHOOK_SECRET', ''); @@ -936,36 +966,36 @@ function (GitHub $github, Request $request, Response $response, Database $dbForC $github->initializeVariables($providerInstallationId, $privateKey, $githubAppId); //find functionId from functions table - $repositories = Authorization::skip(fn () => $dbForConsole->find('repositories', [ + $repositories = Authorization::skip(fn () => $dbForPlatform->find('repositories', [ Query::equal('providerRepositoryId', [$providerRepositoryId]), Query::limit(100), ])); // create new deployment only on push and not when branch is created if (!$providerBranchCreated) { - $createGitDeployments($github, $providerInstallationId, $repositories, $providerBranch, $providerBranchUrl, $providerRepositoryName, $providerRepositoryUrl, $providerRepositoryOwner, $providerCommitHash, $providerCommitAuthor, $providerCommitAuthorUrl, $providerCommitMessage, $providerCommitUrl, '', false, $dbForConsole, $queueForBuilds, $getProjectDB, $request); + $createGitDeployments($github, $providerInstallationId, $repositories, $providerBranch, $providerBranchUrl, $providerRepositoryName, $providerRepositoryUrl, $providerRepositoryOwner, $providerCommitHash, $providerCommitAuthor, $providerCommitAuthorUrl, $providerCommitMessage, $providerCommitUrl, '', false, $dbForPlatform, $queueForBuilds, $getProjectDB, $request); } } elseif ($event == $github::EVENT_INSTALLATION) { if ($parsedPayload["action"] == "deleted") { // TODO: Use worker for this job instead (update function as well) $providerInstallationId = $parsedPayload["installationId"]; - $installations = $dbForConsole->find('installations', [ + $installations = $dbForPlatform->find('installations', [ Query::equal('providerInstallationId', [$providerInstallationId]), Query::limit(1000) ]); foreach ($installations as $installation) { - $repositories = Authorization::skip(fn () => $dbForConsole->find('repositories', [ + $repositories = Authorization::skip(fn () => $dbForPlatform->find('repositories', [ Query::equal('installationInternalId', [$installation->getInternalId()]), Query::limit(1000) ])); foreach ($repositories as $repository) { - Authorization::skip(fn () => $dbForConsole->deleteDocument('repositories', $repository->getId())); + Authorization::skip(fn () => $dbForPlatform->deleteDocument('repositories', $repository->getId())); } - $dbForConsole->deleteDocument('installations', $installation->getId()); + $dbForPlatform->deleteDocument('installations', $installation->getId()); } } } elseif ($event == $github::EVENT_PULL_REQUEST) { @@ -994,12 +1024,12 @@ function (GitHub $github, Request $request, Response $response, Database $dbForC $providerCommitAuthor = $commitDetails["commitAuthor"] ?? ''; $providerCommitMessage = $commitDetails["commitMessage"] ?? ''; - $repositories = Authorization::skip(fn () => $dbForConsole->find('repositories', [ + $repositories = Authorization::skip(fn () => $dbForPlatform->find('repositories', [ Query::equal('providerRepositoryId', [$providerRepositoryId]), Query::orderDesc('$createdAt') ])); - $createGitDeployments($github, $providerInstallationId, $repositories, $providerBranch, $providerBranchUrl, $providerRepositoryName, $providerRepositoryUrl, $providerRepositoryOwner, $providerCommitHash, $providerCommitAuthor, $providerCommitAuthorUrl, $providerCommitMessage, $providerCommitUrl, $providerPullRequestId, $external, $dbForConsole, $queueForBuilds, $getProjectDB, $request); + $createGitDeployments($github, $providerInstallationId, $repositories, $providerBranch, $providerBranchUrl, $providerRepositoryName, $providerRepositoryUrl, $providerRepositoryOwner, $providerCommitHash, $providerCommitAuthor, $providerCommitAuthorUrl, $providerCommitMessage, $providerCommitUrl, $providerPullRequestId, $external, $dbForPlatform, $queueForBuilds, $getProjectDB, $request); } elseif ($parsedPayload["action"] == "closed") { // Allowed external contributions cleanup @@ -1008,7 +1038,7 @@ function (GitHub $github, Request $request, Response $response, Database $dbForC $external = $parsedPayload["external"] ?? true; if ($external) { - $repositories = Authorization::skip(fn () => $dbForConsole->find('repositories', [ + $repositories = Authorization::skip(fn () => $dbForPlatform->find('repositories', [ Query::equal('providerRepositoryId', [$providerRepositoryId]), Query::orderDesc('$createdAt') ])); @@ -1019,7 +1049,7 @@ function (GitHub $github, Request $request, Response $response, Database $dbForC if (\in_array($providerPullRequestId, $providerPullRequestIds)) { $providerPullRequestIds = \array_diff($providerPullRequestIds, [$providerPullRequestId]); $repository = $repository->setAttribute('providerPullRequestIds', $providerPullRequestIds); - $repository = Authorization::skip(fn () => $dbForConsole->updateDocument('repositories', $repository->getId(), $repository)); + $repository = Authorization::skip(fn () => $dbForPlatform->updateDocument('repositories', $repository->getId(), $repository)); } } } @@ -1034,20 +1064,26 @@ function (GitHub $github, Request $request, Response $response, Database $dbForC ->desc('List installations') ->groups(['api', 'vcs']) ->label('scope', 'vcs.read') - ->label('sdk.namespace', 'vcs') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.method', 'listInstallations') - ->label('sdk.description', '/docs/references/vcs/list-installations.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_INSTALLATION_LIST) + ->label('sdk', new Method( + namespace: 'vcs', + group: 'installations', + name: 'listInstallations', + description: '/docs/references/vcs/list-installations.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_INSTALLATION_LIST, + ) + ] + )) ->param('queries', [], new Installations(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Installations::ALLOWED_ATTRIBUTES), true) ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) ->inject('response') ->inject('project') ->inject('dbForProject') - ->inject('dbForConsole') - ->action(function (array $queries, string $search, Response $response, Document $project, Database $dbForProject, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (array $queries, string $search, Response $response, Document $project, Database $dbForProject, Database $dbForPlatform) { try { $queries = Query::parseQueries($queries); } catch (QueryException $e) { @@ -1069,8 +1105,14 @@ function (GitHub $github, Request $request, Response $response, Database $dbForC $cursor = reset($cursor); if ($cursor) { /** @var Query $cursor */ + + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + $installationId = $cursor->getValue(); - $cursorDocument = $dbForConsole->getDocument('installations', $installationId); + $cursorDocument = $dbForPlatform->getDocument('installations', $installationId); if ($cursorDocument->isEmpty()) { throw new Exception(Exception::GENERAL_CURSOR_NOT_FOUND, "Installation '{$installationId}' for the 'cursor' value not found."); @@ -1080,9 +1122,12 @@ function (GitHub $github, Request $request, Response $response, Database $dbForC } $filterQueries = Query::groupByType($queries)['filters']; - - $results = $dbForConsole->find('installations', $queries); - $total = $dbForConsole->count('installations', $filterQueries, APP_LIMIT_COUNT); + try { + $results = $dbForPlatform->find('installations', $queries); + $total = $dbForPlatform->count('installations', $filterQueries, APP_LIMIT_COUNT); + } catch (OrderException $e) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); + } $response->dynamic(new Document([ 'installations' => $results, @@ -1094,19 +1139,25 @@ function (GitHub $github, Request $request, Response $response, Database $dbForC ->desc('Get installation') ->groups(['api', 'vcs']) ->label('scope', 'vcs.read') - ->label('sdk.namespace', 'vcs') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.method', 'getInstallation') - ->label('sdk.description', '/docs/references/vcs/get-installation.md') - ->label('sdk.response.code', Response::STATUS_CODE_OK) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_INSTALLATION) + ->label('sdk', new Method( + namespace: 'vcs', + group: 'installations', + name: 'getInstallation', + description: '/docs/references/vcs/get-installation.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_INSTALLATION, + ) + ] + )) ->param('installationId', '', new Text(256), 'Installation Id') ->inject('response') ->inject('project') - ->inject('dbForConsole') - ->action(function (string $installationId, Response $response, Document $project, Database $dbForConsole) { - $installation = $dbForConsole->getDocument('installations', $installationId); + ->inject('dbForPlatform') + ->action(function (string $installationId, Response $response, Document $project, Database $dbForPlatform) { + $installation = $dbForPlatform->getDocument('installations', $installationId); if ($installation === false || $installation->isEmpty()) { throw new Exception(Exception::INSTALLATION_NOT_FOUND); @@ -1120,28 +1171,36 @@ function (GitHub $github, Request $request, Response $response, Database $dbForC }); App::delete('/v1/vcs/installations/:installationId') - ->desc('Delete Installation') + ->desc('Delete installation') ->groups(['api', 'vcs']) ->label('scope', 'vcs.write') - ->label('sdk.namespace', 'vcs') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.method', 'deleteInstallation') - ->label('sdk.description', '/docs/references/vcs/delete-installation.md') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'vcs', + group: 'installations', + name: 'deleteInstallation', + description: '/docs/references/vcs/delete-installation.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ], + contentType: ContentType::NONE + )) ->param('installationId', '', new Text(256), 'Installation Id') ->inject('response') ->inject('project') - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('queueForDeletes') - ->action(function (string $installationId, Response $response, Document $project, Database $dbForConsole, Delete $queueForDeletes) { - $installation = $dbForConsole->getDocument('installations', $installationId); + ->action(function (string $installationId, Response $response, Document $project, Database $dbForPlatform, Delete $queueForDeletes) { + $installation = $dbForPlatform->getDocument('installations', $installationId); if ($installation->isEmpty()) { throw new Exception(Exception::INSTALLATION_NOT_FOUND); } - if (!$dbForConsole->deleteDocument('installations', $installation->getId())) { + if (!$dbForPlatform->deleteDocument('installations', $installation->getId())) { throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Failed to remove installation from DB'); } @@ -1153,15 +1212,22 @@ function (GitHub $github, Request $request, Response $response, Database $dbForC }); App::patch('/v1/vcs/github/installations/:installationId/repositories/:repositoryId') - ->desc('Authorize external deployment') + ->desc('Update external deployment (authorize)') ->groups(['api', 'vcs']) ->label('scope', 'vcs.write') - ->label('sdk.namespace', 'vcs') - ->label('sdk.auth', [APP_AUTH_TYPE_ADMIN]) - ->label('sdk.method', 'updateExternalDeployments') - ->label('sdk.description', '') - ->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT) - ->label('sdk.response.model', Response::MODEL_NONE) + ->label('sdk', new Method( + namespace: 'vcs', + group: 'repositories', + name: 'updateExternalDeployments', + description: '/docs/references/vcs/update-external-deployments.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_NOCONTENT, + model: Response::MODEL_NONE, + ) + ] + )) ->param('installationId', '', new Text(256), 'Installation Id') ->param('repositoryId', '', new Text(256), 'VCS Repository Id') ->param('providerPullRequestId', '', new Text(256), 'GitHub Pull Request Id') @@ -1169,17 +1235,17 @@ function (GitHub $github, Request $request, Response $response, Database $dbForC ->inject('request') ->inject('response') ->inject('project') - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('getProjectDB') ->inject('queueForBuilds') - ->action(function (string $installationId, string $repositoryId, string $providerPullRequestId, GitHub $github, Request $request, Response $response, Document $project, Database $dbForConsole, callable $getProjectDB, Build $queueForBuilds) use ($createGitDeployments) { - $installation = $dbForConsole->getDocument('installations', $installationId); + ->action(function (string $installationId, string $repositoryId, string $providerPullRequestId, GitHub $github, Request $request, Response $response, Document $project, Database $dbForPlatform, callable $getProjectDB, Build $queueForBuilds) use ($createGitDeployments) { + $installation = $dbForPlatform->getDocument('installations', $installationId); if ($installation->isEmpty()) { throw new Exception(Exception::INSTALLATION_NOT_FOUND); } - $repository = Authorization::skip(fn () => $dbForConsole->getDocument('repositories', $repositoryId, [ + $repository = Authorization::skip(fn () => $dbForPlatform->getDocument('repositories', $repositoryId, [ Query::equal('projectInternalId', [$project->getInternalId()]) ])); @@ -1196,7 +1262,7 @@ function (GitHub $github, Request $request, Response $response, Database $dbForC // TODO: Delete from array when PR is closed - $repository = Authorization::skip(fn () => $dbForConsole->updateDocument('repositories', $repository->getId(), $repository)); + $repository = Authorization::skip(fn () => $dbForPlatform->updateDocument('repositories', $repository->getId(), $repository)); $privateKey = System::getEnv('_APP_VCS_GITHUB_PRIVATE_KEY'); $githubAppId = System::getEnv('_APP_VCS_GITHUB_APP_ID'); @@ -1220,7 +1286,7 @@ function (GitHub $github, Request $request, Response $response, Database $dbForC $providerBranch = \explode(':', $pullRequestResponse['head']['label'])[1] ?? ''; $providerCommitHash = $pullRequestResponse['head']['sha'] ?? ''; - $createGitDeployments($github, $providerInstallationId, $repositories, $providerBranch, $providerCommitHash, $providerPullRequestId, true, $dbForConsole, $queueForBuilds, $getProjectDB, $request); + $createGitDeployments($github, $providerInstallationId, $repositories, $providerBranch, $providerCommitHash, $providerPullRequestId, true, $dbForPlatform, $queueForBuilds, $getProjectDB, $request); $response->noContent(); }); diff --git a/app/controllers/general.php b/app/controllers/general.php index 0bbfa2b6946..322787cbd06 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -6,9 +6,14 @@ use Appwrite\Auth\Auth; use Appwrite\Event\Certificate; use Appwrite\Event\Event; -use Appwrite\Event\Usage; +use Appwrite\Event\Func; +use Appwrite\Event\StatsUsage; use Appwrite\Extend\Exception as AppwriteException; use Appwrite\Network\Validator\Origin; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\ContentType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Request; use Appwrite\Utopia\Request\Filters\V16 as RequestV16; use Appwrite\Utopia\Request\Filters\V17 as RequestV17; @@ -25,6 +30,7 @@ use Utopia\CLI\Console; use Utopia\Config\Config; use Utopia\Database\Database; +use Utopia\Database\DateTime; use Utopia\Database\Document; use Utopia\Database\Helpers\ID; use Utopia\Database\Query; @@ -44,30 +50,46 @@ Config::setParam('cookieDomain', 'localhost'); Config::setParam('cookieSamesite', Response::COOKIE_SAMESITE_NONE); -function router(App $utopia, Database $dbForConsole, callable $getProjectDB, SwooleRequest $swooleRequest, Request $request, Response $response, Event $queueForEvents, Usage $queueForUsage, Reader $geodb) +function router(App $utopia, Database $dbForPlatform, callable $getProjectDB, SwooleRequest $swooleRequest, Request $request, Response $response, Event $queueForEvents, StatsUsage $queueForStatsUsage, Func $queueForFunctions, Executor $executor, Reader $geodb, callable $isResourceBlocked, string $previewHostname) { $utopia->getRoute()?->label('error', __DIR__ . '/../views/general/error.phtml'); $host = $request->getHostname() ?? ''; + if (!empty($previewHostname)) { + $host = $previewHostname; + } + + // TODO: @christyjacob remove once we migrate the rules in 1.7.x + if (System::getEnv('_APP_RULES_FORMAT') === 'md5') { + $route = Authorization::skip(fn () => $dbForPlatform->getDocument('rules', md5($host))); + } else { + $route = Authorization::skip( + fn () => $dbForPlatform->find('rules', [ + Query::equal('domain', [$host]), + Query::limit(1) + ]) + )[0] ?? new Document(); + } - $route = Authorization::skip( - fn () => $dbForConsole->find('rules', [ - Query::equal('domain', [$host]), - Query::limit(1) - ]) - )[0] ?? null; + if ($route->isEmpty()) { - if ($route === null) { - if ($host === System::getEnv('_APP_DOMAIN_FUNCTIONS', '')) { + $appDomainFunctionsFallback = System::getEnv('_APP_DOMAIN_FUNCTIONS_FALLBACK', ''); + $appDomainFunctions = System::getEnv('_APP_DOMAIN_FUNCTIONS', ''); + + if (!empty($appDomainFunctionsFallback) && \str_ends_with($host, $appDomainFunctionsFallback)) { + $appDomainFunctions = $appDomainFunctionsFallback; + } + + if ($host === $appDomainFunctions) { throw new AppwriteException(AppwriteException::GENERAL_ACCESS_FORBIDDEN, 'This domain cannot be used for security reasons. Please use any subdomain instead.'); } - if (\str_ends_with($host, System::getEnv('_APP_DOMAIN_FUNCTIONS', ''))) { + if (\str_ends_with($host, $appDomainFunctions)) { throw new AppwriteException(AppwriteException::GENERAL_ACCESS_FORBIDDEN, 'This domain is not connected to any Appwrite resource yet. Please configure custom domain or function domain to allow this request.'); } if (System::getEnv('_APP_OPTIONS_ROUTER_PROTECTION', 'disabled') === 'enabled') { - if ($host !== 'localhost' && $host !== APP_HOSTNAME_INTERNAL) { // localhost allowed for proxy, APP_HOSTNAME_INTERNAL allowed for migrations + if ($host !== 'localhost' && $host !== APP_HOSTNAME_INTERNAL && $host !== System::getEnv('_APP_CONSOLE_DOMAIN', '')) { throw new AppwriteException(AppwriteException::GENERAL_ACCESS_FORBIDDEN, 'Router protection does not allow accessing Appwrite over this domain. Please add it as custom domain to your project or disable _APP_OPTIONS_ROUTER_PROTECTION environment variable.'); } } @@ -79,8 +101,17 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo $projectId = $route->getAttribute('projectId'); $project = Authorization::skip( - fn () => $dbForConsole->getDocument('projects', $projectId) + fn () => $dbForPlatform->getDocument('projects', $projectId) ); + + if (!$project->isEmpty() && $project->getId() !== 'console') { + $accessedAt = $project->getAttribute('accessedAt', ''); + if (DateTime::formatTz(DateTime::addSeconds(new \DateTime(), -APP_PROJECT_ACCESS)) > $accessedAt) { + $project->setAttribute('accessedAt', DateTime::now()); + Authorization::skip(fn () => $dbForPlatform->updateDocument('projects', $project->getId(), $project)); + } + } + if (array_key_exists('proxy', $project->getAttribute('services', []))) { $status = $project->getAttribute('services', [])['proxy']; if (!$status) { @@ -97,8 +128,29 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo $type = $route->getAttribute('resourceType'); if ($type === 'function') { - $utopia->getRoute()?->label('sdk.namespace', 'functions'); - $utopia->getRoute()?->label('sdk.method', 'createExecution'); + $method = $utopia->getRoute()?->getLabel('sdk', null); + + if (empty($method)) { + $utopia->getRoute()?->label('sdk', new Method( + namespace: 'functions', + group: 'executions', + name: 'createExecution', + description: '/docs/references/functions/create-execution.md', + auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_EXECUTION, + ) + ], + contentType: ContentType::MULTIPART, + )); + } else { + /** @var Method $method */ + $method->setNamespace('functions'); + $method->setMethodName('createExecution'); + $utopia->getRoute()?->label('sdk', $method); + } if (System::getEnv('_APP_OPTIONS_FUNCTIONS_FORCE_HTTPS', 'disabled') === 'enabled') { // Force HTTPS if ($request->getProtocol() !== 'https') { @@ -125,7 +177,7 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo $requestHeaders = $request->getHeaders(); - $project = Authorization::skip(fn () => $dbForConsole->getDocument('projects', $projectId)); + $project = Authorization::skip(fn () => $dbForPlatform->getDocument('projects', $projectId)); $dbForProject = $getProjectDB($project); @@ -135,6 +187,10 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo throw new AppwriteException(AppwriteException::FUNCTION_NOT_FOUND); } + if ($isResourceBlocked($project, RESOURCE_TYPE_FUNCTIONS, $functionId)) { + throw new AppwriteException(AppwriteException::GENERAL_RESOURCE_BLOCKED); + } + $version = $function->getAttribute('version', 'v2'); $runtimes = Config::getParam($version === 'v2' ? 'runtimes-v2' : 'runtimes', []); $spec = Config::getParam('runtime-specifications')[$function->getAttribute('specification', APP_FUNCTION_SPECIFICATION_DEFAULT)]; @@ -291,7 +347,6 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo ]); /** Execute function */ - $executor = new Executor(System::getEnv('_APP_EXECUTOR_HOST')); try { $version = $function->getAttribute('version', 'v2'); $command = $runtime['startCommand']; @@ -346,27 +401,11 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo throw $th; } } finally { - $fileSize = 0; - $file = $request->getFiles('file'); - if (!empty($file)) { - $fileSize = (\is_array($file['size']) && isset($file['size'][0])) ? $file['size'][0] : $file['size']; - } - - $queueForUsage - ->addMetric(METRIC_NETWORK_REQUESTS, 1) - ->addMetric(METRIC_NETWORK_INBOUND, $request->getSize() + $fileSize) - ->addMetric(METRIC_NETWORK_OUTBOUND, $response->getSize()) - ->addMetric(METRIC_EXECUTIONS, 1) - ->addMetric(str_replace('{functionInternalId}', $function->getInternalId(), METRIC_FUNCTION_ID_EXECUTIONS), 1) - ->addMetric(METRIC_EXECUTIONS_COMPUTE, (int)($execution->getAttribute('duration') * 1000)) // per project - ->addMetric(str_replace('{functionInternalId}', $function->getInternalId(), METRIC_FUNCTION_ID_EXECUTIONS_COMPUTE), (int)($execution->getAttribute('duration') * 1000)) // per function - ->addMetric(METRIC_EXECUTIONS_MB_SECONDS, (int)(($spec['memory'] ?? APP_FUNCTION_MEMORY_DEFAULT) * $execution->getAttribute('duration', 0) * ($spec['cpus'] ?? APP_FUNCTION_CPUS_DEFAULT))) - ->addMetric(str_replace('{functionInternalId}', $function->getInternalId(), METRIC_FUNCTION_ID_EXECUTIONS_MB_SECONDS), (int)(($spec['memory'] ?? APP_FUNCTION_MEMORY_DEFAULT) * $execution->getAttribute('duration', 0) * ($spec['cpus'] ?? APP_FUNCTION_CPUS_DEFAULT))) + $queueForFunctions + ->setType(Func::TYPE_ASYNC_WRITE) + ->setExecution($execution) ->setProject($project) - ->trigger() - ; - - $execution = Authorization::skip(fn () => $dbForProject->createDocument('executions', $execution)); + ->trigger(); } $execution->setAttribute('logs', ''); @@ -396,6 +435,26 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo ->setStatusCode($execution['responseStatusCode'] ?? 200) ->send($body); + $fileSize = 0; + $file = $request->getFiles('file'); + if (!empty($file)) { + $fileSize = (\is_array($file['size']) && isset($file['size'][0])) ? $file['size'][0] : $file['size']; + } + + $queueForStatsUsage + ->addMetric(METRIC_NETWORK_REQUESTS, 1) + ->addMetric(METRIC_NETWORK_INBOUND, $request->getSize() + $fileSize) + ->addMetric(METRIC_NETWORK_OUTBOUND, $response->getSize()) + ->addMetric(METRIC_EXECUTIONS, 1) + ->addMetric(str_replace('{functionInternalId}', $function->getInternalId(), METRIC_FUNCTION_ID_EXECUTIONS), 1) + ->addMetric(METRIC_EXECUTIONS_COMPUTE, (int)($execution->getAttribute('duration') * 1000)) // per project + ->addMetric(str_replace('{functionInternalId}', $function->getInternalId(), METRIC_FUNCTION_ID_EXECUTIONS_COMPUTE), (int)($execution->getAttribute('duration') * 1000)) // per function + ->addMetric(METRIC_EXECUTIONS_MB_SECONDS, (int)(($spec['memory'] ?? APP_FUNCTION_MEMORY_DEFAULT) * $execution->getAttribute('duration', 0) * ($spec['cpus'] ?? APP_FUNCTION_CPUS_DEFAULT))) + ->addMetric(str_replace('{functionInternalId}', $function->getInternalId(), METRIC_FUNCTION_ID_EXECUTIONS_MB_SECONDS), (int)(($spec['memory'] ?? APP_FUNCTION_MEMORY_DEFAULT) * $execution->getAttribute('duration', 0) * ($spec['cpus'] ?? APP_FUNCTION_CPUS_DEFAULT))) + ->setProject($project) + ->trigger() + ; + return true; } elseif ($type === 'api') { $utopia->getRoute()?->label('error', ''); @@ -441,24 +500,28 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo ->inject('response') ->inject('console') ->inject('project') - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('getProjectDB') ->inject('locale') ->inject('localeCodes') ->inject('clients') ->inject('geodb') - ->inject('queueForUsage') + ->inject('queueForStatsUsage') ->inject('queueForEvents') ->inject('queueForCertificates') - ->action(function (App $utopia, SwooleRequest $swooleRequest, Request $request, Response $response, Document $console, Document $project, Database $dbForConsole, callable $getProjectDB, Locale $locale, array $localeCodes, array $clients, Reader $geodb, Usage $queueForUsage, Event $queueForEvents, Certificate $queueForCertificates) { + ->inject('queueForFunctions') + ->inject('executor') + ->inject('isResourceBlocked') + ->inject('previewHostname') + ->action(function (App $utopia, SwooleRequest $swooleRequest, Request $request, Response $response, Document $console, Document $project, Database $dbForPlatform, callable $getProjectDB, Locale $locale, array $localeCodes, array $clients, Reader $geodb, StatsUsage $queueForStatsUsage, Event $queueForEvents, Certificate $queueForCertificates, Func $queueForFunctions, Executor $executor, callable $isResourceBlocked, string $previewHostname) { /* * Appwrite Router */ $host = $request->getHostname() ?? ''; $mainDomain = System::getEnv('_APP_DOMAIN', ''); // Only run Router when external domain - if ($host !== $mainDomain) { - if (router($utopia, $dbForConsole, $getProjectDB, $swooleRequest, $request, $response, $queueForEvents, $queueForUsage, $geodb)) { + if ($host !== $mainDomain || !empty($previewHostname)) { + if (router($utopia, $dbForPlatform, $getProjectDB, $swooleRequest, $request, $response, $queueForEvents, $queueForStatsUsage, $queueForFunctions, $executor, $geodb, $isResourceBlocked, $previewHostname)) { return; } } @@ -506,27 +569,47 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo if (!empty($envDomain) && $envDomain !== 'localhost') { $mainDomain = $envDomain; } else { - $domainDocument = $dbForConsole->findOne('rules', [Query::orderAsc('$id')]); - $mainDomain = $domainDocument ? $domainDocument->getAttribute('domain') : $domain->get(); + // TODO: @christyjacob remove once we migrate the rules in 1.7.x + if (System::getEnv('_APP_RULES_FORMAT') === 'md5') { + $domainDocument = $dbForPlatform->getDocument('rules', md5($envDomain)); + } else { + $domainDocument = $dbForPlatform->findOne('rules', [Query::orderAsc('$id')]); + } + $mainDomain = !$domainDocument->isEmpty() ? $domainDocument->getAttribute('domain') : $domain->get(); } if ($mainDomain !== $domain->get()) { Console::warning($domain->get() . ' is not a main domain. Skipping SSL certificate generation.'); } else { - $domainDocument = $dbForConsole->findOne('rules', [ - Query::equal('domain', [$domain->get()]) - ]); + // TODO: @christyjacob remove once we migrate the rules in 1.7.x + if (System::getEnv('_APP_RULES_FORMAT') === 'md5') { + $domainDocument = $dbForPlatform->getDocument('rules', md5($domain->get())); + } else { + $domainDocument = $dbForPlatform->findOne('rules', [ + Query::equal('domain', [$domain->get()]) + ]); + } + + $owner = ''; + $functionsDomain = System::getEnv('_APP_DOMAIN_FUNCTIONS', ''); + if (!empty($functionsDomain) && \str_ends_with($domain->get(), $functionsDomain)) { + $owner = 'Appwrite'; + } - if (!$domainDocument) { + if ($domainDocument->isEmpty()) { $domainDocument = new Document([ + // TODO: @christyjacob remove once we migrate the rules in 1.7.x + '$id' => System::getEnv('_APP_RULES_FORMAT') === 'md5' ? md5($domain->get()) : ID::unique(), 'domain' => $domain->get(), 'resourceType' => 'api', 'status' => 'verifying', - 'projectId' => 'console', - 'projectInternalId' => 'console' + 'projectId' => $console->getId(), + 'projectInternalId' => $console->getInternalId(), + 'owner' => $owner, + 'region' => $console->getAttribute('region') ]); - $domainDocument = $dbForConsole->createDocument('rules', $domainDocument); + $domainDocument = $dbForPlatform->createDocument('rules', $domainDocument); Console::info('Issuing a TLS certificate for the main domain (' . $domain->get() . ') in a few seconds...'); @@ -662,20 +745,25 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo ->inject('swooleRequest') ->inject('request') ->inject('response') - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('getProjectDB') ->inject('queueForEvents') - ->inject('queueForUsage') + ->inject('queueForStatsUsage') + ->inject('queueForFunctions') + ->inject('executor') ->inject('geodb') - ->action(function (App $utopia, SwooleRequest $swooleRequest, Request $request, Response $response, Database $dbForConsole, callable $getProjectDB, Event $queueForEvents, Usage $queueForUsage, Reader $geodb) { + ->inject('isResourceBlocked') + ->inject('previewHostname') + ->inject('project') + ->action(function (App $utopia, SwooleRequest $swooleRequest, Request $request, Response $response, Database $dbForPlatform, callable $getProjectDB, Event $queueForEvents, StatsUsage $queueForStatsUsage, Func $queueForFunctions, Executor $executor, Reader $geodb, callable $isResourceBlocked, string $previewHostname, Document $project) { /* * Appwrite Router */ $host = $request->getHostname() ?? ''; $mainDomain = System::getEnv('_APP_DOMAIN', ''); // Only run Router when external domain - if ($host !== $mainDomain) { - if (router($utopia, $dbForConsole, $getProjectDB, $swooleRequest, $request, $response, $queueForEvents, $queueForUsage, $geodb)) { + if ($host !== $mainDomain || !empty($previewHostname)) { + if (router($utopia, $dbForPlatform, $getProjectDB, $swooleRequest, $request, $response, $queueForEvents, $queueForStatsUsage, $queueForFunctions, $executor, $geodb, $isResourceBlocked, $previewHostname)) { return; } } @@ -690,6 +778,16 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo ->addHeader('Access-Control-Allow-Origin', $origin) ->addHeader('Access-Control-Allow-Credentials', 'true') ->noContent(); + + /** OPTIONS requests in utopia do not execute shutdown handlers, as a result we need to track the OPTIONS requests explicitly + * @see https://github.com/utopia-php/http/blob/0.33.16/src/App.php#L825-L855 + */ + $queueForStatsUsage + ->addMetric(METRIC_NETWORK_REQUESTS, 1) + ->addMetric(METRIC_NETWORK_INBOUND, $request->getSize()) + ->addMetric(METRIC_NETWORK_OUTBOUND, $response->getSize()) + ->setProject($project) + ->trigger(); }); App::error() @@ -700,8 +798,8 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo ->inject('project') ->inject('logger') ->inject('log') - ->inject('queueForUsage') - ->action(function (Throwable $error, App $utopia, Request $request, Response $response, Document $project, ?Logger $logger, Log $log, Usage $queueForUsage) { + ->inject('queueForStatsUsage') + ->action(function (Throwable $error, App $utopia, Request $request, Response $response, Document $project, ?Logger $logger, Log $log, StatsUsage $queueForStatsUsage) { $version = System::getEnv('_APP_VERSION', 'UNKNOWN'); $route = $utopia->getRoute(); $class = \get_class($error); @@ -737,29 +835,11 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo break; } break; - case 'Utopia\Database\Exception\Conflict': - $error = new AppwriteException(AppwriteException::DOCUMENT_UPDATE_CONFLICT, previous: $error); - break; - case 'Utopia\Database\Exception\Timeout': - $error = new AppwriteException(AppwriteException::DATABASE_TIMEOUT, previous: $error); - break; - case 'Utopia\Database\Exception\Query': - $error = new AppwriteException(AppwriteException::GENERAL_QUERY_INVALID, $error->getMessage(), previous: $error); - break; - case 'Utopia\Database\Exception\Structure': - $error = new AppwriteException(AppwriteException::DOCUMENT_INVALID_STRUCTURE, $error->getMessage(), previous: $error); - break; - case 'Utopia\Database\Exception\Duplicate': - $error = new AppwriteException(AppwriteException::DOCUMENT_ALREADY_EXISTS); - break; - case 'Utopia\Database\Exception\Restricted': - $error = new AppwriteException(AppwriteException::DOCUMENT_DELETE_RESTRICTED); - break; case 'Utopia\Database\Exception\Authorization': $error = new AppwriteException(AppwriteException::USER_UNAUTHORIZED); break; - case 'Utopia\Database\Exception\Relationship': - $error = new AppwriteException(AppwriteException::RELATIONSHIP_VALUE_INVALID, $error->getMessage(), previous: $error); + case 'Utopia\Database\Exception\Timeout': + $error = new AppwriteException(AppwriteException::DATABASE_TIMEOUT, previous: $error); break; } @@ -772,23 +852,22 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo $publish = $error->getCode() === 0 || $error->getCode() >= 500; } - if ($error->getCode() >= 400 && $error->getCode() < 500) { + $providerConfig = System::getEnv('_APP_EXPERIMENT_LOGGING_CONFIG', ''); + if (!empty($providerConfig) && $error->getCode() >= 400 && $error->getCode() < 500) { // Register error logger - $providerName = System::getEnv('_APP_EXPERIMENT_LOGGING_PROVIDER', ''); - $providerConfig = System::getEnv('_APP_EXPERIMENT_LOGGING_CONFIG', ''); - try { - $loggingProvider = new DSN($providerConfig ?? ''); + $loggingProvider = new DSN($providerConfig); $providerName = $loggingProvider->getScheme(); if (!empty($providerName) && $providerName === 'sentry') { $key = $loggingProvider->getPassword(); $projectId = $loggingProvider->getUser() ?? ''; $host = 'https://' . $loggingProvider->getHost(); + $sampleRate = $loggingProvider->getParam('sample', 0.01); $adapter = new Sentry($projectId, $key, $host); $logger = new Logger($adapter); - $logger->setSample(0.04); + $logger->setSample($sampleRate); $publish = true; } else { throw new \Exception('Invalid experimental logging provider'); @@ -798,7 +877,10 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo } } - if ($publish && $project->getId() !== 'console') { + /** + * If its not a publishable error, track usage stats. Publishable errors are >= 500 or those explicitly marked as publish=true in errors.php + */ + if (!$publish && $project->getId() !== 'console') { if (!Auth::isPrivilegedUser(Authorization::getRoles())) { $fileSize = 0; $file = $request->getFiles('file'); @@ -806,18 +888,17 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo $fileSize = (\is_array($file['size']) && isset($file['size'][0])) ? $file['size'][0] : $file['size']; } - $queueForUsage + $queueForStatsUsage ->addMetric(METRIC_NETWORK_REQUESTS, 1) ->addMetric(METRIC_NETWORK_INBOUND, $request->getSize() + $fileSize) ->addMetric(METRIC_NETWORK_OUTBOUND, $response->getSize()); } - $queueForUsage + $queueForStatsUsage ->setProject($project) ->trigger(); } - if ($logger && $publish) { try { /** @var Utopia\Database\Document $user */ @@ -828,6 +909,8 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo if (isset($user) && !$user->isEmpty()) { $log->setUser(new User($user->getId())); + } else { + $log->setUser(new User('guest-' . hash('sha256', $request->getIP()))); } try { @@ -838,14 +921,14 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo } $log->setNamespace("http"); - $log->setServer(\gethostname()); + $log->setServer(System::getEnv('_APP_LOGGING_SERVICE_IDENTIFIER', \gethostname())); $log->setVersion($version); $log->setType(Log::TYPE_ERROR); $log->setMessage($error->getMessage()); $log->addTag('database', $dsn->getHost()); $log->addTag('method', $route->getMethod()); - $log->addTag('url', $route->getPath()); + $log->addTag('url', $request->getURI()); $log->addTag('verboseType', get_class($error)); $log->addTag('code', $error->getCode()); $log->addTag('projectId', $project->getId()); @@ -857,14 +940,24 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo $log->addExtra('trace', $error->getTraceAsString()); $log->addExtra('roles', Authorization::getRoles()); - $action = $route->getLabel("sdk.namespace", "UNKNOWN_NAMESPACE") . '.' . $route->getLabel("sdk.method", "UNKNOWN_METHOD"); + $action = 'UNKNOWN_NAMESPACE.UNKNOWN.METHOD'; + if (!empty($sdk)) { + /** @var Appwrite\SDK\Method $sdk */ + $action = $sdk->getNamespace() . '.' . $sdk->getMethodName(); + } + $log->setAction($action); + $log->addTag('service', $action); $isProduction = System::getEnv('_APP_ENV', 'development') === 'production'; $log->setEnvironment($isProduction ? Log::ENVIRONMENT_PRODUCTION : Log::ENVIRONMENT_STAGING); - $responseCode = $logger->addLog($log); - Console::info('Log pushed with status code: ' . $responseCode); + try { + $responseCode = $logger->addLog($log); + Console::info('Error log pushed with status code: ' . $responseCode); + } catch (Throwable $th) { + Console::error('Error pushing log: ' . $th->getMessage()); + } } /** Wrap all exceptions inside Appwrite\Extend\Exception */ @@ -949,20 +1042,24 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo ->inject('swooleRequest') ->inject('request') ->inject('response') - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('getProjectDB') ->inject('queueForEvents') - ->inject('queueForUsage') + ->inject('queueForStatsUsage') + ->inject('queueForFunctions') + ->inject('executor') ->inject('geodb') - ->action(function (App $utopia, SwooleRequest $swooleRequest, Request $request, Response $response, Database $dbForConsole, callable $getProjectDB, Event $queueForEvents, Usage $queueForUsage, Reader $geodb) { + ->inject('isResourceBlocked') + ->inject('previewHostname') + ->action(function (App $utopia, SwooleRequest $swooleRequest, Request $request, Response $response, Database $dbForPlatform, callable $getProjectDB, Event $queueForEvents, StatsUsage $queueForStatsUsage, Func $queueForFunctions, Executor $executor, Reader $geodb, callable $isResourceBlocked, string $previewHostname) { $host = $request->getHostname() ?? ''; $mainDomain = System::getEnv('_APP_DOMAIN', ''); - if ($host === $mainDomain || $host === 'localhost') { + if (($host === $mainDomain || $host === 'localhost') && empty($previewHostname)) { $template = new View(__DIR__ . '/../views/general/robots.phtml'); $response->text($template->render(false)); } else { - router($utopia, $dbForConsole, $getProjectDB, $swooleRequest, $request, $response, $queueForEvents, $queueForUsage, $geodb); + router($utopia, $dbForPlatform, $getProjectDB, $swooleRequest, $request, $response, $queueForEvents, $queueForStatsUsage, $queueForFunctions, $executor, $geodb, $isResourceBlocked, $previewHostname); } }); @@ -974,20 +1071,24 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo ->inject('swooleRequest') ->inject('request') ->inject('response') - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('getProjectDB') ->inject('queueForEvents') - ->inject('queueForUsage') + ->inject('queueForStatsUsage') + ->inject('queueForFunctions') + ->inject('executor') ->inject('geodb') - ->action(function (App $utopia, SwooleRequest $swooleRequest, Request $request, Response $response, Database $dbForConsole, callable $getProjectDB, Event $queueForEvents, Usage $queueForUsage, Reader $geodb) { + ->inject('isResourceBlocked') + ->inject('previewHostname') + ->action(function (App $utopia, SwooleRequest $swooleRequest, Request $request, Response $response, Database $dbForPlatform, callable $getProjectDB, Event $queueForEvents, StatsUsage $queueForStatsUsage, Func $queueForFunctions, Executor $executor, Reader $geodb, callable $isResourceBlocked, string $previewHostname) { $host = $request->getHostname() ?? ''; $mainDomain = System::getEnv('_APP_DOMAIN', ''); - if ($host === $mainDomain || $host === 'localhost') { + if (($host === $mainDomain || $host === 'localhost') && empty($previewHostname)) { $template = new View(__DIR__ . '/../views/general/humans.phtml'); $response->text($template->render(false)); } else { - router($utopia, $dbForConsole, $getProjectDB, $swooleRequest, $request, $response, $queueForEvents, $queueForUsage, $geodb); + router($utopia, $dbForPlatform, $getProjectDB, $swooleRequest, $request, $response, $queueForEvents, $queueForStatsUsage, $queueForFunctions, $executor, $geodb, $isResourceBlocked, $previewHostname); } }); @@ -1044,6 +1145,38 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo include_once __DIR__ . '/shared/api.php'; include_once __DIR__ . '/shared/api/auth.php'; +App::get('/v1/ping') + ->groups(['api', 'general']) + ->desc('Test the connection between the Appwrite and the SDK.') + ->label('scope', 'global') + ->label('event', 'projects.[projectId].ping') + ->inject('response') + ->inject('project') + ->inject('dbForPlatform') + ->inject('queueForEvents') + ->action(function (Response $response, Document $project, Database $dbForPlatform, Event $queueForEvents) { + if ($project->isEmpty() || $project->getId() === 'console') { + throw new AppwriteException(AppwriteException::PROJECT_NOT_FOUND); + } + + $pingCount = $project->getAttribute('pingCount', 0) + 1; + $pingedAt = DateTime::now(); + + $project + ->setAttribute('pingCount', $pingCount) + ->setAttribute('pingedAt', $pingedAt); + + Authorization::skip(function () use ($dbForPlatform, $project) { + $dbForPlatform->updateDocument('projects', $project->getId(), $project); + }); + + $queueForEvents + ->setParam('projectId', $project->getId()) + ->setPayload($response->output($project, Response::MODEL_PROJECT)); + + $response->text('Pong!'); + }); + App::wildcard() ->groups(['api']) ->label('scope', 'global') @@ -1054,3 +1187,8 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo foreach (Config::getParam('services', []) as $service) { include_once $service['controller']; } + +// Check for any errors found while we were initialising the SDK Methods. +if (!empty(Method::getErrors())) { + throw new \Exception('Errors found during SDK initialization:' . PHP_EOL . implode(PHP_EOL, Method::getErrors())); +} diff --git a/app/controllers/mock.php b/app/controllers/mock.php index fdb1d80dcc6..16d8e038417 100644 --- a/app/controllers/mock.php +++ b/app/controllers/mock.php @@ -24,7 +24,7 @@ ->groups(['mock']) ->label('scope', 'public') ->label('docs', false) - ->label('sdk.mock', true) + ->label('mock', true) ->param('client_id', '', new Text(100), 'OAuth2 Client ID.') ->param('redirect_uri', '', new Host(['localhost']), 'OAuth2 Redirect URI.') // Important to deny an open redirect attack ->param('scope', '', new Text(100), 'OAuth2 scope list.') @@ -40,7 +40,7 @@ ->groups(['mock']) ->label('scope', 'public') ->label('docs', false) - ->label('sdk.mock', true) + ->label('mock', true) ->param('client_id', '', new Text(100), 'OAuth2 Client ID.') ->param('client_secret', '', new Text(100), 'OAuth2 scope list.') ->param('grant_type', 'authorization_code', new WhiteList(['refresh_token', 'authorization_code']), 'OAuth2 Grant Type.', true) @@ -158,19 +158,19 @@ App::post('/v1/mock/api-key-unprefixed') ->desc('Create API Key (without standard prefix)') ->groups(['mock', 'api', 'projects']) - ->label('scope', 'projects.write') + ->label('scope', 'public') ->label('docs', false) ->param('projectId', '', new UID(), 'Project ID.') ->inject('response') - ->inject('dbForConsole') - ->action(function (string $projectId, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $projectId, Response $response, Database $dbForPlatform) { $isDevelopment = System::getEnv('_APP_ENV', 'development') === 'development'; if (!$isDevelopment) { throw new Exception(Exception::GENERAL_NOT_IMPLEMENTED); } - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); @@ -195,9 +195,9 @@ 'secret' => \bin2hex(\random_bytes(128)), ]); - $key = $dbForConsole->createDocument('keys', $key); + $key = $dbForPlatform->createDocument('keys', $key); - $dbForConsole->purgeCachedDocument('projects', $project->getId()); + $dbForPlatform->purgeCachedDocument('projects', $project->getId()); $response ->setStatusCode(Response::STATUS_CODE_CREATED) @@ -214,15 +214,15 @@ ->inject('gitHub') ->inject('project') ->inject('response') - ->inject('dbForConsole') - ->action(function (string $providerInstallationId, string $projectId, GitHub $github, Document $project, Response $response, Database $dbForConsole) { + ->inject('dbForPlatform') + ->action(function (string $providerInstallationId, string $projectId, GitHub $github, Document $project, Response $response, Database $dbForPlatform) { $isDevelopment = System::getEnv('_APP_ENV', 'development') === 'development'; if (!$isDevelopment) { throw new Exception(Exception::GENERAL_NOT_IMPLEMENTED); } - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); if ($project->isEmpty()) { $error = 'Project with the ID from state could not be found.'; @@ -256,7 +256,7 @@ 'personal' => false ]); - $installation = $dbForConsole->createDocument('installations', $installation); + $installation = $dbForPlatform->createDocument('installations', $installation); } $response->json([ diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index 0cb88d31fa4..dfa070063c1 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -1,8 +1,7 @@ <?php -use Ahc\Jwt\JWT; -use Ahc\Jwt\JWTException; use Appwrite\Auth\Auth; +use Appwrite\Auth\Key; use Appwrite\Auth\MFA\Type\TOTP; use Appwrite\Event\Audit; use Appwrite\Event\Build; @@ -11,14 +10,15 @@ use Appwrite\Event\Event; use Appwrite\Event\Func; use Appwrite\Event\Messaging; -use Appwrite\Event\Usage; +use Appwrite\Event\Realtime; +use Appwrite\Event\StatsUsage; +use Appwrite\Event\Webhook; use Appwrite\Extend\Exception; use Appwrite\Extend\Exception as AppwriteException; -use Appwrite\Messaging\Adapter\Realtime; +use Appwrite\SDK\Method; use Appwrite\Utopia\Request; use Appwrite\Utopia\Response; use Utopia\Abuse\Abuse; -use Utopia\Abuse\Adapters\Database\TimeLimit; use Utopia\App; use Utopia\Cache\Adapter\Filesystem; use Utopia\Cache\Cache; @@ -28,6 +28,7 @@ use Utopia\Database\Document; use Utopia\Database\Helpers\Role; use Utopia\Database\Validator\Authorization; +use Utopia\Queue\Publisher; use Utopia\System\System; use Utopia\Validator\WhiteList; @@ -57,89 +58,124 @@ return $label; }; -$databaseListener = function (string $event, Document $document, Document $project, Usage $queueForUsage, Database $dbForProject) { +$eventDatabaseListener = function (Document $project, Document $document, Response $response, Event $queueForEvents, Func $queueForFunctions, Webhook $queueForWebhooks, Realtime $queueForRealtime) { + // Only trigger events for user creation with the database listener. + if ($document->getCollection() !== 'users') { + return; + } + + $queueForEvents + ->setEvent('users.[userId].create') + ->setParam('userId', $document->getId()) + ->setPayload($response->output($document, Response::MODEL_USER)); + + // Trigger functions, webhooks, and realtime events + $queueForFunctions + ->from($queueForEvents) + ->trigger(); + + + /** Trigger webhooks events only if a project has them enabled */ + if (!empty($project->getAttribute('webhooks'))) { + $queueForWebhooks + ->from($queueForEvents) + ->trigger(); + } + + /** Trigger realtime events only for non console events */ + if ($queueForEvents->getProject()->getId() !== 'console') { + $queueForRealtime + ->from($queueForEvents) + ->trigger(); + } +}; +$usageDatabaseListener = function (string $event, Document $document, StatsUsage $queueForStatsUsage) { $value = 1; - if ($event === Database::EVENT_DOCUMENT_DELETE) { - $value = -1; + + switch ($event) { + case Database::EVENT_DOCUMENT_DELETE: + $value = -1; + break; + case Database::EVENT_DOCUMENTS_DELETE: + $value = -1 * $document->getAttribute('modified', 0); + break; + case Database::EVENT_DOCUMENTS_CREATE: + $value = $document->getAttribute('modified', 0); + break; + case Database::EVENT_DOCUMENTS_UPSERT: + $value = $document->getAttribute('created', 0); + break; } switch (true) { case $document->getCollection() === 'teams': - $queueForUsage - ->addMetric(METRIC_TEAMS, $value); // per project + $queueForStatsUsage->addMetric(METRIC_TEAMS, $value); // per project break; case $document->getCollection() === 'users': - $queueForUsage - ->addMetric(METRIC_USERS, $value); // per project + $queueForStatsUsage->addMetric(METRIC_USERS, $value); // per project if ($event === Database::EVENT_DOCUMENT_DELETE) { - $queueForUsage - ->addReduce($document); + $queueForStatsUsage->addReduce($document); } break; case $document->getCollection() === 'sessions': // sessions - $queueForUsage - ->addMetric(METRIC_SESSIONS, $value); //per project + $queueForStatsUsage->addMetric(METRIC_SESSIONS, $value); //per project break; case $document->getCollection() === 'databases': // databases - $queueForUsage - ->addMetric(METRIC_DATABASES, $value); // per project + $queueForStatsUsage->addMetric(METRIC_DATABASES, $value); // per project if ($event === Database::EVENT_DOCUMENT_DELETE) { - $queueForUsage - ->addReduce($document); + $queueForStatsUsage->addReduce($document); } break; case str_starts_with($document->getCollection(), 'database_') && !str_contains($document->getCollection(), 'collection'): //collections $parts = explode('_', $document->getCollection()); $databaseInternalId = $parts[1] ?? 0; - $queueForUsage + $queueForStatsUsage ->addMetric(METRIC_COLLECTIONS, $value) // per project - ->addMetric(str_replace('{databaseInternalId}', $databaseInternalId, METRIC_DATABASE_ID_COLLECTIONS), $value) // per database - ; + ->addMetric(str_replace('{databaseInternalId}', $databaseInternalId, METRIC_DATABASE_ID_COLLECTIONS), $value); if ($event === Database::EVENT_DOCUMENT_DELETE) { - $queueForUsage - ->addReduce($document); + $queueForStatsUsage->addReduce($document); } break; case str_starts_with($document->getCollection(), 'database_') && str_contains($document->getCollection(), '_collection_'): //documents $parts = explode('_', $document->getCollection()); $databaseInternalId = $parts[1] ?? 0; $collectionInternalId = $parts[3] ?? 0; - $queueForUsage + $queueForStatsUsage ->addMetric(METRIC_DOCUMENTS, $value) // per project ->addMetric(str_replace('{databaseInternalId}', $databaseInternalId, METRIC_DATABASE_ID_DOCUMENTS), $value) // per database ->addMetric(str_replace(['{databaseInternalId}', '{collectionInternalId}'], [$databaseInternalId, $collectionInternalId], METRIC_DATABASE_ID_COLLECTION_ID_DOCUMENTS), $value); // per collection break; case $document->getCollection() === 'buckets': //buckets - $queueForUsage + $queueForStatsUsage ->addMetric(METRIC_BUCKETS, $value); // per project if ($event === Database::EVENT_DOCUMENT_DELETE) { - $queueForUsage + $queueForStatsUsage ->addReduce($document); } break; case str_starts_with($document->getCollection(), 'bucket_'): // files $parts = explode('_', $document->getCollection()); $bucketInternalId = $parts[1]; - $queueForUsage + $queueForStatsUsage ->addMetric(METRIC_FILES, $value) // per project ->addMetric(METRIC_FILES_STORAGE, $document->getAttribute('sizeOriginal') * $value) // per project ->addMetric(str_replace('{bucketInternalId}', $bucketInternalId, METRIC_BUCKET_ID_FILES), $value) // per bucket ->addMetric(str_replace('{bucketInternalId}', $bucketInternalId, METRIC_BUCKET_ID_FILES_STORAGE), $document->getAttribute('sizeOriginal') * $value); // per bucket break; case $document->getCollection() === 'functions': - $queueForUsage + $queueForStatsUsage ->addMetric(METRIC_FUNCTIONS, $value); // per project if ($event === Database::EVENT_DOCUMENT_DELETE) { - $queueForUsage + $queueForStatsUsage ->addReduce($document); } break; case $document->getCollection() === 'deployments': - $queueForUsage + $queueForStatsUsage ->addMetric(METRIC_DEPLOYMENTS, $value) // per project ->addMetric(METRIC_DEPLOYMENTS_STORAGE, $document->getAttribute('size') * $value) // per project ->addMetric(str_replace(['{resourceType}', '{resourceInternalId}'], [$document->getAttribute('resourceType'), $document->getAttribute('resourceInternalId')], METRIC_FUNCTION_ID_DEPLOYMENTS), $value) // per function @@ -154,171 +190,181 @@ ->groups(['api']) ->inject('utopia') ->inject('request') - ->inject('dbForConsole') + ->inject('dbForPlatform') + ->inject('dbForProject') + ->inject('queueForAudits') ->inject('project') ->inject('user') ->inject('session') ->inject('servers') ->inject('mode') - ->action(function (App $utopia, Request $request, Database $dbForConsole, Document $project, Document $user, ?Document $session, array $servers, string $mode) { + ->inject('team') + ->inject('apiKey') + ->action(function (App $utopia, Request $request, Database $dbForPlatform, Database $dbForProject, Audit $queueForAudits, Document $project, Document $user, ?Document $session, array $servers, string $mode, Document $team, ?Key $apiKey) { $route = $utopia->getRoute(); if ($project->isEmpty()) { throw new Exception(Exception::PROJECT_NOT_FOUND); } - /** - * ACL Check - */ - $role = ($user->isEmpty()) + $roles = Config::getParam('roles', []); + + $role = $user->isEmpty() ? Role::guests()->toString() : Role::users()->toString(); - // Add user roles - $memberships = $user->find('teamId', $project->getAttribute('teamId'), 'memberships'); - - if ($memberships) { - foreach ($memberships->getAttribute('roles', []) as $memberRole) { - switch ($memberRole) { - case 'owner': - $role = Auth::USER_ROLE_OWNER; - break; - case 'admin': - $role = Auth::USER_ROLE_ADMIN; - break; - case 'developer': - $role = Auth::USER_ROLE_DEVELOPER; - break; - } - } - } - - $roles = Config::getParam('roles', []); - $scope = $route->getLabel('scope', 'none'); // Allowed scope for chosen route - $scopes = $roles[$role]['scopes']; // Allowed scopes for user role - - $apiKey = $request->getHeader('x-appwrite-key', ''); + $scopes = $roles[$role]['scopes']; // API Key authentication if (!empty($apiKey)) { - // Do not allow API key and session to be set at the same time if (!$user->isEmpty()) { throw new Exception(Exception::USER_API_KEY_AND_SESSION_SET); } - - // Remove after migration - if (!\str_contains($apiKey, '_')) { - $keyType = API_KEY_STANDARD; - $authKey = $apiKey; - } else { - [ $keyType, $authKey ] = \explode('_', $apiKey, 2); + if ($apiKey->isExpired()) { + throw new Exception(Exception::PROJECT_KEY_EXPIRED); } - if ($keyType === API_KEY_DYNAMIC) { - // Dynamic key + $role = $apiKey->getRole(); + $scopes = $apiKey->getScopes(); - $jwtObj = new JWT(System::getEnv('_APP_OPENSSL_KEY_V1'), 'HS256', 3600, 0); + // Disable authorization checks for API keys + Authorization::setDefaultStatus(false); - try { - $payload = $jwtObj->decode($authKey); - } catch (JWTException $error) { - throw new Exception(Exception::API_KEY_EXPIRED); - } + if ($apiKey->getRole() === Auth::USER_ROLE_APPS) { + $user = new Document([ + '$id' => '', + 'status' => true, + 'type' => Auth::ACTIVITY_TYPE_APP, + 'email' => 'app.' . $project->getId() . '@service.' . $request->getHostname(), + 'password' => '', + 'name' => $apiKey->getName(), + ]); + + $queueForAudits->setUser($user); + } - $projectId = $payload['projectId'] ?? ''; - $tokenScopes = $payload['scopes'] ?? []; + if ($apiKey->getType() === API_KEY_STANDARD) { + $dbKey = $project->find( + key: 'secret', + find: $request->getHeader('x-appwrite-key', ''), + subject: 'keys' + ); - // JWT includes project ID for better security - if ($projectId === $project->getId()) { - $user = new Document([ - '$id' => '', - 'status' => true, - 'email' => 'app.' . $project->getId() . '@service.' . $request->getHostname(), - 'password' => '', - 'name' => $project->getAttribute('name', 'Untitled'), - ]); + if (!$dbKey) { + throw new Exception(Exception::USER_UNAUTHORIZED); + } - $role = Auth::USER_ROLE_APPS; - $scopes = \array_merge($roles[$role]['scopes'], $tokenScopes); + $accessedAt = $dbKey->getAttribute('accessedAt', ''); - Authorization::setRole(Auth::USER_ROLE_APPS); - Authorization::setDefaultStatus(false); // Cancel security segmentation for API keys. + if (DateTime::formatTz(DateTime::addSeconds(new \DateTime(), -APP_KEY_ACCESS)) > $accessedAt) { + $dbKey->setAttribute('accessedAt', DateTime::now()); + $dbForPlatform->updateDocument('keys', $dbKey->getId(), $dbKey); + $dbForPlatform->purgeCachedDocument('projects', $project->getId()); } - } elseif ($keyType === API_KEY_STANDARD) { - // No underline means no prefix. Backwards compatibility. - // Regular key - - // Check if given key match project API keys - $key = $project->find('secret', $apiKey, 'keys'); - if ($key) { - $user = new Document([ - '$id' => '', - 'status' => true, - 'email' => 'app.' . $project->getId() . '@service.' . $request->getHostname(), - 'password' => '', - 'name' => $project->getAttribute('name', 'Untitled'), - ]); - - $role = Auth::USER_ROLE_APPS; - $scopes = \array_merge($roles[$role]['scopes'], $key->getAttribute('scopes', [])); - - $expire = $key->getAttribute('expire'); - if (!empty($expire) && $expire < DateTime::formatTz(DateTime::now())) { - throw new Exception(Exception::PROJECT_KEY_EXPIRED); - } - Authorization::setRole(Auth::USER_ROLE_APPS); - Authorization::setDefaultStatus(false); // Cancel security segmentation for API keys. + $sdkValidator = new WhiteList($servers, true); + $sdk = $request->getHeader('x-sdk-name', 'UNKNOWN'); - $accessedAt = $key->getAttribute('accessedAt', ''); - if (DateTime::formatTz(DateTime::addSeconds(new \DateTime(), -APP_KEY_ACCESS)) > $accessedAt) { - $key->setAttribute('accessedAt', DateTime::now()); - $dbForConsole->updateDocument('keys', $key->getId(), $key); - $dbForConsole->purgeCachedDocument('projects', $project->getId()); - } + if ($sdkValidator->isValid($sdk)) { + $sdks = $dbKey->getAttribute('sdks', []); - $sdkValidator = new WhiteList($servers, true); - $sdk = $request->getHeader('x-sdk-name', 'UNKNOWN'); - if ($sdkValidator->isValid($sdk)) { - $sdks = $key->getAttribute('sdks', []); - if (!in_array($sdk, $sdks)) { - array_push($sdks, $sdk); - $key->setAttribute('sdks', $sdks); - - /** Update access time as well */ - $key->setAttribute('accessedAt', Datetime::now()); - $dbForConsole->updateDocument('keys', $key->getId(), $key); - $dbForConsole->purgeCachedDocument('projects', $project->getId()); - } + if (!in_array($sdk, $sdks)) { + $sdks[] = $sdk; + $dbKey->setAttribute('sdks', $sdks); + + /** Update access time as well */ + $dbKey->setAttribute('accessedAt', Datetime::now()); + $dbForPlatform->updateDocument('keys', $dbKey->getId(), $dbKey); + $dbForPlatform->purgeCachedDocument('projects', $project->getId()); } } + + $queueForAudits->setUser($user); + } + } // Admin User Authentication + elseif (($project->getId() === 'console' && !$team->isEmpty() && !$user->isEmpty()) || ($project->getId() !== 'console' && !$user->isEmpty() && $mode === APP_MODE_ADMIN)) { + $teamId = $team->getId(); + $adminRoles = []; + $memberships = $user->getAttribute('memberships', []); + foreach ($memberships as $membership) { + if ($membership->getAttribute('confirm', false) === true && $membership->getAttribute('teamId') === $teamId) { + $adminRoles = $membership->getAttribute('roles', []); + break; + } } + + if (empty($adminRoles)) { + throw new Exception(Exception::USER_UNAUTHORIZED); + } + + $scopes = []; // Reset scope if admin + foreach ($adminRoles as $role) { + $scopes = \array_merge($scopes, $roles[$role]['scopes']); + } + + Authorization::setDefaultStatus(false); // Cancel security segmentation for admin users. } - Authorization::setRole($role); + $scopes = \array_unique($scopes); + Authorization::setRole($role); foreach (Auth::getRoles($user) as $authRole) { Authorization::setRole($authRole); } - $service = $route->getLabel('sdk.namespace', ''); - if (!empty($service)) { + // Update project last activity + if (!$project->isEmpty() && $project->getId() !== 'console') { + $accessedAt = $project->getAttribute('accessedAt', ''); + if (DateTime::formatTz(DateTime::addSeconds(new \DateTime(), -APP_PROJECT_ACCESS)) > $accessedAt) { + $project->setAttribute('accessedAt', DateTime::now()); + Authorization::skip(fn () => $dbForPlatform->updateDocument('projects', $project->getId(), $project)); + } + } + + // Update user last activity + if (!empty($user->getId())) { + $accessedAt = $user->getAttribute('accessedAt', ''); + if (DateTime::formatTz(DateTime::addSeconds(new \DateTime(), -APP_USER_ACCESS)) > $accessedAt) { + $user->setAttribute('accessedAt', DateTime::now()); + + if (APP_MODE_ADMIN !== $mode) { + $dbForProject->updateDocument('users', $user->getId(), $user); + } else { + $dbForPlatform->updateDocument('users', $user->getId(), $user); + } + } + } + + /** + * @var ?Method $method + */ + $method = $route->getLabel('sdk', false); + + // Take the first method if there's more than one, + // namespace can not differ between methods on the same route + if (\is_array($method)) { + $method = $method[0]; + } + + if (!empty($method)) { + $namespace = $method->getNamespace(); + if ( - array_key_exists($service, $project->getAttribute('services', [])) - && !$project->getAttribute('services', [])[$service] + array_key_exists($namespace, $project->getAttribute('services', [])) + && !$project->getAttribute('services', [])[$namespace] && !(Auth::isPrivilegedUser(Authorization::getRoles()) || Auth::isAppUser(Authorization::getRoles())) ) { throw new Exception(Exception::GENERAL_SERVICE_DISABLED); } } - if (!\in_array($scope, $scopes)) { - if ($project->isEmpty()) { // Check if permission is denied because project is missing - throw new Exception(Exception::PROJECT_NOT_FOUND); - } + // Do now allow access if scope is not allowed + $scope = $route->getLabel('scope', 'none'); + if (!\in_array($scope, $scopes)) { throw new Exception(Exception::GENERAL_UNAUTHORIZED_SCOPE, $user->getAttribute('email', 'User') . ' (role: ' . \strtolower($roles[$role]['label']) . ') missing scope (' . $scope . ')'); } + // Do not allow access to blocked accounts if (false === $user->getAttribute('status')) { // Account is blocked throw new Exception(Exception::USER_BLOCKED); } @@ -348,16 +394,20 @@ ->inject('response') ->inject('project') ->inject('user') + ->inject('publisher') ->inject('queueForEvents') ->inject('queueForMessaging') ->inject('queueForAudits') ->inject('queueForDeletes') ->inject('queueForDatabase') ->inject('queueForBuilds') - ->inject('queueForUsage') + ->inject('queueForStatsUsage') ->inject('dbForProject') + ->inject('timelimit') ->inject('mode') - ->action(function (App $utopia, Request $request, Response $response, Document $project, Document $user, Event $queueForEvents, Messaging $queueForMessaging, Audit $queueForAudits, Delete $queueForDeletes, EventDatabase $queueForDatabase, Build $queueForBuilds, Usage $queueForUsage, Database $dbForProject, string $mode) use ($databaseListener) { + ->inject('apiKey') + ->inject('plan') + ->action(function (App $utopia, Request $request, Response $response, Document $project, Document $user, Publisher $publisher, Event $queueForEvents, Messaging $queueForMessaging, Audit $queueForAudits, Delete $queueForDeletes, EventDatabase $queueForDatabase, Build $queueForBuilds, StatsUsage $queueForStatsUsage, Database $dbForProject, callable $timelimit, string $mode, ?Key $apiKey, array $plan) use ($usageDatabaseListener, $eventDatabaseListener) { $route = $utopia->getRoute(); @@ -380,7 +430,7 @@ foreach ($abuseKeyLabel as $abuseKey) { $start = $request->getContentRangeStart(); $end = $request->getContentRangeEnd(); - $timeLimit = new TimeLimit($abuseKey, $route->getLabel('abuse-limit', 0), $route->getLabel('abuse-time', 3600), $dbForProject); + $timeLimit = $timelimit($abuseKey, $route->getLabel('abuse-limit', 0), $route->getLabel('abuse-time', 3600)); $timeLimit ->setParam('{projectId}', $project->getId()) ->setParam('{userId}', $user->getId()) @@ -388,7 +438,7 @@ ->setParam('{ip}', $request->getIP()) ->setParam('{url}', $request->getHostname() . $route->getPath()) ->setParam('{method}', $request->getMethod()) - ->setParam('{chunkId}', (int) ($start / ($end + 1 - $start))); + ->setParam('{chunkId}', (int)($start / ($end + 1 - $start))); $timeLimitArray[] = $timeLimit; } @@ -408,7 +458,7 @@ $abuse = new Abuse($timeLimit); $remaining = $timeLimit->remaining(); $limit = $timeLimit->limit(); - $time = (new \DateTime($timeLimit->time()))->getTimestamp() + $route->getLabel('abuse-time', 3600); + $time = $timeLimit->time() + $route->getLabel('abuse-time', 3600); if ($limit && ($remaining < $closestLimit || is_null($closestLimit))) { $closestLimit = $remaining; @@ -442,22 +492,59 @@ ->setMode($mode) ->setUserAgent($request->getUserAgent('')) ->setIP($request->getIP()) + ->setHostname($request->getHostname()) ->setEvent($route->getLabel('audits.event', '')) - ->setProject($project) - ->setUser($user); + ->setProject($project); + + /* If a session exists, use the user associated with the session */ + if (!$user->isEmpty()) { + $userClone = clone $user; + // $user doesn't support `type` and can cause unintended effects. + $userClone->setAttribute('type', Auth::ACTIVITY_TYPE_USER); + $queueForAudits->setUser($userClone); + } + + if (!empty($apiKey) && !empty($apiKey->getDisabledMetrics())) { + foreach ($apiKey->getDisabledMetrics() as $key) { + $queueForStatsUsage->disableMetric($key); + } + } $queueForDeletes->setProject($project); $queueForDatabase->setProject($project); $queueForBuilds->setProject($project); $queueForMessaging->setProject($project); + // Clone the queues, to prevent events triggered by the database listener + // from overwriting the events that are supposed to be triggered in the shutdown hook. + $queueForEventsClone = new Event($publisher); + $queueForFunctions = new Func($publisher); + $queueForWebhooks = new Webhook($publisher); + $queueForRealtime = new Realtime(); + $dbForProject - ->on(Database::EVENT_DOCUMENT_CREATE, 'calculate-usage', fn ($event, $document) => $databaseListener($event, $document, $project, $queueForUsage, $dbForProject)) - ->on(Database::EVENT_DOCUMENT_DELETE, 'calculate-usage', fn ($event, $document) => $databaseListener($event, $document, $project, $queueForUsage, $dbForProject)); + ->on(Database::EVENT_DOCUMENT_CREATE, 'calculate-usage', fn ($event, $document) => $usageDatabaseListener($event, $document, $queueForStatsUsage)) + ->on(Database::EVENT_DOCUMENT_DELETE, 'calculate-usage', fn ($event, $document) => $usageDatabaseListener($event, $document, $queueForStatsUsage)) + ->on(Database::EVENT_DOCUMENTS_CREATE, 'calculate-usage', fn ($event, $document) => $usageDatabaseListener($event, $document, $queueForStatsUsage)) + ->on(Database::EVENT_DOCUMENTS_DELETE, 'calculate-usage', fn ($event, $document) => $usageDatabaseListener($event, $document, $queueForStatsUsage)) + ->on(Database::EVENT_DOCUMENTS_UPSERT, 'calculate-usage', fn ($event, $document) => $usageDatabaseListener($event, $document, $queueForStatsUsage)) + ->on(Database::EVENT_DOCUMENT_CREATE, 'create-trigger-events', fn ($event, $document) => $eventDatabaseListener( + $project, + $document, + $response, + $queueForEventsClone->from($queueForEvents), + $queueForFunctions->from($queueForEvents), + $queueForWebhooks->from($queueForEvents), + $queueForRealtime->from($queueForEvents) + )); $useCache = $route->getLabel('cache', false); if ($useCache) { - $key = md5($request->getURI() . '*' . implode('*', $request->getParams()) . '*' . APP_CACHE_BUSTER); + $route = $utopia->match($request); + $isImageTransformation = $route->getPath() === '/v1/storage/buckets/:bucketId/files/:fileId/preview'; + $isDisabled = isset($plan['imageTransformations']) && $plan['imageTransformations'] === -1 && !Auth::isPrivilegedUser(Authorization::getRoles()); + + $key = $request->cacheIdentifier(); $cacheLog = Authorization::skip(fn () => $dbForProject->getDocument('cache', $key)); $cache = new Cache( new Filesystem(APP_STORAGE_CACHE . DIRECTORY_SEPARATOR . 'app-' . $project->getId()) @@ -466,17 +553,14 @@ $data = $cache->load($key, $timestamp); if (!empty($data) && !$cacheLog->isEmpty()) { - $parts = explode('/', $cacheLog->getAttribute('resourceType')); + $parts = explode('/', $cacheLog->getAttribute('resourceType', '')); $type = $parts[0] ?? null; - if ($type === 'bucket') { + if ($type === 'bucket' && (!$isImageTransformation || !$isDisabled)) { $bucketId = $parts[1] ?? null; - $bucket = Authorization::skip(fn () => $dbForProject->getDocument('buckets', $bucketId)); - - $isAPIKey = Auth::isAppUser(Authorization::getRoles()); - $isPrivilegedUser = Auth::isPrivilegedUser(Authorization::getRoles()); + $bucket = Authorization::skip(fn () => $dbForProject->getDocument('buckets', $bucketId)); - if ($bucket->isEmpty() || (!$bucket->getAttribute('enabled') && !$isAPIKey && !$isPrivilegedUser)) { + if ($bucket->isEmpty() || (!$bucket->getAttribute('enabled') && !$isAppUser && !$isPrivilegedUser)) { throw new Exception(Exception::STORAGE_BUCKET_NOT_FOUND); } @@ -500,20 +584,29 @@ if ($file->isEmpty()) { throw new Exception(Exception::STORAGE_FILE_NOT_FOUND); } + //Do not update transformedAt if it's a console user + if (!Auth::isPrivilegedUser(Authorization::getRoles())) { + $transformedAt = $file->getAttribute('transformedAt', ''); + if (DateTime::formatTz(DateTime::addSeconds(new \DateTime(), -APP_PROJECT_ACCESS)) > $transformedAt) { + $file->setAttribute('transformedAt', DateTime::now()); + Authorization::skip(fn () => $dbForProject->updateDocument('bucket_' . $file->getAttribute('bucketInternalId'), $file->getId(), $file)); + } + } } $response - ->addHeader('Expires', \date('D, d M Y H:i:s', \time() + $timestamp) . ' GMT') + ->addHeader('Cache-Control', sprintf('private, max-age=%d', $timestamp)) ->addHeader('X-Appwrite-Cache', 'hit') - ->setContentType($cacheLog->getAttribute('mimeType')) - ->send($data); + ->setContentType($cacheLog->getAttribute('mimeType')); + if (!$isImageTransformation || !$isDisabled) { + $response->send($data); + } } else { $response ->addHeader('Cache-Control', 'no-cache, no-store, must-revalidate') ->addHeader('Pragma', 'no-cache') - ->addHeader('Expires', 0) - ->addHeader('X-Appwrite-Cache', 'miss') - ; + ->addHeader('Expires', '0') + ->addHeader('X-Appwrite-Cache', 'miss'); } } }); @@ -581,16 +674,16 @@ ->inject('user') ->inject('queueForEvents') ->inject('queueForAudits') - ->inject('queueForUsage') + ->inject('queueForStatsUsage') ->inject('queueForDeletes') ->inject('queueForDatabase') ->inject('queueForBuilds') ->inject('queueForMessaging') - ->inject('dbForProject') ->inject('queueForFunctions') - ->inject('mode') - ->inject('dbForConsole') - ->action(function (App $utopia, Request $request, Response $response, Document $project, Document $user, Event $queueForEvents, Audit $queueForAudits, Usage $queueForUsage, Delete $queueForDeletes, EventDatabase $queueForDatabase, Build $queueForBuilds, Messaging $queueForMessaging, Database $dbForProject, Func $queueForFunctions, string $mode, Database $dbForConsole) use ($parseLabel) { + ->inject('queueForWebhooks') + ->inject('queueForRealtime') + ->inject('dbForProject') + ->action(function (App $utopia, Request $request, Response $response, Document $project, Document $user, Event $queueForEvents, Audit $queueForAudits, StatsUsage $queueForStatsUsage, Delete $queueForDeletes, EventDatabase $queueForDatabase, Build $queueForBuilds, Messaging $queueForMessaging, Func $queueForFunctions, Event $queueForWebhooks, Realtime $queueForRealtime, Database $dbForProject) use ($parseLabel) { $responsePayload = $response->getPayload(); @@ -599,53 +692,25 @@ $queueForEvents->setPayload($responsePayload); } - /** - * Trigger functions. - */ $queueForFunctions ->from($queueForEvents) ->trigger(); - /** - * Trigger webhooks. - */ - $queueForEvents - ->setClass(Event::WEBHOOK_CLASS_NAME) - ->setQueue(Event::WEBHOOK_QUEUE_NAME) - ->trigger(); - - /** - * Trigger realtime. - */ if ($project->getId() !== 'console') { - $allEvents = Event::generateEvents($queueForEvents->getEvent(), $queueForEvents->getParams()); - $payload = new Document($queueForEvents->getPayload()); - - $db = $queueForEvents->getContext('database'); - $collection = $queueForEvents->getContext('collection'); - $bucket = $queueForEvents->getContext('bucket'); - - $target = Realtime::fromPayload( - // Pass first, most verbose event pattern - event: $allEvents[0], - payload: $payload, - project: $project, - database: $db, - collection: $collection, - bucket: $bucket, - ); + $queueForRealtime + ->from($queueForEvents) + ->trigger(); + } - Realtime::send( - projectId: $target['projectId'] ?? $project->getId(), - payload: $queueForEvents->getRealtimePayload(), - events: $allEvents, - channels: $target['channels'], - roles: $target['roles'], - options: [ - 'permissionsChanged' => $target['permissionsChanged'], - 'userId' => $queueForEvents->getParam('userId') - ] - ); + /** Trigger webhooks events only if a project has them enabled + * A future optimisation is to only trigger webhooks if the webhook is "enabled" + * But it might have performance implications on the API due to the number of webhooks etc. + * Some profiling is needed to see if this is a problem. + */ + if (!empty($project->getAttribute('webhooks'))) { + $queueForWebhooks + ->from($queueForEvents) + ->trigger(); } } @@ -664,10 +729,32 @@ } if (!$user->isEmpty()) { + $userClone = clone $user; + // $user doesn't support `type` and can cause unintended effects. + $userClone->setAttribute('type', Auth::ACTIVITY_TYPE_USER); + $queueForAudits->setUser($userClone); + } elseif ($queueForAudits->getUser() === null || $queueForAudits->getUser()->isEmpty()) { + /** + * User in the request is empty, and no user was set for auditing previously. + * This indicates: + * - No API Key was used. + * - No active session exists. + * + * Therefore, we consider this an anonymous request and create a relevant user. + */ + $user = new Document([ + '$id' => '', + 'status' => true, + 'type' => Auth::ACTIVITY_TYPE_GUEST, + 'email' => 'guest.' . $project->getId() . '@service.' . $request->getHostname(), + 'password' => '', + 'name' => 'Guest', + ]); + $queueForAudits->setUser($user); } - if (!empty($queueForAudits->getResource()) && !empty($queueForAudits->getUser()->getId())) { + if (!empty($queueForAudits->getResource()) && !$queueForAudits->getUser()->isEmpty()) { /** * audits.payload is switched to default true * in order to auto audit payload for all endpoints @@ -680,6 +767,7 @@ foreach ($queueForEvents->getParams() as $key => $value) { $queueForAudits->setParam($key, $value); } + $queueForAudits->trigger(); } @@ -699,9 +787,7 @@ $queueForMessaging->trigger(); } - /** - * Cache label - */ + // Cache label $useCache = $route->getLabel('cache', false); if ($useCache) { $resource = $resourceType = null; @@ -717,7 +803,7 @@ $resourceType = $parseLabel($pattern, $responsePayload, $requestParams, $user); } - $key = md5($request->getURI() . '*' . implode('*', $request->getParams()) . '*' . APP_CACHE_BUSTER); + $key = $request->cacheIdentifier(); $signature = md5($data['payload']); $cacheLog = Authorization::skip(fn () => $dbForProject->getDocument('cache', $key)); $accessedAt = $cacheLog->getAttribute('accessedAt', ''); @@ -745,8 +831,6 @@ } } - - if ($project->getId() !== 'console') { if (!Auth::isPrivilegedUser(Authorization::getRoles())) { $fileSize = 0; @@ -755,43 +839,16 @@ $fileSize = (\is_array($file['size']) && isset($file['size'][0])) ? $file['size'][0] : $file['size']; } - $queueForUsage + $queueForStatsUsage ->addMetric(METRIC_NETWORK_REQUESTS, 1) ->addMetric(METRIC_NETWORK_INBOUND, $request->getSize() + $fileSize) ->addMetric(METRIC_NETWORK_OUTBOUND, $response->getSize()); } - $queueForUsage + $queueForStatsUsage ->setProject($project) ->trigger(); } - - /** - * Update project last activity - */ - if (!$project->isEmpty() && $project->getId() !== 'console') { - $accessedAt = $project->getAttribute('accessedAt', ''); - if (DateTime::formatTz(DateTime::addSeconds(new \DateTime(), -APP_PROJECT_ACCESS)) > $accessedAt) { - $project->setAttribute('accessedAt', DateTime::now()); - Authorization::skip(fn () => $dbForConsole->updateDocument('projects', $project->getId(), $project)); - } - } - - /** - * Update user last activity - */ - if (!$user->isEmpty()) { - $accessedAt = $user->getAttribute('accessedAt', ''); - if (DateTime::formatTz(DateTime::addSeconds(new \DateTime(), -APP_USER_ACCESS)) > $accessedAt) { - $user->setAttribute('accessedAt', DateTime::now()); - - if (APP_MODE_ADMIN !== $mode) { - $dbForProject->updateDocument('users', $user->getId(), $user); - } else { - $dbForConsole->updateDocument('users', $user->getId(), $user); - } - } - } }); App::init() diff --git a/app/controllers/shared/api/auth.php b/app/controllers/shared/api/auth.php index 53aacabe21b..ecabc641ecd 100644 --- a/app/controllers/shared/api/auth.php +++ b/app/controllers/shared/api/auth.php @@ -5,6 +5,7 @@ use Appwrite\Utopia\Request; use MaxMind\Db\Reader; use Utopia\App; +use Utopia\Config\Config; use Utopia\Database\DateTime; use Utopia\Database\Document; use Utopia\Database\Validator\Authorization; @@ -57,44 +58,44 @@ $auths = $project->getAttribute('auths', []); switch ($route->getLabel('auth.type', '')) { - case 'emailPassword': - if (($auths['emailPassword'] ?? true) === false) { + case 'email-password': + if (($auths[Config::getParam('auth')['email-password']['key']] ?? true) === false) { throw new Exception(Exception::USER_AUTH_METHOD_UNSUPPORTED, 'Email / Password authentication is disabled for this project'); } break; case 'magic-url': - if (($auths['usersAuthMagicURL'] ?? true) === false) { + if (($auths[Config::getParam('auth')['magic-url']['key']] ?? true) === false) { throw new Exception(Exception::USER_AUTH_METHOD_UNSUPPORTED, 'Magic URL authentication is disabled for this project'); } break; case 'anonymous': - if (($auths['anonymous'] ?? true) === false) { + if (($auths[Config::getParam('auth')['anonymous']['key']] ?? true) === false) { throw new Exception(Exception::USER_AUTH_METHOD_UNSUPPORTED, 'Anonymous authentication is disabled for this project'); } break; case 'phone': - if (($auths['phone'] ?? true) === false) { + if (($auths[Config::getParam('auth')['phone']['key']] ?? true) === false) { throw new Exception(Exception::USER_AUTH_METHOD_UNSUPPORTED, 'Phone authentication is disabled for this project'); } break; case 'invites': - if (($auths['invites'] ?? true) === false) { + if (($auths[Config::getParam('auth')['invites']['key']] ?? true) === false) { throw new Exception(Exception::USER_AUTH_METHOD_UNSUPPORTED, 'Invites authentication is disabled for this project'); } break; case 'jwt': - if (($auths['JWT'] ?? true) === false) { + if (($auths[Config::getParam('auth')['jwt']['key']] ?? true) === false) { throw new Exception(Exception::USER_AUTH_METHOD_UNSUPPORTED, 'JWT authentication is disabled for this project'); } break; case 'email-otp': - if (($auths['emailOTP'] ?? true) === false) { + if (($auths[Config::getParam('auth')['email-otp']['key']] ?? true) === false) { throw new Exception(Exception::USER_AUTH_METHOD_UNSUPPORTED, 'Email OTP authentication is disabled for this project'); } break; diff --git a/app/http.php b/app/http.php index 7e1291142b3..4d78837a8a7 100644 --- a/app/http.php +++ b/app/http.php @@ -9,16 +9,20 @@ use Swoole\Http\Response as SwooleResponse; use Swoole\Http\Server; use Swoole\Process; -use Utopia\Abuse\Adapters\Database\TimeLimit; +use Swoole\Table; use Utopia\App; use Utopia\Audit\Audit; use Utopia\CLI\Console; use Utopia\Config\Config; +use Utopia\Database\Adapter\Pool as DatabasePool; use Utopia\Database\Database; +use Utopia\Database\DateTime; use Utopia\Database\Document; +use Utopia\Database\Exception\Duplicate as DuplicateException; use Utopia\Database\Helpers\ID; use Utopia\Database\Helpers\Permission; use Utopia\Database\Helpers\Role; +use Utopia\Database\Query; use Utopia\Database\Validator\Authorization; use Utopia\Logger\Log; use Utopia\Logger\Log\User; @@ -26,6 +30,12 @@ use Utopia\Swoole\Files; use Utopia\System\System; +const DOMAIN_SYNC_TIMER = 30; // 30 seconds + +$domains = new Table(1_000_000); // 1 million rows +$domains->column('value', Table::TYPE_INT, 1); +$domains->create(); + $http = new Server( host: "0.0.0.0", port: System::getEnv('PORT', 80), @@ -33,16 +43,110 @@ ); $payloadSize = 12 * (1024 * 1024); // 12MB - adding slight buffer for headers and other data that might be sent with the payload - update later with valid testing -$workerNumber = swoole_cpu_num() * intval(System::getEnv('_APP_WORKER_PER_CORE', 6)); +$totalWorkers = intval(System::getEnv('_APP_CPU_NUM', swoole_cpu_num())) * intval(System::getEnv('_APP_WORKER_PER_CORE', 6)); + +/** + * Assigns HTTP requests to worker threads by analyzing its payload/content. + * + * Routes requests as 'safe' or 'risky' based on specific content patterns (like POST actions or certain domains) + * to optimize load distribution between the workers. Utilizes `$safeThreadsPercent` to manage risk by assigning + * riskier tasks to a dedicated worker subset. Prefers idle workers, with fallback to random selection if necessary. + * doc: https://openswoole.com/docs/modules/swoole-server/configuration#dispatch_func + * + * @param Server $server Swoole server instance. + * @param int $fd client ID + * @param int $type the type of data and its current state + * @param string|null $data Request content for categorization. + * @global int $totalThreads Total number of workers. + * @return int Chosen worker ID for the request. + */ +function dispatch(Server $server, int $fd, int $type, $data = null): int +{ + $resolveWorkerId = function (Server $server, $data = null) { + global $totalWorkers, $domains; + + // If data is not set we can send request to any worker + // first we try to pick idle worker, if not we randomly pick a worker + if ($data === null) { + for ($i = 0; $i < $totalWorkers; $i++) { + if ($server->getWorkerStatus($i) === SWOOLE_WORKER_IDLE) { + return $i; + } + } + return rand(0, $totalWorkers - 1); + } + + $riskyWorkersPercent = intval(System::getEnv('_APP_RISKY_WORKERS_PERCENT', 80)) / 100; // Decimal form 0 to 1 + + // Each worker has numeric ID, starting from 0 and incrementing + // From 0 to riskyWorkers, we consider safe workers + // From riskyWorkers to totalWorkers, we consider risky workers + $riskyWorkers = (int)floor($totalWorkers * $riskyWorkersPercent); // Absolute amount of risky workers + + $domain = ''; + // max up to 3 as first line has request details and second line has host + $lines = explode("\n", $data, 3); + $request = $lines[0]; + if (count($lines) > 1) { + $domain = trim(explode('Host: ', $lines[1])[1]); + } + + // Sync executions are considered risky + $risky = false; + if (str_starts_with($request, 'POST') && str_contains($request, '/executions')) { + $risky = true; + } elseif (str_ends_with($domain, System::getEnv('_APP_DOMAIN_FUNCTIONS'))) { + $risky = true; + } elseif ($domains->get(md5($domain), 'value') === 1) { + // executions request coming from custom domain + $risky = true; + } + + if ($risky) { + // If risky request, only consider risky workers + for ($j = $riskyWorkers; $j < $totalWorkers; $j++) { + /** Reference https://openswoole.com/docs/modules/swoole-server-getWorkerStatus#description */ + if ($server->getWorkerStatus($j) === SWOOLE_WORKER_IDLE) { + // If idle worker found, give to him + return $j; + } + } + + // If no idle workers, give to random risky worker + $worker = rand($riskyWorkers, $totalWorkers - 1); + Console::warning("swoole_dispatch: Risky branch: did not find a idle worker, picking random worker {$worker}"); + return $worker; + } + + // If safe request, give to any idle worker + // Its fine to pick risky worker here, because it's idle. Idle is never actually risky + for ($i = 0; $i < $totalWorkers; $i++) { + if ($server->getWorkerStatus($i) === SWOOLE_WORKER_IDLE) { + return $i; + } + } + + // If no idle worker found, give to random safe worker + // We avoid risky workers here, as it could be in work - not idle. Thats exactly when they are risky. + $worker = rand(0, $riskyWorkers - 1); + Console::warning("swoole_dispatch: Non-risky branch: did not find a idle worker, picking random worker {$worker}"); + return $worker; + }; + $workerId = $resolveWorkerId($server, $data); + $server->bind($fd, $workerId); + return $workerId; +} + $http ->set([ - 'worker_num' => $workerNumber, - 'open_http2_protocol' => true, - 'http_compression' => true, - 'http_compression_level' => 6, - 'package_max_length' => $payloadSize, - 'buffer_output_size' => $payloadSize, + Constant::OPTION_WORKER_NUM => $totalWorkers, + Constant::OPTION_DISPATCH_FUNC => dispatch(...), + Constant::OPTION_DISPATCH_MODE => SWOOLE_DISPATCH_UIDMOD, + Constant::OPTION_HTTP_COMPRESSION => false, + Constant::OPTION_PACKAGE_MAX_LENGTH => $payloadSize, + Constant::OPTION_OUTPUT_BUFFER_SIZE => $payloadSize, + Constant::OPTION_TASK_WORKER_NUM => 1, // required for the task to fetch domains background ]); $http->on(Constant::EVENT_WORKER_START, function ($server, $workerId) { @@ -59,157 +163,197 @@ include __DIR__ . '/controllers/general.php'; -$http->on(Constant::EVENT_START, function (Server $http) use ($payloadSize, $register) { - $app = new App('UTC'); - - go(function () use ($register, $app) { - $pools = $register->get('pools'); - /** @var Group $pools */ - App::setResource('pools', fn () => $pools); - - // wait for database to be ready - $attempts = 0; - $max = 10; - $sleep = 1; +function createDatabase(App $app, string $resourceKey, string $dbName, array $collections, mixed $pools, callable $extraSetup = null): void +{ + $max = 10; + $sleep = 1; + $attempts = 0; - do { - try { - $attempts++; - $dbForConsole = $app->getResource('dbForConsole'); - /** @var Utopia\Database\Database $dbForConsole */ - break; // leave the do-while if successful - } catch (\Throwable $e) { - Console::warning("Database not ready. Retrying connection ({$attempts})..."); - if ($attempts >= $max) { - throw new \Exception('Failed to connect to database: ' . $e->getMessage()); - } - sleep($sleep); + while (true) { + try { + $attempts++; + $resource = $app->getResource($resourceKey); + /* @var $database Database */ + $database = is_callable($resource) ? $resource() : $resource; + break; // exit loop on success + } catch (\Exception $e) { + Console::warning(" └── Database not ready. Retrying connection ({$attempts})..."); + if ($attempts >= $max) { + throw new \Exception(' └── Failed to connect to database: ' . $e->getMessage()); } - } while ($attempts < $max); + sleep($sleep); + } + } - Console::success('[Setup] - Server database init started...'); + Console::success("[Setup] - $dbName database init started..."); - try { - Console::success('[Setup] - Creating database: appwrite...'); - $dbForConsole->create(); - } catch (\Throwable $e) { - Console::success('[Setup] - Skip: metadata table already exists'); - } + // Attempt to create the database + try { + Console::info(" └── Creating database: $dbName..."); + $database->create(); + } catch (\Exception $e) { + Console::info(" └── Skip: metadata table already exists"); + } - if ($dbForConsole->getCollection(Audit::COLLECTION)->isEmpty()) { - $audit = new Audit($dbForConsole); - $audit->setup(); + // Process collections + foreach ($collections as $key => $collection) { + if (($collection['$collection'] ?? '') !== Database::METADATA) { + continue; } - if ($dbForConsole->getCollection(TimeLimit::COLLECTION)->isEmpty()) { - $adapter = new TimeLimit("", 0, 1, $dbForConsole); - $adapter->setup(); + if (!$database->getCollection($key)->isEmpty()) { + continue; } + Console::info(" └── Creating collection: {$collection['$id']}..."); + + $attributes = array_map(fn ($attr) => new Document([ + '$id' => ID::custom($attr['$id']), + 'type' => $attr['type'], + 'size' => $attr['size'], + 'required' => $attr['required'], + 'signed' => $attr['signed'], + 'array' => $attr['array'], + 'filters' => $attr['filters'], + 'default' => $attr['default'] ?? null, + 'format' => $attr['format'] ?? '' + ]), $collection['attributes']); + + $indexes = array_map(fn ($index) => new Document([ + '$id' => ID::custom($index['$id']), + 'type' => $index['type'], + 'attributes' => $index['attributes'], + 'lengths' => $index['lengths'], + 'orders' => $index['orders'], + ]), $collection['indexes']); + + $database->createCollection($key, $attributes, $indexes); + } + + if ($extraSetup) { + $extraSetup($database); + } +} + +$http->on(Constant::EVENT_START, function (Server $http) use ($payloadSize, $register) { + $app = new App('UTC'); + + go(function () use ($register, $app) { + $pools = $register->get('pools'); + /** @var Group $pools */ + App::setResource('pools', fn () => $pools); + /** @var array $collections */ $collections = Config::getParam('collections', []); - $consoleCollections = $collections['console']; - foreach ($consoleCollections as $key => $collection) { - if (($collection['$collection'] ?? '') !== Database::METADATA) { - continue; - } - if (!$dbForConsole->getCollection($key)->isEmpty()) { - continue; - } - Console::success('[Setup] - Creating collection: ' . $collection['$id'] . '...'); - - $attributes = []; - $indexes = []; - - foreach ($collection['attributes'] as $attribute) { - $attributes[] = new Document([ - '$id' => ID::custom($attribute['$id']), - 'type' => $attribute['type'], - 'size' => $attribute['size'], - 'required' => $attribute['required'], - 'signed' => $attribute['signed'], - 'array' => $attribute['array'], - 'filters' => $attribute['filters'], - 'default' => $attribute['default'] ?? null, - 'format' => $attribute['format'] ?? '' - ]); + // create logs database first, `getLogsDB` is a callable. + createDatabase($app, 'getLogsDB', 'logs', $collections['logs'], $pools); + + // create appwrite database, `dbForPlatform` is a direct access call. + createDatabase($app, 'dbForPlatform', 'appwrite', $collections['console'], $pools, function (Database $dbForPlatform) use ($collections) { + if ($dbForPlatform->getCollection(Audit::COLLECTION)->isEmpty()) { + $audit = new Audit($dbForPlatform); + $audit->setup(); } - foreach ($collection['indexes'] as $index) { - $indexes[] = new Document([ + if ($dbForPlatform->getDocument('buckets', 'default')->isEmpty() && + !$dbForPlatform->exists($dbForPlatform->getDatabase(), 'bucket_1')) { + Console::info(" └── Creating default bucket..."); + $dbForPlatform->createDocument('buckets', new Document([ + '$id' => ID::custom('default'), + '$collection' => ID::custom('buckets'), + 'name' => 'Default', + 'maximumFileSize' => (int) System::getEnv('_APP_STORAGE_LIMIT', 0), + 'allowedFileExtensions' => [], + 'enabled' => true, + 'compression' => 'gzip', + 'encryption' => true, + 'antivirus' => true, + 'fileSecurity' => true, + '$permissions' => [ + Permission::create(Role::any()), + Permission::read(Role::any()), + Permission::update(Role::any()), + Permission::delete(Role::any()), + ], + 'search' => 'buckets Default', + ])); + + $bucket = $dbForPlatform->getDocument('buckets', 'default'); + + Console::info(" └── Creating files collection for default bucket..."); + $files = $collections['buckets']['files'] ?? []; + if (empty($files)) { + throw new Exception('Files collection is not configured.'); + } + + $attributes = array_map(fn ($attr) => new Document([ + '$id' => ID::custom($attr['$id']), + 'type' => $attr['type'], + 'size' => $attr['size'], + 'required' => $attr['required'], + 'signed' => $attr['signed'], + 'array' => $attr['array'], + 'filters' => $attr['filters'], + 'default' => $attr['default'] ?? null, + 'format' => $attr['format'] ?? '' + ]), $files['attributes']); + + $indexes = array_map(fn ($index) => new Document([ '$id' => ID::custom($index['$id']), 'type' => $index['type'], 'attributes' => $index['attributes'], 'lengths' => $index['lengths'], 'orders' => $index['orders'], - ]); + ]), $files['indexes']); + + $dbForPlatform->createCollection('bucket_' . $bucket->getInternalId(), $attributes, $indexes); } + }); - $dbForConsole->createCollection($key, $attributes, $indexes); - } + $projectCollections = $collections['projects']; + $sharedTables = \explode(',', System::getEnv('_APP_DATABASE_SHARED_TABLES', '')); + $sharedTablesV1 = \explode(',', System::getEnv('_APP_DATABASE_SHARED_TABLES_V1', '')); + $sharedTablesV2 = \array_diff($sharedTables, $sharedTablesV1); - if ($dbForConsole->getDocument('buckets', 'default')->isEmpty() && !$dbForConsole->exists($dbForConsole->getDatabase(), 'bucket_1')) { - Console::success('[Setup] - Creating default bucket...'); - $dbForConsole->createDocument('buckets', new Document([ - '$id' => ID::custom('default'), - '$collection' => ID::custom('buckets'), - 'name' => 'Default', - 'maximumFileSize' => (int) System::getEnv('_APP_STORAGE_LIMIT', 0), // 10MB - 'allowedFileExtensions' => [], - 'enabled' => true, - 'compression' => 'gzip', - 'encryption' => true, - 'antivirus' => true, - 'fileSecurity' => true, - '$permissions' => [ - Permission::create(Role::any()), - Permission::read(Role::any()), - Permission::update(Role::any()), - Permission::delete(Role::any()), - ], - 'search' => 'buckets Default', - ])); - - $bucket = $dbForConsole->getDocument('buckets', 'default'); - - Console::success('[Setup] - Creating files collection for default bucket...'); - $files = $collections['buckets']['files'] ?? []; - if (empty($files)) { - throw new Exception('Files collection is not configured.'); - } + $cache = $app->getResource('cache'); + + foreach ($sharedTablesV2 as $hostname) { + $adapter = new DatabasePool($pools->get($hostname)); + $dbForProject = (new Database($adapter, $cache)) + ->setDatabase('appwrite') + ->setSharedTables(true) + ->setTenant(null) + ->setNamespace(System::getEnv('_APP_DATABASE_SHARED_NAMESPACE', '')); - $attributes = []; - $indexes = []; - - foreach ($files['attributes'] as $attribute) { - $attributes[] = new Document([ - '$id' => ID::custom($attribute['$id']), - 'type' => $attribute['type'], - 'size' => $attribute['size'], - 'required' => $attribute['required'], - 'signed' => $attribute['signed'], - 'array' => $attribute['array'], - 'filters' => $attribute['filters'], - 'default' => $attribute['default'] ?? null, - 'format' => $attribute['format'] ?? '' - ]); + try { + Console::success('[Setup] - Creating project database: ' . $hostname . '...'); + $dbForProject->create(); + } catch (DuplicateException) { + Console::success('[Setup] - Skip: metadata table already exists'); } - foreach ($files['indexes'] as $index) { - $indexes[] = new Document([ - '$id' => ID::custom($index['$id']), - 'type' => $index['type'], - 'attributes' => $index['attributes'], - 'lengths' => $index['lengths'], - 'orders' => $index['orders'], - ]); + if ($dbForProject->getCollection(Audit::COLLECTION)->isEmpty()) { + $audit = new Audit($dbForProject); + $audit->setup(); } - $dbForConsole->createCollection('bucket_' . $bucket->getInternalId(), $attributes, $indexes); - } + foreach ($projectCollections as $key => $collection) { + if (($collection['$collection'] ?? '') !== Database::METADATA) { + continue; + } + if (!$dbForProject->getCollection($key)->isEmpty()) { + continue; + } + + $attributes = \array_map(fn ($attribute) => new Document($attribute), $collection['attributes']); + $indexes = \array_map(fn (array $index) => new Document($index), $collection['indexes']); - $pools->reclaim(); + Console::success('[Setup] - Creating project collection: ' . $collection['$id'] . '...'); + + $dbForProject->createCollection($key, $attributes, $indexes); + } + } Console::success('[Setup] - Server database init completed...'); }); @@ -217,6 +361,9 @@ Console::success('Server started successfully (max payload is ' . number_format($payloadSize) . ' bytes)'); Console::info("Master pid {$http->master_pid}, manager pid {$http->manager_pid}"); + // Start the task that starts fetching custom domains + $http->task([], 0); + // listen ctrl + c Process::signal(2, function () use ($http) { Console::log('Stop by Ctrl+C'); @@ -224,7 +371,7 @@ }); }); -$http->on('request', function (SwooleRequest $swooleRequest, SwooleResponse $swooleResponse) use ($register) { +$http->on(Constant::EVENT_REQUEST, function (SwooleRequest $swooleRequest, SwooleResponse $swooleResponse) use ($register) { App::setResource('swooleRequest', fn () => $swooleRequest); App::setResource('swooleResponse', fn () => $swooleResponse); @@ -244,6 +391,8 @@ } $app = new App('UTC'); + $app->setCompression(System::getEnv('_APP_COMPRESSION_ENABLED', 'enabled') === 'enabled'); + $app->setCompressionMinSize(intval(System::getEnv('_APP_COMPRESSION_MIN_SIZE_BYTES', '1024'))); // 1KB $pools = $register->get('pools'); App::setResource('pools', fn () => $pools); @@ -271,10 +420,12 @@ if (isset($user) && !$user->isEmpty()) { $log->setUser(new User($user->getId())); + } else { + $log->setUser(new User('guest-' . hash('sha256', $request->getIP()))); } $log->setNamespace("http"); - $log->setServer(\gethostname()); + $log->setServer(System::getEnv('_APP_LOGGING_SERVICE_IDENTIFIER', \gethostname())); $log->setVersion($version); $log->setType(Log::TYPE_ERROR); $log->setMessage($th->getMessage()); @@ -292,20 +443,33 @@ $log->addExtra('trace', $th->getTraceAsString()); $log->addExtra('roles', Authorization::getRoles()); - $action = $route->getLabel("sdk.namespace", "UNKNOWN_NAMESPACE") . '.' . $route->getLabel("sdk.method", "UNKNOWN_METHOD"); + $sdk = $route->getLabel("sdk", false); + + $action = 'UNKNOWN_NAMESPACE.UNKNOWN.METHOD'; + if (!empty($sdk)) { + /** @var Appwrite\SDK\Method $sdk */ + $action = $sdk->getNamespace() . '.' . $sdk->getMethodName(); + } + $log->setAction($action); + $log->addTag('service', $action); $isProduction = System::getEnv('_APP_ENV', 'development') === 'production'; $log->setEnvironment($isProduction ? Log::ENVIRONMENT_PRODUCTION : Log::ENVIRONMENT_STAGING); - $responseCode = $logger->addLog($log); - Console::info('Log pushed with status code: ' . $responseCode); + try { + $responseCode = $logger->addLog($log); + Console::info('Error log pushed with status code: ' . $responseCode); + } catch (Throwable $th) { + Console::error('Error pushing log: ' . $th->getMessage()); + } } Console::error('[Error] Type: ' . get_class($th)); Console::error('[Error] Message: ' . $th->getMessage()); Console::error('[Error] File: ' . $th->getFile()); Console::error('[Error] Line: ' . $th->getLine()); + Console::error('[Error] Trace: ' . $th->getTraceAsString()); $swooleResponse->setStatusCode(500); @@ -323,9 +487,62 @@ ]; $swooleResponse->end(\json_encode($output)); - } finally { - $pools->reclaim(); } }); +// Fetch domains every `DOMAIN_SYNC_TIMER` seconds and update in the memory +$http->on(Constant::EVENT_TASK, function () use ($register, $domains) { + $lastSyncUpdate = null; + $pools = $register->get('pools'); + App::setResource('pools', fn () => $pools); + $app = new App('UTC'); + + /** @var Utopia\Database\Database $dbForPlatform */ + $dbForPlatform = $app->getResource('dbForPlatform'); + + Console::loop(function () use ($dbForPlatform, $domains, &$lastSyncUpdate) { + try { + $time = DateTime::now(); + $limit = 1000; + $sum = $limit; + $latestDocument = null; + + while ($sum === $limit) { + $queries = [Query::limit($limit)]; + if ($latestDocument !== null) { + $queries[] = Query::cursorAfter($latestDocument); + } + if ($lastSyncUpdate != null) { + $queries[] = Query::greaterThanEqual('$updatedAt', $lastSyncUpdate); + } + $queries[] = Query::equal('resourceType', ['function']); + $results = []; + try { + $results = Authorization::skip(fn () => $dbForPlatform->find('rules', $queries)); + } catch (Throwable $th) { + Console::error($th->getMessage()); + } + + $sum = count($results); + foreach ($results as $document) { + $domain = $document->getAttribute('domain'); + if (str_ends_with($domain, System::getEnv('_APP_DOMAIN_FUNCTIONS'))) { + continue; + } + $domains->set(md5($domain), ['value' => 1]); + } + $latestDocument = !empty(array_key_last($results)) ? $results[array_key_last($results)] : null; + } + $lastSyncUpdate = $time; + if ($sum > 0) { + Console::log("Sync domains tick: {$sum} domains were updated"); + } + } catch (Throwable $th) { + Console::error($th->getMessage()); + } + }, DOMAIN_SYNC_TIMER, 0, function ($error) { + Console::error($error); + }); +}); + $http->start(); diff --git a/app/init.php b/app/init.php index b4ab772e0e3..c32f1eb9a8e 100644 --- a/app/init.php +++ b/app/init.php @@ -8,6 +8,8 @@ * */ +use Utopia\System\System; + if (\file_exists(__DIR__ . '/../vendor/autoload.php')) { require_once __DIR__ . '/../vendor/autoload.php'; } @@ -18,1051 +20,13 @@ \ini_set('default_socket_timeout', -1); \error_reporting(E_ALL); -use Ahc\Jwt\JWT; -use Ahc\Jwt\JWTException; -use Appwrite\Auth\Auth; -use Appwrite\Event\Audit; -use Appwrite\Event\Build; -use Appwrite\Event\Certificate; -use Appwrite\Event\Database as EventDatabase; -use Appwrite\Event\Delete; -use Appwrite\Event\Event; -use Appwrite\Event\Func; -use Appwrite\Event\Mail; -use Appwrite\Event\Messaging; -use Appwrite\Event\Migration; -use Appwrite\Event\Usage; -use Appwrite\Extend\Exception; -use Appwrite\Functions\Specification; -use Appwrite\GraphQL\Promises\Adapter\Swoole; -use Appwrite\GraphQL\Schema; -use Appwrite\Hooks\Hooks; -use Appwrite\Network\Validator\Email; -use Appwrite\Network\Validator\Origin; -use Appwrite\OpenSSL\OpenSSL; -use Appwrite\URL\URL as AppwriteURL; -use MaxMind\Db\Reader; -use PHPMailer\PHPMailer\PHPMailer; -use Swoole\Database\PDOProxy; -use Utopia\App; -use Utopia\Cache\Adapter\Redis as RedisCache; -use Utopia\Cache\Adapter\Sharding; -use Utopia\Cache\Cache; -use Utopia\CLI\Console; -use Utopia\Config\Config; -use Utopia\Database\Adapter\MariaDB; -use Utopia\Database\Adapter\MySQL; -use Utopia\Database\Adapter\SQL; -use Utopia\Database\Database; -use Utopia\Database\Document; -use Utopia\Database\Helpers\ID; -use Utopia\Database\Query; -use Utopia\Database\Validator\Authorization; -use Utopia\Database\Validator\Datetime as DatetimeValidator; -use Utopia\Database\Validator\Structure; -use Utopia\Domains\Validator\PublicDomain; -use Utopia\DSN\DSN; -use Utopia\Locale\Locale; -use Utopia\Logger\Adapter\AppSignal; -use Utopia\Logger\Adapter\LogOwl; -use Utopia\Logger\Adapter\Raygun; -use Utopia\Logger\Adapter\Sentry; -use Utopia\Logger\Log; -use Utopia\Logger\Logger; -use Utopia\Pools\Group; -use Utopia\Pools\Pool; -use Utopia\Queue; -use Utopia\Queue\Connection; -use Utopia\Registry\Registry; -use Utopia\Storage\Device; -use Utopia\Storage\Device\Backblaze; -use Utopia\Storage\Device\DOSpaces; -use Utopia\Storage\Device\Linode; -use Utopia\Storage\Device\Local; -use Utopia\Storage\Device\S3; -use Utopia\Storage\Device\Wasabi; -use Utopia\Storage\Storage; -use Utopia\System\System; -use Utopia\Validator\Hostname; -use Utopia\Validator\IP; -use Utopia\Validator\Range; -use Utopia\Validator\URL; -use Utopia\Validator\WhiteList; -use Utopia\VCS\Adapter\Git\GitHub as VcsGitHub; - -const APP_NAME = 'Appwrite'; -const APP_DOMAIN = 'appwrite.io'; -const APP_EMAIL_TEAM = 'team@localhost.test'; // Default email address -const APP_EMAIL_SECURITY = ''; // Default security email address -const APP_USERAGENT = APP_NAME . '-Server v%s. Please report abuse at %s'; -const APP_MODE_DEFAULT = 'default'; -const APP_MODE_ADMIN = 'admin'; -const APP_PAGING_LIMIT = 12; -const APP_LIMIT_COUNT = 5000; -const APP_LIMIT_USERS = 10_000; -const APP_LIMIT_USER_PASSWORD_HISTORY = 20; -const APP_LIMIT_USER_SESSIONS_MAX = 100; -const APP_LIMIT_USER_SESSIONS_DEFAULT = 10; -const APP_LIMIT_ANTIVIRUS = 20_000_000; //20MB -const APP_LIMIT_ENCRYPTION = 20_000_000; //20MB -const APP_LIMIT_COMPRESSION = 20_000_000; //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_ARRAY_LABELS_SIZE = 1000; // Default maximum of how many labels elements can there be in API parameter that expects array value -const APP_LIMIT_ARRAY_ELEMENT_SIZE = 4096; // Default maximum length of element in array parameter represented by maximum URL length. -const APP_LIMIT_SUBQUERY = 1000; -const APP_LIMIT_SUBSCRIBERS_SUBQUERY = 1_000_000; -const APP_LIMIT_WRITE_RATE_DEFAULT = 60; // Default maximum write rate per rate period -const APP_LIMIT_WRITE_RATE_PERIOD_DEFAULT = 60; // Default maximum write rate period in seconds -const APP_LIMIT_LIST_DEFAULT = 25; // Default maximum number of items to return in list API calls -const APP_KEY_ACCESS = 24 * 60 * 60; // 24 hours -const APP_USER_ACCESS = 24 * 60 * 60; // 24 hours -const APP_PROJECT_ACCESS = 24 * 60 * 60; // 24 hours -const APP_CACHE_UPDATE = 24 * 60 * 60; // 24 hours -const APP_CACHE_BUSTER = 4318; -const APP_VERSION_STABLE = '1.6.0'; -const APP_DATABASE_ATTRIBUTE_EMAIL = 'email'; -const APP_DATABASE_ATTRIBUTE_ENUM = 'enum'; -const APP_DATABASE_ATTRIBUTE_IP = 'ip'; -const APP_DATABASE_ATTRIBUTE_DATETIME = 'datetime'; -const APP_DATABASE_ATTRIBUTE_URL = 'url'; -const APP_DATABASE_ATTRIBUTE_INT_RANGE = 'intRange'; -const APP_DATABASE_ATTRIBUTE_FLOAT_RANGE = 'floatRange'; -const APP_DATABASE_ATTRIBUTE_STRING_MAX_LENGTH = 1_073_741_824; // 2^32 bits / 4 bits per char -const APP_DATABASE_TIMEOUT_MILLISECONDS = 15_000; -const APP_STORAGE_UPLOADS = '/storage/uploads'; -const APP_STORAGE_FUNCTIONS = '/storage/functions'; -const APP_STORAGE_BUILDS = '/storage/builds'; -const APP_STORAGE_CACHE = '/storage/cache'; -const APP_STORAGE_CERTIFICATES = '/storage/certificates'; -const APP_STORAGE_CONFIG = '/storage/config'; -const APP_STORAGE_READ_BUFFER = 20 * (1000 * 1000); //20MB other names `APP_STORAGE_MEMORY_LIMIT`, `APP_STORAGE_MEMORY_BUFFER`, `APP_STORAGE_READ_LIMIT`, `APP_STORAGE_BUFFER_LIMIT` -const APP_SOCIAL_TWITTER = 'https://twitter.com/appwrite'; -const APP_SOCIAL_TWITTER_HANDLE = 'appwrite'; -const APP_SOCIAL_FACEBOOK = 'https://www.facebook.com/appwrite.io'; -const APP_SOCIAL_LINKEDIN = 'https://www.linkedin.com/company/appwrite'; -const APP_SOCIAL_INSTAGRAM = 'https://www.instagram.com/appwrite.io'; -const APP_SOCIAL_GITHUB = 'https://github.com/appwrite'; -const APP_SOCIAL_DISCORD = 'https://appwrite.io/discord'; -const APP_SOCIAL_DISCORD_CHANNEL = '564160730845151244'; -const APP_SOCIAL_DEV = 'https://dev.to/appwrite'; -const APP_SOCIAL_STACKSHARE = 'https://stackshare.io/appwrite'; -const APP_SOCIAL_YOUTUBE = 'https://www.youtube.com/c/appwrite?sub_confirmation=1'; -const APP_HOSTNAME_INTERNAL = 'appwrite'; -const APP_FUNCTION_SPECIFICATION_DEFAULT = Specification::S_05VCPU_512MB; -const APP_FUNCTION_CPUS_DEFAULT = 0.5; -const APP_FUNCTION_MEMORY_DEFAULT = 512; - -// Database Reconnect -const DATABASE_RECONNECT_SLEEP = 2; -const DATABASE_RECONNECT_MAX_ATTEMPTS = 10; - -// Database Worker Types -const DATABASE_TYPE_CREATE_ATTRIBUTE = 'createAttribute'; -const DATABASE_TYPE_CREATE_INDEX = 'createIndex'; -const DATABASE_TYPE_DELETE_ATTRIBUTE = 'deleteAttribute'; -const DATABASE_TYPE_DELETE_INDEX = 'deleteIndex'; -const DATABASE_TYPE_DELETE_COLLECTION = 'deleteCollection'; -const DATABASE_TYPE_DELETE_DATABASE = 'deleteDatabase'; - -// Build Worker Types -const BUILD_TYPE_DEPLOYMENT = 'deployment'; -const BUILD_TYPE_RETRY = 'retry'; - -// Deletion Types -const DELETE_TYPE_DATABASES = 'databases'; -const DELETE_TYPE_DOCUMENT = 'document'; -const DELETE_TYPE_COLLECTIONS = 'collections'; -const DELETE_TYPE_PROJECTS = 'projects'; -const DELETE_TYPE_FUNCTIONS = 'functions'; -const DELETE_TYPE_DEPLOYMENTS = 'deployments'; -const DELETE_TYPE_USERS = 'users'; -const DELETE_TYPE_TEAM_PROJECTS = 'teams_projects'; -const DELETE_TYPE_EXECUTIONS = 'executions'; -const DELETE_TYPE_AUDIT = 'audit'; -const DELETE_TYPE_ABUSE = 'abuse'; -const DELETE_TYPE_USAGE = 'usage'; -const DELETE_TYPE_REALTIME = 'realtime'; -const DELETE_TYPE_BUCKETS = 'buckets'; -const DELETE_TYPE_INSTALLATIONS = 'installations'; -const DELETE_TYPE_RULES = 'rules'; -const DELETE_TYPE_SESSIONS = 'sessions'; -const DELETE_TYPE_CACHE_BY_TIMESTAMP = 'cacheByTimeStamp'; -const DELETE_TYPE_CACHE_BY_RESOURCE = 'cacheByResource'; -const DELETE_TYPE_SCHEDULES = 'schedules'; -const DELETE_TYPE_TOPIC = 'topic'; -const DELETE_TYPE_TARGET = 'target'; -const DELETE_TYPE_EXPIRED_TARGETS = 'invalid_targets'; -const DELETE_TYPE_SESSION_TARGETS = 'session_targets'; - -// Message types -const MESSAGE_SEND_TYPE_INTERNAL = 'internal'; -const MESSAGE_SEND_TYPE_EXTERNAL = 'external'; -// Mail Types -const MAIL_TYPE_VERIFICATION = 'verification'; -const MAIL_TYPE_MAGIC_SESSION = 'magicSession'; -const MAIL_TYPE_RECOVERY = 'recovery'; -const MAIL_TYPE_INVITATION = 'invitation'; -const MAIL_TYPE_CERTIFICATE = 'certificate'; -// Auth Types -const APP_AUTH_TYPE_SESSION = 'Session'; -const APP_AUTH_TYPE_JWT = 'JWT'; -const APP_AUTH_TYPE_KEY = 'Key'; -const APP_AUTH_TYPE_ADMIN = 'Admin'; -// Response related -const MAX_OUTPUT_CHUNK_SIZE = 10 * 1024 * 1024; // 10MB -// Function headers -const FUNCTION_ALLOWLIST_HEADERS_REQUEST = ['content-type', 'agent', 'content-length', 'host']; -const FUNCTION_ALLOWLIST_HEADERS_RESPONSE = ['content-type', 'content-length']; -// Message types -const MESSAGE_TYPE_EMAIL = 'email'; -const MESSAGE_TYPE_SMS = 'sms'; -const MESSAGE_TYPE_PUSH = 'push'; -// API key types -const API_KEY_STANDARD = 'standard'; -const API_KEY_DYNAMIC = 'dynamic'; -// Usage metrics -const METRIC_TEAMS = 'teams'; -const METRIC_USERS = 'users'; - -const METRIC_AUTH_METHOD_PHONE = 'auth.method.phone'; -const METRIC_AUTH_METHOD_PHONE_COUNTRY_CODE = METRIC_AUTH_METHOD_PHONE . '.{countryCode}'; -const METRIC_MESSAGES = 'messages'; -const METRIC_MESSAGES_SENT = METRIC_MESSAGES . '.sent'; -const METRIC_MESSAGES_FAILED = METRIC_MESSAGES . '.failed'; -const METRIC_MESSAGES_TYPE = METRIC_MESSAGES . '.{type}'; -const METRIC_MESSAGES_TYPE_SENT = METRIC_MESSAGES . '.{type}.sent'; -const METRIC_MESSAGES_TYPE_FAILED = METRIC_MESSAGES . '.{type}.failed'; -const METRIC_MESSAGES_TYPE_PROVIDER = METRIC_MESSAGES . '.{type}.{provider}'; -const METRIC_MESSAGES_TYPE_PROVIDER_SENT = METRIC_MESSAGES . '.{type}.{provider}.sent'; -const METRIC_MESSAGES_TYPE_PROVIDER_FAILED = METRIC_MESSAGES . '.{type}.{provider}.failed'; -const METRIC_SESSIONS = 'sessions'; -const METRIC_DATABASES = 'databases'; -const METRIC_COLLECTIONS = 'collections'; -const METRIC_DATABASE_ID_COLLECTIONS = '{databaseInternalId}.collections'; -const METRIC_DOCUMENTS = 'documents'; -const METRIC_DATABASE_ID_DOCUMENTS = '{databaseInternalId}.documents'; -const METRIC_DATABASE_ID_COLLECTION_ID_DOCUMENTS = '{databaseInternalId}.{collectionInternalId}.documents'; -const METRIC_BUCKETS = 'buckets'; -const METRIC_FILES = 'files'; -const METRIC_FILES_STORAGE = 'files.storage'; -const METRIC_BUCKET_ID_FILES = '{bucketInternalId}.files'; -const METRIC_BUCKET_ID_FILES_STORAGE = '{bucketInternalId}.files.storage'; -const METRIC_FUNCTIONS = 'functions'; -const METRIC_DEPLOYMENTS = 'deployments'; -const METRIC_DEPLOYMENTS_STORAGE = 'deployments.storage'; -const METRIC_BUILDS = 'builds'; -const METRIC_BUILDS_SUCCESS = 'builds.success'; -const METRIC_BUILDS_FAILED = 'builds.failed'; -const METRIC_BUILDS_STORAGE = 'builds.storage'; -const METRIC_BUILDS_COMPUTE = 'builds.compute'; -const METRIC_BUILDS_COMPUTE_SUCCESS = 'builds.compute.success'; -const METRIC_BUILDS_COMPUTE_FAILED = 'builds.compute.failed'; -const METRIC_BUILDS_MB_SECONDS = 'builds.mbSeconds'; -const METRIC_FUNCTION_ID_BUILDS = '{functionInternalId}.builds'; -const METRIC_FUNCTION_ID_BUILDS_SUCCESS = '{functionInternalId}.builds.success'; -const METRIC_FUNCTION_ID_BUILDS_FAILED = '{functionInternalId}.builds.failed'; -const METRIC_FUNCTION_ID_BUILDS_STORAGE = '{functionInternalId}.builds.storage'; -const METRIC_FUNCTION_ID_BUILDS_COMPUTE = '{functionInternalId}.builds.compute'; -const METRIC_FUNCTION_ID_BUILDS_COMPUTE_SUCCESS = '{functionInternalId}.builds.compute.success'; -const METRIC_FUNCTION_ID_BUILDS_COMPUTE_FAILED = '{functionInternalId}.builds.compute.failed'; -const METRIC_FUNCTION_ID_DEPLOYMENTS = '{resourceType}.{resourceInternalId}.deployments'; -const METRIC_FUNCTION_ID_DEPLOYMENTS_STORAGE = '{resourceType}.{resourceInternalId}.deployments.storage'; -const METRIC_FUNCTION_ID_BUILDS_MB_SECONDS = '{functionInternalId}.builds.mbSeconds'; -const METRIC_EXECUTIONS = 'executions'; -const METRIC_EXECUTIONS_COMPUTE = 'executions.compute'; -const METRIC_EXECUTIONS_MB_SECONDS = 'executions.mbSeconds'; -const METRIC_FUNCTION_ID_EXECUTIONS = '{functionInternalId}.executions'; -const METRIC_FUNCTION_ID_EXECUTIONS_COMPUTE = '{functionInternalId}.executions.compute'; -const METRIC_FUNCTION_ID_EXECUTIONS_MB_SECONDS = '{functionInternalId}.executions.mbSeconds'; -const METRIC_NETWORK_REQUESTS = 'network.requests'; -const METRIC_NETWORK_INBOUND = 'network.inbound'; -const METRIC_NETWORK_OUTBOUND = 'network.outbound'; - -$register = new Registry(); - -App::setMode(System::getEnv('_APP_ENV', App::MODE_TYPE_PRODUCTION)); - -if (!App::isProduction()) { - // Allow specific domains to skip public domain validation in dev environment - // Useful for existing tests involving webhooks - PublicDomain::allow(['request-catcher']); -} - -/* - * ENV vars - */ -Config::load('events', __DIR__ . '/config/events.php'); -Config::load('auth', __DIR__ . '/config/auth.php'); -Config::load('apis', __DIR__ . '/config/apis.php'); // List of APIs -Config::load('errors', __DIR__ . '/config/errors.php'); -Config::load('oAuthProviders', __DIR__ . '/config/oAuthProviders.php'); -Config::load('platforms', __DIR__ . '/config/platforms.php'); -Config::load('collections', __DIR__ . '/config/collections.php'); -Config::load('runtimes', __DIR__ . '/config/runtimes.php'); -Config::load('runtimes-v2', __DIR__ . '/config/runtimes-v2.php'); -Config::load('usage', __DIR__ . '/config/usage.php'); -Config::load('roles', __DIR__ . '/config/roles.php'); // User roles and scopes -Config::load('scopes', __DIR__ . '/config/scopes.php'); // User roles and scopes -Config::load('services', __DIR__ . '/config/services.php'); // List of services -Config::load('variables', __DIR__ . '/config/variables.php'); // List of env variables -Config::load('regions', __DIR__ . '/config/regions.php'); // List of available regions -Config::load('avatar-browsers', __DIR__ . '/config/avatars/browsers.php'); -Config::load('avatar-credit-cards', __DIR__ . '/config/avatars/credit-cards.php'); -Config::load('avatar-flags', __DIR__ . '/config/avatars/flags.php'); -Config::load('locale-codes', __DIR__ . '/config/locale/codes.php'); -Config::load('locale-currencies', __DIR__ . '/config/locale/currencies.php'); -Config::load('locale-eu', __DIR__ . '/config/locale/eu.php'); -Config::load('locale-languages', __DIR__ . '/config/locale/languages.php'); -Config::load('locale-phones', __DIR__ . '/config/locale/phones.php'); -Config::load('locale-countries', __DIR__ . '/config/locale/countries.php'); -Config::load('locale-continents', __DIR__ . '/config/locale/continents.php'); -Config::load('locale-templates', __DIR__ . '/config/locale/templates.php'); -Config::load('storage-logos', __DIR__ . '/config/storage/logos.php'); -Config::load('storage-mimes', __DIR__ . '/config/storage/mimes.php'); -Config::load('storage-inputs', __DIR__ . '/config/storage/inputs.php'); -Config::load('storage-outputs', __DIR__ . '/config/storage/outputs.php'); -Config::load('runtime-specifications', __DIR__ . '/config/runtimes/specifications.php'); -Config::load('function-templates', __DIR__ . '/config/function-templates.php'); - -/** - * New DB Filters - */ -Database::addFilter( - 'casting', - function (mixed $value) { - return json_encode(['value' => $value], JSON_PRESERVE_ZERO_FRACTION); - }, - function (mixed $value) { - if (is_null($value)) { - return; - } - - return json_decode($value, true)['value']; - } -); - -Database::addFilter( - 'enum', - function (mixed $value, Document $attribute) { - if ($attribute->isSet('elements')) { - $attribute->removeAttribute('elements'); - } - - return $value; - }, - function (mixed $value, Document $attribute) { - $formatOptions = \json_decode($attribute->getAttribute('formatOptions', '[]'), true); - if (isset($formatOptions['elements'])) { - $attribute->setAttribute('elements', $formatOptions['elements']); - } - - return $value; - } -); - -Database::addFilter( - 'range', - function (mixed $value, Document $attribute) { - if ($attribute->isSet('min')) { - $attribute->removeAttribute('min'); - } - if ($attribute->isSet('max')) { - $attribute->removeAttribute('max'); - } - - return $value; - }, - function (mixed $value, Document $attribute) { - $formatOptions = json_decode($attribute->getAttribute('formatOptions', '[]'), true); - if (isset($formatOptions['min']) || isset($formatOptions['max'])) { - $attribute - ->setAttribute('min', $formatOptions['min']) - ->setAttribute('max', $formatOptions['max']); - } - - return $value; - } -); - -Database::addFilter( - 'subQueryAttributes', - function (mixed $value) { - return; - }, - function (mixed $value, Document $document, Database $database) { - $attributes = $database->find('attributes', [ - Query::equal('collectionInternalId', [$document->getInternalId()]), - Query::equal('databaseInternalId', [$document->getAttribute('databaseInternalId')]), - Query::limit($database->getLimitForAttributes()), - ]); - - foreach ($attributes as $attribute) { - if ($attribute->getAttribute('type') === Database::VAR_RELATIONSHIP) { - $options = $attribute->getAttribute('options'); - foreach ($options as $key => $value) { - $attribute->setAttribute($key, $value); - } - $attribute->removeAttribute('options'); - } - } - - return $attributes; - } -); - -Database::addFilter( - 'subQueryIndexes', - function (mixed $value) { - return; - }, - function (mixed $value, Document $document, Database $database) { - return $database - ->find('indexes', [ - Query::equal('collectionInternalId', [$document->getInternalId()]), - Query::equal('databaseInternalId', [$document->getAttribute('databaseInternalId')]), - Query::limit($database->getLimitForIndexes()), - ]); - } -); - -Database::addFilter( - 'subQueryPlatforms', - function (mixed $value) { - return; - }, - function (mixed $value, Document $document, Database $database) { - return $database - ->find('platforms', [ - Query::equal('projectInternalId', [$document->getInternalId()]), - Query::limit(APP_LIMIT_SUBQUERY), - ]); - } -); - -Database::addFilter( - 'subQueryKeys', - function (mixed $value) { - return; - }, - function (mixed $value, Document $document, Database $database) { - return $database - ->find('keys', [ - Query::equal('projectInternalId', [$document->getInternalId()]), - Query::limit(APP_LIMIT_SUBQUERY), - ]); - } -); - -Database::addFilter( - 'subQueryWebhooks', - function (mixed $value) { - return; - }, - function (mixed $value, Document $document, Database $database) { - return $database - ->find('webhooks', [ - Query::equal('projectInternalId', [$document->getInternalId()]), - Query::limit(APP_LIMIT_SUBQUERY), - ]); - } -); - -Database::addFilter( - 'subQuerySessions', - function (mixed $value) { - return; - }, - function (mixed $value, Document $document, Database $database) { - return Authorization::skip(fn () => $database->find('sessions', [ - Query::equal('userInternalId', [$document->getInternalId()]), - Query::limit(APP_LIMIT_SUBQUERY), - ])); - } -); - -Database::addFilter( - 'subQueryTokens', - function (mixed $value) { - return; - }, - function (mixed $value, Document $document, Database $database) { - return Authorization::skip(fn () => $database - ->find('tokens', [ - Query::equal('userInternalId', [$document->getInternalId()]), - Query::limit(APP_LIMIT_SUBQUERY), - ])); - } -); - -Database::addFilter( - 'subQueryChallenges', - function (mixed $value) { - return; - }, - function (mixed $value, Document $document, Database $database) { - return Authorization::skip(fn () => $database - ->find('challenges', [ - Query::equal('userInternalId', [$document->getInternalId()]), - Query::limit(APP_LIMIT_SUBQUERY), - ])); - } -); - -Database::addFilter( - 'subQueryAuthenticators', - function (mixed $value) { - return; - }, - function (mixed $value, Document $document, Database $database) { - return Authorization::skip(fn () => $database - ->find('authenticators', [ - Query::equal('userInternalId', [$document->getInternalId()]), - Query::limit(APP_LIMIT_SUBQUERY), - ])); - } -); - -Database::addFilter( - 'subQueryMemberships', - function (mixed $value) { - return; - }, - function (mixed $value, Document $document, Database $database) { - return Authorization::skip(fn () => $database - ->find('memberships', [ - Query::equal('userInternalId', [$document->getInternalId()]), - Query::limit(APP_LIMIT_SUBQUERY), - ])); - } -); - -Database::addFilter( - 'subQueryVariables', - function (mixed $value) { - return; - }, - function (mixed $value, Document $document, Database $database) { - return $database - ->find('variables', [ - Query::equal('resourceInternalId', [$document->getInternalId()]), - Query::equal('resourceType', ['function']), - Query::limit(APP_LIMIT_SUBQUERY), - ]); - } -); - -Database::addFilter( - 'encrypt', - function (mixed $value) { - $key = System::getEnv('_APP_OPENSSL_KEY_V1'); - $iv = OpenSSL::randomPseudoBytes(OpenSSL::cipherIVLength(OpenSSL::CIPHER_AES_128_GCM)); - $tag = null; - - return json_encode([ - 'data' => OpenSSL::encrypt($value, OpenSSL::CIPHER_AES_128_GCM, $key, 0, $iv, $tag), - 'method' => OpenSSL::CIPHER_AES_128_GCM, - 'iv' => \bin2hex($iv), - 'tag' => \bin2hex($tag ?? ''), - 'version' => '1', - ]); - }, - function (mixed $value) { - if (is_null($value)) { - return; - } - $value = json_decode($value, true); - $key = System::getEnv('_APP_OPENSSL_KEY_V' . $value['version']); - - return OpenSSL::decrypt($value['data'], $value['method'], $key, 0, hex2bin($value['iv']), hex2bin($value['tag'])); - } -); - -Database::addFilter( - 'subQueryProjectVariables', - function (mixed $value) { - return; - }, - function (mixed $value, Document $document, Database $database) { - return $database - ->find('variables', [ - Query::equal('resourceType', ['project']), - Query::limit(APP_LIMIT_SUBQUERY) - ]); - } -); - -Database::addFilter( - 'userSearch', - function (mixed $value, Document $user) { - $searchValues = [ - $user->getId(), - $user->getAttribute('email', ''), - $user->getAttribute('name', ''), - $user->getAttribute('phone', '') - ]; - - foreach ($user->getAttribute('labels', []) as $label) { - $searchValues[] = 'label:' . $label; - } - - $search = implode(' ', \array_filter($searchValues)); - - return $search; - }, - function (mixed $value) { - return $value; - } -); - -Database::addFilter( - 'subQueryTargets', - function (mixed $value) { - return; - }, - function (mixed $value, Document $document, Database $database) { - return Authorization::skip(fn () => $database - ->find('targets', [ - Query::equal('userInternalId', [$document->getInternalId()]), - Query::limit(APP_LIMIT_SUBQUERY) - ])); - } -); - -Database::addFilter( - 'subQueryTopicTargets', - function (mixed $value) { - return; - }, - function (mixed $value, Document $document, Database $database) { - $targetIds = Authorization::skip(fn () => \array_map( - fn ($document) => $document->getAttribute('targetInternalId'), - $database->find('subscribers', [ - Query::equal('topicInternalId', [$document->getInternalId()]), - Query::limit(APP_LIMIT_SUBSCRIBERS_SUBQUERY) - ]) - )); - if (\count($targetIds) > 0) { - return $database->skipValidation(fn () => $database->find('targets', [ - Query::equal('$internalId', $targetIds) - ])); - } - return []; - } -); - -Database::addFilter( - 'providerSearch', - function (mixed $value, Document $provider) { - $searchValues = [ - $provider->getId(), - $provider->getAttribute('name', ''), - $provider->getAttribute('provider', ''), - $provider->getAttribute('type', '') - ]; - - $search = \implode(' ', \array_filter($searchValues)); - - return $search; - }, - function (mixed $value) { - return $value; - } -); - -Database::addFilter( - 'topicSearch', - function (mixed $value, Document $topic) { - $searchValues = [ - $topic->getId(), - $topic->getAttribute('name', ''), - $topic->getAttribute('description', ''), - ]; - - $search = \implode(' ', \array_filter($searchValues)); - - return $search; - }, - function (mixed $value) { - return $value; - } -); - -Database::addFilter( - 'messageSearch', - function (mixed $value, Document $message) { - $searchValues = [ - $message->getId(), - $message->getAttribute('description', ''), - $message->getAttribute('status', ''), - ]; - - $data = \json_decode($message->getAttribute('data', []), true); - $providerType = $message->getAttribute('providerType', ''); - - if ($providerType === MESSAGE_TYPE_EMAIL) { - $searchValues = \array_merge($searchValues, [$data['subject'], MESSAGE_TYPE_EMAIL]); - } elseif ($providerType === MESSAGE_TYPE_SMS) { - $searchValues = \array_merge($searchValues, [$data['content'], MESSAGE_TYPE_SMS]); - } else { - $searchValues = \array_merge($searchValues, [$data['title'], MESSAGE_TYPE_PUSH]); - } - - $search = \implode(' ', \array_filter($searchValues)); - - return $search; - }, - function (mixed $value) { - return $value; - } -); - -/** - * DB Formats - */ -Structure::addFormat(APP_DATABASE_ATTRIBUTE_EMAIL, function () { - return new Email(); -}, Database::VAR_STRING); - -Structure::addFormat(APP_DATABASE_ATTRIBUTE_DATETIME, function () { - return new DatetimeValidator(); -}, Database::VAR_DATETIME); - -Structure::addFormat(APP_DATABASE_ATTRIBUTE_ENUM, function ($attribute) { - $elements = $attribute['formatOptions']['elements']; - return new WhiteList($elements, true); -}, Database::VAR_STRING); - -Structure::addFormat(APP_DATABASE_ATTRIBUTE_IP, function () { - return new IP(); -}, Database::VAR_STRING); - -Structure::addFormat(APP_DATABASE_ATTRIBUTE_URL, function () { - return new URL(); -}, Database::VAR_STRING); - -Structure::addFormat(APP_DATABASE_ATTRIBUTE_INT_RANGE, function ($attribute) { - $min = $attribute['formatOptions']['min'] ?? -INF; - $max = $attribute['formatOptions']['max'] ?? INF; - return new Range($min, $max, Range::TYPE_INTEGER); -}, Database::VAR_INTEGER); - -Structure::addFormat(APP_DATABASE_ATTRIBUTE_FLOAT_RANGE, function ($attribute) { - $min = $attribute['formatOptions']['min'] ?? -INF; - $max = $attribute['formatOptions']['max'] ?? INF; - return new Range($min, $max, Range::TYPE_FLOAT); -}, Database::VAR_FLOAT); - -/* - * Registry - */ -$register->set('logger', function () { - // Register error logger - $providerName = System::getEnv('_APP_LOGGING_PROVIDER', ''); - $providerConfig = System::getEnv('_APP_LOGGING_CONFIG', ''); - - try { - $loggingProvider = new DSN($providerConfig ?? ''); - - $providerName = $loggingProvider->getScheme(); - $providerConfig = match ($providerName) { - 'sentry' => ['key' => $loggingProvider->getPassword(), 'projectId' => $loggingProvider->getUser() ?? '', 'host' => 'https://' . $loggingProvider->getHost()], - 'logowl' => ['ticket' => $loggingProvider->getUser() ?? '', 'host' => $loggingProvider->getHost()], - default => ['key' => $loggingProvider->getHost()], - }; - } catch (Throwable $th) { - // Fallback for older Appwrite versions up to 1.5.x that use _APP_LOGGING_PROVIDER and _APP_LOGGING_CONFIG environment variables - Console::warning('Using deprecated logging configuration. Please update your configuration to use DSN format.' . $th->getMessage()); - $configChunks = \explode(";", $providerConfig); - - $providerConfig = match ($providerName) { - 'sentry' => [ 'key' => $configChunks[0], 'projectId' => $configChunks[1] ?? '', 'host' => '',], - 'logowl' => ['ticket' => $configChunks[0] ?? '', 'host' => ''], - default => ['key' => $providerConfig], - }; - } - - if (empty($providerName) || empty($providerConfig)) { - return; - } - - if (!Logger::hasProvider($providerName)) { - throw new Exception(Exception::GENERAL_SERVER_ERROR, "Logging provider not supported. Logging is disabled"); - } - - try { - $adapter = match ($providerName) { - 'sentry' => new Sentry($providerConfig['projectId'], $providerConfig['key'], $providerConfig['host']), - 'logowl' => new LogOwl($providerConfig['ticket'], $providerConfig['host']), - 'raygun' => new Raygun($providerConfig['key']), - 'appsignal' => new AppSignal($providerConfig['key']), - default => null - }; - } catch (Throwable $th) { - $adapter = null; - } - - if ($adapter === null) { - Console::error("Logging provider not supported. Logging is disabled"); - return; - } - - return new Logger($adapter); -}); - -$register->set('pools', function () { - $group = new Group(); - - $fallbackForDB = 'db_main=' . AppwriteURL::unparse([ - 'scheme' => 'mariadb', - 'host' => System::getEnv('_APP_DB_HOST', 'mariadb'), - 'port' => System::getEnv('_APP_DB_PORT', '3306'), - 'user' => System::getEnv('_APP_DB_USER', ''), - 'pass' => System::getEnv('_APP_DB_PASS', ''), - 'path' => System::getEnv('_APP_DB_SCHEMA', ''), - ]); - $fallbackForRedis = 'redis_main=' . AppwriteURL::unparse([ - 'scheme' => 'redis', - 'host' => System::getEnv('_APP_REDIS_HOST', 'redis'), - 'port' => System::getEnv('_APP_REDIS_PORT', '6379'), - 'user' => System::getEnv('_APP_REDIS_USER', ''), - 'pass' => System::getEnv('_APP_REDIS_PASS', ''), - ]); - - $connections = [ - 'console' => [ - 'type' => 'database', - 'dsns' => System::getEnv('_APP_CONNECTIONS_DB_CONSOLE', $fallbackForDB), - 'multiple' => false, - 'schemes' => ['mariadb', 'mysql'], - ], - 'database' => [ - 'type' => 'database', - 'dsns' => System::getEnv('_APP_CONNECTIONS_DB_PROJECT', $fallbackForDB), - 'multiple' => true, - 'schemes' => ['mariadb', 'mysql'], - ], - 'queue' => [ - 'type' => 'queue', - 'dsns' => System::getEnv('_APP_CONNECTIONS_QUEUE', $fallbackForRedis), - 'multiple' => false, - 'schemes' => ['redis'], - ], - 'pubsub' => [ - 'type' => 'pubsub', - 'dsns' => System::getEnv('_APP_CONNECTIONS_PUBSUB', $fallbackForRedis), - 'multiple' => false, - 'schemes' => ['redis'], - ], - 'cache' => [ - 'type' => 'cache', - 'dsns' => System::getEnv('_APP_CONNECTIONS_CACHE', $fallbackForRedis), - 'multiple' => true, - 'schemes' => ['redis'], - ], - ]; - - $maxConnections = System::getEnv('_APP_CONNECTIONS_MAX', 151); - $instanceConnections = $maxConnections / System::getEnv('_APP_POOL_CLIENTS', 14); - - $multiprocessing = System::getEnv('_APP_SERVER_MULTIPROCESS', 'disabled') === 'enabled'; - - if ($multiprocessing) { - $workerCount = swoole_cpu_num() * intval(System::getEnv('_APP_WORKER_PER_CORE', 6)); - } else { - $workerCount = 1; - } - - if ($workerCount > $instanceConnections) { - throw new \Exception('Pool size is too small. Increase the number of allowed database connections or decrease the number of workers.', 500); - } - - $poolSize = (int)($instanceConnections / $workerCount); - - foreach ($connections as $key => $connection) { - $type = $connection['type'] ?? ''; - $multiple = $connection['multiple'] ?? false; - $schemes = $connection['schemes'] ?? []; - $config = []; - $dsns = explode(',', $connection['dsns'] ?? ''); - foreach ($dsns as &$dsn) { - $dsn = explode('=', $dsn); - $name = ($multiple) ? $key . '_' . $dsn[0] : $key; - $dsn = $dsn[1] ?? ''; - $config[] = $name; - if (empty($dsn)) { - //throw new Exception(Exception::GENERAL_SERVER_ERROR, "Missing value for DSN connection in {$key}"); - continue; - } - - $dsn = new DSN($dsn); - $dsnHost = $dsn->getHost(); - $dsnPort = $dsn->getPort(); - $dsnUser = $dsn->getUser(); - $dsnPass = $dsn->getPassword(); - $dsnScheme = $dsn->getScheme(); - $dsnDatabase = $dsn->getPath(); - - if (!in_array($dsnScheme, $schemes)) { - throw new Exception(Exception::GENERAL_SERVER_ERROR, "Invalid console database scheme"); - } - - /** - * Get Resource - * - * Creation could be reused across connection types like database, cache, queue, etc. - * - * Resource assignment to an adapter will happen below. - */ - $resource = match ($dsnScheme) { - 'mysql', - 'mariadb' => function () use ($dsnHost, $dsnPort, $dsnUser, $dsnPass, $dsnDatabase) { - return new PDOProxy(function () use ($dsnHost, $dsnPort, $dsnUser, $dsnPass, $dsnDatabase) { - return new PDO("mysql:host={$dsnHost};port={$dsnPort};dbname={$dsnDatabase};charset=utf8mb4", $dsnUser, $dsnPass, array( - PDO::ATTR_TIMEOUT => 3, // Seconds - PDO::ATTR_PERSISTENT => true, - PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, - PDO::ATTR_EMULATE_PREPARES => true, - PDO::ATTR_STRINGIFY_FETCHES => true - )); - }); - }, - 'redis' => function () use ($dsnHost, $dsnPort, $dsnPass) { - $redis = new Redis(); - @$redis->pconnect($dsnHost, (int)$dsnPort); - if ($dsnPass) { - $redis->auth($dsnPass); - } - $redis->setOption(Redis::OPT_READ_TIMEOUT, -1); - - return $redis; - }, - default => throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Invalid scheme'), - }; - - $pool = new Pool($name, $poolSize, function () use ($type, $resource, $dsn) { - // Get Adapter - switch ($type) { - case 'database': - $adapter = match ($dsn->getScheme()) { - 'mariadb' => new MariaDB($resource()), - 'mysql' => new MySQL($resource()), - default => null - }; - - $adapter->setDatabase($dsn->getPath()); - break; - case 'pubsub': - $adapter = $resource(); - break; - case 'queue': - $adapter = match ($dsn->getScheme()) { - 'redis' => new Queue\Connection\Redis($dsn->getHost(), $dsn->getPort()), - default => null - }; - break; - case 'cache': - $adapter = match ($dsn->getScheme()) { - 'redis' => new RedisCache($resource()), - default => null - }; - break; - - default: - throw new Exception(Exception::GENERAL_SERVER_ERROR, "Server error: Missing adapter implementation."); - } - - return $adapter; - }); - - $group->add($pool); - } - - Config::setParam('pools-' . $key, $config); - } - - return $group; -}); - -$register->set('db', function () { - // This is usually for our workers or CLI commands scope - $dbHost = System::getEnv('_APP_DB_HOST', ''); - $dbPort = System::getEnv('_APP_DB_PORT', ''); - $dbUser = System::getEnv('_APP_DB_USER', ''); - $dbPass = System::getEnv('_APP_DB_PASS', ''); - $dbScheme = System::getEnv('_APP_DB_SCHEMA', ''); - - return new PDO( - "mysql:host={$dbHost};port={$dbPort};dbname={$dbScheme};charset=utf8mb4", - $dbUser, - $dbPass, - SQL::getPDOAttributes() - ); -}); - -$register->set('smtp', function () { - $mail = new PHPMailer(true); - - $mail->isSMTP(); - - $username = System::getEnv('_APP_SMTP_USERNAME'); - $password = System::getEnv('_APP_SMTP_PASSWORD'); - - $mail->XMailer = 'Appwrite Mailer'; - $mail->Host = System::getEnv('_APP_SMTP_HOST', 'smtp'); - $mail->Port = System::getEnv('_APP_SMTP_PORT', 25); - $mail->SMTPAuth = !empty($username) && !empty($password); - $mail->Username = $username; - $mail->Password = $password; - $mail->SMTPSecure = System::getEnv('_APP_SMTP_SECURE', ''); - $mail->SMTPAutoTLS = false; - $mail->CharSet = 'UTF-8'; - - $from = \urldecode(System::getEnv('_APP_SYSTEM_EMAIL_NAME', APP_NAME . ' Server')); - $email = System::getEnv('_APP_SYSTEM_EMAIL_ADDRESS', APP_EMAIL_TEAM); - - $mail->setFrom($email, $from); - $mail->addReplyTo($email, $from); - - $mail->isHTML(true); - - return $mail; -}); -$register->set('geodb', function () { - return new Reader(__DIR__ . '/assets/dbip/dbip-country-lite-2024-09.mmdb'); -}); -$register->set('passwordsDictionary', function () { - $content = \file_get_contents(__DIR__ . '/assets/security/10k-common-passwords'); - $content = explode("\n", $content); - $content = array_flip($content); - return $content; -}); -$register->set('promiseAdapter', function () { - return new Swoole(); -}); -$register->set('hooks', function () { - return new Hooks(); -}); -/* - * Localization - */ -Locale::$exceptions = false; - -$locales = Config::getParam('locale-codes', []); - -foreach ($locales as $locale) { - $code = $locale['code']; - - $path = __DIR__ . '/config/locale/translations/' . $code . '.json'; - - if (!\file_exists($path)) { - $path = __DIR__ . '/config/locale/translations/' . \substr($code, 0, 2) . '.json'; // if `ar-ae` doesn't exist, look for `ar` - if (!\file_exists($path)) { - $path = __DIR__ . '/config/locale/translations/en.json'; // if none translation exists, use default from `en.json` - } - } - - Locale::setLanguageFromJSON($code, $path); -} +require_once __DIR__ . '/init/constants.php'; +require_once __DIR__ . '/init/configs.php'; +require_once __DIR__ . '/init/database/filters.php'; +require_once __DIR__ . '/init/database/formats.php'; +require_once __DIR__ . '/init/locales.php'; +require_once __DIR__ . '/init/registers.php'; +require_once __DIR__ . '/init/resources.php'; \stream_context_set_default([ // Set global user agent and http settings 'http' => [ @@ -1075,691 +39,3 @@ function (mixed $value) { 'timeout' => 2, ], ]); - -// Runtime Execution -App::setResource('log', fn () => new Log()); -App::setResource('logger', function ($register) { - return $register->get('logger'); -}, ['register']); - -App::setResource('hooks', function ($register) { - return $register->get('hooks'); -}, ['register']); - -App::setResource('register', fn () => $register); -App::setResource('locale', fn () => new Locale(System::getEnv('_APP_LOCALE', 'en'))); - -App::setResource('localeCodes', function () { - return array_map(fn ($locale) => $locale['code'], Config::getParam('locale-codes', [])); -}); - -// Queues -App::setResource('queue', function (Group $pools) { - return $pools->get('queue')->pop()->getResource(); -}, ['pools']); -App::setResource('queueForMessaging', function (Connection $queue) { - return new Messaging($queue); -}, ['queue']); -App::setResource('queueForMails', function (Connection $queue) { - return new Mail($queue); -}, ['queue']); -App::setResource('queueForBuilds', function (Connection $queue) { - return new Build($queue); -}, ['queue']); -App::setResource('queueForDatabase', function (Connection $queue) { - return new EventDatabase($queue); -}, ['queue']); -App::setResource('queueForDeletes', function (Connection $queue) { - return new Delete($queue); -}, ['queue']); -App::setResource('queueForEvents', function (Connection $queue) { - return new Event($queue); -}, ['queue']); -App::setResource('queueForAudits', function (Connection $queue) { - return new Audit($queue); -}, ['queue']); -App::setResource('queueForFunctions', function (Connection $queue) { - return new Func($queue); -}, ['queue']); -App::setResource('queueForUsage', function (Connection $queue) { - return new Usage($queue); -}, ['queue']); -App::setResource('queueForCertificates', function (Connection $queue) { - return new Certificate($queue); -}, ['queue']); -App::setResource('queueForMigrations', function (Connection $queue) { - return new Migration($queue); -}, ['queue']); -App::setResource('clients', function ($request, $console, $project) { - $console->setAttribute('platforms', [ // Always allow current host - '$collection' => ID::custom('platforms'), - 'name' => 'Current Host', - 'type' => Origin::CLIENT_TYPE_WEB, - 'hostname' => $request->getHostname(), - ], Document::SET_TYPE_APPEND); - - $hostnames = explode(',', System::getEnv('_APP_CONSOLE_HOSTNAMES', '')); - $validator = new Hostname(); - foreach ($hostnames as $hostname) { - $hostname = trim($hostname); - if (!$validator->isValid($hostname)) { - continue; - } - $console->setAttribute('platforms', [ - '$collection' => ID::custom('platforms'), - 'type' => Origin::CLIENT_TYPE_WEB, - 'name' => $hostname, - 'hostname' => $hostname, - ], Document::SET_TYPE_APPEND); - } - - /** - * Get All verified client URLs for both console and current projects - * + Filter for duplicated entries - */ - $clientsConsole = \array_map( - fn ($node) => $node['hostname'], - \array_filter( - $console->getAttribute('platforms', []), - fn ($node) => (isset($node['type']) && ($node['type'] === Origin::CLIENT_TYPE_WEB) && !empty($node['hostname'])) - ) - ); - - $clients = $clientsConsole; - $platforms = $project->getAttribute('platforms', []); - - foreach ($platforms as $node) { - if ( - isset($node['type']) && - ($node['type'] === Origin::CLIENT_TYPE_WEB || - $node['type'] === Origin::CLIENT_TYPE_FLUTTER_WEB) && - !empty($node['hostname']) - ) { - $clients[] = $node['hostname']; - } - } - - return \array_unique($clients); -}, ['request', 'console', 'project']); - -App::setResource('user', function ($mode, $project, $console, $request, $response, $dbForProject, $dbForConsole) { - /** @var Appwrite\Utopia\Request $request */ - /** @var Appwrite\Utopia\Response $response */ - /** @var Utopia\Database\Document $project */ - /** @var Utopia\Database\Database $dbForProject */ - /** @var Utopia\Database\Database $dbForConsole */ - /** @var string $mode */ - - Authorization::setDefaultStatus(true); - - Auth::setCookieName('a_session_' . $project->getId()); - - if (APP_MODE_ADMIN === $mode) { - Auth::setCookieName('a_session_' . $console->getId()); - } - - $session = Auth::decodeSession( - $request->getCookie( - Auth::$cookieName, // Get sessions - $request->getCookie(Auth::$cookieName . '_legacy', '') - ) - ); - - // Get session from header for SSR clients - if (empty($session['id']) && empty($session['secret'])) { - $sessionHeader = $request->getHeader('x-appwrite-session', ''); - - if (!empty($sessionHeader)) { - $session = Auth::decodeSession($sessionHeader); - } - } - - // Get fallback session from old clients (no SameSite support) or clients who block 3rd-party cookies - if ($response) { - $response->addHeader('X-Debug-Fallback', 'false'); - } - - if (empty($session['id']) && empty($session['secret'])) { - if ($response) { - $response->addHeader('X-Debug-Fallback', 'true'); - } - $fallback = $request->getHeader('x-fallback-cookies', ''); - $fallback = \json_decode($fallback, true); - $session = Auth::decodeSession(((isset($fallback[Auth::$cookieName])) ? $fallback[Auth::$cookieName] : '')); - } - - Auth::$unique = $session['id'] ?? ''; - Auth::$secret = $session['secret'] ?? ''; - - if (APP_MODE_ADMIN !== $mode) { - if ($project->isEmpty()) { - $user = new Document([]); - } else { - if ($project->getId() === 'console') { - $user = $dbForConsole->getDocument('users', Auth::$unique); - } else { - $user = $dbForProject->getDocument('users', Auth::$unique); - } - } - } else { - $user = $dbForConsole->getDocument('users', Auth::$unique); - } - - if ( - $user->isEmpty() // Check a document has been found in the DB - || !Auth::sessionVerify($user->getAttribute('sessions', []), Auth::$secret) - ) { // Validate user has valid login token - $user = new Document([]); - } - - if (APP_MODE_ADMIN === $mode) { - if ($user->find('teamInternalId', $project->getAttribute('teamInternalId'), 'memberships')) { - Authorization::setDefaultStatus(false); // Cancel security segmentation for admin users. - } else { - $user = new Document([]); - } - } - - $authJWT = $request->getHeader('x-appwrite-jwt', ''); - - if (!empty($authJWT) && !$project->isEmpty()) { // JWT authentication - $jwt = new JWT(System::getEnv('_APP_OPENSSL_KEY_V1'), 'HS256', 3600, 0); - - try { - $payload = $jwt->decode($authJWT); - } catch (JWTException $error) { - throw new Exception(Exception::USER_JWT_INVALID, 'Failed to verify JWT. ' . $error->getMessage()); - } - - $jwtUserId = $payload['userId'] ?? ''; - if (!empty($jwtUserId)) { - $user = $dbForProject->getDocument('users', $jwtUserId); - } - - $jwtSessionId = $payload['sessionId'] ?? ''; - if (!empty($jwtSessionId)) { - if (empty($user->find('$id', $jwtSessionId, 'sessions'))) { // Match JWT to active token - $user = new Document([]); - } - } - } - - $dbForProject->setMetadata('user', $user->getId()); - $dbForConsole->setMetadata('user', $user->getId()); - - return $user; -}, ['mode', 'project', 'console', 'request', 'response', 'dbForProject', 'dbForConsole']); - -App::setResource('project', function ($dbForConsole, $request, $console) { - /** @var Appwrite\Utopia\Request $request */ - /** @var Utopia\Database\Database $dbForConsole */ - /** @var Utopia\Database\Document $console */ - - $projectId = $request->getParam('project', $request->getHeader('x-appwrite-project', '')); - - if (empty($projectId) || $projectId === 'console') { - return $console; - } - - $project = Authorization::skip(fn () => $dbForConsole->getDocument('projects', $projectId)); - - return $project; -}, ['dbForConsole', 'request', 'console']); - -App::setResource('session', function (Document $user) { - if ($user->isEmpty()) { - return; - } - - $sessions = $user->getAttribute('sessions', []); - $sessionId = Auth::sessionVerify($user->getAttribute('sessions'), Auth::$secret); - - if (!$sessionId) { - return; - } - - foreach ($sessions as $session) {/** @var Document $session */ - if ($sessionId === $session->getId()) { - return $session; - } - } - - return; -}, ['user']); - -App::setResource('console', function () { - return new Document([ - '$id' => ID::custom('console'), - '$internalId' => ID::custom('console'), - 'name' => 'Appwrite', - '$collection' => ID::custom('projects'), - 'description' => 'Appwrite core engine', - 'logo' => '', - 'teamId' => -1, - 'webhooks' => [], - 'keys' => [], - 'platforms' => [ - [ - '$collection' => ID::custom('platforms'), - 'name' => 'Localhost', - 'type' => Origin::CLIENT_TYPE_WEB, - 'hostname' => 'localhost', - ], // Current host is added on app init - ], - 'legalName' => '', - 'legalCountry' => '', - 'legalState' => '', - 'legalCity' => '', - 'legalAddress' => '', - 'legalTaxId' => '', - 'auths' => [ - 'mockNumbers' => [], - 'invites' => System::getEnv('_APP_CONSOLE_INVITES', 'enabled') === 'enabled', - 'limit' => (System::getEnv('_APP_CONSOLE_WHITELIST_ROOT', 'enabled') === 'enabled') ? 1 : 0, // limit signup to 1 user - 'duration' => Auth::TOKEN_EXPIRATION_LOGIN_LONG, // 1 Year in seconds - 'sessionAlerts' => System::getEnv('_APP_CONSOLE_SESSION_ALERTS', 'disabled') === 'enabled' - ], - 'authWhitelistEmails' => (!empty(System::getEnv('_APP_CONSOLE_WHITELIST_EMAILS', null))) ? \explode(',', System::getEnv('_APP_CONSOLE_WHITELIST_EMAILS', null)) : [], - 'authWhitelistIPs' => (!empty(System::getEnv('_APP_CONSOLE_WHITELIST_IPS', null))) ? \explode(',', System::getEnv('_APP_CONSOLE_WHITELIST_IPS', null)) : [], - 'oAuthProviders' => [ - 'githubEnabled' => true, - 'githubSecret' => System::getEnv('_APP_CONSOLE_GITHUB_SECRET', ''), - 'githubAppid' => System::getEnv('_APP_CONSOLE_GITHUB_APP_ID', '') - ], - ]); -}, []); - -App::setResource('dbForProject', function (Group $pools, Database $dbForConsole, Cache $cache, Document $project) { - if ($project->isEmpty() || $project->getId() === 'console') { - return $dbForConsole; - } - - try { - $dsn = new DSN($project->getAttribute('database')); - } catch (\InvalidArgumentException) { - // TODO: Temporary until all projects are using shared tables - $dsn = new DSN('mysql://' . $project->getAttribute('database')); - } - - $dbAdapter = $pools - ->get($dsn->getHost()) - ->pop() - ->getResource(); - - $database = new Database($dbAdapter, $cache); - - $database - ->setMetadata('host', \gethostname()) - ->setMetadata('project', $project->getId()) - ->setTimeout(APP_DATABASE_TIMEOUT_MILLISECONDS); - - try { - $dsn = new DSN($project->getAttribute('database')); - } catch (\InvalidArgumentException) { - // TODO: Temporary until all projects are using shared tables - $dsn = new DSN('mysql://' . $project->getAttribute('database')); - } - - if ($dsn->getHost() === System::getEnv('_APP_DATABASE_SHARED_TABLES', '')) { - $database - ->setSharedTables(true) - ->setTenant($project->getInternalId()) - ->setNamespace($dsn->getParam('namespace')); - } else { - $database - ->setSharedTables(false) - ->setTenant(null) - ->setNamespace('_' . $project->getInternalId()); - } - - return $database; -}, ['pools', 'dbForConsole', 'cache', 'project']); - -App::setResource('dbForConsole', function (Group $pools, Cache $cache) { - $dbAdapter = $pools - ->get('console') - ->pop() - ->getResource(); - - $database = new Database($dbAdapter, $cache); - - $database - ->setNamespace('_console') - ->setMetadata('host', \gethostname()) - ->setMetadata('project', 'console') - ->setTimeout(APP_DATABASE_TIMEOUT_MILLISECONDS); - - return $database; -}, ['pools', 'cache']); - -App::setResource('getProjectDB', function (Group $pools, Database $dbForConsole, $cache) { - $databases = []; // TODO: @Meldiron This should probably be responsibility of utopia-php/pools - - return function (Document $project) use ($pools, $dbForConsole, $cache, &$databases) { - if ($project->isEmpty() || $project->getId() === 'console') { - return $dbForConsole; - } - - try { - $dsn = new DSN($project->getAttribute('database')); - } catch (\InvalidArgumentException) { - // TODO: Temporary until all projects are using shared tables - $dsn = new DSN('mysql://' . $project->getAttribute('database')); - } - - $configure = (function (Database $database) use ($project, $dsn) { - $database - ->setMetadata('host', \gethostname()) - ->setMetadata('project', $project->getId()) - ->setTimeout(APP_DATABASE_TIMEOUT_MILLISECONDS); - - if ($dsn->getHost() === System::getEnv('_APP_DATABASE_SHARED_TABLES', '')) { - $database - ->setSharedTables(true) - ->setTenant($project->getInternalId()) - ->setNamespace($dsn->getParam('namespace')); - } else { - $database - ->setSharedTables(false) - ->setTenant(null) - ->setNamespace('_' . $project->getInternalId()); - } - }); - - if (isset($databases[$dsn->getHost()])) { - $database = $databases[$dsn->getHost()]; - $configure($database); - return $database; - } - - $dbAdapter = $pools - ->get($dsn->getHost()) - ->pop() - ->getResource(); - - $database = new Database($dbAdapter, $cache); - $databases[$dsn->getHost()] = $database; - $configure($database); - - return $database; - }; -}, ['pools', 'dbForConsole', 'cache']); - -App::setResource('cache', function (Group $pools) { - $list = Config::getParam('pools-cache', []); - $adapters = []; - - foreach ($list as $value) { - $adapters[] = $pools - ->get($value) - ->pop() - ->getResource() - ; - } - - return new Cache(new Sharding($adapters)); -}, ['pools']); - -App::setResource('deviceForLocal', function () { - return new Local(); -}); - -App::setResource('deviceForFiles', function ($project) { - return getDevice(APP_STORAGE_UPLOADS . '/app-' . $project->getId()); -}, ['project']); - -App::setResource('deviceForFunctions', function ($project) { - return getDevice(APP_STORAGE_FUNCTIONS . '/app-' . $project->getId()); -}, ['project']); - -App::setResource('deviceForBuilds', function ($project) { - return getDevice(APP_STORAGE_BUILDS . '/app-' . $project->getId()); -}, ['project']); - -function getDevice($root): Device -{ - $connection = System::getEnv('_APP_CONNECTIONS_STORAGE', ''); - - if (!empty($connection)) { - $acl = 'private'; - $device = Storage::DEVICE_LOCAL; - $accessKey = ''; - $accessSecret = ''; - $bucket = ''; - $region = ''; - - try { - $dsn = new DSN($connection); - $device = $dsn->getScheme(); - $accessKey = $dsn->getUser() ?? ''; - $accessSecret = $dsn->getPassword() ?? ''; - $bucket = $dsn->getPath() ?? ''; - $region = $dsn->getParam('region'); - } catch (\Throwable $e) { - Console::warning($e->getMessage() . 'Invalid DSN. Defaulting to Local device.'); - } - - switch ($device) { - case Storage::DEVICE_S3: - return new S3($root, $accessKey, $accessSecret, $bucket, $region, $acl); - case STORAGE::DEVICE_DO_SPACES: - $device = new DOSpaces($root, $accessKey, $accessSecret, $bucket, $region, $acl); - $device->setHttpVersion(S3::HTTP_VERSION_1_1); - return $device; - case Storage::DEVICE_BACKBLAZE: - return new Backblaze($root, $accessKey, $accessSecret, $bucket, $region, $acl); - case Storage::DEVICE_LINODE: - return new Linode($root, $accessKey, $accessSecret, $bucket, $region, $acl); - case Storage::DEVICE_WASABI: - return new Wasabi($root, $accessKey, $accessSecret, $bucket, $region, $acl); - case Storage::DEVICE_LOCAL: - default: - return new Local($root); - } - } else { - switch (strtolower(System::getEnv('_APP_STORAGE_DEVICE', Storage::DEVICE_LOCAL) ?? '')) { - case Storage::DEVICE_LOCAL: - default: - return new Local($root); - case Storage::DEVICE_S3: - $s3AccessKey = System::getEnv('_APP_STORAGE_S3_ACCESS_KEY', ''); - $s3SecretKey = System::getEnv('_APP_STORAGE_S3_SECRET', ''); - $s3Region = System::getEnv('_APP_STORAGE_S3_REGION', ''); - $s3Bucket = System::getEnv('_APP_STORAGE_S3_BUCKET', ''); - $s3Acl = 'private'; - return new S3($root, $s3AccessKey, $s3SecretKey, $s3Bucket, $s3Region, $s3Acl); - case Storage::DEVICE_DO_SPACES: - $doSpacesAccessKey = System::getEnv('_APP_STORAGE_DO_SPACES_ACCESS_KEY', ''); - $doSpacesSecretKey = System::getEnv('_APP_STORAGE_DO_SPACES_SECRET', ''); - $doSpacesRegion = System::getEnv('_APP_STORAGE_DO_SPACES_REGION', ''); - $doSpacesBucket = System::getEnv('_APP_STORAGE_DO_SPACES_BUCKET', ''); - $doSpacesAcl = 'private'; - $device = new DOSpaces($root, $doSpacesAccessKey, $doSpacesSecretKey, $doSpacesBucket, $doSpacesRegion, $doSpacesAcl); - $device->setHttpVersion(S3::HTTP_VERSION_1_1); - return $device; - case Storage::DEVICE_BACKBLAZE: - $backblazeAccessKey = System::getEnv('_APP_STORAGE_BACKBLAZE_ACCESS_KEY', ''); - $backblazeSecretKey = System::getEnv('_APP_STORAGE_BACKBLAZE_SECRET', ''); - $backblazeRegion = System::getEnv('_APP_STORAGE_BACKBLAZE_REGION', ''); - $backblazeBucket = System::getEnv('_APP_STORAGE_BACKBLAZE_BUCKET', ''); - $backblazeAcl = 'private'; - return new Backblaze($root, $backblazeAccessKey, $backblazeSecretKey, $backblazeBucket, $backblazeRegion, $backblazeAcl); - case Storage::DEVICE_LINODE: - $linodeAccessKey = System::getEnv('_APP_STORAGE_LINODE_ACCESS_KEY', ''); - $linodeSecretKey = System::getEnv('_APP_STORAGE_LINODE_SECRET', ''); - $linodeRegion = System::getEnv('_APP_STORAGE_LINODE_REGION', ''); - $linodeBucket = System::getEnv('_APP_STORAGE_LINODE_BUCKET', ''); - $linodeAcl = 'private'; - return new Linode($root, $linodeAccessKey, $linodeSecretKey, $linodeBucket, $linodeRegion, $linodeAcl); - case Storage::DEVICE_WASABI: - $wasabiAccessKey = System::getEnv('_APP_STORAGE_WASABI_ACCESS_KEY', ''); - $wasabiSecretKey = System::getEnv('_APP_STORAGE_WASABI_SECRET', ''); - $wasabiRegion = System::getEnv('_APP_STORAGE_WASABI_REGION', ''); - $wasabiBucket = System::getEnv('_APP_STORAGE_WASABI_BUCKET', ''); - $wasabiAcl = 'private'; - return new Wasabi($root, $wasabiAccessKey, $wasabiSecretKey, $wasabiBucket, $wasabiRegion, $wasabiAcl); - } - } -} - -App::setResource('mode', function ($request) { - /** @var Appwrite\Utopia\Request $request */ - - /** - * Defines the mode for the request: - * - 'default' => Requests for Client and Server Side - * - 'admin' => Request from the Console on non-console projects - */ - return $request->getParam('mode', $request->getHeader('x-appwrite-mode', APP_MODE_DEFAULT)); -}, ['request']); - -App::setResource('geodb', function ($register) { - /** @var Utopia\Registry\Registry $register */ - return $register->get('geodb'); -}, ['register']); - -App::setResource('passwordsDictionary', function ($register) { - /** @var Utopia\Registry\Registry $register */ - return $register->get('passwordsDictionary'); -}, ['register']); - - -App::setResource('servers', function () { - $platforms = Config::getParam('platforms'); - $server = $platforms[APP_PLATFORM_SERVER]; - - $languages = array_map(function ($language) { - return strtolower($language['name']); - }, $server['sdks']); - - return $languages; -}); - -App::setResource('promiseAdapter', function ($register) { - return $register->get('promiseAdapter'); -}, ['register']); - -App::setResource('schema', function ($utopia, $dbForProject) { - - $complexity = function (int $complexity, array $args) { - $queries = Query::parseQueries($args['queries'] ?? []); - $query = Query::getByType($queries, [Query::TYPE_LIMIT])[0] ?? null; - $limit = $query ? $query->getValue() : APP_LIMIT_LIST_DEFAULT; - - return $complexity * $limit; - }; - - $attributes = function (int $limit, int $offset) use ($dbForProject) { - $attrs = Authorization::skip(fn () => $dbForProject->find('attributes', [ - Query::limit($limit), - Query::offset($offset), - ])); - - return \array_map(function ($attr) { - return $attr->getArrayCopy(); - }, $attrs); - }; - - $urls = [ - 'list' => function (string $databaseId, string $collectionId, array $args) { - return "/v1/databases/$databaseId/collections/$collectionId/documents"; - }, - 'create' => function (string $databaseId, string $collectionId, array $args) { - return "/v1/databases/$databaseId/collections/$collectionId/documents"; - }, - 'read' => function (string $databaseId, string $collectionId, array $args) { - return "/v1/databases/$databaseId/collections/$collectionId/documents/{$args['documentId']}"; - }, - 'update' => function (string $databaseId, string $collectionId, array $args) { - return "/v1/databases/$databaseId/collections/$collectionId/documents/{$args['documentId']}"; - }, - 'delete' => function (string $databaseId, string $collectionId, array $args) { - return "/v1/databases/$databaseId/collections/$collectionId/documents/{$args['documentId']}"; - }, - ]; - - $params = [ - 'list' => function (string $databaseId, string $collectionId, array $args) { - return [ 'queries' => $args['queries']]; - }, - 'create' => function (string $databaseId, string $collectionId, array $args) { - $id = $args['id'] ?? 'unique()'; - $permissions = $args['permissions'] ?? null; - - unset($args['id']); - unset($args['permissions']); - - // Order must be the same as the route params - return [ - 'databaseId' => $databaseId, - 'documentId' => $id, - 'collectionId' => $collectionId, - 'data' => $args, - 'permissions' => $permissions, - ]; - }, - 'update' => function (string $databaseId, string $collectionId, array $args) { - $documentId = $args['id']; - $permissions = $args['permissions'] ?? null; - - unset($args['id']); - unset($args['permissions']); - - // Order must be the same as the route params - return [ - 'databaseId' => $databaseId, - 'collectionId' => $collectionId, - 'documentId' => $documentId, - 'data' => $args, - 'permissions' => $permissions, - ]; - }, - ]; - - return Schema::build( - $utopia, - $complexity, - $attributes, - $urls, - $params, - ); -}, ['utopia', 'dbForProject']); - -App::setResource('contributors', function () { - $path = 'app/config/contributors.json'; - $list = (file_exists($path)) ? json_decode(file_get_contents($path), true) : []; - return $list; -}); - -App::setResource('employees', function () { - $path = 'app/config/employees.json'; - $list = (file_exists($path)) ? json_decode(file_get_contents($path), true) : []; - return $list; -}); - -App::setResource('heroes', function () { - $path = 'app/config/heroes.json'; - $list = (file_exists($path)) ? json_decode(file_get_contents($path), true) : []; - return $list; -}); - -App::setResource('gitHub', function (Cache $cache) { - return new VcsGitHub($cache); -}, ['cache']); - -App::setResource('requestTimestamp', function ($request) { - //TODO: Move this to the Request class itself - $timestampHeader = $request->getHeader('x-appwrite-timestamp'); - $requestTimestamp = null; - if (!empty($timestampHeader)) { - try { - $requestTimestamp = new \DateTime($timestampHeader); - } catch (\Throwable $e) { - throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'Invalid X-Appwrite-Timestamp header value'); - } - } - return $requestTimestamp; -}, ['request']); -App::setResource('plan', function (array $plan = []) { - return []; -}); diff --git a/app/init/configs.php b/app/init/configs.php new file mode 100644 index 00000000000..1a5dbced1b8 --- /dev/null +++ b/app/init/configs.php @@ -0,0 +1,37 @@ +<?php + +use Utopia\Config\Config; + +Config::load('events', __DIR__ . '/../config/events.php'); +Config::load('auth', __DIR__ . '/../config/auth.php'); +Config::load('apis', __DIR__ . '/../config/apis.php'); // List of APIs +Config::load('errors', __DIR__ . '/../config/errors.php'); +Config::load('oAuthProviders', __DIR__ . '/../config/oAuthProviders.php'); +Config::load('platforms', __DIR__ . '/../config/platforms.php'); +Config::load('console', __DIR__ . '/../config/console.php'); +Config::load('collections', __DIR__ . '/../config/collections.php'); +Config::load('runtimes', __DIR__ . '/../config/runtimes.php'); +Config::load('runtimes-v2', __DIR__ . '/../config/runtimes-v2.php'); +Config::load('usage', __DIR__ . '/../config/usage.php'); +Config::load('roles', __DIR__ . '/../config/roles.php'); // User roles and scopes +Config::load('scopes', __DIR__ . '/../config/scopes.php'); // User roles and scopes +Config::load('services', __DIR__ . '/../config/services.php'); // List of services +Config::load('variables', __DIR__ . '/../config/variables.php'); // List of env variables +Config::load('regions', __DIR__ . '/../config/regions.php'); // List of available regions +Config::load('avatar-browsers', __DIR__ . '/../config/avatars/browsers.php'); +Config::load('avatar-credit-cards', __DIR__ . '/../config/avatars/credit-cards.php'); +Config::load('avatar-flags', __DIR__ . '/../config/avatars/flags.php'); +Config::load('locale-codes', __DIR__ . '/../config/locale/codes.php'); +Config::load('locale-currencies', __DIR__ . '/../config/locale/currencies.php'); +Config::load('locale-eu', __DIR__ . '/../config/locale/eu.php'); +Config::load('locale-languages', __DIR__ . '/../config/locale/languages.php'); +Config::load('locale-phones', __DIR__ . '/../config/locale/phones.php'); +Config::load('locale-countries', __DIR__ . '/../config/locale/countries.php'); +Config::load('locale-continents', __DIR__ . '/../config/locale/continents.php'); +Config::load('locale-templates', __DIR__ . '/../config/locale/templates.php'); +Config::load('storage-logos', __DIR__ . '/../config/storage/logos.php'); +Config::load('storage-mimes', __DIR__ . '/../config/storage/mimes.php'); +Config::load('storage-inputs', __DIR__ . '/../config/storage/inputs.php'); +Config::load('storage-outputs', __DIR__ . '/../config/storage/outputs.php'); +Config::load('runtime-specifications', __DIR__ . '/../config/runtimes/specifications.php'); +Config::load('function-templates', __DIR__ . '/../config/function-templates.php'); diff --git a/app/init/constants.php b/app/init/constants.php new file mode 100644 index 00000000000..d7676d36ac6 --- /dev/null +++ b/app/init/constants.php @@ -0,0 +1,240 @@ +<?php + +use Appwrite\Functions\Specification; + +const APP_NAME = 'Appwrite'; +const APP_DOMAIN = 'appwrite.io'; +const APP_EMAIL_TEAM = 'team@localhost.test'; // Default email address +const APP_EMAIL_SECURITY = ''; // Default security email address +const APP_USERAGENT = APP_NAME . '-Server v%s. Please report abuse at %s'; +const APP_MODE_DEFAULT = 'default'; +const APP_MODE_ADMIN = 'admin'; +const APP_PAGING_LIMIT = 12; +const APP_LIMIT_COUNT = 5000; +const APP_LIMIT_USERS = 10_000; +const APP_LIMIT_USER_PASSWORD_HISTORY = 20; +const APP_LIMIT_USER_SESSIONS_MAX = 100; +const APP_LIMIT_USER_SESSIONS_DEFAULT = 10; +const APP_LIMIT_ANTIVIRUS = 20_000_000; //20MB +const APP_LIMIT_ENCRYPTION = 20_000_000; //20MB +const APP_LIMIT_COMPRESSION = 20_000_000; //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_ARRAY_LABELS_SIZE = 1000; // Default maximum of how many labels elements can there be in API parameter that expects array value +const APP_LIMIT_ARRAY_ELEMENT_SIZE = 4096; // Default maximum length of element in array parameter represented by maximum URL length. +const APP_LIMIT_SUBQUERY = 1000; +const APP_LIMIT_SUBSCRIBERS_SUBQUERY = 1_000_000; +const APP_LIMIT_WRITE_RATE_DEFAULT = 60; // Default maximum write rate per rate period +const APP_LIMIT_WRITE_RATE_PERIOD_DEFAULT = 60; // Default maximum write rate period in seconds +const APP_LIMIT_LIST_DEFAULT = 25; // Default maximum number of items to return in list API calls +const APP_LIMIT_DATABASE_BATCH = 100; // Default maximum batch size for database operations +const APP_KEY_ACCESS = 24 * 60 * 60; // 24 hours +const APP_USER_ACCESS = 24 * 60 * 60; // 24 hours +const APP_PROJECT_ACCESS = 24 * 60 * 60; // 24 hours +const APP_FILE_ACCESS = 24 * 60 * 60; // 24 hours +const APP_CACHE_UPDATE = 24 * 60 * 60; // 24 hours +const APP_CACHE_BUSTER = 4318; +const APP_VERSION_STABLE = '1.6.2'; +const APP_DATABASE_ATTRIBUTE_EMAIL = 'email'; +const APP_DATABASE_ATTRIBUTE_ENUM = 'enum'; +const APP_DATABASE_ATTRIBUTE_IP = 'ip'; +const APP_DATABASE_ATTRIBUTE_DATETIME = 'datetime'; +const APP_DATABASE_ATTRIBUTE_URL = 'url'; +const APP_DATABASE_ATTRIBUTE_INT_RANGE = 'intRange'; +const APP_DATABASE_ATTRIBUTE_FLOAT_RANGE = 'floatRange'; +const APP_DATABASE_ATTRIBUTE_STRING_MAX_LENGTH = 1_073_741_824; // 2^32 bits / 4 bits per char +const APP_DATABASE_TIMEOUT_MILLISECONDS_API = 15 * 1000; // 15 seconds +const APP_DATABASE_TIMEOUT_MILLISECONDS_WORKER = 300 * 1000; // 5 minutes +const APP_DATABASE_TIMEOUT_MILLISECONDS_TASK = 300 * 1000; // 5 minutes +const APP_DATABASE_QUERY_MAX_VALUES = 500; +const APP_STORAGE_UPLOADS = '/storage/uploads'; +const APP_STORAGE_FUNCTIONS = '/storage/functions'; +const APP_STORAGE_BUILDS = '/storage/builds'; +const APP_STORAGE_CACHE = '/storage/cache'; +const APP_STORAGE_CERTIFICATES = '/storage/certificates'; +const APP_STORAGE_CONFIG = '/storage/config'; +const APP_STORAGE_READ_BUFFER = 20 * (1000 * 1000); //20MB other names `APP_STORAGE_MEMORY_LIMIT`, `APP_STORAGE_MEMORY_BUFFER`, `APP_STORAGE_READ_LIMIT`, `APP_STORAGE_BUFFER_LIMIT` +const APP_SOCIAL_TWITTER = 'https://twitter.com/appwrite'; +const APP_SOCIAL_TWITTER_HANDLE = 'appwrite'; +const APP_SOCIAL_FACEBOOK = 'https://www.facebook.com/appwrite.io'; +const APP_SOCIAL_LINKEDIN = 'https://www.linkedin.com/company/appwrite'; +const APP_SOCIAL_INSTAGRAM = 'https://www.instagram.com/appwrite.io'; +const APP_SOCIAL_GITHUB = 'https://github.com/appwrite'; +const APP_SOCIAL_DISCORD = 'https://appwrite.io/discord'; +const APP_SOCIAL_DISCORD_CHANNEL = '564160730845151244'; +const APP_SOCIAL_DEV = 'https://dev.to/appwrite'; +const APP_SOCIAL_STACKSHARE = 'https://stackshare.io/appwrite'; +const APP_SOCIAL_YOUTUBE = 'https://www.youtube.com/c/appwrite?sub_confirmation=1'; +const APP_HOSTNAME_INTERNAL = 'appwrite'; +const APP_FUNCTION_SPECIFICATION_DEFAULT = Specification::S_1VCPU_512MB; +const APP_FUNCTION_CPUS_DEFAULT = 0.5; +const APP_FUNCTION_MEMORY_DEFAULT = 512; +const APP_PLATFORM_SERVER = 'server'; +const APP_PLATFORM_CLIENT = 'client'; +const APP_PLATFORM_CONSOLE = 'console'; + +// Database Reconnect +const DATABASE_RECONNECT_SLEEP = 2; +const DATABASE_RECONNECT_MAX_ATTEMPTS = 10; + +// Database Worker Types +const DATABASE_TYPE_CREATE_ATTRIBUTE = 'createAttribute'; +const DATABASE_TYPE_CREATE_INDEX = 'createIndex'; +const DATABASE_TYPE_DELETE_ATTRIBUTE = 'deleteAttribute'; +const DATABASE_TYPE_DELETE_INDEX = 'deleteIndex'; +const DATABASE_TYPE_DELETE_COLLECTION = 'deleteCollection'; +const DATABASE_TYPE_DELETE_DATABASE = 'deleteDatabase'; + +// Build Worker Types +const BUILD_TYPE_DEPLOYMENT = 'deployment'; +const BUILD_TYPE_RETRY = 'retry'; + +// Deletion Types +const DELETE_TYPE_DATABASES = 'databases'; +const DELETE_TYPE_DOCUMENT = 'document'; +const DELETE_TYPE_COLLECTIONS = 'collections'; +const DELETE_TYPE_PROJECTS = 'projects'; +const DELETE_TYPE_FUNCTIONS = 'functions'; +const DELETE_TYPE_DEPLOYMENTS = 'deployments'; +const DELETE_TYPE_USERS = 'users'; +const DELETE_TYPE_TEAM_PROJECTS = 'teams_projects'; +const DELETE_TYPE_EXECUTIONS = 'executions'; +const DELETE_TYPE_AUDIT = 'audit'; +const DELETE_TYPE_ABUSE = 'abuse'; +const DELETE_TYPE_USAGE = 'usage'; +const DELETE_TYPE_REALTIME = 'realtime'; +const DELETE_TYPE_BUCKETS = 'buckets'; +const DELETE_TYPE_INSTALLATIONS = 'installations'; +const DELETE_TYPE_RULES = 'rules'; +const DELETE_TYPE_SESSIONS = 'sessions'; +const DELETE_TYPE_CACHE_BY_TIMESTAMP = 'cacheByTimeStamp'; +const DELETE_TYPE_CACHE_BY_RESOURCE = 'cacheByResource'; +const DELETE_TYPE_SCHEDULES = 'schedules'; +const DELETE_TYPE_TOPIC = 'topic'; +const DELETE_TYPE_TARGET = 'target'; +const DELETE_TYPE_EXPIRED_TARGETS = 'invalid_targets'; +const DELETE_TYPE_SESSION_TARGETS = 'session_targets'; +const DELETE_TYPE_MAINTENANCE = 'maintenance'; + +// Message types +const MESSAGE_SEND_TYPE_INTERNAL = 'internal'; +const MESSAGE_SEND_TYPE_EXTERNAL = 'external'; +// Mail Types +const MAIL_TYPE_VERIFICATION = 'verification'; +const MAIL_TYPE_MAGIC_SESSION = 'magicSession'; +const MAIL_TYPE_RECOVERY = 'recovery'; +const MAIL_TYPE_INVITATION = 'invitation'; +const MAIL_TYPE_CERTIFICATE = 'certificate'; +// Auth Types +const APP_AUTH_TYPE_SESSION = 'Session'; +const APP_AUTH_TYPE_JWT = 'JWT'; +const APP_AUTH_TYPE_KEY = 'Key'; +const APP_AUTH_TYPE_ADMIN = 'Admin'; +// Response related +const MAX_OUTPUT_CHUNK_SIZE = 10 * 1024 * 1024; // 10MB +// Function headers +const FUNCTION_ALLOWLIST_HEADERS_REQUEST = ['content-type', 'agent', 'content-length', 'host']; +const FUNCTION_ALLOWLIST_HEADERS_RESPONSE = ['content-type', 'content-length']; +// Message types +const MESSAGE_TYPE_EMAIL = 'email'; +const MESSAGE_TYPE_SMS = 'sms'; +const MESSAGE_TYPE_PUSH = 'push'; +// API key types +const API_KEY_STANDARD = 'standard'; +const API_KEY_DYNAMIC = 'dynamic'; +// Usage metrics +const METRIC_TEAMS = 'teams'; +const METRIC_USERS = 'users'; +const METRIC_WEBHOOKS_SENT = 'webhooks.events.sent'; +const METRIC_WEBHOOKS_FAILED = 'webhooks.events.failed'; +const METRIC_WEBHOOK_ID_SENT = '{webhookInternalId}.webhooks.events.sent'; +const METRIC_WEBHOOK_ID_FAILED = '{webhookInternalId}.webhooks.events.failed'; +const METRIC_AUTH_METHOD_PHONE = 'auth.method.phone'; +const METRIC_AUTH_METHOD_PHONE_COUNTRY_CODE = METRIC_AUTH_METHOD_PHONE . '.{countryCode}'; +const METRIC_MESSAGES = 'messages'; +const METRIC_MESSAGES_SENT = METRIC_MESSAGES . '.sent'; +const METRIC_MESSAGES_FAILED = METRIC_MESSAGES . '.failed'; +const METRIC_MESSAGES_TYPE = METRIC_MESSAGES . '.{type}'; +const METRIC_MESSAGES_TYPE_SENT = METRIC_MESSAGES . '.{type}.sent'; +const METRIC_MESSAGES_TYPE_FAILED = METRIC_MESSAGES . '.{type}.failed'; +const METRIC_MESSAGES_TYPE_PROVIDER = METRIC_MESSAGES . '.{type}.{provider}'; +const METRIC_MESSAGES_TYPE_PROVIDER_SENT = METRIC_MESSAGES . '.{type}.{provider}.sent'; +const METRIC_MESSAGES_TYPE_PROVIDER_FAILED = METRIC_MESSAGES . '.{type}.{provider}.failed'; +const METRIC_SESSIONS = 'sessions'; +const METRIC_DATABASES = 'databases'; +const METRIC_COLLECTIONS = 'collections'; +const METRIC_DATABASES_STORAGE = 'databases.storage'; +const METRIC_DATABASE_ID_COLLECTIONS = '{databaseInternalId}.collections'; +const METRIC_DATABASE_ID_STORAGE = '{databaseInternalId}.databases.storage'; +const METRIC_DOCUMENTS = 'documents'; +const METRIC_DATABASE_ID_DOCUMENTS = '{databaseInternalId}.documents'; +const METRIC_DATABASE_ID_COLLECTION_ID_DOCUMENTS = '{databaseInternalId}.{collectionInternalId}.documents'; +const METRIC_DATABASE_ID_COLLECTION_ID_STORAGE = '{databaseInternalId}.{collectionInternalId}.databases.storage'; +const METRIC_DATABASES_OPERATIONS_READS = 'databases.operations.reads'; +const METRIC_DATABASE_ID_OPERATIONS_READS = '{databaseInternalId}.databases.operations.reads'; +const METRIC_DATABASES_OPERATIONS_WRITES = 'databases.operations.writes'; +const METRIC_DATABASE_ID_OPERATIONS_WRITES = '{databaseInternalId}.databases.operations.writes'; +const METRIC_BUCKETS = 'buckets'; +const METRIC_FILES = 'files'; +const METRIC_FILES_STORAGE = 'files.storage'; +const METRIC_FILES_TRANSFORMATIONS = 'files.transformations'; +const METRIC_BUCKET_ID_FILES_TRANSFORMATIONS = '{bucketInternalId}.files.transformations'; +const METRIC_FILES_IMAGES_TRANSFORMED = 'files.imagesTransformed'; +const METRIC_BUCKET_ID_FILES_IMAGES_TRANSFORMED = '{bucketInternalId}.files.imagesTransformed'; +const METRIC_BUCKET_ID_FILES = '{bucketInternalId}.files'; +const METRIC_BUCKET_ID_FILES_STORAGE = '{bucketInternalId}.files.storage'; +const METRIC_FUNCTIONS = 'functions'; +const METRIC_DEPLOYMENTS = 'deployments'; +const METRIC_DEPLOYMENTS_STORAGE = 'deployments.storage'; +const METRIC_BUILDS = 'builds'; +const METRIC_BUILDS_SUCCESS = 'builds.success'; +const METRIC_BUILDS_FAILED = 'builds.failed'; +const METRIC_BUILDS_STORAGE = 'builds.storage'; +const METRIC_BUILDS_COMPUTE = 'builds.compute'; +const METRIC_BUILDS_COMPUTE_SUCCESS = 'builds.compute.success'; +const METRIC_BUILDS_COMPUTE_FAILED = 'builds.compute.failed'; +const METRIC_BUILDS_MB_SECONDS = 'builds.mbSeconds'; +const METRIC_FUNCTION_ID_BUILDS = '{functionInternalId}.builds'; +const METRIC_FUNCTION_ID_BUILDS_SUCCESS = '{functionInternalId}.builds.success'; +const METRIC_FUNCTION_ID_BUILDS_FAILED = '{functionInternalId}.builds.failed'; +const METRIC_FUNCTION_ID_BUILDS_STORAGE = '{functionInternalId}.builds.storage'; +const METRIC_FUNCTION_ID_BUILDS_COMPUTE = '{functionInternalId}.builds.compute'; +const METRIC_FUNCTION_ID_BUILDS_COMPUTE_SUCCESS = '{functionInternalId}.builds.compute.success'; +const METRIC_FUNCTION_ID_BUILDS_COMPUTE_FAILED = '{functionInternalId}.builds.compute.failed'; +const METRIC_FUNCTION_ID_DEPLOYMENTS = '{resourceType}.{resourceInternalId}.deployments'; +const METRIC_FUNCTION_ID_DEPLOYMENTS_STORAGE = '{resourceType}.{resourceInternalId}.deployments.storage'; +const METRIC_FUNCTION_ID_BUILDS_MB_SECONDS = '{functionInternalId}.builds.mbSeconds'; +const METRIC_EXECUTIONS = 'executions'; +const METRIC_EXECUTIONS_COMPUTE = 'executions.compute'; +const METRIC_EXECUTIONS_MB_SECONDS = 'executions.mbSeconds'; +const METRIC_FUNCTION_ID_EXECUTIONS = '{functionInternalId}.executions'; +const METRIC_FUNCTION_ID_EXECUTIONS_COMPUTE = '{functionInternalId}.executions.compute'; +const METRIC_FUNCTION_ID_EXECUTIONS_MB_SECONDS = '{functionInternalId}.executions.mbSeconds'; +const METRIC_NETWORK_REQUESTS = 'network.requests'; +const METRIC_NETWORK_INBOUND = 'network.inbound'; +const METRIC_NETWORK_OUTBOUND = 'network.outbound'; +const METRIC_MAU = 'users.mau'; +const METRIC_DAU = 'users.dau'; +const METRIC_WAU = 'users.wau'; +const METRIC_WEBHOOKS = 'webhooks'; +const METRIC_PLATFORMS = 'platforms'; +const METRIC_PROVIDERS = 'providers'; +const METRIC_TOPICS = 'topics'; +const METRIC_TARGETS = 'targets'; +const METRIC_PROVIDER_TYPE_TARGETS = '{providerType}.targets'; +const METRIC_KEYS = 'keys'; +const METRIC_DOMAINS = 'domains'; +const METRIC_RESOURCE_TYPE_ID_BUILDS = '{resourceType}.{resourceInternalId}.builds'; +const METRIC_RESOURCE_TYPE_ID_BUILDS_STORAGE = '{resourceType}.{resourceInternalId}.builds.storage'; +const METRIC_RESOURCE_TYPE_ID_DEPLOYMENTS = '{resourceType}.{resourceInternalId}.deployments'; +const METRIC_RESOURCE_TYPE_ID_DEPLOYMENTS_STORAGE = '{resourceType}.{resourceInternalId}.deployments.storage'; + +// Resource types + +const RESOURCE_TYPE_PROJECTS = 'projects'; +const RESOURCE_TYPE_FUNCTIONS = 'functions'; +const RESOURCE_TYPE_DATABASES = 'databases'; +const RESOURCE_TYPE_BUCKETS = 'buckets'; +const RESOURCE_TYPE_PROVIDERS = 'providers'; +const RESOURCE_TYPE_TOPICS = 'topics'; +const RESOURCE_TYPE_SUBSCRIBERS = 'subscribers'; +const RESOURCE_TYPE_MESSAGES = 'messages'; diff --git a/app/init/database/filters.php b/app/init/database/filters.php new file mode 100644 index 00000000000..8223b1c677a --- /dev/null +++ b/app/init/database/filters.php @@ -0,0 +1,404 @@ +<?php + +use Appwrite\OpenSSL\OpenSSL; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Query; +use Utopia\Database\Validator\Authorization; +use Utopia\System\System; + +Database::addFilter( + 'casting', + function (mixed $value) { + return json_encode(['value' => $value], JSON_PRESERVE_ZERO_FRACTION); + }, + function (mixed $value) { + if (is_null($value)) { + return; + } + + return json_decode($value, true)['value']; + } +); + +Database::addFilter( + 'enum', + function (mixed $value, Document $attribute) { + if ($attribute->isSet('elements')) { + $attribute->removeAttribute('elements'); + } + + return $value; + }, + function (mixed $value, Document $attribute) { + $formatOptions = \json_decode($attribute->getAttribute('formatOptions', '[]'), true); + if (isset($formatOptions['elements'])) { + $attribute->setAttribute('elements', $formatOptions['elements']); + } + + return $value; + } +); + +Database::addFilter( + 'range', + function (mixed $value, Document $attribute) { + if ($attribute->isSet('min')) { + $attribute->removeAttribute('min'); + } + if ($attribute->isSet('max')) { + $attribute->removeAttribute('max'); + } + + return $value; + }, + function (mixed $value, Document $attribute) { + $formatOptions = json_decode($attribute->getAttribute('formatOptions', '[]'), true); + if (isset($formatOptions['min']) || isset($formatOptions['max'])) { + $attribute + ->setAttribute('min', $formatOptions['min']) + ->setAttribute('max', $formatOptions['max']); + } + + return $value; + } +); + +Database::addFilter( + 'subQueryAttributes', + function (mixed $value) { + return; + }, + function (mixed $value, Document $document, Database $database) { + $attributes = $database->find('attributes', [ + Query::equal('collectionInternalId', [$document->getInternalId()]), + Query::equal('databaseInternalId', [$document->getAttribute('databaseInternalId')]), + Query::limit($database->getLimitForAttributes()), + ]); + + foreach ($attributes as $attribute) { + if ($attribute->getAttribute('type') === Database::VAR_RELATIONSHIP) { + $options = $attribute->getAttribute('options'); + foreach ($options as $key => $value) { + $attribute->setAttribute($key, $value); + } + $attribute->removeAttribute('options'); + } + } + + return $attributes; + } +); + +Database::addFilter( + 'subQueryIndexes', + function (mixed $value) { + return; + }, + function (mixed $value, Document $document, Database $database) { + return $database + ->find('indexes', [ + Query::equal('collectionInternalId', [$document->getInternalId()]), + Query::equal('databaseInternalId', [$document->getAttribute('databaseInternalId')]), + Query::limit($database->getLimitForIndexes()), + ]); + } +); + +Database::addFilter( + 'subQueryPlatforms', + function (mixed $value) { + return; + }, + function (mixed $value, Document $document, Database $database) { + return $database + ->find('platforms', [ + Query::equal('projectInternalId', [$document->getInternalId()]), + Query::limit(APP_LIMIT_SUBQUERY), + ]); + } +); + +Database::addFilter( + 'subQueryKeys', + function (mixed $value) { + return; + }, + function (mixed $value, Document $document, Database $database) { + return $database + ->find('keys', [ + Query::equal('projectInternalId', [$document->getInternalId()]), + Query::limit(APP_LIMIT_SUBQUERY), + ]); + } +); + +Database::addFilter( + 'subQueryWebhooks', + function (mixed $value) { + return; + }, + function (mixed $value, Document $document, Database $database) { + return $database + ->find('webhooks', [ + Query::equal('projectInternalId', [$document->getInternalId()]), + Query::limit(APP_LIMIT_SUBQUERY), + ]); + } +); + +Database::addFilter( + 'subQuerySessions', + function (mixed $value) { + return; + }, + function (mixed $value, Document $document, Database $database) { + return Authorization::skip(fn () => $database->find('sessions', [ + Query::equal('userInternalId', [$document->getInternalId()]), + Query::limit(APP_LIMIT_SUBQUERY), + ])); + } +); + +Database::addFilter( + 'subQueryTokens', + function (mixed $value) { + return; + }, + function (mixed $value, Document $document, Database $database) { + return Authorization::skip(fn () => $database + ->find('tokens', [ + Query::equal('userInternalId', [$document->getInternalId()]), + Query::limit(APP_LIMIT_SUBQUERY), + ])); + } +); + +Database::addFilter( + 'subQueryChallenges', + function (mixed $value) { + return; + }, + function (mixed $value, Document $document, Database $database) { + return Authorization::skip(fn () => $database + ->find('challenges', [ + Query::equal('userInternalId', [$document->getInternalId()]), + Query::limit(APP_LIMIT_SUBQUERY), + ])); + } +); + +Database::addFilter( + 'subQueryAuthenticators', + function (mixed $value) { + return; + }, + function (mixed $value, Document $document, Database $database) { + return Authorization::skip(fn () => $database + ->find('authenticators', [ + Query::equal('userInternalId', [$document->getInternalId()]), + Query::limit(APP_LIMIT_SUBQUERY), + ])); + } +); + +Database::addFilter( + 'subQueryMemberships', + function (mixed $value) { + return; + }, + function (mixed $value, Document $document, Database $database) { + return Authorization::skip(fn () => $database + ->find('memberships', [ + Query::equal('userInternalId', [$document->getInternalId()]), + Query::limit(APP_LIMIT_SUBQUERY), + ])); + } +); + +Database::addFilter( + 'subQueryVariables', + function (mixed $value) { + return; + }, + function (mixed $value, Document $document, Database $database) { + return $database + ->find('variables', [ + Query::equal('resourceInternalId', [$document->getInternalId()]), + Query::equal('resourceType', ['function']), + Query::limit(APP_LIMIT_SUBQUERY), + ]); + } +); + +Database::addFilter( + 'encrypt', + function (mixed $value) { + $key = System::getEnv('_APP_OPENSSL_KEY_V1'); + $iv = OpenSSL::randomPseudoBytes(OpenSSL::cipherIVLength(OpenSSL::CIPHER_AES_128_GCM)); + $tag = null; + + return json_encode([ + 'data' => OpenSSL::encrypt($value, OpenSSL::CIPHER_AES_128_GCM, $key, 0, $iv, $tag), + 'method' => OpenSSL::CIPHER_AES_128_GCM, + 'iv' => \bin2hex($iv), + 'tag' => \bin2hex($tag ?? ''), + 'version' => '1', + ]); + }, + function (mixed $value) { + if (is_null($value)) { + return; + } + $value = json_decode($value, true); + $key = System::getEnv('_APP_OPENSSL_KEY_V' . $value['version']); + + return OpenSSL::decrypt($value['data'], $value['method'], $key, 0, hex2bin($value['iv']), hex2bin($value['tag'])); + } +); + +Database::addFilter( + 'subQueryProjectVariables', + function (mixed $value) { + return; + }, + function (mixed $value, Document $document, Database $database) { + return $database + ->find('variables', [ + Query::equal('resourceType', ['project']), + Query::limit(APP_LIMIT_SUBQUERY) + ]); + } +); + +Database::addFilter( + 'userSearch', + function (mixed $value, Document $user) { + $searchValues = [ + $user->getId(), + $user->getAttribute('email', ''), + $user->getAttribute('name', ''), + $user->getAttribute('phone', '') + ]; + + foreach ($user->getAttribute('labels', []) as $label) { + $searchValues[] = 'label:' . $label; + } + + $search = implode(' ', \array_filter($searchValues)); + + return $search; + }, + function (mixed $value) { + return $value; + } +); + +Database::addFilter( + 'subQueryTargets', + function (mixed $value) { + return; + }, + function (mixed $value, Document $document, Database $database) { + return Authorization::skip(fn () => $database + ->find('targets', [ + Query::equal('userInternalId', [$document->getInternalId()]), + Query::limit(APP_LIMIT_SUBQUERY) + ])); + } +); + +Database::addFilter( + 'subQueryTopicTargets', + function (mixed $value) { + return; + }, + function (mixed $value, Document $document, Database $database) { + $targetIds = Authorization::skip(fn () => \array_map( + fn ($document) => $document->getAttribute('targetInternalId'), + $database->find('subscribers', [ + Query::equal('topicInternalId', [$document->getInternalId()]), + Query::limit(APP_LIMIT_SUBSCRIBERS_SUBQUERY) + ]) + )); + if (\count($targetIds) > 0) { + return $database->skipValidation(fn () => $database->find('targets', [ + Query::equal('$internalId', $targetIds) + ])); + } + return []; + } +); + +Database::addFilter( + 'providerSearch', + function (mixed $value, Document $provider) { + $searchValues = [ + $provider->getId(), + $provider->getAttribute('name', ''), + $provider->getAttribute('provider', ''), + $provider->getAttribute('type', '') + ]; + + $search = \implode(' ', \array_filter($searchValues)); + + return $search; + }, + function (mixed $value) { + return $value; + } +); + +Database::addFilter( + 'topicSearch', + function (mixed $value, Document $topic) { + $searchValues = [ + $topic->getId(), + $topic->getAttribute('name', ''), + $topic->getAttribute('description', ''), + ]; + + $search = \implode(' ', \array_filter($searchValues)); + + return $search; + }, + function (mixed $value) { + return $value; + } +); + +Database::addFilter( + 'messageSearch', + function (mixed $value, Document $message) { + $searchValues = [ + $message->getId(), + $message->getAttribute('description', ''), + $message->getAttribute('status', ''), + ]; + + $data = \json_decode($message->getAttribute('data', []), true); + $providerType = $message->getAttribute('providerType', ''); + + switch ($providerType) { + case MESSAGE_TYPE_EMAIL: + $searchValues[] = $data['subject']; + $searchValues[] = MESSAGE_TYPE_EMAIL; + break; + case MESSAGE_TYPE_SMS: + $searchValues[] = $data['content']; + $searchValues[] = MESSAGE_TYPE_SMS; + break; + case MESSAGE_TYPE_PUSH: + $searchValues[] = $data['title'] ?? ''; + $searchValues[] = MESSAGE_TYPE_PUSH; + break; + } + + $search = \implode(' ', \array_filter($searchValues)); + + return $search; + }, + function (mixed $value) { + return $value; + } +); diff --git a/app/init/database/formats.php b/app/init/database/formats.php new file mode 100644 index 00000000000..6c73877576f --- /dev/null +++ b/app/init/database/formats.php @@ -0,0 +1,43 @@ +<?php + +use Appwrite\Network\Validator\Email; +use Utopia\Database\Database; +use Utopia\Database\Validator\Datetime as DatetimeValidator; +use Utopia\Database\Validator\Structure; +use Utopia\Validator\IP; +use Utopia\Validator\Range; +use Utopia\Validator\URL; +use Utopia\Validator\WhiteList; + +Structure::addFormat(APP_DATABASE_ATTRIBUTE_EMAIL, function () { + return new Email(); +}, Database::VAR_STRING); + +Structure::addFormat(APP_DATABASE_ATTRIBUTE_DATETIME, function () { + return new DatetimeValidator(); +}, Database::VAR_DATETIME); + +Structure::addFormat(APP_DATABASE_ATTRIBUTE_ENUM, function ($attribute) { + $elements = $attribute['formatOptions']['elements'] ?? []; + return new WhiteList($elements, true); +}, Database::VAR_STRING); + +Structure::addFormat(APP_DATABASE_ATTRIBUTE_IP, function () { + return new IP(); +}, Database::VAR_STRING); + +Structure::addFormat(APP_DATABASE_ATTRIBUTE_URL, function () { + return new URL(); +}, Database::VAR_STRING); + +Structure::addFormat(APP_DATABASE_ATTRIBUTE_INT_RANGE, function ($attribute) { + $min = $attribute['formatOptions']['min'] ?? -INF; + $max = $attribute['formatOptions']['max'] ?? INF; + return new Range($min, $max, Range::TYPE_INTEGER); +}, Database::VAR_INTEGER); + +Structure::addFormat(APP_DATABASE_ATTRIBUTE_FLOAT_RANGE, function ($attribute) { + $min = $attribute['formatOptions']['min'] ?? -INF; + $max = $attribute['formatOptions']['max'] ?? INF; + return new Range($min, $max, Range::TYPE_FLOAT); +}, Database::VAR_FLOAT); diff --git a/app/init/locales.php b/app/init/locales.php new file mode 100644 index 00000000000..122dc89692e --- /dev/null +++ b/app/init/locales.php @@ -0,0 +1,23 @@ +<?php + +use Utopia\Config\Config; +use Utopia\Locale\Locale; + +Locale::$exceptions = false; + +$locales = Config::getParam('locale-codes', []); + +foreach ($locales as $locale) { + $code = $locale['code']; + + $path = __DIR__ . '/../config/locale/translations/' . $code . '.json'; + + if (!\file_exists($path)) { + $path = __DIR__ . '/../config/locale/translations/' . \substr($code, 0, 2) . '.json'; // if `ar-ae` doesn't exist, look for `ar` + if (!\file_exists($path)) { + $path = __DIR__ . '/../config/locale/translations/en.json'; // if none translation exists, use default from `en.json` + } + } + + Locale::setLanguageFromJSON($code, $path); +} diff --git a/app/init/registers.php b/app/init/registers.php new file mode 100644 index 00000000000..415730f9368 --- /dev/null +++ b/app/init/registers.php @@ -0,0 +1,341 @@ +<?php + +use Appwrite\Extend\Exception; +use Appwrite\GraphQL\Promises\Adapter\Swoole; +use Appwrite\Hooks\Hooks; +use Appwrite\PubSub\Adapter\Redis as PubSub; +use Appwrite\URL\URL as AppwriteURL; +use MaxMind\Db\Reader; +use PHPMailer\PHPMailer\PHPMailer; +use Swoole\Database\PDOProxy; +use Utopia\App; +use Utopia\Cache\Adapter\Redis as RedisCache; +use Utopia\CLI\Console; +use Utopia\Config\Config; +use Utopia\Database\Adapter\MariaDB; +use Utopia\Database\Adapter\MySQL; +use Utopia\Database\Adapter\SQL; +use Utopia\Database\PDO; +use Utopia\Domains\Validator\PublicDomain; +use Utopia\DSN\DSN; +use Utopia\Logger\Adapter\AppSignal; +use Utopia\Logger\Adapter\LogOwl; +use Utopia\Logger\Adapter\Raygun; +use Utopia\Logger\Adapter\Sentry; +use Utopia\Logger\Logger; +use Utopia\Pools\Group; +use Utopia\Pools\Pool; +use Utopia\Queue; +use Utopia\Registry\Registry; +use Utopia\System\System; + +$register = new Registry(); + +App::setMode(System::getEnv('_APP_ENV', App::MODE_TYPE_PRODUCTION)); + +if (!App::isProduction()) { + // Allow specific domains to skip public domain validation in dev environment + // Useful for existing tests involving webhooks + PublicDomain::allow(['request-catcher']); +} +$register->set('logger', function () { + // Register error logger + $providerName = System::getEnv('_APP_LOGGING_PROVIDER', ''); + $providerConfig = System::getEnv('_APP_LOGGING_CONFIG', ''); + + if (empty($providerConfig)) { + return; + } + + try { + $loggingProvider = new DSN($providerConfig ?? ''); + + $providerName = $loggingProvider->getScheme(); + $providerConfig = match ($providerName) { + 'sentry' => ['key' => $loggingProvider->getPassword(), 'projectId' => $loggingProvider->getUser() ?? '', 'host' => 'https://' . $loggingProvider->getHost()], + 'logowl' => ['ticket' => $loggingProvider->getUser() ?? '', 'host' => $loggingProvider->getHost()], + default => ['key' => $loggingProvider->getHost()], + }; + } catch (Throwable $th) { + // Fallback for older Appwrite versions up to 1.5.x that use _APP_LOGGING_PROVIDER and _APP_LOGGING_CONFIG environment variables + Console::warning('Using deprecated logging configuration. Please update your configuration to use DSN format.' . $th->getMessage()); + $configChunks = \explode(";", $providerConfig); + + $providerConfig = match ($providerName) { + 'sentry' => [ 'key' => $configChunks[0], 'projectId' => $configChunks[1] ?? '', 'host' => '',], + 'logowl' => ['ticket' => $configChunks[0] ?? '', 'host' => ''], + default => ['key' => $providerConfig], + }; + } + + if (empty($providerName) || empty($providerConfig)) { + return; + } + + if (!Logger::hasProvider($providerName)) { + throw new Exception(Exception::GENERAL_SERVER_ERROR, "Logging provider not supported. Logging is disabled"); + } + + try { + $adapter = match ($providerName) { + 'sentry' => new Sentry($providerConfig['projectId'], $providerConfig['key'], $providerConfig['host']), + 'logowl' => new LogOwl($providerConfig['ticket'], $providerConfig['host']), + 'raygun' => new Raygun($providerConfig['key']), + 'appsignal' => new AppSignal($providerConfig['key']), + default => null + }; + } catch (Throwable $th) { + $adapter = null; + } + + if ($adapter === null) { + Console::error("Logging provider not supported. Logging is disabled"); + return; + } + + return new Logger($adapter); +}); + +$register->set('pools', function () { + $group = new Group(); + + $fallbackForDB = 'db_main=' . AppwriteURL::unparse([ + 'scheme' => 'mariadb', + 'host' => System::getEnv('_APP_DB_HOST', 'mariadb'), + 'port' => System::getEnv('_APP_DB_PORT', '3306'), + 'user' => System::getEnv('_APP_DB_USER', ''), + 'pass' => System::getEnv('_APP_DB_PASS', ''), + 'path' => System::getEnv('_APP_DB_SCHEMA', ''), + ]); + $fallbackForRedis = 'redis_main=' . AppwriteURL::unparse([ + 'scheme' => 'redis', + 'host' => System::getEnv('_APP_REDIS_HOST', 'redis'), + 'port' => System::getEnv('_APP_REDIS_PORT', '6379'), + 'user' => System::getEnv('_APP_REDIS_USER', ''), + 'pass' => System::getEnv('_APP_REDIS_PASS', ''), + ]); + + $connections = [ + 'console' => [ + 'type' => 'database', + 'dsns' => $fallbackForDB, + 'multiple' => false, + 'schemes' => ['mariadb', 'mysql'], + ], + 'database' => [ + 'type' => 'database', + 'dsns' => $fallbackForDB, + 'multiple' => true, + 'schemes' => ['mariadb', 'mysql'], + ], + 'logs' => [ + 'type' => 'database', + 'dsns' => System::getEnv('_APP_CONNECTIONS_DB_LOGS', $fallbackForDB), + 'multiple' => false, + 'schemes' => ['mariadb', 'mysql'], + ], + 'publisher' => [ + 'type' => 'publisher', + 'dsns' => $fallbackForRedis, + 'multiple' => false, + 'schemes' => ['redis'], + ], + 'consumer' => [ + 'type' => 'consumer', + 'dsns' => $fallbackForRedis, + 'multiple' => false, + 'schemes' => ['redis'], + ], + 'pubsub' => [ + 'type' => 'pubsub', + 'dsns' => $fallbackForRedis, + 'multiple' => false, + 'schemes' => ['redis'], + ], + 'cache' => [ + 'type' => 'cache', + 'dsns' => $fallbackForRedis, + 'multiple' => true, + 'schemes' => ['redis'], + ], + ]; + + $maxConnections = System::getEnv('_APP_CONNECTIONS_MAX', 151); + $instanceConnections = $maxConnections / System::getEnv('_APP_POOL_CLIENTS', 14); + + $multiprocessing = System::getEnv('_APP_SERVER_MULTIPROCESS', 'disabled') === 'enabled'; + + if ($multiprocessing) { + $workerCount = intval(System::getEnv('_APP_CPU_NUM', swoole_cpu_num())) * intval(System::getEnv('_APP_WORKER_PER_CORE', 6)); + } else { + $workerCount = 1; + } + + if ($workerCount > $instanceConnections) { + throw new \Exception('Pool size is too small. Increase the number of allowed database connections or decrease the number of workers.', 500); + } + + $poolSize = (int)($instanceConnections / $workerCount); + + foreach ($connections as $key => $connection) { + $type = $connection['type'] ?? ''; + $multiple = $connection['multiple'] ?? false; + $schemes = $connection['schemes'] ?? []; + $config = []; + $dsns = explode(',', $connection['dsns'] ?? ''); + foreach ($dsns as &$dsn) { + $dsn = explode('=', $dsn); + $name = ($multiple) ? $key . '_' . $dsn[0] : $key; + $dsn = $dsn[1] ?? ''; + $config[] = $name; + if (empty($dsn)) { + //throw new Exception(Exception::GENERAL_SERVER_ERROR, "Missing value for DSN connection in {$key}"); + continue; + } + + $dsn = new DSN($dsn); + $dsnHost = $dsn->getHost(); + $dsnPort = $dsn->getPort(); + $dsnUser = $dsn->getUser(); + $dsnPass = $dsn->getPassword(); + $dsnScheme = $dsn->getScheme(); + $dsnDatabase = $dsn->getPath(); + + if (!in_array($dsnScheme, $schemes)) { + throw new Exception(Exception::GENERAL_SERVER_ERROR, "Invalid console database scheme"); + } + + /** + * Get Resource + * + * Creation could be reused across connection types like database, cache, queue, etc. + * + * Resource assignment to an adapter will happen below. + */ + $resource = match ($dsnScheme) { + 'mysql', + 'mariadb' => function () use ($dsnHost, $dsnPort, $dsnUser, $dsnPass, $dsnDatabase) { + return new PDOProxy(function () use ($dsnHost, $dsnPort, $dsnUser, $dsnPass, $dsnDatabase) { + return new PDO("mysql:host={$dsnHost};port={$dsnPort};dbname={$dsnDatabase};charset=utf8mb4", $dsnUser, $dsnPass, [ + \PDO::ATTR_TIMEOUT => 3, // Seconds + \PDO::ATTR_PERSISTENT => false, + \PDO::ATTR_DEFAULT_FETCH_MODE => \PDO::FETCH_ASSOC, + \PDO::ATTR_EMULATE_PREPARES => true, + \PDO::ATTR_STRINGIFY_FETCHES => true + ]); + }); + }, + 'redis' => function () use ($dsnHost, $dsnPort, $dsnPass) { + $redis = new \Redis(); + @$redis->pconnect($dsnHost, (int)$dsnPort); + if ($dsnPass) { + $redis->auth($dsnPass); + } + $redis->setOption(\Redis::OPT_READ_TIMEOUT, -1); + + return $redis; + }, + default => throw new Exception(Exception::GENERAL_SERVER_ERROR, 'Invalid scheme'), + }; + + $pool = new Pool($name, $poolSize, function () use ($type, $resource, $dsn) { + // Get Adapter + switch ($type) { + case 'database': + $adapter = match ($dsn->getScheme()) { + 'mariadb' => new MariaDB($resource()), + 'mysql' => new MySQL($resource()), + default => null + }; + + $adapter->setDatabase($dsn->getPath()); + return $adapter; + case 'pubsub': + return match ($dsn->getScheme()) { + 'redis' => new PubSub($resource()), + default => null + }; + case 'publisher': + case 'consumer': + return match ($dsn->getScheme()) { + 'redis' => new Queue\Broker\Redis(new Queue\Connection\Redis($dsn->getHost(), $dsn->getPort())), + default => null + }; + case 'cache': + return match ($dsn->getScheme()) { + 'redis' => new RedisCache($resource()), + default => null + }; + default: + throw new Exception(Exception::GENERAL_SERVER_ERROR, "Server error: Missing adapter implementation."); + } + }); + + $group->add($pool); + } + + Config::setParam('pools-' . $key, $config); + } + + return $group; +}); + +$register->set('db', function () { + // This is usually for our workers or CLI commands scope + $dbHost = System::getEnv('_APP_DB_HOST', ''); + $dbPort = System::getEnv('_APP_DB_PORT', ''); + $dbUser = System::getEnv('_APP_DB_USER', ''); + $dbPass = System::getEnv('_APP_DB_PASS', ''); + $dbScheme = System::getEnv('_APP_DB_SCHEMA', ''); + + return new PDO( + "mysql:host={$dbHost};port={$dbPort};dbname={$dbScheme};charset=utf8mb4", + $dbUser, + $dbPass, + SQL::getPDOAttributes() + ); +}); + +$register->set('smtp', function () { + $mail = new PHPMailer(true); + + $mail->isSMTP(); + + $username = System::getEnv('_APP_SMTP_USERNAME'); + $password = System::getEnv('_APP_SMTP_PASSWORD'); + + $mail->XMailer = 'Appwrite Mailer'; + $mail->Host = System::getEnv('_APP_SMTP_HOST', 'smtp'); + $mail->Port = System::getEnv('_APP_SMTP_PORT', 25); + $mail->SMTPAuth = !empty($username) && !empty($password); + $mail->Username = $username; + $mail->Password = $password; + $mail->SMTPSecure = System::getEnv('_APP_SMTP_SECURE', ''); + $mail->SMTPAutoTLS = false; + $mail->CharSet = 'UTF-8'; + + $from = \urldecode(System::getEnv('_APP_SYSTEM_EMAIL_NAME', APP_NAME . ' Server')); + $email = System::getEnv('_APP_SYSTEM_EMAIL_ADDRESS', APP_EMAIL_TEAM); + + $mail->setFrom($email, $from); + $mail->addReplyTo($email, $from); + + $mail->isHTML(true); + + return $mail; +}); +$register->set('geodb', function () { + return new Reader(__DIR__ . '/../assets/dbip/dbip-country-lite-2024-09.mmdb'); +}); +$register->set('passwordsDictionary', function () { + $content = \file_get_contents(__DIR__ . '/../assets/security/10k-common-passwords'); + $content = explode("\n", $content); + $content = array_flip($content); + return $content; +}); +$register->set('promiseAdapter', function () { + return new Swoole(); +}); +$register->set('hooks', function () { + return new Hooks(); +}); diff --git a/app/init/resources.php b/app/init/resources.php new file mode 100644 index 00000000000..f48efbe1777 --- /dev/null +++ b/app/init/resources.php @@ -0,0 +1,827 @@ +<?php + +use Ahc\Jwt\JWT; +use Ahc\Jwt\JWTException; +use Appwrite\Auth\Auth; +use Appwrite\Auth\Key; +use Appwrite\Event\Audit; +use Appwrite\Event\Build; +use Appwrite\Event\Certificate; +use Appwrite\Event\Database as EventDatabase; +use Appwrite\Event\Delete; +use Appwrite\Event\Event; +use Appwrite\Event\Func; +use Appwrite\Event\Mail; +use Appwrite\Event\Messaging; +use Appwrite\Event\Migration; +use Appwrite\Event\Realtime; +use Appwrite\Event\StatsUsage; +use Appwrite\Event\Webhook; +use Appwrite\Extend\Exception; +use Appwrite\GraphQL\Schema; +use Appwrite\Network\Validator\Origin; +use Appwrite\Utopia\Request; +use Executor\Executor; +use Utopia\Abuse\Adapters\TimeLimit\Redis as TimeLimitRedis; +use Utopia\App; +use Utopia\Cache\Adapter\Pool as CachePool; +use Utopia\Cache\Adapter\Sharding; +use Utopia\Cache\Cache; +use Utopia\CLI\Console; +use Utopia\Config\Config; +use Utopia\Database\Adapter\Pool as DatabasePool; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Helpers\ID; +use Utopia\Database\Query; +use Utopia\Database\Validator\Authorization; +use Utopia\DSN\DSN; +use Utopia\Locale\Locale; +use Utopia\Logger\Log; +use Utopia\Pools\Group; +use Utopia\Queue\Broker\Pool as BrokerPool; +use Utopia\Queue\Publisher; +use Utopia\Storage\Device; +use Utopia\Storage\Device\AWS; +use Utopia\Storage\Device\Backblaze; +use Utopia\Storage\Device\DOSpaces; +use Utopia\Storage\Device\Linode; +use Utopia\Storage\Device\Local; +use Utopia\Storage\Device\S3; +use Utopia\Storage\Device\Wasabi; +use Utopia\Storage\Storage; +use Utopia\System\System; +use Utopia\Telemetry\Adapter as Telemetry; +use Utopia\Telemetry\Adapter\None as NoTelemetry; +use Utopia\Validator\Hostname; +use Utopia\VCS\Adapter\Git\GitHub as VcsGitHub; + +// Runtime Execution +App::setResource('log', fn () => new Log()); +App::setResource('logger', function ($register) { + return $register->get('logger'); +}, ['register']); + +App::setResource('hooks', function ($register) { + return $register->get('hooks'); +}, ['register']); + +App::setResource('register', fn () => $register); +App::setResource('locale', fn () => new Locale(System::getEnv('_APP_LOCALE', 'en'))); + +App::setResource('localeCodes', function () { + return array_map(fn ($locale) => $locale['code'], Config::getParam('locale-codes', [])); +}); + +// Queues +App::setResource('publisher', function (Group $pools) { + return new BrokerPool(publisher: $pools->get('publisher')); +}, ['pools']); +App::setResource('consumer', function (Group $pools) { + return new BrokerPool(consumer: $pools->get('consumer')); +}, ['pools']); +App::setResource('queueForMessaging', function (Publisher $publisher) { + return new Messaging($publisher); +}, ['publisher']); +App::setResource('queueForMails', function (Publisher $publisher) { + return new Mail($publisher); +}, ['publisher']); +App::setResource('queueForBuilds', function (Publisher $publisher) { + return new Build($publisher); +}, ['publisher']); +App::setResource('queueForDatabase', function (Publisher $publisher) { + return new EventDatabase($publisher); +}, ['publisher']); +App::setResource('queueForDeletes', function (Publisher $publisher) { + return new Delete($publisher); +}, ['publisher']); +App::setResource('queueForEvents', function (Publisher $publisher) { + return new Event($publisher); +}, ['publisher']); +App::setResource('queueForWebhooks', function (Publisher $publisher) { + return new Webhook($publisher); +}, ['publisher']); +App::setResource('queueForRealtime', function () { + return new Realtime(); +}, []); +App::setResource('queueForStatsUsage', function (Publisher $publisher) { + return new StatsUsage($publisher); +}, ['publisher']); +App::setResource('queueForAudits', function (Publisher $publisher) { + return new Audit($publisher); +}, ['publisher']); +App::setResource('queueForFunctions', function (Publisher $publisher) { + return new Func($publisher); +}, ['publisher']); +App::setResource('queueForCertificates', function (Publisher $publisher) { + return new Certificate($publisher); +}, ['publisher']); +App::setResource('queueForMigrations', function (Publisher $publisher) { + return new Migration($publisher); +}, ['publisher']); +App::setResource('clients', function ($request, $console, $project) { + $console->setAttribute('platforms', [ // Always allow current host + '$collection' => ID::custom('platforms'), + 'name' => 'Current Host', + 'type' => Origin::CLIENT_TYPE_WEB, + 'hostname' => $request->getHostname(), + ], Document::SET_TYPE_APPEND); + + $hostnames = explode(',', System::getEnv('_APP_CONSOLE_HOSTNAMES', '')); + $validator = new Hostname(); + foreach ($hostnames as $hostname) { + $hostname = trim($hostname); + if (!$validator->isValid($hostname)) { + continue; + } + $console->setAttribute('platforms', [ + '$collection' => ID::custom('platforms'), + 'type' => Origin::CLIENT_TYPE_WEB, + 'name' => $hostname, + 'hostname' => $hostname, + ], Document::SET_TYPE_APPEND); + } + + /** + * Get All verified client URLs for both console and current projects + * + Filter for duplicated entries + */ + $clientsConsole = \array_map( + fn ($node) => $node['hostname'], + \array_filter( + $console->getAttribute('platforms', []), + fn ($node) => (isset($node['type']) && ($node['type'] === Origin::CLIENT_TYPE_WEB) && !empty($node['hostname'])) + ) + ); + + $clients = $clientsConsole; + $platforms = $project->getAttribute('platforms', []); + + foreach ($platforms as $node) { + if ( + isset($node['type']) && + ($node['type'] === Origin::CLIENT_TYPE_WEB || + $node['type'] === Origin::CLIENT_TYPE_FLUTTER_WEB) && + !empty($node['hostname']) + ) { + $clients[] = $node['hostname']; + } + } + + return \array_unique($clients); +}, ['request', 'console', 'project']); + +App::setResource('user', function ($mode, $project, $console, $request, $response, $dbForProject, $dbForPlatform) { + /** @var Appwrite\Utopia\Request $request */ + /** @var Appwrite\Utopia\Response $response */ + /** @var Utopia\Database\Document $project */ + /** @var Utopia\Database\Database $dbForProject */ + /** @var Utopia\Database\Database $dbForPlatform */ + /** @var string $mode */ + + Authorization::setDefaultStatus(true); + + Auth::setCookieName('a_session_' . $project->getId()); + + if (APP_MODE_ADMIN === $mode) { + Auth::setCookieName('a_session_' . $console->getId()); + } + + $session = Auth::decodeSession( + $request->getCookie( + Auth::$cookieName, // Get sessions + $request->getCookie(Auth::$cookieName . '_legacy', '') + ) + ); + + // Get session from header for SSR clients + if (empty($session['id']) && empty($session['secret'])) { + $sessionHeader = $request->getHeader('x-appwrite-session', ''); + + if (!empty($sessionHeader)) { + $session = Auth::decodeSession($sessionHeader); + } + } + + // Get fallback session from old clients (no SameSite support) or clients who block 3rd-party cookies + if ($response) { + $response->addHeader('X-Debug-Fallback', 'false'); + } + + if (empty($session['id']) && empty($session['secret'])) { + if ($response) { + $response->addHeader('X-Debug-Fallback', 'true'); + } + $fallback = $request->getHeader('x-fallback-cookies', ''); + $fallback = \json_decode($fallback, true); + $session = Auth::decodeSession(((isset($fallback[Auth::$cookieName])) ? $fallback[Auth::$cookieName] : '')); + } + + Auth::$unique = $session['id'] ?? ''; + Auth::$secret = $session['secret'] ?? ''; + + if (APP_MODE_ADMIN !== $mode) { + if ($project->isEmpty()) { + $user = new Document([]); + } else { + if ($project->getId() === 'console') { + $user = $dbForPlatform->getDocument('users', Auth::$unique); + } else { + $user = $dbForProject->getDocument('users', Auth::$unique); + } + } + } else { + $user = $dbForPlatform->getDocument('users', Auth::$unique); + } + + if ( + $user->isEmpty() // Check a document has been found in the DB + || !Auth::sessionVerify($user->getAttribute('sessions', []), Auth::$secret) + ) { // Validate user has valid login token + $user = new Document([]); + } + + // if (APP_MODE_ADMIN === $mode) { + // if ($user->find('teamInternalId', $project->getAttribute('teamInternalId'), 'memberships')) { + // Authorization::setDefaultStatus(false); // Cancel security segmentation for admin users. + // } else { + // $user = new Document([]); + // } + // } + + $authJWT = $request->getHeader('x-appwrite-jwt', ''); + + if (!empty($authJWT) && !$project->isEmpty()) { // JWT authentication + $jwt = new JWT(System::getEnv('_APP_OPENSSL_KEY_V1'), 'HS256', 3600, 0); + + try { + $payload = $jwt->decode($authJWT); + } catch (JWTException $error) { + throw new Exception(Exception::USER_JWT_INVALID, 'Failed to verify JWT. ' . $error->getMessage()); + } + + $jwtUserId = $payload['userId'] ?? ''; + if (!empty($jwtUserId)) { + $user = $dbForProject->getDocument('users', $jwtUserId); + } + + $jwtSessionId = $payload['sessionId'] ?? ''; + if (!empty($jwtSessionId)) { + if (empty($user->find('$id', $jwtSessionId, 'sessions'))) { // Match JWT to active token + $user = new Document([]); + } + } + } + + $dbForProject->setMetadata('user', $user->getId()); + $dbForPlatform->setMetadata('user', $user->getId()); + + return $user; +}, ['mode', 'project', 'console', 'request', 'response', 'dbForProject', 'dbForPlatform']); + +App::setResource('project', function ($dbForPlatform, $request, $console) { + /** @var Appwrite\Utopia\Request $request */ + /** @var Utopia\Database\Database $dbForPlatform */ + /** @var Utopia\Database\Document $console */ + + $projectId = $request->getParam('project', $request->getHeader('x-appwrite-project', '')); + + if (empty($projectId) || $projectId === 'console') { + return $console; + } + + $project = Authorization::skip(fn () => $dbForPlatform->getDocument('projects', $projectId)); + + return $project; +}, ['dbForPlatform', 'request', 'console']); + +App::setResource('session', function (Document $user) { + if ($user->isEmpty()) { + return; + } + + $sessions = $user->getAttribute('sessions', []); + $sessionId = Auth::sessionVerify($user->getAttribute('sessions'), Auth::$secret); + + if (!$sessionId) { + return; + } + + foreach ($sessions as $session) {/** @var Document $session */ + if ($sessionId === $session->getId()) { + return $session; + } + } + + return; +}, ['user']); + +App::setResource('console', function () { + return new Document(Config::getParam('console')); +}, []); + +App::setResource('dbForProject', function (Group $pools, Database $dbForPlatform, Cache $cache, Document $project) { + if ($project->isEmpty() || $project->getId() === 'console') { + return $dbForPlatform; + } + + try { + $dsn = new DSN($project->getAttribute('database')); + } catch (\InvalidArgumentException) { + // TODO: Temporary until all projects are using shared tables + $dsn = new DSN('mysql://' . $project->getAttribute('database')); + } + + $adapter = new DatabasePool($pools->get($dsn->getHost())); + $database = new Database($adapter, $cache); + + $database + ->setMetadata('host', \gethostname()) + ->setMetadata('project', $project->getId()) + ->setTimeout(APP_DATABASE_TIMEOUT_MILLISECONDS_API) + ->setMaxQueryValues(APP_DATABASE_QUERY_MAX_VALUES); + + $sharedTables = \explode(',', System::getEnv('_APP_DATABASE_SHARED_TABLES', '')); + + if (\in_array($dsn->getHost(), $sharedTables)) { + $database + ->setSharedTables(true) + ->setTenant($project->getInternalId()) + ->setNamespace($dsn->getParam('namespace')); + } else { + $database + ->setSharedTables(false) + ->setTenant(null) + ->setNamespace('_' . $project->getInternalId()); + } + + return $database; +}, ['pools', 'dbForPlatform', 'cache', 'project']); + +App::setResource('dbForPlatform', function (Group $pools, Cache $cache) { + $adapter = new DatabasePool($pools->get('console')); + $database = new Database($adapter, $cache); + + $database + ->setNamespace('_console') + ->setMetadata('host', \gethostname()) + ->setMetadata('project', 'console') + ->setTimeout(APP_DATABASE_TIMEOUT_MILLISECONDS_API) + ->setMaxQueryValues(APP_DATABASE_QUERY_MAX_VALUES); + + return $database; +}, ['pools', 'cache']); + +App::setResource('getProjectDB', function (Group $pools, Database $dbForPlatform, $cache) { + $databases = []; + + return function (Document $project) use ($pools, $dbForPlatform, $cache, &$databases) { + if ($project->isEmpty() || $project->getId() === 'console') { + return $dbForPlatform; + } + + try { + $dsn = new DSN($project->getAttribute('database')); + } catch (\InvalidArgumentException) { + // TODO: Temporary until all projects are using shared tables + $dsn = new DSN('mysql://' . $project->getAttribute('database')); + } + + $configure = (function (Database $database) use ($project, $dsn) { + $database + ->setMetadata('host', \gethostname()) + ->setMetadata('project', $project->getId()) + ->setTimeout(APP_DATABASE_TIMEOUT_MILLISECONDS_API) + ->setMaxQueryValues(APP_DATABASE_QUERY_MAX_VALUES); + + $sharedTables = \explode(',', System::getEnv('_APP_DATABASE_SHARED_TABLES', '')); + + if (\in_array($dsn->getHost(), $sharedTables)) { + $database + ->setSharedTables(true) + ->setTenant($project->getInternalId()) + ->setNamespace($dsn->getParam('namespace')); + } else { + $database + ->setSharedTables(false) + ->setTenant(null) + ->setNamespace('_' . $project->getInternalId()); + } + }); + + if (isset($databases[$dsn->getHost()])) { + $database = $databases[$dsn->getHost()]; + $configure($database); + return $database; + } + + $adapter = new DatabasePool($pools->get($dsn->getHost())); + $database = new Database($adapter, $cache); + $databases[$dsn->getHost()] = $database; + $configure($database); + + return $database; + }; +}, ['pools', 'dbForPlatform', 'cache']); + +App::setResource('getLogsDB', function (Group $pools, Cache $cache) { + $database = null; + + return function (?Document $project = null) use ($pools, $cache, &$database) { + if ($database !== null && $project !== null && !$project->isEmpty() && $project->getId() !== 'console') { + $database->setTenant($project->getInternalId()); + return $database; + } + + $adapter = new DatabasePool($pools->get('logs')); + $database = new Database($adapter, $cache); + + $database + ->setSharedTables(true) + ->setNamespace('logsV1') + ->setTimeout(APP_DATABASE_TIMEOUT_MILLISECONDS_API) + ->setMaxQueryValues(APP_DATABASE_QUERY_MAX_VALUES); + + // set tenant + if ($project !== null && !$project->isEmpty() && $project->getId() !== 'console') { + $database->setTenant($project->getInternalId()); + } + + return $database; + }; +}, ['pools', 'cache']); + +App::setResource('telemetry', fn () => new NoTelemetry()); + +App::setResource('cache', function (Group $pools, Telemetry $telemetry) { + $list = Config::getParam('pools-cache', []); + $adapters = []; + + foreach ($list as $value) { + $adapters[] = new CachePool($pools->get($value)); + } + + $cache = new Cache(new Sharding($adapters)); + + $cache->setTelemetry($telemetry); + + return $cache; +}, ['pools', 'telemetry']); + +App::setResource('redis', function () { + $host = System::getEnv('_APP_REDIS_HOST', 'localhost'); + $port = System::getEnv('_APP_REDIS_PORT', 6379); + $pass = System::getEnv('_APP_REDIS_PASS', ''); + + $redis = new \Redis(); + @$redis->pconnect($host, (int)$port); + if ($pass) { + $redis->auth($pass); + } + $redis->setOption(\Redis::OPT_READ_TIMEOUT, -1); + + return $redis; +}); + +App::setResource('timelimit', function (\Redis $redis) { + return function (string $key, int $limit, int $time) use ($redis) { + return new TimeLimitRedis($key, $limit, $time, $redis); + }; +}, ['redis']); + +App::setResource('deviceForLocal', function () { + return new Local(); +}); + +App::setResource('deviceForFiles', function ($project) { + return getDevice(APP_STORAGE_UPLOADS . '/app-' . $project->getId()); +}, ['project']); + +App::setResource('deviceForFunctions', function ($project) { + return getDevice(APP_STORAGE_FUNCTIONS . '/app-' . $project->getId()); +}, ['project']); + +App::setResource('deviceForBuilds', function ($project) { + return getDevice(APP_STORAGE_BUILDS . '/app-' . $project->getId()); +}, ['project']); + +function getDevice(string $root, string $connection = ''): Device +{ + $connection = !empty($connection) ? $connection : System::getEnv('_APP_CONNECTIONS_STORAGE', ''); + + if (!empty($connection)) { + $acl = 'private'; + $device = Storage::DEVICE_LOCAL; + $accessKey = ''; + $accessSecret = ''; + $bucket = ''; + $region = ''; + $url = System::getEnv('_APP_STORAGE_S3_ENDPOINT', ''); + + try { + $dsn = new DSN($connection); + $device = $dsn->getScheme(); + $accessKey = $dsn->getUser() ?? ''; + $accessSecret = $dsn->getPassword() ?? ''; + $bucket = $dsn->getPath() ?? ''; + $region = $dsn->getParam('region'); + } catch (\Throwable $e) { + Console::warning($e->getMessage() . 'Invalid DSN. Defaulting to Local device.'); + } + + switch ($device) { + case Storage::DEVICE_S3: + if (!empty($url)) { + return new S3($root, $accessKey, $accessSecret, $url, $region, $acl); + } else { + return new AWS($root, $accessKey, $accessSecret, $bucket, $region, $acl); + } + // no break + case STORAGE::DEVICE_DO_SPACES: + $device = new DOSpaces($root, $accessKey, $accessSecret, $bucket, $region, $acl); + $device->setHttpVersion(S3::HTTP_VERSION_1_1); + return $device; + case Storage::DEVICE_BACKBLAZE: + return new Backblaze($root, $accessKey, $accessSecret, $bucket, $region, $acl); + case Storage::DEVICE_LINODE: + return new Linode($root, $accessKey, $accessSecret, $bucket, $region, $acl); + case Storage::DEVICE_WASABI: + return new Wasabi($root, $accessKey, $accessSecret, $bucket, $region, $acl); + case Storage::DEVICE_LOCAL: + default: + return new Local($root); + } + } else { + switch (strtolower(System::getEnv('_APP_STORAGE_DEVICE', Storage::DEVICE_LOCAL) ?? '')) { + case Storage::DEVICE_LOCAL: + default: + return new Local($root); + case Storage::DEVICE_S3: + $s3AccessKey = System::getEnv('_APP_STORAGE_S3_ACCESS_KEY', ''); + $s3SecretKey = System::getEnv('_APP_STORAGE_S3_SECRET', ''); + $s3Region = System::getEnv('_APP_STORAGE_S3_REGION', ''); + $s3Bucket = System::getEnv('_APP_STORAGE_S3_BUCKET', ''); + $s3Acl = 'private'; + $s3EndpointUrl = System::getEnv('_APP_STORAGE_S3_ENDPOINT', ''); + if (!empty($s3EndpointUrl)) { + return new S3($root, $s3AccessKey, $s3SecretKey, $s3EndpointUrl, $s3Region, $s3Acl); + } else { + return new AWS($root, $s3AccessKey, $s3SecretKey, $s3Bucket, $s3Region, $s3Acl); + } + // no break + case Storage::DEVICE_DO_SPACES: + $doSpacesAccessKey = System::getEnv('_APP_STORAGE_DO_SPACES_ACCESS_KEY', ''); + $doSpacesSecretKey = System::getEnv('_APP_STORAGE_DO_SPACES_SECRET', ''); + $doSpacesRegion = System::getEnv('_APP_STORAGE_DO_SPACES_REGION', ''); + $doSpacesBucket = System::getEnv('_APP_STORAGE_DO_SPACES_BUCKET', ''); + $doSpacesAcl = 'private'; + $device = new DOSpaces($root, $doSpacesAccessKey, $doSpacesSecretKey, $doSpacesBucket, $doSpacesRegion, $doSpacesAcl); + $device->setHttpVersion(S3::HTTP_VERSION_1_1); + return $device; + case Storage::DEVICE_BACKBLAZE: + $backblazeAccessKey = System::getEnv('_APP_STORAGE_BACKBLAZE_ACCESS_KEY', ''); + $backblazeSecretKey = System::getEnv('_APP_STORAGE_BACKBLAZE_SECRET', ''); + $backblazeRegion = System::getEnv('_APP_STORAGE_BACKBLAZE_REGION', ''); + $backblazeBucket = System::getEnv('_APP_STORAGE_BACKBLAZE_BUCKET', ''); + $backblazeAcl = 'private'; + return new Backblaze($root, $backblazeAccessKey, $backblazeSecretKey, $backblazeBucket, $backblazeRegion, $backblazeAcl); + case Storage::DEVICE_LINODE: + $linodeAccessKey = System::getEnv('_APP_STORAGE_LINODE_ACCESS_KEY', ''); + $linodeSecretKey = System::getEnv('_APP_STORAGE_LINODE_SECRET', ''); + $linodeRegion = System::getEnv('_APP_STORAGE_LINODE_REGION', ''); + $linodeBucket = System::getEnv('_APP_STORAGE_LINODE_BUCKET', ''); + $linodeAcl = 'private'; + return new Linode($root, $linodeAccessKey, $linodeSecretKey, $linodeBucket, $linodeRegion, $linodeAcl); + case Storage::DEVICE_WASABI: + $wasabiAccessKey = System::getEnv('_APP_STORAGE_WASABI_ACCESS_KEY', ''); + $wasabiSecretKey = System::getEnv('_APP_STORAGE_WASABI_SECRET', ''); + $wasabiRegion = System::getEnv('_APP_STORAGE_WASABI_REGION', ''); + $wasabiBucket = System::getEnv('_APP_STORAGE_WASABI_BUCKET', ''); + $wasabiAcl = 'private'; + return new Wasabi($root, $wasabiAccessKey, $wasabiSecretKey, $wasabiBucket, $wasabiRegion, $wasabiAcl); + } + } +} + +App::setResource('mode', function ($request) { + /** @var Appwrite\Utopia\Request $request */ + + /** + * Defines the mode for the request: + * - 'default' => Requests for Client and Server Side + * - 'admin' => Request from the Console on non-console projects + */ + return $request->getParam('mode', $request->getHeader('x-appwrite-mode', APP_MODE_DEFAULT)); +}, ['request']); + +App::setResource('geodb', function ($register) { + /** @var Utopia\Registry\Registry $register */ + return $register->get('geodb'); +}, ['register']); + +App::setResource('passwordsDictionary', function ($register) { + /** @var Utopia\Registry\Registry $register */ + return $register->get('passwordsDictionary'); +}, ['register']); + + +App::setResource('servers', function () { + $platforms = Config::getParam('platforms'); + $server = $platforms[APP_PLATFORM_SERVER]; + + $languages = array_map(function ($language) { + return strtolower($language['name']); + }, $server['sdks']); + + return $languages; +}); + +App::setResource('promiseAdapter', function ($register) { + return $register->get('promiseAdapter'); +}, ['register']); + +App::setResource('schema', function ($utopia, $dbForProject) { + + $complexity = function (int $complexity, array $args) { + $queries = Query::parseQueries($args['queries'] ?? []); + $query = Query::getByType($queries, [Query::TYPE_LIMIT])[0] ?? null; + $limit = $query ? $query->getValue() : APP_LIMIT_LIST_DEFAULT; + + return $complexity * $limit; + }; + + $attributes = function (int $limit, int $offset) use ($dbForProject) { + $attrs = Authorization::skip(fn () => $dbForProject->find('attributes', [ + Query::limit($limit), + Query::offset($offset), + ])); + + return \array_map(function ($attr) { + return $attr->getArrayCopy(); + }, $attrs); + }; + + $urls = [ + 'list' => function (string $databaseId, string $collectionId, array $args) { + return "/v1/databases/$databaseId/collections/$collectionId/documents"; + }, + 'create' => function (string $databaseId, string $collectionId, array $args) { + return "/v1/databases/$databaseId/collections/$collectionId/documents"; + }, + 'read' => function (string $databaseId, string $collectionId, array $args) { + return "/v1/databases/$databaseId/collections/$collectionId/documents/{$args['documentId']}"; + }, + 'update' => function (string $databaseId, string $collectionId, array $args) { + return "/v1/databases/$databaseId/collections/$collectionId/documents/{$args['documentId']}"; + }, + 'delete' => function (string $databaseId, string $collectionId, array $args) { + return "/v1/databases/$databaseId/collections/$collectionId/documents/{$args['documentId']}"; + }, + ]; + + $params = [ + 'list' => function (string $databaseId, string $collectionId, array $args) { + return [ 'queries' => $args['queries']]; + }, + 'create' => function (string $databaseId, string $collectionId, array $args) { + $id = $args['id'] ?? 'unique()'; + $permissions = $args['permissions'] ?? null; + + unset($args['id']); + unset($args['permissions']); + + // Order must be the same as the route params + return [ + 'databaseId' => $databaseId, + 'documentId' => $id, + 'collectionId' => $collectionId, + 'data' => $args, + 'permissions' => $permissions, + ]; + }, + 'update' => function (string $databaseId, string $collectionId, array $args) { + $documentId = $args['id']; + $permissions = $args['permissions'] ?? null; + + unset($args['id']); + unset($args['permissions']); + + // Order must be the same as the route params + return [ + 'databaseId' => $databaseId, + 'collectionId' => $collectionId, + 'documentId' => $documentId, + 'data' => $args, + 'permissions' => $permissions, + ]; + }, + ]; + + return Schema::build( + $utopia, + $complexity, + $attributes, + $urls, + $params, + ); +}, ['utopia', 'dbForProject']); + +App::setResource('contributors', function () { + $path = 'app/config/contributors.json'; + $list = (file_exists($path)) ? json_decode(file_get_contents($path), true) : []; + return $list; +}); + +App::setResource('employees', function () { + $path = 'app/config/employees.json'; + $list = (file_exists($path)) ? json_decode(file_get_contents($path), true) : []; + return $list; +}); + +App::setResource('heroes', function () { + $path = 'app/config/heroes.json'; + $list = (file_exists($path)) ? json_decode(file_get_contents($path), true) : []; + return $list; +}); + +App::setResource('gitHub', function (Cache $cache) { + return new VcsGitHub($cache); +}, ['cache']); + +App::setResource('requestTimestamp', function ($request) { + //TODO: Move this to the Request class itself + $timestampHeader = $request->getHeader('x-appwrite-timestamp'); + $requestTimestamp = null; + if (!empty($timestampHeader)) { + try { + $requestTimestamp = new \DateTime($timestampHeader); + } catch (\Throwable $e) { + throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'Invalid X-Appwrite-Timestamp header value'); + } + } + return $requestTimestamp; +}, ['request']); + +App::setResource('plan', function (array $plan = []) { + return []; +}); + +App::setResource('smsRates', function () { + return []; +}); + +App::setResource('team', function (Document $project, Database $dbForPlatform, App $utopia, Request $request) { + $teamInternalId = ''; + if ($project->getId() !== 'console') { + $teamInternalId = $project->getAttribute('teamInternalId', ''); + } else { + $route = $utopia->match($request); + $path = $route->getPath(); + if (str_starts_with($path, '/v1/projects/:projectId')) { + $uri = $request->getURI(); + $pid = explode('/', $uri)[3]; + $p = Authorization::skip(fn () => $dbForPlatform->getDocument('projects', $pid)); + $teamInternalId = $p->getAttribute('teamInternalId', ''); + } elseif ($path === '/v1/projects') { + $teamId = $request->getParam('teamId', ''); + $team = Authorization::skip(fn () => $dbForPlatform->getDocument('teams', $teamId)); + return $team; + } + } + + $team = Authorization::skip(function () use ($dbForPlatform, $teamInternalId) { + return $dbForPlatform->findOne('teams', [ + Query::equal('$internalId', [$teamInternalId]), + ]); + }); + + return $team; +}, ['project', 'dbForPlatform', 'utopia', 'request']); + +App::setResource( + 'isResourceBlocked', + fn () => fn (Document $project, string $resourceType, ?string $resourceId) => false +); + +App::setResource('previewHostname', function (Request $request) { + if (App::isDevelopment()) { + $host = $request->getQuery('appwrite-hostname') ?? ''; + if (!empty($host)) { + return $host; + } + } + + return ''; +}, ['request']); + +App::setResource('apiKey', function (Request $request, Document $project): ?Key { + $key = $request->getHeader('x-appwrite-key'); + + if (empty($key)) { + return null; + } + + return Key::decode($project, $key); +}, ['request', 'project']); + +App::setResource('executor', fn () => new Executor(fn (string $projectId, string $deploymentId) => System::getEnv('_APP_EXECUTOR_HOST'))); diff --git a/app/realtime.php b/app/realtime.php index b8fdb2cf21b..7e6fc0e311c 100644 --- a/app/realtime.php +++ b/app/realtime.php @@ -5,6 +5,7 @@ use Appwrite\Extend\Exception as AppwriteException; use Appwrite\Messaging\Adapter\Realtime; use Appwrite\Network\Validator\Origin; +use Appwrite\PubSub\Adapter\Pool as PubSubPool; use Appwrite\Utopia\Request; use Appwrite\Utopia\Response; use Swoole\Http\Request as SwooleRequest; @@ -13,12 +14,14 @@ use Swoole\Table; use Swoole\Timer; use Utopia\Abuse\Abuse; -use Utopia\Abuse\Adapters\Database\TimeLimit; +use Utopia\Abuse\Adapters\TimeLimit\Redis as TimeLimitRedis; use Utopia\App; +use Utopia\Cache\Adapter\Pool as CachePool; use Utopia\Cache\Adapter\Sharding; use Utopia\Cache\Cache; use Utopia\CLI\Console; use Utopia\Config\Config; +use Utopia\Database\Adapter\Pool as DatabasePool; use Utopia\Database\Database; use Utopia\Database\DateTime; use Utopia\Database\Document; @@ -28,34 +31,37 @@ use Utopia\Database\Validator\Authorization; use Utopia\DSN\DSN; use Utopia\Logger\Log; +use Utopia\Pools\Group; +use Utopia\Registry\Registry; use Utopia\System\System; +use Utopia\Telemetry\Adapter\None as NoTelemetry; use Utopia\WebSocket\Adapter; use Utopia\WebSocket\Server; /** - * @var \Utopia\Registry\Registry $register + * @var Registry $register */ require_once __DIR__ . '/init.php'; Runtime::enableCoroutine(SWOOLE_HOOK_ALL); // Allows overriding -if (!function_exists("getConsoleDB")) { +if (!function_exists('getConsoleDB')) { function getConsoleDB(): Database { global $register; - /** @var \Utopia\Pools\Group $pools */ - $pools = $register->get('pools'); + static $database = null; - $dbAdapter = $pools - ->get('console') - ->pop() - ->getResource() - ; + if ($database !== null) { + return $database; + } - $database = new Database($dbAdapter, getCache()); + /** @var Group $pools */ + $pools = $register->get('pools'); + $adapter = new DatabasePool($pools->get('console')); + $database = new Database($adapter, getCache()); $database ->setNamespace('_console') ->setMetadata('host', \gethostname()) @@ -66,12 +72,18 @@ function getConsoleDB(): Database } // Allows overriding -if (!function_exists("getProjectDB")) { +if (!function_exists('getProjectDB')) { function getProjectDB(Document $project): Database { global $register; - /** @var \Utopia\Pools\Group $pools */ + static $databases = []; + + if (isset($databases[$project->getInternalId()])) { + return $databases[$project->getInternalId()]; + } + + /** @var Group $pools */ $pools = $register->get('pools'); if ($project->isEmpty() || $project->getId() === 'console') { @@ -85,14 +97,12 @@ function getProjectDB(Document $project): Database $dsn = new DSN('mysql://' . $project->getAttribute('database')); } - $adapter = $pools - ->get($dsn->getHost()) - ->pop() - ->getResource(); - + $adapter = new DatabasePool($pools->get($dsn->getHost())); $database = new Database($adapter, getCache()); - if ($dsn->getHost() === System::getEnv('_APP_DATABASE_SHARED_TABLES', '')) { + $sharedTables = \explode(',', System::getEnv('_APP_DATABASE_SHARED_TABLES', '')); + + if (\in_array($dsn->getHost(), $sharedTables)) { $database ->setSharedTables(true) ->setTenant($project->getInternalId()) @@ -108,34 +118,100 @@ function getProjectDB(Document $project): Database ->setMetadata('host', \gethostname()) ->setMetadata('project', $project->getId()); - return $database; + return $databases[$project->getInternalId()] = $database; } } // Allows overriding -if (!function_exists("getCache")) { +if (!function_exists('getCache')) { function getCache(): Cache { global $register; - $pools = $register->get('pools'); /** @var \Utopia\Pools\Group $pools */ + static $cache = null; + + if ($cache !== null) { + return $cache; + } + + $pools = $register->get('pools'); /** @var Group $pools */ $list = Config::getParam('pools-cache', []); $adapters = []; foreach ($list as $value) { - $adapters[] = $pools - ->get($value) - ->pop() - ->getResource() - ; + $adapters[] = new CachePool($pools->get($value)); + } + + return $cache = new Cache(new Sharding($adapters)); + } +} + +// Allows overriding +if (!function_exists('getRedis')) { + function getRedis(): \Redis + { + static $redis = null; + + if ($redis !== null) { + return $redis; + } + + $host = System::getEnv('_APP_REDIS_HOST', 'localhost'); + $port = System::getEnv('_APP_REDIS_PORT', 6379); + $pass = System::getEnv('_APP_REDIS_PASS', ''); + + $redis = new \Redis(); + @$redis->pconnect($host, (int)$port); + if ($pass) { + $redis->auth($pass); + } + $redis->setOption(\Redis::OPT_READ_TIMEOUT, -1); + + return $redis; + } +} + +if (!function_exists('getTimelimit')) { + function getTimelimit(): TimeLimitRedis + { + static $timelimit = null; + + if ($timelimit !== null) { + return $timelimit; } - return new Cache(new Sharding($adapters)); + return $timelimit = new TimeLimitRedis("", 0, 1, getRedis()); } } -$realtime = new Realtime(); +if (!function_exists('getRealtime')) { + function getRealtime(): Realtime + { + static $realtime = null; + + if ($realtime !== null) { + return $realtime; + } + + return $realtime = new Realtime(); + } +} + +if (!function_exists('getTelemetry')) { + function getTelemetry(int $workerId): Utopia\Telemetry\Adapter + { + static $telemetry = null; + + if ($telemetry !== null) { + return $telemetry; + } + + return $telemetry = new NoTelemetry(); + } +} + +$realtime = getRealtime(); /** * Table for statistics across all workers. @@ -150,7 +226,7 @@ function getCache(): Cache $containerId = uniqid(); $statsDocument = null; -$workerNumber = swoole_cpu_num() * intval(System::getEnv('_APP_WORKER_PER_CORE', 6)); +$workerNumber = intval(System::getEnv('_APP_CPU_NUM', swoole_cpu_num())) * intval(System::getEnv('_APP_WORKER_PER_CORE', 6)); $adapter = new Adapter\Swoole(port: System::getEnv('PORT', 80)); $adapter @@ -167,7 +243,7 @@ function getCache(): Cache $log = new Log(); $log->setNamespace("realtime"); - $log->setServer(gethostname()); + $log->setServer(System::getEnv('_APP_LOGGING_SERVICE_IDENTIFIER', \gethostname())); $log->setVersion($version); $log->setType(Log::TYPE_ERROR); $log->setMessage($error->getMessage()); @@ -184,8 +260,12 @@ function getCache(): Cache $isProduction = System::getEnv('_APP_ENV', 'development') === 'production'; $log->setEnvironment($isProduction ? Log::ENVIRONMENT_PRODUCTION : Log::ENVIRONMENT_STAGING); - $responseCode = $logger->addLog($log); - Console::info('Realtime log pushed with status code: ' . $responseCode); + try { + $responseCode = $logger->addLog($log); + Console::info('Error log pushed with status code: ' . $responseCode); + } catch (Throwable $th) { + Console::error('Error pushing log: ' . $th->getMessage()); + } } Console::error('[Error] Type: ' . get_class($error)); @@ -226,7 +306,6 @@ function getCache(): Cache sleep(DATABASE_RECONNECT_SLEEP); } } while (true); - $register->get('pools')->reclaim(); }); /** @@ -252,9 +331,7 @@ function getCache(): Cache Authorization::skip(fn () => $database->updateDocument('realtime', $statsDocument->getId(), $statsDocument)); } catch (Throwable $th) { - call_user_func($logError, $th, "updateWorkerDocument"); - } finally { - $register->get('pools')->reclaim(); + $logError($th, "updateWorkerDocument"); } }); } @@ -263,6 +340,12 @@ function getCache(): Cache $server->onWorkerStart(function (int $workerId) use ($server, $register, $stats, $realtime, $logError) { Console::success('Worker ' . $workerId . ' started successfully'); + $telemetry = getTelemetry($workerId); + $register->set('telemetry', fn () => $telemetry); + $register->set('telemetry.connectionCounter', fn () => $telemetry->createUpDownCounter('realtime.server.open_connections')); + $register->set('telemetry.connectionCreatedCounter', fn () => $telemetry->createCounter('realtime.server.connection.created')); + $register->set('telemetry.messageSentCounter', fn () => $telemetry->createCounter('realtime.server.message.sent')); + $attempts = 0; $start = time(); @@ -317,8 +400,6 @@ function getCache(): Cache 'data' => $event['data'] ])); } - - $register->get('pools')->reclaim(); } } /** @@ -354,17 +435,16 @@ function getCache(): Cache } $start = time(); - $redis = $register->get('pools')->get('pubsub')->pop()->getResource(); /** @var Redis $redis */ - $redis->setOption(Redis::OPT_READ_TIMEOUT, -1); + $pubsub = new PubSubPool($register->get('pools')->get('pubsub')); - if ($redis->ping(true)) { + if ($pubsub->ping(true)) { $attempts = 0; Console::success('Pub/sub connection established (worker: ' . $workerId . ')'); } else { Console::error('Pub/sub failed (worker: ' . $workerId . ')'); } - $redis->subscribe(['realtime'], function (Redis $redis, string $channel, string $payload) use ($server, $workerId, $stats, $register, $realtime) { + $pubsub->subscribe(['realtime'], function (mixed $redis, string $channel, string $payload) use ($server, $workerId, $stats, $register, $realtime) { $event = json_decode($payload, true); if ($event['permissionsChanged'] && isset($event['userId'])) { @@ -384,8 +464,6 @@ function getCache(): Cache $realtime->unsubscribe($connection); $realtime->subscribe($projectId, $connection, $roles, $channels); - - $register->get('pools')->reclaim(); } } @@ -406,18 +484,17 @@ function getCache(): Cache ); if (($num = count($receivers)) > 0) { + $register->get('telemetry.messageSentCounter')->add($num); $stats->incr($event['project'], 'messages', $num); } }); } catch (Throwable $th) { - call_user_func($logError, $th, "pubSubConnection"); + $logError($th, "pubSubConnection"); Console::error('Pub/sub error: ' . $th->getMessage()); $attempts++; sleep(DATABASE_RECONNECT_SLEEP); continue; - } finally { - $register->get('pools')->reclaim(); } } @@ -454,7 +531,7 @@ function getCache(): Cache throw new AppwriteException(AppwriteException::GENERAL_API_DISABLED); } - $dbForProject = getProjectDB($project); + $timelimit = $app->getResource('timelimit'); $console = $app->getResource('console'); /** @var Document $console */ $user = $app->getResource('user'); /** @var Document $user */ @@ -463,12 +540,12 @@ function getCache(): Cache * * Abuse limits are connecting 128 times per minute and ip address. */ - $timeLimit = new TimeLimit('url:{url},ip:{ip}', 128, 60, $dbForProject); - $timeLimit + $timelimit = $timelimit('url:{url},ip:{ip}', 128, 60); + $timelimit ->setParam('{ip}', $request->getIP()) ->setParam('{url}', $request->getURI()); - $abuse = new Abuse($timeLimit); + $abuse = new Abuse($timelimit); if (System::getEnv('_APP_OPTIONS_ABUSE', 'enabled') === 'enabled' && $abuse->check()) { throw new Exception(Exception::REALTIME_TOO_MANY_MESSAGES, 'Too many requests'); @@ -509,6 +586,9 @@ function getCache(): Cache ] ])); + $register->get('telemetry.connectionCounter')->add(1); + $register->get('telemetry.connectionCreatedCounter')->add(1); + $stats->set($project->getId(), [ 'projectId' => $project->getId(), 'teamId' => $project->getAttribute('teamId') @@ -516,7 +596,7 @@ function getCache(): Cache $stats->incr($project->getId(), 'connections'); $stats->incr($project->getId(), 'connectionsTotal'); } catch (Throwable $th) { - call_user_func($logError, $th, "initServer"); + $logError($th, "initServer"); // Handle SQL error code is 'HY000' $code = $th->getCode(); @@ -540,8 +620,6 @@ function getCache(): Cache Console::error('[Error] Code: ' . $response['data']['code']); Console::error('[Error] Message: ' . $response['data']['message']); } - } finally { - $register->get('pools')->reclaim(); } }); @@ -563,7 +641,7 @@ function getCache(): Cache * * Abuse limits are sending 32 times per minute and connection. */ - $timeLimit = new TimeLimit('url:{url},connection:{connection}', 32, 60, $database); + $timeLimit = getTimelimit('url:{url},connection:{connection}', 32, 60); $timeLimit ->setParam('{connection}', $connection) @@ -582,9 +660,12 @@ function getCache(): Cache } switch ($message['type']) { - /** - * This type is used to authenticate. - */ + case 'ping': + $server->send([$connection], json_encode([ + 'type' => 'pong' + ])); + + break; case 'authentication': if (!array_key_exists('session', $message['data'])) { throw new Exception(Exception::REALTIME_MESSAGE_FORMAT_INVALID, 'Payload is not valid.'); @@ -637,14 +718,13 @@ function getCache(): Cache if ($th->getCode() === 1008) { $server->close($connection, $th->getCode()); } - } finally { - $register->get('pools')->reclaim(); } }); -$server->onClose(function (int $connection) use ($realtime, $stats) { +$server->onClose(function (int $connection) use ($realtime, $stats, $register) { if (array_key_exists($connection, $realtime->connections)) { $stats->decr($realtime->connections[$connection]['projectId'], 'connectionsTotal'); + $register->get('telemetry.connectionCounter')->add(-1); } $realtime->unsubscribe($connection); diff --git a/app/views/install/compose.phtml b/app/views/install/compose.phtml index 8a91209debf..816f88299bf 100644 --- a/app/views/install/compose.phtml +++ b/app/views/install/compose.phtml @@ -73,6 +73,7 @@ $image = $this->getParam('image', ''); - _APP_ENV - _APP_WORKER_PER_CORE - _APP_LOCALE + - _APP_COMPRESSION_MIN_SIZE_BYTES - _APP_CONSOLE_WHITELIST_ROOT - _APP_CONSOLE_WHITELIST_EMAILS - _APP_CONSOLE_SESSION_ALERTS @@ -115,6 +116,7 @@ $image = $this->getParam('image', ''); - _APP_STORAGE_S3_SECRET - _APP_STORAGE_S3_REGION - _APP_STORAGE_S3_BUCKET + - _APP_STORAGE_S3_ENDPOINT - _APP_STORAGE_DO_SPACES_ACCESS_KEY - _APP_STORAGE_DO_SPACES_SECRET - _APP_STORAGE_DO_SPACES_REGION @@ -142,10 +144,12 @@ $image = $this->getParam('image', ''); - _APP_LOGGING_CONFIG - _APP_MAINTENANCE_INTERVAL - _APP_MAINTENANCE_DELAY + - _APP_MAINTENANCE_START_TIME - _APP_MAINTENANCE_RETENTION_EXECUTION - _APP_MAINTENANCE_RETENTION_CACHE - _APP_MAINTENANCE_RETENTION_ABUSE - _APP_MAINTENANCE_RETENTION_AUDIT + - _APP_MAINTENANCE_RETENTION_AUDIT_CONSOLE - _APP_MAINTENANCE_RETENTION_USAGE_HOURLY - _APP_MAINTENANCE_RETENTION_SCHEDULES - _APP_SMS_PROVIDER @@ -162,11 +166,10 @@ $image = $this->getParam('image', ''); - _APP_MIGRATIONS_FIREBASE_CLIENT_ID - _APP_MIGRATIONS_FIREBASE_CLIENT_SECRET - _APP_ASSISTANT_OPENAI_API_KEY - appwrite-console: <<: *x-logging container_name: appwrite-console - image: <?php echo $organization; ?>/console:5.0.12 + image: <?php echo $organization; ?>/console:5.2.58 restart: unless-stopped networks: - appwrite @@ -317,6 +320,7 @@ $image = $this->getParam('image', ''); - _APP_STORAGE_S3_SECRET - _APP_STORAGE_S3_REGION - _APP_STORAGE_S3_BUCKET + - _APP_STORAGE_S3_ENDPOINT - _APP_STORAGE_DO_SPACES_ACCESS_KEY - _APP_STORAGE_DO_SPACES_SECRET - _APP_STORAGE_DO_SPACES_REGION @@ -338,7 +342,10 @@ $image = $this->getParam('image', ''); - _APP_EXECUTOR_HOST - _APP_MAINTENANCE_RETENTION_ABUSE - _APP_MAINTENANCE_RETENTION_AUDIT + - _APP_MAINTENANCE_RETENTION_AUDIT_CONSOLE - _APP_MAINTENANCE_RETENTION_EXECUTION + - _APP_SYSTEM_SECURITY_EMAIL_ADDRESS + - _APP_EMAIL_CERTIFICATES appwrite-worker-databases: image: <?php echo $organization; ?>/<?php echo $image; ?>:<?php echo $version."\n"; ?> @@ -412,6 +419,7 @@ $image = $this->getParam('image', ''); - _APP_STORAGE_S3_SECRET - _APP_STORAGE_S3_REGION - _APP_STORAGE_S3_BUCKET + - _APP_STORAGE_S3_ENDPOINT - _APP_STORAGE_DO_SPACES_ACCESS_KEY - _APP_STORAGE_DO_SPACES_SECRET - _APP_STORAGE_DO_SPACES_REGION @@ -531,6 +539,8 @@ $image = $this->getParam('image', ''); - _APP_SMTP_USERNAME - _APP_SMTP_PASSWORD - _APP_LOGGING_CONFIG + - _APP_DOMAIN + - _APP_OPTIONS_FORCE_HTTPS appwrite-worker-messaging: image: <?php echo $organization; ?>/<?php echo $image; ?>:<?php echo $version."\n"; ?> @@ -565,6 +575,7 @@ $image = $this->getParam('image', ''); - _APP_STORAGE_S3_SECRET - _APP_STORAGE_S3_REGION - _APP_STORAGE_S3_BUCKET + - _APP_STORAGE_S3_ENDPOINT - _APP_STORAGE_DO_SPACES_ACCESS_KEY - _APP_STORAGE_DO_SPACES_SECRET - _APP_STORAGE_DO_SPACES_REGION @@ -643,13 +654,45 @@ $image = $this->getParam('image', ''); - _APP_MAINTENANCE_RETENTION_CACHE - _APP_MAINTENANCE_RETENTION_ABUSE - _APP_MAINTENANCE_RETENTION_AUDIT + - _APP_MAINTENANCE_RETENTION_AUDIT_CONSOLE - _APP_MAINTENANCE_RETENTION_USAGE_HOURLY - _APP_MAINTENANCE_RETENTION_SCHEDULES - appwrite-worker-usage: + appwrite-task-stats-resources: image: <?php echo $organization; ?>/<?php echo $image; ?>:<?php echo $version."\n"; ?> - entrypoint: worker-usage - container_name: appwrite-worker-usage + container_name: appwrite-task-stats-resources + entrypoint: stats-resources + <<: *x-logging + networks: + - appwrite + volumes: + - ./app:/usr/src/code/app + - ./src:/usr/src/code/src + depends_on: + - redis + - mariadb + environment: + - _APP_ENV + - _APP_WORKER_PER_CORE + - _APP_OPENSSL_KEY_V1 + - _APP_DB_HOST + - _APP_DB_PORT + - _APP_DB_SCHEMA + - _APP_DB_USER + - _APP_DB_PASS + - _APP_REDIS_HOST + - _APP_REDIS_PORT + - _APP_REDIS_USER + - _APP_REDIS_PASS + - _APP_USAGE_STATS + - _APP_LOGGING_CONFIG + - _APP_DATABASE_SHARED_TABLES + - _APP_STATS_RESOURCES_INTERVAL + + appwrite-worker-stats-resources: + image: <?php echo $organization; ?>/<?php echo $image; ?>:<?php echo $version."\n"; ?> + entrypoint: worker-stats-resources + container_name: appwrite-worker-stats-resources <<: *x-logging restart: unless-stopped networks: @@ -672,13 +715,14 @@ $image = $this->getParam('image', ''); - _APP_REDIS_PASS - _APP_USAGE_STATS - _APP_LOGGING_CONFIG - - _APP_USAGE_AGGREGATION_INTERVAL + - _APP_STATS_RESOURCES_INTERVAL - appwrite-worker-usage-dump: + appwrite-worker-stats-usage: image: <?php echo $organization; ?>/<?php echo $image; ?>:<?php echo $version."\n"; ?> - entrypoint: worker-usage-dump + entrypoint: worker-stats-usage + container_name: appwrite-worker-stats-usage <<: *x-logging - container_name: appwrite-worker-usage-dump + restart: unless-stopped networks: - appwrite depends_on: @@ -818,6 +862,7 @@ $image = $this->getParam('image', ''); - OPR_EXECUTOR_STORAGE_S3_SECRET=$_APP_STORAGE_S3_SECRET - OPR_EXECUTOR_STORAGE_S3_REGION=$_APP_STORAGE_S3_REGION - OPR_EXECUTOR_STORAGE_S3_BUCKET=$_APP_STORAGE_S3_BUCKET + - OPR_EXECUTOR_STORAGE_S3_ENDPOINT=$_APP_STORAGE_S3_ENDPOINT - OPR_EXECUTOR_STORAGE_DO_SPACES_ACCESS_KEY=$_APP_STORAGE_DO_SPACES_ACCESS_KEY - OPR_EXECUTOR_STORAGE_DO_SPACES_SECRET=$_APP_STORAGE_DO_SPACES_SECRET - OPR_EXECUTOR_STORAGE_DO_SPACES_REGION=$_APP_STORAGE_DO_SPACES_REGION diff --git a/app/worker.php b/app/worker.php index 9bcdae78e62..1ae2108a62b 100644 --- a/app/worker.php +++ b/app/worker.php @@ -2,6 +2,7 @@ require_once __DIR__ . '/init.php'; +use Appwrite\Certificates\LetsEncrypt; use Appwrite\Event\Audit; use Appwrite\Event\Build; use Appwrite\Event\Certificate; @@ -12,15 +13,19 @@ use Appwrite\Event\Mail; use Appwrite\Event\Messaging; use Appwrite\Event\Migration; -use Appwrite\Event\Usage; -use Appwrite\Event\UsageDump; +use Appwrite\Event\Realtime; +use Appwrite\Event\StatsUsage; +use Appwrite\Event\Webhook; use Appwrite\Platform\Appwrite; +use Executor\Executor; use Swoole\Runtime; -use Utopia\App; +use Utopia\Abuse\Adapters\TimeLimit\Redis as TimeLimitRedis; +use Utopia\Cache\Adapter\Pool as CachePool; use Utopia\Cache\Adapter\Sharding; use Utopia\Cache\Cache; use Utopia\CLI\Console; use Utopia\Config\Config; +use Utopia\Database\Adapter\Pool as DatabasePool; use Utopia\Database\Database; use Utopia\Database\DateTime; use Utopia\Database\Document; @@ -30,31 +35,28 @@ use Utopia\Logger\Logger; use Utopia\Platform\Service; use Utopia\Pools\Group; -use Utopia\Queue\Connection; +use Utopia\Queue\Broker\Pool as BrokerPool; use Utopia\Queue\Message; +use Utopia\Queue\Publisher; use Utopia\Queue\Server; use Utopia\Registry\Registry; use Utopia\System\System; Authorization::disable(); -Runtime::enableCoroutine(SWOOLE_HOOK_ALL); +Runtime::enableCoroutine(); Server::setResource('register', fn () => $register); -Server::setResource('dbForConsole', function (Cache $cache, Registry $register) { +Server::setResource('dbForPlatform', function (Cache $cache, Registry $register) { $pools = $register->get('pools'); - $database = $pools - ->get('console') - ->pop() - ->getResource(); + $adapter = new DatabasePool($pools->get('console')); + $dbForPlatform = new Database($adapter, $cache); + $dbForPlatform->setNamespace('_console'); - $adapter = new Database($database, $cache); - $adapter->setNamespace('_console'); - - return $adapter; + return $dbForPlatform; }, ['cache', 'register']); -Server::setResource('project', function (Message $message, Database $dbForConsole) { +Server::setResource('project', function (Message $message, Database $dbForPlatform) { $payload = $message->getPayload() ?? []; $project = new Document($payload['project'] ?? []); @@ -62,12 +64,12 @@ return $project; } - return $dbForConsole->getDocument('projects', $project->getId()); -}, ['message', 'dbForConsole']); + return $dbForPlatform->getDocument('projects', $project->getId()); +}, ['message', 'dbForPlatform']); -Server::setResource('dbForProject', function (Cache $cache, Registry $register, Message $message, Document $project, Database $dbForConsole) { +Server::setResource('dbForProject', function (Cache $cache, Registry $register, Message $message, Document $project, Database $dbForPlatform) { if ($project->isEmpty() || $project->getId() === 'console') { - return $dbForConsole; + return $dbForPlatform; } $pools = $register->get('pools'); @@ -79,21 +81,12 @@ $dsn = new DSN('mysql://' . $project->getAttribute('database')); } - $adapter = $pools - ->get($dsn->getHost()) - ->pop() - ->getResource(); - + $adapter = new DatabasePool($pools->get($dsn->getHost())); $database = new Database($adapter, $cache); - try { - $dsn = new DSN($project->getAttribute('database')); - } catch (\InvalidArgumentException) { - // TODO: Temporary until all projects are using shared tables - $dsn = new DSN('mysql://' . $project->getAttribute('database')); - } + $sharedTables = \explode(',', System::getEnv('_APP_DATABASE_SHARED_TABLES', '')); - if ($dsn->getHost() === System::getEnv('_APP_DATABASE_SHARED_TABLES', '')) { + if (\in_array($dsn->getHost(), $sharedTables)) { $database ->setSharedTables(true) ->setTenant($project->getInternalId()) @@ -105,15 +98,17 @@ ->setNamespace('_' . $project->getInternalId()); } + $database->setTimeout(APP_DATABASE_TIMEOUT_MILLISECONDS_WORKER); + return $database; -}, ['cache', 'register', 'message', 'project', 'dbForConsole']); +}, ['cache', 'register', 'message', 'project', 'dbForPlatform']); -Server::setResource('getProjectDB', function (Group $pools, Database $dbForConsole, $cache) { +Server::setResource('getProjectDB', function (Group $pools, Database $dbForPlatform, $cache) { $databases = []; // TODO: @Meldiron This should probably be responsibility of utopia-php/pools - return function (Document $project) use ($pools, $dbForConsole, $cache, &$databases): Database { + return function (Document $project) use ($pools, $dbForPlatform, $cache, &$databases): Database { if ($project->isEmpty() || $project->getId() === 'console') { - return $dbForConsole; + return $dbForPlatform; } try { @@ -126,7 +121,9 @@ if (isset($databases[$dsn->getHost()])) { $database = $databases[$dsn->getHost()]; - if ($dsn->getHost() === System::getEnv('_APP_DATABASE_SHARED_TABLES', '')) { + $sharedTables = \explode(',', System::getEnv('_APP_DATABASE_SHARED_TABLES', '')); + + if (\in_array($dsn->getHost(), $sharedTables)) { $database ->setSharedTables(true) ->setTenant($project->getInternalId()) @@ -141,16 +138,14 @@ return $database; } - $dbAdapter = $pools - ->get($dsn->getHost()) - ->pop() - ->getResource(); - - $database = new Database($dbAdapter, $cache); + $adapter = new DatabasePool($pools->get($dsn->getHost())); + $database = new Database($adapter, $cache); $databases[$dsn->getHost()] = $database; - if ($dsn->getHost() === System::getEnv('_APP_DATABASE_SHARED_TABLES', '')) { + $sharedTables = \explode(',', System::getEnv('_APP_DATABASE_SHARED_TABLES', '')); + + if (\in_array($dsn->getHost(), $sharedTables)) { $database ->setSharedTables(true) ->setTenant($project->getInternalId()) @@ -162,20 +157,51 @@ ->setNamespace('_' . $project->getInternalId()); } + $database->setTimeout(APP_DATABASE_TIMEOUT_MILLISECONDS_WORKER); + return $database; }; -}, ['pools', 'dbForConsole', 'cache']); +}, ['pools', 'dbForPlatform', 'cache']); + +Server::setResource('getLogsDB', function (Group $pools, Cache $cache) { + $database = null; + return function (?Document $project = null) use ($pools, $cache, $database) { + if ($database !== null && $project !== null && !$project->isEmpty() && $project->getId() !== 'console') { + $database->setTenant($project->getInternalId()); + return $database; + } + + $adapter = new DatabasePool($pools->get('logs')); + $database = new Database($adapter, $cache); + + $database + ->setSharedTables(true) + ->setNamespace('logsV1') + ->setTimeout(APP_DATABASE_TIMEOUT_MILLISECONDS_WORKER) + ->setMaxQueryValues(APP_DATABASE_QUERY_MAX_VALUES); + + // set tenant + if ($project !== null && !$project->isEmpty() && $project->getId() !== 'console') { + $database->setTenant($project->getInternalId()); + } + + return $database; + }; +}, ['pools', 'cache']); Server::setResource('abuseRetention', function () { - return DateTime::addSeconds(new \DateTime(), -1 * System::getEnv('_APP_MAINTENANCE_RETENTION_ABUSE', 86400)); + return time() - (int) System::getEnv('_APP_MAINTENANCE_RETENTION_ABUSE', 86400); // 1 day }); -Server::setResource('auditRetention', function () { - return DateTime::addSeconds(new \DateTime(), -1 * System::getEnv('_APP_MAINTENANCE_RETENTION_AUDIT', 1209600)); -}); +Server::setResource('auditRetention', function (Document $project) { + if ($project->getId() === 'console') { + return DateTime::addSeconds(new \DateTime(), -1 * System::getEnv('_APP_MAINTENANCE_RETENTION_AUDIT_CONSOLE', 15778800)); // 6 months + } + return DateTime::addSeconds(new \DateTime(), -1 * System::getEnv('_APP_MAINTENANCE_RETENTION_AUDIT', 1209600)); // 14 days +}, ['project']); Server::setResource('executionRetention', function () { - return DateTime::addSeconds(new \DateTime(), -1 * System::getEnv('_APP_MAINTENANCE_RETENTION_EXECUTION', 1209600)); + return DateTime::addSeconds(new \DateTime(), -1 * System::getEnv('_APP_MAINTENANCE_RETENTION_EXECUTION', 1209600)); // 14 days }); Server::setResource('cache', function (Registry $register) { @@ -184,69 +210,94 @@ $adapters = []; foreach ($list as $value) { - $adapters[] = $pools - ->get($value) - ->pop() - ->getResource() - ; + $adapters[] = new CachePool($pools->get($value)); } return new Cache(new Sharding($adapters)); }, ['register']); -Server::setResource('log', fn () => new Log()); +Server::setResource('redis', function () { + $host = System::getEnv('_APP_REDIS_HOST', 'localhost'); + $port = System::getEnv('_APP_REDIS_PORT', 6379); + $pass = System::getEnv('_APP_REDIS_PASS', ''); -Server::setResource('queueForUsage', function (Connection $queue) { - return new Usage($queue); -}, ['queue']); + $redis = new \Redis(); + @$redis->pconnect($host, (int)$port); + if ($pass) { + $redis->auth($pass); + } + $redis->setOption(\Redis::OPT_READ_TIMEOUT, -1); -Server::setResource('queueForUsageDump', function (Connection $queue) { - return new UsageDump($queue); -}, ['queue']); + return $redis; +}); -Server::setResource('queue', function (Group $pools) { - return $pools->get('queue')->pop()->getResource(); +Server::setResource('timelimit', function (\Redis $redis) { + return function (string $key, int $limit, int $time) use ($redis) { + return new TimeLimitRedis($key, $limit, $time, $redis); + }; +}, ['redis']); + +Server::setResource('log', fn () => new Log()); + +Server::setResource('publisher', function (Group $pools) { + return new BrokerPool(publisher: $pools->get('publisher')); +}, ['pools']); + +Server::setResource('consumer', function (Group $pools) { + return new BrokerPool(consumer: $pools->get('consumer')); }, ['pools']); -Server::setResource('queueForDatabase', function (Connection $queue) { - return new EventDatabase($queue); -}, ['queue']); +Server::setResource('queueForStatsUsage', function (Publisher $publisher) { + return new StatsUsage($publisher); +}, ['publisher']); + +Server::setResource('queueForDatabase', function (Publisher $publisher) { + return new EventDatabase($publisher); +}, ['publisher']); -Server::setResource('queueForMessaging', function (Connection $queue) { - return new Messaging($queue); -}, ['queue']); +Server::setResource('queueForMessaging', function (Publisher $publisher) { + return new Messaging($publisher); +}, ['publisher']); -Server::setResource('queueForMails', function (Connection $queue) { - return new Mail($queue); -}, ['queue']); +Server::setResource('queueForMails', function (Publisher $publisher) { + return new Mail($publisher); +}, ['publisher']); -Server::setResource('queueForBuilds', function (Connection $queue) { - return new Build($queue); -}, ['queue']); +Server::setResource('queueForBuilds', function (Publisher $publisher) { + return new Build($publisher); +}, ['publisher']); -Server::setResource('queueForDeletes', function (Connection $queue) { - return new Delete($queue); -}, ['queue']); +Server::setResource('queueForDeletes', function (Publisher $publisher) { + return new Delete($publisher); +}, ['publisher']); -Server::setResource('queueForEvents', function (Connection $queue) { - return new Event($queue); -}, ['queue']); +Server::setResource('queueForEvents', function (Publisher $publisher) { + return new Event($publisher); +}, ['publisher']); -Server::setResource('queueForAudits', function (Connection $queue) { - return new Audit($queue); -}, ['queue']); +Server::setResource('queueForAudits', function (Publisher $publisher) { + return new Audit($publisher); +}, ['publisher']); -Server::setResource('queueForFunctions', function (Connection $queue) { - return new Func($queue); -}, ['queue']); +Server::setResource('queueForWebhooks', function (Publisher $publisher) { + return new Webhook($publisher); +}, ['publisher']); -Server::setResource('queueForCertificates', function (Connection $queue) { - return new Certificate($queue); -}, ['queue']); +Server::setResource('queueForFunctions', function (Publisher $publisher) { + return new Func($publisher); +}, ['publisher']); -Server::setResource('queueForMigrations', function (Connection $queue) { - return new Migration($queue); -}, ['queue']); +Server::setResource('queueForRealtime', function () { + return new Realtime(); +}, []); + +Server::setResource('queueForCertificates', function (Publisher $publisher) { + return new Certificate($publisher); +}, ['publisher']); + +Server::setResource('queueForMigrations', function (Publisher $publisher) { + return new Migration($publisher); +}, ['publisher']); Server::setResource('logger', function (Registry $register) { return $register->get('logger'); @@ -272,6 +323,66 @@ return getDevice(APP_STORAGE_CACHE . '/app-' . $project->getId()); }, ['project']); +Server::setResource( + 'isResourceBlocked', + fn () => fn (Document $project, string $resourceType, ?string $resourceId) => false +); + +Server::setResource('certificates', function () { + $email = System::getEnv('_APP_EMAIL_CERTIFICATES', System::getEnv('_APP_SYSTEM_SECURITY_EMAIL_ADDRESS')); + if (empty($email)) { + throw new Exception('You must set a valid security email address (_APP_EMAIL_CERTIFICATES) to issue a LetsEncrypt SSL certificate.'); + } + + return new LetsEncrypt($email); +}); + +Server::setResource('logError', function (Registry $register, Document $project) { + return function (Throwable $error, string $namespace, string $action, ?array $extras) use ($register, $project) { + $logger = $register->get('logger'); + + if ($logger) { + $version = System::getEnv('_APP_VERSION', 'UNKNOWN'); + + $log = new Log(); + $log->setNamespace($namespace); + $log->setServer(System::getEnv('_APP_LOGGING_SERVICE_IDENTIFIER', \gethostname())); + $log->setVersion($version); + $log->setType(Log::TYPE_ERROR); + $log->setMessage($error->getMessage()); + + $log->addTag('code', $error->getCode()); + $log->addTag('verboseType', get_class($error)); + $log->addTag('projectId', $project->getId() ?? ''); + + $log->addExtra('file', $error->getFile()); + $log->addExtra('line', $error->getLine()); + $log->addExtra('trace', $error->getTraceAsString()); + + + foreach ($extras as $key => $value) { + $log->addExtra($key, $value); + } + + $log->setAction($action); + + $isProduction = System::getEnv('_APP_ENV', 'development') === 'production'; + $log->setEnvironment($isProduction ? Log::ENVIRONMENT_PRODUCTION : Log::ENVIRONMENT_STAGING); + + try { + $responseCode = $logger->addLog($log); + Console::info('Error log pushed with status code: ' . $responseCode); + } catch (Throwable $th) { + Console::error('Error pushing log: ' . $th->getMessage()); + } + } + + Console::warning("Failed: {$error->getMessage()}"); + Console::warning($error->getTraceAsString()); + }; +}, ['register', 'project']); + +Server::setResource('executor', fn () => new Executor(fn (string $projectId, string $deploymentId) => System::getEnv('_APP_EXECUTOR_HOST'))); $pools = $register->get('pools'); $platform = new Appwrite(); @@ -300,7 +411,7 @@ */ $platform->init(Service::TYPE_WORKER, [ 'workersNum' => System::getEnv('_APP_WORKERS_NUM', 1), - 'connection' => $pools->get('queue')->pop()->getResource(), + 'connection' => $pools->get('consumer')->pop()->getResource(), 'workerName' => strtolower($workerName) ?? null, 'queueName' => $queueName ]); @@ -310,13 +421,6 @@ $worker = $platform->getWorker(); -$worker - ->shutdown() - ->inject('pools') - ->action(function (Group $pools) { - $pools->reclaim(); - }); - $worker ->error() ->inject('error') @@ -324,13 +428,12 @@ ->inject('log') ->inject('pools') ->inject('project') - ->action(function (Throwable $error, ?Logger $logger, Log $log, Group $pools, Document $project) use ($queueName) { - $pools->reclaim(); + ->action(function (Throwable $error, ?Logger $logger, Log $log, Group $pools, Document $project) use ($worker, $queueName) { $version = System::getEnv('_APP_VERSION', 'UNKNOWN'); if ($logger) { $log->setNamespace("appwrite-worker"); - $log->setServer(\gethostname()); + $log->setServer(System::getEnv('_APP_LOGGING_SERVICE_IDENTIFIER', \gethostname())); $log->setVersion($version); $log->setType(Log::TYPE_ERROR); $log->setMessage($error->getMessage()); @@ -346,8 +449,12 @@ $isProduction = System::getEnv('_APP_ENV', 'development') === 'production'; $log->setEnvironment($isProduction ? Log::ENVIRONMENT_PRODUCTION : Log::ENVIRONMENT_STAGING); - $responseCode = $logger->addLog($log); - Console::info('Usage stats log pushed with status code: ' . $responseCode); + try { + $responseCode = $logger->addLog($log); + Console::info('Error log pushed with status code: ' . $responseCode); + } catch (Throwable $th) { + Console::error('Error pushing log: ' . $th->getMessage()); + } } Console::error('[Error] Type: ' . get_class($error)); diff --git a/bin/stats-resources b/bin/stats-resources new file mode 100644 index 00000000000..3104bab8961 --- /dev/null +++ b/bin/stats-resources @@ -0,0 +1,3 @@ +#!/bin/sh + +php /usr/src/code/app/cli.php stats-resources $@ \ No newline at end of file diff --git a/bin/worker-stats-resources b/bin/worker-stats-resources new file mode 100644 index 00000000000..9c5d2bebfff --- /dev/null +++ b/bin/worker-stats-resources @@ -0,0 +1,3 @@ +#!/bin/sh + +php /usr/src/code/app/worker.php stats-resources $@ \ No newline at end of file diff --git a/bin/worker-stats-usage b/bin/worker-stats-usage new file mode 100644 index 00000000000..2c267d805e6 --- /dev/null +++ b/bin/worker-stats-usage @@ -0,0 +1,3 @@ +#!/bin/sh + +php /usr/src/code/app/worker.php stats-usage $@ \ No newline at end of file diff --git a/bin/worker-usage b/bin/worker-usage deleted file mode 100644 index e39ce8477ca..00000000000 --- a/bin/worker-usage +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -php /usr/src/code/app/worker.php usage $@ \ No newline at end of file diff --git a/bin/worker-usage-dump b/bin/worker-usage-dump deleted file mode 100644 index 43ca87fcb38..00000000000 --- a/bin/worker-usage-dump +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -php /usr/src/code/app/worker.php usage-dump $@ \ No newline at end of file diff --git a/composer.json b/composer.json index 91ff1eeb926..cc5a174a24c 100644 --- a/composer.json +++ b/composer.json @@ -30,7 +30,7 @@ } }, "require": { - "php": ">=8.0.0", + "php": ">=8.3.0", "ext-curl": "*", "ext-imagick": "*", "ext-mbstring": "*", @@ -43,35 +43,36 @@ "ext-openssl": "*", "ext-zlib": "*", "ext-sockets": "*", - "appwrite/php-runtimes": "0.15.*", + "appwrite/php-runtimes": "0.16.*", "appwrite/php-clamav": "2.0.*", - "utopia-php/abuse": "0.43.0", + "utopia-php/abuse": "0.52.*", "utopia-php/analytics": "0.10.*", - "utopia-php/audit": "0.43.0", - "utopia-php/cache": "0.10.*", + "utopia-php/audit": "0.55.*", + "utopia-php/cache": "0.13.*", "utopia-php/cli": "0.15.*", "utopia-php/config": "0.2.*", - "utopia-php/database": "0.53.*", + "utopia-php/database": "0.69.*", "utopia-php/domains": "0.5.*", "utopia-php/dsn": "0.2.1", "utopia-php/framework": "0.33.*", - "utopia-php/fetch": "0.2.*", - "utopia-php/image": "0.6.*", + "utopia-php/fetch": "0.4.*", + "utopia-php/image": "0.8.*", "utopia-php/locale": "0.4.*", "utopia-php/logger": "0.6.*", - "utopia-php/messaging": "0.12.*", - "utopia-php/migration": "0.5.*", + "utopia-php/messaging": "0.17.*", + "utopia-php/migration": "0.9.*", "utopia-php/orchestration": "0.9.*", "utopia-php/platform": "0.7.*", - "utopia-php/pools": "0.5.*", + "utopia-php/pools": "0.8.*", "utopia-php/preloader": "0.2.*", - "utopia-php/queue": "0.7.*", + "utopia-php/queue": "0.10.*", "utopia-php/registry": "0.5.*", "utopia-php/storage": "0.18.*", "utopia-php/swoole": "0.8.*", - "utopia-php/system": "0.8.*", - "utopia-php/vcs": "0.8.*", - "utopia-php/websocket": "0.1.*", + "utopia-php/system": "0.9.*", + "utopia-php/telemetry": "0.1.*", + "utopia-php/vcs": "0.9.*", + "utopia-php/websocket": "0.3.*", "matomo/device-detector": "6.1.*", "dragonmantank/cron-expression": "3.3.2", "phpmailer/phpmailer": "6.9.1", @@ -83,12 +84,12 @@ }, "require-dev": { "ext-fileinfo": "*", - "appwrite/sdk-generator": "0.39.*", - "phpunit/phpunit": "9.5.20", + "appwrite/sdk-generator": "0.40.*", + "phpunit/phpunit": "9.*", "swoole/ide-helper": "5.1.2", - "textalk/websocket": "1.5.7", - "laravel/pint": "^1.14", - "phpbench/phpbench": "^1.2" + "textalk/websocket": "1.5.*", + "laravel/pint": "1.*", + "phpbench/phpbench": "1.*" }, "provide": { "ext-phpiredis": "*" @@ -96,6 +97,10 @@ "config": { "platform": { "php": "8.3" + }, + "allow-plugins": { + "php-http/discovery": true, + "tbachert/spi": true } } } diff --git a/composer.lock b/composer.lock index 147800df325..57d627d4936 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "b6820da26239716cf14a445697902a03", + "content-hash": "63feb1a7cf4cfa2cc7fa0870236e61ea", "packages": [ { "name": "adhocore/jwt", @@ -65,16 +65,16 @@ }, { "name": "appwrite/appwrite", - "version": "10.1.0", + "version": "11.1.0", "source": { "type": "git", "url": "https://github.com/appwrite/sdk-for-php.git", - "reference": "da579af70723cfc117b5af84375bdef117e27312" + "reference": "1d043f543acdb17b9fdb440b1b2dd208e400bad3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/appwrite/sdk-for-php/zipball/da579af70723cfc117b5af84375bdef117e27312", - "reference": "da579af70723cfc117b5af84375bdef117e27312", + "url": "https://api.github.com/repos/appwrite/sdk-for-php/zipball/1d043f543acdb17b9fdb440b1b2dd208e400bad3", + "reference": "1d043f543acdb17b9fdb440b1b2dd208e400bad3", "shasum": "" }, "require": { @@ -83,7 +83,8 @@ "php": ">=7.1.0" }, "require-dev": { - "phpunit/phpunit": "3.7.35" + "mockery/mockery": "^1.6.6", + "phpunit/phpunit": "^10" }, "type": "library", "autoload": { @@ -99,10 +100,10 @@ "support": { "email": "team@appwrite.io", "issues": "https://github.com/appwrite/sdk-for-php/issues", - "source": "https://github.com/appwrite/sdk-for-php/tree/10.1.0", + "source": "https://github.com/appwrite/sdk-for-php/tree/11.1.0", "url": "https://appwrite.io/support" }, - "time": "2023-11-20T09:56:12+00:00" + "time": "2024-06-26T07:03:23+00:00" }, { "name": "appwrite/php-clamav", @@ -156,21 +157,21 @@ }, { "name": "appwrite/php-runtimes", - "version": "0.15.0", + "version": "0.16.5", "source": { "type": "git", "url": "https://github.com/appwrite/runtimes.git", - "reference": "68ea5bcc24c513a6d641ddf9412bbab13e5dfb94" + "reference": "1e430646fdf847a7caf3c611dcf3d6d5a28c3fd9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/appwrite/runtimes/zipball/68ea5bcc24c513a6d641ddf9412bbab13e5dfb94", - "reference": "68ea5bcc24c513a6d641ddf9412bbab13e5dfb94", + "url": "https://api.github.com/repos/appwrite/runtimes/zipball/1e430646fdf847a7caf3c611dcf3d6d5a28c3fd9", + "reference": "1e430646fdf847a7caf3c611dcf3d6d5a28c3fd9", "shasum": "" }, "require": { "php": ">=8.0", - "utopia-php/system": "0.8.*" + "utopia-php/system": "0.9.*" }, "require-dev": { "laravel/pint": "^1.15", @@ -205,22 +206,22 @@ ], "support": { "issues": "https://github.com/appwrite/runtimes/issues", - "source": "https://github.com/appwrite/runtimes/tree/0.15.0" + "source": "https://github.com/appwrite/runtimes/tree/0.16.5" }, - "time": "2024-08-21T10:23:45+00:00" + "time": "2024-11-25T15:17:06+00:00" }, { "name": "beberlei/assert", - "version": "v3.3.2", + "version": "v3.3.3", "source": { "type": "git", "url": "https://github.com/beberlei/assert.git", - "reference": "cb70015c04be1baee6f5f5c953703347c0ac1655" + "reference": "b5fd8eacd8915a1b627b8bfc027803f1939734dd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/beberlei/assert/zipball/cb70015c04be1baee6f5f5c953703347c0ac1655", - "reference": "cb70015c04be1baee6f5f5c953703347c0ac1655", + "url": "https://api.github.com/repos/beberlei/assert/zipball/b5fd8eacd8915a1b627b8bfc027803f1939734dd", + "reference": "b5fd8eacd8915a1b627b8bfc027803f1939734dd", "shasum": "" }, "require": { @@ -228,7 +229,7 @@ "ext-json": "*", "ext-mbstring": "*", "ext-simplexml": "*", - "php": "^7.0 || ^8.0" + "php": "^7.1 || ^8.0" }, "require-dev": { "friendsofphp/php-cs-fixer": "*", @@ -272,9 +273,69 @@ ], "support": { "issues": "https://github.com/beberlei/assert/issues", - "source": "https://github.com/beberlei/assert/tree/v3.3.2" + "source": "https://github.com/beberlei/assert/tree/v3.3.3" + }, + "time": "2024-07-15T13:18:35+00:00" + }, + { + "name": "brick/math", + "version": "0.12.3", + "source": { + "type": "git", + "url": "https://github.com/brick/math.git", + "reference": "866551da34e9a618e64a819ee1e01c20d8a588ba" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/brick/math/zipball/866551da34e9a618e64a819ee1e01c20d8a588ba", + "reference": "866551da34e9a618e64a819ee1e01c20d8a588ba", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.2", + "phpunit/phpunit": "^10.1", + "vimeo/psalm": "6.8.8" + }, + "type": "library", + "autoload": { + "psr-4": { + "Brick\\Math\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Arbitrary-precision arithmetic library", + "keywords": [ + "Arbitrary-precision", + "BigInteger", + "BigRational", + "arithmetic", + "bigdecimal", + "bignum", + "bignumber", + "brick", + "decimal", + "integer", + "math", + "mathematics", + "rational" + ], + "support": { + "issues": "https://github.com/brick/math/issues", + "source": "https://github.com/brick/math/tree/0.12.3" }, - "time": "2021-12-16T21:41:27+00:00" + "funding": [ + { + "url": "https://github.com/BenMorel", + "type": "github" + } + ], + "time": "2025-02-28T13:11:00+00:00" }, { "name": "chillerlan/php-qrcode", @@ -421,6 +482,87 @@ ], "time": "2024-07-17T01:04:28+00:00" }, + { + "name": "composer/semver", + "version": "3.4.3", + "source": { + "type": "git", + "url": "https://github.com/composer/semver.git", + "reference": "4313d26ada5e0c4edfbd1dc481a92ff7bff91f12" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/semver/zipball/4313d26ada5e0c4edfbd1dc481a92ff7bff91f12", + "reference": "4313d26ada5e0c4edfbd1dc481a92ff7bff91f12", + "shasum": "" + }, + "require": { + "php": "^5.3.2 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.11", + "symfony/phpunit-bridge": "^3 || ^7" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\Semver\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nils Adermann", + "email": "naderman@naderman.de", + "homepage": "http://www.naderman.de" + }, + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + }, + { + "name": "Rob Bast", + "email": "rob.bast@gmail.com", + "homepage": "http://robbast.nl" + } + ], + "description": "Semver library that offers utilities, version constraint parsing and validation.", + "keywords": [ + "semantic", + "semver", + "validation", + "versioning" + ], + "support": { + "irc": "ircs://irc.libera.chat:6697/composer", + "issues": "https://github.com/composer/semver/issues", + "source": "https://github.com/composer/semver/tree/3.4.3" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2024-09-19T14:15:21+00:00" + }, { "name": "dragonmantank/cron-expression", "version": "v3.3.2", @@ -566,63 +708,48 @@ "time": "2024-05-03T06:31:11+00:00" }, { - "name": "jean85/pretty-package-versions", - "version": "2.0.6", + "name": "google/protobuf", + "version": "v4.31.0", "source": { "type": "git", - "url": "https://github.com/Jean85/pretty-package-versions.git", - "reference": "f9fdd29ad8e6d024f52678b570e5593759b550b4" + "url": "https://github.com/protocolbuffers/protobuf-php.git", + "reference": "d59e31ce4bf0e4b48728e90c4d880839edb5be07" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Jean85/pretty-package-versions/zipball/f9fdd29ad8e6d024f52678b570e5593759b550b4", - "reference": "f9fdd29ad8e6d024f52678b570e5593759b550b4", + "url": "https://api.github.com/repos/protocolbuffers/protobuf-php/zipball/d59e31ce4bf0e4b48728e90c4d880839edb5be07", + "reference": "d59e31ce4bf0e4b48728e90c4d880839edb5be07", "shasum": "" }, "require": { - "composer-runtime-api": "^2.0.0", - "php": "^7.1|^8.0" + "php": ">=7.0.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.2", - "jean85/composer-provided-replaced-stub-package": "^1.0", - "phpstan/phpstan": "^1.4", - "phpunit/phpunit": "^7.5|^8.5|^9.4", - "vimeo/psalm": "^4.3" + "phpunit/phpunit": ">=5.0.0" }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.x-dev" - } + "suggest": { + "ext-bcmath": "Need to support JSON deserialization" }, + "type": "library", "autoload": { "psr-4": { - "Jean85\\": "src/" + "Google\\Protobuf\\": "src/Google/Protobuf", + "GPBMetadata\\Google\\Protobuf\\": "src/GPBMetadata/Google/Protobuf" } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" - ], - "authors": [ - { - "name": "Alessandro Lai", - "email": "alessandro.lai85@gmail.com" - } + "BSD-3-Clause" ], - "description": "A library to get pretty versions strings of installed dependencies", + "description": "proto library for PHP", + "homepage": "https://developers.google.com/protocol-buffers/", "keywords": [ - "composer", - "package", - "release", - "versions" + "proto" ], "support": { - "issues": "https://github.com/Jean85/pretty-package-versions/issues", - "source": "https://github.com/Jean85/pretty-package-versions/tree/2.0.6" + "source": "https://github.com/protocolbuffers/protobuf-php/tree/v4.31.0" }, - "time": "2024-03-08T09:58:59+00:00" + "time": "2025-05-14T16:17:23+00:00" }, { "name": "league/csv", @@ -782,75 +909,6 @@ }, "time": "2023-10-02T10:01:54+00:00" }, - { - "name": "mongodb/mongodb", - "version": "1.10.0", - "source": { - "type": "git", - "url": "https://github.com/mongodb/mongo-php-library.git", - "reference": "b0bbd657f84219212487d01a8ffe93a789e1e488" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/mongodb/mongo-php-library/zipball/b0bbd657f84219212487d01a8ffe93a789e1e488", - "reference": "b0bbd657f84219212487d01a8ffe93a789e1e488", - "shasum": "" - }, - "require": { - "ext-hash": "*", - "ext-json": "*", - "ext-mongodb": "^1.11.0", - "jean85/pretty-package-versions": "^1.2 || ^2.0.1", - "php": "^7.1 || ^8.0", - "symfony/polyfill-php80": "^1.19" - }, - "require-dev": { - "doctrine/coding-standard": "^9.0", - "squizlabs/php_codesniffer": "^3.6", - "symfony/phpunit-bridge": "^5.2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.10.x-dev" - } - }, - "autoload": { - "files": [ - "src/functions.php" - ], - "psr-4": { - "MongoDB\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "Apache-2.0" - ], - "authors": [ - { - "name": "Andreas Braun", - "email": "andreas.braun@mongodb.com" - }, - { - "name": "Jeremy Mikola", - "email": "jmikola@gmail.com" - } - ], - "description": "MongoDB driver library", - "homepage": "https://jira.mongodb.org/browse/PHPLIB", - "keywords": [ - "database", - "driver", - "mongodb", - "persistence" - ], - "support": { - "issues": "https://github.com/mongodb/mongo-php-library/issues", - "source": "https://github.com/mongodb/mongo-php-library/tree/1.10.0" - }, - "time": "2021-10-20T22:22:37+00:00" - }, { "name": "mustangostang/spyc", "version": "0.6.3", @@ -906,30 +964,45 @@ "time": "2019-09-10T13:16:29+00:00" }, { - "name": "paragonie/constant_time_encoding", - "version": "v2.7.0", + "name": "nyholm/psr7", + "version": "1.8.2", "source": { "type": "git", - "url": "https://github.com/paragonie/constant_time_encoding.git", - "reference": "52a0d99e69f56b9ec27ace92ba56897fe6993105" + "url": "https://github.com/Nyholm/psr7.git", + "reference": "a71f2b11690f4b24d099d6b16690a90ae14fc6f3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/paragonie/constant_time_encoding/zipball/52a0d99e69f56b9ec27ace92ba56897fe6993105", - "reference": "52a0d99e69f56b9ec27ace92ba56897fe6993105", + "url": "https://api.github.com/repos/Nyholm/psr7/zipball/a71f2b11690f4b24d099d6b16690a90ae14fc6f3", + "reference": "a71f2b11690f4b24d099d6b16690a90ae14fc6f3", "shasum": "" }, "require": { - "php": "^7|^8" + "php": ">=7.2", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.1 || ^2.0" + }, + "provide": { + "php-http/message-factory-implementation": "1.0", + "psr/http-factory-implementation": "1.0", + "psr/http-message-implementation": "1.0" }, "require-dev": { - "phpunit/phpunit": "^6|^7|^8|^9", - "vimeo/psalm": "^1|^2|^3|^4" + "http-interop/http-factory-tests": "^0.9", + "php-http/message-factory": "^1.0", + "php-http/psr7-integration-tests": "^1.0", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.4", + "symfony/error-handler": "^4.4" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.8-dev" + } + }, "autoload": { "psr-4": { - "ParagonIE\\ConstantTime\\": "src/" + "Nyholm\\Psr7\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -938,224 +1011,1822 @@ ], "authors": [ { - "name": "Paragon Initiative Enterprises", - "email": "security@paragonie.com", - "homepage": "https://paragonie.com", - "role": "Maintainer" + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com" }, { - "name": "Steve 'Sc00bz' Thomas", - "email": "steve@tobtu.com", - "homepage": "https://www.tobtu.com", - "role": "Original Developer" + "name": "Martijn van der Ven", + "email": "martijn@vanderven.se" } ], - "description": "Constant-time Implementations of RFC 4648 Encoding (Base-64, Base-32, Base-16)", + "description": "A fast PHP7 implementation of PSR-7", + "homepage": "https://tnyholm.se", "keywords": [ - "base16", - "base32", - "base32_decode", - "base32_encode", - "base64", - "base64_decode", - "base64_encode", - "bin2hex", - "encoding", - "hex", - "hex2bin", - "rfc4648" + "psr-17", + "psr-7" ], "support": { - "email": "info@paragonie.com", - "issues": "https://github.com/paragonie/constant_time_encoding/issues", - "source": "https://github.com/paragonie/constant_time_encoding" + "issues": "https://github.com/Nyholm/psr7/issues", + "source": "https://github.com/Nyholm/psr7/tree/1.8.2" }, - "time": "2024-05-08T12:18:48+00:00" + "funding": [ + { + "url": "https://github.com/Zegnat", + "type": "github" + }, + { + "url": "https://github.com/nyholm", + "type": "github" + } + ], + "time": "2024-09-09T07:06:30+00:00" }, { - "name": "phpmailer/phpmailer", - "version": "v6.9.1", + "name": "nyholm/psr7-server", + "version": "1.1.0", "source": { "type": "git", - "url": "https://github.com/PHPMailer/PHPMailer.git", - "reference": "039de174cd9c17a8389754d3b877a2ed22743e18" + "url": "https://github.com/Nyholm/psr7-server.git", + "reference": "4335801d851f554ca43fa6e7d2602141538854dc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/039de174cd9c17a8389754d3b877a2ed22743e18", - "reference": "039de174cd9c17a8389754d3b877a2ed22743e18", + "url": "https://api.github.com/repos/Nyholm/psr7-server/zipball/4335801d851f554ca43fa6e7d2602141538854dc", + "reference": "4335801d851f554ca43fa6e7d2602141538854dc", "shasum": "" }, "require": { - "ext-ctype": "*", - "ext-filter": "*", - "ext-hash": "*", - "php": ">=5.5.0" + "php": "^7.1 || ^8.0", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.0 || ^2.0" }, "require-dev": { - "dealerdirect/phpcodesniffer-composer-installer": "^1.0", - "doctrine/annotations": "^1.2.6 || ^1.13.3", - "php-parallel-lint/php-console-highlighter": "^1.0.0", - "php-parallel-lint/php-parallel-lint": "^1.3.2", - "phpcompatibility/php-compatibility": "^9.3.5", - "roave/security-advisories": "dev-latest", - "squizlabs/php_codesniffer": "^3.7.2", - "yoast/phpunit-polyfills": "^1.0.4" - }, - "suggest": { - "decomplexity/SendOauth2": "Adapter for using XOAUTH2 authentication", - "ext-mbstring": "Needed to send email in multibyte encoding charset or decode encoded addresses", - "ext-openssl": "Needed for secure SMTP sending and DKIM signing", - "greew/oauth2-azure-provider": "Needed for Microsoft Azure XOAUTH2 authentication", - "hayageek/oauth2-yahoo": "Needed for Yahoo XOAUTH2 authentication", - "league/oauth2-google": "Needed for Google XOAUTH2 authentication", - "psr/log": "For optional PSR-3 debug logging", - "symfony/polyfill-mbstring": "To support UTF-8 if the Mbstring PHP extension is not enabled (^1.2)", - "thenetworg/oauth2-azure": "Needed for Microsoft XOAUTH2 authentication" + "nyholm/nsa": "^1.1", + "nyholm/psr7": "^1.3", + "phpunit/phpunit": "^7.0 || ^8.5 || ^9.3" }, "type": "library", "autoload": { "psr-4": { - "PHPMailer\\PHPMailer\\": "src/" + "Nyholm\\Psr7Server\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "LGPL-2.1-only" + "MIT" ], "authors": [ { - "name": "Marcus Bointon", - "email": "phpmailer@synchromedia.co.uk" - }, - { - "name": "Jim Jagielski", - "email": "jimjag@gmail.com" - }, - { - "name": "Andy Prevost", - "email": "codeworxtech@users.sourceforge.net" + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com" }, { - "name": "Brent R. Matzelle" + "name": "Martijn van der Ven", + "email": "martijn@vanderven.se" } ], - "description": "PHPMailer is a full-featured email creation and transfer class for PHP", + "description": "Helper classes to handle PSR-7 server requests", + "homepage": "http://tnyholm.se", + "keywords": [ + "psr-17", + "psr-7" + ], "support": { - "issues": "https://github.com/PHPMailer/PHPMailer/issues", - "source": "https://github.com/PHPMailer/PHPMailer/tree/v6.9.1" + "issues": "https://github.com/Nyholm/psr7-server/issues", + "source": "https://github.com/Nyholm/psr7-server/tree/1.1.0" }, "funding": [ { - "url": "https://github.com/Synchro", + "url": "https://github.com/Zegnat", + "type": "github" + }, + { + "url": "https://github.com/nyholm", "type": "github" } ], - "time": "2023-11-25T22:23:28+00:00" + "time": "2023-11-08T09:30:43+00:00" }, { - "name": "spomky-labs/otphp", - "version": "v10.0.3", + "name": "open-telemetry/api", + "version": "1.3.0", "source": { "type": "git", - "url": "https://github.com/Spomky-Labs/otphp.git", - "reference": "9784d9f7c790eed26e102d6c78f12c754036c366" + "url": "https://github.com/opentelemetry-php/api.git", + "reference": "4e3bb38e069876fb73c2ce85c89583bf2b28cd86" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Spomky-Labs/otphp/zipball/9784d9f7c790eed26e102d6c78f12c754036c366", - "reference": "9784d9f7c790eed26e102d6c78f12c754036c366", + "url": "https://api.github.com/repos/opentelemetry-php/api/zipball/4e3bb38e069876fb73c2ce85c89583bf2b28cd86", + "reference": "4e3bb38e069876fb73c2ce85c89583bf2b28cd86", "shasum": "" }, "require": { - "beberlei/assert": "^3.0", - "ext-mbstring": "*", - "paragonie/constant_time_encoding": "^2.0", + "open-telemetry/context": "^1.0", + "php": "^8.1", + "psr/log": "^1.1|^2.0|^3.0", + "symfony/polyfill-php82": "^1.26" + }, + "conflict": { + "open-telemetry/sdk": "<=1.0.8" + }, + "type": "library", + "extra": { + "spi": { + "OpenTelemetry\\API\\Instrumentation\\AutoInstrumentation\\HookManagerInterface": [ + "OpenTelemetry\\API\\Instrumentation\\AutoInstrumentation\\ExtensionHookManager" + ] + }, + "branch-alias": { + "dev-main": "1.1.x-dev" + } + }, + "autoload": { + "files": [ + "Trace/functions.php" + ], + "psr-4": { + "OpenTelemetry\\API\\": "." + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "opentelemetry-php contributors", + "homepage": "https://github.com/open-telemetry/opentelemetry-php/graphs/contributors" + } + ], + "description": "API for OpenTelemetry PHP.", + "keywords": [ + "Metrics", + "api", + "apm", + "logging", + "opentelemetry", + "otel", + "tracing" + ], + "support": { + "chat": "https://app.slack.com/client/T08PSQ7BQ/C01NFPCV44V", + "docs": "https://opentelemetry.io/docs/php", + "issues": "https://github.com/open-telemetry/opentelemetry-php/issues", + "source": "https://github.com/open-telemetry/opentelemetry-php" + }, + "time": "2025-05-07T12:32:21+00:00" + }, + { + "name": "open-telemetry/context", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/opentelemetry-php/context.git", + "reference": "1eb2b837ee9362db064a6b65d5ecce15a9f9f020" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/opentelemetry-php/context/zipball/1eb2b837ee9362db064a6b65d5ecce15a9f9f020", + "reference": "1eb2b837ee9362db064a6b65d5ecce15a9f9f020", + "shasum": "" + }, + "require": { + "php": "^8.1", + "symfony/polyfill-php82": "^1.26" + }, + "suggest": { + "ext-ffi": "To allow context switching in Fibers" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.0.x-dev" + } + }, + "autoload": { + "files": [ + "fiber/initialize_fiber_handler.php" + ], + "psr-4": { + "OpenTelemetry\\Context\\": "." + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "opentelemetry-php contributors", + "homepage": "https://github.com/open-telemetry/opentelemetry-php/graphs/contributors" + } + ], + "description": "Context implementation for OpenTelemetry PHP.", + "keywords": [ + "Context", + "opentelemetry", + "otel" + ], + "support": { + "chat": "https://app.slack.com/client/T08PSQ7BQ/C01NFPCV44V", + "docs": "https://opentelemetry.io/docs/php", + "issues": "https://github.com/open-telemetry/opentelemetry-php/issues", + "source": "https://github.com/open-telemetry/opentelemetry-php" + }, + "time": "2025-05-07T23:36:50+00:00" + }, + { + "name": "open-telemetry/exporter-otlp", + "version": "1.3.0", + "source": { + "type": "git", + "url": "https://github.com/opentelemetry-php/exporter-otlp.git", + "reference": "19adf03d2b0f91f9e9b1c7f93db6c755c737cf6c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/opentelemetry-php/exporter-otlp/zipball/19adf03d2b0f91f9e9b1c7f93db6c755c737cf6c", + "reference": "19adf03d2b0f91f9e9b1c7f93db6c755c737cf6c", + "shasum": "" + }, + "require": { + "open-telemetry/api": "^1.0", + "open-telemetry/gen-otlp-protobuf": "^1.1", + "open-telemetry/sdk": "^1.0", + "php": "^8.1", + "php-http/discovery": "^1.14" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.0.x-dev" + } + }, + "autoload": { + "files": [ + "_register.php" + ], + "psr-4": { + "OpenTelemetry\\Contrib\\Otlp\\": "." + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "opentelemetry-php contributors", + "homepage": "https://github.com/open-telemetry/opentelemetry-php/graphs/contributors" + } + ], + "description": "OTLP exporter for OpenTelemetry.", + "keywords": [ + "Metrics", + "exporter", + "gRPC", + "http", + "opentelemetry", + "otel", + "otlp", + "tracing" + ], + "support": { + "chat": "https://app.slack.com/client/T08PSQ7BQ/C01NFPCV44V", + "docs": "https://opentelemetry.io/docs/php", + "issues": "https://github.com/open-telemetry/opentelemetry-php/issues", + "source": "https://github.com/open-telemetry/opentelemetry-php" + }, + "time": "2025-05-12T00:36:35+00:00" + }, + { + "name": "open-telemetry/gen-otlp-protobuf", + "version": "1.5.0", + "source": { + "type": "git", + "url": "https://github.com/opentelemetry-php/gen-otlp-protobuf.git", + "reference": "585bafddd4ae6565de154610b10a787a455c9ba0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/opentelemetry-php/gen-otlp-protobuf/zipball/585bafddd4ae6565de154610b10a787a455c9ba0", + "reference": "585bafddd4ae6565de154610b10a787a455c9ba0", + "shasum": "" + }, + "require": { + "google/protobuf": "^3.22 || ^4.0", + "php": "^8.0" + }, + "suggest": { + "ext-protobuf": "For better performance, when dealing with the protobuf format" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Opentelemetry\\Proto\\": "Opentelemetry/Proto/", + "GPBMetadata\\Opentelemetry\\": "GPBMetadata/Opentelemetry/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "opentelemetry-php contributors", + "homepage": "https://github.com/open-telemetry/opentelemetry-php/graphs/contributors" + } + ], + "description": "PHP protobuf files for communication with OpenTelemetry OTLP collectors/servers.", + "keywords": [ + "Metrics", + "apm", + "gRPC", + "logging", + "opentelemetry", + "otel", + "otlp", + "protobuf", + "tracing" + ], + "support": { + "chat": "https://app.slack.com/client/T08PSQ7BQ/C01NFPCV44V", + "docs": "https://opentelemetry.io/docs/php", + "issues": "https://github.com/open-telemetry/opentelemetry-php/issues", + "source": "https://github.com/open-telemetry/opentelemetry-php" + }, + "time": "2025-01-15T23:07:07+00:00" + }, + { + "name": "open-telemetry/sdk", + "version": "1.4.0", + "source": { + "type": "git", + "url": "https://github.com/opentelemetry-php/sdk.git", + "reference": "939d3a28395c249a763676458140dad44b3a8011" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/opentelemetry-php/sdk/zipball/939d3a28395c249a763676458140dad44b3a8011", + "reference": "939d3a28395c249a763676458140dad44b3a8011", + "shasum": "" + }, + "require": { + "ext-json": "*", + "nyholm/psr7-server": "^1.1", + "open-telemetry/api": "~1.0 || ~1.1", + "open-telemetry/context": "^1.0", + "open-telemetry/sem-conv": "^1.0", + "php": "^8.1", + "php-http/discovery": "^1.14", + "psr/http-client": "^1.0", + "psr/http-client-implementation": "^1.0", + "psr/http-factory-implementation": "^1.0", + "psr/http-message": "^1.0.1|^2.0", + "psr/log": "^1.1|^2.0|^3.0", + "ramsey/uuid": "^3.0 || ^4.0", + "symfony/polyfill-mbstring": "^1.23", + "symfony/polyfill-php82": "^1.26", + "tbachert/spi": "^1.0.1" + }, + "suggest": { + "ext-gmp": "To support unlimited number of synchronous metric readers", + "ext-mbstring": "To increase performance of string operations", + "open-telemetry/sdk-configuration": "File-based OpenTelemetry SDK configuration" + }, + "type": "library", + "extra": { + "spi": { + "OpenTelemetry\\API\\Instrumentation\\AutoInstrumentation\\HookManagerInterface": [ + "OpenTelemetry\\API\\Instrumentation\\AutoInstrumentation\\ExtensionHookManager" + ] + }, + "branch-alias": { + "dev-main": "1.0.x-dev" + } + }, + "autoload": { + "files": [ + "Common/Util/functions.php", + "Logs/Exporter/_register.php", + "Metrics/MetricExporter/_register.php", + "Propagation/_register.php", + "Trace/SpanExporter/_register.php", + "Common/Dev/Compatibility/_load.php", + "_autoload.php" + ], + "psr-4": { + "OpenTelemetry\\SDK\\": "." + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "opentelemetry-php contributors", + "homepage": "https://github.com/open-telemetry/opentelemetry-php/graphs/contributors" + } + ], + "description": "SDK for OpenTelemetry PHP.", + "keywords": [ + "Metrics", + "apm", + "logging", + "opentelemetry", + "otel", + "sdk", + "tracing" + ], + "support": { + "chat": "https://app.slack.com/client/T08PSQ7BQ/C01NFPCV44V", + "docs": "https://opentelemetry.io/docs/php", + "issues": "https://github.com/open-telemetry/opentelemetry-php/issues", + "source": "https://github.com/open-telemetry/opentelemetry-php" + }, + "time": "2025-05-07T12:32:21+00:00" + }, + { + "name": "open-telemetry/sem-conv", + "version": "1.32.0", + "source": { + "type": "git", + "url": "https://github.com/opentelemetry-php/sem-conv.git", + "reference": "16585cc0dbc3032a318e274043454679430d2ebf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/opentelemetry-php/sem-conv/zipball/16585cc0dbc3032a318e274043454679430d2ebf", + "reference": "16585cc0dbc3032a318e274043454679430d2ebf", + "shasum": "" + }, + "require": { + "php": "^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "OpenTelemetry\\SemConv\\": "." + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "opentelemetry-php contributors", + "homepage": "https://github.com/open-telemetry/opentelemetry-php/graphs/contributors" + } + ], + "description": "Semantic conventions for OpenTelemetry PHP.", + "keywords": [ + "Metrics", + "apm", + "logging", + "opentelemetry", + "otel", + "semantic conventions", + "semconv", + "tracing" + ], + "support": { + "chat": "https://app.slack.com/client/T08PSQ7BQ/C01NFPCV44V", + "docs": "https://opentelemetry.io/docs/php", + "issues": "https://github.com/open-telemetry/opentelemetry-php/issues", + "source": "https://github.com/open-telemetry/opentelemetry-php" + }, + "time": "2025-05-05T03:58:53+00:00" + }, + { + "name": "paragonie/constant_time_encoding", + "version": "v2.7.0", + "source": { + "type": "git", + "url": "https://github.com/paragonie/constant_time_encoding.git", + "reference": "52a0d99e69f56b9ec27ace92ba56897fe6993105" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paragonie/constant_time_encoding/zipball/52a0d99e69f56b9ec27ace92ba56897fe6993105", + "reference": "52a0d99e69f56b9ec27ace92ba56897fe6993105", + "shasum": "" + }, + "require": { + "php": "^7|^8" + }, + "require-dev": { + "phpunit/phpunit": "^6|^7|^8|^9", + "vimeo/psalm": "^1|^2|^3|^4" + }, + "type": "library", + "autoload": { + "psr-4": { + "ParagonIE\\ConstantTime\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com", + "homepage": "https://paragonie.com", + "role": "Maintainer" + }, + { + "name": "Steve 'Sc00bz' Thomas", + "email": "steve@tobtu.com", + "homepage": "https://www.tobtu.com", + "role": "Original Developer" + } + ], + "description": "Constant-time Implementations of RFC 4648 Encoding (Base-64, Base-32, Base-16)", + "keywords": [ + "base16", + "base32", + "base32_decode", + "base32_encode", + "base64", + "base64_decode", + "base64_encode", + "bin2hex", + "encoding", + "hex", + "hex2bin", + "rfc4648" + ], + "support": { + "email": "info@paragonie.com", + "issues": "https://github.com/paragonie/constant_time_encoding/issues", + "source": "https://github.com/paragonie/constant_time_encoding" + }, + "time": "2024-05-08T12:18:48+00:00" + }, + { + "name": "paragonie/random_compat", + "version": "v9.99.100", + "source": { + "type": "git", + "url": "https://github.com/paragonie/random_compat.git", + "reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paragonie/random_compat/zipball/996434e5492cb4c3edcb9168db6fbb1359ef965a", + "reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a", + "shasum": "" + }, + "require": { + "php": ">= 7" + }, + "require-dev": { + "phpunit/phpunit": "4.*|5.*", + "vimeo/psalm": "^1" + }, + "suggest": { + "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." + }, + "type": "library", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com", + "homepage": "https://paragonie.com" + } + ], + "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", + "keywords": [ + "csprng", + "polyfill", + "pseudorandom", + "random" + ], + "support": { + "email": "info@paragonie.com", + "issues": "https://github.com/paragonie/random_compat/issues", + "source": "https://github.com/paragonie/random_compat" + }, + "time": "2020-10-15T08:29:30+00:00" + }, + { + "name": "php-amqplib/php-amqplib", + "version": "v3.7.3", + "source": { + "type": "git", + "url": "https://github.com/php-amqplib/php-amqplib.git", + "reference": "9f50fe69a9f1a19e2cb25596a354d705de36fe59" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-amqplib/php-amqplib/zipball/9f50fe69a9f1a19e2cb25596a354d705de36fe59", + "reference": "9f50fe69a9f1a19e2cb25596a354d705de36fe59", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "ext-sockets": "*", + "php": "^7.2||^8.0", + "phpseclib/phpseclib": "^2.0|^3.0" + }, + "conflict": { + "php": "7.4.0 - 7.4.1" + }, + "replace": { + "videlalvaro/php-amqplib": "self.version" + }, + "require-dev": { + "ext-curl": "*", + "nategood/httpful": "^0.2.20", + "phpunit/phpunit": "^7.5|^9.5", + "squizlabs/php_codesniffer": "^3.6" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "psr-4": { + "PhpAmqpLib\\": "PhpAmqpLib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-2.1-or-later" + ], + "authors": [ + { + "name": "Alvaro Videla", + "role": "Original Maintainer" + }, + { + "name": "Raúl Araya", + "email": "nubeiro@gmail.com", + "role": "Maintainer" + }, + { + "name": "Luke Bakken", + "email": "luke@bakken.io", + "role": "Maintainer" + }, + { + "name": "Ramūnas Dronga", + "email": "github@ramuno.lt", + "role": "Maintainer" + } + ], + "description": "Formerly videlalvaro/php-amqplib. This library is a pure PHP implementation of the AMQP protocol. It's been tested against RabbitMQ.", + "homepage": "https://github.com/php-amqplib/php-amqplib/", + "keywords": [ + "message", + "queue", + "rabbitmq" + ], + "support": { + "issues": "https://github.com/php-amqplib/php-amqplib/issues", + "source": "https://github.com/php-amqplib/php-amqplib/tree/v3.7.3" + }, + "time": "2025-02-18T20:11:13+00:00" + }, + { + "name": "php-http/discovery", + "version": "1.20.0", + "source": { + "type": "git", + "url": "https://github.com/php-http/discovery.git", + "reference": "82fe4c73ef3363caed49ff8dd1539ba06044910d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-http/discovery/zipball/82fe4c73ef3363caed49ff8dd1539ba06044910d", + "reference": "82fe4c73ef3363caed49ff8dd1539ba06044910d", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^1.0|^2.0", + "php": "^7.1 || ^8.0" + }, + "conflict": { + "nyholm/psr7": "<1.0", + "zendframework/zend-diactoros": "*" + }, + "provide": { + "php-http/async-client-implementation": "*", + "php-http/client-implementation": "*", + "psr/http-client-implementation": "*", + "psr/http-factory-implementation": "*", + "psr/http-message-implementation": "*" + }, + "require-dev": { + "composer/composer": "^1.0.2|^2.0", + "graham-campbell/phpspec-skip-example-extension": "^5.0", + "php-http/httplug": "^1.0 || ^2.0", + "php-http/message-factory": "^1.0", + "phpspec/phpspec": "^5.1 || ^6.1 || ^7.3", + "sebastian/comparator": "^3.0.5 || ^4.0.8", + "symfony/phpunit-bridge": "^6.4.4 || ^7.0.1" + }, + "type": "composer-plugin", + "extra": { + "class": "Http\\Discovery\\Composer\\Plugin", + "plugin-optional": true + }, + "autoload": { + "psr-4": { + "Http\\Discovery\\": "src/" + }, + "exclude-from-classmap": [ + "src/Composer/Plugin.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com" + } + ], + "description": "Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations", + "homepage": "http://php-http.org", + "keywords": [ + "adapter", + "client", + "discovery", + "factory", + "http", + "message", + "psr17", + "psr7" + ], + "support": { + "issues": "https://github.com/php-http/discovery/issues", + "source": "https://github.com/php-http/discovery/tree/1.20.0" + }, + "time": "2024-10-02T11:20:13+00:00" + }, + { + "name": "phpmailer/phpmailer", + "version": "v6.9.1", + "source": { + "type": "git", + "url": "https://github.com/PHPMailer/PHPMailer.git", + "reference": "039de174cd9c17a8389754d3b877a2ed22743e18" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/039de174cd9c17a8389754d3b877a2ed22743e18", + "reference": "039de174cd9c17a8389754d3b877a2ed22743e18", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "ext-filter": "*", + "ext-hash": "*", + "php": ">=5.5.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "^1.0", + "doctrine/annotations": "^1.2.6 || ^1.13.3", + "php-parallel-lint/php-console-highlighter": "^1.0.0", + "php-parallel-lint/php-parallel-lint": "^1.3.2", + "phpcompatibility/php-compatibility": "^9.3.5", + "roave/security-advisories": "dev-latest", + "squizlabs/php_codesniffer": "^3.7.2", + "yoast/phpunit-polyfills": "^1.0.4" + }, + "suggest": { + "decomplexity/SendOauth2": "Adapter for using XOAUTH2 authentication", + "ext-mbstring": "Needed to send email in multibyte encoding charset or decode encoded addresses", + "ext-openssl": "Needed for secure SMTP sending and DKIM signing", + "greew/oauth2-azure-provider": "Needed for Microsoft Azure XOAUTH2 authentication", + "hayageek/oauth2-yahoo": "Needed for Yahoo XOAUTH2 authentication", + "league/oauth2-google": "Needed for Google XOAUTH2 authentication", + "psr/log": "For optional PSR-3 debug logging", + "symfony/polyfill-mbstring": "To support UTF-8 if the Mbstring PHP extension is not enabled (^1.2)", + "thenetworg/oauth2-azure": "Needed for Microsoft XOAUTH2 authentication" + }, + "type": "library", + "autoload": { + "psr-4": { + "PHPMailer\\PHPMailer\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-2.1-only" + ], + "authors": [ + { + "name": "Marcus Bointon", + "email": "phpmailer@synchromedia.co.uk" + }, + { + "name": "Jim Jagielski", + "email": "jimjag@gmail.com" + }, + { + "name": "Andy Prevost", + "email": "codeworxtech@users.sourceforge.net" + }, + { + "name": "Brent R. Matzelle" + } + ], + "description": "PHPMailer is a full-featured email creation and transfer class for PHP", + "support": { + "issues": "https://github.com/PHPMailer/PHPMailer/issues", + "source": "https://github.com/PHPMailer/PHPMailer/tree/v6.9.1" + }, + "funding": [ + { + "url": "https://github.com/Synchro", + "type": "github" + } + ], + "time": "2023-11-25T22:23:28+00:00" + }, + { + "name": "phpseclib/phpseclib", + "version": "3.0.43", + "source": { + "type": "git", + "url": "https://github.com/phpseclib/phpseclib.git", + "reference": "709ec107af3cb2f385b9617be72af8cf62441d02" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/709ec107af3cb2f385b9617be72af8cf62441d02", + "reference": "709ec107af3cb2f385b9617be72af8cf62441d02", + "shasum": "" + }, + "require": { + "paragonie/constant_time_encoding": "^1|^2|^3", + "paragonie/random_compat": "^1.4|^2.0|^9.99.99", + "php": ">=5.6.1" + }, + "require-dev": { + "phpunit/phpunit": "*" + }, + "suggest": { + "ext-dom": "Install the DOM extension to load XML formatted public keys.", + "ext-gmp": "Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.", + "ext-libsodium": "SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.", + "ext-mcrypt": "Install the Mcrypt extension in order to speed up a few other cryptographic operations.", + "ext-openssl": "Install the OpenSSL extension in order to speed up a wide variety of cryptographic operations." + }, + "type": "library", + "autoload": { + "files": [ + "phpseclib/bootstrap.php" + ], + "psr-4": { + "phpseclib3\\": "phpseclib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jim Wigginton", + "email": "terrafrost@php.net", + "role": "Lead Developer" + }, + { + "name": "Patrick Monnerat", + "email": "pm@datasphere.ch", + "role": "Developer" + }, + { + "name": "Andreas Fischer", + "email": "bantu@phpbb.com", + "role": "Developer" + }, + { + "name": "Hans-Jürgen Petrich", + "email": "petrich@tronic-media.com", + "role": "Developer" + }, + { + "name": "Graham Campbell", + "email": "graham@alt-three.com", + "role": "Developer" + } + ], + "description": "PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.", + "homepage": "http://phpseclib.sourceforge.net", + "keywords": [ + "BigInteger", + "aes", + "asn.1", + "asn1", + "blowfish", + "crypto", + "cryptography", + "encryption", + "rsa", + "security", + "sftp", + "signature", + "signing", + "ssh", + "twofish", + "x.509", + "x509" + ], + "support": { + "issues": "https://github.com/phpseclib/phpseclib/issues", + "source": "https://github.com/phpseclib/phpseclib/tree/3.0.43" + }, + "funding": [ + { + "url": "https://github.com/terrafrost", + "type": "github" + }, + { + "url": "https://www.patreon.com/phpseclib", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpseclib/phpseclib", + "type": "tidelift" + } + ], + "time": "2024-12-14T21:12:59+00:00" + }, + { + "name": "psr/container", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/container.git", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "shasum": "" + }, + "require": { + "php": ">=7.4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Container\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common Container Interface (PHP FIG PSR-11)", + "homepage": "https://github.com/php-fig/container", + "keywords": [ + "PSR-11", + "container", + "container-interface", + "container-interop", + "psr" + ], + "support": { + "issues": "https://github.com/php-fig/container/issues", + "source": "https://github.com/php-fig/container/tree/2.0.2" + }, + "time": "2021-11-05T16:47:00+00:00" + }, + { + "name": "psr/http-client", + "version": "1.0.3", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-client.git", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0 || ^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP clients", + "homepage": "https://github.com/php-fig/http-client", + "keywords": [ + "http", + "http-client", + "psr", + "psr-18" + ], + "support": { + "source": "https://github.com/php-fig/http-client" + }, + "time": "2023-09-23T14:17:50+00:00" + }, + { + "name": "psr/http-factory", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-factory.git", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "psr/http-message": "^1.0 || ^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "PSR-17: Common interfaces for PSR-7 HTTP message factories", + "keywords": [ + "factory", + "http", + "message", + "psr", + "psr-17", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-factory" + }, + "time": "2024-04-15T12:06:14+00:00" + }, + { + "name": "psr/http-message", + "version": "2.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/2.0" + }, + "time": "2023-04-04T09:54:51+00:00" + }, + { + "name": "psr/log", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", + "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "support": { + "source": "https://github.com/php-fig/log/tree/3.0.2" + }, + "time": "2024-09-11T13:17:53+00:00" + }, + { + "name": "ramsey/collection", + "version": "2.1.1", + "source": { + "type": "git", + "url": "https://github.com/ramsey/collection.git", + "reference": "344572933ad0181accbf4ba763e85a0306a8c5e2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/collection/zipball/344572933ad0181accbf4ba763e85a0306a8c5e2", + "reference": "344572933ad0181accbf4ba763e85a0306a8c5e2", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "require-dev": { + "captainhook/plugin-composer": "^5.3", + "ergebnis/composer-normalize": "^2.45", + "fakerphp/faker": "^1.24", + "hamcrest/hamcrest-php": "^2.0", + "jangregor/phpstan-prophecy": "^2.1", + "mockery/mockery": "^1.6", + "php-parallel-lint/php-console-highlighter": "^1.0", + "php-parallel-lint/php-parallel-lint": "^1.4", + "phpspec/prophecy-phpunit": "^2.3", + "phpstan/extension-installer": "^1.4", + "phpstan/phpstan": "^2.1", + "phpstan/phpstan-mockery": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpunit/phpunit": "^10.5", + "ramsey/coding-standard": "^2.3", + "ramsey/conventional-commits": "^1.6", + "roave/security-advisories": "dev-latest" + }, + "type": "library", + "extra": { + "captainhook": { + "force-install": true + }, + "ramsey/conventional-commits": { + "configFile": "conventional-commits.json" + } + }, + "autoload": { + "psr-4": { + "Ramsey\\Collection\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ben Ramsey", + "email": "ben@benramsey.com", + "homepage": "https://benramsey.com" + } + ], + "description": "A PHP library for representing and manipulating collections.", + "keywords": [ + "array", + "collection", + "hash", + "map", + "queue", + "set" + ], + "support": { + "issues": "https://github.com/ramsey/collection/issues", + "source": "https://github.com/ramsey/collection/tree/2.1.1" + }, + "time": "2025-03-22T05:38:12+00:00" + }, + { + "name": "ramsey/uuid", + "version": "4.7.6", + "source": { + "type": "git", + "url": "https://github.com/ramsey/uuid.git", + "reference": "91039bc1faa45ba123c4328958e620d382ec7088" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/uuid/zipball/91039bc1faa45ba123c4328958e620d382ec7088", + "reference": "91039bc1faa45ba123c4328958e620d382ec7088", + "shasum": "" + }, + "require": { + "brick/math": "^0.8.8 || ^0.9 || ^0.10 || ^0.11 || ^0.12", + "ext-json": "*", + "php": "^8.0", + "ramsey/collection": "^1.2 || ^2.0" + }, + "replace": { + "rhumsaa/uuid": "self.version" + }, + "require-dev": { + "captainhook/captainhook": "^5.10", + "captainhook/plugin-composer": "^5.3", + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", + "doctrine/annotations": "^1.8", + "ergebnis/composer-normalize": "^2.15", + "mockery/mockery": "^1.3", + "paragonie/random-lib": "^2", + "php-mock/php-mock": "^2.2", + "php-mock/php-mock-mockery": "^1.3", + "php-parallel-lint/php-parallel-lint": "^1.1", + "phpbench/phpbench": "^1.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-mockery": "^1.1", + "phpstan/phpstan-phpunit": "^1.1", + "phpunit/phpunit": "^8.5 || ^9", + "ramsey/composer-repl": "^1.4", + "slevomat/coding-standard": "^8.4", + "squizlabs/php_codesniffer": "^3.5", + "vimeo/psalm": "^4.9" + }, + "suggest": { + "ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.", + "ext-gmp": "Enables faster math with arbitrary-precision integers using GMP.", + "ext-uuid": "Enables the use of PeclUuidTimeGenerator and PeclUuidRandomGenerator.", + "paragonie/random-lib": "Provides RandomLib for use with the RandomLibAdapter", + "ramsey/uuid-doctrine": "Allows the use of Ramsey\\Uuid\\Uuid as Doctrine field type." + }, + "type": "library", + "extra": { + "captainhook": { + "force-install": true + } + }, + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Ramsey\\Uuid\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A PHP library for generating and working with universally unique identifiers (UUIDs).", + "keywords": [ + "guid", + "identifier", + "uuid" + ], + "support": { + "issues": "https://github.com/ramsey/uuid/issues", + "source": "https://github.com/ramsey/uuid/tree/4.7.6" + }, + "funding": [ + { + "url": "https://github.com/ramsey", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/ramsey/uuid", + "type": "tidelift" + } + ], + "time": "2024-04-27T21:32:50+00:00" + }, + { + "name": "spomky-labs/otphp", + "version": "v10.0.3", + "source": { + "type": "git", + "url": "https://github.com/Spomky-Labs/otphp.git", + "reference": "9784d9f7c790eed26e102d6c78f12c754036c366" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Spomky-Labs/otphp/zipball/9784d9f7c790eed26e102d6c78f12c754036c366", + "reference": "9784d9f7c790eed26e102d6c78f12c754036c366", + "shasum": "" + }, + "require": { + "beberlei/assert": "^3.0", + "ext-mbstring": "*", + "paragonie/constant_time_encoding": "^2.0", "php": "^7.2|^8.0", "thecodingmachine/safe": "^0.1.14|^1.0|^2.0" }, - "require-dev": { - "php-coveralls/php-coveralls": "^2.0", - "phpstan/phpstan": "^0.12", - "phpstan/phpstan-beberlei-assert": "^0.12", - "phpstan/phpstan-deprecation-rules": "^0.12", - "phpstan/phpstan-phpunit": "^0.12", - "phpstan/phpstan-strict-rules": "^0.12", - "phpunit/phpunit": "^8.0", - "thecodingmachine/phpstan-safe-rule": "^1.0 || ^2.0" + "require-dev": { + "php-coveralls/php-coveralls": "^2.0", + "phpstan/phpstan": "^0.12", + "phpstan/phpstan-beberlei-assert": "^0.12", + "phpstan/phpstan-deprecation-rules": "^0.12", + "phpstan/phpstan-phpunit": "^0.12", + "phpstan/phpstan-strict-rules": "^0.12", + "phpunit/phpunit": "^8.0", + "thecodingmachine/phpstan-safe-rule": "^1.0 || ^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "v8.3": "8.3.x-dev", + "v9.0": "9.0.x-dev", + "v10.0": "10.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "OTPHP\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Florent Morselli", + "homepage": "https://github.com/Spomky" + }, + { + "name": "All contributors", + "homepage": "https://github.com/Spomky-Labs/otphp/contributors" + } + ], + "description": "A PHP library for generating one time passwords according to RFC 4226 (HOTP Algorithm) and the RFC 6238 (TOTP Algorithm) and compatible with Google Authenticator", + "homepage": "https://github.com/Spomky-Labs/otphp", + "keywords": [ + "FreeOTP", + "RFC 4226", + "RFC 6238", + "google authenticator", + "hotp", + "otp", + "totp" + ], + "support": { + "issues": "https://github.com/Spomky-Labs/otphp/issues", + "source": "https://github.com/Spomky-Labs/otphp/tree/v10.0.3" + }, + "time": "2022-03-17T08:00:35+00:00" + }, + { + "name": "symfony/deprecation-contracts", + "version": "v3.5.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6", + "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6", + "shasum": "" + }, + "require": { + "php": ">=8.1" }, "type": "library", "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, "branch-alias": { - "v10.0": "10.0.x-dev", - "v9.0": "9.0.x-dev", - "v8.3": "8.3.x-dev" + "dev-main": "3.5-dev" + } + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" } + ], + "time": "2024-09-25T14:20:29+00:00" + }, + { + "name": "symfony/http-client", + "version": "v7.2.4", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-client.git", + "reference": "78981a2ffef6437ed92d4d7e2a86a82f256c6dc6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-client/zipball/78981a2ffef6437ed92d4d7e2a86a82f256c6dc6", + "reference": "78981a2ffef6437ed92d4d7e2a86a82f256c6dc6", + "shasum": "" }, + "require": { + "php": ">=8.2", + "psr/log": "^1|^2|^3", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/http-client-contracts": "~3.4.4|^3.5.2", + "symfony/service-contracts": "^2.5|^3" + }, + "conflict": { + "amphp/amp": "<2.5", + "php-http/discovery": "<1.15", + "symfony/http-foundation": "<6.4" + }, + "provide": { + "php-http/async-client-implementation": "*", + "php-http/client-implementation": "*", + "psr/http-client-implementation": "1.0", + "symfony/http-client-implementation": "3.0" + }, + "require-dev": { + "amphp/http-client": "^4.2.1|^5.0", + "amphp/http-tunnel": "^1.0|^2.0", + "amphp/socket": "^1.1", + "guzzlehttp/promises": "^1.4|^2.0", + "nyholm/psr7": "^1.0", + "php-http/httplug": "^1.0|^2.0", + "psr/http-client": "^1.0", + "symfony/amphp-http-client-meta": "^1.0|^2.0", + "symfony/dependency-injection": "^6.4|^7.0", + "symfony/http-kernel": "^6.4|^7.0", + "symfony/messenger": "^6.4|^7.0", + "symfony/process": "^6.4|^7.0", + "symfony/rate-limiter": "^6.4|^7.0", + "symfony/stopwatch": "^6.4|^7.0" + }, + "type": "library", "autoload": { "psr-4": { - "OTPHP\\": "src/" + "Symfony\\Component\\HttpClient\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides powerful methods to fetch HTTP resources synchronously or asynchronously", + "homepage": "https://symfony.com", + "keywords": [ + "http" + ], + "support": { + "source": "https://github.com/symfony/http-client/tree/v7.2.4" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-02-13T10:27:23+00:00" + }, + { + "name": "symfony/http-client-contracts", + "version": "v3.5.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-client-contracts.git", + "reference": "ee8d807ab20fcb51267fdace50fbe3494c31e645" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/ee8d807ab20fcb51267fdace50fbe3494c31e645", + "reference": "ee8d807ab20fcb51267fdace50fbe3494c31e645", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.5-dev" } }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\HttpClient\\": "" + }, + "exclude-from-classmap": [ + "/Test/" + ] + }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { - "name": "Florent Morselli", - "homepage": "https://github.com/Spomky" + "name": "Nicolas Grekas", + "email": "p@tchwork.com" }, { - "name": "All contributors", - "homepage": "https://github.com/Spomky-Labs/otphp/contributors" + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" } ], - "description": "A PHP library for generating one time passwords according to RFC 4226 (HOTP Algorithm) and the RFC 6238 (TOTP Algorithm) and compatible with Google Authenticator", - "homepage": "https://github.com/Spomky-Labs/otphp", + "description": "Generic abstractions related to HTTP clients", + "homepage": "https://symfony.com", "keywords": [ - "FreeOTP", - "RFC 4226", - "RFC 6238", - "google authenticator", - "hotp", - "otp", - "totp" + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" ], "support": { - "issues": "https://github.com/Spomky-Labs/otphp/issues", - "source": "https://github.com/Spomky-Labs/otphp/tree/v10.0.3" + "source": "https://github.com/symfony/http-client-contracts/tree/v3.5.2" }, - "time": "2022-03-17T08:00:35+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-12-07T08:49:48+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.31.0", + "version": "v1.32.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6d857f4d76bd4b343eac26d6b539585d2bc56493", + "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493", + "shasum": "" + }, + "require": { + "ext-iconv": "*", + "php": ">=7.2" + }, + "provide": { + "ext-mbstring": "*" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.32.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-12-23T08:48:59+00:00" + }, + { + "name": "symfony/polyfill-php82", + "version": "v1.32.0", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341" + "url": "https://github.com/symfony/polyfill-php82.git", + "reference": "5d2ed36f7734637dacc025f179698031951b1692" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/85181ba99b2345b0ef10ce42ecac37612d9fd341", - "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341", + "url": "https://api.github.com/repos/symfony/polyfill-php82/zipball/5d2ed36f7734637dacc025f179698031951b1692", + "reference": "5d2ed36f7734637dacc025f179698031951b1692", "shasum": "" }, "require": { "php": ">=7.2" }, - "provide": { - "ext-mbstring": "*" - }, - "suggest": { - "ext-mbstring": "For best performance" - }, "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -1163,8 +2834,11 @@ "bootstrap.php" ], "psr-4": { - "Symfony\\Polyfill\\Mbstring\\": "" - } + "Symfony\\Polyfill\\Php82\\": "" + }, + "classmap": [ + "Resources/stubs" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1180,17 +2854,16 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony polyfill for the Mbstring extension", + "description": "Symfony polyfill backporting some PHP 8.2+ features to lower PHP versions", "homepage": "https://symfony.com", "keywords": [ "compatibility", - "mbstring", "polyfill", "portable", "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-php82/tree/v1.32.0" }, "funding": [ { @@ -1209,38 +2882,43 @@ "time": "2024-09-09T11:45:10+00:00" }, { - "name": "symfony/polyfill-php80", - "version": "v1.31.0", + "name": "symfony/service-contracts", + "version": "v3.5.1", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8" + "url": "https://github.com/symfony/service-contracts.git", + "reference": "e53260aabf78fb3d63f8d79d69ece59f80d5eda0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", - "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/e53260aabf78fb3d63f8d79d69ece59f80d5eda0", + "reference": "e53260aabf78fb3d63f8d79d69ece59f80d5eda0", "shasum": "" }, "require": { - "php": ">=7.2" + "php": ">=8.1", + "psr/container": "^1.1|^2.0", + "symfony/deprecation-contracts": "^2.5|^3" + }, + "conflict": { + "ext-psr": "<1.1|>=2" }, "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.5-dev" } }, "autoload": { - "files": [ - "bootstrap.php" - ], "psr-4": { - "Symfony\\Polyfill\\Php80\\": "" + "Symfony\\Contracts\\Service\\": "" }, - "classmap": [ - "Resources/stubs" + "exclude-from-classmap": [ + "/Test/" ] }, "notification-url": "https://packagist.org/downloads/", @@ -1248,10 +2926,6 @@ "MIT" ], "authors": [ - { - "name": "Ion Bazan", - "email": "ion.bazan@gmail.com" - }, { "name": "Nicolas Grekas", "email": "p@tchwork.com" @@ -1261,16 +2935,18 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "description": "Generic abstractions related to writing services", "homepage": "https://symfony.com", "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.31.0" + "source": "https://github.com/symfony/service-contracts/tree/v3.5.1" }, "funding": [ { @@ -1286,7 +2962,59 @@ "type": "tidelift" } ], - "time": "2024-09-09T11:45:10+00:00" + "time": "2024-09-25T14:20:29+00:00" + }, + { + "name": "tbachert/spi", + "version": "v1.0.3", + "source": { + "type": "git", + "url": "https://github.com/Nevay/spi.git", + "reference": "506a79c98e1a51522e76ee921ccb6c62d52faf3a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Nevay/spi/zipball/506a79c98e1a51522e76ee921ccb6c62d52faf3a", + "reference": "506a79c98e1a51522e76ee921ccb6c62d52faf3a", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^2.0", + "composer/semver": "^1.0 || ^2.0 || ^3.0", + "php": "^8.1" + }, + "require-dev": { + "composer/composer": "^2.0", + "infection/infection": "^0.27.9", + "phpunit/phpunit": "^10.5", + "psalm/phar": "^5.18" + }, + "type": "composer-plugin", + "extra": { + "class": "Nevay\\SPI\\Composer\\Plugin", + "branch-alias": { + "dev-main": "0.2.x-dev" + }, + "plugin-optional": true + }, + "autoload": { + "psr-4": { + "Nevay\\SPI\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "description": "Service provider loading facility", + "keywords": [ + "service provider" + ], + "support": { + "issues": "https://github.com/Nevay/spi/issues", + "source": "https://github.com/Nevay/spi/tree/v1.0.3" + }, + "time": "2025-04-02T19:38:14+00:00" }, { "name": "thecodingmachine/safe", @@ -1429,16 +3157,16 @@ }, { "name": "utopia-php/abuse", - "version": "0.43.0", + "version": "0.52.0", "source": { "type": "git", "url": "https://github.com/utopia-php/abuse.git", - "reference": "6346a3b4c5177a43160035a7289e30fdfb0790d6" + "reference": "a0d6421e7e5baa3ac02755496dca9fdeaa814b93" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/abuse/zipball/6346a3b4c5177a43160035a7289e30fdfb0790d6", - "reference": "6346a3b4c5177a43160035a7289e30fdfb0790d6", + "url": "https://api.github.com/repos/utopia-php/abuse/zipball/a0d6421e7e5baa3ac02755496dca9fdeaa814b93", + "reference": "a0d6421e7e5baa3ac02755496dca9fdeaa814b93", "shasum": "" }, "require": { @@ -1446,13 +3174,13 @@ "ext-pdo": "*", "ext-redis": "*", "php": ">=8.0", - "utopia-php/database": "0.53.*" + "utopia-php/database": "0.*.*" }, "require-dev": { - "laravel/pint": "1.5.*", - "phpbench/phpbench": "^1.2", - "phpstan/phpstan": "^1.9", - "phpunit/phpunit": "^9.4" + "laravel/pint": "1.*", + "phpbench/phpbench": "1.*", + "phpstan/phpstan": "1.*", + "phpunit/phpunit": "9.*" }, "type": "library", "autoload": { @@ -1474,9 +3202,9 @@ ], "support": { "issues": "https://github.com/utopia-php/abuse/issues", - "source": "https://github.com/utopia-php/abuse/tree/0.43.0" + "source": "https://github.com/utopia-php/abuse/tree/0.52.0" }, - "time": "2024-08-30T05:17:23+00:00" + "time": "2025-03-06T03:48:29+00:00" }, { "name": "utopia-php/analytics", @@ -1526,26 +3254,26 @@ }, { "name": "utopia-php/audit", - "version": "0.43.0", + "version": "0.55.0", "source": { "type": "git", "url": "https://github.com/utopia-php/audit.git", - "reference": "cef22b5dc6a6d28fcd522f41c7bf7ded4a4dfd3e" + "reference": "9f8cfe5fa5d5011b8dbf93b710236dfa91dc5518" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/audit/zipball/cef22b5dc6a6d28fcd522f41c7bf7ded4a4dfd3e", - "reference": "cef22b5dc6a6d28fcd522f41c7bf7ded4a4dfd3e", + "url": "https://api.github.com/repos/utopia-php/audit/zipball/9f8cfe5fa5d5011b8dbf93b710236dfa91dc5518", + "reference": "9f8cfe5fa5d5011b8dbf93b710236dfa91dc5518", "shasum": "" }, "require": { "php": ">=8.0", - "utopia-php/database": "0.53.*" + "utopia-php/database": "0.*.*" }, "require-dev": { - "laravel/pint": "1.5.*", - "phpstan/phpstan": "^1.8", - "phpunit/phpunit": "^9.3" + "laravel/pint": "1.*", + "phpstan/phpstan": "1.*", + "phpunit/phpunit": "9.*" }, "type": "library", "autoload": { @@ -1567,33 +3295,35 @@ ], "support": { "issues": "https://github.com/utopia-php/audit/issues", - "source": "https://github.com/utopia-php/audit/tree/0.43.0" + "source": "https://github.com/utopia-php/audit/tree/0.55.0" }, - "time": "2024-08-30T05:17:36+00:00" + "time": "2025-03-06T03:47:47+00:00" }, { "name": "utopia-php/cache", - "version": "0.10.2", + "version": "0.13.1", "source": { "type": "git", "url": "https://github.com/utopia-php/cache.git", - "reference": "b22c6eb6d308de246b023efd0fc9758aee8b8247" + "reference": "97220cb3b3822b166ee016d1646e2ae2815dc540" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/cache/zipball/b22c6eb6d308de246b023efd0fc9758aee8b8247", - "reference": "b22c6eb6d308de246b023efd0fc9758aee8b8247", + "url": "https://api.github.com/repos/utopia-php/cache/zipball/97220cb3b3822b166ee016d1646e2ae2815dc540", + "reference": "97220cb3b3822b166ee016d1646e2ae2815dc540", "shasum": "" }, "require": { "ext-json": "*", "ext-memcached": "*", "ext-redis": "*", - "php": ">=8.0" + "php": ">=8.0", + "utopia-php/pools": "0.8.*", + "utopia-php/telemetry": "0.1.*" }, "require-dev": { "laravel/pint": "1.2.*", - "phpstan/phpstan": "1.9.x-dev", + "phpstan/phpstan": "^1.12", "phpunit/phpunit": "^9.3", "vimeo/psalm": "4.13.1" }, @@ -1617,22 +3347,22 @@ ], "support": { "issues": "https://github.com/utopia-php/cache/issues", - "source": "https://github.com/utopia-php/cache/tree/0.10.2" + "source": "https://github.com/utopia-php/cache/tree/0.13.1" }, - "time": "2024-06-25T20:36:35+00:00" + "time": "2025-05-09T14:43:52+00:00" }, { "name": "utopia-php/cli", - "version": "0.15.0", + "version": "0.15.2", "source": { "type": "git", "url": "https://github.com/utopia-php/cli.git", - "reference": "ccb7c8125ffe0254fef8f25744bfa376eb7bd0ea" + "reference": "da00ff6b8b29a826a1794002ae43442cdf3a0f5f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/cli/zipball/ccb7c8125ffe0254fef8f25744bfa376eb7bd0ea", - "reference": "ccb7c8125ffe0254fef8f25744bfa376eb7bd0ea", + "url": "https://api.github.com/repos/utopia-php/cli/zipball/da00ff6b8b29a826a1794002ae43442cdf3a0f5f", + "reference": "da00ff6b8b29a826a1794002ae43442cdf3a0f5f", "shasum": "" }, "require": { @@ -1666,9 +3396,55 @@ ], "support": { "issues": "https://github.com/utopia-php/cli/issues", - "source": "https://github.com/utopia-php/cli/tree/0.15.0" + "source": "https://github.com/utopia-php/cli/tree/0.15.2" + }, + "time": "2025-04-15T10:08:48+00:00" + }, + { + "name": "utopia-php/compression", + "version": "0.1.3", + "source": { + "type": "git", + "url": "https://github.com/utopia-php/compression.git", + "reference": "66f093557ba66d98245e562036182016c7dcfe8a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/utopia-php/compression/zipball/66f093557ba66d98245e562036182016c7dcfe8a", + "reference": "66f093557ba66d98245e562036182016c7dcfe8a", + "shasum": "" + }, + "require": { + "php": ">=8.0" + }, + "require-dev": { + "laravel/pint": "1.2.*", + "phpunit/phpunit": "^9.3", + "vimeo/psalm": "4.0.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "Utopia\\Compression\\": "src/Compression" + } }, - "time": "2023-03-01T05:55:14+00:00" + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A simple Compression library to handle file compression", + "keywords": [ + "compression", + "framework", + "php", + "upf", + "utopia" + ], + "support": { + "issues": "https://github.com/utopia-php/compression/issues", + "source": "https://github.com/utopia-php/compression/tree/0.1.3" + }, + "time": "2025-01-15T15:15:51+00:00" }, { "name": "utopia-php/config", @@ -1723,32 +3499,32 @@ }, { "name": "utopia-php/database", - "version": "0.53.4", + "version": "0.69.5", "source": { "type": "git", "url": "https://github.com/utopia-php/database.git", - "reference": "36a0e89d983afc1368635282e04fa762220a1d2a" + "reference": "4abe53609dfc23b2ea82884d12b149df6a8af2f5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/database/zipball/36a0e89d983afc1368635282e04fa762220a1d2a", - "reference": "36a0e89d983afc1368635282e04fa762220a1d2a", + "url": "https://api.github.com/repos/utopia-php/database/zipball/4abe53609dfc23b2ea82884d12b149df6a8af2f5", + "reference": "4abe53609dfc23b2ea82884d12b149df6a8af2f5", "shasum": "" }, "require": { "ext-mbstring": "*", "ext-pdo": "*", - "php": ">=8.0", - "utopia-php/cache": "0.10.*", + "php": ">=8.1", + "utopia-php/cache": "0.13.*", "utopia-php/framework": "0.33.*", - "utopia-php/mongo": "0.3.*" + "utopia-php/pools": "0.8.*" }, "require-dev": { "fakerphp/faker": "1.23.*", - "laravel/pint": "1.17.*", - "pcov/clobber": "2.0.*", - "phpstan/phpstan": "1.11.*", - "phpunit/phpunit": "9.6.*", + "laravel/pint": "1.*", + "pcov/clobber": "2.*", + "phpstan/phpstan": "1.*", + "phpunit/phpunit": "9.*", "rregeer/phpunit-coverage-check": "0.3.*", "swoole/ide-helper": "5.1.3", "utopia-php/cli": "0.14.*" @@ -1773,9 +3549,9 @@ ], "support": { "issues": "https://github.com/utopia-php/database/issues", - "source": "https://github.com/utopia-php/database/tree/0.53.4" + "source": "https://github.com/utopia-php/database/tree/0.69.5" }, - "time": "2024-09-10T10:19:57+00:00" + "time": "2025-05-17T08:01:51+00:00" }, { "name": "utopia-php/domains", @@ -1886,16 +3662,16 @@ }, { "name": "utopia-php/fetch", - "version": "0.2.1", + "version": "0.4.2", "source": { "type": "git", "url": "https://github.com/utopia-php/fetch.git", - "reference": "1423c0ee3eef944d816ca6e31706895b585aea82" + "reference": "83986d1be75a2fae4e684107fe70dd78a8e19b77" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/fetch/zipball/1423c0ee3eef944d816ca6e31706895b585aea82", - "reference": "1423c0ee3eef944d816ca6e31706895b585aea82", + "url": "https://api.github.com/repos/utopia-php/fetch/zipball/83986d1be75a2fae4e684107fe70dd78a8e19b77", + "reference": "83986d1be75a2fae4e684107fe70dd78a8e19b77", "shasum": "" }, "require": { @@ -1919,26 +3695,28 @@ "description": "A simple library that provides an interface for making HTTP Requests.", "support": { "issues": "https://github.com/utopia-php/fetch/issues", - "source": "https://github.com/utopia-php/fetch/tree/0.2.1" + "source": "https://github.com/utopia-php/fetch/tree/0.4.2" }, - "time": "2024-03-18T11:50:59+00:00" + "time": "2025-04-25T13:48:02+00:00" }, { "name": "utopia-php/framework", - "version": "0.33.8", + "version": "0.33.20", "source": { "type": "git", "url": "https://github.com/utopia-php/http.git", - "reference": "a7f577540a25cb90896fef2b64767bf8d700f3c5" + "reference": "e1c7ab4e0b5b0a9a70256b1e00912e101e76a131" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/http/zipball/a7f577540a25cb90896fef2b64767bf8d700f3c5", - "reference": "a7f577540a25cb90896fef2b64767bf8d700f3c5", + "url": "https://api.github.com/repos/utopia-php/http/zipball/e1c7ab4e0b5b0a9a70256b1e00912e101e76a131", + "reference": "e1c7ab4e0b5b0a9a70256b1e00912e101e76a131", "shasum": "" }, "require": { - "php": ">=8.0" + "php": ">=8.1", + "utopia-php/compression": "0.1.*", + "utopia-php/telemetry": "0.1.*" }, "require-dev": { "laravel/pint": "^1.2", @@ -1964,31 +3742,32 @@ ], "support": { "issues": "https://github.com/utopia-php/http/issues", - "source": "https://github.com/utopia-php/http/tree/0.33.8" + "source": "https://github.com/utopia-php/http/tree/0.33.20" }, - "time": "2024-08-15T14:10:09+00:00" + "time": "2025-05-18T23:51:21+00:00" }, { "name": "utopia-php/image", - "version": "0.6.1", + "version": "0.8.3", "source": { "type": "git", "url": "https://github.com/utopia-php/image.git", - "reference": "2d74c27e69e65a93cf94a16586598a04fe435bf0" + "reference": "8820b0e53b3636b7bdf815e92394d333fef06f26" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/image/zipball/2d74c27e69e65a93cf94a16586598a04fe435bf0", - "reference": "2d74c27e69e65a93cf94a16586598a04fe435bf0", + "url": "https://api.github.com/repos/utopia-php/image/zipball/8820b0e53b3636b7bdf815e92394d333fef06f26", + "reference": "8820b0e53b3636b7bdf815e92394d333fef06f26", "shasum": "" }, "require": { + "ext-gd": "*", "ext-imagick": "*", - "php": ">=8.0" + "php": ">=8.1" }, "require-dev": { "laravel/pint": "1.2.*", - "phpstan/phpstan": "1.9.x-dev", + "phpstan/phpstan": "^1.10.0", "phpunit/phpunit": "^9.3", "vimeo/psalm": "4.13.1" }, @@ -2012,9 +3791,9 @@ ], "support": { "issues": "https://github.com/utopia-php/image/issues", - "source": "https://github.com/utopia-php/image/tree/0.6.1" + "source": "https://github.com/utopia-php/image/tree/0.8.3" }, - "time": "2024-02-05T13:31:44+00:00" + "time": "2025-05-15T10:39:28+00:00" }, { "name": "utopia-php/locale", @@ -2069,16 +3848,16 @@ }, { "name": "utopia-php/logger", - "version": "0.6.0", + "version": "0.6.2", "source": { "type": "git", "url": "https://github.com/utopia-php/logger.git", - "reference": "a2d1daeeb8f61fdec6d851950d9a021a3d05c9f9" + "reference": "25b5bd2ad8bb51292f76332faa7034644fd0941d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/logger/zipball/a2d1daeeb8f61fdec6d851950d9a021a3d05c9f9", - "reference": "a2d1daeeb8f61fdec6d851950d9a021a3d05c9f9", + "url": "https://api.github.com/repos/utopia-php/logger/zipball/25b5bd2ad8bb51292f76332faa7034644fd0941d", + "reference": "25b5bd2ad8bb51292f76332faa7034644fd0941d", "shasum": "" }, "require": { @@ -2117,22 +3896,22 @@ ], "support": { "issues": "https://github.com/utopia-php/logger/issues", - "source": "https://github.com/utopia-php/logger/tree/0.6.0" + "source": "https://github.com/utopia-php/logger/tree/0.6.2" }, - "time": "2024-05-23T13:37:54+00:00" + "time": "2024-10-14T16:02:49+00:00" }, { "name": "utopia-php/messaging", - "version": "0.12.0", + "version": "0.17.0", "source": { "type": "git", "url": "https://github.com/utopia-php/messaging.git", - "reference": "6e466d3511981291843c6ebf9ce3f44fc75e37b0" + "reference": "c51915d0e030db3a3add37f1561751d18b2d9a85" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/messaging/zipball/6e466d3511981291843c6ebf9ce3f44fc75e37b0", - "reference": "6e466d3511981291843c6ebf9ce3f44fc75e37b0", + "url": "https://api.github.com/repos/utopia-php/messaging/zipball/c51915d0e030db3a3add37f1561751d18b2d9a85", + "reference": "c51915d0e030db3a3add37f1561751d18b2d9a85", "shasum": "" }, "require": { @@ -2143,9 +3922,9 @@ "phpmailer/phpmailer": "6.9.1" }, "require-dev": { - "laravel/pint": "1.13.11", - "phpstan/phpstan": "1.10.58", - "phpunit/phpunit": "10.5.10" + "laravel/pint": "1.*", + "phpstan/phpstan": "1.*", + "phpunit/phpunit": "11.*" }, "type": "library", "autoload": { @@ -2168,32 +3947,40 @@ ], "support": { "issues": "https://github.com/utopia-php/messaging/issues", - "source": "https://github.com/utopia-php/messaging/tree/0.12.0" + "source": "https://github.com/utopia-php/messaging/tree/0.17.0" }, - "time": "2024-05-30T14:58:25+00:00" + "time": "2025-05-12T16:14:08+00:00" }, { "name": "utopia-php/migration", - "version": "0.5.2", + "version": "0.9.3", "source": { "type": "git", "url": "https://github.com/utopia-php/migration.git", - "reference": "f18d44d4459f78c292dac9edde856fd156fe497a" + "reference": "e518d39eb550fde36bc5cf06c9bd7b2faf5dbedd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/migration/zipball/f18d44d4459f78c292dac9edde856fd156fe497a", - "reference": "f18d44d4459f78c292dac9edde856fd156fe497a", + "url": "https://api.github.com/repos/utopia-php/migration/zipball/e518d39eb550fde36bc5cf06c9bd7b2faf5dbedd", + "reference": "e518d39eb550fde36bc5cf06c9bd7b2faf5dbedd", "shasum": "" }, "require": { - "appwrite/appwrite": "10.1.0", - "php": "8.*" + "appwrite/appwrite": "11.*", + "ext-curl": "*", + "ext-openssl": "*", + "php": ">=8.1", + "utopia-php/database": "0.*.*", + "utopia-php/dsn": "0.2.*", + "utopia-php/framework": "0.33.*", + "utopia-php/storage": "0.18.*" }, "require-dev": { + "ext-pdo": "*", "laravel/pint": "1.*", - "phpunit/phpunit": "9.*", - "utopia-php/cli": "^0.18.0", + "phpstan/phpstan": "1.*", + "phpunit/phpunit": "11.*", + "utopia-php/cli": "0.16.*", "vlucas/phpdotenv": "5.*" }, "type": "library", @@ -2216,69 +4003,9 @@ ], "support": { "issues": "https://github.com/utopia-php/migration/issues", - "source": "https://github.com/utopia-php/migration/tree/0.5.2" - }, - "time": "2024-07-22T09:27:07+00:00" - }, - { - "name": "utopia-php/mongo", - "version": "0.3.1", - "source": { - "type": "git", - "url": "https://github.com/utopia-php/mongo.git", - "reference": "52326a9a43e2d27ff0c15c48ba746dacbe9a7aee" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/utopia-php/mongo/zipball/52326a9a43e2d27ff0c15c48ba746dacbe9a7aee", - "reference": "52326a9a43e2d27ff0c15c48ba746dacbe9a7aee", - "shasum": "" - }, - "require": { - "ext-mongodb": "*", - "mongodb/mongodb": "1.10.0", - "php": ">=8.0" - }, - "require-dev": { - "fakerphp/faker": "^1.14", - "laravel/pint": "1.2.*", - "phpstan/phpstan": "1.8.*", - "phpunit/phpunit": "^9.4", - "swoole/ide-helper": "4.8.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "Utopia\\Mongo\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Eldad Fux", - "email": "eldad@appwrite.io" - }, - { - "name": "Wess", - "email": "wess@appwrite.io" - } - ], - "description": "A simple library to manage Mongo database", - "keywords": [ - "database", - "mongo", - "php", - "upf", - "utopia" - ], - "support": { - "issues": "https://github.com/utopia-php/mongo/issues", - "source": "https://github.com/utopia-php/mongo/tree/0.3.1" + "source": "https://github.com/utopia-php/migration/tree/0.9.3" }, - "time": "2023-09-01T17:25:28+00:00" + "time": "2025-05-01T05:41:26+00:00" }, { "name": "utopia-php/orchestration", @@ -2332,16 +4059,16 @@ }, { "name": "utopia-php/platform", - "version": "0.7.0", + "version": "0.7.7", "source": { "type": "git", "url": "https://github.com/utopia-php/platform.git", - "reference": "beeea0f2c9bce14a6869fc5c87a1047cdecb5c52" + "reference": "8c43cd866148a7c4c495e3401268429e338004b3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/platform/zipball/beeea0f2c9bce14a6869fc5c87a1047cdecb5c52", - "reference": "beeea0f2c9bce14a6869fc5c87a1047cdecb5c52", + "url": "https://api.github.com/repos/utopia-php/platform/zipball/8c43cd866148a7c4c495e3401268429e338004b3", + "reference": "8c43cd866148a7c4c495e3401268429e338004b3", "shasum": "" }, "require": { @@ -2350,11 +4077,11 @@ "php": ">=8.0", "utopia-php/cli": "0.15.*", "utopia-php/framework": "0.33.*", - "utopia-php/queue": "0.7.*" + "utopia-php/queue": "0.10.*" }, "require-dev": { - "laravel/pint": "1.2.*", - "phpunit/phpunit": "^9.3" + "laravel/pint": "1.*", + "phpunit/phpunit": "9.*" }, "type": "library", "autoload": { @@ -2376,31 +4103,32 @@ ], "support": { "issues": "https://github.com/utopia-php/platform/issues", - "source": "https://github.com/utopia-php/platform/tree/0.7.0" + "source": "https://github.com/utopia-php/platform/tree/0.7.7" }, - "time": "2024-05-08T17:00:55+00:00" + "time": "2025-05-20T09:23:44+00:00" }, { "name": "utopia-php/pools", - "version": "0.5.0", + "version": "0.8.2", "source": { "type": "git", "url": "https://github.com/utopia-php/pools.git", - "reference": "6f716a213a08db95eda1b5dddfa90983c1834817" + "reference": "05c67aba42eb68ac65489cc1e7fc5db83db2dd4d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/pools/zipball/6f716a213a08db95eda1b5dddfa90983c1834817", - "reference": "6f716a213a08db95eda1b5dddfa90983c1834817", + "url": "https://api.github.com/repos/utopia-php/pools/zipball/05c67aba42eb68ac65489cc1e7fc5db83db2dd4d", + "reference": "05c67aba42eb68ac65489cc1e7fc5db83db2dd4d", "shasum": "" }, "require": { - "php": ">=8.0" + "php": ">=8.3", + "utopia-php/telemetry": "0.1.*" }, "require-dev": { - "laravel/pint": "1.2.*", - "phpstan/phpstan": "1.8.*", - "phpunit/phpunit": "^9.3" + "laravel/pint": "1.*", + "phpstan/phpstan": "1.*", + "phpunit/phpunit": "11.*" }, "type": "library", "autoload": { @@ -2427,9 +4155,9 @@ ], "support": { "issues": "https://github.com/utopia-php/pools/issues", - "source": "https://github.com/utopia-php/pools/tree/0.5.0" + "source": "https://github.com/utopia-php/pools/tree/0.8.2" }, - "time": "2024-04-19T11:11:54+00:00" + "time": "2025-04-17T02:04:54+00:00" }, { "name": "utopia-php/preloader", @@ -2486,24 +4214,29 @@ }, { "name": "utopia-php/queue", - "version": "0.7.0", + "version": "0.10.0", "source": { "type": "git", "url": "https://github.com/utopia-php/queue.git", - "reference": "917565256eb94bcab7246f7a746b1a486813761b" + "reference": "0eccc559168ea72241c39a4c482d868314666be1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/queue/zipball/917565256eb94bcab7246f7a746b1a486813761b", - "reference": "917565256eb94bcab7246f7a746b1a486813761b", + "url": "https://api.github.com/repos/utopia-php/queue/zipball/0eccc559168ea72241c39a4c482d868314666be1", + "reference": "0eccc559168ea72241c39a4c482d868314666be1", "shasum": "" }, "require": { - "php": ">=8.0", + "php": ">=8.3", + "php-amqplib/php-amqplib": "^3.7", "utopia-php/cli": "0.15.*", - "utopia-php/framework": "0.*.*" + "utopia-php/fetch": "0.4.*", + "utopia-php/framework": "0.33.*", + "utopia-php/pools": "0.8.*", + "utopia-php/telemetry": "0.1.*" }, "require-dev": { + "ext-redis": "*", "laravel/pint": "^0.2.3", "phpstan/phpstan": "^1.8", "phpunit/phpunit": "^9.5.5", @@ -2541,9 +4274,9 @@ ], "support": { "issues": "https://github.com/utopia-php/queue/issues", - "source": "https://github.com/utopia-php/queue/tree/0.7.0" + "source": "https://github.com/utopia-php/queue/tree/0.10.0" }, - "time": "2024-01-17T19:00:43+00:00" + "time": "2025-04-17T12:15:52+00:00" }, { "name": "utopia-php/registry", @@ -2599,29 +4332,32 @@ }, { "name": "utopia-php/storage", - "version": "0.18.5", + "version": "0.18.12", "source": { "type": "git", "url": "https://github.com/utopia-php/storage.git", - "reference": "7d355c5e3ccc8ecebc0266f8ddd30088a43be919" + "reference": "9a2556c39b5f4d9f8e79111fd34ec889b7bb1e97" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/storage/zipball/7d355c5e3ccc8ecebc0266f8ddd30088a43be919", - "reference": "7d355c5e3ccc8ecebc0266f8ddd30088a43be919", + "url": "https://api.github.com/repos/utopia-php/storage/zipball/9a2556c39b5f4d9f8e79111fd34ec889b7bb1e97", + "reference": "9a2556c39b5f4d9f8e79111fd34ec889b7bb1e97", "shasum": "" }, "require": { "ext-brotli": "*", + "ext-curl": "*", "ext-fileinfo": "*", "ext-lz4": "*", + "ext-simplexml": "*", "ext-snappy": "*", "ext-xz": "*", "ext-zlib": "*", "ext-zstd": "*", - "php": ">=8.0", + "php": ">=8.1", "utopia-php/framework": "0.*.*", - "utopia-php/system": "0.*.*" + "utopia-php/system": "0.*.*", + "utopia-php/telemetry": "0.1.*" }, "require-dev": { "laravel/pint": "1.2.*", @@ -2648,22 +4384,22 @@ ], "support": { "issues": "https://github.com/utopia-php/storage/issues", - "source": "https://github.com/utopia-php/storage/tree/0.18.5" + "source": "https://github.com/utopia-php/storage/tree/0.18.12" }, - "time": "2024-09-04T08:57:27+00:00" + "time": "2025-05-15T07:55:58+00:00" }, { "name": "utopia-php/swoole", - "version": "0.8.2", + "version": "0.8.3", "source": { "type": "git", "url": "https://github.com/utopia-php/swoole.git", - "reference": "5fa9d42c608ad46a4ce42a6d2b2eae00592fccd4" + "reference": "1af73dd3e73987cf729c7db399054e4a70befd99" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/swoole/zipball/5fa9d42c608ad46a4ce42a6d2b2eae00592fccd4", - "reference": "5fa9d42c608ad46a4ce42a6d2b2eae00592fccd4", + "url": "https://api.github.com/repos/utopia-php/swoole/zipball/1af73dd3e73987cf729c7db399054e4a70befd99", + "reference": "1af73dd3e73987cf729c7db399054e4a70befd99", "shasum": "" }, "require": { @@ -2699,22 +4435,22 @@ ], "support": { "issues": "https://github.com/utopia-php/swoole/issues", - "source": "https://github.com/utopia-php/swoole/tree/0.8.2" + "source": "https://github.com/utopia-php/swoole/tree/0.8.3" }, - "time": "2024-02-01T14:54:12+00:00" + "time": "2025-03-26T10:09:05+00:00" }, { "name": "utopia-php/system", - "version": "0.8.0", + "version": "0.9.0", "source": { "type": "git", "url": "https://github.com/utopia-php/system.git", - "reference": "a2cbfb3c69b9ecb8b6f06c5774f3cf279ea7665e" + "reference": "8e4a7edaf2dfeb4c9524e9f766d27754f2c4b64d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/system/zipball/a2cbfb3c69b9ecb8b6f06c5774f3cf279ea7665e", - "reference": "a2cbfb3c69b9ecb8b6f06c5774f3cf279ea7665e", + "url": "https://api.github.com/repos/utopia-php/system/zipball/8e4a7edaf2dfeb4c9524e9f766d27754f2c4b64d", + "reference": "8e4a7edaf2dfeb4c9524e9f766d27754f2c4b64d", "shasum": "" }, "require": { @@ -2755,33 +4491,84 @@ ], "support": { "issues": "https://github.com/utopia-php/system/issues", - "source": "https://github.com/utopia-php/system/tree/0.8.0" + "source": "https://github.com/utopia-php/system/tree/0.9.0" + }, + "time": "2024-10-09T14:44:01+00:00" + }, + { + "name": "utopia-php/telemetry", + "version": "0.1.1", + "source": { + "type": "git", + "url": "https://github.com/utopia-php/telemetry.git", + "reference": "437f0021777f0e575dfb9e8a1a081b3aed75e33f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/utopia-php/telemetry/zipball/437f0021777f0e575dfb9e8a1a081b3aed75e33f", + "reference": "437f0021777f0e575dfb9e8a1a081b3aed75e33f", + "shasum": "" + }, + "require": { + "ext-opentelemetry": "*", + "ext-protobuf": "*", + "nyholm/psr7": "^1.8", + "open-telemetry/exporter-otlp": "^1.1", + "open-telemetry/sdk": "^1.1", + "php": ">=8.0", + "symfony/http-client": "^7.1" + }, + "require-dev": { + "laravel/pint": "^1.2", + "phpbench/phpbench": "^1.2", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^9.5.25" + }, + "type": "library", + "autoload": { + "psr-4": { + "Utopia\\Telemetry\\": "src/Telemetry" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "keywords": [ + "framework", + "php", + "upf" + ], + "support": { + "issues": "https://github.com/utopia-php/telemetry/issues", + "source": "https://github.com/utopia-php/telemetry/tree/0.1.1" }, - "time": "2024-04-01T10:22:28+00:00" + "time": "2025-03-17T11:57:52+00:00" }, { "name": "utopia-php/vcs", - "version": "0.8.2", + "version": "0.9.5", "source": { "type": "git", "url": "https://github.com/utopia-php/vcs.git", - "reference": "eb9b7eade1a46a4f660e0d5a6304f7fa26ec9d18" + "reference": "055956545ca7ab4e8688df5de1df3e2833859793" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/vcs/zipball/eb9b7eade1a46a4f660e0d5a6304f7fa26ec9d18", - "reference": "eb9b7eade1a46a4f660e0d5a6304f7fa26ec9d18", + "url": "https://api.github.com/repos/utopia-php/vcs/zipball/055956545ca7ab4e8688df5de1df3e2833859793", + "reference": "055956545ca7ab4e8688df5de1df3e2833859793", "shasum": "" }, "require": { "adhocore/jwt": "^1.1", "php": ">=8.0", - "utopia-php/cache": "^0.10.0", - "utopia-php/framework": "0.*.*" + "utopia-php/cache": "0.13.*", + "utopia-php/framework": "0.*.*", + "utopia-php/system": "0.9.*" }, "require-dev": { - "laravel/pint": "1.2.*", - "phpstan/phpstan": "1.8.*", + "laravel/pint": "1.*.*", + "phpstan/phpstan": "1.*.*", "phpunit/phpunit": "^9.4" }, "type": "library", @@ -2804,33 +4591,34 @@ ], "support": { "issues": "https://github.com/utopia-php/vcs/issues", - "source": "https://github.com/utopia-php/vcs/tree/0.8.2" + "source": "https://github.com/utopia-php/vcs/tree/0.9.5" }, - "time": "2024-08-13T14:36:30+00:00" + "time": "2025-04-17T04:38:49+00:00" }, { "name": "utopia-php/websocket", - "version": "0.1.0", + "version": "0.3.1", "source": { "type": "git", "url": "https://github.com/utopia-php/websocket.git", - "reference": "51fcb86171400d8aa40d76c54593481fd273dab5" + "reference": "77004ba9f66a0ab6eb840a85b2af332fca8f6bd9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/websocket/zipball/51fcb86171400d8aa40d76c54593481fd273dab5", - "reference": "51fcb86171400d8aa40d76c54593481fd273dab5", + "url": "https://api.github.com/repos/utopia-php/websocket/zipball/77004ba9f66a0ab6eb840a85b2af332fca8f6bd9", + "reference": "77004ba9f66a0ab6eb840a85b2af332fca8f6bd9", "shasum": "" }, "require": { "php": ">=8.0" }, "require-dev": { + "laravel/pint": "^1.15", + "phpstan/phpstan": "^1.12", "phpunit/phpunit": "^9.5.5", - "swoole/ide-helper": "4.6.6", + "swoole/ide-helper": "5.1.2", "textalk/websocket": "1.5.2", - "vimeo/psalm": "^4.8.1", - "workerman/workerman": "^4.0" + "workerman/workerman": "4.1.*" }, "type": "library", "autoload": { @@ -2838,19 +4626,9 @@ "Utopia\\WebSocket\\": "src/WebSocket" } }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Eldad Fux", - "email": "eldad@appwrite.io" - }, - { - "name": "Torsten Dittmann", - "email": "torsten@appwrite.io" - } + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" ], "description": "A simple abstraction for WebSocket servers.", "keywords": [ @@ -2862,9 +4640,9 @@ ], "support": { "issues": "https://github.com/utopia-php/websocket/issues", - "source": "https://github.com/utopia-php/websocket/tree/0.1.0" + "source": "https://github.com/utopia-php/websocket/tree/0.3.1" }, - "time": "2021-12-20T10:50:09+00:00" + "time": "2025-05-09T12:57:42+00:00" }, { "name": "webmozart/assert", @@ -2993,16 +4771,16 @@ "packages-dev": [ { "name": "appwrite/sdk-generator", - "version": "0.39.21", + "version": "0.40.18", "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator.git", - "reference": "9754b190d33aaad56fdb8defc94f90248184c5ac" + "reference": "38de4b9c58112d7e83eb75955994c8412a401093" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/9754b190d33aaad56fdb8defc94f90248184c5ac", - "reference": "9754b190d33aaad56fdb8defc94f90248184c5ac", + "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/38de4b9c58112d7e83eb75955994c8412a401093", + "reference": "38de4b9c58112d7e83eb75955994c8412a401093", "shasum": "" }, "require": { @@ -3010,7 +4788,7 @@ "ext-json": "*", "ext-mbstring": "*", "matthiasmullie/minify": "1.3.*", - "php": ">=8.0", + "php": ">=8.3", "twig/twig": "3.14.*" }, "require-dev": { @@ -3038,9 +4816,9 @@ "description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms", "support": { "issues": "https://github.com/appwrite/sdk-generator/issues", - "source": "https://github.com/appwrite/sdk-generator/tree/0.39.21" + "source": "https://github.com/appwrite/sdk-generator/tree/0.40.18" }, - "time": "2024-09-10T08:49:29+00:00" + "time": "2025-05-21T14:14:47+00:00" }, { "name": "doctrine/annotations", @@ -3118,79 +4896,32 @@ }, "time": "2024-09-05T10:17:24+00:00" }, - { - "name": "doctrine/deprecations", - "version": "1.1.3", - "source": { - "type": "git", - "url": "https://github.com/doctrine/deprecations.git", - "reference": "dfbaa3c2d2e9a9df1118213f3b8b0c597bb99fab" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/deprecations/zipball/dfbaa3c2d2e9a9df1118213f3b8b0c597bb99fab", - "reference": "dfbaa3c2d2e9a9df1118213f3b8b0c597bb99fab", - "shasum": "" - }, - "require": { - "php": "^7.1 || ^8.0" - }, - "require-dev": { - "doctrine/coding-standard": "^9", - "phpstan/phpstan": "1.4.10 || 1.10.15", - "phpstan/phpstan-phpunit": "^1.0", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "psalm/plugin-phpunit": "0.18.4", - "psr/log": "^1 || ^2 || ^3", - "vimeo/psalm": "4.30.0 || 5.12.0" - }, - "suggest": { - "psr/log": "Allows logging deprecations via PSR-3 logger implementation" - }, - "type": "library", - "autoload": { - "psr-4": { - "Doctrine\\Deprecations\\": "lib/Doctrine/Deprecations" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.", - "homepage": "https://www.doctrine-project.org/", - "support": { - "issues": "https://github.com/doctrine/deprecations/issues", - "source": "https://github.com/doctrine/deprecations/tree/1.1.3" - }, - "time": "2024-01-30T19:34:25+00:00" - }, { "name": "doctrine/instantiator", - "version": "1.5.0", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/doctrine/instantiator.git", - "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b" + "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/0a0fa9780f5d4e507415a065172d26a98d02047b", - "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", + "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" + "php": "^8.1" }, "require-dev": { - "doctrine/coding-standard": "^9 || ^11", + "doctrine/coding-standard": "^11", "ext-pdo": "*", "ext-phar": "*", - "phpbench/phpbench": "^0.16 || ^1", - "phpstan/phpstan": "^1.4", - "phpstan/phpstan-phpunit": "^1", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "vimeo/psalm": "^4.30 || ^5.4" + "phpbench/phpbench": "^1.2", + "phpstan/phpstan": "^1.9.4", + "phpstan/phpstan-phpunit": "^1.3", + "phpunit/phpunit": "^9.5.27", + "vimeo/psalm": "^5.4" }, "type": "library", "autoload": { @@ -3217,7 +4948,7 @@ ], "support": { "issues": "https://github.com/doctrine/instantiator/issues", - "source": "https://github.com/doctrine/instantiator/tree/1.5.0" + "source": "https://github.com/doctrine/instantiator/tree/2.0.0" }, "funding": [ { @@ -3233,7 +4964,7 @@ "type": "tidelift" } ], - "time": "2022-12-30T00:15:36+00:00" + "time": "2022-12-30T00:23:10+00:00" }, { "name": "doctrine/lexer", @@ -3314,16 +5045,16 @@ }, { "name": "laravel/pint", - "version": "v1.17.3", + "version": "v1.22.1", "source": { "type": "git", "url": "https://github.com/laravel/pint.git", - "reference": "9d77be916e145864f10788bb94531d03e1f7b482" + "reference": "941d1927c5ca420c22710e98420287169c7bcaf7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/pint/zipball/9d77be916e145864f10788bb94531d03e1f7b482", - "reference": "9d77be916e145864f10788bb94531d03e1f7b482", + "url": "https://api.github.com/repos/laravel/pint/zipball/941d1927c5ca420c22710e98420287169c7bcaf7", + "reference": "941d1927c5ca420c22710e98420287169c7bcaf7", "shasum": "" }, "require": { @@ -3331,16 +5062,16 @@ "ext-mbstring": "*", "ext-tokenizer": "*", "ext-xml": "*", - "php": "^8.1.0" + "php": "^8.2.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.64.0", - "illuminate/view": "^10.48.20", - "larastan/larastan": "^2.9.8", - "laravel-zero/framework": "^10.4.0", + "friendsofphp/php-cs-fixer": "^3.75.0", + "illuminate/view": "^11.44.7", + "larastan/larastan": "^3.4.0", + "laravel-zero/framework": "^11.36.1", "mockery/mockery": "^1.6.12", - "nunomaduro/termwind": "^1.15.1", - "pestphp/pest": "^2.35.1" + "nunomaduro/termwind": "^2.3.1", + "pestphp/pest": "^2.36.0" }, "bin": [ "builds/pint" @@ -3376,7 +5107,7 @@ "issues": "https://github.com/laravel/pint/issues", "source": "https://github.com/laravel/pint" }, - "time": "2024-09-03T15:00:28+00:00" + "time": "2025-05-08T08:38:12+00:00" }, { "name": "matthiasmullie/minify", @@ -3504,16 +5235,16 @@ }, { "name": "myclabs/deep-copy", - "version": "1.12.0", + "version": "1.13.1", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c" + "reference": "1720ddd719e16cf0db4eb1c6eca108031636d46c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c", - "reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/1720ddd719e16cf0db4eb1c6eca108031636d46c", + "reference": "1720ddd719e16cf0db4eb1c6eca108031636d46c", "shasum": "" }, "require": { @@ -3552,7 +5283,7 @@ ], "support": { "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.12.0" + "source": "https://github.com/myclabs/DeepCopy/tree/1.13.1" }, "funding": [ { @@ -3560,20 +5291,20 @@ "type": "tidelift" } ], - "time": "2024-06-12T14:39:25+00:00" + "time": "2025-04-29T12:36:36+00:00" }, { "name": "nikic/php-parser", - "version": "v5.2.0", + "version": "v5.4.0", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "23c79fbbfb725fb92af9bcf41065c8e9a0d49ddb" + "reference": "447a020a1f875a434d62f2a401f53b82a396e494" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/23c79fbbfb725fb92af9bcf41065c8e9a0d49ddb", - "reference": "23c79fbbfb725fb92af9bcf41065c8e9a0d49ddb", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/447a020a1f875a434d62f2a401f53b82a396e494", + "reference": "447a020a1f875a434d62f2a401f53b82a396e494", "shasum": "" }, "require": { @@ -3616,9 +5347,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v5.2.0" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.4.0" }, - "time": "2024-09-15T16:40:33+00:00" + "time": "2024-12-30T11:07:19+00:00" }, { "name": "phar-io/manifest", @@ -3789,69 +5520,18 @@ }, "time": "2023-10-30T13:38:26+00:00" }, - { - "name": "phpbench/dom", - "version": "0.3.3", - "source": { - "type": "git", - "url": "https://github.com/phpbench/dom.git", - "reference": "786a96db538d0def931f5b19225233ec42ec7a72" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpbench/dom/zipball/786a96db538d0def931f5b19225233ec42ec7a72", - "reference": "786a96db538d0def931f5b19225233ec42ec7a72", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "php": "^7.3||^8.0" - }, - "require-dev": { - "friendsofphp/php-cs-fixer": "^3.14", - "phpstan/phpstan": "^1.10", - "phpunit/phpunit": "^8.0||^9.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, - "autoload": { - "psr-4": { - "PhpBench\\Dom\\": "lib/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Daniel Leech", - "email": "daniel@dantleech.com" - } - ], - "description": "DOM wrapper to simplify working with the PHP DOM implementation", - "support": { - "issues": "https://github.com/phpbench/dom/issues", - "source": "https://github.com/phpbench/dom/tree/0.3.3" - }, - "time": "2023-03-06T23:46:57+00:00" - }, { "name": "phpbench/phpbench", - "version": "1.3.1", + "version": "1.4.1", "source": { "type": "git", "url": "https://github.com/phpbench/phpbench.git", - "reference": "a3e1ef08d9d7736d43a7fbd444893d6a073c0ca0" + "reference": "78cd98a9aa34e0f8f80ca01972a8b88d2c30194b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpbench/phpbench/zipball/a3e1ef08d9d7736d43a7fbd444893d6a073c0ca0", - "reference": "a3e1ef08d9d7736d43a7fbd444893d6a073c0ca0", + "url": "https://api.github.com/repos/phpbench/phpbench/zipball/78cd98a9aa34e0f8f80ca01972a8b88d2c30194b", + "reference": "78cd98a9aa34e0f8f80ca01972a8b88d2c30194b", "shasum": "" }, "require": { @@ -3864,7 +5544,6 @@ "ext-tokenizer": "*", "php": "^8.1", "phpbench/container": "^2.2", - "phpbench/dom": "~0.3.3", "psr/log": "^1.1 || ^2.0 || ^3.0", "seld/jsonlint": "^1.1", "symfony/console": "^6.1 || ^7.0", @@ -3883,8 +5562,8 @@ "phpstan/extension-installer": "^1.1", "phpstan/phpstan": "^1.0", "phpstan/phpstan-phpunit": "^1.0", - "phpunit/phpunit": "^10.4", - "rector/rector": "^0.18.11 || ^1.0.0", + "phpunit/phpunit": "^10.4 || ^11.0", + "rector/rector": "^1.2", "symfony/error-handler": "^6.1 || ^7.0", "symfony/var-dumper": "^6.1 || ^7.0" }, @@ -3929,306 +5608,15 @@ ], "support": { "issues": "https://github.com/phpbench/phpbench/issues", - "source": "https://github.com/phpbench/phpbench/tree/1.3.1" + "source": "https://github.com/phpbench/phpbench/tree/1.4.1" }, "funding": [ { - "url": "https://github.com/dantleech", - "type": "github" - } - ], - "time": "2024-06-30T11:04:37+00:00" - }, - { - "name": "phpdocumentor/reflection-common", - "version": "2.2.0", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionCommon.git", - "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b", - "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-2.x": "2.x-dev" - } - }, - "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jaap van Otterdijk", - "email": "opensource@ijaap.nl" - } - ], - "description": "Common reflection classes used by phpdocumentor to reflect the code structure", - "homepage": "http://www.phpdoc.org", - "keywords": [ - "FQSEN", - "phpDocumentor", - "phpdoc", - "reflection", - "static analysis" - ], - "support": { - "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues", - "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/2.x" - }, - "time": "2020-06-27T09:03:43+00:00" - }, - { - "name": "phpdocumentor/reflection-docblock", - "version": "5.4.1", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "9d07b3f7fdcf5efec5d1609cba3c19c5ea2bdc9c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/9d07b3f7fdcf5efec5d1609cba3c19c5ea2bdc9c", - "reference": "9d07b3f7fdcf5efec5d1609cba3c19c5ea2bdc9c", - "shasum": "" - }, - "require": { - "doctrine/deprecations": "^1.1", - "ext-filter": "*", - "php": "^7.4 || ^8.0", - "phpdocumentor/reflection-common": "^2.2", - "phpdocumentor/type-resolver": "^1.7", - "phpstan/phpdoc-parser": "^1.7", - "webmozart/assert": "^1.9.1" - }, - "require-dev": { - "mockery/mockery": "~1.3.5", - "phpstan/extension-installer": "^1.1", - "phpstan/phpstan": "^1.8", - "phpstan/phpstan-mockery": "^1.1", - "phpstan/phpstan-webmozart-assert": "^1.2", - "phpunit/phpunit": "^9.5", - "vimeo/psalm": "^5.13" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "5.x-dev" - } - }, - "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Mike van Riel", - "email": "me@mikevanriel.com" - }, - { - "name": "Jaap van Otterdijk", - "email": "opensource@ijaap.nl" - } - ], - "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", - "support": { - "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", - "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.4.1" - }, - "time": "2024-05-21T05:55:05+00:00" - }, - { - "name": "phpdocumentor/type-resolver", - "version": "1.8.2", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "153ae662783729388a584b4361f2545e4d841e3c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/153ae662783729388a584b4361f2545e4d841e3c", - "reference": "153ae662783729388a584b4361f2545e4d841e3c", - "shasum": "" - }, - "require": { - "doctrine/deprecations": "^1.0", - "php": "^7.3 || ^8.0", - "phpdocumentor/reflection-common": "^2.0", - "phpstan/phpdoc-parser": "^1.13" - }, - "require-dev": { - "ext-tokenizer": "*", - "phpbench/phpbench": "^1.2", - "phpstan/extension-installer": "^1.1", - "phpstan/phpstan": "^1.8", - "phpstan/phpstan-phpunit": "^1.1", - "phpunit/phpunit": "^9.5", - "rector/rector": "^0.13.9", - "vimeo/psalm": "^4.25" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-1.x": "1.x-dev" - } - }, - "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Mike van Riel", - "email": "me@mikevanriel.com" - } - ], - "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", - "support": { - "issues": "https://github.com/phpDocumentor/TypeResolver/issues", - "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.8.2" - }, - "time": "2024-02-23T11:10:43+00:00" - }, - { - "name": "phpspec/prophecy", - "version": "v1.19.0", - "source": { - "type": "git", - "url": "https://github.com/phpspec/prophecy.git", - "reference": "67a759e7d8746d501c41536ba40cd9c0a07d6a87" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/67a759e7d8746d501c41536ba40cd9c0a07d6a87", - "reference": "67a759e7d8746d501c41536ba40cd9c0a07d6a87", - "shasum": "" - }, - "require": { - "doctrine/instantiator": "^1.2 || ^2.0", - "php": "^7.2 || 8.0.* || 8.1.* || 8.2.* || 8.3.*", - "phpdocumentor/reflection-docblock": "^5.2", - "sebastian/comparator": "^3.0 || ^4.0 || ^5.0 || ^6.0", - "sebastian/recursion-context": "^3.0 || ^4.0 || ^5.0 || ^6.0" - }, - "require-dev": { - "phpspec/phpspec": "^6.0 || ^7.0", - "phpstan/phpstan": "^1.9", - "phpunit/phpunit": "^8.0 || ^9.0 || ^10.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.x-dev" - } - }, - "autoload": { - "psr-4": { - "Prophecy\\": "src/Prophecy" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Konstantin Kudryashov", - "email": "ever.zet@gmail.com", - "homepage": "http://everzet.com" - }, - { - "name": "Marcello Duarte", - "email": "marcello.duarte@gmail.com" - } - ], - "description": "Highly opinionated mocking framework for PHP 5.3+", - "homepage": "https://github.com/phpspec/prophecy", - "keywords": [ - "Double", - "Dummy", - "dev", - "fake", - "mock", - "spy", - "stub" - ], - "support": { - "issues": "https://github.com/phpspec/prophecy/issues", - "source": "https://github.com/phpspec/prophecy/tree/v1.19.0" - }, - "time": "2024-02-29T11:52:51+00:00" - }, - { - "name": "phpstan/phpdoc-parser", - "version": "1.30.1", - "source": { - "type": "git", - "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "51b95ec8670af41009e2b2b56873bad96682413e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/51b95ec8670af41009e2b2b56873bad96682413e", - "reference": "51b95ec8670af41009e2b2b56873bad96682413e", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0" - }, - "require-dev": { - "doctrine/annotations": "^2.0", - "nikic/php-parser": "^4.15", - "php-parallel-lint/php-parallel-lint": "^1.2", - "phpstan/extension-installer": "^1.0", - "phpstan/phpstan": "^1.5", - "phpstan/phpstan-phpunit": "^1.1", - "phpstan/phpstan-strict-rules": "^1.0", - "phpunit/phpunit": "^9.5", - "symfony/process": "^5.2" - }, - "type": "library", - "autoload": { - "psr-4": { - "PHPStan\\PhpDocParser\\": [ - "src/" - ] - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" + "url": "https://github.com/dantleech", + "type": "github" + } ], - "description": "PHPDoc parser with support for nullable, intersection and generic types", - "support": { - "issues": "https://github.com/phpstan/phpdoc-parser/issues", - "source": "https://github.com/phpstan/phpdoc-parser/tree/1.30.1" - }, - "time": "2024-09-07T20:13:05+00:00" + "time": "2025-03-12T08:01:40+00:00" }, { "name": "phpunit/php-code-coverage", @@ -4551,55 +5939,50 @@ }, { "name": "phpunit/phpunit", - "version": "9.5.20", + "version": "9.6.23", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "12bc8879fb65aef2138b26fc633cb1e3620cffba" + "reference": "43d2cb18d0675c38bd44982a5d1d88f6d53d8d95" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/12bc8879fb65aef2138b26fc633cb1e3620cffba", - "reference": "12bc8879fb65aef2138b26fc633cb1e3620cffba", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/43d2cb18d0675c38bd44982a5d1d88f6d53d8d95", + "reference": "43d2cb18d0675c38bd44982a5d1d88f6d53d8d95", "shasum": "" }, "require": { - "doctrine/instantiator": "^1.3.1", + "doctrine/instantiator": "^1.5.0 || ^2", "ext-dom": "*", "ext-json": "*", "ext-libxml": "*", "ext-mbstring": "*", "ext-xml": "*", "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.10.1", - "phar-io/manifest": "^2.0.3", - "phar-io/version": "^3.0.2", + "myclabs/deep-copy": "^1.13.1", + "phar-io/manifest": "^2.0.4", + "phar-io/version": "^3.2.1", "php": ">=7.3", - "phpspec/prophecy": "^1.12.1", - "phpunit/php-code-coverage": "^9.2.13", - "phpunit/php-file-iterator": "^3.0.5", + "phpunit/php-code-coverage": "^9.2.32", + "phpunit/php-file-iterator": "^3.0.6", "phpunit/php-invoker": "^3.1.1", - "phpunit/php-text-template": "^2.0.3", - "phpunit/php-timer": "^5.0.2", - "sebastian/cli-parser": "^1.0.1", - "sebastian/code-unit": "^1.0.6", - "sebastian/comparator": "^4.0.5", - "sebastian/diff": "^4.0.3", - "sebastian/environment": "^5.1.3", - "sebastian/exporter": "^4.0.3", - "sebastian/global-state": "^5.0.1", - "sebastian/object-enumerator": "^4.0.3", - "sebastian/resource-operations": "^3.0.3", - "sebastian/type": "^3.0", + "phpunit/php-text-template": "^2.0.4", + "phpunit/php-timer": "^5.0.3", + "sebastian/cli-parser": "^1.0.2", + "sebastian/code-unit": "^1.0.8", + "sebastian/comparator": "^4.0.8", + "sebastian/diff": "^4.0.6", + "sebastian/environment": "^5.1.5", + "sebastian/exporter": "^4.0.6", + "sebastian/global-state": "^5.0.7", + "sebastian/object-enumerator": "^4.0.4", + "sebastian/resource-operations": "^3.0.4", + "sebastian/type": "^3.2.1", "sebastian/version": "^3.0.2" }, - "require-dev": { - "ext-pdo": "*", - "phpspec/prophecy-phpunit": "^2.0.1" - }, "suggest": { - "ext-soap": "*", - "ext-xdebug": "*" + "ext-soap": "To be able to generate mocks based on WSDL files", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" }, "bin": [ "phpunit" @@ -4607,7 +5990,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "9.5-dev" + "dev-master": "9.6-dev" } }, "autoload": { @@ -4638,7 +6021,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.20" + "security": "https://github.com/sebastianbergmann/phpunit/security/policy", + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.23" }, "funding": [ { @@ -4648,9 +6032,21 @@ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", + "type": "tidelift" } ], - "time": "2022-04-01T12:37:26+00:00" + "time": "2025-05-02T06:40:34+00:00" }, { "name": "psr/cache", @@ -4701,109 +6097,6 @@ }, "time": "2021-02-03T23:26:27+00:00" }, - { - "name": "psr/container", - "version": "2.0.2", - "source": { - "type": "git", - "url": "https://github.com/php-fig/container.git", - "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963", - "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963", - "shasum": "" - }, - "require": { - "php": ">=7.4.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\Container\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "description": "Common Container Interface (PHP FIG PSR-11)", - "homepage": "https://github.com/php-fig/container", - "keywords": [ - "PSR-11", - "container", - "container-interface", - "container-interop", - "psr" - ], - "support": { - "issues": "https://github.com/php-fig/container/issues", - "source": "https://github.com/php-fig/container/tree/2.0.2" - }, - "time": "2021-11-05T16:47:00+00:00" - }, - { - "name": "psr/log", - "version": "3.0.2", - "source": { - "type": "git", - "url": "https://github.com/php-fig/log.git", - "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", - "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", - "shasum": "" - }, - "require": { - "php": ">=8.0.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.x-dev" - } - }, - "autoload": { - "psr-4": { - "Psr\\Log\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "https://www.php-fig.org/" - } - ], - "description": "Common interface for logging libraries", - "homepage": "https://github.com/php-fig/log", - "keywords": [ - "log", - "psr", - "psr-3" - ], - "support": { - "source": "https://github.com/php-fig/log/tree/3.0.2" - }, - "time": "2024-09-11T13:17:53+00:00" - }, { "name": "sebastian/cli-parser", "version": "1.0.2", @@ -5865,16 +7158,16 @@ }, { "name": "symfony/console", - "version": "v7.1.4", + "version": "v7.2.6", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "1eed7af6961d763e7832e874d7f9b21c3ea9c111" + "reference": "0e2e3f38c192e93e622e41ec37f4ca70cfedf218" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/1eed7af6961d763e7832e874d7f9b21c3ea9c111", - "reference": "1eed7af6961d763e7832e874d7f9b21c3ea9c111", + "url": "https://api.github.com/repos/symfony/console/zipball/0e2e3f38c192e93e622e41ec37f4ca70cfedf218", + "reference": "0e2e3f38c192e93e622e41ec37f4ca70cfedf218", "shasum": "" }, "require": { @@ -5938,74 +7231,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v7.1.4" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2024-08-15T22:48:53+00:00" - }, - { - "name": "symfony/deprecation-contracts", - "version": "v3.5.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", - "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", - "shasum": "" - }, - "require": { - "php": ">=8.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "3.5-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" - } - }, - "autoload": { - "files": [ - "function.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "A generic function and convention to trigger deprecation notices", - "homepage": "https://symfony.com", - "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.0" + "source": "https://github.com/symfony/console/tree/v7.2.6" }, "funding": [ { @@ -6021,20 +7247,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:32:20+00:00" + "time": "2025-04-07T19:09:28+00:00" }, { "name": "symfony/filesystem", - "version": "v7.1.2", + "version": "v7.2.0", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "92a91985250c251de9b947a14bb2c9390b1a562c" + "reference": "b8dce482de9d7c9fe2891155035a7248ab5c7fdb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/92a91985250c251de9b947a14bb2c9390b1a562c", - "reference": "92a91985250c251de9b947a14bb2c9390b1a562c", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/b8dce482de9d7c9fe2891155035a7248ab5c7fdb", + "reference": "b8dce482de9d7c9fe2891155035a7248ab5c7fdb", "shasum": "" }, "require": { @@ -6071,7 +7297,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v7.1.2" + "source": "https://github.com/symfony/filesystem/tree/v7.2.0" }, "funding": [ { @@ -6087,20 +7313,20 @@ "type": "tidelift" } ], - "time": "2024-06-28T10:03:55+00:00" + "time": "2024-10-25T15:15:23+00:00" }, { "name": "symfony/finder", - "version": "v7.1.4", + "version": "v7.2.2", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "d95bbf319f7d052082fb7af147e0f835a695e823" + "reference": "87a71856f2f56e4100373e92529eed3171695cfb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/d95bbf319f7d052082fb7af147e0f835a695e823", - "reference": "d95bbf319f7d052082fb7af147e0f835a695e823", + "url": "https://api.github.com/repos/symfony/finder/zipball/87a71856f2f56e4100373e92529eed3171695cfb", + "reference": "87a71856f2f56e4100373e92529eed3171695cfb", "shasum": "" }, "require": { @@ -6135,7 +7361,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v7.1.4" + "source": "https://github.com/symfony/finder/tree/v7.2.2" }, "funding": [ { @@ -6151,20 +7377,20 @@ "type": "tidelift" } ], - "time": "2024-08-13T14:28:19+00:00" + "time": "2024-12-30T19:00:17+00:00" }, { "name": "symfony/options-resolver", - "version": "v7.1.1", + "version": "v7.2.0", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", - "reference": "47aa818121ed3950acd2b58d1d37d08a94f9bf55" + "reference": "7da8fbac9dcfef75ffc212235d76b2754ce0cf50" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/47aa818121ed3950acd2b58d1d37d08a94f9bf55", - "reference": "47aa818121ed3950acd2b58d1d37d08a94f9bf55", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/7da8fbac9dcfef75ffc212235d76b2754ce0cf50", + "reference": "7da8fbac9dcfef75ffc212235d76b2754ce0cf50", "shasum": "" }, "require": { @@ -6202,7 +7428,7 @@ "options" ], "support": { - "source": "https://github.com/symfony/options-resolver/tree/v7.1.1" + "source": "https://github.com/symfony/options-resolver/tree/v7.2.0" }, "funding": [ { @@ -6218,11 +7444,11 @@ "type": "tidelift" } ], - "time": "2024-05-31T14:57:53+00:00" + "time": "2024-11-20T11:17:29+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.31.0", + "version": "v1.32.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", @@ -6246,8 +7472,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -6281,7 +7507,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.32.0" }, "funding": [ { @@ -6301,7 +7527,7 @@ }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.31.0", + "version": "v1.32.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", @@ -6322,8 +7548,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -6359,7 +7585,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.32.0" }, "funding": [ { @@ -6379,7 +7605,7 @@ }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.31.0", + "version": "v1.32.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", @@ -6400,8 +7626,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -6440,7 +7666,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.32.0" }, "funding": [ { @@ -6460,7 +7686,7 @@ }, { "name": "symfony/polyfill-php81", - "version": "v1.31.0", + "version": "v1.32.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php81.git", @@ -6478,8 +7704,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -6516,7 +7742,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php81/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-php81/tree/v1.32.0" }, "funding": [ { @@ -6536,16 +7762,16 @@ }, { "name": "symfony/process", - "version": "v7.1.3", + "version": "v7.2.5", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "7f2f542c668ad6c313dc4a5e9c3321f733197eca" + "reference": "87b7c93e57df9d8e39a093d32587702380ff045d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/7f2f542c668ad6c313dc4a5e9c3321f733197eca", - "reference": "7f2f542c668ad6c313dc4a5e9c3321f733197eca", + "url": "https://api.github.com/repos/symfony/process/zipball/87b7c93e57df9d8e39a093d32587702380ff045d", + "reference": "87b7c93e57df9d8e39a093d32587702380ff045d", "shasum": "" }, "require": { @@ -6577,90 +7803,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v7.1.3" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2024-07-26T12:44:47+00:00" - }, - { - "name": "symfony/service-contracts", - "version": "v3.5.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/service-contracts.git", - "reference": "bd1d9e59a81d8fa4acdcea3f617c581f7475a80f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/bd1d9e59a81d8fa4acdcea3f617c581f7475a80f", - "reference": "bd1d9e59a81d8fa4acdcea3f617c581f7475a80f", - "shasum": "" - }, - "require": { - "php": ">=8.1", - "psr/container": "^1.1|^2.0", - "symfony/deprecation-contracts": "^2.5|^3" - }, - "conflict": { - "ext-psr": "<1.1|>=2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "3.5-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Contracts\\Service\\": "" - }, - "exclude-from-classmap": [ - "/Test/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Generic abstractions related to writing services", - "homepage": "https://symfony.com", - "keywords": [ - "abstractions", - "contracts", - "decoupling", - "interfaces", - "interoperability", - "standards" - ], - "support": { - "source": "https://github.com/symfony/service-contracts/tree/v3.5.0" + "source": "https://github.com/symfony/process/tree/v7.2.5" }, "funding": [ { @@ -6676,20 +7819,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:32:20+00:00" + "time": "2025-03-13T12:21:46+00:00" }, { "name": "symfony/string", - "version": "v7.1.4", + "version": "v7.2.6", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "6cd670a6d968eaeb1c77c2e76091c45c56bc367b" + "reference": "a214fe7d62bd4df2a76447c67c6b26e1d5e74931" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/6cd670a6d968eaeb1c77c2e76091c45c56bc367b", - "reference": "6cd670a6d968eaeb1c77c2e76091c45c56bc367b", + "url": "https://api.github.com/repos/symfony/string/zipball/a214fe7d62bd4df2a76447c67c6b26e1d5e74931", + "reference": "a214fe7d62bd4df2a76447c67c6b26e1d5e74931", "shasum": "" }, "require": { @@ -6747,7 +7890,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v7.1.4" + "source": "https://github.com/symfony/string/tree/v7.2.6" }, "funding": [ { @@ -6763,20 +7906,20 @@ "type": "tidelift" } ], - "time": "2024-08-12T09:59:40+00:00" + "time": "2025-04-20T20:18:16+00:00" }, { "name": "textalk/websocket", - "version": "1.5.7", + "version": "1.5.8", "source": { "type": "git", "url": "https://github.com/Textalk/websocket-php.git", - "reference": "1712325e99b6bf869ccbf9bf41ab749e7328ea46" + "reference": "d05dbaa97500176447ffb1f1800573f23085ab13" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Textalk/websocket-php/zipball/1712325e99b6bf869ccbf9bf41ab749e7328ea46", - "reference": "1712325e99b6bf869ccbf9bf41ab749e7328ea46", + "url": "https://api.github.com/repos/Textalk/websocket-php/zipball/d05dbaa97500176447ffb1f1800573f23085ab13", + "reference": "d05dbaa97500176447ffb1f1800573f23085ab13", "shasum": "" }, "require": { @@ -6810,9 +7953,9 @@ "description": "WebSocket client and server", "support": { "issues": "https://github.com/Textalk/websocket-php/issues", - "source": "https://github.com/Textalk/websocket-php/tree/1.5.7" + "source": "https://github.com/Textalk/websocket-php/tree/1.5.8" }, - "time": "2022-03-29T09:46:59+00:00" + "time": "2022-04-26T06:28:24+00:00" }, { "name": "theseer/tokenizer", @@ -6866,16 +8009,16 @@ }, { "name": "twig/twig", - "version": "v3.14.0", + "version": "v3.14.2", "source": { "type": "git", "url": "https://github.com/twigphp/Twig.git", - "reference": "126b2c97818dbff0cdf3fbfc881aedb3d40aae72" + "reference": "0b6f9d8370bb3b7f1ce5313ed8feb0fafd6e399a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/twigphp/Twig/zipball/126b2c97818dbff0cdf3fbfc881aedb3d40aae72", - "reference": "126b2c97818dbff0cdf3fbfc881aedb3d40aae72", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/0b6f9d8370bb3b7f1ce5313ed8feb0fafd6e399a", + "reference": "0b6f9d8370bb3b7f1ce5313ed8feb0fafd6e399a", "shasum": "" }, "require": { @@ -6929,7 +8072,7 @@ ], "support": { "issues": "https://github.com/twigphp/Twig/issues", - "source": "https://github.com/twigphp/Twig/tree/v3.14.0" + "source": "https://github.com/twigphp/Twig/tree/v3.14.2" }, "funding": [ { @@ -6941,7 +8084,7 @@ "type": "tidelift" } ], - "time": "2024-09-09T17:55:12+00:00" + "time": "2024-11-07T12:36:22+00:00" }, { "name": "webmozart/glob", @@ -6995,11 +8138,11 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": ">=8.0.0", + "php": ">=8.3.0", "ext-curl": "*", "ext-imagick": "*", "ext-mbstring": "*", diff --git a/docker-compose.yml b/docker-compose.yml index 6ecb0ecff89..7ea2fceadc7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -96,6 +96,7 @@ services: - _APP_EDITION - _APP_WORKER_PER_CORE - _APP_LOCALE + - _APP_COMPRESSION_MIN_SIZE_BYTES - _APP_CONSOLE_WHITELIST_ROOT - _APP_CONSOLE_WHITELIST_EMAILS - _APP_CONSOLE_SESSION_ALERTS @@ -139,6 +140,7 @@ services: - _APP_STORAGE_S3_SECRET - _APP_STORAGE_S3_REGION - _APP_STORAGE_S3_BUCKET + - _APP_STORAGE_S3_ENDPOINT - _APP_STORAGE_DO_SPACES_ACCESS_KEY - _APP_STORAGE_DO_SPACES_SECRET - _APP_STORAGE_DO_SPACES_REGION @@ -169,6 +171,7 @@ services: - _APP_MAINTENANCE_RETENTION_CACHE - _APP_MAINTENANCE_RETENTION_ABUSE - _APP_MAINTENANCE_RETENTION_AUDIT + - _APP_MAINTENANCE_RETENTION_AUDIT_CONSOLE - _APP_MAINTENANCE_RETENTION_USAGE_HOURLY - _APP_MAINTENANCE_RETENTION_SCHEDULES - _APP_SMS_PROVIDER @@ -192,11 +195,17 @@ services: - _APP_EXPERIMENT_LOGGING_PROVIDER - _APP_EXPERIMENT_LOGGING_CONFIG - _APP_DATABASE_SHARED_TABLES + - _APP_DATABASE_SHARED_TABLES_V1 + - _APP_DATABASE_SHARED_NAMESPACE + - _APP_FUNCTIONS_CREATION_ABUSE_LIMIT + - _APP_CUSTOM_DOMAIN_DENY_LIST + extra_hosts: + - "host.docker.internal:host-gateway" appwrite-console: <<: *x-logging container_name: appwrite-console - image: appwrite/console:5.0.12 + image: appwrite/console:5.2.58 restart: unless-stopped networks: - appwrite @@ -361,6 +370,7 @@ services: - _APP_STORAGE_S3_SECRET - _APP_STORAGE_S3_REGION - _APP_STORAGE_S3_BUCKET + - _APP_STORAGE_S3_ENDPOINT - _APP_STORAGE_DO_SPACES_ACCESS_KEY - _APP_STORAGE_DO_SPACES_SECRET - _APP_STORAGE_DO_SPACES_REGION @@ -381,6 +391,10 @@ services: - _APP_EXECUTOR_SECRET - _APP_EXECUTOR_HOST - _APP_DATABASE_SHARED_TABLES + - _APP_DATABASE_SHARED_TABLES_V1 + - _APP_EMAIL_CERTIFICATES + - _APP_MAINTENANCE_RETENTION_AUDIT + - _APP_MAINTENANCE_RETENTION_AUDIT_CONSOLE appwrite-worker-databases: entrypoint: worker-databases @@ -460,6 +474,7 @@ services: - _APP_STORAGE_S3_SECRET - _APP_STORAGE_S3_REGION - _APP_STORAGE_S3_BUCKET + - _APP_STORAGE_S3_ENDPOINT - _APP_STORAGE_DO_SPACES_ACCESS_KEY - _APP_STORAGE_DO_SPACES_SECRET - _APP_STORAGE_DO_SPACES_REGION @@ -477,6 +492,8 @@ services: - _APP_STORAGE_WASABI_REGION - _APP_STORAGE_WASABI_BUCKET - _APP_DATABASE_SHARED_TABLES + extra_hosts: + - "host.docker.internal:host-gateway" appwrite-worker-certificates: entrypoint: worker-certificates @@ -625,6 +642,7 @@ services: - _APP_STORAGE_S3_SECRET - _APP_STORAGE_S3_REGION - _APP_STORAGE_S3_BUCKET + - _APP_STORAGE_S3_ENDPOINT - _APP_STORAGE_DO_SPACES_ACCESS_KEY - _APP_STORAGE_DO_SPACES_SECRET - _APP_STORAGE_DO_SPACES_REGION @@ -711,15 +729,47 @@ services: - _APP_MAINTENANCE_RETENTION_CACHE - _APP_MAINTENANCE_RETENTION_ABUSE - _APP_MAINTENANCE_RETENTION_AUDIT + - _APP_MAINTENANCE_RETENTION_AUDIT_CONSOLE - _APP_MAINTENANCE_RETENTION_USAGE_HOURLY - _APP_MAINTENANCE_RETENTION_SCHEDULES - - _APP_MAINTENANCE_DELAY + - _APP_MAINTENANCE_START_TIME + - _APP_DATABASE_SHARED_TABLES + + appwrite-task-stats-resources: + container_name: appwrite-task-stats-resources + entrypoint: stats-resources + <<: *x-logging + image: appwrite-dev + networks: + - appwrite + volumes: + - ./app:/usr/src/code/app + - ./src:/usr/src/code/src + depends_on: + - redis + - mariadb + environment: + - _APP_ENV + - _APP_WORKER_PER_CORE + - _APP_OPENSSL_KEY_V1 + - _APP_DB_HOST + - _APP_DB_PORT + - _APP_DB_SCHEMA + - _APP_DB_USER + - _APP_DB_PASS + - _APP_REDIS_HOST + - _APP_REDIS_PORT + - _APP_REDIS_USER + - _APP_REDIS_PASS + - _APP_USAGE_STATS + - _APP_LOGGING_CONFIG - _APP_DATABASE_SHARED_TABLES + - _APP_STATS_RESOURCES_INTERVAL - appwrite-worker-usage: - entrypoint: worker-usage + appwrite-worker-stats-resources: + entrypoint: worker-stats-resources <<: *x-logging - container_name: appwrite-worker-usage + container_name: appwrite-worker-stats-resources image: appwrite-dev networks: - appwrite @@ -747,10 +797,10 @@ services: - _APP_USAGE_AGGREGATION_INTERVAL - _APP_DATABASE_SHARED_TABLES - appwrite-worker-usage-dump: - entrypoint: worker-usage-dump + appwrite-worker-stats-usage: + entrypoint: worker-stats-usage <<: *x-logging - container_name: appwrite-worker-usage-dump + container_name: appwrite-worker-stats-usage image: appwrite-dev networks: - appwrite @@ -863,7 +913,7 @@ services: appwrite-assistant: container_name: appwrite-assistant - image: appwrite/assistant:0.4.0 + image: appwrite/assistant:0.7.0 networks: - appwrite environment: @@ -902,6 +952,7 @@ services: - OPR_EXECUTOR_STORAGE_S3_SECRET=$_APP_STORAGE_S3_SECRET - OPR_EXECUTOR_STORAGE_S3_REGION=$_APP_STORAGE_S3_REGION - OPR_EXECUTOR_STORAGE_S3_BUCKET=$_APP_STORAGE_S3_BUCKET + - OPR_EXECUTOR_STORAGE_S3_ENDPOINT=$_APP_STORAGE_S3_ENDPOINT - OPR_EXECUTOR_STORAGE_DO_SPACES_ACCESS_KEY=$_APP_STORAGE_DO_SPACES_ACCESS_KEY - OPR_EXECUTOR_STORAGE_DO_SPACES_SECRET=$_APP_STORAGE_DO_SPACES_SECRET - OPR_EXECUTOR_STORAGE_DO_SPACES_REGION=$_APP_STORAGE_DO_SPACES_REGION diff --git a/docs/examples/1.1.x/client-android/java/account/create-anonymous-session.md b/docs/examples/1.1.x/client-android/java/account/create-anonymous-session.md index 8efaf7a0d47..773fb994d82 100644 --- a/docs/examples/1.1.x/client-android/java/account/create-anonymous-session.md +++ b/docs/examples/1.1.x/client-android/java/account/create-anonymous-session.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/create-email-session.md b/docs/examples/1.1.x/client-android/java/account/create-email-session.md index a38ece55834..fb2a6b020e4 100644 --- a/docs/examples/1.1.x/client-android/java/account/create-email-session.md +++ b/docs/examples/1.1.x/client-android/java/account/create-email-session.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/create-j-w-t.md b/docs/examples/1.1.x/client-android/java/account/create-j-w-t.md index 78ee1a18f67..bb4d2d51c60 100644 --- a/docs/examples/1.1.x/client-android/java/account/create-j-w-t.md +++ b/docs/examples/1.1.x/client-android/java/account/create-j-w-t.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/create-magic-u-r-l-session.md b/docs/examples/1.1.x/client-android/java/account/create-magic-u-r-l-session.md index f8e84cbb1b4..49f041bed48 100644 --- a/docs/examples/1.1.x/client-android/java/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.1.x/client-android/java/account/create-magic-u-r-l-session.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/create-o-auth2session.md b/docs/examples/1.1.x/client-android/java/account/create-o-auth2session.md index 579d9b28600..99e09f31007 100644 --- a/docs/examples/1.1.x/client-android/java/account/create-o-auth2session.md +++ b/docs/examples/1.1.x/client-android/java/account/create-o-auth2session.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/create-phone-session.md b/docs/examples/1.1.x/client-android/java/account/create-phone-session.md index e0ed553089f..d8c6de4e3e7 100644 --- a/docs/examples/1.1.x/client-android/java/account/create-phone-session.md +++ b/docs/examples/1.1.x/client-android/java/account/create-phone-session.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/create-phone-verification.md b/docs/examples/1.1.x/client-android/java/account/create-phone-verification.md index f56bb84ef04..27778f03d38 100644 --- a/docs/examples/1.1.x/client-android/java/account/create-phone-verification.md +++ b/docs/examples/1.1.x/client-android/java/account/create-phone-verification.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/create-recovery.md b/docs/examples/1.1.x/client-android/java/account/create-recovery.md index 3e2cb362fb5..02e9818c6aa 100644 --- a/docs/examples/1.1.x/client-android/java/account/create-recovery.md +++ b/docs/examples/1.1.x/client-android/java/account/create-recovery.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/create-verification.md b/docs/examples/1.1.x/client-android/java/account/create-verification.md index 9cbe8296528..cee7a360029 100644 --- a/docs/examples/1.1.x/client-android/java/account/create-verification.md +++ b/docs/examples/1.1.x/client-android/java/account/create-verification.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/create.md b/docs/examples/1.1.x/client-android/java/account/create.md index 5d9d4c903a6..bbd47ac9403 100644 --- a/docs/examples/1.1.x/client-android/java/account/create.md +++ b/docs/examples/1.1.x/client-android/java/account/create.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/delete-session.md b/docs/examples/1.1.x/client-android/java/account/delete-session.md index 424c3639582..08914307bcc 100644 --- a/docs/examples/1.1.x/client-android/java/account/delete-session.md +++ b/docs/examples/1.1.x/client-android/java/account/delete-session.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/delete-sessions.md b/docs/examples/1.1.x/client-android/java/account/delete-sessions.md index 9be95217f40..63b829a3023 100644 --- a/docs/examples/1.1.x/client-android/java/account/delete-sessions.md +++ b/docs/examples/1.1.x/client-android/java/account/delete-sessions.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/get-prefs.md b/docs/examples/1.1.x/client-android/java/account/get-prefs.md index 6d7999e53f6..560f25e30c9 100644 --- a/docs/examples/1.1.x/client-android/java/account/get-prefs.md +++ b/docs/examples/1.1.x/client-android/java/account/get-prefs.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/get-session.md b/docs/examples/1.1.x/client-android/java/account/get-session.md index 6055d780f54..5134922e8bd 100644 --- a/docs/examples/1.1.x/client-android/java/account/get-session.md +++ b/docs/examples/1.1.x/client-android/java/account/get-session.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/get.md b/docs/examples/1.1.x/client-android/java/account/get.md index 743d46c8ba0..33344a5b4c5 100644 --- a/docs/examples/1.1.x/client-android/java/account/get.md +++ b/docs/examples/1.1.x/client-android/java/account/get.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/list-logs.md b/docs/examples/1.1.x/client-android/java/account/list-logs.md index 98bc7217b66..1d5968b3992 100644 --- a/docs/examples/1.1.x/client-android/java/account/list-logs.md +++ b/docs/examples/1.1.x/client-android/java/account/list-logs.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/list-sessions.md b/docs/examples/1.1.x/client-android/java/account/list-sessions.md index 0d7fa2eb21b..6245c593fd8 100644 --- a/docs/examples/1.1.x/client-android/java/account/list-sessions.md +++ b/docs/examples/1.1.x/client-android/java/account/list-sessions.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/update-email.md b/docs/examples/1.1.x/client-android/java/account/update-email.md index 4fa6098d9f1..05ee0c6a87e 100644 --- a/docs/examples/1.1.x/client-android/java/account/update-email.md +++ b/docs/examples/1.1.x/client-android/java/account/update-email.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/update-magic-u-r-l-session.md b/docs/examples/1.1.x/client-android/java/account/update-magic-u-r-l-session.md index 49d7fdf864d..1c9f670c5cd 100644 --- a/docs/examples/1.1.x/client-android/java/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.1.x/client-android/java/account/update-magic-u-r-l-session.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/update-name.md b/docs/examples/1.1.x/client-android/java/account/update-name.md index 30bfd60109e..a0f3bede4f2 100644 --- a/docs/examples/1.1.x/client-android/java/account/update-name.md +++ b/docs/examples/1.1.x/client-android/java/account/update-name.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/update-password.md b/docs/examples/1.1.x/client-android/java/account/update-password.md index fa777db15ba..7c90cdc4126 100644 --- a/docs/examples/1.1.x/client-android/java/account/update-password.md +++ b/docs/examples/1.1.x/client-android/java/account/update-password.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/update-phone-session.md b/docs/examples/1.1.x/client-android/java/account/update-phone-session.md index fb16d46e4d0..bbcaf8dfe08 100644 --- a/docs/examples/1.1.x/client-android/java/account/update-phone-session.md +++ b/docs/examples/1.1.x/client-android/java/account/update-phone-session.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/update-phone-verification.md b/docs/examples/1.1.x/client-android/java/account/update-phone-verification.md index 230fd33a8e4..4ec461ea1a2 100644 --- a/docs/examples/1.1.x/client-android/java/account/update-phone-verification.md +++ b/docs/examples/1.1.x/client-android/java/account/update-phone-verification.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/update-phone.md b/docs/examples/1.1.x/client-android/java/account/update-phone.md index db7ad1f48f2..6b1a6fb042b 100644 --- a/docs/examples/1.1.x/client-android/java/account/update-phone.md +++ b/docs/examples/1.1.x/client-android/java/account/update-phone.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/update-prefs.md b/docs/examples/1.1.x/client-android/java/account/update-prefs.md index 376425ef4bf..0e8bbad3d8a 100644 --- a/docs/examples/1.1.x/client-android/java/account/update-prefs.md +++ b/docs/examples/1.1.x/client-android/java/account/update-prefs.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/update-recovery.md b/docs/examples/1.1.x/client-android/java/account/update-recovery.md index 3aceb4c760b..f4ed6369d56 100644 --- a/docs/examples/1.1.x/client-android/java/account/update-recovery.md +++ b/docs/examples/1.1.x/client-android/java/account/update-recovery.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/update-session.md b/docs/examples/1.1.x/client-android/java/account/update-session.md index 83a91c50208..bba895318dc 100644 --- a/docs/examples/1.1.x/client-android/java/account/update-session.md +++ b/docs/examples/1.1.x/client-android/java/account/update-session.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/update-status.md b/docs/examples/1.1.x/client-android/java/account/update-status.md index 34eece35d81..66df60f1a5a 100644 --- a/docs/examples/1.1.x/client-android/java/account/update-status.md +++ b/docs/examples/1.1.x/client-android/java/account/update-status.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/account/update-verification.md b/docs/examples/1.1.x/client-android/java/account/update-verification.md index b29574b2a25..40c87ab0066 100644 --- a/docs/examples/1.1.x/client-android/java/account/update-verification.md +++ b/docs/examples/1.1.x/client-android/java/account/update-verification.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.1.x/client-android/java/avatars/get-browser.md b/docs/examples/1.1.x/client-android/java/avatars/get-browser.md index 23649a4df26..8dbcd9368f2 100644 --- a/docs/examples/1.1.x/client-android/java/avatars/get-browser.md +++ b/docs/examples/1.1.x/client-android/java/avatars/get-browser.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.1.x/client-android/java/avatars/get-credit-card.md b/docs/examples/1.1.x/client-android/java/avatars/get-credit-card.md index 2987032f557..f824daf919a 100644 --- a/docs/examples/1.1.x/client-android/java/avatars/get-credit-card.md +++ b/docs/examples/1.1.x/client-android/java/avatars/get-credit-card.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.1.x/client-android/java/avatars/get-favicon.md b/docs/examples/1.1.x/client-android/java/avatars/get-favicon.md index 4c308c3a83b..b4f5365f36c 100644 --- a/docs/examples/1.1.x/client-android/java/avatars/get-favicon.md +++ b/docs/examples/1.1.x/client-android/java/avatars/get-favicon.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.1.x/client-android/java/avatars/get-flag.md b/docs/examples/1.1.x/client-android/java/avatars/get-flag.md index c1420690984..4299fd637a1 100644 --- a/docs/examples/1.1.x/client-android/java/avatars/get-flag.md +++ b/docs/examples/1.1.x/client-android/java/avatars/get-flag.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.1.x/client-android/java/avatars/get-image.md b/docs/examples/1.1.x/client-android/java/avatars/get-image.md index 1e8fae26823..28592a6345e 100644 --- a/docs/examples/1.1.x/client-android/java/avatars/get-image.md +++ b/docs/examples/1.1.x/client-android/java/avatars/get-image.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.1.x/client-android/java/avatars/get-initials.md b/docs/examples/1.1.x/client-android/java/avatars/get-initials.md index e75f0d83d24..1f7e29d11ac 100644 --- a/docs/examples/1.1.x/client-android/java/avatars/get-initials.md +++ b/docs/examples/1.1.x/client-android/java/avatars/get-initials.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.1.x/client-android/java/avatars/get-q-r.md b/docs/examples/1.1.x/client-android/java/avatars/get-q-r.md index a7967393450..06c089c363b 100644 --- a/docs/examples/1.1.x/client-android/java/avatars/get-q-r.md +++ b/docs/examples/1.1.x/client-android/java/avatars/get-q-r.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.1.x/client-android/java/databases/create-document.md b/docs/examples/1.1.x/client-android/java/databases/create-document.md index 7c146ffc23d..a5b50fe0ac8 100644 --- a/docs/examples/1.1.x/client-android/java/databases/create-document.md +++ b/docs/examples/1.1.x/client-android/java/databases/create-document.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.1.x/client-android/java/databases/delete-document.md b/docs/examples/1.1.x/client-android/java/databases/delete-document.md index 6c72692246c..758a84c35d6 100644 --- a/docs/examples/1.1.x/client-android/java/databases/delete-document.md +++ b/docs/examples/1.1.x/client-android/java/databases/delete-document.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.1.x/client-android/java/databases/get-document.md b/docs/examples/1.1.x/client-android/java/databases/get-document.md index adbdb0a9c8f..c70f786a741 100644 --- a/docs/examples/1.1.x/client-android/java/databases/get-document.md +++ b/docs/examples/1.1.x/client-android/java/databases/get-document.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.1.x/client-android/java/databases/list-documents.md b/docs/examples/1.1.x/client-android/java/databases/list-documents.md index d819c653fe4..b6fe067c472 100644 --- a/docs/examples/1.1.x/client-android/java/databases/list-documents.md +++ b/docs/examples/1.1.x/client-android/java/databases/list-documents.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.1.x/client-android/java/databases/update-document.md b/docs/examples/1.1.x/client-android/java/databases/update-document.md index 9f64eb5bcda..31bbacd303f 100644 --- a/docs/examples/1.1.x/client-android/java/databases/update-document.md +++ b/docs/examples/1.1.x/client-android/java/databases/update-document.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.1.x/client-android/java/functions/create-execution.md b/docs/examples/1.1.x/client-android/java/functions/create-execution.md index 9002fc2680f..489686cf476 100644 --- a/docs/examples/1.1.x/client-android/java/functions/create-execution.md +++ b/docs/examples/1.1.x/client-android/java/functions/create-execution.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.1.x/client-android/java/functions/get-execution.md b/docs/examples/1.1.x/client-android/java/functions/get-execution.md index e94f2c95792..42b75e2d52c 100644 --- a/docs/examples/1.1.x/client-android/java/functions/get-execution.md +++ b/docs/examples/1.1.x/client-android/java/functions/get-execution.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.1.x/client-android/java/functions/list-executions.md b/docs/examples/1.1.x/client-android/java/functions/list-executions.md index 83c56f2ee4f..665b1a68374 100644 --- a/docs/examples/1.1.x/client-android/java/functions/list-executions.md +++ b/docs/examples/1.1.x/client-android/java/functions/list-executions.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.1.x/client-android/java/locale/get.md b/docs/examples/1.1.x/client-android/java/locale/get.md index a89ffde876a..f3dd917a079 100644 --- a/docs/examples/1.1.x/client-android/java/locale/get.md +++ b/docs/examples/1.1.x/client-android/java/locale/get.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.1.x/client-android/java/locale/list-continents.md b/docs/examples/1.1.x/client-android/java/locale/list-continents.md index 9c7f7dd5fd3..a74ad626dc6 100644 --- a/docs/examples/1.1.x/client-android/java/locale/list-continents.md +++ b/docs/examples/1.1.x/client-android/java/locale/list-continents.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.1.x/client-android/java/locale/list-countries-e-u.md b/docs/examples/1.1.x/client-android/java/locale/list-countries-e-u.md index e5e065d60ed..e9f7ddcf8d6 100644 --- a/docs/examples/1.1.x/client-android/java/locale/list-countries-e-u.md +++ b/docs/examples/1.1.x/client-android/java/locale/list-countries-e-u.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.1.x/client-android/java/locale/list-countries-phones.md b/docs/examples/1.1.x/client-android/java/locale/list-countries-phones.md index 5e5eae05f12..594636aacb9 100644 --- a/docs/examples/1.1.x/client-android/java/locale/list-countries-phones.md +++ b/docs/examples/1.1.x/client-android/java/locale/list-countries-phones.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.1.x/client-android/java/locale/list-countries.md b/docs/examples/1.1.x/client-android/java/locale/list-countries.md index 06693c19a9c..ad34b0b7412 100644 --- a/docs/examples/1.1.x/client-android/java/locale/list-countries.md +++ b/docs/examples/1.1.x/client-android/java/locale/list-countries.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.1.x/client-android/java/locale/list-currencies.md b/docs/examples/1.1.x/client-android/java/locale/list-currencies.md index bc1b0f1a9de..2b835867737 100644 --- a/docs/examples/1.1.x/client-android/java/locale/list-currencies.md +++ b/docs/examples/1.1.x/client-android/java/locale/list-currencies.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.1.x/client-android/java/locale/list-languages.md b/docs/examples/1.1.x/client-android/java/locale/list-languages.md index ef1cb3c90a2..f47208cf0b3 100644 --- a/docs/examples/1.1.x/client-android/java/locale/list-languages.md +++ b/docs/examples/1.1.x/client-android/java/locale/list-languages.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.1.x/client-android/java/storage/create-file.md b/docs/examples/1.1.x/client-android/java/storage/create-file.md index ebf4e677462..56feb9e9450 100644 --- a/docs/examples/1.1.x/client-android/java/storage/create-file.md +++ b/docs/examples/1.1.x/client-android/java/storage/create-file.md @@ -14,7 +14,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.1.x/client-android/java/storage/delete-file.md b/docs/examples/1.1.x/client-android/java/storage/delete-file.md index 4b7ca75ef0b..a51a7303e6c 100644 --- a/docs/examples/1.1.x/client-android/java/storage/delete-file.md +++ b/docs/examples/1.1.x/client-android/java/storage/delete-file.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.1.x/client-android/java/storage/get-file-download.md b/docs/examples/1.1.x/client-android/java/storage/get-file-download.md index f872bbba1ca..a32144afab6 100644 --- a/docs/examples/1.1.x/client-android/java/storage/get-file-download.md +++ b/docs/examples/1.1.x/client-android/java/storage/get-file-download.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.1.x/client-android/java/storage/get-file-preview.md b/docs/examples/1.1.x/client-android/java/storage/get-file-preview.md index de2350d0d19..d01356c5a5f 100644 --- a/docs/examples/1.1.x/client-android/java/storage/get-file-preview.md +++ b/docs/examples/1.1.x/client-android/java/storage/get-file-preview.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.1.x/client-android/java/storage/get-file-view.md b/docs/examples/1.1.x/client-android/java/storage/get-file-view.md index 4c8f4805378..2e5b146430b 100644 --- a/docs/examples/1.1.x/client-android/java/storage/get-file-view.md +++ b/docs/examples/1.1.x/client-android/java/storage/get-file-view.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.1.x/client-android/java/storage/get-file.md b/docs/examples/1.1.x/client-android/java/storage/get-file.md index 5599fe3432b..9b005810078 100644 --- a/docs/examples/1.1.x/client-android/java/storage/get-file.md +++ b/docs/examples/1.1.x/client-android/java/storage/get-file.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.1.x/client-android/java/storage/list-files.md b/docs/examples/1.1.x/client-android/java/storage/list-files.md index 8f2e1232df5..3767b4d4b8c 100644 --- a/docs/examples/1.1.x/client-android/java/storage/list-files.md +++ b/docs/examples/1.1.x/client-android/java/storage/list-files.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.1.x/client-android/java/storage/update-file.md b/docs/examples/1.1.x/client-android/java/storage/update-file.md index ae9f138b010..d856ecc5329 100644 --- a/docs/examples/1.1.x/client-android/java/storage/update-file.md +++ b/docs/examples/1.1.x/client-android/java/storage/update-file.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.1.x/client-android/java/teams/create-membership.md b/docs/examples/1.1.x/client-android/java/teams/create-membership.md index c4615cabf88..d3ad5f013ad 100644 --- a/docs/examples/1.1.x/client-android/java/teams/create-membership.md +++ b/docs/examples/1.1.x/client-android/java/teams/create-membership.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.1.x/client-android/java/teams/create.md b/docs/examples/1.1.x/client-android/java/teams/create.md index 93367655cd2..d6fb9836ca8 100644 --- a/docs/examples/1.1.x/client-android/java/teams/create.md +++ b/docs/examples/1.1.x/client-android/java/teams/create.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.1.x/client-android/java/teams/delete-membership.md b/docs/examples/1.1.x/client-android/java/teams/delete-membership.md index ae8eb96f899..baacc82d4c0 100644 --- a/docs/examples/1.1.x/client-android/java/teams/delete-membership.md +++ b/docs/examples/1.1.x/client-android/java/teams/delete-membership.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.1.x/client-android/java/teams/delete.md b/docs/examples/1.1.x/client-android/java/teams/delete.md index 64376350a17..431b1f18d33 100644 --- a/docs/examples/1.1.x/client-android/java/teams/delete.md +++ b/docs/examples/1.1.x/client-android/java/teams/delete.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.1.x/client-android/java/teams/get-membership.md b/docs/examples/1.1.x/client-android/java/teams/get-membership.md index fd9319cb2c7..6cb3f61d7b5 100644 --- a/docs/examples/1.1.x/client-android/java/teams/get-membership.md +++ b/docs/examples/1.1.x/client-android/java/teams/get-membership.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.1.x/client-android/java/teams/get.md b/docs/examples/1.1.x/client-android/java/teams/get.md index 8ec069ff66e..ffd6f1cb7da 100644 --- a/docs/examples/1.1.x/client-android/java/teams/get.md +++ b/docs/examples/1.1.x/client-android/java/teams/get.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.1.x/client-android/java/teams/list-memberships.md b/docs/examples/1.1.x/client-android/java/teams/list-memberships.md index aa28fc62e4f..2f757803313 100644 --- a/docs/examples/1.1.x/client-android/java/teams/list-memberships.md +++ b/docs/examples/1.1.x/client-android/java/teams/list-memberships.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.1.x/client-android/java/teams/list.md b/docs/examples/1.1.x/client-android/java/teams/list.md index e5e026756df..2fa812a1720 100644 --- a/docs/examples/1.1.x/client-android/java/teams/list.md +++ b/docs/examples/1.1.x/client-android/java/teams/list.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.1.x/client-android/java/teams/update-membership-roles.md b/docs/examples/1.1.x/client-android/java/teams/update-membership-roles.md index 275fb0ffec0..ec973e84d02 100644 --- a/docs/examples/1.1.x/client-android/java/teams/update-membership-roles.md +++ b/docs/examples/1.1.x/client-android/java/teams/update-membership-roles.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.1.x/client-android/java/teams/update-membership-status.md b/docs/examples/1.1.x/client-android/java/teams/update-membership-status.md index 5c063296b35..30282637adf 100644 --- a/docs/examples/1.1.x/client-android/java/teams/update-membership-status.md +++ b/docs/examples/1.1.x/client-android/java/teams/update-membership-status.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.1.x/client-android/java/teams/update.md b/docs/examples/1.1.x/client-android/java/teams/update.md index 9cfce621626..8ecffde2c47 100644 --- a/docs/examples/1.1.x/client-android/java/teams/update.md +++ b/docs/examples/1.1.x/client-android/java/teams/update.md @@ -13,7 +13,7 @@ public class MainActivity extends AppCompatActivity { setContentView(R.layout.activity_main); Client client = new Client(getApplicationContext()) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.1.x/client-android/kotlin/account/create-anonymous-session.md b/docs/examples/1.1.x/client-android/kotlin/account/create-anonymous-session.md index 523c4387eae..8e65376c0d2 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/create-anonymous-session.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/create-anonymous-session.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/create-email-session.md b/docs/examples/1.1.x/client-android/kotlin/account/create-email-session.md index 397954baa73..526df093de3 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/create-email-session.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/create-email-session.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/create-j-w-t.md b/docs/examples/1.1.x/client-android/kotlin/account/create-j-w-t.md index 4e995224013..84413eb3fa4 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/create-j-w-t.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/create-j-w-t.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/create-magic-u-r-l-session.md b/docs/examples/1.1.x/client-android/kotlin/account/create-magic-u-r-l-session.md index b0eeb8dd20a..1b324d14a17 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/create-magic-u-r-l-session.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/create-o-auth2session.md b/docs/examples/1.1.x/client-android/kotlin/account/create-o-auth2session.md index 63eef21da08..7888ca94ab5 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/create-o-auth2session.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/create-o-auth2session.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/create-phone-session.md b/docs/examples/1.1.x/client-android/kotlin/account/create-phone-session.md index 27b8749a929..be596570a68 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/create-phone-session.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/create-phone-session.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/create-phone-verification.md b/docs/examples/1.1.x/client-android/kotlin/account/create-phone-verification.md index 31ea1ea014d..6afdc3b1647 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/create-phone-verification.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/create-phone-verification.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/create-recovery.md b/docs/examples/1.1.x/client-android/kotlin/account/create-recovery.md index 2153934336f..af57d8355a8 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/create-recovery.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/create-recovery.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/create-verification.md b/docs/examples/1.1.x/client-android/kotlin/account/create-verification.md index 3705fc9fbac..f5303d299f3 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/create-verification.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/create-verification.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/create.md b/docs/examples/1.1.x/client-android/kotlin/account/create.md index 95ac636eedb..44207867e2d 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/create.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/create.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/delete-session.md b/docs/examples/1.1.x/client-android/kotlin/account/delete-session.md index 35168c7838d..c1aa2c37d47 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/delete-session.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/delete-session.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/delete-sessions.md b/docs/examples/1.1.x/client-android/kotlin/account/delete-sessions.md index 9bb811178e4..97f7daf6e80 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/delete-sessions.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/delete-sessions.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/get-prefs.md b/docs/examples/1.1.x/client-android/kotlin/account/get-prefs.md index fbd819e1625..c879c1012b2 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/get-prefs.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/get-prefs.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/get-session.md b/docs/examples/1.1.x/client-android/kotlin/account/get-session.md index 7da8ebf958f..082367724f1 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/get-session.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/get-session.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/get.md b/docs/examples/1.1.x/client-android/kotlin/account/get.md index 6ce5442990d..4dbc6d37c58 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/get.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/get.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/list-logs.md b/docs/examples/1.1.x/client-android/kotlin/account/list-logs.md index 2e5d2a17676..9241ed4cf0b 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/list-logs.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/list-logs.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/list-sessions.md b/docs/examples/1.1.x/client-android/kotlin/account/list-sessions.md index c74443e19d2..59546311084 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/list-sessions.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/list-sessions.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/update-email.md b/docs/examples/1.1.x/client-android/kotlin/account/update-email.md index 9745902f49e..6237dd292a1 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/update-email.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/update-email.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/update-magic-u-r-l-session.md b/docs/examples/1.1.x/client-android/kotlin/account/update-magic-u-r-l-session.md index c8a744a23c8..5715424957d 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/update-magic-u-r-l-session.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/update-name.md b/docs/examples/1.1.x/client-android/kotlin/account/update-name.md index 0aecf3987dd..d3270082bdb 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/update-name.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/update-name.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/update-password.md b/docs/examples/1.1.x/client-android/kotlin/account/update-password.md index 6d634dbfc79..a31926174cc 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/update-password.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/update-password.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/update-phone-session.md b/docs/examples/1.1.x/client-android/kotlin/account/update-phone-session.md index 0e3ad12c15e..c921564e421 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/update-phone-session.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/update-phone-session.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/update-phone-verification.md b/docs/examples/1.1.x/client-android/kotlin/account/update-phone-verification.md index e4db01a901a..d5d516181fd 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/update-phone-verification.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/update-phone-verification.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/update-phone.md b/docs/examples/1.1.x/client-android/kotlin/account/update-phone.md index 9339ba12b76..7590361bf40 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/update-phone.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/update-phone.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/update-prefs.md b/docs/examples/1.1.x/client-android/kotlin/account/update-prefs.md index e5c8340c9c5..e9471e18516 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/update-prefs.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/update-prefs.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/update-recovery.md b/docs/examples/1.1.x/client-android/kotlin/account/update-recovery.md index eb1bcf54cf7..1b9b2b910dc 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/update-recovery.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/update-recovery.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/update-session.md b/docs/examples/1.1.x/client-android/kotlin/account/update-session.md index b8dbdb0c8f4..50d34cfdaa0 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/update-session.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/update-session.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/update-status.md b/docs/examples/1.1.x/client-android/kotlin/account/update-status.md index da910c8da36..f6afc0830b7 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/update-status.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/update-status.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/account/update-verification.md b/docs/examples/1.1.x/client-android/kotlin/account/update-verification.md index 05ea52b4e01..2fc2612c1c7 100644 --- a/docs/examples/1.1.x/client-android/kotlin/account/update-verification.md +++ b/docs/examples/1.1.x/client-android/kotlin/account/update-verification.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/avatars/get-browser.md b/docs/examples/1.1.x/client-android/kotlin/avatars/get-browser.md index 5709b914bd1..e7041ea9f47 100644 --- a/docs/examples/1.1.x/client-android/kotlin/avatars/get-browser.md +++ b/docs/examples/1.1.x/client-android/kotlin/avatars/get-browser.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/avatars/get-credit-card.md b/docs/examples/1.1.x/client-android/kotlin/avatars/get-credit-card.md index 5e3bfa3c9fc..dda629da087 100644 --- a/docs/examples/1.1.x/client-android/kotlin/avatars/get-credit-card.md +++ b/docs/examples/1.1.x/client-android/kotlin/avatars/get-credit-card.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/avatars/get-favicon.md b/docs/examples/1.1.x/client-android/kotlin/avatars/get-favicon.md index 9cb0ce96ccd..805bf4e9172 100644 --- a/docs/examples/1.1.x/client-android/kotlin/avatars/get-favicon.md +++ b/docs/examples/1.1.x/client-android/kotlin/avatars/get-favicon.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/avatars/get-flag.md b/docs/examples/1.1.x/client-android/kotlin/avatars/get-flag.md index 015ed2e9441..0e751605110 100644 --- a/docs/examples/1.1.x/client-android/kotlin/avatars/get-flag.md +++ b/docs/examples/1.1.x/client-android/kotlin/avatars/get-flag.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/avatars/get-image.md b/docs/examples/1.1.x/client-android/kotlin/avatars/get-image.md index c82bfae0ab8..9cea5a9e142 100644 --- a/docs/examples/1.1.x/client-android/kotlin/avatars/get-image.md +++ b/docs/examples/1.1.x/client-android/kotlin/avatars/get-image.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/avatars/get-initials.md b/docs/examples/1.1.x/client-android/kotlin/avatars/get-initials.md index ca94c129647..6f0bd57ce5a 100644 --- a/docs/examples/1.1.x/client-android/kotlin/avatars/get-initials.md +++ b/docs/examples/1.1.x/client-android/kotlin/avatars/get-initials.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/avatars/get-q-r.md b/docs/examples/1.1.x/client-android/kotlin/avatars/get-q-r.md index 47ccf7b71bb..45742a2c4a6 100644 --- a/docs/examples/1.1.x/client-android/kotlin/avatars/get-q-r.md +++ b/docs/examples/1.1.x/client-android/kotlin/avatars/get-q-r.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/databases/create-document.md b/docs/examples/1.1.x/client-android/kotlin/databases/create-document.md index b552212c718..b05f5284477 100644 --- a/docs/examples/1.1.x/client-android/kotlin/databases/create-document.md +++ b/docs/examples/1.1.x/client-android/kotlin/databases/create-document.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/databases/delete-document.md b/docs/examples/1.1.x/client-android/kotlin/databases/delete-document.md index 3c657a0a7c5..aa119eb9d53 100644 --- a/docs/examples/1.1.x/client-android/kotlin/databases/delete-document.md +++ b/docs/examples/1.1.x/client-android/kotlin/databases/delete-document.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/databases/get-document.md b/docs/examples/1.1.x/client-android/kotlin/databases/get-document.md index 37c054620be..b19abfa6330 100644 --- a/docs/examples/1.1.x/client-android/kotlin/databases/get-document.md +++ b/docs/examples/1.1.x/client-android/kotlin/databases/get-document.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/databases/list-documents.md b/docs/examples/1.1.x/client-android/kotlin/databases/list-documents.md index de6949afa72..881d3d76977 100644 --- a/docs/examples/1.1.x/client-android/kotlin/databases/list-documents.md +++ b/docs/examples/1.1.x/client-android/kotlin/databases/list-documents.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/databases/update-document.md b/docs/examples/1.1.x/client-android/kotlin/databases/update-document.md index b25a52f9687..74c0fc615b7 100644 --- a/docs/examples/1.1.x/client-android/kotlin/databases/update-document.md +++ b/docs/examples/1.1.x/client-android/kotlin/databases/update-document.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/functions/create-execution.md b/docs/examples/1.1.x/client-android/kotlin/functions/create-execution.md index 92c06e09465..45ba677cab1 100644 --- a/docs/examples/1.1.x/client-android/kotlin/functions/create-execution.md +++ b/docs/examples/1.1.x/client-android/kotlin/functions/create-execution.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/functions/get-execution.md b/docs/examples/1.1.x/client-android/kotlin/functions/get-execution.md index 60a8b0a4fdb..25413862a32 100644 --- a/docs/examples/1.1.x/client-android/kotlin/functions/get-execution.md +++ b/docs/examples/1.1.x/client-android/kotlin/functions/get-execution.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/functions/list-executions.md b/docs/examples/1.1.x/client-android/kotlin/functions/list-executions.md index 7229499027d..aea08d185c7 100644 --- a/docs/examples/1.1.x/client-android/kotlin/functions/list-executions.md +++ b/docs/examples/1.1.x/client-android/kotlin/functions/list-executions.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/locale/get.md b/docs/examples/1.1.x/client-android/kotlin/locale/get.md index ab41f9d14d2..1f1a0c50674 100644 --- a/docs/examples/1.1.x/client-android/kotlin/locale/get.md +++ b/docs/examples/1.1.x/client-android/kotlin/locale/get.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/locale/list-continents.md b/docs/examples/1.1.x/client-android/kotlin/locale/list-continents.md index 000fb44e678..555bdaad1c6 100644 --- a/docs/examples/1.1.x/client-android/kotlin/locale/list-continents.md +++ b/docs/examples/1.1.x/client-android/kotlin/locale/list-continents.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/locale/list-countries-e-u.md b/docs/examples/1.1.x/client-android/kotlin/locale/list-countries-e-u.md index 4f5da4c4d32..aef915af140 100644 --- a/docs/examples/1.1.x/client-android/kotlin/locale/list-countries-e-u.md +++ b/docs/examples/1.1.x/client-android/kotlin/locale/list-countries-e-u.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/locale/list-countries-phones.md b/docs/examples/1.1.x/client-android/kotlin/locale/list-countries-phones.md index c6fead14a0a..8909914a103 100644 --- a/docs/examples/1.1.x/client-android/kotlin/locale/list-countries-phones.md +++ b/docs/examples/1.1.x/client-android/kotlin/locale/list-countries-phones.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/locale/list-countries.md b/docs/examples/1.1.x/client-android/kotlin/locale/list-countries.md index 1e883c57e8f..e9bb22acc40 100644 --- a/docs/examples/1.1.x/client-android/kotlin/locale/list-countries.md +++ b/docs/examples/1.1.x/client-android/kotlin/locale/list-countries.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/locale/list-currencies.md b/docs/examples/1.1.x/client-android/kotlin/locale/list-currencies.md index 20b60bdc81b..2a59d32117c 100644 --- a/docs/examples/1.1.x/client-android/kotlin/locale/list-currencies.md +++ b/docs/examples/1.1.x/client-android/kotlin/locale/list-currencies.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/locale/list-languages.md b/docs/examples/1.1.x/client-android/kotlin/locale/list-languages.md index ace38e54c81..b819b84ed37 100644 --- a/docs/examples/1.1.x/client-android/kotlin/locale/list-languages.md +++ b/docs/examples/1.1.x/client-android/kotlin/locale/list-languages.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/storage/create-file.md b/docs/examples/1.1.x/client-android/kotlin/storage/create-file.md index 1a35bbf4d26..2602db34939 100644 --- a/docs/examples/1.1.x/client-android/kotlin/storage/create-file.md +++ b/docs/examples/1.1.x/client-android/kotlin/storage/create-file.md @@ -12,7 +12,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/storage/delete-file.md b/docs/examples/1.1.x/client-android/kotlin/storage/delete-file.md index 1f95a13fb4b..867f51d7c11 100644 --- a/docs/examples/1.1.x/client-android/kotlin/storage/delete-file.md +++ b/docs/examples/1.1.x/client-android/kotlin/storage/delete-file.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/storage/get-file-download.md b/docs/examples/1.1.x/client-android/kotlin/storage/get-file-download.md index 7dad4d75487..57eea68e7ac 100644 --- a/docs/examples/1.1.x/client-android/kotlin/storage/get-file-download.md +++ b/docs/examples/1.1.x/client-android/kotlin/storage/get-file-download.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/storage/get-file-preview.md b/docs/examples/1.1.x/client-android/kotlin/storage/get-file-preview.md index e0297ffb498..2f3efa8e151 100644 --- a/docs/examples/1.1.x/client-android/kotlin/storage/get-file-preview.md +++ b/docs/examples/1.1.x/client-android/kotlin/storage/get-file-preview.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/storage/get-file-view.md b/docs/examples/1.1.x/client-android/kotlin/storage/get-file-view.md index 2a502cdad26..e324b19e7c3 100644 --- a/docs/examples/1.1.x/client-android/kotlin/storage/get-file-view.md +++ b/docs/examples/1.1.x/client-android/kotlin/storage/get-file-view.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/storage/get-file.md b/docs/examples/1.1.x/client-android/kotlin/storage/get-file.md index 8a8a2f11cfa..15a9f41bea1 100644 --- a/docs/examples/1.1.x/client-android/kotlin/storage/get-file.md +++ b/docs/examples/1.1.x/client-android/kotlin/storage/get-file.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/storage/list-files.md b/docs/examples/1.1.x/client-android/kotlin/storage/list-files.md index e8889ff222d..fc013defc0d 100644 --- a/docs/examples/1.1.x/client-android/kotlin/storage/list-files.md +++ b/docs/examples/1.1.x/client-android/kotlin/storage/list-files.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/storage/update-file.md b/docs/examples/1.1.x/client-android/kotlin/storage/update-file.md index 85fa0e9d077..146522bd37d 100644 --- a/docs/examples/1.1.x/client-android/kotlin/storage/update-file.md +++ b/docs/examples/1.1.x/client-android/kotlin/storage/update-file.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/teams/create-membership.md b/docs/examples/1.1.x/client-android/kotlin/teams/create-membership.md index 2c834f01f77..5f2a4242b96 100644 --- a/docs/examples/1.1.x/client-android/kotlin/teams/create-membership.md +++ b/docs/examples/1.1.x/client-android/kotlin/teams/create-membership.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/teams/create.md b/docs/examples/1.1.x/client-android/kotlin/teams/create.md index 53808fb5ec7..841bd9b8dcc 100644 --- a/docs/examples/1.1.x/client-android/kotlin/teams/create.md +++ b/docs/examples/1.1.x/client-android/kotlin/teams/create.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/teams/delete-membership.md b/docs/examples/1.1.x/client-android/kotlin/teams/delete-membership.md index c76a656bd5a..2df0d977dc6 100644 --- a/docs/examples/1.1.x/client-android/kotlin/teams/delete-membership.md +++ b/docs/examples/1.1.x/client-android/kotlin/teams/delete-membership.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/teams/delete.md b/docs/examples/1.1.x/client-android/kotlin/teams/delete.md index e94b847185e..1ab1a72eb20 100644 --- a/docs/examples/1.1.x/client-android/kotlin/teams/delete.md +++ b/docs/examples/1.1.x/client-android/kotlin/teams/delete.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/teams/get-membership.md b/docs/examples/1.1.x/client-android/kotlin/teams/get-membership.md index b895e43ae14..bee457e1590 100644 --- a/docs/examples/1.1.x/client-android/kotlin/teams/get-membership.md +++ b/docs/examples/1.1.x/client-android/kotlin/teams/get-membership.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/teams/get.md b/docs/examples/1.1.x/client-android/kotlin/teams/get.md index b2e44ad8a86..d6af87208d9 100644 --- a/docs/examples/1.1.x/client-android/kotlin/teams/get.md +++ b/docs/examples/1.1.x/client-android/kotlin/teams/get.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/teams/list-memberships.md b/docs/examples/1.1.x/client-android/kotlin/teams/list-memberships.md index 1dc4cadd5ea..d9eb219ab40 100644 --- a/docs/examples/1.1.x/client-android/kotlin/teams/list-memberships.md +++ b/docs/examples/1.1.x/client-android/kotlin/teams/list-memberships.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/teams/list.md b/docs/examples/1.1.x/client-android/kotlin/teams/list.md index bb9b6fff83a..f133df09b8e 100644 --- a/docs/examples/1.1.x/client-android/kotlin/teams/list.md +++ b/docs/examples/1.1.x/client-android/kotlin/teams/list.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/teams/update-membership-roles.md b/docs/examples/1.1.x/client-android/kotlin/teams/update-membership-roles.md index b23ebf07e3d..676973ddcb1 100644 --- a/docs/examples/1.1.x/client-android/kotlin/teams/update-membership-roles.md +++ b/docs/examples/1.1.x/client-android/kotlin/teams/update-membership-roles.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/teams/update-membership-status.md b/docs/examples/1.1.x/client-android/kotlin/teams/update-membership-status.md index f4bc29f01d7..fc11c4e047e 100644 --- a/docs/examples/1.1.x/client-android/kotlin/teams/update-membership-status.md +++ b/docs/examples/1.1.x/client-android/kotlin/teams/update-membership-status.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.1.x/client-android/kotlin/teams/update.md b/docs/examples/1.1.x/client-android/kotlin/teams/update.md index fc9447f0e97..30ed177b2fc 100644 --- a/docs/examples/1.1.x/client-android/kotlin/teams/update.md +++ b/docs/examples/1.1.x/client-android/kotlin/teams/update.md @@ -11,7 +11,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.1.x/client-apple/examples/account/create-anonymous-session.md b/docs/examples/1.1.x/client-apple/examples/account/create-anonymous-session.md index b01493a2498..5d393d835df 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/create-anonymous-session.md +++ b/docs/examples/1.1.x/client-apple/examples/account/create-anonymous-session.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let session = try await account.createAnonymousSession() diff --git a/docs/examples/1.1.x/client-apple/examples/account/create-email-session.md b/docs/examples/1.1.x/client-apple/examples/account/create-email-session.md index 19e9576d9e2..703f6dd7887 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/create-email-session.md +++ b/docs/examples/1.1.x/client-apple/examples/account/create-email-session.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let session = try await account.createEmailSession( diff --git a/docs/examples/1.1.x/client-apple/examples/account/create-j-w-t.md b/docs/examples/1.1.x/client-apple/examples/account/create-j-w-t.md index 8b3ce9b0560..6f36952df5c 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/create-j-w-t.md +++ b/docs/examples/1.1.x/client-apple/examples/account/create-j-w-t.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let jwt = try await account.createJWT() diff --git a/docs/examples/1.1.x/client-apple/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.1.x/client-apple/examples/account/create-magic-u-r-l-session.md index 92dd6eb5f39..ea56334a437 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.1.x/client-apple/examples/account/create-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let token = try await account.createMagicURLSession( diff --git a/docs/examples/1.1.x/client-apple/examples/account/create-o-auth2session.md b/docs/examples/1.1.x/client-apple/examples/account/create-o-auth2session.md index 45d5ccb19c8..8df03f1d418 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/create-o-auth2session.md +++ b/docs/examples/1.1.x/client-apple/examples/account/create-o-auth2session.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let success = try await account.createOAuth2Session( diff --git a/docs/examples/1.1.x/client-apple/examples/account/create-phone-session.md b/docs/examples/1.1.x/client-apple/examples/account/create-phone-session.md index f1466edc9dc..911813d7f12 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/create-phone-session.md +++ b/docs/examples/1.1.x/client-apple/examples/account/create-phone-session.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let token = try await account.createPhoneSession( diff --git a/docs/examples/1.1.x/client-apple/examples/account/create-phone-verification.md b/docs/examples/1.1.x/client-apple/examples/account/create-phone-verification.md index acb37fe6390..4e26cfabf95 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/create-phone-verification.md +++ b/docs/examples/1.1.x/client-apple/examples/account/create-phone-verification.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let token = try await account.createPhoneVerification() diff --git a/docs/examples/1.1.x/client-apple/examples/account/create-recovery.md b/docs/examples/1.1.x/client-apple/examples/account/create-recovery.md index 997b503550b..edcd4e4f455 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/create-recovery.md +++ b/docs/examples/1.1.x/client-apple/examples/account/create-recovery.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let token = try await account.createRecovery( diff --git a/docs/examples/1.1.x/client-apple/examples/account/create-verification.md b/docs/examples/1.1.x/client-apple/examples/account/create-verification.md index 42f7e6af6bd..6f402f0d8e2 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/create-verification.md +++ b/docs/examples/1.1.x/client-apple/examples/account/create-verification.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let token = try await account.createVerification( diff --git a/docs/examples/1.1.x/client-apple/examples/account/create.md b/docs/examples/1.1.x/client-apple/examples/account/create.md index 0d2f7cf5dba..998cdadabb9 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/create.md +++ b/docs/examples/1.1.x/client-apple/examples/account/create.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let account = try await account.create( diff --git a/docs/examples/1.1.x/client-apple/examples/account/delete-session.md b/docs/examples/1.1.x/client-apple/examples/account/delete-session.md index 5ff8ec5c158..0cfdd0912cf 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/delete-session.md +++ b/docs/examples/1.1.x/client-apple/examples/account/delete-session.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let result = try await account.deleteSession( diff --git a/docs/examples/1.1.x/client-apple/examples/account/delete-sessions.md b/docs/examples/1.1.x/client-apple/examples/account/delete-sessions.md index b0ae70f2d81..e70b69b3c68 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/delete-sessions.md +++ b/docs/examples/1.1.x/client-apple/examples/account/delete-sessions.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let result = try await account.deleteSessions() diff --git a/docs/examples/1.1.x/client-apple/examples/account/get-prefs.md b/docs/examples/1.1.x/client-apple/examples/account/get-prefs.md index 84c422de3da..3a1d2052a67 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/get-prefs.md +++ b/docs/examples/1.1.x/client-apple/examples/account/get-prefs.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let preferences = try await account.getPrefs() diff --git a/docs/examples/1.1.x/client-apple/examples/account/get-session.md b/docs/examples/1.1.x/client-apple/examples/account/get-session.md index 008b21e5843..f960c23c9b9 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/get-session.md +++ b/docs/examples/1.1.x/client-apple/examples/account/get-session.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let session = try await account.getSession( diff --git a/docs/examples/1.1.x/client-apple/examples/account/get.md b/docs/examples/1.1.x/client-apple/examples/account/get.md index c6879c53efb..419e75a0987 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/get.md +++ b/docs/examples/1.1.x/client-apple/examples/account/get.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let account = try await account.get() diff --git a/docs/examples/1.1.x/client-apple/examples/account/list-logs.md b/docs/examples/1.1.x/client-apple/examples/account/list-logs.md index 47904958353..fa8636f7960 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/list-logs.md +++ b/docs/examples/1.1.x/client-apple/examples/account/list-logs.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let logList = try await account.listLogs() diff --git a/docs/examples/1.1.x/client-apple/examples/account/list-sessions.md b/docs/examples/1.1.x/client-apple/examples/account/list-sessions.md index 35e9ddac216..265b7404124 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/list-sessions.md +++ b/docs/examples/1.1.x/client-apple/examples/account/list-sessions.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let sessionList = try await account.listSessions() diff --git a/docs/examples/1.1.x/client-apple/examples/account/update-email.md b/docs/examples/1.1.x/client-apple/examples/account/update-email.md index a242f82e7ce..151ea4ebfe6 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/update-email.md +++ b/docs/examples/1.1.x/client-apple/examples/account/update-email.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let account = try await account.updateEmail( diff --git a/docs/examples/1.1.x/client-apple/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.1.x/client-apple/examples/account/update-magic-u-r-l-session.md index 988c2c95a34..dc4efb8fabe 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.1.x/client-apple/examples/account/update-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let session = try await account.updateMagicURLSession( diff --git a/docs/examples/1.1.x/client-apple/examples/account/update-name.md b/docs/examples/1.1.x/client-apple/examples/account/update-name.md index bd149918e6e..c2e8f782fad 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/update-name.md +++ b/docs/examples/1.1.x/client-apple/examples/account/update-name.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let account = try await account.updateName( diff --git a/docs/examples/1.1.x/client-apple/examples/account/update-password.md b/docs/examples/1.1.x/client-apple/examples/account/update-password.md index 57fe0304531..2fb6c6dc047 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/update-password.md +++ b/docs/examples/1.1.x/client-apple/examples/account/update-password.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let account = try await account.updatePassword( diff --git a/docs/examples/1.1.x/client-apple/examples/account/update-phone-session.md b/docs/examples/1.1.x/client-apple/examples/account/update-phone-session.md index 9d6261ad3bd..95348df62cf 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/update-phone-session.md +++ b/docs/examples/1.1.x/client-apple/examples/account/update-phone-session.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let session = try await account.updatePhoneSession( diff --git a/docs/examples/1.1.x/client-apple/examples/account/update-phone-verification.md b/docs/examples/1.1.x/client-apple/examples/account/update-phone-verification.md index 9aeabe89920..ae7f5b69e58 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/update-phone-verification.md +++ b/docs/examples/1.1.x/client-apple/examples/account/update-phone-verification.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let token = try await account.updatePhoneVerification( diff --git a/docs/examples/1.1.x/client-apple/examples/account/update-phone.md b/docs/examples/1.1.x/client-apple/examples/account/update-phone.md index 0cb3af54eab..7f3654e265d 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/update-phone.md +++ b/docs/examples/1.1.x/client-apple/examples/account/update-phone.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let account = try await account.updatePhone( diff --git a/docs/examples/1.1.x/client-apple/examples/account/update-prefs.md b/docs/examples/1.1.x/client-apple/examples/account/update-prefs.md index 2677743d532..0f4b396a8ef 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/update-prefs.md +++ b/docs/examples/1.1.x/client-apple/examples/account/update-prefs.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let account = try await account.updatePrefs( diff --git a/docs/examples/1.1.x/client-apple/examples/account/update-recovery.md b/docs/examples/1.1.x/client-apple/examples/account/update-recovery.md index f462fb2052d..d3f46e8c790 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/update-recovery.md +++ b/docs/examples/1.1.x/client-apple/examples/account/update-recovery.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let token = try await account.updateRecovery( diff --git a/docs/examples/1.1.x/client-apple/examples/account/update-session.md b/docs/examples/1.1.x/client-apple/examples/account/update-session.md index a4514cbf4fc..0c86ee357bd 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/update-session.md +++ b/docs/examples/1.1.x/client-apple/examples/account/update-session.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let session = try await account.updateSession( diff --git a/docs/examples/1.1.x/client-apple/examples/account/update-status.md b/docs/examples/1.1.x/client-apple/examples/account/update-status.md index 36b28d82ed9..91f005153b4 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/update-status.md +++ b/docs/examples/1.1.x/client-apple/examples/account/update-status.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let account = try await account.updateStatus() diff --git a/docs/examples/1.1.x/client-apple/examples/account/update-verification.md b/docs/examples/1.1.x/client-apple/examples/account/update-verification.md index 9e2938d9688..1bdc2136540 100644 --- a/docs/examples/1.1.x/client-apple/examples/account/update-verification.md +++ b/docs/examples/1.1.x/client-apple/examples/account/update-verification.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) let token = try await account.updateVerification( diff --git a/docs/examples/1.1.x/client-apple/examples/avatars/get-browser.md b/docs/examples/1.1.x/client-apple/examples/avatars/get-browser.md index 64e856ca2bf..8d07de18f04 100644 --- a/docs/examples/1.1.x/client-apple/examples/avatars/get-browser.md +++ b/docs/examples/1.1.x/client-apple/examples/avatars/get-browser.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) let byteBuffer = try await avatars.getBrowser( diff --git a/docs/examples/1.1.x/client-apple/examples/avatars/get-credit-card.md b/docs/examples/1.1.x/client-apple/examples/avatars/get-credit-card.md index b138c07ad4a..f9b209aed53 100644 --- a/docs/examples/1.1.x/client-apple/examples/avatars/get-credit-card.md +++ b/docs/examples/1.1.x/client-apple/examples/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) let byteBuffer = try await avatars.getCreditCard( diff --git a/docs/examples/1.1.x/client-apple/examples/avatars/get-favicon.md b/docs/examples/1.1.x/client-apple/examples/avatars/get-favicon.md index 13f0ebee3be..7cb3ecc35eb 100644 --- a/docs/examples/1.1.x/client-apple/examples/avatars/get-favicon.md +++ b/docs/examples/1.1.x/client-apple/examples/avatars/get-favicon.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) let byteBuffer = try await avatars.getFavicon( diff --git a/docs/examples/1.1.x/client-apple/examples/avatars/get-flag.md b/docs/examples/1.1.x/client-apple/examples/avatars/get-flag.md index 9a4481738e8..f8a957d1235 100644 --- a/docs/examples/1.1.x/client-apple/examples/avatars/get-flag.md +++ b/docs/examples/1.1.x/client-apple/examples/avatars/get-flag.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) let byteBuffer = try await avatars.getFlag( diff --git a/docs/examples/1.1.x/client-apple/examples/avatars/get-image.md b/docs/examples/1.1.x/client-apple/examples/avatars/get-image.md index 72b16230bb1..6d8e3cf43ba 100644 --- a/docs/examples/1.1.x/client-apple/examples/avatars/get-image.md +++ b/docs/examples/1.1.x/client-apple/examples/avatars/get-image.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) let byteBuffer = try await avatars.getImage( diff --git a/docs/examples/1.1.x/client-apple/examples/avatars/get-initials.md b/docs/examples/1.1.x/client-apple/examples/avatars/get-initials.md index e72da226a06..518a0f169be 100644 --- a/docs/examples/1.1.x/client-apple/examples/avatars/get-initials.md +++ b/docs/examples/1.1.x/client-apple/examples/avatars/get-initials.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) let byteBuffer = try await avatars.getInitials() diff --git a/docs/examples/1.1.x/client-apple/examples/avatars/get-q-r.md b/docs/examples/1.1.x/client-apple/examples/avatars/get-q-r.md index 68c7bd3cb1a..7e48077ddcb 100644 --- a/docs/examples/1.1.x/client-apple/examples/avatars/get-q-r.md +++ b/docs/examples/1.1.x/client-apple/examples/avatars/get-q-r.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) let byteBuffer = try await avatars.getQR( diff --git a/docs/examples/1.1.x/client-apple/examples/databases/create-document.md b/docs/examples/1.1.x/client-apple/examples/databases/create-document.md index 5980887c483..2ecab8695e9 100644 --- a/docs/examples/1.1.x/client-apple/examples/databases/create-document.md +++ b/docs/examples/1.1.x/client-apple/examples/databases/create-document.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) let document = try await databases.createDocument( diff --git a/docs/examples/1.1.x/client-apple/examples/databases/delete-document.md b/docs/examples/1.1.x/client-apple/examples/databases/delete-document.md index 0f75b7a92d7..2170f5ede11 100644 --- a/docs/examples/1.1.x/client-apple/examples/databases/delete-document.md +++ b/docs/examples/1.1.x/client-apple/examples/databases/delete-document.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) let result = try await databases.deleteDocument( diff --git a/docs/examples/1.1.x/client-apple/examples/databases/get-document.md b/docs/examples/1.1.x/client-apple/examples/databases/get-document.md index 14e40cb617e..c9728cf4b7f 100644 --- a/docs/examples/1.1.x/client-apple/examples/databases/get-document.md +++ b/docs/examples/1.1.x/client-apple/examples/databases/get-document.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) let document = try await databases.getDocument( diff --git a/docs/examples/1.1.x/client-apple/examples/databases/list-documents.md b/docs/examples/1.1.x/client-apple/examples/databases/list-documents.md index 83e925c5806..71c97c46e05 100644 --- a/docs/examples/1.1.x/client-apple/examples/databases/list-documents.md +++ b/docs/examples/1.1.x/client-apple/examples/databases/list-documents.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) let documentList = try await databases.listDocuments( diff --git a/docs/examples/1.1.x/client-apple/examples/databases/update-document.md b/docs/examples/1.1.x/client-apple/examples/databases/update-document.md index cf9c3f9830d..f25c25c3954 100644 --- a/docs/examples/1.1.x/client-apple/examples/databases/update-document.md +++ b/docs/examples/1.1.x/client-apple/examples/databases/update-document.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) let document = try await databases.updateDocument( diff --git a/docs/examples/1.1.x/client-apple/examples/functions/create-execution.md b/docs/examples/1.1.x/client-apple/examples/functions/create-execution.md index 14ffedda8a2..b8bf7d8a8f2 100644 --- a/docs/examples/1.1.x/client-apple/examples/functions/create-execution.md +++ b/docs/examples/1.1.x/client-apple/examples/functions/create-execution.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let functions = Functions(client) let execution = try await functions.createExecution( diff --git a/docs/examples/1.1.x/client-apple/examples/functions/get-execution.md b/docs/examples/1.1.x/client-apple/examples/functions/get-execution.md index 76383cf16ad..4a96e8e4eb3 100644 --- a/docs/examples/1.1.x/client-apple/examples/functions/get-execution.md +++ b/docs/examples/1.1.x/client-apple/examples/functions/get-execution.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let functions = Functions(client) let execution = try await functions.getExecution( diff --git a/docs/examples/1.1.x/client-apple/examples/functions/list-executions.md b/docs/examples/1.1.x/client-apple/examples/functions/list-executions.md index d1b988d3ff6..84697abcdf1 100644 --- a/docs/examples/1.1.x/client-apple/examples/functions/list-executions.md +++ b/docs/examples/1.1.x/client-apple/examples/functions/list-executions.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let functions = Functions(client) let executionList = try await functions.listExecutions( diff --git a/docs/examples/1.1.x/client-apple/examples/locale/get.md b/docs/examples/1.1.x/client-apple/examples/locale/get.md index 69ddcb19196..3abe976fbc5 100644 --- a/docs/examples/1.1.x/client-apple/examples/locale/get.md +++ b/docs/examples/1.1.x/client-apple/examples/locale/get.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) let locale = try await locale.get() diff --git a/docs/examples/1.1.x/client-apple/examples/locale/list-continents.md b/docs/examples/1.1.x/client-apple/examples/locale/list-continents.md index 4430d3760f7..afd6a9d6b49 100644 --- a/docs/examples/1.1.x/client-apple/examples/locale/list-continents.md +++ b/docs/examples/1.1.x/client-apple/examples/locale/list-continents.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) let continentList = try await locale.listContinents() diff --git a/docs/examples/1.1.x/client-apple/examples/locale/list-countries-e-u.md b/docs/examples/1.1.x/client-apple/examples/locale/list-countries-e-u.md index 710fae830c7..43502702eb1 100644 --- a/docs/examples/1.1.x/client-apple/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.1.x/client-apple/examples/locale/list-countries-e-u.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) let countryList = try await locale.listCountriesEU() diff --git a/docs/examples/1.1.x/client-apple/examples/locale/list-countries-phones.md b/docs/examples/1.1.x/client-apple/examples/locale/list-countries-phones.md index ed41b8a6618..07b9e070143 100644 --- a/docs/examples/1.1.x/client-apple/examples/locale/list-countries-phones.md +++ b/docs/examples/1.1.x/client-apple/examples/locale/list-countries-phones.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) let phoneList = try await locale.listCountriesPhones() diff --git a/docs/examples/1.1.x/client-apple/examples/locale/list-countries.md b/docs/examples/1.1.x/client-apple/examples/locale/list-countries.md index 96dcc552797..9b4b3923cb8 100644 --- a/docs/examples/1.1.x/client-apple/examples/locale/list-countries.md +++ b/docs/examples/1.1.x/client-apple/examples/locale/list-countries.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) let countryList = try await locale.listCountries() diff --git a/docs/examples/1.1.x/client-apple/examples/locale/list-currencies.md b/docs/examples/1.1.x/client-apple/examples/locale/list-currencies.md index 16bde9f3cbb..340494023e9 100644 --- a/docs/examples/1.1.x/client-apple/examples/locale/list-currencies.md +++ b/docs/examples/1.1.x/client-apple/examples/locale/list-currencies.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) let currencyList = try await locale.listCurrencies() diff --git a/docs/examples/1.1.x/client-apple/examples/locale/list-languages.md b/docs/examples/1.1.x/client-apple/examples/locale/list-languages.md index 74092a302a4..18f4e953aba 100644 --- a/docs/examples/1.1.x/client-apple/examples/locale/list-languages.md +++ b/docs/examples/1.1.x/client-apple/examples/locale/list-languages.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) let languageList = try await locale.listLanguages() diff --git a/docs/examples/1.1.x/client-apple/examples/storage/create-file.md b/docs/examples/1.1.x/client-apple/examples/storage/create-file.md index 5be0f44324f..35f8cfe8996 100644 --- a/docs/examples/1.1.x/client-apple/examples/storage/create-file.md +++ b/docs/examples/1.1.x/client-apple/examples/storage/create-file.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) let file = try await storage.createFile( diff --git a/docs/examples/1.1.x/client-apple/examples/storage/delete-file.md b/docs/examples/1.1.x/client-apple/examples/storage/delete-file.md index 1497fa4bc1c..134b7244cb4 100644 --- a/docs/examples/1.1.x/client-apple/examples/storage/delete-file.md +++ b/docs/examples/1.1.x/client-apple/examples/storage/delete-file.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) let result = try await storage.deleteFile( diff --git a/docs/examples/1.1.x/client-apple/examples/storage/get-file-download.md b/docs/examples/1.1.x/client-apple/examples/storage/get-file-download.md index 5c8b8c10bd6..00b888704b8 100644 --- a/docs/examples/1.1.x/client-apple/examples/storage/get-file-download.md +++ b/docs/examples/1.1.x/client-apple/examples/storage/get-file-download.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) let byteBuffer = try await storage.getFileDownload( diff --git a/docs/examples/1.1.x/client-apple/examples/storage/get-file-preview.md b/docs/examples/1.1.x/client-apple/examples/storage/get-file-preview.md index 83700b7de3b..ea4179ed5ef 100644 --- a/docs/examples/1.1.x/client-apple/examples/storage/get-file-preview.md +++ b/docs/examples/1.1.x/client-apple/examples/storage/get-file-preview.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) let byteBuffer = try await storage.getFilePreview( diff --git a/docs/examples/1.1.x/client-apple/examples/storage/get-file-view.md b/docs/examples/1.1.x/client-apple/examples/storage/get-file-view.md index 304889a7ca2..998a8e7deb5 100644 --- a/docs/examples/1.1.x/client-apple/examples/storage/get-file-view.md +++ b/docs/examples/1.1.x/client-apple/examples/storage/get-file-view.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) let byteBuffer = try await storage.getFileView( diff --git a/docs/examples/1.1.x/client-apple/examples/storage/get-file.md b/docs/examples/1.1.x/client-apple/examples/storage/get-file.md index 345e81a31ea..c6ca3aaa05a 100644 --- a/docs/examples/1.1.x/client-apple/examples/storage/get-file.md +++ b/docs/examples/1.1.x/client-apple/examples/storage/get-file.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) let file = try await storage.getFile( diff --git a/docs/examples/1.1.x/client-apple/examples/storage/list-files.md b/docs/examples/1.1.x/client-apple/examples/storage/list-files.md index cf88257123b..254223a5068 100644 --- a/docs/examples/1.1.x/client-apple/examples/storage/list-files.md +++ b/docs/examples/1.1.x/client-apple/examples/storage/list-files.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) let fileList = try await storage.listFiles( diff --git a/docs/examples/1.1.x/client-apple/examples/storage/update-file.md b/docs/examples/1.1.x/client-apple/examples/storage/update-file.md index e93fd0bf4e0..281aeffdec8 100644 --- a/docs/examples/1.1.x/client-apple/examples/storage/update-file.md +++ b/docs/examples/1.1.x/client-apple/examples/storage/update-file.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) let file = try await storage.updateFile( diff --git a/docs/examples/1.1.x/client-apple/examples/teams/create-membership.md b/docs/examples/1.1.x/client-apple/examples/teams/create-membership.md index 988e7984aba..268c6da6fed 100644 --- a/docs/examples/1.1.x/client-apple/examples/teams/create-membership.md +++ b/docs/examples/1.1.x/client-apple/examples/teams/create-membership.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) let membership = try await teams.createMembership( diff --git a/docs/examples/1.1.x/client-apple/examples/teams/create.md b/docs/examples/1.1.x/client-apple/examples/teams/create.md index c9a2dbc0153..9ccf45ab3df 100644 --- a/docs/examples/1.1.x/client-apple/examples/teams/create.md +++ b/docs/examples/1.1.x/client-apple/examples/teams/create.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) let team = try await teams.create( diff --git a/docs/examples/1.1.x/client-apple/examples/teams/delete-membership.md b/docs/examples/1.1.x/client-apple/examples/teams/delete-membership.md index c36537dc786..3db0f5ef03c 100644 --- a/docs/examples/1.1.x/client-apple/examples/teams/delete-membership.md +++ b/docs/examples/1.1.x/client-apple/examples/teams/delete-membership.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) let result = try await teams.deleteMembership( diff --git a/docs/examples/1.1.x/client-apple/examples/teams/delete.md b/docs/examples/1.1.x/client-apple/examples/teams/delete.md index 49d366580db..f5c40d7bf2a 100644 --- a/docs/examples/1.1.x/client-apple/examples/teams/delete.md +++ b/docs/examples/1.1.x/client-apple/examples/teams/delete.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) let result = try await teams.delete( diff --git a/docs/examples/1.1.x/client-apple/examples/teams/get-membership.md b/docs/examples/1.1.x/client-apple/examples/teams/get-membership.md index 8c8d747bc3e..f8563fb6044 100644 --- a/docs/examples/1.1.x/client-apple/examples/teams/get-membership.md +++ b/docs/examples/1.1.x/client-apple/examples/teams/get-membership.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) let membership = try await teams.getMembership( diff --git a/docs/examples/1.1.x/client-apple/examples/teams/get.md b/docs/examples/1.1.x/client-apple/examples/teams/get.md index 96c87c9bcdc..2e50bd33941 100644 --- a/docs/examples/1.1.x/client-apple/examples/teams/get.md +++ b/docs/examples/1.1.x/client-apple/examples/teams/get.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) let team = try await teams.get( diff --git a/docs/examples/1.1.x/client-apple/examples/teams/list-memberships.md b/docs/examples/1.1.x/client-apple/examples/teams/list-memberships.md index 0dce9eb4d9e..171699e5207 100644 --- a/docs/examples/1.1.x/client-apple/examples/teams/list-memberships.md +++ b/docs/examples/1.1.x/client-apple/examples/teams/list-memberships.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) let membershipList = try await teams.listMemberships( diff --git a/docs/examples/1.1.x/client-apple/examples/teams/list.md b/docs/examples/1.1.x/client-apple/examples/teams/list.md index 1a5299f4615..38de89bd41c 100644 --- a/docs/examples/1.1.x/client-apple/examples/teams/list.md +++ b/docs/examples/1.1.x/client-apple/examples/teams/list.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) let teamList = try await teams.list() diff --git a/docs/examples/1.1.x/client-apple/examples/teams/update-membership-roles.md b/docs/examples/1.1.x/client-apple/examples/teams/update-membership-roles.md index 066374a4a07..284714f98d3 100644 --- a/docs/examples/1.1.x/client-apple/examples/teams/update-membership-roles.md +++ b/docs/examples/1.1.x/client-apple/examples/teams/update-membership-roles.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) let membership = try await teams.updateMembershipRoles( diff --git a/docs/examples/1.1.x/client-apple/examples/teams/update-membership-status.md b/docs/examples/1.1.x/client-apple/examples/teams/update-membership-status.md index b465560259d..c76900c510c 100644 --- a/docs/examples/1.1.x/client-apple/examples/teams/update-membership-status.md +++ b/docs/examples/1.1.x/client-apple/examples/teams/update-membership-status.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) let membership = try await teams.updateMembershipStatus( diff --git a/docs/examples/1.1.x/client-apple/examples/teams/update.md b/docs/examples/1.1.x/client-apple/examples/teams/update.md index 2f8088fc039..139594f7aab 100644 --- a/docs/examples/1.1.x/client-apple/examples/teams/update.md +++ b/docs/examples/1.1.x/client-apple/examples/teams/update.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) let team = try await teams.update( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/create-anonymous-session.md b/docs/examples/1.1.x/client-flutter/examples/account/create-anonymous-session.md index 2f3e7a606ce..58b707f3c9c 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/create-anonymous-session.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/create-anonymous-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createAnonymousSession(); diff --git a/docs/examples/1.1.x/client-flutter/examples/account/create-email-session.md b/docs/examples/1.1.x/client-flutter/examples/account/create-email-session.md index 52b6b91f193..c76c2a6e932 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/create-email-session.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/create-email-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createEmailSession( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/create-j-w-t.md b/docs/examples/1.1.x/client-flutter/examples/account/create-j-w-t.md index c4a61f7c340..8cee6bc69e6 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/create-j-w-t.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/create-j-w-t.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createJWT(); diff --git a/docs/examples/1.1.x/client-flutter/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.1.x/client-flutter/examples/account/create-magic-u-r-l-session.md index d1b89bf1761..e8e37329148 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/create-magic-u-r-l-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createMagicURLSession( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/create-o-auth2session.md b/docs/examples/1.1.x/client-flutter/examples/account/create-o-auth2session.md index e985a92ae0f..5d627a14511 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/create-o-auth2session.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/create-o-auth2session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createOAuth2Session( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/create-phone-session.md b/docs/examples/1.1.x/client-flutter/examples/account/create-phone-session.md index fcb705c9389..c54c0f23972 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/create-phone-session.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/create-phone-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createPhoneSession( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/create-phone-verification.md b/docs/examples/1.1.x/client-flutter/examples/account/create-phone-verification.md index 76e724d8297..23ee2fd588c 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/create-phone-verification.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createPhoneVerification(); diff --git a/docs/examples/1.1.x/client-flutter/examples/account/create-recovery.md b/docs/examples/1.1.x/client-flutter/examples/account/create-recovery.md index 361a9f04591..d011eef2a37 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/create-recovery.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/create-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createRecovery( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/create-verification.md b/docs/examples/1.1.x/client-flutter/examples/account/create-verification.md index d66c3b1a0a6..565033b9a8a 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/create-verification.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/create-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createVerification( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/create.md b/docs/examples/1.1.x/client-flutter/examples/account/create.md index 501034aa7ff..f54f0474313 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/create.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.create( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/delete-session.md b/docs/examples/1.1.x/client-flutter/examples/account/delete-session.md index 91465610707..9e381a2fa3a 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/delete-session.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/delete-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.deleteSession( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/delete-sessions.md b/docs/examples/1.1.x/client-flutter/examples/account/delete-sessions.md index 4963de4442b..27b06b6104b 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/delete-sessions.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.deleteSessions(); diff --git a/docs/examples/1.1.x/client-flutter/examples/account/get-prefs.md b/docs/examples/1.1.x/client-flutter/examples/account/get-prefs.md index 81eb802d03d..919b50be884 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/get-prefs.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.getPrefs(); diff --git a/docs/examples/1.1.x/client-flutter/examples/account/get-session.md b/docs/examples/1.1.x/client-flutter/examples/account/get-session.md index 9e0f66ca3fd..ac8c35b8f57 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/get-session.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/get-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.getSession( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/get.md b/docs/examples/1.1.x/client-flutter/examples/account/get.md index 21192de2796..4bcc080deef 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/get.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.get(); diff --git a/docs/examples/1.1.x/client-flutter/examples/account/list-logs.md b/docs/examples/1.1.x/client-flutter/examples/account/list-logs.md index 9f7088a0d81..6d793c947d3 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/list-logs.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/list-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.listLogs( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/list-sessions.md b/docs/examples/1.1.x/client-flutter/examples/account/list-sessions.md index 6f2d5dc18d5..3656fca1a18 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/list-sessions.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/list-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.listSessions(); diff --git a/docs/examples/1.1.x/client-flutter/examples/account/update-email.md b/docs/examples/1.1.x/client-flutter/examples/account/update-email.md index 1fb9a3fe7a7..2383c8e0de7 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/update-email.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/update-email.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateEmail( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.1.x/client-flutter/examples/account/update-magic-u-r-l-session.md index 3c7ef8f0f24..0dff3be5bfd 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/update-magic-u-r-l-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateMagicURLSession( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/update-name.md b/docs/examples/1.1.x/client-flutter/examples/account/update-name.md index ae5d6235d15..4d674ec0064 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/update-name.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateName( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/update-password.md b/docs/examples/1.1.x/client-flutter/examples/account/update-password.md index fc4e7611df5..a19d697e21b 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/update-password.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/update-password.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePassword( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/update-phone-session.md b/docs/examples/1.1.x/client-flutter/examples/account/update-phone-session.md index 1f979265b56..dc6c8eb8938 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/update-phone-session.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/update-phone-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePhoneSession( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/update-phone-verification.md b/docs/examples/1.1.x/client-flutter/examples/account/update-phone-verification.md index 86d9b0fdfc5..a7acf71661b 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/update-phone-verification.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePhoneVerification( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/update-phone.md b/docs/examples/1.1.x/client-flutter/examples/account/update-phone.md index edfe47850b6..642ead44051 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/update-phone.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/update-phone.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePhone( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/update-prefs.md b/docs/examples/1.1.x/client-flutter/examples/account/update-prefs.md index 97697081474..d37013d80ac 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/update-prefs.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePrefs( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/update-recovery.md b/docs/examples/1.1.x/client-flutter/examples/account/update-recovery.md index f499b18770f..ce9c8b5e8e2 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/update-recovery.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/update-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateRecovery( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/update-session.md b/docs/examples/1.1.x/client-flutter/examples/account/update-session.md index fb1afcc526a..a6e1924e050 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/update-session.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/update-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateSession( diff --git a/docs/examples/1.1.x/client-flutter/examples/account/update-status.md b/docs/examples/1.1.x/client-flutter/examples/account/update-status.md index 8e734647fb9..521101c4292 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/update-status.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/update-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateStatus(); diff --git a/docs/examples/1.1.x/client-flutter/examples/account/update-verification.md b/docs/examples/1.1.x/client-flutter/examples/account/update-verification.md index fba8ed65bb6..1be9f728f7e 100644 --- a/docs/examples/1.1.x/client-flutter/examples/account/update-verification.md +++ b/docs/examples/1.1.x/client-flutter/examples/account/update-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateVerification( diff --git a/docs/examples/1.1.x/client-flutter/examples/avatars/get-browser.md b/docs/examples/1.1.x/client-flutter/examples/avatars/get-browser.md index 70af56659b6..5ca9106c01b 100644 --- a/docs/examples/1.1.x/client-flutter/examples/avatars/get-browser.md +++ b/docs/examples/1.1.x/client-flutter/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.1.x/client-flutter/examples/avatars/get-credit-card.md b/docs/examples/1.1.x/client-flutter/examples/avatars/get-credit-card.md index 6a29dc81736..30485827a1a 100644 --- a/docs/examples/1.1.x/client-flutter/examples/avatars/get-credit-card.md +++ b/docs/examples/1.1.x/client-flutter/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.1.x/client-flutter/examples/avatars/get-favicon.md b/docs/examples/1.1.x/client-flutter/examples/avatars/get-favicon.md index 2da0f2e0566..769a873c840 100644 --- a/docs/examples/1.1.x/client-flutter/examples/avatars/get-favicon.md +++ b/docs/examples/1.1.x/client-flutter/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.1.x/client-flutter/examples/avatars/get-flag.md b/docs/examples/1.1.x/client-flutter/examples/avatars/get-flag.md index 13367885d0c..b8c3ea84d76 100644 --- a/docs/examples/1.1.x/client-flutter/examples/avatars/get-flag.md +++ b/docs/examples/1.1.x/client-flutter/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.1.x/client-flutter/examples/avatars/get-image.md b/docs/examples/1.1.x/client-flutter/examples/avatars/get-image.md index debbf1e2908..a90045f78da 100644 --- a/docs/examples/1.1.x/client-flutter/examples/avatars/get-image.md +++ b/docs/examples/1.1.x/client-flutter/examples/avatars/get-image.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.1.x/client-flutter/examples/avatars/get-initials.md b/docs/examples/1.1.x/client-flutter/examples/avatars/get-initials.md index b0f49c62131..dc08dda9812 100644 --- a/docs/examples/1.1.x/client-flutter/examples/avatars/get-initials.md +++ b/docs/examples/1.1.x/client-flutter/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.1.x/client-flutter/examples/avatars/get-q-r.md b/docs/examples/1.1.x/client-flutter/examples/avatars/get-q-r.md index 8df729379e3..4217e4395a3 100644 --- a/docs/examples/1.1.x/client-flutter/examples/avatars/get-q-r.md +++ b/docs/examples/1.1.x/client-flutter/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.1.x/client-flutter/examples/databases/create-document.md b/docs/examples/1.1.x/client-flutter/examples/databases/create-document.md index 6a031738d5a..5eabc3fb996 100644 --- a/docs/examples/1.1.x/client-flutter/examples/databases/create-document.md +++ b/docs/examples/1.1.x/client-flutter/examples/databases/create-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.createDocument( diff --git a/docs/examples/1.1.x/client-flutter/examples/databases/delete-document.md b/docs/examples/1.1.x/client-flutter/examples/databases/delete-document.md index a377b02747a..d883d08655b 100644 --- a/docs/examples/1.1.x/client-flutter/examples/databases/delete-document.md +++ b/docs/examples/1.1.x/client-flutter/examples/databases/delete-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.deleteDocument( diff --git a/docs/examples/1.1.x/client-flutter/examples/databases/get-document.md b/docs/examples/1.1.x/client-flutter/examples/databases/get-document.md index b2cf89a3fc8..f03d2589b99 100644 --- a/docs/examples/1.1.x/client-flutter/examples/databases/get-document.md +++ b/docs/examples/1.1.x/client-flutter/examples/databases/get-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.getDocument( diff --git a/docs/examples/1.1.x/client-flutter/examples/databases/list-documents.md b/docs/examples/1.1.x/client-flutter/examples/databases/list-documents.md index 4cd69e301a5..d996d2bcfde 100644 --- a/docs/examples/1.1.x/client-flutter/examples/databases/list-documents.md +++ b/docs/examples/1.1.x/client-flutter/examples/databases/list-documents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.listDocuments( diff --git a/docs/examples/1.1.x/client-flutter/examples/databases/update-document.md b/docs/examples/1.1.x/client-flutter/examples/databases/update-document.md index 595099bcb19..79e5490aff8 100644 --- a/docs/examples/1.1.x/client-flutter/examples/databases/update-document.md +++ b/docs/examples/1.1.x/client-flutter/examples/databases/update-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.updateDocument( diff --git a/docs/examples/1.1.x/client-flutter/examples/functions/create-execution.md b/docs/examples/1.1.x/client-flutter/examples/functions/create-execution.md index b188c32f47a..bb9feb34429 100644 --- a/docs/examples/1.1.x/client-flutter/examples/functions/create-execution.md +++ b/docs/examples/1.1.x/client-flutter/examples/functions/create-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = functions.createExecution( diff --git a/docs/examples/1.1.x/client-flutter/examples/functions/get-execution.md b/docs/examples/1.1.x/client-flutter/examples/functions/get-execution.md index f30b4b4495b..76a1392586b 100644 --- a/docs/examples/1.1.x/client-flutter/examples/functions/get-execution.md +++ b/docs/examples/1.1.x/client-flutter/examples/functions/get-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = functions.getExecution( diff --git a/docs/examples/1.1.x/client-flutter/examples/functions/list-executions.md b/docs/examples/1.1.x/client-flutter/examples/functions/list-executions.md index 1840f50d7f6..4f363e7e82b 100644 --- a/docs/examples/1.1.x/client-flutter/examples/functions/list-executions.md +++ b/docs/examples/1.1.x/client-flutter/examples/functions/list-executions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = functions.listExecutions( diff --git a/docs/examples/1.1.x/client-flutter/examples/locale/get.md b/docs/examples/1.1.x/client-flutter/examples/locale/get.md index 9e9fa96b22c..565253d9507 100644 --- a/docs/examples/1.1.x/client-flutter/examples/locale/get.md +++ b/docs/examples/1.1.x/client-flutter/examples/locale/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.get(); diff --git a/docs/examples/1.1.x/client-flutter/examples/locale/list-continents.md b/docs/examples/1.1.x/client-flutter/examples/locale/list-continents.md index 0ab2a4aba12..cbaa88b3de0 100644 --- a/docs/examples/1.1.x/client-flutter/examples/locale/list-continents.md +++ b/docs/examples/1.1.x/client-flutter/examples/locale/list-continents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listContinents(); diff --git a/docs/examples/1.1.x/client-flutter/examples/locale/list-countries-e-u.md b/docs/examples/1.1.x/client-flutter/examples/locale/list-countries-e-u.md index caa32e85625..af8da46e9bf 100644 --- a/docs/examples/1.1.x/client-flutter/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.1.x/client-flutter/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCountriesEU(); diff --git a/docs/examples/1.1.x/client-flutter/examples/locale/list-countries-phones.md b/docs/examples/1.1.x/client-flutter/examples/locale/list-countries-phones.md index b122eee7d4e..1b5438b3ca6 100644 --- a/docs/examples/1.1.x/client-flutter/examples/locale/list-countries-phones.md +++ b/docs/examples/1.1.x/client-flutter/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCountriesPhones(); diff --git a/docs/examples/1.1.x/client-flutter/examples/locale/list-countries.md b/docs/examples/1.1.x/client-flutter/examples/locale/list-countries.md index e6a367ddb86..704d35de897 100644 --- a/docs/examples/1.1.x/client-flutter/examples/locale/list-countries.md +++ b/docs/examples/1.1.x/client-flutter/examples/locale/list-countries.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCountries(); diff --git a/docs/examples/1.1.x/client-flutter/examples/locale/list-currencies.md b/docs/examples/1.1.x/client-flutter/examples/locale/list-currencies.md index fcd1e825e33..52b6877069f 100644 --- a/docs/examples/1.1.x/client-flutter/examples/locale/list-currencies.md +++ b/docs/examples/1.1.x/client-flutter/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCurrencies(); diff --git a/docs/examples/1.1.x/client-flutter/examples/locale/list-languages.md b/docs/examples/1.1.x/client-flutter/examples/locale/list-languages.md index 1fb68aa84f8..a54c6a11758 100644 --- a/docs/examples/1.1.x/client-flutter/examples/locale/list-languages.md +++ b/docs/examples/1.1.x/client-flutter/examples/locale/list-languages.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listLanguages(); diff --git a/docs/examples/1.1.x/client-flutter/examples/storage/create-file.md b/docs/examples/1.1.x/client-flutter/examples/storage/create-file.md index 0f5e44f5e8d..fc4d3278399 100644 --- a/docs/examples/1.1.x/client-flutter/examples/storage/create-file.md +++ b/docs/examples/1.1.x/client-flutter/examples/storage/create-file.md @@ -6,7 +6,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.createFile( diff --git a/docs/examples/1.1.x/client-flutter/examples/storage/delete-file.md b/docs/examples/1.1.x/client-flutter/examples/storage/delete-file.md index 230b73a9ac2..79cc9ef48ce 100644 --- a/docs/examples/1.1.x/client-flutter/examples/storage/delete-file.md +++ b/docs/examples/1.1.x/client-flutter/examples/storage/delete-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.deleteFile( diff --git a/docs/examples/1.1.x/client-flutter/examples/storage/get-file-download.md b/docs/examples/1.1.x/client-flutter/examples/storage/get-file-download.md index 883b7d69c48..cae5218c3a0 100644 --- a/docs/examples/1.1.x/client-flutter/examples/storage/get-file-download.md +++ b/docs/examples/1.1.x/client-flutter/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.1.x/client-flutter/examples/storage/get-file-preview.md b/docs/examples/1.1.x/client-flutter/examples/storage/get-file-preview.md index f42138bd036..131630ec66b 100644 --- a/docs/examples/1.1.x/client-flutter/examples/storage/get-file-preview.md +++ b/docs/examples/1.1.x/client-flutter/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.1.x/client-flutter/examples/storage/get-file-view.md b/docs/examples/1.1.x/client-flutter/examples/storage/get-file-view.md index 4f7c4d962bf..cfac3ac3b15 100644 --- a/docs/examples/1.1.x/client-flutter/examples/storage/get-file-view.md +++ b/docs/examples/1.1.x/client-flutter/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.1.x/client-flutter/examples/storage/get-file.md b/docs/examples/1.1.x/client-flutter/examples/storage/get-file.md index 681aca41e02..c997612386d 100644 --- a/docs/examples/1.1.x/client-flutter/examples/storage/get-file.md +++ b/docs/examples/1.1.x/client-flutter/examples/storage/get-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.getFile( diff --git a/docs/examples/1.1.x/client-flutter/examples/storage/list-files.md b/docs/examples/1.1.x/client-flutter/examples/storage/list-files.md index e574f7bdaa5..d4d07c19090 100644 --- a/docs/examples/1.1.x/client-flutter/examples/storage/list-files.md +++ b/docs/examples/1.1.x/client-flutter/examples/storage/list-files.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.listFiles( diff --git a/docs/examples/1.1.x/client-flutter/examples/storage/update-file.md b/docs/examples/1.1.x/client-flutter/examples/storage/update-file.md index 1170f05cf31..3d8140f408a 100644 --- a/docs/examples/1.1.x/client-flutter/examples/storage/update-file.md +++ b/docs/examples/1.1.x/client-flutter/examples/storage/update-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.updateFile( diff --git a/docs/examples/1.1.x/client-flutter/examples/teams/create-membership.md b/docs/examples/1.1.x/client-flutter/examples/teams/create-membership.md index fe54b4acfca..2a11b981c37 100644 --- a/docs/examples/1.1.x/client-flutter/examples/teams/create-membership.md +++ b/docs/examples/1.1.x/client-flutter/examples/teams/create-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.createMembership( diff --git a/docs/examples/1.1.x/client-flutter/examples/teams/create.md b/docs/examples/1.1.x/client-flutter/examples/teams/create.md index bd62ce32ab8..772eacc2a9d 100644 --- a/docs/examples/1.1.x/client-flutter/examples/teams/create.md +++ b/docs/examples/1.1.x/client-flutter/examples/teams/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.create( diff --git a/docs/examples/1.1.x/client-flutter/examples/teams/delete-membership.md b/docs/examples/1.1.x/client-flutter/examples/teams/delete-membership.md index 0febe42121b..7bcfaae8e6e 100644 --- a/docs/examples/1.1.x/client-flutter/examples/teams/delete-membership.md +++ b/docs/examples/1.1.x/client-flutter/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.deleteMembership( diff --git a/docs/examples/1.1.x/client-flutter/examples/teams/delete.md b/docs/examples/1.1.x/client-flutter/examples/teams/delete.md index b45d971bf68..22fe4e0b446 100644 --- a/docs/examples/1.1.x/client-flutter/examples/teams/delete.md +++ b/docs/examples/1.1.x/client-flutter/examples/teams/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.delete( diff --git a/docs/examples/1.1.x/client-flutter/examples/teams/get-membership.md b/docs/examples/1.1.x/client-flutter/examples/teams/get-membership.md index 28d95a201ba..9c7eac46ac4 100644 --- a/docs/examples/1.1.x/client-flutter/examples/teams/get-membership.md +++ b/docs/examples/1.1.x/client-flutter/examples/teams/get-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.getMembership( diff --git a/docs/examples/1.1.x/client-flutter/examples/teams/get.md b/docs/examples/1.1.x/client-flutter/examples/teams/get.md index 0ec7027f89d..a3d59c10e8a 100644 --- a/docs/examples/1.1.x/client-flutter/examples/teams/get.md +++ b/docs/examples/1.1.x/client-flutter/examples/teams/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.get( diff --git a/docs/examples/1.1.x/client-flutter/examples/teams/list-memberships.md b/docs/examples/1.1.x/client-flutter/examples/teams/list-memberships.md index cbbc525dc44..bb2a37df46d 100644 --- a/docs/examples/1.1.x/client-flutter/examples/teams/list-memberships.md +++ b/docs/examples/1.1.x/client-flutter/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.listMemberships( diff --git a/docs/examples/1.1.x/client-flutter/examples/teams/list.md b/docs/examples/1.1.x/client-flutter/examples/teams/list.md index 80aa3016c2a..41e01365292 100644 --- a/docs/examples/1.1.x/client-flutter/examples/teams/list.md +++ b/docs/examples/1.1.x/client-flutter/examples/teams/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.list( diff --git a/docs/examples/1.1.x/client-flutter/examples/teams/update-membership-roles.md b/docs/examples/1.1.x/client-flutter/examples/teams/update-membership-roles.md index 6e96c017e03..c031101d7a2 100644 --- a/docs/examples/1.1.x/client-flutter/examples/teams/update-membership-roles.md +++ b/docs/examples/1.1.x/client-flutter/examples/teams/update-membership-roles.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.updateMembershipRoles( diff --git a/docs/examples/1.1.x/client-flutter/examples/teams/update-membership-status.md b/docs/examples/1.1.x/client-flutter/examples/teams/update-membership-status.md index ed31f54b202..65584ff4246 100644 --- a/docs/examples/1.1.x/client-flutter/examples/teams/update-membership-status.md +++ b/docs/examples/1.1.x/client-flutter/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.updateMembershipStatus( diff --git a/docs/examples/1.1.x/client-flutter/examples/teams/update.md b/docs/examples/1.1.x/client-flutter/examples/teams/update.md index 63aa33feb96..5972b9fbdaf 100644 --- a/docs/examples/1.1.x/client-flutter/examples/teams/update.md +++ b/docs/examples/1.1.x/client-flutter/examples/teams/update.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.update( diff --git a/docs/examples/1.1.x/client-web/examples/account/create-anonymous-session.md b/docs/examples/1.1.x/client-web/examples/account/create-anonymous-session.md index c331fc88633..d107d4a8dfa 100644 --- a/docs/examples/1.1.x/client-web/examples/account/create-anonymous-session.md +++ b/docs/examples/1.1.x/client-web/examples/account/create-anonymous-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/create-email-session.md b/docs/examples/1.1.x/client-web/examples/account/create-email-session.md index 76e2e31665f..fc25824dad8 100644 --- a/docs/examples/1.1.x/client-web/examples/account/create-email-session.md +++ b/docs/examples/1.1.x/client-web/examples/account/create-email-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/create-j-w-t.md b/docs/examples/1.1.x/client-web/examples/account/create-j-w-t.md index f388a3da31c..db78c41c3c9 100644 --- a/docs/examples/1.1.x/client-web/examples/account/create-j-w-t.md +++ b/docs/examples/1.1.x/client-web/examples/account/create-j-w-t.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.1.x/client-web/examples/account/create-magic-u-r-l-session.md index d48f031ded0..1179a0efc6f 100644 --- a/docs/examples/1.1.x/client-web/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.1.x/client-web/examples/account/create-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/create-o-auth2session.md b/docs/examples/1.1.x/client-web/examples/account/create-o-auth2session.md index 3757a1c63f2..03b7d2cb488 100644 --- a/docs/examples/1.1.x/client-web/examples/account/create-o-auth2session.md +++ b/docs/examples/1.1.x/client-web/examples/account/create-o-auth2session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/create-phone-session.md b/docs/examples/1.1.x/client-web/examples/account/create-phone-session.md index e5a23aafeef..53ead8a3f8f 100644 --- a/docs/examples/1.1.x/client-web/examples/account/create-phone-session.md +++ b/docs/examples/1.1.x/client-web/examples/account/create-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/create-phone-verification.md b/docs/examples/1.1.x/client-web/examples/account/create-phone-verification.md index a1cbd552774..974f94503fc 100644 --- a/docs/examples/1.1.x/client-web/examples/account/create-phone-verification.md +++ b/docs/examples/1.1.x/client-web/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/create-recovery.md b/docs/examples/1.1.x/client-web/examples/account/create-recovery.md index 1838c0414c3..7030423d2f6 100644 --- a/docs/examples/1.1.x/client-web/examples/account/create-recovery.md +++ b/docs/examples/1.1.x/client-web/examples/account/create-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/create-verification.md b/docs/examples/1.1.x/client-web/examples/account/create-verification.md index 4d8446e6ef1..6448a724963 100644 --- a/docs/examples/1.1.x/client-web/examples/account/create-verification.md +++ b/docs/examples/1.1.x/client-web/examples/account/create-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/create.md b/docs/examples/1.1.x/client-web/examples/account/create.md index 317a0c52651..f452383fed2 100644 --- a/docs/examples/1.1.x/client-web/examples/account/create.md +++ b/docs/examples/1.1.x/client-web/examples/account/create.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/delete-session.md b/docs/examples/1.1.x/client-web/examples/account/delete-session.md index c342afb2c95..052b78d8458 100644 --- a/docs/examples/1.1.x/client-web/examples/account/delete-session.md +++ b/docs/examples/1.1.x/client-web/examples/account/delete-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/delete-sessions.md b/docs/examples/1.1.x/client-web/examples/account/delete-sessions.md index 82133e38455..64b1c591d34 100644 --- a/docs/examples/1.1.x/client-web/examples/account/delete-sessions.md +++ b/docs/examples/1.1.x/client-web/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/get-prefs.md b/docs/examples/1.1.x/client-web/examples/account/get-prefs.md index b98776fd9d1..a02dc517856 100644 --- a/docs/examples/1.1.x/client-web/examples/account/get-prefs.md +++ b/docs/examples/1.1.x/client-web/examples/account/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/get-session.md b/docs/examples/1.1.x/client-web/examples/account/get-session.md index 43edd7d08a1..21be1738ba9 100644 --- a/docs/examples/1.1.x/client-web/examples/account/get-session.md +++ b/docs/examples/1.1.x/client-web/examples/account/get-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/get.md b/docs/examples/1.1.x/client-web/examples/account/get.md index 878227f0194..539ace69afc 100644 --- a/docs/examples/1.1.x/client-web/examples/account/get.md +++ b/docs/examples/1.1.x/client-web/examples/account/get.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/list-logs.md b/docs/examples/1.1.x/client-web/examples/account/list-logs.md index d710f7daa3e..d26bd396bae 100644 --- a/docs/examples/1.1.x/client-web/examples/account/list-logs.md +++ b/docs/examples/1.1.x/client-web/examples/account/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/list-sessions.md b/docs/examples/1.1.x/client-web/examples/account/list-sessions.md index ce6ec74862c..c5a5625b17c 100644 --- a/docs/examples/1.1.x/client-web/examples/account/list-sessions.md +++ b/docs/examples/1.1.x/client-web/examples/account/list-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/update-email.md b/docs/examples/1.1.x/client-web/examples/account/update-email.md index baac3a0ab09..2242db702cb 100644 --- a/docs/examples/1.1.x/client-web/examples/account/update-email.md +++ b/docs/examples/1.1.x/client-web/examples/account/update-email.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.1.x/client-web/examples/account/update-magic-u-r-l-session.md index c07fee2b144..70bf5d17da0 100644 --- a/docs/examples/1.1.x/client-web/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.1.x/client-web/examples/account/update-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/update-name.md b/docs/examples/1.1.x/client-web/examples/account/update-name.md index 4af963d5fc3..8ec9bd2395e 100644 --- a/docs/examples/1.1.x/client-web/examples/account/update-name.md +++ b/docs/examples/1.1.x/client-web/examples/account/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/update-password.md b/docs/examples/1.1.x/client-web/examples/account/update-password.md index 9cb72c7fdef..b5dea9c9eba 100644 --- a/docs/examples/1.1.x/client-web/examples/account/update-password.md +++ b/docs/examples/1.1.x/client-web/examples/account/update-password.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/update-phone-session.md b/docs/examples/1.1.x/client-web/examples/account/update-phone-session.md index b3b29481a98..9870627d9f7 100644 --- a/docs/examples/1.1.x/client-web/examples/account/update-phone-session.md +++ b/docs/examples/1.1.x/client-web/examples/account/update-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/update-phone-verification.md b/docs/examples/1.1.x/client-web/examples/account/update-phone-verification.md index a274c9b07c8..912f178814e 100644 --- a/docs/examples/1.1.x/client-web/examples/account/update-phone-verification.md +++ b/docs/examples/1.1.x/client-web/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/update-phone.md b/docs/examples/1.1.x/client-web/examples/account/update-phone.md index a1017fc7f4a..6ee5eb40e89 100644 --- a/docs/examples/1.1.x/client-web/examples/account/update-phone.md +++ b/docs/examples/1.1.x/client-web/examples/account/update-phone.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/update-prefs.md b/docs/examples/1.1.x/client-web/examples/account/update-prefs.md index ecceff3158c..3f90dfabd2f 100644 --- a/docs/examples/1.1.x/client-web/examples/account/update-prefs.md +++ b/docs/examples/1.1.x/client-web/examples/account/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/update-recovery.md b/docs/examples/1.1.x/client-web/examples/account/update-recovery.md index eb78a8a52d2..200b993a4cb 100644 --- a/docs/examples/1.1.x/client-web/examples/account/update-recovery.md +++ b/docs/examples/1.1.x/client-web/examples/account/update-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/update-session.md b/docs/examples/1.1.x/client-web/examples/account/update-session.md index a7a42c663aa..a8c40ebb81c 100644 --- a/docs/examples/1.1.x/client-web/examples/account/update-session.md +++ b/docs/examples/1.1.x/client-web/examples/account/update-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/update-status.md b/docs/examples/1.1.x/client-web/examples/account/update-status.md index 9cbe78c5c42..d3ac91e7d50 100644 --- a/docs/examples/1.1.x/client-web/examples/account/update-status.md +++ b/docs/examples/1.1.x/client-web/examples/account/update-status.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/account/update-verification.md b/docs/examples/1.1.x/client-web/examples/account/update-verification.md index 73338da4df2..404fdd4352e 100644 --- a/docs/examples/1.1.x/client-web/examples/account/update-verification.md +++ b/docs/examples/1.1.x/client-web/examples/account/update-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/avatars/get-browser.md b/docs/examples/1.1.x/client-web/examples/avatars/get-browser.md index 0b4c2def003..cf5beeb4580 100644 --- a/docs/examples/1.1.x/client-web/examples/avatars/get-browser.md +++ b/docs/examples/1.1.x/client-web/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/avatars/get-credit-card.md b/docs/examples/1.1.x/client-web/examples/avatars/get-credit-card.md index 082ed92b670..3486722f907 100644 --- a/docs/examples/1.1.x/client-web/examples/avatars/get-credit-card.md +++ b/docs/examples/1.1.x/client-web/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/avatars/get-favicon.md b/docs/examples/1.1.x/client-web/examples/avatars/get-favicon.md index 7ee6bd3da26..5e0056c8883 100644 --- a/docs/examples/1.1.x/client-web/examples/avatars/get-favicon.md +++ b/docs/examples/1.1.x/client-web/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/avatars/get-flag.md b/docs/examples/1.1.x/client-web/examples/avatars/get-flag.md index a43827a1aed..7e95a5bc132 100644 --- a/docs/examples/1.1.x/client-web/examples/avatars/get-flag.md +++ b/docs/examples/1.1.x/client-web/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/avatars/get-image.md b/docs/examples/1.1.x/client-web/examples/avatars/get-image.md index ea186a1a682..b6d25c7389f 100644 --- a/docs/examples/1.1.x/client-web/examples/avatars/get-image.md +++ b/docs/examples/1.1.x/client-web/examples/avatars/get-image.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/avatars/get-initials.md b/docs/examples/1.1.x/client-web/examples/avatars/get-initials.md index 7e8c8ec4130..efee82cfab4 100644 --- a/docs/examples/1.1.x/client-web/examples/avatars/get-initials.md +++ b/docs/examples/1.1.x/client-web/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/avatars/get-q-r.md b/docs/examples/1.1.x/client-web/examples/avatars/get-q-r.md index b957084aa1d..412dff00eac 100644 --- a/docs/examples/1.1.x/client-web/examples/avatars/get-q-r.md +++ b/docs/examples/1.1.x/client-web/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/databases/create-document.md b/docs/examples/1.1.x/client-web/examples/databases/create-document.md index 92792066efe..a87121baa76 100644 --- a/docs/examples/1.1.x/client-web/examples/databases/create-document.md +++ b/docs/examples/1.1.x/client-web/examples/databases/create-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/databases/delete-document.md b/docs/examples/1.1.x/client-web/examples/databases/delete-document.md index 9e281e71665..39f96d4d128 100644 --- a/docs/examples/1.1.x/client-web/examples/databases/delete-document.md +++ b/docs/examples/1.1.x/client-web/examples/databases/delete-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/databases/get-document.md b/docs/examples/1.1.x/client-web/examples/databases/get-document.md index ea80328794f..b38f81805d0 100644 --- a/docs/examples/1.1.x/client-web/examples/databases/get-document.md +++ b/docs/examples/1.1.x/client-web/examples/databases/get-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/databases/list-documents.md b/docs/examples/1.1.x/client-web/examples/databases/list-documents.md index 4a94c99db35..9be77973897 100644 --- a/docs/examples/1.1.x/client-web/examples/databases/list-documents.md +++ b/docs/examples/1.1.x/client-web/examples/databases/list-documents.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/databases/update-document.md b/docs/examples/1.1.x/client-web/examples/databases/update-document.md index cc5ef1cc021..6d584151120 100644 --- a/docs/examples/1.1.x/client-web/examples/databases/update-document.md +++ b/docs/examples/1.1.x/client-web/examples/databases/update-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/functions/create-execution.md b/docs/examples/1.1.x/client-web/examples/functions/create-execution.md index 4fc7ac75454..091e3aae240 100644 --- a/docs/examples/1.1.x/client-web/examples/functions/create-execution.md +++ b/docs/examples/1.1.x/client-web/examples/functions/create-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/functions/get-execution.md b/docs/examples/1.1.x/client-web/examples/functions/get-execution.md index 2473572c05a..704cf52c620 100644 --- a/docs/examples/1.1.x/client-web/examples/functions/get-execution.md +++ b/docs/examples/1.1.x/client-web/examples/functions/get-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/functions/list-executions.md b/docs/examples/1.1.x/client-web/examples/functions/list-executions.md index 481986ef405..b0a74de4a08 100644 --- a/docs/examples/1.1.x/client-web/examples/functions/list-executions.md +++ b/docs/examples/1.1.x/client-web/examples/functions/list-executions.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/locale/get.md b/docs/examples/1.1.x/client-web/examples/locale/get.md index e15bad2ce1b..1001b36d05c 100644 --- a/docs/examples/1.1.x/client-web/examples/locale/get.md +++ b/docs/examples/1.1.x/client-web/examples/locale/get.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/locale/list-continents.md b/docs/examples/1.1.x/client-web/examples/locale/list-continents.md index aa3716ef565..9239750852f 100644 --- a/docs/examples/1.1.x/client-web/examples/locale/list-continents.md +++ b/docs/examples/1.1.x/client-web/examples/locale/list-continents.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/locale/list-countries-e-u.md b/docs/examples/1.1.x/client-web/examples/locale/list-countries-e-u.md index c924b8df4b7..005d5a33270 100644 --- a/docs/examples/1.1.x/client-web/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.1.x/client-web/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/locale/list-countries-phones.md b/docs/examples/1.1.x/client-web/examples/locale/list-countries-phones.md index 0ab60767da7..2e5faf107dd 100644 --- a/docs/examples/1.1.x/client-web/examples/locale/list-countries-phones.md +++ b/docs/examples/1.1.x/client-web/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/locale/list-countries.md b/docs/examples/1.1.x/client-web/examples/locale/list-countries.md index ee8c454993a..d57ab0b732b 100644 --- a/docs/examples/1.1.x/client-web/examples/locale/list-countries.md +++ b/docs/examples/1.1.x/client-web/examples/locale/list-countries.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/locale/list-currencies.md b/docs/examples/1.1.x/client-web/examples/locale/list-currencies.md index dd37b14e25a..31015d585c3 100644 --- a/docs/examples/1.1.x/client-web/examples/locale/list-currencies.md +++ b/docs/examples/1.1.x/client-web/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/locale/list-languages.md b/docs/examples/1.1.x/client-web/examples/locale/list-languages.md index 89ae06d529b..cfd9adcc1a0 100644 --- a/docs/examples/1.1.x/client-web/examples/locale/list-languages.md +++ b/docs/examples/1.1.x/client-web/examples/locale/list-languages.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/storage/create-file.md b/docs/examples/1.1.x/client-web/examples/storage/create-file.md index 0cddb086901..8e84ec8ceea 100644 --- a/docs/examples/1.1.x/client-web/examples/storage/create-file.md +++ b/docs/examples/1.1.x/client-web/examples/storage/create-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/storage/delete-file.md b/docs/examples/1.1.x/client-web/examples/storage/delete-file.md index 257d855c320..47416bbb8f8 100644 --- a/docs/examples/1.1.x/client-web/examples/storage/delete-file.md +++ b/docs/examples/1.1.x/client-web/examples/storage/delete-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/storage/get-file-download.md b/docs/examples/1.1.x/client-web/examples/storage/get-file-download.md index d8a3542aab8..d9f4cd1895d 100644 --- a/docs/examples/1.1.x/client-web/examples/storage/get-file-download.md +++ b/docs/examples/1.1.x/client-web/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/storage/get-file-preview.md b/docs/examples/1.1.x/client-web/examples/storage/get-file-preview.md index f0588ba7dc2..d2d4731322c 100644 --- a/docs/examples/1.1.x/client-web/examples/storage/get-file-preview.md +++ b/docs/examples/1.1.x/client-web/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/storage/get-file-view.md b/docs/examples/1.1.x/client-web/examples/storage/get-file-view.md index 5eb2855befe..e9d0ff6d8d2 100644 --- a/docs/examples/1.1.x/client-web/examples/storage/get-file-view.md +++ b/docs/examples/1.1.x/client-web/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/storage/get-file.md b/docs/examples/1.1.x/client-web/examples/storage/get-file.md index 6b39ee386e2..e326154a4e9 100644 --- a/docs/examples/1.1.x/client-web/examples/storage/get-file.md +++ b/docs/examples/1.1.x/client-web/examples/storage/get-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/storage/list-files.md b/docs/examples/1.1.x/client-web/examples/storage/list-files.md index 696d4013cd9..7faeb85cb1c 100644 --- a/docs/examples/1.1.x/client-web/examples/storage/list-files.md +++ b/docs/examples/1.1.x/client-web/examples/storage/list-files.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/storage/update-file.md b/docs/examples/1.1.x/client-web/examples/storage/update-file.md index d22a2f6a11e..747044dc309 100644 --- a/docs/examples/1.1.x/client-web/examples/storage/update-file.md +++ b/docs/examples/1.1.x/client-web/examples/storage/update-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/teams/create-membership.md b/docs/examples/1.1.x/client-web/examples/teams/create-membership.md index 655f7982883..85fb1ef1245 100644 --- a/docs/examples/1.1.x/client-web/examples/teams/create-membership.md +++ b/docs/examples/1.1.x/client-web/examples/teams/create-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/teams/create.md b/docs/examples/1.1.x/client-web/examples/teams/create.md index c9037e95751..382b759d9c1 100644 --- a/docs/examples/1.1.x/client-web/examples/teams/create.md +++ b/docs/examples/1.1.x/client-web/examples/teams/create.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/teams/delete-membership.md b/docs/examples/1.1.x/client-web/examples/teams/delete-membership.md index c42d6694573..76232de1abd 100644 --- a/docs/examples/1.1.x/client-web/examples/teams/delete-membership.md +++ b/docs/examples/1.1.x/client-web/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/teams/delete.md b/docs/examples/1.1.x/client-web/examples/teams/delete.md index 0c99b7aab8d..2e5e8395517 100644 --- a/docs/examples/1.1.x/client-web/examples/teams/delete.md +++ b/docs/examples/1.1.x/client-web/examples/teams/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/teams/get-membership.md b/docs/examples/1.1.x/client-web/examples/teams/get-membership.md index d4d3c5a65dc..0e2c1454452 100644 --- a/docs/examples/1.1.x/client-web/examples/teams/get-membership.md +++ b/docs/examples/1.1.x/client-web/examples/teams/get-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/teams/get.md b/docs/examples/1.1.x/client-web/examples/teams/get.md index 396916ed411..cdf8812225b 100644 --- a/docs/examples/1.1.x/client-web/examples/teams/get.md +++ b/docs/examples/1.1.x/client-web/examples/teams/get.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/teams/list-memberships.md b/docs/examples/1.1.x/client-web/examples/teams/list-memberships.md index dfa0163037c..845d0ce229a 100644 --- a/docs/examples/1.1.x/client-web/examples/teams/list-memberships.md +++ b/docs/examples/1.1.x/client-web/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/teams/list.md b/docs/examples/1.1.x/client-web/examples/teams/list.md index daf799b95a7..97b4ca31f3b 100644 --- a/docs/examples/1.1.x/client-web/examples/teams/list.md +++ b/docs/examples/1.1.x/client-web/examples/teams/list.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/teams/update-membership-roles.md b/docs/examples/1.1.x/client-web/examples/teams/update-membership-roles.md index 55b2267e4e2..fd0c6f46fc1 100644 --- a/docs/examples/1.1.x/client-web/examples/teams/update-membership-roles.md +++ b/docs/examples/1.1.x/client-web/examples/teams/update-membership-roles.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/teams/update-membership-status.md b/docs/examples/1.1.x/client-web/examples/teams/update-membership-status.md index de1b7f8402a..5ef0b2289c8 100644 --- a/docs/examples/1.1.x/client-web/examples/teams/update-membership-status.md +++ b/docs/examples/1.1.x/client-web/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/client-web/examples/teams/update.md b/docs/examples/1.1.x/client-web/examples/teams/update.md index e10252e73f8..016d53add81 100644 --- a/docs/examples/1.1.x/client-web/examples/teams/update.md +++ b/docs/examples/1.1.x/client-web/examples/teams/update.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/create-anonymous-session.md b/docs/examples/1.1.x/console-web/examples/account/create-anonymous-session.md index c331fc88633..d107d4a8dfa 100644 --- a/docs/examples/1.1.x/console-web/examples/account/create-anonymous-session.md +++ b/docs/examples/1.1.x/console-web/examples/account/create-anonymous-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/create-email-session.md b/docs/examples/1.1.x/console-web/examples/account/create-email-session.md index 76e2e31665f..fc25824dad8 100644 --- a/docs/examples/1.1.x/console-web/examples/account/create-email-session.md +++ b/docs/examples/1.1.x/console-web/examples/account/create-email-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/create-j-w-t.md b/docs/examples/1.1.x/console-web/examples/account/create-j-w-t.md index f388a3da31c..db78c41c3c9 100644 --- a/docs/examples/1.1.x/console-web/examples/account/create-j-w-t.md +++ b/docs/examples/1.1.x/console-web/examples/account/create-j-w-t.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.1.x/console-web/examples/account/create-magic-u-r-l-session.md index d48f031ded0..1179a0efc6f 100644 --- a/docs/examples/1.1.x/console-web/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.1.x/console-web/examples/account/create-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/create-o-auth2session.md b/docs/examples/1.1.x/console-web/examples/account/create-o-auth2session.md index 3757a1c63f2..03b7d2cb488 100644 --- a/docs/examples/1.1.x/console-web/examples/account/create-o-auth2session.md +++ b/docs/examples/1.1.x/console-web/examples/account/create-o-auth2session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/create-phone-session.md b/docs/examples/1.1.x/console-web/examples/account/create-phone-session.md index e5a23aafeef..53ead8a3f8f 100644 --- a/docs/examples/1.1.x/console-web/examples/account/create-phone-session.md +++ b/docs/examples/1.1.x/console-web/examples/account/create-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/create-phone-verification.md b/docs/examples/1.1.x/console-web/examples/account/create-phone-verification.md index a1cbd552774..974f94503fc 100644 --- a/docs/examples/1.1.x/console-web/examples/account/create-phone-verification.md +++ b/docs/examples/1.1.x/console-web/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/create-recovery.md b/docs/examples/1.1.x/console-web/examples/account/create-recovery.md index 1838c0414c3..7030423d2f6 100644 --- a/docs/examples/1.1.x/console-web/examples/account/create-recovery.md +++ b/docs/examples/1.1.x/console-web/examples/account/create-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/create-verification.md b/docs/examples/1.1.x/console-web/examples/account/create-verification.md index 4d8446e6ef1..6448a724963 100644 --- a/docs/examples/1.1.x/console-web/examples/account/create-verification.md +++ b/docs/examples/1.1.x/console-web/examples/account/create-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/create.md b/docs/examples/1.1.x/console-web/examples/account/create.md index 317a0c52651..f452383fed2 100644 --- a/docs/examples/1.1.x/console-web/examples/account/create.md +++ b/docs/examples/1.1.x/console-web/examples/account/create.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/delete-session.md b/docs/examples/1.1.x/console-web/examples/account/delete-session.md index c342afb2c95..052b78d8458 100644 --- a/docs/examples/1.1.x/console-web/examples/account/delete-session.md +++ b/docs/examples/1.1.x/console-web/examples/account/delete-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/delete-sessions.md b/docs/examples/1.1.x/console-web/examples/account/delete-sessions.md index 82133e38455..64b1c591d34 100644 --- a/docs/examples/1.1.x/console-web/examples/account/delete-sessions.md +++ b/docs/examples/1.1.x/console-web/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/get-prefs.md b/docs/examples/1.1.x/console-web/examples/account/get-prefs.md index b98776fd9d1..a02dc517856 100644 --- a/docs/examples/1.1.x/console-web/examples/account/get-prefs.md +++ b/docs/examples/1.1.x/console-web/examples/account/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/get-session.md b/docs/examples/1.1.x/console-web/examples/account/get-session.md index 43edd7d08a1..21be1738ba9 100644 --- a/docs/examples/1.1.x/console-web/examples/account/get-session.md +++ b/docs/examples/1.1.x/console-web/examples/account/get-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/get.md b/docs/examples/1.1.x/console-web/examples/account/get.md index 878227f0194..539ace69afc 100644 --- a/docs/examples/1.1.x/console-web/examples/account/get.md +++ b/docs/examples/1.1.x/console-web/examples/account/get.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/list-logs.md b/docs/examples/1.1.x/console-web/examples/account/list-logs.md index d710f7daa3e..d26bd396bae 100644 --- a/docs/examples/1.1.x/console-web/examples/account/list-logs.md +++ b/docs/examples/1.1.x/console-web/examples/account/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/list-sessions.md b/docs/examples/1.1.x/console-web/examples/account/list-sessions.md index ce6ec74862c..c5a5625b17c 100644 --- a/docs/examples/1.1.x/console-web/examples/account/list-sessions.md +++ b/docs/examples/1.1.x/console-web/examples/account/list-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/update-email.md b/docs/examples/1.1.x/console-web/examples/account/update-email.md index baac3a0ab09..2242db702cb 100644 --- a/docs/examples/1.1.x/console-web/examples/account/update-email.md +++ b/docs/examples/1.1.x/console-web/examples/account/update-email.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.1.x/console-web/examples/account/update-magic-u-r-l-session.md index c07fee2b144..70bf5d17da0 100644 --- a/docs/examples/1.1.x/console-web/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.1.x/console-web/examples/account/update-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/update-name.md b/docs/examples/1.1.x/console-web/examples/account/update-name.md index 4af963d5fc3..8ec9bd2395e 100644 --- a/docs/examples/1.1.x/console-web/examples/account/update-name.md +++ b/docs/examples/1.1.x/console-web/examples/account/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/update-password.md b/docs/examples/1.1.x/console-web/examples/account/update-password.md index 9cb72c7fdef..b5dea9c9eba 100644 --- a/docs/examples/1.1.x/console-web/examples/account/update-password.md +++ b/docs/examples/1.1.x/console-web/examples/account/update-password.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/update-phone-session.md b/docs/examples/1.1.x/console-web/examples/account/update-phone-session.md index b3b29481a98..9870627d9f7 100644 --- a/docs/examples/1.1.x/console-web/examples/account/update-phone-session.md +++ b/docs/examples/1.1.x/console-web/examples/account/update-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/update-phone-verification.md b/docs/examples/1.1.x/console-web/examples/account/update-phone-verification.md index a274c9b07c8..912f178814e 100644 --- a/docs/examples/1.1.x/console-web/examples/account/update-phone-verification.md +++ b/docs/examples/1.1.x/console-web/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/update-phone.md b/docs/examples/1.1.x/console-web/examples/account/update-phone.md index a1017fc7f4a..6ee5eb40e89 100644 --- a/docs/examples/1.1.x/console-web/examples/account/update-phone.md +++ b/docs/examples/1.1.x/console-web/examples/account/update-phone.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/update-prefs.md b/docs/examples/1.1.x/console-web/examples/account/update-prefs.md index ecceff3158c..3f90dfabd2f 100644 --- a/docs/examples/1.1.x/console-web/examples/account/update-prefs.md +++ b/docs/examples/1.1.x/console-web/examples/account/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/update-recovery.md b/docs/examples/1.1.x/console-web/examples/account/update-recovery.md index eb78a8a52d2..200b993a4cb 100644 --- a/docs/examples/1.1.x/console-web/examples/account/update-recovery.md +++ b/docs/examples/1.1.x/console-web/examples/account/update-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/update-session.md b/docs/examples/1.1.x/console-web/examples/account/update-session.md index a7a42c663aa..a8c40ebb81c 100644 --- a/docs/examples/1.1.x/console-web/examples/account/update-session.md +++ b/docs/examples/1.1.x/console-web/examples/account/update-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/update-status.md b/docs/examples/1.1.x/console-web/examples/account/update-status.md index 9cbe78c5c42..d3ac91e7d50 100644 --- a/docs/examples/1.1.x/console-web/examples/account/update-status.md +++ b/docs/examples/1.1.x/console-web/examples/account/update-status.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/account/update-verification.md b/docs/examples/1.1.x/console-web/examples/account/update-verification.md index 73338da4df2..404fdd4352e 100644 --- a/docs/examples/1.1.x/console-web/examples/account/update-verification.md +++ b/docs/examples/1.1.x/console-web/examples/account/update-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/avatars/get-browser.md b/docs/examples/1.1.x/console-web/examples/avatars/get-browser.md index 0b4c2def003..cf5beeb4580 100644 --- a/docs/examples/1.1.x/console-web/examples/avatars/get-browser.md +++ b/docs/examples/1.1.x/console-web/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/avatars/get-credit-card.md b/docs/examples/1.1.x/console-web/examples/avatars/get-credit-card.md index 082ed92b670..3486722f907 100644 --- a/docs/examples/1.1.x/console-web/examples/avatars/get-credit-card.md +++ b/docs/examples/1.1.x/console-web/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/avatars/get-favicon.md b/docs/examples/1.1.x/console-web/examples/avatars/get-favicon.md index 7ee6bd3da26..5e0056c8883 100644 --- a/docs/examples/1.1.x/console-web/examples/avatars/get-favicon.md +++ b/docs/examples/1.1.x/console-web/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/avatars/get-flag.md b/docs/examples/1.1.x/console-web/examples/avatars/get-flag.md index a43827a1aed..7e95a5bc132 100644 --- a/docs/examples/1.1.x/console-web/examples/avatars/get-flag.md +++ b/docs/examples/1.1.x/console-web/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/avatars/get-image.md b/docs/examples/1.1.x/console-web/examples/avatars/get-image.md index ea186a1a682..b6d25c7389f 100644 --- a/docs/examples/1.1.x/console-web/examples/avatars/get-image.md +++ b/docs/examples/1.1.x/console-web/examples/avatars/get-image.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/avatars/get-initials.md b/docs/examples/1.1.x/console-web/examples/avatars/get-initials.md index 7e8c8ec4130..efee82cfab4 100644 --- a/docs/examples/1.1.x/console-web/examples/avatars/get-initials.md +++ b/docs/examples/1.1.x/console-web/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/avatars/get-q-r.md b/docs/examples/1.1.x/console-web/examples/avatars/get-q-r.md index b957084aa1d..412dff00eac 100644 --- a/docs/examples/1.1.x/console-web/examples/avatars/get-q-r.md +++ b/docs/examples/1.1.x/console-web/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/create-boolean-attribute.md b/docs/examples/1.1.x/console-web/examples/databases/create-boolean-attribute.md index 7264597ebf5..a35d7e22915 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.1.x/console-web/examples/databases/create-boolean-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/create-collection.md b/docs/examples/1.1.x/console-web/examples/databases/create-collection.md index 01cce022813..433e0641a82 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/create-collection.md +++ b/docs/examples/1.1.x/console-web/examples/databases/create-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/create-datetime-attribute.md b/docs/examples/1.1.x/console-web/examples/databases/create-datetime-attribute.md index 2ffa6123a52..4af912ab14a 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.1.x/console-web/examples/databases/create-datetime-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/create-document.md b/docs/examples/1.1.x/console-web/examples/databases/create-document.md index 92792066efe..a87121baa76 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/create-document.md +++ b/docs/examples/1.1.x/console-web/examples/databases/create-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/create-email-attribute.md b/docs/examples/1.1.x/console-web/examples/databases/create-email-attribute.md index 7aca28fd5e4..4a29c9e062f 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/create-email-attribute.md +++ b/docs/examples/1.1.x/console-web/examples/databases/create-email-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/create-enum-attribute.md b/docs/examples/1.1.x/console-web/examples/databases/create-enum-attribute.md index 664a4f99fb5..824b72fc423 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.1.x/console-web/examples/databases/create-enum-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/create-float-attribute.md b/docs/examples/1.1.x/console-web/examples/databases/create-float-attribute.md index aec9fa850cb..09968951e22 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/create-float-attribute.md +++ b/docs/examples/1.1.x/console-web/examples/databases/create-float-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/create-index.md b/docs/examples/1.1.x/console-web/examples/databases/create-index.md index d6d791fc17f..2b0e8073cdb 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/create-index.md +++ b/docs/examples/1.1.x/console-web/examples/databases/create-index.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/create-integer-attribute.md b/docs/examples/1.1.x/console-web/examples/databases/create-integer-attribute.md index 8d2f5c49edc..d60cb8980ca 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.1.x/console-web/examples/databases/create-integer-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/create-ip-attribute.md b/docs/examples/1.1.x/console-web/examples/databases/create-ip-attribute.md index 3936077ec47..7c5efea065a 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.1.x/console-web/examples/databases/create-ip-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/create-string-attribute.md b/docs/examples/1.1.x/console-web/examples/databases/create-string-attribute.md index ff865a5b0c1..58d53c48ec9 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/create-string-attribute.md +++ b/docs/examples/1.1.x/console-web/examples/databases/create-string-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/create-url-attribute.md b/docs/examples/1.1.x/console-web/examples/databases/create-url-attribute.md index ba4997f6683..661c54a5fad 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/create-url-attribute.md +++ b/docs/examples/1.1.x/console-web/examples/databases/create-url-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/create.md b/docs/examples/1.1.x/console-web/examples/databases/create.md index ba22b473f2b..d4df9e5d2be 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/create.md +++ b/docs/examples/1.1.x/console-web/examples/databases/create.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/delete-attribute.md b/docs/examples/1.1.x/console-web/examples/databases/delete-attribute.md index 5a9a98e866d..79c5fefba3e 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/delete-attribute.md +++ b/docs/examples/1.1.x/console-web/examples/databases/delete-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/delete-collection.md b/docs/examples/1.1.x/console-web/examples/databases/delete-collection.md index 927ce3d8873..849a24b5305 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/delete-collection.md +++ b/docs/examples/1.1.x/console-web/examples/databases/delete-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/delete-document.md b/docs/examples/1.1.x/console-web/examples/databases/delete-document.md index 9e281e71665..39f96d4d128 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/delete-document.md +++ b/docs/examples/1.1.x/console-web/examples/databases/delete-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/delete-index.md b/docs/examples/1.1.x/console-web/examples/databases/delete-index.md index 23f6c9e469d..ad9c9ada607 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/delete-index.md +++ b/docs/examples/1.1.x/console-web/examples/databases/delete-index.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/delete.md b/docs/examples/1.1.x/console-web/examples/databases/delete.md index bdb28f9839c..fb3b6cce789 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/delete.md +++ b/docs/examples/1.1.x/console-web/examples/databases/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/get-attribute.md b/docs/examples/1.1.x/console-web/examples/databases/get-attribute.md index b53234c4b11..d3ed02ea87f 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/get-attribute.md +++ b/docs/examples/1.1.x/console-web/examples/databases/get-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/get-collection-usage.md b/docs/examples/1.1.x/console-web/examples/databases/get-collection-usage.md index efa1d7136d6..70f5982f9f8 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/get-collection-usage.md +++ b/docs/examples/1.1.x/console-web/examples/databases/get-collection-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/get-collection.md b/docs/examples/1.1.x/console-web/examples/databases/get-collection.md index eb14848e8f1..a8a7480dc96 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/get-collection.md +++ b/docs/examples/1.1.x/console-web/examples/databases/get-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/get-database-usage.md b/docs/examples/1.1.x/console-web/examples/databases/get-database-usage.md index 59e93cf92cf..6a31c262312 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/get-database-usage.md +++ b/docs/examples/1.1.x/console-web/examples/databases/get-database-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/get-document.md b/docs/examples/1.1.x/console-web/examples/databases/get-document.md index ea80328794f..b38f81805d0 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/get-document.md +++ b/docs/examples/1.1.x/console-web/examples/databases/get-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/get-index.md b/docs/examples/1.1.x/console-web/examples/databases/get-index.md index b6f5f583006..f94b8c02154 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/get-index.md +++ b/docs/examples/1.1.x/console-web/examples/databases/get-index.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/get-usage.md b/docs/examples/1.1.x/console-web/examples/databases/get-usage.md index f74e0f37487..4a33122edf2 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/get-usage.md +++ b/docs/examples/1.1.x/console-web/examples/databases/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/get.md b/docs/examples/1.1.x/console-web/examples/databases/get.md index bd78b849494..9ce75fa223f 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/get.md +++ b/docs/examples/1.1.x/console-web/examples/databases/get.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/list-attributes.md b/docs/examples/1.1.x/console-web/examples/databases/list-attributes.md index 74de96d3253..5c7240d9d2d 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/list-attributes.md +++ b/docs/examples/1.1.x/console-web/examples/databases/list-attributes.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/list-collection-logs.md b/docs/examples/1.1.x/console-web/examples/databases/list-collection-logs.md index 3c9721007be..2370727c3c3 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/list-collection-logs.md +++ b/docs/examples/1.1.x/console-web/examples/databases/list-collection-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/list-collections.md b/docs/examples/1.1.x/console-web/examples/databases/list-collections.md index c34f3d8caf9..abc239f0e5c 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/list-collections.md +++ b/docs/examples/1.1.x/console-web/examples/databases/list-collections.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/list-document-logs.md b/docs/examples/1.1.x/console-web/examples/databases/list-document-logs.md index fd0870e54b7..613a24bc3a9 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/list-document-logs.md +++ b/docs/examples/1.1.x/console-web/examples/databases/list-document-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/list-documents.md b/docs/examples/1.1.x/console-web/examples/databases/list-documents.md index 4a94c99db35..9be77973897 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/list-documents.md +++ b/docs/examples/1.1.x/console-web/examples/databases/list-documents.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/list-indexes.md b/docs/examples/1.1.x/console-web/examples/databases/list-indexes.md index 714573b758b..f8bbf88526e 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/list-indexes.md +++ b/docs/examples/1.1.x/console-web/examples/databases/list-indexes.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/list-logs.md b/docs/examples/1.1.x/console-web/examples/databases/list-logs.md index 5566fa3e6f4..a0ff5edae7f 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/list-logs.md +++ b/docs/examples/1.1.x/console-web/examples/databases/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/list.md b/docs/examples/1.1.x/console-web/examples/databases/list.md index d97b85c1386..747936f243c 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/list.md +++ b/docs/examples/1.1.x/console-web/examples/databases/list.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/update-collection.md b/docs/examples/1.1.x/console-web/examples/databases/update-collection.md index 526f2453dbb..3fd4740da93 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/update-collection.md +++ b/docs/examples/1.1.x/console-web/examples/databases/update-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/update-document.md b/docs/examples/1.1.x/console-web/examples/databases/update-document.md index cc5ef1cc021..6d584151120 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/update-document.md +++ b/docs/examples/1.1.x/console-web/examples/databases/update-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/databases/update.md b/docs/examples/1.1.x/console-web/examples/databases/update.md index 93b4bf8e59e..d34c71b7cb2 100644 --- a/docs/examples/1.1.x/console-web/examples/databases/update.md +++ b/docs/examples/1.1.x/console-web/examples/databases/update.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/create-build.md b/docs/examples/1.1.x/console-web/examples/functions/create-build.md index a92ced206e7..e8671187a30 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/create-build.md +++ b/docs/examples/1.1.x/console-web/examples/functions/create-build.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/create-deployment.md b/docs/examples/1.1.x/console-web/examples/functions/create-deployment.md index fed22c21d98..331fa957caa 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/create-deployment.md +++ b/docs/examples/1.1.x/console-web/examples/functions/create-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/create-execution.md b/docs/examples/1.1.x/console-web/examples/functions/create-execution.md index 4fc7ac75454..091e3aae240 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/create-execution.md +++ b/docs/examples/1.1.x/console-web/examples/functions/create-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/create-variable.md b/docs/examples/1.1.x/console-web/examples/functions/create-variable.md index 78c465c2fe7..ecdf7efb19d 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/create-variable.md +++ b/docs/examples/1.1.x/console-web/examples/functions/create-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/create.md b/docs/examples/1.1.x/console-web/examples/functions/create.md index 9639cae64bc..d343679c93c 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/create.md +++ b/docs/examples/1.1.x/console-web/examples/functions/create.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/delete-deployment.md b/docs/examples/1.1.x/console-web/examples/functions/delete-deployment.md index 06cb18591db..3c3c147bd07 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/delete-deployment.md +++ b/docs/examples/1.1.x/console-web/examples/functions/delete-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/delete-variable.md b/docs/examples/1.1.x/console-web/examples/functions/delete-variable.md index 91ba6778f2e..3e834592303 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/delete-variable.md +++ b/docs/examples/1.1.x/console-web/examples/functions/delete-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/delete.md b/docs/examples/1.1.x/console-web/examples/functions/delete.md index 8c78a1c9286..249d118e92b 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/delete.md +++ b/docs/examples/1.1.x/console-web/examples/functions/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/get-deployment.md b/docs/examples/1.1.x/console-web/examples/functions/get-deployment.md index e2bdb9a2833..9a372cc93aa 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/get-deployment.md +++ b/docs/examples/1.1.x/console-web/examples/functions/get-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/get-execution.md b/docs/examples/1.1.x/console-web/examples/functions/get-execution.md index 2473572c05a..704cf52c620 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/get-execution.md +++ b/docs/examples/1.1.x/console-web/examples/functions/get-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/get-function-usage.md b/docs/examples/1.1.x/console-web/examples/functions/get-function-usage.md index d58dd43b902..2c424e61ae7 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/get-function-usage.md +++ b/docs/examples/1.1.x/console-web/examples/functions/get-function-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/get-usage.md b/docs/examples/1.1.x/console-web/examples/functions/get-usage.md index 12bdbe879b9..82d3959b3d9 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/get-usage.md +++ b/docs/examples/1.1.x/console-web/examples/functions/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/get-variable.md b/docs/examples/1.1.x/console-web/examples/functions/get-variable.md index 4225157a866..26da0bd8895 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/get-variable.md +++ b/docs/examples/1.1.x/console-web/examples/functions/get-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/get.md b/docs/examples/1.1.x/console-web/examples/functions/get.md index 06c91ea01a1..2ade672c950 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/get.md +++ b/docs/examples/1.1.x/console-web/examples/functions/get.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/list-deployments.md b/docs/examples/1.1.x/console-web/examples/functions/list-deployments.md index 8c2145bc630..ecf25aa1e0d 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/list-deployments.md +++ b/docs/examples/1.1.x/console-web/examples/functions/list-deployments.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/list-executions.md b/docs/examples/1.1.x/console-web/examples/functions/list-executions.md index 481986ef405..b0a74de4a08 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/list-executions.md +++ b/docs/examples/1.1.x/console-web/examples/functions/list-executions.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/list-runtimes.md b/docs/examples/1.1.x/console-web/examples/functions/list-runtimes.md index 137d046cf78..e4ac34ac23f 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/list-runtimes.md +++ b/docs/examples/1.1.x/console-web/examples/functions/list-runtimes.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/list-variables.md b/docs/examples/1.1.x/console-web/examples/functions/list-variables.md index 44f8799d8ee..75d18c13cd2 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/list-variables.md +++ b/docs/examples/1.1.x/console-web/examples/functions/list-variables.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/list.md b/docs/examples/1.1.x/console-web/examples/functions/list.md index c2a9d7bdf91..21dba3f21b5 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/list.md +++ b/docs/examples/1.1.x/console-web/examples/functions/list.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/update-deployment.md b/docs/examples/1.1.x/console-web/examples/functions/update-deployment.md index 1c14677cde6..bc92b888584 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/update-deployment.md +++ b/docs/examples/1.1.x/console-web/examples/functions/update-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/update-variable.md b/docs/examples/1.1.x/console-web/examples/functions/update-variable.md index de7bf53130c..bccab51b68d 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/update-variable.md +++ b/docs/examples/1.1.x/console-web/examples/functions/update-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/functions/update.md b/docs/examples/1.1.x/console-web/examples/functions/update.md index cbb427917cd..4b69b0470fd 100644 --- a/docs/examples/1.1.x/console-web/examples/functions/update.md +++ b/docs/examples/1.1.x/console-web/examples/functions/update.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/health/get-antivirus.md b/docs/examples/1.1.x/console-web/examples/health/get-antivirus.md index ed644f689b5..2ce2d245dc8 100644 --- a/docs/examples/1.1.x/console-web/examples/health/get-antivirus.md +++ b/docs/examples/1.1.x/console-web/examples/health/get-antivirus.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/health/get-cache.md b/docs/examples/1.1.x/console-web/examples/health/get-cache.md index 8d29c8c9831..e28f9f827aa 100644 --- a/docs/examples/1.1.x/console-web/examples/health/get-cache.md +++ b/docs/examples/1.1.x/console-web/examples/health/get-cache.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/health/get-d-b.md b/docs/examples/1.1.x/console-web/examples/health/get-d-b.md index 3738634d6bf..fdf02d59455 100644 --- a/docs/examples/1.1.x/console-web/examples/health/get-d-b.md +++ b/docs/examples/1.1.x/console-web/examples/health/get-d-b.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/health/get-queue-certificates.md b/docs/examples/1.1.x/console-web/examples/health/get-queue-certificates.md index ebdfe3e2f7a..ffe340f8f8d 100644 --- a/docs/examples/1.1.x/console-web/examples/health/get-queue-certificates.md +++ b/docs/examples/1.1.x/console-web/examples/health/get-queue-certificates.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/health/get-queue-functions.md b/docs/examples/1.1.x/console-web/examples/health/get-queue-functions.md index c6edd987ff2..111ffa735d9 100644 --- a/docs/examples/1.1.x/console-web/examples/health/get-queue-functions.md +++ b/docs/examples/1.1.x/console-web/examples/health/get-queue-functions.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/health/get-queue-logs.md b/docs/examples/1.1.x/console-web/examples/health/get-queue-logs.md index 88c50cb2451..902504b6703 100644 --- a/docs/examples/1.1.x/console-web/examples/health/get-queue-logs.md +++ b/docs/examples/1.1.x/console-web/examples/health/get-queue-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/health/get-queue-webhooks.md b/docs/examples/1.1.x/console-web/examples/health/get-queue-webhooks.md index 304d90f0a38..0dc80f74546 100644 --- a/docs/examples/1.1.x/console-web/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.1.x/console-web/examples/health/get-queue-webhooks.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/health/get-storage-local.md b/docs/examples/1.1.x/console-web/examples/health/get-storage-local.md index a8b1d9a3541..affd46b7dd6 100644 --- a/docs/examples/1.1.x/console-web/examples/health/get-storage-local.md +++ b/docs/examples/1.1.x/console-web/examples/health/get-storage-local.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/health/get-time.md b/docs/examples/1.1.x/console-web/examples/health/get-time.md index e4b7b5d0c33..eeaf31b05aa 100644 --- a/docs/examples/1.1.x/console-web/examples/health/get-time.md +++ b/docs/examples/1.1.x/console-web/examples/health/get-time.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/health/get.md b/docs/examples/1.1.x/console-web/examples/health/get.md index 67de8fe58f4..1184b6a56b3 100644 --- a/docs/examples/1.1.x/console-web/examples/health/get.md +++ b/docs/examples/1.1.x/console-web/examples/health/get.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/locale/get.md b/docs/examples/1.1.x/console-web/examples/locale/get.md index e15bad2ce1b..1001b36d05c 100644 --- a/docs/examples/1.1.x/console-web/examples/locale/get.md +++ b/docs/examples/1.1.x/console-web/examples/locale/get.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/locale/list-continents.md b/docs/examples/1.1.x/console-web/examples/locale/list-continents.md index aa3716ef565..9239750852f 100644 --- a/docs/examples/1.1.x/console-web/examples/locale/list-continents.md +++ b/docs/examples/1.1.x/console-web/examples/locale/list-continents.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/locale/list-countries-e-u.md b/docs/examples/1.1.x/console-web/examples/locale/list-countries-e-u.md index c924b8df4b7..005d5a33270 100644 --- a/docs/examples/1.1.x/console-web/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.1.x/console-web/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/locale/list-countries-phones.md b/docs/examples/1.1.x/console-web/examples/locale/list-countries-phones.md index 0ab60767da7..2e5faf107dd 100644 --- a/docs/examples/1.1.x/console-web/examples/locale/list-countries-phones.md +++ b/docs/examples/1.1.x/console-web/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/locale/list-countries.md b/docs/examples/1.1.x/console-web/examples/locale/list-countries.md index ee8c454993a..d57ab0b732b 100644 --- a/docs/examples/1.1.x/console-web/examples/locale/list-countries.md +++ b/docs/examples/1.1.x/console-web/examples/locale/list-countries.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/locale/list-currencies.md b/docs/examples/1.1.x/console-web/examples/locale/list-currencies.md index dd37b14e25a..31015d585c3 100644 --- a/docs/examples/1.1.x/console-web/examples/locale/list-currencies.md +++ b/docs/examples/1.1.x/console-web/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/locale/list-languages.md b/docs/examples/1.1.x/console-web/examples/locale/list-languages.md index 89ae06d529b..cfd9adcc1a0 100644 --- a/docs/examples/1.1.x/console-web/examples/locale/list-languages.md +++ b/docs/examples/1.1.x/console-web/examples/locale/list-languages.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/create-domain.md b/docs/examples/1.1.x/console-web/examples/projects/create-domain.md index e7dfd9013c5..923b888d25e 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/create-domain.md +++ b/docs/examples/1.1.x/console-web/examples/projects/create-domain.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/create-key.md b/docs/examples/1.1.x/console-web/examples/projects/create-key.md index 0fa3677d61a..b2ad13765c0 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/create-key.md +++ b/docs/examples/1.1.x/console-web/examples/projects/create-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/create-platform.md b/docs/examples/1.1.x/console-web/examples/projects/create-platform.md index e3362bc5602..6a02f791c85 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/create-platform.md +++ b/docs/examples/1.1.x/console-web/examples/projects/create-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/create-webhook.md b/docs/examples/1.1.x/console-web/examples/projects/create-webhook.md index e65d59d8fa2..820a4fa9479 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/create-webhook.md +++ b/docs/examples/1.1.x/console-web/examples/projects/create-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/create.md b/docs/examples/1.1.x/console-web/examples/projects/create.md index 7427c864091..788742447c7 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/create.md +++ b/docs/examples/1.1.x/console-web/examples/projects/create.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/delete-domain.md b/docs/examples/1.1.x/console-web/examples/projects/delete-domain.md index 4401b90e12d..51f2b2d998c 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/delete-domain.md +++ b/docs/examples/1.1.x/console-web/examples/projects/delete-domain.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/delete-key.md b/docs/examples/1.1.x/console-web/examples/projects/delete-key.md index 64dcecf9235..b10631048ed 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/delete-key.md +++ b/docs/examples/1.1.x/console-web/examples/projects/delete-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/delete-platform.md b/docs/examples/1.1.x/console-web/examples/projects/delete-platform.md index ac266498b94..58e7a31fdfe 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/delete-platform.md +++ b/docs/examples/1.1.x/console-web/examples/projects/delete-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/delete-webhook.md b/docs/examples/1.1.x/console-web/examples/projects/delete-webhook.md index e9fe6f9d3fd..300308fdff0 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/delete-webhook.md +++ b/docs/examples/1.1.x/console-web/examples/projects/delete-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/delete.md b/docs/examples/1.1.x/console-web/examples/projects/delete.md index a76a382e5a4..2fef23195ec 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/delete.md +++ b/docs/examples/1.1.x/console-web/examples/projects/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/get-domain.md b/docs/examples/1.1.x/console-web/examples/projects/get-domain.md index 5bc60ae20a1..795297cb269 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/get-domain.md +++ b/docs/examples/1.1.x/console-web/examples/projects/get-domain.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/get-key.md b/docs/examples/1.1.x/console-web/examples/projects/get-key.md index 94da5b02b38..5f5177f45c5 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/get-key.md +++ b/docs/examples/1.1.x/console-web/examples/projects/get-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/get-platform.md b/docs/examples/1.1.x/console-web/examples/projects/get-platform.md index 7838e52957a..31dd54999f5 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/get-platform.md +++ b/docs/examples/1.1.x/console-web/examples/projects/get-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/get-usage.md b/docs/examples/1.1.x/console-web/examples/projects/get-usage.md index 5bb8cb9819c..cb830cacc00 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/get-usage.md +++ b/docs/examples/1.1.x/console-web/examples/projects/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/get-webhook.md b/docs/examples/1.1.x/console-web/examples/projects/get-webhook.md index 2f094d7298e..928a80daebb 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/get-webhook.md +++ b/docs/examples/1.1.x/console-web/examples/projects/get-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/get.md b/docs/examples/1.1.x/console-web/examples/projects/get.md index ce03b2d1303..26232940812 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/get.md +++ b/docs/examples/1.1.x/console-web/examples/projects/get.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/list-domains.md b/docs/examples/1.1.x/console-web/examples/projects/list-domains.md index 3bed0807dbc..642e2f0335f 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/list-domains.md +++ b/docs/examples/1.1.x/console-web/examples/projects/list-domains.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/list-keys.md b/docs/examples/1.1.x/console-web/examples/projects/list-keys.md index 8863919ecc7..7a3e4b696f9 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/list-keys.md +++ b/docs/examples/1.1.x/console-web/examples/projects/list-keys.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/list-platforms.md b/docs/examples/1.1.x/console-web/examples/projects/list-platforms.md index a2a67535e1e..925233e0b8c 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/list-platforms.md +++ b/docs/examples/1.1.x/console-web/examples/projects/list-platforms.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/list-webhooks.md b/docs/examples/1.1.x/console-web/examples/projects/list-webhooks.md index 145385f486a..61278a0482c 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/list-webhooks.md +++ b/docs/examples/1.1.x/console-web/examples/projects/list-webhooks.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/list.md b/docs/examples/1.1.x/console-web/examples/projects/list.md index 09030e5747c..75ecf56d026 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/list.md +++ b/docs/examples/1.1.x/console-web/examples/projects/list.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/update-auth-duration.md b/docs/examples/1.1.x/console-web/examples/projects/update-auth-duration.md index c9d1385e331..5c9a7b2ceef 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/update-auth-duration.md +++ b/docs/examples/1.1.x/console-web/examples/projects/update-auth-duration.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/update-auth-limit.md b/docs/examples/1.1.x/console-web/examples/projects/update-auth-limit.md index be4827c26ca..0700d729330 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/update-auth-limit.md +++ b/docs/examples/1.1.x/console-web/examples/projects/update-auth-limit.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/update-auth-status.md b/docs/examples/1.1.x/console-web/examples/projects/update-auth-status.md index 89a4a4ee28b..56a821b34a5 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/update-auth-status.md +++ b/docs/examples/1.1.x/console-web/examples/projects/update-auth-status.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/update-domain-verification.md b/docs/examples/1.1.x/console-web/examples/projects/update-domain-verification.md index 4a756883a35..fe4970e67eb 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/update-domain-verification.md +++ b/docs/examples/1.1.x/console-web/examples/projects/update-domain-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/update-key.md b/docs/examples/1.1.x/console-web/examples/projects/update-key.md index 15f1c63a4b5..61c4c6472d4 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/update-key.md +++ b/docs/examples/1.1.x/console-web/examples/projects/update-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/update-o-auth2.md b/docs/examples/1.1.x/console-web/examples/projects/update-o-auth2.md index 1d3edf0ff3e..d0b4af7b3f6 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/update-o-auth2.md +++ b/docs/examples/1.1.x/console-web/examples/projects/update-o-auth2.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/update-platform.md b/docs/examples/1.1.x/console-web/examples/projects/update-platform.md index 81e6af22d45..1a4be4a6a50 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/update-platform.md +++ b/docs/examples/1.1.x/console-web/examples/projects/update-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/update-service-status.md b/docs/examples/1.1.x/console-web/examples/projects/update-service-status.md index 0e70a446d58..42a99c7002b 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/update-service-status.md +++ b/docs/examples/1.1.x/console-web/examples/projects/update-service-status.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/update-webhook-signature.md b/docs/examples/1.1.x/console-web/examples/projects/update-webhook-signature.md index f0de96ea866..4993c29835f 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/update-webhook-signature.md +++ b/docs/examples/1.1.x/console-web/examples/projects/update-webhook-signature.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/update-webhook.md b/docs/examples/1.1.x/console-web/examples/projects/update-webhook.md index 561ea887839..55f947e276b 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/update-webhook.md +++ b/docs/examples/1.1.x/console-web/examples/projects/update-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/projects/update.md b/docs/examples/1.1.x/console-web/examples/projects/update.md index aabb6b1f3c0..99dc30f82a6 100644 --- a/docs/examples/1.1.x/console-web/examples/projects/update.md +++ b/docs/examples/1.1.x/console-web/examples/projects/update.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/storage/create-bucket.md b/docs/examples/1.1.x/console-web/examples/storage/create-bucket.md index 09877bec8f6..243a8d4b6da 100644 --- a/docs/examples/1.1.x/console-web/examples/storage/create-bucket.md +++ b/docs/examples/1.1.x/console-web/examples/storage/create-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/storage/create-file.md b/docs/examples/1.1.x/console-web/examples/storage/create-file.md index 0cddb086901..8e84ec8ceea 100644 --- a/docs/examples/1.1.x/console-web/examples/storage/create-file.md +++ b/docs/examples/1.1.x/console-web/examples/storage/create-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/storage/delete-bucket.md b/docs/examples/1.1.x/console-web/examples/storage/delete-bucket.md index e0ebeef67cb..356608c38c8 100644 --- a/docs/examples/1.1.x/console-web/examples/storage/delete-bucket.md +++ b/docs/examples/1.1.x/console-web/examples/storage/delete-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/storage/delete-file.md b/docs/examples/1.1.x/console-web/examples/storage/delete-file.md index 257d855c320..47416bbb8f8 100644 --- a/docs/examples/1.1.x/console-web/examples/storage/delete-file.md +++ b/docs/examples/1.1.x/console-web/examples/storage/delete-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/storage/get-bucket-usage.md b/docs/examples/1.1.x/console-web/examples/storage/get-bucket-usage.md index 173eb4b2d7b..1cccc626244 100644 --- a/docs/examples/1.1.x/console-web/examples/storage/get-bucket-usage.md +++ b/docs/examples/1.1.x/console-web/examples/storage/get-bucket-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/storage/get-bucket.md b/docs/examples/1.1.x/console-web/examples/storage/get-bucket.md index 4c41b9cbed5..64e35f4cc08 100644 --- a/docs/examples/1.1.x/console-web/examples/storage/get-bucket.md +++ b/docs/examples/1.1.x/console-web/examples/storage/get-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/storage/get-file-download.md b/docs/examples/1.1.x/console-web/examples/storage/get-file-download.md index d8a3542aab8..d9f4cd1895d 100644 --- a/docs/examples/1.1.x/console-web/examples/storage/get-file-download.md +++ b/docs/examples/1.1.x/console-web/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/storage/get-file-preview.md b/docs/examples/1.1.x/console-web/examples/storage/get-file-preview.md index f0588ba7dc2..d2d4731322c 100644 --- a/docs/examples/1.1.x/console-web/examples/storage/get-file-preview.md +++ b/docs/examples/1.1.x/console-web/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/storage/get-file-view.md b/docs/examples/1.1.x/console-web/examples/storage/get-file-view.md index 5eb2855befe..e9d0ff6d8d2 100644 --- a/docs/examples/1.1.x/console-web/examples/storage/get-file-view.md +++ b/docs/examples/1.1.x/console-web/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/storage/get-file.md b/docs/examples/1.1.x/console-web/examples/storage/get-file.md index 6b39ee386e2..e326154a4e9 100644 --- a/docs/examples/1.1.x/console-web/examples/storage/get-file.md +++ b/docs/examples/1.1.x/console-web/examples/storage/get-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/storage/get-usage.md b/docs/examples/1.1.x/console-web/examples/storage/get-usage.md index 36a58ec951e..9567f6e1ce7 100644 --- a/docs/examples/1.1.x/console-web/examples/storage/get-usage.md +++ b/docs/examples/1.1.x/console-web/examples/storage/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/storage/list-buckets.md b/docs/examples/1.1.x/console-web/examples/storage/list-buckets.md index 286f103c68d..26935e68143 100644 --- a/docs/examples/1.1.x/console-web/examples/storage/list-buckets.md +++ b/docs/examples/1.1.x/console-web/examples/storage/list-buckets.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/storage/list-files.md b/docs/examples/1.1.x/console-web/examples/storage/list-files.md index 696d4013cd9..7faeb85cb1c 100644 --- a/docs/examples/1.1.x/console-web/examples/storage/list-files.md +++ b/docs/examples/1.1.x/console-web/examples/storage/list-files.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/storage/update-bucket.md b/docs/examples/1.1.x/console-web/examples/storage/update-bucket.md index e1b46072855..f0aff44dd3d 100644 --- a/docs/examples/1.1.x/console-web/examples/storage/update-bucket.md +++ b/docs/examples/1.1.x/console-web/examples/storage/update-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/storage/update-file.md b/docs/examples/1.1.x/console-web/examples/storage/update-file.md index d22a2f6a11e..747044dc309 100644 --- a/docs/examples/1.1.x/console-web/examples/storage/update-file.md +++ b/docs/examples/1.1.x/console-web/examples/storage/update-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/teams/create-membership.md b/docs/examples/1.1.x/console-web/examples/teams/create-membership.md index 655f7982883..85fb1ef1245 100644 --- a/docs/examples/1.1.x/console-web/examples/teams/create-membership.md +++ b/docs/examples/1.1.x/console-web/examples/teams/create-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/teams/create.md b/docs/examples/1.1.x/console-web/examples/teams/create.md index c9037e95751..382b759d9c1 100644 --- a/docs/examples/1.1.x/console-web/examples/teams/create.md +++ b/docs/examples/1.1.x/console-web/examples/teams/create.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/teams/delete-membership.md b/docs/examples/1.1.x/console-web/examples/teams/delete-membership.md index c42d6694573..76232de1abd 100644 --- a/docs/examples/1.1.x/console-web/examples/teams/delete-membership.md +++ b/docs/examples/1.1.x/console-web/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/teams/delete.md b/docs/examples/1.1.x/console-web/examples/teams/delete.md index 0c99b7aab8d..2e5e8395517 100644 --- a/docs/examples/1.1.x/console-web/examples/teams/delete.md +++ b/docs/examples/1.1.x/console-web/examples/teams/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/teams/get-membership.md b/docs/examples/1.1.x/console-web/examples/teams/get-membership.md index d4d3c5a65dc..0e2c1454452 100644 --- a/docs/examples/1.1.x/console-web/examples/teams/get-membership.md +++ b/docs/examples/1.1.x/console-web/examples/teams/get-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/teams/get.md b/docs/examples/1.1.x/console-web/examples/teams/get.md index 396916ed411..cdf8812225b 100644 --- a/docs/examples/1.1.x/console-web/examples/teams/get.md +++ b/docs/examples/1.1.x/console-web/examples/teams/get.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/teams/list-logs.md b/docs/examples/1.1.x/console-web/examples/teams/list-logs.md index cb345448f3e..3d627260823 100644 --- a/docs/examples/1.1.x/console-web/examples/teams/list-logs.md +++ b/docs/examples/1.1.x/console-web/examples/teams/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/teams/list-memberships.md b/docs/examples/1.1.x/console-web/examples/teams/list-memberships.md index dfa0163037c..845d0ce229a 100644 --- a/docs/examples/1.1.x/console-web/examples/teams/list-memberships.md +++ b/docs/examples/1.1.x/console-web/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/teams/list.md b/docs/examples/1.1.x/console-web/examples/teams/list.md index daf799b95a7..97b4ca31f3b 100644 --- a/docs/examples/1.1.x/console-web/examples/teams/list.md +++ b/docs/examples/1.1.x/console-web/examples/teams/list.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/teams/update-membership-roles.md b/docs/examples/1.1.x/console-web/examples/teams/update-membership-roles.md index 55b2267e4e2..fd0c6f46fc1 100644 --- a/docs/examples/1.1.x/console-web/examples/teams/update-membership-roles.md +++ b/docs/examples/1.1.x/console-web/examples/teams/update-membership-roles.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/teams/update-membership-status.md b/docs/examples/1.1.x/console-web/examples/teams/update-membership-status.md index de1b7f8402a..5ef0b2289c8 100644 --- a/docs/examples/1.1.x/console-web/examples/teams/update-membership-status.md +++ b/docs/examples/1.1.x/console-web/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/teams/update.md b/docs/examples/1.1.x/console-web/examples/teams/update.md index e10252e73f8..016d53add81 100644 --- a/docs/examples/1.1.x/console-web/examples/teams/update.md +++ b/docs/examples/1.1.x/console-web/examples/teams/update.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/create-argon2user.md b/docs/examples/1.1.x/console-web/examples/users/create-argon2user.md index 8f607e82dac..42aa7d9c8be 100644 --- a/docs/examples/1.1.x/console-web/examples/users/create-argon2user.md +++ b/docs/examples/1.1.x/console-web/examples/users/create-argon2user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/create-bcrypt-user.md b/docs/examples/1.1.x/console-web/examples/users/create-bcrypt-user.md index fb5e741d802..4844f096314 100644 --- a/docs/examples/1.1.x/console-web/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.1.x/console-web/examples/users/create-bcrypt-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/create-m-d5user.md b/docs/examples/1.1.x/console-web/examples/users/create-m-d5user.md index 900813773ec..15351bff928 100644 --- a/docs/examples/1.1.x/console-web/examples/users/create-m-d5user.md +++ b/docs/examples/1.1.x/console-web/examples/users/create-m-d5user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/create-p-h-pass-user.md b/docs/examples/1.1.x/console-web/examples/users/create-p-h-pass-user.md index 9fb748b5872..c1a40c52ff9 100644 --- a/docs/examples/1.1.x/console-web/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.1.x/console-web/examples/users/create-p-h-pass-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/create-s-h-a-user.md b/docs/examples/1.1.x/console-web/examples/users/create-s-h-a-user.md index 315c1880560..c94c89bdc6a 100644 --- a/docs/examples/1.1.x/console-web/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.1.x/console-web/examples/users/create-s-h-a-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/create-scrypt-modified-user.md b/docs/examples/1.1.x/console-web/examples/users/create-scrypt-modified-user.md index ddc78281ed8..b6c0dd728d2 100644 --- a/docs/examples/1.1.x/console-web/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.1.x/console-web/examples/users/create-scrypt-modified-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/create-scrypt-user.md b/docs/examples/1.1.x/console-web/examples/users/create-scrypt-user.md index 77252face93..2a827f74a53 100644 --- a/docs/examples/1.1.x/console-web/examples/users/create-scrypt-user.md +++ b/docs/examples/1.1.x/console-web/examples/users/create-scrypt-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/create.md b/docs/examples/1.1.x/console-web/examples/users/create.md index 832ce5b90dd..bb11fa30c6f 100644 --- a/docs/examples/1.1.x/console-web/examples/users/create.md +++ b/docs/examples/1.1.x/console-web/examples/users/create.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/delete-session.md b/docs/examples/1.1.x/console-web/examples/users/delete-session.md index 80b0428c852..6352efc3ba0 100644 --- a/docs/examples/1.1.x/console-web/examples/users/delete-session.md +++ b/docs/examples/1.1.x/console-web/examples/users/delete-session.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/delete-sessions.md b/docs/examples/1.1.x/console-web/examples/users/delete-sessions.md index 2e560488936..44ac9689c14 100644 --- a/docs/examples/1.1.x/console-web/examples/users/delete-sessions.md +++ b/docs/examples/1.1.x/console-web/examples/users/delete-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/delete.md b/docs/examples/1.1.x/console-web/examples/users/delete.md index 29027f83e2f..5bb8612e55d 100644 --- a/docs/examples/1.1.x/console-web/examples/users/delete.md +++ b/docs/examples/1.1.x/console-web/examples/users/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/get-prefs.md b/docs/examples/1.1.x/console-web/examples/users/get-prefs.md index a835f9b30e8..e58e0081f78 100644 --- a/docs/examples/1.1.x/console-web/examples/users/get-prefs.md +++ b/docs/examples/1.1.x/console-web/examples/users/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/get-usage.md b/docs/examples/1.1.x/console-web/examples/users/get-usage.md index 60060b3db41..84d3fee62ab 100644 --- a/docs/examples/1.1.x/console-web/examples/users/get-usage.md +++ b/docs/examples/1.1.x/console-web/examples/users/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/get.md b/docs/examples/1.1.x/console-web/examples/users/get.md index dbcc06ae7e2..1c91eabd958 100644 --- a/docs/examples/1.1.x/console-web/examples/users/get.md +++ b/docs/examples/1.1.x/console-web/examples/users/get.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/list-logs.md b/docs/examples/1.1.x/console-web/examples/users/list-logs.md index 8c7a5c652f9..2d8941191e4 100644 --- a/docs/examples/1.1.x/console-web/examples/users/list-logs.md +++ b/docs/examples/1.1.x/console-web/examples/users/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/list-memberships.md b/docs/examples/1.1.x/console-web/examples/users/list-memberships.md index b4b091e9ae0..075dfec272c 100644 --- a/docs/examples/1.1.x/console-web/examples/users/list-memberships.md +++ b/docs/examples/1.1.x/console-web/examples/users/list-memberships.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/list-sessions.md b/docs/examples/1.1.x/console-web/examples/users/list-sessions.md index 7c9a2b371b1..29e9bacbb84 100644 --- a/docs/examples/1.1.x/console-web/examples/users/list-sessions.md +++ b/docs/examples/1.1.x/console-web/examples/users/list-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/list.md b/docs/examples/1.1.x/console-web/examples/users/list.md index 6500408d6e9..2211b62092a 100644 --- a/docs/examples/1.1.x/console-web/examples/users/list.md +++ b/docs/examples/1.1.x/console-web/examples/users/list.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/update-email-verification.md b/docs/examples/1.1.x/console-web/examples/users/update-email-verification.md index a34cf45d4c5..4d3ec30a1ba 100644 --- a/docs/examples/1.1.x/console-web/examples/users/update-email-verification.md +++ b/docs/examples/1.1.x/console-web/examples/users/update-email-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/update-email.md b/docs/examples/1.1.x/console-web/examples/users/update-email.md index 4f050b433b0..aec5f2d3443 100644 --- a/docs/examples/1.1.x/console-web/examples/users/update-email.md +++ b/docs/examples/1.1.x/console-web/examples/users/update-email.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/update-name.md b/docs/examples/1.1.x/console-web/examples/users/update-name.md index eb2f4159157..78b896b930b 100644 --- a/docs/examples/1.1.x/console-web/examples/users/update-name.md +++ b/docs/examples/1.1.x/console-web/examples/users/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/update-password.md b/docs/examples/1.1.x/console-web/examples/users/update-password.md index 3723d7199bc..c386abbaa27 100644 --- a/docs/examples/1.1.x/console-web/examples/users/update-password.md +++ b/docs/examples/1.1.x/console-web/examples/users/update-password.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/update-phone-verification.md b/docs/examples/1.1.x/console-web/examples/users/update-phone-verification.md index 962d1a6aba8..b2b6c22d1e8 100644 --- a/docs/examples/1.1.x/console-web/examples/users/update-phone-verification.md +++ b/docs/examples/1.1.x/console-web/examples/users/update-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/update-phone.md b/docs/examples/1.1.x/console-web/examples/users/update-phone.md index fabc44c0afa..4a81b385e8c 100644 --- a/docs/examples/1.1.x/console-web/examples/users/update-phone.md +++ b/docs/examples/1.1.x/console-web/examples/users/update-phone.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/update-prefs.md b/docs/examples/1.1.x/console-web/examples/users/update-prefs.md index 36d9a493e35..e26da0dbb23 100644 --- a/docs/examples/1.1.x/console-web/examples/users/update-prefs.md +++ b/docs/examples/1.1.x/console-web/examples/users/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/console-web/examples/users/update-status.md b/docs/examples/1.1.x/console-web/examples/users/update-status.md index 4e8d9dfd105..691e5064b03 100644 --- a/docs/examples/1.1.x/console-web/examples/users/update-status.md +++ b/docs/examples/1.1.x/console-web/examples/users/update-status.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/create-phone-verification.md b/docs/examples/1.1.x/server-dart/examples/account/create-phone-verification.md index 912f8c3b1ec..85ea968b942 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/create-phone-verification.md +++ b/docs/examples/1.1.x/server-dart/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/create-recovery.md b/docs/examples/1.1.x/server-dart/examples/account/create-recovery.md index d9f13957c7e..0fe2889a76b 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/create-recovery.md +++ b/docs/examples/1.1.x/server-dart/examples/account/create-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/create-verification.md b/docs/examples/1.1.x/server-dart/examples/account/create-verification.md index cca3c7b7742..8daf5d7b1fb 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/create-verification.md +++ b/docs/examples/1.1.x/server-dart/examples/account/create-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/delete-session.md b/docs/examples/1.1.x/server-dart/examples/account/delete-session.md index 9486ec9b80a..92a0fee9a21 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/delete-session.md +++ b/docs/examples/1.1.x/server-dart/examples/account/delete-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/delete-sessions.md b/docs/examples/1.1.x/server-dart/examples/account/delete-sessions.md index a5732cb68e4..2477115be14 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/delete-sessions.md +++ b/docs/examples/1.1.x/server-dart/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/get-prefs.md b/docs/examples/1.1.x/server-dart/examples/account/get-prefs.md index 527a71f3b13..fcf164dde07 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/get-prefs.md +++ b/docs/examples/1.1.x/server-dart/examples/account/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/get-session.md b/docs/examples/1.1.x/server-dart/examples/account/get-session.md index 6eb711ab4d7..029d7bc3d99 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/get-session.md +++ b/docs/examples/1.1.x/server-dart/examples/account/get-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/get.md b/docs/examples/1.1.x/server-dart/examples/account/get.md index c72fdddb107..805061bd701 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/get.md +++ b/docs/examples/1.1.x/server-dart/examples/account/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/list-logs.md b/docs/examples/1.1.x/server-dart/examples/account/list-logs.md index 68d2c49f743..41cdad74c0c 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/list-logs.md +++ b/docs/examples/1.1.x/server-dart/examples/account/list-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/list-sessions.md b/docs/examples/1.1.x/server-dart/examples/account/list-sessions.md index 0d6567b5f31..30bb6fc8c95 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/list-sessions.md +++ b/docs/examples/1.1.x/server-dart/examples/account/list-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/update-email.md b/docs/examples/1.1.x/server-dart/examples/account/update-email.md index b83f7d86da9..ad77ccfd9a1 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/update-email.md +++ b/docs/examples/1.1.x/server-dart/examples/account/update-email.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/update-name.md b/docs/examples/1.1.x/server-dart/examples/account/update-name.md index 0bd27cf2046..7df0f9cc019 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/update-name.md +++ b/docs/examples/1.1.x/server-dart/examples/account/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/update-password.md b/docs/examples/1.1.x/server-dart/examples/account/update-password.md index 6d8cfce1a2a..8c7c3b5f956 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/update-password.md +++ b/docs/examples/1.1.x/server-dart/examples/account/update-password.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/update-phone-verification.md b/docs/examples/1.1.x/server-dart/examples/account/update-phone-verification.md index f2995b9b93f..4892311ef2a 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/update-phone-verification.md +++ b/docs/examples/1.1.x/server-dart/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/update-phone.md b/docs/examples/1.1.x/server-dart/examples/account/update-phone.md index 5848da5d10d..465593c0ab5 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/update-phone.md +++ b/docs/examples/1.1.x/server-dart/examples/account/update-phone.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/update-prefs.md b/docs/examples/1.1.x/server-dart/examples/account/update-prefs.md index ffbe7002884..7ffef542be5 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/update-prefs.md +++ b/docs/examples/1.1.x/server-dart/examples/account/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/update-recovery.md b/docs/examples/1.1.x/server-dart/examples/account/update-recovery.md index c2cf9d2396f..e3ade8270b2 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/update-recovery.md +++ b/docs/examples/1.1.x/server-dart/examples/account/update-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/update-session.md b/docs/examples/1.1.x/server-dart/examples/account/update-session.md index 61e11e27af9..859f1a81f7a 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/update-session.md +++ b/docs/examples/1.1.x/server-dart/examples/account/update-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/update-status.md b/docs/examples/1.1.x/server-dart/examples/account/update-status.md index 12f733334a3..610784294a0 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/update-status.md +++ b/docs/examples/1.1.x/server-dart/examples/account/update-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/account/update-verification.md b/docs/examples/1.1.x/server-dart/examples/account/update-verification.md index 40e36426a10..7b291b61605 100644 --- a/docs/examples/1.1.x/server-dart/examples/account/update-verification.md +++ b/docs/examples/1.1.x/server-dart/examples/account/update-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/avatars/get-browser.md b/docs/examples/1.1.x/server-dart/examples/avatars/get-browser.md index 0bac9df4ef9..abca00ba4b4 100644 --- a/docs/examples/1.1.x/server-dart/examples/avatars/get-browser.md +++ b/docs/examples/1.1.x/server-dart/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/avatars/get-credit-card.md b/docs/examples/1.1.x/server-dart/examples/avatars/get-credit-card.md index b9a8166e485..b50b1304f9e 100644 --- a/docs/examples/1.1.x/server-dart/examples/avatars/get-credit-card.md +++ b/docs/examples/1.1.x/server-dart/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/avatars/get-favicon.md b/docs/examples/1.1.x/server-dart/examples/avatars/get-favicon.md index 6a728e7792a..a547908fa47 100644 --- a/docs/examples/1.1.x/server-dart/examples/avatars/get-favicon.md +++ b/docs/examples/1.1.x/server-dart/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/avatars/get-flag.md b/docs/examples/1.1.x/server-dart/examples/avatars/get-flag.md index 02e4880926f..8e2d9f14900 100644 --- a/docs/examples/1.1.x/server-dart/examples/avatars/get-flag.md +++ b/docs/examples/1.1.x/server-dart/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/avatars/get-image.md b/docs/examples/1.1.x/server-dart/examples/avatars/get-image.md index b1d5e338844..746ec079b0f 100644 --- a/docs/examples/1.1.x/server-dart/examples/avatars/get-image.md +++ b/docs/examples/1.1.x/server-dart/examples/avatars/get-image.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/avatars/get-initials.md b/docs/examples/1.1.x/server-dart/examples/avatars/get-initials.md index 5a68caf1d95..c979fddd08a 100644 --- a/docs/examples/1.1.x/server-dart/examples/avatars/get-initials.md +++ b/docs/examples/1.1.x/server-dart/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/avatars/get-q-r.md b/docs/examples/1.1.x/server-dart/examples/avatars/get-q-r.md index 8283b9bdf45..6ab3cf709d8 100644 --- a/docs/examples/1.1.x/server-dart/examples/avatars/get-q-r.md +++ b/docs/examples/1.1.x/server-dart/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/create-boolean-attribute.md b/docs/examples/1.1.x/server-dart/examples/databases/create-boolean-attribute.md index 224719685b5..0fb759bcb22 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/create-boolean-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/create-collection.md b/docs/examples/1.1.x/server-dart/examples/databases/create-collection.md index c90183deed2..e63877b39f7 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/create-collection.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/create-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/create-datetime-attribute.md b/docs/examples/1.1.x/server-dart/examples/databases/create-datetime-attribute.md index 24c44088f3d..f56eec54ec0 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/create-datetime-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/create-document.md b/docs/examples/1.1.x/server-dart/examples/databases/create-document.md index 00d844da0fc..1f6f6b9703d 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/create-document.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/create-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/create-email-attribute.md b/docs/examples/1.1.x/server-dart/examples/databases/create-email-attribute.md index 92fd32037b8..ea1ebfb480a 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/create-email-attribute.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/create-email-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/create-enum-attribute.md b/docs/examples/1.1.x/server-dart/examples/databases/create-enum-attribute.md index fa8ad92015f..03773c58ebf 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/create-enum-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/create-float-attribute.md b/docs/examples/1.1.x/server-dart/examples/databases/create-float-attribute.md index 96047bf2b21..94c716b9d47 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/create-float-attribute.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/create-float-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/create-index.md b/docs/examples/1.1.x/server-dart/examples/databases/create-index.md index c16a02719e7..248d9632a09 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/create-index.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/create-index.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/create-integer-attribute.md b/docs/examples/1.1.x/server-dart/examples/databases/create-integer-attribute.md index bc4f12f0c4f..4b1d76195dc 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/create-integer-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/create-ip-attribute.md b/docs/examples/1.1.x/server-dart/examples/databases/create-ip-attribute.md index ef3e985a384..4b3586ae34e 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/create-ip-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/create-string-attribute.md b/docs/examples/1.1.x/server-dart/examples/databases/create-string-attribute.md index 14f2769dbbd..ed973e8c537 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/create-string-attribute.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/create-string-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/create-url-attribute.md b/docs/examples/1.1.x/server-dart/examples/databases/create-url-attribute.md index 4cf3e99a727..62b6970b27b 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/create-url-attribute.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/create-url-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/create.md b/docs/examples/1.1.x/server-dart/examples/databases/create.md index cbaf3b742d0..390baabb610 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/create.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/delete-attribute.md b/docs/examples/1.1.x/server-dart/examples/databases/delete-attribute.md index e9865bfe220..b52ba1f39de 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/delete-attribute.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/delete-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/delete-collection.md b/docs/examples/1.1.x/server-dart/examples/databases/delete-collection.md index 58869201153..8de343f8691 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/delete-collection.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/delete-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/delete-document.md b/docs/examples/1.1.x/server-dart/examples/databases/delete-document.md index 0d298f3b420..bcb4b7a2da1 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/delete-document.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/delete-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/delete-index.md b/docs/examples/1.1.x/server-dart/examples/databases/delete-index.md index be5b2a5c9f6..8422593fe55 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/delete-index.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/delete-index.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/delete.md b/docs/examples/1.1.x/server-dart/examples/databases/delete.md index ff19beea69a..bd4c483f014 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/delete.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/get-attribute.md b/docs/examples/1.1.x/server-dart/examples/databases/get-attribute.md index c27ddb648c5..e066f70d136 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/get-attribute.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/get-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/get-collection.md b/docs/examples/1.1.x/server-dart/examples/databases/get-collection.md index 359f0df829c..2678a1a5432 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/get-collection.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/get-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/get-document.md b/docs/examples/1.1.x/server-dart/examples/databases/get-document.md index 2141abf4bec..4c5beadccfe 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/get-document.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/get-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/get-index.md b/docs/examples/1.1.x/server-dart/examples/databases/get-index.md index 2b8a90318d5..9b881f7d788 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/get-index.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/get-index.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/get.md b/docs/examples/1.1.x/server-dart/examples/databases/get.md index f0cc118b960..7a2d9591013 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/get.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/list-attributes.md b/docs/examples/1.1.x/server-dart/examples/databases/list-attributes.md index 60ca58f3c32..1c9d635195d 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/list-attributes.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/list-attributes.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/list-collections.md b/docs/examples/1.1.x/server-dart/examples/databases/list-collections.md index a10038db119..cd120817dc8 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/list-collections.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/list-collections.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/list-documents.md b/docs/examples/1.1.x/server-dart/examples/databases/list-documents.md index 70299774fb6..41703ae26bc 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/list-documents.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/list-documents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/list-indexes.md b/docs/examples/1.1.x/server-dart/examples/databases/list-indexes.md index 6703ebf35a5..d959370fc6a 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/list-indexes.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/list-indexes.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/list.md b/docs/examples/1.1.x/server-dart/examples/databases/list.md index d9bd06ad34e..da25b576d7f 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/list.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/update-collection.md b/docs/examples/1.1.x/server-dart/examples/databases/update-collection.md index a5f32dead1b..4501459265b 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/update-collection.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/update-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/update-document.md b/docs/examples/1.1.x/server-dart/examples/databases/update-document.md index fb08413f2fd..4b34007c497 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/update-document.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/update-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/databases/update.md b/docs/examples/1.1.x/server-dart/examples/databases/update.md index 59070cefa92..7187605e819 100644 --- a/docs/examples/1.1.x/server-dart/examples/databases/update.md +++ b/docs/examples/1.1.x/server-dart/examples/databases/update.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/create-build.md b/docs/examples/1.1.x/server-dart/examples/functions/create-build.md index 530ba6deab7..eea5cc14c0b 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/create-build.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/create-build.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/create-deployment.md b/docs/examples/1.1.x/server-dart/examples/functions/create-deployment.md index d646680db84..17683d2c863 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/create-deployment.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/create-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/create-execution.md b/docs/examples/1.1.x/server-dart/examples/functions/create-execution.md index f5de49f7cf7..610579eef0c 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/create-execution.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/create-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/create-variable.md b/docs/examples/1.1.x/server-dart/examples/functions/create-variable.md index 50cd063ca13..2990bf98be1 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/create-variable.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/create-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/create.md b/docs/examples/1.1.x/server-dart/examples/functions/create.md index 923654d10a8..16a5215d7c2 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/create.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/delete-deployment.md b/docs/examples/1.1.x/server-dart/examples/functions/delete-deployment.md index e65380c5012..339c0d60ce4 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/delete-deployment.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/delete-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/delete-variable.md b/docs/examples/1.1.x/server-dart/examples/functions/delete-variable.md index 87c7f407b56..ad86ec73cba 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/delete-variable.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/delete-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/delete.md b/docs/examples/1.1.x/server-dart/examples/functions/delete.md index 51633669120..276f7effa20 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/delete.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/get-deployment.md b/docs/examples/1.1.x/server-dart/examples/functions/get-deployment.md index 9cab571e94d..f46260a2ff5 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/get-deployment.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/get-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/get-execution.md b/docs/examples/1.1.x/server-dart/examples/functions/get-execution.md index 6cadde64262..6749539306b 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/get-execution.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/get-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/get-variable.md b/docs/examples/1.1.x/server-dart/examples/functions/get-variable.md index 924bee2bffc..7223c5add9c 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/get-variable.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/get-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/get.md b/docs/examples/1.1.x/server-dart/examples/functions/get.md index 503ab207091..1073d33b1a2 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/get.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/list-deployments.md b/docs/examples/1.1.x/server-dart/examples/functions/list-deployments.md index b12f9eba87e..d1b80ddd956 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/list-deployments.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/list-deployments.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/list-executions.md b/docs/examples/1.1.x/server-dart/examples/functions/list-executions.md index 3d66a4496ac..255f38a299d 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/list-executions.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/list-executions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/list-runtimes.md b/docs/examples/1.1.x/server-dart/examples/functions/list-runtimes.md index 091a1116f70..a91a501814f 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/list-runtimes.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/list-runtimes.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/list-variables.md b/docs/examples/1.1.x/server-dart/examples/functions/list-variables.md index f3c6655b141..ea5e4779873 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/list-variables.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/list-variables.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/list.md b/docs/examples/1.1.x/server-dart/examples/functions/list.md index 4f2b11404d7..e5fde72144c 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/list.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/update-deployment.md b/docs/examples/1.1.x/server-dart/examples/functions/update-deployment.md index d503aecb3b4..cd9a57018a0 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/update-deployment.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/update-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/update-variable.md b/docs/examples/1.1.x/server-dart/examples/functions/update-variable.md index 126d2644701..d40a831970b 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/update-variable.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/update-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/functions/update.md b/docs/examples/1.1.x/server-dart/examples/functions/update.md index 4a1b0f9b4d1..973279f5f24 100644 --- a/docs/examples/1.1.x/server-dart/examples/functions/update.md +++ b/docs/examples/1.1.x/server-dart/examples/functions/update.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/health/get-antivirus.md b/docs/examples/1.1.x/server-dart/examples/health/get-antivirus.md index 922dcfa1368..7b8d638d8e1 100644 --- a/docs/examples/1.1.x/server-dart/examples/health/get-antivirus.md +++ b/docs/examples/1.1.x/server-dart/examples/health/get-antivirus.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/health/get-cache.md b/docs/examples/1.1.x/server-dart/examples/health/get-cache.md index 4b63edeee3a..08ea1370d16 100644 --- a/docs/examples/1.1.x/server-dart/examples/health/get-cache.md +++ b/docs/examples/1.1.x/server-dart/examples/health/get-cache.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/health/get-d-b.md b/docs/examples/1.1.x/server-dart/examples/health/get-d-b.md index 65188c096e5..30cf5c928f5 100644 --- a/docs/examples/1.1.x/server-dart/examples/health/get-d-b.md +++ b/docs/examples/1.1.x/server-dart/examples/health/get-d-b.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/health/get-queue-certificates.md b/docs/examples/1.1.x/server-dart/examples/health/get-queue-certificates.md index 4063ab35141..884c6b31f16 100644 --- a/docs/examples/1.1.x/server-dart/examples/health/get-queue-certificates.md +++ b/docs/examples/1.1.x/server-dart/examples/health/get-queue-certificates.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/health/get-queue-functions.md b/docs/examples/1.1.x/server-dart/examples/health/get-queue-functions.md index 5ebaad64848..048fce8d326 100644 --- a/docs/examples/1.1.x/server-dart/examples/health/get-queue-functions.md +++ b/docs/examples/1.1.x/server-dart/examples/health/get-queue-functions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/health/get-queue-logs.md b/docs/examples/1.1.x/server-dart/examples/health/get-queue-logs.md index 11a5285439a..42195528570 100644 --- a/docs/examples/1.1.x/server-dart/examples/health/get-queue-logs.md +++ b/docs/examples/1.1.x/server-dart/examples/health/get-queue-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/health/get-queue-webhooks.md b/docs/examples/1.1.x/server-dart/examples/health/get-queue-webhooks.md index a43f5f8423c..5b012125e1f 100644 --- a/docs/examples/1.1.x/server-dart/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.1.x/server-dart/examples/health/get-queue-webhooks.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/health/get-storage-local.md b/docs/examples/1.1.x/server-dart/examples/health/get-storage-local.md index 4a586690fee..e85aac8e012 100644 --- a/docs/examples/1.1.x/server-dart/examples/health/get-storage-local.md +++ b/docs/examples/1.1.x/server-dart/examples/health/get-storage-local.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/health/get-time.md b/docs/examples/1.1.x/server-dart/examples/health/get-time.md index d8166dd3d16..716216e6db3 100644 --- a/docs/examples/1.1.x/server-dart/examples/health/get-time.md +++ b/docs/examples/1.1.x/server-dart/examples/health/get-time.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/health/get.md b/docs/examples/1.1.x/server-dart/examples/health/get.md index 1be37e5a934..2ea2ea669ea 100644 --- a/docs/examples/1.1.x/server-dart/examples/health/get.md +++ b/docs/examples/1.1.x/server-dart/examples/health/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/locale/get.md b/docs/examples/1.1.x/server-dart/examples/locale/get.md index 9ecb18c52d6..a3ebf5cefde 100644 --- a/docs/examples/1.1.x/server-dart/examples/locale/get.md +++ b/docs/examples/1.1.x/server-dart/examples/locale/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/locale/list-continents.md b/docs/examples/1.1.x/server-dart/examples/locale/list-continents.md index e6849303b1b..a74df54886b 100644 --- a/docs/examples/1.1.x/server-dart/examples/locale/list-continents.md +++ b/docs/examples/1.1.x/server-dart/examples/locale/list-continents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/locale/list-countries-e-u.md b/docs/examples/1.1.x/server-dart/examples/locale/list-countries-e-u.md index 2d1ddcf8f09..2a81d9afef2 100644 --- a/docs/examples/1.1.x/server-dart/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.1.x/server-dart/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/locale/list-countries-phones.md b/docs/examples/1.1.x/server-dart/examples/locale/list-countries-phones.md index 23057013393..2d1400a9604 100644 --- a/docs/examples/1.1.x/server-dart/examples/locale/list-countries-phones.md +++ b/docs/examples/1.1.x/server-dart/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/locale/list-countries.md b/docs/examples/1.1.x/server-dart/examples/locale/list-countries.md index ef1158339ff..b4d00e52e7b 100644 --- a/docs/examples/1.1.x/server-dart/examples/locale/list-countries.md +++ b/docs/examples/1.1.x/server-dart/examples/locale/list-countries.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/locale/list-currencies.md b/docs/examples/1.1.x/server-dart/examples/locale/list-currencies.md index 0810f3dafb2..2c46eee2b2e 100644 --- a/docs/examples/1.1.x/server-dart/examples/locale/list-currencies.md +++ b/docs/examples/1.1.x/server-dart/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/locale/list-languages.md b/docs/examples/1.1.x/server-dart/examples/locale/list-languages.md index f3d642cc480..6d1f00219e2 100644 --- a/docs/examples/1.1.x/server-dart/examples/locale/list-languages.md +++ b/docs/examples/1.1.x/server-dart/examples/locale/list-languages.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/storage/create-bucket.md b/docs/examples/1.1.x/server-dart/examples/storage/create-bucket.md index 745a6b508d4..647d846e06a 100644 --- a/docs/examples/1.1.x/server-dart/examples/storage/create-bucket.md +++ b/docs/examples/1.1.x/server-dart/examples/storage/create-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/storage/create-file.md b/docs/examples/1.1.x/server-dart/examples/storage/create-file.md index ab4c661a541..760c95dcfb1 100644 --- a/docs/examples/1.1.x/server-dart/examples/storage/create-file.md +++ b/docs/examples/1.1.x/server-dart/examples/storage/create-file.md @@ -6,7 +6,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/storage/delete-bucket.md b/docs/examples/1.1.x/server-dart/examples/storage/delete-bucket.md index de516561bdb..a7c7065ba86 100644 --- a/docs/examples/1.1.x/server-dart/examples/storage/delete-bucket.md +++ b/docs/examples/1.1.x/server-dart/examples/storage/delete-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/storage/delete-file.md b/docs/examples/1.1.x/server-dart/examples/storage/delete-file.md index 8e4460bb009..ddb297c6b7a 100644 --- a/docs/examples/1.1.x/server-dart/examples/storage/delete-file.md +++ b/docs/examples/1.1.x/server-dart/examples/storage/delete-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/storage/get-bucket.md b/docs/examples/1.1.x/server-dart/examples/storage/get-bucket.md index 9e39076e355..26fec00cdf4 100644 --- a/docs/examples/1.1.x/server-dart/examples/storage/get-bucket.md +++ b/docs/examples/1.1.x/server-dart/examples/storage/get-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/storage/get-file-download.md b/docs/examples/1.1.x/server-dart/examples/storage/get-file-download.md index 6534fe33fff..632612a285e 100644 --- a/docs/examples/1.1.x/server-dart/examples/storage/get-file-download.md +++ b/docs/examples/1.1.x/server-dart/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/storage/get-file-preview.md b/docs/examples/1.1.x/server-dart/examples/storage/get-file-preview.md index ca16d635b26..70f55e3e267 100644 --- a/docs/examples/1.1.x/server-dart/examples/storage/get-file-preview.md +++ b/docs/examples/1.1.x/server-dart/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/storage/get-file-view.md b/docs/examples/1.1.x/server-dart/examples/storage/get-file-view.md index 5c3d69dcbc6..59176877b02 100644 --- a/docs/examples/1.1.x/server-dart/examples/storage/get-file-view.md +++ b/docs/examples/1.1.x/server-dart/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/storage/get-file.md b/docs/examples/1.1.x/server-dart/examples/storage/get-file.md index bc45c3f1e83..024b7fc63d3 100644 --- a/docs/examples/1.1.x/server-dart/examples/storage/get-file.md +++ b/docs/examples/1.1.x/server-dart/examples/storage/get-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/storage/list-buckets.md b/docs/examples/1.1.x/server-dart/examples/storage/list-buckets.md index 6a35febb390..fb46523303b 100644 --- a/docs/examples/1.1.x/server-dart/examples/storage/list-buckets.md +++ b/docs/examples/1.1.x/server-dart/examples/storage/list-buckets.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/storage/list-files.md b/docs/examples/1.1.x/server-dart/examples/storage/list-files.md index 40b8d3bce5e..bfafeb0b0a0 100644 --- a/docs/examples/1.1.x/server-dart/examples/storage/list-files.md +++ b/docs/examples/1.1.x/server-dart/examples/storage/list-files.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/storage/update-bucket.md b/docs/examples/1.1.x/server-dart/examples/storage/update-bucket.md index 064d2f2e37a..3bdc11240ff 100644 --- a/docs/examples/1.1.x/server-dart/examples/storage/update-bucket.md +++ b/docs/examples/1.1.x/server-dart/examples/storage/update-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/storage/update-file.md b/docs/examples/1.1.x/server-dart/examples/storage/update-file.md index 2fa999a5583..4e0178e27da 100644 --- a/docs/examples/1.1.x/server-dart/examples/storage/update-file.md +++ b/docs/examples/1.1.x/server-dart/examples/storage/update-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/teams/create-membership.md b/docs/examples/1.1.x/server-dart/examples/teams/create-membership.md index 16d875de28e..f2816321416 100644 --- a/docs/examples/1.1.x/server-dart/examples/teams/create-membership.md +++ b/docs/examples/1.1.x/server-dart/examples/teams/create-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/teams/create.md b/docs/examples/1.1.x/server-dart/examples/teams/create.md index 74895b23a0f..81c3a718d4b 100644 --- a/docs/examples/1.1.x/server-dart/examples/teams/create.md +++ b/docs/examples/1.1.x/server-dart/examples/teams/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/teams/delete-membership.md b/docs/examples/1.1.x/server-dart/examples/teams/delete-membership.md index 8c135994d67..07d596a1b3b 100644 --- a/docs/examples/1.1.x/server-dart/examples/teams/delete-membership.md +++ b/docs/examples/1.1.x/server-dart/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/teams/delete.md b/docs/examples/1.1.x/server-dart/examples/teams/delete.md index a5fee4d0841..2505cdfacda 100644 --- a/docs/examples/1.1.x/server-dart/examples/teams/delete.md +++ b/docs/examples/1.1.x/server-dart/examples/teams/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/teams/get-membership.md b/docs/examples/1.1.x/server-dart/examples/teams/get-membership.md index 4193b245f41..cf9d4b80a23 100644 --- a/docs/examples/1.1.x/server-dart/examples/teams/get-membership.md +++ b/docs/examples/1.1.x/server-dart/examples/teams/get-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/teams/get.md b/docs/examples/1.1.x/server-dart/examples/teams/get.md index daa67c4eb82..8dd731b1bec 100644 --- a/docs/examples/1.1.x/server-dart/examples/teams/get.md +++ b/docs/examples/1.1.x/server-dart/examples/teams/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/teams/list-memberships.md b/docs/examples/1.1.x/server-dart/examples/teams/list-memberships.md index 74c66c03190..71cdf466ccf 100644 --- a/docs/examples/1.1.x/server-dart/examples/teams/list-memberships.md +++ b/docs/examples/1.1.x/server-dart/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/teams/list.md b/docs/examples/1.1.x/server-dart/examples/teams/list.md index 11033f33da8..7d5e4ebef77 100644 --- a/docs/examples/1.1.x/server-dart/examples/teams/list.md +++ b/docs/examples/1.1.x/server-dart/examples/teams/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/teams/update-membership-roles.md b/docs/examples/1.1.x/server-dart/examples/teams/update-membership-roles.md index dcbef5c9484..8ede36ac641 100644 --- a/docs/examples/1.1.x/server-dart/examples/teams/update-membership-roles.md +++ b/docs/examples/1.1.x/server-dart/examples/teams/update-membership-roles.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/teams/update-membership-status.md b/docs/examples/1.1.x/server-dart/examples/teams/update-membership-status.md index ca704e0fdba..50f9693bf94 100644 --- a/docs/examples/1.1.x/server-dart/examples/teams/update-membership-status.md +++ b/docs/examples/1.1.x/server-dart/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-dart/examples/teams/update.md b/docs/examples/1.1.x/server-dart/examples/teams/update.md index 67892475abc..ce259401736 100644 --- a/docs/examples/1.1.x/server-dart/examples/teams/update.md +++ b/docs/examples/1.1.x/server-dart/examples/teams/update.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/create-argon2user.md b/docs/examples/1.1.x/server-dart/examples/users/create-argon2user.md index a40b3afd55a..d01e8c6931e 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/create-argon2user.md +++ b/docs/examples/1.1.x/server-dart/examples/users/create-argon2user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/create-bcrypt-user.md b/docs/examples/1.1.x/server-dart/examples/users/create-bcrypt-user.md index 8b55d656b08..4685780b257 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.1.x/server-dart/examples/users/create-bcrypt-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/create-m-d5user.md b/docs/examples/1.1.x/server-dart/examples/users/create-m-d5user.md index 3ab8901f3ce..20ac1948e75 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/create-m-d5user.md +++ b/docs/examples/1.1.x/server-dart/examples/users/create-m-d5user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/create-p-h-pass-user.md b/docs/examples/1.1.x/server-dart/examples/users/create-p-h-pass-user.md index bedb44f4c27..0294339d647 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.1.x/server-dart/examples/users/create-p-h-pass-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/create-s-h-a-user.md b/docs/examples/1.1.x/server-dart/examples/users/create-s-h-a-user.md index 361f309a37a..21c4461cdcb 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.1.x/server-dart/examples/users/create-s-h-a-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/create-scrypt-modified-user.md b/docs/examples/1.1.x/server-dart/examples/users/create-scrypt-modified-user.md index fa5b80519e5..9d95641d761 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.1.x/server-dart/examples/users/create-scrypt-modified-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/create-scrypt-user.md b/docs/examples/1.1.x/server-dart/examples/users/create-scrypt-user.md index 91e1f7dc6d2..0a586407dc2 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/create-scrypt-user.md +++ b/docs/examples/1.1.x/server-dart/examples/users/create-scrypt-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/create.md b/docs/examples/1.1.x/server-dart/examples/users/create.md index 517cd22fcb0..a841df0e272 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/create.md +++ b/docs/examples/1.1.x/server-dart/examples/users/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/delete-session.md b/docs/examples/1.1.x/server-dart/examples/users/delete-session.md index 3f7611873ec..f1432677ed1 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/delete-session.md +++ b/docs/examples/1.1.x/server-dart/examples/users/delete-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/delete-sessions.md b/docs/examples/1.1.x/server-dart/examples/users/delete-sessions.md index 69cbc5e8d51..82a71188ce6 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/delete-sessions.md +++ b/docs/examples/1.1.x/server-dart/examples/users/delete-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/delete.md b/docs/examples/1.1.x/server-dart/examples/users/delete.md index 1e1311d5d94..351686fe588 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/delete.md +++ b/docs/examples/1.1.x/server-dart/examples/users/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/get-prefs.md b/docs/examples/1.1.x/server-dart/examples/users/get-prefs.md index eb33ae656c5..cff91fa59b5 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/get-prefs.md +++ b/docs/examples/1.1.x/server-dart/examples/users/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/get.md b/docs/examples/1.1.x/server-dart/examples/users/get.md index c56852934cf..e2a24afd9a0 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/get.md +++ b/docs/examples/1.1.x/server-dart/examples/users/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/list-logs.md b/docs/examples/1.1.x/server-dart/examples/users/list-logs.md index 0d2143ad487..44a5e13ea45 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/list-logs.md +++ b/docs/examples/1.1.x/server-dart/examples/users/list-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/list-memberships.md b/docs/examples/1.1.x/server-dart/examples/users/list-memberships.md index 36a83edec0e..398e7ceee81 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/list-memberships.md +++ b/docs/examples/1.1.x/server-dart/examples/users/list-memberships.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/list-sessions.md b/docs/examples/1.1.x/server-dart/examples/users/list-sessions.md index 5f77fdbfa7f..eeac7b8d4bc 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/list-sessions.md +++ b/docs/examples/1.1.x/server-dart/examples/users/list-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/list.md b/docs/examples/1.1.x/server-dart/examples/users/list.md index 34498c00ac1..ef91b2db4a7 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/list.md +++ b/docs/examples/1.1.x/server-dart/examples/users/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/update-email-verification.md b/docs/examples/1.1.x/server-dart/examples/users/update-email-verification.md index 8853f86529d..7de13257446 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/update-email-verification.md +++ b/docs/examples/1.1.x/server-dart/examples/users/update-email-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/update-email.md b/docs/examples/1.1.x/server-dart/examples/users/update-email.md index 8813e1101f5..589bf93d315 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/update-email.md +++ b/docs/examples/1.1.x/server-dart/examples/users/update-email.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/update-name.md b/docs/examples/1.1.x/server-dart/examples/users/update-name.md index 56797d585cd..a3a0c84bbbd 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/update-name.md +++ b/docs/examples/1.1.x/server-dart/examples/users/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/update-password.md b/docs/examples/1.1.x/server-dart/examples/users/update-password.md index ce2a4c7dd50..13fcef65860 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/update-password.md +++ b/docs/examples/1.1.x/server-dart/examples/users/update-password.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/update-phone-verification.md b/docs/examples/1.1.x/server-dart/examples/users/update-phone-verification.md index 37c3ced6084..0ef13f5b037 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/update-phone-verification.md +++ b/docs/examples/1.1.x/server-dart/examples/users/update-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/update-phone.md b/docs/examples/1.1.x/server-dart/examples/users/update-phone.md index 4d5e3110786..f512af071e4 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/update-phone.md +++ b/docs/examples/1.1.x/server-dart/examples/users/update-phone.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/update-prefs.md b/docs/examples/1.1.x/server-dart/examples/users/update-prefs.md index c6c1bbedffb..a2f0aea8fec 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/update-prefs.md +++ b/docs/examples/1.1.x/server-dart/examples/users/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-dart/examples/users/update-status.md b/docs/examples/1.1.x/server-dart/examples/users/update-status.md index 6f80745a7af..32fa9019eb1 100644 --- a/docs/examples/1.1.x/server-dart/examples/users/update-status.md +++ b/docs/examples/1.1.x/server-dart/examples/users/update-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/create-phone-verification.md b/docs/examples/1.1.x/server-deno/examples/account/create-phone-verification.md index fe765887cca..aa9969c9a04 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/create-phone-verification.md +++ b/docs/examples/1.1.x/server-deno/examples/account/create-phone-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/create-recovery.md b/docs/examples/1.1.x/server-deno/examples/account/create-recovery.md index e5adb2a78bb..ca4ef258105 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/create-recovery.md +++ b/docs/examples/1.1.x/server-deno/examples/account/create-recovery.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/create-verification.md b/docs/examples/1.1.x/server-deno/examples/account/create-verification.md index 5861278e70b..89810ec730e 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/create-verification.md +++ b/docs/examples/1.1.x/server-deno/examples/account/create-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/delete-session.md b/docs/examples/1.1.x/server-deno/examples/account/delete-session.md index 22417acb98c..969445ca5ee 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/delete-session.md +++ b/docs/examples/1.1.x/server-deno/examples/account/delete-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/delete-sessions.md b/docs/examples/1.1.x/server-deno/examples/account/delete-sessions.md index 2a82bd95668..ad5dcb1200f 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/delete-sessions.md +++ b/docs/examples/1.1.x/server-deno/examples/account/delete-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/get-prefs.md b/docs/examples/1.1.x/server-deno/examples/account/get-prefs.md index c9645d0fe1d..4b413ec3689 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/get-prefs.md +++ b/docs/examples/1.1.x/server-deno/examples/account/get-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/get-session.md b/docs/examples/1.1.x/server-deno/examples/account/get-session.md index f2c1c944699..b39704a72f3 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/get-session.md +++ b/docs/examples/1.1.x/server-deno/examples/account/get-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/get.md b/docs/examples/1.1.x/server-deno/examples/account/get.md index 03b22307ac0..d3a7a9b8e3a 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/get.md +++ b/docs/examples/1.1.x/server-deno/examples/account/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/list-logs.md b/docs/examples/1.1.x/server-deno/examples/account/list-logs.md index fb793041013..4609c8e3b60 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/list-logs.md +++ b/docs/examples/1.1.x/server-deno/examples/account/list-logs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/list-sessions.md b/docs/examples/1.1.x/server-deno/examples/account/list-sessions.md index 32a7cfa09a4..498590452fd 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/list-sessions.md +++ b/docs/examples/1.1.x/server-deno/examples/account/list-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/update-email.md b/docs/examples/1.1.x/server-deno/examples/account/update-email.md index 26906d7eed3..c92ca4dc234 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/update-email.md +++ b/docs/examples/1.1.x/server-deno/examples/account/update-email.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/update-name.md b/docs/examples/1.1.x/server-deno/examples/account/update-name.md index b1a351216fd..2e52634e212 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/update-name.md +++ b/docs/examples/1.1.x/server-deno/examples/account/update-name.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/update-password.md b/docs/examples/1.1.x/server-deno/examples/account/update-password.md index 13e9d7c4797..26114e0c8eb 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/update-password.md +++ b/docs/examples/1.1.x/server-deno/examples/account/update-password.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/update-phone-verification.md b/docs/examples/1.1.x/server-deno/examples/account/update-phone-verification.md index 064252a328a..a7b6e4670d4 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/update-phone-verification.md +++ b/docs/examples/1.1.x/server-deno/examples/account/update-phone-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/update-phone.md b/docs/examples/1.1.x/server-deno/examples/account/update-phone.md index e023424f9e6..0d1bfcc93a4 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/update-phone.md +++ b/docs/examples/1.1.x/server-deno/examples/account/update-phone.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/update-prefs.md b/docs/examples/1.1.x/server-deno/examples/account/update-prefs.md index 4a6ca88ae8a..472f53dd47e 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/update-prefs.md +++ b/docs/examples/1.1.x/server-deno/examples/account/update-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/update-recovery.md b/docs/examples/1.1.x/server-deno/examples/account/update-recovery.md index 06916bb2783..ee1546f1316 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/update-recovery.md +++ b/docs/examples/1.1.x/server-deno/examples/account/update-recovery.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/update-session.md b/docs/examples/1.1.x/server-deno/examples/account/update-session.md index 23a7ad2cf6c..310a7137450 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/update-session.md +++ b/docs/examples/1.1.x/server-deno/examples/account/update-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/update-status.md b/docs/examples/1.1.x/server-deno/examples/account/update-status.md index 6b9b18981bd..40c921be3ed 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/update-status.md +++ b/docs/examples/1.1.x/server-deno/examples/account/update-status.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/account/update-verification.md b/docs/examples/1.1.x/server-deno/examples/account/update-verification.md index c11f2b71c17..db4febb20f7 100644 --- a/docs/examples/1.1.x/server-deno/examples/account/update-verification.md +++ b/docs/examples/1.1.x/server-deno/examples/account/update-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/avatars/get-browser.md b/docs/examples/1.1.x/server-deno/examples/avatars/get-browser.md index 44c946e4d7e..317dc753313 100644 --- a/docs/examples/1.1.x/server-deno/examples/avatars/get-browser.md +++ b/docs/examples/1.1.x/server-deno/examples/avatars/get-browser.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/avatars/get-credit-card.md b/docs/examples/1.1.x/server-deno/examples/avatars/get-credit-card.md index 0f449827382..584c580559a 100644 --- a/docs/examples/1.1.x/server-deno/examples/avatars/get-credit-card.md +++ b/docs/examples/1.1.x/server-deno/examples/avatars/get-credit-card.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/avatars/get-favicon.md b/docs/examples/1.1.x/server-deno/examples/avatars/get-favicon.md index f0a539b5fc5..d387cc2b7e7 100644 --- a/docs/examples/1.1.x/server-deno/examples/avatars/get-favicon.md +++ b/docs/examples/1.1.x/server-deno/examples/avatars/get-favicon.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/avatars/get-flag.md b/docs/examples/1.1.x/server-deno/examples/avatars/get-flag.md index c7593aee1e8..03fa737ef2a 100644 --- a/docs/examples/1.1.x/server-deno/examples/avatars/get-flag.md +++ b/docs/examples/1.1.x/server-deno/examples/avatars/get-flag.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/avatars/get-image.md b/docs/examples/1.1.x/server-deno/examples/avatars/get-image.md index 6e86307a5fc..7dd33398b63 100644 --- a/docs/examples/1.1.x/server-deno/examples/avatars/get-image.md +++ b/docs/examples/1.1.x/server-deno/examples/avatars/get-image.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/avatars/get-initials.md b/docs/examples/1.1.x/server-deno/examples/avatars/get-initials.md index 2adba9e971e..4054ecee995 100644 --- a/docs/examples/1.1.x/server-deno/examples/avatars/get-initials.md +++ b/docs/examples/1.1.x/server-deno/examples/avatars/get-initials.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/avatars/get-q-r.md b/docs/examples/1.1.x/server-deno/examples/avatars/get-q-r.md index 2c5faf01122..f239919e05e 100644 --- a/docs/examples/1.1.x/server-deno/examples/avatars/get-q-r.md +++ b/docs/examples/1.1.x/server-deno/examples/avatars/get-q-r.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/create-boolean-attribute.md b/docs/examples/1.1.x/server-deno/examples/databases/create-boolean-attribute.md index 81b66771ff5..3a06b123a0e 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/create-boolean-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/create-collection.md b/docs/examples/1.1.x/server-deno/examples/databases/create-collection.md index 5d59286e3ca..c65a13e2373 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/create-collection.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/create-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/create-datetime-attribute.md b/docs/examples/1.1.x/server-deno/examples/databases/create-datetime-attribute.md index c2c4eb81852..ee4fdb92532 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/create-datetime-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/create-document.md b/docs/examples/1.1.x/server-deno/examples/databases/create-document.md index d38818c164f..b746f3d3f31 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/create-document.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/create-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/create-email-attribute.md b/docs/examples/1.1.x/server-deno/examples/databases/create-email-attribute.md index 4952625bfcc..918ed10cbcb 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/create-email-attribute.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/create-email-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/create-enum-attribute.md b/docs/examples/1.1.x/server-deno/examples/databases/create-enum-attribute.md index d00274d616a..79cca97c506 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/create-enum-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/create-float-attribute.md b/docs/examples/1.1.x/server-deno/examples/databases/create-float-attribute.md index c2b056fd1ba..a61df747b35 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/create-float-attribute.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/create-float-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/create-index.md b/docs/examples/1.1.x/server-deno/examples/databases/create-index.md index bfde8e3fb56..0d238068aa5 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/create-index.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/create-index.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/create-integer-attribute.md b/docs/examples/1.1.x/server-deno/examples/databases/create-integer-attribute.md index 2a36f413e5e..fec9ed6835b 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/create-integer-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/create-ip-attribute.md b/docs/examples/1.1.x/server-deno/examples/databases/create-ip-attribute.md index 19180d6ac0e..858450d499b 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/create-ip-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/create-string-attribute.md b/docs/examples/1.1.x/server-deno/examples/databases/create-string-attribute.md index f3b0a369234..82383ccc76c 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/create-string-attribute.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/create-string-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/create-url-attribute.md b/docs/examples/1.1.x/server-deno/examples/databases/create-url-attribute.md index 488751adff1..f556724dcaa 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/create-url-attribute.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/create-url-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/create.md b/docs/examples/1.1.x/server-deno/examples/databases/create.md index ea1ebb6460e..d8747a01aed 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/create.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/delete-attribute.md b/docs/examples/1.1.x/server-deno/examples/databases/delete-attribute.md index e6fe0823f26..fd3fca65ef7 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/delete-attribute.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/delete-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/delete-collection.md b/docs/examples/1.1.x/server-deno/examples/databases/delete-collection.md index 970602ac286..5f0599b7ec6 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/delete-collection.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/delete-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/delete-document.md b/docs/examples/1.1.x/server-deno/examples/databases/delete-document.md index 1a23e03e273..7c1ed710f40 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/delete-document.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/delete-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/delete-index.md b/docs/examples/1.1.x/server-deno/examples/databases/delete-index.md index 8a6050522a8..c25eb4a7fce 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/delete-index.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/delete-index.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/delete.md b/docs/examples/1.1.x/server-deno/examples/databases/delete.md index b735eccdbed..817dcd0dd00 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/delete.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/get-attribute.md b/docs/examples/1.1.x/server-deno/examples/databases/get-attribute.md index 1ec9957b5eb..cf5aa9ca1e2 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/get-attribute.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/get-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/get-collection.md b/docs/examples/1.1.x/server-deno/examples/databases/get-collection.md index bf471e3b36e..8973f9e8aa7 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/get-collection.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/get-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/get-document.md b/docs/examples/1.1.x/server-deno/examples/databases/get-document.md index a7248d0641d..e02b9c8f4b0 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/get-document.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/get-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/get-index.md b/docs/examples/1.1.x/server-deno/examples/databases/get-index.md index c1fe00cb65e..443b06883c5 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/get-index.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/get-index.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/get.md b/docs/examples/1.1.x/server-deno/examples/databases/get.md index 46df3aad225..a8ea62a5520 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/get.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/list-attributes.md b/docs/examples/1.1.x/server-deno/examples/databases/list-attributes.md index f2b21141b3d..7ee93a5ac09 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/list-attributes.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/list-attributes.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/list-collections.md b/docs/examples/1.1.x/server-deno/examples/databases/list-collections.md index 83e4ee951fd..7cdf106ab1c 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/list-collections.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/list-collections.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/list-documents.md b/docs/examples/1.1.x/server-deno/examples/databases/list-documents.md index c7db17efb5f..9c3cd7097e2 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/list-documents.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/list-documents.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/list-indexes.md b/docs/examples/1.1.x/server-deno/examples/databases/list-indexes.md index 69c412b99db..8fbba4a323b 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/list-indexes.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/list-indexes.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/list.md b/docs/examples/1.1.x/server-deno/examples/databases/list.md index 8bb75110ec8..84ec9927ac2 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/list.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/update-collection.md b/docs/examples/1.1.x/server-deno/examples/databases/update-collection.md index f81f46e7f48..234b4c68cf7 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/update-collection.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/update-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/update-document.md b/docs/examples/1.1.x/server-deno/examples/databases/update-document.md index 9964fdb6eb5..78c984aae41 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/update-document.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/update-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/databases/update.md b/docs/examples/1.1.x/server-deno/examples/databases/update.md index 64886a697bc..c60c2499730 100644 --- a/docs/examples/1.1.x/server-deno/examples/databases/update.md +++ b/docs/examples/1.1.x/server-deno/examples/databases/update.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/create-build.md b/docs/examples/1.1.x/server-deno/examples/functions/create-build.md index 28d10105e39..ffa1906b0a8 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/create-build.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/create-build.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/create-deployment.md b/docs/examples/1.1.x/server-deno/examples/functions/create-deployment.md index 005644b62e4..e663cf473a4 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/create-deployment.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/create-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/create-execution.md b/docs/examples/1.1.x/server-deno/examples/functions/create-execution.md index 6ec920ef9db..a24cc942b51 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/create-execution.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/create-execution.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/create-variable.md b/docs/examples/1.1.x/server-deno/examples/functions/create-variable.md index 375ef8b7a6c..6de4953eec8 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/create-variable.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/create-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/create.md b/docs/examples/1.1.x/server-deno/examples/functions/create.md index 423a347f512..0964bce1806 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/create.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/delete-deployment.md b/docs/examples/1.1.x/server-deno/examples/functions/delete-deployment.md index 7b6468bb064..b1f280fb13e 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/delete-deployment.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/delete-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/delete-variable.md b/docs/examples/1.1.x/server-deno/examples/functions/delete-variable.md index 16bf385a4c9..012f353540b 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/delete-variable.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/delete-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/delete.md b/docs/examples/1.1.x/server-deno/examples/functions/delete.md index 48ec374bf29..ac801878c81 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/delete.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/get-deployment.md b/docs/examples/1.1.x/server-deno/examples/functions/get-deployment.md index 854f3897d94..eef2d306ecb 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/get-deployment.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/get-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/get-execution.md b/docs/examples/1.1.x/server-deno/examples/functions/get-execution.md index 42bcdfbfdfe..cfb4ef09dcb 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/get-execution.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/get-execution.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/get-variable.md b/docs/examples/1.1.x/server-deno/examples/functions/get-variable.md index 2b4190e0a66..9881efcb033 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/get-variable.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/get-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/get.md b/docs/examples/1.1.x/server-deno/examples/functions/get.md index 388958232aa..f511f594524 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/get.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/list-deployments.md b/docs/examples/1.1.x/server-deno/examples/functions/list-deployments.md index e84bb9cc093..cdd0ae775a5 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/list-deployments.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/list-deployments.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/list-executions.md b/docs/examples/1.1.x/server-deno/examples/functions/list-executions.md index aadd19f1cee..fcc47f2dcda 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/list-executions.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/list-executions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/list-runtimes.md b/docs/examples/1.1.x/server-deno/examples/functions/list-runtimes.md index 6fc7570b3a6..b45ec8f2232 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/list-runtimes.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/list-runtimes.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/list-variables.md b/docs/examples/1.1.x/server-deno/examples/functions/list-variables.md index 44a9828a67a..f9f241fee3b 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/list-variables.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/list-variables.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/list.md b/docs/examples/1.1.x/server-deno/examples/functions/list.md index 7c82760a397..cadecd7fc18 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/list.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/update-deployment.md b/docs/examples/1.1.x/server-deno/examples/functions/update-deployment.md index 94be560a2d4..4d1bda63635 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/update-deployment.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/update-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/update-variable.md b/docs/examples/1.1.x/server-deno/examples/functions/update-variable.md index 1a318f1ebae..bcdde06c9a9 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/update-variable.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/update-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/functions/update.md b/docs/examples/1.1.x/server-deno/examples/functions/update.md index 84316f1de7c..4c527d89705 100644 --- a/docs/examples/1.1.x/server-deno/examples/functions/update.md +++ b/docs/examples/1.1.x/server-deno/examples/functions/update.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/health/get-antivirus.md b/docs/examples/1.1.x/server-deno/examples/health/get-antivirus.md index 8d51808536f..7bee35a1276 100644 --- a/docs/examples/1.1.x/server-deno/examples/health/get-antivirus.md +++ b/docs/examples/1.1.x/server-deno/examples/health/get-antivirus.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/health/get-cache.md b/docs/examples/1.1.x/server-deno/examples/health/get-cache.md index cafc3018c0c..12dfbb1b2d1 100644 --- a/docs/examples/1.1.x/server-deno/examples/health/get-cache.md +++ b/docs/examples/1.1.x/server-deno/examples/health/get-cache.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/health/get-d-b.md b/docs/examples/1.1.x/server-deno/examples/health/get-d-b.md index a000535051f..73ac2931fb8 100644 --- a/docs/examples/1.1.x/server-deno/examples/health/get-d-b.md +++ b/docs/examples/1.1.x/server-deno/examples/health/get-d-b.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/health/get-queue-certificates.md b/docs/examples/1.1.x/server-deno/examples/health/get-queue-certificates.md index 49dab6b2e6f..ea90355ec9f 100644 --- a/docs/examples/1.1.x/server-deno/examples/health/get-queue-certificates.md +++ b/docs/examples/1.1.x/server-deno/examples/health/get-queue-certificates.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/health/get-queue-functions.md b/docs/examples/1.1.x/server-deno/examples/health/get-queue-functions.md index 74f458b9fed..e95a6020595 100644 --- a/docs/examples/1.1.x/server-deno/examples/health/get-queue-functions.md +++ b/docs/examples/1.1.x/server-deno/examples/health/get-queue-functions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/health/get-queue-logs.md b/docs/examples/1.1.x/server-deno/examples/health/get-queue-logs.md index 98948b9de6f..457c2689eca 100644 --- a/docs/examples/1.1.x/server-deno/examples/health/get-queue-logs.md +++ b/docs/examples/1.1.x/server-deno/examples/health/get-queue-logs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/health/get-queue-webhooks.md b/docs/examples/1.1.x/server-deno/examples/health/get-queue-webhooks.md index 7b45c189ccd..87af736da84 100644 --- a/docs/examples/1.1.x/server-deno/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.1.x/server-deno/examples/health/get-queue-webhooks.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/health/get-storage-local.md b/docs/examples/1.1.x/server-deno/examples/health/get-storage-local.md index 4c45d89acae..31f708e88a1 100644 --- a/docs/examples/1.1.x/server-deno/examples/health/get-storage-local.md +++ b/docs/examples/1.1.x/server-deno/examples/health/get-storage-local.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/health/get-time.md b/docs/examples/1.1.x/server-deno/examples/health/get-time.md index 6a66a10a053..69c73045a95 100644 --- a/docs/examples/1.1.x/server-deno/examples/health/get-time.md +++ b/docs/examples/1.1.x/server-deno/examples/health/get-time.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/health/get.md b/docs/examples/1.1.x/server-deno/examples/health/get.md index 0b9af9dd15b..6afe71a3152 100644 --- a/docs/examples/1.1.x/server-deno/examples/health/get.md +++ b/docs/examples/1.1.x/server-deno/examples/health/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/locale/get.md b/docs/examples/1.1.x/server-deno/examples/locale/get.md index 22b9a626550..f9f015cfb94 100644 --- a/docs/examples/1.1.x/server-deno/examples/locale/get.md +++ b/docs/examples/1.1.x/server-deno/examples/locale/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/locale/list-continents.md b/docs/examples/1.1.x/server-deno/examples/locale/list-continents.md index bd69f43a614..dd42b1957f1 100644 --- a/docs/examples/1.1.x/server-deno/examples/locale/list-continents.md +++ b/docs/examples/1.1.x/server-deno/examples/locale/list-continents.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/locale/list-countries-e-u.md b/docs/examples/1.1.x/server-deno/examples/locale/list-countries-e-u.md index 3d3b7b492ac..597edd6f920 100644 --- a/docs/examples/1.1.x/server-deno/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.1.x/server-deno/examples/locale/list-countries-e-u.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/locale/list-countries-phones.md b/docs/examples/1.1.x/server-deno/examples/locale/list-countries-phones.md index bc9e1754ad2..f3e27aa1523 100644 --- a/docs/examples/1.1.x/server-deno/examples/locale/list-countries-phones.md +++ b/docs/examples/1.1.x/server-deno/examples/locale/list-countries-phones.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/locale/list-countries.md b/docs/examples/1.1.x/server-deno/examples/locale/list-countries.md index 0790270371b..3d65b3c71cf 100644 --- a/docs/examples/1.1.x/server-deno/examples/locale/list-countries.md +++ b/docs/examples/1.1.x/server-deno/examples/locale/list-countries.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/locale/list-currencies.md b/docs/examples/1.1.x/server-deno/examples/locale/list-currencies.md index e040312fefa..ae0fad6e0b4 100644 --- a/docs/examples/1.1.x/server-deno/examples/locale/list-currencies.md +++ b/docs/examples/1.1.x/server-deno/examples/locale/list-currencies.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/locale/list-languages.md b/docs/examples/1.1.x/server-deno/examples/locale/list-languages.md index be5af4d50ca..792a0e8a437 100644 --- a/docs/examples/1.1.x/server-deno/examples/locale/list-languages.md +++ b/docs/examples/1.1.x/server-deno/examples/locale/list-languages.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/storage/create-bucket.md b/docs/examples/1.1.x/server-deno/examples/storage/create-bucket.md index a25211a1c71..4a2460216bd 100644 --- a/docs/examples/1.1.x/server-deno/examples/storage/create-bucket.md +++ b/docs/examples/1.1.x/server-deno/examples/storage/create-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/storage/create-file.md b/docs/examples/1.1.x/server-deno/examples/storage/create-file.md index c0fe4930b97..e2b9edaa57b 100644 --- a/docs/examples/1.1.x/server-deno/examples/storage/create-file.md +++ b/docs/examples/1.1.x/server-deno/examples/storage/create-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/storage/delete-bucket.md b/docs/examples/1.1.x/server-deno/examples/storage/delete-bucket.md index d468428141d..f5c818046eb 100644 --- a/docs/examples/1.1.x/server-deno/examples/storage/delete-bucket.md +++ b/docs/examples/1.1.x/server-deno/examples/storage/delete-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/storage/delete-file.md b/docs/examples/1.1.x/server-deno/examples/storage/delete-file.md index e86da1763b4..61589ed878b 100644 --- a/docs/examples/1.1.x/server-deno/examples/storage/delete-file.md +++ b/docs/examples/1.1.x/server-deno/examples/storage/delete-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/storage/get-bucket.md b/docs/examples/1.1.x/server-deno/examples/storage/get-bucket.md index 35d22b941a8..34391b42c20 100644 --- a/docs/examples/1.1.x/server-deno/examples/storage/get-bucket.md +++ b/docs/examples/1.1.x/server-deno/examples/storage/get-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/storage/get-file-download.md b/docs/examples/1.1.x/server-deno/examples/storage/get-file-download.md index 206b860e258..9f2927e0546 100644 --- a/docs/examples/1.1.x/server-deno/examples/storage/get-file-download.md +++ b/docs/examples/1.1.x/server-deno/examples/storage/get-file-download.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/storage/get-file-preview.md b/docs/examples/1.1.x/server-deno/examples/storage/get-file-preview.md index 4815c6b40b0..903aa592708 100644 --- a/docs/examples/1.1.x/server-deno/examples/storage/get-file-preview.md +++ b/docs/examples/1.1.x/server-deno/examples/storage/get-file-preview.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/storage/get-file-view.md b/docs/examples/1.1.x/server-deno/examples/storage/get-file-view.md index 11ca8fdc6c1..27d20ab4a68 100644 --- a/docs/examples/1.1.x/server-deno/examples/storage/get-file-view.md +++ b/docs/examples/1.1.x/server-deno/examples/storage/get-file-view.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/storage/get-file.md b/docs/examples/1.1.x/server-deno/examples/storage/get-file.md index 04aa43a5b1b..c6ec55a1e66 100644 --- a/docs/examples/1.1.x/server-deno/examples/storage/get-file.md +++ b/docs/examples/1.1.x/server-deno/examples/storage/get-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/storage/list-buckets.md b/docs/examples/1.1.x/server-deno/examples/storage/list-buckets.md index 0c31feffe35..7cae11354fd 100644 --- a/docs/examples/1.1.x/server-deno/examples/storage/list-buckets.md +++ b/docs/examples/1.1.x/server-deno/examples/storage/list-buckets.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/storage/list-files.md b/docs/examples/1.1.x/server-deno/examples/storage/list-files.md index 00178aa874a..d5de10df59f 100644 --- a/docs/examples/1.1.x/server-deno/examples/storage/list-files.md +++ b/docs/examples/1.1.x/server-deno/examples/storage/list-files.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/storage/update-bucket.md b/docs/examples/1.1.x/server-deno/examples/storage/update-bucket.md index aca746145e4..d9c554bffe1 100644 --- a/docs/examples/1.1.x/server-deno/examples/storage/update-bucket.md +++ b/docs/examples/1.1.x/server-deno/examples/storage/update-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/storage/update-file.md b/docs/examples/1.1.x/server-deno/examples/storage/update-file.md index 79f31c3b030..a106b4b5052 100644 --- a/docs/examples/1.1.x/server-deno/examples/storage/update-file.md +++ b/docs/examples/1.1.x/server-deno/examples/storage/update-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/teams/create-membership.md b/docs/examples/1.1.x/server-deno/examples/teams/create-membership.md index e54377281e9..85762a26deb 100644 --- a/docs/examples/1.1.x/server-deno/examples/teams/create-membership.md +++ b/docs/examples/1.1.x/server-deno/examples/teams/create-membership.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/teams/create.md b/docs/examples/1.1.x/server-deno/examples/teams/create.md index 8272adb4d0d..b5ad42710cd 100644 --- a/docs/examples/1.1.x/server-deno/examples/teams/create.md +++ b/docs/examples/1.1.x/server-deno/examples/teams/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/teams/delete-membership.md b/docs/examples/1.1.x/server-deno/examples/teams/delete-membership.md index 402deb0b8a8..dd73e8ae870 100644 --- a/docs/examples/1.1.x/server-deno/examples/teams/delete-membership.md +++ b/docs/examples/1.1.x/server-deno/examples/teams/delete-membership.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/teams/delete.md b/docs/examples/1.1.x/server-deno/examples/teams/delete.md index 3b30934beab..5f859e0cfce 100644 --- a/docs/examples/1.1.x/server-deno/examples/teams/delete.md +++ b/docs/examples/1.1.x/server-deno/examples/teams/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/teams/get-membership.md b/docs/examples/1.1.x/server-deno/examples/teams/get-membership.md index 7d50599b67d..8289e1fbd40 100644 --- a/docs/examples/1.1.x/server-deno/examples/teams/get-membership.md +++ b/docs/examples/1.1.x/server-deno/examples/teams/get-membership.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/teams/get.md b/docs/examples/1.1.x/server-deno/examples/teams/get.md index 44ecdab949a..e18f9e580d4 100644 --- a/docs/examples/1.1.x/server-deno/examples/teams/get.md +++ b/docs/examples/1.1.x/server-deno/examples/teams/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/teams/list-memberships.md b/docs/examples/1.1.x/server-deno/examples/teams/list-memberships.md index 7d730021a6a..ca062ddb294 100644 --- a/docs/examples/1.1.x/server-deno/examples/teams/list-memberships.md +++ b/docs/examples/1.1.x/server-deno/examples/teams/list-memberships.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/teams/list.md b/docs/examples/1.1.x/server-deno/examples/teams/list.md index c45ffdc0666..a76660063de 100644 --- a/docs/examples/1.1.x/server-deno/examples/teams/list.md +++ b/docs/examples/1.1.x/server-deno/examples/teams/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/teams/update-membership-roles.md b/docs/examples/1.1.x/server-deno/examples/teams/update-membership-roles.md index 9f2dad98c6b..050f7dbbd79 100644 --- a/docs/examples/1.1.x/server-deno/examples/teams/update-membership-roles.md +++ b/docs/examples/1.1.x/server-deno/examples/teams/update-membership-roles.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/teams/update-membership-status.md b/docs/examples/1.1.x/server-deno/examples/teams/update-membership-status.md index 7bb57d8974e..2ac6332372b 100644 --- a/docs/examples/1.1.x/server-deno/examples/teams/update-membership-status.md +++ b/docs/examples/1.1.x/server-deno/examples/teams/update-membership-status.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-deno/examples/teams/update.md b/docs/examples/1.1.x/server-deno/examples/teams/update.md index b17708a9c48..590c6e4dcb4 100644 --- a/docs/examples/1.1.x/server-deno/examples/teams/update.md +++ b/docs/examples/1.1.x/server-deno/examples/teams/update.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/create-argon2user.md b/docs/examples/1.1.x/server-deno/examples/users/create-argon2user.md index e55b644b62c..c9d3e68bcda 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/create-argon2user.md +++ b/docs/examples/1.1.x/server-deno/examples/users/create-argon2user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/create-bcrypt-user.md b/docs/examples/1.1.x/server-deno/examples/users/create-bcrypt-user.md index 325fbe46d56..a3cc0ddc7dc 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.1.x/server-deno/examples/users/create-bcrypt-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/create-m-d5user.md b/docs/examples/1.1.x/server-deno/examples/users/create-m-d5user.md index 8892688594d..387fd97da01 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/create-m-d5user.md +++ b/docs/examples/1.1.x/server-deno/examples/users/create-m-d5user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/create-p-h-pass-user.md b/docs/examples/1.1.x/server-deno/examples/users/create-p-h-pass-user.md index d7a3428fd54..1e02fba5530 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.1.x/server-deno/examples/users/create-p-h-pass-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/create-s-h-a-user.md b/docs/examples/1.1.x/server-deno/examples/users/create-s-h-a-user.md index c3ade982efc..82cf7ea8a45 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.1.x/server-deno/examples/users/create-s-h-a-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/create-scrypt-modified-user.md b/docs/examples/1.1.x/server-deno/examples/users/create-scrypt-modified-user.md index 8039a970c22..d06e6d3128c 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.1.x/server-deno/examples/users/create-scrypt-modified-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/create-scrypt-user.md b/docs/examples/1.1.x/server-deno/examples/users/create-scrypt-user.md index 9889855e7c7..6f9656ce5e1 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/create-scrypt-user.md +++ b/docs/examples/1.1.x/server-deno/examples/users/create-scrypt-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/create.md b/docs/examples/1.1.x/server-deno/examples/users/create.md index c56f8d8f88d..1338a4e59fc 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/create.md +++ b/docs/examples/1.1.x/server-deno/examples/users/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/delete-session.md b/docs/examples/1.1.x/server-deno/examples/users/delete-session.md index e4ea45ba737..8d6e862bdb4 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/delete-session.md +++ b/docs/examples/1.1.x/server-deno/examples/users/delete-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/delete-sessions.md b/docs/examples/1.1.x/server-deno/examples/users/delete-sessions.md index 0e12d6dacfe..894084dd90a 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/delete-sessions.md +++ b/docs/examples/1.1.x/server-deno/examples/users/delete-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/delete.md b/docs/examples/1.1.x/server-deno/examples/users/delete.md index f0223024a38..e291fa1cf10 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/delete.md +++ b/docs/examples/1.1.x/server-deno/examples/users/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/get-prefs.md b/docs/examples/1.1.x/server-deno/examples/users/get-prefs.md index 63953f9d246..98d6f6aa625 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/get-prefs.md +++ b/docs/examples/1.1.x/server-deno/examples/users/get-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/get.md b/docs/examples/1.1.x/server-deno/examples/users/get.md index c9300c5060c..77c27630baa 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/get.md +++ b/docs/examples/1.1.x/server-deno/examples/users/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/list-logs.md b/docs/examples/1.1.x/server-deno/examples/users/list-logs.md index 7d0841fc774..fe4103138db 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/list-logs.md +++ b/docs/examples/1.1.x/server-deno/examples/users/list-logs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/list-memberships.md b/docs/examples/1.1.x/server-deno/examples/users/list-memberships.md index 74f2fb7f1e2..592385fc047 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/list-memberships.md +++ b/docs/examples/1.1.x/server-deno/examples/users/list-memberships.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/list-sessions.md b/docs/examples/1.1.x/server-deno/examples/users/list-sessions.md index 1aa4ca7d788..2117b04927f 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/list-sessions.md +++ b/docs/examples/1.1.x/server-deno/examples/users/list-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/list.md b/docs/examples/1.1.x/server-deno/examples/users/list.md index 369ccd7b297..a092136f5ad 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/list.md +++ b/docs/examples/1.1.x/server-deno/examples/users/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/update-email-verification.md b/docs/examples/1.1.x/server-deno/examples/users/update-email-verification.md index 146cea50278..41a3250abb5 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/update-email-verification.md +++ b/docs/examples/1.1.x/server-deno/examples/users/update-email-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/update-email.md b/docs/examples/1.1.x/server-deno/examples/users/update-email.md index bd7f0ffbd85..428ab37b854 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/update-email.md +++ b/docs/examples/1.1.x/server-deno/examples/users/update-email.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/update-name.md b/docs/examples/1.1.x/server-deno/examples/users/update-name.md index 071c948201e..1b0918b5a58 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/update-name.md +++ b/docs/examples/1.1.x/server-deno/examples/users/update-name.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/update-password.md b/docs/examples/1.1.x/server-deno/examples/users/update-password.md index 3c896fae5a3..5852c340aad 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/update-password.md +++ b/docs/examples/1.1.x/server-deno/examples/users/update-password.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/update-phone-verification.md b/docs/examples/1.1.x/server-deno/examples/users/update-phone-verification.md index 293f876152d..3241b4c4306 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/update-phone-verification.md +++ b/docs/examples/1.1.x/server-deno/examples/users/update-phone-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/update-phone.md b/docs/examples/1.1.x/server-deno/examples/users/update-phone.md index e634f59719d..b41c9bc15fb 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/update-phone.md +++ b/docs/examples/1.1.x/server-deno/examples/users/update-phone.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/update-prefs.md b/docs/examples/1.1.x/server-deno/examples/users/update-prefs.md index 248fdb10abf..c794bc9d6c3 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/update-prefs.md +++ b/docs/examples/1.1.x/server-deno/examples/users/update-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-deno/examples/users/update-status.md b/docs/examples/1.1.x/server-deno/examples/users/update-status.md index 2f142596fd5..80355e1b391 100644 --- a/docs/examples/1.1.x/server-deno/examples/users/update-status.md +++ b/docs/examples/1.1.x/server-deno/examples/users/update-status.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-kotlin/java/account/create-phone-verification.md b/docs/examples/1.1.x/server-kotlin/java/account/create-phone-verification.md index 307aafbb62c..c4842763b0e 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/create-phone-verification.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/create-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/create-recovery.md b/docs/examples/1.1.x/server-kotlin/java/account/create-recovery.md index 92769f0897f..5ea67db8178 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/create-recovery.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/create-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/create-verification.md b/docs/examples/1.1.x/server-kotlin/java/account/create-verification.md index 156fff0c9f3..ca9a7c1f1c5 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/create-verification.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/create-verification.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/delete-session.md b/docs/examples/1.1.x/server-kotlin/java/account/delete-session.md index 3b082045159..8a35267d9dc 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/delete-session.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/delete-sessions.md b/docs/examples/1.1.x/server-kotlin/java/account/delete-sessions.md index 20d1ff00106..5201cbdc70c 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/delete-sessions.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/get-prefs.md b/docs/examples/1.1.x/server-kotlin/java/account/get-prefs.md index cce8abba483..9c021e158cf 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/get-prefs.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/get-session.md b/docs/examples/1.1.x/server-kotlin/java/account/get-session.md index 400cfeec615..d3f63ee2b25 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/get-session.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/get-session.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/get.md b/docs/examples/1.1.x/server-kotlin/java/account/get.md index 994e7774b1c..71728f0c3ce 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/get.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/get.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/list-logs.md b/docs/examples/1.1.x/server-kotlin/java/account/list-logs.md index 840e9e575bc..a3338ebf758 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/list-logs.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/list-sessions.md b/docs/examples/1.1.x/server-kotlin/java/account/list-sessions.md index 5932a57501f..55ec82c7400 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/list-sessions.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/update-email.md b/docs/examples/1.1.x/server-kotlin/java/account/update-email.md index 674d56e8b27..fbfc6096b41 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/update-email.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/update-name.md b/docs/examples/1.1.x/server-kotlin/java/account/update-name.md index 7213c14f52e..a96dd3abc20 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/update-name.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/update-password.md b/docs/examples/1.1.x/server-kotlin/java/account/update-password.md index 2431ff498d4..8e2eb162fd7 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/update-password.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/update-phone-verification.md b/docs/examples/1.1.x/server-kotlin/java/account/update-phone-verification.md index d544ca8054d..5d3657a7cb4 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/update-phone-verification.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/update-phone.md b/docs/examples/1.1.x/server-kotlin/java/account/update-phone.md index df69489984e..a953637e716 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/update-phone.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/update-prefs.md b/docs/examples/1.1.x/server-kotlin/java/account/update-prefs.md index dde22cb12a2..c6bb503d372 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/update-prefs.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/update-recovery.md b/docs/examples/1.1.x/server-kotlin/java/account/update-recovery.md index dc30a70964a..70b52c3684c 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/update-recovery.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/update-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/update-session.md b/docs/examples/1.1.x/server-kotlin/java/account/update-session.md index 4ce0e1cdb0a..69a6ac8c4af 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/update-session.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/update-session.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/update-status.md b/docs/examples/1.1.x/server-kotlin/java/account/update-status.md index 41fab63e29b..6b7df1225e9 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/update-status.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/account/update-verification.md b/docs/examples/1.1.x/server-kotlin/java/account/update-verification.md index c5e1e3d946b..0df999ff670 100644 --- a/docs/examples/1.1.x/server-kotlin/java/account/update-verification.md +++ b/docs/examples/1.1.x/server-kotlin/java/account/update-verification.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/avatars/get-browser.md b/docs/examples/1.1.x/server-kotlin/java/avatars/get-browser.md index b892f97c7d7..4a28ae82ab7 100644 --- a/docs/examples/1.1.x/server-kotlin/java/avatars/get-browser.md +++ b/docs/examples/1.1.x/server-kotlin/java/avatars/get-browser.md @@ -3,7 +3,7 @@ import io.appwrite.services.Avatars public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/avatars/get-credit-card.md b/docs/examples/1.1.x/server-kotlin/java/avatars/get-credit-card.md index 5d1134a4001..0a0df9e6999 100644 --- a/docs/examples/1.1.x/server-kotlin/java/avatars/get-credit-card.md +++ b/docs/examples/1.1.x/server-kotlin/java/avatars/get-credit-card.md @@ -3,7 +3,7 @@ import io.appwrite.services.Avatars public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/avatars/get-favicon.md b/docs/examples/1.1.x/server-kotlin/java/avatars/get-favicon.md index 843cb5b504e..484ad31a69e 100644 --- a/docs/examples/1.1.x/server-kotlin/java/avatars/get-favicon.md +++ b/docs/examples/1.1.x/server-kotlin/java/avatars/get-favicon.md @@ -3,7 +3,7 @@ import io.appwrite.services.Avatars public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/avatars/get-flag.md b/docs/examples/1.1.x/server-kotlin/java/avatars/get-flag.md index b5f5af0f1a6..a666bf588a9 100644 --- a/docs/examples/1.1.x/server-kotlin/java/avatars/get-flag.md +++ b/docs/examples/1.1.x/server-kotlin/java/avatars/get-flag.md @@ -3,7 +3,7 @@ import io.appwrite.services.Avatars public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/avatars/get-image.md b/docs/examples/1.1.x/server-kotlin/java/avatars/get-image.md index cdcea652e10..879f938d459 100644 --- a/docs/examples/1.1.x/server-kotlin/java/avatars/get-image.md +++ b/docs/examples/1.1.x/server-kotlin/java/avatars/get-image.md @@ -3,7 +3,7 @@ import io.appwrite.services.Avatars public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/avatars/get-initials.md b/docs/examples/1.1.x/server-kotlin/java/avatars/get-initials.md index d213c5dc04e..19101f36439 100644 --- a/docs/examples/1.1.x/server-kotlin/java/avatars/get-initials.md +++ b/docs/examples/1.1.x/server-kotlin/java/avatars/get-initials.md @@ -3,7 +3,7 @@ import io.appwrite.services.Avatars public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/avatars/get-q-r.md b/docs/examples/1.1.x/server-kotlin/java/avatars/get-q-r.md index 777ff03bc6a..c4dd9c6806f 100644 --- a/docs/examples/1.1.x/server-kotlin/java/avatars/get-q-r.md +++ b/docs/examples/1.1.x/server-kotlin/java/avatars/get-q-r.md @@ -3,7 +3,7 @@ import io.appwrite.services.Avatars public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/create-boolean-attribute.md b/docs/examples/1.1.x/server-kotlin/java/databases/create-boolean-attribute.md index 594ed8e2b21..70b3b9f2d2e 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/create-boolean-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/create-boolean-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/create-collection.md b/docs/examples/1.1.x/server-kotlin/java/databases/create-collection.md index 37c6fe2ed3b..14d7faefe39 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/create-collection.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/create-collection.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/create-datetime-attribute.md b/docs/examples/1.1.x/server-kotlin/java/databases/create-datetime-attribute.md index 4a9617831c7..7fa53f6f6e0 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/create-datetime-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/create-datetime-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/create-document.md b/docs/examples/1.1.x/server-kotlin/java/databases/create-document.md index 0047d3271c0..4589673e0d6 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/create-document.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/create-document.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/create-email-attribute.md b/docs/examples/1.1.x/server-kotlin/java/databases/create-email-attribute.md index 650eb350c07..695659750e9 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/create-email-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/create-email-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/create-enum-attribute.md b/docs/examples/1.1.x/server-kotlin/java/databases/create-enum-attribute.md index 5c0e93df460..3ecc8cc0809 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/create-enum-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/create-enum-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/create-float-attribute.md b/docs/examples/1.1.x/server-kotlin/java/databases/create-float-attribute.md index 5d684d91c42..92287ff67e6 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/create-float-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/create-float-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/create-index.md b/docs/examples/1.1.x/server-kotlin/java/databases/create-index.md index b2a85d5662b..111d104361b 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/create-index.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/create-index.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/create-integer-attribute.md b/docs/examples/1.1.x/server-kotlin/java/databases/create-integer-attribute.md index a8e79839368..79eeff62704 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/create-integer-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/create-integer-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/create-ip-attribute.md b/docs/examples/1.1.x/server-kotlin/java/databases/create-ip-attribute.md index b593726b048..40c81210c5c 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/create-ip-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/create-ip-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/create-string-attribute.md b/docs/examples/1.1.x/server-kotlin/java/databases/create-string-attribute.md index 8ca68a61c65..831597c0187 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/create-string-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/create-string-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/create-url-attribute.md b/docs/examples/1.1.x/server-kotlin/java/databases/create-url-attribute.md index 05a616a6767..60fb69d2f45 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/create-url-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/create-url-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/create.md b/docs/examples/1.1.x/server-kotlin/java/databases/create.md index 1a76402595c..07a7fed8a98 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/create.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/create.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/delete-attribute.md b/docs/examples/1.1.x/server-kotlin/java/databases/delete-attribute.md index 531a1e4ff5d..f93097a340e 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/delete-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/delete-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/delete-collection.md b/docs/examples/1.1.x/server-kotlin/java/databases/delete-collection.md index e21866a9582..3851e5781da 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/delete-collection.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/delete-collection.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/delete-document.md b/docs/examples/1.1.x/server-kotlin/java/databases/delete-document.md index 0b4d16c0b67..7f2c2194cc1 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/delete-document.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/delete-document.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/delete-index.md b/docs/examples/1.1.x/server-kotlin/java/databases/delete-index.md index fb76854719e..b7209db58df 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/delete-index.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/delete-index.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/delete.md b/docs/examples/1.1.x/server-kotlin/java/databases/delete.md index 29a9bd7ff1f..5a8b55b2a3e 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/delete.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/delete.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/get-attribute.md b/docs/examples/1.1.x/server-kotlin/java/databases/get-attribute.md index 18c00608a21..acf0668cafa 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/get-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/get-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/get-collection.md b/docs/examples/1.1.x/server-kotlin/java/databases/get-collection.md index cddfd16f872..6aae2231eb5 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/get-collection.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/get-collection.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/get-document.md b/docs/examples/1.1.x/server-kotlin/java/databases/get-document.md index caba9175a9d..6c89badaa80 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/get-document.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/get-document.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/get-index.md b/docs/examples/1.1.x/server-kotlin/java/databases/get-index.md index ca3a1474bd3..dcd80a31db1 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/get-index.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/get-index.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/get.md b/docs/examples/1.1.x/server-kotlin/java/databases/get.md index 6eee3149951..fadb0a0bcb2 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/get.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/get.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/list-attributes.md b/docs/examples/1.1.x/server-kotlin/java/databases/list-attributes.md index a1048cf7928..b1a57e034a4 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/list-attributes.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/list-attributes.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/list-collections.md b/docs/examples/1.1.x/server-kotlin/java/databases/list-collections.md index d21ab89ba01..a2c22903356 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/list-collections.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/list-collections.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/list-documents.md b/docs/examples/1.1.x/server-kotlin/java/databases/list-documents.md index 99e724d9ced..e483c79bec8 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/list-documents.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/list-documents.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/list-indexes.md b/docs/examples/1.1.x/server-kotlin/java/databases/list-indexes.md index 3b8b918798a..d6dbe2a0b62 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/list-indexes.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/list-indexes.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/list.md b/docs/examples/1.1.x/server-kotlin/java/databases/list.md index 94294a62faa..3c7f6fc1758 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/list.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/list.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/update-collection.md b/docs/examples/1.1.x/server-kotlin/java/databases/update-collection.md index a1a2a483612..bccf2523003 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/update-collection.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/update-collection.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/update-document.md b/docs/examples/1.1.x/server-kotlin/java/databases/update-document.md index b2f6c1db450..9e33b9647c4 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/update-document.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/update-document.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/databases/update.md b/docs/examples/1.1.x/server-kotlin/java/databases/update.md index 782388c0958..ebc3fcf75cc 100644 --- a/docs/examples/1.1.x/server-kotlin/java/databases/update.md +++ b/docs/examples/1.1.x/server-kotlin/java/databases/update.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/create-build.md b/docs/examples/1.1.x/server-kotlin/java/functions/create-build.md index 93da893c8f8..bf1556209a0 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/create-build.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/create-build.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/create-deployment.md b/docs/examples/1.1.x/server-kotlin/java/functions/create-deployment.md index 8407ab28305..fee95cafd29 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/create-deployment.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/create-deployment.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/create-execution.md b/docs/examples/1.1.x/server-kotlin/java/functions/create-execution.md index e4f69db23cf..c870c451a91 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/create-execution.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/create-execution.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/create-variable.md b/docs/examples/1.1.x/server-kotlin/java/functions/create-variable.md index 915e707c8a3..32c859e5b1c 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/create-variable.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/create-variable.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/create.md b/docs/examples/1.1.x/server-kotlin/java/functions/create.md index 600510310aa..6f78b9a7a51 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/create.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/create.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/delete-deployment.md b/docs/examples/1.1.x/server-kotlin/java/functions/delete-deployment.md index aa60c9fcc8a..e48607262dd 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/delete-deployment.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/delete-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/delete-variable.md b/docs/examples/1.1.x/server-kotlin/java/functions/delete-variable.md index bca29eb32ff..570b3d91941 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/delete-variable.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/delete-variable.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/delete.md b/docs/examples/1.1.x/server-kotlin/java/functions/delete.md index 340253fecfc..a10ace4793a 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/delete.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/delete.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/get-deployment.md b/docs/examples/1.1.x/server-kotlin/java/functions/get-deployment.md index c669895e8ca..e31b78547ac 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/get-deployment.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/get-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/get-execution.md b/docs/examples/1.1.x/server-kotlin/java/functions/get-execution.md index 2e7de1d26a2..898fd4cc663 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/get-execution.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/get-execution.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/get-variable.md b/docs/examples/1.1.x/server-kotlin/java/functions/get-variable.md index 43e284cef66..da010db5403 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/get-variable.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/get-variable.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/get.md b/docs/examples/1.1.x/server-kotlin/java/functions/get.md index 660561da93c..bfe82ab392f 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/get.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/get.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/list-deployments.md b/docs/examples/1.1.x/server-kotlin/java/functions/list-deployments.md index 91245820762..bbbb7d2e9dd 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/list-deployments.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/list-deployments.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/list-executions.md b/docs/examples/1.1.x/server-kotlin/java/functions/list-executions.md index 3f66e8082c4..212efa6d8eb 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/list-executions.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/list-executions.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/list-runtimes.md b/docs/examples/1.1.x/server-kotlin/java/functions/list-runtimes.md index 350e6650fda..925603c7ac4 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/list-runtimes.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/list-runtimes.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/list-variables.md b/docs/examples/1.1.x/server-kotlin/java/functions/list-variables.md index 95d3e09aa7c..e8f20136fb2 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/list-variables.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/list-variables.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/list.md b/docs/examples/1.1.x/server-kotlin/java/functions/list.md index dd9f2c7c9c2..d75d49076a3 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/list.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/list.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/update-deployment.md b/docs/examples/1.1.x/server-kotlin/java/functions/update-deployment.md index e9be8adbe96..653c57e2501 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/update-deployment.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/update-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/update-variable.md b/docs/examples/1.1.x/server-kotlin/java/functions/update-variable.md index 399024b36ec..73bd2bb6dbe 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/update-variable.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/update-variable.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/functions/update.md b/docs/examples/1.1.x/server-kotlin/java/functions/update.md index 49ca93aeb35..c4530604765 100644 --- a/docs/examples/1.1.x/server-kotlin/java/functions/update.md +++ b/docs/examples/1.1.x/server-kotlin/java/functions/update.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/health/get-antivirus.md b/docs/examples/1.1.x/server-kotlin/java/health/get-antivirus.md index 43d93aab51b..5c046d1c87f 100644 --- a/docs/examples/1.1.x/server-kotlin/java/health/get-antivirus.md +++ b/docs/examples/1.1.x/server-kotlin/java/health/get-antivirus.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/health/get-cache.md b/docs/examples/1.1.x/server-kotlin/java/health/get-cache.md index 6ad11863ced..d66f3c03d98 100644 --- a/docs/examples/1.1.x/server-kotlin/java/health/get-cache.md +++ b/docs/examples/1.1.x/server-kotlin/java/health/get-cache.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/health/get-d-b.md b/docs/examples/1.1.x/server-kotlin/java/health/get-d-b.md index e4db1d9966a..5bfc06443ef 100644 --- a/docs/examples/1.1.x/server-kotlin/java/health/get-d-b.md +++ b/docs/examples/1.1.x/server-kotlin/java/health/get-d-b.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/health/get-queue-certificates.md b/docs/examples/1.1.x/server-kotlin/java/health/get-queue-certificates.md index d7331e50a27..690190b8230 100644 --- a/docs/examples/1.1.x/server-kotlin/java/health/get-queue-certificates.md +++ b/docs/examples/1.1.x/server-kotlin/java/health/get-queue-certificates.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/health/get-queue-functions.md b/docs/examples/1.1.x/server-kotlin/java/health/get-queue-functions.md index 1ed847e7c85..2ecfb0584d9 100644 --- a/docs/examples/1.1.x/server-kotlin/java/health/get-queue-functions.md +++ b/docs/examples/1.1.x/server-kotlin/java/health/get-queue-functions.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/health/get-queue-logs.md b/docs/examples/1.1.x/server-kotlin/java/health/get-queue-logs.md index 0b232c819d3..f4ef35e57e3 100644 --- a/docs/examples/1.1.x/server-kotlin/java/health/get-queue-logs.md +++ b/docs/examples/1.1.x/server-kotlin/java/health/get-queue-logs.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/health/get-queue-webhooks.md b/docs/examples/1.1.x/server-kotlin/java/health/get-queue-webhooks.md index e2a84ff1873..1d7527d70e4 100644 --- a/docs/examples/1.1.x/server-kotlin/java/health/get-queue-webhooks.md +++ b/docs/examples/1.1.x/server-kotlin/java/health/get-queue-webhooks.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/health/get-storage-local.md b/docs/examples/1.1.x/server-kotlin/java/health/get-storage-local.md index 275cb7e2301..fde0b58495d 100644 --- a/docs/examples/1.1.x/server-kotlin/java/health/get-storage-local.md +++ b/docs/examples/1.1.x/server-kotlin/java/health/get-storage-local.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/health/get-time.md b/docs/examples/1.1.x/server-kotlin/java/health/get-time.md index 57d25d64661..c2b31efa1eb 100644 --- a/docs/examples/1.1.x/server-kotlin/java/health/get-time.md +++ b/docs/examples/1.1.x/server-kotlin/java/health/get-time.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/health/get.md b/docs/examples/1.1.x/server-kotlin/java/health/get.md index d922c22d81d..a49d3599a8e 100644 --- a/docs/examples/1.1.x/server-kotlin/java/health/get.md +++ b/docs/examples/1.1.x/server-kotlin/java/health/get.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/locale/get.md b/docs/examples/1.1.x/server-kotlin/java/locale/get.md index c8f37a5a1ca..d8991cc3d1a 100644 --- a/docs/examples/1.1.x/server-kotlin/java/locale/get.md +++ b/docs/examples/1.1.x/server-kotlin/java/locale/get.md @@ -3,7 +3,7 @@ import io.appwrite.services.Locale public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/locale/list-continents.md b/docs/examples/1.1.x/server-kotlin/java/locale/list-continents.md index 15d5b6e2beb..ef31efe8af4 100644 --- a/docs/examples/1.1.x/server-kotlin/java/locale/list-continents.md +++ b/docs/examples/1.1.x/server-kotlin/java/locale/list-continents.md @@ -3,7 +3,7 @@ import io.appwrite.services.Locale public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/locale/list-countries-e-u.md b/docs/examples/1.1.x/server-kotlin/java/locale/list-countries-e-u.md index bd2007739b6..881fabbda86 100644 --- a/docs/examples/1.1.x/server-kotlin/java/locale/list-countries-e-u.md +++ b/docs/examples/1.1.x/server-kotlin/java/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ import io.appwrite.services.Locale public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/locale/list-countries-phones.md b/docs/examples/1.1.x/server-kotlin/java/locale/list-countries-phones.md index 083b1633a61..974cf098388 100644 --- a/docs/examples/1.1.x/server-kotlin/java/locale/list-countries-phones.md +++ b/docs/examples/1.1.x/server-kotlin/java/locale/list-countries-phones.md @@ -3,7 +3,7 @@ import io.appwrite.services.Locale public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/locale/list-countries.md b/docs/examples/1.1.x/server-kotlin/java/locale/list-countries.md index 52dce6a1650..b82a5cc1cb6 100644 --- a/docs/examples/1.1.x/server-kotlin/java/locale/list-countries.md +++ b/docs/examples/1.1.x/server-kotlin/java/locale/list-countries.md @@ -3,7 +3,7 @@ import io.appwrite.services.Locale public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/locale/list-currencies.md b/docs/examples/1.1.x/server-kotlin/java/locale/list-currencies.md index d34a3a892ab..b611ff4ceb8 100644 --- a/docs/examples/1.1.x/server-kotlin/java/locale/list-currencies.md +++ b/docs/examples/1.1.x/server-kotlin/java/locale/list-currencies.md @@ -3,7 +3,7 @@ import io.appwrite.services.Locale public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/locale/list-languages.md b/docs/examples/1.1.x/server-kotlin/java/locale/list-languages.md index 05c574a47f1..a9708c00acd 100644 --- a/docs/examples/1.1.x/server-kotlin/java/locale/list-languages.md +++ b/docs/examples/1.1.x/server-kotlin/java/locale/list-languages.md @@ -3,7 +3,7 @@ import io.appwrite.services.Locale public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/storage/create-bucket.md b/docs/examples/1.1.x/server-kotlin/java/storage/create-bucket.md index c867d697a03..8df40457b7d 100644 --- a/docs/examples/1.1.x/server-kotlin/java/storage/create-bucket.md +++ b/docs/examples/1.1.x/server-kotlin/java/storage/create-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/storage/create-file.md b/docs/examples/1.1.x/server-kotlin/java/storage/create-file.md index 3eff43c48f0..5bd47ae7d2d 100644 --- a/docs/examples/1.1.x/server-kotlin/java/storage/create-file.md +++ b/docs/examples/1.1.x/server-kotlin/java/storage/create-file.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/storage/delete-bucket.md b/docs/examples/1.1.x/server-kotlin/java/storage/delete-bucket.md index ea8a4795c25..3a996f5e6f9 100644 --- a/docs/examples/1.1.x/server-kotlin/java/storage/delete-bucket.md +++ b/docs/examples/1.1.x/server-kotlin/java/storage/delete-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/storage/delete-file.md b/docs/examples/1.1.x/server-kotlin/java/storage/delete-file.md index b6f17557ed3..326aecd10e0 100644 --- a/docs/examples/1.1.x/server-kotlin/java/storage/delete-file.md +++ b/docs/examples/1.1.x/server-kotlin/java/storage/delete-file.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/storage/get-bucket.md b/docs/examples/1.1.x/server-kotlin/java/storage/get-bucket.md index 53d13792e38..e3eb7b9c665 100644 --- a/docs/examples/1.1.x/server-kotlin/java/storage/get-bucket.md +++ b/docs/examples/1.1.x/server-kotlin/java/storage/get-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/storage/get-file-download.md b/docs/examples/1.1.x/server-kotlin/java/storage/get-file-download.md index 11a52c89704..debc6ef723b 100644 --- a/docs/examples/1.1.x/server-kotlin/java/storage/get-file-download.md +++ b/docs/examples/1.1.x/server-kotlin/java/storage/get-file-download.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/storage/get-file-preview.md b/docs/examples/1.1.x/server-kotlin/java/storage/get-file-preview.md index 4219058238d..8cc69e4898f 100644 --- a/docs/examples/1.1.x/server-kotlin/java/storage/get-file-preview.md +++ b/docs/examples/1.1.x/server-kotlin/java/storage/get-file-preview.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/storage/get-file-view.md b/docs/examples/1.1.x/server-kotlin/java/storage/get-file-view.md index 4194ca4c22c..3d3b9f0b658 100644 --- a/docs/examples/1.1.x/server-kotlin/java/storage/get-file-view.md +++ b/docs/examples/1.1.x/server-kotlin/java/storage/get-file-view.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/storage/get-file.md b/docs/examples/1.1.x/server-kotlin/java/storage/get-file.md index 257916252dd..1845ce3087f 100644 --- a/docs/examples/1.1.x/server-kotlin/java/storage/get-file.md +++ b/docs/examples/1.1.x/server-kotlin/java/storage/get-file.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/storage/list-buckets.md b/docs/examples/1.1.x/server-kotlin/java/storage/list-buckets.md index 5e70c788e4d..b6ae28dc547 100644 --- a/docs/examples/1.1.x/server-kotlin/java/storage/list-buckets.md +++ b/docs/examples/1.1.x/server-kotlin/java/storage/list-buckets.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/storage/list-files.md b/docs/examples/1.1.x/server-kotlin/java/storage/list-files.md index 0cde2f74964..c44ce1a8ac0 100644 --- a/docs/examples/1.1.x/server-kotlin/java/storage/list-files.md +++ b/docs/examples/1.1.x/server-kotlin/java/storage/list-files.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/storage/update-bucket.md b/docs/examples/1.1.x/server-kotlin/java/storage/update-bucket.md index 3910afa88ff..77e7fb2f27d 100644 --- a/docs/examples/1.1.x/server-kotlin/java/storage/update-bucket.md +++ b/docs/examples/1.1.x/server-kotlin/java/storage/update-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/storage/update-file.md b/docs/examples/1.1.x/server-kotlin/java/storage/update-file.md index bf33afc8e8b..3d09d3c64e3 100644 --- a/docs/examples/1.1.x/server-kotlin/java/storage/update-file.md +++ b/docs/examples/1.1.x/server-kotlin/java/storage/update-file.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/teams/create-membership.md b/docs/examples/1.1.x/server-kotlin/java/teams/create-membership.md index fa8e9dabf1c..3ce09086152 100644 --- a/docs/examples/1.1.x/server-kotlin/java/teams/create-membership.md +++ b/docs/examples/1.1.x/server-kotlin/java/teams/create-membership.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/teams/create.md b/docs/examples/1.1.x/server-kotlin/java/teams/create.md index 3c4cd2c1e51..64c49a9068d 100644 --- a/docs/examples/1.1.x/server-kotlin/java/teams/create.md +++ b/docs/examples/1.1.x/server-kotlin/java/teams/create.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/teams/delete-membership.md b/docs/examples/1.1.x/server-kotlin/java/teams/delete-membership.md index 4d623972c49..5063a180998 100644 --- a/docs/examples/1.1.x/server-kotlin/java/teams/delete-membership.md +++ b/docs/examples/1.1.x/server-kotlin/java/teams/delete-membership.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/teams/delete.md b/docs/examples/1.1.x/server-kotlin/java/teams/delete.md index dad63350652..8a6b008e72b 100644 --- a/docs/examples/1.1.x/server-kotlin/java/teams/delete.md +++ b/docs/examples/1.1.x/server-kotlin/java/teams/delete.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/teams/get-membership.md b/docs/examples/1.1.x/server-kotlin/java/teams/get-membership.md index 7c6ec277148..c26339d821c 100644 --- a/docs/examples/1.1.x/server-kotlin/java/teams/get-membership.md +++ b/docs/examples/1.1.x/server-kotlin/java/teams/get-membership.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/teams/get.md b/docs/examples/1.1.x/server-kotlin/java/teams/get.md index a53b587a55c..103b64eedac 100644 --- a/docs/examples/1.1.x/server-kotlin/java/teams/get.md +++ b/docs/examples/1.1.x/server-kotlin/java/teams/get.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/teams/list-memberships.md b/docs/examples/1.1.x/server-kotlin/java/teams/list-memberships.md index 0b32718545f..0c9402c3984 100644 --- a/docs/examples/1.1.x/server-kotlin/java/teams/list-memberships.md +++ b/docs/examples/1.1.x/server-kotlin/java/teams/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/teams/list.md b/docs/examples/1.1.x/server-kotlin/java/teams/list.md index be975179d68..860b6be71fb 100644 --- a/docs/examples/1.1.x/server-kotlin/java/teams/list.md +++ b/docs/examples/1.1.x/server-kotlin/java/teams/list.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/teams/update-membership-roles.md b/docs/examples/1.1.x/server-kotlin/java/teams/update-membership-roles.md index 1b8ee26f48e..50a70b07c7c 100644 --- a/docs/examples/1.1.x/server-kotlin/java/teams/update-membership-roles.md +++ b/docs/examples/1.1.x/server-kotlin/java/teams/update-membership-roles.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/teams/update-membership-status.md b/docs/examples/1.1.x/server-kotlin/java/teams/update-membership-status.md index 314060d0498..d9560b33c81 100644 --- a/docs/examples/1.1.x/server-kotlin/java/teams/update-membership-status.md +++ b/docs/examples/1.1.x/server-kotlin/java/teams/update-membership-status.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/java/teams/update.md b/docs/examples/1.1.x/server-kotlin/java/teams/update.md index 7cf49b04409..166d6a60a6a 100644 --- a/docs/examples/1.1.x/server-kotlin/java/teams/update.md +++ b/docs/examples/1.1.x/server-kotlin/java/teams/update.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/create-argon2user.md b/docs/examples/1.1.x/server-kotlin/java/users/create-argon2user.md index 99fbce7ea6f..ec6c6abab56 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/create-argon2user.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/create-argon2user.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/create-bcrypt-user.md b/docs/examples/1.1.x/server-kotlin/java/users/create-bcrypt-user.md index c7ca2627b97..f9d6bd2f58d 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/create-bcrypt-user.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/create-bcrypt-user.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/create-m-d5user.md b/docs/examples/1.1.x/server-kotlin/java/users/create-m-d5user.md index 61071d86fb5..645c8f5b2b4 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/create-m-d5user.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/create-m-d5user.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/create-p-h-pass-user.md b/docs/examples/1.1.x/server-kotlin/java/users/create-p-h-pass-user.md index 224deb212cf..10f314a39b5 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/create-p-h-pass-user.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/create-p-h-pass-user.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/create-s-h-a-user.md b/docs/examples/1.1.x/server-kotlin/java/users/create-s-h-a-user.md index beb326b7fd5..eaf27c2e922 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/create-s-h-a-user.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/create-s-h-a-user.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/create-scrypt-modified-user.md b/docs/examples/1.1.x/server-kotlin/java/users/create-scrypt-modified-user.md index 9b62aae33f6..24b3155296f 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/create-scrypt-modified-user.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/create-scrypt-modified-user.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/create-scrypt-user.md b/docs/examples/1.1.x/server-kotlin/java/users/create-scrypt-user.md index 8304e52dbf7..ce500eb9508 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/create-scrypt-user.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/create-scrypt-user.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/create.md b/docs/examples/1.1.x/server-kotlin/java/users/create.md index c77dd3355bf..76c0f3c93ac 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/create.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/create.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/delete-session.md b/docs/examples/1.1.x/server-kotlin/java/users/delete-session.md index c7ce60f3e9b..3a1eac1d892 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/delete-session.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/delete-sessions.md b/docs/examples/1.1.x/server-kotlin/java/users/delete-sessions.md index fe5d713ae0e..1cc6990c3ae 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/delete-sessions.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/delete.md b/docs/examples/1.1.x/server-kotlin/java/users/delete.md index 9c5c4db1d5f..8649daa1f43 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/delete.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/delete.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/get-prefs.md b/docs/examples/1.1.x/server-kotlin/java/users/get-prefs.md index 86388b49c72..f4e62e4c02c 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/get-prefs.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/get.md b/docs/examples/1.1.x/server-kotlin/java/users/get.md index bbc5dfa082c..0b8096abf1d 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/get.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/get.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/list-logs.md b/docs/examples/1.1.x/server-kotlin/java/users/list-logs.md index f70cd2129ee..e2b612111cb 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/list-logs.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/list-memberships.md b/docs/examples/1.1.x/server-kotlin/java/users/list-memberships.md index 487b003aff8..7ea99f53b31 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/list-memberships.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/list-sessions.md b/docs/examples/1.1.x/server-kotlin/java/users/list-sessions.md index 5810c1720ff..868340abd7a 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/list-sessions.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/list.md b/docs/examples/1.1.x/server-kotlin/java/users/list.md index 6f07e3989ea..228d35a7c6a 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/list.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/list.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/update-email-verification.md b/docs/examples/1.1.x/server-kotlin/java/users/update-email-verification.md index b42b2cfeba2..3e4f3377da1 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/update-email-verification.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/update-email-verification.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/update-email.md b/docs/examples/1.1.x/server-kotlin/java/users/update-email.md index f020be463e9..1d1b8580337 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/update-email.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/update-name.md b/docs/examples/1.1.x/server-kotlin/java/users/update-name.md index cd457c870c5..2e22cbdf06a 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/update-name.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/update-password.md b/docs/examples/1.1.x/server-kotlin/java/users/update-password.md index 80898eef0cc..b242efc044f 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/update-password.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/update-phone-verification.md b/docs/examples/1.1.x/server-kotlin/java/users/update-phone-verification.md index f33f5fd0874..dc6a3f965f6 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/update-phone-verification.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/update-phone.md b/docs/examples/1.1.x/server-kotlin/java/users/update-phone.md index a0989f80c9b..f7c9e48b8b2 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/update-phone.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/update-prefs.md b/docs/examples/1.1.x/server-kotlin/java/users/update-prefs.md index bb7c316a23e..a6f13f77b25 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/update-prefs.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/java/users/update-status.md b/docs/examples/1.1.x/server-kotlin/java/users/update-status.md index b66253604c3..03c293de7ec 100644 --- a/docs/examples/1.1.x/server-kotlin/java/users/update-status.md +++ b/docs/examples/1.1.x/server-kotlin/java/users/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users public void main() { Client client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/create-phone-verification.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/create-phone-verification.md index 6ac3a3153e1..61200e90fb2 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/create-phone-verification.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/create-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/create-recovery.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/create-recovery.md index cea3493225b..ecd0d32225b 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/create-recovery.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/create-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/create-verification.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/create-verification.md index 5b687b2538a..a238e1554db 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/create-verification.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/create-verification.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/delete-session.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/delete-session.md index 423868b5368..2a0b4ec7060 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/delete-session.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/delete-sessions.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/delete-sessions.md index 52a14be05c0..3fa125cd719 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/delete-sessions.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/get-prefs.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/get-prefs.md index e3801878003..4a31335fa1a 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/get-prefs.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/get-session.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/get-session.md index 08a72ce91c3..8ce51386824 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/get-session.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/get-session.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/get.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/get.md index c1f0e68ce67..719dfcfb100 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/get.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/get.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/list-logs.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/list-logs.md index 54067a0bae5..cc9308fe8bc 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/list-logs.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/list-sessions.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/list-sessions.md index 90033ec4668..5dbf4259808 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/list-sessions.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-email.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-email.md index ffb13c2a432..be9857bb6c3 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-email.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-name.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-name.md index 43d9a6d6db8..6760f73f017 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-name.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-password.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-password.md index 0d5d388c0bc..dcd14578d7e 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-password.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-phone-verification.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-phone-verification.md index 6a208bc3c08..2c3e1e5d779 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-phone-verification.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-phone.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-phone.md index c6b5e332823..0e0db071789 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-phone.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-prefs.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-prefs.md index 73a20a65963..0ca8705a3fc 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-prefs.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-recovery.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-recovery.md index 9097c32edb0..a90256b1a44 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-recovery.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-session.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-session.md index 21bbb56e1bf..38a51fdc9e4 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-session.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-session.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-status.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-status.md index 3cc5c04a911..b4b2cf47c3b 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-status.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-verification.md b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-verification.md index 34f5f32d3c0..6c31d6841ab 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/account/update-verification.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/account/update-verification.md @@ -3,7 +3,7 @@ import io.appwrite.services.Account suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-browser.md b/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-browser.md index 5d927ba9d4d..db9e042b50d 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-browser.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-browser.md @@ -3,7 +3,7 @@ import io.appwrite.services.Avatars suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-credit-card.md b/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-credit-card.md index 42738dd1108..481860b65a7 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-credit-card.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-credit-card.md @@ -3,7 +3,7 @@ import io.appwrite.services.Avatars suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-favicon.md b/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-favicon.md index d88a868666b..69a3bddd9ee 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-favicon.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-favicon.md @@ -3,7 +3,7 @@ import io.appwrite.services.Avatars suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-flag.md b/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-flag.md index e63201ebe94..3dc8cd2c8f9 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-flag.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-flag.md @@ -3,7 +3,7 @@ import io.appwrite.services.Avatars suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-image.md b/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-image.md index 6cd02694ccf..ecb8d8a58be 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-image.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-image.md @@ -3,7 +3,7 @@ import io.appwrite.services.Avatars suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-initials.md b/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-initials.md index 33deb1b302c..b26598f171b 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-initials.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-initials.md @@ -3,7 +3,7 @@ import io.appwrite.services.Avatars suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-q-r.md b/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-q-r.md index 9bb5a95f07c..349cb0ec900 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-q-r.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/avatars/get-q-r.md @@ -3,7 +3,7 @@ import io.appwrite.services.Avatars suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-boolean-attribute.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-boolean-attribute.md index c7afb42eb37..41528d028ba 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-boolean-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-boolean-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-collection.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-collection.md index 36d273695a8..3b06b5157cb 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-collection.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-collection.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-datetime-attribute.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-datetime-attribute.md index 0a04a626a58..260fe7e9c75 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-datetime-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-datetime-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-document.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-document.md index 85be538649e..6aacdadcdcc 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-document.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-document.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-email-attribute.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-email-attribute.md index 0a1e885f863..288a110feba 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-email-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-email-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-enum-attribute.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-enum-attribute.md index fe07f083423..d9651473503 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-enum-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-enum-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-float-attribute.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-float-attribute.md index 9025f2225d9..18b1c2d28f0 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-float-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-float-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-index.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-index.md index 170b0657298..6c2c05283f9 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-index.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-index.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-integer-attribute.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-integer-attribute.md index 2c4e86aadfc..d7a86f8c114 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-integer-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-integer-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-ip-attribute.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-ip-attribute.md index d9aba79052b..9d3f6ba092a 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-ip-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-ip-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-string-attribute.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-string-attribute.md index f35dc11de0b..86b022e55d2 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-string-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-string-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-url-attribute.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-url-attribute.md index 6c55ef471f7..71b34560f34 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-url-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create-url-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create.md index 903aa728354..dcbad5af3dc 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/create.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/create.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-attribute.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-attribute.md index bf22e174ae8..65925b89aa3 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-collection.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-collection.md index 967b1c082c5..406278b6404 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-collection.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-collection.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-document.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-document.md index 911fb63be9e..71e8e1e175c 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-document.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-document.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-index.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-index.md index 8a733ecda16..ee63498e36a 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-index.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete-index.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete.md index 2a64f968203..e4dfc88dc5d 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/delete.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-attribute.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-attribute.md index 473cb1ce317..8927bdee407 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-attribute.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-collection.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-collection.md index 7867c39e942..7eb0b467aa2 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-collection.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-collection.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-document.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-document.md index 03d8e4f7b74..4ac9c8c3fc4 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-document.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-document.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-index.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-index.md index e2103648fb1..0d3ce4f73d5 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-index.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/get-index.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/get.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/get.md index ef11d925496..9c13cb7fd98 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/get.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/get.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-attributes.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-attributes.md index fcbae6d97d7..a161bb7c9b6 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-attributes.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-attributes.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-collections.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-collections.md index 9a3bc67177d..cf9219ad804 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-collections.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-collections.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-documents.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-documents.md index c963007c704..5528e9c9cf5 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-documents.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-documents.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-indexes.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-indexes.md index 4194ae11d30..f2df11f1c2d 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-indexes.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/list-indexes.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/list.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/list.md index aeaf8835adb..a979c19f285 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/list.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/list.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/update-collection.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/update-collection.md index b1a08810675..53a483fc1f5 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/update-collection.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/update-collection.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/update-document.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/update-document.md index c0847f92922..403fbda6a61 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/update-document.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/update-document.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/databases/update.md b/docs/examples/1.1.x/server-kotlin/kotlin/databases/update.md index a349dfa9071..098ec268a8b 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/databases/update.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/databases/update.md @@ -3,7 +3,7 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-build.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-build.md index fc6c26e62c8..be7cd2e0c10 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-build.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-build.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-deployment.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-deployment.md index 10461d7de8b..0d9b16c5907 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-deployment.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-deployment.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-execution.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-execution.md index 7f5ed237f16..b8e9d8a4379 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-execution.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-execution.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-variable.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-variable.md index dbec221f28c..9729be2e357 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-variable.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/create-variable.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/create.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/create.md index 8b94bf705e0..835f5b3199f 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/create.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/create.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/delete-deployment.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/delete-deployment.md index cf6f20f3947..593efa165c9 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/delete-deployment.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/delete-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/delete-variable.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/delete-variable.md index 1ab4d4fd9cb..d6037ef4226 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/delete-variable.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/delete-variable.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/delete.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/delete.md index 3a2b62ef13f..2768aeb0463 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/delete.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/delete.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/get-deployment.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/get-deployment.md index ab1b3fbf5e2..7c31f56d656 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/get-deployment.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/get-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/get-execution.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/get-execution.md index 032365e1a97..ad810c587b9 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/get-execution.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/get-execution.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/get-variable.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/get-variable.md index da2d39529a0..c38856addfd 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/get-variable.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/get-variable.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/get.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/get.md index b2419d2c213..695cb815dcd 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/get.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/get.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-deployments.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-deployments.md index a59bbdd8fef..f09e4f5e6a5 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-deployments.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-deployments.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-executions.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-executions.md index fe68f9984a2..2ce8ad0744d 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-executions.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-executions.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-runtimes.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-runtimes.md index e4407179622..30f8bbc1d53 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-runtimes.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-runtimes.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-variables.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-variables.md index d704ca48efd..9238a914420 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-variables.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/list-variables.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/list.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/list.md index 7452da29f8a..2e1026ca3ad 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/list.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/list.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/update-deployment.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/update-deployment.md index 65ac5481086..12b05e77e40 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/update-deployment.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/update-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/update-variable.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/update-variable.md index 6179cb7cb59..eb69dcb6ddc 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/update-variable.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/update-variable.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/functions/update.md b/docs/examples/1.1.x/server-kotlin/kotlin/functions/update.md index 208889b6b12..e6c60ee8afe 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/functions/update.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/functions/update.md @@ -3,7 +3,7 @@ import io.appwrite.services.Functions suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-antivirus.md b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-antivirus.md index 81ede56cddb..618ca13f326 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-antivirus.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-antivirus.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-cache.md b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-cache.md index e2b7ca6e54b..67b5d28c7bd 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-cache.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-cache.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-d-b.md b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-d-b.md index d8aabf4d952..7b0aa0015f7 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-d-b.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-d-b.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-certificates.md b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-certificates.md index b0acf58cf4d..c541cee6855 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-certificates.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-certificates.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-functions.md b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-functions.md index fdfdb255265..0174b442afd 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-functions.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-functions.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-logs.md b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-logs.md index 0cd42bb1ea3..7504511aee4 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-logs.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-logs.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-webhooks.md b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-webhooks.md index a08f377303e..ab1848b8404 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-webhooks.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-queue-webhooks.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-storage-local.md b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-storage-local.md index db5f25d7be2..e44e5702ef7 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-storage-local.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-storage-local.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-time.md b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-time.md index d173c995b23..1e028bbbd30 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/health/get-time.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/health/get-time.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/health/get.md b/docs/examples/1.1.x/server-kotlin/kotlin/health/get.md index 3a728523a5b..8638d6cfd4a 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/health/get.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/health/get.md @@ -3,7 +3,7 @@ import io.appwrite.services.Health suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/locale/get.md b/docs/examples/1.1.x/server-kotlin/kotlin/locale/get.md index a2712a080bf..00b19cea680 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/locale/get.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/locale/get.md @@ -3,7 +3,7 @@ import io.appwrite.services.Locale suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-continents.md b/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-continents.md index d2e877476ca..f763a62d10d 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-continents.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-continents.md @@ -3,7 +3,7 @@ import io.appwrite.services.Locale suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-countries-e-u.md b/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-countries-e-u.md index 7f07f776be3..3c5ef9674b0 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-countries-e-u.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ import io.appwrite.services.Locale suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-countries-phones.md b/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-countries-phones.md index 6bf23fab85d..ceedf902da0 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-countries-phones.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-countries-phones.md @@ -3,7 +3,7 @@ import io.appwrite.services.Locale suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-countries.md b/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-countries.md index 0edacc9ab06..ae782beaf81 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-countries.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-countries.md @@ -3,7 +3,7 @@ import io.appwrite.services.Locale suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-currencies.md b/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-currencies.md index b72d52a2181..2b5598661a8 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-currencies.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-currencies.md @@ -3,7 +3,7 @@ import io.appwrite.services.Locale suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-languages.md b/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-languages.md index 829ff858635..5f9f8fe31b1 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-languages.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/locale/list-languages.md @@ -3,7 +3,7 @@ import io.appwrite.services.Locale suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/storage/create-bucket.md b/docs/examples/1.1.x/server-kotlin/kotlin/storage/create-bucket.md index 40c9d60cbce..31f5295a4e2 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/storage/create-bucket.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/storage/create-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/storage/create-file.md b/docs/examples/1.1.x/server-kotlin/kotlin/storage/create-file.md index 4b6f3f404da..f81c9fc8a77 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/storage/create-file.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/storage/create-file.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/storage/delete-bucket.md b/docs/examples/1.1.x/server-kotlin/kotlin/storage/delete-bucket.md index 3fc6e201743..4b6b5a43002 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/storage/delete-bucket.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/storage/delete-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/storage/delete-file.md b/docs/examples/1.1.x/server-kotlin/kotlin/storage/delete-file.md index cdb62418c5b..24d55d1f7e1 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/storage/delete-file.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/storage/delete-file.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-bucket.md b/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-bucket.md index d85f4ac9aa7..66fa1e72ce9 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-bucket.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file-download.md b/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file-download.md index 9c66bd73d26..9ff3bdcab47 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file-download.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file-download.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file-preview.md b/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file-preview.md index a60a76d9d5b..02072f1a7ec 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file-preview.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file-preview.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file-view.md b/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file-view.md index 22a09125c18..1b84008bde4 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file-view.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file-view.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file.md b/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file.md index 6ab4713a259..dee1afe5493 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/storage/get-file.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/storage/list-buckets.md b/docs/examples/1.1.x/server-kotlin/kotlin/storage/list-buckets.md index 275681ec996..06ada06f2d4 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/storage/list-buckets.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/storage/list-buckets.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/storage/list-files.md b/docs/examples/1.1.x/server-kotlin/kotlin/storage/list-files.md index 2ba7a123579..b835164f5e4 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/storage/list-files.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/storage/list-files.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/storage/update-bucket.md b/docs/examples/1.1.x/server-kotlin/kotlin/storage/update-bucket.md index 8eba7ea2d1e..406f784472f 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/storage/update-bucket.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/storage/update-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/storage/update-file.md b/docs/examples/1.1.x/server-kotlin/kotlin/storage/update-file.md index 07e191c614f..0ac87749e52 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/storage/update-file.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/storage/update-file.md @@ -3,7 +3,7 @@ import io.appwrite.services.Storage suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/teams/create-membership.md b/docs/examples/1.1.x/server-kotlin/kotlin/teams/create-membership.md index 4db93244332..d0f0c7d12ed 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/teams/create-membership.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/teams/create-membership.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/teams/create.md b/docs/examples/1.1.x/server-kotlin/kotlin/teams/create.md index cf2045673fc..e5add3d3275 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/teams/create.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/teams/create.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/teams/delete-membership.md b/docs/examples/1.1.x/server-kotlin/kotlin/teams/delete-membership.md index caf36d3e17f..f39691fbb96 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/teams/delete-membership.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/teams/delete-membership.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/teams/delete.md b/docs/examples/1.1.x/server-kotlin/kotlin/teams/delete.md index 05532b2d617..3d70f19cdfd 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/teams/delete.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/teams/delete.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/teams/get-membership.md b/docs/examples/1.1.x/server-kotlin/kotlin/teams/get-membership.md index 7fcc69ad948..5856ef91c9f 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/teams/get-membership.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/teams/get-membership.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/teams/get.md b/docs/examples/1.1.x/server-kotlin/kotlin/teams/get.md index 9802e9a7ee0..ef965b42a59 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/teams/get.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/teams/get.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/teams/list-memberships.md b/docs/examples/1.1.x/server-kotlin/kotlin/teams/list-memberships.md index 6532f6c455a..a155d775548 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/teams/list-memberships.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/teams/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/teams/list.md b/docs/examples/1.1.x/server-kotlin/kotlin/teams/list.md index 7b7fc44ff1c..ec0ef0b0b2b 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/teams/list.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/teams/list.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/teams/update-membership-roles.md b/docs/examples/1.1.x/server-kotlin/kotlin/teams/update-membership-roles.md index 3fedfb4afa4..dd5eb8e85f6 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/teams/update-membership-roles.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/teams/update-membership-roles.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/teams/update-membership-status.md b/docs/examples/1.1.x/server-kotlin/kotlin/teams/update-membership-status.md index 89dd5b16b53..02d2895d277 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/teams/update-membership-status.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/teams/update-membership-status.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/teams/update.md b/docs/examples/1.1.x/server-kotlin/kotlin/teams/update.md index 8cfae9ddc12..2054ff4b385 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/teams/update.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/teams/update.md @@ -3,7 +3,7 @@ import io.appwrite.services.Teams suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/create-argon2user.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/create-argon2user.md index 0cb6a903d87..d99713c5c37 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/create-argon2user.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/create-argon2user.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/create-bcrypt-user.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/create-bcrypt-user.md index 2e87a35b35d..85ed37ccb82 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/create-bcrypt-user.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/create-bcrypt-user.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/create-m-d5user.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/create-m-d5user.md index 2ba9d45be4b..8bc5adf31c8 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/create-m-d5user.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/create-m-d5user.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/create-p-h-pass-user.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/create-p-h-pass-user.md index cb01ab83491..cb058d7ef19 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/create-p-h-pass-user.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/create-p-h-pass-user.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/create-s-h-a-user.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/create-s-h-a-user.md index e334d24d1c3..8e2eabd2a67 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/create-s-h-a-user.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/create-s-h-a-user.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md index 664a1d17226..754775e1cd5 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/create-scrypt-user.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/create-scrypt-user.md index af7cfc33433..a2ae0f72775 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/create-scrypt-user.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/create-scrypt-user.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/create.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/create.md index b6e5b7beb81..032602be004 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/create.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/create.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/delete-session.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/delete-session.md index 9116c5443b1..fb700dc9e2f 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/delete-session.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/delete-sessions.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/delete-sessions.md index 780154f5f94..3fdae56541f 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/delete-sessions.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/delete.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/delete.md index 206e10b1b65..c59251f40c7 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/delete.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/delete.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/get-prefs.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/get-prefs.md index c9d1b134943..71ce11e1fe0 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/get-prefs.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/get.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/get.md index bb8cb584f23..2514dcbb81b 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/get.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/get.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/list-logs.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/list-logs.md index adec2066940..fdb82619129 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/list-logs.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/list-memberships.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/list-memberships.md index 9eb105233f8..8bb7275aed5 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/list-memberships.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/list-sessions.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/list-sessions.md index 262b7a4c5c8..8957eabd619 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/list-sessions.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/list.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/list.md index 247b70d0732..3c92e8f5468 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/list.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/list.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-email-verification.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-email-verification.md index c4b879bb610..732a2027386 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-email-verification.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-email-verification.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-email.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-email.md index 12dd6ff4892..8aeb59c8eeb 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-email.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-name.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-name.md index 051f8852b02..8c911a95b44 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-name.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-password.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-password.md index a6c28517663..355f2a298e8 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-password.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-phone-verification.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-phone-verification.md index d07915430a2..7e8a9529eba 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-phone-verification.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-phone.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-phone.md index 420d7f65f6a..57f539c7dcd 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-phone.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-prefs.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-prefs.md index 92f5cbe549c..c320abf004e 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-prefs.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-status.md b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-status.md index cfb632b4e07..225e5c4ae7a 100644 --- a/docs/examples/1.1.x/server-kotlin/kotlin/users/update-status.md +++ b/docs/examples/1.1.x/server-kotlin/kotlin/users/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.services.Users suspend fun main() { val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/create-phone-verification.md b/docs/examples/1.1.x/server-nodejs/examples/account/create-phone-verification.md index f381495f243..cd9bc62e7a2 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/create-phone-verification.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/create-phone-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/create-recovery.md b/docs/examples/1.1.x/server-nodejs/examples/account/create-recovery.md index f4c5ae98de3..53c6060edff 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/create-recovery.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/create-recovery.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/create-verification.md b/docs/examples/1.1.x/server-nodejs/examples/account/create-verification.md index 04585621eb0..1df32eb7119 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/create-verification.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/create-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/delete-session.md b/docs/examples/1.1.x/server-nodejs/examples/account/delete-session.md index 74f38698591..182d67e2c16 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/delete-session.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/delete-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/delete-sessions.md b/docs/examples/1.1.x/server-nodejs/examples/account/delete-sessions.md index 0968c30b927..dbf861cf31f 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/delete-sessions.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/delete-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/get-prefs.md b/docs/examples/1.1.x/server-nodejs/examples/account/get-prefs.md index 8bd5d97c25f..04e6ac307a2 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/get-prefs.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/get-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/get-session.md b/docs/examples/1.1.x/server-nodejs/examples/account/get-session.md index 3abb677fbe2..23d06a672b7 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/get-session.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/get-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/get.md b/docs/examples/1.1.x/server-nodejs/examples/account/get.md index d4f4066fb19..3b0da54b7a3 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/get.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/list-logs.md b/docs/examples/1.1.x/server-nodejs/examples/account/list-logs.md index 890e0d12d33..25cfab189df 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/list-logs.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/list-logs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/list-sessions.md b/docs/examples/1.1.x/server-nodejs/examples/account/list-sessions.md index 68e97ada316..fe753dd9968 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/list-sessions.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/list-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/update-email.md b/docs/examples/1.1.x/server-nodejs/examples/account/update-email.md index 388e2581bb4..324dfa7db6d 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/update-email.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/update-email.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/update-name.md b/docs/examples/1.1.x/server-nodejs/examples/account/update-name.md index 09846527126..8ae6bbf552b 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/update-name.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/update-name.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/update-password.md b/docs/examples/1.1.x/server-nodejs/examples/account/update-password.md index b9121e3acc9..f8c221a2439 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/update-password.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/update-password.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/update-phone-verification.md b/docs/examples/1.1.x/server-nodejs/examples/account/update-phone-verification.md index 1aa4042f365..66c3ec8981f 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/update-phone-verification.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/update-phone-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/update-phone.md b/docs/examples/1.1.x/server-nodejs/examples/account/update-phone.md index 37124d81aa6..02270ec33e7 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/update-phone.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/update-phone.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/update-prefs.md b/docs/examples/1.1.x/server-nodejs/examples/account/update-prefs.md index 6948706abbd..6a9e10bf0c9 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/update-prefs.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/update-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/update-recovery.md b/docs/examples/1.1.x/server-nodejs/examples/account/update-recovery.md index 74f70f59c78..17dccf0e8b0 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/update-recovery.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/update-recovery.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/update-session.md b/docs/examples/1.1.x/server-nodejs/examples/account/update-session.md index b0b932524fc..ae1d9ab0653 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/update-session.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/update-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/update-status.md b/docs/examples/1.1.x/server-nodejs/examples/account/update-status.md index 277243b824f..4c13b5eec13 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/update-status.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/update-status.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/account/update-verification.md b/docs/examples/1.1.x/server-nodejs/examples/account/update-verification.md index 6a7fbbf99c1..03d663a6296 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/account/update-verification.md +++ b/docs/examples/1.1.x/server-nodejs/examples/account/update-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/avatars/get-browser.md b/docs/examples/1.1.x/server-nodejs/examples/avatars/get-browser.md index c05595ad67d..d88d7571dec 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/avatars/get-browser.md +++ b/docs/examples/1.1.x/server-nodejs/examples/avatars/get-browser.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/avatars/get-credit-card.md b/docs/examples/1.1.x/server-nodejs/examples/avatars/get-credit-card.md index 8fbd37d29ae..86cfe170598 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/avatars/get-credit-card.md +++ b/docs/examples/1.1.x/server-nodejs/examples/avatars/get-credit-card.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/avatars/get-favicon.md b/docs/examples/1.1.x/server-nodejs/examples/avatars/get-favicon.md index 2924e394a07..acc780ccab1 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/avatars/get-favicon.md +++ b/docs/examples/1.1.x/server-nodejs/examples/avatars/get-favicon.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/avatars/get-flag.md b/docs/examples/1.1.x/server-nodejs/examples/avatars/get-flag.md index 50d611c3994..09efae01460 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/avatars/get-flag.md +++ b/docs/examples/1.1.x/server-nodejs/examples/avatars/get-flag.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/avatars/get-image.md b/docs/examples/1.1.x/server-nodejs/examples/avatars/get-image.md index 3b2bb517d1b..6cf825ff3e1 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/avatars/get-image.md +++ b/docs/examples/1.1.x/server-nodejs/examples/avatars/get-image.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/avatars/get-initials.md b/docs/examples/1.1.x/server-nodejs/examples/avatars/get-initials.md index 4afda6f5472..942f10ce51a 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/avatars/get-initials.md +++ b/docs/examples/1.1.x/server-nodejs/examples/avatars/get-initials.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/avatars/get-q-r.md b/docs/examples/1.1.x/server-nodejs/examples/avatars/get-q-r.md index d2d24e2055e..0b46c30ed60 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/avatars/get-q-r.md +++ b/docs/examples/1.1.x/server-nodejs/examples/avatars/get-q-r.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/create-boolean-attribute.md b/docs/examples/1.1.x/server-nodejs/examples/databases/create-boolean-attribute.md index 12a70102cae..03b9cbd67a9 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/create-boolean-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/create-collection.md b/docs/examples/1.1.x/server-nodejs/examples/databases/create-collection.md index 13ec4e037fe..2ff164d5539 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/create-collection.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/create-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/create-datetime-attribute.md b/docs/examples/1.1.x/server-nodejs/examples/databases/create-datetime-attribute.md index 70609a84e72..7c8710f80dd 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/create-datetime-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/create-document.md b/docs/examples/1.1.x/server-nodejs/examples/databases/create-document.md index f5fa7a50a6f..69d75e1b53e 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/create-document.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/create-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/create-email-attribute.md b/docs/examples/1.1.x/server-nodejs/examples/databases/create-email-attribute.md index 2229dfe7f9b..a14075c62ba 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/create-email-attribute.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/create-email-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/create-enum-attribute.md b/docs/examples/1.1.x/server-nodejs/examples/databases/create-enum-attribute.md index cd9daca6032..074e0098edf 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/create-enum-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/create-float-attribute.md b/docs/examples/1.1.x/server-nodejs/examples/databases/create-float-attribute.md index a12c4f44206..d818659c337 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/create-float-attribute.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/create-float-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/create-index.md b/docs/examples/1.1.x/server-nodejs/examples/databases/create-index.md index 66c3e519fea..9064cbf61b5 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/create-index.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/create-index.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/create-integer-attribute.md b/docs/examples/1.1.x/server-nodejs/examples/databases/create-integer-attribute.md index fa693d28def..051df7214f7 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/create-integer-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/create-ip-attribute.md b/docs/examples/1.1.x/server-nodejs/examples/databases/create-ip-attribute.md index 1e8985a2bdc..95c465d527e 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/create-ip-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/create-string-attribute.md b/docs/examples/1.1.x/server-nodejs/examples/databases/create-string-attribute.md index bfb4fbfc3ff..9305983c337 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/create-string-attribute.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/create-string-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/create-url-attribute.md b/docs/examples/1.1.x/server-nodejs/examples/databases/create-url-attribute.md index e6a585f76bc..47c491916b8 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/create-url-attribute.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/create-url-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/create.md b/docs/examples/1.1.x/server-nodejs/examples/databases/create.md index 4e04f026bdc..451e39b410f 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/create.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/delete-attribute.md b/docs/examples/1.1.x/server-nodejs/examples/databases/delete-attribute.md index 3c65f62ef57..a7ee957de8a 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/delete-attribute.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/delete-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/delete-collection.md b/docs/examples/1.1.x/server-nodejs/examples/databases/delete-collection.md index 047fa268461..745042ec6e5 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/delete-collection.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/delete-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/delete-document.md b/docs/examples/1.1.x/server-nodejs/examples/databases/delete-document.md index a6f3fa58ca5..0081caa4990 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/delete-document.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/delete-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/delete-index.md b/docs/examples/1.1.x/server-nodejs/examples/databases/delete-index.md index 42d73104a09..e147eb1043d 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/delete-index.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/delete-index.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/delete.md b/docs/examples/1.1.x/server-nodejs/examples/databases/delete.md index 3f39965820e..b1ecfea0a4c 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/delete.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/get-attribute.md b/docs/examples/1.1.x/server-nodejs/examples/databases/get-attribute.md index df6c665b750..36b0b0336e1 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/get-attribute.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/get-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/get-collection.md b/docs/examples/1.1.x/server-nodejs/examples/databases/get-collection.md index ea4ed423e8a..0d0ba0e6cbd 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/get-collection.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/get-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/get-document.md b/docs/examples/1.1.x/server-nodejs/examples/databases/get-document.md index ac07b968aee..8f641962f0f 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/get-document.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/get-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/get-index.md b/docs/examples/1.1.x/server-nodejs/examples/databases/get-index.md index c3a3d168c52..d0602952b4f 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/get-index.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/get-index.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/get.md b/docs/examples/1.1.x/server-nodejs/examples/databases/get.md index 133f496b2eb..a47ba7a403f 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/get.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/list-attributes.md b/docs/examples/1.1.x/server-nodejs/examples/databases/list-attributes.md index b1a494b110d..01284a5e3a7 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/list-attributes.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/list-attributes.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/list-collections.md b/docs/examples/1.1.x/server-nodejs/examples/databases/list-collections.md index c1d9fd34216..9005d7a5b1d 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/list-collections.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/list-collections.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/list-documents.md b/docs/examples/1.1.x/server-nodejs/examples/databases/list-documents.md index bf0b9156bf3..9f9751ac370 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/list-documents.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/list-documents.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/list-indexes.md b/docs/examples/1.1.x/server-nodejs/examples/databases/list-indexes.md index 57787f1d3eb..fff198fc40e 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/list-indexes.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/list-indexes.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/list.md b/docs/examples/1.1.x/server-nodejs/examples/databases/list.md index 5652d1e0324..2f404785701 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/list.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/update-collection.md b/docs/examples/1.1.x/server-nodejs/examples/databases/update-collection.md index db74a7b9eb3..4570385adca 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/update-collection.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/update-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/update-document.md b/docs/examples/1.1.x/server-nodejs/examples/databases/update-document.md index ca3cdb85e7c..92405e556c4 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/update-document.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/update-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/databases/update.md b/docs/examples/1.1.x/server-nodejs/examples/databases/update.md index 7abe11bf80a..71a6f3a77a6 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/databases/update.md +++ b/docs/examples/1.1.x/server-nodejs/examples/databases/update.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/create-build.md b/docs/examples/1.1.x/server-nodejs/examples/functions/create-build.md index fe9751e73b7..38f3717fb0a 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/create-build.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/create-build.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/create-deployment.md b/docs/examples/1.1.x/server-nodejs/examples/functions/create-deployment.md index 661afa151aa..defbd30d102 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/create-deployment.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/create-deployment.md @@ -7,7 +7,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/create-execution.md b/docs/examples/1.1.x/server-nodejs/examples/functions/create-execution.md index dc182fdd447..be5bfbe85c4 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/create-execution.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/create-execution.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/create-variable.md b/docs/examples/1.1.x/server-nodejs/examples/functions/create-variable.md index 80f3fd02573..5bb7481f6af 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/create-variable.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/create-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/create.md b/docs/examples/1.1.x/server-nodejs/examples/functions/create.md index 9b8e0f18206..e1d24380fab 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/create.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/delete-deployment.md b/docs/examples/1.1.x/server-nodejs/examples/functions/delete-deployment.md index 5affdf18b9a..c0b1c4e4a1d 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/delete-deployment.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/delete-deployment.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/delete-variable.md b/docs/examples/1.1.x/server-nodejs/examples/functions/delete-variable.md index 2a075fdea73..e28f991ae1d 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/delete-variable.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/delete-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/delete.md b/docs/examples/1.1.x/server-nodejs/examples/functions/delete.md index d17f01361ef..18d2f4e26c1 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/delete.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/get-deployment.md b/docs/examples/1.1.x/server-nodejs/examples/functions/get-deployment.md index d67ce4647ab..4043de8d59a 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/get-deployment.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/get-deployment.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/get-execution.md b/docs/examples/1.1.x/server-nodejs/examples/functions/get-execution.md index bbf07881386..094a1d1983a 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/get-execution.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/get-execution.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/get-variable.md b/docs/examples/1.1.x/server-nodejs/examples/functions/get-variable.md index 11ce7e2836c..8c225de4da4 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/get-variable.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/get-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/get.md b/docs/examples/1.1.x/server-nodejs/examples/functions/get.md index 54ea4812b82..469f6fbb4ef 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/get.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/list-deployments.md b/docs/examples/1.1.x/server-nodejs/examples/functions/list-deployments.md index 48194108758..505de94734f 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/list-deployments.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/list-deployments.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/list-executions.md b/docs/examples/1.1.x/server-nodejs/examples/functions/list-executions.md index f9e77a5d32f..7ec383656d5 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/list-executions.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/list-executions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/list-runtimes.md b/docs/examples/1.1.x/server-nodejs/examples/functions/list-runtimes.md index d4718613743..d9edc4a040c 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/list-runtimes.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/list-runtimes.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/list-variables.md b/docs/examples/1.1.x/server-nodejs/examples/functions/list-variables.md index e193b2b1ba7..eefc1fe27e7 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/list-variables.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/list-variables.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/list.md b/docs/examples/1.1.x/server-nodejs/examples/functions/list.md index 4f7b45e26a5..0a2c6cd72f0 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/list.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/update-deployment.md b/docs/examples/1.1.x/server-nodejs/examples/functions/update-deployment.md index 25f0e79983f..d90a98481c5 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/update-deployment.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/update-deployment.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/update-variable.md b/docs/examples/1.1.x/server-nodejs/examples/functions/update-variable.md index 86e9a698f58..8d1f6466b7f 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/update-variable.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/update-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/functions/update.md b/docs/examples/1.1.x/server-nodejs/examples/functions/update.md index fb825081a18..c5d06bdad37 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/functions/update.md +++ b/docs/examples/1.1.x/server-nodejs/examples/functions/update.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/health/get-antivirus.md b/docs/examples/1.1.x/server-nodejs/examples/health/get-antivirus.md index b6e5e78a306..516d19c0759 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/health/get-antivirus.md +++ b/docs/examples/1.1.x/server-nodejs/examples/health/get-antivirus.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/health/get-cache.md b/docs/examples/1.1.x/server-nodejs/examples/health/get-cache.md index 8171c40fc6a..84dd5b07ce4 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/health/get-cache.md +++ b/docs/examples/1.1.x/server-nodejs/examples/health/get-cache.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/health/get-d-b.md b/docs/examples/1.1.x/server-nodejs/examples/health/get-d-b.md index ef1739fff0a..ce5ba7b8dcc 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/health/get-d-b.md +++ b/docs/examples/1.1.x/server-nodejs/examples/health/get-d-b.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-certificates.md b/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-certificates.md index 38dadde1b24..c89318fc384 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-certificates.md +++ b/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-certificates.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-functions.md b/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-functions.md index bc8668eda65..52d3a2e80c0 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-functions.md +++ b/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-functions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-logs.md b/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-logs.md index 918a9d9e6ce..86b9fe0fb4f 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-logs.md +++ b/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-logs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-webhooks.md b/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-webhooks.md index acf023a1886..ee73f37ef6c 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.1.x/server-nodejs/examples/health/get-queue-webhooks.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/health/get-storage-local.md b/docs/examples/1.1.x/server-nodejs/examples/health/get-storage-local.md index 76e51489fdf..d41559c5f10 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/health/get-storage-local.md +++ b/docs/examples/1.1.x/server-nodejs/examples/health/get-storage-local.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/health/get-time.md b/docs/examples/1.1.x/server-nodejs/examples/health/get-time.md index f44836ac3c2..e3d70a93ff9 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/health/get-time.md +++ b/docs/examples/1.1.x/server-nodejs/examples/health/get-time.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/health/get.md b/docs/examples/1.1.x/server-nodejs/examples/health/get.md index a66b25631fd..1198b186247 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/health/get.md +++ b/docs/examples/1.1.x/server-nodejs/examples/health/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/locale/get.md b/docs/examples/1.1.x/server-nodejs/examples/locale/get.md index 31d90c6f117..27befec21ab 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/locale/get.md +++ b/docs/examples/1.1.x/server-nodejs/examples/locale/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/locale/list-continents.md b/docs/examples/1.1.x/server-nodejs/examples/locale/list-continents.md index ffe54d34da7..346f552a14c 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/locale/list-continents.md +++ b/docs/examples/1.1.x/server-nodejs/examples/locale/list-continents.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/locale/list-countries-e-u.md b/docs/examples/1.1.x/server-nodejs/examples/locale/list-countries-e-u.md index f9aaff666a0..627c350f8e4 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.1.x/server-nodejs/examples/locale/list-countries-e-u.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/locale/list-countries-phones.md b/docs/examples/1.1.x/server-nodejs/examples/locale/list-countries-phones.md index fdd2436dc0f..0a0965ab539 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/locale/list-countries-phones.md +++ b/docs/examples/1.1.x/server-nodejs/examples/locale/list-countries-phones.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/locale/list-countries.md b/docs/examples/1.1.x/server-nodejs/examples/locale/list-countries.md index 429e1887762..857b7da7cf2 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/locale/list-countries.md +++ b/docs/examples/1.1.x/server-nodejs/examples/locale/list-countries.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/locale/list-currencies.md b/docs/examples/1.1.x/server-nodejs/examples/locale/list-currencies.md index 12d82fb70f5..017b5faebfa 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/locale/list-currencies.md +++ b/docs/examples/1.1.x/server-nodejs/examples/locale/list-currencies.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/locale/list-languages.md b/docs/examples/1.1.x/server-nodejs/examples/locale/list-languages.md index 8ea2b40afc5..716a44c3300 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/locale/list-languages.md +++ b/docs/examples/1.1.x/server-nodejs/examples/locale/list-languages.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/storage/create-bucket.md b/docs/examples/1.1.x/server-nodejs/examples/storage/create-bucket.md index 9093b7c9a6d..51e0b05acb8 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/storage/create-bucket.md +++ b/docs/examples/1.1.x/server-nodejs/examples/storage/create-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/storage/create-file.md b/docs/examples/1.1.x/server-nodejs/examples/storage/create-file.md index 664005e2732..be561320dbd 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/storage/create-file.md +++ b/docs/examples/1.1.x/server-nodejs/examples/storage/create-file.md @@ -7,7 +7,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/storage/delete-bucket.md b/docs/examples/1.1.x/server-nodejs/examples/storage/delete-bucket.md index 84486c68dc4..e3368facf10 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/storage/delete-bucket.md +++ b/docs/examples/1.1.x/server-nodejs/examples/storage/delete-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/storage/delete-file.md b/docs/examples/1.1.x/server-nodejs/examples/storage/delete-file.md index c4d451c63f7..d90be0a77e6 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/storage/delete-file.md +++ b/docs/examples/1.1.x/server-nodejs/examples/storage/delete-file.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/storage/get-bucket.md b/docs/examples/1.1.x/server-nodejs/examples/storage/get-bucket.md index d0fbb94bbcc..b176e6e5755 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/storage/get-bucket.md +++ b/docs/examples/1.1.x/server-nodejs/examples/storage/get-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/storage/get-file-download.md b/docs/examples/1.1.x/server-nodejs/examples/storage/get-file-download.md index 1503d102ba2..4ad79175d26 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/storage/get-file-download.md +++ b/docs/examples/1.1.x/server-nodejs/examples/storage/get-file-download.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/storage/get-file-preview.md b/docs/examples/1.1.x/server-nodejs/examples/storage/get-file-preview.md index 19d34495ba9..164a1c63771 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/storage/get-file-preview.md +++ b/docs/examples/1.1.x/server-nodejs/examples/storage/get-file-preview.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/storage/get-file-view.md b/docs/examples/1.1.x/server-nodejs/examples/storage/get-file-view.md index 1affab8bc09..a8d5029bd0c 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/storage/get-file-view.md +++ b/docs/examples/1.1.x/server-nodejs/examples/storage/get-file-view.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/storage/get-file.md b/docs/examples/1.1.x/server-nodejs/examples/storage/get-file.md index ceba42ce1e9..06f43878e87 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/storage/get-file.md +++ b/docs/examples/1.1.x/server-nodejs/examples/storage/get-file.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/storage/list-buckets.md b/docs/examples/1.1.x/server-nodejs/examples/storage/list-buckets.md index 9945febb421..b989a0748f7 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/storage/list-buckets.md +++ b/docs/examples/1.1.x/server-nodejs/examples/storage/list-buckets.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/storage/list-files.md b/docs/examples/1.1.x/server-nodejs/examples/storage/list-files.md index fea4bae61f7..4bce540ec4a 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/storage/list-files.md +++ b/docs/examples/1.1.x/server-nodejs/examples/storage/list-files.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/storage/update-bucket.md b/docs/examples/1.1.x/server-nodejs/examples/storage/update-bucket.md index 32df1f18d8c..9cab2ca26cb 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/storage/update-bucket.md +++ b/docs/examples/1.1.x/server-nodejs/examples/storage/update-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/storage/update-file.md b/docs/examples/1.1.x/server-nodejs/examples/storage/update-file.md index 042a1645016..aa67cf0f0e9 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/storage/update-file.md +++ b/docs/examples/1.1.x/server-nodejs/examples/storage/update-file.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/teams/create-membership.md b/docs/examples/1.1.x/server-nodejs/examples/teams/create-membership.md index 74b1d3fd1d9..492c6b0d9c7 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/teams/create-membership.md +++ b/docs/examples/1.1.x/server-nodejs/examples/teams/create-membership.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/teams/create.md b/docs/examples/1.1.x/server-nodejs/examples/teams/create.md index 5552f829f9b..a99a2cf3f7e 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/teams/create.md +++ b/docs/examples/1.1.x/server-nodejs/examples/teams/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/teams/delete-membership.md b/docs/examples/1.1.x/server-nodejs/examples/teams/delete-membership.md index ef72e63138d..2df3e41f366 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/teams/delete-membership.md +++ b/docs/examples/1.1.x/server-nodejs/examples/teams/delete-membership.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/teams/delete.md b/docs/examples/1.1.x/server-nodejs/examples/teams/delete.md index 6f1dfaa61d0..ad358748155 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/teams/delete.md +++ b/docs/examples/1.1.x/server-nodejs/examples/teams/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/teams/get-membership.md b/docs/examples/1.1.x/server-nodejs/examples/teams/get-membership.md index d31aa9a8b61..d2e12d6ef6f 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/teams/get-membership.md +++ b/docs/examples/1.1.x/server-nodejs/examples/teams/get-membership.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/teams/get.md b/docs/examples/1.1.x/server-nodejs/examples/teams/get.md index 0d349432428..d162cdceeb8 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/teams/get.md +++ b/docs/examples/1.1.x/server-nodejs/examples/teams/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/teams/list-memberships.md b/docs/examples/1.1.x/server-nodejs/examples/teams/list-memberships.md index ca25bcbd257..9ff92c68ff1 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/teams/list-memberships.md +++ b/docs/examples/1.1.x/server-nodejs/examples/teams/list-memberships.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/teams/list.md b/docs/examples/1.1.x/server-nodejs/examples/teams/list.md index 8610bc7dc43..e3ad03e16ef 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/teams/list.md +++ b/docs/examples/1.1.x/server-nodejs/examples/teams/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/teams/update-membership-roles.md b/docs/examples/1.1.x/server-nodejs/examples/teams/update-membership-roles.md index 26551fe0b64..93b0f23aba6 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/teams/update-membership-roles.md +++ b/docs/examples/1.1.x/server-nodejs/examples/teams/update-membership-roles.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/teams/update-membership-status.md b/docs/examples/1.1.x/server-nodejs/examples/teams/update-membership-status.md index 6c46e786a08..b3c4b64f096 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/teams/update-membership-status.md +++ b/docs/examples/1.1.x/server-nodejs/examples/teams/update-membership-status.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/teams/update.md b/docs/examples/1.1.x/server-nodejs/examples/teams/update.md index 8192c224f3c..2f518f4afd6 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/teams/update.md +++ b/docs/examples/1.1.x/server-nodejs/examples/teams/update.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/create-argon2user.md b/docs/examples/1.1.x/server-nodejs/examples/users/create-argon2user.md index 2762cc0112c..17403fa2296 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/create-argon2user.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/create-argon2user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/create-bcrypt-user.md b/docs/examples/1.1.x/server-nodejs/examples/users/create-bcrypt-user.md index 7bbdd3b883b..90f2efe43af 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/create-bcrypt-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/create-m-d5user.md b/docs/examples/1.1.x/server-nodejs/examples/users/create-m-d5user.md index 0661743da22..fdbc0f30403 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/create-m-d5user.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/create-m-d5user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/create-p-h-pass-user.md b/docs/examples/1.1.x/server-nodejs/examples/users/create-p-h-pass-user.md index 37bd7e70c54..70789ec2dd1 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/create-p-h-pass-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/create-s-h-a-user.md b/docs/examples/1.1.x/server-nodejs/examples/users/create-s-h-a-user.md index 1d0502598b6..5b96402710e 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/create-s-h-a-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/create-scrypt-modified-user.md b/docs/examples/1.1.x/server-nodejs/examples/users/create-scrypt-modified-user.md index 5a0153ec9a2..ffbab8e176f 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/create-scrypt-modified-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/create-scrypt-user.md b/docs/examples/1.1.x/server-nodejs/examples/users/create-scrypt-user.md index 83ec8d3d787..ae10dc5eee2 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/create-scrypt-user.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/create-scrypt-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/create.md b/docs/examples/1.1.x/server-nodejs/examples/users/create.md index 65ab3fae413..ceb01f37353 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/create.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/delete-session.md b/docs/examples/1.1.x/server-nodejs/examples/users/delete-session.md index 18617ba2e8a..c5ad8e39fda 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/delete-session.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/delete-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/delete-sessions.md b/docs/examples/1.1.x/server-nodejs/examples/users/delete-sessions.md index c804d7ddcff..7265c131f82 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/delete-sessions.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/delete-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/delete.md b/docs/examples/1.1.x/server-nodejs/examples/users/delete.md index 53606a7a0ae..a1e694a3dec 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/delete.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/get-prefs.md b/docs/examples/1.1.x/server-nodejs/examples/users/get-prefs.md index c60db8ac770..4683f2fe245 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/get-prefs.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/get-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/get.md b/docs/examples/1.1.x/server-nodejs/examples/users/get.md index 3bad599d4d9..27fd6b74643 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/get.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/list-logs.md b/docs/examples/1.1.x/server-nodejs/examples/users/list-logs.md index 0f76626c6e8..40a1c8c8ba8 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/list-logs.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/list-logs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/list-memberships.md b/docs/examples/1.1.x/server-nodejs/examples/users/list-memberships.md index 81e0c4bc8fc..6a83ec28576 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/list-memberships.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/list-memberships.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/list-sessions.md b/docs/examples/1.1.x/server-nodejs/examples/users/list-sessions.md index b44341bcbe4..17d38f8c0e5 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/list-sessions.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/list-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/list.md b/docs/examples/1.1.x/server-nodejs/examples/users/list.md index a9ba208d2ed..016df4aa37b 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/list.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/update-email-verification.md b/docs/examples/1.1.x/server-nodejs/examples/users/update-email-verification.md index 29c3e26593c..c48ca4426e5 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/update-email-verification.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/update-email-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/update-email.md b/docs/examples/1.1.x/server-nodejs/examples/users/update-email.md index 5cef6fb5ec8..726d191e8d2 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/update-email.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/update-email.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/update-name.md b/docs/examples/1.1.x/server-nodejs/examples/users/update-name.md index ea33b7ed513..49140677fd0 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/update-name.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/update-name.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/update-password.md b/docs/examples/1.1.x/server-nodejs/examples/users/update-password.md index e655eea2de1..d95cf5fb54d 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/update-password.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/update-password.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/update-phone-verification.md b/docs/examples/1.1.x/server-nodejs/examples/users/update-phone-verification.md index e6a95f93f87..bb2ddeccf71 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/update-phone-verification.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/update-phone-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/update-phone.md b/docs/examples/1.1.x/server-nodejs/examples/users/update-phone.md index 8db9863c00a..6957b6d666c 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/update-phone.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/update-phone.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/update-prefs.md b/docs/examples/1.1.x/server-nodejs/examples/users/update-prefs.md index 75f1a4298c2..643ebee2204 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/update-prefs.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/update-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-nodejs/examples/users/update-status.md b/docs/examples/1.1.x/server-nodejs/examples/users/update-status.md index ac52d732ea0..1b914dba72f 100644 --- a/docs/examples/1.1.x/server-nodejs/examples/users/update-status.md +++ b/docs/examples/1.1.x/server-nodejs/examples/users/update-status.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/account/create-phone-verification.md b/docs/examples/1.1.x/server-php/examples/account/create-phone-verification.md index 1c41a30ce8d..30d16371745 100644 --- a/docs/examples/1.1.x/server-php/examples/account/create-phone-verification.md +++ b/docs/examples/1.1.x/server-php/examples/account/create-phone-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/create-recovery.md b/docs/examples/1.1.x/server-php/examples/account/create-recovery.md index 8ca78fc37bb..513037c533e 100644 --- a/docs/examples/1.1.x/server-php/examples/account/create-recovery.md +++ b/docs/examples/1.1.x/server-php/examples/account/create-recovery.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/create-verification.md b/docs/examples/1.1.x/server-php/examples/account/create-verification.md index 92fb38151c4..4785065601a 100644 --- a/docs/examples/1.1.x/server-php/examples/account/create-verification.md +++ b/docs/examples/1.1.x/server-php/examples/account/create-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/delete-session.md b/docs/examples/1.1.x/server-php/examples/account/delete-session.md index 51bf3e2d414..74847d73b76 100644 --- a/docs/examples/1.1.x/server-php/examples/account/delete-session.md +++ b/docs/examples/1.1.x/server-php/examples/account/delete-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/delete-sessions.md b/docs/examples/1.1.x/server-php/examples/account/delete-sessions.md index bf3bc2a3008..af4b46dbb67 100644 --- a/docs/examples/1.1.x/server-php/examples/account/delete-sessions.md +++ b/docs/examples/1.1.x/server-php/examples/account/delete-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/get-prefs.md b/docs/examples/1.1.x/server-php/examples/account/get-prefs.md index a91b888723a..50ffc766d38 100644 --- a/docs/examples/1.1.x/server-php/examples/account/get-prefs.md +++ b/docs/examples/1.1.x/server-php/examples/account/get-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/get-session.md b/docs/examples/1.1.x/server-php/examples/account/get-session.md index 9e2341ce084..e2112ee4cd6 100644 --- a/docs/examples/1.1.x/server-php/examples/account/get-session.md +++ b/docs/examples/1.1.x/server-php/examples/account/get-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/get.md b/docs/examples/1.1.x/server-php/examples/account/get.md index 4333bf2e734..b9361063ce7 100644 --- a/docs/examples/1.1.x/server-php/examples/account/get.md +++ b/docs/examples/1.1.x/server-php/examples/account/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/list-logs.md b/docs/examples/1.1.x/server-php/examples/account/list-logs.md index 62bc86d6681..1283d9cfd46 100644 --- a/docs/examples/1.1.x/server-php/examples/account/list-logs.md +++ b/docs/examples/1.1.x/server-php/examples/account/list-logs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/list-sessions.md b/docs/examples/1.1.x/server-php/examples/account/list-sessions.md index 7942a3de2a7..a07d303fe9b 100644 --- a/docs/examples/1.1.x/server-php/examples/account/list-sessions.md +++ b/docs/examples/1.1.x/server-php/examples/account/list-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/update-email.md b/docs/examples/1.1.x/server-php/examples/account/update-email.md index a7ac5ede7d2..a6bf5f6c241 100644 --- a/docs/examples/1.1.x/server-php/examples/account/update-email.md +++ b/docs/examples/1.1.x/server-php/examples/account/update-email.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/update-name.md b/docs/examples/1.1.x/server-php/examples/account/update-name.md index 21bac949002..17f51894123 100644 --- a/docs/examples/1.1.x/server-php/examples/account/update-name.md +++ b/docs/examples/1.1.x/server-php/examples/account/update-name.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/update-password.md b/docs/examples/1.1.x/server-php/examples/account/update-password.md index 11c6b48041d..4b17a818d2a 100644 --- a/docs/examples/1.1.x/server-php/examples/account/update-password.md +++ b/docs/examples/1.1.x/server-php/examples/account/update-password.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/update-phone-verification.md b/docs/examples/1.1.x/server-php/examples/account/update-phone-verification.md index 02458727a5a..466f5164645 100644 --- a/docs/examples/1.1.x/server-php/examples/account/update-phone-verification.md +++ b/docs/examples/1.1.x/server-php/examples/account/update-phone-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/update-phone.md b/docs/examples/1.1.x/server-php/examples/account/update-phone.md index eaa18985123..75947cdf536 100644 --- a/docs/examples/1.1.x/server-php/examples/account/update-phone.md +++ b/docs/examples/1.1.x/server-php/examples/account/update-phone.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/update-prefs.md b/docs/examples/1.1.x/server-php/examples/account/update-prefs.md index 96d0be57816..f7687416f2b 100644 --- a/docs/examples/1.1.x/server-php/examples/account/update-prefs.md +++ b/docs/examples/1.1.x/server-php/examples/account/update-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/update-recovery.md b/docs/examples/1.1.x/server-php/examples/account/update-recovery.md index 379b219e6d2..0f8285654b9 100644 --- a/docs/examples/1.1.x/server-php/examples/account/update-recovery.md +++ b/docs/examples/1.1.x/server-php/examples/account/update-recovery.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/update-session.md b/docs/examples/1.1.x/server-php/examples/account/update-session.md index 462be6b914c..264e6b6435a 100644 --- a/docs/examples/1.1.x/server-php/examples/account/update-session.md +++ b/docs/examples/1.1.x/server-php/examples/account/update-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/update-status.md b/docs/examples/1.1.x/server-php/examples/account/update-status.md index b1a1f2c8ec9..ecfb4b56faa 100644 --- a/docs/examples/1.1.x/server-php/examples/account/update-status.md +++ b/docs/examples/1.1.x/server-php/examples/account/update-status.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/account/update-verification.md b/docs/examples/1.1.x/server-php/examples/account/update-verification.md index ad583a422e8..81a86041fda 100644 --- a/docs/examples/1.1.x/server-php/examples/account/update-verification.md +++ b/docs/examples/1.1.x/server-php/examples/account/update-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/avatars/get-browser.md b/docs/examples/1.1.x/server-php/examples/avatars/get-browser.md index 362106f645d..dc92f02acfa 100644 --- a/docs/examples/1.1.x/server-php/examples/avatars/get-browser.md +++ b/docs/examples/1.1.x/server-php/examples/avatars/get-browser.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/avatars/get-credit-card.md b/docs/examples/1.1.x/server-php/examples/avatars/get-credit-card.md index c85ebeac2eb..6808432f42d 100644 --- a/docs/examples/1.1.x/server-php/examples/avatars/get-credit-card.md +++ b/docs/examples/1.1.x/server-php/examples/avatars/get-credit-card.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/avatars/get-favicon.md b/docs/examples/1.1.x/server-php/examples/avatars/get-favicon.md index 088524e0519..4266898e6ae 100644 --- a/docs/examples/1.1.x/server-php/examples/avatars/get-favicon.md +++ b/docs/examples/1.1.x/server-php/examples/avatars/get-favicon.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/avatars/get-flag.md b/docs/examples/1.1.x/server-php/examples/avatars/get-flag.md index 2f2705b61fb..df76fff7d8b 100644 --- a/docs/examples/1.1.x/server-php/examples/avatars/get-flag.md +++ b/docs/examples/1.1.x/server-php/examples/avatars/get-flag.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/avatars/get-image.md b/docs/examples/1.1.x/server-php/examples/avatars/get-image.md index d576232a42c..bc0b285de54 100644 --- a/docs/examples/1.1.x/server-php/examples/avatars/get-image.md +++ b/docs/examples/1.1.x/server-php/examples/avatars/get-image.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/avatars/get-initials.md b/docs/examples/1.1.x/server-php/examples/avatars/get-initials.md index 4e924c70624..eafe65f3d77 100644 --- a/docs/examples/1.1.x/server-php/examples/avatars/get-initials.md +++ b/docs/examples/1.1.x/server-php/examples/avatars/get-initials.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/avatars/get-q-r.md b/docs/examples/1.1.x/server-php/examples/avatars/get-q-r.md index fde6e35b77a..ff2bbf4a385 100644 --- a/docs/examples/1.1.x/server-php/examples/avatars/get-q-r.md +++ b/docs/examples/1.1.x/server-php/examples/avatars/get-q-r.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/create-boolean-attribute.md b/docs/examples/1.1.x/server-php/examples/databases/create-boolean-attribute.md index 17c92241b4a..7ea50ba3788 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.1.x/server-php/examples/databases/create-boolean-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/create-collection.md b/docs/examples/1.1.x/server-php/examples/databases/create-collection.md index 2fd5fb61c07..7bf6139f45c 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/create-collection.md +++ b/docs/examples/1.1.x/server-php/examples/databases/create-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/create-datetime-attribute.md b/docs/examples/1.1.x/server-php/examples/databases/create-datetime-attribute.md index 284163c266e..8cff5f18974 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.1.x/server-php/examples/databases/create-datetime-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/create-document.md b/docs/examples/1.1.x/server-php/examples/databases/create-document.md index 509160b9ad6..b5ed74d1d85 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/create-document.md +++ b/docs/examples/1.1.x/server-php/examples/databases/create-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/create-email-attribute.md b/docs/examples/1.1.x/server-php/examples/databases/create-email-attribute.md index df68be7fb02..2fef5160db4 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/create-email-attribute.md +++ b/docs/examples/1.1.x/server-php/examples/databases/create-email-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/create-enum-attribute.md b/docs/examples/1.1.x/server-php/examples/databases/create-enum-attribute.md index c469679fd73..baeeb8edfbf 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.1.x/server-php/examples/databases/create-enum-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/create-float-attribute.md b/docs/examples/1.1.x/server-php/examples/databases/create-float-attribute.md index c182d0a7744..177647813c0 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/create-float-attribute.md +++ b/docs/examples/1.1.x/server-php/examples/databases/create-float-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/create-index.md b/docs/examples/1.1.x/server-php/examples/databases/create-index.md index 6ecd4cc58b8..4046c511a79 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/create-index.md +++ b/docs/examples/1.1.x/server-php/examples/databases/create-index.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/create-integer-attribute.md b/docs/examples/1.1.x/server-php/examples/databases/create-integer-attribute.md index d86ca7056bf..8e5c54ec5ac 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.1.x/server-php/examples/databases/create-integer-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/create-ip-attribute.md b/docs/examples/1.1.x/server-php/examples/databases/create-ip-attribute.md index 823fa994827..fe55cfe2040 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.1.x/server-php/examples/databases/create-ip-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/create-string-attribute.md b/docs/examples/1.1.x/server-php/examples/databases/create-string-attribute.md index 50abd0a18db..7be05ee07ef 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/create-string-attribute.md +++ b/docs/examples/1.1.x/server-php/examples/databases/create-string-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/create-url-attribute.md b/docs/examples/1.1.x/server-php/examples/databases/create-url-attribute.md index 5520cb13341..2380d74c43e 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/create-url-attribute.md +++ b/docs/examples/1.1.x/server-php/examples/databases/create-url-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/create.md b/docs/examples/1.1.x/server-php/examples/databases/create.md index 16176b9b40b..f05690391aa 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/create.md +++ b/docs/examples/1.1.x/server-php/examples/databases/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/delete-attribute.md b/docs/examples/1.1.x/server-php/examples/databases/delete-attribute.md index d89c7de4f72..e46374ca423 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/delete-attribute.md +++ b/docs/examples/1.1.x/server-php/examples/databases/delete-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/delete-collection.md b/docs/examples/1.1.x/server-php/examples/databases/delete-collection.md index 29c627bbf0d..f5ffb2c75a4 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/delete-collection.md +++ b/docs/examples/1.1.x/server-php/examples/databases/delete-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/delete-document.md b/docs/examples/1.1.x/server-php/examples/databases/delete-document.md index 9d5f1f0d516..523d3b5e0e3 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/delete-document.md +++ b/docs/examples/1.1.x/server-php/examples/databases/delete-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/delete-index.md b/docs/examples/1.1.x/server-php/examples/databases/delete-index.md index 073aa3a82e1..5739f5ce6b5 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/delete-index.md +++ b/docs/examples/1.1.x/server-php/examples/databases/delete-index.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/delete.md b/docs/examples/1.1.x/server-php/examples/databases/delete.md index 3dab79bc99f..0cc8b06106e 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/delete.md +++ b/docs/examples/1.1.x/server-php/examples/databases/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/get-attribute.md b/docs/examples/1.1.x/server-php/examples/databases/get-attribute.md index c286a7692af..5a109b7594f 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/get-attribute.md +++ b/docs/examples/1.1.x/server-php/examples/databases/get-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/get-collection.md b/docs/examples/1.1.x/server-php/examples/databases/get-collection.md index 7cc578df8d7..6d665e46018 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/get-collection.md +++ b/docs/examples/1.1.x/server-php/examples/databases/get-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/get-document.md b/docs/examples/1.1.x/server-php/examples/databases/get-document.md index 7637e035e23..0397d6cbd55 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/get-document.md +++ b/docs/examples/1.1.x/server-php/examples/databases/get-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/get-index.md b/docs/examples/1.1.x/server-php/examples/databases/get-index.md index a674a5935e9..ff39044a1fa 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/get-index.md +++ b/docs/examples/1.1.x/server-php/examples/databases/get-index.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/get.md b/docs/examples/1.1.x/server-php/examples/databases/get.md index adc415f9a51..f87400b7dd0 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/get.md +++ b/docs/examples/1.1.x/server-php/examples/databases/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/list-attributes.md b/docs/examples/1.1.x/server-php/examples/databases/list-attributes.md index 424c4b2405c..decd3939449 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/list-attributes.md +++ b/docs/examples/1.1.x/server-php/examples/databases/list-attributes.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/list-collections.md b/docs/examples/1.1.x/server-php/examples/databases/list-collections.md index 3f311f31385..7c0810a073b 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/list-collections.md +++ b/docs/examples/1.1.x/server-php/examples/databases/list-collections.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/list-documents.md b/docs/examples/1.1.x/server-php/examples/databases/list-documents.md index c9a6bbe4ff5..c2a1d47d2a6 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/list-documents.md +++ b/docs/examples/1.1.x/server-php/examples/databases/list-documents.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/list-indexes.md b/docs/examples/1.1.x/server-php/examples/databases/list-indexes.md index 733d20b9338..ecf4797d654 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/list-indexes.md +++ b/docs/examples/1.1.x/server-php/examples/databases/list-indexes.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/list.md b/docs/examples/1.1.x/server-php/examples/databases/list.md index 45963718d3b..6882d17e977 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/list.md +++ b/docs/examples/1.1.x/server-php/examples/databases/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/update-collection.md b/docs/examples/1.1.x/server-php/examples/databases/update-collection.md index 878bf209865..9eedede688b 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/update-collection.md +++ b/docs/examples/1.1.x/server-php/examples/databases/update-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/update-document.md b/docs/examples/1.1.x/server-php/examples/databases/update-document.md index 796e4600eb7..56310e155f8 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/update-document.md +++ b/docs/examples/1.1.x/server-php/examples/databases/update-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/databases/update.md b/docs/examples/1.1.x/server-php/examples/databases/update.md index db1ae7688e8..b1f0589be9a 100644 --- a/docs/examples/1.1.x/server-php/examples/databases/update.md +++ b/docs/examples/1.1.x/server-php/examples/databases/update.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/create-build.md b/docs/examples/1.1.x/server-php/examples/functions/create-build.md index ac66cc2eb25..cc83570c3a0 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/create-build.md +++ b/docs/examples/1.1.x/server-php/examples/functions/create-build.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/create-deployment.md b/docs/examples/1.1.x/server-php/examples/functions/create-deployment.md index a556cace24d..f23873acb8f 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/create-deployment.md +++ b/docs/examples/1.1.x/server-php/examples/functions/create-deployment.md @@ -7,7 +7,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/create-execution.md b/docs/examples/1.1.x/server-php/examples/functions/create-execution.md index 038126a728c..bc6138825ff 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/create-execution.md +++ b/docs/examples/1.1.x/server-php/examples/functions/create-execution.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/create-variable.md b/docs/examples/1.1.x/server-php/examples/functions/create-variable.md index f09e61861ee..57244ec1f45 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/create-variable.md +++ b/docs/examples/1.1.x/server-php/examples/functions/create-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/create.md b/docs/examples/1.1.x/server-php/examples/functions/create.md index 7fef274c7dd..29da02c1822 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/create.md +++ b/docs/examples/1.1.x/server-php/examples/functions/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/delete-deployment.md b/docs/examples/1.1.x/server-php/examples/functions/delete-deployment.md index 7227cd995f5..bbc65aada12 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/delete-deployment.md +++ b/docs/examples/1.1.x/server-php/examples/functions/delete-deployment.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/delete-variable.md b/docs/examples/1.1.x/server-php/examples/functions/delete-variable.md index a457846492b..42376a0e9f8 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/delete-variable.md +++ b/docs/examples/1.1.x/server-php/examples/functions/delete-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/delete.md b/docs/examples/1.1.x/server-php/examples/functions/delete.md index d06c732f57d..2abe85b75d8 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/delete.md +++ b/docs/examples/1.1.x/server-php/examples/functions/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/get-deployment.md b/docs/examples/1.1.x/server-php/examples/functions/get-deployment.md index 4c4fe49eb3b..19f4d58392c 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/get-deployment.md +++ b/docs/examples/1.1.x/server-php/examples/functions/get-deployment.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/get-execution.md b/docs/examples/1.1.x/server-php/examples/functions/get-execution.md index ff59dc1cfeb..994f2be976f 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/get-execution.md +++ b/docs/examples/1.1.x/server-php/examples/functions/get-execution.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/get-variable.md b/docs/examples/1.1.x/server-php/examples/functions/get-variable.md index e80b8f9fc0d..34012f9fbbc 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/get-variable.md +++ b/docs/examples/1.1.x/server-php/examples/functions/get-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/get.md b/docs/examples/1.1.x/server-php/examples/functions/get.md index aef58062590..2f5e69b142c 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/get.md +++ b/docs/examples/1.1.x/server-php/examples/functions/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/list-deployments.md b/docs/examples/1.1.x/server-php/examples/functions/list-deployments.md index 366e5fdc71f..db4524430b0 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/list-deployments.md +++ b/docs/examples/1.1.x/server-php/examples/functions/list-deployments.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/list-executions.md b/docs/examples/1.1.x/server-php/examples/functions/list-executions.md index 34a80ad434d..f431a4a9374 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/list-executions.md +++ b/docs/examples/1.1.x/server-php/examples/functions/list-executions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/list-runtimes.md b/docs/examples/1.1.x/server-php/examples/functions/list-runtimes.md index b35dadfec97..23089ec3ea4 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/list-runtimes.md +++ b/docs/examples/1.1.x/server-php/examples/functions/list-runtimes.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/list-variables.md b/docs/examples/1.1.x/server-php/examples/functions/list-variables.md index cf742891573..aa84e28a6d7 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/list-variables.md +++ b/docs/examples/1.1.x/server-php/examples/functions/list-variables.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/list.md b/docs/examples/1.1.x/server-php/examples/functions/list.md index f57875572e0..05925721359 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/list.md +++ b/docs/examples/1.1.x/server-php/examples/functions/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/update-deployment.md b/docs/examples/1.1.x/server-php/examples/functions/update-deployment.md index b5f09cd0180..3e259458ffc 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/update-deployment.md +++ b/docs/examples/1.1.x/server-php/examples/functions/update-deployment.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/update-variable.md b/docs/examples/1.1.x/server-php/examples/functions/update-variable.md index 4eb52d94d3f..f1952d8b5ce 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/update-variable.md +++ b/docs/examples/1.1.x/server-php/examples/functions/update-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/functions/update.md b/docs/examples/1.1.x/server-php/examples/functions/update.md index 52f15eecb70..2b3d587887f 100644 --- a/docs/examples/1.1.x/server-php/examples/functions/update.md +++ b/docs/examples/1.1.x/server-php/examples/functions/update.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/health/get-antivirus.md b/docs/examples/1.1.x/server-php/examples/health/get-antivirus.md index 4f1483514b7..f31c642d9f7 100644 --- a/docs/examples/1.1.x/server-php/examples/health/get-antivirus.md +++ b/docs/examples/1.1.x/server-php/examples/health/get-antivirus.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/health/get-cache.md b/docs/examples/1.1.x/server-php/examples/health/get-cache.md index 3d1b19b3ef7..90cc8d86868 100644 --- a/docs/examples/1.1.x/server-php/examples/health/get-cache.md +++ b/docs/examples/1.1.x/server-php/examples/health/get-cache.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/health/get-d-b.md b/docs/examples/1.1.x/server-php/examples/health/get-d-b.md index c03ba23723a..1ff93f4707a 100644 --- a/docs/examples/1.1.x/server-php/examples/health/get-d-b.md +++ b/docs/examples/1.1.x/server-php/examples/health/get-d-b.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/health/get-queue-certificates.md b/docs/examples/1.1.x/server-php/examples/health/get-queue-certificates.md index 76236de7b59..e58ba39c47b 100644 --- a/docs/examples/1.1.x/server-php/examples/health/get-queue-certificates.md +++ b/docs/examples/1.1.x/server-php/examples/health/get-queue-certificates.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/health/get-queue-functions.md b/docs/examples/1.1.x/server-php/examples/health/get-queue-functions.md index 31f65de1d12..699b4d390cd 100644 --- a/docs/examples/1.1.x/server-php/examples/health/get-queue-functions.md +++ b/docs/examples/1.1.x/server-php/examples/health/get-queue-functions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/health/get-queue-logs.md b/docs/examples/1.1.x/server-php/examples/health/get-queue-logs.md index ff1adb2a416..f55e8611766 100644 --- a/docs/examples/1.1.x/server-php/examples/health/get-queue-logs.md +++ b/docs/examples/1.1.x/server-php/examples/health/get-queue-logs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/health/get-queue-webhooks.md b/docs/examples/1.1.x/server-php/examples/health/get-queue-webhooks.md index 99592bcface..838f442822b 100644 --- a/docs/examples/1.1.x/server-php/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.1.x/server-php/examples/health/get-queue-webhooks.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/health/get-storage-local.md b/docs/examples/1.1.x/server-php/examples/health/get-storage-local.md index 55212c36aeb..f156c7a6fe5 100644 --- a/docs/examples/1.1.x/server-php/examples/health/get-storage-local.md +++ b/docs/examples/1.1.x/server-php/examples/health/get-storage-local.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/health/get-time.md b/docs/examples/1.1.x/server-php/examples/health/get-time.md index 54101247869..2efbd2d2377 100644 --- a/docs/examples/1.1.x/server-php/examples/health/get-time.md +++ b/docs/examples/1.1.x/server-php/examples/health/get-time.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/health/get.md b/docs/examples/1.1.x/server-php/examples/health/get.md index 62cab8acf2a..9a080c8e4d6 100644 --- a/docs/examples/1.1.x/server-php/examples/health/get.md +++ b/docs/examples/1.1.x/server-php/examples/health/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/locale/get.md b/docs/examples/1.1.x/server-php/examples/locale/get.md index c4910463c59..3a8e04cc538 100644 --- a/docs/examples/1.1.x/server-php/examples/locale/get.md +++ b/docs/examples/1.1.x/server-php/examples/locale/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/locale/list-continents.md b/docs/examples/1.1.x/server-php/examples/locale/list-continents.md index 9cd8fb13998..1103c8b847c 100644 --- a/docs/examples/1.1.x/server-php/examples/locale/list-continents.md +++ b/docs/examples/1.1.x/server-php/examples/locale/list-continents.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/locale/list-countries-e-u.md b/docs/examples/1.1.x/server-php/examples/locale/list-countries-e-u.md index 1f2ef98c963..7ad6b052996 100644 --- a/docs/examples/1.1.x/server-php/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.1.x/server-php/examples/locale/list-countries-e-u.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/locale/list-countries-phones.md b/docs/examples/1.1.x/server-php/examples/locale/list-countries-phones.md index 6f8acb7467d..3f5154c98c9 100644 --- a/docs/examples/1.1.x/server-php/examples/locale/list-countries-phones.md +++ b/docs/examples/1.1.x/server-php/examples/locale/list-countries-phones.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/locale/list-countries.md b/docs/examples/1.1.x/server-php/examples/locale/list-countries.md index 28c518e82a6..4abf4cc4919 100644 --- a/docs/examples/1.1.x/server-php/examples/locale/list-countries.md +++ b/docs/examples/1.1.x/server-php/examples/locale/list-countries.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/locale/list-currencies.md b/docs/examples/1.1.x/server-php/examples/locale/list-currencies.md index 37784f3d1ee..8b115f898ce 100644 --- a/docs/examples/1.1.x/server-php/examples/locale/list-currencies.md +++ b/docs/examples/1.1.x/server-php/examples/locale/list-currencies.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/locale/list-languages.md b/docs/examples/1.1.x/server-php/examples/locale/list-languages.md index 8b4f082cb0b..74347ff87b2 100644 --- a/docs/examples/1.1.x/server-php/examples/locale/list-languages.md +++ b/docs/examples/1.1.x/server-php/examples/locale/list-languages.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/storage/create-bucket.md b/docs/examples/1.1.x/server-php/examples/storage/create-bucket.md index bf54c22a471..3e43cd52b4e 100644 --- a/docs/examples/1.1.x/server-php/examples/storage/create-bucket.md +++ b/docs/examples/1.1.x/server-php/examples/storage/create-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/storage/create-file.md b/docs/examples/1.1.x/server-php/examples/storage/create-file.md index e2cfce7ae92..3c0fc4c71f1 100644 --- a/docs/examples/1.1.x/server-php/examples/storage/create-file.md +++ b/docs/examples/1.1.x/server-php/examples/storage/create-file.md @@ -7,7 +7,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/storage/delete-bucket.md b/docs/examples/1.1.x/server-php/examples/storage/delete-bucket.md index b3659b6276f..bfae9b70a7b 100644 --- a/docs/examples/1.1.x/server-php/examples/storage/delete-bucket.md +++ b/docs/examples/1.1.x/server-php/examples/storage/delete-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/storage/delete-file.md b/docs/examples/1.1.x/server-php/examples/storage/delete-file.md index 00db8551b37..5fb21e02103 100644 --- a/docs/examples/1.1.x/server-php/examples/storage/delete-file.md +++ b/docs/examples/1.1.x/server-php/examples/storage/delete-file.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/storage/get-bucket.md b/docs/examples/1.1.x/server-php/examples/storage/get-bucket.md index d4d152aff49..e816ef192fd 100644 --- a/docs/examples/1.1.x/server-php/examples/storage/get-bucket.md +++ b/docs/examples/1.1.x/server-php/examples/storage/get-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/storage/get-file-download.md b/docs/examples/1.1.x/server-php/examples/storage/get-file-download.md index 0c7fefda37f..9a181f70070 100644 --- a/docs/examples/1.1.x/server-php/examples/storage/get-file-download.md +++ b/docs/examples/1.1.x/server-php/examples/storage/get-file-download.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/storage/get-file-preview.md b/docs/examples/1.1.x/server-php/examples/storage/get-file-preview.md index c1b91e5c295..d30c0ec450c 100644 --- a/docs/examples/1.1.x/server-php/examples/storage/get-file-preview.md +++ b/docs/examples/1.1.x/server-php/examples/storage/get-file-preview.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/storage/get-file-view.md b/docs/examples/1.1.x/server-php/examples/storage/get-file-view.md index f527c1b7440..983fb0c52fa 100644 --- a/docs/examples/1.1.x/server-php/examples/storage/get-file-view.md +++ b/docs/examples/1.1.x/server-php/examples/storage/get-file-view.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/storage/get-file.md b/docs/examples/1.1.x/server-php/examples/storage/get-file.md index cb56c96a428..799e1192d06 100644 --- a/docs/examples/1.1.x/server-php/examples/storage/get-file.md +++ b/docs/examples/1.1.x/server-php/examples/storage/get-file.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/storage/list-buckets.md b/docs/examples/1.1.x/server-php/examples/storage/list-buckets.md index b92dc82bcbe..235cc8f9b63 100644 --- a/docs/examples/1.1.x/server-php/examples/storage/list-buckets.md +++ b/docs/examples/1.1.x/server-php/examples/storage/list-buckets.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/storage/list-files.md b/docs/examples/1.1.x/server-php/examples/storage/list-files.md index e0b79186e45..12b697fc81e 100644 --- a/docs/examples/1.1.x/server-php/examples/storage/list-files.md +++ b/docs/examples/1.1.x/server-php/examples/storage/list-files.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/storage/update-bucket.md b/docs/examples/1.1.x/server-php/examples/storage/update-bucket.md index 5e46dfc83bb..6985651b9bf 100644 --- a/docs/examples/1.1.x/server-php/examples/storage/update-bucket.md +++ b/docs/examples/1.1.x/server-php/examples/storage/update-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/storage/update-file.md b/docs/examples/1.1.x/server-php/examples/storage/update-file.md index 1d3e01e99a9..6dc64b1f5ba 100644 --- a/docs/examples/1.1.x/server-php/examples/storage/update-file.md +++ b/docs/examples/1.1.x/server-php/examples/storage/update-file.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/teams/create-membership.md b/docs/examples/1.1.x/server-php/examples/teams/create-membership.md index 60d3d3dc6fd..0c2c684b72d 100644 --- a/docs/examples/1.1.x/server-php/examples/teams/create-membership.md +++ b/docs/examples/1.1.x/server-php/examples/teams/create-membership.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/teams/create.md b/docs/examples/1.1.x/server-php/examples/teams/create.md index e5efe49b302..551922be145 100644 --- a/docs/examples/1.1.x/server-php/examples/teams/create.md +++ b/docs/examples/1.1.x/server-php/examples/teams/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/teams/delete-membership.md b/docs/examples/1.1.x/server-php/examples/teams/delete-membership.md index 2b40c1742e2..5d070ee09c6 100644 --- a/docs/examples/1.1.x/server-php/examples/teams/delete-membership.md +++ b/docs/examples/1.1.x/server-php/examples/teams/delete-membership.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/teams/delete.md b/docs/examples/1.1.x/server-php/examples/teams/delete.md index 5ec2ed995c9..009c7eee2ec 100644 --- a/docs/examples/1.1.x/server-php/examples/teams/delete.md +++ b/docs/examples/1.1.x/server-php/examples/teams/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/teams/get-membership.md b/docs/examples/1.1.x/server-php/examples/teams/get-membership.md index fdd3024783d..f23b8a7eb0e 100644 --- a/docs/examples/1.1.x/server-php/examples/teams/get-membership.md +++ b/docs/examples/1.1.x/server-php/examples/teams/get-membership.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/teams/get.md b/docs/examples/1.1.x/server-php/examples/teams/get.md index 94b8a2695a7..b7b4a43ac6f 100644 --- a/docs/examples/1.1.x/server-php/examples/teams/get.md +++ b/docs/examples/1.1.x/server-php/examples/teams/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/teams/list-memberships.md b/docs/examples/1.1.x/server-php/examples/teams/list-memberships.md index f23b78eca10..3a15fd91bea 100644 --- a/docs/examples/1.1.x/server-php/examples/teams/list-memberships.md +++ b/docs/examples/1.1.x/server-php/examples/teams/list-memberships.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/teams/list.md b/docs/examples/1.1.x/server-php/examples/teams/list.md index 66f54b6e1c9..970b2b08d25 100644 --- a/docs/examples/1.1.x/server-php/examples/teams/list.md +++ b/docs/examples/1.1.x/server-php/examples/teams/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/teams/update-membership-roles.md b/docs/examples/1.1.x/server-php/examples/teams/update-membership-roles.md index 59239975519..c744578712f 100644 --- a/docs/examples/1.1.x/server-php/examples/teams/update-membership-roles.md +++ b/docs/examples/1.1.x/server-php/examples/teams/update-membership-roles.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/teams/update-membership-status.md b/docs/examples/1.1.x/server-php/examples/teams/update-membership-status.md index 15504ad4215..0d0a1258863 100644 --- a/docs/examples/1.1.x/server-php/examples/teams/update-membership-status.md +++ b/docs/examples/1.1.x/server-php/examples/teams/update-membership-status.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.1.x/server-php/examples/teams/update.md b/docs/examples/1.1.x/server-php/examples/teams/update.md index 267112cc130..91634f6f8f8 100644 --- a/docs/examples/1.1.x/server-php/examples/teams/update.md +++ b/docs/examples/1.1.x/server-php/examples/teams/update.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/create-argon2user.md b/docs/examples/1.1.x/server-php/examples/users/create-argon2user.md index 1036ca109e1..83bc0408277 100644 --- a/docs/examples/1.1.x/server-php/examples/users/create-argon2user.md +++ b/docs/examples/1.1.x/server-php/examples/users/create-argon2user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/create-bcrypt-user.md b/docs/examples/1.1.x/server-php/examples/users/create-bcrypt-user.md index de15110a4ed..ce1e2d5633b 100644 --- a/docs/examples/1.1.x/server-php/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.1.x/server-php/examples/users/create-bcrypt-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/create-m-d5user.md b/docs/examples/1.1.x/server-php/examples/users/create-m-d5user.md index 15f4ebe0aab..d78ffa24d4f 100644 --- a/docs/examples/1.1.x/server-php/examples/users/create-m-d5user.md +++ b/docs/examples/1.1.x/server-php/examples/users/create-m-d5user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/create-p-h-pass-user.md b/docs/examples/1.1.x/server-php/examples/users/create-p-h-pass-user.md index 2eb682fc42f..097636038a6 100644 --- a/docs/examples/1.1.x/server-php/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.1.x/server-php/examples/users/create-p-h-pass-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/create-s-h-a-user.md b/docs/examples/1.1.x/server-php/examples/users/create-s-h-a-user.md index 3e63bd99282..ab5df354cc8 100644 --- a/docs/examples/1.1.x/server-php/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.1.x/server-php/examples/users/create-s-h-a-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/create-scrypt-modified-user.md b/docs/examples/1.1.x/server-php/examples/users/create-scrypt-modified-user.md index bcf7c52cd59..bb71afe901d 100644 --- a/docs/examples/1.1.x/server-php/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.1.x/server-php/examples/users/create-scrypt-modified-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/create-scrypt-user.md b/docs/examples/1.1.x/server-php/examples/users/create-scrypt-user.md index 43a4bcc2e2a..563268784da 100644 --- a/docs/examples/1.1.x/server-php/examples/users/create-scrypt-user.md +++ b/docs/examples/1.1.x/server-php/examples/users/create-scrypt-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/create.md b/docs/examples/1.1.x/server-php/examples/users/create.md index dab8a5ed708..67ab2660eb9 100644 --- a/docs/examples/1.1.x/server-php/examples/users/create.md +++ b/docs/examples/1.1.x/server-php/examples/users/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/delete-session.md b/docs/examples/1.1.x/server-php/examples/users/delete-session.md index c6a507c7b20..6ce035a739b 100644 --- a/docs/examples/1.1.x/server-php/examples/users/delete-session.md +++ b/docs/examples/1.1.x/server-php/examples/users/delete-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/delete-sessions.md b/docs/examples/1.1.x/server-php/examples/users/delete-sessions.md index 570d258683f..a4a07242bde 100644 --- a/docs/examples/1.1.x/server-php/examples/users/delete-sessions.md +++ b/docs/examples/1.1.x/server-php/examples/users/delete-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/delete.md b/docs/examples/1.1.x/server-php/examples/users/delete.md index 1d5a822fde0..63279e1b46e 100644 --- a/docs/examples/1.1.x/server-php/examples/users/delete.md +++ b/docs/examples/1.1.x/server-php/examples/users/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/get-prefs.md b/docs/examples/1.1.x/server-php/examples/users/get-prefs.md index e9c8c58bf36..d52706530e1 100644 --- a/docs/examples/1.1.x/server-php/examples/users/get-prefs.md +++ b/docs/examples/1.1.x/server-php/examples/users/get-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/get.md b/docs/examples/1.1.x/server-php/examples/users/get.md index 51482d37eb0..5f84f327db0 100644 --- a/docs/examples/1.1.x/server-php/examples/users/get.md +++ b/docs/examples/1.1.x/server-php/examples/users/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/list-logs.md b/docs/examples/1.1.x/server-php/examples/users/list-logs.md index e6287563c2d..d5166c0b668 100644 --- a/docs/examples/1.1.x/server-php/examples/users/list-logs.md +++ b/docs/examples/1.1.x/server-php/examples/users/list-logs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/list-memberships.md b/docs/examples/1.1.x/server-php/examples/users/list-memberships.md index 039216bc1ec..84ebf8e8a13 100644 --- a/docs/examples/1.1.x/server-php/examples/users/list-memberships.md +++ b/docs/examples/1.1.x/server-php/examples/users/list-memberships.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/list-sessions.md b/docs/examples/1.1.x/server-php/examples/users/list-sessions.md index e09b65d475c..100df65a488 100644 --- a/docs/examples/1.1.x/server-php/examples/users/list-sessions.md +++ b/docs/examples/1.1.x/server-php/examples/users/list-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/list.md b/docs/examples/1.1.x/server-php/examples/users/list.md index 8d86e863728..30929b467b7 100644 --- a/docs/examples/1.1.x/server-php/examples/users/list.md +++ b/docs/examples/1.1.x/server-php/examples/users/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/update-email-verification.md b/docs/examples/1.1.x/server-php/examples/users/update-email-verification.md index 67c3e12ee0b..6b0b5b0d4c2 100644 --- a/docs/examples/1.1.x/server-php/examples/users/update-email-verification.md +++ b/docs/examples/1.1.x/server-php/examples/users/update-email-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/update-email.md b/docs/examples/1.1.x/server-php/examples/users/update-email.md index c6a7412b893..fe35bf057e4 100644 --- a/docs/examples/1.1.x/server-php/examples/users/update-email.md +++ b/docs/examples/1.1.x/server-php/examples/users/update-email.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/update-name.md b/docs/examples/1.1.x/server-php/examples/users/update-name.md index 598ef2a3a2c..838f4367586 100644 --- a/docs/examples/1.1.x/server-php/examples/users/update-name.md +++ b/docs/examples/1.1.x/server-php/examples/users/update-name.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/update-password.md b/docs/examples/1.1.x/server-php/examples/users/update-password.md index a4632c19849..bd0e3283368 100644 --- a/docs/examples/1.1.x/server-php/examples/users/update-password.md +++ b/docs/examples/1.1.x/server-php/examples/users/update-password.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/update-phone-verification.md b/docs/examples/1.1.x/server-php/examples/users/update-phone-verification.md index e9929a547b6..e18b57274aa 100644 --- a/docs/examples/1.1.x/server-php/examples/users/update-phone-verification.md +++ b/docs/examples/1.1.x/server-php/examples/users/update-phone-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/update-phone.md b/docs/examples/1.1.x/server-php/examples/users/update-phone.md index 0df380a23a9..610b3a65e75 100644 --- a/docs/examples/1.1.x/server-php/examples/users/update-phone.md +++ b/docs/examples/1.1.x/server-php/examples/users/update-phone.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/update-prefs.md b/docs/examples/1.1.x/server-php/examples/users/update-prefs.md index 9c4ebaae2b5..6aaa9451d64 100644 --- a/docs/examples/1.1.x/server-php/examples/users/update-prefs.md +++ b/docs/examples/1.1.x/server-php/examples/users/update-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-php/examples/users/update-status.md b/docs/examples/1.1.x/server-php/examples/users/update-status.md index ad3f6bde79b..dbe489de72f 100644 --- a/docs/examples/1.1.x/server-php/examples/users/update-status.md +++ b/docs/examples/1.1.x/server-php/examples/users/update-status.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.1.x/server-python/examples/account/create-phone-verification.md b/docs/examples/1.1.x/server-python/examples/account/create-phone-verification.md index 2203cdbd0ca..1e8670084d2 100644 --- a/docs/examples/1.1.x/server-python/examples/account/create-phone-verification.md +++ b/docs/examples/1.1.x/server-python/examples/account/create-phone-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/create-recovery.md b/docs/examples/1.1.x/server-python/examples/account/create-recovery.md index 21130fef6db..c86108ff4ee 100644 --- a/docs/examples/1.1.x/server-python/examples/account/create-recovery.md +++ b/docs/examples/1.1.x/server-python/examples/account/create-recovery.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/create-verification.md b/docs/examples/1.1.x/server-python/examples/account/create-verification.md index c45d0d462e0..0bc3954565b 100644 --- a/docs/examples/1.1.x/server-python/examples/account/create-verification.md +++ b/docs/examples/1.1.x/server-python/examples/account/create-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/delete-session.md b/docs/examples/1.1.x/server-python/examples/account/delete-session.md index 8095cdc07fe..449a7861695 100644 --- a/docs/examples/1.1.x/server-python/examples/account/delete-session.md +++ b/docs/examples/1.1.x/server-python/examples/account/delete-session.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/delete-sessions.md b/docs/examples/1.1.x/server-python/examples/account/delete-sessions.md index 1728d61e67d..4f208b93a6c 100644 --- a/docs/examples/1.1.x/server-python/examples/account/delete-sessions.md +++ b/docs/examples/1.1.x/server-python/examples/account/delete-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/get-prefs.md b/docs/examples/1.1.x/server-python/examples/account/get-prefs.md index da2fd7628e8..7063f0c3aa7 100644 --- a/docs/examples/1.1.x/server-python/examples/account/get-prefs.md +++ b/docs/examples/1.1.x/server-python/examples/account/get-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/get-session.md b/docs/examples/1.1.x/server-python/examples/account/get-session.md index 25b8f038373..def8838e19a 100644 --- a/docs/examples/1.1.x/server-python/examples/account/get-session.md +++ b/docs/examples/1.1.x/server-python/examples/account/get-session.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/get.md b/docs/examples/1.1.x/server-python/examples/account/get.md index f75bad7769d..d84d3785836 100644 --- a/docs/examples/1.1.x/server-python/examples/account/get.md +++ b/docs/examples/1.1.x/server-python/examples/account/get.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/list-logs.md b/docs/examples/1.1.x/server-python/examples/account/list-logs.md index 65802d8b0d3..601d243dca0 100644 --- a/docs/examples/1.1.x/server-python/examples/account/list-logs.md +++ b/docs/examples/1.1.x/server-python/examples/account/list-logs.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/list-sessions.md b/docs/examples/1.1.x/server-python/examples/account/list-sessions.md index 12d5c81d923..fcdfd857e72 100644 --- a/docs/examples/1.1.x/server-python/examples/account/list-sessions.md +++ b/docs/examples/1.1.x/server-python/examples/account/list-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/update-email.md b/docs/examples/1.1.x/server-python/examples/account/update-email.md index f4a6776f725..a2e393ae4ae 100644 --- a/docs/examples/1.1.x/server-python/examples/account/update-email.md +++ b/docs/examples/1.1.x/server-python/examples/account/update-email.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/update-name.md b/docs/examples/1.1.x/server-python/examples/account/update-name.md index eb1eb6279b1..b56296cb211 100644 --- a/docs/examples/1.1.x/server-python/examples/account/update-name.md +++ b/docs/examples/1.1.x/server-python/examples/account/update-name.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/update-password.md b/docs/examples/1.1.x/server-python/examples/account/update-password.md index 81bc8bbfc38..7adf938ac6a 100644 --- a/docs/examples/1.1.x/server-python/examples/account/update-password.md +++ b/docs/examples/1.1.x/server-python/examples/account/update-password.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/update-phone-verification.md b/docs/examples/1.1.x/server-python/examples/account/update-phone-verification.md index f2a75b4de95..dcba4273c4c 100644 --- a/docs/examples/1.1.x/server-python/examples/account/update-phone-verification.md +++ b/docs/examples/1.1.x/server-python/examples/account/update-phone-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/update-phone.md b/docs/examples/1.1.x/server-python/examples/account/update-phone.md index aaee1f7eecb..0f6470619ee 100644 --- a/docs/examples/1.1.x/server-python/examples/account/update-phone.md +++ b/docs/examples/1.1.x/server-python/examples/account/update-phone.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/update-prefs.md b/docs/examples/1.1.x/server-python/examples/account/update-prefs.md index e96546b05a1..64e32cee2ab 100644 --- a/docs/examples/1.1.x/server-python/examples/account/update-prefs.md +++ b/docs/examples/1.1.x/server-python/examples/account/update-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/update-recovery.md b/docs/examples/1.1.x/server-python/examples/account/update-recovery.md index b4ea8aa89c6..2bb9b10d2c3 100644 --- a/docs/examples/1.1.x/server-python/examples/account/update-recovery.md +++ b/docs/examples/1.1.x/server-python/examples/account/update-recovery.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/update-session.md b/docs/examples/1.1.x/server-python/examples/account/update-session.md index e7234f78015..16ea0183035 100644 --- a/docs/examples/1.1.x/server-python/examples/account/update-session.md +++ b/docs/examples/1.1.x/server-python/examples/account/update-session.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/update-status.md b/docs/examples/1.1.x/server-python/examples/account/update-status.md index 5924d4d54f9..877b8743d14 100644 --- a/docs/examples/1.1.x/server-python/examples/account/update-status.md +++ b/docs/examples/1.1.x/server-python/examples/account/update-status.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/account/update-verification.md b/docs/examples/1.1.x/server-python/examples/account/update-verification.md index 9a410a54a80..e2aecaa1174 100644 --- a/docs/examples/1.1.x/server-python/examples/account/update-verification.md +++ b/docs/examples/1.1.x/server-python/examples/account/update-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/avatars/get-browser.md b/docs/examples/1.1.x/server-python/examples/avatars/get-browser.md index 9ed56d1d4bc..e29ebcd84d7 100644 --- a/docs/examples/1.1.x/server-python/examples/avatars/get-browser.md +++ b/docs/examples/1.1.x/server-python/examples/avatars/get-browser.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/avatars/get-credit-card.md b/docs/examples/1.1.x/server-python/examples/avatars/get-credit-card.md index 9fa6b0fd1f5..3006186d811 100644 --- a/docs/examples/1.1.x/server-python/examples/avatars/get-credit-card.md +++ b/docs/examples/1.1.x/server-python/examples/avatars/get-credit-card.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/avatars/get-favicon.md b/docs/examples/1.1.x/server-python/examples/avatars/get-favicon.md index 75b0315eae2..b860e801ce4 100644 --- a/docs/examples/1.1.x/server-python/examples/avatars/get-favicon.md +++ b/docs/examples/1.1.x/server-python/examples/avatars/get-favicon.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/avatars/get-flag.md b/docs/examples/1.1.x/server-python/examples/avatars/get-flag.md index 70d2e5f2428..055feb42821 100644 --- a/docs/examples/1.1.x/server-python/examples/avatars/get-flag.md +++ b/docs/examples/1.1.x/server-python/examples/avatars/get-flag.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/avatars/get-image.md b/docs/examples/1.1.x/server-python/examples/avatars/get-image.md index 35015d9620f..1cd0bd01641 100644 --- a/docs/examples/1.1.x/server-python/examples/avatars/get-image.md +++ b/docs/examples/1.1.x/server-python/examples/avatars/get-image.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/avatars/get-initials.md b/docs/examples/1.1.x/server-python/examples/avatars/get-initials.md index 639fa03bc91..9e7e5d2c18d 100644 --- a/docs/examples/1.1.x/server-python/examples/avatars/get-initials.md +++ b/docs/examples/1.1.x/server-python/examples/avatars/get-initials.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/avatars/get-q-r.md b/docs/examples/1.1.x/server-python/examples/avatars/get-q-r.md index 27fc8e29241..b3c3e728ab0 100644 --- a/docs/examples/1.1.x/server-python/examples/avatars/get-q-r.md +++ b/docs/examples/1.1.x/server-python/examples/avatars/get-q-r.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/create-boolean-attribute.md b/docs/examples/1.1.x/server-python/examples/databases/create-boolean-attribute.md index f073d3d3b37..e0f333caabe 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.1.x/server-python/examples/databases/create-boolean-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/create-collection.md b/docs/examples/1.1.x/server-python/examples/databases/create-collection.md index 183c55c4486..ad704dea3d4 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/create-collection.md +++ b/docs/examples/1.1.x/server-python/examples/databases/create-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/create-datetime-attribute.md b/docs/examples/1.1.x/server-python/examples/databases/create-datetime-attribute.md index 5c77689c991..8325de82304 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.1.x/server-python/examples/databases/create-datetime-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/create-document.md b/docs/examples/1.1.x/server-python/examples/databases/create-document.md index aa95de9ebd5..c712b11bdde 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/create-document.md +++ b/docs/examples/1.1.x/server-python/examples/databases/create-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/create-email-attribute.md b/docs/examples/1.1.x/server-python/examples/databases/create-email-attribute.md index 92cdcb2a8fa..05397d6ab06 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/create-email-attribute.md +++ b/docs/examples/1.1.x/server-python/examples/databases/create-email-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/create-enum-attribute.md b/docs/examples/1.1.x/server-python/examples/databases/create-enum-attribute.md index df66f128962..21e46357902 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.1.x/server-python/examples/databases/create-enum-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/create-float-attribute.md b/docs/examples/1.1.x/server-python/examples/databases/create-float-attribute.md index 0bfe4248eb6..b7493dfcedb 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/create-float-attribute.md +++ b/docs/examples/1.1.x/server-python/examples/databases/create-float-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/create-index.md b/docs/examples/1.1.x/server-python/examples/databases/create-index.md index 78a7d3327e7..2237a7397e7 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/create-index.md +++ b/docs/examples/1.1.x/server-python/examples/databases/create-index.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/create-integer-attribute.md b/docs/examples/1.1.x/server-python/examples/databases/create-integer-attribute.md index b3cce2bde48..b8a213bc219 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.1.x/server-python/examples/databases/create-integer-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/create-ip-attribute.md b/docs/examples/1.1.x/server-python/examples/databases/create-ip-attribute.md index 967d284b9a9..85f1cd5b00e 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.1.x/server-python/examples/databases/create-ip-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/create-string-attribute.md b/docs/examples/1.1.x/server-python/examples/databases/create-string-attribute.md index 00bbbe9ce74..1992f71e443 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/create-string-attribute.md +++ b/docs/examples/1.1.x/server-python/examples/databases/create-string-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/create-url-attribute.md b/docs/examples/1.1.x/server-python/examples/databases/create-url-attribute.md index fd5b7f44e37..49e2cbf68c5 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/create-url-attribute.md +++ b/docs/examples/1.1.x/server-python/examples/databases/create-url-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/create.md b/docs/examples/1.1.x/server-python/examples/databases/create.md index e4a832066b1..7c1f63cb145 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/create.md +++ b/docs/examples/1.1.x/server-python/examples/databases/create.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/delete-attribute.md b/docs/examples/1.1.x/server-python/examples/databases/delete-attribute.md index 41871b26622..7ca55adf156 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/delete-attribute.md +++ b/docs/examples/1.1.x/server-python/examples/databases/delete-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/delete-collection.md b/docs/examples/1.1.x/server-python/examples/databases/delete-collection.md index 998bb61fb90..af37479be2e 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/delete-collection.md +++ b/docs/examples/1.1.x/server-python/examples/databases/delete-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/delete-document.md b/docs/examples/1.1.x/server-python/examples/databases/delete-document.md index 605b087b7c2..6a3a3588c68 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/delete-document.md +++ b/docs/examples/1.1.x/server-python/examples/databases/delete-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/delete-index.md b/docs/examples/1.1.x/server-python/examples/databases/delete-index.md index a53e06c0242..5f32135c3b6 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/delete-index.md +++ b/docs/examples/1.1.x/server-python/examples/databases/delete-index.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/delete.md b/docs/examples/1.1.x/server-python/examples/databases/delete.md index 780e1451efb..594f357bbf5 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/delete.md +++ b/docs/examples/1.1.x/server-python/examples/databases/delete.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/get-attribute.md b/docs/examples/1.1.x/server-python/examples/databases/get-attribute.md index 0a6105272ad..b855fbc6003 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/get-attribute.md +++ b/docs/examples/1.1.x/server-python/examples/databases/get-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/get-collection.md b/docs/examples/1.1.x/server-python/examples/databases/get-collection.md index 90f57a366c6..5d176dd2c5d 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/get-collection.md +++ b/docs/examples/1.1.x/server-python/examples/databases/get-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/get-document.md b/docs/examples/1.1.x/server-python/examples/databases/get-document.md index 708538418e3..7a11da3c273 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/get-document.md +++ b/docs/examples/1.1.x/server-python/examples/databases/get-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/get-index.md b/docs/examples/1.1.x/server-python/examples/databases/get-index.md index 3213c666604..6c376c69071 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/get-index.md +++ b/docs/examples/1.1.x/server-python/examples/databases/get-index.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/get.md b/docs/examples/1.1.x/server-python/examples/databases/get.md index 93a46b3fa4d..c8906fc9aff 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/get.md +++ b/docs/examples/1.1.x/server-python/examples/databases/get.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/list-attributes.md b/docs/examples/1.1.x/server-python/examples/databases/list-attributes.md index 632202c8947..3c173668a4a 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/list-attributes.md +++ b/docs/examples/1.1.x/server-python/examples/databases/list-attributes.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/list-collections.md b/docs/examples/1.1.x/server-python/examples/databases/list-collections.md index d0c98dad97e..197229e3081 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/list-collections.md +++ b/docs/examples/1.1.x/server-python/examples/databases/list-collections.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/list-documents.md b/docs/examples/1.1.x/server-python/examples/databases/list-documents.md index 5eb03b2658f..01cc594d98a 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/list-documents.md +++ b/docs/examples/1.1.x/server-python/examples/databases/list-documents.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/list-indexes.md b/docs/examples/1.1.x/server-python/examples/databases/list-indexes.md index b4224be62c8..f65545454b2 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/list-indexes.md +++ b/docs/examples/1.1.x/server-python/examples/databases/list-indexes.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/list.md b/docs/examples/1.1.x/server-python/examples/databases/list.md index 3aa6839d20e..117119439b7 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/list.md +++ b/docs/examples/1.1.x/server-python/examples/databases/list.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/update-collection.md b/docs/examples/1.1.x/server-python/examples/databases/update-collection.md index 4a38aab4d49..49c5c8154bf 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/update-collection.md +++ b/docs/examples/1.1.x/server-python/examples/databases/update-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/update-document.md b/docs/examples/1.1.x/server-python/examples/databases/update-document.md index c768c5403c3..fc6645bf9f4 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/update-document.md +++ b/docs/examples/1.1.x/server-python/examples/databases/update-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/databases/update.md b/docs/examples/1.1.x/server-python/examples/databases/update.md index d46692ece42..9e32a878888 100644 --- a/docs/examples/1.1.x/server-python/examples/databases/update.md +++ b/docs/examples/1.1.x/server-python/examples/databases/update.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/create-build.md b/docs/examples/1.1.x/server-python/examples/functions/create-build.md index 76888f8b16d..398973ce571 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/create-build.md +++ b/docs/examples/1.1.x/server-python/examples/functions/create-build.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/create-deployment.md b/docs/examples/1.1.x/server-python/examples/functions/create-deployment.md index d29c43f2583..859cc3745df 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/create-deployment.md +++ b/docs/examples/1.1.x/server-python/examples/functions/create-deployment.md @@ -5,7 +5,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/create-execution.md b/docs/examples/1.1.x/server-python/examples/functions/create-execution.md index 7c045225b3e..b4476dae982 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/create-execution.md +++ b/docs/examples/1.1.x/server-python/examples/functions/create-execution.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/create-variable.md b/docs/examples/1.1.x/server-python/examples/functions/create-variable.md index f33ed08a717..c24fb5c825b 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/create-variable.md +++ b/docs/examples/1.1.x/server-python/examples/functions/create-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/create.md b/docs/examples/1.1.x/server-python/examples/functions/create.md index 96fd409bd38..ca8198647c3 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/create.md +++ b/docs/examples/1.1.x/server-python/examples/functions/create.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/delete-deployment.md b/docs/examples/1.1.x/server-python/examples/functions/delete-deployment.md index 42d526eca99..2d186c10c6e 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/delete-deployment.md +++ b/docs/examples/1.1.x/server-python/examples/functions/delete-deployment.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/delete-variable.md b/docs/examples/1.1.x/server-python/examples/functions/delete-variable.md index cae0f2df9fd..d527ff09ce4 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/delete-variable.md +++ b/docs/examples/1.1.x/server-python/examples/functions/delete-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/delete.md b/docs/examples/1.1.x/server-python/examples/functions/delete.md index e89213ec7ab..585e2f9b105 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/delete.md +++ b/docs/examples/1.1.x/server-python/examples/functions/delete.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/get-deployment.md b/docs/examples/1.1.x/server-python/examples/functions/get-deployment.md index 6257b59d2e3..ccb30ccbb5b 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/get-deployment.md +++ b/docs/examples/1.1.x/server-python/examples/functions/get-deployment.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/get-execution.md b/docs/examples/1.1.x/server-python/examples/functions/get-execution.md index f0e4f0dc67a..110a7606667 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/get-execution.md +++ b/docs/examples/1.1.x/server-python/examples/functions/get-execution.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/get-variable.md b/docs/examples/1.1.x/server-python/examples/functions/get-variable.md index 4e71bff24fd..d6c445dc3f6 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/get-variable.md +++ b/docs/examples/1.1.x/server-python/examples/functions/get-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/get.md b/docs/examples/1.1.x/server-python/examples/functions/get.md index 30e1d5959af..4b1bbcf72fb 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/get.md +++ b/docs/examples/1.1.x/server-python/examples/functions/get.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/list-deployments.md b/docs/examples/1.1.x/server-python/examples/functions/list-deployments.md index d1797a18b3d..9f1eeef9780 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/list-deployments.md +++ b/docs/examples/1.1.x/server-python/examples/functions/list-deployments.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/list-executions.md b/docs/examples/1.1.x/server-python/examples/functions/list-executions.md index d70f004478b..0491ff2b3dd 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/list-executions.md +++ b/docs/examples/1.1.x/server-python/examples/functions/list-executions.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/list-runtimes.md b/docs/examples/1.1.x/server-python/examples/functions/list-runtimes.md index 19b85e23697..6255ce39865 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/list-runtimes.md +++ b/docs/examples/1.1.x/server-python/examples/functions/list-runtimes.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/list-variables.md b/docs/examples/1.1.x/server-python/examples/functions/list-variables.md index 9a72bba9f81..bdaa123e0eb 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/list-variables.md +++ b/docs/examples/1.1.x/server-python/examples/functions/list-variables.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/list.md b/docs/examples/1.1.x/server-python/examples/functions/list.md index b8442e5adee..6d05cc952ce 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/list.md +++ b/docs/examples/1.1.x/server-python/examples/functions/list.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/update-deployment.md b/docs/examples/1.1.x/server-python/examples/functions/update-deployment.md index 87dd09710fc..bb5eb869f90 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/update-deployment.md +++ b/docs/examples/1.1.x/server-python/examples/functions/update-deployment.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/update-variable.md b/docs/examples/1.1.x/server-python/examples/functions/update-variable.md index ab5b43abce1..4c98e068073 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/update-variable.md +++ b/docs/examples/1.1.x/server-python/examples/functions/update-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/functions/update.md b/docs/examples/1.1.x/server-python/examples/functions/update.md index ac7730e80a2..2e1d1325681 100644 --- a/docs/examples/1.1.x/server-python/examples/functions/update.md +++ b/docs/examples/1.1.x/server-python/examples/functions/update.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/health/get-antivirus.md b/docs/examples/1.1.x/server-python/examples/health/get-antivirus.md index fbfaf0e52ea..28372001042 100644 --- a/docs/examples/1.1.x/server-python/examples/health/get-antivirus.md +++ b/docs/examples/1.1.x/server-python/examples/health/get-antivirus.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/health/get-cache.md b/docs/examples/1.1.x/server-python/examples/health/get-cache.md index 40bc01000b1..44ac2fa9406 100644 --- a/docs/examples/1.1.x/server-python/examples/health/get-cache.md +++ b/docs/examples/1.1.x/server-python/examples/health/get-cache.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/health/get-d-b.md b/docs/examples/1.1.x/server-python/examples/health/get-d-b.md index 803dd73bd3f..7362e839169 100644 --- a/docs/examples/1.1.x/server-python/examples/health/get-d-b.md +++ b/docs/examples/1.1.x/server-python/examples/health/get-d-b.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/health/get-queue-certificates.md b/docs/examples/1.1.x/server-python/examples/health/get-queue-certificates.md index 4fb0266d117..fed14c831a0 100644 --- a/docs/examples/1.1.x/server-python/examples/health/get-queue-certificates.md +++ b/docs/examples/1.1.x/server-python/examples/health/get-queue-certificates.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/health/get-queue-functions.md b/docs/examples/1.1.x/server-python/examples/health/get-queue-functions.md index 92e4e2021df..96700cc2fd6 100644 --- a/docs/examples/1.1.x/server-python/examples/health/get-queue-functions.md +++ b/docs/examples/1.1.x/server-python/examples/health/get-queue-functions.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/health/get-queue-logs.md b/docs/examples/1.1.x/server-python/examples/health/get-queue-logs.md index b798ad73323..985309b9ffb 100644 --- a/docs/examples/1.1.x/server-python/examples/health/get-queue-logs.md +++ b/docs/examples/1.1.x/server-python/examples/health/get-queue-logs.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/health/get-queue-webhooks.md b/docs/examples/1.1.x/server-python/examples/health/get-queue-webhooks.md index 8406de1ff8f..62da17c248b 100644 --- a/docs/examples/1.1.x/server-python/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.1.x/server-python/examples/health/get-queue-webhooks.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/health/get-storage-local.md b/docs/examples/1.1.x/server-python/examples/health/get-storage-local.md index bb2533e27f7..297a6a5714b 100644 --- a/docs/examples/1.1.x/server-python/examples/health/get-storage-local.md +++ b/docs/examples/1.1.x/server-python/examples/health/get-storage-local.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/health/get-time.md b/docs/examples/1.1.x/server-python/examples/health/get-time.md index 9fe313dd5f3..0034705ed9c 100644 --- a/docs/examples/1.1.x/server-python/examples/health/get-time.md +++ b/docs/examples/1.1.x/server-python/examples/health/get-time.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/health/get.md b/docs/examples/1.1.x/server-python/examples/health/get.md index d3ff5943879..118be474f30 100644 --- a/docs/examples/1.1.x/server-python/examples/health/get.md +++ b/docs/examples/1.1.x/server-python/examples/health/get.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/locale/get.md b/docs/examples/1.1.x/server-python/examples/locale/get.md index 06b04f2f631..de81e967db7 100644 --- a/docs/examples/1.1.x/server-python/examples/locale/get.md +++ b/docs/examples/1.1.x/server-python/examples/locale/get.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/locale/list-continents.md b/docs/examples/1.1.x/server-python/examples/locale/list-continents.md index ba9c94f8a97..bcd150f5cd1 100644 --- a/docs/examples/1.1.x/server-python/examples/locale/list-continents.md +++ b/docs/examples/1.1.x/server-python/examples/locale/list-continents.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/locale/list-countries-e-u.md b/docs/examples/1.1.x/server-python/examples/locale/list-countries-e-u.md index ea4c43cab6e..2dc40cd4877 100644 --- a/docs/examples/1.1.x/server-python/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.1.x/server-python/examples/locale/list-countries-e-u.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/locale/list-countries-phones.md b/docs/examples/1.1.x/server-python/examples/locale/list-countries-phones.md index 5a4cafe5200..b1b0773b3f5 100644 --- a/docs/examples/1.1.x/server-python/examples/locale/list-countries-phones.md +++ b/docs/examples/1.1.x/server-python/examples/locale/list-countries-phones.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/locale/list-countries.md b/docs/examples/1.1.x/server-python/examples/locale/list-countries.md index f8ec83c83ec..278a039bbde 100644 --- a/docs/examples/1.1.x/server-python/examples/locale/list-countries.md +++ b/docs/examples/1.1.x/server-python/examples/locale/list-countries.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/locale/list-currencies.md b/docs/examples/1.1.x/server-python/examples/locale/list-currencies.md index 347e81c54c3..077d7c393c3 100644 --- a/docs/examples/1.1.x/server-python/examples/locale/list-currencies.md +++ b/docs/examples/1.1.x/server-python/examples/locale/list-currencies.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/locale/list-languages.md b/docs/examples/1.1.x/server-python/examples/locale/list-languages.md index ce50a6efe77..9cc7c8f9758 100644 --- a/docs/examples/1.1.x/server-python/examples/locale/list-languages.md +++ b/docs/examples/1.1.x/server-python/examples/locale/list-languages.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/storage/create-bucket.md b/docs/examples/1.1.x/server-python/examples/storage/create-bucket.md index 72ffdccbd83..1955987f172 100644 --- a/docs/examples/1.1.x/server-python/examples/storage/create-bucket.md +++ b/docs/examples/1.1.x/server-python/examples/storage/create-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/storage/create-file.md b/docs/examples/1.1.x/server-python/examples/storage/create-file.md index b469b5bdd59..250f469290e 100644 --- a/docs/examples/1.1.x/server-python/examples/storage/create-file.md +++ b/docs/examples/1.1.x/server-python/examples/storage/create-file.md @@ -5,7 +5,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/storage/delete-bucket.md b/docs/examples/1.1.x/server-python/examples/storage/delete-bucket.md index 60dc1074fd0..c6c93435d02 100644 --- a/docs/examples/1.1.x/server-python/examples/storage/delete-bucket.md +++ b/docs/examples/1.1.x/server-python/examples/storage/delete-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/storage/delete-file.md b/docs/examples/1.1.x/server-python/examples/storage/delete-file.md index 9bed0af7846..accf6697bfc 100644 --- a/docs/examples/1.1.x/server-python/examples/storage/delete-file.md +++ b/docs/examples/1.1.x/server-python/examples/storage/delete-file.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/storage/get-bucket.md b/docs/examples/1.1.x/server-python/examples/storage/get-bucket.md index 7ea64f22aa8..4fd4e70b31e 100644 --- a/docs/examples/1.1.x/server-python/examples/storage/get-bucket.md +++ b/docs/examples/1.1.x/server-python/examples/storage/get-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/storage/get-file-download.md b/docs/examples/1.1.x/server-python/examples/storage/get-file-download.md index e9f5cce8249..ef57f109552 100644 --- a/docs/examples/1.1.x/server-python/examples/storage/get-file-download.md +++ b/docs/examples/1.1.x/server-python/examples/storage/get-file-download.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/storage/get-file-preview.md b/docs/examples/1.1.x/server-python/examples/storage/get-file-preview.md index 4e12291f136..c7b90b96558 100644 --- a/docs/examples/1.1.x/server-python/examples/storage/get-file-preview.md +++ b/docs/examples/1.1.x/server-python/examples/storage/get-file-preview.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/storage/get-file-view.md b/docs/examples/1.1.x/server-python/examples/storage/get-file-view.md index 01cbfafd260..bd8efc6e45b 100644 --- a/docs/examples/1.1.x/server-python/examples/storage/get-file-view.md +++ b/docs/examples/1.1.x/server-python/examples/storage/get-file-view.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/storage/get-file.md b/docs/examples/1.1.x/server-python/examples/storage/get-file.md index f83ed8aa619..e0013ba120a 100644 --- a/docs/examples/1.1.x/server-python/examples/storage/get-file.md +++ b/docs/examples/1.1.x/server-python/examples/storage/get-file.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/storage/list-buckets.md b/docs/examples/1.1.x/server-python/examples/storage/list-buckets.md index 204fd9598c2..450f876d92f 100644 --- a/docs/examples/1.1.x/server-python/examples/storage/list-buckets.md +++ b/docs/examples/1.1.x/server-python/examples/storage/list-buckets.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/storage/list-files.md b/docs/examples/1.1.x/server-python/examples/storage/list-files.md index 63101e215ec..05df2d00564 100644 --- a/docs/examples/1.1.x/server-python/examples/storage/list-files.md +++ b/docs/examples/1.1.x/server-python/examples/storage/list-files.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/storage/update-bucket.md b/docs/examples/1.1.x/server-python/examples/storage/update-bucket.md index fb1b76b222a..f47bfa3d0e8 100644 --- a/docs/examples/1.1.x/server-python/examples/storage/update-bucket.md +++ b/docs/examples/1.1.x/server-python/examples/storage/update-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/storage/update-file.md b/docs/examples/1.1.x/server-python/examples/storage/update-file.md index 24a92e36c62..3208e44d2f0 100644 --- a/docs/examples/1.1.x/server-python/examples/storage/update-file.md +++ b/docs/examples/1.1.x/server-python/examples/storage/update-file.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/teams/create-membership.md b/docs/examples/1.1.x/server-python/examples/teams/create-membership.md index f020627727c..ce04eeefa07 100644 --- a/docs/examples/1.1.x/server-python/examples/teams/create-membership.md +++ b/docs/examples/1.1.x/server-python/examples/teams/create-membership.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/teams/create.md b/docs/examples/1.1.x/server-python/examples/teams/create.md index c69012359f0..87e76cb0625 100644 --- a/docs/examples/1.1.x/server-python/examples/teams/create.md +++ b/docs/examples/1.1.x/server-python/examples/teams/create.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/teams/delete-membership.md b/docs/examples/1.1.x/server-python/examples/teams/delete-membership.md index f8d875986fe..7f5e4055d1f 100644 --- a/docs/examples/1.1.x/server-python/examples/teams/delete-membership.md +++ b/docs/examples/1.1.x/server-python/examples/teams/delete-membership.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/teams/delete.md b/docs/examples/1.1.x/server-python/examples/teams/delete.md index 4fc0fa44cca..651b861f03e 100644 --- a/docs/examples/1.1.x/server-python/examples/teams/delete.md +++ b/docs/examples/1.1.x/server-python/examples/teams/delete.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/teams/get-membership.md b/docs/examples/1.1.x/server-python/examples/teams/get-membership.md index e9c62ae3e34..3c351b16f78 100644 --- a/docs/examples/1.1.x/server-python/examples/teams/get-membership.md +++ b/docs/examples/1.1.x/server-python/examples/teams/get-membership.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/teams/get.md b/docs/examples/1.1.x/server-python/examples/teams/get.md index fdca2fc28fd..32100ad47f3 100644 --- a/docs/examples/1.1.x/server-python/examples/teams/get.md +++ b/docs/examples/1.1.x/server-python/examples/teams/get.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/teams/list-memberships.md b/docs/examples/1.1.x/server-python/examples/teams/list-memberships.md index 63e662a7a60..5001ae3e8aa 100644 --- a/docs/examples/1.1.x/server-python/examples/teams/list-memberships.md +++ b/docs/examples/1.1.x/server-python/examples/teams/list-memberships.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/teams/list.md b/docs/examples/1.1.x/server-python/examples/teams/list.md index e60cb60dab8..5a73d327661 100644 --- a/docs/examples/1.1.x/server-python/examples/teams/list.md +++ b/docs/examples/1.1.x/server-python/examples/teams/list.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/teams/update-membership-roles.md b/docs/examples/1.1.x/server-python/examples/teams/update-membership-roles.md index dcfd7a4e554..e161a33d5c6 100644 --- a/docs/examples/1.1.x/server-python/examples/teams/update-membership-roles.md +++ b/docs/examples/1.1.x/server-python/examples/teams/update-membership-roles.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/teams/update-membership-status.md b/docs/examples/1.1.x/server-python/examples/teams/update-membership-status.md index a6cd4cd45f5..f35f8f7792a 100644 --- a/docs/examples/1.1.x/server-python/examples/teams/update-membership-status.md +++ b/docs/examples/1.1.x/server-python/examples/teams/update-membership-status.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.1.x/server-python/examples/teams/update.md b/docs/examples/1.1.x/server-python/examples/teams/update.md index cabd1496c4c..6cfbcb069ff 100644 --- a/docs/examples/1.1.x/server-python/examples/teams/update.md +++ b/docs/examples/1.1.x/server-python/examples/teams/update.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/create-argon2user.md b/docs/examples/1.1.x/server-python/examples/users/create-argon2user.md index be1e8cef36c..63149881324 100644 --- a/docs/examples/1.1.x/server-python/examples/users/create-argon2user.md +++ b/docs/examples/1.1.x/server-python/examples/users/create-argon2user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/create-bcrypt-user.md b/docs/examples/1.1.x/server-python/examples/users/create-bcrypt-user.md index 77c9918879c..32632b9c1d4 100644 --- a/docs/examples/1.1.x/server-python/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.1.x/server-python/examples/users/create-bcrypt-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/create-m-d5user.md b/docs/examples/1.1.x/server-python/examples/users/create-m-d5user.md index f3ab3f84183..d2ecc0cc0b6 100644 --- a/docs/examples/1.1.x/server-python/examples/users/create-m-d5user.md +++ b/docs/examples/1.1.x/server-python/examples/users/create-m-d5user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/create-p-h-pass-user.md b/docs/examples/1.1.x/server-python/examples/users/create-p-h-pass-user.md index e715f47c145..7f4c6bcfd68 100644 --- a/docs/examples/1.1.x/server-python/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.1.x/server-python/examples/users/create-p-h-pass-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/create-s-h-a-user.md b/docs/examples/1.1.x/server-python/examples/users/create-s-h-a-user.md index 2a2db5a6736..17e4209ae78 100644 --- a/docs/examples/1.1.x/server-python/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.1.x/server-python/examples/users/create-s-h-a-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/create-scrypt-modified-user.md b/docs/examples/1.1.x/server-python/examples/users/create-scrypt-modified-user.md index 0b42e98dc71..64b54170aea 100644 --- a/docs/examples/1.1.x/server-python/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.1.x/server-python/examples/users/create-scrypt-modified-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/create-scrypt-user.md b/docs/examples/1.1.x/server-python/examples/users/create-scrypt-user.md index b4456230183..9a934d5caef 100644 --- a/docs/examples/1.1.x/server-python/examples/users/create-scrypt-user.md +++ b/docs/examples/1.1.x/server-python/examples/users/create-scrypt-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/create.md b/docs/examples/1.1.x/server-python/examples/users/create.md index 05249c08eae..657449e3b1e 100644 --- a/docs/examples/1.1.x/server-python/examples/users/create.md +++ b/docs/examples/1.1.x/server-python/examples/users/create.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/delete-session.md b/docs/examples/1.1.x/server-python/examples/users/delete-session.md index 26b041db1d4..baba61e58b3 100644 --- a/docs/examples/1.1.x/server-python/examples/users/delete-session.md +++ b/docs/examples/1.1.x/server-python/examples/users/delete-session.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/delete-sessions.md b/docs/examples/1.1.x/server-python/examples/users/delete-sessions.md index dabe4f627d4..0c7f38ba8e4 100644 --- a/docs/examples/1.1.x/server-python/examples/users/delete-sessions.md +++ b/docs/examples/1.1.x/server-python/examples/users/delete-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/delete.md b/docs/examples/1.1.x/server-python/examples/users/delete.md index 7fdc77576b9..4a21cab6fd3 100644 --- a/docs/examples/1.1.x/server-python/examples/users/delete.md +++ b/docs/examples/1.1.x/server-python/examples/users/delete.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/get-prefs.md b/docs/examples/1.1.x/server-python/examples/users/get-prefs.md index 2bbaa88c59a..bf325a4fda8 100644 --- a/docs/examples/1.1.x/server-python/examples/users/get-prefs.md +++ b/docs/examples/1.1.x/server-python/examples/users/get-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/get.md b/docs/examples/1.1.x/server-python/examples/users/get.md index 463957d3941..7491d3db17e 100644 --- a/docs/examples/1.1.x/server-python/examples/users/get.md +++ b/docs/examples/1.1.x/server-python/examples/users/get.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/list-logs.md b/docs/examples/1.1.x/server-python/examples/users/list-logs.md index ca3a5eb8150..84dc775e04a 100644 --- a/docs/examples/1.1.x/server-python/examples/users/list-logs.md +++ b/docs/examples/1.1.x/server-python/examples/users/list-logs.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/list-memberships.md b/docs/examples/1.1.x/server-python/examples/users/list-memberships.md index 0dfb97afce7..d091789b8bc 100644 --- a/docs/examples/1.1.x/server-python/examples/users/list-memberships.md +++ b/docs/examples/1.1.x/server-python/examples/users/list-memberships.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/list-sessions.md b/docs/examples/1.1.x/server-python/examples/users/list-sessions.md index 5f8fbd68ea7..75e3383a141 100644 --- a/docs/examples/1.1.x/server-python/examples/users/list-sessions.md +++ b/docs/examples/1.1.x/server-python/examples/users/list-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/list.md b/docs/examples/1.1.x/server-python/examples/users/list.md index baaf42c5745..1f82be4b740 100644 --- a/docs/examples/1.1.x/server-python/examples/users/list.md +++ b/docs/examples/1.1.x/server-python/examples/users/list.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/update-email-verification.md b/docs/examples/1.1.x/server-python/examples/users/update-email-verification.md index 8be33ad97f3..2828171035c 100644 --- a/docs/examples/1.1.x/server-python/examples/users/update-email-verification.md +++ b/docs/examples/1.1.x/server-python/examples/users/update-email-verification.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/update-email.md b/docs/examples/1.1.x/server-python/examples/users/update-email.md index 4899bd39362..370fedf8c46 100644 --- a/docs/examples/1.1.x/server-python/examples/users/update-email.md +++ b/docs/examples/1.1.x/server-python/examples/users/update-email.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/update-name.md b/docs/examples/1.1.x/server-python/examples/users/update-name.md index 66bb6b29204..e8411d203b0 100644 --- a/docs/examples/1.1.x/server-python/examples/users/update-name.md +++ b/docs/examples/1.1.x/server-python/examples/users/update-name.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/update-password.md b/docs/examples/1.1.x/server-python/examples/users/update-password.md index bf24c1ca9a8..2f0091d0f6d 100644 --- a/docs/examples/1.1.x/server-python/examples/users/update-password.md +++ b/docs/examples/1.1.x/server-python/examples/users/update-password.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/update-phone-verification.md b/docs/examples/1.1.x/server-python/examples/users/update-phone-verification.md index e42317ca30b..e2d69ef2fc0 100644 --- a/docs/examples/1.1.x/server-python/examples/users/update-phone-verification.md +++ b/docs/examples/1.1.x/server-python/examples/users/update-phone-verification.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/update-phone.md b/docs/examples/1.1.x/server-python/examples/users/update-phone.md index 6df39fc9940..b6165469e8a 100644 --- a/docs/examples/1.1.x/server-python/examples/users/update-phone.md +++ b/docs/examples/1.1.x/server-python/examples/users/update-phone.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/update-prefs.md b/docs/examples/1.1.x/server-python/examples/users/update-prefs.md index 53d1e524e20..432b9da023a 100644 --- a/docs/examples/1.1.x/server-python/examples/users/update-prefs.md +++ b/docs/examples/1.1.x/server-python/examples/users/update-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-python/examples/users/update-status.md b/docs/examples/1.1.x/server-python/examples/users/update-status.md index 6d1577d4014..2afab7539fe 100644 --- a/docs/examples/1.1.x/server-python/examples/users/update-status.md +++ b/docs/examples/1.1.x/server-python/examples/users/update-status.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.1.x/server-ruby/examples/account/create-phone-verification.md b/docs/examples/1.1.x/server-ruby/examples/account/create-phone-verification.md index 7ec0a1c0c94..9ea5aa170c0 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/create-phone-verification.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/create-phone-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/create-recovery.md b/docs/examples/1.1.x/server-ruby/examples/account/create-recovery.md index 5c6d13c7240..dfa4038915d 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/create-recovery.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/create-recovery.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/create-verification.md b/docs/examples/1.1.x/server-ruby/examples/account/create-verification.md index dcd9722e471..37b838f4d25 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/create-verification.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/create-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/delete-session.md b/docs/examples/1.1.x/server-ruby/examples/account/delete-session.md index 3357b2ba20e..788b1d0dc15 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/delete-session.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/delete-session.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/delete-sessions.md b/docs/examples/1.1.x/server-ruby/examples/account/delete-sessions.md index b218a536dbe..fecb93ca767 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/delete-sessions.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/delete-sessions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/get-prefs.md b/docs/examples/1.1.x/server-ruby/examples/account/get-prefs.md index 24092b922b9..9870af6340c 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/get-prefs.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/get-prefs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/get-session.md b/docs/examples/1.1.x/server-ruby/examples/account/get-session.md index 2a8209031d0..09946ae0013 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/get-session.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/get-session.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/get.md b/docs/examples/1.1.x/server-ruby/examples/account/get.md index 61237b22157..616316ca8ca 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/get.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/list-logs.md b/docs/examples/1.1.x/server-ruby/examples/account/list-logs.md index 8a08eb96bef..22e23f38ee6 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/list-logs.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/list-logs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/list-sessions.md b/docs/examples/1.1.x/server-ruby/examples/account/list-sessions.md index a6bcb6816dd..9e267c659dd 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/list-sessions.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/list-sessions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/update-email.md b/docs/examples/1.1.x/server-ruby/examples/account/update-email.md index cd2e10cbbe3..1a871d27908 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/update-email.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/update-email.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/update-name.md b/docs/examples/1.1.x/server-ruby/examples/account/update-name.md index 2685e88cf60..f7a2bec7878 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/update-name.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/update-name.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/update-password.md b/docs/examples/1.1.x/server-ruby/examples/account/update-password.md index 3ee4ed98f7c..dbd46a02983 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/update-password.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/update-password.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/update-phone-verification.md b/docs/examples/1.1.x/server-ruby/examples/account/update-phone-verification.md index 103b32c00da..6a0345a6f61 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/update-phone-verification.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/update-phone-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/update-phone.md b/docs/examples/1.1.x/server-ruby/examples/account/update-phone.md index 377c578deaf..aa6dc9804ce 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/update-phone.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/update-phone.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/update-prefs.md b/docs/examples/1.1.x/server-ruby/examples/account/update-prefs.md index 338a9704f1e..1e0f9c836cc 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/update-prefs.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/update-prefs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/update-recovery.md b/docs/examples/1.1.x/server-ruby/examples/account/update-recovery.md index fa901de8576..357bfa9d1d8 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/update-recovery.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/update-recovery.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/update-session.md b/docs/examples/1.1.x/server-ruby/examples/account/update-session.md index 31dde2e94fa..2de00124c65 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/update-session.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/update-session.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/update-status.md b/docs/examples/1.1.x/server-ruby/examples/account/update-status.md index ea7a3857b55..f0e73d13d55 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/update-status.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/update-status.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/account/update-verification.md b/docs/examples/1.1.x/server-ruby/examples/account/update-verification.md index b8f674ec773..32d4c79de07 100644 --- a/docs/examples/1.1.x/server-ruby/examples/account/update-verification.md +++ b/docs/examples/1.1.x/server-ruby/examples/account/update-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/avatars/get-browser.md b/docs/examples/1.1.x/server-ruby/examples/avatars/get-browser.md index 2a66b46b926..11fa186f0e1 100644 --- a/docs/examples/1.1.x/server-ruby/examples/avatars/get-browser.md +++ b/docs/examples/1.1.x/server-ruby/examples/avatars/get-browser.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/avatars/get-credit-card.md b/docs/examples/1.1.x/server-ruby/examples/avatars/get-credit-card.md index d5bcaa824f8..47c8dc8e076 100644 --- a/docs/examples/1.1.x/server-ruby/examples/avatars/get-credit-card.md +++ b/docs/examples/1.1.x/server-ruby/examples/avatars/get-credit-card.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/avatars/get-favicon.md b/docs/examples/1.1.x/server-ruby/examples/avatars/get-favicon.md index c995fb2036a..48263bc19df 100644 --- a/docs/examples/1.1.x/server-ruby/examples/avatars/get-favicon.md +++ b/docs/examples/1.1.x/server-ruby/examples/avatars/get-favicon.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/avatars/get-flag.md b/docs/examples/1.1.x/server-ruby/examples/avatars/get-flag.md index 7633756425e..17e2cfb0539 100644 --- a/docs/examples/1.1.x/server-ruby/examples/avatars/get-flag.md +++ b/docs/examples/1.1.x/server-ruby/examples/avatars/get-flag.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/avatars/get-image.md b/docs/examples/1.1.x/server-ruby/examples/avatars/get-image.md index 4ea52a60e4b..168cc78d47f 100644 --- a/docs/examples/1.1.x/server-ruby/examples/avatars/get-image.md +++ b/docs/examples/1.1.x/server-ruby/examples/avatars/get-image.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/avatars/get-initials.md b/docs/examples/1.1.x/server-ruby/examples/avatars/get-initials.md index 62a8ff855d9..c6218320696 100644 --- a/docs/examples/1.1.x/server-ruby/examples/avatars/get-initials.md +++ b/docs/examples/1.1.x/server-ruby/examples/avatars/get-initials.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/avatars/get-q-r.md b/docs/examples/1.1.x/server-ruby/examples/avatars/get-q-r.md index 03a1f14aa97..93b91d13ea3 100644 --- a/docs/examples/1.1.x/server-ruby/examples/avatars/get-q-r.md +++ b/docs/examples/1.1.x/server-ruby/examples/avatars/get-q-r.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/create-boolean-attribute.md b/docs/examples/1.1.x/server-ruby/examples/databases/create-boolean-attribute.md index d617d8e3225..17f0467cb1b 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/create-boolean-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/create-collection.md b/docs/examples/1.1.x/server-ruby/examples/databases/create-collection.md index d27e43ad664..d0c87c64337 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/create-collection.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/create-collection.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/create-datetime-attribute.md b/docs/examples/1.1.x/server-ruby/examples/databases/create-datetime-attribute.md index 127d2ac2d77..2aebb09856f 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/create-datetime-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/create-document.md b/docs/examples/1.1.x/server-ruby/examples/databases/create-document.md index 8177fc4b3b8..e6d12497214 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/create-document.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/create-document.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/create-email-attribute.md b/docs/examples/1.1.x/server-ruby/examples/databases/create-email-attribute.md index c7e1aac86be..38047e524d4 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/create-email-attribute.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/create-email-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/create-enum-attribute.md b/docs/examples/1.1.x/server-ruby/examples/databases/create-enum-attribute.md index 36f8ee06d41..1fe0f0c689f 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/create-enum-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/create-float-attribute.md b/docs/examples/1.1.x/server-ruby/examples/databases/create-float-attribute.md index 771d281ccf5..6da9f12caed 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/create-float-attribute.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/create-float-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/create-index.md b/docs/examples/1.1.x/server-ruby/examples/databases/create-index.md index 5488e36f74a..68fccf90ca3 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/create-index.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/create-index.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/create-integer-attribute.md b/docs/examples/1.1.x/server-ruby/examples/databases/create-integer-attribute.md index 40649c25f8f..d17eef4f46d 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/create-integer-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/create-ip-attribute.md b/docs/examples/1.1.x/server-ruby/examples/databases/create-ip-attribute.md index ef9e0feba52..c0daf8a4ae9 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/create-ip-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/create-string-attribute.md b/docs/examples/1.1.x/server-ruby/examples/databases/create-string-attribute.md index 9901c84b020..4b4c95b7c10 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/create-string-attribute.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/create-string-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/create-url-attribute.md b/docs/examples/1.1.x/server-ruby/examples/databases/create-url-attribute.md index 475421fe537..03486d76952 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/create-url-attribute.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/create-url-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/create.md b/docs/examples/1.1.x/server-ruby/examples/databases/create.md index 1ce19d31250..8054c37fef1 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/create.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/create.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/delete-attribute.md b/docs/examples/1.1.x/server-ruby/examples/databases/delete-attribute.md index ae2e32d8bd0..55013151523 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/delete-attribute.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/delete-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/delete-collection.md b/docs/examples/1.1.x/server-ruby/examples/databases/delete-collection.md index f118667b6ed..779865a67e1 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/delete-collection.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/delete-collection.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/delete-document.md b/docs/examples/1.1.x/server-ruby/examples/databases/delete-document.md index 0b7baa89ede..b83d2a38a88 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/delete-document.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/delete-document.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/delete-index.md b/docs/examples/1.1.x/server-ruby/examples/databases/delete-index.md index 829e6061354..fb30a95c642 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/delete-index.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/delete-index.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/delete.md b/docs/examples/1.1.x/server-ruby/examples/databases/delete.md index 7e0c4211f16..beeca37e8a7 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/delete.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/delete.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/get-attribute.md b/docs/examples/1.1.x/server-ruby/examples/databases/get-attribute.md index 525c8f14cd5..653a4280542 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/get-attribute.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/get-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/get-collection.md b/docs/examples/1.1.x/server-ruby/examples/databases/get-collection.md index 897e40d1094..b3251fb7a69 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/get-collection.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/get-collection.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/get-document.md b/docs/examples/1.1.x/server-ruby/examples/databases/get-document.md index d5853aba563..9a4e9b7c01a 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/get-document.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/get-document.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/get-index.md b/docs/examples/1.1.x/server-ruby/examples/databases/get-index.md index 3217507541a..1f7d3b61551 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/get-index.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/get-index.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/get.md b/docs/examples/1.1.x/server-ruby/examples/databases/get.md index ced51d6ad12..93b171122f8 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/get.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/list-attributes.md b/docs/examples/1.1.x/server-ruby/examples/databases/list-attributes.md index 1b57bda217c..5a07c9a6352 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/list-attributes.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/list-attributes.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/list-collections.md b/docs/examples/1.1.x/server-ruby/examples/databases/list-collections.md index 3d646c47e72..c707b3faf77 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/list-collections.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/list-collections.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/list-documents.md b/docs/examples/1.1.x/server-ruby/examples/databases/list-documents.md index 6f57bb150cf..da14516505f 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/list-documents.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/list-documents.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/list-indexes.md b/docs/examples/1.1.x/server-ruby/examples/databases/list-indexes.md index d64b3bfc684..c6d42be1eaa 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/list-indexes.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/list-indexes.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/list.md b/docs/examples/1.1.x/server-ruby/examples/databases/list.md index 84baa108a38..628f44c7fca 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/list.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/list.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/update-collection.md b/docs/examples/1.1.x/server-ruby/examples/databases/update-collection.md index eee40585313..ab421153cce 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/update-collection.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/update-collection.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/update-document.md b/docs/examples/1.1.x/server-ruby/examples/databases/update-document.md index dbe1b0d71aa..0b5b2a07caf 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/update-document.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/update-document.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/databases/update.md b/docs/examples/1.1.x/server-ruby/examples/databases/update.md index 0900ab34286..9e67595cbc7 100644 --- a/docs/examples/1.1.x/server-ruby/examples/databases/update.md +++ b/docs/examples/1.1.x/server-ruby/examples/databases/update.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/create-build.md b/docs/examples/1.1.x/server-ruby/examples/functions/create-build.md index 9c7397bf269..6c9ad31fd0c 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/create-build.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/create-build.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/create-deployment.md b/docs/examples/1.1.x/server-ruby/examples/functions/create-deployment.md index 734625f449e..4cb56c9ad86 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/create-deployment.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/create-deployment.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/create-execution.md b/docs/examples/1.1.x/server-ruby/examples/functions/create-execution.md index 97f4d74ba15..3dc5e844e71 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/create-execution.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/create-execution.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/create-variable.md b/docs/examples/1.1.x/server-ruby/examples/functions/create-variable.md index 003fb4743a2..1340c1a3794 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/create-variable.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/create-variable.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/create.md b/docs/examples/1.1.x/server-ruby/examples/functions/create.md index 414f11297d1..dbf34259221 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/create.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/create.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/delete-deployment.md b/docs/examples/1.1.x/server-ruby/examples/functions/delete-deployment.md index 64feea1370e..00c85f50a1b 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/delete-deployment.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/delete-deployment.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/delete-variable.md b/docs/examples/1.1.x/server-ruby/examples/functions/delete-variable.md index 598e6941416..191796186d8 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/delete-variable.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/delete-variable.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/delete.md b/docs/examples/1.1.x/server-ruby/examples/functions/delete.md index 48ea5c7a737..c96a2621e65 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/delete.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/delete.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/get-deployment.md b/docs/examples/1.1.x/server-ruby/examples/functions/get-deployment.md index c19163e7f5c..fa1bbc08be3 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/get-deployment.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/get-deployment.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/get-execution.md b/docs/examples/1.1.x/server-ruby/examples/functions/get-execution.md index 3deee915740..52e46af41ac 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/get-execution.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/get-execution.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/get-variable.md b/docs/examples/1.1.x/server-ruby/examples/functions/get-variable.md index 835fc30d81b..b023e3653be 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/get-variable.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/get-variable.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/get.md b/docs/examples/1.1.x/server-ruby/examples/functions/get.md index cfcf8411e5a..76897965e5b 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/get.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/list-deployments.md b/docs/examples/1.1.x/server-ruby/examples/functions/list-deployments.md index 539301c4bba..5ec1f5ba313 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/list-deployments.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/list-deployments.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/list-executions.md b/docs/examples/1.1.x/server-ruby/examples/functions/list-executions.md index c0c1f46cf16..797817ad4f5 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/list-executions.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/list-executions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/list-runtimes.md b/docs/examples/1.1.x/server-ruby/examples/functions/list-runtimes.md index b679da2d8b9..b5fd2b0aafd 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/list-runtimes.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/list-runtimes.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/list-variables.md b/docs/examples/1.1.x/server-ruby/examples/functions/list-variables.md index 4e5bfab8911..196fcfe3cd7 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/list-variables.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/list-variables.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/list.md b/docs/examples/1.1.x/server-ruby/examples/functions/list.md index 2cc71a5c046..bf27f73cf94 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/list.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/list.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/update-deployment.md b/docs/examples/1.1.x/server-ruby/examples/functions/update-deployment.md index c9d9f49d63b..a9f039cfc64 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/update-deployment.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/update-deployment.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/update-variable.md b/docs/examples/1.1.x/server-ruby/examples/functions/update-variable.md index 28d7651a46f..3418454c276 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/update-variable.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/update-variable.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/functions/update.md b/docs/examples/1.1.x/server-ruby/examples/functions/update.md index 4bb1f2195de..02e11b5075b 100644 --- a/docs/examples/1.1.x/server-ruby/examples/functions/update.md +++ b/docs/examples/1.1.x/server-ruby/examples/functions/update.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/health/get-antivirus.md b/docs/examples/1.1.x/server-ruby/examples/health/get-antivirus.md index b1f16bb0b93..32646a5a0b3 100644 --- a/docs/examples/1.1.x/server-ruby/examples/health/get-antivirus.md +++ b/docs/examples/1.1.x/server-ruby/examples/health/get-antivirus.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/health/get-cache.md b/docs/examples/1.1.x/server-ruby/examples/health/get-cache.md index 4fb77ec68d4..a4b43daf926 100644 --- a/docs/examples/1.1.x/server-ruby/examples/health/get-cache.md +++ b/docs/examples/1.1.x/server-ruby/examples/health/get-cache.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/health/get-d-b.md b/docs/examples/1.1.x/server-ruby/examples/health/get-d-b.md index 3317acd6fa7..6b42bbaf6a1 100644 --- a/docs/examples/1.1.x/server-ruby/examples/health/get-d-b.md +++ b/docs/examples/1.1.x/server-ruby/examples/health/get-d-b.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/health/get-queue-certificates.md b/docs/examples/1.1.x/server-ruby/examples/health/get-queue-certificates.md index a4c5c7016bf..915731e056a 100644 --- a/docs/examples/1.1.x/server-ruby/examples/health/get-queue-certificates.md +++ b/docs/examples/1.1.x/server-ruby/examples/health/get-queue-certificates.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/health/get-queue-functions.md b/docs/examples/1.1.x/server-ruby/examples/health/get-queue-functions.md index 8edb310a5e2..ea585cacb79 100644 --- a/docs/examples/1.1.x/server-ruby/examples/health/get-queue-functions.md +++ b/docs/examples/1.1.x/server-ruby/examples/health/get-queue-functions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/health/get-queue-logs.md b/docs/examples/1.1.x/server-ruby/examples/health/get-queue-logs.md index 74823fcd6ce..253419c8bdd 100644 --- a/docs/examples/1.1.x/server-ruby/examples/health/get-queue-logs.md +++ b/docs/examples/1.1.x/server-ruby/examples/health/get-queue-logs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/health/get-queue-webhooks.md b/docs/examples/1.1.x/server-ruby/examples/health/get-queue-webhooks.md index 53b7f33cfe0..1902a930c83 100644 --- a/docs/examples/1.1.x/server-ruby/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.1.x/server-ruby/examples/health/get-queue-webhooks.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/health/get-storage-local.md b/docs/examples/1.1.x/server-ruby/examples/health/get-storage-local.md index 3a85bd3e12b..293c866762f 100644 --- a/docs/examples/1.1.x/server-ruby/examples/health/get-storage-local.md +++ b/docs/examples/1.1.x/server-ruby/examples/health/get-storage-local.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/health/get-time.md b/docs/examples/1.1.x/server-ruby/examples/health/get-time.md index 9956a33d1f6..e19bf05e792 100644 --- a/docs/examples/1.1.x/server-ruby/examples/health/get-time.md +++ b/docs/examples/1.1.x/server-ruby/examples/health/get-time.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/health/get.md b/docs/examples/1.1.x/server-ruby/examples/health/get.md index d23a9ad6755..07fc372f3b3 100644 --- a/docs/examples/1.1.x/server-ruby/examples/health/get.md +++ b/docs/examples/1.1.x/server-ruby/examples/health/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/locale/get.md b/docs/examples/1.1.x/server-ruby/examples/locale/get.md index e5922f4e7f5..b2abf36f19f 100644 --- a/docs/examples/1.1.x/server-ruby/examples/locale/get.md +++ b/docs/examples/1.1.x/server-ruby/examples/locale/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/locale/list-continents.md b/docs/examples/1.1.x/server-ruby/examples/locale/list-continents.md index 0416baf77a4..1a086d9a2fe 100644 --- a/docs/examples/1.1.x/server-ruby/examples/locale/list-continents.md +++ b/docs/examples/1.1.x/server-ruby/examples/locale/list-continents.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/locale/list-countries-e-u.md b/docs/examples/1.1.x/server-ruby/examples/locale/list-countries-e-u.md index 7faa85143cb..962387167f1 100644 --- a/docs/examples/1.1.x/server-ruby/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.1.x/server-ruby/examples/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/locale/list-countries-phones.md b/docs/examples/1.1.x/server-ruby/examples/locale/list-countries-phones.md index 1194f27e0c7..9e842f2121d 100644 --- a/docs/examples/1.1.x/server-ruby/examples/locale/list-countries-phones.md +++ b/docs/examples/1.1.x/server-ruby/examples/locale/list-countries-phones.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/locale/list-countries.md b/docs/examples/1.1.x/server-ruby/examples/locale/list-countries.md index b78fba47fd5..eb093479b7a 100644 --- a/docs/examples/1.1.x/server-ruby/examples/locale/list-countries.md +++ b/docs/examples/1.1.x/server-ruby/examples/locale/list-countries.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/locale/list-currencies.md b/docs/examples/1.1.x/server-ruby/examples/locale/list-currencies.md index 14b2722ae82..1e20bdbbb28 100644 --- a/docs/examples/1.1.x/server-ruby/examples/locale/list-currencies.md +++ b/docs/examples/1.1.x/server-ruby/examples/locale/list-currencies.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/locale/list-languages.md b/docs/examples/1.1.x/server-ruby/examples/locale/list-languages.md index 4d88bc47232..7b919494b32 100644 --- a/docs/examples/1.1.x/server-ruby/examples/locale/list-languages.md +++ b/docs/examples/1.1.x/server-ruby/examples/locale/list-languages.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/storage/create-bucket.md b/docs/examples/1.1.x/server-ruby/examples/storage/create-bucket.md index d6299db79f9..459508e3116 100644 --- a/docs/examples/1.1.x/server-ruby/examples/storage/create-bucket.md +++ b/docs/examples/1.1.x/server-ruby/examples/storage/create-bucket.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/storage/create-file.md b/docs/examples/1.1.x/server-ruby/examples/storage/create-file.md index 851ed57a480..fd29996f730 100644 --- a/docs/examples/1.1.x/server-ruby/examples/storage/create-file.md +++ b/docs/examples/1.1.x/server-ruby/examples/storage/create-file.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/storage/delete-bucket.md b/docs/examples/1.1.x/server-ruby/examples/storage/delete-bucket.md index 3fd51bef5e4..be83f475f27 100644 --- a/docs/examples/1.1.x/server-ruby/examples/storage/delete-bucket.md +++ b/docs/examples/1.1.x/server-ruby/examples/storage/delete-bucket.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/storage/delete-file.md b/docs/examples/1.1.x/server-ruby/examples/storage/delete-file.md index 4d0e3fcbffc..6ea4059bbab 100644 --- a/docs/examples/1.1.x/server-ruby/examples/storage/delete-file.md +++ b/docs/examples/1.1.x/server-ruby/examples/storage/delete-file.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/storage/get-bucket.md b/docs/examples/1.1.x/server-ruby/examples/storage/get-bucket.md index ba88debc618..ca0905b463a 100644 --- a/docs/examples/1.1.x/server-ruby/examples/storage/get-bucket.md +++ b/docs/examples/1.1.x/server-ruby/examples/storage/get-bucket.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/storage/get-file-download.md b/docs/examples/1.1.x/server-ruby/examples/storage/get-file-download.md index a22f4cb68fc..77007f6b192 100644 --- a/docs/examples/1.1.x/server-ruby/examples/storage/get-file-download.md +++ b/docs/examples/1.1.x/server-ruby/examples/storage/get-file-download.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/storage/get-file-preview.md b/docs/examples/1.1.x/server-ruby/examples/storage/get-file-preview.md index c5b7c06db1c..c0e2b80931e 100644 --- a/docs/examples/1.1.x/server-ruby/examples/storage/get-file-preview.md +++ b/docs/examples/1.1.x/server-ruby/examples/storage/get-file-preview.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/storage/get-file-view.md b/docs/examples/1.1.x/server-ruby/examples/storage/get-file-view.md index c05770b9999..7689278e56e 100644 --- a/docs/examples/1.1.x/server-ruby/examples/storage/get-file-view.md +++ b/docs/examples/1.1.x/server-ruby/examples/storage/get-file-view.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/storage/get-file.md b/docs/examples/1.1.x/server-ruby/examples/storage/get-file.md index a33835c9e25..f5faa37e548 100644 --- a/docs/examples/1.1.x/server-ruby/examples/storage/get-file.md +++ b/docs/examples/1.1.x/server-ruby/examples/storage/get-file.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/storage/list-buckets.md b/docs/examples/1.1.x/server-ruby/examples/storage/list-buckets.md index 7009d0a105b..46eac9a2602 100644 --- a/docs/examples/1.1.x/server-ruby/examples/storage/list-buckets.md +++ b/docs/examples/1.1.x/server-ruby/examples/storage/list-buckets.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/storage/list-files.md b/docs/examples/1.1.x/server-ruby/examples/storage/list-files.md index 196831a1b3f..936b6eaeeb3 100644 --- a/docs/examples/1.1.x/server-ruby/examples/storage/list-files.md +++ b/docs/examples/1.1.x/server-ruby/examples/storage/list-files.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/storage/update-bucket.md b/docs/examples/1.1.x/server-ruby/examples/storage/update-bucket.md index f990ab3566a..d4c791f4db6 100644 --- a/docs/examples/1.1.x/server-ruby/examples/storage/update-bucket.md +++ b/docs/examples/1.1.x/server-ruby/examples/storage/update-bucket.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/storage/update-file.md b/docs/examples/1.1.x/server-ruby/examples/storage/update-file.md index 8108d3cc28a..6d26d9ee482 100644 --- a/docs/examples/1.1.x/server-ruby/examples/storage/update-file.md +++ b/docs/examples/1.1.x/server-ruby/examples/storage/update-file.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/teams/create-membership.md b/docs/examples/1.1.x/server-ruby/examples/teams/create-membership.md index 515b6839f1d..e23211d82b7 100644 --- a/docs/examples/1.1.x/server-ruby/examples/teams/create-membership.md +++ b/docs/examples/1.1.x/server-ruby/examples/teams/create-membership.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/teams/create.md b/docs/examples/1.1.x/server-ruby/examples/teams/create.md index d2dff77f41e..66127ecd340 100644 --- a/docs/examples/1.1.x/server-ruby/examples/teams/create.md +++ b/docs/examples/1.1.x/server-ruby/examples/teams/create.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/teams/delete-membership.md b/docs/examples/1.1.x/server-ruby/examples/teams/delete-membership.md index d41175d4a83..551ee62843d 100644 --- a/docs/examples/1.1.x/server-ruby/examples/teams/delete-membership.md +++ b/docs/examples/1.1.x/server-ruby/examples/teams/delete-membership.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/teams/delete.md b/docs/examples/1.1.x/server-ruby/examples/teams/delete.md index c1b9b8d8bb1..94a9d4bba74 100644 --- a/docs/examples/1.1.x/server-ruby/examples/teams/delete.md +++ b/docs/examples/1.1.x/server-ruby/examples/teams/delete.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/teams/get-membership.md b/docs/examples/1.1.x/server-ruby/examples/teams/get-membership.md index b06101dd84c..d95348801b0 100644 --- a/docs/examples/1.1.x/server-ruby/examples/teams/get-membership.md +++ b/docs/examples/1.1.x/server-ruby/examples/teams/get-membership.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/teams/get.md b/docs/examples/1.1.x/server-ruby/examples/teams/get.md index 7cee601b56d..a6c2884d2c8 100644 --- a/docs/examples/1.1.x/server-ruby/examples/teams/get.md +++ b/docs/examples/1.1.x/server-ruby/examples/teams/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/teams/list-memberships.md b/docs/examples/1.1.x/server-ruby/examples/teams/list-memberships.md index 885a857d720..4b523aa73a6 100644 --- a/docs/examples/1.1.x/server-ruby/examples/teams/list-memberships.md +++ b/docs/examples/1.1.x/server-ruby/examples/teams/list-memberships.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/teams/list.md b/docs/examples/1.1.x/server-ruby/examples/teams/list.md index e8b581fd910..fd8385bc71e 100644 --- a/docs/examples/1.1.x/server-ruby/examples/teams/list.md +++ b/docs/examples/1.1.x/server-ruby/examples/teams/list.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/teams/update-membership-roles.md b/docs/examples/1.1.x/server-ruby/examples/teams/update-membership-roles.md index a39ef030f9c..0a240b5bac9 100644 --- a/docs/examples/1.1.x/server-ruby/examples/teams/update-membership-roles.md +++ b/docs/examples/1.1.x/server-ruby/examples/teams/update-membership-roles.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/teams/update-membership-status.md b/docs/examples/1.1.x/server-ruby/examples/teams/update-membership-status.md index aaf52cbb9ca..a1f8252899a 100644 --- a/docs/examples/1.1.x/server-ruby/examples/teams/update-membership-status.md +++ b/docs/examples/1.1.x/server-ruby/examples/teams/update-membership-status.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.1.x/server-ruby/examples/teams/update.md b/docs/examples/1.1.x/server-ruby/examples/teams/update.md index 95e24eacb4e..29f42e2e43e 100644 --- a/docs/examples/1.1.x/server-ruby/examples/teams/update.md +++ b/docs/examples/1.1.x/server-ruby/examples/teams/update.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/create-argon2user.md b/docs/examples/1.1.x/server-ruby/examples/users/create-argon2user.md index 9c4fc9ea977..35445044c20 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/create-argon2user.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/create-argon2user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/create-bcrypt-user.md b/docs/examples/1.1.x/server-ruby/examples/users/create-bcrypt-user.md index 700fe49d121..50e11db1903 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/create-bcrypt-user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/create-m-d5user.md b/docs/examples/1.1.x/server-ruby/examples/users/create-m-d5user.md index a7f9c4f7a20..3f7a61994bc 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/create-m-d5user.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/create-m-d5user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/create-p-h-pass-user.md b/docs/examples/1.1.x/server-ruby/examples/users/create-p-h-pass-user.md index d7d8ba19333..a793d887c84 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/create-p-h-pass-user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/create-s-h-a-user.md b/docs/examples/1.1.x/server-ruby/examples/users/create-s-h-a-user.md index 2d37fc3bfa1..4b7c26629bb 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/create-s-h-a-user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/create-scrypt-modified-user.md b/docs/examples/1.1.x/server-ruby/examples/users/create-scrypt-modified-user.md index cec9dbb277a..50f52b9f12f 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/create-scrypt-modified-user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/create-scrypt-user.md b/docs/examples/1.1.x/server-ruby/examples/users/create-scrypt-user.md index 94a7af53d2a..e8bf8cf0597 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/create-scrypt-user.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/create-scrypt-user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/create.md b/docs/examples/1.1.x/server-ruby/examples/users/create.md index b04fd5025f4..7d0cf8b48a7 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/create.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/create.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/delete-session.md b/docs/examples/1.1.x/server-ruby/examples/users/delete-session.md index 3b7918ca1f2..118747affcb 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/delete-session.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/delete-session.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/delete-sessions.md b/docs/examples/1.1.x/server-ruby/examples/users/delete-sessions.md index 6772e3fe10d..7d24d4442d2 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/delete-sessions.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/delete-sessions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/delete.md b/docs/examples/1.1.x/server-ruby/examples/users/delete.md index 62585db404c..b50e5a921d2 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/delete.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/delete.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/get-prefs.md b/docs/examples/1.1.x/server-ruby/examples/users/get-prefs.md index a4c4764bef6..a401ae11b0a 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/get-prefs.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/get-prefs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/get.md b/docs/examples/1.1.x/server-ruby/examples/users/get.md index a731ada955f..44f68d01382 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/get.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/list-logs.md b/docs/examples/1.1.x/server-ruby/examples/users/list-logs.md index fa8586eeffa..45a974e497e 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/list-logs.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/list-logs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/list-memberships.md b/docs/examples/1.1.x/server-ruby/examples/users/list-memberships.md index 693e6b9f2c2..c84277357ba 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/list-memberships.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/list-memberships.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/list-sessions.md b/docs/examples/1.1.x/server-ruby/examples/users/list-sessions.md index 765789a0da7..14c281f4e1b 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/list-sessions.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/list-sessions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/list.md b/docs/examples/1.1.x/server-ruby/examples/users/list.md index 8d5daf21f81..eb067643e24 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/list.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/list.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/update-email-verification.md b/docs/examples/1.1.x/server-ruby/examples/users/update-email-verification.md index 72ec0195dc1..530c544bead 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/update-email-verification.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/update-email-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/update-email.md b/docs/examples/1.1.x/server-ruby/examples/users/update-email.md index a3a7dbde345..21ece40ff07 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/update-email.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/update-email.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/update-name.md b/docs/examples/1.1.x/server-ruby/examples/users/update-name.md index fbf00bb51be..7b1d0d65d32 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/update-name.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/update-name.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/update-password.md b/docs/examples/1.1.x/server-ruby/examples/users/update-password.md index 72556b35306..2577bc44eb8 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/update-password.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/update-password.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/update-phone-verification.md b/docs/examples/1.1.x/server-ruby/examples/users/update-phone-verification.md index 995a32a4bfe..be9e323ec11 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/update-phone-verification.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/update-phone-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/update-phone.md b/docs/examples/1.1.x/server-ruby/examples/users/update-phone.md index f1e74b4a9e5..e78a3d5ff34 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/update-phone.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/update-phone.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/update-prefs.md b/docs/examples/1.1.x/server-ruby/examples/users/update-prefs.md index 9845cdf0d51..91eaf25a253 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/update-prefs.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/update-prefs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-ruby/examples/users/update-status.md b/docs/examples/1.1.x/server-ruby/examples/users/update-status.md index 8a82948c76a..9f7372ede49 100644 --- a/docs/examples/1.1.x/server-ruby/examples/users/update-status.md +++ b/docs/examples/1.1.x/server-ruby/examples/users/update-status.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.1.x/server-swift/examples/account/create-phone-verification.md b/docs/examples/1.1.x/server-swift/examples/account/create-phone-verification.md index 7755c031edf..45ebcced051 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/create-phone-verification.md +++ b/docs/examples/1.1.x/server-swift/examples/account/create-phone-verification.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/create-recovery.md b/docs/examples/1.1.x/server-swift/examples/account/create-recovery.md index 18b8eabf472..4ee9199ffaa 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/create-recovery.md +++ b/docs/examples/1.1.x/server-swift/examples/account/create-recovery.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/create-verification.md b/docs/examples/1.1.x/server-swift/examples/account/create-verification.md index a219907a945..b036a1a7e40 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/create-verification.md +++ b/docs/examples/1.1.x/server-swift/examples/account/create-verification.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/delete-session.md b/docs/examples/1.1.x/server-swift/examples/account/delete-session.md index be2d784ca63..ec1bb76c9ff 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/delete-session.md +++ b/docs/examples/1.1.x/server-swift/examples/account/delete-session.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/delete-sessions.md b/docs/examples/1.1.x/server-swift/examples/account/delete-sessions.md index 54cdf941677..d7c94abfa8d 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/delete-sessions.md +++ b/docs/examples/1.1.x/server-swift/examples/account/delete-sessions.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/get-prefs.md b/docs/examples/1.1.x/server-swift/examples/account/get-prefs.md index 54b2a507071..78b392bb803 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/get-prefs.md +++ b/docs/examples/1.1.x/server-swift/examples/account/get-prefs.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/get-session.md b/docs/examples/1.1.x/server-swift/examples/account/get-session.md index 0bd69cadcb4..286d9ade2f4 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/get-session.md +++ b/docs/examples/1.1.x/server-swift/examples/account/get-session.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/get.md b/docs/examples/1.1.x/server-swift/examples/account/get.md index 470e90fad0c..bad12105899 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/get.md +++ b/docs/examples/1.1.x/server-swift/examples/account/get.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/list-logs.md b/docs/examples/1.1.x/server-swift/examples/account/list-logs.md index 733b48bb34f..be4b204155f 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/list-logs.md +++ b/docs/examples/1.1.x/server-swift/examples/account/list-logs.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/list-sessions.md b/docs/examples/1.1.x/server-swift/examples/account/list-sessions.md index c6b54c6959a..1c145a1d282 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/list-sessions.md +++ b/docs/examples/1.1.x/server-swift/examples/account/list-sessions.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/update-email.md b/docs/examples/1.1.x/server-swift/examples/account/update-email.md index f62c77d01e8..b53a9e23138 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/update-email.md +++ b/docs/examples/1.1.x/server-swift/examples/account/update-email.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/update-name.md b/docs/examples/1.1.x/server-swift/examples/account/update-name.md index f2e4f8401f3..b9f82c014c6 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/update-name.md +++ b/docs/examples/1.1.x/server-swift/examples/account/update-name.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/update-password.md b/docs/examples/1.1.x/server-swift/examples/account/update-password.md index 310b5b2d60a..f02ceeeb54d 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/update-password.md +++ b/docs/examples/1.1.x/server-swift/examples/account/update-password.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/update-phone-verification.md b/docs/examples/1.1.x/server-swift/examples/account/update-phone-verification.md index 95a8a4e247c..ff3baa5dba6 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/update-phone-verification.md +++ b/docs/examples/1.1.x/server-swift/examples/account/update-phone-verification.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/update-phone.md b/docs/examples/1.1.x/server-swift/examples/account/update-phone.md index 8e8e1edcbcf..ff181a64bed 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/update-phone.md +++ b/docs/examples/1.1.x/server-swift/examples/account/update-phone.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/update-prefs.md b/docs/examples/1.1.x/server-swift/examples/account/update-prefs.md index 67dcfb98646..d7bfc076576 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/update-prefs.md +++ b/docs/examples/1.1.x/server-swift/examples/account/update-prefs.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/update-recovery.md b/docs/examples/1.1.x/server-swift/examples/account/update-recovery.md index a87409df281..045346bbb4c 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/update-recovery.md +++ b/docs/examples/1.1.x/server-swift/examples/account/update-recovery.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/update-session.md b/docs/examples/1.1.x/server-swift/examples/account/update-session.md index 53d7245f0df..b85b5b8381f 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/update-session.md +++ b/docs/examples/1.1.x/server-swift/examples/account/update-session.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/update-status.md b/docs/examples/1.1.x/server-swift/examples/account/update-status.md index 0eaffe74856..6b82bdce630 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/update-status.md +++ b/docs/examples/1.1.x/server-swift/examples/account/update-status.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/account/update-verification.md b/docs/examples/1.1.x/server-swift/examples/account/update-verification.md index beb479a2886..6c9e9143a32 100644 --- a/docs/examples/1.1.x/server-swift/examples/account/update-verification.md +++ b/docs/examples/1.1.x/server-swift/examples/account/update-verification.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let account = Account(client) diff --git a/docs/examples/1.1.x/server-swift/examples/avatars/get-browser.md b/docs/examples/1.1.x/server-swift/examples/avatars/get-browser.md index 8057182bd36..53543502d43 100644 --- a/docs/examples/1.1.x/server-swift/examples/avatars/get-browser.md +++ b/docs/examples/1.1.x/server-swift/examples/avatars/get-browser.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let avatars = Avatars(client) diff --git a/docs/examples/1.1.x/server-swift/examples/avatars/get-credit-card.md b/docs/examples/1.1.x/server-swift/examples/avatars/get-credit-card.md index c77d5bc2de5..913127dcdfe 100644 --- a/docs/examples/1.1.x/server-swift/examples/avatars/get-credit-card.md +++ b/docs/examples/1.1.x/server-swift/examples/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let avatars = Avatars(client) diff --git a/docs/examples/1.1.x/server-swift/examples/avatars/get-favicon.md b/docs/examples/1.1.x/server-swift/examples/avatars/get-favicon.md index 73560480954..bdd5810404a 100644 --- a/docs/examples/1.1.x/server-swift/examples/avatars/get-favicon.md +++ b/docs/examples/1.1.x/server-swift/examples/avatars/get-favicon.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let avatars = Avatars(client) diff --git a/docs/examples/1.1.x/server-swift/examples/avatars/get-flag.md b/docs/examples/1.1.x/server-swift/examples/avatars/get-flag.md index 2a428353fcb..b8bad721a1e 100644 --- a/docs/examples/1.1.x/server-swift/examples/avatars/get-flag.md +++ b/docs/examples/1.1.x/server-swift/examples/avatars/get-flag.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let avatars = Avatars(client) diff --git a/docs/examples/1.1.x/server-swift/examples/avatars/get-image.md b/docs/examples/1.1.x/server-swift/examples/avatars/get-image.md index 73c565e1f45..57b810267e1 100644 --- a/docs/examples/1.1.x/server-swift/examples/avatars/get-image.md +++ b/docs/examples/1.1.x/server-swift/examples/avatars/get-image.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let avatars = Avatars(client) diff --git a/docs/examples/1.1.x/server-swift/examples/avatars/get-initials.md b/docs/examples/1.1.x/server-swift/examples/avatars/get-initials.md index 8e47fde104e..6cca461388e 100644 --- a/docs/examples/1.1.x/server-swift/examples/avatars/get-initials.md +++ b/docs/examples/1.1.x/server-swift/examples/avatars/get-initials.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let avatars = Avatars(client) diff --git a/docs/examples/1.1.x/server-swift/examples/avatars/get-q-r.md b/docs/examples/1.1.x/server-swift/examples/avatars/get-q-r.md index 67166250b92..5fe81460458 100644 --- a/docs/examples/1.1.x/server-swift/examples/avatars/get-q-r.md +++ b/docs/examples/1.1.x/server-swift/examples/avatars/get-q-r.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let avatars = Avatars(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/create-boolean-attribute.md b/docs/examples/1.1.x/server-swift/examples/databases/create-boolean-attribute.md index d6ca55536a9..d495efe8a33 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/create-boolean-attribute.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/create-collection.md b/docs/examples/1.1.x/server-swift/examples/databases/create-collection.md index b61b7d1978f..cf42e761566 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/create-collection.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/create-collection.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/create-datetime-attribute.md b/docs/examples/1.1.x/server-swift/examples/databases/create-datetime-attribute.md index b555fcff9d3..beb6479c30d 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/create-datetime-attribute.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/create-document.md b/docs/examples/1.1.x/server-swift/examples/databases/create-document.md index 8837ce8db6f..822e8853e92 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/create-document.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/create-document.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/create-email-attribute.md b/docs/examples/1.1.x/server-swift/examples/databases/create-email-attribute.md index 7a2d5d1a139..47fab58069b 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/create-email-attribute.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/create-email-attribute.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/create-enum-attribute.md b/docs/examples/1.1.x/server-swift/examples/databases/create-enum-attribute.md index 38a7d523e1e..4da6b72da3f 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/create-enum-attribute.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/create-float-attribute.md b/docs/examples/1.1.x/server-swift/examples/databases/create-float-attribute.md index e32a0fe917e..889aa7fe922 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/create-float-attribute.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/create-float-attribute.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/create-index.md b/docs/examples/1.1.x/server-swift/examples/databases/create-index.md index 5861e9e8625..7498b54c84e 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/create-index.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/create-index.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/create-integer-attribute.md b/docs/examples/1.1.x/server-swift/examples/databases/create-integer-attribute.md index 5cb313cf05e..8442c862fe7 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/create-integer-attribute.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/create-ip-attribute.md b/docs/examples/1.1.x/server-swift/examples/databases/create-ip-attribute.md index 9b1b8ae3bc5..0473143e1df 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/create-ip-attribute.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/create-string-attribute.md b/docs/examples/1.1.x/server-swift/examples/databases/create-string-attribute.md index 6f9ae7a68a5..8bc9e89b868 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/create-string-attribute.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/create-string-attribute.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/create-url-attribute.md b/docs/examples/1.1.x/server-swift/examples/databases/create-url-attribute.md index 6824c0565e0..e8a910fd5d4 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/create-url-attribute.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/create-url-attribute.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/create.md b/docs/examples/1.1.x/server-swift/examples/databases/create.md index 1feb7b2ae78..30530b3a8f6 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/create.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/create.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/delete-attribute.md b/docs/examples/1.1.x/server-swift/examples/databases/delete-attribute.md index 5eaeb38496b..9ba7c1805c4 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/delete-attribute.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/delete-attribute.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/delete-collection.md b/docs/examples/1.1.x/server-swift/examples/databases/delete-collection.md index 01efd25ca85..dd6d1f78392 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/delete-collection.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/delete-collection.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/delete-document.md b/docs/examples/1.1.x/server-swift/examples/databases/delete-document.md index 17834bc2043..a547f8a7a4b 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/delete-document.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/delete-document.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/delete-index.md b/docs/examples/1.1.x/server-swift/examples/databases/delete-index.md index 2cc03969fa9..cb5833c4c2d 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/delete-index.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/delete-index.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/delete.md b/docs/examples/1.1.x/server-swift/examples/databases/delete.md index 87078624473..d1aca9a8d82 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/delete.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/delete.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/get-attribute.md b/docs/examples/1.1.x/server-swift/examples/databases/get-attribute.md index a75709148db..02519efdd21 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/get-attribute.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/get-attribute.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/get-collection.md b/docs/examples/1.1.x/server-swift/examples/databases/get-collection.md index 035aa043b8a..e4939074457 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/get-collection.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/get-collection.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/get-document.md b/docs/examples/1.1.x/server-swift/examples/databases/get-document.md index c496195cc81..2aa314aac30 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/get-document.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/get-document.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/get-index.md b/docs/examples/1.1.x/server-swift/examples/databases/get-index.md index 6cd359b29d6..ba92e80f449 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/get-index.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/get-index.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/get.md b/docs/examples/1.1.x/server-swift/examples/databases/get.md index e887ba2e8a4..ae8769e79e1 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/get.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/get.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/list-attributes.md b/docs/examples/1.1.x/server-swift/examples/databases/list-attributes.md index 561511a97ce..0b66a4ccdbc 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/list-attributes.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/list-attributes.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/list-collections.md b/docs/examples/1.1.x/server-swift/examples/databases/list-collections.md index fc41250c707..11ccc7aa4b7 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/list-collections.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/list-collections.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/list-documents.md b/docs/examples/1.1.x/server-swift/examples/databases/list-documents.md index f988dec8b63..792d1425424 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/list-documents.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/list-documents.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/list-indexes.md b/docs/examples/1.1.x/server-swift/examples/databases/list-indexes.md index 7bd647981c8..c10136ebc73 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/list-indexes.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/list-indexes.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/list.md b/docs/examples/1.1.x/server-swift/examples/databases/list.md index 5ec5ba00343..72a9f61d108 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/list.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/list.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/update-collection.md b/docs/examples/1.1.x/server-swift/examples/databases/update-collection.md index 2a68187556a..6c29f667774 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/update-collection.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/update-collection.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/update-document.md b/docs/examples/1.1.x/server-swift/examples/databases/update-document.md index f68e5ae0112..f41f86b5369 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/update-document.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/update-document.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/databases/update.md b/docs/examples/1.1.x/server-swift/examples/databases/update.md index 030893fe003..9da8892d228 100644 --- a/docs/examples/1.1.x/server-swift/examples/databases/update.md +++ b/docs/examples/1.1.x/server-swift/examples/databases/update.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/create-build.md b/docs/examples/1.1.x/server-swift/examples/functions/create-build.md index 9e1d3a72224..c40aef224f2 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/create-build.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/create-build.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/create-deployment.md b/docs/examples/1.1.x/server-swift/examples/functions/create-deployment.md index d597639f5cc..0575ffbab13 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/create-deployment.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/create-deployment.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/create-execution.md b/docs/examples/1.1.x/server-swift/examples/functions/create-execution.md index 928d54d2188..da031b75eaf 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/create-execution.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/create-execution.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/create-variable.md b/docs/examples/1.1.x/server-swift/examples/functions/create-variable.md index 982fabcb9ef..5aa71556437 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/create-variable.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/create-variable.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/create.md b/docs/examples/1.1.x/server-swift/examples/functions/create.md index 4b43191f1b3..58cb0e70119 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/create.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/create.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/delete-deployment.md b/docs/examples/1.1.x/server-swift/examples/functions/delete-deployment.md index 02966e7cf92..3959d9349e8 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/delete-deployment.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/delete-deployment.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/delete-variable.md b/docs/examples/1.1.x/server-swift/examples/functions/delete-variable.md index d9ffc1431f6..0f1558429c0 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/delete-variable.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/delete-variable.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/delete.md b/docs/examples/1.1.x/server-swift/examples/functions/delete.md index 1a03d6618f3..3339f7dd5f5 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/delete.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/delete.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/get-deployment.md b/docs/examples/1.1.x/server-swift/examples/functions/get-deployment.md index f1971accfe8..d6aa1863508 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/get-deployment.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/get-deployment.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/get-execution.md b/docs/examples/1.1.x/server-swift/examples/functions/get-execution.md index 51ce69e678f..ae51d84f096 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/get-execution.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/get-execution.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/get-variable.md b/docs/examples/1.1.x/server-swift/examples/functions/get-variable.md index b5fd9d29933..2ad027871c4 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/get-variable.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/get-variable.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/get.md b/docs/examples/1.1.x/server-swift/examples/functions/get.md index 54c0ced9791..c2c38f39caf 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/get.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/get.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/list-deployments.md b/docs/examples/1.1.x/server-swift/examples/functions/list-deployments.md index 015236e68a8..8d05e356010 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/list-deployments.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/list-deployments.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/list-executions.md b/docs/examples/1.1.x/server-swift/examples/functions/list-executions.md index c85376dd9f2..ad5d6fc147f 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/list-executions.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/list-executions.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/list-runtimes.md b/docs/examples/1.1.x/server-swift/examples/functions/list-runtimes.md index dcca318b266..82dd99c7bcd 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/list-runtimes.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/list-runtimes.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/list-variables.md b/docs/examples/1.1.x/server-swift/examples/functions/list-variables.md index 09473bef5cf..a54ba2e464b 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/list-variables.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/list-variables.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/list.md b/docs/examples/1.1.x/server-swift/examples/functions/list.md index 8214fbe91b0..12f2bb0e439 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/list.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/list.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/update-deployment.md b/docs/examples/1.1.x/server-swift/examples/functions/update-deployment.md index f7b9724f635..e46459d646e 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/update-deployment.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/update-deployment.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/update-variable.md b/docs/examples/1.1.x/server-swift/examples/functions/update-variable.md index f0afd45afb7..1dd1e391d69 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/update-variable.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/update-variable.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/functions/update.md b/docs/examples/1.1.x/server-swift/examples/functions/update.md index 04464119d4d..7ea32487917 100644 --- a/docs/examples/1.1.x/server-swift/examples/functions/update.md +++ b/docs/examples/1.1.x/server-swift/examples/functions/update.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.1.x/server-swift/examples/health/get-antivirus.md b/docs/examples/1.1.x/server-swift/examples/health/get-antivirus.md index 0b92f9868e1..4477f2aa75e 100644 --- a/docs/examples/1.1.x/server-swift/examples/health/get-antivirus.md +++ b/docs/examples/1.1.x/server-swift/examples/health/get-antivirus.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.1.x/server-swift/examples/health/get-cache.md b/docs/examples/1.1.x/server-swift/examples/health/get-cache.md index f2bc6e7d276..9f4e3444fab 100644 --- a/docs/examples/1.1.x/server-swift/examples/health/get-cache.md +++ b/docs/examples/1.1.x/server-swift/examples/health/get-cache.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.1.x/server-swift/examples/health/get-d-b.md b/docs/examples/1.1.x/server-swift/examples/health/get-d-b.md index 412e44faca3..370ffdf12b9 100644 --- a/docs/examples/1.1.x/server-swift/examples/health/get-d-b.md +++ b/docs/examples/1.1.x/server-swift/examples/health/get-d-b.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.1.x/server-swift/examples/health/get-queue-certificates.md b/docs/examples/1.1.x/server-swift/examples/health/get-queue-certificates.md index 7d79ab2e69b..2ef6db465fc 100644 --- a/docs/examples/1.1.x/server-swift/examples/health/get-queue-certificates.md +++ b/docs/examples/1.1.x/server-swift/examples/health/get-queue-certificates.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.1.x/server-swift/examples/health/get-queue-functions.md b/docs/examples/1.1.x/server-swift/examples/health/get-queue-functions.md index ca4880f88c0..5ee20c82a9a 100644 --- a/docs/examples/1.1.x/server-swift/examples/health/get-queue-functions.md +++ b/docs/examples/1.1.x/server-swift/examples/health/get-queue-functions.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.1.x/server-swift/examples/health/get-queue-logs.md b/docs/examples/1.1.x/server-swift/examples/health/get-queue-logs.md index 9e7c9ab73b5..d4cc6980f58 100644 --- a/docs/examples/1.1.x/server-swift/examples/health/get-queue-logs.md +++ b/docs/examples/1.1.x/server-swift/examples/health/get-queue-logs.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.1.x/server-swift/examples/health/get-queue-webhooks.md b/docs/examples/1.1.x/server-swift/examples/health/get-queue-webhooks.md index e28a7af0c3c..6836085d5e7 100644 --- a/docs/examples/1.1.x/server-swift/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.1.x/server-swift/examples/health/get-queue-webhooks.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.1.x/server-swift/examples/health/get-storage-local.md b/docs/examples/1.1.x/server-swift/examples/health/get-storage-local.md index 8522c316a55..65e9440b7f2 100644 --- a/docs/examples/1.1.x/server-swift/examples/health/get-storage-local.md +++ b/docs/examples/1.1.x/server-swift/examples/health/get-storage-local.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.1.x/server-swift/examples/health/get-time.md b/docs/examples/1.1.x/server-swift/examples/health/get-time.md index 9846637066e..c7d0f24f468 100644 --- a/docs/examples/1.1.x/server-swift/examples/health/get-time.md +++ b/docs/examples/1.1.x/server-swift/examples/health/get-time.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.1.x/server-swift/examples/health/get.md b/docs/examples/1.1.x/server-swift/examples/health/get.md index 07c978dfd56..bc66290b1aa 100644 --- a/docs/examples/1.1.x/server-swift/examples/health/get.md +++ b/docs/examples/1.1.x/server-swift/examples/health/get.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.1.x/server-swift/examples/locale/get.md b/docs/examples/1.1.x/server-swift/examples/locale/get.md index 4f645109a8c..17184eefe9e 100644 --- a/docs/examples/1.1.x/server-swift/examples/locale/get.md +++ b/docs/examples/1.1.x/server-swift/examples/locale/get.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let locale = Locale(client) diff --git a/docs/examples/1.1.x/server-swift/examples/locale/list-continents.md b/docs/examples/1.1.x/server-swift/examples/locale/list-continents.md index b8279884bf1..b508cef8166 100644 --- a/docs/examples/1.1.x/server-swift/examples/locale/list-continents.md +++ b/docs/examples/1.1.x/server-swift/examples/locale/list-continents.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let locale = Locale(client) diff --git a/docs/examples/1.1.x/server-swift/examples/locale/list-countries-e-u.md b/docs/examples/1.1.x/server-swift/examples/locale/list-countries-e-u.md index 4f7c2c21342..979d7d02197 100644 --- a/docs/examples/1.1.x/server-swift/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.1.x/server-swift/examples/locale/list-countries-e-u.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let locale = Locale(client) diff --git a/docs/examples/1.1.x/server-swift/examples/locale/list-countries-phones.md b/docs/examples/1.1.x/server-swift/examples/locale/list-countries-phones.md index e8ebcbec9a5..b5a5acf0619 100644 --- a/docs/examples/1.1.x/server-swift/examples/locale/list-countries-phones.md +++ b/docs/examples/1.1.x/server-swift/examples/locale/list-countries-phones.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let locale = Locale(client) diff --git a/docs/examples/1.1.x/server-swift/examples/locale/list-countries.md b/docs/examples/1.1.x/server-swift/examples/locale/list-countries.md index 508a13931a4..45d7f1f8f1c 100644 --- a/docs/examples/1.1.x/server-swift/examples/locale/list-countries.md +++ b/docs/examples/1.1.x/server-swift/examples/locale/list-countries.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let locale = Locale(client) diff --git a/docs/examples/1.1.x/server-swift/examples/locale/list-currencies.md b/docs/examples/1.1.x/server-swift/examples/locale/list-currencies.md index 8fe57a263ee..72e55f2af57 100644 --- a/docs/examples/1.1.x/server-swift/examples/locale/list-currencies.md +++ b/docs/examples/1.1.x/server-swift/examples/locale/list-currencies.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let locale = Locale(client) diff --git a/docs/examples/1.1.x/server-swift/examples/locale/list-languages.md b/docs/examples/1.1.x/server-swift/examples/locale/list-languages.md index 2508c795722..eb7e7c63c19 100644 --- a/docs/examples/1.1.x/server-swift/examples/locale/list-languages.md +++ b/docs/examples/1.1.x/server-swift/examples/locale/list-languages.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let locale = Locale(client) diff --git a/docs/examples/1.1.x/server-swift/examples/storage/create-bucket.md b/docs/examples/1.1.x/server-swift/examples/storage/create-bucket.md index 3d45a638a7e..f260164a400 100644 --- a/docs/examples/1.1.x/server-swift/examples/storage/create-bucket.md +++ b/docs/examples/1.1.x/server-swift/examples/storage/create-bucket.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.1.x/server-swift/examples/storage/create-file.md b/docs/examples/1.1.x/server-swift/examples/storage/create-file.md index 69159c88c97..c37989129c5 100644 --- a/docs/examples/1.1.x/server-swift/examples/storage/create-file.md +++ b/docs/examples/1.1.x/server-swift/examples/storage/create-file.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.1.x/server-swift/examples/storage/delete-bucket.md b/docs/examples/1.1.x/server-swift/examples/storage/delete-bucket.md index ec9652671a3..b142051e39b 100644 --- a/docs/examples/1.1.x/server-swift/examples/storage/delete-bucket.md +++ b/docs/examples/1.1.x/server-swift/examples/storage/delete-bucket.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.1.x/server-swift/examples/storage/delete-file.md b/docs/examples/1.1.x/server-swift/examples/storage/delete-file.md index f557f8da2b8..3996fdf379d 100644 --- a/docs/examples/1.1.x/server-swift/examples/storage/delete-file.md +++ b/docs/examples/1.1.x/server-swift/examples/storage/delete-file.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.1.x/server-swift/examples/storage/get-bucket.md b/docs/examples/1.1.x/server-swift/examples/storage/get-bucket.md index e51704c98fe..3fff08cdc11 100644 --- a/docs/examples/1.1.x/server-swift/examples/storage/get-bucket.md +++ b/docs/examples/1.1.x/server-swift/examples/storage/get-bucket.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.1.x/server-swift/examples/storage/get-file-download.md b/docs/examples/1.1.x/server-swift/examples/storage/get-file-download.md index e71a2408a41..391a51da376 100644 --- a/docs/examples/1.1.x/server-swift/examples/storage/get-file-download.md +++ b/docs/examples/1.1.x/server-swift/examples/storage/get-file-download.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.1.x/server-swift/examples/storage/get-file-preview.md b/docs/examples/1.1.x/server-swift/examples/storage/get-file-preview.md index 45b06b90811..4644f8005de 100644 --- a/docs/examples/1.1.x/server-swift/examples/storage/get-file-preview.md +++ b/docs/examples/1.1.x/server-swift/examples/storage/get-file-preview.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.1.x/server-swift/examples/storage/get-file-view.md b/docs/examples/1.1.x/server-swift/examples/storage/get-file-view.md index e23670aeb37..cbd2ced90e4 100644 --- a/docs/examples/1.1.x/server-swift/examples/storage/get-file-view.md +++ b/docs/examples/1.1.x/server-swift/examples/storage/get-file-view.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.1.x/server-swift/examples/storage/get-file.md b/docs/examples/1.1.x/server-swift/examples/storage/get-file.md index 7f6d790b4df..9b9293506e4 100644 --- a/docs/examples/1.1.x/server-swift/examples/storage/get-file.md +++ b/docs/examples/1.1.x/server-swift/examples/storage/get-file.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.1.x/server-swift/examples/storage/list-buckets.md b/docs/examples/1.1.x/server-swift/examples/storage/list-buckets.md index d0313967e1d..8d08f8224fc 100644 --- a/docs/examples/1.1.x/server-swift/examples/storage/list-buckets.md +++ b/docs/examples/1.1.x/server-swift/examples/storage/list-buckets.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.1.x/server-swift/examples/storage/list-files.md b/docs/examples/1.1.x/server-swift/examples/storage/list-files.md index b7966aac3cd..c4ddef2cede 100644 --- a/docs/examples/1.1.x/server-swift/examples/storage/list-files.md +++ b/docs/examples/1.1.x/server-swift/examples/storage/list-files.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.1.x/server-swift/examples/storage/update-bucket.md b/docs/examples/1.1.x/server-swift/examples/storage/update-bucket.md index 818913710fe..b40294ea19e 100644 --- a/docs/examples/1.1.x/server-swift/examples/storage/update-bucket.md +++ b/docs/examples/1.1.x/server-swift/examples/storage/update-bucket.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.1.x/server-swift/examples/storage/update-file.md b/docs/examples/1.1.x/server-swift/examples/storage/update-file.md index 3ca3a40dc7b..7df3a055c42 100644 --- a/docs/examples/1.1.x/server-swift/examples/storage/update-file.md +++ b/docs/examples/1.1.x/server-swift/examples/storage/update-file.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.1.x/server-swift/examples/teams/create-membership.md b/docs/examples/1.1.x/server-swift/examples/teams/create-membership.md index 1ef67dec54a..7e780492c10 100644 --- a/docs/examples/1.1.x/server-swift/examples/teams/create-membership.md +++ b/docs/examples/1.1.x/server-swift/examples/teams/create-membership.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let teams = Teams(client) diff --git a/docs/examples/1.1.x/server-swift/examples/teams/create.md b/docs/examples/1.1.x/server-swift/examples/teams/create.md index 8a7f0248cf0..07e00ebb463 100644 --- a/docs/examples/1.1.x/server-swift/examples/teams/create.md +++ b/docs/examples/1.1.x/server-swift/examples/teams/create.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let teams = Teams(client) diff --git a/docs/examples/1.1.x/server-swift/examples/teams/delete-membership.md b/docs/examples/1.1.x/server-swift/examples/teams/delete-membership.md index df6703034f1..219fcec1906 100644 --- a/docs/examples/1.1.x/server-swift/examples/teams/delete-membership.md +++ b/docs/examples/1.1.x/server-swift/examples/teams/delete-membership.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let teams = Teams(client) diff --git a/docs/examples/1.1.x/server-swift/examples/teams/delete.md b/docs/examples/1.1.x/server-swift/examples/teams/delete.md index 53c082653c0..c8bdd09b1c8 100644 --- a/docs/examples/1.1.x/server-swift/examples/teams/delete.md +++ b/docs/examples/1.1.x/server-swift/examples/teams/delete.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let teams = Teams(client) diff --git a/docs/examples/1.1.x/server-swift/examples/teams/get-membership.md b/docs/examples/1.1.x/server-swift/examples/teams/get-membership.md index 7910ed04682..e60a9f67e92 100644 --- a/docs/examples/1.1.x/server-swift/examples/teams/get-membership.md +++ b/docs/examples/1.1.x/server-swift/examples/teams/get-membership.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let teams = Teams(client) diff --git a/docs/examples/1.1.x/server-swift/examples/teams/get.md b/docs/examples/1.1.x/server-swift/examples/teams/get.md index 13c8c729bc8..8d728baebe6 100644 --- a/docs/examples/1.1.x/server-swift/examples/teams/get.md +++ b/docs/examples/1.1.x/server-swift/examples/teams/get.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let teams = Teams(client) diff --git a/docs/examples/1.1.x/server-swift/examples/teams/list-memberships.md b/docs/examples/1.1.x/server-swift/examples/teams/list-memberships.md index 1b0ac1ade46..5910ee0a738 100644 --- a/docs/examples/1.1.x/server-swift/examples/teams/list-memberships.md +++ b/docs/examples/1.1.x/server-swift/examples/teams/list-memberships.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let teams = Teams(client) diff --git a/docs/examples/1.1.x/server-swift/examples/teams/list.md b/docs/examples/1.1.x/server-swift/examples/teams/list.md index edfd6753788..3673d1be26c 100644 --- a/docs/examples/1.1.x/server-swift/examples/teams/list.md +++ b/docs/examples/1.1.x/server-swift/examples/teams/list.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let teams = Teams(client) diff --git a/docs/examples/1.1.x/server-swift/examples/teams/update-membership-roles.md b/docs/examples/1.1.x/server-swift/examples/teams/update-membership-roles.md index 2088ed86287..bbeea258080 100644 --- a/docs/examples/1.1.x/server-swift/examples/teams/update-membership-roles.md +++ b/docs/examples/1.1.x/server-swift/examples/teams/update-membership-roles.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let teams = Teams(client) diff --git a/docs/examples/1.1.x/server-swift/examples/teams/update-membership-status.md b/docs/examples/1.1.x/server-swift/examples/teams/update-membership-status.md index 1b402a6ef08..0b062a8adcf 100644 --- a/docs/examples/1.1.x/server-swift/examples/teams/update-membership-status.md +++ b/docs/examples/1.1.x/server-swift/examples/teams/update-membership-status.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token let teams = Teams(client) diff --git a/docs/examples/1.1.x/server-swift/examples/teams/update.md b/docs/examples/1.1.x/server-swift/examples/teams/update.md index a5031fbe661..8866800bb10 100644 --- a/docs/examples/1.1.x/server-swift/examples/teams/update.md +++ b/docs/examples/1.1.x/server-swift/examples/teams/update.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let teams = Teams(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/create-argon2user.md b/docs/examples/1.1.x/server-swift/examples/users/create-argon2user.md index 37fbb5f5e9a..08c8be988cd 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/create-argon2user.md +++ b/docs/examples/1.1.x/server-swift/examples/users/create-argon2user.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/create-bcrypt-user.md b/docs/examples/1.1.x/server-swift/examples/users/create-bcrypt-user.md index 3221afcb7fa..a03b98364fa 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.1.x/server-swift/examples/users/create-bcrypt-user.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/create-m-d5user.md b/docs/examples/1.1.x/server-swift/examples/users/create-m-d5user.md index ffb6aee7cdd..2e0e0c612fa 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/create-m-d5user.md +++ b/docs/examples/1.1.x/server-swift/examples/users/create-m-d5user.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/create-p-h-pass-user.md b/docs/examples/1.1.x/server-swift/examples/users/create-p-h-pass-user.md index c0103185c76..aec9d06bc62 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.1.x/server-swift/examples/users/create-p-h-pass-user.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/create-s-h-a-user.md b/docs/examples/1.1.x/server-swift/examples/users/create-s-h-a-user.md index 5466b087810..5a310eaaf57 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.1.x/server-swift/examples/users/create-s-h-a-user.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/create-scrypt-modified-user.md b/docs/examples/1.1.x/server-swift/examples/users/create-scrypt-modified-user.md index 0f6766d2c2e..dfa51b2f50a 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.1.x/server-swift/examples/users/create-scrypt-modified-user.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/create-scrypt-user.md b/docs/examples/1.1.x/server-swift/examples/users/create-scrypt-user.md index 8b958269ad1..4550b0bf349 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/create-scrypt-user.md +++ b/docs/examples/1.1.x/server-swift/examples/users/create-scrypt-user.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/create.md b/docs/examples/1.1.x/server-swift/examples/users/create.md index c03184d31cc..b552d625a09 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/create.md +++ b/docs/examples/1.1.x/server-swift/examples/users/create.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/delete-session.md b/docs/examples/1.1.x/server-swift/examples/users/delete-session.md index a811debd605..52116ebb4c0 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/delete-session.md +++ b/docs/examples/1.1.x/server-swift/examples/users/delete-session.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/delete-sessions.md b/docs/examples/1.1.x/server-swift/examples/users/delete-sessions.md index 9a55a96b16f..b65ae3ed1c1 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/delete-sessions.md +++ b/docs/examples/1.1.x/server-swift/examples/users/delete-sessions.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/delete.md b/docs/examples/1.1.x/server-swift/examples/users/delete.md index 50369f93656..4b148f57134 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/delete.md +++ b/docs/examples/1.1.x/server-swift/examples/users/delete.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/get-prefs.md b/docs/examples/1.1.x/server-swift/examples/users/get-prefs.md index e71fab142df..ed7f18cb333 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/get-prefs.md +++ b/docs/examples/1.1.x/server-swift/examples/users/get-prefs.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/get.md b/docs/examples/1.1.x/server-swift/examples/users/get.md index 0361712d1f1..3f942c1b6ca 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/get.md +++ b/docs/examples/1.1.x/server-swift/examples/users/get.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/list-logs.md b/docs/examples/1.1.x/server-swift/examples/users/list-logs.md index 281a9b3fbfd..2488a702a1b 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/list-logs.md +++ b/docs/examples/1.1.x/server-swift/examples/users/list-logs.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/list-memberships.md b/docs/examples/1.1.x/server-swift/examples/users/list-memberships.md index 7aff15fd22e..98fceaca968 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/list-memberships.md +++ b/docs/examples/1.1.x/server-swift/examples/users/list-memberships.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/list-sessions.md b/docs/examples/1.1.x/server-swift/examples/users/list-sessions.md index 75f78558fbb..c2e7210fe5f 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/list-sessions.md +++ b/docs/examples/1.1.x/server-swift/examples/users/list-sessions.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/list.md b/docs/examples/1.1.x/server-swift/examples/users/list.md index b41a7997bc4..a7591ebb7bc 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/list.md +++ b/docs/examples/1.1.x/server-swift/examples/users/list.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/update-email-verification.md b/docs/examples/1.1.x/server-swift/examples/users/update-email-verification.md index 66ae99fef11..386dfaaee10 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/update-email-verification.md +++ b/docs/examples/1.1.x/server-swift/examples/users/update-email-verification.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/update-email.md b/docs/examples/1.1.x/server-swift/examples/users/update-email.md index f6850bc5c49..78d4eb00654 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/update-email.md +++ b/docs/examples/1.1.x/server-swift/examples/users/update-email.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/update-name.md b/docs/examples/1.1.x/server-swift/examples/users/update-name.md index 7b0524c0ab8..79d9fef4755 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/update-name.md +++ b/docs/examples/1.1.x/server-swift/examples/users/update-name.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/update-password.md b/docs/examples/1.1.x/server-swift/examples/users/update-password.md index af04c24c41f..f6cedbe942c 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/update-password.md +++ b/docs/examples/1.1.x/server-swift/examples/users/update-password.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/update-phone-verification.md b/docs/examples/1.1.x/server-swift/examples/users/update-phone-verification.md index 168cbf352c9..8bd4267be2d 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/update-phone-verification.md +++ b/docs/examples/1.1.x/server-swift/examples/users/update-phone-verification.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/update-phone.md b/docs/examples/1.1.x/server-swift/examples/users/update-phone.md index 2630c8954a4..fb7eb0aa3f7 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/update-phone.md +++ b/docs/examples/1.1.x/server-swift/examples/users/update-phone.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/update-prefs.md b/docs/examples/1.1.x/server-swift/examples/users/update-prefs.md index dbb87bf3b3a..f57db9910a6 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/update-prefs.md +++ b/docs/examples/1.1.x/server-swift/examples/users/update-prefs.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.1.x/server-swift/examples/users/update-status.md b/docs/examples/1.1.x/server-swift/examples/users/update-status.md index 0fdd543d9fa..7224c949d37 100644 --- a/docs/examples/1.1.x/server-swift/examples/users/update-status.md +++ b/docs/examples/1.1.x/server-swift/examples/users/update-status.md @@ -2,7 +2,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.2.x/client-android/java/account/create-anonymous-session.md b/docs/examples/1.2.x/client-android/java/account/create-anonymous-session.md index 59c76309e74..a52a17d1d03 100644 --- a/docs/examples/1.2.x/client-android/java/account/create-anonymous-session.md +++ b/docs/examples/1.2.x/client-android/java/account/create-anonymous-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/create-email-session.md b/docs/examples/1.2.x/client-android/java/account/create-email-session.md index e3e6fdd0070..86fa95f43c0 100644 --- a/docs/examples/1.2.x/client-android/java/account/create-email-session.md +++ b/docs/examples/1.2.x/client-android/java/account/create-email-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/create-j-w-t.md b/docs/examples/1.2.x/client-android/java/account/create-j-w-t.md index c3123860181..5b68aeb7ddc 100644 --- a/docs/examples/1.2.x/client-android/java/account/create-j-w-t.md +++ b/docs/examples/1.2.x/client-android/java/account/create-j-w-t.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/create-magic-u-r-l-session.md b/docs/examples/1.2.x/client-android/java/account/create-magic-u-r-l-session.md index 0ed43dc2860..a0b4e86b9f4 100644 --- a/docs/examples/1.2.x/client-android/java/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.2.x/client-android/java/account/create-magic-u-r-l-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/create-o-auth2session.md b/docs/examples/1.2.x/client-android/java/account/create-o-auth2session.md index cb9386a8483..57870eedbbf 100644 --- a/docs/examples/1.2.x/client-android/java/account/create-o-auth2session.md +++ b/docs/examples/1.2.x/client-android/java/account/create-o-auth2session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/create-phone-session.md b/docs/examples/1.2.x/client-android/java/account/create-phone-session.md index df5bc86891d..04918325c3f 100644 --- a/docs/examples/1.2.x/client-android/java/account/create-phone-session.md +++ b/docs/examples/1.2.x/client-android/java/account/create-phone-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/create-phone-verification.md b/docs/examples/1.2.x/client-android/java/account/create-phone-verification.md index 1545d0f82d2..7b7c354fff2 100644 --- a/docs/examples/1.2.x/client-android/java/account/create-phone-verification.md +++ b/docs/examples/1.2.x/client-android/java/account/create-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/create-recovery.md b/docs/examples/1.2.x/client-android/java/account/create-recovery.md index 5e8584fc359..955fe451ba7 100644 --- a/docs/examples/1.2.x/client-android/java/account/create-recovery.md +++ b/docs/examples/1.2.x/client-android/java/account/create-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/create-verification.md b/docs/examples/1.2.x/client-android/java/account/create-verification.md index fcea98f66c0..3fc9879f3ae 100644 --- a/docs/examples/1.2.x/client-android/java/account/create-verification.md +++ b/docs/examples/1.2.x/client-android/java/account/create-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/create.md b/docs/examples/1.2.x/client-android/java/account/create.md index a660b8ae937..83e367eaf34 100644 --- a/docs/examples/1.2.x/client-android/java/account/create.md +++ b/docs/examples/1.2.x/client-android/java/account/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/delete-session.md b/docs/examples/1.2.x/client-android/java/account/delete-session.md index 28009d014db..345094fcc2e 100644 --- a/docs/examples/1.2.x/client-android/java/account/delete-session.md +++ b/docs/examples/1.2.x/client-android/java/account/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/delete-sessions.md b/docs/examples/1.2.x/client-android/java/account/delete-sessions.md index 6bdc840cff0..7be86bea510 100644 --- a/docs/examples/1.2.x/client-android/java/account/delete-sessions.md +++ b/docs/examples/1.2.x/client-android/java/account/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/get-prefs.md b/docs/examples/1.2.x/client-android/java/account/get-prefs.md index 9911ad30a43..2b4f47b5046 100644 --- a/docs/examples/1.2.x/client-android/java/account/get-prefs.md +++ b/docs/examples/1.2.x/client-android/java/account/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/get-session.md b/docs/examples/1.2.x/client-android/java/account/get-session.md index fecb543782a..554bd545983 100644 --- a/docs/examples/1.2.x/client-android/java/account/get-session.md +++ b/docs/examples/1.2.x/client-android/java/account/get-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/get.md b/docs/examples/1.2.x/client-android/java/account/get.md index 2e5f40ad241..d6cf1077f59 100644 --- a/docs/examples/1.2.x/client-android/java/account/get.md +++ b/docs/examples/1.2.x/client-android/java/account/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/list-logs.md b/docs/examples/1.2.x/client-android/java/account/list-logs.md index d2ce790bfe8..8fed6547c36 100644 --- a/docs/examples/1.2.x/client-android/java/account/list-logs.md +++ b/docs/examples/1.2.x/client-android/java/account/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/list-sessions.md b/docs/examples/1.2.x/client-android/java/account/list-sessions.md index 7fd587e1ba3..f77b0b387aa 100644 --- a/docs/examples/1.2.x/client-android/java/account/list-sessions.md +++ b/docs/examples/1.2.x/client-android/java/account/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/update-email.md b/docs/examples/1.2.x/client-android/java/account/update-email.md index 8034ada87dd..86ea5207c95 100644 --- a/docs/examples/1.2.x/client-android/java/account/update-email.md +++ b/docs/examples/1.2.x/client-android/java/account/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/update-magic-u-r-l-session.md b/docs/examples/1.2.x/client-android/java/account/update-magic-u-r-l-session.md index 0f8f2b3c5ce..58c491f389e 100644 --- a/docs/examples/1.2.x/client-android/java/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.2.x/client-android/java/account/update-magic-u-r-l-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/update-name.md b/docs/examples/1.2.x/client-android/java/account/update-name.md index 5940f93ef24..f10172ee8a5 100644 --- a/docs/examples/1.2.x/client-android/java/account/update-name.md +++ b/docs/examples/1.2.x/client-android/java/account/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/update-password.md b/docs/examples/1.2.x/client-android/java/account/update-password.md index 47d0415d55a..d5d342219ed 100644 --- a/docs/examples/1.2.x/client-android/java/account/update-password.md +++ b/docs/examples/1.2.x/client-android/java/account/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/update-phone-session.md b/docs/examples/1.2.x/client-android/java/account/update-phone-session.md index 589e4ff5097..ca34b65c1f9 100644 --- a/docs/examples/1.2.x/client-android/java/account/update-phone-session.md +++ b/docs/examples/1.2.x/client-android/java/account/update-phone-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/update-phone-verification.md b/docs/examples/1.2.x/client-android/java/account/update-phone-verification.md index 81785f97c2c..eb0fcbd9af1 100644 --- a/docs/examples/1.2.x/client-android/java/account/update-phone-verification.md +++ b/docs/examples/1.2.x/client-android/java/account/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/update-phone.md b/docs/examples/1.2.x/client-android/java/account/update-phone.md index a8572f911c8..b1680bb6046 100644 --- a/docs/examples/1.2.x/client-android/java/account/update-phone.md +++ b/docs/examples/1.2.x/client-android/java/account/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/update-prefs.md b/docs/examples/1.2.x/client-android/java/account/update-prefs.md index ffd5ef03b52..6552f1a68cc 100644 --- a/docs/examples/1.2.x/client-android/java/account/update-prefs.md +++ b/docs/examples/1.2.x/client-android/java/account/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/update-recovery.md b/docs/examples/1.2.x/client-android/java/account/update-recovery.md index 7b0f3921763..d6c17cff3fa 100644 --- a/docs/examples/1.2.x/client-android/java/account/update-recovery.md +++ b/docs/examples/1.2.x/client-android/java/account/update-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/update-session.md b/docs/examples/1.2.x/client-android/java/account/update-session.md index 27b8f00668f..4c40264def7 100644 --- a/docs/examples/1.2.x/client-android/java/account/update-session.md +++ b/docs/examples/1.2.x/client-android/java/account/update-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/update-status.md b/docs/examples/1.2.x/client-android/java/account/update-status.md index 1e18ded5405..42c0d2dd9df 100644 --- a/docs/examples/1.2.x/client-android/java/account/update-status.md +++ b/docs/examples/1.2.x/client-android/java/account/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/account/update-verification.md b/docs/examples/1.2.x/client-android/java/account/update-verification.md index d852dbf8382..ba1a2cd5e23 100644 --- a/docs/examples/1.2.x/client-android/java/account/update-verification.md +++ b/docs/examples/1.2.x/client-android/java/account/update-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.2.x/client-android/java/avatars/get-browser.md b/docs/examples/1.2.x/client-android/java/avatars/get-browser.md index f0721102367..2382d352d63 100644 --- a/docs/examples/1.2.x/client-android/java/avatars/get-browser.md +++ b/docs/examples/1.2.x/client-android/java/avatars/get-browser.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.2.x/client-android/java/avatars/get-credit-card.md b/docs/examples/1.2.x/client-android/java/avatars/get-credit-card.md index 0a733127917..9d3d9c31a3e 100644 --- a/docs/examples/1.2.x/client-android/java/avatars/get-credit-card.md +++ b/docs/examples/1.2.x/client-android/java/avatars/get-credit-card.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.2.x/client-android/java/avatars/get-favicon.md b/docs/examples/1.2.x/client-android/java/avatars/get-favicon.md index e0c1cb6b8a2..af7be8b2263 100644 --- a/docs/examples/1.2.x/client-android/java/avatars/get-favicon.md +++ b/docs/examples/1.2.x/client-android/java/avatars/get-favicon.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.2.x/client-android/java/avatars/get-flag.md b/docs/examples/1.2.x/client-android/java/avatars/get-flag.md index a5f47906404..698813bb1c8 100644 --- a/docs/examples/1.2.x/client-android/java/avatars/get-flag.md +++ b/docs/examples/1.2.x/client-android/java/avatars/get-flag.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.2.x/client-android/java/avatars/get-image.md b/docs/examples/1.2.x/client-android/java/avatars/get-image.md index cdc8ac722b6..903d93f4d1d 100644 --- a/docs/examples/1.2.x/client-android/java/avatars/get-image.md +++ b/docs/examples/1.2.x/client-android/java/avatars/get-image.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.2.x/client-android/java/avatars/get-initials.md b/docs/examples/1.2.x/client-android/java/avatars/get-initials.md index c02490c7344..8c5d1452fb3 100644 --- a/docs/examples/1.2.x/client-android/java/avatars/get-initials.md +++ b/docs/examples/1.2.x/client-android/java/avatars/get-initials.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.2.x/client-android/java/avatars/get-q-r.md b/docs/examples/1.2.x/client-android/java/avatars/get-q-r.md index 2532f204d83..80d03776ed5 100644 --- a/docs/examples/1.2.x/client-android/java/avatars/get-q-r.md +++ b/docs/examples/1.2.x/client-android/java/avatars/get-q-r.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.2.x/client-android/java/databases/create-document.md b/docs/examples/1.2.x/client-android/java/databases/create-document.md index 715e4cdbbe3..0be2e146d84 100644 --- a/docs/examples/1.2.x/client-android/java/databases/create-document.md +++ b/docs/examples/1.2.x/client-android/java/databases/create-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.2.x/client-android/java/databases/delete-document.md b/docs/examples/1.2.x/client-android/java/databases/delete-document.md index 1387f486870..f941418c084 100644 --- a/docs/examples/1.2.x/client-android/java/databases/delete-document.md +++ b/docs/examples/1.2.x/client-android/java/databases/delete-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.2.x/client-android/java/databases/get-document.md b/docs/examples/1.2.x/client-android/java/databases/get-document.md index fdba906d695..560f9bd896e 100644 --- a/docs/examples/1.2.x/client-android/java/databases/get-document.md +++ b/docs/examples/1.2.x/client-android/java/databases/get-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.2.x/client-android/java/databases/list-documents.md b/docs/examples/1.2.x/client-android/java/databases/list-documents.md index 62dc2c7e291..f4957e7f608 100644 --- a/docs/examples/1.2.x/client-android/java/databases/list-documents.md +++ b/docs/examples/1.2.x/client-android/java/databases/list-documents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.2.x/client-android/java/databases/update-document.md b/docs/examples/1.2.x/client-android/java/databases/update-document.md index d1ed59de3bd..0f31cb086d9 100644 --- a/docs/examples/1.2.x/client-android/java/databases/update-document.md +++ b/docs/examples/1.2.x/client-android/java/databases/update-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.2.x/client-android/java/functions/create-execution.md b/docs/examples/1.2.x/client-android/java/functions/create-execution.md index 3cce1c37be8..79cf8c11997 100644 --- a/docs/examples/1.2.x/client-android/java/functions/create-execution.md +++ b/docs/examples/1.2.x/client-android/java/functions/create-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.2.x/client-android/java/functions/get-execution.md b/docs/examples/1.2.x/client-android/java/functions/get-execution.md index 459d74394f2..496dfe61257 100644 --- a/docs/examples/1.2.x/client-android/java/functions/get-execution.md +++ b/docs/examples/1.2.x/client-android/java/functions/get-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.2.x/client-android/java/functions/list-executions.md b/docs/examples/1.2.x/client-android/java/functions/list-executions.md index c1f982b707b..6b8c37245e1 100644 --- a/docs/examples/1.2.x/client-android/java/functions/list-executions.md +++ b/docs/examples/1.2.x/client-android/java/functions/list-executions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.2.x/client-android/java/graphql/63a08ed7385a4.md b/docs/examples/1.2.x/client-android/java/graphql/63a08ed7385a4.md index b5e597eeddb..d36f03722f5 100644 --- a/docs/examples/1.2.x/client-android/java/graphql/63a08ed7385a4.md +++ b/docs/examples/1.2.x/client-android/java/graphql/63a08ed7385a4.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.2.x/client-android/java/graphql/get.md b/docs/examples/1.2.x/client-android/java/graphql/get.md index ff76ead3b72..829f6e433b0 100644 --- a/docs/examples/1.2.x/client-android/java/graphql/get.md +++ b/docs/examples/1.2.x/client-android/java/graphql/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.2.x/client-android/java/graphql/mutation.md b/docs/examples/1.2.x/client-android/java/graphql/mutation.md index 262e513bed7..3028bf105ae 100644 --- a/docs/examples/1.2.x/client-android/java/graphql/mutation.md +++ b/docs/examples/1.2.x/client-android/java/graphql/mutation.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.2.x/client-android/java/graphql/query.md b/docs/examples/1.2.x/client-android/java/graphql/query.md index 4291b4735f9..8215c674be5 100644 --- a/docs/examples/1.2.x/client-android/java/graphql/query.md +++ b/docs/examples/1.2.x/client-android/java/graphql/query.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.2.x/client-android/java/locale/get.md b/docs/examples/1.2.x/client-android/java/locale/get.md index 4d14be6d733..443f5e29b57 100644 --- a/docs/examples/1.2.x/client-android/java/locale/get.md +++ b/docs/examples/1.2.x/client-android/java/locale/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.2.x/client-android/java/locale/list-continents.md b/docs/examples/1.2.x/client-android/java/locale/list-continents.md index 6abe97a0a02..47d11d7348b 100644 --- a/docs/examples/1.2.x/client-android/java/locale/list-continents.md +++ b/docs/examples/1.2.x/client-android/java/locale/list-continents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.2.x/client-android/java/locale/list-countries-e-u.md b/docs/examples/1.2.x/client-android/java/locale/list-countries-e-u.md index 3c5ca3ae8c5..0f010e71f3e 100644 --- a/docs/examples/1.2.x/client-android/java/locale/list-countries-e-u.md +++ b/docs/examples/1.2.x/client-android/java/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.2.x/client-android/java/locale/list-countries-phones.md b/docs/examples/1.2.x/client-android/java/locale/list-countries-phones.md index 81ef94d702d..0ff5e0a14eb 100644 --- a/docs/examples/1.2.x/client-android/java/locale/list-countries-phones.md +++ b/docs/examples/1.2.x/client-android/java/locale/list-countries-phones.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.2.x/client-android/java/locale/list-countries.md b/docs/examples/1.2.x/client-android/java/locale/list-countries.md index dc0d5f52c4e..754507d56b1 100644 --- a/docs/examples/1.2.x/client-android/java/locale/list-countries.md +++ b/docs/examples/1.2.x/client-android/java/locale/list-countries.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.2.x/client-android/java/locale/list-currencies.md b/docs/examples/1.2.x/client-android/java/locale/list-currencies.md index 7a327b38ae7..82665375509 100644 --- a/docs/examples/1.2.x/client-android/java/locale/list-currencies.md +++ b/docs/examples/1.2.x/client-android/java/locale/list-currencies.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.2.x/client-android/java/locale/list-languages.md b/docs/examples/1.2.x/client-android/java/locale/list-languages.md index 0688614b6df..ad8d092a16b 100644 --- a/docs/examples/1.2.x/client-android/java/locale/list-languages.md +++ b/docs/examples/1.2.x/client-android/java/locale/list-languages.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.2.x/client-android/java/storage/create-file.md b/docs/examples/1.2.x/client-android/java/storage/create-file.md index 732b302f635..88fdd64a10b 100644 --- a/docs/examples/1.2.x/client-android/java/storage/create-file.md +++ b/docs/examples/1.2.x/client-android/java/storage/create-file.md @@ -4,7 +4,7 @@ import io.appwrite.models.InputFile; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.2.x/client-android/java/storage/delete-file.md b/docs/examples/1.2.x/client-android/java/storage/delete-file.md index 69a0f0f844b..90e98d3f0c8 100644 --- a/docs/examples/1.2.x/client-android/java/storage/delete-file.md +++ b/docs/examples/1.2.x/client-android/java/storage/delete-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.2.x/client-android/java/storage/get-file-download.md b/docs/examples/1.2.x/client-android/java/storage/get-file-download.md index 2ab30dce5af..5c92a9b27d1 100644 --- a/docs/examples/1.2.x/client-android/java/storage/get-file-download.md +++ b/docs/examples/1.2.x/client-android/java/storage/get-file-download.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.2.x/client-android/java/storage/get-file-preview.md b/docs/examples/1.2.x/client-android/java/storage/get-file-preview.md index 483f2fca168..519b03f73b4 100644 --- a/docs/examples/1.2.x/client-android/java/storage/get-file-preview.md +++ b/docs/examples/1.2.x/client-android/java/storage/get-file-preview.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.2.x/client-android/java/storage/get-file-view.md b/docs/examples/1.2.x/client-android/java/storage/get-file-view.md index 5614b694a50..376428309b4 100644 --- a/docs/examples/1.2.x/client-android/java/storage/get-file-view.md +++ b/docs/examples/1.2.x/client-android/java/storage/get-file-view.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.2.x/client-android/java/storage/get-file.md b/docs/examples/1.2.x/client-android/java/storage/get-file.md index 4ae0de0d9ae..61d6e9f03ab 100644 --- a/docs/examples/1.2.x/client-android/java/storage/get-file.md +++ b/docs/examples/1.2.x/client-android/java/storage/get-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.2.x/client-android/java/storage/list-files.md b/docs/examples/1.2.x/client-android/java/storage/list-files.md index dedfb6c1002..345e43fd14d 100644 --- a/docs/examples/1.2.x/client-android/java/storage/list-files.md +++ b/docs/examples/1.2.x/client-android/java/storage/list-files.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.2.x/client-android/java/storage/update-file.md b/docs/examples/1.2.x/client-android/java/storage/update-file.md index 9b4dd922667..92024cfdd61 100644 --- a/docs/examples/1.2.x/client-android/java/storage/update-file.md +++ b/docs/examples/1.2.x/client-android/java/storage/update-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.2.x/client-android/java/teams/create-membership.md b/docs/examples/1.2.x/client-android/java/teams/create-membership.md index 32897449fc1..758d7a3f662 100644 --- a/docs/examples/1.2.x/client-android/java/teams/create-membership.md +++ b/docs/examples/1.2.x/client-android/java/teams/create-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.2.x/client-android/java/teams/create.md b/docs/examples/1.2.x/client-android/java/teams/create.md index 263fa57be7b..5a9dd741db2 100644 --- a/docs/examples/1.2.x/client-android/java/teams/create.md +++ b/docs/examples/1.2.x/client-android/java/teams/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.2.x/client-android/java/teams/delete-membership.md b/docs/examples/1.2.x/client-android/java/teams/delete-membership.md index 40f28f0c21e..0babc74b4d3 100644 --- a/docs/examples/1.2.x/client-android/java/teams/delete-membership.md +++ b/docs/examples/1.2.x/client-android/java/teams/delete-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.2.x/client-android/java/teams/delete.md b/docs/examples/1.2.x/client-android/java/teams/delete.md index 5b4c378b5e2..aa7425b365c 100644 --- a/docs/examples/1.2.x/client-android/java/teams/delete.md +++ b/docs/examples/1.2.x/client-android/java/teams/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.2.x/client-android/java/teams/get-membership.md b/docs/examples/1.2.x/client-android/java/teams/get-membership.md index f2f1d99ae0b..f7a6a10d971 100644 --- a/docs/examples/1.2.x/client-android/java/teams/get-membership.md +++ b/docs/examples/1.2.x/client-android/java/teams/get-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.2.x/client-android/java/teams/get.md b/docs/examples/1.2.x/client-android/java/teams/get.md index 549af20d342..62af7c22012 100644 --- a/docs/examples/1.2.x/client-android/java/teams/get.md +++ b/docs/examples/1.2.x/client-android/java/teams/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.2.x/client-android/java/teams/list-memberships.md b/docs/examples/1.2.x/client-android/java/teams/list-memberships.md index 3da4e33d518..65d1bf6e96f 100644 --- a/docs/examples/1.2.x/client-android/java/teams/list-memberships.md +++ b/docs/examples/1.2.x/client-android/java/teams/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.2.x/client-android/java/teams/list.md b/docs/examples/1.2.x/client-android/java/teams/list.md index b20ad4a2110..a8d4f12d774 100644 --- a/docs/examples/1.2.x/client-android/java/teams/list.md +++ b/docs/examples/1.2.x/client-android/java/teams/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.2.x/client-android/java/teams/update-membership-roles.md b/docs/examples/1.2.x/client-android/java/teams/update-membership-roles.md index da5f6d8d595..2fc57ebfd92 100644 --- a/docs/examples/1.2.x/client-android/java/teams/update-membership-roles.md +++ b/docs/examples/1.2.x/client-android/java/teams/update-membership-roles.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.2.x/client-android/java/teams/update-membership-status.md b/docs/examples/1.2.x/client-android/java/teams/update-membership-status.md index 499251f21f8..1a0748149f1 100644 --- a/docs/examples/1.2.x/client-android/java/teams/update-membership-status.md +++ b/docs/examples/1.2.x/client-android/java/teams/update-membership-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.2.x/client-android/java/teams/update.md b/docs/examples/1.2.x/client-android/java/teams/update.md index 3ed2c32285d..ab480f9423c 100644 --- a/docs/examples/1.2.x/client-android/java/teams/update.md +++ b/docs/examples/1.2.x/client-android/java/teams/update.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.2.x/client-android/kotlin/account/create-anonymous-session.md b/docs/examples/1.2.x/client-android/kotlin/account/create-anonymous-session.md index cdcf401ed9e..f0d574304d0 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/create-anonymous-session.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/create-anonymous-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/create-email-session.md b/docs/examples/1.2.x/client-android/kotlin/account/create-email-session.md index ab8d581fd10..e7b438f8cc0 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/create-email-session.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/create-email-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/create-j-w-t.md b/docs/examples/1.2.x/client-android/kotlin/account/create-j-w-t.md index 35e7a6ffd4a..3e1f2e011ac 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/create-j-w-t.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/create-j-w-t.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/create-magic-u-r-l-session.md b/docs/examples/1.2.x/client-android/kotlin/account/create-magic-u-r-l-session.md index 51368b53923..88146d07322 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/create-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/create-o-auth2session.md b/docs/examples/1.2.x/client-android/kotlin/account/create-o-auth2session.md index 395bfada007..f3bf8145e4d 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/create-o-auth2session.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/create-o-auth2session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/create-phone-session.md b/docs/examples/1.2.x/client-android/kotlin/account/create-phone-session.md index eed6f7a2e21..b87e421f8b4 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/create-phone-session.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/create-phone-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/create-phone-verification.md b/docs/examples/1.2.x/client-android/kotlin/account/create-phone-verification.md index 12fb9f74e86..8dded67ac3b 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/create-phone-verification.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/create-phone-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/create-recovery.md b/docs/examples/1.2.x/client-android/kotlin/account/create-recovery.md index 7d73a671dde..70d55639c34 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/create-recovery.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/create-recovery.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/create-verification.md b/docs/examples/1.2.x/client-android/kotlin/account/create-verification.md index b3dc43ac48d..a7c8f11cac1 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/create-verification.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/create-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/create.md b/docs/examples/1.2.x/client-android/kotlin/account/create.md index 4a9f2d68fb0..631be02b57d 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/create.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/delete-session.md b/docs/examples/1.2.x/client-android/kotlin/account/delete-session.md index a98a28661b2..5e22b533695 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/delete-session.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/delete-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/delete-sessions.md b/docs/examples/1.2.x/client-android/kotlin/account/delete-sessions.md index c9afbf13457..e90c2a9348e 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/delete-sessions.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/delete-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/get-prefs.md b/docs/examples/1.2.x/client-android/kotlin/account/get-prefs.md index bd3f81a23fd..01c128266b5 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/get-prefs.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/get-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/get-session.md b/docs/examples/1.2.x/client-android/kotlin/account/get-session.md index d6d6c72eac7..f150d0fb2f7 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/get-session.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/get-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/get.md b/docs/examples/1.2.x/client-android/kotlin/account/get.md index 4c8f0be9de6..83f7f8789d7 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/get.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/list-logs.md b/docs/examples/1.2.x/client-android/kotlin/account/list-logs.md index eb337caec0c..d9f569f3207 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/list-logs.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/list-logs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/list-sessions.md b/docs/examples/1.2.x/client-android/kotlin/account/list-sessions.md index cd9f63bc3c4..2969326917e 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/list-sessions.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/list-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-email.md b/docs/examples/1.2.x/client-android/kotlin/account/update-email.md index 85a02425911..dcc9b822b6f 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-email.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/update-email.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-magic-u-r-l-session.md b/docs/examples/1.2.x/client-android/kotlin/account/update-magic-u-r-l-session.md index c7286ba6c84..c0e7f408117 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/update-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-name.md b/docs/examples/1.2.x/client-android/kotlin/account/update-name.md index 574f4938d87..18b631b1d56 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-name.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/update-name.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-password.md b/docs/examples/1.2.x/client-android/kotlin/account/update-password.md index b7e9bfe9054..60de6601321 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-password.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/update-password.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-phone-session.md b/docs/examples/1.2.x/client-android/kotlin/account/update-phone-session.md index d3b02e04ce2..39be2c4f5f2 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-phone-session.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/update-phone-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-phone-verification.md b/docs/examples/1.2.x/client-android/kotlin/account/update-phone-verification.md index 0314f742230..4dc6c63915b 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-phone-verification.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/update-phone-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-phone.md b/docs/examples/1.2.x/client-android/kotlin/account/update-phone.md index 76eb8aac5e2..39d420b197a 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-phone.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/update-phone.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-prefs.md b/docs/examples/1.2.x/client-android/kotlin/account/update-prefs.md index f16e40ba41f..beb8e6e2dd5 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-prefs.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/update-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-recovery.md b/docs/examples/1.2.x/client-android/kotlin/account/update-recovery.md index 9682899bcb2..e2f56651164 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-recovery.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/update-recovery.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-session.md b/docs/examples/1.2.x/client-android/kotlin/account/update-session.md index e9e83d0cb03..74bf0a235eb 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-session.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/update-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-status.md b/docs/examples/1.2.x/client-android/kotlin/account/update-status.md index f7789ea237f..4637918887d 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-status.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/update-status.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/account/update-verification.md b/docs/examples/1.2.x/client-android/kotlin/account/update-verification.md index af800c1fc57..de3bf1bfe37 100644 --- a/docs/examples/1.2.x/client-android/kotlin/account/update-verification.md +++ b/docs/examples/1.2.x/client-android/kotlin/account/update-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/avatars/get-browser.md b/docs/examples/1.2.x/client-android/kotlin/avatars/get-browser.md index b1b2d081832..9d65c62b1cb 100644 --- a/docs/examples/1.2.x/client-android/kotlin/avatars/get-browser.md +++ b/docs/examples/1.2.x/client-android/kotlin/avatars/get-browser.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/avatars/get-credit-card.md b/docs/examples/1.2.x/client-android/kotlin/avatars/get-credit-card.md index 411e05ae51d..7265ea284c7 100644 --- a/docs/examples/1.2.x/client-android/kotlin/avatars/get-credit-card.md +++ b/docs/examples/1.2.x/client-android/kotlin/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/avatars/get-favicon.md b/docs/examples/1.2.x/client-android/kotlin/avatars/get-favicon.md index 1a4b217fa4a..144c95a5c54 100644 --- a/docs/examples/1.2.x/client-android/kotlin/avatars/get-favicon.md +++ b/docs/examples/1.2.x/client-android/kotlin/avatars/get-favicon.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/avatars/get-flag.md b/docs/examples/1.2.x/client-android/kotlin/avatars/get-flag.md index 5c882d60186..82cd2166779 100644 --- a/docs/examples/1.2.x/client-android/kotlin/avatars/get-flag.md +++ b/docs/examples/1.2.x/client-android/kotlin/avatars/get-flag.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/avatars/get-image.md b/docs/examples/1.2.x/client-android/kotlin/avatars/get-image.md index 20d8dff13c7..05bdc47199f 100644 --- a/docs/examples/1.2.x/client-android/kotlin/avatars/get-image.md +++ b/docs/examples/1.2.x/client-android/kotlin/avatars/get-image.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/avatars/get-initials.md b/docs/examples/1.2.x/client-android/kotlin/avatars/get-initials.md index 70ef9b29091..6b1d95a22a7 100644 --- a/docs/examples/1.2.x/client-android/kotlin/avatars/get-initials.md +++ b/docs/examples/1.2.x/client-android/kotlin/avatars/get-initials.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/avatars/get-q-r.md b/docs/examples/1.2.x/client-android/kotlin/avatars/get-q-r.md index 92b17e11639..8d6aae60f74 100644 --- a/docs/examples/1.2.x/client-android/kotlin/avatars/get-q-r.md +++ b/docs/examples/1.2.x/client-android/kotlin/avatars/get-q-r.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/databases/create-document.md b/docs/examples/1.2.x/client-android/kotlin/databases/create-document.md index d7f1991d391..99e042cc690 100644 --- a/docs/examples/1.2.x/client-android/kotlin/databases/create-document.md +++ b/docs/examples/1.2.x/client-android/kotlin/databases/create-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/databases/delete-document.md b/docs/examples/1.2.x/client-android/kotlin/databases/delete-document.md index c5bf2a27070..1a150b8c9b1 100644 --- a/docs/examples/1.2.x/client-android/kotlin/databases/delete-document.md +++ b/docs/examples/1.2.x/client-android/kotlin/databases/delete-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/databases/get-document.md b/docs/examples/1.2.x/client-android/kotlin/databases/get-document.md index 5bab1048122..120ab5f01e9 100644 --- a/docs/examples/1.2.x/client-android/kotlin/databases/get-document.md +++ b/docs/examples/1.2.x/client-android/kotlin/databases/get-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/databases/list-documents.md b/docs/examples/1.2.x/client-android/kotlin/databases/list-documents.md index f97d8787c91..5e3a8d62316 100644 --- a/docs/examples/1.2.x/client-android/kotlin/databases/list-documents.md +++ b/docs/examples/1.2.x/client-android/kotlin/databases/list-documents.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/databases/update-document.md b/docs/examples/1.2.x/client-android/kotlin/databases/update-document.md index 3820b8965ce..c6186d77890 100644 --- a/docs/examples/1.2.x/client-android/kotlin/databases/update-document.md +++ b/docs/examples/1.2.x/client-android/kotlin/databases/update-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/functions/create-execution.md b/docs/examples/1.2.x/client-android/kotlin/functions/create-execution.md index 77d4587755e..4bf08c84367 100644 --- a/docs/examples/1.2.x/client-android/kotlin/functions/create-execution.md +++ b/docs/examples/1.2.x/client-android/kotlin/functions/create-execution.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/functions/get-execution.md b/docs/examples/1.2.x/client-android/kotlin/functions/get-execution.md index b57668679fd..a6488876ed2 100644 --- a/docs/examples/1.2.x/client-android/kotlin/functions/get-execution.md +++ b/docs/examples/1.2.x/client-android/kotlin/functions/get-execution.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/functions/list-executions.md b/docs/examples/1.2.x/client-android/kotlin/functions/list-executions.md index 14b613f7036..7a0ebbf04a3 100644 --- a/docs/examples/1.2.x/client-android/kotlin/functions/list-executions.md +++ b/docs/examples/1.2.x/client-android/kotlin/functions/list-executions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/graphql/63a08ed7385a4.md b/docs/examples/1.2.x/client-android/kotlin/graphql/63a08ed7385a4.md index 9414eb1c3c7..263493e7643 100644 --- a/docs/examples/1.2.x/client-android/kotlin/graphql/63a08ed7385a4.md +++ b/docs/examples/1.2.x/client-android/kotlin/graphql/63a08ed7385a4.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val graphql = Graphql(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/graphql/get.md b/docs/examples/1.2.x/client-android/kotlin/graphql/get.md index c1db8fa77cf..107c838fb1c 100644 --- a/docs/examples/1.2.x/client-android/kotlin/graphql/get.md +++ b/docs/examples/1.2.x/client-android/kotlin/graphql/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val graphql = Graphql(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/graphql/mutation.md b/docs/examples/1.2.x/client-android/kotlin/graphql/mutation.md index dc37a3e6408..ff5165a1c65 100644 --- a/docs/examples/1.2.x/client-android/kotlin/graphql/mutation.md +++ b/docs/examples/1.2.x/client-android/kotlin/graphql/mutation.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val graphql = Graphql(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/graphql/query.md b/docs/examples/1.2.x/client-android/kotlin/graphql/query.md index d8210709228..6b4c11190ef 100644 --- a/docs/examples/1.2.x/client-android/kotlin/graphql/query.md +++ b/docs/examples/1.2.x/client-android/kotlin/graphql/query.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val graphql = Graphql(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/locale/get.md b/docs/examples/1.2.x/client-android/kotlin/locale/get.md index a2044c72570..f07d3cf7eb5 100644 --- a/docs/examples/1.2.x/client-android/kotlin/locale/get.md +++ b/docs/examples/1.2.x/client-android/kotlin/locale/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/locale/list-continents.md b/docs/examples/1.2.x/client-android/kotlin/locale/list-continents.md index 610747ee131..5fc344d1701 100644 --- a/docs/examples/1.2.x/client-android/kotlin/locale/list-continents.md +++ b/docs/examples/1.2.x/client-android/kotlin/locale/list-continents.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/locale/list-countries-e-u.md b/docs/examples/1.2.x/client-android/kotlin/locale/list-countries-e-u.md index fa5483f0b0d..691a9583fde 100644 --- a/docs/examples/1.2.x/client-android/kotlin/locale/list-countries-e-u.md +++ b/docs/examples/1.2.x/client-android/kotlin/locale/list-countries-e-u.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/locale/list-countries-phones.md b/docs/examples/1.2.x/client-android/kotlin/locale/list-countries-phones.md index 6aba463a388..6ef8dcd7ac3 100644 --- a/docs/examples/1.2.x/client-android/kotlin/locale/list-countries-phones.md +++ b/docs/examples/1.2.x/client-android/kotlin/locale/list-countries-phones.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/locale/list-countries.md b/docs/examples/1.2.x/client-android/kotlin/locale/list-countries.md index c58456b0f51..4dcc23e85e2 100644 --- a/docs/examples/1.2.x/client-android/kotlin/locale/list-countries.md +++ b/docs/examples/1.2.x/client-android/kotlin/locale/list-countries.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/locale/list-currencies.md b/docs/examples/1.2.x/client-android/kotlin/locale/list-currencies.md index 2cf064402a0..f9fb666379d 100644 --- a/docs/examples/1.2.x/client-android/kotlin/locale/list-currencies.md +++ b/docs/examples/1.2.x/client-android/kotlin/locale/list-currencies.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/locale/list-languages.md b/docs/examples/1.2.x/client-android/kotlin/locale/list-languages.md index afc00b1e77a..cdbcaa6f076 100644 --- a/docs/examples/1.2.x/client-android/kotlin/locale/list-languages.md +++ b/docs/examples/1.2.x/client-android/kotlin/locale/list-languages.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/storage/create-file.md b/docs/examples/1.2.x/client-android/kotlin/storage/create-file.md index 7bb79ac11ed..60a80bb6336 100644 --- a/docs/examples/1.2.x/client-android/kotlin/storage/create-file.md +++ b/docs/examples/1.2.x/client-android/kotlin/storage/create-file.md @@ -3,7 +3,7 @@ import io.appwrite.models.InputFile import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/storage/delete-file.md b/docs/examples/1.2.x/client-android/kotlin/storage/delete-file.md index 9430d7efe37..e4f094062bb 100644 --- a/docs/examples/1.2.x/client-android/kotlin/storage/delete-file.md +++ b/docs/examples/1.2.x/client-android/kotlin/storage/delete-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/storage/get-file-download.md b/docs/examples/1.2.x/client-android/kotlin/storage/get-file-download.md index 85bd22c9c12..ccc23d23fbc 100644 --- a/docs/examples/1.2.x/client-android/kotlin/storage/get-file-download.md +++ b/docs/examples/1.2.x/client-android/kotlin/storage/get-file-download.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/storage/get-file-preview.md b/docs/examples/1.2.x/client-android/kotlin/storage/get-file-preview.md index c5bbdef4199..5338b3ce45d 100644 --- a/docs/examples/1.2.x/client-android/kotlin/storage/get-file-preview.md +++ b/docs/examples/1.2.x/client-android/kotlin/storage/get-file-preview.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/storage/get-file-view.md b/docs/examples/1.2.x/client-android/kotlin/storage/get-file-view.md index 7e7589c0790..acba4607d7d 100644 --- a/docs/examples/1.2.x/client-android/kotlin/storage/get-file-view.md +++ b/docs/examples/1.2.x/client-android/kotlin/storage/get-file-view.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/storage/get-file.md b/docs/examples/1.2.x/client-android/kotlin/storage/get-file.md index 8fb6e244e89..14d7425c568 100644 --- a/docs/examples/1.2.x/client-android/kotlin/storage/get-file.md +++ b/docs/examples/1.2.x/client-android/kotlin/storage/get-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/storage/list-files.md b/docs/examples/1.2.x/client-android/kotlin/storage/list-files.md index 191a3cc97ca..258daaf3748 100644 --- a/docs/examples/1.2.x/client-android/kotlin/storage/list-files.md +++ b/docs/examples/1.2.x/client-android/kotlin/storage/list-files.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/storage/update-file.md b/docs/examples/1.2.x/client-android/kotlin/storage/update-file.md index 005270f3e4d..b5cc0d29988 100644 --- a/docs/examples/1.2.x/client-android/kotlin/storage/update-file.md +++ b/docs/examples/1.2.x/client-android/kotlin/storage/update-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/create-membership.md b/docs/examples/1.2.x/client-android/kotlin/teams/create-membership.md index 10e71d387a6..380d06a063d 100644 --- a/docs/examples/1.2.x/client-android/kotlin/teams/create-membership.md +++ b/docs/examples/1.2.x/client-android/kotlin/teams/create-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/create.md b/docs/examples/1.2.x/client-android/kotlin/teams/create.md index 5e70bd8df0b..2fa3cff014f 100644 --- a/docs/examples/1.2.x/client-android/kotlin/teams/create.md +++ b/docs/examples/1.2.x/client-android/kotlin/teams/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/delete-membership.md b/docs/examples/1.2.x/client-android/kotlin/teams/delete-membership.md index 04ef5d3490f..56157f296b7 100644 --- a/docs/examples/1.2.x/client-android/kotlin/teams/delete-membership.md +++ b/docs/examples/1.2.x/client-android/kotlin/teams/delete-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/delete.md b/docs/examples/1.2.x/client-android/kotlin/teams/delete.md index 7d58960e7c3..149c120375d 100644 --- a/docs/examples/1.2.x/client-android/kotlin/teams/delete.md +++ b/docs/examples/1.2.x/client-android/kotlin/teams/delete.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/get-membership.md b/docs/examples/1.2.x/client-android/kotlin/teams/get-membership.md index 653bd520faf..78420a121e7 100644 --- a/docs/examples/1.2.x/client-android/kotlin/teams/get-membership.md +++ b/docs/examples/1.2.x/client-android/kotlin/teams/get-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/get.md b/docs/examples/1.2.x/client-android/kotlin/teams/get.md index 72aea07f30a..7997e5aa2b6 100644 --- a/docs/examples/1.2.x/client-android/kotlin/teams/get.md +++ b/docs/examples/1.2.x/client-android/kotlin/teams/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/list-memberships.md b/docs/examples/1.2.x/client-android/kotlin/teams/list-memberships.md index 53bd6f3b65b..79db9e57986 100644 --- a/docs/examples/1.2.x/client-android/kotlin/teams/list-memberships.md +++ b/docs/examples/1.2.x/client-android/kotlin/teams/list-memberships.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/list.md b/docs/examples/1.2.x/client-android/kotlin/teams/list.md index 57c5fe83543..29b4d655e5f 100644 --- a/docs/examples/1.2.x/client-android/kotlin/teams/list.md +++ b/docs/examples/1.2.x/client-android/kotlin/teams/list.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/update-membership-roles.md b/docs/examples/1.2.x/client-android/kotlin/teams/update-membership-roles.md index 1570e9df4a5..299cbb7e636 100644 --- a/docs/examples/1.2.x/client-android/kotlin/teams/update-membership-roles.md +++ b/docs/examples/1.2.x/client-android/kotlin/teams/update-membership-roles.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/update-membership-status.md b/docs/examples/1.2.x/client-android/kotlin/teams/update-membership-status.md index 33de006871f..e1a3b53df59 100644 --- a/docs/examples/1.2.x/client-android/kotlin/teams/update-membership-status.md +++ b/docs/examples/1.2.x/client-android/kotlin/teams/update-membership-status.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.2.x/client-android/kotlin/teams/update.md b/docs/examples/1.2.x/client-android/kotlin/teams/update.md index ba215c70958..f594fd198d9 100644 --- a/docs/examples/1.2.x/client-android/kotlin/teams/update.md +++ b/docs/examples/1.2.x/client-android/kotlin/teams/update.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/create-anonymous-session.md b/docs/examples/1.2.x/client-apple/examples/account/create-anonymous-session.md index 9904f6f222e..ec7bc357e17 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/create-anonymous-session.md +++ b/docs/examples/1.2.x/client-apple/examples/account/create-anonymous-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/create-email-session.md b/docs/examples/1.2.x/client-apple/examples/account/create-email-session.md index 311a3b6260f..cc9a14e931a 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/create-email-session.md +++ b/docs/examples/1.2.x/client-apple/examples/account/create-email-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/create-j-w-t.md b/docs/examples/1.2.x/client-apple/examples/account/create-j-w-t.md index c18c3c940ab..7d9b4e33674 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/create-j-w-t.md +++ b/docs/examples/1.2.x/client-apple/examples/account/create-j-w-t.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.2.x/client-apple/examples/account/create-magic-u-r-l-session.md index 929396ddc67..88efd04ca92 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.2.x/client-apple/examples/account/create-magic-u-r-l-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/create-o-auth2session.md b/docs/examples/1.2.x/client-apple/examples/account/create-o-auth2session.md index c84edfc6e76..7c4048689e7 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/create-o-auth2session.md +++ b/docs/examples/1.2.x/client-apple/examples/account/create-o-auth2session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/create-phone-session.md b/docs/examples/1.2.x/client-apple/examples/account/create-phone-session.md index caa66c161a6..40ad4c34fad 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/create-phone-session.md +++ b/docs/examples/1.2.x/client-apple/examples/account/create-phone-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/create-phone-verification.md b/docs/examples/1.2.x/client-apple/examples/account/create-phone-verification.md index b628897c60a..3b1548db4a8 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/create-phone-verification.md +++ b/docs/examples/1.2.x/client-apple/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/create-recovery.md b/docs/examples/1.2.x/client-apple/examples/account/create-recovery.md index 8d48938a87e..6f52d97ebb1 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/create-recovery.md +++ b/docs/examples/1.2.x/client-apple/examples/account/create-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/create-verification.md b/docs/examples/1.2.x/client-apple/examples/account/create-verification.md index 2c96d202d01..9271178af8a 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/create-verification.md +++ b/docs/examples/1.2.x/client-apple/examples/account/create-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/create.md b/docs/examples/1.2.x/client-apple/examples/account/create.md index 2d5af08b289..03b0a6df63d 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/create.md +++ b/docs/examples/1.2.x/client-apple/examples/account/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/delete-session.md b/docs/examples/1.2.x/client-apple/examples/account/delete-session.md index 316a27d8f7b..6e42ce8a5ec 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/delete-session.md +++ b/docs/examples/1.2.x/client-apple/examples/account/delete-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/delete-sessions.md b/docs/examples/1.2.x/client-apple/examples/account/delete-sessions.md index efb8c7cce11..b45ea356fe4 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/delete-sessions.md +++ b/docs/examples/1.2.x/client-apple/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/get-prefs.md b/docs/examples/1.2.x/client-apple/examples/account/get-prefs.md index 5a9fb2e356c..7605035f35d 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/get-prefs.md +++ b/docs/examples/1.2.x/client-apple/examples/account/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/get-session.md b/docs/examples/1.2.x/client-apple/examples/account/get-session.md index 66b363574aa..6adf367a337 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/get-session.md +++ b/docs/examples/1.2.x/client-apple/examples/account/get-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/get.md b/docs/examples/1.2.x/client-apple/examples/account/get.md index 6b68a6ce25f..92804138394 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/get.md +++ b/docs/examples/1.2.x/client-apple/examples/account/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/list-logs.md b/docs/examples/1.2.x/client-apple/examples/account/list-logs.md index 0c9725555e5..bc463217d69 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/list-logs.md +++ b/docs/examples/1.2.x/client-apple/examples/account/list-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/list-sessions.md b/docs/examples/1.2.x/client-apple/examples/account/list-sessions.md index b160c89f9cd..9c1daf94b95 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/list-sessions.md +++ b/docs/examples/1.2.x/client-apple/examples/account/list-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-email.md b/docs/examples/1.2.x/client-apple/examples/account/update-email.md index f11457c9cab..474d6d3be63 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/update-email.md +++ b/docs/examples/1.2.x/client-apple/examples/account/update-email.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.2.x/client-apple/examples/account/update-magic-u-r-l-session.md index 42a7f710b52..e0a340a6066 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.2.x/client-apple/examples/account/update-magic-u-r-l-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-name.md b/docs/examples/1.2.x/client-apple/examples/account/update-name.md index 2baaac9c6a8..49c0f31e768 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/update-name.md +++ b/docs/examples/1.2.x/client-apple/examples/account/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-password.md b/docs/examples/1.2.x/client-apple/examples/account/update-password.md index f4cf56eac4f..a49a587cc72 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/update-password.md +++ b/docs/examples/1.2.x/client-apple/examples/account/update-password.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-phone-session.md b/docs/examples/1.2.x/client-apple/examples/account/update-phone-session.md index 41e26c3935c..a102cb740df 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/update-phone-session.md +++ b/docs/examples/1.2.x/client-apple/examples/account/update-phone-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-phone-verification.md b/docs/examples/1.2.x/client-apple/examples/account/update-phone-verification.md index 1c88595dc24..8e47f16be4e 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/update-phone-verification.md +++ b/docs/examples/1.2.x/client-apple/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-phone.md b/docs/examples/1.2.x/client-apple/examples/account/update-phone.md index 15ae0557d17..1dabd14eb8a 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/update-phone.md +++ b/docs/examples/1.2.x/client-apple/examples/account/update-phone.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-prefs.md b/docs/examples/1.2.x/client-apple/examples/account/update-prefs.md index 65cb97636e5..4ce28b3a045 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/update-prefs.md +++ b/docs/examples/1.2.x/client-apple/examples/account/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-recovery.md b/docs/examples/1.2.x/client-apple/examples/account/update-recovery.md index 335dd6aeef0..1e965beff0b 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/update-recovery.md +++ b/docs/examples/1.2.x/client-apple/examples/account/update-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-session.md b/docs/examples/1.2.x/client-apple/examples/account/update-session.md index b71826246d6..8e1d1116507 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/update-session.md +++ b/docs/examples/1.2.x/client-apple/examples/account/update-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-status.md b/docs/examples/1.2.x/client-apple/examples/account/update-status.md index 8fa54990155..589079b0291 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/update-status.md +++ b/docs/examples/1.2.x/client-apple/examples/account/update-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/account/update-verification.md b/docs/examples/1.2.x/client-apple/examples/account/update-verification.md index 36af6b99dac..5a521a212a3 100644 --- a/docs/examples/1.2.x/client-apple/examples/account/update-verification.md +++ b/docs/examples/1.2.x/client-apple/examples/account/update-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.2.x/client-apple/examples/avatars/get-browser.md b/docs/examples/1.2.x/client-apple/examples/avatars/get-browser.md index 19c8d02b6d2..9f86b044356 100644 --- a/docs/examples/1.2.x/client-apple/examples/avatars/get-browser.md +++ b/docs/examples/1.2.x/client-apple/examples/avatars/get-browser.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.2.x/client-apple/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/client-apple/examples/avatars/get-credit-card.md index d7a680f35ed..1756c5b1468 100644 --- a/docs/examples/1.2.x/client-apple/examples/avatars/get-credit-card.md +++ b/docs/examples/1.2.x/client-apple/examples/avatars/get-credit-card.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.2.x/client-apple/examples/avatars/get-favicon.md b/docs/examples/1.2.x/client-apple/examples/avatars/get-favicon.md index 01a7ec13445..945ce41a8cc 100644 --- a/docs/examples/1.2.x/client-apple/examples/avatars/get-favicon.md +++ b/docs/examples/1.2.x/client-apple/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.2.x/client-apple/examples/avatars/get-flag.md b/docs/examples/1.2.x/client-apple/examples/avatars/get-flag.md index eb33c906b6b..4044888df38 100644 --- a/docs/examples/1.2.x/client-apple/examples/avatars/get-flag.md +++ b/docs/examples/1.2.x/client-apple/examples/avatars/get-flag.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.2.x/client-apple/examples/avatars/get-image.md b/docs/examples/1.2.x/client-apple/examples/avatars/get-image.md index ef0cd36920b..659749d9927 100644 --- a/docs/examples/1.2.x/client-apple/examples/avatars/get-image.md +++ b/docs/examples/1.2.x/client-apple/examples/avatars/get-image.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.2.x/client-apple/examples/avatars/get-initials.md b/docs/examples/1.2.x/client-apple/examples/avatars/get-initials.md index 1bdd6f058a1..b9a5a7d0957 100644 --- a/docs/examples/1.2.x/client-apple/examples/avatars/get-initials.md +++ b/docs/examples/1.2.x/client-apple/examples/avatars/get-initials.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.2.x/client-apple/examples/avatars/get-q-r.md b/docs/examples/1.2.x/client-apple/examples/avatars/get-q-r.md index 5c801d40bbd..edf910514f7 100644 --- a/docs/examples/1.2.x/client-apple/examples/avatars/get-q-r.md +++ b/docs/examples/1.2.x/client-apple/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.2.x/client-apple/examples/databases/create-document.md b/docs/examples/1.2.x/client-apple/examples/databases/create-document.md index 533bbd534c2..d7f66d018c9 100644 --- a/docs/examples/1.2.x/client-apple/examples/databases/create-document.md +++ b/docs/examples/1.2.x/client-apple/examples/databases/create-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.2.x/client-apple/examples/databases/delete-document.md b/docs/examples/1.2.x/client-apple/examples/databases/delete-document.md index c9a751294d8..f05f747b6ce 100644 --- a/docs/examples/1.2.x/client-apple/examples/databases/delete-document.md +++ b/docs/examples/1.2.x/client-apple/examples/databases/delete-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.2.x/client-apple/examples/databases/get-document.md b/docs/examples/1.2.x/client-apple/examples/databases/get-document.md index 53b71fb4f5c..8f85eae2a46 100644 --- a/docs/examples/1.2.x/client-apple/examples/databases/get-document.md +++ b/docs/examples/1.2.x/client-apple/examples/databases/get-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.2.x/client-apple/examples/databases/list-documents.md b/docs/examples/1.2.x/client-apple/examples/databases/list-documents.md index 0b375df67a3..c05bc15e995 100644 --- a/docs/examples/1.2.x/client-apple/examples/databases/list-documents.md +++ b/docs/examples/1.2.x/client-apple/examples/databases/list-documents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.2.x/client-apple/examples/databases/update-document.md b/docs/examples/1.2.x/client-apple/examples/databases/update-document.md index 5a943af8c11..238da36ec86 100644 --- a/docs/examples/1.2.x/client-apple/examples/databases/update-document.md +++ b/docs/examples/1.2.x/client-apple/examples/databases/update-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.2.x/client-apple/examples/functions/create-execution.md b/docs/examples/1.2.x/client-apple/examples/functions/create-execution.md index 93702bfdbcd..8c696c8dec5 100644 --- a/docs/examples/1.2.x/client-apple/examples/functions/create-execution.md +++ b/docs/examples/1.2.x/client-apple/examples/functions/create-execution.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let functions = Functions(client) diff --git a/docs/examples/1.2.x/client-apple/examples/functions/get-execution.md b/docs/examples/1.2.x/client-apple/examples/functions/get-execution.md index f1e53cb5708..b6ed7f7e75e 100644 --- a/docs/examples/1.2.x/client-apple/examples/functions/get-execution.md +++ b/docs/examples/1.2.x/client-apple/examples/functions/get-execution.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let functions = Functions(client) diff --git a/docs/examples/1.2.x/client-apple/examples/functions/list-executions.md b/docs/examples/1.2.x/client-apple/examples/functions/list-executions.md index 0f182950eeb..5e6920aa213 100644 --- a/docs/examples/1.2.x/client-apple/examples/functions/list-executions.md +++ b/docs/examples/1.2.x/client-apple/examples/functions/list-executions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let functions = Functions(client) diff --git a/docs/examples/1.2.x/client-apple/examples/graphql/63a08ed7385a4.md b/docs/examples/1.2.x/client-apple/examples/graphql/63a08ed7385a4.md index b48e3088de7..82880b52b45 100644 --- a/docs/examples/1.2.x/client-apple/examples/graphql/63a08ed7385a4.md +++ b/docs/examples/1.2.x/client-apple/examples/graphql/63a08ed7385a4.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let graphql = Graphql(client) diff --git a/docs/examples/1.2.x/client-apple/examples/graphql/get.md b/docs/examples/1.2.x/client-apple/examples/graphql/get.md index dec7b275f9a..db58a74188a 100644 --- a/docs/examples/1.2.x/client-apple/examples/graphql/get.md +++ b/docs/examples/1.2.x/client-apple/examples/graphql/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let graphql = Graphql(client) diff --git a/docs/examples/1.2.x/client-apple/examples/graphql/mutation.md b/docs/examples/1.2.x/client-apple/examples/graphql/mutation.md index d58b881df4d..aa8d9d318cb 100644 --- a/docs/examples/1.2.x/client-apple/examples/graphql/mutation.md +++ b/docs/examples/1.2.x/client-apple/examples/graphql/mutation.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let graphql = Graphql(client) diff --git a/docs/examples/1.2.x/client-apple/examples/graphql/query.md b/docs/examples/1.2.x/client-apple/examples/graphql/query.md index 0aba98aeb88..78797a21a02 100644 --- a/docs/examples/1.2.x/client-apple/examples/graphql/query.md +++ b/docs/examples/1.2.x/client-apple/examples/graphql/query.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let graphql = Graphql(client) diff --git a/docs/examples/1.2.x/client-apple/examples/locale/get.md b/docs/examples/1.2.x/client-apple/examples/locale/get.md index d12470d66ab..95dc75d9f84 100644 --- a/docs/examples/1.2.x/client-apple/examples/locale/get.md +++ b/docs/examples/1.2.x/client-apple/examples/locale/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.2.x/client-apple/examples/locale/list-continents.md b/docs/examples/1.2.x/client-apple/examples/locale/list-continents.md index 4853f77212d..83073b0210b 100644 --- a/docs/examples/1.2.x/client-apple/examples/locale/list-continents.md +++ b/docs/examples/1.2.x/client-apple/examples/locale/list-continents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.2.x/client-apple/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/client-apple/examples/locale/list-countries-e-u.md index 6e0a4d31d04..6f9d96899a3 100644 --- a/docs/examples/1.2.x/client-apple/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.2.x/client-apple/examples/locale/list-countries-e-u.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.2.x/client-apple/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/client-apple/examples/locale/list-countries-phones.md index b4752eb469b..46e86dbe965 100644 --- a/docs/examples/1.2.x/client-apple/examples/locale/list-countries-phones.md +++ b/docs/examples/1.2.x/client-apple/examples/locale/list-countries-phones.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.2.x/client-apple/examples/locale/list-countries.md b/docs/examples/1.2.x/client-apple/examples/locale/list-countries.md index 75369d0606e..f5a43f040aa 100644 --- a/docs/examples/1.2.x/client-apple/examples/locale/list-countries.md +++ b/docs/examples/1.2.x/client-apple/examples/locale/list-countries.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.2.x/client-apple/examples/locale/list-currencies.md b/docs/examples/1.2.x/client-apple/examples/locale/list-currencies.md index 92eea812756..bcbf30ec9dc 100644 --- a/docs/examples/1.2.x/client-apple/examples/locale/list-currencies.md +++ b/docs/examples/1.2.x/client-apple/examples/locale/list-currencies.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.2.x/client-apple/examples/locale/list-languages.md b/docs/examples/1.2.x/client-apple/examples/locale/list-languages.md index 2184812b1e8..46fa89e0791 100644 --- a/docs/examples/1.2.x/client-apple/examples/locale/list-languages.md +++ b/docs/examples/1.2.x/client-apple/examples/locale/list-languages.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.2.x/client-apple/examples/storage/create-file.md b/docs/examples/1.2.x/client-apple/examples/storage/create-file.md index f8824208821..9abfb7678b4 100644 --- a/docs/examples/1.2.x/client-apple/examples/storage/create-file.md +++ b/docs/examples/1.2.x/client-apple/examples/storage/create-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.2.x/client-apple/examples/storage/delete-file.md b/docs/examples/1.2.x/client-apple/examples/storage/delete-file.md index 27624b4bc20..d0222a52631 100644 --- a/docs/examples/1.2.x/client-apple/examples/storage/delete-file.md +++ b/docs/examples/1.2.x/client-apple/examples/storage/delete-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.2.x/client-apple/examples/storage/get-file-download.md b/docs/examples/1.2.x/client-apple/examples/storage/get-file-download.md index ca96b31d93e..48d81066766 100644 --- a/docs/examples/1.2.x/client-apple/examples/storage/get-file-download.md +++ b/docs/examples/1.2.x/client-apple/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.2.x/client-apple/examples/storage/get-file-preview.md b/docs/examples/1.2.x/client-apple/examples/storage/get-file-preview.md index 71c0f31f27d..17f75ae40da 100644 --- a/docs/examples/1.2.x/client-apple/examples/storage/get-file-preview.md +++ b/docs/examples/1.2.x/client-apple/examples/storage/get-file-preview.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.2.x/client-apple/examples/storage/get-file-view.md b/docs/examples/1.2.x/client-apple/examples/storage/get-file-view.md index 85631efc835..f18fd82d3d1 100644 --- a/docs/examples/1.2.x/client-apple/examples/storage/get-file-view.md +++ b/docs/examples/1.2.x/client-apple/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.2.x/client-apple/examples/storage/get-file.md b/docs/examples/1.2.x/client-apple/examples/storage/get-file.md index fa28b48d640..8f961898de7 100644 --- a/docs/examples/1.2.x/client-apple/examples/storage/get-file.md +++ b/docs/examples/1.2.x/client-apple/examples/storage/get-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.2.x/client-apple/examples/storage/list-files.md b/docs/examples/1.2.x/client-apple/examples/storage/list-files.md index 51f7fe8f053..ab0633ade53 100644 --- a/docs/examples/1.2.x/client-apple/examples/storage/list-files.md +++ b/docs/examples/1.2.x/client-apple/examples/storage/list-files.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.2.x/client-apple/examples/storage/update-file.md b/docs/examples/1.2.x/client-apple/examples/storage/update-file.md index 13bf635ec60..ac8ef4b3d45 100644 --- a/docs/examples/1.2.x/client-apple/examples/storage/update-file.md +++ b/docs/examples/1.2.x/client-apple/examples/storage/update-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.2.x/client-apple/examples/teams/create-membership.md b/docs/examples/1.2.x/client-apple/examples/teams/create-membership.md index d658c5d35f9..f141309f671 100644 --- a/docs/examples/1.2.x/client-apple/examples/teams/create-membership.md +++ b/docs/examples/1.2.x/client-apple/examples/teams/create-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.2.x/client-apple/examples/teams/create.md b/docs/examples/1.2.x/client-apple/examples/teams/create.md index c28eec416d0..5e2b092a702 100644 --- a/docs/examples/1.2.x/client-apple/examples/teams/create.md +++ b/docs/examples/1.2.x/client-apple/examples/teams/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.2.x/client-apple/examples/teams/delete-membership.md b/docs/examples/1.2.x/client-apple/examples/teams/delete-membership.md index 186f6ad6fb4..e14bba13c7f 100644 --- a/docs/examples/1.2.x/client-apple/examples/teams/delete-membership.md +++ b/docs/examples/1.2.x/client-apple/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.2.x/client-apple/examples/teams/delete.md b/docs/examples/1.2.x/client-apple/examples/teams/delete.md index e7585ec3876..5e39a53370b 100644 --- a/docs/examples/1.2.x/client-apple/examples/teams/delete.md +++ b/docs/examples/1.2.x/client-apple/examples/teams/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.2.x/client-apple/examples/teams/get-membership.md b/docs/examples/1.2.x/client-apple/examples/teams/get-membership.md index 02ee3dab422..a792889fd4e 100644 --- a/docs/examples/1.2.x/client-apple/examples/teams/get-membership.md +++ b/docs/examples/1.2.x/client-apple/examples/teams/get-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.2.x/client-apple/examples/teams/get.md b/docs/examples/1.2.x/client-apple/examples/teams/get.md index c8630adaacf..689c5e68859 100644 --- a/docs/examples/1.2.x/client-apple/examples/teams/get.md +++ b/docs/examples/1.2.x/client-apple/examples/teams/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.2.x/client-apple/examples/teams/list-memberships.md b/docs/examples/1.2.x/client-apple/examples/teams/list-memberships.md index 1f8a0ccb730..57876d3feae 100644 --- a/docs/examples/1.2.x/client-apple/examples/teams/list-memberships.md +++ b/docs/examples/1.2.x/client-apple/examples/teams/list-memberships.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.2.x/client-apple/examples/teams/list.md b/docs/examples/1.2.x/client-apple/examples/teams/list.md index 72226d4f5b7..cb9da6c7d5d 100644 --- a/docs/examples/1.2.x/client-apple/examples/teams/list.md +++ b/docs/examples/1.2.x/client-apple/examples/teams/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.2.x/client-apple/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/client-apple/examples/teams/update-membership-roles.md index e59b86b06b4..8cfb32df2ca 100644 --- a/docs/examples/1.2.x/client-apple/examples/teams/update-membership-roles.md +++ b/docs/examples/1.2.x/client-apple/examples/teams/update-membership-roles.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.2.x/client-apple/examples/teams/update-membership-status.md b/docs/examples/1.2.x/client-apple/examples/teams/update-membership-status.md index 65a899cb1c7..5f8b723cd5d 100644 --- a/docs/examples/1.2.x/client-apple/examples/teams/update-membership-status.md +++ b/docs/examples/1.2.x/client-apple/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.2.x/client-apple/examples/teams/update.md b/docs/examples/1.2.x/client-apple/examples/teams/update.md index 328c43ab3aa..975eb7fe6f6 100644 --- a/docs/examples/1.2.x/client-apple/examples/teams/update.md +++ b/docs/examples/1.2.x/client-apple/examples/teams/update.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.2.x/client-flutter/examples/account/create-anonymous-session.md b/docs/examples/1.2.x/client-flutter/examples/account/create-anonymous-session.md index 2f3e7a606ce..58b707f3c9c 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/create-anonymous-session.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/create-anonymous-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createAnonymousSession(); diff --git a/docs/examples/1.2.x/client-flutter/examples/account/create-email-session.md b/docs/examples/1.2.x/client-flutter/examples/account/create-email-session.md index 52b6b91f193..c76c2a6e932 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/create-email-session.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/create-email-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createEmailSession( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/create-j-w-t.md b/docs/examples/1.2.x/client-flutter/examples/account/create-j-w-t.md index c4a61f7c340..8cee6bc69e6 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/create-j-w-t.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/create-j-w-t.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createJWT(); diff --git a/docs/examples/1.2.x/client-flutter/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.2.x/client-flutter/examples/account/create-magic-u-r-l-session.md index d1b89bf1761..e8e37329148 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/create-magic-u-r-l-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createMagicURLSession( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/create-o-auth2session.md b/docs/examples/1.2.x/client-flutter/examples/account/create-o-auth2session.md index e985a92ae0f..5d627a14511 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/create-o-auth2session.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/create-o-auth2session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createOAuth2Session( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/create-phone-session.md b/docs/examples/1.2.x/client-flutter/examples/account/create-phone-session.md index fcb705c9389..c54c0f23972 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/create-phone-session.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/create-phone-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createPhoneSession( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/create-phone-verification.md b/docs/examples/1.2.x/client-flutter/examples/account/create-phone-verification.md index 76e724d8297..23ee2fd588c 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/create-phone-verification.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createPhoneVerification(); diff --git a/docs/examples/1.2.x/client-flutter/examples/account/create-recovery.md b/docs/examples/1.2.x/client-flutter/examples/account/create-recovery.md index 361a9f04591..d011eef2a37 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/create-recovery.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/create-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createRecovery( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/create-verification.md b/docs/examples/1.2.x/client-flutter/examples/account/create-verification.md index d66c3b1a0a6..565033b9a8a 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/create-verification.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/create-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createVerification( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/create.md b/docs/examples/1.2.x/client-flutter/examples/account/create.md index 501034aa7ff..f54f0474313 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/create.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.create( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/delete-session.md b/docs/examples/1.2.x/client-flutter/examples/account/delete-session.md index 91465610707..9e381a2fa3a 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/delete-session.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/delete-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.deleteSession( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/delete-sessions.md b/docs/examples/1.2.x/client-flutter/examples/account/delete-sessions.md index 4963de4442b..27b06b6104b 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/delete-sessions.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.deleteSessions(); diff --git a/docs/examples/1.2.x/client-flutter/examples/account/get-prefs.md b/docs/examples/1.2.x/client-flutter/examples/account/get-prefs.md index 81eb802d03d..919b50be884 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/get-prefs.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.getPrefs(); diff --git a/docs/examples/1.2.x/client-flutter/examples/account/get-session.md b/docs/examples/1.2.x/client-flutter/examples/account/get-session.md index 9e0f66ca3fd..ac8c35b8f57 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/get-session.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/get-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.getSession( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/get.md b/docs/examples/1.2.x/client-flutter/examples/account/get.md index 21192de2796..4bcc080deef 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/get.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.get(); diff --git a/docs/examples/1.2.x/client-flutter/examples/account/list-logs.md b/docs/examples/1.2.x/client-flutter/examples/account/list-logs.md index 9f7088a0d81..6d793c947d3 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/list-logs.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/list-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.listLogs( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/list-sessions.md b/docs/examples/1.2.x/client-flutter/examples/account/list-sessions.md index 6f2d5dc18d5..3656fca1a18 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/list-sessions.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/list-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.listSessions(); diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-email.md b/docs/examples/1.2.x/client-flutter/examples/account/update-email.md index 1fb9a3fe7a7..2383c8e0de7 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-email.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/update-email.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateEmail( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.2.x/client-flutter/examples/account/update-magic-u-r-l-session.md index 3c7ef8f0f24..0dff3be5bfd 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/update-magic-u-r-l-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateMagicURLSession( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-name.md b/docs/examples/1.2.x/client-flutter/examples/account/update-name.md index ae5d6235d15..4d674ec0064 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-name.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateName( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-password.md b/docs/examples/1.2.x/client-flutter/examples/account/update-password.md index fc4e7611df5..a19d697e21b 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-password.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/update-password.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePassword( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-phone-session.md b/docs/examples/1.2.x/client-flutter/examples/account/update-phone-session.md index 1f979265b56..dc6c8eb8938 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-phone-session.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/update-phone-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePhoneSession( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-phone-verification.md b/docs/examples/1.2.x/client-flutter/examples/account/update-phone-verification.md index 86d9b0fdfc5..a7acf71661b 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-phone-verification.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePhoneVerification( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-phone.md b/docs/examples/1.2.x/client-flutter/examples/account/update-phone.md index edfe47850b6..642ead44051 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-phone.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/update-phone.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePhone( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-prefs.md b/docs/examples/1.2.x/client-flutter/examples/account/update-prefs.md index 97697081474..d37013d80ac 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-prefs.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePrefs( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-recovery.md b/docs/examples/1.2.x/client-flutter/examples/account/update-recovery.md index f499b18770f..ce9c8b5e8e2 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-recovery.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/update-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateRecovery( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-session.md b/docs/examples/1.2.x/client-flutter/examples/account/update-session.md index fb1afcc526a..a6e1924e050 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-session.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/update-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateSession( diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-status.md b/docs/examples/1.2.x/client-flutter/examples/account/update-status.md index 8e734647fb9..521101c4292 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-status.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/update-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateStatus(); diff --git a/docs/examples/1.2.x/client-flutter/examples/account/update-verification.md b/docs/examples/1.2.x/client-flutter/examples/account/update-verification.md index fba8ed65bb6..1be9f728f7e 100644 --- a/docs/examples/1.2.x/client-flutter/examples/account/update-verification.md +++ b/docs/examples/1.2.x/client-flutter/examples/account/update-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateVerification( diff --git a/docs/examples/1.2.x/client-flutter/examples/avatars/get-browser.md b/docs/examples/1.2.x/client-flutter/examples/avatars/get-browser.md index 70af56659b6..5ca9106c01b 100644 --- a/docs/examples/1.2.x/client-flutter/examples/avatars/get-browser.md +++ b/docs/examples/1.2.x/client-flutter/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.2.x/client-flutter/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/client-flutter/examples/avatars/get-credit-card.md index 6a29dc81736..30485827a1a 100644 --- a/docs/examples/1.2.x/client-flutter/examples/avatars/get-credit-card.md +++ b/docs/examples/1.2.x/client-flutter/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.2.x/client-flutter/examples/avatars/get-favicon.md b/docs/examples/1.2.x/client-flutter/examples/avatars/get-favicon.md index 2da0f2e0566..769a873c840 100644 --- a/docs/examples/1.2.x/client-flutter/examples/avatars/get-favicon.md +++ b/docs/examples/1.2.x/client-flutter/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.2.x/client-flutter/examples/avatars/get-flag.md b/docs/examples/1.2.x/client-flutter/examples/avatars/get-flag.md index 13367885d0c..b8c3ea84d76 100644 --- a/docs/examples/1.2.x/client-flutter/examples/avatars/get-flag.md +++ b/docs/examples/1.2.x/client-flutter/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.2.x/client-flutter/examples/avatars/get-image.md b/docs/examples/1.2.x/client-flutter/examples/avatars/get-image.md index debbf1e2908..a90045f78da 100644 --- a/docs/examples/1.2.x/client-flutter/examples/avatars/get-image.md +++ b/docs/examples/1.2.x/client-flutter/examples/avatars/get-image.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.2.x/client-flutter/examples/avatars/get-initials.md b/docs/examples/1.2.x/client-flutter/examples/avatars/get-initials.md index b0f49c62131..dc08dda9812 100644 --- a/docs/examples/1.2.x/client-flutter/examples/avatars/get-initials.md +++ b/docs/examples/1.2.x/client-flutter/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.2.x/client-flutter/examples/avatars/get-q-r.md b/docs/examples/1.2.x/client-flutter/examples/avatars/get-q-r.md index 8df729379e3..4217e4395a3 100644 --- a/docs/examples/1.2.x/client-flutter/examples/avatars/get-q-r.md +++ b/docs/examples/1.2.x/client-flutter/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.2.x/client-flutter/examples/databases/create-document.md b/docs/examples/1.2.x/client-flutter/examples/databases/create-document.md index 6a031738d5a..5eabc3fb996 100644 --- a/docs/examples/1.2.x/client-flutter/examples/databases/create-document.md +++ b/docs/examples/1.2.x/client-flutter/examples/databases/create-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.createDocument( diff --git a/docs/examples/1.2.x/client-flutter/examples/databases/delete-document.md b/docs/examples/1.2.x/client-flutter/examples/databases/delete-document.md index a377b02747a..d883d08655b 100644 --- a/docs/examples/1.2.x/client-flutter/examples/databases/delete-document.md +++ b/docs/examples/1.2.x/client-flutter/examples/databases/delete-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.deleteDocument( diff --git a/docs/examples/1.2.x/client-flutter/examples/databases/get-document.md b/docs/examples/1.2.x/client-flutter/examples/databases/get-document.md index b2cf89a3fc8..f03d2589b99 100644 --- a/docs/examples/1.2.x/client-flutter/examples/databases/get-document.md +++ b/docs/examples/1.2.x/client-flutter/examples/databases/get-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.getDocument( diff --git a/docs/examples/1.2.x/client-flutter/examples/databases/list-documents.md b/docs/examples/1.2.x/client-flutter/examples/databases/list-documents.md index 4cd69e301a5..d996d2bcfde 100644 --- a/docs/examples/1.2.x/client-flutter/examples/databases/list-documents.md +++ b/docs/examples/1.2.x/client-flutter/examples/databases/list-documents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.listDocuments( diff --git a/docs/examples/1.2.x/client-flutter/examples/databases/update-document.md b/docs/examples/1.2.x/client-flutter/examples/databases/update-document.md index 595099bcb19..79e5490aff8 100644 --- a/docs/examples/1.2.x/client-flutter/examples/databases/update-document.md +++ b/docs/examples/1.2.x/client-flutter/examples/databases/update-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.updateDocument( diff --git a/docs/examples/1.2.x/client-flutter/examples/functions/create-execution.md b/docs/examples/1.2.x/client-flutter/examples/functions/create-execution.md index b188c32f47a..bb9feb34429 100644 --- a/docs/examples/1.2.x/client-flutter/examples/functions/create-execution.md +++ b/docs/examples/1.2.x/client-flutter/examples/functions/create-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = functions.createExecution( diff --git a/docs/examples/1.2.x/client-flutter/examples/functions/get-execution.md b/docs/examples/1.2.x/client-flutter/examples/functions/get-execution.md index f30b4b4495b..76a1392586b 100644 --- a/docs/examples/1.2.x/client-flutter/examples/functions/get-execution.md +++ b/docs/examples/1.2.x/client-flutter/examples/functions/get-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = functions.getExecution( diff --git a/docs/examples/1.2.x/client-flutter/examples/functions/list-executions.md b/docs/examples/1.2.x/client-flutter/examples/functions/list-executions.md index 1840f50d7f6..4f363e7e82b 100644 --- a/docs/examples/1.2.x/client-flutter/examples/functions/list-executions.md +++ b/docs/examples/1.2.x/client-flutter/examples/functions/list-executions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = functions.listExecutions( diff --git a/docs/examples/1.2.x/client-flutter/examples/graphql/63a08ed7385a4.md b/docs/examples/1.2.x/client-flutter/examples/graphql/63a08ed7385a4.md index 512ea5f8ca9..5bc764735e0 100644 --- a/docs/examples/1.2.x/client-flutter/examples/graphql/63a08ed7385a4.md +++ b/docs/examples/1.2.x/client-flutter/examples/graphql/63a08ed7385a4.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = graphql.63a08ed7385a4( diff --git a/docs/examples/1.2.x/client-flutter/examples/graphql/get.md b/docs/examples/1.2.x/client-flutter/examples/graphql/get.md index a84ddc2bffe..2df8d4be91f 100644 --- a/docs/examples/1.2.x/client-flutter/examples/graphql/get.md +++ b/docs/examples/1.2.x/client-flutter/examples/graphql/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = graphql.get( diff --git a/docs/examples/1.2.x/client-flutter/examples/graphql/mutation.md b/docs/examples/1.2.x/client-flutter/examples/graphql/mutation.md index c0bffce70a0..160c5ec892e 100644 --- a/docs/examples/1.2.x/client-flutter/examples/graphql/mutation.md +++ b/docs/examples/1.2.x/client-flutter/examples/graphql/mutation.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = graphql.mutation( diff --git a/docs/examples/1.2.x/client-flutter/examples/graphql/query.md b/docs/examples/1.2.x/client-flutter/examples/graphql/query.md index 455cb0bd227..fd5d8e15002 100644 --- a/docs/examples/1.2.x/client-flutter/examples/graphql/query.md +++ b/docs/examples/1.2.x/client-flutter/examples/graphql/query.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = graphql.query( diff --git a/docs/examples/1.2.x/client-flutter/examples/locale/get.md b/docs/examples/1.2.x/client-flutter/examples/locale/get.md index 9e9fa96b22c..565253d9507 100644 --- a/docs/examples/1.2.x/client-flutter/examples/locale/get.md +++ b/docs/examples/1.2.x/client-flutter/examples/locale/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.get(); diff --git a/docs/examples/1.2.x/client-flutter/examples/locale/list-continents.md b/docs/examples/1.2.x/client-flutter/examples/locale/list-continents.md index 0ab2a4aba12..cbaa88b3de0 100644 --- a/docs/examples/1.2.x/client-flutter/examples/locale/list-continents.md +++ b/docs/examples/1.2.x/client-flutter/examples/locale/list-continents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listContinents(); diff --git a/docs/examples/1.2.x/client-flutter/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/client-flutter/examples/locale/list-countries-e-u.md index caa32e85625..af8da46e9bf 100644 --- a/docs/examples/1.2.x/client-flutter/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.2.x/client-flutter/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCountriesEU(); diff --git a/docs/examples/1.2.x/client-flutter/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/client-flutter/examples/locale/list-countries-phones.md index b122eee7d4e..1b5438b3ca6 100644 --- a/docs/examples/1.2.x/client-flutter/examples/locale/list-countries-phones.md +++ b/docs/examples/1.2.x/client-flutter/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCountriesPhones(); diff --git a/docs/examples/1.2.x/client-flutter/examples/locale/list-countries.md b/docs/examples/1.2.x/client-flutter/examples/locale/list-countries.md index e6a367ddb86..704d35de897 100644 --- a/docs/examples/1.2.x/client-flutter/examples/locale/list-countries.md +++ b/docs/examples/1.2.x/client-flutter/examples/locale/list-countries.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCountries(); diff --git a/docs/examples/1.2.x/client-flutter/examples/locale/list-currencies.md b/docs/examples/1.2.x/client-flutter/examples/locale/list-currencies.md index fcd1e825e33..52b6877069f 100644 --- a/docs/examples/1.2.x/client-flutter/examples/locale/list-currencies.md +++ b/docs/examples/1.2.x/client-flutter/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCurrencies(); diff --git a/docs/examples/1.2.x/client-flutter/examples/locale/list-languages.md b/docs/examples/1.2.x/client-flutter/examples/locale/list-languages.md index 1fb68aa84f8..a54c6a11758 100644 --- a/docs/examples/1.2.x/client-flutter/examples/locale/list-languages.md +++ b/docs/examples/1.2.x/client-flutter/examples/locale/list-languages.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listLanguages(); diff --git a/docs/examples/1.2.x/client-flutter/examples/storage/create-file.md b/docs/examples/1.2.x/client-flutter/examples/storage/create-file.md index 0f5e44f5e8d..fc4d3278399 100644 --- a/docs/examples/1.2.x/client-flutter/examples/storage/create-file.md +++ b/docs/examples/1.2.x/client-flutter/examples/storage/create-file.md @@ -6,7 +6,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.createFile( diff --git a/docs/examples/1.2.x/client-flutter/examples/storage/delete-file.md b/docs/examples/1.2.x/client-flutter/examples/storage/delete-file.md index 230b73a9ac2..79cc9ef48ce 100644 --- a/docs/examples/1.2.x/client-flutter/examples/storage/delete-file.md +++ b/docs/examples/1.2.x/client-flutter/examples/storage/delete-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.deleteFile( diff --git a/docs/examples/1.2.x/client-flutter/examples/storage/get-file-download.md b/docs/examples/1.2.x/client-flutter/examples/storage/get-file-download.md index 883b7d69c48..cae5218c3a0 100644 --- a/docs/examples/1.2.x/client-flutter/examples/storage/get-file-download.md +++ b/docs/examples/1.2.x/client-flutter/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.2.x/client-flutter/examples/storage/get-file-preview.md b/docs/examples/1.2.x/client-flutter/examples/storage/get-file-preview.md index f42138bd036..131630ec66b 100644 --- a/docs/examples/1.2.x/client-flutter/examples/storage/get-file-preview.md +++ b/docs/examples/1.2.x/client-flutter/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.2.x/client-flutter/examples/storage/get-file-view.md b/docs/examples/1.2.x/client-flutter/examples/storage/get-file-view.md index 4f7c4d962bf..cfac3ac3b15 100644 --- a/docs/examples/1.2.x/client-flutter/examples/storage/get-file-view.md +++ b/docs/examples/1.2.x/client-flutter/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.2.x/client-flutter/examples/storage/get-file.md b/docs/examples/1.2.x/client-flutter/examples/storage/get-file.md index 681aca41e02..c997612386d 100644 --- a/docs/examples/1.2.x/client-flutter/examples/storage/get-file.md +++ b/docs/examples/1.2.x/client-flutter/examples/storage/get-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.getFile( diff --git a/docs/examples/1.2.x/client-flutter/examples/storage/list-files.md b/docs/examples/1.2.x/client-flutter/examples/storage/list-files.md index e574f7bdaa5..d4d07c19090 100644 --- a/docs/examples/1.2.x/client-flutter/examples/storage/list-files.md +++ b/docs/examples/1.2.x/client-flutter/examples/storage/list-files.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.listFiles( diff --git a/docs/examples/1.2.x/client-flutter/examples/storage/update-file.md b/docs/examples/1.2.x/client-flutter/examples/storage/update-file.md index 1170f05cf31..3d8140f408a 100644 --- a/docs/examples/1.2.x/client-flutter/examples/storage/update-file.md +++ b/docs/examples/1.2.x/client-flutter/examples/storage/update-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.updateFile( diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/create-membership.md b/docs/examples/1.2.x/client-flutter/examples/teams/create-membership.md index fe54b4acfca..2a11b981c37 100644 --- a/docs/examples/1.2.x/client-flutter/examples/teams/create-membership.md +++ b/docs/examples/1.2.x/client-flutter/examples/teams/create-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.createMembership( diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/create.md b/docs/examples/1.2.x/client-flutter/examples/teams/create.md index bd62ce32ab8..772eacc2a9d 100644 --- a/docs/examples/1.2.x/client-flutter/examples/teams/create.md +++ b/docs/examples/1.2.x/client-flutter/examples/teams/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.create( diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/delete-membership.md b/docs/examples/1.2.x/client-flutter/examples/teams/delete-membership.md index 0febe42121b..7bcfaae8e6e 100644 --- a/docs/examples/1.2.x/client-flutter/examples/teams/delete-membership.md +++ b/docs/examples/1.2.x/client-flutter/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.deleteMembership( diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/delete.md b/docs/examples/1.2.x/client-flutter/examples/teams/delete.md index b45d971bf68..22fe4e0b446 100644 --- a/docs/examples/1.2.x/client-flutter/examples/teams/delete.md +++ b/docs/examples/1.2.x/client-flutter/examples/teams/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.delete( diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/get-membership.md b/docs/examples/1.2.x/client-flutter/examples/teams/get-membership.md index 28d95a201ba..9c7eac46ac4 100644 --- a/docs/examples/1.2.x/client-flutter/examples/teams/get-membership.md +++ b/docs/examples/1.2.x/client-flutter/examples/teams/get-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.getMembership( diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/get.md b/docs/examples/1.2.x/client-flutter/examples/teams/get.md index 0ec7027f89d..a3d59c10e8a 100644 --- a/docs/examples/1.2.x/client-flutter/examples/teams/get.md +++ b/docs/examples/1.2.x/client-flutter/examples/teams/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.get( diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/list-memberships.md b/docs/examples/1.2.x/client-flutter/examples/teams/list-memberships.md index cbbc525dc44..bb2a37df46d 100644 --- a/docs/examples/1.2.x/client-flutter/examples/teams/list-memberships.md +++ b/docs/examples/1.2.x/client-flutter/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.listMemberships( diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/list.md b/docs/examples/1.2.x/client-flutter/examples/teams/list.md index 80aa3016c2a..41e01365292 100644 --- a/docs/examples/1.2.x/client-flutter/examples/teams/list.md +++ b/docs/examples/1.2.x/client-flutter/examples/teams/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.list( diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/client-flutter/examples/teams/update-membership-roles.md index 6e96c017e03..c031101d7a2 100644 --- a/docs/examples/1.2.x/client-flutter/examples/teams/update-membership-roles.md +++ b/docs/examples/1.2.x/client-flutter/examples/teams/update-membership-roles.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.updateMembershipRoles( diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/update-membership-status.md b/docs/examples/1.2.x/client-flutter/examples/teams/update-membership-status.md index ed31f54b202..65584ff4246 100644 --- a/docs/examples/1.2.x/client-flutter/examples/teams/update-membership-status.md +++ b/docs/examples/1.2.x/client-flutter/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.updateMembershipStatus( diff --git a/docs/examples/1.2.x/client-flutter/examples/teams/update.md b/docs/examples/1.2.x/client-flutter/examples/teams/update.md index 63aa33feb96..5972b9fbdaf 100644 --- a/docs/examples/1.2.x/client-flutter/examples/teams/update.md +++ b/docs/examples/1.2.x/client-flutter/examples/teams/update.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.update( diff --git a/docs/examples/1.2.x/client-web/examples/account/create-anonymous-session.md b/docs/examples/1.2.x/client-web/examples/account/create-anonymous-session.md index c331fc88633..d107d4a8dfa 100644 --- a/docs/examples/1.2.x/client-web/examples/account/create-anonymous-session.md +++ b/docs/examples/1.2.x/client-web/examples/account/create-anonymous-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/create-email-session.md b/docs/examples/1.2.x/client-web/examples/account/create-email-session.md index 76e2e31665f..fc25824dad8 100644 --- a/docs/examples/1.2.x/client-web/examples/account/create-email-session.md +++ b/docs/examples/1.2.x/client-web/examples/account/create-email-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/create-j-w-t.md b/docs/examples/1.2.x/client-web/examples/account/create-j-w-t.md index f388a3da31c..db78c41c3c9 100644 --- a/docs/examples/1.2.x/client-web/examples/account/create-j-w-t.md +++ b/docs/examples/1.2.x/client-web/examples/account/create-j-w-t.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.2.x/client-web/examples/account/create-magic-u-r-l-session.md index d48f031ded0..1179a0efc6f 100644 --- a/docs/examples/1.2.x/client-web/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.2.x/client-web/examples/account/create-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/create-o-auth2session.md b/docs/examples/1.2.x/client-web/examples/account/create-o-auth2session.md index 3757a1c63f2..03b7d2cb488 100644 --- a/docs/examples/1.2.x/client-web/examples/account/create-o-auth2session.md +++ b/docs/examples/1.2.x/client-web/examples/account/create-o-auth2session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/create-phone-session.md b/docs/examples/1.2.x/client-web/examples/account/create-phone-session.md index e5a23aafeef..53ead8a3f8f 100644 --- a/docs/examples/1.2.x/client-web/examples/account/create-phone-session.md +++ b/docs/examples/1.2.x/client-web/examples/account/create-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/create-phone-verification.md b/docs/examples/1.2.x/client-web/examples/account/create-phone-verification.md index a1cbd552774..974f94503fc 100644 --- a/docs/examples/1.2.x/client-web/examples/account/create-phone-verification.md +++ b/docs/examples/1.2.x/client-web/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/create-recovery.md b/docs/examples/1.2.x/client-web/examples/account/create-recovery.md index 1838c0414c3..7030423d2f6 100644 --- a/docs/examples/1.2.x/client-web/examples/account/create-recovery.md +++ b/docs/examples/1.2.x/client-web/examples/account/create-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/create-verification.md b/docs/examples/1.2.x/client-web/examples/account/create-verification.md index 4d8446e6ef1..6448a724963 100644 --- a/docs/examples/1.2.x/client-web/examples/account/create-verification.md +++ b/docs/examples/1.2.x/client-web/examples/account/create-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/create.md b/docs/examples/1.2.x/client-web/examples/account/create.md index 317a0c52651..f452383fed2 100644 --- a/docs/examples/1.2.x/client-web/examples/account/create.md +++ b/docs/examples/1.2.x/client-web/examples/account/create.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/delete-session.md b/docs/examples/1.2.x/client-web/examples/account/delete-session.md index c342afb2c95..052b78d8458 100644 --- a/docs/examples/1.2.x/client-web/examples/account/delete-session.md +++ b/docs/examples/1.2.x/client-web/examples/account/delete-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/delete-sessions.md b/docs/examples/1.2.x/client-web/examples/account/delete-sessions.md index 82133e38455..64b1c591d34 100644 --- a/docs/examples/1.2.x/client-web/examples/account/delete-sessions.md +++ b/docs/examples/1.2.x/client-web/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/get-prefs.md b/docs/examples/1.2.x/client-web/examples/account/get-prefs.md index b98776fd9d1..a02dc517856 100644 --- a/docs/examples/1.2.x/client-web/examples/account/get-prefs.md +++ b/docs/examples/1.2.x/client-web/examples/account/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/get-session.md b/docs/examples/1.2.x/client-web/examples/account/get-session.md index 43edd7d08a1..21be1738ba9 100644 --- a/docs/examples/1.2.x/client-web/examples/account/get-session.md +++ b/docs/examples/1.2.x/client-web/examples/account/get-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/get.md b/docs/examples/1.2.x/client-web/examples/account/get.md index 878227f0194..539ace69afc 100644 --- a/docs/examples/1.2.x/client-web/examples/account/get.md +++ b/docs/examples/1.2.x/client-web/examples/account/get.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/list-logs.md b/docs/examples/1.2.x/client-web/examples/account/list-logs.md index d710f7daa3e..d26bd396bae 100644 --- a/docs/examples/1.2.x/client-web/examples/account/list-logs.md +++ b/docs/examples/1.2.x/client-web/examples/account/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/list-sessions.md b/docs/examples/1.2.x/client-web/examples/account/list-sessions.md index ce6ec74862c..c5a5625b17c 100644 --- a/docs/examples/1.2.x/client-web/examples/account/list-sessions.md +++ b/docs/examples/1.2.x/client-web/examples/account/list-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/update-email.md b/docs/examples/1.2.x/client-web/examples/account/update-email.md index baac3a0ab09..2242db702cb 100644 --- a/docs/examples/1.2.x/client-web/examples/account/update-email.md +++ b/docs/examples/1.2.x/client-web/examples/account/update-email.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.2.x/client-web/examples/account/update-magic-u-r-l-session.md index c07fee2b144..70bf5d17da0 100644 --- a/docs/examples/1.2.x/client-web/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.2.x/client-web/examples/account/update-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/update-name.md b/docs/examples/1.2.x/client-web/examples/account/update-name.md index 4af963d5fc3..8ec9bd2395e 100644 --- a/docs/examples/1.2.x/client-web/examples/account/update-name.md +++ b/docs/examples/1.2.x/client-web/examples/account/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/update-password.md b/docs/examples/1.2.x/client-web/examples/account/update-password.md index 9cb72c7fdef..b5dea9c9eba 100644 --- a/docs/examples/1.2.x/client-web/examples/account/update-password.md +++ b/docs/examples/1.2.x/client-web/examples/account/update-password.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/update-phone-session.md b/docs/examples/1.2.x/client-web/examples/account/update-phone-session.md index b3b29481a98..9870627d9f7 100644 --- a/docs/examples/1.2.x/client-web/examples/account/update-phone-session.md +++ b/docs/examples/1.2.x/client-web/examples/account/update-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/update-phone-verification.md b/docs/examples/1.2.x/client-web/examples/account/update-phone-verification.md index a274c9b07c8..912f178814e 100644 --- a/docs/examples/1.2.x/client-web/examples/account/update-phone-verification.md +++ b/docs/examples/1.2.x/client-web/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/update-phone.md b/docs/examples/1.2.x/client-web/examples/account/update-phone.md index a1017fc7f4a..6ee5eb40e89 100644 --- a/docs/examples/1.2.x/client-web/examples/account/update-phone.md +++ b/docs/examples/1.2.x/client-web/examples/account/update-phone.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/update-prefs.md b/docs/examples/1.2.x/client-web/examples/account/update-prefs.md index ecceff3158c..3f90dfabd2f 100644 --- a/docs/examples/1.2.x/client-web/examples/account/update-prefs.md +++ b/docs/examples/1.2.x/client-web/examples/account/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/update-recovery.md b/docs/examples/1.2.x/client-web/examples/account/update-recovery.md index eb78a8a52d2..200b993a4cb 100644 --- a/docs/examples/1.2.x/client-web/examples/account/update-recovery.md +++ b/docs/examples/1.2.x/client-web/examples/account/update-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/update-session.md b/docs/examples/1.2.x/client-web/examples/account/update-session.md index a7a42c663aa..a8c40ebb81c 100644 --- a/docs/examples/1.2.x/client-web/examples/account/update-session.md +++ b/docs/examples/1.2.x/client-web/examples/account/update-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/update-status.md b/docs/examples/1.2.x/client-web/examples/account/update-status.md index 9cbe78c5c42..d3ac91e7d50 100644 --- a/docs/examples/1.2.x/client-web/examples/account/update-status.md +++ b/docs/examples/1.2.x/client-web/examples/account/update-status.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/account/update-verification.md b/docs/examples/1.2.x/client-web/examples/account/update-verification.md index 73338da4df2..404fdd4352e 100644 --- a/docs/examples/1.2.x/client-web/examples/account/update-verification.md +++ b/docs/examples/1.2.x/client-web/examples/account/update-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/avatars/get-browser.md b/docs/examples/1.2.x/client-web/examples/avatars/get-browser.md index 0b4c2def003..cf5beeb4580 100644 --- a/docs/examples/1.2.x/client-web/examples/avatars/get-browser.md +++ b/docs/examples/1.2.x/client-web/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/client-web/examples/avatars/get-credit-card.md index 082ed92b670..3486722f907 100644 --- a/docs/examples/1.2.x/client-web/examples/avatars/get-credit-card.md +++ b/docs/examples/1.2.x/client-web/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/avatars/get-favicon.md b/docs/examples/1.2.x/client-web/examples/avatars/get-favicon.md index 7ee6bd3da26..5e0056c8883 100644 --- a/docs/examples/1.2.x/client-web/examples/avatars/get-favicon.md +++ b/docs/examples/1.2.x/client-web/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/avatars/get-flag.md b/docs/examples/1.2.x/client-web/examples/avatars/get-flag.md index a43827a1aed..7e95a5bc132 100644 --- a/docs/examples/1.2.x/client-web/examples/avatars/get-flag.md +++ b/docs/examples/1.2.x/client-web/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/avatars/get-image.md b/docs/examples/1.2.x/client-web/examples/avatars/get-image.md index ea186a1a682..b6d25c7389f 100644 --- a/docs/examples/1.2.x/client-web/examples/avatars/get-image.md +++ b/docs/examples/1.2.x/client-web/examples/avatars/get-image.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/avatars/get-initials.md b/docs/examples/1.2.x/client-web/examples/avatars/get-initials.md index 7e8c8ec4130..efee82cfab4 100644 --- a/docs/examples/1.2.x/client-web/examples/avatars/get-initials.md +++ b/docs/examples/1.2.x/client-web/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/avatars/get-q-r.md b/docs/examples/1.2.x/client-web/examples/avatars/get-q-r.md index b957084aa1d..412dff00eac 100644 --- a/docs/examples/1.2.x/client-web/examples/avatars/get-q-r.md +++ b/docs/examples/1.2.x/client-web/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/databases/create-document.md b/docs/examples/1.2.x/client-web/examples/databases/create-document.md index 92792066efe..a87121baa76 100644 --- a/docs/examples/1.2.x/client-web/examples/databases/create-document.md +++ b/docs/examples/1.2.x/client-web/examples/databases/create-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/databases/delete-document.md b/docs/examples/1.2.x/client-web/examples/databases/delete-document.md index 9e281e71665..39f96d4d128 100644 --- a/docs/examples/1.2.x/client-web/examples/databases/delete-document.md +++ b/docs/examples/1.2.x/client-web/examples/databases/delete-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/databases/get-document.md b/docs/examples/1.2.x/client-web/examples/databases/get-document.md index ea80328794f..b38f81805d0 100644 --- a/docs/examples/1.2.x/client-web/examples/databases/get-document.md +++ b/docs/examples/1.2.x/client-web/examples/databases/get-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/databases/list-documents.md b/docs/examples/1.2.x/client-web/examples/databases/list-documents.md index 4a94c99db35..9be77973897 100644 --- a/docs/examples/1.2.x/client-web/examples/databases/list-documents.md +++ b/docs/examples/1.2.x/client-web/examples/databases/list-documents.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/databases/update-document.md b/docs/examples/1.2.x/client-web/examples/databases/update-document.md index cc5ef1cc021..6d584151120 100644 --- a/docs/examples/1.2.x/client-web/examples/databases/update-document.md +++ b/docs/examples/1.2.x/client-web/examples/databases/update-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/functions/create-execution.md b/docs/examples/1.2.x/client-web/examples/functions/create-execution.md index 4fc7ac75454..091e3aae240 100644 --- a/docs/examples/1.2.x/client-web/examples/functions/create-execution.md +++ b/docs/examples/1.2.x/client-web/examples/functions/create-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/functions/get-execution.md b/docs/examples/1.2.x/client-web/examples/functions/get-execution.md index 2473572c05a..704cf52c620 100644 --- a/docs/examples/1.2.x/client-web/examples/functions/get-execution.md +++ b/docs/examples/1.2.x/client-web/examples/functions/get-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/functions/list-executions.md b/docs/examples/1.2.x/client-web/examples/functions/list-executions.md index 481986ef405..b0a74de4a08 100644 --- a/docs/examples/1.2.x/client-web/examples/functions/list-executions.md +++ b/docs/examples/1.2.x/client-web/examples/functions/list-executions.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/graphql/63a08ed7385a4.md b/docs/examples/1.2.x/client-web/examples/graphql/63a08ed7385a4.md index 45584f44bb0..3bf6d7977f0 100644 --- a/docs/examples/1.2.x/client-web/examples/graphql/63a08ed7385a4.md +++ b/docs/examples/1.2.x/client-web/examples/graphql/63a08ed7385a4.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/graphql/get.md b/docs/examples/1.2.x/client-web/examples/graphql/get.md index 25a59ceeb49..98d561e4f70 100644 --- a/docs/examples/1.2.x/client-web/examples/graphql/get.md +++ b/docs/examples/1.2.x/client-web/examples/graphql/get.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/graphql/mutation.md b/docs/examples/1.2.x/client-web/examples/graphql/mutation.md index 1a0b61cd3b5..c968d9a245a 100644 --- a/docs/examples/1.2.x/client-web/examples/graphql/mutation.md +++ b/docs/examples/1.2.x/client-web/examples/graphql/mutation.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/graphql/query.md b/docs/examples/1.2.x/client-web/examples/graphql/query.md index e507fbb5aa1..8d1e5edd18a 100644 --- a/docs/examples/1.2.x/client-web/examples/graphql/query.md +++ b/docs/examples/1.2.x/client-web/examples/graphql/query.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/locale/get.md b/docs/examples/1.2.x/client-web/examples/locale/get.md index e15bad2ce1b..1001b36d05c 100644 --- a/docs/examples/1.2.x/client-web/examples/locale/get.md +++ b/docs/examples/1.2.x/client-web/examples/locale/get.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/locale/list-continents.md b/docs/examples/1.2.x/client-web/examples/locale/list-continents.md index aa3716ef565..9239750852f 100644 --- a/docs/examples/1.2.x/client-web/examples/locale/list-continents.md +++ b/docs/examples/1.2.x/client-web/examples/locale/list-continents.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/client-web/examples/locale/list-countries-e-u.md index c924b8df4b7..005d5a33270 100644 --- a/docs/examples/1.2.x/client-web/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.2.x/client-web/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/client-web/examples/locale/list-countries-phones.md index 0ab60767da7..2e5faf107dd 100644 --- a/docs/examples/1.2.x/client-web/examples/locale/list-countries-phones.md +++ b/docs/examples/1.2.x/client-web/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/locale/list-countries.md b/docs/examples/1.2.x/client-web/examples/locale/list-countries.md index ee8c454993a..d57ab0b732b 100644 --- a/docs/examples/1.2.x/client-web/examples/locale/list-countries.md +++ b/docs/examples/1.2.x/client-web/examples/locale/list-countries.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/locale/list-currencies.md b/docs/examples/1.2.x/client-web/examples/locale/list-currencies.md index dd37b14e25a..31015d585c3 100644 --- a/docs/examples/1.2.x/client-web/examples/locale/list-currencies.md +++ b/docs/examples/1.2.x/client-web/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/locale/list-languages.md b/docs/examples/1.2.x/client-web/examples/locale/list-languages.md index 89ae06d529b..cfd9adcc1a0 100644 --- a/docs/examples/1.2.x/client-web/examples/locale/list-languages.md +++ b/docs/examples/1.2.x/client-web/examples/locale/list-languages.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/storage/create-file.md b/docs/examples/1.2.x/client-web/examples/storage/create-file.md index 0cddb086901..8e84ec8ceea 100644 --- a/docs/examples/1.2.x/client-web/examples/storage/create-file.md +++ b/docs/examples/1.2.x/client-web/examples/storage/create-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/storage/delete-file.md b/docs/examples/1.2.x/client-web/examples/storage/delete-file.md index 257d855c320..47416bbb8f8 100644 --- a/docs/examples/1.2.x/client-web/examples/storage/delete-file.md +++ b/docs/examples/1.2.x/client-web/examples/storage/delete-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/storage/get-file-download.md b/docs/examples/1.2.x/client-web/examples/storage/get-file-download.md index d8a3542aab8..d9f4cd1895d 100644 --- a/docs/examples/1.2.x/client-web/examples/storage/get-file-download.md +++ b/docs/examples/1.2.x/client-web/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/storage/get-file-preview.md b/docs/examples/1.2.x/client-web/examples/storage/get-file-preview.md index f0588ba7dc2..d2d4731322c 100644 --- a/docs/examples/1.2.x/client-web/examples/storage/get-file-preview.md +++ b/docs/examples/1.2.x/client-web/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/storage/get-file-view.md b/docs/examples/1.2.x/client-web/examples/storage/get-file-view.md index 5eb2855befe..e9d0ff6d8d2 100644 --- a/docs/examples/1.2.x/client-web/examples/storage/get-file-view.md +++ b/docs/examples/1.2.x/client-web/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/storage/get-file.md b/docs/examples/1.2.x/client-web/examples/storage/get-file.md index 6b39ee386e2..e326154a4e9 100644 --- a/docs/examples/1.2.x/client-web/examples/storage/get-file.md +++ b/docs/examples/1.2.x/client-web/examples/storage/get-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/storage/list-files.md b/docs/examples/1.2.x/client-web/examples/storage/list-files.md index 696d4013cd9..7faeb85cb1c 100644 --- a/docs/examples/1.2.x/client-web/examples/storage/list-files.md +++ b/docs/examples/1.2.x/client-web/examples/storage/list-files.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/storage/update-file.md b/docs/examples/1.2.x/client-web/examples/storage/update-file.md index d22a2f6a11e..747044dc309 100644 --- a/docs/examples/1.2.x/client-web/examples/storage/update-file.md +++ b/docs/examples/1.2.x/client-web/examples/storage/update-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/teams/create-membership.md b/docs/examples/1.2.x/client-web/examples/teams/create-membership.md index 655f7982883..85fb1ef1245 100644 --- a/docs/examples/1.2.x/client-web/examples/teams/create-membership.md +++ b/docs/examples/1.2.x/client-web/examples/teams/create-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/teams/create.md b/docs/examples/1.2.x/client-web/examples/teams/create.md index c9037e95751..382b759d9c1 100644 --- a/docs/examples/1.2.x/client-web/examples/teams/create.md +++ b/docs/examples/1.2.x/client-web/examples/teams/create.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/teams/delete-membership.md b/docs/examples/1.2.x/client-web/examples/teams/delete-membership.md index c42d6694573..76232de1abd 100644 --- a/docs/examples/1.2.x/client-web/examples/teams/delete-membership.md +++ b/docs/examples/1.2.x/client-web/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/teams/delete.md b/docs/examples/1.2.x/client-web/examples/teams/delete.md index 0c99b7aab8d..2e5e8395517 100644 --- a/docs/examples/1.2.x/client-web/examples/teams/delete.md +++ b/docs/examples/1.2.x/client-web/examples/teams/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/teams/get-membership.md b/docs/examples/1.2.x/client-web/examples/teams/get-membership.md index d4d3c5a65dc..0e2c1454452 100644 --- a/docs/examples/1.2.x/client-web/examples/teams/get-membership.md +++ b/docs/examples/1.2.x/client-web/examples/teams/get-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/teams/get.md b/docs/examples/1.2.x/client-web/examples/teams/get.md index 396916ed411..cdf8812225b 100644 --- a/docs/examples/1.2.x/client-web/examples/teams/get.md +++ b/docs/examples/1.2.x/client-web/examples/teams/get.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/teams/list-memberships.md b/docs/examples/1.2.x/client-web/examples/teams/list-memberships.md index dfa0163037c..845d0ce229a 100644 --- a/docs/examples/1.2.x/client-web/examples/teams/list-memberships.md +++ b/docs/examples/1.2.x/client-web/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/teams/list.md b/docs/examples/1.2.x/client-web/examples/teams/list.md index daf799b95a7..97b4ca31f3b 100644 --- a/docs/examples/1.2.x/client-web/examples/teams/list.md +++ b/docs/examples/1.2.x/client-web/examples/teams/list.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/client-web/examples/teams/update-membership-roles.md index 55b2267e4e2..fd0c6f46fc1 100644 --- a/docs/examples/1.2.x/client-web/examples/teams/update-membership-roles.md +++ b/docs/examples/1.2.x/client-web/examples/teams/update-membership-roles.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/teams/update-membership-status.md b/docs/examples/1.2.x/client-web/examples/teams/update-membership-status.md index de1b7f8402a..5ef0b2289c8 100644 --- a/docs/examples/1.2.x/client-web/examples/teams/update-membership-status.md +++ b/docs/examples/1.2.x/client-web/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/client-web/examples/teams/update.md b/docs/examples/1.2.x/client-web/examples/teams/update.md index e10252e73f8..016d53add81 100644 --- a/docs/examples/1.2.x/client-web/examples/teams/update.md +++ b/docs/examples/1.2.x/client-web/examples/teams/update.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/create-anonymous-session.md b/docs/examples/1.2.x/console-web/examples/account/create-anonymous-session.md index 9521cf68a56..81b49b3364e 100644 --- a/docs/examples/1.2.x/console-web/examples/account/create-anonymous-session.md +++ b/docs/examples/1.2.x/console-web/examples/account/create-anonymous-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/create-email-session.md b/docs/examples/1.2.x/console-web/examples/account/create-email-session.md index 19812773df7..4b9d12c64fc 100644 --- a/docs/examples/1.2.x/console-web/examples/account/create-email-session.md +++ b/docs/examples/1.2.x/console-web/examples/account/create-email-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/create-j-w-t.md b/docs/examples/1.2.x/console-web/examples/account/create-j-w-t.md index 8a851df3699..86336ab693e 100644 --- a/docs/examples/1.2.x/console-web/examples/account/create-j-w-t.md +++ b/docs/examples/1.2.x/console-web/examples/account/create-j-w-t.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.2.x/console-web/examples/account/create-magic-u-r-l-session.md index 6917aa288c7..b000a713dd9 100644 --- a/docs/examples/1.2.x/console-web/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.2.x/console-web/examples/account/create-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/create-o-auth2session.md b/docs/examples/1.2.x/console-web/examples/account/create-o-auth2session.md index bf33c52f30b..3dc8a90076a 100644 --- a/docs/examples/1.2.x/console-web/examples/account/create-o-auth2session.md +++ b/docs/examples/1.2.x/console-web/examples/account/create-o-auth2session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/create-phone-session.md b/docs/examples/1.2.x/console-web/examples/account/create-phone-session.md index 85e7d68eed2..18fb31ee857 100644 --- a/docs/examples/1.2.x/console-web/examples/account/create-phone-session.md +++ b/docs/examples/1.2.x/console-web/examples/account/create-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/create-phone-verification.md b/docs/examples/1.2.x/console-web/examples/account/create-phone-verification.md index 0b10961e53f..aadd2c149da 100644 --- a/docs/examples/1.2.x/console-web/examples/account/create-phone-verification.md +++ b/docs/examples/1.2.x/console-web/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/create-recovery.md b/docs/examples/1.2.x/console-web/examples/account/create-recovery.md index dd33c01f04a..9cc625a21d5 100644 --- a/docs/examples/1.2.x/console-web/examples/account/create-recovery.md +++ b/docs/examples/1.2.x/console-web/examples/account/create-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/create-verification.md b/docs/examples/1.2.x/console-web/examples/account/create-verification.md index 7b1ec32f2f0..b3ce7d060fe 100644 --- a/docs/examples/1.2.x/console-web/examples/account/create-verification.md +++ b/docs/examples/1.2.x/console-web/examples/account/create-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/create.md b/docs/examples/1.2.x/console-web/examples/account/create.md index 71d8f7a7efd..d308aef50ef 100644 --- a/docs/examples/1.2.x/console-web/examples/account/create.md +++ b/docs/examples/1.2.x/console-web/examples/account/create.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/delete-session.md b/docs/examples/1.2.x/console-web/examples/account/delete-session.md index b360b3bb892..c6a6188d4ef 100644 --- a/docs/examples/1.2.x/console-web/examples/account/delete-session.md +++ b/docs/examples/1.2.x/console-web/examples/account/delete-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/delete-sessions.md b/docs/examples/1.2.x/console-web/examples/account/delete-sessions.md index 0d0fea88f44..6cf737e92ae 100644 --- a/docs/examples/1.2.x/console-web/examples/account/delete-sessions.md +++ b/docs/examples/1.2.x/console-web/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/get-prefs.md b/docs/examples/1.2.x/console-web/examples/account/get-prefs.md index 284f8fabdaf..939df8a13cc 100644 --- a/docs/examples/1.2.x/console-web/examples/account/get-prefs.md +++ b/docs/examples/1.2.x/console-web/examples/account/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/get-session.md b/docs/examples/1.2.x/console-web/examples/account/get-session.md index 651d35c7344..485ccb7f7cb 100644 --- a/docs/examples/1.2.x/console-web/examples/account/get-session.md +++ b/docs/examples/1.2.x/console-web/examples/account/get-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/get.md b/docs/examples/1.2.x/console-web/examples/account/get.md index f6fc4b94010..f4bc097c8e9 100644 --- a/docs/examples/1.2.x/console-web/examples/account/get.md +++ b/docs/examples/1.2.x/console-web/examples/account/get.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/list-logs.md b/docs/examples/1.2.x/console-web/examples/account/list-logs.md index 4f1d6813a78..68bc5a33863 100644 --- a/docs/examples/1.2.x/console-web/examples/account/list-logs.md +++ b/docs/examples/1.2.x/console-web/examples/account/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/list-sessions.md b/docs/examples/1.2.x/console-web/examples/account/list-sessions.md index bd3b102b215..c54c6420f29 100644 --- a/docs/examples/1.2.x/console-web/examples/account/list-sessions.md +++ b/docs/examples/1.2.x/console-web/examples/account/list-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/update-email.md b/docs/examples/1.2.x/console-web/examples/account/update-email.md index 21b7fcc3f26..1d69f5d15aa 100644 --- a/docs/examples/1.2.x/console-web/examples/account/update-email.md +++ b/docs/examples/1.2.x/console-web/examples/account/update-email.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.2.x/console-web/examples/account/update-magic-u-r-l-session.md index 1bc748ed309..e73d344a75f 100644 --- a/docs/examples/1.2.x/console-web/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.2.x/console-web/examples/account/update-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/update-name.md b/docs/examples/1.2.x/console-web/examples/account/update-name.md index 5a9ab011b49..5a221115f1b 100644 --- a/docs/examples/1.2.x/console-web/examples/account/update-name.md +++ b/docs/examples/1.2.x/console-web/examples/account/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/update-password.md b/docs/examples/1.2.x/console-web/examples/account/update-password.md index 57f1b34349a..610a6bd0101 100644 --- a/docs/examples/1.2.x/console-web/examples/account/update-password.md +++ b/docs/examples/1.2.x/console-web/examples/account/update-password.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/update-phone-session.md b/docs/examples/1.2.x/console-web/examples/account/update-phone-session.md index 4b47389a3c6..2f5ca7fa64e 100644 --- a/docs/examples/1.2.x/console-web/examples/account/update-phone-session.md +++ b/docs/examples/1.2.x/console-web/examples/account/update-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/update-phone-verification.md b/docs/examples/1.2.x/console-web/examples/account/update-phone-verification.md index 99c13cb90ea..4f66ec5e810 100644 --- a/docs/examples/1.2.x/console-web/examples/account/update-phone-verification.md +++ b/docs/examples/1.2.x/console-web/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/update-phone.md b/docs/examples/1.2.x/console-web/examples/account/update-phone.md index 80f715e0bcc..19ebdd256b0 100644 --- a/docs/examples/1.2.x/console-web/examples/account/update-phone.md +++ b/docs/examples/1.2.x/console-web/examples/account/update-phone.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/update-prefs.md b/docs/examples/1.2.x/console-web/examples/account/update-prefs.md index 0a85380d344..2cba25590f5 100644 --- a/docs/examples/1.2.x/console-web/examples/account/update-prefs.md +++ b/docs/examples/1.2.x/console-web/examples/account/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/update-recovery.md b/docs/examples/1.2.x/console-web/examples/account/update-recovery.md index 64c1545e89b..f91b353d944 100644 --- a/docs/examples/1.2.x/console-web/examples/account/update-recovery.md +++ b/docs/examples/1.2.x/console-web/examples/account/update-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/update-session.md b/docs/examples/1.2.x/console-web/examples/account/update-session.md index 29dc0c0907f..64abdcb0dc2 100644 --- a/docs/examples/1.2.x/console-web/examples/account/update-session.md +++ b/docs/examples/1.2.x/console-web/examples/account/update-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/update-status.md b/docs/examples/1.2.x/console-web/examples/account/update-status.md index 87b51465255..c1a568439fb 100644 --- a/docs/examples/1.2.x/console-web/examples/account/update-status.md +++ b/docs/examples/1.2.x/console-web/examples/account/update-status.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/account/update-verification.md b/docs/examples/1.2.x/console-web/examples/account/update-verification.md index 93dd5db120f..7ab66b2be6a 100644 --- a/docs/examples/1.2.x/console-web/examples/account/update-verification.md +++ b/docs/examples/1.2.x/console-web/examples/account/update-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/avatars/get-browser.md b/docs/examples/1.2.x/console-web/examples/avatars/get-browser.md index f830effff2c..f2a966e6d35 100644 --- a/docs/examples/1.2.x/console-web/examples/avatars/get-browser.md +++ b/docs/examples/1.2.x/console-web/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/console-web/examples/avatars/get-credit-card.md index a4e67b25e73..a3f59418dac 100644 --- a/docs/examples/1.2.x/console-web/examples/avatars/get-credit-card.md +++ b/docs/examples/1.2.x/console-web/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/avatars/get-favicon.md b/docs/examples/1.2.x/console-web/examples/avatars/get-favicon.md index 14bc1b9b004..0076abdd54a 100644 --- a/docs/examples/1.2.x/console-web/examples/avatars/get-favicon.md +++ b/docs/examples/1.2.x/console-web/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/avatars/get-flag.md b/docs/examples/1.2.x/console-web/examples/avatars/get-flag.md index 52ebe68c659..f6a66a01a8d 100644 --- a/docs/examples/1.2.x/console-web/examples/avatars/get-flag.md +++ b/docs/examples/1.2.x/console-web/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/avatars/get-image.md b/docs/examples/1.2.x/console-web/examples/avatars/get-image.md index 517421e7f0f..2435fae9809 100644 --- a/docs/examples/1.2.x/console-web/examples/avatars/get-image.md +++ b/docs/examples/1.2.x/console-web/examples/avatars/get-image.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/avatars/get-initials.md b/docs/examples/1.2.x/console-web/examples/avatars/get-initials.md index 8b03b5d3863..0d5bc0a6c8f 100644 --- a/docs/examples/1.2.x/console-web/examples/avatars/get-initials.md +++ b/docs/examples/1.2.x/console-web/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/avatars/get-q-r.md b/docs/examples/1.2.x/console-web/examples/avatars/get-q-r.md index 89cea47ad9b..5f1d17d410d 100644 --- a/docs/examples/1.2.x/console-web/examples/avatars/get-q-r.md +++ b/docs/examples/1.2.x/console-web/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-boolean-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/create-boolean-attribute.md index 3924ff5cc54..995eb48e4ba 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.2.x/console-web/examples/databases/create-boolean-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-collection.md b/docs/examples/1.2.x/console-web/examples/databases/create-collection.md index ff3dbd974db..a478b7eeb63 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/create-collection.md +++ b/docs/examples/1.2.x/console-web/examples/databases/create-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-datetime-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/create-datetime-attribute.md index 4e1f3190b3f..a6e825299a5 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.2.x/console-web/examples/databases/create-datetime-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-document.md b/docs/examples/1.2.x/console-web/examples/databases/create-document.md index 4b9adc4e7c9..fdd014f39d0 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/create-document.md +++ b/docs/examples/1.2.x/console-web/examples/databases/create-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-email-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/create-email-attribute.md index 8d2a5523b60..d25d0cdca3c 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/create-email-attribute.md +++ b/docs/examples/1.2.x/console-web/examples/databases/create-email-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-enum-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/create-enum-attribute.md index 503290b951e..492fc94db7b 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.2.x/console-web/examples/databases/create-enum-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-float-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/create-float-attribute.md index 7ce41b6b0bd..e910e78d5f4 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/create-float-attribute.md +++ b/docs/examples/1.2.x/console-web/examples/databases/create-float-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-index.md b/docs/examples/1.2.x/console-web/examples/databases/create-index.md index 4da79809f45..90886275fc7 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/create-index.md +++ b/docs/examples/1.2.x/console-web/examples/databases/create-index.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-integer-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/create-integer-attribute.md index 28218a16d74..5fc48e79806 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.2.x/console-web/examples/databases/create-integer-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-ip-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/create-ip-attribute.md index 88fcd66825b..4f393305779 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.2.x/console-web/examples/databases/create-ip-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-string-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/create-string-attribute.md index 8beade8f9d5..8b546994fb4 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/create-string-attribute.md +++ b/docs/examples/1.2.x/console-web/examples/databases/create-string-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/create-url-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/create-url-attribute.md index 1cbd402c2e3..4c1621878ae 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/create-url-attribute.md +++ b/docs/examples/1.2.x/console-web/examples/databases/create-url-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/create.md b/docs/examples/1.2.x/console-web/examples/databases/create.md index bca894d724b..035be47b85a 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/create.md +++ b/docs/examples/1.2.x/console-web/examples/databases/create.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/delete-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/delete-attribute.md index 858010b3137..9b5259f1358 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/delete-attribute.md +++ b/docs/examples/1.2.x/console-web/examples/databases/delete-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/delete-collection.md b/docs/examples/1.2.x/console-web/examples/databases/delete-collection.md index 9ce95a5e54a..b654863416f 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/delete-collection.md +++ b/docs/examples/1.2.x/console-web/examples/databases/delete-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/delete-document.md b/docs/examples/1.2.x/console-web/examples/databases/delete-document.md index d31d06b5210..727cf132ba6 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/delete-document.md +++ b/docs/examples/1.2.x/console-web/examples/databases/delete-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/delete-index.md b/docs/examples/1.2.x/console-web/examples/databases/delete-index.md index 2ef22b82ad1..6c8f1485115 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/delete-index.md +++ b/docs/examples/1.2.x/console-web/examples/databases/delete-index.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/delete.md b/docs/examples/1.2.x/console-web/examples/databases/delete.md index bfd5b0cea3e..049280a06be 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/delete.md +++ b/docs/examples/1.2.x/console-web/examples/databases/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/get-attribute.md b/docs/examples/1.2.x/console-web/examples/databases/get-attribute.md index 1542f64763c..610f07904be 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/get-attribute.md +++ b/docs/examples/1.2.x/console-web/examples/databases/get-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/get-collection-usage.md b/docs/examples/1.2.x/console-web/examples/databases/get-collection-usage.md index 983a6133735..df519530465 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/get-collection-usage.md +++ b/docs/examples/1.2.x/console-web/examples/databases/get-collection-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/get-collection.md b/docs/examples/1.2.x/console-web/examples/databases/get-collection.md index 6dae02f5c20..f5fd435ff44 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/get-collection.md +++ b/docs/examples/1.2.x/console-web/examples/databases/get-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/get-database-usage.md b/docs/examples/1.2.x/console-web/examples/databases/get-database-usage.md index f75040811e1..3c293f0211f 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/get-database-usage.md +++ b/docs/examples/1.2.x/console-web/examples/databases/get-database-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/get-document.md b/docs/examples/1.2.x/console-web/examples/databases/get-document.md index 87569bd8639..63ec42b8171 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/get-document.md +++ b/docs/examples/1.2.x/console-web/examples/databases/get-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/get-index.md b/docs/examples/1.2.x/console-web/examples/databases/get-index.md index d3df35d7a7d..92fe6b48f41 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/get-index.md +++ b/docs/examples/1.2.x/console-web/examples/databases/get-index.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/get-usage.md b/docs/examples/1.2.x/console-web/examples/databases/get-usage.md index aabe123e892..c0ad5ea3c23 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/get-usage.md +++ b/docs/examples/1.2.x/console-web/examples/databases/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/get.md b/docs/examples/1.2.x/console-web/examples/databases/get.md index 64c8a859ed6..036ebd5294a 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/get.md +++ b/docs/examples/1.2.x/console-web/examples/databases/get.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/list-attributes.md b/docs/examples/1.2.x/console-web/examples/databases/list-attributes.md index df9123680e5..cb07aba1f50 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/list-attributes.md +++ b/docs/examples/1.2.x/console-web/examples/databases/list-attributes.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/list-collection-logs.md b/docs/examples/1.2.x/console-web/examples/databases/list-collection-logs.md index 89662fe4b33..a6484de5e23 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/list-collection-logs.md +++ b/docs/examples/1.2.x/console-web/examples/databases/list-collection-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/list-collections.md b/docs/examples/1.2.x/console-web/examples/databases/list-collections.md index 498e0d9c132..7d0e31ab0f9 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/list-collections.md +++ b/docs/examples/1.2.x/console-web/examples/databases/list-collections.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/list-document-logs.md b/docs/examples/1.2.x/console-web/examples/databases/list-document-logs.md index 0161998358f..34cf6c9c3df 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/list-document-logs.md +++ b/docs/examples/1.2.x/console-web/examples/databases/list-document-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/list-documents.md b/docs/examples/1.2.x/console-web/examples/databases/list-documents.md index 9e29eb52c78..6365b91045d 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/list-documents.md +++ b/docs/examples/1.2.x/console-web/examples/databases/list-documents.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/list-indexes.md b/docs/examples/1.2.x/console-web/examples/databases/list-indexes.md index 3449b7d82be..e821f98a12e 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/list-indexes.md +++ b/docs/examples/1.2.x/console-web/examples/databases/list-indexes.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/list-logs.md b/docs/examples/1.2.x/console-web/examples/databases/list-logs.md index 3b3f0dcead4..b982f8791b5 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/list-logs.md +++ b/docs/examples/1.2.x/console-web/examples/databases/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/list.md b/docs/examples/1.2.x/console-web/examples/databases/list.md index 20ae55793d2..d4ba3714c49 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/list.md +++ b/docs/examples/1.2.x/console-web/examples/databases/list.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/update-collection.md b/docs/examples/1.2.x/console-web/examples/databases/update-collection.md index c0043b25002..c6fb8f69b66 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/update-collection.md +++ b/docs/examples/1.2.x/console-web/examples/databases/update-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/update-document.md b/docs/examples/1.2.x/console-web/examples/databases/update-document.md index 249af346483..2fbe08d3d22 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/update-document.md +++ b/docs/examples/1.2.x/console-web/examples/databases/update-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/databases/update.md b/docs/examples/1.2.x/console-web/examples/databases/update.md index a8160956e52..5f2727847c9 100644 --- a/docs/examples/1.2.x/console-web/examples/databases/update.md +++ b/docs/examples/1.2.x/console-web/examples/databases/update.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/create-build.md b/docs/examples/1.2.x/console-web/examples/functions/create-build.md index 141bb3247c7..a4d250ba582 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/create-build.md +++ b/docs/examples/1.2.x/console-web/examples/functions/create-build.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/create-deployment.md b/docs/examples/1.2.x/console-web/examples/functions/create-deployment.md index cb91fa8ab61..e205e851894 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/create-deployment.md +++ b/docs/examples/1.2.x/console-web/examples/functions/create-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/create-execution.md b/docs/examples/1.2.x/console-web/examples/functions/create-execution.md index cd623bb0562..b7c9d286528 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/create-execution.md +++ b/docs/examples/1.2.x/console-web/examples/functions/create-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/create-variable.md b/docs/examples/1.2.x/console-web/examples/functions/create-variable.md index df147ac2c8f..d8bad947e28 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/create-variable.md +++ b/docs/examples/1.2.x/console-web/examples/functions/create-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/create.md b/docs/examples/1.2.x/console-web/examples/functions/create.md index bc59a064f29..578118fa310 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/create.md +++ b/docs/examples/1.2.x/console-web/examples/functions/create.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/delete-deployment.md b/docs/examples/1.2.x/console-web/examples/functions/delete-deployment.md index 9597da3dcfc..a5dc5584570 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/delete-deployment.md +++ b/docs/examples/1.2.x/console-web/examples/functions/delete-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/delete-variable.md b/docs/examples/1.2.x/console-web/examples/functions/delete-variable.md index 30f2c031aae..1687be849be 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/delete-variable.md +++ b/docs/examples/1.2.x/console-web/examples/functions/delete-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/delete.md b/docs/examples/1.2.x/console-web/examples/functions/delete.md index 3cfa756613b..bee147500b8 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/delete.md +++ b/docs/examples/1.2.x/console-web/examples/functions/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/get-deployment.md b/docs/examples/1.2.x/console-web/examples/functions/get-deployment.md index 3a16587aca0..e5e988c9409 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/get-deployment.md +++ b/docs/examples/1.2.x/console-web/examples/functions/get-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/get-execution.md b/docs/examples/1.2.x/console-web/examples/functions/get-execution.md index ac92b98af8e..d5b5d7400bf 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/get-execution.md +++ b/docs/examples/1.2.x/console-web/examples/functions/get-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/get-function-usage.md b/docs/examples/1.2.x/console-web/examples/functions/get-function-usage.md index 9ac20346ea3..19bb6aa293c 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/get-function-usage.md +++ b/docs/examples/1.2.x/console-web/examples/functions/get-function-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/get-usage.md b/docs/examples/1.2.x/console-web/examples/functions/get-usage.md index 6e3fe878607..8afeec514aa 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/get-usage.md +++ b/docs/examples/1.2.x/console-web/examples/functions/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/get-variable.md b/docs/examples/1.2.x/console-web/examples/functions/get-variable.md index 3d4b07f44ef..0d6a078176e 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/get-variable.md +++ b/docs/examples/1.2.x/console-web/examples/functions/get-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/get.md b/docs/examples/1.2.x/console-web/examples/functions/get.md index 5cb2e289106..fbb4e8be3f7 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/get.md +++ b/docs/examples/1.2.x/console-web/examples/functions/get.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/list-deployments.md b/docs/examples/1.2.x/console-web/examples/functions/list-deployments.md index bd63271f279..1acf26b16f8 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/list-deployments.md +++ b/docs/examples/1.2.x/console-web/examples/functions/list-deployments.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/list-executions.md b/docs/examples/1.2.x/console-web/examples/functions/list-executions.md index 5df980d48b7..b1d40eb4b6e 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/list-executions.md +++ b/docs/examples/1.2.x/console-web/examples/functions/list-executions.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/list-runtimes.md b/docs/examples/1.2.x/console-web/examples/functions/list-runtimes.md index 18f13b2c830..c1e2c654d73 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/list-runtimes.md +++ b/docs/examples/1.2.x/console-web/examples/functions/list-runtimes.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/list-variables.md b/docs/examples/1.2.x/console-web/examples/functions/list-variables.md index 5fd03bfc190..4f37c95bd59 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/list-variables.md +++ b/docs/examples/1.2.x/console-web/examples/functions/list-variables.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/list.md b/docs/examples/1.2.x/console-web/examples/functions/list.md index 721ad6bbb0c..903112a5f70 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/list.md +++ b/docs/examples/1.2.x/console-web/examples/functions/list.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/update-deployment.md b/docs/examples/1.2.x/console-web/examples/functions/update-deployment.md index 98752326efd..b668a3fabb3 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/update-deployment.md +++ b/docs/examples/1.2.x/console-web/examples/functions/update-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/update-variable.md b/docs/examples/1.2.x/console-web/examples/functions/update-variable.md index 33380ee102c..3ce70d0d627 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/update-variable.md +++ b/docs/examples/1.2.x/console-web/examples/functions/update-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/functions/update.md b/docs/examples/1.2.x/console-web/examples/functions/update.md index e442bad7c2e..e355557db09 100644 --- a/docs/examples/1.2.x/console-web/examples/functions/update.md +++ b/docs/examples/1.2.x/console-web/examples/functions/update.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/graphql/63a08ed889c47.md b/docs/examples/1.2.x/console-web/examples/graphql/63a08ed889c47.md index 9d5be3a2745..04f78437ef7 100644 --- a/docs/examples/1.2.x/console-web/examples/graphql/63a08ed889c47.md +++ b/docs/examples/1.2.x/console-web/examples/graphql/63a08ed889c47.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/graphql/get.md b/docs/examples/1.2.x/console-web/examples/graphql/get.md index 25a59ceeb49..98d561e4f70 100644 --- a/docs/examples/1.2.x/console-web/examples/graphql/get.md +++ b/docs/examples/1.2.x/console-web/examples/graphql/get.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/graphql/mutation.md b/docs/examples/1.2.x/console-web/examples/graphql/mutation.md index ee70c3630c4..6de224be68f 100644 --- a/docs/examples/1.2.x/console-web/examples/graphql/mutation.md +++ b/docs/examples/1.2.x/console-web/examples/graphql/mutation.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/graphql/query.md b/docs/examples/1.2.x/console-web/examples/graphql/query.md index 055c6ad0020..f1c35d81ba9 100644 --- a/docs/examples/1.2.x/console-web/examples/graphql/query.md +++ b/docs/examples/1.2.x/console-web/examples/graphql/query.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/health/get-antivirus.md b/docs/examples/1.2.x/console-web/examples/health/get-antivirus.md index 6d57550dd90..c55b33a3f56 100644 --- a/docs/examples/1.2.x/console-web/examples/health/get-antivirus.md +++ b/docs/examples/1.2.x/console-web/examples/health/get-antivirus.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/health/get-cache.md b/docs/examples/1.2.x/console-web/examples/health/get-cache.md index 5748c8e9dc1..7c1563ced5b 100644 --- a/docs/examples/1.2.x/console-web/examples/health/get-cache.md +++ b/docs/examples/1.2.x/console-web/examples/health/get-cache.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/health/get-d-b.md b/docs/examples/1.2.x/console-web/examples/health/get-d-b.md index 181dca70768..3c3c21b88c6 100644 --- a/docs/examples/1.2.x/console-web/examples/health/get-d-b.md +++ b/docs/examples/1.2.x/console-web/examples/health/get-d-b.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/health/get-queue-certificates.md b/docs/examples/1.2.x/console-web/examples/health/get-queue-certificates.md index 29fcb6707a7..f1361cb68aa 100644 --- a/docs/examples/1.2.x/console-web/examples/health/get-queue-certificates.md +++ b/docs/examples/1.2.x/console-web/examples/health/get-queue-certificates.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/health/get-queue-functions.md b/docs/examples/1.2.x/console-web/examples/health/get-queue-functions.md index 0b011cb32d4..12e8a8b6ba5 100644 --- a/docs/examples/1.2.x/console-web/examples/health/get-queue-functions.md +++ b/docs/examples/1.2.x/console-web/examples/health/get-queue-functions.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/health/get-queue-logs.md b/docs/examples/1.2.x/console-web/examples/health/get-queue-logs.md index 2dc33b377b3..8ddfaf700bd 100644 --- a/docs/examples/1.2.x/console-web/examples/health/get-queue-logs.md +++ b/docs/examples/1.2.x/console-web/examples/health/get-queue-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/health/get-queue-webhooks.md b/docs/examples/1.2.x/console-web/examples/health/get-queue-webhooks.md index 534d68c7f46..b2ae504bd13 100644 --- a/docs/examples/1.2.x/console-web/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.2.x/console-web/examples/health/get-queue-webhooks.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/health/get-storage-local.md b/docs/examples/1.2.x/console-web/examples/health/get-storage-local.md index ff842f4ba6a..b7e8d86da67 100644 --- a/docs/examples/1.2.x/console-web/examples/health/get-storage-local.md +++ b/docs/examples/1.2.x/console-web/examples/health/get-storage-local.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/health/get-time.md b/docs/examples/1.2.x/console-web/examples/health/get-time.md index 6d8e1c225a5..73e1155687e 100644 --- a/docs/examples/1.2.x/console-web/examples/health/get-time.md +++ b/docs/examples/1.2.x/console-web/examples/health/get-time.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/health/get.md b/docs/examples/1.2.x/console-web/examples/health/get.md index 76e74be74cf..faa1a0c7c1c 100644 --- a/docs/examples/1.2.x/console-web/examples/health/get.md +++ b/docs/examples/1.2.x/console-web/examples/health/get.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/locale/get.md b/docs/examples/1.2.x/console-web/examples/locale/get.md index ac47468df81..bd3c27e3c32 100644 --- a/docs/examples/1.2.x/console-web/examples/locale/get.md +++ b/docs/examples/1.2.x/console-web/examples/locale/get.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/locale/list-continents.md b/docs/examples/1.2.x/console-web/examples/locale/list-continents.md index b2358396fcf..0c3d6bb4996 100644 --- a/docs/examples/1.2.x/console-web/examples/locale/list-continents.md +++ b/docs/examples/1.2.x/console-web/examples/locale/list-continents.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/console-web/examples/locale/list-countries-e-u.md index 59d6e24dbf7..7ac2906b4c7 100644 --- a/docs/examples/1.2.x/console-web/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.2.x/console-web/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/console-web/examples/locale/list-countries-phones.md index 898cb3cf31b..300c81d9538 100644 --- a/docs/examples/1.2.x/console-web/examples/locale/list-countries-phones.md +++ b/docs/examples/1.2.x/console-web/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/locale/list-countries.md b/docs/examples/1.2.x/console-web/examples/locale/list-countries.md index a36b8c25edf..3f26f6dba81 100644 --- a/docs/examples/1.2.x/console-web/examples/locale/list-countries.md +++ b/docs/examples/1.2.x/console-web/examples/locale/list-countries.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/locale/list-currencies.md b/docs/examples/1.2.x/console-web/examples/locale/list-currencies.md index 1f348914259..66163952bd7 100644 --- a/docs/examples/1.2.x/console-web/examples/locale/list-currencies.md +++ b/docs/examples/1.2.x/console-web/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/locale/list-languages.md b/docs/examples/1.2.x/console-web/examples/locale/list-languages.md index 4fb4dbf0be9..048c79d38ad 100644 --- a/docs/examples/1.2.x/console-web/examples/locale/list-languages.md +++ b/docs/examples/1.2.x/console-web/examples/locale/list-languages.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/create-domain.md b/docs/examples/1.2.x/console-web/examples/projects/create-domain.md index 78036bc8b06..4a572cc30c0 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/create-domain.md +++ b/docs/examples/1.2.x/console-web/examples/projects/create-domain.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/create-key.md b/docs/examples/1.2.x/console-web/examples/projects/create-key.md index 02032e81c54..d65660599b2 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/create-key.md +++ b/docs/examples/1.2.x/console-web/examples/projects/create-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/create-platform.md b/docs/examples/1.2.x/console-web/examples/projects/create-platform.md index 4a319681713..b668ec12f76 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/create-platform.md +++ b/docs/examples/1.2.x/console-web/examples/projects/create-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/create-webhook.md b/docs/examples/1.2.x/console-web/examples/projects/create-webhook.md index 356a5ffe866..0ca56346c4d 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/create-webhook.md +++ b/docs/examples/1.2.x/console-web/examples/projects/create-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/create.md b/docs/examples/1.2.x/console-web/examples/projects/create.md index 67682bf8595..df22f3a68ed 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/create.md +++ b/docs/examples/1.2.x/console-web/examples/projects/create.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/delete-domain.md b/docs/examples/1.2.x/console-web/examples/projects/delete-domain.md index 9b8ffbce394..a5370389e18 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/delete-domain.md +++ b/docs/examples/1.2.x/console-web/examples/projects/delete-domain.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/delete-key.md b/docs/examples/1.2.x/console-web/examples/projects/delete-key.md index 74c6bd15621..399e97687a2 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/delete-key.md +++ b/docs/examples/1.2.x/console-web/examples/projects/delete-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/delete-platform.md b/docs/examples/1.2.x/console-web/examples/projects/delete-platform.md index da8ce56e54e..0d6fa3c55b3 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/delete-platform.md +++ b/docs/examples/1.2.x/console-web/examples/projects/delete-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/delete-webhook.md b/docs/examples/1.2.x/console-web/examples/projects/delete-webhook.md index 08e3af636fc..2de71ec3f31 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/delete-webhook.md +++ b/docs/examples/1.2.x/console-web/examples/projects/delete-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/delete.md b/docs/examples/1.2.x/console-web/examples/projects/delete.md index dc620b08113..62c43398531 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/delete.md +++ b/docs/examples/1.2.x/console-web/examples/projects/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/get-domain.md b/docs/examples/1.2.x/console-web/examples/projects/get-domain.md index 4b82d70ef5c..4d42ce09ba0 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/get-domain.md +++ b/docs/examples/1.2.x/console-web/examples/projects/get-domain.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/get-key.md b/docs/examples/1.2.x/console-web/examples/projects/get-key.md index c0d3282c146..bfadb8de561 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/get-key.md +++ b/docs/examples/1.2.x/console-web/examples/projects/get-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/get-platform.md b/docs/examples/1.2.x/console-web/examples/projects/get-platform.md index fd65231affd..d178cbb8430 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/get-platform.md +++ b/docs/examples/1.2.x/console-web/examples/projects/get-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/get-usage.md b/docs/examples/1.2.x/console-web/examples/projects/get-usage.md index 8d8c91355dd..af512463fbe 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/get-usage.md +++ b/docs/examples/1.2.x/console-web/examples/projects/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/get-webhook.md b/docs/examples/1.2.x/console-web/examples/projects/get-webhook.md index 7f580b5f572..4357669a227 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/get-webhook.md +++ b/docs/examples/1.2.x/console-web/examples/projects/get-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/get.md b/docs/examples/1.2.x/console-web/examples/projects/get.md index 23c235a741c..69e53ca0f23 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/get.md +++ b/docs/examples/1.2.x/console-web/examples/projects/get.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/list-domains.md b/docs/examples/1.2.x/console-web/examples/projects/list-domains.md index 448dbf8d190..7f536d91dec 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/list-domains.md +++ b/docs/examples/1.2.x/console-web/examples/projects/list-domains.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/list-keys.md b/docs/examples/1.2.x/console-web/examples/projects/list-keys.md index c2dce0a419a..8800067c24b 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/list-keys.md +++ b/docs/examples/1.2.x/console-web/examples/projects/list-keys.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/list-platforms.md b/docs/examples/1.2.x/console-web/examples/projects/list-platforms.md index 968438f6bb7..692de5c43fe 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/list-platforms.md +++ b/docs/examples/1.2.x/console-web/examples/projects/list-platforms.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/list-webhooks.md b/docs/examples/1.2.x/console-web/examples/projects/list-webhooks.md index e0e0af367f5..d960a75f982 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/list-webhooks.md +++ b/docs/examples/1.2.x/console-web/examples/projects/list-webhooks.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/list.md b/docs/examples/1.2.x/console-web/examples/projects/list.md index 0cf5002afe9..a7476905fd5 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/list.md +++ b/docs/examples/1.2.x/console-web/examples/projects/list.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-auth-duration.md b/docs/examples/1.2.x/console-web/examples/projects/update-auth-duration.md index 37c69222df8..f74645388d4 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/update-auth-duration.md +++ b/docs/examples/1.2.x/console-web/examples/projects/update-auth-duration.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-auth-limit.md b/docs/examples/1.2.x/console-web/examples/projects/update-auth-limit.md index a63f5b4518e..4195655befe 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/update-auth-limit.md +++ b/docs/examples/1.2.x/console-web/examples/projects/update-auth-limit.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-auth-sessions-limit.md b/docs/examples/1.2.x/console-web/examples/projects/update-auth-sessions-limit.md index ef2dffa67ae..21ce249f7aa 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/update-auth-sessions-limit.md +++ b/docs/examples/1.2.x/console-web/examples/projects/update-auth-sessions-limit.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-auth-status.md b/docs/examples/1.2.x/console-web/examples/projects/update-auth-status.md index 4751442d8fd..b183e1477c0 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/update-auth-status.md +++ b/docs/examples/1.2.x/console-web/examples/projects/update-auth-status.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-domain-verification.md b/docs/examples/1.2.x/console-web/examples/projects/update-domain-verification.md index d994b90aaa2..aac42ce379c 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/update-domain-verification.md +++ b/docs/examples/1.2.x/console-web/examples/projects/update-domain-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-key.md b/docs/examples/1.2.x/console-web/examples/projects/update-key.md index fd2bde82bfa..659017451a2 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/update-key.md +++ b/docs/examples/1.2.x/console-web/examples/projects/update-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-o-auth2.md b/docs/examples/1.2.x/console-web/examples/projects/update-o-auth2.md index 34ce8142088..cf3c92658fa 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/update-o-auth2.md +++ b/docs/examples/1.2.x/console-web/examples/projects/update-o-auth2.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-platform.md b/docs/examples/1.2.x/console-web/examples/projects/update-platform.md index ce49dfffd84..75f3b3b4e2c 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/update-platform.md +++ b/docs/examples/1.2.x/console-web/examples/projects/update-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-service-status.md b/docs/examples/1.2.x/console-web/examples/projects/update-service-status.md index 5b727003b04..66010abf746 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/update-service-status.md +++ b/docs/examples/1.2.x/console-web/examples/projects/update-service-status.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-webhook-signature.md b/docs/examples/1.2.x/console-web/examples/projects/update-webhook-signature.md index 472271f8e60..8a18c842620 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/update-webhook-signature.md +++ b/docs/examples/1.2.x/console-web/examples/projects/update-webhook-signature.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/update-webhook.md b/docs/examples/1.2.x/console-web/examples/projects/update-webhook.md index 1339a458227..81fdd2913e9 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/update-webhook.md +++ b/docs/examples/1.2.x/console-web/examples/projects/update-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/projects/update.md b/docs/examples/1.2.x/console-web/examples/projects/update.md index 31281808c47..f162bd09b52 100644 --- a/docs/examples/1.2.x/console-web/examples/projects/update.md +++ b/docs/examples/1.2.x/console-web/examples/projects/update.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/storage/create-bucket.md b/docs/examples/1.2.x/console-web/examples/storage/create-bucket.md index 7696b14294e..766a4835dc3 100644 --- a/docs/examples/1.2.x/console-web/examples/storage/create-bucket.md +++ b/docs/examples/1.2.x/console-web/examples/storage/create-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/storage/create-file.md b/docs/examples/1.2.x/console-web/examples/storage/create-file.md index d1bf55b42b8..ce0c8f0b9c7 100644 --- a/docs/examples/1.2.x/console-web/examples/storage/create-file.md +++ b/docs/examples/1.2.x/console-web/examples/storage/create-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/storage/delete-bucket.md b/docs/examples/1.2.x/console-web/examples/storage/delete-bucket.md index 4634b11f5b3..0a3305e862a 100644 --- a/docs/examples/1.2.x/console-web/examples/storage/delete-bucket.md +++ b/docs/examples/1.2.x/console-web/examples/storage/delete-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/storage/delete-file.md b/docs/examples/1.2.x/console-web/examples/storage/delete-file.md index b4c0ff0f9d8..1961a1fcde1 100644 --- a/docs/examples/1.2.x/console-web/examples/storage/delete-file.md +++ b/docs/examples/1.2.x/console-web/examples/storage/delete-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/storage/get-bucket-usage.md b/docs/examples/1.2.x/console-web/examples/storage/get-bucket-usage.md index 65c66d7aa04..58223df2aef 100644 --- a/docs/examples/1.2.x/console-web/examples/storage/get-bucket-usage.md +++ b/docs/examples/1.2.x/console-web/examples/storage/get-bucket-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/storage/get-bucket.md b/docs/examples/1.2.x/console-web/examples/storage/get-bucket.md index 2b65e8b0cee..7b386458f9d 100644 --- a/docs/examples/1.2.x/console-web/examples/storage/get-bucket.md +++ b/docs/examples/1.2.x/console-web/examples/storage/get-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/storage/get-file-download.md b/docs/examples/1.2.x/console-web/examples/storage/get-file-download.md index 1ce57cb38a6..bdc8fb79d3f 100644 --- a/docs/examples/1.2.x/console-web/examples/storage/get-file-download.md +++ b/docs/examples/1.2.x/console-web/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/storage/get-file-preview.md b/docs/examples/1.2.x/console-web/examples/storage/get-file-preview.md index ab6bc18fc46..8f58323bd6e 100644 --- a/docs/examples/1.2.x/console-web/examples/storage/get-file-preview.md +++ b/docs/examples/1.2.x/console-web/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/storage/get-file-view.md b/docs/examples/1.2.x/console-web/examples/storage/get-file-view.md index 7ce851f0252..aa482c46f5c 100644 --- a/docs/examples/1.2.x/console-web/examples/storage/get-file-view.md +++ b/docs/examples/1.2.x/console-web/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/storage/get-file.md b/docs/examples/1.2.x/console-web/examples/storage/get-file.md index b6e800303d1..bb5a737721a 100644 --- a/docs/examples/1.2.x/console-web/examples/storage/get-file.md +++ b/docs/examples/1.2.x/console-web/examples/storage/get-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/storage/get-usage.md b/docs/examples/1.2.x/console-web/examples/storage/get-usage.md index f618ba4e16e..e9a8eb06729 100644 --- a/docs/examples/1.2.x/console-web/examples/storage/get-usage.md +++ b/docs/examples/1.2.x/console-web/examples/storage/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/storage/list-buckets.md b/docs/examples/1.2.x/console-web/examples/storage/list-buckets.md index 5a356900fab..a14a0d02172 100644 --- a/docs/examples/1.2.x/console-web/examples/storage/list-buckets.md +++ b/docs/examples/1.2.x/console-web/examples/storage/list-buckets.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/storage/list-files.md b/docs/examples/1.2.x/console-web/examples/storage/list-files.md index 0c6170f11d1..ac7ef669dc0 100644 --- a/docs/examples/1.2.x/console-web/examples/storage/list-files.md +++ b/docs/examples/1.2.x/console-web/examples/storage/list-files.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/storage/update-bucket.md b/docs/examples/1.2.x/console-web/examples/storage/update-bucket.md index 09ed4ce441f..1d050c14b88 100644 --- a/docs/examples/1.2.x/console-web/examples/storage/update-bucket.md +++ b/docs/examples/1.2.x/console-web/examples/storage/update-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/storage/update-file.md b/docs/examples/1.2.x/console-web/examples/storage/update-file.md index abaaf9afd4e..12292761d23 100644 --- a/docs/examples/1.2.x/console-web/examples/storage/update-file.md +++ b/docs/examples/1.2.x/console-web/examples/storage/update-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/teams/create-membership.md b/docs/examples/1.2.x/console-web/examples/teams/create-membership.md index c121edc70b4..3c6fe4f7962 100644 --- a/docs/examples/1.2.x/console-web/examples/teams/create-membership.md +++ b/docs/examples/1.2.x/console-web/examples/teams/create-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/teams/create.md b/docs/examples/1.2.x/console-web/examples/teams/create.md index a2cb34296b6..881816db346 100644 --- a/docs/examples/1.2.x/console-web/examples/teams/create.md +++ b/docs/examples/1.2.x/console-web/examples/teams/create.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/teams/delete-membership.md b/docs/examples/1.2.x/console-web/examples/teams/delete-membership.md index 4e7d7e7a746..66274a17b65 100644 --- a/docs/examples/1.2.x/console-web/examples/teams/delete-membership.md +++ b/docs/examples/1.2.x/console-web/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/teams/delete.md b/docs/examples/1.2.x/console-web/examples/teams/delete.md index 0bc778ba635..d51318f89e2 100644 --- a/docs/examples/1.2.x/console-web/examples/teams/delete.md +++ b/docs/examples/1.2.x/console-web/examples/teams/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/teams/get-membership.md b/docs/examples/1.2.x/console-web/examples/teams/get-membership.md index c0bdae5fc6c..881f37d8b09 100644 --- a/docs/examples/1.2.x/console-web/examples/teams/get-membership.md +++ b/docs/examples/1.2.x/console-web/examples/teams/get-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/teams/get.md b/docs/examples/1.2.x/console-web/examples/teams/get.md index 2dbfdb4b0b6..068d50c6d10 100644 --- a/docs/examples/1.2.x/console-web/examples/teams/get.md +++ b/docs/examples/1.2.x/console-web/examples/teams/get.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/teams/list-logs.md b/docs/examples/1.2.x/console-web/examples/teams/list-logs.md index 2c3c7311e26..7fb75214172 100644 --- a/docs/examples/1.2.x/console-web/examples/teams/list-logs.md +++ b/docs/examples/1.2.x/console-web/examples/teams/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/teams/list-memberships.md b/docs/examples/1.2.x/console-web/examples/teams/list-memberships.md index f7a7d1a54e6..93e8588a555 100644 --- a/docs/examples/1.2.x/console-web/examples/teams/list-memberships.md +++ b/docs/examples/1.2.x/console-web/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/teams/list.md b/docs/examples/1.2.x/console-web/examples/teams/list.md index 99e482d8f3c..3a5311efe33 100644 --- a/docs/examples/1.2.x/console-web/examples/teams/list.md +++ b/docs/examples/1.2.x/console-web/examples/teams/list.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/console-web/examples/teams/update-membership-roles.md index c09ed1ac779..80cbd9b6e17 100644 --- a/docs/examples/1.2.x/console-web/examples/teams/update-membership-roles.md +++ b/docs/examples/1.2.x/console-web/examples/teams/update-membership-roles.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/teams/update-membership-status.md b/docs/examples/1.2.x/console-web/examples/teams/update-membership-status.md index 1c8ec3a27e3..cdc93967b33 100644 --- a/docs/examples/1.2.x/console-web/examples/teams/update-membership-status.md +++ b/docs/examples/1.2.x/console-web/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/teams/update.md b/docs/examples/1.2.x/console-web/examples/teams/update.md index 160c8626ad1..c912fc6c440 100644 --- a/docs/examples/1.2.x/console-web/examples/teams/update.md +++ b/docs/examples/1.2.x/console-web/examples/teams/update.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/create-argon2user.md b/docs/examples/1.2.x/console-web/examples/users/create-argon2user.md index f4dabafe189..e22db4f2987 100644 --- a/docs/examples/1.2.x/console-web/examples/users/create-argon2user.md +++ b/docs/examples/1.2.x/console-web/examples/users/create-argon2user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/create-bcrypt-user.md b/docs/examples/1.2.x/console-web/examples/users/create-bcrypt-user.md index 247f579c9ca..809c9aab772 100644 --- a/docs/examples/1.2.x/console-web/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.2.x/console-web/examples/users/create-bcrypt-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/create-m-d5user.md b/docs/examples/1.2.x/console-web/examples/users/create-m-d5user.md index 8a81f0801bf..13048d3ad68 100644 --- a/docs/examples/1.2.x/console-web/examples/users/create-m-d5user.md +++ b/docs/examples/1.2.x/console-web/examples/users/create-m-d5user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/create-p-h-pass-user.md b/docs/examples/1.2.x/console-web/examples/users/create-p-h-pass-user.md index f7297c10234..448fb53ac24 100644 --- a/docs/examples/1.2.x/console-web/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.2.x/console-web/examples/users/create-p-h-pass-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/create-s-h-a-user.md b/docs/examples/1.2.x/console-web/examples/users/create-s-h-a-user.md index 3cefaf17dfa..d188ec648d7 100644 --- a/docs/examples/1.2.x/console-web/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.2.x/console-web/examples/users/create-s-h-a-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/console-web/examples/users/create-scrypt-modified-user.md index d8889fa2292..da40910a376 100644 --- a/docs/examples/1.2.x/console-web/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.2.x/console-web/examples/users/create-scrypt-modified-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/create-scrypt-user.md b/docs/examples/1.2.x/console-web/examples/users/create-scrypt-user.md index 3c4b357e4c9..ba82d26d9f6 100644 --- a/docs/examples/1.2.x/console-web/examples/users/create-scrypt-user.md +++ b/docs/examples/1.2.x/console-web/examples/users/create-scrypt-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/create.md b/docs/examples/1.2.x/console-web/examples/users/create.md index 845895d6a5c..30e6ec9266f 100644 --- a/docs/examples/1.2.x/console-web/examples/users/create.md +++ b/docs/examples/1.2.x/console-web/examples/users/create.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/delete-session.md b/docs/examples/1.2.x/console-web/examples/users/delete-session.md index 70404ca574f..9098318a774 100644 --- a/docs/examples/1.2.x/console-web/examples/users/delete-session.md +++ b/docs/examples/1.2.x/console-web/examples/users/delete-session.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/delete-sessions.md b/docs/examples/1.2.x/console-web/examples/users/delete-sessions.md index b02771c7098..c8994db4e5a 100644 --- a/docs/examples/1.2.x/console-web/examples/users/delete-sessions.md +++ b/docs/examples/1.2.x/console-web/examples/users/delete-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/delete.md b/docs/examples/1.2.x/console-web/examples/users/delete.md index 0bb95c395bd..8dd6885f0e5 100644 --- a/docs/examples/1.2.x/console-web/examples/users/delete.md +++ b/docs/examples/1.2.x/console-web/examples/users/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/get-prefs.md b/docs/examples/1.2.x/console-web/examples/users/get-prefs.md index 593552bd033..a0e8f78b94a 100644 --- a/docs/examples/1.2.x/console-web/examples/users/get-prefs.md +++ b/docs/examples/1.2.x/console-web/examples/users/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/get-usage.md b/docs/examples/1.2.x/console-web/examples/users/get-usage.md index 59d95e6dcb5..3c38b500d8b 100644 --- a/docs/examples/1.2.x/console-web/examples/users/get-usage.md +++ b/docs/examples/1.2.x/console-web/examples/users/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/get.md b/docs/examples/1.2.x/console-web/examples/users/get.md index 46cee750f7b..816b41ad399 100644 --- a/docs/examples/1.2.x/console-web/examples/users/get.md +++ b/docs/examples/1.2.x/console-web/examples/users/get.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/list-logs.md b/docs/examples/1.2.x/console-web/examples/users/list-logs.md index ded1e98b40b..cb2402e2d07 100644 --- a/docs/examples/1.2.x/console-web/examples/users/list-logs.md +++ b/docs/examples/1.2.x/console-web/examples/users/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/list-memberships.md b/docs/examples/1.2.x/console-web/examples/users/list-memberships.md index b47f7acf57a..3f9dca5ab21 100644 --- a/docs/examples/1.2.x/console-web/examples/users/list-memberships.md +++ b/docs/examples/1.2.x/console-web/examples/users/list-memberships.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/list-sessions.md b/docs/examples/1.2.x/console-web/examples/users/list-sessions.md index 087834e5695..0c0109550bd 100644 --- a/docs/examples/1.2.x/console-web/examples/users/list-sessions.md +++ b/docs/examples/1.2.x/console-web/examples/users/list-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/list.md b/docs/examples/1.2.x/console-web/examples/users/list.md index 28a8258b126..f658f432bac 100644 --- a/docs/examples/1.2.x/console-web/examples/users/list.md +++ b/docs/examples/1.2.x/console-web/examples/users/list.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/update-email-verification.md b/docs/examples/1.2.x/console-web/examples/users/update-email-verification.md index 019b0723714..7b9d2cc424e 100644 --- a/docs/examples/1.2.x/console-web/examples/users/update-email-verification.md +++ b/docs/examples/1.2.x/console-web/examples/users/update-email-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/update-email.md b/docs/examples/1.2.x/console-web/examples/users/update-email.md index e37d03a01c9..fe1f2500f83 100644 --- a/docs/examples/1.2.x/console-web/examples/users/update-email.md +++ b/docs/examples/1.2.x/console-web/examples/users/update-email.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/update-name.md b/docs/examples/1.2.x/console-web/examples/users/update-name.md index 2834c747da4..2d491d7a569 100644 --- a/docs/examples/1.2.x/console-web/examples/users/update-name.md +++ b/docs/examples/1.2.x/console-web/examples/users/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/update-password.md b/docs/examples/1.2.x/console-web/examples/users/update-password.md index 245986ca05e..eea4958d998 100644 --- a/docs/examples/1.2.x/console-web/examples/users/update-password.md +++ b/docs/examples/1.2.x/console-web/examples/users/update-password.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/update-phone-verification.md b/docs/examples/1.2.x/console-web/examples/users/update-phone-verification.md index 17ddf467d96..d4fe6f00a18 100644 --- a/docs/examples/1.2.x/console-web/examples/users/update-phone-verification.md +++ b/docs/examples/1.2.x/console-web/examples/users/update-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/update-phone.md b/docs/examples/1.2.x/console-web/examples/users/update-phone.md index a1d85aaaca4..ce74c710226 100644 --- a/docs/examples/1.2.x/console-web/examples/users/update-phone.md +++ b/docs/examples/1.2.x/console-web/examples/users/update-phone.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/update-prefs.md b/docs/examples/1.2.x/console-web/examples/users/update-prefs.md index e3c5b76c2aa..c05c4df53d6 100644 --- a/docs/examples/1.2.x/console-web/examples/users/update-prefs.md +++ b/docs/examples/1.2.x/console-web/examples/users/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/console-web/examples/users/update-status.md b/docs/examples/1.2.x/console-web/examples/users/update-status.md index eafbec728f5..87e2197cfc6 100644 --- a/docs/examples/1.2.x/console-web/examples/users/update-status.md +++ b/docs/examples/1.2.x/console-web/examples/users/update-status.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/create-phone-verification.md b/docs/examples/1.2.x/server-dart/examples/account/create-phone-verification.md index 912f8c3b1ec..85ea968b942 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/create-phone-verification.md +++ b/docs/examples/1.2.x/server-dart/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/create-recovery.md b/docs/examples/1.2.x/server-dart/examples/account/create-recovery.md index d9f13957c7e..0fe2889a76b 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/create-recovery.md +++ b/docs/examples/1.2.x/server-dart/examples/account/create-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/create-verification.md b/docs/examples/1.2.x/server-dart/examples/account/create-verification.md index cca3c7b7742..8daf5d7b1fb 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/create-verification.md +++ b/docs/examples/1.2.x/server-dart/examples/account/create-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/delete-session.md b/docs/examples/1.2.x/server-dart/examples/account/delete-session.md index 9486ec9b80a..92a0fee9a21 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/delete-session.md +++ b/docs/examples/1.2.x/server-dart/examples/account/delete-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/delete-sessions.md b/docs/examples/1.2.x/server-dart/examples/account/delete-sessions.md index a5732cb68e4..2477115be14 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/delete-sessions.md +++ b/docs/examples/1.2.x/server-dart/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/get-prefs.md b/docs/examples/1.2.x/server-dart/examples/account/get-prefs.md index 527a71f3b13..fcf164dde07 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/get-prefs.md +++ b/docs/examples/1.2.x/server-dart/examples/account/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/get-session.md b/docs/examples/1.2.x/server-dart/examples/account/get-session.md index 6eb711ab4d7..029d7bc3d99 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/get-session.md +++ b/docs/examples/1.2.x/server-dart/examples/account/get-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/get.md b/docs/examples/1.2.x/server-dart/examples/account/get.md index c72fdddb107..805061bd701 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/get.md +++ b/docs/examples/1.2.x/server-dart/examples/account/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/list-logs.md b/docs/examples/1.2.x/server-dart/examples/account/list-logs.md index 68d2c49f743..41cdad74c0c 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/list-logs.md +++ b/docs/examples/1.2.x/server-dart/examples/account/list-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/list-sessions.md b/docs/examples/1.2.x/server-dart/examples/account/list-sessions.md index 0d6567b5f31..30bb6fc8c95 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/list-sessions.md +++ b/docs/examples/1.2.x/server-dart/examples/account/list-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/update-email.md b/docs/examples/1.2.x/server-dart/examples/account/update-email.md index b83f7d86da9..ad77ccfd9a1 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/update-email.md +++ b/docs/examples/1.2.x/server-dart/examples/account/update-email.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/update-name.md b/docs/examples/1.2.x/server-dart/examples/account/update-name.md index 0bd27cf2046..7df0f9cc019 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/update-name.md +++ b/docs/examples/1.2.x/server-dart/examples/account/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/update-password.md b/docs/examples/1.2.x/server-dart/examples/account/update-password.md index 6d8cfce1a2a..8c7c3b5f956 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/update-password.md +++ b/docs/examples/1.2.x/server-dart/examples/account/update-password.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/update-phone-verification.md b/docs/examples/1.2.x/server-dart/examples/account/update-phone-verification.md index f2995b9b93f..4892311ef2a 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/update-phone-verification.md +++ b/docs/examples/1.2.x/server-dart/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/update-phone.md b/docs/examples/1.2.x/server-dart/examples/account/update-phone.md index 5848da5d10d..465593c0ab5 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/update-phone.md +++ b/docs/examples/1.2.x/server-dart/examples/account/update-phone.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/update-prefs.md b/docs/examples/1.2.x/server-dart/examples/account/update-prefs.md index ffbe7002884..7ffef542be5 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/update-prefs.md +++ b/docs/examples/1.2.x/server-dart/examples/account/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/update-recovery.md b/docs/examples/1.2.x/server-dart/examples/account/update-recovery.md index c2cf9d2396f..e3ade8270b2 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/update-recovery.md +++ b/docs/examples/1.2.x/server-dart/examples/account/update-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/update-session.md b/docs/examples/1.2.x/server-dart/examples/account/update-session.md index 61e11e27af9..859f1a81f7a 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/update-session.md +++ b/docs/examples/1.2.x/server-dart/examples/account/update-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/update-status.md b/docs/examples/1.2.x/server-dart/examples/account/update-status.md index 12f733334a3..610784294a0 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/update-status.md +++ b/docs/examples/1.2.x/server-dart/examples/account/update-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/account/update-verification.md b/docs/examples/1.2.x/server-dart/examples/account/update-verification.md index 40e36426a10..7b291b61605 100644 --- a/docs/examples/1.2.x/server-dart/examples/account/update-verification.md +++ b/docs/examples/1.2.x/server-dart/examples/account/update-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/avatars/get-browser.md b/docs/examples/1.2.x/server-dart/examples/avatars/get-browser.md index 0bac9df4ef9..abca00ba4b4 100644 --- a/docs/examples/1.2.x/server-dart/examples/avatars/get-browser.md +++ b/docs/examples/1.2.x/server-dart/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/server-dart/examples/avatars/get-credit-card.md index b9a8166e485..b50b1304f9e 100644 --- a/docs/examples/1.2.x/server-dart/examples/avatars/get-credit-card.md +++ b/docs/examples/1.2.x/server-dart/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/avatars/get-favicon.md b/docs/examples/1.2.x/server-dart/examples/avatars/get-favicon.md index 6a728e7792a..a547908fa47 100644 --- a/docs/examples/1.2.x/server-dart/examples/avatars/get-favicon.md +++ b/docs/examples/1.2.x/server-dart/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/avatars/get-flag.md b/docs/examples/1.2.x/server-dart/examples/avatars/get-flag.md index 02e4880926f..8e2d9f14900 100644 --- a/docs/examples/1.2.x/server-dart/examples/avatars/get-flag.md +++ b/docs/examples/1.2.x/server-dart/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/avatars/get-image.md b/docs/examples/1.2.x/server-dart/examples/avatars/get-image.md index b1d5e338844..746ec079b0f 100644 --- a/docs/examples/1.2.x/server-dart/examples/avatars/get-image.md +++ b/docs/examples/1.2.x/server-dart/examples/avatars/get-image.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/avatars/get-initials.md b/docs/examples/1.2.x/server-dart/examples/avatars/get-initials.md index 5a68caf1d95..c979fddd08a 100644 --- a/docs/examples/1.2.x/server-dart/examples/avatars/get-initials.md +++ b/docs/examples/1.2.x/server-dart/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/avatars/get-q-r.md b/docs/examples/1.2.x/server-dart/examples/avatars/get-q-r.md index 8283b9bdf45..6ab3cf709d8 100644 --- a/docs/examples/1.2.x/server-dart/examples/avatars/get-q-r.md +++ b/docs/examples/1.2.x/server-dart/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-boolean-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/create-boolean-attribute.md index 224719685b5..0fb759bcb22 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/create-boolean-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-collection.md b/docs/examples/1.2.x/server-dart/examples/databases/create-collection.md index c90183deed2..e63877b39f7 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-collection.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/create-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-datetime-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/create-datetime-attribute.md index 24c44088f3d..f56eec54ec0 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/create-datetime-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-document.md b/docs/examples/1.2.x/server-dart/examples/databases/create-document.md index 00d844da0fc..1f6f6b9703d 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-document.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/create-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-email-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/create-email-attribute.md index 92fd32037b8..ea1ebfb480a 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-email-attribute.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/create-email-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-enum-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/create-enum-attribute.md index fa8ad92015f..03773c58ebf 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/create-enum-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-float-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/create-float-attribute.md index 96047bf2b21..94c716b9d47 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-float-attribute.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/create-float-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-index.md b/docs/examples/1.2.x/server-dart/examples/databases/create-index.md index c16a02719e7..248d9632a09 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-index.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/create-index.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-integer-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/create-integer-attribute.md index bc4f12f0c4f..4b1d76195dc 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/create-integer-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-ip-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/create-ip-attribute.md index ef3e985a384..4b3586ae34e 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/create-ip-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-string-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/create-string-attribute.md index 14f2769dbbd..ed973e8c537 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-string-attribute.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/create-string-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create-url-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/create-url-attribute.md index 4cf3e99a727..62b6970b27b 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/create-url-attribute.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/create-url-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/create.md b/docs/examples/1.2.x/server-dart/examples/databases/create.md index cbaf3b742d0..390baabb610 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/create.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/delete-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/delete-attribute.md index e9865bfe220..b52ba1f39de 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/delete-attribute.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/delete-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/delete-collection.md b/docs/examples/1.2.x/server-dart/examples/databases/delete-collection.md index 58869201153..8de343f8691 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/delete-collection.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/delete-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/delete-document.md b/docs/examples/1.2.x/server-dart/examples/databases/delete-document.md index 0d298f3b420..bcb4b7a2da1 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/delete-document.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/delete-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/delete-index.md b/docs/examples/1.2.x/server-dart/examples/databases/delete-index.md index be5b2a5c9f6..8422593fe55 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/delete-index.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/delete-index.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/delete.md b/docs/examples/1.2.x/server-dart/examples/databases/delete.md index ff19beea69a..bd4c483f014 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/delete.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/get-attribute.md b/docs/examples/1.2.x/server-dart/examples/databases/get-attribute.md index c27ddb648c5..e066f70d136 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/get-attribute.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/get-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/get-collection.md b/docs/examples/1.2.x/server-dart/examples/databases/get-collection.md index 359f0df829c..2678a1a5432 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/get-collection.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/get-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/get-document.md b/docs/examples/1.2.x/server-dart/examples/databases/get-document.md index 2141abf4bec..4c5beadccfe 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/get-document.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/get-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/get-index.md b/docs/examples/1.2.x/server-dart/examples/databases/get-index.md index 2b8a90318d5..9b881f7d788 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/get-index.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/get-index.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/get.md b/docs/examples/1.2.x/server-dart/examples/databases/get.md index f0cc118b960..7a2d9591013 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/get.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/list-attributes.md b/docs/examples/1.2.x/server-dart/examples/databases/list-attributes.md index 60ca58f3c32..1c9d635195d 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/list-attributes.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/list-attributes.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/list-collections.md b/docs/examples/1.2.x/server-dart/examples/databases/list-collections.md index a10038db119..cd120817dc8 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/list-collections.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/list-collections.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/list-documents.md b/docs/examples/1.2.x/server-dart/examples/databases/list-documents.md index 70299774fb6..41703ae26bc 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/list-documents.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/list-documents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/list-indexes.md b/docs/examples/1.2.x/server-dart/examples/databases/list-indexes.md index 6703ebf35a5..d959370fc6a 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/list-indexes.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/list-indexes.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/list.md b/docs/examples/1.2.x/server-dart/examples/databases/list.md index d9bd06ad34e..da25b576d7f 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/list.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/update-collection.md b/docs/examples/1.2.x/server-dart/examples/databases/update-collection.md index a5f32dead1b..4501459265b 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/update-collection.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/update-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/update-document.md b/docs/examples/1.2.x/server-dart/examples/databases/update-document.md index fb08413f2fd..4b34007c497 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/update-document.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/update-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/databases/update.md b/docs/examples/1.2.x/server-dart/examples/databases/update.md index 59070cefa92..7187605e819 100644 --- a/docs/examples/1.2.x/server-dart/examples/databases/update.md +++ b/docs/examples/1.2.x/server-dart/examples/databases/update.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/create-build.md b/docs/examples/1.2.x/server-dart/examples/functions/create-build.md index 530ba6deab7..eea5cc14c0b 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/create-build.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/create-build.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/create-deployment.md b/docs/examples/1.2.x/server-dart/examples/functions/create-deployment.md index d646680db84..17683d2c863 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/create-deployment.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/create-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/create-execution.md b/docs/examples/1.2.x/server-dart/examples/functions/create-execution.md index f5de49f7cf7..610579eef0c 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/create-execution.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/create-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/create-variable.md b/docs/examples/1.2.x/server-dart/examples/functions/create-variable.md index 50cd063ca13..2990bf98be1 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/create-variable.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/create-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/create.md b/docs/examples/1.2.x/server-dart/examples/functions/create.md index 923654d10a8..16a5215d7c2 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/create.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/delete-deployment.md b/docs/examples/1.2.x/server-dart/examples/functions/delete-deployment.md index e65380c5012..339c0d60ce4 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/delete-deployment.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/delete-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/delete-variable.md b/docs/examples/1.2.x/server-dart/examples/functions/delete-variable.md index 87c7f407b56..ad86ec73cba 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/delete-variable.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/delete-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/delete.md b/docs/examples/1.2.x/server-dart/examples/functions/delete.md index 51633669120..276f7effa20 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/delete.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/get-deployment.md b/docs/examples/1.2.x/server-dart/examples/functions/get-deployment.md index 9cab571e94d..f46260a2ff5 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/get-deployment.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/get-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/get-execution.md b/docs/examples/1.2.x/server-dart/examples/functions/get-execution.md index 6cadde64262..6749539306b 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/get-execution.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/get-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/get-variable.md b/docs/examples/1.2.x/server-dart/examples/functions/get-variable.md index 924bee2bffc..7223c5add9c 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/get-variable.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/get-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/get.md b/docs/examples/1.2.x/server-dart/examples/functions/get.md index 503ab207091..1073d33b1a2 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/get.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/list-deployments.md b/docs/examples/1.2.x/server-dart/examples/functions/list-deployments.md index b12f9eba87e..d1b80ddd956 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/list-deployments.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/list-deployments.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/list-executions.md b/docs/examples/1.2.x/server-dart/examples/functions/list-executions.md index 3d66a4496ac..255f38a299d 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/list-executions.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/list-executions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/list-runtimes.md b/docs/examples/1.2.x/server-dart/examples/functions/list-runtimes.md index 091a1116f70..a91a501814f 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/list-runtimes.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/list-runtimes.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/list-variables.md b/docs/examples/1.2.x/server-dart/examples/functions/list-variables.md index f3c6655b141..ea5e4779873 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/list-variables.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/list-variables.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/list.md b/docs/examples/1.2.x/server-dart/examples/functions/list.md index 4f2b11404d7..e5fde72144c 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/list.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/update-deployment.md b/docs/examples/1.2.x/server-dart/examples/functions/update-deployment.md index d503aecb3b4..cd9a57018a0 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/update-deployment.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/update-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/update-variable.md b/docs/examples/1.2.x/server-dart/examples/functions/update-variable.md index 126d2644701..d40a831970b 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/update-variable.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/update-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/functions/update.md b/docs/examples/1.2.x/server-dart/examples/functions/update.md index 4a1b0f9b4d1..973279f5f24 100644 --- a/docs/examples/1.2.x/server-dart/examples/functions/update.md +++ b/docs/examples/1.2.x/server-dart/examples/functions/update.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/graphql/63a08ed7b8f61.md b/docs/examples/1.2.x/server-dart/examples/graphql/63a08ed7b8f61.md index bda3c643ff2..cd56e1deb39 100644 --- a/docs/examples/1.2.x/server-dart/examples/graphql/63a08ed7b8f61.md +++ b/docs/examples/1.2.x/server-dart/examples/graphql/63a08ed7b8f61.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/graphql/get.md b/docs/examples/1.2.x/server-dart/examples/graphql/get.md index ea07775165a..5539cac7d78 100644 --- a/docs/examples/1.2.x/server-dart/examples/graphql/get.md +++ b/docs/examples/1.2.x/server-dart/examples/graphql/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/graphql/mutation.md b/docs/examples/1.2.x/server-dart/examples/graphql/mutation.md index 780ee09f4ac..160c049dc29 100644 --- a/docs/examples/1.2.x/server-dart/examples/graphql/mutation.md +++ b/docs/examples/1.2.x/server-dart/examples/graphql/mutation.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/graphql/query.md b/docs/examples/1.2.x/server-dart/examples/graphql/query.md index 7f22f5360d8..4191d3c271d 100644 --- a/docs/examples/1.2.x/server-dart/examples/graphql/query.md +++ b/docs/examples/1.2.x/server-dart/examples/graphql/query.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/health/get-antivirus.md b/docs/examples/1.2.x/server-dart/examples/health/get-antivirus.md index 922dcfa1368..7b8d638d8e1 100644 --- a/docs/examples/1.2.x/server-dart/examples/health/get-antivirus.md +++ b/docs/examples/1.2.x/server-dart/examples/health/get-antivirus.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/health/get-cache.md b/docs/examples/1.2.x/server-dart/examples/health/get-cache.md index 4b63edeee3a..08ea1370d16 100644 --- a/docs/examples/1.2.x/server-dart/examples/health/get-cache.md +++ b/docs/examples/1.2.x/server-dart/examples/health/get-cache.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/health/get-d-b.md b/docs/examples/1.2.x/server-dart/examples/health/get-d-b.md index 65188c096e5..30cf5c928f5 100644 --- a/docs/examples/1.2.x/server-dart/examples/health/get-d-b.md +++ b/docs/examples/1.2.x/server-dart/examples/health/get-d-b.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/health/get-queue-certificates.md b/docs/examples/1.2.x/server-dart/examples/health/get-queue-certificates.md index 4063ab35141..884c6b31f16 100644 --- a/docs/examples/1.2.x/server-dart/examples/health/get-queue-certificates.md +++ b/docs/examples/1.2.x/server-dart/examples/health/get-queue-certificates.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/health/get-queue-functions.md b/docs/examples/1.2.x/server-dart/examples/health/get-queue-functions.md index 5ebaad64848..048fce8d326 100644 --- a/docs/examples/1.2.x/server-dart/examples/health/get-queue-functions.md +++ b/docs/examples/1.2.x/server-dart/examples/health/get-queue-functions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/health/get-queue-logs.md b/docs/examples/1.2.x/server-dart/examples/health/get-queue-logs.md index 11a5285439a..42195528570 100644 --- a/docs/examples/1.2.x/server-dart/examples/health/get-queue-logs.md +++ b/docs/examples/1.2.x/server-dart/examples/health/get-queue-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/health/get-queue-webhooks.md b/docs/examples/1.2.x/server-dart/examples/health/get-queue-webhooks.md index a43f5f8423c..5b012125e1f 100644 --- a/docs/examples/1.2.x/server-dart/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.2.x/server-dart/examples/health/get-queue-webhooks.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/health/get-storage-local.md b/docs/examples/1.2.x/server-dart/examples/health/get-storage-local.md index 4a586690fee..e85aac8e012 100644 --- a/docs/examples/1.2.x/server-dart/examples/health/get-storage-local.md +++ b/docs/examples/1.2.x/server-dart/examples/health/get-storage-local.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/health/get-time.md b/docs/examples/1.2.x/server-dart/examples/health/get-time.md index d8166dd3d16..716216e6db3 100644 --- a/docs/examples/1.2.x/server-dart/examples/health/get-time.md +++ b/docs/examples/1.2.x/server-dart/examples/health/get-time.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/health/get.md b/docs/examples/1.2.x/server-dart/examples/health/get.md index 1be37e5a934..2ea2ea669ea 100644 --- a/docs/examples/1.2.x/server-dart/examples/health/get.md +++ b/docs/examples/1.2.x/server-dart/examples/health/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/locale/get.md b/docs/examples/1.2.x/server-dart/examples/locale/get.md index 9ecb18c52d6..a3ebf5cefde 100644 --- a/docs/examples/1.2.x/server-dart/examples/locale/get.md +++ b/docs/examples/1.2.x/server-dart/examples/locale/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/locale/list-continents.md b/docs/examples/1.2.x/server-dart/examples/locale/list-continents.md index e6849303b1b..a74df54886b 100644 --- a/docs/examples/1.2.x/server-dart/examples/locale/list-continents.md +++ b/docs/examples/1.2.x/server-dart/examples/locale/list-continents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/server-dart/examples/locale/list-countries-e-u.md index 2d1ddcf8f09..2a81d9afef2 100644 --- a/docs/examples/1.2.x/server-dart/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.2.x/server-dart/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/server-dart/examples/locale/list-countries-phones.md index 23057013393..2d1400a9604 100644 --- a/docs/examples/1.2.x/server-dart/examples/locale/list-countries-phones.md +++ b/docs/examples/1.2.x/server-dart/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/locale/list-countries.md b/docs/examples/1.2.x/server-dart/examples/locale/list-countries.md index ef1158339ff..b4d00e52e7b 100644 --- a/docs/examples/1.2.x/server-dart/examples/locale/list-countries.md +++ b/docs/examples/1.2.x/server-dart/examples/locale/list-countries.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/locale/list-currencies.md b/docs/examples/1.2.x/server-dart/examples/locale/list-currencies.md index 0810f3dafb2..2c46eee2b2e 100644 --- a/docs/examples/1.2.x/server-dart/examples/locale/list-currencies.md +++ b/docs/examples/1.2.x/server-dart/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/locale/list-languages.md b/docs/examples/1.2.x/server-dart/examples/locale/list-languages.md index f3d642cc480..6d1f00219e2 100644 --- a/docs/examples/1.2.x/server-dart/examples/locale/list-languages.md +++ b/docs/examples/1.2.x/server-dart/examples/locale/list-languages.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/storage/create-bucket.md b/docs/examples/1.2.x/server-dart/examples/storage/create-bucket.md index 745a6b508d4..647d846e06a 100644 --- a/docs/examples/1.2.x/server-dart/examples/storage/create-bucket.md +++ b/docs/examples/1.2.x/server-dart/examples/storage/create-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/storage/create-file.md b/docs/examples/1.2.x/server-dart/examples/storage/create-file.md index ab4c661a541..760c95dcfb1 100644 --- a/docs/examples/1.2.x/server-dart/examples/storage/create-file.md +++ b/docs/examples/1.2.x/server-dart/examples/storage/create-file.md @@ -6,7 +6,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/storage/delete-bucket.md b/docs/examples/1.2.x/server-dart/examples/storage/delete-bucket.md index de516561bdb..a7c7065ba86 100644 --- a/docs/examples/1.2.x/server-dart/examples/storage/delete-bucket.md +++ b/docs/examples/1.2.x/server-dart/examples/storage/delete-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/storage/delete-file.md b/docs/examples/1.2.x/server-dart/examples/storage/delete-file.md index 8e4460bb009..ddb297c6b7a 100644 --- a/docs/examples/1.2.x/server-dart/examples/storage/delete-file.md +++ b/docs/examples/1.2.x/server-dart/examples/storage/delete-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/storage/get-bucket.md b/docs/examples/1.2.x/server-dart/examples/storage/get-bucket.md index 9e39076e355..26fec00cdf4 100644 --- a/docs/examples/1.2.x/server-dart/examples/storage/get-bucket.md +++ b/docs/examples/1.2.x/server-dart/examples/storage/get-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/storage/get-file-download.md b/docs/examples/1.2.x/server-dart/examples/storage/get-file-download.md index 6534fe33fff..632612a285e 100644 --- a/docs/examples/1.2.x/server-dart/examples/storage/get-file-download.md +++ b/docs/examples/1.2.x/server-dart/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/storage/get-file-preview.md b/docs/examples/1.2.x/server-dart/examples/storage/get-file-preview.md index ca16d635b26..70f55e3e267 100644 --- a/docs/examples/1.2.x/server-dart/examples/storage/get-file-preview.md +++ b/docs/examples/1.2.x/server-dart/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/storage/get-file-view.md b/docs/examples/1.2.x/server-dart/examples/storage/get-file-view.md index 5c3d69dcbc6..59176877b02 100644 --- a/docs/examples/1.2.x/server-dart/examples/storage/get-file-view.md +++ b/docs/examples/1.2.x/server-dart/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/storage/get-file.md b/docs/examples/1.2.x/server-dart/examples/storage/get-file.md index bc45c3f1e83..024b7fc63d3 100644 --- a/docs/examples/1.2.x/server-dart/examples/storage/get-file.md +++ b/docs/examples/1.2.x/server-dart/examples/storage/get-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/storage/list-buckets.md b/docs/examples/1.2.x/server-dart/examples/storage/list-buckets.md index 6a35febb390..fb46523303b 100644 --- a/docs/examples/1.2.x/server-dart/examples/storage/list-buckets.md +++ b/docs/examples/1.2.x/server-dart/examples/storage/list-buckets.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/storage/list-files.md b/docs/examples/1.2.x/server-dart/examples/storage/list-files.md index 40b8d3bce5e..bfafeb0b0a0 100644 --- a/docs/examples/1.2.x/server-dart/examples/storage/list-files.md +++ b/docs/examples/1.2.x/server-dart/examples/storage/list-files.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/storage/update-bucket.md b/docs/examples/1.2.x/server-dart/examples/storage/update-bucket.md index 064d2f2e37a..3bdc11240ff 100644 --- a/docs/examples/1.2.x/server-dart/examples/storage/update-bucket.md +++ b/docs/examples/1.2.x/server-dart/examples/storage/update-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/storage/update-file.md b/docs/examples/1.2.x/server-dart/examples/storage/update-file.md index 2fa999a5583..4e0178e27da 100644 --- a/docs/examples/1.2.x/server-dart/examples/storage/update-file.md +++ b/docs/examples/1.2.x/server-dart/examples/storage/update-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/teams/create-membership.md b/docs/examples/1.2.x/server-dart/examples/teams/create-membership.md index 16d875de28e..f2816321416 100644 --- a/docs/examples/1.2.x/server-dart/examples/teams/create-membership.md +++ b/docs/examples/1.2.x/server-dart/examples/teams/create-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/teams/create.md b/docs/examples/1.2.x/server-dart/examples/teams/create.md index 74895b23a0f..81c3a718d4b 100644 --- a/docs/examples/1.2.x/server-dart/examples/teams/create.md +++ b/docs/examples/1.2.x/server-dart/examples/teams/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/teams/delete-membership.md b/docs/examples/1.2.x/server-dart/examples/teams/delete-membership.md index 8c135994d67..07d596a1b3b 100644 --- a/docs/examples/1.2.x/server-dart/examples/teams/delete-membership.md +++ b/docs/examples/1.2.x/server-dart/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/teams/delete.md b/docs/examples/1.2.x/server-dart/examples/teams/delete.md index a5fee4d0841..2505cdfacda 100644 --- a/docs/examples/1.2.x/server-dart/examples/teams/delete.md +++ b/docs/examples/1.2.x/server-dart/examples/teams/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/teams/get-membership.md b/docs/examples/1.2.x/server-dart/examples/teams/get-membership.md index 4193b245f41..cf9d4b80a23 100644 --- a/docs/examples/1.2.x/server-dart/examples/teams/get-membership.md +++ b/docs/examples/1.2.x/server-dart/examples/teams/get-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/teams/get.md b/docs/examples/1.2.x/server-dart/examples/teams/get.md index daa67c4eb82..8dd731b1bec 100644 --- a/docs/examples/1.2.x/server-dart/examples/teams/get.md +++ b/docs/examples/1.2.x/server-dart/examples/teams/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/teams/list-memberships.md b/docs/examples/1.2.x/server-dart/examples/teams/list-memberships.md index 74c66c03190..71cdf466ccf 100644 --- a/docs/examples/1.2.x/server-dart/examples/teams/list-memberships.md +++ b/docs/examples/1.2.x/server-dart/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/teams/list.md b/docs/examples/1.2.x/server-dart/examples/teams/list.md index 11033f33da8..7d5e4ebef77 100644 --- a/docs/examples/1.2.x/server-dart/examples/teams/list.md +++ b/docs/examples/1.2.x/server-dart/examples/teams/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/server-dart/examples/teams/update-membership-roles.md index dcbef5c9484..8ede36ac641 100644 --- a/docs/examples/1.2.x/server-dart/examples/teams/update-membership-roles.md +++ b/docs/examples/1.2.x/server-dart/examples/teams/update-membership-roles.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/teams/update-membership-status.md b/docs/examples/1.2.x/server-dart/examples/teams/update-membership-status.md index ca704e0fdba..50f9693bf94 100644 --- a/docs/examples/1.2.x/server-dart/examples/teams/update-membership-status.md +++ b/docs/examples/1.2.x/server-dart/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-dart/examples/teams/update.md b/docs/examples/1.2.x/server-dart/examples/teams/update.md index 67892475abc..ce259401736 100644 --- a/docs/examples/1.2.x/server-dart/examples/teams/update.md +++ b/docs/examples/1.2.x/server-dart/examples/teams/update.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/create-argon2user.md b/docs/examples/1.2.x/server-dart/examples/users/create-argon2user.md index a40b3afd55a..d01e8c6931e 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/create-argon2user.md +++ b/docs/examples/1.2.x/server-dart/examples/users/create-argon2user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/create-bcrypt-user.md b/docs/examples/1.2.x/server-dart/examples/users/create-bcrypt-user.md index 8b55d656b08..4685780b257 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.2.x/server-dart/examples/users/create-bcrypt-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/create-m-d5user.md b/docs/examples/1.2.x/server-dart/examples/users/create-m-d5user.md index 3ab8901f3ce..20ac1948e75 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/create-m-d5user.md +++ b/docs/examples/1.2.x/server-dart/examples/users/create-m-d5user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/create-p-h-pass-user.md b/docs/examples/1.2.x/server-dart/examples/users/create-p-h-pass-user.md index bedb44f4c27..0294339d647 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.2.x/server-dart/examples/users/create-p-h-pass-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/create-s-h-a-user.md b/docs/examples/1.2.x/server-dart/examples/users/create-s-h-a-user.md index 361f309a37a..21c4461cdcb 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.2.x/server-dart/examples/users/create-s-h-a-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/server-dart/examples/users/create-scrypt-modified-user.md index fa5b80519e5..9d95641d761 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.2.x/server-dart/examples/users/create-scrypt-modified-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/create-scrypt-user.md b/docs/examples/1.2.x/server-dart/examples/users/create-scrypt-user.md index 91e1f7dc6d2..0a586407dc2 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/create-scrypt-user.md +++ b/docs/examples/1.2.x/server-dart/examples/users/create-scrypt-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/create.md b/docs/examples/1.2.x/server-dart/examples/users/create.md index 517cd22fcb0..a841df0e272 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/create.md +++ b/docs/examples/1.2.x/server-dart/examples/users/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/delete-session.md b/docs/examples/1.2.x/server-dart/examples/users/delete-session.md index 3f7611873ec..f1432677ed1 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/delete-session.md +++ b/docs/examples/1.2.x/server-dart/examples/users/delete-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/delete-sessions.md b/docs/examples/1.2.x/server-dart/examples/users/delete-sessions.md index 69cbc5e8d51..82a71188ce6 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/delete-sessions.md +++ b/docs/examples/1.2.x/server-dart/examples/users/delete-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/delete.md b/docs/examples/1.2.x/server-dart/examples/users/delete.md index 1e1311d5d94..351686fe588 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/delete.md +++ b/docs/examples/1.2.x/server-dart/examples/users/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/get-prefs.md b/docs/examples/1.2.x/server-dart/examples/users/get-prefs.md index eb33ae656c5..cff91fa59b5 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/get-prefs.md +++ b/docs/examples/1.2.x/server-dart/examples/users/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/get.md b/docs/examples/1.2.x/server-dart/examples/users/get.md index c56852934cf..e2a24afd9a0 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/get.md +++ b/docs/examples/1.2.x/server-dart/examples/users/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/list-logs.md b/docs/examples/1.2.x/server-dart/examples/users/list-logs.md index 0d2143ad487..44a5e13ea45 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/list-logs.md +++ b/docs/examples/1.2.x/server-dart/examples/users/list-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/list-memberships.md b/docs/examples/1.2.x/server-dart/examples/users/list-memberships.md index 36a83edec0e..398e7ceee81 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/list-memberships.md +++ b/docs/examples/1.2.x/server-dart/examples/users/list-memberships.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/list-sessions.md b/docs/examples/1.2.x/server-dart/examples/users/list-sessions.md index 5f77fdbfa7f..eeac7b8d4bc 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/list-sessions.md +++ b/docs/examples/1.2.x/server-dart/examples/users/list-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/list.md b/docs/examples/1.2.x/server-dart/examples/users/list.md index 34498c00ac1..ef91b2db4a7 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/list.md +++ b/docs/examples/1.2.x/server-dart/examples/users/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/update-email-verification.md b/docs/examples/1.2.x/server-dart/examples/users/update-email-verification.md index 8853f86529d..7de13257446 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/update-email-verification.md +++ b/docs/examples/1.2.x/server-dart/examples/users/update-email-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/update-email.md b/docs/examples/1.2.x/server-dart/examples/users/update-email.md index 8813e1101f5..589bf93d315 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/update-email.md +++ b/docs/examples/1.2.x/server-dart/examples/users/update-email.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/update-name.md b/docs/examples/1.2.x/server-dart/examples/users/update-name.md index 56797d585cd..a3a0c84bbbd 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/update-name.md +++ b/docs/examples/1.2.x/server-dart/examples/users/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/update-password.md b/docs/examples/1.2.x/server-dart/examples/users/update-password.md index ce2a4c7dd50..13fcef65860 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/update-password.md +++ b/docs/examples/1.2.x/server-dart/examples/users/update-password.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/update-phone-verification.md b/docs/examples/1.2.x/server-dart/examples/users/update-phone-verification.md index 37c3ced6084..0ef13f5b037 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/update-phone-verification.md +++ b/docs/examples/1.2.x/server-dart/examples/users/update-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/update-phone.md b/docs/examples/1.2.x/server-dart/examples/users/update-phone.md index 4d5e3110786..f512af071e4 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/update-phone.md +++ b/docs/examples/1.2.x/server-dart/examples/users/update-phone.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/update-prefs.md b/docs/examples/1.2.x/server-dart/examples/users/update-prefs.md index c6c1bbedffb..a2f0aea8fec 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/update-prefs.md +++ b/docs/examples/1.2.x/server-dart/examples/users/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-dart/examples/users/update-status.md b/docs/examples/1.2.x/server-dart/examples/users/update-status.md index 6f80745a7af..32fa9019eb1 100644 --- a/docs/examples/1.2.x/server-dart/examples/users/update-status.md +++ b/docs/examples/1.2.x/server-dart/examples/users/update-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/create-phone-verification.md b/docs/examples/1.2.x/server-deno/examples/account/create-phone-verification.md index fe765887cca..aa9969c9a04 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/create-phone-verification.md +++ b/docs/examples/1.2.x/server-deno/examples/account/create-phone-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/create-recovery.md b/docs/examples/1.2.x/server-deno/examples/account/create-recovery.md index e5adb2a78bb..ca4ef258105 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/create-recovery.md +++ b/docs/examples/1.2.x/server-deno/examples/account/create-recovery.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/create-verification.md b/docs/examples/1.2.x/server-deno/examples/account/create-verification.md index 5861278e70b..89810ec730e 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/create-verification.md +++ b/docs/examples/1.2.x/server-deno/examples/account/create-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/delete-session.md b/docs/examples/1.2.x/server-deno/examples/account/delete-session.md index 22417acb98c..969445ca5ee 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/delete-session.md +++ b/docs/examples/1.2.x/server-deno/examples/account/delete-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/delete-sessions.md b/docs/examples/1.2.x/server-deno/examples/account/delete-sessions.md index 2a82bd95668..ad5dcb1200f 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/delete-sessions.md +++ b/docs/examples/1.2.x/server-deno/examples/account/delete-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/get-prefs.md b/docs/examples/1.2.x/server-deno/examples/account/get-prefs.md index c9645d0fe1d..4b413ec3689 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/get-prefs.md +++ b/docs/examples/1.2.x/server-deno/examples/account/get-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/get-session.md b/docs/examples/1.2.x/server-deno/examples/account/get-session.md index f2c1c944699..b39704a72f3 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/get-session.md +++ b/docs/examples/1.2.x/server-deno/examples/account/get-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/get.md b/docs/examples/1.2.x/server-deno/examples/account/get.md index 03b22307ac0..d3a7a9b8e3a 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/get.md +++ b/docs/examples/1.2.x/server-deno/examples/account/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/list-logs.md b/docs/examples/1.2.x/server-deno/examples/account/list-logs.md index fb793041013..4609c8e3b60 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/list-logs.md +++ b/docs/examples/1.2.x/server-deno/examples/account/list-logs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/list-sessions.md b/docs/examples/1.2.x/server-deno/examples/account/list-sessions.md index 32a7cfa09a4..498590452fd 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/list-sessions.md +++ b/docs/examples/1.2.x/server-deno/examples/account/list-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/update-email.md b/docs/examples/1.2.x/server-deno/examples/account/update-email.md index 26906d7eed3..c92ca4dc234 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/update-email.md +++ b/docs/examples/1.2.x/server-deno/examples/account/update-email.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/update-name.md b/docs/examples/1.2.x/server-deno/examples/account/update-name.md index b1a351216fd..2e52634e212 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/update-name.md +++ b/docs/examples/1.2.x/server-deno/examples/account/update-name.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/update-password.md b/docs/examples/1.2.x/server-deno/examples/account/update-password.md index 13e9d7c4797..26114e0c8eb 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/update-password.md +++ b/docs/examples/1.2.x/server-deno/examples/account/update-password.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/update-phone-verification.md b/docs/examples/1.2.x/server-deno/examples/account/update-phone-verification.md index 064252a328a..a7b6e4670d4 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/update-phone-verification.md +++ b/docs/examples/1.2.x/server-deno/examples/account/update-phone-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/update-phone.md b/docs/examples/1.2.x/server-deno/examples/account/update-phone.md index e023424f9e6..0d1bfcc93a4 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/update-phone.md +++ b/docs/examples/1.2.x/server-deno/examples/account/update-phone.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/update-prefs.md b/docs/examples/1.2.x/server-deno/examples/account/update-prefs.md index 4a6ca88ae8a..472f53dd47e 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/update-prefs.md +++ b/docs/examples/1.2.x/server-deno/examples/account/update-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/update-recovery.md b/docs/examples/1.2.x/server-deno/examples/account/update-recovery.md index 06916bb2783..ee1546f1316 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/update-recovery.md +++ b/docs/examples/1.2.x/server-deno/examples/account/update-recovery.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/update-session.md b/docs/examples/1.2.x/server-deno/examples/account/update-session.md index 23a7ad2cf6c..310a7137450 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/update-session.md +++ b/docs/examples/1.2.x/server-deno/examples/account/update-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/update-status.md b/docs/examples/1.2.x/server-deno/examples/account/update-status.md index 6b9b18981bd..40c921be3ed 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/update-status.md +++ b/docs/examples/1.2.x/server-deno/examples/account/update-status.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/account/update-verification.md b/docs/examples/1.2.x/server-deno/examples/account/update-verification.md index c11f2b71c17..db4febb20f7 100644 --- a/docs/examples/1.2.x/server-deno/examples/account/update-verification.md +++ b/docs/examples/1.2.x/server-deno/examples/account/update-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/avatars/get-browser.md b/docs/examples/1.2.x/server-deno/examples/avatars/get-browser.md index 44c946e4d7e..317dc753313 100644 --- a/docs/examples/1.2.x/server-deno/examples/avatars/get-browser.md +++ b/docs/examples/1.2.x/server-deno/examples/avatars/get-browser.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/server-deno/examples/avatars/get-credit-card.md index 0f449827382..584c580559a 100644 --- a/docs/examples/1.2.x/server-deno/examples/avatars/get-credit-card.md +++ b/docs/examples/1.2.x/server-deno/examples/avatars/get-credit-card.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/avatars/get-favicon.md b/docs/examples/1.2.x/server-deno/examples/avatars/get-favicon.md index f0a539b5fc5..d387cc2b7e7 100644 --- a/docs/examples/1.2.x/server-deno/examples/avatars/get-favicon.md +++ b/docs/examples/1.2.x/server-deno/examples/avatars/get-favicon.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/avatars/get-flag.md b/docs/examples/1.2.x/server-deno/examples/avatars/get-flag.md index c7593aee1e8..03fa737ef2a 100644 --- a/docs/examples/1.2.x/server-deno/examples/avatars/get-flag.md +++ b/docs/examples/1.2.x/server-deno/examples/avatars/get-flag.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/avatars/get-image.md b/docs/examples/1.2.x/server-deno/examples/avatars/get-image.md index 6e86307a5fc..7dd33398b63 100644 --- a/docs/examples/1.2.x/server-deno/examples/avatars/get-image.md +++ b/docs/examples/1.2.x/server-deno/examples/avatars/get-image.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/avatars/get-initials.md b/docs/examples/1.2.x/server-deno/examples/avatars/get-initials.md index 2adba9e971e..4054ecee995 100644 --- a/docs/examples/1.2.x/server-deno/examples/avatars/get-initials.md +++ b/docs/examples/1.2.x/server-deno/examples/avatars/get-initials.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/avatars/get-q-r.md b/docs/examples/1.2.x/server-deno/examples/avatars/get-q-r.md index 2c5faf01122..f239919e05e 100644 --- a/docs/examples/1.2.x/server-deno/examples/avatars/get-q-r.md +++ b/docs/examples/1.2.x/server-deno/examples/avatars/get-q-r.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-boolean-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/create-boolean-attribute.md index 81b66771ff5..3a06b123a0e 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/create-boolean-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-collection.md b/docs/examples/1.2.x/server-deno/examples/databases/create-collection.md index 5d59286e3ca..c65a13e2373 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-collection.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/create-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-datetime-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/create-datetime-attribute.md index c2c4eb81852..ee4fdb92532 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/create-datetime-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-document.md b/docs/examples/1.2.x/server-deno/examples/databases/create-document.md index d38818c164f..b746f3d3f31 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-document.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/create-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-email-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/create-email-attribute.md index 4952625bfcc..918ed10cbcb 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-email-attribute.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/create-email-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-enum-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/create-enum-attribute.md index d00274d616a..79cca97c506 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/create-enum-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-float-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/create-float-attribute.md index c2b056fd1ba..a61df747b35 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-float-attribute.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/create-float-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-index.md b/docs/examples/1.2.x/server-deno/examples/databases/create-index.md index bfde8e3fb56..0d238068aa5 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-index.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/create-index.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-integer-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/create-integer-attribute.md index 2a36f413e5e..fec9ed6835b 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/create-integer-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-ip-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/create-ip-attribute.md index 19180d6ac0e..858450d499b 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/create-ip-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-string-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/create-string-attribute.md index f3b0a369234..82383ccc76c 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-string-attribute.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/create-string-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create-url-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/create-url-attribute.md index 488751adff1..f556724dcaa 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/create-url-attribute.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/create-url-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/create.md b/docs/examples/1.2.x/server-deno/examples/databases/create.md index ea1ebb6460e..d8747a01aed 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/create.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/delete-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/delete-attribute.md index e6fe0823f26..fd3fca65ef7 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/delete-attribute.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/delete-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/delete-collection.md b/docs/examples/1.2.x/server-deno/examples/databases/delete-collection.md index 970602ac286..5f0599b7ec6 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/delete-collection.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/delete-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/delete-document.md b/docs/examples/1.2.x/server-deno/examples/databases/delete-document.md index 1a23e03e273..7c1ed710f40 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/delete-document.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/delete-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/delete-index.md b/docs/examples/1.2.x/server-deno/examples/databases/delete-index.md index 8a6050522a8..c25eb4a7fce 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/delete-index.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/delete-index.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/delete.md b/docs/examples/1.2.x/server-deno/examples/databases/delete.md index b735eccdbed..817dcd0dd00 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/delete.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/get-attribute.md b/docs/examples/1.2.x/server-deno/examples/databases/get-attribute.md index 1ec9957b5eb..cf5aa9ca1e2 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/get-attribute.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/get-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/get-collection.md b/docs/examples/1.2.x/server-deno/examples/databases/get-collection.md index bf471e3b36e..8973f9e8aa7 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/get-collection.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/get-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/get-document.md b/docs/examples/1.2.x/server-deno/examples/databases/get-document.md index a7248d0641d..e02b9c8f4b0 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/get-document.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/get-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/get-index.md b/docs/examples/1.2.x/server-deno/examples/databases/get-index.md index c1fe00cb65e..443b06883c5 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/get-index.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/get-index.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/get.md b/docs/examples/1.2.x/server-deno/examples/databases/get.md index 46df3aad225..a8ea62a5520 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/get.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/list-attributes.md b/docs/examples/1.2.x/server-deno/examples/databases/list-attributes.md index f2b21141b3d..7ee93a5ac09 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/list-attributes.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/list-attributes.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/list-collections.md b/docs/examples/1.2.x/server-deno/examples/databases/list-collections.md index 83e4ee951fd..7cdf106ab1c 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/list-collections.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/list-collections.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/list-documents.md b/docs/examples/1.2.x/server-deno/examples/databases/list-documents.md index c7db17efb5f..9c3cd7097e2 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/list-documents.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/list-documents.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/list-indexes.md b/docs/examples/1.2.x/server-deno/examples/databases/list-indexes.md index 69c412b99db..8fbba4a323b 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/list-indexes.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/list-indexes.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/list.md b/docs/examples/1.2.x/server-deno/examples/databases/list.md index 8bb75110ec8..84ec9927ac2 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/list.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/update-collection.md b/docs/examples/1.2.x/server-deno/examples/databases/update-collection.md index f81f46e7f48..234b4c68cf7 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/update-collection.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/update-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/update-document.md b/docs/examples/1.2.x/server-deno/examples/databases/update-document.md index 9964fdb6eb5..78c984aae41 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/update-document.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/update-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/databases/update.md b/docs/examples/1.2.x/server-deno/examples/databases/update.md index 64886a697bc..c60c2499730 100644 --- a/docs/examples/1.2.x/server-deno/examples/databases/update.md +++ b/docs/examples/1.2.x/server-deno/examples/databases/update.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/create-build.md b/docs/examples/1.2.x/server-deno/examples/functions/create-build.md index 28d10105e39..ffa1906b0a8 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/create-build.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/create-build.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/create-deployment.md b/docs/examples/1.2.x/server-deno/examples/functions/create-deployment.md index 005644b62e4..e663cf473a4 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/create-deployment.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/create-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/create-execution.md b/docs/examples/1.2.x/server-deno/examples/functions/create-execution.md index 6ec920ef9db..a24cc942b51 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/create-execution.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/create-execution.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/create-variable.md b/docs/examples/1.2.x/server-deno/examples/functions/create-variable.md index 375ef8b7a6c..6de4953eec8 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/create-variable.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/create-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/create.md b/docs/examples/1.2.x/server-deno/examples/functions/create.md index 423a347f512..0964bce1806 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/create.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/delete-deployment.md b/docs/examples/1.2.x/server-deno/examples/functions/delete-deployment.md index 7b6468bb064..b1f280fb13e 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/delete-deployment.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/delete-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/delete-variable.md b/docs/examples/1.2.x/server-deno/examples/functions/delete-variable.md index 16bf385a4c9..012f353540b 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/delete-variable.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/delete-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/delete.md b/docs/examples/1.2.x/server-deno/examples/functions/delete.md index 48ec374bf29..ac801878c81 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/delete.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/get-deployment.md b/docs/examples/1.2.x/server-deno/examples/functions/get-deployment.md index 854f3897d94..eef2d306ecb 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/get-deployment.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/get-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/get-execution.md b/docs/examples/1.2.x/server-deno/examples/functions/get-execution.md index 42bcdfbfdfe..cfb4ef09dcb 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/get-execution.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/get-execution.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/get-variable.md b/docs/examples/1.2.x/server-deno/examples/functions/get-variable.md index 2b4190e0a66..9881efcb033 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/get-variable.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/get-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/get.md b/docs/examples/1.2.x/server-deno/examples/functions/get.md index 388958232aa..f511f594524 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/get.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/list-deployments.md b/docs/examples/1.2.x/server-deno/examples/functions/list-deployments.md index e84bb9cc093..cdd0ae775a5 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/list-deployments.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/list-deployments.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/list-executions.md b/docs/examples/1.2.x/server-deno/examples/functions/list-executions.md index aadd19f1cee..fcc47f2dcda 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/list-executions.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/list-executions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/list-runtimes.md b/docs/examples/1.2.x/server-deno/examples/functions/list-runtimes.md index 6fc7570b3a6..b45ec8f2232 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/list-runtimes.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/list-runtimes.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/list-variables.md b/docs/examples/1.2.x/server-deno/examples/functions/list-variables.md index 44a9828a67a..f9f241fee3b 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/list-variables.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/list-variables.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/list.md b/docs/examples/1.2.x/server-deno/examples/functions/list.md index 7c82760a397..cadecd7fc18 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/list.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/update-deployment.md b/docs/examples/1.2.x/server-deno/examples/functions/update-deployment.md index 94be560a2d4..4d1bda63635 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/update-deployment.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/update-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/update-variable.md b/docs/examples/1.2.x/server-deno/examples/functions/update-variable.md index 1a318f1ebae..bcdde06c9a9 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/update-variable.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/update-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/functions/update.md b/docs/examples/1.2.x/server-deno/examples/functions/update.md index 84316f1de7c..4c527d89705 100644 --- a/docs/examples/1.2.x/server-deno/examples/functions/update.md +++ b/docs/examples/1.2.x/server-deno/examples/functions/update.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/graphql/63a08ed7b8f61.md b/docs/examples/1.2.x/server-deno/examples/graphql/63a08ed7b8f61.md index cf6e477fc96..8d13e30ca60 100644 --- a/docs/examples/1.2.x/server-deno/examples/graphql/63a08ed7b8f61.md +++ b/docs/examples/1.2.x/server-deno/examples/graphql/63a08ed7b8f61.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/graphql/get.md b/docs/examples/1.2.x/server-deno/examples/graphql/get.md index 2cc251ccf30..f115ef7d5fb 100644 --- a/docs/examples/1.2.x/server-deno/examples/graphql/get.md +++ b/docs/examples/1.2.x/server-deno/examples/graphql/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/graphql/mutation.md b/docs/examples/1.2.x/server-deno/examples/graphql/mutation.md index 87beeabce65..f95cdc771d4 100644 --- a/docs/examples/1.2.x/server-deno/examples/graphql/mutation.md +++ b/docs/examples/1.2.x/server-deno/examples/graphql/mutation.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/graphql/query.md b/docs/examples/1.2.x/server-deno/examples/graphql/query.md index d2eec0a8dbf..27930bde4d6 100644 --- a/docs/examples/1.2.x/server-deno/examples/graphql/query.md +++ b/docs/examples/1.2.x/server-deno/examples/graphql/query.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/health/get-antivirus.md b/docs/examples/1.2.x/server-deno/examples/health/get-antivirus.md index 8d51808536f..7bee35a1276 100644 --- a/docs/examples/1.2.x/server-deno/examples/health/get-antivirus.md +++ b/docs/examples/1.2.x/server-deno/examples/health/get-antivirus.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/health/get-cache.md b/docs/examples/1.2.x/server-deno/examples/health/get-cache.md index cafc3018c0c..12dfbb1b2d1 100644 --- a/docs/examples/1.2.x/server-deno/examples/health/get-cache.md +++ b/docs/examples/1.2.x/server-deno/examples/health/get-cache.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/health/get-d-b.md b/docs/examples/1.2.x/server-deno/examples/health/get-d-b.md index a000535051f..73ac2931fb8 100644 --- a/docs/examples/1.2.x/server-deno/examples/health/get-d-b.md +++ b/docs/examples/1.2.x/server-deno/examples/health/get-d-b.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/health/get-queue-certificates.md b/docs/examples/1.2.x/server-deno/examples/health/get-queue-certificates.md index 49dab6b2e6f..ea90355ec9f 100644 --- a/docs/examples/1.2.x/server-deno/examples/health/get-queue-certificates.md +++ b/docs/examples/1.2.x/server-deno/examples/health/get-queue-certificates.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/health/get-queue-functions.md b/docs/examples/1.2.x/server-deno/examples/health/get-queue-functions.md index 74f458b9fed..e95a6020595 100644 --- a/docs/examples/1.2.x/server-deno/examples/health/get-queue-functions.md +++ b/docs/examples/1.2.x/server-deno/examples/health/get-queue-functions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/health/get-queue-logs.md b/docs/examples/1.2.x/server-deno/examples/health/get-queue-logs.md index 98948b9de6f..457c2689eca 100644 --- a/docs/examples/1.2.x/server-deno/examples/health/get-queue-logs.md +++ b/docs/examples/1.2.x/server-deno/examples/health/get-queue-logs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/health/get-queue-webhooks.md b/docs/examples/1.2.x/server-deno/examples/health/get-queue-webhooks.md index 7b45c189ccd..87af736da84 100644 --- a/docs/examples/1.2.x/server-deno/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.2.x/server-deno/examples/health/get-queue-webhooks.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/health/get-storage-local.md b/docs/examples/1.2.x/server-deno/examples/health/get-storage-local.md index 4c45d89acae..31f708e88a1 100644 --- a/docs/examples/1.2.x/server-deno/examples/health/get-storage-local.md +++ b/docs/examples/1.2.x/server-deno/examples/health/get-storage-local.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/health/get-time.md b/docs/examples/1.2.x/server-deno/examples/health/get-time.md index 6a66a10a053..69c73045a95 100644 --- a/docs/examples/1.2.x/server-deno/examples/health/get-time.md +++ b/docs/examples/1.2.x/server-deno/examples/health/get-time.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/health/get.md b/docs/examples/1.2.x/server-deno/examples/health/get.md index 0b9af9dd15b..6afe71a3152 100644 --- a/docs/examples/1.2.x/server-deno/examples/health/get.md +++ b/docs/examples/1.2.x/server-deno/examples/health/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/locale/get.md b/docs/examples/1.2.x/server-deno/examples/locale/get.md index 22b9a626550..f9f015cfb94 100644 --- a/docs/examples/1.2.x/server-deno/examples/locale/get.md +++ b/docs/examples/1.2.x/server-deno/examples/locale/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/locale/list-continents.md b/docs/examples/1.2.x/server-deno/examples/locale/list-continents.md index bd69f43a614..dd42b1957f1 100644 --- a/docs/examples/1.2.x/server-deno/examples/locale/list-continents.md +++ b/docs/examples/1.2.x/server-deno/examples/locale/list-continents.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/server-deno/examples/locale/list-countries-e-u.md index 3d3b7b492ac..597edd6f920 100644 --- a/docs/examples/1.2.x/server-deno/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.2.x/server-deno/examples/locale/list-countries-e-u.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/server-deno/examples/locale/list-countries-phones.md index bc9e1754ad2..f3e27aa1523 100644 --- a/docs/examples/1.2.x/server-deno/examples/locale/list-countries-phones.md +++ b/docs/examples/1.2.x/server-deno/examples/locale/list-countries-phones.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/locale/list-countries.md b/docs/examples/1.2.x/server-deno/examples/locale/list-countries.md index 0790270371b..3d65b3c71cf 100644 --- a/docs/examples/1.2.x/server-deno/examples/locale/list-countries.md +++ b/docs/examples/1.2.x/server-deno/examples/locale/list-countries.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/locale/list-currencies.md b/docs/examples/1.2.x/server-deno/examples/locale/list-currencies.md index e040312fefa..ae0fad6e0b4 100644 --- a/docs/examples/1.2.x/server-deno/examples/locale/list-currencies.md +++ b/docs/examples/1.2.x/server-deno/examples/locale/list-currencies.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/locale/list-languages.md b/docs/examples/1.2.x/server-deno/examples/locale/list-languages.md index be5af4d50ca..792a0e8a437 100644 --- a/docs/examples/1.2.x/server-deno/examples/locale/list-languages.md +++ b/docs/examples/1.2.x/server-deno/examples/locale/list-languages.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/storage/create-bucket.md b/docs/examples/1.2.x/server-deno/examples/storage/create-bucket.md index a25211a1c71..4a2460216bd 100644 --- a/docs/examples/1.2.x/server-deno/examples/storage/create-bucket.md +++ b/docs/examples/1.2.x/server-deno/examples/storage/create-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/storage/create-file.md b/docs/examples/1.2.x/server-deno/examples/storage/create-file.md index c0fe4930b97..e2b9edaa57b 100644 --- a/docs/examples/1.2.x/server-deno/examples/storage/create-file.md +++ b/docs/examples/1.2.x/server-deno/examples/storage/create-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/storage/delete-bucket.md b/docs/examples/1.2.x/server-deno/examples/storage/delete-bucket.md index d468428141d..f5c818046eb 100644 --- a/docs/examples/1.2.x/server-deno/examples/storage/delete-bucket.md +++ b/docs/examples/1.2.x/server-deno/examples/storage/delete-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/storage/delete-file.md b/docs/examples/1.2.x/server-deno/examples/storage/delete-file.md index e86da1763b4..61589ed878b 100644 --- a/docs/examples/1.2.x/server-deno/examples/storage/delete-file.md +++ b/docs/examples/1.2.x/server-deno/examples/storage/delete-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/storage/get-bucket.md b/docs/examples/1.2.x/server-deno/examples/storage/get-bucket.md index 35d22b941a8..34391b42c20 100644 --- a/docs/examples/1.2.x/server-deno/examples/storage/get-bucket.md +++ b/docs/examples/1.2.x/server-deno/examples/storage/get-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/storage/get-file-download.md b/docs/examples/1.2.x/server-deno/examples/storage/get-file-download.md index 206b860e258..9f2927e0546 100644 --- a/docs/examples/1.2.x/server-deno/examples/storage/get-file-download.md +++ b/docs/examples/1.2.x/server-deno/examples/storage/get-file-download.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/storage/get-file-preview.md b/docs/examples/1.2.x/server-deno/examples/storage/get-file-preview.md index 4815c6b40b0..903aa592708 100644 --- a/docs/examples/1.2.x/server-deno/examples/storage/get-file-preview.md +++ b/docs/examples/1.2.x/server-deno/examples/storage/get-file-preview.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/storage/get-file-view.md b/docs/examples/1.2.x/server-deno/examples/storage/get-file-view.md index 11ca8fdc6c1..27d20ab4a68 100644 --- a/docs/examples/1.2.x/server-deno/examples/storage/get-file-view.md +++ b/docs/examples/1.2.x/server-deno/examples/storage/get-file-view.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/storage/get-file.md b/docs/examples/1.2.x/server-deno/examples/storage/get-file.md index 04aa43a5b1b..c6ec55a1e66 100644 --- a/docs/examples/1.2.x/server-deno/examples/storage/get-file.md +++ b/docs/examples/1.2.x/server-deno/examples/storage/get-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/storage/list-buckets.md b/docs/examples/1.2.x/server-deno/examples/storage/list-buckets.md index 0c31feffe35..7cae11354fd 100644 --- a/docs/examples/1.2.x/server-deno/examples/storage/list-buckets.md +++ b/docs/examples/1.2.x/server-deno/examples/storage/list-buckets.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/storage/list-files.md b/docs/examples/1.2.x/server-deno/examples/storage/list-files.md index 00178aa874a..d5de10df59f 100644 --- a/docs/examples/1.2.x/server-deno/examples/storage/list-files.md +++ b/docs/examples/1.2.x/server-deno/examples/storage/list-files.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/storage/update-bucket.md b/docs/examples/1.2.x/server-deno/examples/storage/update-bucket.md index aca746145e4..d9c554bffe1 100644 --- a/docs/examples/1.2.x/server-deno/examples/storage/update-bucket.md +++ b/docs/examples/1.2.x/server-deno/examples/storage/update-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/storage/update-file.md b/docs/examples/1.2.x/server-deno/examples/storage/update-file.md index 79f31c3b030..a106b4b5052 100644 --- a/docs/examples/1.2.x/server-deno/examples/storage/update-file.md +++ b/docs/examples/1.2.x/server-deno/examples/storage/update-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/teams/create-membership.md b/docs/examples/1.2.x/server-deno/examples/teams/create-membership.md index e54377281e9..85762a26deb 100644 --- a/docs/examples/1.2.x/server-deno/examples/teams/create-membership.md +++ b/docs/examples/1.2.x/server-deno/examples/teams/create-membership.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/teams/create.md b/docs/examples/1.2.x/server-deno/examples/teams/create.md index 8272adb4d0d..b5ad42710cd 100644 --- a/docs/examples/1.2.x/server-deno/examples/teams/create.md +++ b/docs/examples/1.2.x/server-deno/examples/teams/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/teams/delete-membership.md b/docs/examples/1.2.x/server-deno/examples/teams/delete-membership.md index 402deb0b8a8..dd73e8ae870 100644 --- a/docs/examples/1.2.x/server-deno/examples/teams/delete-membership.md +++ b/docs/examples/1.2.x/server-deno/examples/teams/delete-membership.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/teams/delete.md b/docs/examples/1.2.x/server-deno/examples/teams/delete.md index 3b30934beab..5f859e0cfce 100644 --- a/docs/examples/1.2.x/server-deno/examples/teams/delete.md +++ b/docs/examples/1.2.x/server-deno/examples/teams/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/teams/get-membership.md b/docs/examples/1.2.x/server-deno/examples/teams/get-membership.md index 7d50599b67d..8289e1fbd40 100644 --- a/docs/examples/1.2.x/server-deno/examples/teams/get-membership.md +++ b/docs/examples/1.2.x/server-deno/examples/teams/get-membership.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/teams/get.md b/docs/examples/1.2.x/server-deno/examples/teams/get.md index 44ecdab949a..e18f9e580d4 100644 --- a/docs/examples/1.2.x/server-deno/examples/teams/get.md +++ b/docs/examples/1.2.x/server-deno/examples/teams/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/teams/list-memberships.md b/docs/examples/1.2.x/server-deno/examples/teams/list-memberships.md index 7d730021a6a..ca062ddb294 100644 --- a/docs/examples/1.2.x/server-deno/examples/teams/list-memberships.md +++ b/docs/examples/1.2.x/server-deno/examples/teams/list-memberships.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/teams/list.md b/docs/examples/1.2.x/server-deno/examples/teams/list.md index c45ffdc0666..a76660063de 100644 --- a/docs/examples/1.2.x/server-deno/examples/teams/list.md +++ b/docs/examples/1.2.x/server-deno/examples/teams/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/server-deno/examples/teams/update-membership-roles.md index 9f2dad98c6b..050f7dbbd79 100644 --- a/docs/examples/1.2.x/server-deno/examples/teams/update-membership-roles.md +++ b/docs/examples/1.2.x/server-deno/examples/teams/update-membership-roles.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/teams/update-membership-status.md b/docs/examples/1.2.x/server-deno/examples/teams/update-membership-status.md index 7bb57d8974e..2ac6332372b 100644 --- a/docs/examples/1.2.x/server-deno/examples/teams/update-membership-status.md +++ b/docs/examples/1.2.x/server-deno/examples/teams/update-membership-status.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-deno/examples/teams/update.md b/docs/examples/1.2.x/server-deno/examples/teams/update.md index b17708a9c48..590c6e4dcb4 100644 --- a/docs/examples/1.2.x/server-deno/examples/teams/update.md +++ b/docs/examples/1.2.x/server-deno/examples/teams/update.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/create-argon2user.md b/docs/examples/1.2.x/server-deno/examples/users/create-argon2user.md index e55b644b62c..c9d3e68bcda 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/create-argon2user.md +++ b/docs/examples/1.2.x/server-deno/examples/users/create-argon2user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/create-bcrypt-user.md b/docs/examples/1.2.x/server-deno/examples/users/create-bcrypt-user.md index 325fbe46d56..a3cc0ddc7dc 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.2.x/server-deno/examples/users/create-bcrypt-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/create-m-d5user.md b/docs/examples/1.2.x/server-deno/examples/users/create-m-d5user.md index 8892688594d..387fd97da01 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/create-m-d5user.md +++ b/docs/examples/1.2.x/server-deno/examples/users/create-m-d5user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/create-p-h-pass-user.md b/docs/examples/1.2.x/server-deno/examples/users/create-p-h-pass-user.md index d7a3428fd54..1e02fba5530 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.2.x/server-deno/examples/users/create-p-h-pass-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/create-s-h-a-user.md b/docs/examples/1.2.x/server-deno/examples/users/create-s-h-a-user.md index c3ade982efc..82cf7ea8a45 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.2.x/server-deno/examples/users/create-s-h-a-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/server-deno/examples/users/create-scrypt-modified-user.md index 8039a970c22..d06e6d3128c 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.2.x/server-deno/examples/users/create-scrypt-modified-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/create-scrypt-user.md b/docs/examples/1.2.x/server-deno/examples/users/create-scrypt-user.md index 9889855e7c7..6f9656ce5e1 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/create-scrypt-user.md +++ b/docs/examples/1.2.x/server-deno/examples/users/create-scrypt-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/create.md b/docs/examples/1.2.x/server-deno/examples/users/create.md index c56f8d8f88d..1338a4e59fc 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/create.md +++ b/docs/examples/1.2.x/server-deno/examples/users/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/delete-session.md b/docs/examples/1.2.x/server-deno/examples/users/delete-session.md index e4ea45ba737..8d6e862bdb4 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/delete-session.md +++ b/docs/examples/1.2.x/server-deno/examples/users/delete-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/delete-sessions.md b/docs/examples/1.2.x/server-deno/examples/users/delete-sessions.md index 0e12d6dacfe..894084dd90a 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/delete-sessions.md +++ b/docs/examples/1.2.x/server-deno/examples/users/delete-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/delete.md b/docs/examples/1.2.x/server-deno/examples/users/delete.md index f0223024a38..e291fa1cf10 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/delete.md +++ b/docs/examples/1.2.x/server-deno/examples/users/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/get-prefs.md b/docs/examples/1.2.x/server-deno/examples/users/get-prefs.md index 63953f9d246..98d6f6aa625 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/get-prefs.md +++ b/docs/examples/1.2.x/server-deno/examples/users/get-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/get.md b/docs/examples/1.2.x/server-deno/examples/users/get.md index c9300c5060c..77c27630baa 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/get.md +++ b/docs/examples/1.2.x/server-deno/examples/users/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/list-logs.md b/docs/examples/1.2.x/server-deno/examples/users/list-logs.md index 7d0841fc774..fe4103138db 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/list-logs.md +++ b/docs/examples/1.2.x/server-deno/examples/users/list-logs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/list-memberships.md b/docs/examples/1.2.x/server-deno/examples/users/list-memberships.md index 74f2fb7f1e2..592385fc047 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/list-memberships.md +++ b/docs/examples/1.2.x/server-deno/examples/users/list-memberships.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/list-sessions.md b/docs/examples/1.2.x/server-deno/examples/users/list-sessions.md index 1aa4ca7d788..2117b04927f 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/list-sessions.md +++ b/docs/examples/1.2.x/server-deno/examples/users/list-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/list.md b/docs/examples/1.2.x/server-deno/examples/users/list.md index 369ccd7b297..a092136f5ad 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/list.md +++ b/docs/examples/1.2.x/server-deno/examples/users/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/update-email-verification.md b/docs/examples/1.2.x/server-deno/examples/users/update-email-verification.md index 146cea50278..41a3250abb5 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/update-email-verification.md +++ b/docs/examples/1.2.x/server-deno/examples/users/update-email-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/update-email.md b/docs/examples/1.2.x/server-deno/examples/users/update-email.md index bd7f0ffbd85..428ab37b854 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/update-email.md +++ b/docs/examples/1.2.x/server-deno/examples/users/update-email.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/update-name.md b/docs/examples/1.2.x/server-deno/examples/users/update-name.md index 071c948201e..1b0918b5a58 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/update-name.md +++ b/docs/examples/1.2.x/server-deno/examples/users/update-name.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/update-password.md b/docs/examples/1.2.x/server-deno/examples/users/update-password.md index 3c896fae5a3..5852c340aad 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/update-password.md +++ b/docs/examples/1.2.x/server-deno/examples/users/update-password.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/update-phone-verification.md b/docs/examples/1.2.x/server-deno/examples/users/update-phone-verification.md index 293f876152d..3241b4c4306 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/update-phone-verification.md +++ b/docs/examples/1.2.x/server-deno/examples/users/update-phone-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/update-phone.md b/docs/examples/1.2.x/server-deno/examples/users/update-phone.md index e634f59719d..b41c9bc15fb 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/update-phone.md +++ b/docs/examples/1.2.x/server-deno/examples/users/update-phone.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/update-prefs.md b/docs/examples/1.2.x/server-deno/examples/users/update-prefs.md index 248fdb10abf..c794bc9d6c3 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/update-prefs.md +++ b/docs/examples/1.2.x/server-deno/examples/users/update-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-deno/examples/users/update-status.md b/docs/examples/1.2.x/server-deno/examples/users/update-status.md index 2f142596fd5..80355e1b391 100644 --- a/docs/examples/1.2.x/server-deno/examples/users/update-status.md +++ b/docs/examples/1.2.x/server-deno/examples/users/update-status.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-kotlin/java/account/create-phone-verification.md b/docs/examples/1.2.x/server-kotlin/java/account/create-phone-verification.md index 013b357f880..86416e08aaa 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/create-phone-verification.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/create-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/create-recovery.md b/docs/examples/1.2.x/server-kotlin/java/account/create-recovery.md index 284efc8107b..7f1a21b9dc8 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/create-recovery.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/create-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/create-verification.md b/docs/examples/1.2.x/server-kotlin/java/account/create-verification.md index 0280b4b15b1..c7911643c19 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/create-verification.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/create-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/delete-session.md b/docs/examples/1.2.x/server-kotlin/java/account/delete-session.md index 2cd069eaa13..27ce537ecd6 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/delete-session.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/delete-sessions.md b/docs/examples/1.2.x/server-kotlin/java/account/delete-sessions.md index 7a9999d3985..cd790a3ac73 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/delete-sessions.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/get-prefs.md b/docs/examples/1.2.x/server-kotlin/java/account/get-prefs.md index 3f6cd20c9dd..609707c4071 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/get-prefs.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/get-session.md b/docs/examples/1.2.x/server-kotlin/java/account/get-session.md index 17229e29de2..efe4fabba7d 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/get-session.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/get-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/get.md b/docs/examples/1.2.x/server-kotlin/java/account/get.md index 80a4988af5b..a79e0279408 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/get.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/list-logs.md b/docs/examples/1.2.x/server-kotlin/java/account/list-logs.md index 971ac866e12..cfb15dccfca 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/list-logs.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/list-sessions.md b/docs/examples/1.2.x/server-kotlin/java/account/list-sessions.md index 9d7e6308e51..f850618692a 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/list-sessions.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/update-email.md b/docs/examples/1.2.x/server-kotlin/java/account/update-email.md index 67ab31ad88b..4e09bdf1a97 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/update-email.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/update-name.md b/docs/examples/1.2.x/server-kotlin/java/account/update-name.md index 6900f121746..6a5a1711eb8 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/update-name.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/update-password.md b/docs/examples/1.2.x/server-kotlin/java/account/update-password.md index 945ad001284..209fdd2e7de 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/update-password.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/update-phone-verification.md b/docs/examples/1.2.x/server-kotlin/java/account/update-phone-verification.md index 8c3c9756de6..0c1d4407633 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/update-phone-verification.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/update-phone.md b/docs/examples/1.2.x/server-kotlin/java/account/update-phone.md index 9365a0f0b9b..d51cc4497e3 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/update-phone.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/update-prefs.md b/docs/examples/1.2.x/server-kotlin/java/account/update-prefs.md index 24a36258345..2c7e22f25fd 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/update-prefs.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/update-recovery.md b/docs/examples/1.2.x/server-kotlin/java/account/update-recovery.md index bc3251d1602..ffbfd402b94 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/update-recovery.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/update-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/update-session.md b/docs/examples/1.2.x/server-kotlin/java/account/update-session.md index 62d77e1366f..ec83c2d357e 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/update-session.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/update-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/update-status.md b/docs/examples/1.2.x/server-kotlin/java/account/update-status.md index 4af2cf1083b..964ce9c5b0f 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/update-status.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/account/update-verification.md b/docs/examples/1.2.x/server-kotlin/java/account/update-verification.md index 2190daf1b7d..76780f4ac60 100644 --- a/docs/examples/1.2.x/server-kotlin/java/account/update-verification.md +++ b/docs/examples/1.2.x/server-kotlin/java/account/update-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/avatars/get-browser.md b/docs/examples/1.2.x/server-kotlin/java/avatars/get-browser.md index 42e8e57ee11..0682288cfe9 100644 --- a/docs/examples/1.2.x/server-kotlin/java/avatars/get-browser.md +++ b/docs/examples/1.2.x/server-kotlin/java/avatars/get-browser.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/avatars/get-credit-card.md b/docs/examples/1.2.x/server-kotlin/java/avatars/get-credit-card.md index 5e3b32b527f..f821a7638c9 100644 --- a/docs/examples/1.2.x/server-kotlin/java/avatars/get-credit-card.md +++ b/docs/examples/1.2.x/server-kotlin/java/avatars/get-credit-card.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/avatars/get-favicon.md b/docs/examples/1.2.x/server-kotlin/java/avatars/get-favicon.md index 109f88f7193..95b91adb90b 100644 --- a/docs/examples/1.2.x/server-kotlin/java/avatars/get-favicon.md +++ b/docs/examples/1.2.x/server-kotlin/java/avatars/get-favicon.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/avatars/get-flag.md b/docs/examples/1.2.x/server-kotlin/java/avatars/get-flag.md index 6ad820ae7a9..f0e2cda52db 100644 --- a/docs/examples/1.2.x/server-kotlin/java/avatars/get-flag.md +++ b/docs/examples/1.2.x/server-kotlin/java/avatars/get-flag.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/avatars/get-image.md b/docs/examples/1.2.x/server-kotlin/java/avatars/get-image.md index 26805449885..765a8024e50 100644 --- a/docs/examples/1.2.x/server-kotlin/java/avatars/get-image.md +++ b/docs/examples/1.2.x/server-kotlin/java/avatars/get-image.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/avatars/get-initials.md b/docs/examples/1.2.x/server-kotlin/java/avatars/get-initials.md index 8a86e7a01bd..8cbcee1497f 100644 --- a/docs/examples/1.2.x/server-kotlin/java/avatars/get-initials.md +++ b/docs/examples/1.2.x/server-kotlin/java/avatars/get-initials.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/avatars/get-q-r.md b/docs/examples/1.2.x/server-kotlin/java/avatars/get-q-r.md index c57d70a8409..2d7e1332817 100644 --- a/docs/examples/1.2.x/server-kotlin/java/avatars/get-q-r.md +++ b/docs/examples/1.2.x/server-kotlin/java/avatars/get-q-r.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-boolean-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-boolean-attribute.md index 6e79f0a917c..c5d83a05ff4 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-boolean-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/create-boolean-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-collection.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-collection.md index 96b5d9b9743..77b5c9f7b72 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-collection.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/create-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-datetime-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-datetime-attribute.md index 307a8ffb653..c6d3c6f229f 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-datetime-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/create-datetime-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-document.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-document.md index 029c3f7a253..ede98c60462 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-document.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/create-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-email-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-email-attribute.md index 8774c550b78..0200f11e7d1 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-email-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/create-email-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-enum-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-enum-attribute.md index e2cf6a28df3..c4ae2933a4f 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-enum-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/create-enum-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-float-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-float-attribute.md index 0fba6ac073a..ceede982b06 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-float-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/create-float-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-index.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-index.md index 5dbdce895b8..44eba1df018 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-index.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/create-index.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-integer-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-integer-attribute.md index 5446862fdbc..b0d8028a623 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-integer-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/create-integer-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-ip-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-ip-attribute.md index fe37da96d57..a8ade8a4128 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-ip-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/create-ip-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-string-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-string-attribute.md index a9b19160669..1a767be1d89 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-string-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/create-string-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create-url-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/create-url-attribute.md index 9c504d862bf..c1bee6e0ba3 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create-url-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/create-url-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/create.md b/docs/examples/1.2.x/server-kotlin/java/databases/create.md index cd3cb34db7f..e82a65c08af 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/create.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/delete-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/delete-attribute.md index 68aeecd93be..d58ba87b289 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/delete-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/delete-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/delete-collection.md b/docs/examples/1.2.x/server-kotlin/java/databases/delete-collection.md index cd328b48a60..370781bea90 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/delete-collection.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/delete-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/delete-document.md b/docs/examples/1.2.x/server-kotlin/java/databases/delete-document.md index 4f4c8495c32..46b9edf2f62 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/delete-document.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/delete-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/delete-index.md b/docs/examples/1.2.x/server-kotlin/java/databases/delete-index.md index 640bd0fc312..d633a8a2aed 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/delete-index.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/delete-index.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/delete.md b/docs/examples/1.2.x/server-kotlin/java/databases/delete.md index 897a450fa41..a7fad611e05 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/delete.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/get-attribute.md b/docs/examples/1.2.x/server-kotlin/java/databases/get-attribute.md index 79c1d2b2add..fcea6fefb99 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/get-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/get-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/get-collection.md b/docs/examples/1.2.x/server-kotlin/java/databases/get-collection.md index 3ecfa0ca802..ce0eea0cb39 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/get-collection.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/get-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/get-document.md b/docs/examples/1.2.x/server-kotlin/java/databases/get-document.md index 0d6acc2c4c5..b95cd6cf452 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/get-document.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/get-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/get-index.md b/docs/examples/1.2.x/server-kotlin/java/databases/get-index.md index 2bf036a0575..753fef468f1 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/get-index.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/get-index.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/get.md b/docs/examples/1.2.x/server-kotlin/java/databases/get.md index 066ec4d2626..d4eeb222fd7 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/get.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/list-attributes.md b/docs/examples/1.2.x/server-kotlin/java/databases/list-attributes.md index aafeca4a832..1d75e81a433 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/list-attributes.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/list-attributes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/list-collections.md b/docs/examples/1.2.x/server-kotlin/java/databases/list-collections.md index 67c343f38a7..639a45bc2e0 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/list-collections.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/list-collections.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/list-documents.md b/docs/examples/1.2.x/server-kotlin/java/databases/list-documents.md index 7a4a1b70b2a..56de64ca4c6 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/list-documents.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/list-documents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/list-indexes.md b/docs/examples/1.2.x/server-kotlin/java/databases/list-indexes.md index 1f5cf0c30f6..7ef4b6d4342 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/list-indexes.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/list-indexes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/list.md b/docs/examples/1.2.x/server-kotlin/java/databases/list.md index 04f81867f0e..b46abf235c8 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/list.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/update-collection.md b/docs/examples/1.2.x/server-kotlin/java/databases/update-collection.md index 3f25c5047e9..831193fbf54 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/update-collection.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/update-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/update-document.md b/docs/examples/1.2.x/server-kotlin/java/databases/update-document.md index e9a596d3d42..39755884660 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/update-document.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/update-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/databases/update.md b/docs/examples/1.2.x/server-kotlin/java/databases/update.md index 3f4b4e19338..e5bf2ed66c0 100644 --- a/docs/examples/1.2.x/server-kotlin/java/databases/update.md +++ b/docs/examples/1.2.x/server-kotlin/java/databases/update.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/create-build.md b/docs/examples/1.2.x/server-kotlin/java/functions/create-build.md index 10c8d2fc801..5a571f76e8d 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/create-build.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/create-build.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/create-deployment.md b/docs/examples/1.2.x/server-kotlin/java/functions/create-deployment.md index ed79e4ecb4e..6e11beaf475 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/create-deployment.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/create-deployment.md @@ -4,7 +4,7 @@ import io.appwrite.models.InputFile; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/create-execution.md b/docs/examples/1.2.x/server-kotlin/java/functions/create-execution.md index 315f57d5cb5..d53744f70a7 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/create-execution.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/create-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/create-variable.md b/docs/examples/1.2.x/server-kotlin/java/functions/create-variable.md index 5e9c5a66bd9..3ce9c2d944d 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/create-variable.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/create-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/create.md b/docs/examples/1.2.x/server-kotlin/java/functions/create.md index 8603a47aad5..e0402a2a3ae 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/create.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/delete-deployment.md b/docs/examples/1.2.x/server-kotlin/java/functions/delete-deployment.md index 703dce63aa8..2da778a970d 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/delete-deployment.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/delete-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/delete-variable.md b/docs/examples/1.2.x/server-kotlin/java/functions/delete-variable.md index d36615092da..cbdfabc97b2 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/delete-variable.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/delete-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/delete.md b/docs/examples/1.2.x/server-kotlin/java/functions/delete.md index 8f398964115..2f4eb011f11 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/delete.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/get-deployment.md b/docs/examples/1.2.x/server-kotlin/java/functions/get-deployment.md index 5b539d28016..54bf0c461aa 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/get-deployment.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/get-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/get-execution.md b/docs/examples/1.2.x/server-kotlin/java/functions/get-execution.md index b1ff9485e82..00bb0a1ab85 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/get-execution.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/get-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/get-variable.md b/docs/examples/1.2.x/server-kotlin/java/functions/get-variable.md index 2be25a5c73d..01a05370645 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/get-variable.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/get-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/get.md b/docs/examples/1.2.x/server-kotlin/java/functions/get.md index 8ad5ea3522b..f6eb035a3ee 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/get.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/list-deployments.md b/docs/examples/1.2.x/server-kotlin/java/functions/list-deployments.md index 61f48c88c37..c5a81048ec7 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/list-deployments.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/list-deployments.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/list-executions.md b/docs/examples/1.2.x/server-kotlin/java/functions/list-executions.md index 392e9c82c56..f4db7948dfa 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/list-executions.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/list-executions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/list-runtimes.md b/docs/examples/1.2.x/server-kotlin/java/functions/list-runtimes.md index 46d04463102..968f019f025 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/list-runtimes.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/list-runtimes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/list-variables.md b/docs/examples/1.2.x/server-kotlin/java/functions/list-variables.md index 4fa47e8c57e..ad6d522b8f1 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/list-variables.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/list-variables.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/list.md b/docs/examples/1.2.x/server-kotlin/java/functions/list.md index 4224cf52b78..253cbafaa1c 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/list.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/update-deployment.md b/docs/examples/1.2.x/server-kotlin/java/functions/update-deployment.md index 2af0637379f..9e1db350714 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/update-deployment.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/update-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/update-variable.md b/docs/examples/1.2.x/server-kotlin/java/functions/update-variable.md index f30bbf8e4e3..c841731b533 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/update-variable.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/update-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/functions/update.md b/docs/examples/1.2.x/server-kotlin/java/functions/update.md index 39dc372b614..1f9ed3ec5b2 100644 --- a/docs/examples/1.2.x/server-kotlin/java/functions/update.md +++ b/docs/examples/1.2.x/server-kotlin/java/functions/update.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/graphql/63a08ed7b8f61.md b/docs/examples/1.2.x/server-kotlin/java/graphql/63a08ed7b8f61.md index b2d941d852a..d81c9e5f7c7 100644 --- a/docs/examples/1.2.x/server-kotlin/java/graphql/63a08ed7b8f61.md +++ b/docs/examples/1.2.x/server-kotlin/java/graphql/63a08ed7b8f61.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/graphql/get.md b/docs/examples/1.2.x/server-kotlin/java/graphql/get.md index 45f67ab5ba1..421a8da3283 100644 --- a/docs/examples/1.2.x/server-kotlin/java/graphql/get.md +++ b/docs/examples/1.2.x/server-kotlin/java/graphql/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/graphql/mutation.md b/docs/examples/1.2.x/server-kotlin/java/graphql/mutation.md index d689c62e60b..9e93425d248 100644 --- a/docs/examples/1.2.x/server-kotlin/java/graphql/mutation.md +++ b/docs/examples/1.2.x/server-kotlin/java/graphql/mutation.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/graphql/query.md b/docs/examples/1.2.x/server-kotlin/java/graphql/query.md index e4b8693b4f9..4ce7a5e66aa 100644 --- a/docs/examples/1.2.x/server-kotlin/java/graphql/query.md +++ b/docs/examples/1.2.x/server-kotlin/java/graphql/query.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/health/get-antivirus.md b/docs/examples/1.2.x/server-kotlin/java/health/get-antivirus.md index 334563fd1ce..0e081401324 100644 --- a/docs/examples/1.2.x/server-kotlin/java/health/get-antivirus.md +++ b/docs/examples/1.2.x/server-kotlin/java/health/get-antivirus.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/health/get-cache.md b/docs/examples/1.2.x/server-kotlin/java/health/get-cache.md index 9a2981253ac..4c53f7a35bc 100644 --- a/docs/examples/1.2.x/server-kotlin/java/health/get-cache.md +++ b/docs/examples/1.2.x/server-kotlin/java/health/get-cache.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/health/get-d-b.md b/docs/examples/1.2.x/server-kotlin/java/health/get-d-b.md index 22a5a6b5bb9..9958d8bbdc4 100644 --- a/docs/examples/1.2.x/server-kotlin/java/health/get-d-b.md +++ b/docs/examples/1.2.x/server-kotlin/java/health/get-d-b.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/health/get-queue-certificates.md b/docs/examples/1.2.x/server-kotlin/java/health/get-queue-certificates.md index a0a3a22f8a5..7f4c32f49b0 100644 --- a/docs/examples/1.2.x/server-kotlin/java/health/get-queue-certificates.md +++ b/docs/examples/1.2.x/server-kotlin/java/health/get-queue-certificates.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/health/get-queue-functions.md b/docs/examples/1.2.x/server-kotlin/java/health/get-queue-functions.md index 54b425f63cc..556c3e73e43 100644 --- a/docs/examples/1.2.x/server-kotlin/java/health/get-queue-functions.md +++ b/docs/examples/1.2.x/server-kotlin/java/health/get-queue-functions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/health/get-queue-logs.md b/docs/examples/1.2.x/server-kotlin/java/health/get-queue-logs.md index 371c98f06d3..075eebf85d7 100644 --- a/docs/examples/1.2.x/server-kotlin/java/health/get-queue-logs.md +++ b/docs/examples/1.2.x/server-kotlin/java/health/get-queue-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/health/get-queue-webhooks.md b/docs/examples/1.2.x/server-kotlin/java/health/get-queue-webhooks.md index cbd6919d72e..344945db0aa 100644 --- a/docs/examples/1.2.x/server-kotlin/java/health/get-queue-webhooks.md +++ b/docs/examples/1.2.x/server-kotlin/java/health/get-queue-webhooks.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/health/get-storage-local.md b/docs/examples/1.2.x/server-kotlin/java/health/get-storage-local.md index a57f34520da..527499f94e9 100644 --- a/docs/examples/1.2.x/server-kotlin/java/health/get-storage-local.md +++ b/docs/examples/1.2.x/server-kotlin/java/health/get-storage-local.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/health/get-time.md b/docs/examples/1.2.x/server-kotlin/java/health/get-time.md index 36b276b4d7e..0f78d412474 100644 --- a/docs/examples/1.2.x/server-kotlin/java/health/get-time.md +++ b/docs/examples/1.2.x/server-kotlin/java/health/get-time.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/health/get.md b/docs/examples/1.2.x/server-kotlin/java/health/get.md index 59badb05432..a14a4b5aeca 100644 --- a/docs/examples/1.2.x/server-kotlin/java/health/get.md +++ b/docs/examples/1.2.x/server-kotlin/java/health/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/locale/get.md b/docs/examples/1.2.x/server-kotlin/java/locale/get.md index 4fb6be94169..22137f75b7b 100644 --- a/docs/examples/1.2.x/server-kotlin/java/locale/get.md +++ b/docs/examples/1.2.x/server-kotlin/java/locale/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/locale/list-continents.md b/docs/examples/1.2.x/server-kotlin/java/locale/list-continents.md index 661fcc3583a..3933873e37d 100644 --- a/docs/examples/1.2.x/server-kotlin/java/locale/list-continents.md +++ b/docs/examples/1.2.x/server-kotlin/java/locale/list-continents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/locale/list-countries-e-u.md b/docs/examples/1.2.x/server-kotlin/java/locale/list-countries-e-u.md index 6164ca02d29..9cb744abcb3 100644 --- a/docs/examples/1.2.x/server-kotlin/java/locale/list-countries-e-u.md +++ b/docs/examples/1.2.x/server-kotlin/java/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/locale/list-countries-phones.md b/docs/examples/1.2.x/server-kotlin/java/locale/list-countries-phones.md index 2cb41c19f22..c81457dbbf7 100644 --- a/docs/examples/1.2.x/server-kotlin/java/locale/list-countries-phones.md +++ b/docs/examples/1.2.x/server-kotlin/java/locale/list-countries-phones.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/locale/list-countries.md b/docs/examples/1.2.x/server-kotlin/java/locale/list-countries.md index 74d3b5d4022..491b654edee 100644 --- a/docs/examples/1.2.x/server-kotlin/java/locale/list-countries.md +++ b/docs/examples/1.2.x/server-kotlin/java/locale/list-countries.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/locale/list-currencies.md b/docs/examples/1.2.x/server-kotlin/java/locale/list-currencies.md index 54a0e4de40c..a4c49e35689 100644 --- a/docs/examples/1.2.x/server-kotlin/java/locale/list-currencies.md +++ b/docs/examples/1.2.x/server-kotlin/java/locale/list-currencies.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/locale/list-languages.md b/docs/examples/1.2.x/server-kotlin/java/locale/list-languages.md index 54976c5c08b..4f09bab65c9 100644 --- a/docs/examples/1.2.x/server-kotlin/java/locale/list-languages.md +++ b/docs/examples/1.2.x/server-kotlin/java/locale/list-languages.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/create-bucket.md b/docs/examples/1.2.x/server-kotlin/java/storage/create-bucket.md index c9ebc9178c9..268fa1563e6 100644 --- a/docs/examples/1.2.x/server-kotlin/java/storage/create-bucket.md +++ b/docs/examples/1.2.x/server-kotlin/java/storage/create-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/create-file.md b/docs/examples/1.2.x/server-kotlin/java/storage/create-file.md index c83557bf282..e6cdf748528 100644 --- a/docs/examples/1.2.x/server-kotlin/java/storage/create-file.md +++ b/docs/examples/1.2.x/server-kotlin/java/storage/create-file.md @@ -4,7 +4,7 @@ import io.appwrite.models.InputFile; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/delete-bucket.md b/docs/examples/1.2.x/server-kotlin/java/storage/delete-bucket.md index f26e9ee5a19..c7844f9e90d 100644 --- a/docs/examples/1.2.x/server-kotlin/java/storage/delete-bucket.md +++ b/docs/examples/1.2.x/server-kotlin/java/storage/delete-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/delete-file.md b/docs/examples/1.2.x/server-kotlin/java/storage/delete-file.md index eb00b9706cc..b9095c139ba 100644 --- a/docs/examples/1.2.x/server-kotlin/java/storage/delete-file.md +++ b/docs/examples/1.2.x/server-kotlin/java/storage/delete-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/get-bucket.md b/docs/examples/1.2.x/server-kotlin/java/storage/get-bucket.md index 2157dd7424c..f44d23fe902 100644 --- a/docs/examples/1.2.x/server-kotlin/java/storage/get-bucket.md +++ b/docs/examples/1.2.x/server-kotlin/java/storage/get-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/get-file-download.md b/docs/examples/1.2.x/server-kotlin/java/storage/get-file-download.md index 8eef7e347e1..0b1207a0178 100644 --- a/docs/examples/1.2.x/server-kotlin/java/storage/get-file-download.md +++ b/docs/examples/1.2.x/server-kotlin/java/storage/get-file-download.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/get-file-preview.md b/docs/examples/1.2.x/server-kotlin/java/storage/get-file-preview.md index 275e803000d..1356607a327 100644 --- a/docs/examples/1.2.x/server-kotlin/java/storage/get-file-preview.md +++ b/docs/examples/1.2.x/server-kotlin/java/storage/get-file-preview.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/get-file-view.md b/docs/examples/1.2.x/server-kotlin/java/storage/get-file-view.md index adc0407c358..d5aa220f23d 100644 --- a/docs/examples/1.2.x/server-kotlin/java/storage/get-file-view.md +++ b/docs/examples/1.2.x/server-kotlin/java/storage/get-file-view.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/get-file.md b/docs/examples/1.2.x/server-kotlin/java/storage/get-file.md index 4cb6fe6db31..0bd4f682b13 100644 --- a/docs/examples/1.2.x/server-kotlin/java/storage/get-file.md +++ b/docs/examples/1.2.x/server-kotlin/java/storage/get-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/list-buckets.md b/docs/examples/1.2.x/server-kotlin/java/storage/list-buckets.md index 49c29cad2da..e3a69b43d9f 100644 --- a/docs/examples/1.2.x/server-kotlin/java/storage/list-buckets.md +++ b/docs/examples/1.2.x/server-kotlin/java/storage/list-buckets.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/list-files.md b/docs/examples/1.2.x/server-kotlin/java/storage/list-files.md index 59719e530f2..dc87428ebbc 100644 --- a/docs/examples/1.2.x/server-kotlin/java/storage/list-files.md +++ b/docs/examples/1.2.x/server-kotlin/java/storage/list-files.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/update-bucket.md b/docs/examples/1.2.x/server-kotlin/java/storage/update-bucket.md index 05483ea7252..08c77804e22 100644 --- a/docs/examples/1.2.x/server-kotlin/java/storage/update-bucket.md +++ b/docs/examples/1.2.x/server-kotlin/java/storage/update-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/storage/update-file.md b/docs/examples/1.2.x/server-kotlin/java/storage/update-file.md index 05385c2b88f..d2a1b6c4272 100644 --- a/docs/examples/1.2.x/server-kotlin/java/storage/update-file.md +++ b/docs/examples/1.2.x/server-kotlin/java/storage/update-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/create-membership.md b/docs/examples/1.2.x/server-kotlin/java/teams/create-membership.md index 62239ec9c19..126a53ac9ee 100644 --- a/docs/examples/1.2.x/server-kotlin/java/teams/create-membership.md +++ b/docs/examples/1.2.x/server-kotlin/java/teams/create-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/create.md b/docs/examples/1.2.x/server-kotlin/java/teams/create.md index 4f3be33609f..75d13b61069 100644 --- a/docs/examples/1.2.x/server-kotlin/java/teams/create.md +++ b/docs/examples/1.2.x/server-kotlin/java/teams/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/delete-membership.md b/docs/examples/1.2.x/server-kotlin/java/teams/delete-membership.md index e82ab293be4..26d0fba99cb 100644 --- a/docs/examples/1.2.x/server-kotlin/java/teams/delete-membership.md +++ b/docs/examples/1.2.x/server-kotlin/java/teams/delete-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/delete.md b/docs/examples/1.2.x/server-kotlin/java/teams/delete.md index fa805ebd4d4..7699d575bf7 100644 --- a/docs/examples/1.2.x/server-kotlin/java/teams/delete.md +++ b/docs/examples/1.2.x/server-kotlin/java/teams/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/get-membership.md b/docs/examples/1.2.x/server-kotlin/java/teams/get-membership.md index fc00d438731..e901b4438ed 100644 --- a/docs/examples/1.2.x/server-kotlin/java/teams/get-membership.md +++ b/docs/examples/1.2.x/server-kotlin/java/teams/get-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/get.md b/docs/examples/1.2.x/server-kotlin/java/teams/get.md index 6be034b4182..ef9c02df2f6 100644 --- a/docs/examples/1.2.x/server-kotlin/java/teams/get.md +++ b/docs/examples/1.2.x/server-kotlin/java/teams/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/list-memberships.md b/docs/examples/1.2.x/server-kotlin/java/teams/list-memberships.md index 0b9055f8169..8abf4644900 100644 --- a/docs/examples/1.2.x/server-kotlin/java/teams/list-memberships.md +++ b/docs/examples/1.2.x/server-kotlin/java/teams/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/list.md b/docs/examples/1.2.x/server-kotlin/java/teams/list.md index 22a9d51d5fd..5f0540e6c46 100644 --- a/docs/examples/1.2.x/server-kotlin/java/teams/list.md +++ b/docs/examples/1.2.x/server-kotlin/java/teams/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/update-membership-roles.md b/docs/examples/1.2.x/server-kotlin/java/teams/update-membership-roles.md index 291417da5ac..c485c0c0e69 100644 --- a/docs/examples/1.2.x/server-kotlin/java/teams/update-membership-roles.md +++ b/docs/examples/1.2.x/server-kotlin/java/teams/update-membership-roles.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/update-membership-status.md b/docs/examples/1.2.x/server-kotlin/java/teams/update-membership-status.md index 64e69663d42..54ea9877155 100644 --- a/docs/examples/1.2.x/server-kotlin/java/teams/update-membership-status.md +++ b/docs/examples/1.2.x/server-kotlin/java/teams/update-membership-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/java/teams/update.md b/docs/examples/1.2.x/server-kotlin/java/teams/update.md index b0f2e81635e..ed97a24e48b 100644 --- a/docs/examples/1.2.x/server-kotlin/java/teams/update.md +++ b/docs/examples/1.2.x/server-kotlin/java/teams/update.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/create-argon2user.md b/docs/examples/1.2.x/server-kotlin/java/users/create-argon2user.md index 47ac52c0863..0f1faf77e5c 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/create-argon2user.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/create-argon2user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/create-bcrypt-user.md b/docs/examples/1.2.x/server-kotlin/java/users/create-bcrypt-user.md index 91989dff0fe..3c34190dd3f 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/create-bcrypt-user.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/create-bcrypt-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/create-m-d5user.md b/docs/examples/1.2.x/server-kotlin/java/users/create-m-d5user.md index 35de18d1a34..be38f913a6c 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/create-m-d5user.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/create-m-d5user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/create-p-h-pass-user.md b/docs/examples/1.2.x/server-kotlin/java/users/create-p-h-pass-user.md index 7501f02f2f5..718f4100eb4 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/create-p-h-pass-user.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/create-p-h-pass-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/create-s-h-a-user.md b/docs/examples/1.2.x/server-kotlin/java/users/create-s-h-a-user.md index ae26de55437..e67c8745422 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/create-s-h-a-user.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/create-s-h-a-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/server-kotlin/java/users/create-scrypt-modified-user.md index da0936a01b3..7a665a7c945 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/create-scrypt-modified-user.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/create-scrypt-modified-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/create-scrypt-user.md b/docs/examples/1.2.x/server-kotlin/java/users/create-scrypt-user.md index 9b48e06fbd2..9a99af84107 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/create-scrypt-user.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/create-scrypt-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/create.md b/docs/examples/1.2.x/server-kotlin/java/users/create.md index 97aad153029..c9b3c8558ee 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/create.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/delete-session.md b/docs/examples/1.2.x/server-kotlin/java/users/delete-session.md index 84153284065..dfde18e516f 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/delete-session.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/delete-sessions.md b/docs/examples/1.2.x/server-kotlin/java/users/delete-sessions.md index 9a2284c493b..45ed56eb53b 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/delete-sessions.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/delete.md b/docs/examples/1.2.x/server-kotlin/java/users/delete.md index 893a4d37940..7120f8035ca 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/delete.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/get-prefs.md b/docs/examples/1.2.x/server-kotlin/java/users/get-prefs.md index 664843e32c8..2c3190194a0 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/get-prefs.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/get.md b/docs/examples/1.2.x/server-kotlin/java/users/get.md index 1be96aee11f..43d32f8d1a2 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/get.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/list-logs.md b/docs/examples/1.2.x/server-kotlin/java/users/list-logs.md index 08ace35a19c..df4964211c1 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/list-logs.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/list-memberships.md b/docs/examples/1.2.x/server-kotlin/java/users/list-memberships.md index 503dbcb10ab..89c90c8cc88 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/list-memberships.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/list-sessions.md b/docs/examples/1.2.x/server-kotlin/java/users/list-sessions.md index efe091fe74e..8ea8833c2e0 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/list-sessions.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/list.md b/docs/examples/1.2.x/server-kotlin/java/users/list.md index d591bce79e1..0ca79280613 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/list.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/update-email-verification.md b/docs/examples/1.2.x/server-kotlin/java/users/update-email-verification.md index 3d6d205bce0..91b989b6681 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/update-email-verification.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/update-email-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/update-email.md b/docs/examples/1.2.x/server-kotlin/java/users/update-email.md index d0e9b17c1da..2d29d4cab1f 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/update-email.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/update-name.md b/docs/examples/1.2.x/server-kotlin/java/users/update-name.md index e16f539bdc4..9df5a00fd36 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/update-name.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/update-password.md b/docs/examples/1.2.x/server-kotlin/java/users/update-password.md index 07a2741ff42..77d39643b9d 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/update-password.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/update-phone-verification.md b/docs/examples/1.2.x/server-kotlin/java/users/update-phone-verification.md index 8c9a26d6093..ac7796c0415 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/update-phone-verification.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/update-phone.md b/docs/examples/1.2.x/server-kotlin/java/users/update-phone.md index 4a2accb7933..007d78dfd37 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/update-phone.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/update-prefs.md b/docs/examples/1.2.x/server-kotlin/java/users/update-prefs.md index b12a5d8e4f0..655ab79f5b6 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/update-prefs.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/java/users/update-status.md b/docs/examples/1.2.x/server-kotlin/java/users/update-status.md index 012142cad7b..d4c753e8d88 100644 --- a/docs/examples/1.2.x/server-kotlin/java/users/update-status.md +++ b/docs/examples/1.2.x/server-kotlin/java/users/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/create-phone-verification.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/create-phone-verification.md index e18d4ce13b2..9af377fed56 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/create-phone-verification.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/create-phone-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/create-recovery.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/create-recovery.md index a219cb8196b..5a207d31f28 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/create-recovery.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/create-recovery.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/create-verification.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/create-verification.md index 33846f1dba6..6ba8071254c 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/create-verification.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/create-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/delete-session.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/delete-session.md index 60aa4f26046..76e71066c56 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/delete-session.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/delete-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/delete-sessions.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/delete-sessions.md index a16622a526c..ac82578c8e1 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/delete-sessions.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/delete-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/get-prefs.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/get-prefs.md index dbbba1d98f6..eba56b21df7 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/get-prefs.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/get-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/get-session.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/get-session.md index 07861109b65..98b112b9122 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/get-session.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/get-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/get.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/get.md index 1fb002ae240..95f54906520 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/get.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/list-logs.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/list-logs.md index daddd758430..45ba397f94e 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/list-logs.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/list-logs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/list-sessions.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/list-sessions.md index 132a5da23b2..6420e6afdb5 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/list-sessions.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/list-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-email.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-email.md index 1127bbc2b28..0c9216f9238 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-email.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-email.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-name.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-name.md index 3de89a503ea..e5fb2264c4f 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-name.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-name.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-password.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-password.md index e8238b2825f..f4b9f657ea7 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-password.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-password.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-phone-verification.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-phone-verification.md index 0ed51d30c21..7e0bb4905c2 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-phone-verification.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-phone-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-phone.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-phone.md index 9c823bb6ac9..334f0fe1726 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-phone.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-phone.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-prefs.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-prefs.md index 6226269a1f1..542ddcc739a 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-prefs.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-recovery.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-recovery.md index 1b676c1ad52..d0b04380e23 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-recovery.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-recovery.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-session.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-session.md index bd3d28e3b82..61a3289047d 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-session.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-status.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-status.md index 3ed06279069..4f6562528d8 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-status.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-status.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-verification.md b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-verification.md index e73e555c602..288750a4712 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/account/update-verification.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/account/update-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-browser.md b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-browser.md index e9f6eb2919f..7dddeea92c0 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-browser.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-browser.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-credit-card.md b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-credit-card.md index c3413ac6442..3c56eb7ca99 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-credit-card.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-favicon.md b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-favicon.md index cd1ea0c7b37..2e27b70a011 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-favicon.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-favicon.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-flag.md b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-flag.md index a81c59ae60b..e095c7b602c 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-flag.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-flag.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-image.md b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-image.md index 09cacde6f89..fd2e0c61497 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-image.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-image.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-initials.md b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-initials.md index ba46fb0d292..c42703969de 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-initials.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-initials.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-q-r.md b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-q-r.md index c43aabcfe3a..2fc413de2bc 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-q-r.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/avatars/get-q-r.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-boolean-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-boolean-attribute.md index 22de12384d1..5a4e85568ea 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-boolean-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-boolean-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-collection.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-collection.md index 9ba70cf2fec..c48d2d49a23 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-collection.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-collection.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-datetime-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-datetime-attribute.md index d410244ec81..9fe6efab3aa 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-datetime-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-datetime-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-document.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-document.md index 95e5977b126..58bc1034015 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-document.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-email-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-email-attribute.md index 292f31f5254..081557e950c 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-email-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-email-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-enum-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-enum-attribute.md index 99008a479b2..e951b71b149 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-enum-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-enum-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-float-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-float-attribute.md index 68149625028..c26e5d37cc9 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-float-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-float-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-index.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-index.md index 42b3dbe7e16..d635002a12f 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-index.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-index.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-integer-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-integer-attribute.md index 57b2ff66a73..eafa05417a9 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-integer-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-integer-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-ip-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-ip-attribute.md index f941b82c9e6..daa18f083b7 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-ip-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-ip-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-string-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-string-attribute.md index c5d3d52853f..99930484773 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-string-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-string-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-url-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-url-attribute.md index 8cd0731da13..238c73b7cc3 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-url-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create-url-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create.md index b70e39e4e9e..15c83e2cb8a 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/create.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-attribute.md index fef7a45cc40..9dddae53fcc 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-collection.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-collection.md index 676359331af..4fb66423e09 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-collection.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-collection.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-document.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-document.md index 2bf047fe4eb..361218721bc 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-document.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-index.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-index.md index 59bd149224f..e54aa398973 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-index.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete-index.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete.md index f927901f098..34d855ce238 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/delete.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-attribute.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-attribute.md index 4bba2dfa163..d3840b13b5c 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-attribute.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-collection.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-collection.md index 76ff9a1962f..e7127649cd8 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-collection.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-collection.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-document.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-document.md index 1f9d1a86a08..256dba680e7 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-document.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-index.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-index.md index 2d588dee731..d91f52b1116 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-index.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/get-index.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/get.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/get.md index 5584d4dd878..1453534929d 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/get.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-attributes.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-attributes.md index c0a5da53391..df870992470 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-attributes.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-attributes.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-collections.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-collections.md index f563c431a72..8035796f102 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-collections.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-collections.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-documents.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-documents.md index c081013fa03..df52ef1ab6e 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-documents.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-documents.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-indexes.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-indexes.md index e8f659ebf35..a51586d4c3c 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-indexes.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/list-indexes.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/list.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/list.md index 6ffece0bd53..d8c0090988b 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/list.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/list.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/update-collection.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/update-collection.md index f6ccffef9d1..57aba213726 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/update-collection.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/update-collection.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/update-document.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/update-document.md index 10ff4c4b4c0..4abc8c5e8e8 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/update-document.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/update-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/databases/update.md b/docs/examples/1.2.x/server-kotlin/kotlin/databases/update.md index d465a8dc3f4..a8c9dce5f5f 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/databases/update.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/databases/update.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-build.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-build.md index 62f9d1addd3..fafed65c354 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-build.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-build.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-deployment.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-deployment.md index c94c3fa5b8b..695fdc7f290 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-deployment.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.models.InputFile import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-execution.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-execution.md index 62bce1fde01..13f476127f5 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-execution.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-execution.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-variable.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-variable.md index 6b23614d113..5b8bd6c6337 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-variable.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/create-variable.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/create.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/create.md index 7b1ff6b35cf..062f7d3e396 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/create.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete-deployment.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete-deployment.md index 5187ba44195..57728a9ddd4 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete-deployment.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete-deployment.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete-variable.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete-variable.md index f0fe4a3d860..9d3c95e173e 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete-variable.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete-variable.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete.md index f12095b5a89..b5a13223800 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/delete.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-deployment.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-deployment.md index 4653e61f0e8..bd21f502454 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-deployment.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-deployment.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-execution.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-execution.md index 929a003a18c..517a3499af3 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-execution.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-execution.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-variable.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-variable.md index ce42276921b..ee73353aa09 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-variable.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/get-variable.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/get.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/get.md index 9261ab897ad..4c47e68d91a 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/get.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-deployments.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-deployments.md index 3ec2c810eef..c9cfa4be08e 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-deployments.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-deployments.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-executions.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-executions.md index 5378c79dbcb..06f1bdfdf18 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-executions.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-executions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-runtimes.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-runtimes.md index 0e777cd1fe7..abe677c0347 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-runtimes.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-runtimes.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-variables.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-variables.md index 10e74534f4b..729ade920cd 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-variables.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/list-variables.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/list.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/list.md index a5f4f0d325a..6aeafdc2580 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/list.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/list.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/update-deployment.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/update-deployment.md index 14b147384f5..8c0a93fc7a8 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/update-deployment.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/update-deployment.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/update-variable.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/update-variable.md index 1e0f3bbe5f3..e9990d56d11 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/update-variable.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/update-variable.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/functions/update.md b/docs/examples/1.2.x/server-kotlin/kotlin/functions/update.md index bfb0edf89e3..ea2e0597501 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/functions/update.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/functions/update.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/graphql/63a08ed7b8f61.md b/docs/examples/1.2.x/server-kotlin/kotlin/graphql/63a08ed7b8f61.md index f007ac03d2c..ef2051b7b4f 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/graphql/63a08ed7b8f61.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/graphql/63a08ed7b8f61.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/graphql/get.md b/docs/examples/1.2.x/server-kotlin/kotlin/graphql/get.md index d391c97f882..8fe4bcfa840 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/graphql/get.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/graphql/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/graphql/mutation.md b/docs/examples/1.2.x/server-kotlin/kotlin/graphql/mutation.md index aed06cd7a6c..82c2c19fd21 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/graphql/mutation.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/graphql/mutation.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/graphql/query.md b/docs/examples/1.2.x/server-kotlin/kotlin/graphql/query.md index bd29d431c4c..a271566de16 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/graphql/query.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/graphql/query.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-antivirus.md b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-antivirus.md index e387fe0d951..d858d2189f2 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-antivirus.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-antivirus.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-cache.md b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-cache.md index 7aca9dd0080..daa7fb646eb 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-cache.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-cache.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-d-b.md b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-d-b.md index 8e719142bb0..496c7216f25 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-d-b.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-d-b.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-certificates.md b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-certificates.md index f4163517058..31c83bd8919 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-certificates.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-certificates.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-functions.md b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-functions.md index b55241d8f27..d7653c3a7d7 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-functions.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-functions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-logs.md b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-logs.md index fb634ec63c6..1446de4c16d 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-logs.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-logs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-webhooks.md b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-webhooks.md index bf4629d259a..11c9b7a6211 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-webhooks.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-queue-webhooks.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-storage-local.md b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-storage-local.md index f204168bc4d..b0087b6fb28 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-storage-local.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-storage-local.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-time.md b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-time.md index 35f3bb9bd67..8a9645a42bb 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/health/get-time.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/health/get-time.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/health/get.md b/docs/examples/1.2.x/server-kotlin/kotlin/health/get.md index b547be9aa57..a790b949c46 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/health/get.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/health/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/locale/get.md b/docs/examples/1.2.x/server-kotlin/kotlin/locale/get.md index 1d84651fea4..25bf0e1d0b2 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/locale/get.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/locale/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-continents.md b/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-continents.md index bd9ad1825b4..bcaad832cd8 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-continents.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-continents.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries-e-u.md b/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries-e-u.md index 5d3258335eb..b1e5671fb3b 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries-e-u.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries-e-u.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries-phones.md b/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries-phones.md index e0f2ae3c6b0..1a9a2585ca4 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries-phones.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries-phones.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries.md b/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries.md index 626d38133e7..cd8276e49b4 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-countries.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-currencies.md b/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-currencies.md index 6457056d70e..061a5c82cda 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-currencies.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-currencies.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-languages.md b/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-languages.md index 437b1c3fe92..6ed17be85e9 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-languages.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/locale/list-languages.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/create-bucket.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/create-bucket.md index 27d73ffd070..1adf94ca061 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/create-bucket.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/storage/create-bucket.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/create-file.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/create-file.md index 1bdf5e48932..354e3bf94c4 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/create-file.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/storage/create-file.md @@ -3,7 +3,7 @@ import io.appwrite.models.InputFile import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/delete-bucket.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/delete-bucket.md index 3730a052987..a70b731423a 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/delete-bucket.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/storage/delete-bucket.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/delete-file.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/delete-file.md index dabf805e8b9..c6a2639376a 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/delete-file.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/storage/delete-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-bucket.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-bucket.md index 0c7fcc137c3..c2abb7b3386 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-bucket.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-bucket.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-download.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-download.md index 6c3c1fb4aea..67bcc5d5b41 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-download.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-download.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-preview.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-preview.md index 372416ed12f..4b75e70d3e3 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-preview.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-preview.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-view.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-view.md index 4b23cfc9c6f..691acb10550 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-view.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file-view.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file.md index 211713c7b66..0f98d900a12 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/storage/get-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/list-buckets.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/list-buckets.md index 8c4c7bdaac8..b6bce3ace32 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/list-buckets.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/storage/list-buckets.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/list-files.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/list-files.md index 5243ed74cc5..af1c301c1cf 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/list-files.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/storage/list-files.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/update-bucket.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/update-bucket.md index 3de3b5460e8..b0117be004d 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/update-bucket.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/storage/update-bucket.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/storage/update-file.md b/docs/examples/1.2.x/server-kotlin/kotlin/storage/update-file.md index 3d7fb9ab269..8b85210d15f 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/storage/update-file.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/storage/update-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/create-membership.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/create-membership.md index d4534692f26..19fbef3d0c5 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/create-membership.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/teams/create-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/create.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/create.md index 9e080a13467..5b0105bf712 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/create.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/teams/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/delete-membership.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/delete-membership.md index 16e73e48849..397a9b794ad 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/delete-membership.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/teams/delete-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/delete.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/delete.md index c015a772c87..ab0b1c56328 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/delete.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/teams/delete.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/get-membership.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/get-membership.md index 4f2bed38002..bfb8ea94063 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/get-membership.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/teams/get-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/get.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/get.md index 402aeb1bebc..a6f43f8f189 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/get.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/teams/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/list-memberships.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/list-memberships.md index e9eae80f0b0..0da1afdfc1b 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/list-memberships.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/teams/list-memberships.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/list.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/list.md index aa10ca58fd0..43196f1d908 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/list.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/teams/list.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/update-membership-roles.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/update-membership-roles.md index e9ea1f18ab1..88a020c7377 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/update-membership-roles.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/teams/update-membership-roles.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/update-membership-status.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/update-membership-status.md index 7fa6bd837c2..e9dc0d91eba 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/update-membership-status.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/teams/update-membership-status.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/teams/update.md b/docs/examples/1.2.x/server-kotlin/kotlin/teams/update.md index 4dabe5b8eff..2376cf8ca56 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/teams/update.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/teams/update.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-argon2user.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-argon2user.md index 438363aed32..81a1f9960f9 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-argon2user.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-argon2user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-bcrypt-user.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-bcrypt-user.md index 977782ce3cb..15d101773a8 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-bcrypt-user.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-bcrypt-user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-m-d5user.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-m-d5user.md index 6d6451f3769..86e13b9f1bd 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-m-d5user.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-m-d5user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-p-h-pass-user.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-p-h-pass-user.md index c50b2c1da46..cadb580527d 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-p-h-pass-user.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-p-h-pass-user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-s-h-a-user.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-s-h-a-user.md index 708935c970c..979cc2a01b1 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-s-h-a-user.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-s-h-a-user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md index d49f7db4717..b2164d5aa84 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-scrypt-user.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-scrypt-user.md index aa006fb0db2..e5cabe92b70 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/create-scrypt-user.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/create-scrypt-user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/create.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/create.md index ae319d8cd82..fcc5e355ecf 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/create.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/delete-session.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/delete-session.md index f3a0264aa13..7b96b242135 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/delete-session.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/delete-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/delete-sessions.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/delete-sessions.md index 5c0070c027b..580031ecac6 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/delete-sessions.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/delete-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/delete.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/delete.md index 30ee8f3d7a0..2e0013f0ab4 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/delete.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/delete.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/get-prefs.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/get-prefs.md index 564489c398d..a7ffd650bc6 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/get-prefs.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/get-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/get.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/get.md index fd7e4b7a1b9..f55878912ea 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/get.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/list-logs.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/list-logs.md index 691007588ec..5b3111f5529 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/list-logs.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/list-logs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/list-memberships.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/list-memberships.md index 316889e8943..0059c2dc68c 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/list-memberships.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/list-memberships.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/list-sessions.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/list-sessions.md index 1d7e950425b..fd9a7716d57 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/list-sessions.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/list-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/list.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/list.md index e973a26e524..3a74a207570 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/list.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/list.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-email-verification.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-email-verification.md index b4f97bbcab5..ea16acf33bd 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-email-verification.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-email-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-email.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-email.md index c6dfaefd2f0..4adad691848 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-email.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-email.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-name.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-name.md index 1d46c7a8fcd..b60d5656208 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-name.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-name.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-password.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-password.md index 5bff0dc5eff..c7316ff7c65 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-password.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-password.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-phone-verification.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-phone-verification.md index 909803bd94d..fe6bcf39c09 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-phone-verification.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-phone-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-phone.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-phone.md index 073dd6640a8..3d243c0db7c 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-phone.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-phone.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-prefs.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-prefs.md index 127035ca488..c05713d316f 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-prefs.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-status.md b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-status.md index 5899ed360f5..1966d5d6d05 100644 --- a/docs/examples/1.2.x/server-kotlin/kotlin/users/update-status.md +++ b/docs/examples/1.2.x/server-kotlin/kotlin/users/update-status.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/create-phone-verification.md b/docs/examples/1.2.x/server-nodejs/examples/account/create-phone-verification.md index f381495f243..cd9bc62e7a2 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/create-phone-verification.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/create-phone-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/create-recovery.md b/docs/examples/1.2.x/server-nodejs/examples/account/create-recovery.md index f4c5ae98de3..53c6060edff 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/create-recovery.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/create-recovery.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/create-verification.md b/docs/examples/1.2.x/server-nodejs/examples/account/create-verification.md index 04585621eb0..1df32eb7119 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/create-verification.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/create-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/delete-session.md b/docs/examples/1.2.x/server-nodejs/examples/account/delete-session.md index 74f38698591..182d67e2c16 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/delete-session.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/delete-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/delete-sessions.md b/docs/examples/1.2.x/server-nodejs/examples/account/delete-sessions.md index 0968c30b927..dbf861cf31f 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/delete-sessions.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/delete-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/get-prefs.md b/docs/examples/1.2.x/server-nodejs/examples/account/get-prefs.md index 8bd5d97c25f..04e6ac307a2 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/get-prefs.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/get-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/get-session.md b/docs/examples/1.2.x/server-nodejs/examples/account/get-session.md index 3abb677fbe2..23d06a672b7 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/get-session.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/get-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/get.md b/docs/examples/1.2.x/server-nodejs/examples/account/get.md index d4f4066fb19..3b0da54b7a3 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/get.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/list-logs.md b/docs/examples/1.2.x/server-nodejs/examples/account/list-logs.md index 890e0d12d33..25cfab189df 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/list-logs.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/list-logs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/list-sessions.md b/docs/examples/1.2.x/server-nodejs/examples/account/list-sessions.md index 68e97ada316..fe753dd9968 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/list-sessions.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/list-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/update-email.md b/docs/examples/1.2.x/server-nodejs/examples/account/update-email.md index 388e2581bb4..324dfa7db6d 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/update-email.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/update-email.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/update-name.md b/docs/examples/1.2.x/server-nodejs/examples/account/update-name.md index 09846527126..8ae6bbf552b 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/update-name.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/update-name.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/update-password.md b/docs/examples/1.2.x/server-nodejs/examples/account/update-password.md index b9121e3acc9..f8c221a2439 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/update-password.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/update-password.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/update-phone-verification.md b/docs/examples/1.2.x/server-nodejs/examples/account/update-phone-verification.md index 1aa4042f365..66c3ec8981f 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/update-phone-verification.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/update-phone-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/update-phone.md b/docs/examples/1.2.x/server-nodejs/examples/account/update-phone.md index 37124d81aa6..02270ec33e7 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/update-phone.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/update-phone.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/update-prefs.md b/docs/examples/1.2.x/server-nodejs/examples/account/update-prefs.md index 6948706abbd..6a9e10bf0c9 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/update-prefs.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/update-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/update-recovery.md b/docs/examples/1.2.x/server-nodejs/examples/account/update-recovery.md index 74f70f59c78..17dccf0e8b0 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/update-recovery.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/update-recovery.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/update-session.md b/docs/examples/1.2.x/server-nodejs/examples/account/update-session.md index b0b932524fc..ae1d9ab0653 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/update-session.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/update-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/update-status.md b/docs/examples/1.2.x/server-nodejs/examples/account/update-status.md index 277243b824f..4c13b5eec13 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/update-status.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/update-status.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/account/update-verification.md b/docs/examples/1.2.x/server-nodejs/examples/account/update-verification.md index 6a7fbbf99c1..03d663a6296 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/account/update-verification.md +++ b/docs/examples/1.2.x/server-nodejs/examples/account/update-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-browser.md b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-browser.md index c05595ad67d..d88d7571dec 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-browser.md +++ b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-browser.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-credit-card.md index 8fbd37d29ae..86cfe170598 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-credit-card.md +++ b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-credit-card.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-favicon.md b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-favicon.md index 2924e394a07..acc780ccab1 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-favicon.md +++ b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-favicon.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-flag.md b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-flag.md index 50d611c3994..09efae01460 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-flag.md +++ b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-flag.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-image.md b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-image.md index 3b2bb517d1b..6cf825ff3e1 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-image.md +++ b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-image.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-initials.md b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-initials.md index 4afda6f5472..942f10ce51a 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-initials.md +++ b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-initials.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-q-r.md b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-q-r.md index d2d24e2055e..0b46c30ed60 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/avatars/get-q-r.md +++ b/docs/examples/1.2.x/server-nodejs/examples/avatars/get-q-r.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-boolean-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-boolean-attribute.md index 12a70102cae..03b9cbd67a9 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/create-boolean-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-collection.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-collection.md index 13ec4e037fe..2ff164d5539 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-collection.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/create-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-datetime-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-datetime-attribute.md index 70609a84e72..7c8710f80dd 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/create-datetime-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-document.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-document.md index f5fa7a50a6f..69d75e1b53e 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-document.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/create-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-email-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-email-attribute.md index 2229dfe7f9b..a14075c62ba 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-email-attribute.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/create-email-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-enum-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-enum-attribute.md index cd9daca6032..074e0098edf 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/create-enum-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-float-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-float-attribute.md index a12c4f44206..d818659c337 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-float-attribute.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/create-float-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-index.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-index.md index 66c3e519fea..9064cbf61b5 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-index.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/create-index.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-integer-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-integer-attribute.md index fa693d28def..051df7214f7 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/create-integer-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-ip-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-ip-attribute.md index 1e8985a2bdc..95c465d527e 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/create-ip-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-string-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-string-attribute.md index bfb4fbfc3ff..9305983c337 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-string-attribute.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/create-string-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create-url-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create-url-attribute.md index e6a585f76bc..47c491916b8 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create-url-attribute.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/create-url-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/create.md b/docs/examples/1.2.x/server-nodejs/examples/databases/create.md index 4e04f026bdc..451e39b410f 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/create.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/delete-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/delete-attribute.md index 3c65f62ef57..a7ee957de8a 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/delete-attribute.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/delete-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/delete-collection.md b/docs/examples/1.2.x/server-nodejs/examples/databases/delete-collection.md index 047fa268461..745042ec6e5 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/delete-collection.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/delete-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/delete-document.md b/docs/examples/1.2.x/server-nodejs/examples/databases/delete-document.md index a6f3fa58ca5..0081caa4990 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/delete-document.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/delete-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/delete-index.md b/docs/examples/1.2.x/server-nodejs/examples/databases/delete-index.md index 42d73104a09..e147eb1043d 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/delete-index.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/delete-index.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/delete.md b/docs/examples/1.2.x/server-nodejs/examples/databases/delete.md index 3f39965820e..b1ecfea0a4c 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/delete.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/get-attribute.md b/docs/examples/1.2.x/server-nodejs/examples/databases/get-attribute.md index df6c665b750..36b0b0336e1 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/get-attribute.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/get-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/get-collection.md b/docs/examples/1.2.x/server-nodejs/examples/databases/get-collection.md index ea4ed423e8a..0d0ba0e6cbd 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/get-collection.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/get-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/get-document.md b/docs/examples/1.2.x/server-nodejs/examples/databases/get-document.md index ac07b968aee..8f641962f0f 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/get-document.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/get-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/get-index.md b/docs/examples/1.2.x/server-nodejs/examples/databases/get-index.md index c3a3d168c52..d0602952b4f 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/get-index.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/get-index.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/get.md b/docs/examples/1.2.x/server-nodejs/examples/databases/get.md index 133f496b2eb..a47ba7a403f 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/get.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/list-attributes.md b/docs/examples/1.2.x/server-nodejs/examples/databases/list-attributes.md index b1a494b110d..01284a5e3a7 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/list-attributes.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/list-attributes.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/list-collections.md b/docs/examples/1.2.x/server-nodejs/examples/databases/list-collections.md index c1d9fd34216..9005d7a5b1d 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/list-collections.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/list-collections.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/list-documents.md b/docs/examples/1.2.x/server-nodejs/examples/databases/list-documents.md index bf0b9156bf3..9f9751ac370 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/list-documents.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/list-documents.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/list-indexes.md b/docs/examples/1.2.x/server-nodejs/examples/databases/list-indexes.md index 57787f1d3eb..fff198fc40e 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/list-indexes.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/list-indexes.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/list.md b/docs/examples/1.2.x/server-nodejs/examples/databases/list.md index 5652d1e0324..2f404785701 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/list.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/update-collection.md b/docs/examples/1.2.x/server-nodejs/examples/databases/update-collection.md index db74a7b9eb3..4570385adca 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/update-collection.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/update-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/update-document.md b/docs/examples/1.2.x/server-nodejs/examples/databases/update-document.md index ca3cdb85e7c..92405e556c4 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/update-document.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/update-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/databases/update.md b/docs/examples/1.2.x/server-nodejs/examples/databases/update.md index 7abe11bf80a..71a6f3a77a6 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/databases/update.md +++ b/docs/examples/1.2.x/server-nodejs/examples/databases/update.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/create-build.md b/docs/examples/1.2.x/server-nodejs/examples/functions/create-build.md index fe9751e73b7..38f3717fb0a 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/create-build.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/create-build.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/create-deployment.md b/docs/examples/1.2.x/server-nodejs/examples/functions/create-deployment.md index 661afa151aa..defbd30d102 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/create-deployment.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/create-deployment.md @@ -7,7 +7,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/create-execution.md b/docs/examples/1.2.x/server-nodejs/examples/functions/create-execution.md index dc182fdd447..be5bfbe85c4 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/create-execution.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/create-execution.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/create-variable.md b/docs/examples/1.2.x/server-nodejs/examples/functions/create-variable.md index 80f3fd02573..5bb7481f6af 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/create-variable.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/create-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/create.md b/docs/examples/1.2.x/server-nodejs/examples/functions/create.md index 9b8e0f18206..e1d24380fab 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/create.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/delete-deployment.md b/docs/examples/1.2.x/server-nodejs/examples/functions/delete-deployment.md index 5affdf18b9a..c0b1c4e4a1d 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/delete-deployment.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/delete-deployment.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/delete-variable.md b/docs/examples/1.2.x/server-nodejs/examples/functions/delete-variable.md index 2a075fdea73..e28f991ae1d 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/delete-variable.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/delete-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/delete.md b/docs/examples/1.2.x/server-nodejs/examples/functions/delete.md index d17f01361ef..18d2f4e26c1 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/delete.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/get-deployment.md b/docs/examples/1.2.x/server-nodejs/examples/functions/get-deployment.md index d67ce4647ab..4043de8d59a 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/get-deployment.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/get-deployment.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/get-execution.md b/docs/examples/1.2.x/server-nodejs/examples/functions/get-execution.md index bbf07881386..094a1d1983a 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/get-execution.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/get-execution.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/get-variable.md b/docs/examples/1.2.x/server-nodejs/examples/functions/get-variable.md index 11ce7e2836c..8c225de4da4 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/get-variable.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/get-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/get.md b/docs/examples/1.2.x/server-nodejs/examples/functions/get.md index 54ea4812b82..469f6fbb4ef 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/get.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/list-deployments.md b/docs/examples/1.2.x/server-nodejs/examples/functions/list-deployments.md index 48194108758..505de94734f 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/list-deployments.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/list-deployments.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/list-executions.md b/docs/examples/1.2.x/server-nodejs/examples/functions/list-executions.md index f9e77a5d32f..7ec383656d5 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/list-executions.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/list-executions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/list-runtimes.md b/docs/examples/1.2.x/server-nodejs/examples/functions/list-runtimes.md index d4718613743..d9edc4a040c 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/list-runtimes.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/list-runtimes.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/list-variables.md b/docs/examples/1.2.x/server-nodejs/examples/functions/list-variables.md index e193b2b1ba7..eefc1fe27e7 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/list-variables.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/list-variables.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/list.md b/docs/examples/1.2.x/server-nodejs/examples/functions/list.md index 4f7b45e26a5..0a2c6cd72f0 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/list.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/update-deployment.md b/docs/examples/1.2.x/server-nodejs/examples/functions/update-deployment.md index 25f0e79983f..d90a98481c5 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/update-deployment.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/update-deployment.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/update-variable.md b/docs/examples/1.2.x/server-nodejs/examples/functions/update-variable.md index 86e9a698f58..8d1f6466b7f 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/update-variable.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/update-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/functions/update.md b/docs/examples/1.2.x/server-nodejs/examples/functions/update.md index fb825081a18..c5d06bdad37 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/functions/update.md +++ b/docs/examples/1.2.x/server-nodejs/examples/functions/update.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/graphql/63a08ed7b8f61.md b/docs/examples/1.2.x/server-nodejs/examples/graphql/63a08ed7b8f61.md index 592e8ac4363..178c9b0bdbe 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/graphql/63a08ed7b8f61.md +++ b/docs/examples/1.2.x/server-nodejs/examples/graphql/63a08ed7b8f61.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/graphql/get.md b/docs/examples/1.2.x/server-nodejs/examples/graphql/get.md index 841fe0f6e1d..9f8bdd27393 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/graphql/get.md +++ b/docs/examples/1.2.x/server-nodejs/examples/graphql/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/graphql/mutation.md b/docs/examples/1.2.x/server-nodejs/examples/graphql/mutation.md index 6f9bed84260..f8f2da769c8 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/graphql/mutation.md +++ b/docs/examples/1.2.x/server-nodejs/examples/graphql/mutation.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/graphql/query.md b/docs/examples/1.2.x/server-nodejs/examples/graphql/query.md index 35cd4060cc1..0f30d77e99d 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/graphql/query.md +++ b/docs/examples/1.2.x/server-nodejs/examples/graphql/query.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/health/get-antivirus.md b/docs/examples/1.2.x/server-nodejs/examples/health/get-antivirus.md index b6e5e78a306..516d19c0759 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/health/get-antivirus.md +++ b/docs/examples/1.2.x/server-nodejs/examples/health/get-antivirus.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/health/get-cache.md b/docs/examples/1.2.x/server-nodejs/examples/health/get-cache.md index 8171c40fc6a..84dd5b07ce4 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/health/get-cache.md +++ b/docs/examples/1.2.x/server-nodejs/examples/health/get-cache.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/health/get-d-b.md b/docs/examples/1.2.x/server-nodejs/examples/health/get-d-b.md index ef1739fff0a..ce5ba7b8dcc 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/health/get-d-b.md +++ b/docs/examples/1.2.x/server-nodejs/examples/health/get-d-b.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-certificates.md b/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-certificates.md index 38dadde1b24..c89318fc384 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-certificates.md +++ b/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-certificates.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-functions.md b/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-functions.md index bc8668eda65..52d3a2e80c0 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-functions.md +++ b/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-functions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-logs.md b/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-logs.md index 918a9d9e6ce..86b9fe0fb4f 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-logs.md +++ b/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-logs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-webhooks.md b/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-webhooks.md index acf023a1886..ee73f37ef6c 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.2.x/server-nodejs/examples/health/get-queue-webhooks.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/health/get-storage-local.md b/docs/examples/1.2.x/server-nodejs/examples/health/get-storage-local.md index 76e51489fdf..d41559c5f10 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/health/get-storage-local.md +++ b/docs/examples/1.2.x/server-nodejs/examples/health/get-storage-local.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/health/get-time.md b/docs/examples/1.2.x/server-nodejs/examples/health/get-time.md index f44836ac3c2..e3d70a93ff9 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/health/get-time.md +++ b/docs/examples/1.2.x/server-nodejs/examples/health/get-time.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/health/get.md b/docs/examples/1.2.x/server-nodejs/examples/health/get.md index a66b25631fd..1198b186247 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/health/get.md +++ b/docs/examples/1.2.x/server-nodejs/examples/health/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/locale/get.md b/docs/examples/1.2.x/server-nodejs/examples/locale/get.md index 31d90c6f117..27befec21ab 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/locale/get.md +++ b/docs/examples/1.2.x/server-nodejs/examples/locale/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/locale/list-continents.md b/docs/examples/1.2.x/server-nodejs/examples/locale/list-continents.md index ffe54d34da7..346f552a14c 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/locale/list-continents.md +++ b/docs/examples/1.2.x/server-nodejs/examples/locale/list-continents.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries-e-u.md index f9aaff666a0..627c350f8e4 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries-e-u.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries-phones.md index fdd2436dc0f..0a0965ab539 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries-phones.md +++ b/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries-phones.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries.md b/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries.md index 429e1887762..857b7da7cf2 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries.md +++ b/docs/examples/1.2.x/server-nodejs/examples/locale/list-countries.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/locale/list-currencies.md b/docs/examples/1.2.x/server-nodejs/examples/locale/list-currencies.md index 12d82fb70f5..017b5faebfa 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/locale/list-currencies.md +++ b/docs/examples/1.2.x/server-nodejs/examples/locale/list-currencies.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/locale/list-languages.md b/docs/examples/1.2.x/server-nodejs/examples/locale/list-languages.md index 8ea2b40afc5..716a44c3300 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/locale/list-languages.md +++ b/docs/examples/1.2.x/server-nodejs/examples/locale/list-languages.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/create-bucket.md b/docs/examples/1.2.x/server-nodejs/examples/storage/create-bucket.md index 9093b7c9a6d..51e0b05acb8 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/create-bucket.md +++ b/docs/examples/1.2.x/server-nodejs/examples/storage/create-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/create-file.md b/docs/examples/1.2.x/server-nodejs/examples/storage/create-file.md index 664005e2732..be561320dbd 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/create-file.md +++ b/docs/examples/1.2.x/server-nodejs/examples/storage/create-file.md @@ -7,7 +7,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/delete-bucket.md b/docs/examples/1.2.x/server-nodejs/examples/storage/delete-bucket.md index 84486c68dc4..e3368facf10 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/delete-bucket.md +++ b/docs/examples/1.2.x/server-nodejs/examples/storage/delete-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/delete-file.md b/docs/examples/1.2.x/server-nodejs/examples/storage/delete-file.md index c4d451c63f7..d90be0a77e6 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/delete-file.md +++ b/docs/examples/1.2.x/server-nodejs/examples/storage/delete-file.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/get-bucket.md b/docs/examples/1.2.x/server-nodejs/examples/storage/get-bucket.md index d0fbb94bbcc..b176e6e5755 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/get-bucket.md +++ b/docs/examples/1.2.x/server-nodejs/examples/storage/get-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-download.md b/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-download.md index 1503d102ba2..4ad79175d26 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-download.md +++ b/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-download.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-preview.md b/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-preview.md index 19d34495ba9..164a1c63771 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-preview.md +++ b/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-preview.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-view.md b/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-view.md index 1affab8bc09..a8d5029bd0c 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-view.md +++ b/docs/examples/1.2.x/server-nodejs/examples/storage/get-file-view.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/get-file.md b/docs/examples/1.2.x/server-nodejs/examples/storage/get-file.md index ceba42ce1e9..06f43878e87 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/get-file.md +++ b/docs/examples/1.2.x/server-nodejs/examples/storage/get-file.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/list-buckets.md b/docs/examples/1.2.x/server-nodejs/examples/storage/list-buckets.md index 9945febb421..b989a0748f7 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/list-buckets.md +++ b/docs/examples/1.2.x/server-nodejs/examples/storage/list-buckets.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/list-files.md b/docs/examples/1.2.x/server-nodejs/examples/storage/list-files.md index fea4bae61f7..4bce540ec4a 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/list-files.md +++ b/docs/examples/1.2.x/server-nodejs/examples/storage/list-files.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/update-bucket.md b/docs/examples/1.2.x/server-nodejs/examples/storage/update-bucket.md index 32df1f18d8c..9cab2ca26cb 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/update-bucket.md +++ b/docs/examples/1.2.x/server-nodejs/examples/storage/update-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/storage/update-file.md b/docs/examples/1.2.x/server-nodejs/examples/storage/update-file.md index 042a1645016..aa67cf0f0e9 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/storage/update-file.md +++ b/docs/examples/1.2.x/server-nodejs/examples/storage/update-file.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/create-membership.md b/docs/examples/1.2.x/server-nodejs/examples/teams/create-membership.md index 74b1d3fd1d9..492c6b0d9c7 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/create-membership.md +++ b/docs/examples/1.2.x/server-nodejs/examples/teams/create-membership.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/create.md b/docs/examples/1.2.x/server-nodejs/examples/teams/create.md index 5552f829f9b..a99a2cf3f7e 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/create.md +++ b/docs/examples/1.2.x/server-nodejs/examples/teams/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/delete-membership.md b/docs/examples/1.2.x/server-nodejs/examples/teams/delete-membership.md index ef72e63138d..2df3e41f366 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/delete-membership.md +++ b/docs/examples/1.2.x/server-nodejs/examples/teams/delete-membership.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/delete.md b/docs/examples/1.2.x/server-nodejs/examples/teams/delete.md index 6f1dfaa61d0..ad358748155 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/delete.md +++ b/docs/examples/1.2.x/server-nodejs/examples/teams/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/get-membership.md b/docs/examples/1.2.x/server-nodejs/examples/teams/get-membership.md index d31aa9a8b61..d2e12d6ef6f 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/get-membership.md +++ b/docs/examples/1.2.x/server-nodejs/examples/teams/get-membership.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/get.md b/docs/examples/1.2.x/server-nodejs/examples/teams/get.md index 0d349432428..d162cdceeb8 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/get.md +++ b/docs/examples/1.2.x/server-nodejs/examples/teams/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/list-memberships.md b/docs/examples/1.2.x/server-nodejs/examples/teams/list-memberships.md index ca25bcbd257..9ff92c68ff1 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/list-memberships.md +++ b/docs/examples/1.2.x/server-nodejs/examples/teams/list-memberships.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/list.md b/docs/examples/1.2.x/server-nodejs/examples/teams/list.md index 8610bc7dc43..e3ad03e16ef 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/list.md +++ b/docs/examples/1.2.x/server-nodejs/examples/teams/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/server-nodejs/examples/teams/update-membership-roles.md index 26551fe0b64..93b0f23aba6 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/update-membership-roles.md +++ b/docs/examples/1.2.x/server-nodejs/examples/teams/update-membership-roles.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/update-membership-status.md b/docs/examples/1.2.x/server-nodejs/examples/teams/update-membership-status.md index 6c46e786a08..b3c4b64f096 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/update-membership-status.md +++ b/docs/examples/1.2.x/server-nodejs/examples/teams/update-membership-status.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/teams/update.md b/docs/examples/1.2.x/server-nodejs/examples/teams/update.md index 8192c224f3c..2f518f4afd6 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/teams/update.md +++ b/docs/examples/1.2.x/server-nodejs/examples/teams/update.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/create-argon2user.md b/docs/examples/1.2.x/server-nodejs/examples/users/create-argon2user.md index 2762cc0112c..17403fa2296 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/create-argon2user.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/create-argon2user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/create-bcrypt-user.md b/docs/examples/1.2.x/server-nodejs/examples/users/create-bcrypt-user.md index 7bbdd3b883b..90f2efe43af 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/create-bcrypt-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/create-m-d5user.md b/docs/examples/1.2.x/server-nodejs/examples/users/create-m-d5user.md index 0661743da22..fdbc0f30403 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/create-m-d5user.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/create-m-d5user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/create-p-h-pass-user.md b/docs/examples/1.2.x/server-nodejs/examples/users/create-p-h-pass-user.md index 37bd7e70c54..70789ec2dd1 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/create-p-h-pass-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/create-s-h-a-user.md b/docs/examples/1.2.x/server-nodejs/examples/users/create-s-h-a-user.md index 1d0502598b6..5b96402710e 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/create-s-h-a-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/server-nodejs/examples/users/create-scrypt-modified-user.md index 5a0153ec9a2..ffbab8e176f 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/create-scrypt-modified-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/create-scrypt-user.md b/docs/examples/1.2.x/server-nodejs/examples/users/create-scrypt-user.md index 83ec8d3d787..ae10dc5eee2 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/create-scrypt-user.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/create-scrypt-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/create.md b/docs/examples/1.2.x/server-nodejs/examples/users/create.md index 65ab3fae413..ceb01f37353 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/create.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/delete-session.md b/docs/examples/1.2.x/server-nodejs/examples/users/delete-session.md index 18617ba2e8a..c5ad8e39fda 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/delete-session.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/delete-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/delete-sessions.md b/docs/examples/1.2.x/server-nodejs/examples/users/delete-sessions.md index c804d7ddcff..7265c131f82 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/delete-sessions.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/delete-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/delete.md b/docs/examples/1.2.x/server-nodejs/examples/users/delete.md index 53606a7a0ae..a1e694a3dec 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/delete.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/get-prefs.md b/docs/examples/1.2.x/server-nodejs/examples/users/get-prefs.md index c60db8ac770..4683f2fe245 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/get-prefs.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/get-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/get.md b/docs/examples/1.2.x/server-nodejs/examples/users/get.md index 3bad599d4d9..27fd6b74643 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/get.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/list-logs.md b/docs/examples/1.2.x/server-nodejs/examples/users/list-logs.md index 0f76626c6e8..40a1c8c8ba8 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/list-logs.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/list-logs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/list-memberships.md b/docs/examples/1.2.x/server-nodejs/examples/users/list-memberships.md index 81e0c4bc8fc..6a83ec28576 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/list-memberships.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/list-memberships.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/list-sessions.md b/docs/examples/1.2.x/server-nodejs/examples/users/list-sessions.md index b44341bcbe4..17d38f8c0e5 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/list-sessions.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/list-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/list.md b/docs/examples/1.2.x/server-nodejs/examples/users/list.md index a9ba208d2ed..016df4aa37b 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/list.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/update-email-verification.md b/docs/examples/1.2.x/server-nodejs/examples/users/update-email-verification.md index 29c3e26593c..c48ca4426e5 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/update-email-verification.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/update-email-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/update-email.md b/docs/examples/1.2.x/server-nodejs/examples/users/update-email.md index 5cef6fb5ec8..726d191e8d2 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/update-email.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/update-email.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/update-name.md b/docs/examples/1.2.x/server-nodejs/examples/users/update-name.md index ea33b7ed513..49140677fd0 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/update-name.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/update-name.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/update-password.md b/docs/examples/1.2.x/server-nodejs/examples/users/update-password.md index e655eea2de1..d95cf5fb54d 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/update-password.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/update-password.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/update-phone-verification.md b/docs/examples/1.2.x/server-nodejs/examples/users/update-phone-verification.md index e6a95f93f87..bb2ddeccf71 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/update-phone-verification.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/update-phone-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/update-phone.md b/docs/examples/1.2.x/server-nodejs/examples/users/update-phone.md index 8db9863c00a..6957b6d666c 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/update-phone.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/update-phone.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/update-prefs.md b/docs/examples/1.2.x/server-nodejs/examples/users/update-prefs.md index 75f1a4298c2..643ebee2204 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/update-prefs.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/update-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-nodejs/examples/users/update-status.md b/docs/examples/1.2.x/server-nodejs/examples/users/update-status.md index ac52d732ea0..1b914dba72f 100644 --- a/docs/examples/1.2.x/server-nodejs/examples/users/update-status.md +++ b/docs/examples/1.2.x/server-nodejs/examples/users/update-status.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/account/create-phone-verification.md b/docs/examples/1.2.x/server-php/examples/account/create-phone-verification.md index 1c41a30ce8d..30d16371745 100644 --- a/docs/examples/1.2.x/server-php/examples/account/create-phone-verification.md +++ b/docs/examples/1.2.x/server-php/examples/account/create-phone-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/create-recovery.md b/docs/examples/1.2.x/server-php/examples/account/create-recovery.md index 8ca78fc37bb..513037c533e 100644 --- a/docs/examples/1.2.x/server-php/examples/account/create-recovery.md +++ b/docs/examples/1.2.x/server-php/examples/account/create-recovery.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/create-verification.md b/docs/examples/1.2.x/server-php/examples/account/create-verification.md index 92fb38151c4..4785065601a 100644 --- a/docs/examples/1.2.x/server-php/examples/account/create-verification.md +++ b/docs/examples/1.2.x/server-php/examples/account/create-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/delete-session.md b/docs/examples/1.2.x/server-php/examples/account/delete-session.md index 51bf3e2d414..74847d73b76 100644 --- a/docs/examples/1.2.x/server-php/examples/account/delete-session.md +++ b/docs/examples/1.2.x/server-php/examples/account/delete-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/delete-sessions.md b/docs/examples/1.2.x/server-php/examples/account/delete-sessions.md index bf3bc2a3008..af4b46dbb67 100644 --- a/docs/examples/1.2.x/server-php/examples/account/delete-sessions.md +++ b/docs/examples/1.2.x/server-php/examples/account/delete-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/get-prefs.md b/docs/examples/1.2.x/server-php/examples/account/get-prefs.md index a91b888723a..50ffc766d38 100644 --- a/docs/examples/1.2.x/server-php/examples/account/get-prefs.md +++ b/docs/examples/1.2.x/server-php/examples/account/get-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/get-session.md b/docs/examples/1.2.x/server-php/examples/account/get-session.md index 9e2341ce084..e2112ee4cd6 100644 --- a/docs/examples/1.2.x/server-php/examples/account/get-session.md +++ b/docs/examples/1.2.x/server-php/examples/account/get-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/get.md b/docs/examples/1.2.x/server-php/examples/account/get.md index 4333bf2e734..b9361063ce7 100644 --- a/docs/examples/1.2.x/server-php/examples/account/get.md +++ b/docs/examples/1.2.x/server-php/examples/account/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/list-logs.md b/docs/examples/1.2.x/server-php/examples/account/list-logs.md index 62bc86d6681..1283d9cfd46 100644 --- a/docs/examples/1.2.x/server-php/examples/account/list-logs.md +++ b/docs/examples/1.2.x/server-php/examples/account/list-logs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/list-sessions.md b/docs/examples/1.2.x/server-php/examples/account/list-sessions.md index 7942a3de2a7..a07d303fe9b 100644 --- a/docs/examples/1.2.x/server-php/examples/account/list-sessions.md +++ b/docs/examples/1.2.x/server-php/examples/account/list-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/update-email.md b/docs/examples/1.2.x/server-php/examples/account/update-email.md index a7ac5ede7d2..a6bf5f6c241 100644 --- a/docs/examples/1.2.x/server-php/examples/account/update-email.md +++ b/docs/examples/1.2.x/server-php/examples/account/update-email.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/update-name.md b/docs/examples/1.2.x/server-php/examples/account/update-name.md index 21bac949002..17f51894123 100644 --- a/docs/examples/1.2.x/server-php/examples/account/update-name.md +++ b/docs/examples/1.2.x/server-php/examples/account/update-name.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/update-password.md b/docs/examples/1.2.x/server-php/examples/account/update-password.md index 11c6b48041d..4b17a818d2a 100644 --- a/docs/examples/1.2.x/server-php/examples/account/update-password.md +++ b/docs/examples/1.2.x/server-php/examples/account/update-password.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/update-phone-verification.md b/docs/examples/1.2.x/server-php/examples/account/update-phone-verification.md index 02458727a5a..466f5164645 100644 --- a/docs/examples/1.2.x/server-php/examples/account/update-phone-verification.md +++ b/docs/examples/1.2.x/server-php/examples/account/update-phone-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/update-phone.md b/docs/examples/1.2.x/server-php/examples/account/update-phone.md index eaa18985123..75947cdf536 100644 --- a/docs/examples/1.2.x/server-php/examples/account/update-phone.md +++ b/docs/examples/1.2.x/server-php/examples/account/update-phone.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/update-prefs.md b/docs/examples/1.2.x/server-php/examples/account/update-prefs.md index 96d0be57816..f7687416f2b 100644 --- a/docs/examples/1.2.x/server-php/examples/account/update-prefs.md +++ b/docs/examples/1.2.x/server-php/examples/account/update-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/update-recovery.md b/docs/examples/1.2.x/server-php/examples/account/update-recovery.md index 379b219e6d2..0f8285654b9 100644 --- a/docs/examples/1.2.x/server-php/examples/account/update-recovery.md +++ b/docs/examples/1.2.x/server-php/examples/account/update-recovery.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/update-session.md b/docs/examples/1.2.x/server-php/examples/account/update-session.md index 462be6b914c..264e6b6435a 100644 --- a/docs/examples/1.2.x/server-php/examples/account/update-session.md +++ b/docs/examples/1.2.x/server-php/examples/account/update-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/update-status.md b/docs/examples/1.2.x/server-php/examples/account/update-status.md index b1a1f2c8ec9..ecfb4b56faa 100644 --- a/docs/examples/1.2.x/server-php/examples/account/update-status.md +++ b/docs/examples/1.2.x/server-php/examples/account/update-status.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/account/update-verification.md b/docs/examples/1.2.x/server-php/examples/account/update-verification.md index ad583a422e8..81a86041fda 100644 --- a/docs/examples/1.2.x/server-php/examples/account/update-verification.md +++ b/docs/examples/1.2.x/server-php/examples/account/update-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/avatars/get-browser.md b/docs/examples/1.2.x/server-php/examples/avatars/get-browser.md index 362106f645d..dc92f02acfa 100644 --- a/docs/examples/1.2.x/server-php/examples/avatars/get-browser.md +++ b/docs/examples/1.2.x/server-php/examples/avatars/get-browser.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/server-php/examples/avatars/get-credit-card.md index c85ebeac2eb..6808432f42d 100644 --- a/docs/examples/1.2.x/server-php/examples/avatars/get-credit-card.md +++ b/docs/examples/1.2.x/server-php/examples/avatars/get-credit-card.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/avatars/get-favicon.md b/docs/examples/1.2.x/server-php/examples/avatars/get-favicon.md index 088524e0519..4266898e6ae 100644 --- a/docs/examples/1.2.x/server-php/examples/avatars/get-favicon.md +++ b/docs/examples/1.2.x/server-php/examples/avatars/get-favicon.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/avatars/get-flag.md b/docs/examples/1.2.x/server-php/examples/avatars/get-flag.md index 2f2705b61fb..df76fff7d8b 100644 --- a/docs/examples/1.2.x/server-php/examples/avatars/get-flag.md +++ b/docs/examples/1.2.x/server-php/examples/avatars/get-flag.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/avatars/get-image.md b/docs/examples/1.2.x/server-php/examples/avatars/get-image.md index d576232a42c..bc0b285de54 100644 --- a/docs/examples/1.2.x/server-php/examples/avatars/get-image.md +++ b/docs/examples/1.2.x/server-php/examples/avatars/get-image.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/avatars/get-initials.md b/docs/examples/1.2.x/server-php/examples/avatars/get-initials.md index 4e924c70624..eafe65f3d77 100644 --- a/docs/examples/1.2.x/server-php/examples/avatars/get-initials.md +++ b/docs/examples/1.2.x/server-php/examples/avatars/get-initials.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/avatars/get-q-r.md b/docs/examples/1.2.x/server-php/examples/avatars/get-q-r.md index fde6e35b77a..ff2bbf4a385 100644 --- a/docs/examples/1.2.x/server-php/examples/avatars/get-q-r.md +++ b/docs/examples/1.2.x/server-php/examples/avatars/get-q-r.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-boolean-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/create-boolean-attribute.md index 17c92241b4a..7ea50ba3788 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.2.x/server-php/examples/databases/create-boolean-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-collection.md b/docs/examples/1.2.x/server-php/examples/databases/create-collection.md index 2fd5fb61c07..7bf6139f45c 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/create-collection.md +++ b/docs/examples/1.2.x/server-php/examples/databases/create-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-datetime-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/create-datetime-attribute.md index 284163c266e..8cff5f18974 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.2.x/server-php/examples/databases/create-datetime-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-document.md b/docs/examples/1.2.x/server-php/examples/databases/create-document.md index 509160b9ad6..b5ed74d1d85 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/create-document.md +++ b/docs/examples/1.2.x/server-php/examples/databases/create-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-email-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/create-email-attribute.md index df68be7fb02..2fef5160db4 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/create-email-attribute.md +++ b/docs/examples/1.2.x/server-php/examples/databases/create-email-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-enum-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/create-enum-attribute.md index c469679fd73..baeeb8edfbf 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.2.x/server-php/examples/databases/create-enum-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-float-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/create-float-attribute.md index c182d0a7744..177647813c0 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/create-float-attribute.md +++ b/docs/examples/1.2.x/server-php/examples/databases/create-float-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-index.md b/docs/examples/1.2.x/server-php/examples/databases/create-index.md index 6ecd4cc58b8..4046c511a79 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/create-index.md +++ b/docs/examples/1.2.x/server-php/examples/databases/create-index.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-integer-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/create-integer-attribute.md index d86ca7056bf..8e5c54ec5ac 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.2.x/server-php/examples/databases/create-integer-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-ip-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/create-ip-attribute.md index 823fa994827..fe55cfe2040 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.2.x/server-php/examples/databases/create-ip-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-string-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/create-string-attribute.md index 50abd0a18db..7be05ee07ef 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/create-string-attribute.md +++ b/docs/examples/1.2.x/server-php/examples/databases/create-string-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/create-url-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/create-url-attribute.md index 5520cb13341..2380d74c43e 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/create-url-attribute.md +++ b/docs/examples/1.2.x/server-php/examples/databases/create-url-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/create.md b/docs/examples/1.2.x/server-php/examples/databases/create.md index 16176b9b40b..f05690391aa 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/create.md +++ b/docs/examples/1.2.x/server-php/examples/databases/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/delete-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/delete-attribute.md index d89c7de4f72..e46374ca423 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/delete-attribute.md +++ b/docs/examples/1.2.x/server-php/examples/databases/delete-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/delete-collection.md b/docs/examples/1.2.x/server-php/examples/databases/delete-collection.md index 29c627bbf0d..f5ffb2c75a4 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/delete-collection.md +++ b/docs/examples/1.2.x/server-php/examples/databases/delete-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/delete-document.md b/docs/examples/1.2.x/server-php/examples/databases/delete-document.md index 9d5f1f0d516..523d3b5e0e3 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/delete-document.md +++ b/docs/examples/1.2.x/server-php/examples/databases/delete-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/delete-index.md b/docs/examples/1.2.x/server-php/examples/databases/delete-index.md index 073aa3a82e1..5739f5ce6b5 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/delete-index.md +++ b/docs/examples/1.2.x/server-php/examples/databases/delete-index.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/delete.md b/docs/examples/1.2.x/server-php/examples/databases/delete.md index 3dab79bc99f..0cc8b06106e 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/delete.md +++ b/docs/examples/1.2.x/server-php/examples/databases/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/get-attribute.md b/docs/examples/1.2.x/server-php/examples/databases/get-attribute.md index c286a7692af..5a109b7594f 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/get-attribute.md +++ b/docs/examples/1.2.x/server-php/examples/databases/get-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/get-collection.md b/docs/examples/1.2.x/server-php/examples/databases/get-collection.md index 7cc578df8d7..6d665e46018 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/get-collection.md +++ b/docs/examples/1.2.x/server-php/examples/databases/get-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/get-document.md b/docs/examples/1.2.x/server-php/examples/databases/get-document.md index 7637e035e23..0397d6cbd55 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/get-document.md +++ b/docs/examples/1.2.x/server-php/examples/databases/get-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/get-index.md b/docs/examples/1.2.x/server-php/examples/databases/get-index.md index a674a5935e9..ff39044a1fa 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/get-index.md +++ b/docs/examples/1.2.x/server-php/examples/databases/get-index.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/get.md b/docs/examples/1.2.x/server-php/examples/databases/get.md index adc415f9a51..f87400b7dd0 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/get.md +++ b/docs/examples/1.2.x/server-php/examples/databases/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/list-attributes.md b/docs/examples/1.2.x/server-php/examples/databases/list-attributes.md index 424c4b2405c..decd3939449 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/list-attributes.md +++ b/docs/examples/1.2.x/server-php/examples/databases/list-attributes.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/list-collections.md b/docs/examples/1.2.x/server-php/examples/databases/list-collections.md index 3f311f31385..7c0810a073b 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/list-collections.md +++ b/docs/examples/1.2.x/server-php/examples/databases/list-collections.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/list-documents.md b/docs/examples/1.2.x/server-php/examples/databases/list-documents.md index c9a6bbe4ff5..c2a1d47d2a6 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/list-documents.md +++ b/docs/examples/1.2.x/server-php/examples/databases/list-documents.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/list-indexes.md b/docs/examples/1.2.x/server-php/examples/databases/list-indexes.md index 733d20b9338..ecf4797d654 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/list-indexes.md +++ b/docs/examples/1.2.x/server-php/examples/databases/list-indexes.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/list.md b/docs/examples/1.2.x/server-php/examples/databases/list.md index 45963718d3b..6882d17e977 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/list.md +++ b/docs/examples/1.2.x/server-php/examples/databases/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/update-collection.md b/docs/examples/1.2.x/server-php/examples/databases/update-collection.md index 878bf209865..9eedede688b 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/update-collection.md +++ b/docs/examples/1.2.x/server-php/examples/databases/update-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/update-document.md b/docs/examples/1.2.x/server-php/examples/databases/update-document.md index 796e4600eb7..56310e155f8 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/update-document.md +++ b/docs/examples/1.2.x/server-php/examples/databases/update-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/databases/update.md b/docs/examples/1.2.x/server-php/examples/databases/update.md index db1ae7688e8..b1f0589be9a 100644 --- a/docs/examples/1.2.x/server-php/examples/databases/update.md +++ b/docs/examples/1.2.x/server-php/examples/databases/update.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/create-build.md b/docs/examples/1.2.x/server-php/examples/functions/create-build.md index ac66cc2eb25..cc83570c3a0 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/create-build.md +++ b/docs/examples/1.2.x/server-php/examples/functions/create-build.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/create-deployment.md b/docs/examples/1.2.x/server-php/examples/functions/create-deployment.md index a556cace24d..f23873acb8f 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/create-deployment.md +++ b/docs/examples/1.2.x/server-php/examples/functions/create-deployment.md @@ -7,7 +7,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/create-execution.md b/docs/examples/1.2.x/server-php/examples/functions/create-execution.md index 038126a728c..bc6138825ff 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/create-execution.md +++ b/docs/examples/1.2.x/server-php/examples/functions/create-execution.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/create-variable.md b/docs/examples/1.2.x/server-php/examples/functions/create-variable.md index f09e61861ee..57244ec1f45 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/create-variable.md +++ b/docs/examples/1.2.x/server-php/examples/functions/create-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/create.md b/docs/examples/1.2.x/server-php/examples/functions/create.md index 7fef274c7dd..29da02c1822 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/create.md +++ b/docs/examples/1.2.x/server-php/examples/functions/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/delete-deployment.md b/docs/examples/1.2.x/server-php/examples/functions/delete-deployment.md index 7227cd995f5..bbc65aada12 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/delete-deployment.md +++ b/docs/examples/1.2.x/server-php/examples/functions/delete-deployment.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/delete-variable.md b/docs/examples/1.2.x/server-php/examples/functions/delete-variable.md index a457846492b..42376a0e9f8 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/delete-variable.md +++ b/docs/examples/1.2.x/server-php/examples/functions/delete-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/delete.md b/docs/examples/1.2.x/server-php/examples/functions/delete.md index d06c732f57d..2abe85b75d8 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/delete.md +++ b/docs/examples/1.2.x/server-php/examples/functions/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/get-deployment.md b/docs/examples/1.2.x/server-php/examples/functions/get-deployment.md index 4c4fe49eb3b..19f4d58392c 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/get-deployment.md +++ b/docs/examples/1.2.x/server-php/examples/functions/get-deployment.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/get-execution.md b/docs/examples/1.2.x/server-php/examples/functions/get-execution.md index ff59dc1cfeb..994f2be976f 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/get-execution.md +++ b/docs/examples/1.2.x/server-php/examples/functions/get-execution.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/get-variable.md b/docs/examples/1.2.x/server-php/examples/functions/get-variable.md index e80b8f9fc0d..34012f9fbbc 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/get-variable.md +++ b/docs/examples/1.2.x/server-php/examples/functions/get-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/get.md b/docs/examples/1.2.x/server-php/examples/functions/get.md index aef58062590..2f5e69b142c 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/get.md +++ b/docs/examples/1.2.x/server-php/examples/functions/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/list-deployments.md b/docs/examples/1.2.x/server-php/examples/functions/list-deployments.md index 366e5fdc71f..db4524430b0 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/list-deployments.md +++ b/docs/examples/1.2.x/server-php/examples/functions/list-deployments.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/list-executions.md b/docs/examples/1.2.x/server-php/examples/functions/list-executions.md index 34a80ad434d..f431a4a9374 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/list-executions.md +++ b/docs/examples/1.2.x/server-php/examples/functions/list-executions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/list-runtimes.md b/docs/examples/1.2.x/server-php/examples/functions/list-runtimes.md index b35dadfec97..23089ec3ea4 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/list-runtimes.md +++ b/docs/examples/1.2.x/server-php/examples/functions/list-runtimes.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/list-variables.md b/docs/examples/1.2.x/server-php/examples/functions/list-variables.md index cf742891573..aa84e28a6d7 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/list-variables.md +++ b/docs/examples/1.2.x/server-php/examples/functions/list-variables.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/list.md b/docs/examples/1.2.x/server-php/examples/functions/list.md index f57875572e0..05925721359 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/list.md +++ b/docs/examples/1.2.x/server-php/examples/functions/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/update-deployment.md b/docs/examples/1.2.x/server-php/examples/functions/update-deployment.md index b5f09cd0180..3e259458ffc 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/update-deployment.md +++ b/docs/examples/1.2.x/server-php/examples/functions/update-deployment.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/update-variable.md b/docs/examples/1.2.x/server-php/examples/functions/update-variable.md index 4eb52d94d3f..f1952d8b5ce 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/update-variable.md +++ b/docs/examples/1.2.x/server-php/examples/functions/update-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/functions/update.md b/docs/examples/1.2.x/server-php/examples/functions/update.md index 52f15eecb70..2b3d587887f 100644 --- a/docs/examples/1.2.x/server-php/examples/functions/update.md +++ b/docs/examples/1.2.x/server-php/examples/functions/update.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/graphql/63a08ed7b8f61.md b/docs/examples/1.2.x/server-php/examples/graphql/63a08ed7b8f61.md index 92013016295..08987244c5d 100644 --- a/docs/examples/1.2.x/server-php/examples/graphql/63a08ed7b8f61.md +++ b/docs/examples/1.2.x/server-php/examples/graphql/63a08ed7b8f61.md @@ -6,7 +6,7 @@ use Appwrite\Services\Graphql; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/graphql/get.md b/docs/examples/1.2.x/server-php/examples/graphql/get.md index 950096be81e..7edc12727c2 100644 --- a/docs/examples/1.2.x/server-php/examples/graphql/get.md +++ b/docs/examples/1.2.x/server-php/examples/graphql/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Graphql; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/graphql/mutation.md b/docs/examples/1.2.x/server-php/examples/graphql/mutation.md index 5622f7f2699..f75d53e86c4 100644 --- a/docs/examples/1.2.x/server-php/examples/graphql/mutation.md +++ b/docs/examples/1.2.x/server-php/examples/graphql/mutation.md @@ -6,7 +6,7 @@ use Appwrite\Services\Graphql; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/graphql/query.md b/docs/examples/1.2.x/server-php/examples/graphql/query.md index 3ca1d940c49..369dcbd47e5 100644 --- a/docs/examples/1.2.x/server-php/examples/graphql/query.md +++ b/docs/examples/1.2.x/server-php/examples/graphql/query.md @@ -6,7 +6,7 @@ use Appwrite\Services\Graphql; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/health/get-antivirus.md b/docs/examples/1.2.x/server-php/examples/health/get-antivirus.md index 4f1483514b7..f31c642d9f7 100644 --- a/docs/examples/1.2.x/server-php/examples/health/get-antivirus.md +++ b/docs/examples/1.2.x/server-php/examples/health/get-antivirus.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/health/get-cache.md b/docs/examples/1.2.x/server-php/examples/health/get-cache.md index 3d1b19b3ef7..90cc8d86868 100644 --- a/docs/examples/1.2.x/server-php/examples/health/get-cache.md +++ b/docs/examples/1.2.x/server-php/examples/health/get-cache.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/health/get-d-b.md b/docs/examples/1.2.x/server-php/examples/health/get-d-b.md index c03ba23723a..1ff93f4707a 100644 --- a/docs/examples/1.2.x/server-php/examples/health/get-d-b.md +++ b/docs/examples/1.2.x/server-php/examples/health/get-d-b.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/health/get-queue-certificates.md b/docs/examples/1.2.x/server-php/examples/health/get-queue-certificates.md index 76236de7b59..e58ba39c47b 100644 --- a/docs/examples/1.2.x/server-php/examples/health/get-queue-certificates.md +++ b/docs/examples/1.2.x/server-php/examples/health/get-queue-certificates.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/health/get-queue-functions.md b/docs/examples/1.2.x/server-php/examples/health/get-queue-functions.md index 31f65de1d12..699b4d390cd 100644 --- a/docs/examples/1.2.x/server-php/examples/health/get-queue-functions.md +++ b/docs/examples/1.2.x/server-php/examples/health/get-queue-functions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/health/get-queue-logs.md b/docs/examples/1.2.x/server-php/examples/health/get-queue-logs.md index ff1adb2a416..f55e8611766 100644 --- a/docs/examples/1.2.x/server-php/examples/health/get-queue-logs.md +++ b/docs/examples/1.2.x/server-php/examples/health/get-queue-logs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/health/get-queue-webhooks.md b/docs/examples/1.2.x/server-php/examples/health/get-queue-webhooks.md index 99592bcface..838f442822b 100644 --- a/docs/examples/1.2.x/server-php/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.2.x/server-php/examples/health/get-queue-webhooks.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/health/get-storage-local.md b/docs/examples/1.2.x/server-php/examples/health/get-storage-local.md index 55212c36aeb..f156c7a6fe5 100644 --- a/docs/examples/1.2.x/server-php/examples/health/get-storage-local.md +++ b/docs/examples/1.2.x/server-php/examples/health/get-storage-local.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/health/get-time.md b/docs/examples/1.2.x/server-php/examples/health/get-time.md index 54101247869..2efbd2d2377 100644 --- a/docs/examples/1.2.x/server-php/examples/health/get-time.md +++ b/docs/examples/1.2.x/server-php/examples/health/get-time.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/health/get.md b/docs/examples/1.2.x/server-php/examples/health/get.md index 62cab8acf2a..9a080c8e4d6 100644 --- a/docs/examples/1.2.x/server-php/examples/health/get.md +++ b/docs/examples/1.2.x/server-php/examples/health/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/locale/get.md b/docs/examples/1.2.x/server-php/examples/locale/get.md index c4910463c59..3a8e04cc538 100644 --- a/docs/examples/1.2.x/server-php/examples/locale/get.md +++ b/docs/examples/1.2.x/server-php/examples/locale/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/locale/list-continents.md b/docs/examples/1.2.x/server-php/examples/locale/list-continents.md index 9cd8fb13998..1103c8b847c 100644 --- a/docs/examples/1.2.x/server-php/examples/locale/list-continents.md +++ b/docs/examples/1.2.x/server-php/examples/locale/list-continents.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/server-php/examples/locale/list-countries-e-u.md index 1f2ef98c963..7ad6b052996 100644 --- a/docs/examples/1.2.x/server-php/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.2.x/server-php/examples/locale/list-countries-e-u.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/server-php/examples/locale/list-countries-phones.md index 6f8acb7467d..3f5154c98c9 100644 --- a/docs/examples/1.2.x/server-php/examples/locale/list-countries-phones.md +++ b/docs/examples/1.2.x/server-php/examples/locale/list-countries-phones.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/locale/list-countries.md b/docs/examples/1.2.x/server-php/examples/locale/list-countries.md index 28c518e82a6..4abf4cc4919 100644 --- a/docs/examples/1.2.x/server-php/examples/locale/list-countries.md +++ b/docs/examples/1.2.x/server-php/examples/locale/list-countries.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/locale/list-currencies.md b/docs/examples/1.2.x/server-php/examples/locale/list-currencies.md index 37784f3d1ee..8b115f898ce 100644 --- a/docs/examples/1.2.x/server-php/examples/locale/list-currencies.md +++ b/docs/examples/1.2.x/server-php/examples/locale/list-currencies.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/locale/list-languages.md b/docs/examples/1.2.x/server-php/examples/locale/list-languages.md index 8b4f082cb0b..74347ff87b2 100644 --- a/docs/examples/1.2.x/server-php/examples/locale/list-languages.md +++ b/docs/examples/1.2.x/server-php/examples/locale/list-languages.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/storage/create-bucket.md b/docs/examples/1.2.x/server-php/examples/storage/create-bucket.md index bf54c22a471..3e43cd52b4e 100644 --- a/docs/examples/1.2.x/server-php/examples/storage/create-bucket.md +++ b/docs/examples/1.2.x/server-php/examples/storage/create-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/storage/create-file.md b/docs/examples/1.2.x/server-php/examples/storage/create-file.md index e2cfce7ae92..3c0fc4c71f1 100644 --- a/docs/examples/1.2.x/server-php/examples/storage/create-file.md +++ b/docs/examples/1.2.x/server-php/examples/storage/create-file.md @@ -7,7 +7,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/storage/delete-bucket.md b/docs/examples/1.2.x/server-php/examples/storage/delete-bucket.md index b3659b6276f..bfae9b70a7b 100644 --- a/docs/examples/1.2.x/server-php/examples/storage/delete-bucket.md +++ b/docs/examples/1.2.x/server-php/examples/storage/delete-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/storage/delete-file.md b/docs/examples/1.2.x/server-php/examples/storage/delete-file.md index 00db8551b37..5fb21e02103 100644 --- a/docs/examples/1.2.x/server-php/examples/storage/delete-file.md +++ b/docs/examples/1.2.x/server-php/examples/storage/delete-file.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/storage/get-bucket.md b/docs/examples/1.2.x/server-php/examples/storage/get-bucket.md index d4d152aff49..e816ef192fd 100644 --- a/docs/examples/1.2.x/server-php/examples/storage/get-bucket.md +++ b/docs/examples/1.2.x/server-php/examples/storage/get-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/storage/get-file-download.md b/docs/examples/1.2.x/server-php/examples/storage/get-file-download.md index 0c7fefda37f..9a181f70070 100644 --- a/docs/examples/1.2.x/server-php/examples/storage/get-file-download.md +++ b/docs/examples/1.2.x/server-php/examples/storage/get-file-download.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/storage/get-file-preview.md b/docs/examples/1.2.x/server-php/examples/storage/get-file-preview.md index c1b91e5c295..d30c0ec450c 100644 --- a/docs/examples/1.2.x/server-php/examples/storage/get-file-preview.md +++ b/docs/examples/1.2.x/server-php/examples/storage/get-file-preview.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/storage/get-file-view.md b/docs/examples/1.2.x/server-php/examples/storage/get-file-view.md index f527c1b7440..983fb0c52fa 100644 --- a/docs/examples/1.2.x/server-php/examples/storage/get-file-view.md +++ b/docs/examples/1.2.x/server-php/examples/storage/get-file-view.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/storage/get-file.md b/docs/examples/1.2.x/server-php/examples/storage/get-file.md index cb56c96a428..799e1192d06 100644 --- a/docs/examples/1.2.x/server-php/examples/storage/get-file.md +++ b/docs/examples/1.2.x/server-php/examples/storage/get-file.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/storage/list-buckets.md b/docs/examples/1.2.x/server-php/examples/storage/list-buckets.md index b92dc82bcbe..235cc8f9b63 100644 --- a/docs/examples/1.2.x/server-php/examples/storage/list-buckets.md +++ b/docs/examples/1.2.x/server-php/examples/storage/list-buckets.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/storage/list-files.md b/docs/examples/1.2.x/server-php/examples/storage/list-files.md index e0b79186e45..12b697fc81e 100644 --- a/docs/examples/1.2.x/server-php/examples/storage/list-files.md +++ b/docs/examples/1.2.x/server-php/examples/storage/list-files.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/storage/update-bucket.md b/docs/examples/1.2.x/server-php/examples/storage/update-bucket.md index 5e46dfc83bb..6985651b9bf 100644 --- a/docs/examples/1.2.x/server-php/examples/storage/update-bucket.md +++ b/docs/examples/1.2.x/server-php/examples/storage/update-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/storage/update-file.md b/docs/examples/1.2.x/server-php/examples/storage/update-file.md index 1d3e01e99a9..6dc64b1f5ba 100644 --- a/docs/examples/1.2.x/server-php/examples/storage/update-file.md +++ b/docs/examples/1.2.x/server-php/examples/storage/update-file.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/teams/create-membership.md b/docs/examples/1.2.x/server-php/examples/teams/create-membership.md index 60d3d3dc6fd..0c2c684b72d 100644 --- a/docs/examples/1.2.x/server-php/examples/teams/create-membership.md +++ b/docs/examples/1.2.x/server-php/examples/teams/create-membership.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/teams/create.md b/docs/examples/1.2.x/server-php/examples/teams/create.md index e5efe49b302..551922be145 100644 --- a/docs/examples/1.2.x/server-php/examples/teams/create.md +++ b/docs/examples/1.2.x/server-php/examples/teams/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/teams/delete-membership.md b/docs/examples/1.2.x/server-php/examples/teams/delete-membership.md index 2b40c1742e2..5d070ee09c6 100644 --- a/docs/examples/1.2.x/server-php/examples/teams/delete-membership.md +++ b/docs/examples/1.2.x/server-php/examples/teams/delete-membership.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/teams/delete.md b/docs/examples/1.2.x/server-php/examples/teams/delete.md index 5ec2ed995c9..009c7eee2ec 100644 --- a/docs/examples/1.2.x/server-php/examples/teams/delete.md +++ b/docs/examples/1.2.x/server-php/examples/teams/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/teams/get-membership.md b/docs/examples/1.2.x/server-php/examples/teams/get-membership.md index fdd3024783d..f23b8a7eb0e 100644 --- a/docs/examples/1.2.x/server-php/examples/teams/get-membership.md +++ b/docs/examples/1.2.x/server-php/examples/teams/get-membership.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/teams/get.md b/docs/examples/1.2.x/server-php/examples/teams/get.md index 94b8a2695a7..b7b4a43ac6f 100644 --- a/docs/examples/1.2.x/server-php/examples/teams/get.md +++ b/docs/examples/1.2.x/server-php/examples/teams/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/teams/list-memberships.md b/docs/examples/1.2.x/server-php/examples/teams/list-memberships.md index f23b78eca10..3a15fd91bea 100644 --- a/docs/examples/1.2.x/server-php/examples/teams/list-memberships.md +++ b/docs/examples/1.2.x/server-php/examples/teams/list-memberships.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/teams/list.md b/docs/examples/1.2.x/server-php/examples/teams/list.md index 66f54b6e1c9..970b2b08d25 100644 --- a/docs/examples/1.2.x/server-php/examples/teams/list.md +++ b/docs/examples/1.2.x/server-php/examples/teams/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/server-php/examples/teams/update-membership-roles.md index 59239975519..c744578712f 100644 --- a/docs/examples/1.2.x/server-php/examples/teams/update-membership-roles.md +++ b/docs/examples/1.2.x/server-php/examples/teams/update-membership-roles.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/teams/update-membership-status.md b/docs/examples/1.2.x/server-php/examples/teams/update-membership-status.md index 15504ad4215..0d0a1258863 100644 --- a/docs/examples/1.2.x/server-php/examples/teams/update-membership-status.md +++ b/docs/examples/1.2.x/server-php/examples/teams/update-membership-status.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.2.x/server-php/examples/teams/update.md b/docs/examples/1.2.x/server-php/examples/teams/update.md index 267112cc130..91634f6f8f8 100644 --- a/docs/examples/1.2.x/server-php/examples/teams/update.md +++ b/docs/examples/1.2.x/server-php/examples/teams/update.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/create-argon2user.md b/docs/examples/1.2.x/server-php/examples/users/create-argon2user.md index 1036ca109e1..83bc0408277 100644 --- a/docs/examples/1.2.x/server-php/examples/users/create-argon2user.md +++ b/docs/examples/1.2.x/server-php/examples/users/create-argon2user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/create-bcrypt-user.md b/docs/examples/1.2.x/server-php/examples/users/create-bcrypt-user.md index de15110a4ed..ce1e2d5633b 100644 --- a/docs/examples/1.2.x/server-php/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.2.x/server-php/examples/users/create-bcrypt-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/create-m-d5user.md b/docs/examples/1.2.x/server-php/examples/users/create-m-d5user.md index 15f4ebe0aab..d78ffa24d4f 100644 --- a/docs/examples/1.2.x/server-php/examples/users/create-m-d5user.md +++ b/docs/examples/1.2.x/server-php/examples/users/create-m-d5user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/create-p-h-pass-user.md b/docs/examples/1.2.x/server-php/examples/users/create-p-h-pass-user.md index 2eb682fc42f..097636038a6 100644 --- a/docs/examples/1.2.x/server-php/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.2.x/server-php/examples/users/create-p-h-pass-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/create-s-h-a-user.md b/docs/examples/1.2.x/server-php/examples/users/create-s-h-a-user.md index 3e63bd99282..ab5df354cc8 100644 --- a/docs/examples/1.2.x/server-php/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.2.x/server-php/examples/users/create-s-h-a-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/server-php/examples/users/create-scrypt-modified-user.md index bcf7c52cd59..bb71afe901d 100644 --- a/docs/examples/1.2.x/server-php/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.2.x/server-php/examples/users/create-scrypt-modified-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/create-scrypt-user.md b/docs/examples/1.2.x/server-php/examples/users/create-scrypt-user.md index 43a4bcc2e2a..563268784da 100644 --- a/docs/examples/1.2.x/server-php/examples/users/create-scrypt-user.md +++ b/docs/examples/1.2.x/server-php/examples/users/create-scrypt-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/create.md b/docs/examples/1.2.x/server-php/examples/users/create.md index dab8a5ed708..67ab2660eb9 100644 --- a/docs/examples/1.2.x/server-php/examples/users/create.md +++ b/docs/examples/1.2.x/server-php/examples/users/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/delete-session.md b/docs/examples/1.2.x/server-php/examples/users/delete-session.md index c6a507c7b20..6ce035a739b 100644 --- a/docs/examples/1.2.x/server-php/examples/users/delete-session.md +++ b/docs/examples/1.2.x/server-php/examples/users/delete-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/delete-sessions.md b/docs/examples/1.2.x/server-php/examples/users/delete-sessions.md index 570d258683f..a4a07242bde 100644 --- a/docs/examples/1.2.x/server-php/examples/users/delete-sessions.md +++ b/docs/examples/1.2.x/server-php/examples/users/delete-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/delete.md b/docs/examples/1.2.x/server-php/examples/users/delete.md index 1d5a822fde0..63279e1b46e 100644 --- a/docs/examples/1.2.x/server-php/examples/users/delete.md +++ b/docs/examples/1.2.x/server-php/examples/users/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/get-prefs.md b/docs/examples/1.2.x/server-php/examples/users/get-prefs.md index e9c8c58bf36..d52706530e1 100644 --- a/docs/examples/1.2.x/server-php/examples/users/get-prefs.md +++ b/docs/examples/1.2.x/server-php/examples/users/get-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/get.md b/docs/examples/1.2.x/server-php/examples/users/get.md index 51482d37eb0..5f84f327db0 100644 --- a/docs/examples/1.2.x/server-php/examples/users/get.md +++ b/docs/examples/1.2.x/server-php/examples/users/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/list-logs.md b/docs/examples/1.2.x/server-php/examples/users/list-logs.md index e6287563c2d..d5166c0b668 100644 --- a/docs/examples/1.2.x/server-php/examples/users/list-logs.md +++ b/docs/examples/1.2.x/server-php/examples/users/list-logs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/list-memberships.md b/docs/examples/1.2.x/server-php/examples/users/list-memberships.md index 039216bc1ec..84ebf8e8a13 100644 --- a/docs/examples/1.2.x/server-php/examples/users/list-memberships.md +++ b/docs/examples/1.2.x/server-php/examples/users/list-memberships.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/list-sessions.md b/docs/examples/1.2.x/server-php/examples/users/list-sessions.md index e09b65d475c..100df65a488 100644 --- a/docs/examples/1.2.x/server-php/examples/users/list-sessions.md +++ b/docs/examples/1.2.x/server-php/examples/users/list-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/list.md b/docs/examples/1.2.x/server-php/examples/users/list.md index 8d86e863728..30929b467b7 100644 --- a/docs/examples/1.2.x/server-php/examples/users/list.md +++ b/docs/examples/1.2.x/server-php/examples/users/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/update-email-verification.md b/docs/examples/1.2.x/server-php/examples/users/update-email-verification.md index 67c3e12ee0b..6b0b5b0d4c2 100644 --- a/docs/examples/1.2.x/server-php/examples/users/update-email-verification.md +++ b/docs/examples/1.2.x/server-php/examples/users/update-email-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/update-email.md b/docs/examples/1.2.x/server-php/examples/users/update-email.md index c6a7412b893..fe35bf057e4 100644 --- a/docs/examples/1.2.x/server-php/examples/users/update-email.md +++ b/docs/examples/1.2.x/server-php/examples/users/update-email.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/update-name.md b/docs/examples/1.2.x/server-php/examples/users/update-name.md index 598ef2a3a2c..838f4367586 100644 --- a/docs/examples/1.2.x/server-php/examples/users/update-name.md +++ b/docs/examples/1.2.x/server-php/examples/users/update-name.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/update-password.md b/docs/examples/1.2.x/server-php/examples/users/update-password.md index a4632c19849..bd0e3283368 100644 --- a/docs/examples/1.2.x/server-php/examples/users/update-password.md +++ b/docs/examples/1.2.x/server-php/examples/users/update-password.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/update-phone-verification.md b/docs/examples/1.2.x/server-php/examples/users/update-phone-verification.md index e9929a547b6..e18b57274aa 100644 --- a/docs/examples/1.2.x/server-php/examples/users/update-phone-verification.md +++ b/docs/examples/1.2.x/server-php/examples/users/update-phone-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/update-phone.md b/docs/examples/1.2.x/server-php/examples/users/update-phone.md index 0df380a23a9..610b3a65e75 100644 --- a/docs/examples/1.2.x/server-php/examples/users/update-phone.md +++ b/docs/examples/1.2.x/server-php/examples/users/update-phone.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/update-prefs.md b/docs/examples/1.2.x/server-php/examples/users/update-prefs.md index 9c4ebaae2b5..6aaa9451d64 100644 --- a/docs/examples/1.2.x/server-php/examples/users/update-prefs.md +++ b/docs/examples/1.2.x/server-php/examples/users/update-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-php/examples/users/update-status.md b/docs/examples/1.2.x/server-php/examples/users/update-status.md index ad3f6bde79b..dbe489de72f 100644 --- a/docs/examples/1.2.x/server-php/examples/users/update-status.md +++ b/docs/examples/1.2.x/server-php/examples/users/update-status.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.2.x/server-python/examples/account/create-phone-verification.md b/docs/examples/1.2.x/server-python/examples/account/create-phone-verification.md index 2203cdbd0ca..1e8670084d2 100644 --- a/docs/examples/1.2.x/server-python/examples/account/create-phone-verification.md +++ b/docs/examples/1.2.x/server-python/examples/account/create-phone-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/create-recovery.md b/docs/examples/1.2.x/server-python/examples/account/create-recovery.md index 21130fef6db..c86108ff4ee 100644 --- a/docs/examples/1.2.x/server-python/examples/account/create-recovery.md +++ b/docs/examples/1.2.x/server-python/examples/account/create-recovery.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/create-verification.md b/docs/examples/1.2.x/server-python/examples/account/create-verification.md index c45d0d462e0..0bc3954565b 100644 --- a/docs/examples/1.2.x/server-python/examples/account/create-verification.md +++ b/docs/examples/1.2.x/server-python/examples/account/create-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/delete-session.md b/docs/examples/1.2.x/server-python/examples/account/delete-session.md index 8095cdc07fe..449a7861695 100644 --- a/docs/examples/1.2.x/server-python/examples/account/delete-session.md +++ b/docs/examples/1.2.x/server-python/examples/account/delete-session.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/delete-sessions.md b/docs/examples/1.2.x/server-python/examples/account/delete-sessions.md index 1728d61e67d..4f208b93a6c 100644 --- a/docs/examples/1.2.x/server-python/examples/account/delete-sessions.md +++ b/docs/examples/1.2.x/server-python/examples/account/delete-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/get-prefs.md b/docs/examples/1.2.x/server-python/examples/account/get-prefs.md index da2fd7628e8..7063f0c3aa7 100644 --- a/docs/examples/1.2.x/server-python/examples/account/get-prefs.md +++ b/docs/examples/1.2.x/server-python/examples/account/get-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/get-session.md b/docs/examples/1.2.x/server-python/examples/account/get-session.md index 25b8f038373..def8838e19a 100644 --- a/docs/examples/1.2.x/server-python/examples/account/get-session.md +++ b/docs/examples/1.2.x/server-python/examples/account/get-session.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/get.md b/docs/examples/1.2.x/server-python/examples/account/get.md index f75bad7769d..d84d3785836 100644 --- a/docs/examples/1.2.x/server-python/examples/account/get.md +++ b/docs/examples/1.2.x/server-python/examples/account/get.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/list-logs.md b/docs/examples/1.2.x/server-python/examples/account/list-logs.md index 65802d8b0d3..601d243dca0 100644 --- a/docs/examples/1.2.x/server-python/examples/account/list-logs.md +++ b/docs/examples/1.2.x/server-python/examples/account/list-logs.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/list-sessions.md b/docs/examples/1.2.x/server-python/examples/account/list-sessions.md index 12d5c81d923..fcdfd857e72 100644 --- a/docs/examples/1.2.x/server-python/examples/account/list-sessions.md +++ b/docs/examples/1.2.x/server-python/examples/account/list-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/update-email.md b/docs/examples/1.2.x/server-python/examples/account/update-email.md index f4a6776f725..a2e393ae4ae 100644 --- a/docs/examples/1.2.x/server-python/examples/account/update-email.md +++ b/docs/examples/1.2.x/server-python/examples/account/update-email.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/update-name.md b/docs/examples/1.2.x/server-python/examples/account/update-name.md index eb1eb6279b1..b56296cb211 100644 --- a/docs/examples/1.2.x/server-python/examples/account/update-name.md +++ b/docs/examples/1.2.x/server-python/examples/account/update-name.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/update-password.md b/docs/examples/1.2.x/server-python/examples/account/update-password.md index 81bc8bbfc38..7adf938ac6a 100644 --- a/docs/examples/1.2.x/server-python/examples/account/update-password.md +++ b/docs/examples/1.2.x/server-python/examples/account/update-password.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/update-phone-verification.md b/docs/examples/1.2.x/server-python/examples/account/update-phone-verification.md index f2a75b4de95..dcba4273c4c 100644 --- a/docs/examples/1.2.x/server-python/examples/account/update-phone-verification.md +++ b/docs/examples/1.2.x/server-python/examples/account/update-phone-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/update-phone.md b/docs/examples/1.2.x/server-python/examples/account/update-phone.md index aaee1f7eecb..0f6470619ee 100644 --- a/docs/examples/1.2.x/server-python/examples/account/update-phone.md +++ b/docs/examples/1.2.x/server-python/examples/account/update-phone.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/update-prefs.md b/docs/examples/1.2.x/server-python/examples/account/update-prefs.md index e96546b05a1..64e32cee2ab 100644 --- a/docs/examples/1.2.x/server-python/examples/account/update-prefs.md +++ b/docs/examples/1.2.x/server-python/examples/account/update-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/update-recovery.md b/docs/examples/1.2.x/server-python/examples/account/update-recovery.md index b4ea8aa89c6..2bb9b10d2c3 100644 --- a/docs/examples/1.2.x/server-python/examples/account/update-recovery.md +++ b/docs/examples/1.2.x/server-python/examples/account/update-recovery.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/update-session.md b/docs/examples/1.2.x/server-python/examples/account/update-session.md index e7234f78015..16ea0183035 100644 --- a/docs/examples/1.2.x/server-python/examples/account/update-session.md +++ b/docs/examples/1.2.x/server-python/examples/account/update-session.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/update-status.md b/docs/examples/1.2.x/server-python/examples/account/update-status.md index 5924d4d54f9..877b8743d14 100644 --- a/docs/examples/1.2.x/server-python/examples/account/update-status.md +++ b/docs/examples/1.2.x/server-python/examples/account/update-status.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/account/update-verification.md b/docs/examples/1.2.x/server-python/examples/account/update-verification.md index 9a410a54a80..e2aecaa1174 100644 --- a/docs/examples/1.2.x/server-python/examples/account/update-verification.md +++ b/docs/examples/1.2.x/server-python/examples/account/update-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/avatars/get-browser.md b/docs/examples/1.2.x/server-python/examples/avatars/get-browser.md index 9ed56d1d4bc..e29ebcd84d7 100644 --- a/docs/examples/1.2.x/server-python/examples/avatars/get-browser.md +++ b/docs/examples/1.2.x/server-python/examples/avatars/get-browser.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/server-python/examples/avatars/get-credit-card.md index 9fa6b0fd1f5..3006186d811 100644 --- a/docs/examples/1.2.x/server-python/examples/avatars/get-credit-card.md +++ b/docs/examples/1.2.x/server-python/examples/avatars/get-credit-card.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/avatars/get-favicon.md b/docs/examples/1.2.x/server-python/examples/avatars/get-favicon.md index 75b0315eae2..b860e801ce4 100644 --- a/docs/examples/1.2.x/server-python/examples/avatars/get-favicon.md +++ b/docs/examples/1.2.x/server-python/examples/avatars/get-favicon.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/avatars/get-flag.md b/docs/examples/1.2.x/server-python/examples/avatars/get-flag.md index 70d2e5f2428..055feb42821 100644 --- a/docs/examples/1.2.x/server-python/examples/avatars/get-flag.md +++ b/docs/examples/1.2.x/server-python/examples/avatars/get-flag.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/avatars/get-image.md b/docs/examples/1.2.x/server-python/examples/avatars/get-image.md index 35015d9620f..1cd0bd01641 100644 --- a/docs/examples/1.2.x/server-python/examples/avatars/get-image.md +++ b/docs/examples/1.2.x/server-python/examples/avatars/get-image.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/avatars/get-initials.md b/docs/examples/1.2.x/server-python/examples/avatars/get-initials.md index 639fa03bc91..9e7e5d2c18d 100644 --- a/docs/examples/1.2.x/server-python/examples/avatars/get-initials.md +++ b/docs/examples/1.2.x/server-python/examples/avatars/get-initials.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/avatars/get-q-r.md b/docs/examples/1.2.x/server-python/examples/avatars/get-q-r.md index 27fc8e29241..b3c3e728ab0 100644 --- a/docs/examples/1.2.x/server-python/examples/avatars/get-q-r.md +++ b/docs/examples/1.2.x/server-python/examples/avatars/get-q-r.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-boolean-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/create-boolean-attribute.md index f073d3d3b37..e0f333caabe 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.2.x/server-python/examples/databases/create-boolean-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-collection.md b/docs/examples/1.2.x/server-python/examples/databases/create-collection.md index 183c55c4486..ad704dea3d4 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/create-collection.md +++ b/docs/examples/1.2.x/server-python/examples/databases/create-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-datetime-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/create-datetime-attribute.md index 5c77689c991..8325de82304 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.2.x/server-python/examples/databases/create-datetime-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-document.md b/docs/examples/1.2.x/server-python/examples/databases/create-document.md index aa95de9ebd5..c712b11bdde 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/create-document.md +++ b/docs/examples/1.2.x/server-python/examples/databases/create-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-email-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/create-email-attribute.md index 92cdcb2a8fa..05397d6ab06 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/create-email-attribute.md +++ b/docs/examples/1.2.x/server-python/examples/databases/create-email-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-enum-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/create-enum-attribute.md index df66f128962..21e46357902 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.2.x/server-python/examples/databases/create-enum-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-float-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/create-float-attribute.md index 0bfe4248eb6..b7493dfcedb 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/create-float-attribute.md +++ b/docs/examples/1.2.x/server-python/examples/databases/create-float-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-index.md b/docs/examples/1.2.x/server-python/examples/databases/create-index.md index 78a7d3327e7..2237a7397e7 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/create-index.md +++ b/docs/examples/1.2.x/server-python/examples/databases/create-index.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-integer-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/create-integer-attribute.md index b3cce2bde48..b8a213bc219 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.2.x/server-python/examples/databases/create-integer-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-ip-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/create-ip-attribute.md index 967d284b9a9..85f1cd5b00e 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.2.x/server-python/examples/databases/create-ip-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-string-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/create-string-attribute.md index 00bbbe9ce74..1992f71e443 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/create-string-attribute.md +++ b/docs/examples/1.2.x/server-python/examples/databases/create-string-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create-url-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/create-url-attribute.md index fd5b7f44e37..49e2cbf68c5 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/create-url-attribute.md +++ b/docs/examples/1.2.x/server-python/examples/databases/create-url-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/create.md b/docs/examples/1.2.x/server-python/examples/databases/create.md index e4a832066b1..7c1f63cb145 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/create.md +++ b/docs/examples/1.2.x/server-python/examples/databases/create.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/delete-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/delete-attribute.md index 41871b26622..7ca55adf156 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/delete-attribute.md +++ b/docs/examples/1.2.x/server-python/examples/databases/delete-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/delete-collection.md b/docs/examples/1.2.x/server-python/examples/databases/delete-collection.md index 998bb61fb90..af37479be2e 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/delete-collection.md +++ b/docs/examples/1.2.x/server-python/examples/databases/delete-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/delete-document.md b/docs/examples/1.2.x/server-python/examples/databases/delete-document.md index 605b087b7c2..6a3a3588c68 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/delete-document.md +++ b/docs/examples/1.2.x/server-python/examples/databases/delete-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/delete-index.md b/docs/examples/1.2.x/server-python/examples/databases/delete-index.md index a53e06c0242..5f32135c3b6 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/delete-index.md +++ b/docs/examples/1.2.x/server-python/examples/databases/delete-index.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/delete.md b/docs/examples/1.2.x/server-python/examples/databases/delete.md index 780e1451efb..594f357bbf5 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/delete.md +++ b/docs/examples/1.2.x/server-python/examples/databases/delete.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/get-attribute.md b/docs/examples/1.2.x/server-python/examples/databases/get-attribute.md index 0a6105272ad..b855fbc6003 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/get-attribute.md +++ b/docs/examples/1.2.x/server-python/examples/databases/get-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/get-collection.md b/docs/examples/1.2.x/server-python/examples/databases/get-collection.md index 90f57a366c6..5d176dd2c5d 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/get-collection.md +++ b/docs/examples/1.2.x/server-python/examples/databases/get-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/get-document.md b/docs/examples/1.2.x/server-python/examples/databases/get-document.md index 708538418e3..7a11da3c273 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/get-document.md +++ b/docs/examples/1.2.x/server-python/examples/databases/get-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/get-index.md b/docs/examples/1.2.x/server-python/examples/databases/get-index.md index 3213c666604..6c376c69071 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/get-index.md +++ b/docs/examples/1.2.x/server-python/examples/databases/get-index.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/get.md b/docs/examples/1.2.x/server-python/examples/databases/get.md index 93a46b3fa4d..c8906fc9aff 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/get.md +++ b/docs/examples/1.2.x/server-python/examples/databases/get.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/list-attributes.md b/docs/examples/1.2.x/server-python/examples/databases/list-attributes.md index 632202c8947..3c173668a4a 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/list-attributes.md +++ b/docs/examples/1.2.x/server-python/examples/databases/list-attributes.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/list-collections.md b/docs/examples/1.2.x/server-python/examples/databases/list-collections.md index d0c98dad97e..197229e3081 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/list-collections.md +++ b/docs/examples/1.2.x/server-python/examples/databases/list-collections.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/list-documents.md b/docs/examples/1.2.x/server-python/examples/databases/list-documents.md index 5eb03b2658f..01cc594d98a 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/list-documents.md +++ b/docs/examples/1.2.x/server-python/examples/databases/list-documents.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/list-indexes.md b/docs/examples/1.2.x/server-python/examples/databases/list-indexes.md index b4224be62c8..f65545454b2 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/list-indexes.md +++ b/docs/examples/1.2.x/server-python/examples/databases/list-indexes.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/list.md b/docs/examples/1.2.x/server-python/examples/databases/list.md index 3aa6839d20e..117119439b7 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/list.md +++ b/docs/examples/1.2.x/server-python/examples/databases/list.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/update-collection.md b/docs/examples/1.2.x/server-python/examples/databases/update-collection.md index 4a38aab4d49..49c5c8154bf 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/update-collection.md +++ b/docs/examples/1.2.x/server-python/examples/databases/update-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/update-document.md b/docs/examples/1.2.x/server-python/examples/databases/update-document.md index c768c5403c3..fc6645bf9f4 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/update-document.md +++ b/docs/examples/1.2.x/server-python/examples/databases/update-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/databases/update.md b/docs/examples/1.2.x/server-python/examples/databases/update.md index d46692ece42..9e32a878888 100644 --- a/docs/examples/1.2.x/server-python/examples/databases/update.md +++ b/docs/examples/1.2.x/server-python/examples/databases/update.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/create-build.md b/docs/examples/1.2.x/server-python/examples/functions/create-build.md index 76888f8b16d..398973ce571 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/create-build.md +++ b/docs/examples/1.2.x/server-python/examples/functions/create-build.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/create-deployment.md b/docs/examples/1.2.x/server-python/examples/functions/create-deployment.md index d29c43f2583..859cc3745df 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/create-deployment.md +++ b/docs/examples/1.2.x/server-python/examples/functions/create-deployment.md @@ -5,7 +5,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/create-execution.md b/docs/examples/1.2.x/server-python/examples/functions/create-execution.md index 7c045225b3e..b4476dae982 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/create-execution.md +++ b/docs/examples/1.2.x/server-python/examples/functions/create-execution.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/create-variable.md b/docs/examples/1.2.x/server-python/examples/functions/create-variable.md index f33ed08a717..c24fb5c825b 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/create-variable.md +++ b/docs/examples/1.2.x/server-python/examples/functions/create-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/create.md b/docs/examples/1.2.x/server-python/examples/functions/create.md index 96fd409bd38..ca8198647c3 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/create.md +++ b/docs/examples/1.2.x/server-python/examples/functions/create.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/delete-deployment.md b/docs/examples/1.2.x/server-python/examples/functions/delete-deployment.md index 42d526eca99..2d186c10c6e 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/delete-deployment.md +++ b/docs/examples/1.2.x/server-python/examples/functions/delete-deployment.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/delete-variable.md b/docs/examples/1.2.x/server-python/examples/functions/delete-variable.md index cae0f2df9fd..d527ff09ce4 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/delete-variable.md +++ b/docs/examples/1.2.x/server-python/examples/functions/delete-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/delete.md b/docs/examples/1.2.x/server-python/examples/functions/delete.md index e89213ec7ab..585e2f9b105 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/delete.md +++ b/docs/examples/1.2.x/server-python/examples/functions/delete.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/get-deployment.md b/docs/examples/1.2.x/server-python/examples/functions/get-deployment.md index 6257b59d2e3..ccb30ccbb5b 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/get-deployment.md +++ b/docs/examples/1.2.x/server-python/examples/functions/get-deployment.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/get-execution.md b/docs/examples/1.2.x/server-python/examples/functions/get-execution.md index f0e4f0dc67a..110a7606667 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/get-execution.md +++ b/docs/examples/1.2.x/server-python/examples/functions/get-execution.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/get-variable.md b/docs/examples/1.2.x/server-python/examples/functions/get-variable.md index 4e71bff24fd..d6c445dc3f6 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/get-variable.md +++ b/docs/examples/1.2.x/server-python/examples/functions/get-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/get.md b/docs/examples/1.2.x/server-python/examples/functions/get.md index 30e1d5959af..4b1bbcf72fb 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/get.md +++ b/docs/examples/1.2.x/server-python/examples/functions/get.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/list-deployments.md b/docs/examples/1.2.x/server-python/examples/functions/list-deployments.md index d1797a18b3d..9f1eeef9780 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/list-deployments.md +++ b/docs/examples/1.2.x/server-python/examples/functions/list-deployments.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/list-executions.md b/docs/examples/1.2.x/server-python/examples/functions/list-executions.md index d70f004478b..0491ff2b3dd 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/list-executions.md +++ b/docs/examples/1.2.x/server-python/examples/functions/list-executions.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/list-runtimes.md b/docs/examples/1.2.x/server-python/examples/functions/list-runtimes.md index 19b85e23697..6255ce39865 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/list-runtimes.md +++ b/docs/examples/1.2.x/server-python/examples/functions/list-runtimes.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/list-variables.md b/docs/examples/1.2.x/server-python/examples/functions/list-variables.md index 9a72bba9f81..bdaa123e0eb 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/list-variables.md +++ b/docs/examples/1.2.x/server-python/examples/functions/list-variables.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/list.md b/docs/examples/1.2.x/server-python/examples/functions/list.md index b8442e5adee..6d05cc952ce 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/list.md +++ b/docs/examples/1.2.x/server-python/examples/functions/list.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/update-deployment.md b/docs/examples/1.2.x/server-python/examples/functions/update-deployment.md index 87dd09710fc..bb5eb869f90 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/update-deployment.md +++ b/docs/examples/1.2.x/server-python/examples/functions/update-deployment.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/update-variable.md b/docs/examples/1.2.x/server-python/examples/functions/update-variable.md index ab5b43abce1..4c98e068073 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/update-variable.md +++ b/docs/examples/1.2.x/server-python/examples/functions/update-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/functions/update.md b/docs/examples/1.2.x/server-python/examples/functions/update.md index ac7730e80a2..2e1d1325681 100644 --- a/docs/examples/1.2.x/server-python/examples/functions/update.md +++ b/docs/examples/1.2.x/server-python/examples/functions/update.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/graphql/63a08ed7b8f61.md b/docs/examples/1.2.x/server-python/examples/graphql/63a08ed7b8f61.md index e472dd8c9b3..0c4e035f174 100644 --- a/docs/examples/1.2.x/server-python/examples/graphql/63a08ed7b8f61.md +++ b/docs/examples/1.2.x/server-python/examples/graphql/63a08ed7b8f61.md @@ -4,7 +4,7 @@ from appwrite.services.graphql import Graphql client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/graphql/get.md b/docs/examples/1.2.x/server-python/examples/graphql/get.md index a3000b1555c..190739e9c0e 100644 --- a/docs/examples/1.2.x/server-python/examples/graphql/get.md +++ b/docs/examples/1.2.x/server-python/examples/graphql/get.md @@ -4,7 +4,7 @@ from appwrite.services.graphql import Graphql client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/graphql/mutation.md b/docs/examples/1.2.x/server-python/examples/graphql/mutation.md index 24226a5a013..9f43d0e5d1c 100644 --- a/docs/examples/1.2.x/server-python/examples/graphql/mutation.md +++ b/docs/examples/1.2.x/server-python/examples/graphql/mutation.md @@ -4,7 +4,7 @@ from appwrite.services.graphql import Graphql client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/graphql/query.md b/docs/examples/1.2.x/server-python/examples/graphql/query.md index 8e1597c7596..a7315f8d317 100644 --- a/docs/examples/1.2.x/server-python/examples/graphql/query.md +++ b/docs/examples/1.2.x/server-python/examples/graphql/query.md @@ -4,7 +4,7 @@ from appwrite.services.graphql import Graphql client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/health/get-antivirus.md b/docs/examples/1.2.x/server-python/examples/health/get-antivirus.md index fbfaf0e52ea..28372001042 100644 --- a/docs/examples/1.2.x/server-python/examples/health/get-antivirus.md +++ b/docs/examples/1.2.x/server-python/examples/health/get-antivirus.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/health/get-cache.md b/docs/examples/1.2.x/server-python/examples/health/get-cache.md index 40bc01000b1..44ac2fa9406 100644 --- a/docs/examples/1.2.x/server-python/examples/health/get-cache.md +++ b/docs/examples/1.2.x/server-python/examples/health/get-cache.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/health/get-d-b.md b/docs/examples/1.2.x/server-python/examples/health/get-d-b.md index 803dd73bd3f..7362e839169 100644 --- a/docs/examples/1.2.x/server-python/examples/health/get-d-b.md +++ b/docs/examples/1.2.x/server-python/examples/health/get-d-b.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/health/get-queue-certificates.md b/docs/examples/1.2.x/server-python/examples/health/get-queue-certificates.md index 4fb0266d117..fed14c831a0 100644 --- a/docs/examples/1.2.x/server-python/examples/health/get-queue-certificates.md +++ b/docs/examples/1.2.x/server-python/examples/health/get-queue-certificates.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/health/get-queue-functions.md b/docs/examples/1.2.x/server-python/examples/health/get-queue-functions.md index 92e4e2021df..96700cc2fd6 100644 --- a/docs/examples/1.2.x/server-python/examples/health/get-queue-functions.md +++ b/docs/examples/1.2.x/server-python/examples/health/get-queue-functions.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/health/get-queue-logs.md b/docs/examples/1.2.x/server-python/examples/health/get-queue-logs.md index b798ad73323..985309b9ffb 100644 --- a/docs/examples/1.2.x/server-python/examples/health/get-queue-logs.md +++ b/docs/examples/1.2.x/server-python/examples/health/get-queue-logs.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/health/get-queue-webhooks.md b/docs/examples/1.2.x/server-python/examples/health/get-queue-webhooks.md index 8406de1ff8f..62da17c248b 100644 --- a/docs/examples/1.2.x/server-python/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.2.x/server-python/examples/health/get-queue-webhooks.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/health/get-storage-local.md b/docs/examples/1.2.x/server-python/examples/health/get-storage-local.md index bb2533e27f7..297a6a5714b 100644 --- a/docs/examples/1.2.x/server-python/examples/health/get-storage-local.md +++ b/docs/examples/1.2.x/server-python/examples/health/get-storage-local.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/health/get-time.md b/docs/examples/1.2.x/server-python/examples/health/get-time.md index 9fe313dd5f3..0034705ed9c 100644 --- a/docs/examples/1.2.x/server-python/examples/health/get-time.md +++ b/docs/examples/1.2.x/server-python/examples/health/get-time.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/health/get.md b/docs/examples/1.2.x/server-python/examples/health/get.md index d3ff5943879..118be474f30 100644 --- a/docs/examples/1.2.x/server-python/examples/health/get.md +++ b/docs/examples/1.2.x/server-python/examples/health/get.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/locale/get.md b/docs/examples/1.2.x/server-python/examples/locale/get.md index 06b04f2f631..de81e967db7 100644 --- a/docs/examples/1.2.x/server-python/examples/locale/get.md +++ b/docs/examples/1.2.x/server-python/examples/locale/get.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/locale/list-continents.md b/docs/examples/1.2.x/server-python/examples/locale/list-continents.md index ba9c94f8a97..bcd150f5cd1 100644 --- a/docs/examples/1.2.x/server-python/examples/locale/list-continents.md +++ b/docs/examples/1.2.x/server-python/examples/locale/list-continents.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/server-python/examples/locale/list-countries-e-u.md index ea4c43cab6e..2dc40cd4877 100644 --- a/docs/examples/1.2.x/server-python/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.2.x/server-python/examples/locale/list-countries-e-u.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/server-python/examples/locale/list-countries-phones.md index 5a4cafe5200..b1b0773b3f5 100644 --- a/docs/examples/1.2.x/server-python/examples/locale/list-countries-phones.md +++ b/docs/examples/1.2.x/server-python/examples/locale/list-countries-phones.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/locale/list-countries.md b/docs/examples/1.2.x/server-python/examples/locale/list-countries.md index f8ec83c83ec..278a039bbde 100644 --- a/docs/examples/1.2.x/server-python/examples/locale/list-countries.md +++ b/docs/examples/1.2.x/server-python/examples/locale/list-countries.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/locale/list-currencies.md b/docs/examples/1.2.x/server-python/examples/locale/list-currencies.md index 347e81c54c3..077d7c393c3 100644 --- a/docs/examples/1.2.x/server-python/examples/locale/list-currencies.md +++ b/docs/examples/1.2.x/server-python/examples/locale/list-currencies.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/locale/list-languages.md b/docs/examples/1.2.x/server-python/examples/locale/list-languages.md index ce50a6efe77..9cc7c8f9758 100644 --- a/docs/examples/1.2.x/server-python/examples/locale/list-languages.md +++ b/docs/examples/1.2.x/server-python/examples/locale/list-languages.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/storage/create-bucket.md b/docs/examples/1.2.x/server-python/examples/storage/create-bucket.md index 72ffdccbd83..1955987f172 100644 --- a/docs/examples/1.2.x/server-python/examples/storage/create-bucket.md +++ b/docs/examples/1.2.x/server-python/examples/storage/create-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/storage/create-file.md b/docs/examples/1.2.x/server-python/examples/storage/create-file.md index b469b5bdd59..250f469290e 100644 --- a/docs/examples/1.2.x/server-python/examples/storage/create-file.md +++ b/docs/examples/1.2.x/server-python/examples/storage/create-file.md @@ -5,7 +5,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/storage/delete-bucket.md b/docs/examples/1.2.x/server-python/examples/storage/delete-bucket.md index 60dc1074fd0..c6c93435d02 100644 --- a/docs/examples/1.2.x/server-python/examples/storage/delete-bucket.md +++ b/docs/examples/1.2.x/server-python/examples/storage/delete-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/storage/delete-file.md b/docs/examples/1.2.x/server-python/examples/storage/delete-file.md index 9bed0af7846..accf6697bfc 100644 --- a/docs/examples/1.2.x/server-python/examples/storage/delete-file.md +++ b/docs/examples/1.2.x/server-python/examples/storage/delete-file.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/storage/get-bucket.md b/docs/examples/1.2.x/server-python/examples/storage/get-bucket.md index 7ea64f22aa8..4fd4e70b31e 100644 --- a/docs/examples/1.2.x/server-python/examples/storage/get-bucket.md +++ b/docs/examples/1.2.x/server-python/examples/storage/get-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/storage/get-file-download.md b/docs/examples/1.2.x/server-python/examples/storage/get-file-download.md index e9f5cce8249..ef57f109552 100644 --- a/docs/examples/1.2.x/server-python/examples/storage/get-file-download.md +++ b/docs/examples/1.2.x/server-python/examples/storage/get-file-download.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/storage/get-file-preview.md b/docs/examples/1.2.x/server-python/examples/storage/get-file-preview.md index 4e12291f136..c7b90b96558 100644 --- a/docs/examples/1.2.x/server-python/examples/storage/get-file-preview.md +++ b/docs/examples/1.2.x/server-python/examples/storage/get-file-preview.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/storage/get-file-view.md b/docs/examples/1.2.x/server-python/examples/storage/get-file-view.md index 01cbfafd260..bd8efc6e45b 100644 --- a/docs/examples/1.2.x/server-python/examples/storage/get-file-view.md +++ b/docs/examples/1.2.x/server-python/examples/storage/get-file-view.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/storage/get-file.md b/docs/examples/1.2.x/server-python/examples/storage/get-file.md index f83ed8aa619..e0013ba120a 100644 --- a/docs/examples/1.2.x/server-python/examples/storage/get-file.md +++ b/docs/examples/1.2.x/server-python/examples/storage/get-file.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/storage/list-buckets.md b/docs/examples/1.2.x/server-python/examples/storage/list-buckets.md index 204fd9598c2..450f876d92f 100644 --- a/docs/examples/1.2.x/server-python/examples/storage/list-buckets.md +++ b/docs/examples/1.2.x/server-python/examples/storage/list-buckets.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/storage/list-files.md b/docs/examples/1.2.x/server-python/examples/storage/list-files.md index 63101e215ec..05df2d00564 100644 --- a/docs/examples/1.2.x/server-python/examples/storage/list-files.md +++ b/docs/examples/1.2.x/server-python/examples/storage/list-files.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/storage/update-bucket.md b/docs/examples/1.2.x/server-python/examples/storage/update-bucket.md index fb1b76b222a..f47bfa3d0e8 100644 --- a/docs/examples/1.2.x/server-python/examples/storage/update-bucket.md +++ b/docs/examples/1.2.x/server-python/examples/storage/update-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/storage/update-file.md b/docs/examples/1.2.x/server-python/examples/storage/update-file.md index 24a92e36c62..3208e44d2f0 100644 --- a/docs/examples/1.2.x/server-python/examples/storage/update-file.md +++ b/docs/examples/1.2.x/server-python/examples/storage/update-file.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/teams/create-membership.md b/docs/examples/1.2.x/server-python/examples/teams/create-membership.md index f020627727c..ce04eeefa07 100644 --- a/docs/examples/1.2.x/server-python/examples/teams/create-membership.md +++ b/docs/examples/1.2.x/server-python/examples/teams/create-membership.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/teams/create.md b/docs/examples/1.2.x/server-python/examples/teams/create.md index c69012359f0..87e76cb0625 100644 --- a/docs/examples/1.2.x/server-python/examples/teams/create.md +++ b/docs/examples/1.2.x/server-python/examples/teams/create.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/teams/delete-membership.md b/docs/examples/1.2.x/server-python/examples/teams/delete-membership.md index f8d875986fe..7f5e4055d1f 100644 --- a/docs/examples/1.2.x/server-python/examples/teams/delete-membership.md +++ b/docs/examples/1.2.x/server-python/examples/teams/delete-membership.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/teams/delete.md b/docs/examples/1.2.x/server-python/examples/teams/delete.md index 4fc0fa44cca..651b861f03e 100644 --- a/docs/examples/1.2.x/server-python/examples/teams/delete.md +++ b/docs/examples/1.2.x/server-python/examples/teams/delete.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/teams/get-membership.md b/docs/examples/1.2.x/server-python/examples/teams/get-membership.md index e9c62ae3e34..3c351b16f78 100644 --- a/docs/examples/1.2.x/server-python/examples/teams/get-membership.md +++ b/docs/examples/1.2.x/server-python/examples/teams/get-membership.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/teams/get.md b/docs/examples/1.2.x/server-python/examples/teams/get.md index fdca2fc28fd..32100ad47f3 100644 --- a/docs/examples/1.2.x/server-python/examples/teams/get.md +++ b/docs/examples/1.2.x/server-python/examples/teams/get.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/teams/list-memberships.md b/docs/examples/1.2.x/server-python/examples/teams/list-memberships.md index 63e662a7a60..5001ae3e8aa 100644 --- a/docs/examples/1.2.x/server-python/examples/teams/list-memberships.md +++ b/docs/examples/1.2.x/server-python/examples/teams/list-memberships.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/teams/list.md b/docs/examples/1.2.x/server-python/examples/teams/list.md index e60cb60dab8..5a73d327661 100644 --- a/docs/examples/1.2.x/server-python/examples/teams/list.md +++ b/docs/examples/1.2.x/server-python/examples/teams/list.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/server-python/examples/teams/update-membership-roles.md index dcfd7a4e554..e161a33d5c6 100644 --- a/docs/examples/1.2.x/server-python/examples/teams/update-membership-roles.md +++ b/docs/examples/1.2.x/server-python/examples/teams/update-membership-roles.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/teams/update-membership-status.md b/docs/examples/1.2.x/server-python/examples/teams/update-membership-status.md index a6cd4cd45f5..f35f8f7792a 100644 --- a/docs/examples/1.2.x/server-python/examples/teams/update-membership-status.md +++ b/docs/examples/1.2.x/server-python/examples/teams/update-membership-status.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.2.x/server-python/examples/teams/update.md b/docs/examples/1.2.x/server-python/examples/teams/update.md index cabd1496c4c..6cfbcb069ff 100644 --- a/docs/examples/1.2.x/server-python/examples/teams/update.md +++ b/docs/examples/1.2.x/server-python/examples/teams/update.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/create-argon2user.md b/docs/examples/1.2.x/server-python/examples/users/create-argon2user.md index be1e8cef36c..63149881324 100644 --- a/docs/examples/1.2.x/server-python/examples/users/create-argon2user.md +++ b/docs/examples/1.2.x/server-python/examples/users/create-argon2user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/create-bcrypt-user.md b/docs/examples/1.2.x/server-python/examples/users/create-bcrypt-user.md index 77c9918879c..32632b9c1d4 100644 --- a/docs/examples/1.2.x/server-python/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.2.x/server-python/examples/users/create-bcrypt-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/create-m-d5user.md b/docs/examples/1.2.x/server-python/examples/users/create-m-d5user.md index f3ab3f84183..d2ecc0cc0b6 100644 --- a/docs/examples/1.2.x/server-python/examples/users/create-m-d5user.md +++ b/docs/examples/1.2.x/server-python/examples/users/create-m-d5user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/create-p-h-pass-user.md b/docs/examples/1.2.x/server-python/examples/users/create-p-h-pass-user.md index e715f47c145..7f4c6bcfd68 100644 --- a/docs/examples/1.2.x/server-python/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.2.x/server-python/examples/users/create-p-h-pass-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/create-s-h-a-user.md b/docs/examples/1.2.x/server-python/examples/users/create-s-h-a-user.md index 2a2db5a6736..17e4209ae78 100644 --- a/docs/examples/1.2.x/server-python/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.2.x/server-python/examples/users/create-s-h-a-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/server-python/examples/users/create-scrypt-modified-user.md index 0b42e98dc71..64b54170aea 100644 --- a/docs/examples/1.2.x/server-python/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.2.x/server-python/examples/users/create-scrypt-modified-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/create-scrypt-user.md b/docs/examples/1.2.x/server-python/examples/users/create-scrypt-user.md index b4456230183..9a934d5caef 100644 --- a/docs/examples/1.2.x/server-python/examples/users/create-scrypt-user.md +++ b/docs/examples/1.2.x/server-python/examples/users/create-scrypt-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/create.md b/docs/examples/1.2.x/server-python/examples/users/create.md index 05249c08eae..657449e3b1e 100644 --- a/docs/examples/1.2.x/server-python/examples/users/create.md +++ b/docs/examples/1.2.x/server-python/examples/users/create.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/delete-session.md b/docs/examples/1.2.x/server-python/examples/users/delete-session.md index 26b041db1d4..baba61e58b3 100644 --- a/docs/examples/1.2.x/server-python/examples/users/delete-session.md +++ b/docs/examples/1.2.x/server-python/examples/users/delete-session.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/delete-sessions.md b/docs/examples/1.2.x/server-python/examples/users/delete-sessions.md index dabe4f627d4..0c7f38ba8e4 100644 --- a/docs/examples/1.2.x/server-python/examples/users/delete-sessions.md +++ b/docs/examples/1.2.x/server-python/examples/users/delete-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/delete.md b/docs/examples/1.2.x/server-python/examples/users/delete.md index 7fdc77576b9..4a21cab6fd3 100644 --- a/docs/examples/1.2.x/server-python/examples/users/delete.md +++ b/docs/examples/1.2.x/server-python/examples/users/delete.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/get-prefs.md b/docs/examples/1.2.x/server-python/examples/users/get-prefs.md index 2bbaa88c59a..bf325a4fda8 100644 --- a/docs/examples/1.2.x/server-python/examples/users/get-prefs.md +++ b/docs/examples/1.2.x/server-python/examples/users/get-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/get.md b/docs/examples/1.2.x/server-python/examples/users/get.md index 463957d3941..7491d3db17e 100644 --- a/docs/examples/1.2.x/server-python/examples/users/get.md +++ b/docs/examples/1.2.x/server-python/examples/users/get.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/list-logs.md b/docs/examples/1.2.x/server-python/examples/users/list-logs.md index ca3a5eb8150..84dc775e04a 100644 --- a/docs/examples/1.2.x/server-python/examples/users/list-logs.md +++ b/docs/examples/1.2.x/server-python/examples/users/list-logs.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/list-memberships.md b/docs/examples/1.2.x/server-python/examples/users/list-memberships.md index 0dfb97afce7..d091789b8bc 100644 --- a/docs/examples/1.2.x/server-python/examples/users/list-memberships.md +++ b/docs/examples/1.2.x/server-python/examples/users/list-memberships.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/list-sessions.md b/docs/examples/1.2.x/server-python/examples/users/list-sessions.md index 5f8fbd68ea7..75e3383a141 100644 --- a/docs/examples/1.2.x/server-python/examples/users/list-sessions.md +++ b/docs/examples/1.2.x/server-python/examples/users/list-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/list.md b/docs/examples/1.2.x/server-python/examples/users/list.md index baaf42c5745..1f82be4b740 100644 --- a/docs/examples/1.2.x/server-python/examples/users/list.md +++ b/docs/examples/1.2.x/server-python/examples/users/list.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/update-email-verification.md b/docs/examples/1.2.x/server-python/examples/users/update-email-verification.md index 8be33ad97f3..2828171035c 100644 --- a/docs/examples/1.2.x/server-python/examples/users/update-email-verification.md +++ b/docs/examples/1.2.x/server-python/examples/users/update-email-verification.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/update-email.md b/docs/examples/1.2.x/server-python/examples/users/update-email.md index 4899bd39362..370fedf8c46 100644 --- a/docs/examples/1.2.x/server-python/examples/users/update-email.md +++ b/docs/examples/1.2.x/server-python/examples/users/update-email.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/update-name.md b/docs/examples/1.2.x/server-python/examples/users/update-name.md index 66bb6b29204..e8411d203b0 100644 --- a/docs/examples/1.2.x/server-python/examples/users/update-name.md +++ b/docs/examples/1.2.x/server-python/examples/users/update-name.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/update-password.md b/docs/examples/1.2.x/server-python/examples/users/update-password.md index bf24c1ca9a8..2f0091d0f6d 100644 --- a/docs/examples/1.2.x/server-python/examples/users/update-password.md +++ b/docs/examples/1.2.x/server-python/examples/users/update-password.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/update-phone-verification.md b/docs/examples/1.2.x/server-python/examples/users/update-phone-verification.md index e42317ca30b..e2d69ef2fc0 100644 --- a/docs/examples/1.2.x/server-python/examples/users/update-phone-verification.md +++ b/docs/examples/1.2.x/server-python/examples/users/update-phone-verification.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/update-phone.md b/docs/examples/1.2.x/server-python/examples/users/update-phone.md index 6df39fc9940..b6165469e8a 100644 --- a/docs/examples/1.2.x/server-python/examples/users/update-phone.md +++ b/docs/examples/1.2.x/server-python/examples/users/update-phone.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/update-prefs.md b/docs/examples/1.2.x/server-python/examples/users/update-prefs.md index 53d1e524e20..432b9da023a 100644 --- a/docs/examples/1.2.x/server-python/examples/users/update-prefs.md +++ b/docs/examples/1.2.x/server-python/examples/users/update-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-python/examples/users/update-status.md b/docs/examples/1.2.x/server-python/examples/users/update-status.md index 6d1577d4014..2afab7539fe 100644 --- a/docs/examples/1.2.x/server-python/examples/users/update-status.md +++ b/docs/examples/1.2.x/server-python/examples/users/update-status.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.2.x/server-ruby/examples/account/create-phone-verification.md b/docs/examples/1.2.x/server-ruby/examples/account/create-phone-verification.md index 7ec0a1c0c94..9ea5aa170c0 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/create-phone-verification.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/create-phone-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/create-recovery.md b/docs/examples/1.2.x/server-ruby/examples/account/create-recovery.md index 5c6d13c7240..dfa4038915d 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/create-recovery.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/create-recovery.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/create-verification.md b/docs/examples/1.2.x/server-ruby/examples/account/create-verification.md index dcd9722e471..37b838f4d25 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/create-verification.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/create-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/delete-session.md b/docs/examples/1.2.x/server-ruby/examples/account/delete-session.md index 3357b2ba20e..788b1d0dc15 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/delete-session.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/delete-session.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/delete-sessions.md b/docs/examples/1.2.x/server-ruby/examples/account/delete-sessions.md index b218a536dbe..fecb93ca767 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/delete-sessions.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/delete-sessions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/get-prefs.md b/docs/examples/1.2.x/server-ruby/examples/account/get-prefs.md index 24092b922b9..9870af6340c 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/get-prefs.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/get-prefs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/get-session.md b/docs/examples/1.2.x/server-ruby/examples/account/get-session.md index 2a8209031d0..09946ae0013 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/get-session.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/get-session.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/get.md b/docs/examples/1.2.x/server-ruby/examples/account/get.md index 61237b22157..616316ca8ca 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/get.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/list-logs.md b/docs/examples/1.2.x/server-ruby/examples/account/list-logs.md index 8a08eb96bef..22e23f38ee6 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/list-logs.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/list-logs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/list-sessions.md b/docs/examples/1.2.x/server-ruby/examples/account/list-sessions.md index a6bcb6816dd..9e267c659dd 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/list-sessions.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/list-sessions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/update-email.md b/docs/examples/1.2.x/server-ruby/examples/account/update-email.md index cd2e10cbbe3..1a871d27908 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/update-email.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/update-email.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/update-name.md b/docs/examples/1.2.x/server-ruby/examples/account/update-name.md index 2685e88cf60..f7a2bec7878 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/update-name.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/update-name.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/update-password.md b/docs/examples/1.2.x/server-ruby/examples/account/update-password.md index 3ee4ed98f7c..dbd46a02983 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/update-password.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/update-password.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/update-phone-verification.md b/docs/examples/1.2.x/server-ruby/examples/account/update-phone-verification.md index 103b32c00da..6a0345a6f61 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/update-phone-verification.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/update-phone-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/update-phone.md b/docs/examples/1.2.x/server-ruby/examples/account/update-phone.md index 377c578deaf..aa6dc9804ce 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/update-phone.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/update-phone.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/update-prefs.md b/docs/examples/1.2.x/server-ruby/examples/account/update-prefs.md index 338a9704f1e..1e0f9c836cc 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/update-prefs.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/update-prefs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/update-recovery.md b/docs/examples/1.2.x/server-ruby/examples/account/update-recovery.md index fa901de8576..357bfa9d1d8 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/update-recovery.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/update-recovery.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/update-session.md b/docs/examples/1.2.x/server-ruby/examples/account/update-session.md index 31dde2e94fa..2de00124c65 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/update-session.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/update-session.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/update-status.md b/docs/examples/1.2.x/server-ruby/examples/account/update-status.md index ea7a3857b55..f0e73d13d55 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/update-status.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/update-status.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/account/update-verification.md b/docs/examples/1.2.x/server-ruby/examples/account/update-verification.md index b8f674ec773..32d4c79de07 100644 --- a/docs/examples/1.2.x/server-ruby/examples/account/update-verification.md +++ b/docs/examples/1.2.x/server-ruby/examples/account/update-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/avatars/get-browser.md b/docs/examples/1.2.x/server-ruby/examples/avatars/get-browser.md index 2a66b46b926..11fa186f0e1 100644 --- a/docs/examples/1.2.x/server-ruby/examples/avatars/get-browser.md +++ b/docs/examples/1.2.x/server-ruby/examples/avatars/get-browser.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/server-ruby/examples/avatars/get-credit-card.md index d5bcaa824f8..47c8dc8e076 100644 --- a/docs/examples/1.2.x/server-ruby/examples/avatars/get-credit-card.md +++ b/docs/examples/1.2.x/server-ruby/examples/avatars/get-credit-card.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/avatars/get-favicon.md b/docs/examples/1.2.x/server-ruby/examples/avatars/get-favicon.md index c995fb2036a..48263bc19df 100644 --- a/docs/examples/1.2.x/server-ruby/examples/avatars/get-favicon.md +++ b/docs/examples/1.2.x/server-ruby/examples/avatars/get-favicon.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/avatars/get-flag.md b/docs/examples/1.2.x/server-ruby/examples/avatars/get-flag.md index 7633756425e..17e2cfb0539 100644 --- a/docs/examples/1.2.x/server-ruby/examples/avatars/get-flag.md +++ b/docs/examples/1.2.x/server-ruby/examples/avatars/get-flag.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/avatars/get-image.md b/docs/examples/1.2.x/server-ruby/examples/avatars/get-image.md index 4ea52a60e4b..168cc78d47f 100644 --- a/docs/examples/1.2.x/server-ruby/examples/avatars/get-image.md +++ b/docs/examples/1.2.x/server-ruby/examples/avatars/get-image.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/avatars/get-initials.md b/docs/examples/1.2.x/server-ruby/examples/avatars/get-initials.md index 62a8ff855d9..c6218320696 100644 --- a/docs/examples/1.2.x/server-ruby/examples/avatars/get-initials.md +++ b/docs/examples/1.2.x/server-ruby/examples/avatars/get-initials.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/avatars/get-q-r.md b/docs/examples/1.2.x/server-ruby/examples/avatars/get-q-r.md index 03a1f14aa97..93b91d13ea3 100644 --- a/docs/examples/1.2.x/server-ruby/examples/avatars/get-q-r.md +++ b/docs/examples/1.2.x/server-ruby/examples/avatars/get-q-r.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-boolean-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-boolean-attribute.md index d617d8e3225..17f0467cb1b 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/create-boolean-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-collection.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-collection.md index d27e43ad664..d0c87c64337 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-collection.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/create-collection.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-datetime-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-datetime-attribute.md index 127d2ac2d77..2aebb09856f 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/create-datetime-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-document.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-document.md index 8177fc4b3b8..e6d12497214 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-document.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/create-document.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-email-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-email-attribute.md index c7e1aac86be..38047e524d4 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-email-attribute.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/create-email-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-enum-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-enum-attribute.md index 36f8ee06d41..1fe0f0c689f 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/create-enum-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-float-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-float-attribute.md index 771d281ccf5..6da9f12caed 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-float-attribute.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/create-float-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-index.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-index.md index 5488e36f74a..68fccf90ca3 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-index.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/create-index.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-integer-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-integer-attribute.md index 40649c25f8f..d17eef4f46d 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/create-integer-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-ip-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-ip-attribute.md index ef9e0feba52..c0daf8a4ae9 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/create-ip-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-string-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-string-attribute.md index 9901c84b020..4b4c95b7c10 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-string-attribute.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/create-string-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create-url-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/create-url-attribute.md index 475421fe537..03486d76952 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create-url-attribute.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/create-url-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/create.md b/docs/examples/1.2.x/server-ruby/examples/databases/create.md index 1ce19d31250..8054c37fef1 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/create.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/create.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/delete-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/delete-attribute.md index ae2e32d8bd0..55013151523 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/delete-attribute.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/delete-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/delete-collection.md b/docs/examples/1.2.x/server-ruby/examples/databases/delete-collection.md index f118667b6ed..779865a67e1 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/delete-collection.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/delete-collection.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/delete-document.md b/docs/examples/1.2.x/server-ruby/examples/databases/delete-document.md index 0b7baa89ede..b83d2a38a88 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/delete-document.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/delete-document.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/delete-index.md b/docs/examples/1.2.x/server-ruby/examples/databases/delete-index.md index 829e6061354..fb30a95c642 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/delete-index.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/delete-index.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/delete.md b/docs/examples/1.2.x/server-ruby/examples/databases/delete.md index 7e0c4211f16..beeca37e8a7 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/delete.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/delete.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/get-attribute.md b/docs/examples/1.2.x/server-ruby/examples/databases/get-attribute.md index 525c8f14cd5..653a4280542 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/get-attribute.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/get-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/get-collection.md b/docs/examples/1.2.x/server-ruby/examples/databases/get-collection.md index 897e40d1094..b3251fb7a69 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/get-collection.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/get-collection.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/get-document.md b/docs/examples/1.2.x/server-ruby/examples/databases/get-document.md index d5853aba563..9a4e9b7c01a 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/get-document.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/get-document.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/get-index.md b/docs/examples/1.2.x/server-ruby/examples/databases/get-index.md index 3217507541a..1f7d3b61551 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/get-index.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/get-index.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/get.md b/docs/examples/1.2.x/server-ruby/examples/databases/get.md index ced51d6ad12..93b171122f8 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/get.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/list-attributes.md b/docs/examples/1.2.x/server-ruby/examples/databases/list-attributes.md index 1b57bda217c..5a07c9a6352 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/list-attributes.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/list-attributes.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/list-collections.md b/docs/examples/1.2.x/server-ruby/examples/databases/list-collections.md index 3d646c47e72..c707b3faf77 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/list-collections.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/list-collections.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/list-documents.md b/docs/examples/1.2.x/server-ruby/examples/databases/list-documents.md index 6f57bb150cf..da14516505f 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/list-documents.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/list-documents.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/list-indexes.md b/docs/examples/1.2.x/server-ruby/examples/databases/list-indexes.md index d64b3bfc684..c6d42be1eaa 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/list-indexes.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/list-indexes.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/list.md b/docs/examples/1.2.x/server-ruby/examples/databases/list.md index 84baa108a38..628f44c7fca 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/list.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/list.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/update-collection.md b/docs/examples/1.2.x/server-ruby/examples/databases/update-collection.md index eee40585313..ab421153cce 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/update-collection.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/update-collection.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/update-document.md b/docs/examples/1.2.x/server-ruby/examples/databases/update-document.md index dbe1b0d71aa..0b5b2a07caf 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/update-document.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/update-document.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/databases/update.md b/docs/examples/1.2.x/server-ruby/examples/databases/update.md index 0900ab34286..9e67595cbc7 100644 --- a/docs/examples/1.2.x/server-ruby/examples/databases/update.md +++ b/docs/examples/1.2.x/server-ruby/examples/databases/update.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/create-build.md b/docs/examples/1.2.x/server-ruby/examples/functions/create-build.md index 9c7397bf269..6c9ad31fd0c 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/create-build.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/create-build.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/create-deployment.md b/docs/examples/1.2.x/server-ruby/examples/functions/create-deployment.md index 734625f449e..4cb56c9ad86 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/create-deployment.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/create-deployment.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/create-execution.md b/docs/examples/1.2.x/server-ruby/examples/functions/create-execution.md index 97f4d74ba15..3dc5e844e71 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/create-execution.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/create-execution.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/create-variable.md b/docs/examples/1.2.x/server-ruby/examples/functions/create-variable.md index 003fb4743a2..1340c1a3794 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/create-variable.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/create-variable.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/create.md b/docs/examples/1.2.x/server-ruby/examples/functions/create.md index 414f11297d1..dbf34259221 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/create.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/create.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/delete-deployment.md b/docs/examples/1.2.x/server-ruby/examples/functions/delete-deployment.md index 64feea1370e..00c85f50a1b 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/delete-deployment.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/delete-deployment.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/delete-variable.md b/docs/examples/1.2.x/server-ruby/examples/functions/delete-variable.md index 598e6941416..191796186d8 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/delete-variable.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/delete-variable.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/delete.md b/docs/examples/1.2.x/server-ruby/examples/functions/delete.md index 48ea5c7a737..c96a2621e65 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/delete.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/delete.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/get-deployment.md b/docs/examples/1.2.x/server-ruby/examples/functions/get-deployment.md index c19163e7f5c..fa1bbc08be3 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/get-deployment.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/get-deployment.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/get-execution.md b/docs/examples/1.2.x/server-ruby/examples/functions/get-execution.md index 3deee915740..52e46af41ac 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/get-execution.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/get-execution.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/get-variable.md b/docs/examples/1.2.x/server-ruby/examples/functions/get-variable.md index 835fc30d81b..b023e3653be 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/get-variable.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/get-variable.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/get.md b/docs/examples/1.2.x/server-ruby/examples/functions/get.md index cfcf8411e5a..76897965e5b 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/get.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/list-deployments.md b/docs/examples/1.2.x/server-ruby/examples/functions/list-deployments.md index 539301c4bba..5ec1f5ba313 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/list-deployments.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/list-deployments.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/list-executions.md b/docs/examples/1.2.x/server-ruby/examples/functions/list-executions.md index c0c1f46cf16..797817ad4f5 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/list-executions.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/list-executions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/list-runtimes.md b/docs/examples/1.2.x/server-ruby/examples/functions/list-runtimes.md index b679da2d8b9..b5fd2b0aafd 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/list-runtimes.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/list-runtimes.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/list-variables.md b/docs/examples/1.2.x/server-ruby/examples/functions/list-variables.md index 4e5bfab8911..196fcfe3cd7 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/list-variables.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/list-variables.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/list.md b/docs/examples/1.2.x/server-ruby/examples/functions/list.md index 2cc71a5c046..bf27f73cf94 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/list.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/list.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/update-deployment.md b/docs/examples/1.2.x/server-ruby/examples/functions/update-deployment.md index c9d9f49d63b..a9f039cfc64 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/update-deployment.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/update-deployment.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/update-variable.md b/docs/examples/1.2.x/server-ruby/examples/functions/update-variable.md index 28d7651a46f..3418454c276 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/update-variable.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/update-variable.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/functions/update.md b/docs/examples/1.2.x/server-ruby/examples/functions/update.md index 4bb1f2195de..02e11b5075b 100644 --- a/docs/examples/1.2.x/server-ruby/examples/functions/update.md +++ b/docs/examples/1.2.x/server-ruby/examples/functions/update.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/graphql/63a08ed7b8f61.md b/docs/examples/1.2.x/server-ruby/examples/graphql/63a08ed7b8f61.md index 89971943fc2..b3336923b94 100644 --- a/docs/examples/1.2.x/server-ruby/examples/graphql/63a08ed7b8f61.md +++ b/docs/examples/1.2.x/server-ruby/examples/graphql/63a08ed7b8f61.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/graphql/get.md b/docs/examples/1.2.x/server-ruby/examples/graphql/get.md index abd00b96564..1e2f1bb2a44 100644 --- a/docs/examples/1.2.x/server-ruby/examples/graphql/get.md +++ b/docs/examples/1.2.x/server-ruby/examples/graphql/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/graphql/mutation.md b/docs/examples/1.2.x/server-ruby/examples/graphql/mutation.md index 234dfe62021..a22fc7846ad 100644 --- a/docs/examples/1.2.x/server-ruby/examples/graphql/mutation.md +++ b/docs/examples/1.2.x/server-ruby/examples/graphql/mutation.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/graphql/query.md b/docs/examples/1.2.x/server-ruby/examples/graphql/query.md index 1304213caf1..a8c967ed6b8 100644 --- a/docs/examples/1.2.x/server-ruby/examples/graphql/query.md +++ b/docs/examples/1.2.x/server-ruby/examples/graphql/query.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/health/get-antivirus.md b/docs/examples/1.2.x/server-ruby/examples/health/get-antivirus.md index b1f16bb0b93..32646a5a0b3 100644 --- a/docs/examples/1.2.x/server-ruby/examples/health/get-antivirus.md +++ b/docs/examples/1.2.x/server-ruby/examples/health/get-antivirus.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/health/get-cache.md b/docs/examples/1.2.x/server-ruby/examples/health/get-cache.md index 4fb77ec68d4..a4b43daf926 100644 --- a/docs/examples/1.2.x/server-ruby/examples/health/get-cache.md +++ b/docs/examples/1.2.x/server-ruby/examples/health/get-cache.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/health/get-d-b.md b/docs/examples/1.2.x/server-ruby/examples/health/get-d-b.md index 3317acd6fa7..6b42bbaf6a1 100644 --- a/docs/examples/1.2.x/server-ruby/examples/health/get-d-b.md +++ b/docs/examples/1.2.x/server-ruby/examples/health/get-d-b.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/health/get-queue-certificates.md b/docs/examples/1.2.x/server-ruby/examples/health/get-queue-certificates.md index a4c5c7016bf..915731e056a 100644 --- a/docs/examples/1.2.x/server-ruby/examples/health/get-queue-certificates.md +++ b/docs/examples/1.2.x/server-ruby/examples/health/get-queue-certificates.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/health/get-queue-functions.md b/docs/examples/1.2.x/server-ruby/examples/health/get-queue-functions.md index 8edb310a5e2..ea585cacb79 100644 --- a/docs/examples/1.2.x/server-ruby/examples/health/get-queue-functions.md +++ b/docs/examples/1.2.x/server-ruby/examples/health/get-queue-functions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/health/get-queue-logs.md b/docs/examples/1.2.x/server-ruby/examples/health/get-queue-logs.md index 74823fcd6ce..253419c8bdd 100644 --- a/docs/examples/1.2.x/server-ruby/examples/health/get-queue-logs.md +++ b/docs/examples/1.2.x/server-ruby/examples/health/get-queue-logs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/health/get-queue-webhooks.md b/docs/examples/1.2.x/server-ruby/examples/health/get-queue-webhooks.md index 53b7f33cfe0..1902a930c83 100644 --- a/docs/examples/1.2.x/server-ruby/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.2.x/server-ruby/examples/health/get-queue-webhooks.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/health/get-storage-local.md b/docs/examples/1.2.x/server-ruby/examples/health/get-storage-local.md index 3a85bd3e12b..293c866762f 100644 --- a/docs/examples/1.2.x/server-ruby/examples/health/get-storage-local.md +++ b/docs/examples/1.2.x/server-ruby/examples/health/get-storage-local.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/health/get-time.md b/docs/examples/1.2.x/server-ruby/examples/health/get-time.md index 9956a33d1f6..e19bf05e792 100644 --- a/docs/examples/1.2.x/server-ruby/examples/health/get-time.md +++ b/docs/examples/1.2.x/server-ruby/examples/health/get-time.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/health/get.md b/docs/examples/1.2.x/server-ruby/examples/health/get.md index d23a9ad6755..07fc372f3b3 100644 --- a/docs/examples/1.2.x/server-ruby/examples/health/get.md +++ b/docs/examples/1.2.x/server-ruby/examples/health/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/locale/get.md b/docs/examples/1.2.x/server-ruby/examples/locale/get.md index e5922f4e7f5..b2abf36f19f 100644 --- a/docs/examples/1.2.x/server-ruby/examples/locale/get.md +++ b/docs/examples/1.2.x/server-ruby/examples/locale/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/locale/list-continents.md b/docs/examples/1.2.x/server-ruby/examples/locale/list-continents.md index 0416baf77a4..1a086d9a2fe 100644 --- a/docs/examples/1.2.x/server-ruby/examples/locale/list-continents.md +++ b/docs/examples/1.2.x/server-ruby/examples/locale/list-continents.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/server-ruby/examples/locale/list-countries-e-u.md index 7faa85143cb..962387167f1 100644 --- a/docs/examples/1.2.x/server-ruby/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.2.x/server-ruby/examples/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/server-ruby/examples/locale/list-countries-phones.md index 1194f27e0c7..9e842f2121d 100644 --- a/docs/examples/1.2.x/server-ruby/examples/locale/list-countries-phones.md +++ b/docs/examples/1.2.x/server-ruby/examples/locale/list-countries-phones.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/locale/list-countries.md b/docs/examples/1.2.x/server-ruby/examples/locale/list-countries.md index b78fba47fd5..eb093479b7a 100644 --- a/docs/examples/1.2.x/server-ruby/examples/locale/list-countries.md +++ b/docs/examples/1.2.x/server-ruby/examples/locale/list-countries.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/locale/list-currencies.md b/docs/examples/1.2.x/server-ruby/examples/locale/list-currencies.md index 14b2722ae82..1e20bdbbb28 100644 --- a/docs/examples/1.2.x/server-ruby/examples/locale/list-currencies.md +++ b/docs/examples/1.2.x/server-ruby/examples/locale/list-currencies.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/locale/list-languages.md b/docs/examples/1.2.x/server-ruby/examples/locale/list-languages.md index 4d88bc47232..7b919494b32 100644 --- a/docs/examples/1.2.x/server-ruby/examples/locale/list-languages.md +++ b/docs/examples/1.2.x/server-ruby/examples/locale/list-languages.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/create-bucket.md b/docs/examples/1.2.x/server-ruby/examples/storage/create-bucket.md index d6299db79f9..459508e3116 100644 --- a/docs/examples/1.2.x/server-ruby/examples/storage/create-bucket.md +++ b/docs/examples/1.2.x/server-ruby/examples/storage/create-bucket.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/create-file.md b/docs/examples/1.2.x/server-ruby/examples/storage/create-file.md index 851ed57a480..fd29996f730 100644 --- a/docs/examples/1.2.x/server-ruby/examples/storage/create-file.md +++ b/docs/examples/1.2.x/server-ruby/examples/storage/create-file.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/delete-bucket.md b/docs/examples/1.2.x/server-ruby/examples/storage/delete-bucket.md index 3fd51bef5e4..be83f475f27 100644 --- a/docs/examples/1.2.x/server-ruby/examples/storage/delete-bucket.md +++ b/docs/examples/1.2.x/server-ruby/examples/storage/delete-bucket.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/delete-file.md b/docs/examples/1.2.x/server-ruby/examples/storage/delete-file.md index 4d0e3fcbffc..6ea4059bbab 100644 --- a/docs/examples/1.2.x/server-ruby/examples/storage/delete-file.md +++ b/docs/examples/1.2.x/server-ruby/examples/storage/delete-file.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/get-bucket.md b/docs/examples/1.2.x/server-ruby/examples/storage/get-bucket.md index ba88debc618..ca0905b463a 100644 --- a/docs/examples/1.2.x/server-ruby/examples/storage/get-bucket.md +++ b/docs/examples/1.2.x/server-ruby/examples/storage/get-bucket.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/get-file-download.md b/docs/examples/1.2.x/server-ruby/examples/storage/get-file-download.md index a22f4cb68fc..77007f6b192 100644 --- a/docs/examples/1.2.x/server-ruby/examples/storage/get-file-download.md +++ b/docs/examples/1.2.x/server-ruby/examples/storage/get-file-download.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/get-file-preview.md b/docs/examples/1.2.x/server-ruby/examples/storage/get-file-preview.md index c5b7c06db1c..c0e2b80931e 100644 --- a/docs/examples/1.2.x/server-ruby/examples/storage/get-file-preview.md +++ b/docs/examples/1.2.x/server-ruby/examples/storage/get-file-preview.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/get-file-view.md b/docs/examples/1.2.x/server-ruby/examples/storage/get-file-view.md index c05770b9999..7689278e56e 100644 --- a/docs/examples/1.2.x/server-ruby/examples/storage/get-file-view.md +++ b/docs/examples/1.2.x/server-ruby/examples/storage/get-file-view.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/get-file.md b/docs/examples/1.2.x/server-ruby/examples/storage/get-file.md index a33835c9e25..f5faa37e548 100644 --- a/docs/examples/1.2.x/server-ruby/examples/storage/get-file.md +++ b/docs/examples/1.2.x/server-ruby/examples/storage/get-file.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/list-buckets.md b/docs/examples/1.2.x/server-ruby/examples/storage/list-buckets.md index 7009d0a105b..46eac9a2602 100644 --- a/docs/examples/1.2.x/server-ruby/examples/storage/list-buckets.md +++ b/docs/examples/1.2.x/server-ruby/examples/storage/list-buckets.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/list-files.md b/docs/examples/1.2.x/server-ruby/examples/storage/list-files.md index 196831a1b3f..936b6eaeeb3 100644 --- a/docs/examples/1.2.x/server-ruby/examples/storage/list-files.md +++ b/docs/examples/1.2.x/server-ruby/examples/storage/list-files.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/update-bucket.md b/docs/examples/1.2.x/server-ruby/examples/storage/update-bucket.md index f990ab3566a..d4c791f4db6 100644 --- a/docs/examples/1.2.x/server-ruby/examples/storage/update-bucket.md +++ b/docs/examples/1.2.x/server-ruby/examples/storage/update-bucket.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/storage/update-file.md b/docs/examples/1.2.x/server-ruby/examples/storage/update-file.md index 8108d3cc28a..6d26d9ee482 100644 --- a/docs/examples/1.2.x/server-ruby/examples/storage/update-file.md +++ b/docs/examples/1.2.x/server-ruby/examples/storage/update-file.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/create-membership.md b/docs/examples/1.2.x/server-ruby/examples/teams/create-membership.md index 515b6839f1d..e23211d82b7 100644 --- a/docs/examples/1.2.x/server-ruby/examples/teams/create-membership.md +++ b/docs/examples/1.2.x/server-ruby/examples/teams/create-membership.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/create.md b/docs/examples/1.2.x/server-ruby/examples/teams/create.md index d2dff77f41e..66127ecd340 100644 --- a/docs/examples/1.2.x/server-ruby/examples/teams/create.md +++ b/docs/examples/1.2.x/server-ruby/examples/teams/create.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/delete-membership.md b/docs/examples/1.2.x/server-ruby/examples/teams/delete-membership.md index d41175d4a83..551ee62843d 100644 --- a/docs/examples/1.2.x/server-ruby/examples/teams/delete-membership.md +++ b/docs/examples/1.2.x/server-ruby/examples/teams/delete-membership.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/delete.md b/docs/examples/1.2.x/server-ruby/examples/teams/delete.md index c1b9b8d8bb1..94a9d4bba74 100644 --- a/docs/examples/1.2.x/server-ruby/examples/teams/delete.md +++ b/docs/examples/1.2.x/server-ruby/examples/teams/delete.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/get-membership.md b/docs/examples/1.2.x/server-ruby/examples/teams/get-membership.md index b06101dd84c..d95348801b0 100644 --- a/docs/examples/1.2.x/server-ruby/examples/teams/get-membership.md +++ b/docs/examples/1.2.x/server-ruby/examples/teams/get-membership.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/get.md b/docs/examples/1.2.x/server-ruby/examples/teams/get.md index 7cee601b56d..a6c2884d2c8 100644 --- a/docs/examples/1.2.x/server-ruby/examples/teams/get.md +++ b/docs/examples/1.2.x/server-ruby/examples/teams/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/list-memberships.md b/docs/examples/1.2.x/server-ruby/examples/teams/list-memberships.md index 885a857d720..4b523aa73a6 100644 --- a/docs/examples/1.2.x/server-ruby/examples/teams/list-memberships.md +++ b/docs/examples/1.2.x/server-ruby/examples/teams/list-memberships.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/list.md b/docs/examples/1.2.x/server-ruby/examples/teams/list.md index e8b581fd910..fd8385bc71e 100644 --- a/docs/examples/1.2.x/server-ruby/examples/teams/list.md +++ b/docs/examples/1.2.x/server-ruby/examples/teams/list.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/server-ruby/examples/teams/update-membership-roles.md index a39ef030f9c..0a240b5bac9 100644 --- a/docs/examples/1.2.x/server-ruby/examples/teams/update-membership-roles.md +++ b/docs/examples/1.2.x/server-ruby/examples/teams/update-membership-roles.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/update-membership-status.md b/docs/examples/1.2.x/server-ruby/examples/teams/update-membership-status.md index aaf52cbb9ca..a1f8252899a 100644 --- a/docs/examples/1.2.x/server-ruby/examples/teams/update-membership-status.md +++ b/docs/examples/1.2.x/server-ruby/examples/teams/update-membership-status.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-ruby/examples/teams/update.md b/docs/examples/1.2.x/server-ruby/examples/teams/update.md index 95e24eacb4e..29f42e2e43e 100644 --- a/docs/examples/1.2.x/server-ruby/examples/teams/update.md +++ b/docs/examples/1.2.x/server-ruby/examples/teams/update.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/create-argon2user.md b/docs/examples/1.2.x/server-ruby/examples/users/create-argon2user.md index 9c4fc9ea977..35445044c20 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/create-argon2user.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/create-argon2user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/create-bcrypt-user.md b/docs/examples/1.2.x/server-ruby/examples/users/create-bcrypt-user.md index 700fe49d121..50e11db1903 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/create-bcrypt-user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/create-m-d5user.md b/docs/examples/1.2.x/server-ruby/examples/users/create-m-d5user.md index a7f9c4f7a20..3f7a61994bc 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/create-m-d5user.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/create-m-d5user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/create-p-h-pass-user.md b/docs/examples/1.2.x/server-ruby/examples/users/create-p-h-pass-user.md index d7d8ba19333..a793d887c84 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/create-p-h-pass-user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/create-s-h-a-user.md b/docs/examples/1.2.x/server-ruby/examples/users/create-s-h-a-user.md index 2d37fc3bfa1..4b7c26629bb 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/create-s-h-a-user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/server-ruby/examples/users/create-scrypt-modified-user.md index cec9dbb277a..50f52b9f12f 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/create-scrypt-modified-user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/create-scrypt-user.md b/docs/examples/1.2.x/server-ruby/examples/users/create-scrypt-user.md index 94a7af53d2a..e8bf8cf0597 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/create-scrypt-user.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/create-scrypt-user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/create.md b/docs/examples/1.2.x/server-ruby/examples/users/create.md index b04fd5025f4..7d0cf8b48a7 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/create.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/create.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/delete-session.md b/docs/examples/1.2.x/server-ruby/examples/users/delete-session.md index 3b7918ca1f2..118747affcb 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/delete-session.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/delete-session.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/delete-sessions.md b/docs/examples/1.2.x/server-ruby/examples/users/delete-sessions.md index 6772e3fe10d..7d24d4442d2 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/delete-sessions.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/delete-sessions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/delete.md b/docs/examples/1.2.x/server-ruby/examples/users/delete.md index 62585db404c..b50e5a921d2 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/delete.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/delete.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/get-prefs.md b/docs/examples/1.2.x/server-ruby/examples/users/get-prefs.md index a4c4764bef6..a401ae11b0a 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/get-prefs.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/get-prefs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/get.md b/docs/examples/1.2.x/server-ruby/examples/users/get.md index a731ada955f..44f68d01382 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/get.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/list-logs.md b/docs/examples/1.2.x/server-ruby/examples/users/list-logs.md index fa8586eeffa..45a974e497e 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/list-logs.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/list-logs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/list-memberships.md b/docs/examples/1.2.x/server-ruby/examples/users/list-memberships.md index 693e6b9f2c2..c84277357ba 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/list-memberships.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/list-memberships.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/list-sessions.md b/docs/examples/1.2.x/server-ruby/examples/users/list-sessions.md index 765789a0da7..14c281f4e1b 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/list-sessions.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/list-sessions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/list.md b/docs/examples/1.2.x/server-ruby/examples/users/list.md index 8d5daf21f81..eb067643e24 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/list.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/list.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/update-email-verification.md b/docs/examples/1.2.x/server-ruby/examples/users/update-email-verification.md index 72ec0195dc1..530c544bead 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/update-email-verification.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/update-email-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/update-email.md b/docs/examples/1.2.x/server-ruby/examples/users/update-email.md index a3a7dbde345..21ece40ff07 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/update-email.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/update-email.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/update-name.md b/docs/examples/1.2.x/server-ruby/examples/users/update-name.md index fbf00bb51be..7b1d0d65d32 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/update-name.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/update-name.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/update-password.md b/docs/examples/1.2.x/server-ruby/examples/users/update-password.md index 72556b35306..2577bc44eb8 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/update-password.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/update-password.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/update-phone-verification.md b/docs/examples/1.2.x/server-ruby/examples/users/update-phone-verification.md index 995a32a4bfe..be9e323ec11 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/update-phone-verification.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/update-phone-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/update-phone.md b/docs/examples/1.2.x/server-ruby/examples/users/update-phone.md index f1e74b4a9e5..e78a3d5ff34 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/update-phone.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/update-phone.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/update-prefs.md b/docs/examples/1.2.x/server-ruby/examples/users/update-prefs.md index 9845cdf0d51..91eaf25a253 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/update-prefs.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/update-prefs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-ruby/examples/users/update-status.md b/docs/examples/1.2.x/server-ruby/examples/users/update-status.md index 8a82948c76a..9f7372ede49 100644 --- a/docs/examples/1.2.x/server-ruby/examples/users/update-status.md +++ b/docs/examples/1.2.x/server-ruby/examples/users/update-status.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/account/create-phone-verification.md b/docs/examples/1.2.x/server-swift/examples/account/create-phone-verification.md index cdeba917008..26ced5985bf 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/create-phone-verification.md +++ b/docs/examples/1.2.x/server-swift/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/create-recovery.md b/docs/examples/1.2.x/server-swift/examples/account/create-recovery.md index fdb0e53765f..06cc974d663 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/create-recovery.md +++ b/docs/examples/1.2.x/server-swift/examples/account/create-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/create-verification.md b/docs/examples/1.2.x/server-swift/examples/account/create-verification.md index 63a6a7ac94f..1abcc4abb21 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/create-verification.md +++ b/docs/examples/1.2.x/server-swift/examples/account/create-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/delete-session.md b/docs/examples/1.2.x/server-swift/examples/account/delete-session.md index de9f736f9ce..e5c88080e93 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/delete-session.md +++ b/docs/examples/1.2.x/server-swift/examples/account/delete-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/delete-sessions.md b/docs/examples/1.2.x/server-swift/examples/account/delete-sessions.md index 0f58c600d25..971f34d524e 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/delete-sessions.md +++ b/docs/examples/1.2.x/server-swift/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/get-prefs.md b/docs/examples/1.2.x/server-swift/examples/account/get-prefs.md index ce72d7c340d..be9acecd9af 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/get-prefs.md +++ b/docs/examples/1.2.x/server-swift/examples/account/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/get-session.md b/docs/examples/1.2.x/server-swift/examples/account/get-session.md index e1b48b5aa50..3c5092f3be6 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/get-session.md +++ b/docs/examples/1.2.x/server-swift/examples/account/get-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/get.md b/docs/examples/1.2.x/server-swift/examples/account/get.md index 146cdfb46b8..1cccf56815e 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/get.md +++ b/docs/examples/1.2.x/server-swift/examples/account/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/list-logs.md b/docs/examples/1.2.x/server-swift/examples/account/list-logs.md index ee2e8bb7e6d..762062d1062 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/list-logs.md +++ b/docs/examples/1.2.x/server-swift/examples/account/list-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/list-sessions.md b/docs/examples/1.2.x/server-swift/examples/account/list-sessions.md index 2baf5836a2a..c3b2b0aed0a 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/list-sessions.md +++ b/docs/examples/1.2.x/server-swift/examples/account/list-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/update-email.md b/docs/examples/1.2.x/server-swift/examples/account/update-email.md index 368b86db16a..c298e5faf94 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/update-email.md +++ b/docs/examples/1.2.x/server-swift/examples/account/update-email.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/update-name.md b/docs/examples/1.2.x/server-swift/examples/account/update-name.md index 400ee81ca65..bc6405afc02 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/update-name.md +++ b/docs/examples/1.2.x/server-swift/examples/account/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/update-password.md b/docs/examples/1.2.x/server-swift/examples/account/update-password.md index 2b0091c0182..8034cd2ee15 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/update-password.md +++ b/docs/examples/1.2.x/server-swift/examples/account/update-password.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/update-phone-verification.md b/docs/examples/1.2.x/server-swift/examples/account/update-phone-verification.md index 29052c573a9..22cc1e86586 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/update-phone-verification.md +++ b/docs/examples/1.2.x/server-swift/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/update-phone.md b/docs/examples/1.2.x/server-swift/examples/account/update-phone.md index eb1a757e4ff..e8a27659e6f 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/update-phone.md +++ b/docs/examples/1.2.x/server-swift/examples/account/update-phone.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/update-prefs.md b/docs/examples/1.2.x/server-swift/examples/account/update-prefs.md index e02316a8dc2..983a31fbb38 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/update-prefs.md +++ b/docs/examples/1.2.x/server-swift/examples/account/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/update-recovery.md b/docs/examples/1.2.x/server-swift/examples/account/update-recovery.md index 92825cae559..ba8d1fa1a0c 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/update-recovery.md +++ b/docs/examples/1.2.x/server-swift/examples/account/update-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/update-session.md b/docs/examples/1.2.x/server-swift/examples/account/update-session.md index 84229182aaa..d0002b6e497 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/update-session.md +++ b/docs/examples/1.2.x/server-swift/examples/account/update-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/update-status.md b/docs/examples/1.2.x/server-swift/examples/account/update-status.md index 71129ae999e..9156a79407e 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/update-status.md +++ b/docs/examples/1.2.x/server-swift/examples/account/update-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/account/update-verification.md b/docs/examples/1.2.x/server-swift/examples/account/update-verification.md index b8e925783eb..c50bf1b88d2 100644 --- a/docs/examples/1.2.x/server-swift/examples/account/update-verification.md +++ b/docs/examples/1.2.x/server-swift/examples/account/update-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/avatars/get-browser.md b/docs/examples/1.2.x/server-swift/examples/avatars/get-browser.md index df3a99c67a6..b566d6ca059 100644 --- a/docs/examples/1.2.x/server-swift/examples/avatars/get-browser.md +++ b/docs/examples/1.2.x/server-swift/examples/avatars/get-browser.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/avatars/get-credit-card.md b/docs/examples/1.2.x/server-swift/examples/avatars/get-credit-card.md index ce4382d77b0..5b47aab1ab1 100644 --- a/docs/examples/1.2.x/server-swift/examples/avatars/get-credit-card.md +++ b/docs/examples/1.2.x/server-swift/examples/avatars/get-credit-card.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/avatars/get-favicon.md b/docs/examples/1.2.x/server-swift/examples/avatars/get-favicon.md index 36c77218b74..77803cd5a07 100644 --- a/docs/examples/1.2.x/server-swift/examples/avatars/get-favicon.md +++ b/docs/examples/1.2.x/server-swift/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/avatars/get-flag.md b/docs/examples/1.2.x/server-swift/examples/avatars/get-flag.md index 849ec48cea1..16e566d9e1e 100644 --- a/docs/examples/1.2.x/server-swift/examples/avatars/get-flag.md +++ b/docs/examples/1.2.x/server-swift/examples/avatars/get-flag.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/avatars/get-image.md b/docs/examples/1.2.x/server-swift/examples/avatars/get-image.md index d457976f549..2fd24c5c7d5 100644 --- a/docs/examples/1.2.x/server-swift/examples/avatars/get-image.md +++ b/docs/examples/1.2.x/server-swift/examples/avatars/get-image.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/avatars/get-initials.md b/docs/examples/1.2.x/server-swift/examples/avatars/get-initials.md index 74d8d956db3..9062ca5ca73 100644 --- a/docs/examples/1.2.x/server-swift/examples/avatars/get-initials.md +++ b/docs/examples/1.2.x/server-swift/examples/avatars/get-initials.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/avatars/get-q-r.md b/docs/examples/1.2.x/server-swift/examples/avatars/get-q-r.md index 537bfb5b43f..c8d7fba5be5 100644 --- a/docs/examples/1.2.x/server-swift/examples/avatars/get-q-r.md +++ b/docs/examples/1.2.x/server-swift/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-boolean-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/create-boolean-attribute.md index 11eae088e7a..1be49bb0d44 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/create-boolean-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-collection.md b/docs/examples/1.2.x/server-swift/examples/databases/create-collection.md index ff9172bb29a..b4bb744eee0 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-collection.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/create-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-datetime-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/create-datetime-attribute.md index 26020fb88fa..119c5ec830e 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/create-datetime-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-document.md b/docs/examples/1.2.x/server-swift/examples/databases/create-document.md index b76eab7c708..5985560b67f 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-document.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/create-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-email-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/create-email-attribute.md index cddebec6b24..690a49b68a1 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-email-attribute.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/create-email-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-enum-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/create-enum-attribute.md index dc56bff3950..b08ccbeb831 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/create-enum-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-float-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/create-float-attribute.md index ec01499e988..851afc2ac1a 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-float-attribute.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/create-float-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-index.md b/docs/examples/1.2.x/server-swift/examples/databases/create-index.md index 03cc91b0b44..2271a9898ef 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-index.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/create-index.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-integer-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/create-integer-attribute.md index eeea1cb01bf..72cd31c5a83 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/create-integer-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-ip-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/create-ip-attribute.md index 948aa2ad376..c03c555f52f 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/create-ip-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-string-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/create-string-attribute.md index 0d3e65442b8..daa04767a3f 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-string-attribute.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/create-string-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create-url-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/create-url-attribute.md index 747a6c73673..94eefa1b610 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/create-url-attribute.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/create-url-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/create.md b/docs/examples/1.2.x/server-swift/examples/databases/create.md index 5e4abf88a03..6578c5783bf 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/create.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/delete-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/delete-attribute.md index 0fc94705708..a9c778b34c3 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/delete-attribute.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/delete-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/delete-collection.md b/docs/examples/1.2.x/server-swift/examples/databases/delete-collection.md index b00916534e3..f410170aa84 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/delete-collection.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/delete-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/delete-document.md b/docs/examples/1.2.x/server-swift/examples/databases/delete-document.md index 185c33d4102..24dd564236c 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/delete-document.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/delete-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/delete-index.md b/docs/examples/1.2.x/server-swift/examples/databases/delete-index.md index 0ad4ac3442a..fa5acc635ab 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/delete-index.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/delete-index.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/delete.md b/docs/examples/1.2.x/server-swift/examples/databases/delete.md index 48b687e237f..01be19d136e 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/delete.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/get-attribute.md b/docs/examples/1.2.x/server-swift/examples/databases/get-attribute.md index e0ea280f568..4d4697052b7 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/get-attribute.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/get-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/get-collection.md b/docs/examples/1.2.x/server-swift/examples/databases/get-collection.md index 39c36b3d617..a55294591a9 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/get-collection.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/get-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/get-document.md b/docs/examples/1.2.x/server-swift/examples/databases/get-document.md index 2a12e1140ac..2d2768ca2c3 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/get-document.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/get-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/get-index.md b/docs/examples/1.2.x/server-swift/examples/databases/get-index.md index e69263346ae..69b694d0724 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/get-index.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/get-index.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/get.md b/docs/examples/1.2.x/server-swift/examples/databases/get.md index 805fa3ee23b..9fa4abca507 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/get.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/list-attributes.md b/docs/examples/1.2.x/server-swift/examples/databases/list-attributes.md index 475da0a7124..71fdcbc9971 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/list-attributes.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/list-attributes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/list-collections.md b/docs/examples/1.2.x/server-swift/examples/databases/list-collections.md index 8e451ca8a00..bf150e8596e 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/list-collections.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/list-collections.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/list-documents.md b/docs/examples/1.2.x/server-swift/examples/databases/list-documents.md index 24bb8597614..0ca2d5ff485 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/list-documents.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/list-documents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/list-indexes.md b/docs/examples/1.2.x/server-swift/examples/databases/list-indexes.md index 145c02ddcc4..be16b25a318 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/list-indexes.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/list-indexes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/list.md b/docs/examples/1.2.x/server-swift/examples/databases/list.md index fe7a54df444..45796c04c02 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/list.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/update-collection.md b/docs/examples/1.2.x/server-swift/examples/databases/update-collection.md index 807c5659f9c..d2969b4a4de 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/update-collection.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/update-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/update-document.md b/docs/examples/1.2.x/server-swift/examples/databases/update-document.md index 56eed000828..872711afcf3 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/update-document.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/update-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/databases/update.md b/docs/examples/1.2.x/server-swift/examples/databases/update.md index 8e14f080094..b9185e6aaeb 100644 --- a/docs/examples/1.2.x/server-swift/examples/databases/update.md +++ b/docs/examples/1.2.x/server-swift/examples/databases/update.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/create-build.md b/docs/examples/1.2.x/server-swift/examples/functions/create-build.md index 8419bf69500..2c469e5ea69 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/create-build.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/create-build.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/create-deployment.md b/docs/examples/1.2.x/server-swift/examples/functions/create-deployment.md index d24359e73bd..6b4527852a7 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/create-deployment.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/create-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/create-execution.md b/docs/examples/1.2.x/server-swift/examples/functions/create-execution.md index 0354bf54883..1454b4e11a5 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/create-execution.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/create-execution.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/create-variable.md b/docs/examples/1.2.x/server-swift/examples/functions/create-variable.md index f2613111929..914f189284e 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/create-variable.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/create-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/create.md b/docs/examples/1.2.x/server-swift/examples/functions/create.md index ea588276abe..feedd4725d8 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/create.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/delete-deployment.md b/docs/examples/1.2.x/server-swift/examples/functions/delete-deployment.md index 228f9f62e23..378e1f35aa8 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/delete-deployment.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/delete-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/delete-variable.md b/docs/examples/1.2.x/server-swift/examples/functions/delete-variable.md index 410cffe13c2..55e3d4a91f2 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/delete-variable.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/delete-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/delete.md b/docs/examples/1.2.x/server-swift/examples/functions/delete.md index bee774e61b6..67b2f0332cf 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/delete.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/get-deployment.md b/docs/examples/1.2.x/server-swift/examples/functions/get-deployment.md index 0a463c41213..aba9a5084ab 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/get-deployment.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/get-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/get-execution.md b/docs/examples/1.2.x/server-swift/examples/functions/get-execution.md index 7af8bd5906f..c8ec6c1aca5 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/get-execution.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/get-execution.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/get-variable.md b/docs/examples/1.2.x/server-swift/examples/functions/get-variable.md index f2fa61b9034..f8acd3dda4f 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/get-variable.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/get-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/get.md b/docs/examples/1.2.x/server-swift/examples/functions/get.md index c5ba24ae266..aead1667f2b 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/get.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/list-deployments.md b/docs/examples/1.2.x/server-swift/examples/functions/list-deployments.md index 652620bf401..c2c32eaa346 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/list-deployments.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/list-deployments.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/list-executions.md b/docs/examples/1.2.x/server-swift/examples/functions/list-executions.md index fa32172cbdb..26536b7e034 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/list-executions.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/list-executions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/list-runtimes.md b/docs/examples/1.2.x/server-swift/examples/functions/list-runtimes.md index 6a543754eb5..c7de59bed3d 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/list-runtimes.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/list-runtimes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/list-variables.md b/docs/examples/1.2.x/server-swift/examples/functions/list-variables.md index d13c752254d..abf0f514be8 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/list-variables.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/list-variables.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/list.md b/docs/examples/1.2.x/server-swift/examples/functions/list.md index 81363f17ff7..d04ab677f3f 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/list.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/update-deployment.md b/docs/examples/1.2.x/server-swift/examples/functions/update-deployment.md index b0f4fc23c43..1e81e41286e 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/update-deployment.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/update-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/update-variable.md b/docs/examples/1.2.x/server-swift/examples/functions/update-variable.md index 0eb5b2e9760..2ce5b597ea5 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/update-variable.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/update-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/functions/update.md b/docs/examples/1.2.x/server-swift/examples/functions/update.md index 76782521a5e..c2e925bf285 100644 --- a/docs/examples/1.2.x/server-swift/examples/functions/update.md +++ b/docs/examples/1.2.x/server-swift/examples/functions/update.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/graphql/63a08ed7b8f61.md b/docs/examples/1.2.x/server-swift/examples/graphql/63a08ed7b8f61.md index 86ffab5a9f9..b07095e7dd8 100644 --- a/docs/examples/1.2.x/server-swift/examples/graphql/63a08ed7b8f61.md +++ b/docs/examples/1.2.x/server-swift/examples/graphql/63a08ed7b8f61.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/graphql/get.md b/docs/examples/1.2.x/server-swift/examples/graphql/get.md index 6427c6fe08e..30f633f5a2e 100644 --- a/docs/examples/1.2.x/server-swift/examples/graphql/get.md +++ b/docs/examples/1.2.x/server-swift/examples/graphql/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/graphql/mutation.md b/docs/examples/1.2.x/server-swift/examples/graphql/mutation.md index db869d48c93..f2a0460e28b 100644 --- a/docs/examples/1.2.x/server-swift/examples/graphql/mutation.md +++ b/docs/examples/1.2.x/server-swift/examples/graphql/mutation.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/graphql/query.md b/docs/examples/1.2.x/server-swift/examples/graphql/query.md index 5e97508be50..58fe1041c45 100644 --- a/docs/examples/1.2.x/server-swift/examples/graphql/query.md +++ b/docs/examples/1.2.x/server-swift/examples/graphql/query.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/health/get-antivirus.md b/docs/examples/1.2.x/server-swift/examples/health/get-antivirus.md index cab0d98339d..2c45f7a619a 100644 --- a/docs/examples/1.2.x/server-swift/examples/health/get-antivirus.md +++ b/docs/examples/1.2.x/server-swift/examples/health/get-antivirus.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/health/get-cache.md b/docs/examples/1.2.x/server-swift/examples/health/get-cache.md index a682d63a6f6..8d54eede9c7 100644 --- a/docs/examples/1.2.x/server-swift/examples/health/get-cache.md +++ b/docs/examples/1.2.x/server-swift/examples/health/get-cache.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/health/get-d-b.md b/docs/examples/1.2.x/server-swift/examples/health/get-d-b.md index 81645497b5c..e115eee2add 100644 --- a/docs/examples/1.2.x/server-swift/examples/health/get-d-b.md +++ b/docs/examples/1.2.x/server-swift/examples/health/get-d-b.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/health/get-queue-certificates.md b/docs/examples/1.2.x/server-swift/examples/health/get-queue-certificates.md index 71f4dcfc436..f9490918e43 100644 --- a/docs/examples/1.2.x/server-swift/examples/health/get-queue-certificates.md +++ b/docs/examples/1.2.x/server-swift/examples/health/get-queue-certificates.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/health/get-queue-functions.md b/docs/examples/1.2.x/server-swift/examples/health/get-queue-functions.md index d6bdf767564..2f412b9da15 100644 --- a/docs/examples/1.2.x/server-swift/examples/health/get-queue-functions.md +++ b/docs/examples/1.2.x/server-swift/examples/health/get-queue-functions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/health/get-queue-logs.md b/docs/examples/1.2.x/server-swift/examples/health/get-queue-logs.md index 7580e46da17..6fc521baef1 100644 --- a/docs/examples/1.2.x/server-swift/examples/health/get-queue-logs.md +++ b/docs/examples/1.2.x/server-swift/examples/health/get-queue-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/health/get-queue-webhooks.md b/docs/examples/1.2.x/server-swift/examples/health/get-queue-webhooks.md index 431a5a031c9..42f1de37fea 100644 --- a/docs/examples/1.2.x/server-swift/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.2.x/server-swift/examples/health/get-queue-webhooks.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/health/get-storage-local.md b/docs/examples/1.2.x/server-swift/examples/health/get-storage-local.md index ee807980bba..276b1635ae7 100644 --- a/docs/examples/1.2.x/server-swift/examples/health/get-storage-local.md +++ b/docs/examples/1.2.x/server-swift/examples/health/get-storage-local.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/health/get-time.md b/docs/examples/1.2.x/server-swift/examples/health/get-time.md index f6d66d950a9..7b4bbb3dee8 100644 --- a/docs/examples/1.2.x/server-swift/examples/health/get-time.md +++ b/docs/examples/1.2.x/server-swift/examples/health/get-time.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/health/get.md b/docs/examples/1.2.x/server-swift/examples/health/get.md index 828f3453e0c..179b9694a2f 100644 --- a/docs/examples/1.2.x/server-swift/examples/health/get.md +++ b/docs/examples/1.2.x/server-swift/examples/health/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/locale/get.md b/docs/examples/1.2.x/server-swift/examples/locale/get.md index 5c5aee4cb4f..99df3ebbd11 100644 --- a/docs/examples/1.2.x/server-swift/examples/locale/get.md +++ b/docs/examples/1.2.x/server-swift/examples/locale/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/locale/list-continents.md b/docs/examples/1.2.x/server-swift/examples/locale/list-continents.md index 8cd7964b639..d3b8a66262e 100644 --- a/docs/examples/1.2.x/server-swift/examples/locale/list-continents.md +++ b/docs/examples/1.2.x/server-swift/examples/locale/list-continents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/locale/list-countries-e-u.md b/docs/examples/1.2.x/server-swift/examples/locale/list-countries-e-u.md index a787e7b7222..a02f72cd7af 100644 --- a/docs/examples/1.2.x/server-swift/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.2.x/server-swift/examples/locale/list-countries-e-u.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/locale/list-countries-phones.md b/docs/examples/1.2.x/server-swift/examples/locale/list-countries-phones.md index cf16d2d0b29..2d4d7ef0068 100644 --- a/docs/examples/1.2.x/server-swift/examples/locale/list-countries-phones.md +++ b/docs/examples/1.2.x/server-swift/examples/locale/list-countries-phones.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/locale/list-countries.md b/docs/examples/1.2.x/server-swift/examples/locale/list-countries.md index 32d5901e37e..ba769689a3e 100644 --- a/docs/examples/1.2.x/server-swift/examples/locale/list-countries.md +++ b/docs/examples/1.2.x/server-swift/examples/locale/list-countries.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/locale/list-currencies.md b/docs/examples/1.2.x/server-swift/examples/locale/list-currencies.md index 6b1daa7422c..2211e1855fa 100644 --- a/docs/examples/1.2.x/server-swift/examples/locale/list-currencies.md +++ b/docs/examples/1.2.x/server-swift/examples/locale/list-currencies.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/locale/list-languages.md b/docs/examples/1.2.x/server-swift/examples/locale/list-languages.md index 72c5649aaea..c8656709532 100644 --- a/docs/examples/1.2.x/server-swift/examples/locale/list-languages.md +++ b/docs/examples/1.2.x/server-swift/examples/locale/list-languages.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/storage/create-bucket.md b/docs/examples/1.2.x/server-swift/examples/storage/create-bucket.md index d3f91ab7af0..80ffc45decc 100644 --- a/docs/examples/1.2.x/server-swift/examples/storage/create-bucket.md +++ b/docs/examples/1.2.x/server-swift/examples/storage/create-bucket.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/storage/create-file.md b/docs/examples/1.2.x/server-swift/examples/storage/create-file.md index 45dd245d318..664a54c53ff 100644 --- a/docs/examples/1.2.x/server-swift/examples/storage/create-file.md +++ b/docs/examples/1.2.x/server-swift/examples/storage/create-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/storage/delete-bucket.md b/docs/examples/1.2.x/server-swift/examples/storage/delete-bucket.md index 4d41f1c373f..6c407365766 100644 --- a/docs/examples/1.2.x/server-swift/examples/storage/delete-bucket.md +++ b/docs/examples/1.2.x/server-swift/examples/storage/delete-bucket.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/storage/delete-file.md b/docs/examples/1.2.x/server-swift/examples/storage/delete-file.md index b2168f8ca1a..5d547d82a55 100644 --- a/docs/examples/1.2.x/server-swift/examples/storage/delete-file.md +++ b/docs/examples/1.2.x/server-swift/examples/storage/delete-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/storage/get-bucket.md b/docs/examples/1.2.x/server-swift/examples/storage/get-bucket.md index 8a27759e0e9..352aab3412f 100644 --- a/docs/examples/1.2.x/server-swift/examples/storage/get-bucket.md +++ b/docs/examples/1.2.x/server-swift/examples/storage/get-bucket.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/storage/get-file-download.md b/docs/examples/1.2.x/server-swift/examples/storage/get-file-download.md index 5205e17d436..1784f72852d 100644 --- a/docs/examples/1.2.x/server-swift/examples/storage/get-file-download.md +++ b/docs/examples/1.2.x/server-swift/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/storage/get-file-preview.md b/docs/examples/1.2.x/server-swift/examples/storage/get-file-preview.md index f6fbec66546..92fce42694d 100644 --- a/docs/examples/1.2.x/server-swift/examples/storage/get-file-preview.md +++ b/docs/examples/1.2.x/server-swift/examples/storage/get-file-preview.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/storage/get-file-view.md b/docs/examples/1.2.x/server-swift/examples/storage/get-file-view.md index 5926bdd959b..10d9c181d18 100644 --- a/docs/examples/1.2.x/server-swift/examples/storage/get-file-view.md +++ b/docs/examples/1.2.x/server-swift/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/storage/get-file.md b/docs/examples/1.2.x/server-swift/examples/storage/get-file.md index e516242775b..697dc83a16a 100644 --- a/docs/examples/1.2.x/server-swift/examples/storage/get-file.md +++ b/docs/examples/1.2.x/server-swift/examples/storage/get-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/storage/list-buckets.md b/docs/examples/1.2.x/server-swift/examples/storage/list-buckets.md index a3e92b282e4..c991833cdb1 100644 --- a/docs/examples/1.2.x/server-swift/examples/storage/list-buckets.md +++ b/docs/examples/1.2.x/server-swift/examples/storage/list-buckets.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/storage/list-files.md b/docs/examples/1.2.x/server-swift/examples/storage/list-files.md index 153a10d27f7..1f0018a150c 100644 --- a/docs/examples/1.2.x/server-swift/examples/storage/list-files.md +++ b/docs/examples/1.2.x/server-swift/examples/storage/list-files.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/storage/update-bucket.md b/docs/examples/1.2.x/server-swift/examples/storage/update-bucket.md index d2fd96c33de..f495e5efaae 100644 --- a/docs/examples/1.2.x/server-swift/examples/storage/update-bucket.md +++ b/docs/examples/1.2.x/server-swift/examples/storage/update-bucket.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/storage/update-file.md b/docs/examples/1.2.x/server-swift/examples/storage/update-file.md index f37202aa300..3a29db869db 100644 --- a/docs/examples/1.2.x/server-swift/examples/storage/update-file.md +++ b/docs/examples/1.2.x/server-swift/examples/storage/update-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/teams/create-membership.md b/docs/examples/1.2.x/server-swift/examples/teams/create-membership.md index c130ee6eaf0..26d73ab5c70 100644 --- a/docs/examples/1.2.x/server-swift/examples/teams/create-membership.md +++ b/docs/examples/1.2.x/server-swift/examples/teams/create-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/teams/create.md b/docs/examples/1.2.x/server-swift/examples/teams/create.md index e4f8c09e576..2e2b7faba06 100644 --- a/docs/examples/1.2.x/server-swift/examples/teams/create.md +++ b/docs/examples/1.2.x/server-swift/examples/teams/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/teams/delete-membership.md b/docs/examples/1.2.x/server-swift/examples/teams/delete-membership.md index 25326deba06..2f08c2cf0b3 100644 --- a/docs/examples/1.2.x/server-swift/examples/teams/delete-membership.md +++ b/docs/examples/1.2.x/server-swift/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/teams/delete.md b/docs/examples/1.2.x/server-swift/examples/teams/delete.md index c0e3d5e898d..104b19cecc3 100644 --- a/docs/examples/1.2.x/server-swift/examples/teams/delete.md +++ b/docs/examples/1.2.x/server-swift/examples/teams/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/teams/get-membership.md b/docs/examples/1.2.x/server-swift/examples/teams/get-membership.md index c399832ec26..c7adc3d0b62 100644 --- a/docs/examples/1.2.x/server-swift/examples/teams/get-membership.md +++ b/docs/examples/1.2.x/server-swift/examples/teams/get-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/teams/get.md b/docs/examples/1.2.x/server-swift/examples/teams/get.md index 07980d4f480..a100c3d20b5 100644 --- a/docs/examples/1.2.x/server-swift/examples/teams/get.md +++ b/docs/examples/1.2.x/server-swift/examples/teams/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/teams/list-memberships.md b/docs/examples/1.2.x/server-swift/examples/teams/list-memberships.md index 57d6ef7d379..31fd6131145 100644 --- a/docs/examples/1.2.x/server-swift/examples/teams/list-memberships.md +++ b/docs/examples/1.2.x/server-swift/examples/teams/list-memberships.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/teams/list.md b/docs/examples/1.2.x/server-swift/examples/teams/list.md index cdb174c357e..b5aa000dc03 100644 --- a/docs/examples/1.2.x/server-swift/examples/teams/list.md +++ b/docs/examples/1.2.x/server-swift/examples/teams/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/teams/update-membership-roles.md b/docs/examples/1.2.x/server-swift/examples/teams/update-membership-roles.md index b29bc6e7cb0..d0ee44be8eb 100644 --- a/docs/examples/1.2.x/server-swift/examples/teams/update-membership-roles.md +++ b/docs/examples/1.2.x/server-swift/examples/teams/update-membership-roles.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/teams/update-membership-status.md b/docs/examples/1.2.x/server-swift/examples/teams/update-membership-status.md index e209ece5eae..0ef80c00cc2 100644 --- a/docs/examples/1.2.x/server-swift/examples/teams/update-membership-status.md +++ b/docs/examples/1.2.x/server-swift/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.2.x/server-swift/examples/teams/update.md b/docs/examples/1.2.x/server-swift/examples/teams/update.md index bf731ed4446..3873ecdee65 100644 --- a/docs/examples/1.2.x/server-swift/examples/teams/update.md +++ b/docs/examples/1.2.x/server-swift/examples/teams/update.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/create-argon2user.md b/docs/examples/1.2.x/server-swift/examples/users/create-argon2user.md index 5914c87d968..bdef66e02c6 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/create-argon2user.md +++ b/docs/examples/1.2.x/server-swift/examples/users/create-argon2user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/create-bcrypt-user.md b/docs/examples/1.2.x/server-swift/examples/users/create-bcrypt-user.md index 4321365b5c3..2e2f17737b2 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.2.x/server-swift/examples/users/create-bcrypt-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/create-m-d5user.md b/docs/examples/1.2.x/server-swift/examples/users/create-m-d5user.md index 2302780c6b7..30033f8b9d3 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/create-m-d5user.md +++ b/docs/examples/1.2.x/server-swift/examples/users/create-m-d5user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/create-p-h-pass-user.md b/docs/examples/1.2.x/server-swift/examples/users/create-p-h-pass-user.md index b856891a7d0..65cd8658f44 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.2.x/server-swift/examples/users/create-p-h-pass-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/create-s-h-a-user.md b/docs/examples/1.2.x/server-swift/examples/users/create-s-h-a-user.md index c96661377ac..c6c8f41b073 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.2.x/server-swift/examples/users/create-s-h-a-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/create-scrypt-modified-user.md b/docs/examples/1.2.x/server-swift/examples/users/create-scrypt-modified-user.md index 3a9f70386ef..bfc1ba25e99 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.2.x/server-swift/examples/users/create-scrypt-modified-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/create-scrypt-user.md b/docs/examples/1.2.x/server-swift/examples/users/create-scrypt-user.md index dbe923de938..5716295eae6 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/create-scrypt-user.md +++ b/docs/examples/1.2.x/server-swift/examples/users/create-scrypt-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/create.md b/docs/examples/1.2.x/server-swift/examples/users/create.md index db49c1f77f6..1727ee5acd3 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/create.md +++ b/docs/examples/1.2.x/server-swift/examples/users/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/delete-session.md b/docs/examples/1.2.x/server-swift/examples/users/delete-session.md index 161e11d2748..694dcdb7924 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/delete-session.md +++ b/docs/examples/1.2.x/server-swift/examples/users/delete-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/delete-sessions.md b/docs/examples/1.2.x/server-swift/examples/users/delete-sessions.md index 71bc2bf8931..a3d02a82030 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/delete-sessions.md +++ b/docs/examples/1.2.x/server-swift/examples/users/delete-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/delete.md b/docs/examples/1.2.x/server-swift/examples/users/delete.md index c8762da65ac..883e305527f 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/delete.md +++ b/docs/examples/1.2.x/server-swift/examples/users/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/get-prefs.md b/docs/examples/1.2.x/server-swift/examples/users/get-prefs.md index 956724d0b3f..149ec000999 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/get-prefs.md +++ b/docs/examples/1.2.x/server-swift/examples/users/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/get.md b/docs/examples/1.2.x/server-swift/examples/users/get.md index a2b3a126f92..83126bd872e 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/get.md +++ b/docs/examples/1.2.x/server-swift/examples/users/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/list-logs.md b/docs/examples/1.2.x/server-swift/examples/users/list-logs.md index 20a55b7f50e..71c3f667857 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/list-logs.md +++ b/docs/examples/1.2.x/server-swift/examples/users/list-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/list-memberships.md b/docs/examples/1.2.x/server-swift/examples/users/list-memberships.md index c07287eb46b..089b27da64a 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/list-memberships.md +++ b/docs/examples/1.2.x/server-swift/examples/users/list-memberships.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/list-sessions.md b/docs/examples/1.2.x/server-swift/examples/users/list-sessions.md index 9f403d8da02..ed3c7677bf9 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/list-sessions.md +++ b/docs/examples/1.2.x/server-swift/examples/users/list-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/list.md b/docs/examples/1.2.x/server-swift/examples/users/list.md index 6b41b200156..59a0e1d44d4 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/list.md +++ b/docs/examples/1.2.x/server-swift/examples/users/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/update-email-verification.md b/docs/examples/1.2.x/server-swift/examples/users/update-email-verification.md index b0649e63f6e..76e0a069b32 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/update-email-verification.md +++ b/docs/examples/1.2.x/server-swift/examples/users/update-email-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/update-email.md b/docs/examples/1.2.x/server-swift/examples/users/update-email.md index 892ff0033fa..7d779fcd1f2 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/update-email.md +++ b/docs/examples/1.2.x/server-swift/examples/users/update-email.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/update-name.md b/docs/examples/1.2.x/server-swift/examples/users/update-name.md index a5ce6f9cadc..4f0e1118f63 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/update-name.md +++ b/docs/examples/1.2.x/server-swift/examples/users/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/update-password.md b/docs/examples/1.2.x/server-swift/examples/users/update-password.md index 9fb2d11be0d..b0ab7d63756 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/update-password.md +++ b/docs/examples/1.2.x/server-swift/examples/users/update-password.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/update-phone-verification.md b/docs/examples/1.2.x/server-swift/examples/users/update-phone-verification.md index f837ffc1670..ea10791ac0f 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/update-phone-verification.md +++ b/docs/examples/1.2.x/server-swift/examples/users/update-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/update-phone.md b/docs/examples/1.2.x/server-swift/examples/users/update-phone.md index f2b8f350dec..465d2613c98 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/update-phone.md +++ b/docs/examples/1.2.x/server-swift/examples/users/update-phone.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/update-prefs.md b/docs/examples/1.2.x/server-swift/examples/users/update-prefs.md index fc4131ea2fa..387d04f82ed 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/update-prefs.md +++ b/docs/examples/1.2.x/server-swift/examples/users/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.2.x/server-swift/examples/users/update-status.md b/docs/examples/1.2.x/server-swift/examples/users/update-status.md index f382775b179..c89328d3412 100644 --- a/docs/examples/1.2.x/server-swift/examples/users/update-status.md +++ b/docs/examples/1.2.x/server-swift/examples/users/update-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/client-android/java/account/create-anonymous-session.md b/docs/examples/1.3.x/client-android/java/account/create-anonymous-session.md index 59c76309e74..a52a17d1d03 100644 --- a/docs/examples/1.3.x/client-android/java/account/create-anonymous-session.md +++ b/docs/examples/1.3.x/client-android/java/account/create-anonymous-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/create-email-session.md b/docs/examples/1.3.x/client-android/java/account/create-email-session.md index e3e6fdd0070..86fa95f43c0 100644 --- a/docs/examples/1.3.x/client-android/java/account/create-email-session.md +++ b/docs/examples/1.3.x/client-android/java/account/create-email-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/create-j-w-t.md b/docs/examples/1.3.x/client-android/java/account/create-j-w-t.md index c3123860181..5b68aeb7ddc 100644 --- a/docs/examples/1.3.x/client-android/java/account/create-j-w-t.md +++ b/docs/examples/1.3.x/client-android/java/account/create-j-w-t.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/create-magic-u-r-l-session.md b/docs/examples/1.3.x/client-android/java/account/create-magic-u-r-l-session.md index 0ed43dc2860..a0b4e86b9f4 100644 --- a/docs/examples/1.3.x/client-android/java/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.3.x/client-android/java/account/create-magic-u-r-l-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/create-o-auth2session.md b/docs/examples/1.3.x/client-android/java/account/create-o-auth2session.md index cb9386a8483..57870eedbbf 100644 --- a/docs/examples/1.3.x/client-android/java/account/create-o-auth2session.md +++ b/docs/examples/1.3.x/client-android/java/account/create-o-auth2session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/create-phone-session.md b/docs/examples/1.3.x/client-android/java/account/create-phone-session.md index df5bc86891d..04918325c3f 100644 --- a/docs/examples/1.3.x/client-android/java/account/create-phone-session.md +++ b/docs/examples/1.3.x/client-android/java/account/create-phone-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/create-phone-verification.md b/docs/examples/1.3.x/client-android/java/account/create-phone-verification.md index 1545d0f82d2..7b7c354fff2 100644 --- a/docs/examples/1.3.x/client-android/java/account/create-phone-verification.md +++ b/docs/examples/1.3.x/client-android/java/account/create-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/create-recovery.md b/docs/examples/1.3.x/client-android/java/account/create-recovery.md index 5e8584fc359..955fe451ba7 100644 --- a/docs/examples/1.3.x/client-android/java/account/create-recovery.md +++ b/docs/examples/1.3.x/client-android/java/account/create-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/create-verification.md b/docs/examples/1.3.x/client-android/java/account/create-verification.md index fcea98f66c0..3fc9879f3ae 100644 --- a/docs/examples/1.3.x/client-android/java/account/create-verification.md +++ b/docs/examples/1.3.x/client-android/java/account/create-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/create.md b/docs/examples/1.3.x/client-android/java/account/create.md index e08731fd7ca..629374c8a47 100644 --- a/docs/examples/1.3.x/client-android/java/account/create.md +++ b/docs/examples/1.3.x/client-android/java/account/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/delete-session.md b/docs/examples/1.3.x/client-android/java/account/delete-session.md index 28009d014db..345094fcc2e 100644 --- a/docs/examples/1.3.x/client-android/java/account/delete-session.md +++ b/docs/examples/1.3.x/client-android/java/account/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/delete-sessions.md b/docs/examples/1.3.x/client-android/java/account/delete-sessions.md index 6bdc840cff0..7be86bea510 100644 --- a/docs/examples/1.3.x/client-android/java/account/delete-sessions.md +++ b/docs/examples/1.3.x/client-android/java/account/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/get-prefs.md b/docs/examples/1.3.x/client-android/java/account/get-prefs.md index 9911ad30a43..2b4f47b5046 100644 --- a/docs/examples/1.3.x/client-android/java/account/get-prefs.md +++ b/docs/examples/1.3.x/client-android/java/account/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/get-session.md b/docs/examples/1.3.x/client-android/java/account/get-session.md index fecb543782a..554bd545983 100644 --- a/docs/examples/1.3.x/client-android/java/account/get-session.md +++ b/docs/examples/1.3.x/client-android/java/account/get-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/get.md b/docs/examples/1.3.x/client-android/java/account/get.md index 2e5f40ad241..d6cf1077f59 100644 --- a/docs/examples/1.3.x/client-android/java/account/get.md +++ b/docs/examples/1.3.x/client-android/java/account/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/list-logs.md b/docs/examples/1.3.x/client-android/java/account/list-logs.md index d2ce790bfe8..8fed6547c36 100644 --- a/docs/examples/1.3.x/client-android/java/account/list-logs.md +++ b/docs/examples/1.3.x/client-android/java/account/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/list-sessions.md b/docs/examples/1.3.x/client-android/java/account/list-sessions.md index 7fd587e1ba3..f77b0b387aa 100644 --- a/docs/examples/1.3.x/client-android/java/account/list-sessions.md +++ b/docs/examples/1.3.x/client-android/java/account/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/update-email.md b/docs/examples/1.3.x/client-android/java/account/update-email.md index 8034ada87dd..86ea5207c95 100644 --- a/docs/examples/1.3.x/client-android/java/account/update-email.md +++ b/docs/examples/1.3.x/client-android/java/account/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/update-magic-u-r-l-session.md b/docs/examples/1.3.x/client-android/java/account/update-magic-u-r-l-session.md index 0f8f2b3c5ce..58c491f389e 100644 --- a/docs/examples/1.3.x/client-android/java/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.3.x/client-android/java/account/update-magic-u-r-l-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/update-name.md b/docs/examples/1.3.x/client-android/java/account/update-name.md index 5940f93ef24..f10172ee8a5 100644 --- a/docs/examples/1.3.x/client-android/java/account/update-name.md +++ b/docs/examples/1.3.x/client-android/java/account/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/update-password.md b/docs/examples/1.3.x/client-android/java/account/update-password.md index d9426322a4c..749e904c6e1 100644 --- a/docs/examples/1.3.x/client-android/java/account/update-password.md +++ b/docs/examples/1.3.x/client-android/java/account/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/update-phone-session.md b/docs/examples/1.3.x/client-android/java/account/update-phone-session.md index 589e4ff5097..ca34b65c1f9 100644 --- a/docs/examples/1.3.x/client-android/java/account/update-phone-session.md +++ b/docs/examples/1.3.x/client-android/java/account/update-phone-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/update-phone-verification.md b/docs/examples/1.3.x/client-android/java/account/update-phone-verification.md index 81785f97c2c..eb0fcbd9af1 100644 --- a/docs/examples/1.3.x/client-android/java/account/update-phone-verification.md +++ b/docs/examples/1.3.x/client-android/java/account/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/update-phone.md b/docs/examples/1.3.x/client-android/java/account/update-phone.md index a8572f911c8..b1680bb6046 100644 --- a/docs/examples/1.3.x/client-android/java/account/update-phone.md +++ b/docs/examples/1.3.x/client-android/java/account/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/update-prefs.md b/docs/examples/1.3.x/client-android/java/account/update-prefs.md index ffd5ef03b52..6552f1a68cc 100644 --- a/docs/examples/1.3.x/client-android/java/account/update-prefs.md +++ b/docs/examples/1.3.x/client-android/java/account/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/update-recovery.md b/docs/examples/1.3.x/client-android/java/account/update-recovery.md index 7b0f3921763..d6c17cff3fa 100644 --- a/docs/examples/1.3.x/client-android/java/account/update-recovery.md +++ b/docs/examples/1.3.x/client-android/java/account/update-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/update-session.md b/docs/examples/1.3.x/client-android/java/account/update-session.md index 27b8f00668f..4c40264def7 100644 --- a/docs/examples/1.3.x/client-android/java/account/update-session.md +++ b/docs/examples/1.3.x/client-android/java/account/update-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/update-status.md b/docs/examples/1.3.x/client-android/java/account/update-status.md index 1e18ded5405..42c0d2dd9df 100644 --- a/docs/examples/1.3.x/client-android/java/account/update-status.md +++ b/docs/examples/1.3.x/client-android/java/account/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/account/update-verification.md b/docs/examples/1.3.x/client-android/java/account/update-verification.md index d852dbf8382..ba1a2cd5e23 100644 --- a/docs/examples/1.3.x/client-android/java/account/update-verification.md +++ b/docs/examples/1.3.x/client-android/java/account/update-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.3.x/client-android/java/avatars/get-browser.md b/docs/examples/1.3.x/client-android/java/avatars/get-browser.md index f0721102367..2382d352d63 100644 --- a/docs/examples/1.3.x/client-android/java/avatars/get-browser.md +++ b/docs/examples/1.3.x/client-android/java/avatars/get-browser.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.3.x/client-android/java/avatars/get-credit-card.md b/docs/examples/1.3.x/client-android/java/avatars/get-credit-card.md index 0a733127917..9d3d9c31a3e 100644 --- a/docs/examples/1.3.x/client-android/java/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/client-android/java/avatars/get-credit-card.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.3.x/client-android/java/avatars/get-favicon.md b/docs/examples/1.3.x/client-android/java/avatars/get-favicon.md index e0c1cb6b8a2..af7be8b2263 100644 --- a/docs/examples/1.3.x/client-android/java/avatars/get-favicon.md +++ b/docs/examples/1.3.x/client-android/java/avatars/get-favicon.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.3.x/client-android/java/avatars/get-flag.md b/docs/examples/1.3.x/client-android/java/avatars/get-flag.md index a5f47906404..698813bb1c8 100644 --- a/docs/examples/1.3.x/client-android/java/avatars/get-flag.md +++ b/docs/examples/1.3.x/client-android/java/avatars/get-flag.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.3.x/client-android/java/avatars/get-image.md b/docs/examples/1.3.x/client-android/java/avatars/get-image.md index cdc8ac722b6..903d93f4d1d 100644 --- a/docs/examples/1.3.x/client-android/java/avatars/get-image.md +++ b/docs/examples/1.3.x/client-android/java/avatars/get-image.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.3.x/client-android/java/avatars/get-initials.md b/docs/examples/1.3.x/client-android/java/avatars/get-initials.md index c02490c7344..8c5d1452fb3 100644 --- a/docs/examples/1.3.x/client-android/java/avatars/get-initials.md +++ b/docs/examples/1.3.x/client-android/java/avatars/get-initials.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.3.x/client-android/java/avatars/get-q-r.md b/docs/examples/1.3.x/client-android/java/avatars/get-q-r.md index 2532f204d83..80d03776ed5 100644 --- a/docs/examples/1.3.x/client-android/java/avatars/get-q-r.md +++ b/docs/examples/1.3.x/client-android/java/avatars/get-q-r.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.3.x/client-android/java/databases/create-document.md b/docs/examples/1.3.x/client-android/java/databases/create-document.md index 715e4cdbbe3..0be2e146d84 100644 --- a/docs/examples/1.3.x/client-android/java/databases/create-document.md +++ b/docs/examples/1.3.x/client-android/java/databases/create-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.3.x/client-android/java/databases/delete-document.md b/docs/examples/1.3.x/client-android/java/databases/delete-document.md index 1387f486870..f941418c084 100644 --- a/docs/examples/1.3.x/client-android/java/databases/delete-document.md +++ b/docs/examples/1.3.x/client-android/java/databases/delete-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.3.x/client-android/java/databases/get-document.md b/docs/examples/1.3.x/client-android/java/databases/get-document.md index b1a7161971a..987a7957c11 100644 --- a/docs/examples/1.3.x/client-android/java/databases/get-document.md +++ b/docs/examples/1.3.x/client-android/java/databases/get-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.3.x/client-android/java/databases/list-documents.md b/docs/examples/1.3.x/client-android/java/databases/list-documents.md index 62dc2c7e291..f4957e7f608 100644 --- a/docs/examples/1.3.x/client-android/java/databases/list-documents.md +++ b/docs/examples/1.3.x/client-android/java/databases/list-documents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.3.x/client-android/java/databases/update-document.md b/docs/examples/1.3.x/client-android/java/databases/update-document.md index d1ed59de3bd..0f31cb086d9 100644 --- a/docs/examples/1.3.x/client-android/java/databases/update-document.md +++ b/docs/examples/1.3.x/client-android/java/databases/update-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.3.x/client-android/java/functions/create-execution.md b/docs/examples/1.3.x/client-android/java/functions/create-execution.md index 3cce1c37be8..79cf8c11997 100644 --- a/docs/examples/1.3.x/client-android/java/functions/create-execution.md +++ b/docs/examples/1.3.x/client-android/java/functions/create-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.3.x/client-android/java/functions/get-execution.md b/docs/examples/1.3.x/client-android/java/functions/get-execution.md index 459d74394f2..496dfe61257 100644 --- a/docs/examples/1.3.x/client-android/java/functions/get-execution.md +++ b/docs/examples/1.3.x/client-android/java/functions/get-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.3.x/client-android/java/functions/list-executions.md b/docs/examples/1.3.x/client-android/java/functions/list-executions.md index c1f982b707b..6b8c37245e1 100644 --- a/docs/examples/1.3.x/client-android/java/functions/list-executions.md +++ b/docs/examples/1.3.x/client-android/java/functions/list-executions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.3.x/client-android/java/graphql/mutation.md b/docs/examples/1.3.x/client-android/java/graphql/mutation.md index 262e513bed7..3028bf105ae 100644 --- a/docs/examples/1.3.x/client-android/java/graphql/mutation.md +++ b/docs/examples/1.3.x/client-android/java/graphql/mutation.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.3.x/client-android/java/graphql/query.md b/docs/examples/1.3.x/client-android/java/graphql/query.md index 4291b4735f9..8215c674be5 100644 --- a/docs/examples/1.3.x/client-android/java/graphql/query.md +++ b/docs/examples/1.3.x/client-android/java/graphql/query.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.3.x/client-android/java/locale/get.md b/docs/examples/1.3.x/client-android/java/locale/get.md index 4d14be6d733..443f5e29b57 100644 --- a/docs/examples/1.3.x/client-android/java/locale/get.md +++ b/docs/examples/1.3.x/client-android/java/locale/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.3.x/client-android/java/locale/list-continents.md b/docs/examples/1.3.x/client-android/java/locale/list-continents.md index 6abe97a0a02..47d11d7348b 100644 --- a/docs/examples/1.3.x/client-android/java/locale/list-continents.md +++ b/docs/examples/1.3.x/client-android/java/locale/list-continents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.3.x/client-android/java/locale/list-countries-e-u.md b/docs/examples/1.3.x/client-android/java/locale/list-countries-e-u.md index 3c5ca3ae8c5..0f010e71f3e 100644 --- a/docs/examples/1.3.x/client-android/java/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/client-android/java/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.3.x/client-android/java/locale/list-countries-phones.md b/docs/examples/1.3.x/client-android/java/locale/list-countries-phones.md index 81ef94d702d..0ff5e0a14eb 100644 --- a/docs/examples/1.3.x/client-android/java/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/client-android/java/locale/list-countries-phones.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.3.x/client-android/java/locale/list-countries.md b/docs/examples/1.3.x/client-android/java/locale/list-countries.md index dc0d5f52c4e..754507d56b1 100644 --- a/docs/examples/1.3.x/client-android/java/locale/list-countries.md +++ b/docs/examples/1.3.x/client-android/java/locale/list-countries.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.3.x/client-android/java/locale/list-currencies.md b/docs/examples/1.3.x/client-android/java/locale/list-currencies.md index 7a327b38ae7..82665375509 100644 --- a/docs/examples/1.3.x/client-android/java/locale/list-currencies.md +++ b/docs/examples/1.3.x/client-android/java/locale/list-currencies.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.3.x/client-android/java/locale/list-languages.md b/docs/examples/1.3.x/client-android/java/locale/list-languages.md index 0688614b6df..ad8d092a16b 100644 --- a/docs/examples/1.3.x/client-android/java/locale/list-languages.md +++ b/docs/examples/1.3.x/client-android/java/locale/list-languages.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.3.x/client-android/java/storage/create-file.md b/docs/examples/1.3.x/client-android/java/storage/create-file.md index 732b302f635..88fdd64a10b 100644 --- a/docs/examples/1.3.x/client-android/java/storage/create-file.md +++ b/docs/examples/1.3.x/client-android/java/storage/create-file.md @@ -4,7 +4,7 @@ import io.appwrite.models.InputFile; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.3.x/client-android/java/storage/delete-file.md b/docs/examples/1.3.x/client-android/java/storage/delete-file.md index 69a0f0f844b..90e98d3f0c8 100644 --- a/docs/examples/1.3.x/client-android/java/storage/delete-file.md +++ b/docs/examples/1.3.x/client-android/java/storage/delete-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.3.x/client-android/java/storage/get-file-download.md b/docs/examples/1.3.x/client-android/java/storage/get-file-download.md index 2ab30dce5af..5c92a9b27d1 100644 --- a/docs/examples/1.3.x/client-android/java/storage/get-file-download.md +++ b/docs/examples/1.3.x/client-android/java/storage/get-file-download.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.3.x/client-android/java/storage/get-file-preview.md b/docs/examples/1.3.x/client-android/java/storage/get-file-preview.md index 483f2fca168..519b03f73b4 100644 --- a/docs/examples/1.3.x/client-android/java/storage/get-file-preview.md +++ b/docs/examples/1.3.x/client-android/java/storage/get-file-preview.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.3.x/client-android/java/storage/get-file-view.md b/docs/examples/1.3.x/client-android/java/storage/get-file-view.md index 5614b694a50..376428309b4 100644 --- a/docs/examples/1.3.x/client-android/java/storage/get-file-view.md +++ b/docs/examples/1.3.x/client-android/java/storage/get-file-view.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.3.x/client-android/java/storage/get-file.md b/docs/examples/1.3.x/client-android/java/storage/get-file.md index 4ae0de0d9ae..61d6e9f03ab 100644 --- a/docs/examples/1.3.x/client-android/java/storage/get-file.md +++ b/docs/examples/1.3.x/client-android/java/storage/get-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.3.x/client-android/java/storage/list-files.md b/docs/examples/1.3.x/client-android/java/storage/list-files.md index dedfb6c1002..345e43fd14d 100644 --- a/docs/examples/1.3.x/client-android/java/storage/list-files.md +++ b/docs/examples/1.3.x/client-android/java/storage/list-files.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.3.x/client-android/java/storage/update-file.md b/docs/examples/1.3.x/client-android/java/storage/update-file.md index 9b4dd922667..92024cfdd61 100644 --- a/docs/examples/1.3.x/client-android/java/storage/update-file.md +++ b/docs/examples/1.3.x/client-android/java/storage/update-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.3.x/client-android/java/teams/create-membership.md b/docs/examples/1.3.x/client-android/java/teams/create-membership.md index 6c8b3833580..5a414db3580 100644 --- a/docs/examples/1.3.x/client-android/java/teams/create-membership.md +++ b/docs/examples/1.3.x/client-android/java/teams/create-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.3.x/client-android/java/teams/create.md b/docs/examples/1.3.x/client-android/java/teams/create.md index 263fa57be7b..5a9dd741db2 100644 --- a/docs/examples/1.3.x/client-android/java/teams/create.md +++ b/docs/examples/1.3.x/client-android/java/teams/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.3.x/client-android/java/teams/delete-membership.md b/docs/examples/1.3.x/client-android/java/teams/delete-membership.md index 40f28f0c21e..0babc74b4d3 100644 --- a/docs/examples/1.3.x/client-android/java/teams/delete-membership.md +++ b/docs/examples/1.3.x/client-android/java/teams/delete-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.3.x/client-android/java/teams/delete.md b/docs/examples/1.3.x/client-android/java/teams/delete.md index 5b4c378b5e2..aa7425b365c 100644 --- a/docs/examples/1.3.x/client-android/java/teams/delete.md +++ b/docs/examples/1.3.x/client-android/java/teams/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.3.x/client-android/java/teams/get-membership.md b/docs/examples/1.3.x/client-android/java/teams/get-membership.md index f2f1d99ae0b..f7a6a10d971 100644 --- a/docs/examples/1.3.x/client-android/java/teams/get-membership.md +++ b/docs/examples/1.3.x/client-android/java/teams/get-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.3.x/client-android/java/teams/get-prefs.md b/docs/examples/1.3.x/client-android/java/teams/get-prefs.md index 6963cb40cae..ea0c8594a6f 100644 --- a/docs/examples/1.3.x/client-android/java/teams/get-prefs.md +++ b/docs/examples/1.3.x/client-android/java/teams/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.3.x/client-android/java/teams/get.md b/docs/examples/1.3.x/client-android/java/teams/get.md index 549af20d342..62af7c22012 100644 --- a/docs/examples/1.3.x/client-android/java/teams/get.md +++ b/docs/examples/1.3.x/client-android/java/teams/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.3.x/client-android/java/teams/list-memberships.md b/docs/examples/1.3.x/client-android/java/teams/list-memberships.md index 3da4e33d518..65d1bf6e96f 100644 --- a/docs/examples/1.3.x/client-android/java/teams/list-memberships.md +++ b/docs/examples/1.3.x/client-android/java/teams/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.3.x/client-android/java/teams/list.md b/docs/examples/1.3.x/client-android/java/teams/list.md index b20ad4a2110..a8d4f12d774 100644 --- a/docs/examples/1.3.x/client-android/java/teams/list.md +++ b/docs/examples/1.3.x/client-android/java/teams/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.3.x/client-android/java/teams/update-membership-roles.md b/docs/examples/1.3.x/client-android/java/teams/update-membership-roles.md index da5f6d8d595..2fc57ebfd92 100644 --- a/docs/examples/1.3.x/client-android/java/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/client-android/java/teams/update-membership-roles.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.3.x/client-android/java/teams/update-membership-status.md b/docs/examples/1.3.x/client-android/java/teams/update-membership-status.md index 499251f21f8..1a0748149f1 100644 --- a/docs/examples/1.3.x/client-android/java/teams/update-membership-status.md +++ b/docs/examples/1.3.x/client-android/java/teams/update-membership-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.3.x/client-android/java/teams/update-name.md b/docs/examples/1.3.x/client-android/java/teams/update-name.md index 170ee590151..525cfdf201f 100644 --- a/docs/examples/1.3.x/client-android/java/teams/update-name.md +++ b/docs/examples/1.3.x/client-android/java/teams/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.3.x/client-android/java/teams/update-prefs.md b/docs/examples/1.3.x/client-android/java/teams/update-prefs.md index a19ad8207e5..f454393c429 100644 --- a/docs/examples/1.3.x/client-android/java/teams/update-prefs.md +++ b/docs/examples/1.3.x/client-android/java/teams/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.3.x/client-android/kotlin/account/create-anonymous-session.md b/docs/examples/1.3.x/client-android/kotlin/account/create-anonymous-session.md index cdcf401ed9e..f0d574304d0 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/create-anonymous-session.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/create-anonymous-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/create-email-session.md b/docs/examples/1.3.x/client-android/kotlin/account/create-email-session.md index ab8d581fd10..e7b438f8cc0 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/create-email-session.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/create-email-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/create-j-w-t.md b/docs/examples/1.3.x/client-android/kotlin/account/create-j-w-t.md index 35e7a6ffd4a..3e1f2e011ac 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/create-j-w-t.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/create-j-w-t.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/create-magic-u-r-l-session.md b/docs/examples/1.3.x/client-android/kotlin/account/create-magic-u-r-l-session.md index 51368b53923..88146d07322 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/create-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/create-o-auth2session.md b/docs/examples/1.3.x/client-android/kotlin/account/create-o-auth2session.md index 395bfada007..f3bf8145e4d 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/create-o-auth2session.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/create-o-auth2session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/create-phone-session.md b/docs/examples/1.3.x/client-android/kotlin/account/create-phone-session.md index eed6f7a2e21..b87e421f8b4 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/create-phone-session.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/create-phone-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/create-phone-verification.md b/docs/examples/1.3.x/client-android/kotlin/account/create-phone-verification.md index 12fb9f74e86..8dded67ac3b 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/create-phone-verification.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/create-phone-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/create-recovery.md b/docs/examples/1.3.x/client-android/kotlin/account/create-recovery.md index 7d73a671dde..70d55639c34 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/create-recovery.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/create-recovery.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/create-verification.md b/docs/examples/1.3.x/client-android/kotlin/account/create-verification.md index b3dc43ac48d..a7c8f11cac1 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/create-verification.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/create-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/create.md b/docs/examples/1.3.x/client-android/kotlin/account/create.md index c72ae90deff..a78fc611e58 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/create.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/delete-session.md b/docs/examples/1.3.x/client-android/kotlin/account/delete-session.md index a98a28661b2..5e22b533695 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/delete-session.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/delete-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/delete-sessions.md b/docs/examples/1.3.x/client-android/kotlin/account/delete-sessions.md index c9afbf13457..e90c2a9348e 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/delete-sessions.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/delete-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/get-prefs.md b/docs/examples/1.3.x/client-android/kotlin/account/get-prefs.md index bd3f81a23fd..01c128266b5 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/get-prefs.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/get-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/get-session.md b/docs/examples/1.3.x/client-android/kotlin/account/get-session.md index d6d6c72eac7..f150d0fb2f7 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/get-session.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/get-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/get.md b/docs/examples/1.3.x/client-android/kotlin/account/get.md index 4c8f0be9de6..83f7f8789d7 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/get.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/list-logs.md b/docs/examples/1.3.x/client-android/kotlin/account/list-logs.md index eb337caec0c..d9f569f3207 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/list-logs.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/list-logs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/list-sessions.md b/docs/examples/1.3.x/client-android/kotlin/account/list-sessions.md index cd9f63bc3c4..2969326917e 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/list-sessions.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/list-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/update-email.md b/docs/examples/1.3.x/client-android/kotlin/account/update-email.md index 85a02425911..dcc9b822b6f 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/update-email.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/update-email.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/update-magic-u-r-l-session.md b/docs/examples/1.3.x/client-android/kotlin/account/update-magic-u-r-l-session.md index c7286ba6c84..c0e7f408117 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/update-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/update-name.md b/docs/examples/1.3.x/client-android/kotlin/account/update-name.md index 574f4938d87..18b631b1d56 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/update-name.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/update-name.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/update-password.md b/docs/examples/1.3.x/client-android/kotlin/account/update-password.md index c5338b86945..45ff1b25e68 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/update-password.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/update-password.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/update-phone-session.md b/docs/examples/1.3.x/client-android/kotlin/account/update-phone-session.md index d3b02e04ce2..39be2c4f5f2 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/update-phone-session.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/update-phone-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/update-phone-verification.md b/docs/examples/1.3.x/client-android/kotlin/account/update-phone-verification.md index 0314f742230..4dc6c63915b 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/update-phone-verification.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/update-phone-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/update-phone.md b/docs/examples/1.3.x/client-android/kotlin/account/update-phone.md index 76eb8aac5e2..39d420b197a 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/update-phone.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/update-phone.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/update-prefs.md b/docs/examples/1.3.x/client-android/kotlin/account/update-prefs.md index f16e40ba41f..beb8e6e2dd5 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/update-prefs.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/update-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/update-recovery.md b/docs/examples/1.3.x/client-android/kotlin/account/update-recovery.md index 9682899bcb2..e2f56651164 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/update-recovery.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/update-recovery.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/update-session.md b/docs/examples/1.3.x/client-android/kotlin/account/update-session.md index e9e83d0cb03..74bf0a235eb 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/update-session.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/update-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/update-status.md b/docs/examples/1.3.x/client-android/kotlin/account/update-status.md index f7789ea237f..4637918887d 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/update-status.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/update-status.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/account/update-verification.md b/docs/examples/1.3.x/client-android/kotlin/account/update-verification.md index af800c1fc57..de3bf1bfe37 100644 --- a/docs/examples/1.3.x/client-android/kotlin/account/update-verification.md +++ b/docs/examples/1.3.x/client-android/kotlin/account/update-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/avatars/get-browser.md b/docs/examples/1.3.x/client-android/kotlin/avatars/get-browser.md index b1b2d081832..9d65c62b1cb 100644 --- a/docs/examples/1.3.x/client-android/kotlin/avatars/get-browser.md +++ b/docs/examples/1.3.x/client-android/kotlin/avatars/get-browser.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/avatars/get-credit-card.md b/docs/examples/1.3.x/client-android/kotlin/avatars/get-credit-card.md index 411e05ae51d..7265ea284c7 100644 --- a/docs/examples/1.3.x/client-android/kotlin/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/client-android/kotlin/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/avatars/get-favicon.md b/docs/examples/1.3.x/client-android/kotlin/avatars/get-favicon.md index 1a4b217fa4a..144c95a5c54 100644 --- a/docs/examples/1.3.x/client-android/kotlin/avatars/get-favicon.md +++ b/docs/examples/1.3.x/client-android/kotlin/avatars/get-favicon.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/avatars/get-flag.md b/docs/examples/1.3.x/client-android/kotlin/avatars/get-flag.md index 5c882d60186..82cd2166779 100644 --- a/docs/examples/1.3.x/client-android/kotlin/avatars/get-flag.md +++ b/docs/examples/1.3.x/client-android/kotlin/avatars/get-flag.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/avatars/get-image.md b/docs/examples/1.3.x/client-android/kotlin/avatars/get-image.md index 20d8dff13c7..05bdc47199f 100644 --- a/docs/examples/1.3.x/client-android/kotlin/avatars/get-image.md +++ b/docs/examples/1.3.x/client-android/kotlin/avatars/get-image.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/avatars/get-initials.md b/docs/examples/1.3.x/client-android/kotlin/avatars/get-initials.md index 70ef9b29091..6b1d95a22a7 100644 --- a/docs/examples/1.3.x/client-android/kotlin/avatars/get-initials.md +++ b/docs/examples/1.3.x/client-android/kotlin/avatars/get-initials.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/avatars/get-q-r.md b/docs/examples/1.3.x/client-android/kotlin/avatars/get-q-r.md index 92b17e11639..8d6aae60f74 100644 --- a/docs/examples/1.3.x/client-android/kotlin/avatars/get-q-r.md +++ b/docs/examples/1.3.x/client-android/kotlin/avatars/get-q-r.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/databases/create-document.md b/docs/examples/1.3.x/client-android/kotlin/databases/create-document.md index d7f1991d391..99e042cc690 100644 --- a/docs/examples/1.3.x/client-android/kotlin/databases/create-document.md +++ b/docs/examples/1.3.x/client-android/kotlin/databases/create-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/databases/delete-document.md b/docs/examples/1.3.x/client-android/kotlin/databases/delete-document.md index c5bf2a27070..1a150b8c9b1 100644 --- a/docs/examples/1.3.x/client-android/kotlin/databases/delete-document.md +++ b/docs/examples/1.3.x/client-android/kotlin/databases/delete-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/databases/get-document.md b/docs/examples/1.3.x/client-android/kotlin/databases/get-document.md index abdee363169..afad4a20be7 100644 --- a/docs/examples/1.3.x/client-android/kotlin/databases/get-document.md +++ b/docs/examples/1.3.x/client-android/kotlin/databases/get-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/databases/list-documents.md b/docs/examples/1.3.x/client-android/kotlin/databases/list-documents.md index f97d8787c91..5e3a8d62316 100644 --- a/docs/examples/1.3.x/client-android/kotlin/databases/list-documents.md +++ b/docs/examples/1.3.x/client-android/kotlin/databases/list-documents.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/databases/update-document.md b/docs/examples/1.3.x/client-android/kotlin/databases/update-document.md index 3820b8965ce..c6186d77890 100644 --- a/docs/examples/1.3.x/client-android/kotlin/databases/update-document.md +++ b/docs/examples/1.3.x/client-android/kotlin/databases/update-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/functions/create-execution.md b/docs/examples/1.3.x/client-android/kotlin/functions/create-execution.md index 77d4587755e..4bf08c84367 100644 --- a/docs/examples/1.3.x/client-android/kotlin/functions/create-execution.md +++ b/docs/examples/1.3.x/client-android/kotlin/functions/create-execution.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/functions/get-execution.md b/docs/examples/1.3.x/client-android/kotlin/functions/get-execution.md index b57668679fd..a6488876ed2 100644 --- a/docs/examples/1.3.x/client-android/kotlin/functions/get-execution.md +++ b/docs/examples/1.3.x/client-android/kotlin/functions/get-execution.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/functions/list-executions.md b/docs/examples/1.3.x/client-android/kotlin/functions/list-executions.md index 14b613f7036..7a0ebbf04a3 100644 --- a/docs/examples/1.3.x/client-android/kotlin/functions/list-executions.md +++ b/docs/examples/1.3.x/client-android/kotlin/functions/list-executions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/graphql/mutation.md b/docs/examples/1.3.x/client-android/kotlin/graphql/mutation.md index dc37a3e6408..ff5165a1c65 100644 --- a/docs/examples/1.3.x/client-android/kotlin/graphql/mutation.md +++ b/docs/examples/1.3.x/client-android/kotlin/graphql/mutation.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val graphql = Graphql(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/graphql/query.md b/docs/examples/1.3.x/client-android/kotlin/graphql/query.md index d8210709228..6b4c11190ef 100644 --- a/docs/examples/1.3.x/client-android/kotlin/graphql/query.md +++ b/docs/examples/1.3.x/client-android/kotlin/graphql/query.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val graphql = Graphql(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/locale/get.md b/docs/examples/1.3.x/client-android/kotlin/locale/get.md index a2044c72570..f07d3cf7eb5 100644 --- a/docs/examples/1.3.x/client-android/kotlin/locale/get.md +++ b/docs/examples/1.3.x/client-android/kotlin/locale/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/locale/list-continents.md b/docs/examples/1.3.x/client-android/kotlin/locale/list-continents.md index 610747ee131..5fc344d1701 100644 --- a/docs/examples/1.3.x/client-android/kotlin/locale/list-continents.md +++ b/docs/examples/1.3.x/client-android/kotlin/locale/list-continents.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/locale/list-countries-e-u.md b/docs/examples/1.3.x/client-android/kotlin/locale/list-countries-e-u.md index fa5483f0b0d..691a9583fde 100644 --- a/docs/examples/1.3.x/client-android/kotlin/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/client-android/kotlin/locale/list-countries-e-u.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/locale/list-countries-phones.md b/docs/examples/1.3.x/client-android/kotlin/locale/list-countries-phones.md index 6aba463a388..6ef8dcd7ac3 100644 --- a/docs/examples/1.3.x/client-android/kotlin/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/client-android/kotlin/locale/list-countries-phones.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/locale/list-countries.md b/docs/examples/1.3.x/client-android/kotlin/locale/list-countries.md index c58456b0f51..4dcc23e85e2 100644 --- a/docs/examples/1.3.x/client-android/kotlin/locale/list-countries.md +++ b/docs/examples/1.3.x/client-android/kotlin/locale/list-countries.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/locale/list-currencies.md b/docs/examples/1.3.x/client-android/kotlin/locale/list-currencies.md index 2cf064402a0..f9fb666379d 100644 --- a/docs/examples/1.3.x/client-android/kotlin/locale/list-currencies.md +++ b/docs/examples/1.3.x/client-android/kotlin/locale/list-currencies.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/locale/list-languages.md b/docs/examples/1.3.x/client-android/kotlin/locale/list-languages.md index afc00b1e77a..cdbcaa6f076 100644 --- a/docs/examples/1.3.x/client-android/kotlin/locale/list-languages.md +++ b/docs/examples/1.3.x/client-android/kotlin/locale/list-languages.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/storage/create-file.md b/docs/examples/1.3.x/client-android/kotlin/storage/create-file.md index 7bb79ac11ed..60a80bb6336 100644 --- a/docs/examples/1.3.x/client-android/kotlin/storage/create-file.md +++ b/docs/examples/1.3.x/client-android/kotlin/storage/create-file.md @@ -3,7 +3,7 @@ import io.appwrite.models.InputFile import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/storage/delete-file.md b/docs/examples/1.3.x/client-android/kotlin/storage/delete-file.md index 9430d7efe37..e4f094062bb 100644 --- a/docs/examples/1.3.x/client-android/kotlin/storage/delete-file.md +++ b/docs/examples/1.3.x/client-android/kotlin/storage/delete-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/storage/get-file-download.md b/docs/examples/1.3.x/client-android/kotlin/storage/get-file-download.md index 85bd22c9c12..ccc23d23fbc 100644 --- a/docs/examples/1.3.x/client-android/kotlin/storage/get-file-download.md +++ b/docs/examples/1.3.x/client-android/kotlin/storage/get-file-download.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/storage/get-file-preview.md b/docs/examples/1.3.x/client-android/kotlin/storage/get-file-preview.md index c5bbdef4199..5338b3ce45d 100644 --- a/docs/examples/1.3.x/client-android/kotlin/storage/get-file-preview.md +++ b/docs/examples/1.3.x/client-android/kotlin/storage/get-file-preview.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/storage/get-file-view.md b/docs/examples/1.3.x/client-android/kotlin/storage/get-file-view.md index 7e7589c0790..acba4607d7d 100644 --- a/docs/examples/1.3.x/client-android/kotlin/storage/get-file-view.md +++ b/docs/examples/1.3.x/client-android/kotlin/storage/get-file-view.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/storage/get-file.md b/docs/examples/1.3.x/client-android/kotlin/storage/get-file.md index 8fb6e244e89..14d7425c568 100644 --- a/docs/examples/1.3.x/client-android/kotlin/storage/get-file.md +++ b/docs/examples/1.3.x/client-android/kotlin/storage/get-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/storage/list-files.md b/docs/examples/1.3.x/client-android/kotlin/storage/list-files.md index 191a3cc97ca..258daaf3748 100644 --- a/docs/examples/1.3.x/client-android/kotlin/storage/list-files.md +++ b/docs/examples/1.3.x/client-android/kotlin/storage/list-files.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/storage/update-file.md b/docs/examples/1.3.x/client-android/kotlin/storage/update-file.md index 005270f3e4d..b5cc0d29988 100644 --- a/docs/examples/1.3.x/client-android/kotlin/storage/update-file.md +++ b/docs/examples/1.3.x/client-android/kotlin/storage/update-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/teams/create-membership.md b/docs/examples/1.3.x/client-android/kotlin/teams/create-membership.md index afc93366be2..88fcfddd31d 100644 --- a/docs/examples/1.3.x/client-android/kotlin/teams/create-membership.md +++ b/docs/examples/1.3.x/client-android/kotlin/teams/create-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/teams/create.md b/docs/examples/1.3.x/client-android/kotlin/teams/create.md index 5e70bd8df0b..2fa3cff014f 100644 --- a/docs/examples/1.3.x/client-android/kotlin/teams/create.md +++ b/docs/examples/1.3.x/client-android/kotlin/teams/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/teams/delete-membership.md b/docs/examples/1.3.x/client-android/kotlin/teams/delete-membership.md index 04ef5d3490f..56157f296b7 100644 --- a/docs/examples/1.3.x/client-android/kotlin/teams/delete-membership.md +++ b/docs/examples/1.3.x/client-android/kotlin/teams/delete-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/teams/delete.md b/docs/examples/1.3.x/client-android/kotlin/teams/delete.md index 7d58960e7c3..149c120375d 100644 --- a/docs/examples/1.3.x/client-android/kotlin/teams/delete.md +++ b/docs/examples/1.3.x/client-android/kotlin/teams/delete.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/teams/get-membership.md b/docs/examples/1.3.x/client-android/kotlin/teams/get-membership.md index 653bd520faf..78420a121e7 100644 --- a/docs/examples/1.3.x/client-android/kotlin/teams/get-membership.md +++ b/docs/examples/1.3.x/client-android/kotlin/teams/get-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/teams/get-prefs.md b/docs/examples/1.3.x/client-android/kotlin/teams/get-prefs.md index bfd8f7597fa..02e05873e80 100644 --- a/docs/examples/1.3.x/client-android/kotlin/teams/get-prefs.md +++ b/docs/examples/1.3.x/client-android/kotlin/teams/get-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/teams/get.md b/docs/examples/1.3.x/client-android/kotlin/teams/get.md index 72aea07f30a..7997e5aa2b6 100644 --- a/docs/examples/1.3.x/client-android/kotlin/teams/get.md +++ b/docs/examples/1.3.x/client-android/kotlin/teams/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/teams/list-memberships.md b/docs/examples/1.3.x/client-android/kotlin/teams/list-memberships.md index 53bd6f3b65b..79db9e57986 100644 --- a/docs/examples/1.3.x/client-android/kotlin/teams/list-memberships.md +++ b/docs/examples/1.3.x/client-android/kotlin/teams/list-memberships.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/teams/list.md b/docs/examples/1.3.x/client-android/kotlin/teams/list.md index 57c5fe83543..29b4d655e5f 100644 --- a/docs/examples/1.3.x/client-android/kotlin/teams/list.md +++ b/docs/examples/1.3.x/client-android/kotlin/teams/list.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/teams/update-membership-roles.md b/docs/examples/1.3.x/client-android/kotlin/teams/update-membership-roles.md index 1570e9df4a5..299cbb7e636 100644 --- a/docs/examples/1.3.x/client-android/kotlin/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/client-android/kotlin/teams/update-membership-roles.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/teams/update-membership-status.md b/docs/examples/1.3.x/client-android/kotlin/teams/update-membership-status.md index 33de006871f..e1a3b53df59 100644 --- a/docs/examples/1.3.x/client-android/kotlin/teams/update-membership-status.md +++ b/docs/examples/1.3.x/client-android/kotlin/teams/update-membership-status.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/teams/update-name.md b/docs/examples/1.3.x/client-android/kotlin/teams/update-name.md index 59c681232d8..d14522666a3 100644 --- a/docs/examples/1.3.x/client-android/kotlin/teams/update-name.md +++ b/docs/examples/1.3.x/client-android/kotlin/teams/update-name.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.3.x/client-android/kotlin/teams/update-prefs.md b/docs/examples/1.3.x/client-android/kotlin/teams/update-prefs.md index 6a89ac768d6..954f6a7aebf 100644 --- a/docs/examples/1.3.x/client-android/kotlin/teams/update-prefs.md +++ b/docs/examples/1.3.x/client-android/kotlin/teams/update-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/create-anonymous-session.md b/docs/examples/1.3.x/client-apple/examples/account/create-anonymous-session.md index 9904f6f222e..ec7bc357e17 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/create-anonymous-session.md +++ b/docs/examples/1.3.x/client-apple/examples/account/create-anonymous-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/create-email-session.md b/docs/examples/1.3.x/client-apple/examples/account/create-email-session.md index 311a3b6260f..cc9a14e931a 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/create-email-session.md +++ b/docs/examples/1.3.x/client-apple/examples/account/create-email-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/create-j-w-t.md b/docs/examples/1.3.x/client-apple/examples/account/create-j-w-t.md index c18c3c940ab..7d9b4e33674 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/create-j-w-t.md +++ b/docs/examples/1.3.x/client-apple/examples/account/create-j-w-t.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.3.x/client-apple/examples/account/create-magic-u-r-l-session.md index 929396ddc67..88efd04ca92 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.3.x/client-apple/examples/account/create-magic-u-r-l-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/create-o-auth2session.md b/docs/examples/1.3.x/client-apple/examples/account/create-o-auth2session.md index c84edfc6e76..7c4048689e7 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/create-o-auth2session.md +++ b/docs/examples/1.3.x/client-apple/examples/account/create-o-auth2session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/create-phone-session.md b/docs/examples/1.3.x/client-apple/examples/account/create-phone-session.md index caa66c161a6..40ad4c34fad 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/create-phone-session.md +++ b/docs/examples/1.3.x/client-apple/examples/account/create-phone-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/create-phone-verification.md b/docs/examples/1.3.x/client-apple/examples/account/create-phone-verification.md index b628897c60a..3b1548db4a8 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/create-phone-verification.md +++ b/docs/examples/1.3.x/client-apple/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/create-recovery.md b/docs/examples/1.3.x/client-apple/examples/account/create-recovery.md index 8d48938a87e..6f52d97ebb1 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/create-recovery.md +++ b/docs/examples/1.3.x/client-apple/examples/account/create-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/create-verification.md b/docs/examples/1.3.x/client-apple/examples/account/create-verification.md index 2c96d202d01..9271178af8a 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/create-verification.md +++ b/docs/examples/1.3.x/client-apple/examples/account/create-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/create.md b/docs/examples/1.3.x/client-apple/examples/account/create.md index a7836f8e379..fe023e0f617 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/create.md +++ b/docs/examples/1.3.x/client-apple/examples/account/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/delete-session.md b/docs/examples/1.3.x/client-apple/examples/account/delete-session.md index 316a27d8f7b..6e42ce8a5ec 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/delete-session.md +++ b/docs/examples/1.3.x/client-apple/examples/account/delete-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/delete-sessions.md b/docs/examples/1.3.x/client-apple/examples/account/delete-sessions.md index efb8c7cce11..b45ea356fe4 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/delete-sessions.md +++ b/docs/examples/1.3.x/client-apple/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/get-prefs.md b/docs/examples/1.3.x/client-apple/examples/account/get-prefs.md index 5a9fb2e356c..7605035f35d 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/get-prefs.md +++ b/docs/examples/1.3.x/client-apple/examples/account/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/get-session.md b/docs/examples/1.3.x/client-apple/examples/account/get-session.md index 66b363574aa..6adf367a337 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/get-session.md +++ b/docs/examples/1.3.x/client-apple/examples/account/get-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/get.md b/docs/examples/1.3.x/client-apple/examples/account/get.md index f29f83f8e8e..0bfdb0a7053 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/get.md +++ b/docs/examples/1.3.x/client-apple/examples/account/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/list-logs.md b/docs/examples/1.3.x/client-apple/examples/account/list-logs.md index 0c9725555e5..bc463217d69 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/list-logs.md +++ b/docs/examples/1.3.x/client-apple/examples/account/list-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/list-sessions.md b/docs/examples/1.3.x/client-apple/examples/account/list-sessions.md index b160c89f9cd..9c1daf94b95 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/list-sessions.md +++ b/docs/examples/1.3.x/client-apple/examples/account/list-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/update-email.md b/docs/examples/1.3.x/client-apple/examples/account/update-email.md index a8c37af9464..c1c3dd52510 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/update-email.md +++ b/docs/examples/1.3.x/client-apple/examples/account/update-email.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.3.x/client-apple/examples/account/update-magic-u-r-l-session.md index 42a7f710b52..e0a340a6066 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.3.x/client-apple/examples/account/update-magic-u-r-l-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/update-name.md b/docs/examples/1.3.x/client-apple/examples/account/update-name.md index a9d76812b55..04f8832a6b3 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/update-name.md +++ b/docs/examples/1.3.x/client-apple/examples/account/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/update-password.md b/docs/examples/1.3.x/client-apple/examples/account/update-password.md index bb3c3b0bea4..42a82dda330 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/update-password.md +++ b/docs/examples/1.3.x/client-apple/examples/account/update-password.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/update-phone-session.md b/docs/examples/1.3.x/client-apple/examples/account/update-phone-session.md index 41e26c3935c..a102cb740df 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/update-phone-session.md +++ b/docs/examples/1.3.x/client-apple/examples/account/update-phone-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/update-phone-verification.md b/docs/examples/1.3.x/client-apple/examples/account/update-phone-verification.md index 1c88595dc24..8e47f16be4e 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/update-phone-verification.md +++ b/docs/examples/1.3.x/client-apple/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/update-phone.md b/docs/examples/1.3.x/client-apple/examples/account/update-phone.md index 306e8f5a939..e595ee3d082 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/update-phone.md +++ b/docs/examples/1.3.x/client-apple/examples/account/update-phone.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/update-prefs.md b/docs/examples/1.3.x/client-apple/examples/account/update-prefs.md index cc765480c5e..bab4b310e8e 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/update-prefs.md +++ b/docs/examples/1.3.x/client-apple/examples/account/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/update-recovery.md b/docs/examples/1.3.x/client-apple/examples/account/update-recovery.md index 335dd6aeef0..1e965beff0b 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/update-recovery.md +++ b/docs/examples/1.3.x/client-apple/examples/account/update-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/update-session.md b/docs/examples/1.3.x/client-apple/examples/account/update-session.md index b71826246d6..8e1d1116507 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/update-session.md +++ b/docs/examples/1.3.x/client-apple/examples/account/update-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/update-status.md b/docs/examples/1.3.x/client-apple/examples/account/update-status.md index 3f2d823641d..2c7753f3796 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/update-status.md +++ b/docs/examples/1.3.x/client-apple/examples/account/update-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/account/update-verification.md b/docs/examples/1.3.x/client-apple/examples/account/update-verification.md index 36af6b99dac..5a521a212a3 100644 --- a/docs/examples/1.3.x/client-apple/examples/account/update-verification.md +++ b/docs/examples/1.3.x/client-apple/examples/account/update-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.3.x/client-apple/examples/avatars/get-browser.md b/docs/examples/1.3.x/client-apple/examples/avatars/get-browser.md index 19c8d02b6d2..9f86b044356 100644 --- a/docs/examples/1.3.x/client-apple/examples/avatars/get-browser.md +++ b/docs/examples/1.3.x/client-apple/examples/avatars/get-browser.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.3.x/client-apple/examples/avatars/get-credit-card.md b/docs/examples/1.3.x/client-apple/examples/avatars/get-credit-card.md index d7a680f35ed..1756c5b1468 100644 --- a/docs/examples/1.3.x/client-apple/examples/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/client-apple/examples/avatars/get-credit-card.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.3.x/client-apple/examples/avatars/get-favicon.md b/docs/examples/1.3.x/client-apple/examples/avatars/get-favicon.md index 01a7ec13445..945ce41a8cc 100644 --- a/docs/examples/1.3.x/client-apple/examples/avatars/get-favicon.md +++ b/docs/examples/1.3.x/client-apple/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.3.x/client-apple/examples/avatars/get-flag.md b/docs/examples/1.3.x/client-apple/examples/avatars/get-flag.md index eb33c906b6b..4044888df38 100644 --- a/docs/examples/1.3.x/client-apple/examples/avatars/get-flag.md +++ b/docs/examples/1.3.x/client-apple/examples/avatars/get-flag.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.3.x/client-apple/examples/avatars/get-image.md b/docs/examples/1.3.x/client-apple/examples/avatars/get-image.md index ef0cd36920b..659749d9927 100644 --- a/docs/examples/1.3.x/client-apple/examples/avatars/get-image.md +++ b/docs/examples/1.3.x/client-apple/examples/avatars/get-image.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.3.x/client-apple/examples/avatars/get-initials.md b/docs/examples/1.3.x/client-apple/examples/avatars/get-initials.md index 1bdd6f058a1..b9a5a7d0957 100644 --- a/docs/examples/1.3.x/client-apple/examples/avatars/get-initials.md +++ b/docs/examples/1.3.x/client-apple/examples/avatars/get-initials.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.3.x/client-apple/examples/avatars/get-q-r.md b/docs/examples/1.3.x/client-apple/examples/avatars/get-q-r.md index 5c801d40bbd..edf910514f7 100644 --- a/docs/examples/1.3.x/client-apple/examples/avatars/get-q-r.md +++ b/docs/examples/1.3.x/client-apple/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.3.x/client-apple/examples/databases/create-document.md b/docs/examples/1.3.x/client-apple/examples/databases/create-document.md index 533bbd534c2..d7f66d018c9 100644 --- a/docs/examples/1.3.x/client-apple/examples/databases/create-document.md +++ b/docs/examples/1.3.x/client-apple/examples/databases/create-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.3.x/client-apple/examples/databases/delete-document.md b/docs/examples/1.3.x/client-apple/examples/databases/delete-document.md index c9a751294d8..f05f747b6ce 100644 --- a/docs/examples/1.3.x/client-apple/examples/databases/delete-document.md +++ b/docs/examples/1.3.x/client-apple/examples/databases/delete-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.3.x/client-apple/examples/databases/get-document.md b/docs/examples/1.3.x/client-apple/examples/databases/get-document.md index 53b71fb4f5c..8f85eae2a46 100644 --- a/docs/examples/1.3.x/client-apple/examples/databases/get-document.md +++ b/docs/examples/1.3.x/client-apple/examples/databases/get-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.3.x/client-apple/examples/databases/list-documents.md b/docs/examples/1.3.x/client-apple/examples/databases/list-documents.md index 0b375df67a3..c05bc15e995 100644 --- a/docs/examples/1.3.x/client-apple/examples/databases/list-documents.md +++ b/docs/examples/1.3.x/client-apple/examples/databases/list-documents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.3.x/client-apple/examples/databases/update-document.md b/docs/examples/1.3.x/client-apple/examples/databases/update-document.md index 5a943af8c11..238da36ec86 100644 --- a/docs/examples/1.3.x/client-apple/examples/databases/update-document.md +++ b/docs/examples/1.3.x/client-apple/examples/databases/update-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.3.x/client-apple/examples/functions/create-execution.md b/docs/examples/1.3.x/client-apple/examples/functions/create-execution.md index 93702bfdbcd..8c696c8dec5 100644 --- a/docs/examples/1.3.x/client-apple/examples/functions/create-execution.md +++ b/docs/examples/1.3.x/client-apple/examples/functions/create-execution.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let functions = Functions(client) diff --git a/docs/examples/1.3.x/client-apple/examples/functions/get-execution.md b/docs/examples/1.3.x/client-apple/examples/functions/get-execution.md index f1e53cb5708..b6ed7f7e75e 100644 --- a/docs/examples/1.3.x/client-apple/examples/functions/get-execution.md +++ b/docs/examples/1.3.x/client-apple/examples/functions/get-execution.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let functions = Functions(client) diff --git a/docs/examples/1.3.x/client-apple/examples/functions/list-executions.md b/docs/examples/1.3.x/client-apple/examples/functions/list-executions.md index 0f182950eeb..5e6920aa213 100644 --- a/docs/examples/1.3.x/client-apple/examples/functions/list-executions.md +++ b/docs/examples/1.3.x/client-apple/examples/functions/list-executions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let functions = Functions(client) diff --git a/docs/examples/1.3.x/client-apple/examples/graphql/mutation.md b/docs/examples/1.3.x/client-apple/examples/graphql/mutation.md index d58b881df4d..aa8d9d318cb 100644 --- a/docs/examples/1.3.x/client-apple/examples/graphql/mutation.md +++ b/docs/examples/1.3.x/client-apple/examples/graphql/mutation.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let graphql = Graphql(client) diff --git a/docs/examples/1.3.x/client-apple/examples/graphql/query.md b/docs/examples/1.3.x/client-apple/examples/graphql/query.md index 0aba98aeb88..78797a21a02 100644 --- a/docs/examples/1.3.x/client-apple/examples/graphql/query.md +++ b/docs/examples/1.3.x/client-apple/examples/graphql/query.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let graphql = Graphql(client) diff --git a/docs/examples/1.3.x/client-apple/examples/locale/get.md b/docs/examples/1.3.x/client-apple/examples/locale/get.md index d12470d66ab..95dc75d9f84 100644 --- a/docs/examples/1.3.x/client-apple/examples/locale/get.md +++ b/docs/examples/1.3.x/client-apple/examples/locale/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.3.x/client-apple/examples/locale/list-continents.md b/docs/examples/1.3.x/client-apple/examples/locale/list-continents.md index 4853f77212d..83073b0210b 100644 --- a/docs/examples/1.3.x/client-apple/examples/locale/list-continents.md +++ b/docs/examples/1.3.x/client-apple/examples/locale/list-continents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.3.x/client-apple/examples/locale/list-countries-e-u.md b/docs/examples/1.3.x/client-apple/examples/locale/list-countries-e-u.md index 6e0a4d31d04..6f9d96899a3 100644 --- a/docs/examples/1.3.x/client-apple/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/client-apple/examples/locale/list-countries-e-u.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.3.x/client-apple/examples/locale/list-countries-phones.md b/docs/examples/1.3.x/client-apple/examples/locale/list-countries-phones.md index b4752eb469b..46e86dbe965 100644 --- a/docs/examples/1.3.x/client-apple/examples/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/client-apple/examples/locale/list-countries-phones.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.3.x/client-apple/examples/locale/list-countries.md b/docs/examples/1.3.x/client-apple/examples/locale/list-countries.md index 75369d0606e..f5a43f040aa 100644 --- a/docs/examples/1.3.x/client-apple/examples/locale/list-countries.md +++ b/docs/examples/1.3.x/client-apple/examples/locale/list-countries.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.3.x/client-apple/examples/locale/list-currencies.md b/docs/examples/1.3.x/client-apple/examples/locale/list-currencies.md index 92eea812756..bcbf30ec9dc 100644 --- a/docs/examples/1.3.x/client-apple/examples/locale/list-currencies.md +++ b/docs/examples/1.3.x/client-apple/examples/locale/list-currencies.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.3.x/client-apple/examples/locale/list-languages.md b/docs/examples/1.3.x/client-apple/examples/locale/list-languages.md index 2184812b1e8..46fa89e0791 100644 --- a/docs/examples/1.3.x/client-apple/examples/locale/list-languages.md +++ b/docs/examples/1.3.x/client-apple/examples/locale/list-languages.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.3.x/client-apple/examples/storage/create-file.md b/docs/examples/1.3.x/client-apple/examples/storage/create-file.md index f8824208821..9abfb7678b4 100644 --- a/docs/examples/1.3.x/client-apple/examples/storage/create-file.md +++ b/docs/examples/1.3.x/client-apple/examples/storage/create-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.3.x/client-apple/examples/storage/delete-file.md b/docs/examples/1.3.x/client-apple/examples/storage/delete-file.md index 27624b4bc20..d0222a52631 100644 --- a/docs/examples/1.3.x/client-apple/examples/storage/delete-file.md +++ b/docs/examples/1.3.x/client-apple/examples/storage/delete-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.3.x/client-apple/examples/storage/get-file-download.md b/docs/examples/1.3.x/client-apple/examples/storage/get-file-download.md index ca96b31d93e..48d81066766 100644 --- a/docs/examples/1.3.x/client-apple/examples/storage/get-file-download.md +++ b/docs/examples/1.3.x/client-apple/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.3.x/client-apple/examples/storage/get-file-preview.md b/docs/examples/1.3.x/client-apple/examples/storage/get-file-preview.md index 71c0f31f27d..17f75ae40da 100644 --- a/docs/examples/1.3.x/client-apple/examples/storage/get-file-preview.md +++ b/docs/examples/1.3.x/client-apple/examples/storage/get-file-preview.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.3.x/client-apple/examples/storage/get-file-view.md b/docs/examples/1.3.x/client-apple/examples/storage/get-file-view.md index 85631efc835..f18fd82d3d1 100644 --- a/docs/examples/1.3.x/client-apple/examples/storage/get-file-view.md +++ b/docs/examples/1.3.x/client-apple/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.3.x/client-apple/examples/storage/get-file.md b/docs/examples/1.3.x/client-apple/examples/storage/get-file.md index fa28b48d640..8f961898de7 100644 --- a/docs/examples/1.3.x/client-apple/examples/storage/get-file.md +++ b/docs/examples/1.3.x/client-apple/examples/storage/get-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.3.x/client-apple/examples/storage/list-files.md b/docs/examples/1.3.x/client-apple/examples/storage/list-files.md index 51f7fe8f053..ab0633ade53 100644 --- a/docs/examples/1.3.x/client-apple/examples/storage/list-files.md +++ b/docs/examples/1.3.x/client-apple/examples/storage/list-files.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.3.x/client-apple/examples/storage/update-file.md b/docs/examples/1.3.x/client-apple/examples/storage/update-file.md index 13bf635ec60..ac8ef4b3d45 100644 --- a/docs/examples/1.3.x/client-apple/examples/storage/update-file.md +++ b/docs/examples/1.3.x/client-apple/examples/storage/update-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.3.x/client-apple/examples/teams/create-membership.md b/docs/examples/1.3.x/client-apple/examples/teams/create-membership.md index 1936f9d1137..40cc1c96d23 100644 --- a/docs/examples/1.3.x/client-apple/examples/teams/create-membership.md +++ b/docs/examples/1.3.x/client-apple/examples/teams/create-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.3.x/client-apple/examples/teams/create.md b/docs/examples/1.3.x/client-apple/examples/teams/create.md index c28eec416d0..5e2b092a702 100644 --- a/docs/examples/1.3.x/client-apple/examples/teams/create.md +++ b/docs/examples/1.3.x/client-apple/examples/teams/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.3.x/client-apple/examples/teams/delete-membership.md b/docs/examples/1.3.x/client-apple/examples/teams/delete-membership.md index 186f6ad6fb4..e14bba13c7f 100644 --- a/docs/examples/1.3.x/client-apple/examples/teams/delete-membership.md +++ b/docs/examples/1.3.x/client-apple/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.3.x/client-apple/examples/teams/delete.md b/docs/examples/1.3.x/client-apple/examples/teams/delete.md index e7585ec3876..5e39a53370b 100644 --- a/docs/examples/1.3.x/client-apple/examples/teams/delete.md +++ b/docs/examples/1.3.x/client-apple/examples/teams/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.3.x/client-apple/examples/teams/get-membership.md b/docs/examples/1.3.x/client-apple/examples/teams/get-membership.md index 02ee3dab422..a792889fd4e 100644 --- a/docs/examples/1.3.x/client-apple/examples/teams/get-membership.md +++ b/docs/examples/1.3.x/client-apple/examples/teams/get-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.3.x/client-apple/examples/teams/get-prefs.md b/docs/examples/1.3.x/client-apple/examples/teams/get-prefs.md index bcd65b68c46..9b7cf43c38e 100644 --- a/docs/examples/1.3.x/client-apple/examples/teams/get-prefs.md +++ b/docs/examples/1.3.x/client-apple/examples/teams/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.3.x/client-apple/examples/teams/get.md b/docs/examples/1.3.x/client-apple/examples/teams/get.md index c8630adaacf..689c5e68859 100644 --- a/docs/examples/1.3.x/client-apple/examples/teams/get.md +++ b/docs/examples/1.3.x/client-apple/examples/teams/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.3.x/client-apple/examples/teams/list-memberships.md b/docs/examples/1.3.x/client-apple/examples/teams/list-memberships.md index 1f8a0ccb730..57876d3feae 100644 --- a/docs/examples/1.3.x/client-apple/examples/teams/list-memberships.md +++ b/docs/examples/1.3.x/client-apple/examples/teams/list-memberships.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.3.x/client-apple/examples/teams/list.md b/docs/examples/1.3.x/client-apple/examples/teams/list.md index 72226d4f5b7..cb9da6c7d5d 100644 --- a/docs/examples/1.3.x/client-apple/examples/teams/list.md +++ b/docs/examples/1.3.x/client-apple/examples/teams/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.3.x/client-apple/examples/teams/update-membership-roles.md b/docs/examples/1.3.x/client-apple/examples/teams/update-membership-roles.md index e59b86b06b4..8cfb32df2ca 100644 --- a/docs/examples/1.3.x/client-apple/examples/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/client-apple/examples/teams/update-membership-roles.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.3.x/client-apple/examples/teams/update-membership-status.md b/docs/examples/1.3.x/client-apple/examples/teams/update-membership-status.md index 65a899cb1c7..5f8b723cd5d 100644 --- a/docs/examples/1.3.x/client-apple/examples/teams/update-membership-status.md +++ b/docs/examples/1.3.x/client-apple/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.3.x/client-apple/examples/teams/update-name.md b/docs/examples/1.3.x/client-apple/examples/teams/update-name.md index 357182b1036..de4a6eb99e6 100644 --- a/docs/examples/1.3.x/client-apple/examples/teams/update-name.md +++ b/docs/examples/1.3.x/client-apple/examples/teams/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.3.x/client-apple/examples/teams/update-prefs.md b/docs/examples/1.3.x/client-apple/examples/teams/update-prefs.md index 6cfe79e3a8c..1a1a21bd793 100644 --- a/docs/examples/1.3.x/client-apple/examples/teams/update-prefs.md +++ b/docs/examples/1.3.x/client-apple/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.3.x/client-flutter/examples/account/create-anonymous-session.md b/docs/examples/1.3.x/client-flutter/examples/account/create-anonymous-session.md index 2f3e7a606ce..58b707f3c9c 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/create-anonymous-session.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/create-anonymous-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createAnonymousSession(); diff --git a/docs/examples/1.3.x/client-flutter/examples/account/create-email-session.md b/docs/examples/1.3.x/client-flutter/examples/account/create-email-session.md index 52b6b91f193..c76c2a6e932 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/create-email-session.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/create-email-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createEmailSession( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/create-j-w-t.md b/docs/examples/1.3.x/client-flutter/examples/account/create-j-w-t.md index c4a61f7c340..8cee6bc69e6 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/create-j-w-t.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/create-j-w-t.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createJWT(); diff --git a/docs/examples/1.3.x/client-flutter/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.3.x/client-flutter/examples/account/create-magic-u-r-l-session.md index d1b89bf1761..e8e37329148 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/create-magic-u-r-l-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createMagicURLSession( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/create-o-auth2session.md b/docs/examples/1.3.x/client-flutter/examples/account/create-o-auth2session.md index e985a92ae0f..5d627a14511 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/create-o-auth2session.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/create-o-auth2session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createOAuth2Session( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/create-phone-session.md b/docs/examples/1.3.x/client-flutter/examples/account/create-phone-session.md index fcb705c9389..c54c0f23972 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/create-phone-session.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/create-phone-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createPhoneSession( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/create-phone-verification.md b/docs/examples/1.3.x/client-flutter/examples/account/create-phone-verification.md index 76e724d8297..23ee2fd588c 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/create-phone-verification.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createPhoneVerification(); diff --git a/docs/examples/1.3.x/client-flutter/examples/account/create-recovery.md b/docs/examples/1.3.x/client-flutter/examples/account/create-recovery.md index 361a9f04591..d011eef2a37 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/create-recovery.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/create-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createRecovery( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/create-verification.md b/docs/examples/1.3.x/client-flutter/examples/account/create-verification.md index d66c3b1a0a6..565033b9a8a 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/create-verification.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/create-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createVerification( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/create.md b/docs/examples/1.3.x/client-flutter/examples/account/create.md index 1ff2ae91cbf..d2866cf5b66 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/create.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.create( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/delete-session.md b/docs/examples/1.3.x/client-flutter/examples/account/delete-session.md index 91465610707..9e381a2fa3a 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/delete-session.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/delete-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.deleteSession( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/delete-sessions.md b/docs/examples/1.3.x/client-flutter/examples/account/delete-sessions.md index 4963de4442b..27b06b6104b 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/delete-sessions.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.deleteSessions(); diff --git a/docs/examples/1.3.x/client-flutter/examples/account/get-prefs.md b/docs/examples/1.3.x/client-flutter/examples/account/get-prefs.md index 81eb802d03d..919b50be884 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/get-prefs.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.getPrefs(); diff --git a/docs/examples/1.3.x/client-flutter/examples/account/get-session.md b/docs/examples/1.3.x/client-flutter/examples/account/get-session.md index 9e0f66ca3fd..ac8c35b8f57 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/get-session.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/get-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.getSession( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/get.md b/docs/examples/1.3.x/client-flutter/examples/account/get.md index 21192de2796..4bcc080deef 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/get.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.get(); diff --git a/docs/examples/1.3.x/client-flutter/examples/account/list-logs.md b/docs/examples/1.3.x/client-flutter/examples/account/list-logs.md index 9f7088a0d81..6d793c947d3 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/list-logs.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/list-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.listLogs( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/list-sessions.md b/docs/examples/1.3.x/client-flutter/examples/account/list-sessions.md index 6f2d5dc18d5..3656fca1a18 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/list-sessions.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/list-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.listSessions(); diff --git a/docs/examples/1.3.x/client-flutter/examples/account/update-email.md b/docs/examples/1.3.x/client-flutter/examples/account/update-email.md index 1fb9a3fe7a7..2383c8e0de7 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/update-email.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/update-email.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateEmail( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.3.x/client-flutter/examples/account/update-magic-u-r-l-session.md index 3c7ef8f0f24..0dff3be5bfd 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/update-magic-u-r-l-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateMagicURLSession( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/update-name.md b/docs/examples/1.3.x/client-flutter/examples/account/update-name.md index ae5d6235d15..4d674ec0064 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/update-name.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateName( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/update-password.md b/docs/examples/1.3.x/client-flutter/examples/account/update-password.md index b5e86de273f..42514bd6a1b 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/update-password.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/update-password.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePassword( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/update-phone-session.md b/docs/examples/1.3.x/client-flutter/examples/account/update-phone-session.md index 1f979265b56..dc6c8eb8938 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/update-phone-session.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/update-phone-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePhoneSession( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/update-phone-verification.md b/docs/examples/1.3.x/client-flutter/examples/account/update-phone-verification.md index 86d9b0fdfc5..a7acf71661b 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/update-phone-verification.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePhoneVerification( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/update-phone.md b/docs/examples/1.3.x/client-flutter/examples/account/update-phone.md index edfe47850b6..642ead44051 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/update-phone.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/update-phone.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePhone( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/update-prefs.md b/docs/examples/1.3.x/client-flutter/examples/account/update-prefs.md index 97697081474..d37013d80ac 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/update-prefs.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePrefs( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/update-recovery.md b/docs/examples/1.3.x/client-flutter/examples/account/update-recovery.md index f499b18770f..ce9c8b5e8e2 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/update-recovery.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/update-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateRecovery( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/update-session.md b/docs/examples/1.3.x/client-flutter/examples/account/update-session.md index fb1afcc526a..a6e1924e050 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/update-session.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/update-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateSession( diff --git a/docs/examples/1.3.x/client-flutter/examples/account/update-status.md b/docs/examples/1.3.x/client-flutter/examples/account/update-status.md index 8e734647fb9..521101c4292 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/update-status.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/update-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateStatus(); diff --git a/docs/examples/1.3.x/client-flutter/examples/account/update-verification.md b/docs/examples/1.3.x/client-flutter/examples/account/update-verification.md index fba8ed65bb6..1be9f728f7e 100644 --- a/docs/examples/1.3.x/client-flutter/examples/account/update-verification.md +++ b/docs/examples/1.3.x/client-flutter/examples/account/update-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateVerification( diff --git a/docs/examples/1.3.x/client-flutter/examples/avatars/get-browser.md b/docs/examples/1.3.x/client-flutter/examples/avatars/get-browser.md index 70af56659b6..5ca9106c01b 100644 --- a/docs/examples/1.3.x/client-flutter/examples/avatars/get-browser.md +++ b/docs/examples/1.3.x/client-flutter/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.3.x/client-flutter/examples/avatars/get-credit-card.md b/docs/examples/1.3.x/client-flutter/examples/avatars/get-credit-card.md index 6a29dc81736..30485827a1a 100644 --- a/docs/examples/1.3.x/client-flutter/examples/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/client-flutter/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.3.x/client-flutter/examples/avatars/get-favicon.md b/docs/examples/1.3.x/client-flutter/examples/avatars/get-favicon.md index 2da0f2e0566..769a873c840 100644 --- a/docs/examples/1.3.x/client-flutter/examples/avatars/get-favicon.md +++ b/docs/examples/1.3.x/client-flutter/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.3.x/client-flutter/examples/avatars/get-flag.md b/docs/examples/1.3.x/client-flutter/examples/avatars/get-flag.md index 13367885d0c..b8c3ea84d76 100644 --- a/docs/examples/1.3.x/client-flutter/examples/avatars/get-flag.md +++ b/docs/examples/1.3.x/client-flutter/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.3.x/client-flutter/examples/avatars/get-image.md b/docs/examples/1.3.x/client-flutter/examples/avatars/get-image.md index debbf1e2908..a90045f78da 100644 --- a/docs/examples/1.3.x/client-flutter/examples/avatars/get-image.md +++ b/docs/examples/1.3.x/client-flutter/examples/avatars/get-image.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.3.x/client-flutter/examples/avatars/get-initials.md b/docs/examples/1.3.x/client-flutter/examples/avatars/get-initials.md index b0f49c62131..dc08dda9812 100644 --- a/docs/examples/1.3.x/client-flutter/examples/avatars/get-initials.md +++ b/docs/examples/1.3.x/client-flutter/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.3.x/client-flutter/examples/avatars/get-q-r.md b/docs/examples/1.3.x/client-flutter/examples/avatars/get-q-r.md index 8df729379e3..4217e4395a3 100644 --- a/docs/examples/1.3.x/client-flutter/examples/avatars/get-q-r.md +++ b/docs/examples/1.3.x/client-flutter/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.3.x/client-flutter/examples/databases/create-document.md b/docs/examples/1.3.x/client-flutter/examples/databases/create-document.md index 6a031738d5a..5eabc3fb996 100644 --- a/docs/examples/1.3.x/client-flutter/examples/databases/create-document.md +++ b/docs/examples/1.3.x/client-flutter/examples/databases/create-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.createDocument( diff --git a/docs/examples/1.3.x/client-flutter/examples/databases/delete-document.md b/docs/examples/1.3.x/client-flutter/examples/databases/delete-document.md index a377b02747a..d883d08655b 100644 --- a/docs/examples/1.3.x/client-flutter/examples/databases/delete-document.md +++ b/docs/examples/1.3.x/client-flutter/examples/databases/delete-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.deleteDocument( diff --git a/docs/examples/1.3.x/client-flutter/examples/databases/get-document.md b/docs/examples/1.3.x/client-flutter/examples/databases/get-document.md index b2cf89a3fc8..f03d2589b99 100644 --- a/docs/examples/1.3.x/client-flutter/examples/databases/get-document.md +++ b/docs/examples/1.3.x/client-flutter/examples/databases/get-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.getDocument( diff --git a/docs/examples/1.3.x/client-flutter/examples/databases/list-documents.md b/docs/examples/1.3.x/client-flutter/examples/databases/list-documents.md index 4cd69e301a5..d996d2bcfde 100644 --- a/docs/examples/1.3.x/client-flutter/examples/databases/list-documents.md +++ b/docs/examples/1.3.x/client-flutter/examples/databases/list-documents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.listDocuments( diff --git a/docs/examples/1.3.x/client-flutter/examples/databases/update-document.md b/docs/examples/1.3.x/client-flutter/examples/databases/update-document.md index 595099bcb19..79e5490aff8 100644 --- a/docs/examples/1.3.x/client-flutter/examples/databases/update-document.md +++ b/docs/examples/1.3.x/client-flutter/examples/databases/update-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.updateDocument( diff --git a/docs/examples/1.3.x/client-flutter/examples/functions/create-execution.md b/docs/examples/1.3.x/client-flutter/examples/functions/create-execution.md index b188c32f47a..bb9feb34429 100644 --- a/docs/examples/1.3.x/client-flutter/examples/functions/create-execution.md +++ b/docs/examples/1.3.x/client-flutter/examples/functions/create-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = functions.createExecution( diff --git a/docs/examples/1.3.x/client-flutter/examples/functions/get-execution.md b/docs/examples/1.3.x/client-flutter/examples/functions/get-execution.md index f30b4b4495b..76a1392586b 100644 --- a/docs/examples/1.3.x/client-flutter/examples/functions/get-execution.md +++ b/docs/examples/1.3.x/client-flutter/examples/functions/get-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = functions.getExecution( diff --git a/docs/examples/1.3.x/client-flutter/examples/functions/list-executions.md b/docs/examples/1.3.x/client-flutter/examples/functions/list-executions.md index 1840f50d7f6..4f363e7e82b 100644 --- a/docs/examples/1.3.x/client-flutter/examples/functions/list-executions.md +++ b/docs/examples/1.3.x/client-flutter/examples/functions/list-executions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = functions.listExecutions( diff --git a/docs/examples/1.3.x/client-flutter/examples/graphql/mutation.md b/docs/examples/1.3.x/client-flutter/examples/graphql/mutation.md index c0bffce70a0..160c5ec892e 100644 --- a/docs/examples/1.3.x/client-flutter/examples/graphql/mutation.md +++ b/docs/examples/1.3.x/client-flutter/examples/graphql/mutation.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = graphql.mutation( diff --git a/docs/examples/1.3.x/client-flutter/examples/graphql/query.md b/docs/examples/1.3.x/client-flutter/examples/graphql/query.md index 455cb0bd227..fd5d8e15002 100644 --- a/docs/examples/1.3.x/client-flutter/examples/graphql/query.md +++ b/docs/examples/1.3.x/client-flutter/examples/graphql/query.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = graphql.query( diff --git a/docs/examples/1.3.x/client-flutter/examples/locale/get.md b/docs/examples/1.3.x/client-flutter/examples/locale/get.md index 9e9fa96b22c..565253d9507 100644 --- a/docs/examples/1.3.x/client-flutter/examples/locale/get.md +++ b/docs/examples/1.3.x/client-flutter/examples/locale/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.get(); diff --git a/docs/examples/1.3.x/client-flutter/examples/locale/list-continents.md b/docs/examples/1.3.x/client-flutter/examples/locale/list-continents.md index 0ab2a4aba12..cbaa88b3de0 100644 --- a/docs/examples/1.3.x/client-flutter/examples/locale/list-continents.md +++ b/docs/examples/1.3.x/client-flutter/examples/locale/list-continents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listContinents(); diff --git a/docs/examples/1.3.x/client-flutter/examples/locale/list-countries-e-u.md b/docs/examples/1.3.x/client-flutter/examples/locale/list-countries-e-u.md index caa32e85625..af8da46e9bf 100644 --- a/docs/examples/1.3.x/client-flutter/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/client-flutter/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCountriesEU(); diff --git a/docs/examples/1.3.x/client-flutter/examples/locale/list-countries-phones.md b/docs/examples/1.3.x/client-flutter/examples/locale/list-countries-phones.md index b122eee7d4e..1b5438b3ca6 100644 --- a/docs/examples/1.3.x/client-flutter/examples/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/client-flutter/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCountriesPhones(); diff --git a/docs/examples/1.3.x/client-flutter/examples/locale/list-countries.md b/docs/examples/1.3.x/client-flutter/examples/locale/list-countries.md index e6a367ddb86..704d35de897 100644 --- a/docs/examples/1.3.x/client-flutter/examples/locale/list-countries.md +++ b/docs/examples/1.3.x/client-flutter/examples/locale/list-countries.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCountries(); diff --git a/docs/examples/1.3.x/client-flutter/examples/locale/list-currencies.md b/docs/examples/1.3.x/client-flutter/examples/locale/list-currencies.md index fcd1e825e33..52b6877069f 100644 --- a/docs/examples/1.3.x/client-flutter/examples/locale/list-currencies.md +++ b/docs/examples/1.3.x/client-flutter/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCurrencies(); diff --git a/docs/examples/1.3.x/client-flutter/examples/locale/list-languages.md b/docs/examples/1.3.x/client-flutter/examples/locale/list-languages.md index 1fb68aa84f8..a54c6a11758 100644 --- a/docs/examples/1.3.x/client-flutter/examples/locale/list-languages.md +++ b/docs/examples/1.3.x/client-flutter/examples/locale/list-languages.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listLanguages(); diff --git a/docs/examples/1.3.x/client-flutter/examples/storage/create-file.md b/docs/examples/1.3.x/client-flutter/examples/storage/create-file.md index 0f5e44f5e8d..fc4d3278399 100644 --- a/docs/examples/1.3.x/client-flutter/examples/storage/create-file.md +++ b/docs/examples/1.3.x/client-flutter/examples/storage/create-file.md @@ -6,7 +6,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.createFile( diff --git a/docs/examples/1.3.x/client-flutter/examples/storage/delete-file.md b/docs/examples/1.3.x/client-flutter/examples/storage/delete-file.md index 230b73a9ac2..79cc9ef48ce 100644 --- a/docs/examples/1.3.x/client-flutter/examples/storage/delete-file.md +++ b/docs/examples/1.3.x/client-flutter/examples/storage/delete-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.deleteFile( diff --git a/docs/examples/1.3.x/client-flutter/examples/storage/get-file-download.md b/docs/examples/1.3.x/client-flutter/examples/storage/get-file-download.md index 883b7d69c48..cae5218c3a0 100644 --- a/docs/examples/1.3.x/client-flutter/examples/storage/get-file-download.md +++ b/docs/examples/1.3.x/client-flutter/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.3.x/client-flutter/examples/storage/get-file-preview.md b/docs/examples/1.3.x/client-flutter/examples/storage/get-file-preview.md index f42138bd036..131630ec66b 100644 --- a/docs/examples/1.3.x/client-flutter/examples/storage/get-file-preview.md +++ b/docs/examples/1.3.x/client-flutter/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.3.x/client-flutter/examples/storage/get-file-view.md b/docs/examples/1.3.x/client-flutter/examples/storage/get-file-view.md index 4f7c4d962bf..cfac3ac3b15 100644 --- a/docs/examples/1.3.x/client-flutter/examples/storage/get-file-view.md +++ b/docs/examples/1.3.x/client-flutter/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.3.x/client-flutter/examples/storage/get-file.md b/docs/examples/1.3.x/client-flutter/examples/storage/get-file.md index 681aca41e02..c997612386d 100644 --- a/docs/examples/1.3.x/client-flutter/examples/storage/get-file.md +++ b/docs/examples/1.3.x/client-flutter/examples/storage/get-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.getFile( diff --git a/docs/examples/1.3.x/client-flutter/examples/storage/list-files.md b/docs/examples/1.3.x/client-flutter/examples/storage/list-files.md index e574f7bdaa5..d4d07c19090 100644 --- a/docs/examples/1.3.x/client-flutter/examples/storage/list-files.md +++ b/docs/examples/1.3.x/client-flutter/examples/storage/list-files.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.listFiles( diff --git a/docs/examples/1.3.x/client-flutter/examples/storage/update-file.md b/docs/examples/1.3.x/client-flutter/examples/storage/update-file.md index 1170f05cf31..3d8140f408a 100644 --- a/docs/examples/1.3.x/client-flutter/examples/storage/update-file.md +++ b/docs/examples/1.3.x/client-flutter/examples/storage/update-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.updateFile( diff --git a/docs/examples/1.3.x/client-flutter/examples/teams/create-membership.md b/docs/examples/1.3.x/client-flutter/examples/teams/create-membership.md index ac58c5064f7..22dee42732f 100644 --- a/docs/examples/1.3.x/client-flutter/examples/teams/create-membership.md +++ b/docs/examples/1.3.x/client-flutter/examples/teams/create-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.createMembership( diff --git a/docs/examples/1.3.x/client-flutter/examples/teams/create.md b/docs/examples/1.3.x/client-flutter/examples/teams/create.md index bd62ce32ab8..772eacc2a9d 100644 --- a/docs/examples/1.3.x/client-flutter/examples/teams/create.md +++ b/docs/examples/1.3.x/client-flutter/examples/teams/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.create( diff --git a/docs/examples/1.3.x/client-flutter/examples/teams/delete-membership.md b/docs/examples/1.3.x/client-flutter/examples/teams/delete-membership.md index 0febe42121b..7bcfaae8e6e 100644 --- a/docs/examples/1.3.x/client-flutter/examples/teams/delete-membership.md +++ b/docs/examples/1.3.x/client-flutter/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.deleteMembership( diff --git a/docs/examples/1.3.x/client-flutter/examples/teams/delete.md b/docs/examples/1.3.x/client-flutter/examples/teams/delete.md index b45d971bf68..22fe4e0b446 100644 --- a/docs/examples/1.3.x/client-flutter/examples/teams/delete.md +++ b/docs/examples/1.3.x/client-flutter/examples/teams/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.delete( diff --git a/docs/examples/1.3.x/client-flutter/examples/teams/get-membership.md b/docs/examples/1.3.x/client-flutter/examples/teams/get-membership.md index 28d95a201ba..9c7eac46ac4 100644 --- a/docs/examples/1.3.x/client-flutter/examples/teams/get-membership.md +++ b/docs/examples/1.3.x/client-flutter/examples/teams/get-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.getMembership( diff --git a/docs/examples/1.3.x/client-flutter/examples/teams/get-prefs.md b/docs/examples/1.3.x/client-flutter/examples/teams/get-prefs.md index e9ae94eb3ff..6a40cf66842 100644 --- a/docs/examples/1.3.x/client-flutter/examples/teams/get-prefs.md +++ b/docs/examples/1.3.x/client-flutter/examples/teams/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.getPrefs( diff --git a/docs/examples/1.3.x/client-flutter/examples/teams/get.md b/docs/examples/1.3.x/client-flutter/examples/teams/get.md index 0ec7027f89d..a3d59c10e8a 100644 --- a/docs/examples/1.3.x/client-flutter/examples/teams/get.md +++ b/docs/examples/1.3.x/client-flutter/examples/teams/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.get( diff --git a/docs/examples/1.3.x/client-flutter/examples/teams/list-memberships.md b/docs/examples/1.3.x/client-flutter/examples/teams/list-memberships.md index cbbc525dc44..bb2a37df46d 100644 --- a/docs/examples/1.3.x/client-flutter/examples/teams/list-memberships.md +++ b/docs/examples/1.3.x/client-flutter/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.listMemberships( diff --git a/docs/examples/1.3.x/client-flutter/examples/teams/list.md b/docs/examples/1.3.x/client-flutter/examples/teams/list.md index 80aa3016c2a..41e01365292 100644 --- a/docs/examples/1.3.x/client-flutter/examples/teams/list.md +++ b/docs/examples/1.3.x/client-flutter/examples/teams/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.list( diff --git a/docs/examples/1.3.x/client-flutter/examples/teams/update-membership-roles.md b/docs/examples/1.3.x/client-flutter/examples/teams/update-membership-roles.md index 6e96c017e03..c031101d7a2 100644 --- a/docs/examples/1.3.x/client-flutter/examples/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/client-flutter/examples/teams/update-membership-roles.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.updateMembershipRoles( diff --git a/docs/examples/1.3.x/client-flutter/examples/teams/update-membership-status.md b/docs/examples/1.3.x/client-flutter/examples/teams/update-membership-status.md index ed31f54b202..65584ff4246 100644 --- a/docs/examples/1.3.x/client-flutter/examples/teams/update-membership-status.md +++ b/docs/examples/1.3.x/client-flutter/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.updateMembershipStatus( diff --git a/docs/examples/1.3.x/client-flutter/examples/teams/update-name.md b/docs/examples/1.3.x/client-flutter/examples/teams/update-name.md index 5c794bd99bb..7f20a7c10b8 100644 --- a/docs/examples/1.3.x/client-flutter/examples/teams/update-name.md +++ b/docs/examples/1.3.x/client-flutter/examples/teams/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.updateName( diff --git a/docs/examples/1.3.x/client-flutter/examples/teams/update-prefs.md b/docs/examples/1.3.x/client-flutter/examples/teams/update-prefs.md index c29cbb9eb1d..57711681778 100644 --- a/docs/examples/1.3.x/client-flutter/examples/teams/update-prefs.md +++ b/docs/examples/1.3.x/client-flutter/examples/teams/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.updatePrefs( diff --git a/docs/examples/1.3.x/client-web/examples/account/create-anonymous-session.md b/docs/examples/1.3.x/client-web/examples/account/create-anonymous-session.md index c331fc88633..d107d4a8dfa 100644 --- a/docs/examples/1.3.x/client-web/examples/account/create-anonymous-session.md +++ b/docs/examples/1.3.x/client-web/examples/account/create-anonymous-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/create-email-session.md b/docs/examples/1.3.x/client-web/examples/account/create-email-session.md index 76e2e31665f..fc25824dad8 100644 --- a/docs/examples/1.3.x/client-web/examples/account/create-email-session.md +++ b/docs/examples/1.3.x/client-web/examples/account/create-email-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/create-j-w-t.md b/docs/examples/1.3.x/client-web/examples/account/create-j-w-t.md index f388a3da31c..db78c41c3c9 100644 --- a/docs/examples/1.3.x/client-web/examples/account/create-j-w-t.md +++ b/docs/examples/1.3.x/client-web/examples/account/create-j-w-t.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.3.x/client-web/examples/account/create-magic-u-r-l-session.md index d48f031ded0..1179a0efc6f 100644 --- a/docs/examples/1.3.x/client-web/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.3.x/client-web/examples/account/create-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/create-o-auth2session.md b/docs/examples/1.3.x/client-web/examples/account/create-o-auth2session.md index 3757a1c63f2..03b7d2cb488 100644 --- a/docs/examples/1.3.x/client-web/examples/account/create-o-auth2session.md +++ b/docs/examples/1.3.x/client-web/examples/account/create-o-auth2session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/create-phone-session.md b/docs/examples/1.3.x/client-web/examples/account/create-phone-session.md index e5a23aafeef..53ead8a3f8f 100644 --- a/docs/examples/1.3.x/client-web/examples/account/create-phone-session.md +++ b/docs/examples/1.3.x/client-web/examples/account/create-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/create-phone-verification.md b/docs/examples/1.3.x/client-web/examples/account/create-phone-verification.md index a1cbd552774..974f94503fc 100644 --- a/docs/examples/1.3.x/client-web/examples/account/create-phone-verification.md +++ b/docs/examples/1.3.x/client-web/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/create-recovery.md b/docs/examples/1.3.x/client-web/examples/account/create-recovery.md index 1838c0414c3..7030423d2f6 100644 --- a/docs/examples/1.3.x/client-web/examples/account/create-recovery.md +++ b/docs/examples/1.3.x/client-web/examples/account/create-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/create-verification.md b/docs/examples/1.3.x/client-web/examples/account/create-verification.md index 4d8446e6ef1..6448a724963 100644 --- a/docs/examples/1.3.x/client-web/examples/account/create-verification.md +++ b/docs/examples/1.3.x/client-web/examples/account/create-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/create.md b/docs/examples/1.3.x/client-web/examples/account/create.md index fda1d88e0f6..f15b65307dd 100644 --- a/docs/examples/1.3.x/client-web/examples/account/create.md +++ b/docs/examples/1.3.x/client-web/examples/account/create.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/delete-session.md b/docs/examples/1.3.x/client-web/examples/account/delete-session.md index c342afb2c95..052b78d8458 100644 --- a/docs/examples/1.3.x/client-web/examples/account/delete-session.md +++ b/docs/examples/1.3.x/client-web/examples/account/delete-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/delete-sessions.md b/docs/examples/1.3.x/client-web/examples/account/delete-sessions.md index 82133e38455..64b1c591d34 100644 --- a/docs/examples/1.3.x/client-web/examples/account/delete-sessions.md +++ b/docs/examples/1.3.x/client-web/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/get-prefs.md b/docs/examples/1.3.x/client-web/examples/account/get-prefs.md index b98776fd9d1..a02dc517856 100644 --- a/docs/examples/1.3.x/client-web/examples/account/get-prefs.md +++ b/docs/examples/1.3.x/client-web/examples/account/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/get-session.md b/docs/examples/1.3.x/client-web/examples/account/get-session.md index 43edd7d08a1..21be1738ba9 100644 --- a/docs/examples/1.3.x/client-web/examples/account/get-session.md +++ b/docs/examples/1.3.x/client-web/examples/account/get-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/get.md b/docs/examples/1.3.x/client-web/examples/account/get.md index 878227f0194..539ace69afc 100644 --- a/docs/examples/1.3.x/client-web/examples/account/get.md +++ b/docs/examples/1.3.x/client-web/examples/account/get.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/list-logs.md b/docs/examples/1.3.x/client-web/examples/account/list-logs.md index d710f7daa3e..d26bd396bae 100644 --- a/docs/examples/1.3.x/client-web/examples/account/list-logs.md +++ b/docs/examples/1.3.x/client-web/examples/account/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/list-sessions.md b/docs/examples/1.3.x/client-web/examples/account/list-sessions.md index ce6ec74862c..c5a5625b17c 100644 --- a/docs/examples/1.3.x/client-web/examples/account/list-sessions.md +++ b/docs/examples/1.3.x/client-web/examples/account/list-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/update-email.md b/docs/examples/1.3.x/client-web/examples/account/update-email.md index baac3a0ab09..2242db702cb 100644 --- a/docs/examples/1.3.x/client-web/examples/account/update-email.md +++ b/docs/examples/1.3.x/client-web/examples/account/update-email.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.3.x/client-web/examples/account/update-magic-u-r-l-session.md index c07fee2b144..70bf5d17da0 100644 --- a/docs/examples/1.3.x/client-web/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.3.x/client-web/examples/account/update-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/update-name.md b/docs/examples/1.3.x/client-web/examples/account/update-name.md index 4af963d5fc3..8ec9bd2395e 100644 --- a/docs/examples/1.3.x/client-web/examples/account/update-name.md +++ b/docs/examples/1.3.x/client-web/examples/account/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/update-password.md b/docs/examples/1.3.x/client-web/examples/account/update-password.md index 2404a743e74..0dcff6bfde2 100644 --- a/docs/examples/1.3.x/client-web/examples/account/update-password.md +++ b/docs/examples/1.3.x/client-web/examples/account/update-password.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/update-phone-session.md b/docs/examples/1.3.x/client-web/examples/account/update-phone-session.md index b3b29481a98..9870627d9f7 100644 --- a/docs/examples/1.3.x/client-web/examples/account/update-phone-session.md +++ b/docs/examples/1.3.x/client-web/examples/account/update-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/update-phone-verification.md b/docs/examples/1.3.x/client-web/examples/account/update-phone-verification.md index a274c9b07c8..912f178814e 100644 --- a/docs/examples/1.3.x/client-web/examples/account/update-phone-verification.md +++ b/docs/examples/1.3.x/client-web/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/update-phone.md b/docs/examples/1.3.x/client-web/examples/account/update-phone.md index a1017fc7f4a..6ee5eb40e89 100644 --- a/docs/examples/1.3.x/client-web/examples/account/update-phone.md +++ b/docs/examples/1.3.x/client-web/examples/account/update-phone.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/update-prefs.md b/docs/examples/1.3.x/client-web/examples/account/update-prefs.md index ecceff3158c..3f90dfabd2f 100644 --- a/docs/examples/1.3.x/client-web/examples/account/update-prefs.md +++ b/docs/examples/1.3.x/client-web/examples/account/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/update-recovery.md b/docs/examples/1.3.x/client-web/examples/account/update-recovery.md index eb78a8a52d2..200b993a4cb 100644 --- a/docs/examples/1.3.x/client-web/examples/account/update-recovery.md +++ b/docs/examples/1.3.x/client-web/examples/account/update-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/update-session.md b/docs/examples/1.3.x/client-web/examples/account/update-session.md index a7a42c663aa..a8c40ebb81c 100644 --- a/docs/examples/1.3.x/client-web/examples/account/update-session.md +++ b/docs/examples/1.3.x/client-web/examples/account/update-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/update-status.md b/docs/examples/1.3.x/client-web/examples/account/update-status.md index 9cbe78c5c42..d3ac91e7d50 100644 --- a/docs/examples/1.3.x/client-web/examples/account/update-status.md +++ b/docs/examples/1.3.x/client-web/examples/account/update-status.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/account/update-verification.md b/docs/examples/1.3.x/client-web/examples/account/update-verification.md index 73338da4df2..404fdd4352e 100644 --- a/docs/examples/1.3.x/client-web/examples/account/update-verification.md +++ b/docs/examples/1.3.x/client-web/examples/account/update-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/avatars/get-browser.md b/docs/examples/1.3.x/client-web/examples/avatars/get-browser.md index 0b4c2def003..cf5beeb4580 100644 --- a/docs/examples/1.3.x/client-web/examples/avatars/get-browser.md +++ b/docs/examples/1.3.x/client-web/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/avatars/get-credit-card.md b/docs/examples/1.3.x/client-web/examples/avatars/get-credit-card.md index 082ed92b670..3486722f907 100644 --- a/docs/examples/1.3.x/client-web/examples/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/client-web/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/avatars/get-favicon.md b/docs/examples/1.3.x/client-web/examples/avatars/get-favicon.md index 7ee6bd3da26..5e0056c8883 100644 --- a/docs/examples/1.3.x/client-web/examples/avatars/get-favicon.md +++ b/docs/examples/1.3.x/client-web/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/avatars/get-flag.md b/docs/examples/1.3.x/client-web/examples/avatars/get-flag.md index a43827a1aed..7e95a5bc132 100644 --- a/docs/examples/1.3.x/client-web/examples/avatars/get-flag.md +++ b/docs/examples/1.3.x/client-web/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/avatars/get-image.md b/docs/examples/1.3.x/client-web/examples/avatars/get-image.md index ea186a1a682..b6d25c7389f 100644 --- a/docs/examples/1.3.x/client-web/examples/avatars/get-image.md +++ b/docs/examples/1.3.x/client-web/examples/avatars/get-image.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/avatars/get-initials.md b/docs/examples/1.3.x/client-web/examples/avatars/get-initials.md index 7e8c8ec4130..efee82cfab4 100644 --- a/docs/examples/1.3.x/client-web/examples/avatars/get-initials.md +++ b/docs/examples/1.3.x/client-web/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/avatars/get-q-r.md b/docs/examples/1.3.x/client-web/examples/avatars/get-q-r.md index b957084aa1d..412dff00eac 100644 --- a/docs/examples/1.3.x/client-web/examples/avatars/get-q-r.md +++ b/docs/examples/1.3.x/client-web/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/databases/create-document.md b/docs/examples/1.3.x/client-web/examples/databases/create-document.md index 92792066efe..a87121baa76 100644 --- a/docs/examples/1.3.x/client-web/examples/databases/create-document.md +++ b/docs/examples/1.3.x/client-web/examples/databases/create-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/databases/delete-document.md b/docs/examples/1.3.x/client-web/examples/databases/delete-document.md index 9e281e71665..39f96d4d128 100644 --- a/docs/examples/1.3.x/client-web/examples/databases/delete-document.md +++ b/docs/examples/1.3.x/client-web/examples/databases/delete-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/databases/get-document.md b/docs/examples/1.3.x/client-web/examples/databases/get-document.md index ea80328794f..b38f81805d0 100644 --- a/docs/examples/1.3.x/client-web/examples/databases/get-document.md +++ b/docs/examples/1.3.x/client-web/examples/databases/get-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/databases/list-documents.md b/docs/examples/1.3.x/client-web/examples/databases/list-documents.md index 4a94c99db35..9be77973897 100644 --- a/docs/examples/1.3.x/client-web/examples/databases/list-documents.md +++ b/docs/examples/1.3.x/client-web/examples/databases/list-documents.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/databases/update-document.md b/docs/examples/1.3.x/client-web/examples/databases/update-document.md index cc5ef1cc021..6d584151120 100644 --- a/docs/examples/1.3.x/client-web/examples/databases/update-document.md +++ b/docs/examples/1.3.x/client-web/examples/databases/update-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/functions/create-execution.md b/docs/examples/1.3.x/client-web/examples/functions/create-execution.md index 4fc7ac75454..091e3aae240 100644 --- a/docs/examples/1.3.x/client-web/examples/functions/create-execution.md +++ b/docs/examples/1.3.x/client-web/examples/functions/create-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/functions/get-execution.md b/docs/examples/1.3.x/client-web/examples/functions/get-execution.md index 2473572c05a..704cf52c620 100644 --- a/docs/examples/1.3.x/client-web/examples/functions/get-execution.md +++ b/docs/examples/1.3.x/client-web/examples/functions/get-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/functions/list-executions.md b/docs/examples/1.3.x/client-web/examples/functions/list-executions.md index 481986ef405..b0a74de4a08 100644 --- a/docs/examples/1.3.x/client-web/examples/functions/list-executions.md +++ b/docs/examples/1.3.x/client-web/examples/functions/list-executions.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/graphql/mutation.md b/docs/examples/1.3.x/client-web/examples/graphql/mutation.md index 1a0b61cd3b5..c968d9a245a 100644 --- a/docs/examples/1.3.x/client-web/examples/graphql/mutation.md +++ b/docs/examples/1.3.x/client-web/examples/graphql/mutation.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/graphql/query.md b/docs/examples/1.3.x/client-web/examples/graphql/query.md index e507fbb5aa1..8d1e5edd18a 100644 --- a/docs/examples/1.3.x/client-web/examples/graphql/query.md +++ b/docs/examples/1.3.x/client-web/examples/graphql/query.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/locale/get.md b/docs/examples/1.3.x/client-web/examples/locale/get.md index e15bad2ce1b..1001b36d05c 100644 --- a/docs/examples/1.3.x/client-web/examples/locale/get.md +++ b/docs/examples/1.3.x/client-web/examples/locale/get.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/locale/list-continents.md b/docs/examples/1.3.x/client-web/examples/locale/list-continents.md index aa3716ef565..9239750852f 100644 --- a/docs/examples/1.3.x/client-web/examples/locale/list-continents.md +++ b/docs/examples/1.3.x/client-web/examples/locale/list-continents.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/locale/list-countries-e-u.md b/docs/examples/1.3.x/client-web/examples/locale/list-countries-e-u.md index c924b8df4b7..005d5a33270 100644 --- a/docs/examples/1.3.x/client-web/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/client-web/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/locale/list-countries-phones.md b/docs/examples/1.3.x/client-web/examples/locale/list-countries-phones.md index 0ab60767da7..2e5faf107dd 100644 --- a/docs/examples/1.3.x/client-web/examples/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/client-web/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/locale/list-countries.md b/docs/examples/1.3.x/client-web/examples/locale/list-countries.md index ee8c454993a..d57ab0b732b 100644 --- a/docs/examples/1.3.x/client-web/examples/locale/list-countries.md +++ b/docs/examples/1.3.x/client-web/examples/locale/list-countries.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/locale/list-currencies.md b/docs/examples/1.3.x/client-web/examples/locale/list-currencies.md index dd37b14e25a..31015d585c3 100644 --- a/docs/examples/1.3.x/client-web/examples/locale/list-currencies.md +++ b/docs/examples/1.3.x/client-web/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/locale/list-languages.md b/docs/examples/1.3.x/client-web/examples/locale/list-languages.md index 89ae06d529b..cfd9adcc1a0 100644 --- a/docs/examples/1.3.x/client-web/examples/locale/list-languages.md +++ b/docs/examples/1.3.x/client-web/examples/locale/list-languages.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/storage/create-file.md b/docs/examples/1.3.x/client-web/examples/storage/create-file.md index 0cddb086901..8e84ec8ceea 100644 --- a/docs/examples/1.3.x/client-web/examples/storage/create-file.md +++ b/docs/examples/1.3.x/client-web/examples/storage/create-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/storage/delete-file.md b/docs/examples/1.3.x/client-web/examples/storage/delete-file.md index 257d855c320..47416bbb8f8 100644 --- a/docs/examples/1.3.x/client-web/examples/storage/delete-file.md +++ b/docs/examples/1.3.x/client-web/examples/storage/delete-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/storage/get-file-download.md b/docs/examples/1.3.x/client-web/examples/storage/get-file-download.md index d8a3542aab8..d9f4cd1895d 100644 --- a/docs/examples/1.3.x/client-web/examples/storage/get-file-download.md +++ b/docs/examples/1.3.x/client-web/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/storage/get-file-preview.md b/docs/examples/1.3.x/client-web/examples/storage/get-file-preview.md index f0588ba7dc2..d2d4731322c 100644 --- a/docs/examples/1.3.x/client-web/examples/storage/get-file-preview.md +++ b/docs/examples/1.3.x/client-web/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/storage/get-file-view.md b/docs/examples/1.3.x/client-web/examples/storage/get-file-view.md index 5eb2855befe..e9d0ff6d8d2 100644 --- a/docs/examples/1.3.x/client-web/examples/storage/get-file-view.md +++ b/docs/examples/1.3.x/client-web/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/storage/get-file.md b/docs/examples/1.3.x/client-web/examples/storage/get-file.md index 6b39ee386e2..e326154a4e9 100644 --- a/docs/examples/1.3.x/client-web/examples/storage/get-file.md +++ b/docs/examples/1.3.x/client-web/examples/storage/get-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/storage/list-files.md b/docs/examples/1.3.x/client-web/examples/storage/list-files.md index 696d4013cd9..7faeb85cb1c 100644 --- a/docs/examples/1.3.x/client-web/examples/storage/list-files.md +++ b/docs/examples/1.3.x/client-web/examples/storage/list-files.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/storage/update-file.md b/docs/examples/1.3.x/client-web/examples/storage/update-file.md index d22a2f6a11e..747044dc309 100644 --- a/docs/examples/1.3.x/client-web/examples/storage/update-file.md +++ b/docs/examples/1.3.x/client-web/examples/storage/update-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/teams/create-membership.md b/docs/examples/1.3.x/client-web/examples/teams/create-membership.md index fded560d783..f9d6089eedf 100644 --- a/docs/examples/1.3.x/client-web/examples/teams/create-membership.md +++ b/docs/examples/1.3.x/client-web/examples/teams/create-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/teams/create.md b/docs/examples/1.3.x/client-web/examples/teams/create.md index c9037e95751..382b759d9c1 100644 --- a/docs/examples/1.3.x/client-web/examples/teams/create.md +++ b/docs/examples/1.3.x/client-web/examples/teams/create.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/teams/delete-membership.md b/docs/examples/1.3.x/client-web/examples/teams/delete-membership.md index c42d6694573..76232de1abd 100644 --- a/docs/examples/1.3.x/client-web/examples/teams/delete-membership.md +++ b/docs/examples/1.3.x/client-web/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/teams/delete.md b/docs/examples/1.3.x/client-web/examples/teams/delete.md index 0c99b7aab8d..2e5e8395517 100644 --- a/docs/examples/1.3.x/client-web/examples/teams/delete.md +++ b/docs/examples/1.3.x/client-web/examples/teams/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/teams/get-membership.md b/docs/examples/1.3.x/client-web/examples/teams/get-membership.md index d4d3c5a65dc..0e2c1454452 100644 --- a/docs/examples/1.3.x/client-web/examples/teams/get-membership.md +++ b/docs/examples/1.3.x/client-web/examples/teams/get-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/teams/get-prefs.md b/docs/examples/1.3.x/client-web/examples/teams/get-prefs.md index bcf3f43806b..6c729eead7c 100644 --- a/docs/examples/1.3.x/client-web/examples/teams/get-prefs.md +++ b/docs/examples/1.3.x/client-web/examples/teams/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/teams/get.md b/docs/examples/1.3.x/client-web/examples/teams/get.md index 396916ed411..cdf8812225b 100644 --- a/docs/examples/1.3.x/client-web/examples/teams/get.md +++ b/docs/examples/1.3.x/client-web/examples/teams/get.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/teams/list-memberships.md b/docs/examples/1.3.x/client-web/examples/teams/list-memberships.md index dfa0163037c..845d0ce229a 100644 --- a/docs/examples/1.3.x/client-web/examples/teams/list-memberships.md +++ b/docs/examples/1.3.x/client-web/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/teams/list.md b/docs/examples/1.3.x/client-web/examples/teams/list.md index daf799b95a7..97b4ca31f3b 100644 --- a/docs/examples/1.3.x/client-web/examples/teams/list.md +++ b/docs/examples/1.3.x/client-web/examples/teams/list.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/teams/update-membership-roles.md b/docs/examples/1.3.x/client-web/examples/teams/update-membership-roles.md index 55b2267e4e2..fd0c6f46fc1 100644 --- a/docs/examples/1.3.x/client-web/examples/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/client-web/examples/teams/update-membership-roles.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/teams/update-membership-status.md b/docs/examples/1.3.x/client-web/examples/teams/update-membership-status.md index de1b7f8402a..5ef0b2289c8 100644 --- a/docs/examples/1.3.x/client-web/examples/teams/update-membership-status.md +++ b/docs/examples/1.3.x/client-web/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/teams/update-name.md b/docs/examples/1.3.x/client-web/examples/teams/update-name.md index 3159d51c6cd..80e59bbae62 100644 --- a/docs/examples/1.3.x/client-web/examples/teams/update-name.md +++ b/docs/examples/1.3.x/client-web/examples/teams/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/client-web/examples/teams/update-prefs.md b/docs/examples/1.3.x/client-web/examples/teams/update-prefs.md index 36f60b18e72..4ff1ca7a7f2 100644 --- a/docs/examples/1.3.x/client-web/examples/teams/update-prefs.md +++ b/docs/examples/1.3.x/client-web/examples/teams/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/create-anonymous-session.md b/docs/examples/1.3.x/console-web/examples/account/create-anonymous-session.md index 9521cf68a56..81b49b3364e 100644 --- a/docs/examples/1.3.x/console-web/examples/account/create-anonymous-session.md +++ b/docs/examples/1.3.x/console-web/examples/account/create-anonymous-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/create-email-session.md b/docs/examples/1.3.x/console-web/examples/account/create-email-session.md index 19812773df7..4b9d12c64fc 100644 --- a/docs/examples/1.3.x/console-web/examples/account/create-email-session.md +++ b/docs/examples/1.3.x/console-web/examples/account/create-email-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/create-j-w-t.md b/docs/examples/1.3.x/console-web/examples/account/create-j-w-t.md index 8a851df3699..86336ab693e 100644 --- a/docs/examples/1.3.x/console-web/examples/account/create-j-w-t.md +++ b/docs/examples/1.3.x/console-web/examples/account/create-j-w-t.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.3.x/console-web/examples/account/create-magic-u-r-l-session.md index 6917aa288c7..b000a713dd9 100644 --- a/docs/examples/1.3.x/console-web/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.3.x/console-web/examples/account/create-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/create-o-auth2session.md b/docs/examples/1.3.x/console-web/examples/account/create-o-auth2session.md index bf33c52f30b..3dc8a90076a 100644 --- a/docs/examples/1.3.x/console-web/examples/account/create-o-auth2session.md +++ b/docs/examples/1.3.x/console-web/examples/account/create-o-auth2session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/create-phone-session.md b/docs/examples/1.3.x/console-web/examples/account/create-phone-session.md index 85e7d68eed2..18fb31ee857 100644 --- a/docs/examples/1.3.x/console-web/examples/account/create-phone-session.md +++ b/docs/examples/1.3.x/console-web/examples/account/create-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/create-phone-verification.md b/docs/examples/1.3.x/console-web/examples/account/create-phone-verification.md index 0b10961e53f..aadd2c149da 100644 --- a/docs/examples/1.3.x/console-web/examples/account/create-phone-verification.md +++ b/docs/examples/1.3.x/console-web/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/create-recovery.md b/docs/examples/1.3.x/console-web/examples/account/create-recovery.md index dd33c01f04a..9cc625a21d5 100644 --- a/docs/examples/1.3.x/console-web/examples/account/create-recovery.md +++ b/docs/examples/1.3.x/console-web/examples/account/create-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/create-verification.md b/docs/examples/1.3.x/console-web/examples/account/create-verification.md index 7b1ec32f2f0..b3ce7d060fe 100644 --- a/docs/examples/1.3.x/console-web/examples/account/create-verification.md +++ b/docs/examples/1.3.x/console-web/examples/account/create-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/create.md b/docs/examples/1.3.x/console-web/examples/account/create.md index 4c61ef8eb29..38ad6190fab 100644 --- a/docs/examples/1.3.x/console-web/examples/account/create.md +++ b/docs/examples/1.3.x/console-web/examples/account/create.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/delete-session.md b/docs/examples/1.3.x/console-web/examples/account/delete-session.md index b360b3bb892..c6a6188d4ef 100644 --- a/docs/examples/1.3.x/console-web/examples/account/delete-session.md +++ b/docs/examples/1.3.x/console-web/examples/account/delete-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/delete-sessions.md b/docs/examples/1.3.x/console-web/examples/account/delete-sessions.md index 0d0fea88f44..6cf737e92ae 100644 --- a/docs/examples/1.3.x/console-web/examples/account/delete-sessions.md +++ b/docs/examples/1.3.x/console-web/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/get-prefs.md b/docs/examples/1.3.x/console-web/examples/account/get-prefs.md index 284f8fabdaf..939df8a13cc 100644 --- a/docs/examples/1.3.x/console-web/examples/account/get-prefs.md +++ b/docs/examples/1.3.x/console-web/examples/account/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/get-session.md b/docs/examples/1.3.x/console-web/examples/account/get-session.md index 651d35c7344..485ccb7f7cb 100644 --- a/docs/examples/1.3.x/console-web/examples/account/get-session.md +++ b/docs/examples/1.3.x/console-web/examples/account/get-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/get.md b/docs/examples/1.3.x/console-web/examples/account/get.md index f6fc4b94010..f4bc097c8e9 100644 --- a/docs/examples/1.3.x/console-web/examples/account/get.md +++ b/docs/examples/1.3.x/console-web/examples/account/get.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/list-logs.md b/docs/examples/1.3.x/console-web/examples/account/list-logs.md index 4f1d6813a78..68bc5a33863 100644 --- a/docs/examples/1.3.x/console-web/examples/account/list-logs.md +++ b/docs/examples/1.3.x/console-web/examples/account/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/list-sessions.md b/docs/examples/1.3.x/console-web/examples/account/list-sessions.md index bd3b102b215..c54c6420f29 100644 --- a/docs/examples/1.3.x/console-web/examples/account/list-sessions.md +++ b/docs/examples/1.3.x/console-web/examples/account/list-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/update-email.md b/docs/examples/1.3.x/console-web/examples/account/update-email.md index 21b7fcc3f26..1d69f5d15aa 100644 --- a/docs/examples/1.3.x/console-web/examples/account/update-email.md +++ b/docs/examples/1.3.x/console-web/examples/account/update-email.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.3.x/console-web/examples/account/update-magic-u-r-l-session.md index 1bc748ed309..e73d344a75f 100644 --- a/docs/examples/1.3.x/console-web/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.3.x/console-web/examples/account/update-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/update-name.md b/docs/examples/1.3.x/console-web/examples/account/update-name.md index 5a9ab011b49..5a221115f1b 100644 --- a/docs/examples/1.3.x/console-web/examples/account/update-name.md +++ b/docs/examples/1.3.x/console-web/examples/account/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/update-password.md b/docs/examples/1.3.x/console-web/examples/account/update-password.md index ca059e5304e..2fdc3bdf54b 100644 --- a/docs/examples/1.3.x/console-web/examples/account/update-password.md +++ b/docs/examples/1.3.x/console-web/examples/account/update-password.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/update-phone-session.md b/docs/examples/1.3.x/console-web/examples/account/update-phone-session.md index 4b47389a3c6..2f5ca7fa64e 100644 --- a/docs/examples/1.3.x/console-web/examples/account/update-phone-session.md +++ b/docs/examples/1.3.x/console-web/examples/account/update-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/update-phone-verification.md b/docs/examples/1.3.x/console-web/examples/account/update-phone-verification.md index 99c13cb90ea..4f66ec5e810 100644 --- a/docs/examples/1.3.x/console-web/examples/account/update-phone-verification.md +++ b/docs/examples/1.3.x/console-web/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/update-phone.md b/docs/examples/1.3.x/console-web/examples/account/update-phone.md index 80f715e0bcc..19ebdd256b0 100644 --- a/docs/examples/1.3.x/console-web/examples/account/update-phone.md +++ b/docs/examples/1.3.x/console-web/examples/account/update-phone.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/update-prefs.md b/docs/examples/1.3.x/console-web/examples/account/update-prefs.md index 0a85380d344..2cba25590f5 100644 --- a/docs/examples/1.3.x/console-web/examples/account/update-prefs.md +++ b/docs/examples/1.3.x/console-web/examples/account/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/update-recovery.md b/docs/examples/1.3.x/console-web/examples/account/update-recovery.md index 64c1545e89b..f91b353d944 100644 --- a/docs/examples/1.3.x/console-web/examples/account/update-recovery.md +++ b/docs/examples/1.3.x/console-web/examples/account/update-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/update-session.md b/docs/examples/1.3.x/console-web/examples/account/update-session.md index 29dc0c0907f..64abdcb0dc2 100644 --- a/docs/examples/1.3.x/console-web/examples/account/update-session.md +++ b/docs/examples/1.3.x/console-web/examples/account/update-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/update-status.md b/docs/examples/1.3.x/console-web/examples/account/update-status.md index 87b51465255..c1a568439fb 100644 --- a/docs/examples/1.3.x/console-web/examples/account/update-status.md +++ b/docs/examples/1.3.x/console-web/examples/account/update-status.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/account/update-verification.md b/docs/examples/1.3.x/console-web/examples/account/update-verification.md index 93dd5db120f..7ab66b2be6a 100644 --- a/docs/examples/1.3.x/console-web/examples/account/update-verification.md +++ b/docs/examples/1.3.x/console-web/examples/account/update-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/avatars/get-browser.md b/docs/examples/1.3.x/console-web/examples/avatars/get-browser.md index f830effff2c..f2a966e6d35 100644 --- a/docs/examples/1.3.x/console-web/examples/avatars/get-browser.md +++ b/docs/examples/1.3.x/console-web/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/avatars/get-credit-card.md b/docs/examples/1.3.x/console-web/examples/avatars/get-credit-card.md index a4e67b25e73..a3f59418dac 100644 --- a/docs/examples/1.3.x/console-web/examples/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/console-web/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/avatars/get-favicon.md b/docs/examples/1.3.x/console-web/examples/avatars/get-favicon.md index 14bc1b9b004..0076abdd54a 100644 --- a/docs/examples/1.3.x/console-web/examples/avatars/get-favicon.md +++ b/docs/examples/1.3.x/console-web/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/avatars/get-flag.md b/docs/examples/1.3.x/console-web/examples/avatars/get-flag.md index 52ebe68c659..f6a66a01a8d 100644 --- a/docs/examples/1.3.x/console-web/examples/avatars/get-flag.md +++ b/docs/examples/1.3.x/console-web/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/avatars/get-image.md b/docs/examples/1.3.x/console-web/examples/avatars/get-image.md index 517421e7f0f..2435fae9809 100644 --- a/docs/examples/1.3.x/console-web/examples/avatars/get-image.md +++ b/docs/examples/1.3.x/console-web/examples/avatars/get-image.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/avatars/get-initials.md b/docs/examples/1.3.x/console-web/examples/avatars/get-initials.md index 8b03b5d3863..0d5bc0a6c8f 100644 --- a/docs/examples/1.3.x/console-web/examples/avatars/get-initials.md +++ b/docs/examples/1.3.x/console-web/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/avatars/get-q-r.md b/docs/examples/1.3.x/console-web/examples/avatars/get-q-r.md index 89cea47ad9b..5f1d17d410d 100644 --- a/docs/examples/1.3.x/console-web/examples/avatars/get-q-r.md +++ b/docs/examples/1.3.x/console-web/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/create-boolean-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/create-boolean-attribute.md index 3924ff5cc54..995eb48e4ba 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/create-boolean-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/create-collection.md b/docs/examples/1.3.x/console-web/examples/databases/create-collection.md index ff3dbd974db..a478b7eeb63 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/create-collection.md +++ b/docs/examples/1.3.x/console-web/examples/databases/create-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/create-datetime-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/create-datetime-attribute.md index 4e1f3190b3f..a6e825299a5 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/create-datetime-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/create-document.md b/docs/examples/1.3.x/console-web/examples/databases/create-document.md index 4b9adc4e7c9..fdd014f39d0 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/create-document.md +++ b/docs/examples/1.3.x/console-web/examples/databases/create-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/create-email-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/create-email-attribute.md index 8d2a5523b60..d25d0cdca3c 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/create-email-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/create-email-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/create-enum-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/create-enum-attribute.md index 503290b951e..492fc94db7b 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/create-enum-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/create-float-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/create-float-attribute.md index 7ce41b6b0bd..e910e78d5f4 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/create-float-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/create-float-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/create-index.md b/docs/examples/1.3.x/console-web/examples/databases/create-index.md index 4da79809f45..90886275fc7 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/create-index.md +++ b/docs/examples/1.3.x/console-web/examples/databases/create-index.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/create-integer-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/create-integer-attribute.md index 28218a16d74..5fc48e79806 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/create-integer-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/create-ip-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/create-ip-attribute.md index 88fcd66825b..4f393305779 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/create-ip-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/create-relationship-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/create-relationship-attribute.md index 6fe22ad22e7..5189dae44b0 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/create-relationship-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/create-string-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/create-string-attribute.md index 8beade8f9d5..8b546994fb4 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/create-string-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/create-string-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/create-url-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/create-url-attribute.md index 1cbd402c2e3..4c1621878ae 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/create-url-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/create-url-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/create.md b/docs/examples/1.3.x/console-web/examples/databases/create.md index bca894d724b..035be47b85a 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/create.md +++ b/docs/examples/1.3.x/console-web/examples/databases/create.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/delete-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/delete-attribute.md index 858010b3137..9b5259f1358 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/delete-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/delete-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/delete-collection.md b/docs/examples/1.3.x/console-web/examples/databases/delete-collection.md index 9ce95a5e54a..b654863416f 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/delete-collection.md +++ b/docs/examples/1.3.x/console-web/examples/databases/delete-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/delete-document.md b/docs/examples/1.3.x/console-web/examples/databases/delete-document.md index d31d06b5210..727cf132ba6 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/delete-document.md +++ b/docs/examples/1.3.x/console-web/examples/databases/delete-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/delete-index.md b/docs/examples/1.3.x/console-web/examples/databases/delete-index.md index 2ef22b82ad1..6c8f1485115 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/delete-index.md +++ b/docs/examples/1.3.x/console-web/examples/databases/delete-index.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/delete.md b/docs/examples/1.3.x/console-web/examples/databases/delete.md index bfd5b0cea3e..049280a06be 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/delete.md +++ b/docs/examples/1.3.x/console-web/examples/databases/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/get-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/get-attribute.md index 1542f64763c..610f07904be 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/get-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/get-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/get-collection-usage.md b/docs/examples/1.3.x/console-web/examples/databases/get-collection-usage.md index 983a6133735..df519530465 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/get-collection-usage.md +++ b/docs/examples/1.3.x/console-web/examples/databases/get-collection-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/get-collection.md b/docs/examples/1.3.x/console-web/examples/databases/get-collection.md index 6dae02f5c20..f5fd435ff44 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/get-collection.md +++ b/docs/examples/1.3.x/console-web/examples/databases/get-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/get-database-usage.md b/docs/examples/1.3.x/console-web/examples/databases/get-database-usage.md index f75040811e1..3c293f0211f 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/get-database-usage.md +++ b/docs/examples/1.3.x/console-web/examples/databases/get-database-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/get-document.md b/docs/examples/1.3.x/console-web/examples/databases/get-document.md index 87569bd8639..63ec42b8171 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/get-document.md +++ b/docs/examples/1.3.x/console-web/examples/databases/get-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/get-index.md b/docs/examples/1.3.x/console-web/examples/databases/get-index.md index d3df35d7a7d..92fe6b48f41 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/get-index.md +++ b/docs/examples/1.3.x/console-web/examples/databases/get-index.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/get-usage.md b/docs/examples/1.3.x/console-web/examples/databases/get-usage.md index aabe123e892..c0ad5ea3c23 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/get-usage.md +++ b/docs/examples/1.3.x/console-web/examples/databases/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/get.md b/docs/examples/1.3.x/console-web/examples/databases/get.md index 64c8a859ed6..036ebd5294a 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/get.md +++ b/docs/examples/1.3.x/console-web/examples/databases/get.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/list-attributes.md b/docs/examples/1.3.x/console-web/examples/databases/list-attributes.md index df9123680e5..cb07aba1f50 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/list-attributes.md +++ b/docs/examples/1.3.x/console-web/examples/databases/list-attributes.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/list-collection-logs.md b/docs/examples/1.3.x/console-web/examples/databases/list-collection-logs.md index 89662fe4b33..a6484de5e23 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/list-collection-logs.md +++ b/docs/examples/1.3.x/console-web/examples/databases/list-collection-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/list-collections.md b/docs/examples/1.3.x/console-web/examples/databases/list-collections.md index 498e0d9c132..7d0e31ab0f9 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/list-collections.md +++ b/docs/examples/1.3.x/console-web/examples/databases/list-collections.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/list-document-logs.md b/docs/examples/1.3.x/console-web/examples/databases/list-document-logs.md index 0161998358f..34cf6c9c3df 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/list-document-logs.md +++ b/docs/examples/1.3.x/console-web/examples/databases/list-document-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/list-documents.md b/docs/examples/1.3.x/console-web/examples/databases/list-documents.md index 9e29eb52c78..6365b91045d 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/list-documents.md +++ b/docs/examples/1.3.x/console-web/examples/databases/list-documents.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/list-indexes.md b/docs/examples/1.3.x/console-web/examples/databases/list-indexes.md index 3449b7d82be..e821f98a12e 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/list-indexes.md +++ b/docs/examples/1.3.x/console-web/examples/databases/list-indexes.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/list-logs.md b/docs/examples/1.3.x/console-web/examples/databases/list-logs.md index 3b3f0dcead4..b982f8791b5 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/list-logs.md +++ b/docs/examples/1.3.x/console-web/examples/databases/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/list.md b/docs/examples/1.3.x/console-web/examples/databases/list.md index 20ae55793d2..d4ba3714c49 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/list.md +++ b/docs/examples/1.3.x/console-web/examples/databases/list.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/update-boolean-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/update-boolean-attribute.md index 629f8644b04..2d2ae72d823 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/update-boolean-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/update-collection.md b/docs/examples/1.3.x/console-web/examples/databases/update-collection.md index c0043b25002..c6fb8f69b66 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/update-collection.md +++ b/docs/examples/1.3.x/console-web/examples/databases/update-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/update-datetime-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/update-datetime-attribute.md index f5be61d0e6a..57452ed4de5 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/update-datetime-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/update-document.md b/docs/examples/1.3.x/console-web/examples/databases/update-document.md index 249af346483..2fbe08d3d22 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/update-document.md +++ b/docs/examples/1.3.x/console-web/examples/databases/update-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/update-email-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/update-email-attribute.md index e9a89a9436c..bd7f56f0ed5 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/update-email-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/update-email-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/update-enum-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/update-enum-attribute.md index 8f0d5b6842d..5fae0029503 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/update-enum-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/update-float-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/update-float-attribute.md index 72fcd77e7bc..f79aa89f296 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/update-float-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/update-float-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/update-integer-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/update-integer-attribute.md index d035b842b11..9be0327aa0f 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/update-integer-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/update-ip-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/update-ip-attribute.md index 3373ae49ae6..579e5011b03 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/update-ip-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/update-relationship-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/update-relationship-attribute.md index a329d5b6ad0..aa97a12eb4f 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/update-relationship-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/update-string-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/update-string-attribute.md index 69482531edd..5afdd00648c 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/update-string-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/update-string-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/update-url-attribute.md b/docs/examples/1.3.x/console-web/examples/databases/update-url-attribute.md index 481394021d2..d57ba6db661 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/update-url-attribute.md +++ b/docs/examples/1.3.x/console-web/examples/databases/update-url-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/databases/update.md b/docs/examples/1.3.x/console-web/examples/databases/update.md index a8160956e52..5f2727847c9 100644 --- a/docs/examples/1.3.x/console-web/examples/databases/update.md +++ b/docs/examples/1.3.x/console-web/examples/databases/update.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/create-build.md b/docs/examples/1.3.x/console-web/examples/functions/create-build.md index 141bb3247c7..a4d250ba582 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/create-build.md +++ b/docs/examples/1.3.x/console-web/examples/functions/create-build.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/create-deployment.md b/docs/examples/1.3.x/console-web/examples/functions/create-deployment.md index cb91fa8ab61..e205e851894 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/create-deployment.md +++ b/docs/examples/1.3.x/console-web/examples/functions/create-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/create-execution.md b/docs/examples/1.3.x/console-web/examples/functions/create-execution.md index cd623bb0562..b7c9d286528 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/create-execution.md +++ b/docs/examples/1.3.x/console-web/examples/functions/create-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/create-variable.md b/docs/examples/1.3.x/console-web/examples/functions/create-variable.md index df147ac2c8f..d8bad947e28 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/create-variable.md +++ b/docs/examples/1.3.x/console-web/examples/functions/create-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/create.md b/docs/examples/1.3.x/console-web/examples/functions/create.md index cbe62775f7d..844be94ddcc 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/create.md +++ b/docs/examples/1.3.x/console-web/examples/functions/create.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/delete-deployment.md b/docs/examples/1.3.x/console-web/examples/functions/delete-deployment.md index 9597da3dcfc..a5dc5584570 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/delete-deployment.md +++ b/docs/examples/1.3.x/console-web/examples/functions/delete-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/delete-variable.md b/docs/examples/1.3.x/console-web/examples/functions/delete-variable.md index 30f2c031aae..1687be849be 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/delete-variable.md +++ b/docs/examples/1.3.x/console-web/examples/functions/delete-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/delete.md b/docs/examples/1.3.x/console-web/examples/functions/delete.md index 3cfa756613b..bee147500b8 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/delete.md +++ b/docs/examples/1.3.x/console-web/examples/functions/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/get-deployment.md b/docs/examples/1.3.x/console-web/examples/functions/get-deployment.md index 3a16587aca0..e5e988c9409 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/get-deployment.md +++ b/docs/examples/1.3.x/console-web/examples/functions/get-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/get-execution.md b/docs/examples/1.3.x/console-web/examples/functions/get-execution.md index ac92b98af8e..d5b5d7400bf 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/get-execution.md +++ b/docs/examples/1.3.x/console-web/examples/functions/get-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/get-function-usage.md b/docs/examples/1.3.x/console-web/examples/functions/get-function-usage.md index 9ac20346ea3..19bb6aa293c 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/get-function-usage.md +++ b/docs/examples/1.3.x/console-web/examples/functions/get-function-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/get-usage.md b/docs/examples/1.3.x/console-web/examples/functions/get-usage.md index 6e3fe878607..8afeec514aa 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/get-usage.md +++ b/docs/examples/1.3.x/console-web/examples/functions/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/get-variable.md b/docs/examples/1.3.x/console-web/examples/functions/get-variable.md index 3d4b07f44ef..0d6a078176e 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/get-variable.md +++ b/docs/examples/1.3.x/console-web/examples/functions/get-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/get.md b/docs/examples/1.3.x/console-web/examples/functions/get.md index 5cb2e289106..fbb4e8be3f7 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/get.md +++ b/docs/examples/1.3.x/console-web/examples/functions/get.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/list-deployments.md b/docs/examples/1.3.x/console-web/examples/functions/list-deployments.md index bd63271f279..1acf26b16f8 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/list-deployments.md +++ b/docs/examples/1.3.x/console-web/examples/functions/list-deployments.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/list-executions.md b/docs/examples/1.3.x/console-web/examples/functions/list-executions.md index 5df980d48b7..b1d40eb4b6e 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/list-executions.md +++ b/docs/examples/1.3.x/console-web/examples/functions/list-executions.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/list-runtimes.md b/docs/examples/1.3.x/console-web/examples/functions/list-runtimes.md index 18f13b2c830..c1e2c654d73 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/list-runtimes.md +++ b/docs/examples/1.3.x/console-web/examples/functions/list-runtimes.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/list-variables.md b/docs/examples/1.3.x/console-web/examples/functions/list-variables.md index 5fd03bfc190..4f37c95bd59 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/list-variables.md +++ b/docs/examples/1.3.x/console-web/examples/functions/list-variables.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/list.md b/docs/examples/1.3.x/console-web/examples/functions/list.md index 721ad6bbb0c..903112a5f70 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/list.md +++ b/docs/examples/1.3.x/console-web/examples/functions/list.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/update-deployment.md b/docs/examples/1.3.x/console-web/examples/functions/update-deployment.md index 98752326efd..b668a3fabb3 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/update-deployment.md +++ b/docs/examples/1.3.x/console-web/examples/functions/update-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/update-variable.md b/docs/examples/1.3.x/console-web/examples/functions/update-variable.md index 33380ee102c..3ce70d0d627 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/update-variable.md +++ b/docs/examples/1.3.x/console-web/examples/functions/update-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/functions/update.md b/docs/examples/1.3.x/console-web/examples/functions/update.md index 473bbebbd60..8304a3d159d 100644 --- a/docs/examples/1.3.x/console-web/examples/functions/update.md +++ b/docs/examples/1.3.x/console-web/examples/functions/update.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/graphql/mutation.md b/docs/examples/1.3.x/console-web/examples/graphql/mutation.md index ee70c3630c4..6de224be68f 100644 --- a/docs/examples/1.3.x/console-web/examples/graphql/mutation.md +++ b/docs/examples/1.3.x/console-web/examples/graphql/mutation.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/graphql/query.md b/docs/examples/1.3.x/console-web/examples/graphql/query.md index 055c6ad0020..f1c35d81ba9 100644 --- a/docs/examples/1.3.x/console-web/examples/graphql/query.md +++ b/docs/examples/1.3.x/console-web/examples/graphql/query.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/health/get-antivirus.md b/docs/examples/1.3.x/console-web/examples/health/get-antivirus.md index 6d57550dd90..c55b33a3f56 100644 --- a/docs/examples/1.3.x/console-web/examples/health/get-antivirus.md +++ b/docs/examples/1.3.x/console-web/examples/health/get-antivirus.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/health/get-cache.md b/docs/examples/1.3.x/console-web/examples/health/get-cache.md index 5748c8e9dc1..7c1563ced5b 100644 --- a/docs/examples/1.3.x/console-web/examples/health/get-cache.md +++ b/docs/examples/1.3.x/console-web/examples/health/get-cache.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/health/get-d-b.md b/docs/examples/1.3.x/console-web/examples/health/get-d-b.md index 181dca70768..3c3c21b88c6 100644 --- a/docs/examples/1.3.x/console-web/examples/health/get-d-b.md +++ b/docs/examples/1.3.x/console-web/examples/health/get-d-b.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/health/get-queue-certificates.md b/docs/examples/1.3.x/console-web/examples/health/get-queue-certificates.md index 29fcb6707a7..f1361cb68aa 100644 --- a/docs/examples/1.3.x/console-web/examples/health/get-queue-certificates.md +++ b/docs/examples/1.3.x/console-web/examples/health/get-queue-certificates.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/health/get-queue-functions.md b/docs/examples/1.3.x/console-web/examples/health/get-queue-functions.md index 0b011cb32d4..12e8a8b6ba5 100644 --- a/docs/examples/1.3.x/console-web/examples/health/get-queue-functions.md +++ b/docs/examples/1.3.x/console-web/examples/health/get-queue-functions.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/health/get-queue-logs.md b/docs/examples/1.3.x/console-web/examples/health/get-queue-logs.md index 2dc33b377b3..8ddfaf700bd 100644 --- a/docs/examples/1.3.x/console-web/examples/health/get-queue-logs.md +++ b/docs/examples/1.3.x/console-web/examples/health/get-queue-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/health/get-queue-webhooks.md b/docs/examples/1.3.x/console-web/examples/health/get-queue-webhooks.md index 534d68c7f46..b2ae504bd13 100644 --- a/docs/examples/1.3.x/console-web/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.3.x/console-web/examples/health/get-queue-webhooks.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/health/get-storage-local.md b/docs/examples/1.3.x/console-web/examples/health/get-storage-local.md index ff842f4ba6a..b7e8d86da67 100644 --- a/docs/examples/1.3.x/console-web/examples/health/get-storage-local.md +++ b/docs/examples/1.3.x/console-web/examples/health/get-storage-local.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/health/get-time.md b/docs/examples/1.3.x/console-web/examples/health/get-time.md index 6d8e1c225a5..73e1155687e 100644 --- a/docs/examples/1.3.x/console-web/examples/health/get-time.md +++ b/docs/examples/1.3.x/console-web/examples/health/get-time.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/health/get.md b/docs/examples/1.3.x/console-web/examples/health/get.md index 76e74be74cf..faa1a0c7c1c 100644 --- a/docs/examples/1.3.x/console-web/examples/health/get.md +++ b/docs/examples/1.3.x/console-web/examples/health/get.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/locale/get.md b/docs/examples/1.3.x/console-web/examples/locale/get.md index ac47468df81..bd3c27e3c32 100644 --- a/docs/examples/1.3.x/console-web/examples/locale/get.md +++ b/docs/examples/1.3.x/console-web/examples/locale/get.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/locale/list-continents.md b/docs/examples/1.3.x/console-web/examples/locale/list-continents.md index b2358396fcf..0c3d6bb4996 100644 --- a/docs/examples/1.3.x/console-web/examples/locale/list-continents.md +++ b/docs/examples/1.3.x/console-web/examples/locale/list-continents.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/locale/list-countries-e-u.md b/docs/examples/1.3.x/console-web/examples/locale/list-countries-e-u.md index 59d6e24dbf7..7ac2906b4c7 100644 --- a/docs/examples/1.3.x/console-web/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/console-web/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/locale/list-countries-phones.md b/docs/examples/1.3.x/console-web/examples/locale/list-countries-phones.md index 898cb3cf31b..300c81d9538 100644 --- a/docs/examples/1.3.x/console-web/examples/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/console-web/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/locale/list-countries.md b/docs/examples/1.3.x/console-web/examples/locale/list-countries.md index a36b8c25edf..3f26f6dba81 100644 --- a/docs/examples/1.3.x/console-web/examples/locale/list-countries.md +++ b/docs/examples/1.3.x/console-web/examples/locale/list-countries.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/locale/list-currencies.md b/docs/examples/1.3.x/console-web/examples/locale/list-currencies.md index 1f348914259..66163952bd7 100644 --- a/docs/examples/1.3.x/console-web/examples/locale/list-currencies.md +++ b/docs/examples/1.3.x/console-web/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/locale/list-languages.md b/docs/examples/1.3.x/console-web/examples/locale/list-languages.md index 4fb4dbf0be9..048c79d38ad 100644 --- a/docs/examples/1.3.x/console-web/examples/locale/list-languages.md +++ b/docs/examples/1.3.x/console-web/examples/locale/list-languages.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/create-domain.md b/docs/examples/1.3.x/console-web/examples/projects/create-domain.md index 78036bc8b06..4a572cc30c0 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/create-domain.md +++ b/docs/examples/1.3.x/console-web/examples/projects/create-domain.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/create-key.md b/docs/examples/1.3.x/console-web/examples/projects/create-key.md index 02032e81c54..d65660599b2 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/create-key.md +++ b/docs/examples/1.3.x/console-web/examples/projects/create-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/create-platform.md b/docs/examples/1.3.x/console-web/examples/projects/create-platform.md index 4a319681713..b668ec12f76 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/create-platform.md +++ b/docs/examples/1.3.x/console-web/examples/projects/create-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/create-webhook.md b/docs/examples/1.3.x/console-web/examples/projects/create-webhook.md index 356a5ffe866..0ca56346c4d 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/create-webhook.md +++ b/docs/examples/1.3.x/console-web/examples/projects/create-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/create.md b/docs/examples/1.3.x/console-web/examples/projects/create.md index 67682bf8595..df22f3a68ed 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/create.md +++ b/docs/examples/1.3.x/console-web/examples/projects/create.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/delete-domain.md b/docs/examples/1.3.x/console-web/examples/projects/delete-domain.md index 9b8ffbce394..a5370389e18 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/delete-domain.md +++ b/docs/examples/1.3.x/console-web/examples/projects/delete-domain.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/delete-key.md b/docs/examples/1.3.x/console-web/examples/projects/delete-key.md index 74c6bd15621..399e97687a2 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/delete-key.md +++ b/docs/examples/1.3.x/console-web/examples/projects/delete-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/delete-platform.md b/docs/examples/1.3.x/console-web/examples/projects/delete-platform.md index da8ce56e54e..0d6fa3c55b3 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/delete-platform.md +++ b/docs/examples/1.3.x/console-web/examples/projects/delete-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/delete-webhook.md b/docs/examples/1.3.x/console-web/examples/projects/delete-webhook.md index 08e3af636fc..2de71ec3f31 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/delete-webhook.md +++ b/docs/examples/1.3.x/console-web/examples/projects/delete-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/delete.md b/docs/examples/1.3.x/console-web/examples/projects/delete.md index dc620b08113..62c43398531 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/delete.md +++ b/docs/examples/1.3.x/console-web/examples/projects/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/get-domain.md b/docs/examples/1.3.x/console-web/examples/projects/get-domain.md index 4b82d70ef5c..4d42ce09ba0 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/get-domain.md +++ b/docs/examples/1.3.x/console-web/examples/projects/get-domain.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/get-key.md b/docs/examples/1.3.x/console-web/examples/projects/get-key.md index c0d3282c146..bfadb8de561 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/get-key.md +++ b/docs/examples/1.3.x/console-web/examples/projects/get-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/get-platform.md b/docs/examples/1.3.x/console-web/examples/projects/get-platform.md index fd65231affd..d178cbb8430 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/get-platform.md +++ b/docs/examples/1.3.x/console-web/examples/projects/get-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/get-usage.md b/docs/examples/1.3.x/console-web/examples/projects/get-usage.md index 8d8c91355dd..af512463fbe 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/get-usage.md +++ b/docs/examples/1.3.x/console-web/examples/projects/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/get-webhook.md b/docs/examples/1.3.x/console-web/examples/projects/get-webhook.md index 7f580b5f572..4357669a227 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/get-webhook.md +++ b/docs/examples/1.3.x/console-web/examples/projects/get-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/get.md b/docs/examples/1.3.x/console-web/examples/projects/get.md index 23c235a741c..69e53ca0f23 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/get.md +++ b/docs/examples/1.3.x/console-web/examples/projects/get.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/list-domains.md b/docs/examples/1.3.x/console-web/examples/projects/list-domains.md index 448dbf8d190..7f536d91dec 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/list-domains.md +++ b/docs/examples/1.3.x/console-web/examples/projects/list-domains.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/list-keys.md b/docs/examples/1.3.x/console-web/examples/projects/list-keys.md index c2dce0a419a..8800067c24b 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/list-keys.md +++ b/docs/examples/1.3.x/console-web/examples/projects/list-keys.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/list-platforms.md b/docs/examples/1.3.x/console-web/examples/projects/list-platforms.md index 968438f6bb7..692de5c43fe 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/list-platforms.md +++ b/docs/examples/1.3.x/console-web/examples/projects/list-platforms.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/list-webhooks.md b/docs/examples/1.3.x/console-web/examples/projects/list-webhooks.md index e0e0af367f5..d960a75f982 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/list-webhooks.md +++ b/docs/examples/1.3.x/console-web/examples/projects/list-webhooks.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/list.md b/docs/examples/1.3.x/console-web/examples/projects/list.md index 0cf5002afe9..a7476905fd5 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/list.md +++ b/docs/examples/1.3.x/console-web/examples/projects/list.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/update-auth-duration.md b/docs/examples/1.3.x/console-web/examples/projects/update-auth-duration.md index 37c69222df8..f74645388d4 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/update-auth-duration.md +++ b/docs/examples/1.3.x/console-web/examples/projects/update-auth-duration.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/update-auth-limit.md b/docs/examples/1.3.x/console-web/examples/projects/update-auth-limit.md index a63f5b4518e..4195655befe 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/update-auth-limit.md +++ b/docs/examples/1.3.x/console-web/examples/projects/update-auth-limit.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/update-auth-password-dictionary.md b/docs/examples/1.3.x/console-web/examples/projects/update-auth-password-dictionary.md index e3cb529d1b4..8f81a8fb937 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/update-auth-password-dictionary.md +++ b/docs/examples/1.3.x/console-web/examples/projects/update-auth-password-dictionary.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/update-auth-password-history.md b/docs/examples/1.3.x/console-web/examples/projects/update-auth-password-history.md index 67b885d49db..a5651e4e323 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/update-auth-password-history.md +++ b/docs/examples/1.3.x/console-web/examples/projects/update-auth-password-history.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/update-auth-sessions-limit.md b/docs/examples/1.3.x/console-web/examples/projects/update-auth-sessions-limit.md index ef2dffa67ae..21ce249f7aa 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/update-auth-sessions-limit.md +++ b/docs/examples/1.3.x/console-web/examples/projects/update-auth-sessions-limit.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/update-auth-status.md b/docs/examples/1.3.x/console-web/examples/projects/update-auth-status.md index 4751442d8fd..b183e1477c0 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/update-auth-status.md +++ b/docs/examples/1.3.x/console-web/examples/projects/update-auth-status.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/update-domain-verification.md b/docs/examples/1.3.x/console-web/examples/projects/update-domain-verification.md index d994b90aaa2..aac42ce379c 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/update-domain-verification.md +++ b/docs/examples/1.3.x/console-web/examples/projects/update-domain-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/update-key.md b/docs/examples/1.3.x/console-web/examples/projects/update-key.md index fd2bde82bfa..659017451a2 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/update-key.md +++ b/docs/examples/1.3.x/console-web/examples/projects/update-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/update-o-auth2.md b/docs/examples/1.3.x/console-web/examples/projects/update-o-auth2.md index 34ce8142088..cf3c92658fa 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/update-o-auth2.md +++ b/docs/examples/1.3.x/console-web/examples/projects/update-o-auth2.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/update-platform.md b/docs/examples/1.3.x/console-web/examples/projects/update-platform.md index ce49dfffd84..75f3b3b4e2c 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/update-platform.md +++ b/docs/examples/1.3.x/console-web/examples/projects/update-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/update-service-status.md b/docs/examples/1.3.x/console-web/examples/projects/update-service-status.md index 5b727003b04..66010abf746 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/update-service-status.md +++ b/docs/examples/1.3.x/console-web/examples/projects/update-service-status.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/update-webhook-signature.md b/docs/examples/1.3.x/console-web/examples/projects/update-webhook-signature.md index 472271f8e60..8a18c842620 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/update-webhook-signature.md +++ b/docs/examples/1.3.x/console-web/examples/projects/update-webhook-signature.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/update-webhook.md b/docs/examples/1.3.x/console-web/examples/projects/update-webhook.md index 1339a458227..81fdd2913e9 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/update-webhook.md +++ b/docs/examples/1.3.x/console-web/examples/projects/update-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/projects/update.md b/docs/examples/1.3.x/console-web/examples/projects/update.md index 31281808c47..f162bd09b52 100644 --- a/docs/examples/1.3.x/console-web/examples/projects/update.md +++ b/docs/examples/1.3.x/console-web/examples/projects/update.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/storage/create-bucket.md b/docs/examples/1.3.x/console-web/examples/storage/create-bucket.md index 7696b14294e..766a4835dc3 100644 --- a/docs/examples/1.3.x/console-web/examples/storage/create-bucket.md +++ b/docs/examples/1.3.x/console-web/examples/storage/create-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/storage/create-file.md b/docs/examples/1.3.x/console-web/examples/storage/create-file.md index d1bf55b42b8..ce0c8f0b9c7 100644 --- a/docs/examples/1.3.x/console-web/examples/storage/create-file.md +++ b/docs/examples/1.3.x/console-web/examples/storage/create-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/storage/delete-bucket.md b/docs/examples/1.3.x/console-web/examples/storage/delete-bucket.md index 4634b11f5b3..0a3305e862a 100644 --- a/docs/examples/1.3.x/console-web/examples/storage/delete-bucket.md +++ b/docs/examples/1.3.x/console-web/examples/storage/delete-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/storage/delete-file.md b/docs/examples/1.3.x/console-web/examples/storage/delete-file.md index b4c0ff0f9d8..1961a1fcde1 100644 --- a/docs/examples/1.3.x/console-web/examples/storage/delete-file.md +++ b/docs/examples/1.3.x/console-web/examples/storage/delete-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/storage/get-bucket-usage.md b/docs/examples/1.3.x/console-web/examples/storage/get-bucket-usage.md index 65c66d7aa04..58223df2aef 100644 --- a/docs/examples/1.3.x/console-web/examples/storage/get-bucket-usage.md +++ b/docs/examples/1.3.x/console-web/examples/storage/get-bucket-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/storage/get-bucket.md b/docs/examples/1.3.x/console-web/examples/storage/get-bucket.md index 2b65e8b0cee..7b386458f9d 100644 --- a/docs/examples/1.3.x/console-web/examples/storage/get-bucket.md +++ b/docs/examples/1.3.x/console-web/examples/storage/get-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/storage/get-file-download.md b/docs/examples/1.3.x/console-web/examples/storage/get-file-download.md index 1ce57cb38a6..bdc8fb79d3f 100644 --- a/docs/examples/1.3.x/console-web/examples/storage/get-file-download.md +++ b/docs/examples/1.3.x/console-web/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/storage/get-file-preview.md b/docs/examples/1.3.x/console-web/examples/storage/get-file-preview.md index ab6bc18fc46..8f58323bd6e 100644 --- a/docs/examples/1.3.x/console-web/examples/storage/get-file-preview.md +++ b/docs/examples/1.3.x/console-web/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/storage/get-file-view.md b/docs/examples/1.3.x/console-web/examples/storage/get-file-view.md index 7ce851f0252..aa482c46f5c 100644 --- a/docs/examples/1.3.x/console-web/examples/storage/get-file-view.md +++ b/docs/examples/1.3.x/console-web/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/storage/get-file.md b/docs/examples/1.3.x/console-web/examples/storage/get-file.md index b6e800303d1..bb5a737721a 100644 --- a/docs/examples/1.3.x/console-web/examples/storage/get-file.md +++ b/docs/examples/1.3.x/console-web/examples/storage/get-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/storage/get-usage.md b/docs/examples/1.3.x/console-web/examples/storage/get-usage.md index f618ba4e16e..e9a8eb06729 100644 --- a/docs/examples/1.3.x/console-web/examples/storage/get-usage.md +++ b/docs/examples/1.3.x/console-web/examples/storage/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/storage/list-buckets.md b/docs/examples/1.3.x/console-web/examples/storage/list-buckets.md index 5a356900fab..a14a0d02172 100644 --- a/docs/examples/1.3.x/console-web/examples/storage/list-buckets.md +++ b/docs/examples/1.3.x/console-web/examples/storage/list-buckets.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/storage/list-files.md b/docs/examples/1.3.x/console-web/examples/storage/list-files.md index 0c6170f11d1..ac7ef669dc0 100644 --- a/docs/examples/1.3.x/console-web/examples/storage/list-files.md +++ b/docs/examples/1.3.x/console-web/examples/storage/list-files.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/storage/update-bucket.md b/docs/examples/1.3.x/console-web/examples/storage/update-bucket.md index 09ed4ce441f..1d050c14b88 100644 --- a/docs/examples/1.3.x/console-web/examples/storage/update-bucket.md +++ b/docs/examples/1.3.x/console-web/examples/storage/update-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/storage/update-file.md b/docs/examples/1.3.x/console-web/examples/storage/update-file.md index abaaf9afd4e..12292761d23 100644 --- a/docs/examples/1.3.x/console-web/examples/storage/update-file.md +++ b/docs/examples/1.3.x/console-web/examples/storage/update-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/teams/create-membership.md b/docs/examples/1.3.x/console-web/examples/teams/create-membership.md index ddd48611374..4b176ca962c 100644 --- a/docs/examples/1.3.x/console-web/examples/teams/create-membership.md +++ b/docs/examples/1.3.x/console-web/examples/teams/create-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/teams/create.md b/docs/examples/1.3.x/console-web/examples/teams/create.md index a2cb34296b6..881816db346 100644 --- a/docs/examples/1.3.x/console-web/examples/teams/create.md +++ b/docs/examples/1.3.x/console-web/examples/teams/create.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/teams/delete-membership.md b/docs/examples/1.3.x/console-web/examples/teams/delete-membership.md index 4e7d7e7a746..66274a17b65 100644 --- a/docs/examples/1.3.x/console-web/examples/teams/delete-membership.md +++ b/docs/examples/1.3.x/console-web/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/teams/delete.md b/docs/examples/1.3.x/console-web/examples/teams/delete.md index 0bc778ba635..d51318f89e2 100644 --- a/docs/examples/1.3.x/console-web/examples/teams/delete.md +++ b/docs/examples/1.3.x/console-web/examples/teams/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/teams/get-membership.md b/docs/examples/1.3.x/console-web/examples/teams/get-membership.md index c0bdae5fc6c..881f37d8b09 100644 --- a/docs/examples/1.3.x/console-web/examples/teams/get-membership.md +++ b/docs/examples/1.3.x/console-web/examples/teams/get-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/teams/get-prefs.md b/docs/examples/1.3.x/console-web/examples/teams/get-prefs.md index 2104c5f8986..f039b6e3dab 100644 --- a/docs/examples/1.3.x/console-web/examples/teams/get-prefs.md +++ b/docs/examples/1.3.x/console-web/examples/teams/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/teams/get.md b/docs/examples/1.3.x/console-web/examples/teams/get.md index 2dbfdb4b0b6..068d50c6d10 100644 --- a/docs/examples/1.3.x/console-web/examples/teams/get.md +++ b/docs/examples/1.3.x/console-web/examples/teams/get.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/teams/list-logs.md b/docs/examples/1.3.x/console-web/examples/teams/list-logs.md index 2c3c7311e26..7fb75214172 100644 --- a/docs/examples/1.3.x/console-web/examples/teams/list-logs.md +++ b/docs/examples/1.3.x/console-web/examples/teams/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/teams/list-memberships.md b/docs/examples/1.3.x/console-web/examples/teams/list-memberships.md index f7a7d1a54e6..93e8588a555 100644 --- a/docs/examples/1.3.x/console-web/examples/teams/list-memberships.md +++ b/docs/examples/1.3.x/console-web/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/teams/list.md b/docs/examples/1.3.x/console-web/examples/teams/list.md index 99e482d8f3c..3a5311efe33 100644 --- a/docs/examples/1.3.x/console-web/examples/teams/list.md +++ b/docs/examples/1.3.x/console-web/examples/teams/list.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/teams/update-membership-roles.md b/docs/examples/1.3.x/console-web/examples/teams/update-membership-roles.md index c09ed1ac779..80cbd9b6e17 100644 --- a/docs/examples/1.3.x/console-web/examples/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/console-web/examples/teams/update-membership-roles.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/teams/update-membership-status.md b/docs/examples/1.3.x/console-web/examples/teams/update-membership-status.md index 1c8ec3a27e3..cdc93967b33 100644 --- a/docs/examples/1.3.x/console-web/examples/teams/update-membership-status.md +++ b/docs/examples/1.3.x/console-web/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/teams/update-name.md b/docs/examples/1.3.x/console-web/examples/teams/update-name.md index 4bee8deb525..9a8af03cd92 100644 --- a/docs/examples/1.3.x/console-web/examples/teams/update-name.md +++ b/docs/examples/1.3.x/console-web/examples/teams/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/teams/update-prefs.md b/docs/examples/1.3.x/console-web/examples/teams/update-prefs.md index 7d7ed633281..4f375b52cea 100644 --- a/docs/examples/1.3.x/console-web/examples/teams/update-prefs.md +++ b/docs/examples/1.3.x/console-web/examples/teams/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/create-argon2user.md b/docs/examples/1.3.x/console-web/examples/users/create-argon2user.md index f4dabafe189..e22db4f2987 100644 --- a/docs/examples/1.3.x/console-web/examples/users/create-argon2user.md +++ b/docs/examples/1.3.x/console-web/examples/users/create-argon2user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/create-bcrypt-user.md b/docs/examples/1.3.x/console-web/examples/users/create-bcrypt-user.md index 247f579c9ca..809c9aab772 100644 --- a/docs/examples/1.3.x/console-web/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.3.x/console-web/examples/users/create-bcrypt-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/create-m-d5user.md b/docs/examples/1.3.x/console-web/examples/users/create-m-d5user.md index 8a81f0801bf..13048d3ad68 100644 --- a/docs/examples/1.3.x/console-web/examples/users/create-m-d5user.md +++ b/docs/examples/1.3.x/console-web/examples/users/create-m-d5user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/create-p-h-pass-user.md b/docs/examples/1.3.x/console-web/examples/users/create-p-h-pass-user.md index f7297c10234..448fb53ac24 100644 --- a/docs/examples/1.3.x/console-web/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.3.x/console-web/examples/users/create-p-h-pass-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/create-s-h-a-user.md b/docs/examples/1.3.x/console-web/examples/users/create-s-h-a-user.md index 3cefaf17dfa..d188ec648d7 100644 --- a/docs/examples/1.3.x/console-web/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.3.x/console-web/examples/users/create-s-h-a-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/create-scrypt-modified-user.md b/docs/examples/1.3.x/console-web/examples/users/create-scrypt-modified-user.md index d8889fa2292..da40910a376 100644 --- a/docs/examples/1.3.x/console-web/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.3.x/console-web/examples/users/create-scrypt-modified-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/create-scrypt-user.md b/docs/examples/1.3.x/console-web/examples/users/create-scrypt-user.md index 3c4b357e4c9..ba82d26d9f6 100644 --- a/docs/examples/1.3.x/console-web/examples/users/create-scrypt-user.md +++ b/docs/examples/1.3.x/console-web/examples/users/create-scrypt-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/create.md b/docs/examples/1.3.x/console-web/examples/users/create.md index 845895d6a5c..30e6ec9266f 100644 --- a/docs/examples/1.3.x/console-web/examples/users/create.md +++ b/docs/examples/1.3.x/console-web/examples/users/create.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/delete-session.md b/docs/examples/1.3.x/console-web/examples/users/delete-session.md index 70404ca574f..9098318a774 100644 --- a/docs/examples/1.3.x/console-web/examples/users/delete-session.md +++ b/docs/examples/1.3.x/console-web/examples/users/delete-session.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/delete-sessions.md b/docs/examples/1.3.x/console-web/examples/users/delete-sessions.md index b02771c7098..c8994db4e5a 100644 --- a/docs/examples/1.3.x/console-web/examples/users/delete-sessions.md +++ b/docs/examples/1.3.x/console-web/examples/users/delete-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/delete.md b/docs/examples/1.3.x/console-web/examples/users/delete.md index 0bb95c395bd..8dd6885f0e5 100644 --- a/docs/examples/1.3.x/console-web/examples/users/delete.md +++ b/docs/examples/1.3.x/console-web/examples/users/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/get-prefs.md b/docs/examples/1.3.x/console-web/examples/users/get-prefs.md index 593552bd033..a0e8f78b94a 100644 --- a/docs/examples/1.3.x/console-web/examples/users/get-prefs.md +++ b/docs/examples/1.3.x/console-web/examples/users/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/get-usage.md b/docs/examples/1.3.x/console-web/examples/users/get-usage.md index 59d95e6dcb5..3c38b500d8b 100644 --- a/docs/examples/1.3.x/console-web/examples/users/get-usage.md +++ b/docs/examples/1.3.x/console-web/examples/users/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/get.md b/docs/examples/1.3.x/console-web/examples/users/get.md index 46cee750f7b..816b41ad399 100644 --- a/docs/examples/1.3.x/console-web/examples/users/get.md +++ b/docs/examples/1.3.x/console-web/examples/users/get.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/list-logs.md b/docs/examples/1.3.x/console-web/examples/users/list-logs.md index ded1e98b40b..cb2402e2d07 100644 --- a/docs/examples/1.3.x/console-web/examples/users/list-logs.md +++ b/docs/examples/1.3.x/console-web/examples/users/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/list-memberships.md b/docs/examples/1.3.x/console-web/examples/users/list-memberships.md index b47f7acf57a..3f9dca5ab21 100644 --- a/docs/examples/1.3.x/console-web/examples/users/list-memberships.md +++ b/docs/examples/1.3.x/console-web/examples/users/list-memberships.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/list-sessions.md b/docs/examples/1.3.x/console-web/examples/users/list-sessions.md index 087834e5695..0c0109550bd 100644 --- a/docs/examples/1.3.x/console-web/examples/users/list-sessions.md +++ b/docs/examples/1.3.x/console-web/examples/users/list-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/list.md b/docs/examples/1.3.x/console-web/examples/users/list.md index 28a8258b126..f658f432bac 100644 --- a/docs/examples/1.3.x/console-web/examples/users/list.md +++ b/docs/examples/1.3.x/console-web/examples/users/list.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/update-email-verification.md b/docs/examples/1.3.x/console-web/examples/users/update-email-verification.md index 019b0723714..7b9d2cc424e 100644 --- a/docs/examples/1.3.x/console-web/examples/users/update-email-verification.md +++ b/docs/examples/1.3.x/console-web/examples/users/update-email-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/update-email.md b/docs/examples/1.3.x/console-web/examples/users/update-email.md index e37d03a01c9..fe1f2500f83 100644 --- a/docs/examples/1.3.x/console-web/examples/users/update-email.md +++ b/docs/examples/1.3.x/console-web/examples/users/update-email.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/update-name.md b/docs/examples/1.3.x/console-web/examples/users/update-name.md index 2834c747da4..2d491d7a569 100644 --- a/docs/examples/1.3.x/console-web/examples/users/update-name.md +++ b/docs/examples/1.3.x/console-web/examples/users/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/update-password.md b/docs/examples/1.3.x/console-web/examples/users/update-password.md index 5192abda89b..8edb97138fc 100644 --- a/docs/examples/1.3.x/console-web/examples/users/update-password.md +++ b/docs/examples/1.3.x/console-web/examples/users/update-password.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/update-phone-verification.md b/docs/examples/1.3.x/console-web/examples/users/update-phone-verification.md index 17ddf467d96..d4fe6f00a18 100644 --- a/docs/examples/1.3.x/console-web/examples/users/update-phone-verification.md +++ b/docs/examples/1.3.x/console-web/examples/users/update-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/update-phone.md b/docs/examples/1.3.x/console-web/examples/users/update-phone.md index a1d85aaaca4..ce74c710226 100644 --- a/docs/examples/1.3.x/console-web/examples/users/update-phone.md +++ b/docs/examples/1.3.x/console-web/examples/users/update-phone.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/update-prefs.md b/docs/examples/1.3.x/console-web/examples/users/update-prefs.md index e3c5b76c2aa..c05c4df53d6 100644 --- a/docs/examples/1.3.x/console-web/examples/users/update-prefs.md +++ b/docs/examples/1.3.x/console-web/examples/users/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/console-web/examples/users/update-status.md b/docs/examples/1.3.x/console-web/examples/users/update-status.md index eafbec728f5..87e2197cfc6 100644 --- a/docs/examples/1.3.x/console-web/examples/users/update-status.md +++ b/docs/examples/1.3.x/console-web/examples/users/update-status.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/create-phone-verification.md b/docs/examples/1.3.x/server-dart/examples/account/create-phone-verification.md index 912f8c3b1ec..85ea968b942 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/create-phone-verification.md +++ b/docs/examples/1.3.x/server-dart/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/create-recovery.md b/docs/examples/1.3.x/server-dart/examples/account/create-recovery.md index d9f13957c7e..0fe2889a76b 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/create-recovery.md +++ b/docs/examples/1.3.x/server-dart/examples/account/create-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/create-verification.md b/docs/examples/1.3.x/server-dart/examples/account/create-verification.md index cca3c7b7742..8daf5d7b1fb 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/create-verification.md +++ b/docs/examples/1.3.x/server-dart/examples/account/create-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/delete-session.md b/docs/examples/1.3.x/server-dart/examples/account/delete-session.md index 9486ec9b80a..92a0fee9a21 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/delete-session.md +++ b/docs/examples/1.3.x/server-dart/examples/account/delete-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/delete-sessions.md b/docs/examples/1.3.x/server-dart/examples/account/delete-sessions.md index a5732cb68e4..2477115be14 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/delete-sessions.md +++ b/docs/examples/1.3.x/server-dart/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/get-prefs.md b/docs/examples/1.3.x/server-dart/examples/account/get-prefs.md index 527a71f3b13..fcf164dde07 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/get-prefs.md +++ b/docs/examples/1.3.x/server-dart/examples/account/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/get-session.md b/docs/examples/1.3.x/server-dart/examples/account/get-session.md index 6eb711ab4d7..029d7bc3d99 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/get-session.md +++ b/docs/examples/1.3.x/server-dart/examples/account/get-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/get.md b/docs/examples/1.3.x/server-dart/examples/account/get.md index c72fdddb107..805061bd701 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/get.md +++ b/docs/examples/1.3.x/server-dart/examples/account/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/list-logs.md b/docs/examples/1.3.x/server-dart/examples/account/list-logs.md index 68d2c49f743..41cdad74c0c 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/list-logs.md +++ b/docs/examples/1.3.x/server-dart/examples/account/list-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/list-sessions.md b/docs/examples/1.3.x/server-dart/examples/account/list-sessions.md index 0d6567b5f31..30bb6fc8c95 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/list-sessions.md +++ b/docs/examples/1.3.x/server-dart/examples/account/list-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/update-email.md b/docs/examples/1.3.x/server-dart/examples/account/update-email.md index b83f7d86da9..ad77ccfd9a1 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/update-email.md +++ b/docs/examples/1.3.x/server-dart/examples/account/update-email.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/update-name.md b/docs/examples/1.3.x/server-dart/examples/account/update-name.md index 0bd27cf2046..7df0f9cc019 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/update-name.md +++ b/docs/examples/1.3.x/server-dart/examples/account/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/update-password.md b/docs/examples/1.3.x/server-dart/examples/account/update-password.md index d5e27a7574e..559b875ebf1 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/update-password.md +++ b/docs/examples/1.3.x/server-dart/examples/account/update-password.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/update-phone-verification.md b/docs/examples/1.3.x/server-dart/examples/account/update-phone-verification.md index f2995b9b93f..4892311ef2a 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/update-phone-verification.md +++ b/docs/examples/1.3.x/server-dart/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/update-phone.md b/docs/examples/1.3.x/server-dart/examples/account/update-phone.md index 5848da5d10d..465593c0ab5 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/update-phone.md +++ b/docs/examples/1.3.x/server-dart/examples/account/update-phone.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/update-prefs.md b/docs/examples/1.3.x/server-dart/examples/account/update-prefs.md index ffbe7002884..7ffef542be5 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/update-prefs.md +++ b/docs/examples/1.3.x/server-dart/examples/account/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/update-recovery.md b/docs/examples/1.3.x/server-dart/examples/account/update-recovery.md index c2cf9d2396f..e3ade8270b2 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/update-recovery.md +++ b/docs/examples/1.3.x/server-dart/examples/account/update-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/update-session.md b/docs/examples/1.3.x/server-dart/examples/account/update-session.md index 61e11e27af9..859f1a81f7a 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/update-session.md +++ b/docs/examples/1.3.x/server-dart/examples/account/update-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/update-status.md b/docs/examples/1.3.x/server-dart/examples/account/update-status.md index 12f733334a3..610784294a0 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/update-status.md +++ b/docs/examples/1.3.x/server-dart/examples/account/update-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/account/update-verification.md b/docs/examples/1.3.x/server-dart/examples/account/update-verification.md index 40e36426a10..7b291b61605 100644 --- a/docs/examples/1.3.x/server-dart/examples/account/update-verification.md +++ b/docs/examples/1.3.x/server-dart/examples/account/update-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/avatars/get-browser.md b/docs/examples/1.3.x/server-dart/examples/avatars/get-browser.md index 0bac9df4ef9..abca00ba4b4 100644 --- a/docs/examples/1.3.x/server-dart/examples/avatars/get-browser.md +++ b/docs/examples/1.3.x/server-dart/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/avatars/get-credit-card.md b/docs/examples/1.3.x/server-dart/examples/avatars/get-credit-card.md index b9a8166e485..b50b1304f9e 100644 --- a/docs/examples/1.3.x/server-dart/examples/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/server-dart/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/avatars/get-favicon.md b/docs/examples/1.3.x/server-dart/examples/avatars/get-favicon.md index 6a728e7792a..a547908fa47 100644 --- a/docs/examples/1.3.x/server-dart/examples/avatars/get-favicon.md +++ b/docs/examples/1.3.x/server-dart/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/avatars/get-flag.md b/docs/examples/1.3.x/server-dart/examples/avatars/get-flag.md index 02e4880926f..8e2d9f14900 100644 --- a/docs/examples/1.3.x/server-dart/examples/avatars/get-flag.md +++ b/docs/examples/1.3.x/server-dart/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/avatars/get-image.md b/docs/examples/1.3.x/server-dart/examples/avatars/get-image.md index b1d5e338844..746ec079b0f 100644 --- a/docs/examples/1.3.x/server-dart/examples/avatars/get-image.md +++ b/docs/examples/1.3.x/server-dart/examples/avatars/get-image.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/avatars/get-initials.md b/docs/examples/1.3.x/server-dart/examples/avatars/get-initials.md index 5a68caf1d95..c979fddd08a 100644 --- a/docs/examples/1.3.x/server-dart/examples/avatars/get-initials.md +++ b/docs/examples/1.3.x/server-dart/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/avatars/get-q-r.md b/docs/examples/1.3.x/server-dart/examples/avatars/get-q-r.md index 8283b9bdf45..6ab3cf709d8 100644 --- a/docs/examples/1.3.x/server-dart/examples/avatars/get-q-r.md +++ b/docs/examples/1.3.x/server-dart/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/create-boolean-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/create-boolean-attribute.md index 224719685b5..0fb759bcb22 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/create-boolean-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/create-collection.md b/docs/examples/1.3.x/server-dart/examples/databases/create-collection.md index c90183deed2..e63877b39f7 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/create-collection.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/create-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/create-datetime-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/create-datetime-attribute.md index 24c44088f3d..f56eec54ec0 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/create-datetime-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/create-document.md b/docs/examples/1.3.x/server-dart/examples/databases/create-document.md index 00d844da0fc..1f6f6b9703d 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/create-document.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/create-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/create-email-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/create-email-attribute.md index 92fd32037b8..ea1ebfb480a 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/create-email-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/create-email-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/create-enum-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/create-enum-attribute.md index fa8ad92015f..03773c58ebf 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/create-enum-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/create-float-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/create-float-attribute.md index 96047bf2b21..94c716b9d47 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/create-float-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/create-float-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/create-index.md b/docs/examples/1.3.x/server-dart/examples/databases/create-index.md index c16a02719e7..248d9632a09 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/create-index.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/create-index.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/create-integer-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/create-integer-attribute.md index bc4f12f0c4f..4b1d76195dc 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/create-integer-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/create-ip-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/create-ip-attribute.md index ef3e985a384..4b3586ae34e 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/create-ip-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/create-relationship-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/create-relationship-attribute.md index 01f2b42f754..01c7e0e5db3 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/create-relationship-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/create-string-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/create-string-attribute.md index 14f2769dbbd..ed973e8c537 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/create-string-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/create-string-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/create-url-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/create-url-attribute.md index 4cf3e99a727..62b6970b27b 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/create-url-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/create-url-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/create.md b/docs/examples/1.3.x/server-dart/examples/databases/create.md index cbaf3b742d0..390baabb610 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/create.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/delete-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/delete-attribute.md index e9865bfe220..b52ba1f39de 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/delete-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/delete-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/delete-collection.md b/docs/examples/1.3.x/server-dart/examples/databases/delete-collection.md index 58869201153..8de343f8691 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/delete-collection.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/delete-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/delete-document.md b/docs/examples/1.3.x/server-dart/examples/databases/delete-document.md index 0d298f3b420..bcb4b7a2da1 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/delete-document.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/delete-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/delete-index.md b/docs/examples/1.3.x/server-dart/examples/databases/delete-index.md index be5b2a5c9f6..8422593fe55 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/delete-index.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/delete-index.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/delete.md b/docs/examples/1.3.x/server-dart/examples/databases/delete.md index ff19beea69a..bd4c483f014 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/delete.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/get-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/get-attribute.md index c27ddb648c5..e066f70d136 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/get-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/get-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/get-collection.md b/docs/examples/1.3.x/server-dart/examples/databases/get-collection.md index 359f0df829c..2678a1a5432 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/get-collection.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/get-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/get-document.md b/docs/examples/1.3.x/server-dart/examples/databases/get-document.md index 2141abf4bec..4c5beadccfe 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/get-document.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/get-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/get-index.md b/docs/examples/1.3.x/server-dart/examples/databases/get-index.md index 2b8a90318d5..9b881f7d788 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/get-index.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/get-index.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/get.md b/docs/examples/1.3.x/server-dart/examples/databases/get.md index f0cc118b960..7a2d9591013 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/get.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/list-attributes.md b/docs/examples/1.3.x/server-dart/examples/databases/list-attributes.md index 60ca58f3c32..1c9d635195d 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/list-attributes.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/list-attributes.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/list-collections.md b/docs/examples/1.3.x/server-dart/examples/databases/list-collections.md index a10038db119..cd120817dc8 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/list-collections.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/list-collections.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/list-documents.md b/docs/examples/1.3.x/server-dart/examples/databases/list-documents.md index 70299774fb6..41703ae26bc 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/list-documents.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/list-documents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/list-indexes.md b/docs/examples/1.3.x/server-dart/examples/databases/list-indexes.md index 6703ebf35a5..d959370fc6a 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/list-indexes.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/list-indexes.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/list.md b/docs/examples/1.3.x/server-dart/examples/databases/list.md index d9bd06ad34e..da25b576d7f 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/list.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/update-boolean-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/update-boolean-attribute.md index 94853d2819e..95b9735957b 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/update-boolean-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/update-collection.md b/docs/examples/1.3.x/server-dart/examples/databases/update-collection.md index a5f32dead1b..4501459265b 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/update-collection.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/update-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/update-datetime-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/update-datetime-attribute.md index f93aa815005..200266fda0c 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/update-datetime-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/update-document.md b/docs/examples/1.3.x/server-dart/examples/databases/update-document.md index fb08413f2fd..4b34007c497 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/update-document.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/update-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/update-email-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/update-email-attribute.md index 8fd104db321..c79242fcc94 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/update-email-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/update-email-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/update-enum-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/update-enum-attribute.md index 20c44817ef5..29bbb49e496 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/update-enum-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/update-float-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/update-float-attribute.md index 50432542c6c..b395495516b 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/update-float-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/update-float-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/update-integer-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/update-integer-attribute.md index 2d3da6ced66..659631462c9 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/update-integer-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/update-ip-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/update-ip-attribute.md index 8c4cf4f3f24..c3bfa069b71 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/update-ip-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/update-relationship-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/update-relationship-attribute.md index 239e23daab4..35943d8f1a7 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/update-relationship-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/update-string-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/update-string-attribute.md index 7f24507abae..54a3d0df6e4 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/update-string-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/update-string-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/update-url-attribute.md b/docs/examples/1.3.x/server-dart/examples/databases/update-url-attribute.md index d7dd6758bbd..9787d2b7c51 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/update-url-attribute.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/update-url-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/databases/update.md b/docs/examples/1.3.x/server-dart/examples/databases/update.md index 59070cefa92..7187605e819 100644 --- a/docs/examples/1.3.x/server-dart/examples/databases/update.md +++ b/docs/examples/1.3.x/server-dart/examples/databases/update.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/create-build.md b/docs/examples/1.3.x/server-dart/examples/functions/create-build.md index 530ba6deab7..eea5cc14c0b 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/create-build.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/create-build.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/create-deployment.md b/docs/examples/1.3.x/server-dart/examples/functions/create-deployment.md index d646680db84..17683d2c863 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/create-deployment.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/create-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/create-execution.md b/docs/examples/1.3.x/server-dart/examples/functions/create-execution.md index f5de49f7cf7..610579eef0c 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/create-execution.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/create-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/create-variable.md b/docs/examples/1.3.x/server-dart/examples/functions/create-variable.md index 50cd063ca13..2990bf98be1 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/create-variable.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/create-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/create.md b/docs/examples/1.3.x/server-dart/examples/functions/create.md index 839c6f6edd4..381f6157885 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/create.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/delete-deployment.md b/docs/examples/1.3.x/server-dart/examples/functions/delete-deployment.md index e65380c5012..339c0d60ce4 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/delete-deployment.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/delete-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/delete-variable.md b/docs/examples/1.3.x/server-dart/examples/functions/delete-variable.md index 87c7f407b56..ad86ec73cba 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/delete-variable.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/delete-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/delete.md b/docs/examples/1.3.x/server-dart/examples/functions/delete.md index 51633669120..276f7effa20 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/delete.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/get-deployment.md b/docs/examples/1.3.x/server-dart/examples/functions/get-deployment.md index 9cab571e94d..f46260a2ff5 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/get-deployment.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/get-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/get-execution.md b/docs/examples/1.3.x/server-dart/examples/functions/get-execution.md index 6cadde64262..6749539306b 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/get-execution.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/get-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/get-variable.md b/docs/examples/1.3.x/server-dart/examples/functions/get-variable.md index 924bee2bffc..7223c5add9c 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/get-variable.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/get-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/get.md b/docs/examples/1.3.x/server-dart/examples/functions/get.md index 503ab207091..1073d33b1a2 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/get.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/list-deployments.md b/docs/examples/1.3.x/server-dart/examples/functions/list-deployments.md index b12f9eba87e..d1b80ddd956 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/list-deployments.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/list-deployments.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/list-executions.md b/docs/examples/1.3.x/server-dart/examples/functions/list-executions.md index 3d66a4496ac..255f38a299d 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/list-executions.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/list-executions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/list-runtimes.md b/docs/examples/1.3.x/server-dart/examples/functions/list-runtimes.md index 091a1116f70..a91a501814f 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/list-runtimes.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/list-runtimes.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/list-variables.md b/docs/examples/1.3.x/server-dart/examples/functions/list-variables.md index f3c6655b141..ea5e4779873 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/list-variables.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/list-variables.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/list.md b/docs/examples/1.3.x/server-dart/examples/functions/list.md index 4f2b11404d7..e5fde72144c 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/list.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/update-deployment.md b/docs/examples/1.3.x/server-dart/examples/functions/update-deployment.md index d503aecb3b4..cd9a57018a0 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/update-deployment.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/update-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/update-variable.md b/docs/examples/1.3.x/server-dart/examples/functions/update-variable.md index 126d2644701..d40a831970b 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/update-variable.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/update-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/functions/update.md b/docs/examples/1.3.x/server-dart/examples/functions/update.md index 2b92f553874..bf36155e7ef 100644 --- a/docs/examples/1.3.x/server-dart/examples/functions/update.md +++ b/docs/examples/1.3.x/server-dart/examples/functions/update.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/graphql/mutation.md b/docs/examples/1.3.x/server-dart/examples/graphql/mutation.md index 780ee09f4ac..160c049dc29 100644 --- a/docs/examples/1.3.x/server-dart/examples/graphql/mutation.md +++ b/docs/examples/1.3.x/server-dart/examples/graphql/mutation.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/graphql/query.md b/docs/examples/1.3.x/server-dart/examples/graphql/query.md index 7f22f5360d8..4191d3c271d 100644 --- a/docs/examples/1.3.x/server-dart/examples/graphql/query.md +++ b/docs/examples/1.3.x/server-dart/examples/graphql/query.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/health/get-antivirus.md b/docs/examples/1.3.x/server-dart/examples/health/get-antivirus.md index 922dcfa1368..7b8d638d8e1 100644 --- a/docs/examples/1.3.x/server-dart/examples/health/get-antivirus.md +++ b/docs/examples/1.3.x/server-dart/examples/health/get-antivirus.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/health/get-cache.md b/docs/examples/1.3.x/server-dart/examples/health/get-cache.md index 4b63edeee3a..08ea1370d16 100644 --- a/docs/examples/1.3.x/server-dart/examples/health/get-cache.md +++ b/docs/examples/1.3.x/server-dart/examples/health/get-cache.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/health/get-d-b.md b/docs/examples/1.3.x/server-dart/examples/health/get-d-b.md index 65188c096e5..30cf5c928f5 100644 --- a/docs/examples/1.3.x/server-dart/examples/health/get-d-b.md +++ b/docs/examples/1.3.x/server-dart/examples/health/get-d-b.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/health/get-queue-certificates.md b/docs/examples/1.3.x/server-dart/examples/health/get-queue-certificates.md index 4063ab35141..884c6b31f16 100644 --- a/docs/examples/1.3.x/server-dart/examples/health/get-queue-certificates.md +++ b/docs/examples/1.3.x/server-dart/examples/health/get-queue-certificates.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/health/get-queue-functions.md b/docs/examples/1.3.x/server-dart/examples/health/get-queue-functions.md index 5ebaad64848..048fce8d326 100644 --- a/docs/examples/1.3.x/server-dart/examples/health/get-queue-functions.md +++ b/docs/examples/1.3.x/server-dart/examples/health/get-queue-functions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/health/get-queue-logs.md b/docs/examples/1.3.x/server-dart/examples/health/get-queue-logs.md index 11a5285439a..42195528570 100644 --- a/docs/examples/1.3.x/server-dart/examples/health/get-queue-logs.md +++ b/docs/examples/1.3.x/server-dart/examples/health/get-queue-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/health/get-queue-webhooks.md b/docs/examples/1.3.x/server-dart/examples/health/get-queue-webhooks.md index a43f5f8423c..5b012125e1f 100644 --- a/docs/examples/1.3.x/server-dart/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.3.x/server-dart/examples/health/get-queue-webhooks.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/health/get-storage-local.md b/docs/examples/1.3.x/server-dart/examples/health/get-storage-local.md index 4a586690fee..e85aac8e012 100644 --- a/docs/examples/1.3.x/server-dart/examples/health/get-storage-local.md +++ b/docs/examples/1.3.x/server-dart/examples/health/get-storage-local.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/health/get-time.md b/docs/examples/1.3.x/server-dart/examples/health/get-time.md index d8166dd3d16..716216e6db3 100644 --- a/docs/examples/1.3.x/server-dart/examples/health/get-time.md +++ b/docs/examples/1.3.x/server-dart/examples/health/get-time.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/health/get.md b/docs/examples/1.3.x/server-dart/examples/health/get.md index 1be37e5a934..2ea2ea669ea 100644 --- a/docs/examples/1.3.x/server-dart/examples/health/get.md +++ b/docs/examples/1.3.x/server-dart/examples/health/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/locale/get.md b/docs/examples/1.3.x/server-dart/examples/locale/get.md index 9ecb18c52d6..a3ebf5cefde 100644 --- a/docs/examples/1.3.x/server-dart/examples/locale/get.md +++ b/docs/examples/1.3.x/server-dart/examples/locale/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/locale/list-continents.md b/docs/examples/1.3.x/server-dart/examples/locale/list-continents.md index e6849303b1b..a74df54886b 100644 --- a/docs/examples/1.3.x/server-dart/examples/locale/list-continents.md +++ b/docs/examples/1.3.x/server-dart/examples/locale/list-continents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/locale/list-countries-e-u.md b/docs/examples/1.3.x/server-dart/examples/locale/list-countries-e-u.md index 2d1ddcf8f09..2a81d9afef2 100644 --- a/docs/examples/1.3.x/server-dart/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/server-dart/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/locale/list-countries-phones.md b/docs/examples/1.3.x/server-dart/examples/locale/list-countries-phones.md index 23057013393..2d1400a9604 100644 --- a/docs/examples/1.3.x/server-dart/examples/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/server-dart/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/locale/list-countries.md b/docs/examples/1.3.x/server-dart/examples/locale/list-countries.md index ef1158339ff..b4d00e52e7b 100644 --- a/docs/examples/1.3.x/server-dart/examples/locale/list-countries.md +++ b/docs/examples/1.3.x/server-dart/examples/locale/list-countries.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/locale/list-currencies.md b/docs/examples/1.3.x/server-dart/examples/locale/list-currencies.md index 0810f3dafb2..2c46eee2b2e 100644 --- a/docs/examples/1.3.x/server-dart/examples/locale/list-currencies.md +++ b/docs/examples/1.3.x/server-dart/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/locale/list-languages.md b/docs/examples/1.3.x/server-dart/examples/locale/list-languages.md index f3d642cc480..6d1f00219e2 100644 --- a/docs/examples/1.3.x/server-dart/examples/locale/list-languages.md +++ b/docs/examples/1.3.x/server-dart/examples/locale/list-languages.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/storage/create-bucket.md b/docs/examples/1.3.x/server-dart/examples/storage/create-bucket.md index 745a6b508d4..647d846e06a 100644 --- a/docs/examples/1.3.x/server-dart/examples/storage/create-bucket.md +++ b/docs/examples/1.3.x/server-dart/examples/storage/create-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/storage/create-file.md b/docs/examples/1.3.x/server-dart/examples/storage/create-file.md index ab4c661a541..760c95dcfb1 100644 --- a/docs/examples/1.3.x/server-dart/examples/storage/create-file.md +++ b/docs/examples/1.3.x/server-dart/examples/storage/create-file.md @@ -6,7 +6,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/storage/delete-bucket.md b/docs/examples/1.3.x/server-dart/examples/storage/delete-bucket.md index de516561bdb..a7c7065ba86 100644 --- a/docs/examples/1.3.x/server-dart/examples/storage/delete-bucket.md +++ b/docs/examples/1.3.x/server-dart/examples/storage/delete-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/storage/delete-file.md b/docs/examples/1.3.x/server-dart/examples/storage/delete-file.md index 8e4460bb009..ddb297c6b7a 100644 --- a/docs/examples/1.3.x/server-dart/examples/storage/delete-file.md +++ b/docs/examples/1.3.x/server-dart/examples/storage/delete-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/storage/get-bucket.md b/docs/examples/1.3.x/server-dart/examples/storage/get-bucket.md index 9e39076e355..26fec00cdf4 100644 --- a/docs/examples/1.3.x/server-dart/examples/storage/get-bucket.md +++ b/docs/examples/1.3.x/server-dart/examples/storage/get-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/storage/get-file-download.md b/docs/examples/1.3.x/server-dart/examples/storage/get-file-download.md index 6534fe33fff..632612a285e 100644 --- a/docs/examples/1.3.x/server-dart/examples/storage/get-file-download.md +++ b/docs/examples/1.3.x/server-dart/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/storage/get-file-preview.md b/docs/examples/1.3.x/server-dart/examples/storage/get-file-preview.md index ca16d635b26..70f55e3e267 100644 --- a/docs/examples/1.3.x/server-dart/examples/storage/get-file-preview.md +++ b/docs/examples/1.3.x/server-dart/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/storage/get-file-view.md b/docs/examples/1.3.x/server-dart/examples/storage/get-file-view.md index 5c3d69dcbc6..59176877b02 100644 --- a/docs/examples/1.3.x/server-dart/examples/storage/get-file-view.md +++ b/docs/examples/1.3.x/server-dart/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/storage/get-file.md b/docs/examples/1.3.x/server-dart/examples/storage/get-file.md index bc45c3f1e83..024b7fc63d3 100644 --- a/docs/examples/1.3.x/server-dart/examples/storage/get-file.md +++ b/docs/examples/1.3.x/server-dart/examples/storage/get-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/storage/list-buckets.md b/docs/examples/1.3.x/server-dart/examples/storage/list-buckets.md index 6a35febb390..fb46523303b 100644 --- a/docs/examples/1.3.x/server-dart/examples/storage/list-buckets.md +++ b/docs/examples/1.3.x/server-dart/examples/storage/list-buckets.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/storage/list-files.md b/docs/examples/1.3.x/server-dart/examples/storage/list-files.md index 40b8d3bce5e..bfafeb0b0a0 100644 --- a/docs/examples/1.3.x/server-dart/examples/storage/list-files.md +++ b/docs/examples/1.3.x/server-dart/examples/storage/list-files.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/storage/update-bucket.md b/docs/examples/1.3.x/server-dart/examples/storage/update-bucket.md index 064d2f2e37a..3bdc11240ff 100644 --- a/docs/examples/1.3.x/server-dart/examples/storage/update-bucket.md +++ b/docs/examples/1.3.x/server-dart/examples/storage/update-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/storage/update-file.md b/docs/examples/1.3.x/server-dart/examples/storage/update-file.md index 2fa999a5583..4e0178e27da 100644 --- a/docs/examples/1.3.x/server-dart/examples/storage/update-file.md +++ b/docs/examples/1.3.x/server-dart/examples/storage/update-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/teams/create-membership.md b/docs/examples/1.3.x/server-dart/examples/teams/create-membership.md index 6a98fea0bd8..f0f1961450b 100644 --- a/docs/examples/1.3.x/server-dart/examples/teams/create-membership.md +++ b/docs/examples/1.3.x/server-dart/examples/teams/create-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/teams/create.md b/docs/examples/1.3.x/server-dart/examples/teams/create.md index 74895b23a0f..81c3a718d4b 100644 --- a/docs/examples/1.3.x/server-dart/examples/teams/create.md +++ b/docs/examples/1.3.x/server-dart/examples/teams/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/teams/delete-membership.md b/docs/examples/1.3.x/server-dart/examples/teams/delete-membership.md index 8c135994d67..07d596a1b3b 100644 --- a/docs/examples/1.3.x/server-dart/examples/teams/delete-membership.md +++ b/docs/examples/1.3.x/server-dart/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/teams/delete.md b/docs/examples/1.3.x/server-dart/examples/teams/delete.md index a5fee4d0841..2505cdfacda 100644 --- a/docs/examples/1.3.x/server-dart/examples/teams/delete.md +++ b/docs/examples/1.3.x/server-dart/examples/teams/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/teams/get-membership.md b/docs/examples/1.3.x/server-dart/examples/teams/get-membership.md index 4193b245f41..cf9d4b80a23 100644 --- a/docs/examples/1.3.x/server-dart/examples/teams/get-membership.md +++ b/docs/examples/1.3.x/server-dart/examples/teams/get-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/teams/get-prefs.md b/docs/examples/1.3.x/server-dart/examples/teams/get-prefs.md index 27f2ef15ad6..27608b6699d 100644 --- a/docs/examples/1.3.x/server-dart/examples/teams/get-prefs.md +++ b/docs/examples/1.3.x/server-dart/examples/teams/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/teams/get.md b/docs/examples/1.3.x/server-dart/examples/teams/get.md index daa67c4eb82..8dd731b1bec 100644 --- a/docs/examples/1.3.x/server-dart/examples/teams/get.md +++ b/docs/examples/1.3.x/server-dart/examples/teams/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/teams/list-memberships.md b/docs/examples/1.3.x/server-dart/examples/teams/list-memberships.md index 74c66c03190..71cdf466ccf 100644 --- a/docs/examples/1.3.x/server-dart/examples/teams/list-memberships.md +++ b/docs/examples/1.3.x/server-dart/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/teams/list.md b/docs/examples/1.3.x/server-dart/examples/teams/list.md index 11033f33da8..7d5e4ebef77 100644 --- a/docs/examples/1.3.x/server-dart/examples/teams/list.md +++ b/docs/examples/1.3.x/server-dart/examples/teams/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/teams/update-membership-roles.md b/docs/examples/1.3.x/server-dart/examples/teams/update-membership-roles.md index dcbef5c9484..8ede36ac641 100644 --- a/docs/examples/1.3.x/server-dart/examples/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/server-dart/examples/teams/update-membership-roles.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/teams/update-membership-status.md b/docs/examples/1.3.x/server-dart/examples/teams/update-membership-status.md index ca704e0fdba..50f9693bf94 100644 --- a/docs/examples/1.3.x/server-dart/examples/teams/update-membership-status.md +++ b/docs/examples/1.3.x/server-dart/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/teams/update-name.md b/docs/examples/1.3.x/server-dart/examples/teams/update-name.md index 088a5cfbe68..324b691d3de 100644 --- a/docs/examples/1.3.x/server-dart/examples/teams/update-name.md +++ b/docs/examples/1.3.x/server-dart/examples/teams/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/teams/update-prefs.md b/docs/examples/1.3.x/server-dart/examples/teams/update-prefs.md index d99e8217595..5c9d5180125 100644 --- a/docs/examples/1.3.x/server-dart/examples/teams/update-prefs.md +++ b/docs/examples/1.3.x/server-dart/examples/teams/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/create-argon2user.md b/docs/examples/1.3.x/server-dart/examples/users/create-argon2user.md index a40b3afd55a..d01e8c6931e 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/create-argon2user.md +++ b/docs/examples/1.3.x/server-dart/examples/users/create-argon2user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/create-bcrypt-user.md b/docs/examples/1.3.x/server-dart/examples/users/create-bcrypt-user.md index 8b55d656b08..4685780b257 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.3.x/server-dart/examples/users/create-bcrypt-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/create-m-d5user.md b/docs/examples/1.3.x/server-dart/examples/users/create-m-d5user.md index 3ab8901f3ce..20ac1948e75 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/create-m-d5user.md +++ b/docs/examples/1.3.x/server-dart/examples/users/create-m-d5user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/create-p-h-pass-user.md b/docs/examples/1.3.x/server-dart/examples/users/create-p-h-pass-user.md index bedb44f4c27..0294339d647 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.3.x/server-dart/examples/users/create-p-h-pass-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/create-s-h-a-user.md b/docs/examples/1.3.x/server-dart/examples/users/create-s-h-a-user.md index 361f309a37a..21c4461cdcb 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.3.x/server-dart/examples/users/create-s-h-a-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/create-scrypt-modified-user.md b/docs/examples/1.3.x/server-dart/examples/users/create-scrypt-modified-user.md index fa5b80519e5..9d95641d761 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.3.x/server-dart/examples/users/create-scrypt-modified-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/create-scrypt-user.md b/docs/examples/1.3.x/server-dart/examples/users/create-scrypt-user.md index 91e1f7dc6d2..0a586407dc2 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/create-scrypt-user.md +++ b/docs/examples/1.3.x/server-dart/examples/users/create-scrypt-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/create.md b/docs/examples/1.3.x/server-dart/examples/users/create.md index 517cd22fcb0..a841df0e272 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/create.md +++ b/docs/examples/1.3.x/server-dart/examples/users/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/delete-session.md b/docs/examples/1.3.x/server-dart/examples/users/delete-session.md index 3f7611873ec..f1432677ed1 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/delete-session.md +++ b/docs/examples/1.3.x/server-dart/examples/users/delete-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/delete-sessions.md b/docs/examples/1.3.x/server-dart/examples/users/delete-sessions.md index 69cbc5e8d51..82a71188ce6 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/delete-sessions.md +++ b/docs/examples/1.3.x/server-dart/examples/users/delete-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/delete.md b/docs/examples/1.3.x/server-dart/examples/users/delete.md index 1e1311d5d94..351686fe588 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/delete.md +++ b/docs/examples/1.3.x/server-dart/examples/users/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/get-prefs.md b/docs/examples/1.3.x/server-dart/examples/users/get-prefs.md index eb33ae656c5..cff91fa59b5 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/get-prefs.md +++ b/docs/examples/1.3.x/server-dart/examples/users/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/get.md b/docs/examples/1.3.x/server-dart/examples/users/get.md index c56852934cf..e2a24afd9a0 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/get.md +++ b/docs/examples/1.3.x/server-dart/examples/users/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/list-logs.md b/docs/examples/1.3.x/server-dart/examples/users/list-logs.md index 0d2143ad487..44a5e13ea45 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/list-logs.md +++ b/docs/examples/1.3.x/server-dart/examples/users/list-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/list-memberships.md b/docs/examples/1.3.x/server-dart/examples/users/list-memberships.md index 36a83edec0e..398e7ceee81 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/list-memberships.md +++ b/docs/examples/1.3.x/server-dart/examples/users/list-memberships.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/list-sessions.md b/docs/examples/1.3.x/server-dart/examples/users/list-sessions.md index 5f77fdbfa7f..eeac7b8d4bc 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/list-sessions.md +++ b/docs/examples/1.3.x/server-dart/examples/users/list-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/list.md b/docs/examples/1.3.x/server-dart/examples/users/list.md index 34498c00ac1..ef91b2db4a7 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/list.md +++ b/docs/examples/1.3.x/server-dart/examples/users/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/update-email-verification.md b/docs/examples/1.3.x/server-dart/examples/users/update-email-verification.md index 8853f86529d..7de13257446 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/update-email-verification.md +++ b/docs/examples/1.3.x/server-dart/examples/users/update-email-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/update-email.md b/docs/examples/1.3.x/server-dart/examples/users/update-email.md index 8813e1101f5..589bf93d315 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/update-email.md +++ b/docs/examples/1.3.x/server-dart/examples/users/update-email.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/update-name.md b/docs/examples/1.3.x/server-dart/examples/users/update-name.md index 56797d585cd..a3a0c84bbbd 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/update-name.md +++ b/docs/examples/1.3.x/server-dart/examples/users/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/update-password.md b/docs/examples/1.3.x/server-dart/examples/users/update-password.md index 3dfedb4d4b4..bf99d92746b 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/update-password.md +++ b/docs/examples/1.3.x/server-dart/examples/users/update-password.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/update-phone-verification.md b/docs/examples/1.3.x/server-dart/examples/users/update-phone-verification.md index 37c3ced6084..0ef13f5b037 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/update-phone-verification.md +++ b/docs/examples/1.3.x/server-dart/examples/users/update-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/update-phone.md b/docs/examples/1.3.x/server-dart/examples/users/update-phone.md index 4d5e3110786..f512af071e4 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/update-phone.md +++ b/docs/examples/1.3.x/server-dart/examples/users/update-phone.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/update-prefs.md b/docs/examples/1.3.x/server-dart/examples/users/update-prefs.md index c6c1bbedffb..a2f0aea8fec 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/update-prefs.md +++ b/docs/examples/1.3.x/server-dart/examples/users/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dart/examples/users/update-status.md b/docs/examples/1.3.x/server-dart/examples/users/update-status.md index 6f80745a7af..32fa9019eb1 100644 --- a/docs/examples/1.3.x/server-dart/examples/users/update-status.md +++ b/docs/examples/1.3.x/server-dart/examples/users/update-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/create-phone-verification.md b/docs/examples/1.3.x/server-deno/examples/account/create-phone-verification.md index fe765887cca..aa9969c9a04 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/create-phone-verification.md +++ b/docs/examples/1.3.x/server-deno/examples/account/create-phone-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/create-recovery.md b/docs/examples/1.3.x/server-deno/examples/account/create-recovery.md index e5adb2a78bb..ca4ef258105 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/create-recovery.md +++ b/docs/examples/1.3.x/server-deno/examples/account/create-recovery.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/create-verification.md b/docs/examples/1.3.x/server-deno/examples/account/create-verification.md index 5861278e70b..89810ec730e 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/create-verification.md +++ b/docs/examples/1.3.x/server-deno/examples/account/create-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/delete-session.md b/docs/examples/1.3.x/server-deno/examples/account/delete-session.md index 22417acb98c..969445ca5ee 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/delete-session.md +++ b/docs/examples/1.3.x/server-deno/examples/account/delete-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/delete-sessions.md b/docs/examples/1.3.x/server-deno/examples/account/delete-sessions.md index 2a82bd95668..ad5dcb1200f 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/delete-sessions.md +++ b/docs/examples/1.3.x/server-deno/examples/account/delete-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/get-prefs.md b/docs/examples/1.3.x/server-deno/examples/account/get-prefs.md index c9645d0fe1d..4b413ec3689 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/get-prefs.md +++ b/docs/examples/1.3.x/server-deno/examples/account/get-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/get-session.md b/docs/examples/1.3.x/server-deno/examples/account/get-session.md index f2c1c944699..b39704a72f3 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/get-session.md +++ b/docs/examples/1.3.x/server-deno/examples/account/get-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/get.md b/docs/examples/1.3.x/server-deno/examples/account/get.md index 03b22307ac0..d3a7a9b8e3a 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/get.md +++ b/docs/examples/1.3.x/server-deno/examples/account/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/list-logs.md b/docs/examples/1.3.x/server-deno/examples/account/list-logs.md index fb793041013..4609c8e3b60 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/list-logs.md +++ b/docs/examples/1.3.x/server-deno/examples/account/list-logs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/list-sessions.md b/docs/examples/1.3.x/server-deno/examples/account/list-sessions.md index 32a7cfa09a4..498590452fd 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/list-sessions.md +++ b/docs/examples/1.3.x/server-deno/examples/account/list-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/update-email.md b/docs/examples/1.3.x/server-deno/examples/account/update-email.md index 26906d7eed3..c92ca4dc234 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/update-email.md +++ b/docs/examples/1.3.x/server-deno/examples/account/update-email.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/update-name.md b/docs/examples/1.3.x/server-deno/examples/account/update-name.md index b1a351216fd..2e52634e212 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/update-name.md +++ b/docs/examples/1.3.x/server-deno/examples/account/update-name.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/update-password.md b/docs/examples/1.3.x/server-deno/examples/account/update-password.md index a271dfe7e6f..0a2e2b5b0f7 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/update-password.md +++ b/docs/examples/1.3.x/server-deno/examples/account/update-password.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/update-phone-verification.md b/docs/examples/1.3.x/server-deno/examples/account/update-phone-verification.md index 064252a328a..a7b6e4670d4 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/update-phone-verification.md +++ b/docs/examples/1.3.x/server-deno/examples/account/update-phone-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/update-phone.md b/docs/examples/1.3.x/server-deno/examples/account/update-phone.md index e023424f9e6..0d1bfcc93a4 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/update-phone.md +++ b/docs/examples/1.3.x/server-deno/examples/account/update-phone.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/update-prefs.md b/docs/examples/1.3.x/server-deno/examples/account/update-prefs.md index 4a6ca88ae8a..472f53dd47e 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/update-prefs.md +++ b/docs/examples/1.3.x/server-deno/examples/account/update-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/update-recovery.md b/docs/examples/1.3.x/server-deno/examples/account/update-recovery.md index 06916bb2783..ee1546f1316 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/update-recovery.md +++ b/docs/examples/1.3.x/server-deno/examples/account/update-recovery.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/update-session.md b/docs/examples/1.3.x/server-deno/examples/account/update-session.md index 23a7ad2cf6c..310a7137450 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/update-session.md +++ b/docs/examples/1.3.x/server-deno/examples/account/update-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/update-status.md b/docs/examples/1.3.x/server-deno/examples/account/update-status.md index 6b9b18981bd..40c921be3ed 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/update-status.md +++ b/docs/examples/1.3.x/server-deno/examples/account/update-status.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/account/update-verification.md b/docs/examples/1.3.x/server-deno/examples/account/update-verification.md index c11f2b71c17..db4febb20f7 100644 --- a/docs/examples/1.3.x/server-deno/examples/account/update-verification.md +++ b/docs/examples/1.3.x/server-deno/examples/account/update-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/avatars/get-browser.md b/docs/examples/1.3.x/server-deno/examples/avatars/get-browser.md index 44c946e4d7e..317dc753313 100644 --- a/docs/examples/1.3.x/server-deno/examples/avatars/get-browser.md +++ b/docs/examples/1.3.x/server-deno/examples/avatars/get-browser.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/avatars/get-credit-card.md b/docs/examples/1.3.x/server-deno/examples/avatars/get-credit-card.md index 0f449827382..584c580559a 100644 --- a/docs/examples/1.3.x/server-deno/examples/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/server-deno/examples/avatars/get-credit-card.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/avatars/get-favicon.md b/docs/examples/1.3.x/server-deno/examples/avatars/get-favicon.md index f0a539b5fc5..d387cc2b7e7 100644 --- a/docs/examples/1.3.x/server-deno/examples/avatars/get-favicon.md +++ b/docs/examples/1.3.x/server-deno/examples/avatars/get-favicon.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/avatars/get-flag.md b/docs/examples/1.3.x/server-deno/examples/avatars/get-flag.md index c7593aee1e8..03fa737ef2a 100644 --- a/docs/examples/1.3.x/server-deno/examples/avatars/get-flag.md +++ b/docs/examples/1.3.x/server-deno/examples/avatars/get-flag.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/avatars/get-image.md b/docs/examples/1.3.x/server-deno/examples/avatars/get-image.md index 6e86307a5fc..7dd33398b63 100644 --- a/docs/examples/1.3.x/server-deno/examples/avatars/get-image.md +++ b/docs/examples/1.3.x/server-deno/examples/avatars/get-image.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/avatars/get-initials.md b/docs/examples/1.3.x/server-deno/examples/avatars/get-initials.md index 2adba9e971e..4054ecee995 100644 --- a/docs/examples/1.3.x/server-deno/examples/avatars/get-initials.md +++ b/docs/examples/1.3.x/server-deno/examples/avatars/get-initials.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/avatars/get-q-r.md b/docs/examples/1.3.x/server-deno/examples/avatars/get-q-r.md index 2c5faf01122..f239919e05e 100644 --- a/docs/examples/1.3.x/server-deno/examples/avatars/get-q-r.md +++ b/docs/examples/1.3.x/server-deno/examples/avatars/get-q-r.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/create-boolean-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/create-boolean-attribute.md index 81b66771ff5..3a06b123a0e 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/create-boolean-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/create-collection.md b/docs/examples/1.3.x/server-deno/examples/databases/create-collection.md index 5d59286e3ca..c65a13e2373 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/create-collection.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/create-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/create-datetime-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/create-datetime-attribute.md index c2c4eb81852..ee4fdb92532 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/create-datetime-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/create-document.md b/docs/examples/1.3.x/server-deno/examples/databases/create-document.md index d38818c164f..b746f3d3f31 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/create-document.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/create-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/create-email-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/create-email-attribute.md index 4952625bfcc..918ed10cbcb 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/create-email-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/create-email-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/create-enum-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/create-enum-attribute.md index d00274d616a..79cca97c506 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/create-enum-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/create-float-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/create-float-attribute.md index c2b056fd1ba..a61df747b35 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/create-float-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/create-float-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/create-index.md b/docs/examples/1.3.x/server-deno/examples/databases/create-index.md index bfde8e3fb56..0d238068aa5 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/create-index.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/create-index.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/create-integer-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/create-integer-attribute.md index 2a36f413e5e..fec9ed6835b 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/create-integer-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/create-ip-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/create-ip-attribute.md index 19180d6ac0e..858450d499b 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/create-ip-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/create-relationship-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/create-relationship-attribute.md index e613a6f596f..787a24c6652 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/create-relationship-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/create-string-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/create-string-attribute.md index f3b0a369234..82383ccc76c 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/create-string-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/create-string-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/create-url-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/create-url-attribute.md index 488751adff1..f556724dcaa 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/create-url-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/create-url-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/create.md b/docs/examples/1.3.x/server-deno/examples/databases/create.md index ea1ebb6460e..d8747a01aed 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/create.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/delete-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/delete-attribute.md index e6fe0823f26..fd3fca65ef7 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/delete-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/delete-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/delete-collection.md b/docs/examples/1.3.x/server-deno/examples/databases/delete-collection.md index 970602ac286..5f0599b7ec6 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/delete-collection.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/delete-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/delete-document.md b/docs/examples/1.3.x/server-deno/examples/databases/delete-document.md index 1a23e03e273..7c1ed710f40 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/delete-document.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/delete-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/delete-index.md b/docs/examples/1.3.x/server-deno/examples/databases/delete-index.md index 8a6050522a8..c25eb4a7fce 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/delete-index.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/delete-index.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/delete.md b/docs/examples/1.3.x/server-deno/examples/databases/delete.md index b735eccdbed..817dcd0dd00 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/delete.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/get-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/get-attribute.md index 1ec9957b5eb..cf5aa9ca1e2 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/get-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/get-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/get-collection.md b/docs/examples/1.3.x/server-deno/examples/databases/get-collection.md index bf471e3b36e..8973f9e8aa7 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/get-collection.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/get-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/get-document.md b/docs/examples/1.3.x/server-deno/examples/databases/get-document.md index a7248d0641d..e02b9c8f4b0 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/get-document.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/get-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/get-index.md b/docs/examples/1.3.x/server-deno/examples/databases/get-index.md index c1fe00cb65e..443b06883c5 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/get-index.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/get-index.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/get.md b/docs/examples/1.3.x/server-deno/examples/databases/get.md index 46df3aad225..a8ea62a5520 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/get.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/list-attributes.md b/docs/examples/1.3.x/server-deno/examples/databases/list-attributes.md index f2b21141b3d..7ee93a5ac09 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/list-attributes.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/list-attributes.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/list-collections.md b/docs/examples/1.3.x/server-deno/examples/databases/list-collections.md index 83e4ee951fd..7cdf106ab1c 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/list-collections.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/list-collections.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/list-documents.md b/docs/examples/1.3.x/server-deno/examples/databases/list-documents.md index c7db17efb5f..9c3cd7097e2 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/list-documents.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/list-documents.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/list-indexes.md b/docs/examples/1.3.x/server-deno/examples/databases/list-indexes.md index 69c412b99db..8fbba4a323b 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/list-indexes.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/list-indexes.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/list.md b/docs/examples/1.3.x/server-deno/examples/databases/list.md index 8bb75110ec8..84ec9927ac2 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/list.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/update-boolean-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/update-boolean-attribute.md index c8b55b77e5a..bc5c976286b 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/update-boolean-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/update-collection.md b/docs/examples/1.3.x/server-deno/examples/databases/update-collection.md index f81f46e7f48..234b4c68cf7 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/update-collection.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/update-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/update-datetime-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/update-datetime-attribute.md index 25549b4ed25..a7fce2f168a 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/update-datetime-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/update-document.md b/docs/examples/1.3.x/server-deno/examples/databases/update-document.md index 9964fdb6eb5..78c984aae41 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/update-document.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/update-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/update-email-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/update-email-attribute.md index 78d2403cd8b..679b9971bb4 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/update-email-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/update-email-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/update-enum-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/update-enum-attribute.md index f47b96fc538..eb04ead02e0 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/update-enum-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/update-float-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/update-float-attribute.md index 62df38cddce..882beff1ca5 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/update-float-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/update-float-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/update-integer-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/update-integer-attribute.md index 001671eda13..85eefe4eeed 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/update-integer-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/update-ip-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/update-ip-attribute.md index 8ee0d5c80a7..bc98ddfec23 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/update-ip-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/update-relationship-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/update-relationship-attribute.md index c12a64a9dcc..fa8f36e9959 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/update-relationship-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/update-string-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/update-string-attribute.md index ab77495e23c..b166e1f6213 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/update-string-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/update-string-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/update-url-attribute.md b/docs/examples/1.3.x/server-deno/examples/databases/update-url-attribute.md index c9ab818c80c..1c2411f4d10 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/update-url-attribute.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/update-url-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/databases/update.md b/docs/examples/1.3.x/server-deno/examples/databases/update.md index 64886a697bc..c60c2499730 100644 --- a/docs/examples/1.3.x/server-deno/examples/databases/update.md +++ b/docs/examples/1.3.x/server-deno/examples/databases/update.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/create-build.md b/docs/examples/1.3.x/server-deno/examples/functions/create-build.md index 28d10105e39..ffa1906b0a8 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/create-build.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/create-build.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/create-deployment.md b/docs/examples/1.3.x/server-deno/examples/functions/create-deployment.md index 005644b62e4..e663cf473a4 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/create-deployment.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/create-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/create-execution.md b/docs/examples/1.3.x/server-deno/examples/functions/create-execution.md index 6ec920ef9db..a24cc942b51 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/create-execution.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/create-execution.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/create-variable.md b/docs/examples/1.3.x/server-deno/examples/functions/create-variable.md index 375ef8b7a6c..6de4953eec8 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/create-variable.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/create-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/create.md b/docs/examples/1.3.x/server-deno/examples/functions/create.md index 0c5ff2ce5fa..f25476d100a 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/create.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/delete-deployment.md b/docs/examples/1.3.x/server-deno/examples/functions/delete-deployment.md index 7b6468bb064..b1f280fb13e 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/delete-deployment.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/delete-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/delete-variable.md b/docs/examples/1.3.x/server-deno/examples/functions/delete-variable.md index 16bf385a4c9..012f353540b 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/delete-variable.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/delete-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/delete.md b/docs/examples/1.3.x/server-deno/examples/functions/delete.md index 48ec374bf29..ac801878c81 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/delete.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/get-deployment.md b/docs/examples/1.3.x/server-deno/examples/functions/get-deployment.md index 854f3897d94..eef2d306ecb 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/get-deployment.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/get-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/get-execution.md b/docs/examples/1.3.x/server-deno/examples/functions/get-execution.md index 42bcdfbfdfe..cfb4ef09dcb 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/get-execution.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/get-execution.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/get-variable.md b/docs/examples/1.3.x/server-deno/examples/functions/get-variable.md index 2b4190e0a66..9881efcb033 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/get-variable.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/get-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/get.md b/docs/examples/1.3.x/server-deno/examples/functions/get.md index 388958232aa..f511f594524 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/get.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/list-deployments.md b/docs/examples/1.3.x/server-deno/examples/functions/list-deployments.md index e84bb9cc093..cdd0ae775a5 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/list-deployments.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/list-deployments.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/list-executions.md b/docs/examples/1.3.x/server-deno/examples/functions/list-executions.md index aadd19f1cee..fcc47f2dcda 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/list-executions.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/list-executions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/list-runtimes.md b/docs/examples/1.3.x/server-deno/examples/functions/list-runtimes.md index 6fc7570b3a6..b45ec8f2232 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/list-runtimes.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/list-runtimes.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/list-variables.md b/docs/examples/1.3.x/server-deno/examples/functions/list-variables.md index 44a9828a67a..f9f241fee3b 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/list-variables.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/list-variables.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/list.md b/docs/examples/1.3.x/server-deno/examples/functions/list.md index 7c82760a397..cadecd7fc18 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/list.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/update-deployment.md b/docs/examples/1.3.x/server-deno/examples/functions/update-deployment.md index 94be560a2d4..4d1bda63635 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/update-deployment.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/update-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/update-variable.md b/docs/examples/1.3.x/server-deno/examples/functions/update-variable.md index 1a318f1ebae..bcdde06c9a9 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/update-variable.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/update-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/functions/update.md b/docs/examples/1.3.x/server-deno/examples/functions/update.md index 8ed2663ba72..9b60b79afe7 100644 --- a/docs/examples/1.3.x/server-deno/examples/functions/update.md +++ b/docs/examples/1.3.x/server-deno/examples/functions/update.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/graphql/mutation.md b/docs/examples/1.3.x/server-deno/examples/graphql/mutation.md index 87beeabce65..f95cdc771d4 100644 --- a/docs/examples/1.3.x/server-deno/examples/graphql/mutation.md +++ b/docs/examples/1.3.x/server-deno/examples/graphql/mutation.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/graphql/query.md b/docs/examples/1.3.x/server-deno/examples/graphql/query.md index d2eec0a8dbf..27930bde4d6 100644 --- a/docs/examples/1.3.x/server-deno/examples/graphql/query.md +++ b/docs/examples/1.3.x/server-deno/examples/graphql/query.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/health/get-antivirus.md b/docs/examples/1.3.x/server-deno/examples/health/get-antivirus.md index 8d51808536f..7bee35a1276 100644 --- a/docs/examples/1.3.x/server-deno/examples/health/get-antivirus.md +++ b/docs/examples/1.3.x/server-deno/examples/health/get-antivirus.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/health/get-cache.md b/docs/examples/1.3.x/server-deno/examples/health/get-cache.md index cafc3018c0c..12dfbb1b2d1 100644 --- a/docs/examples/1.3.x/server-deno/examples/health/get-cache.md +++ b/docs/examples/1.3.x/server-deno/examples/health/get-cache.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/health/get-d-b.md b/docs/examples/1.3.x/server-deno/examples/health/get-d-b.md index a000535051f..73ac2931fb8 100644 --- a/docs/examples/1.3.x/server-deno/examples/health/get-d-b.md +++ b/docs/examples/1.3.x/server-deno/examples/health/get-d-b.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/health/get-queue-certificates.md b/docs/examples/1.3.x/server-deno/examples/health/get-queue-certificates.md index 49dab6b2e6f..ea90355ec9f 100644 --- a/docs/examples/1.3.x/server-deno/examples/health/get-queue-certificates.md +++ b/docs/examples/1.3.x/server-deno/examples/health/get-queue-certificates.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/health/get-queue-functions.md b/docs/examples/1.3.x/server-deno/examples/health/get-queue-functions.md index 74f458b9fed..e95a6020595 100644 --- a/docs/examples/1.3.x/server-deno/examples/health/get-queue-functions.md +++ b/docs/examples/1.3.x/server-deno/examples/health/get-queue-functions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/health/get-queue-logs.md b/docs/examples/1.3.x/server-deno/examples/health/get-queue-logs.md index 98948b9de6f..457c2689eca 100644 --- a/docs/examples/1.3.x/server-deno/examples/health/get-queue-logs.md +++ b/docs/examples/1.3.x/server-deno/examples/health/get-queue-logs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/health/get-queue-webhooks.md b/docs/examples/1.3.x/server-deno/examples/health/get-queue-webhooks.md index 7b45c189ccd..87af736da84 100644 --- a/docs/examples/1.3.x/server-deno/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.3.x/server-deno/examples/health/get-queue-webhooks.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/health/get-storage-local.md b/docs/examples/1.3.x/server-deno/examples/health/get-storage-local.md index 4c45d89acae..31f708e88a1 100644 --- a/docs/examples/1.3.x/server-deno/examples/health/get-storage-local.md +++ b/docs/examples/1.3.x/server-deno/examples/health/get-storage-local.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/health/get-time.md b/docs/examples/1.3.x/server-deno/examples/health/get-time.md index 6a66a10a053..69c73045a95 100644 --- a/docs/examples/1.3.x/server-deno/examples/health/get-time.md +++ b/docs/examples/1.3.x/server-deno/examples/health/get-time.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/health/get.md b/docs/examples/1.3.x/server-deno/examples/health/get.md index 0b9af9dd15b..6afe71a3152 100644 --- a/docs/examples/1.3.x/server-deno/examples/health/get.md +++ b/docs/examples/1.3.x/server-deno/examples/health/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/locale/get.md b/docs/examples/1.3.x/server-deno/examples/locale/get.md index 22b9a626550..f9f015cfb94 100644 --- a/docs/examples/1.3.x/server-deno/examples/locale/get.md +++ b/docs/examples/1.3.x/server-deno/examples/locale/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/locale/list-continents.md b/docs/examples/1.3.x/server-deno/examples/locale/list-continents.md index bd69f43a614..dd42b1957f1 100644 --- a/docs/examples/1.3.x/server-deno/examples/locale/list-continents.md +++ b/docs/examples/1.3.x/server-deno/examples/locale/list-continents.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/locale/list-countries-e-u.md b/docs/examples/1.3.x/server-deno/examples/locale/list-countries-e-u.md index 3d3b7b492ac..597edd6f920 100644 --- a/docs/examples/1.3.x/server-deno/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/server-deno/examples/locale/list-countries-e-u.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/locale/list-countries-phones.md b/docs/examples/1.3.x/server-deno/examples/locale/list-countries-phones.md index bc9e1754ad2..f3e27aa1523 100644 --- a/docs/examples/1.3.x/server-deno/examples/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/server-deno/examples/locale/list-countries-phones.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/locale/list-countries.md b/docs/examples/1.3.x/server-deno/examples/locale/list-countries.md index 0790270371b..3d65b3c71cf 100644 --- a/docs/examples/1.3.x/server-deno/examples/locale/list-countries.md +++ b/docs/examples/1.3.x/server-deno/examples/locale/list-countries.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/locale/list-currencies.md b/docs/examples/1.3.x/server-deno/examples/locale/list-currencies.md index e040312fefa..ae0fad6e0b4 100644 --- a/docs/examples/1.3.x/server-deno/examples/locale/list-currencies.md +++ b/docs/examples/1.3.x/server-deno/examples/locale/list-currencies.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/locale/list-languages.md b/docs/examples/1.3.x/server-deno/examples/locale/list-languages.md index be5af4d50ca..792a0e8a437 100644 --- a/docs/examples/1.3.x/server-deno/examples/locale/list-languages.md +++ b/docs/examples/1.3.x/server-deno/examples/locale/list-languages.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/storage/create-bucket.md b/docs/examples/1.3.x/server-deno/examples/storage/create-bucket.md index a25211a1c71..4a2460216bd 100644 --- a/docs/examples/1.3.x/server-deno/examples/storage/create-bucket.md +++ b/docs/examples/1.3.x/server-deno/examples/storage/create-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/storage/create-file.md b/docs/examples/1.3.x/server-deno/examples/storage/create-file.md index c0fe4930b97..e2b9edaa57b 100644 --- a/docs/examples/1.3.x/server-deno/examples/storage/create-file.md +++ b/docs/examples/1.3.x/server-deno/examples/storage/create-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/storage/delete-bucket.md b/docs/examples/1.3.x/server-deno/examples/storage/delete-bucket.md index d468428141d..f5c818046eb 100644 --- a/docs/examples/1.3.x/server-deno/examples/storage/delete-bucket.md +++ b/docs/examples/1.3.x/server-deno/examples/storage/delete-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/storage/delete-file.md b/docs/examples/1.3.x/server-deno/examples/storage/delete-file.md index e86da1763b4..61589ed878b 100644 --- a/docs/examples/1.3.x/server-deno/examples/storage/delete-file.md +++ b/docs/examples/1.3.x/server-deno/examples/storage/delete-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/storage/get-bucket.md b/docs/examples/1.3.x/server-deno/examples/storage/get-bucket.md index 35d22b941a8..34391b42c20 100644 --- a/docs/examples/1.3.x/server-deno/examples/storage/get-bucket.md +++ b/docs/examples/1.3.x/server-deno/examples/storage/get-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/storage/get-file-download.md b/docs/examples/1.3.x/server-deno/examples/storage/get-file-download.md index 206b860e258..9f2927e0546 100644 --- a/docs/examples/1.3.x/server-deno/examples/storage/get-file-download.md +++ b/docs/examples/1.3.x/server-deno/examples/storage/get-file-download.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/storage/get-file-preview.md b/docs/examples/1.3.x/server-deno/examples/storage/get-file-preview.md index 4815c6b40b0..903aa592708 100644 --- a/docs/examples/1.3.x/server-deno/examples/storage/get-file-preview.md +++ b/docs/examples/1.3.x/server-deno/examples/storage/get-file-preview.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/storage/get-file-view.md b/docs/examples/1.3.x/server-deno/examples/storage/get-file-view.md index 11ca8fdc6c1..27d20ab4a68 100644 --- a/docs/examples/1.3.x/server-deno/examples/storage/get-file-view.md +++ b/docs/examples/1.3.x/server-deno/examples/storage/get-file-view.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/storage/get-file.md b/docs/examples/1.3.x/server-deno/examples/storage/get-file.md index 04aa43a5b1b..c6ec55a1e66 100644 --- a/docs/examples/1.3.x/server-deno/examples/storage/get-file.md +++ b/docs/examples/1.3.x/server-deno/examples/storage/get-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/storage/list-buckets.md b/docs/examples/1.3.x/server-deno/examples/storage/list-buckets.md index 0c31feffe35..7cae11354fd 100644 --- a/docs/examples/1.3.x/server-deno/examples/storage/list-buckets.md +++ b/docs/examples/1.3.x/server-deno/examples/storage/list-buckets.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/storage/list-files.md b/docs/examples/1.3.x/server-deno/examples/storage/list-files.md index 00178aa874a..d5de10df59f 100644 --- a/docs/examples/1.3.x/server-deno/examples/storage/list-files.md +++ b/docs/examples/1.3.x/server-deno/examples/storage/list-files.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/storage/update-bucket.md b/docs/examples/1.3.x/server-deno/examples/storage/update-bucket.md index aca746145e4..d9c554bffe1 100644 --- a/docs/examples/1.3.x/server-deno/examples/storage/update-bucket.md +++ b/docs/examples/1.3.x/server-deno/examples/storage/update-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/storage/update-file.md b/docs/examples/1.3.x/server-deno/examples/storage/update-file.md index 79f31c3b030..a106b4b5052 100644 --- a/docs/examples/1.3.x/server-deno/examples/storage/update-file.md +++ b/docs/examples/1.3.x/server-deno/examples/storage/update-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/teams/create-membership.md b/docs/examples/1.3.x/server-deno/examples/teams/create-membership.md index c4169a306b0..8b3f82fdd22 100644 --- a/docs/examples/1.3.x/server-deno/examples/teams/create-membership.md +++ b/docs/examples/1.3.x/server-deno/examples/teams/create-membership.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/teams/create.md b/docs/examples/1.3.x/server-deno/examples/teams/create.md index 8272adb4d0d..b5ad42710cd 100644 --- a/docs/examples/1.3.x/server-deno/examples/teams/create.md +++ b/docs/examples/1.3.x/server-deno/examples/teams/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/teams/delete-membership.md b/docs/examples/1.3.x/server-deno/examples/teams/delete-membership.md index 402deb0b8a8..dd73e8ae870 100644 --- a/docs/examples/1.3.x/server-deno/examples/teams/delete-membership.md +++ b/docs/examples/1.3.x/server-deno/examples/teams/delete-membership.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/teams/delete.md b/docs/examples/1.3.x/server-deno/examples/teams/delete.md index 3b30934beab..5f859e0cfce 100644 --- a/docs/examples/1.3.x/server-deno/examples/teams/delete.md +++ b/docs/examples/1.3.x/server-deno/examples/teams/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/teams/get-membership.md b/docs/examples/1.3.x/server-deno/examples/teams/get-membership.md index 7d50599b67d..8289e1fbd40 100644 --- a/docs/examples/1.3.x/server-deno/examples/teams/get-membership.md +++ b/docs/examples/1.3.x/server-deno/examples/teams/get-membership.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/teams/get-prefs.md b/docs/examples/1.3.x/server-deno/examples/teams/get-prefs.md index 5a7fa4d98f0..3327463fac1 100644 --- a/docs/examples/1.3.x/server-deno/examples/teams/get-prefs.md +++ b/docs/examples/1.3.x/server-deno/examples/teams/get-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/teams/get.md b/docs/examples/1.3.x/server-deno/examples/teams/get.md index 44ecdab949a..e18f9e580d4 100644 --- a/docs/examples/1.3.x/server-deno/examples/teams/get.md +++ b/docs/examples/1.3.x/server-deno/examples/teams/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/teams/list-memberships.md b/docs/examples/1.3.x/server-deno/examples/teams/list-memberships.md index 7d730021a6a..ca062ddb294 100644 --- a/docs/examples/1.3.x/server-deno/examples/teams/list-memberships.md +++ b/docs/examples/1.3.x/server-deno/examples/teams/list-memberships.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/teams/list.md b/docs/examples/1.3.x/server-deno/examples/teams/list.md index c45ffdc0666..a76660063de 100644 --- a/docs/examples/1.3.x/server-deno/examples/teams/list.md +++ b/docs/examples/1.3.x/server-deno/examples/teams/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/teams/update-membership-roles.md b/docs/examples/1.3.x/server-deno/examples/teams/update-membership-roles.md index 9f2dad98c6b..050f7dbbd79 100644 --- a/docs/examples/1.3.x/server-deno/examples/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/server-deno/examples/teams/update-membership-roles.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/teams/update-membership-status.md b/docs/examples/1.3.x/server-deno/examples/teams/update-membership-status.md index 7bb57d8974e..2ac6332372b 100644 --- a/docs/examples/1.3.x/server-deno/examples/teams/update-membership-status.md +++ b/docs/examples/1.3.x/server-deno/examples/teams/update-membership-status.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/teams/update-name.md b/docs/examples/1.3.x/server-deno/examples/teams/update-name.md index 47c3fc27653..bbac808c86a 100644 --- a/docs/examples/1.3.x/server-deno/examples/teams/update-name.md +++ b/docs/examples/1.3.x/server-deno/examples/teams/update-name.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/teams/update-prefs.md b/docs/examples/1.3.x/server-deno/examples/teams/update-prefs.md index 83845be0364..7a8823b805c 100644 --- a/docs/examples/1.3.x/server-deno/examples/teams/update-prefs.md +++ b/docs/examples/1.3.x/server-deno/examples/teams/update-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/create-argon2user.md b/docs/examples/1.3.x/server-deno/examples/users/create-argon2user.md index e55b644b62c..c9d3e68bcda 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/create-argon2user.md +++ b/docs/examples/1.3.x/server-deno/examples/users/create-argon2user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/create-bcrypt-user.md b/docs/examples/1.3.x/server-deno/examples/users/create-bcrypt-user.md index 325fbe46d56..a3cc0ddc7dc 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.3.x/server-deno/examples/users/create-bcrypt-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/create-m-d5user.md b/docs/examples/1.3.x/server-deno/examples/users/create-m-d5user.md index 8892688594d..387fd97da01 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/create-m-d5user.md +++ b/docs/examples/1.3.x/server-deno/examples/users/create-m-d5user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/create-p-h-pass-user.md b/docs/examples/1.3.x/server-deno/examples/users/create-p-h-pass-user.md index d7a3428fd54..1e02fba5530 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.3.x/server-deno/examples/users/create-p-h-pass-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/create-s-h-a-user.md b/docs/examples/1.3.x/server-deno/examples/users/create-s-h-a-user.md index c3ade982efc..82cf7ea8a45 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.3.x/server-deno/examples/users/create-s-h-a-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/create-scrypt-modified-user.md b/docs/examples/1.3.x/server-deno/examples/users/create-scrypt-modified-user.md index 8039a970c22..d06e6d3128c 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.3.x/server-deno/examples/users/create-scrypt-modified-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/create-scrypt-user.md b/docs/examples/1.3.x/server-deno/examples/users/create-scrypt-user.md index 9889855e7c7..6f9656ce5e1 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/create-scrypt-user.md +++ b/docs/examples/1.3.x/server-deno/examples/users/create-scrypt-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/create.md b/docs/examples/1.3.x/server-deno/examples/users/create.md index c56f8d8f88d..1338a4e59fc 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/create.md +++ b/docs/examples/1.3.x/server-deno/examples/users/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/delete-session.md b/docs/examples/1.3.x/server-deno/examples/users/delete-session.md index e4ea45ba737..8d6e862bdb4 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/delete-session.md +++ b/docs/examples/1.3.x/server-deno/examples/users/delete-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/delete-sessions.md b/docs/examples/1.3.x/server-deno/examples/users/delete-sessions.md index 0e12d6dacfe..894084dd90a 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/delete-sessions.md +++ b/docs/examples/1.3.x/server-deno/examples/users/delete-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/delete.md b/docs/examples/1.3.x/server-deno/examples/users/delete.md index f0223024a38..e291fa1cf10 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/delete.md +++ b/docs/examples/1.3.x/server-deno/examples/users/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/get-prefs.md b/docs/examples/1.3.x/server-deno/examples/users/get-prefs.md index 63953f9d246..98d6f6aa625 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/get-prefs.md +++ b/docs/examples/1.3.x/server-deno/examples/users/get-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/get.md b/docs/examples/1.3.x/server-deno/examples/users/get.md index c9300c5060c..77c27630baa 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/get.md +++ b/docs/examples/1.3.x/server-deno/examples/users/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/list-logs.md b/docs/examples/1.3.x/server-deno/examples/users/list-logs.md index 7d0841fc774..fe4103138db 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/list-logs.md +++ b/docs/examples/1.3.x/server-deno/examples/users/list-logs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/list-memberships.md b/docs/examples/1.3.x/server-deno/examples/users/list-memberships.md index 74f2fb7f1e2..592385fc047 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/list-memberships.md +++ b/docs/examples/1.3.x/server-deno/examples/users/list-memberships.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/list-sessions.md b/docs/examples/1.3.x/server-deno/examples/users/list-sessions.md index 1aa4ca7d788..2117b04927f 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/list-sessions.md +++ b/docs/examples/1.3.x/server-deno/examples/users/list-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/list.md b/docs/examples/1.3.x/server-deno/examples/users/list.md index 369ccd7b297..a092136f5ad 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/list.md +++ b/docs/examples/1.3.x/server-deno/examples/users/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/update-email-verification.md b/docs/examples/1.3.x/server-deno/examples/users/update-email-verification.md index 146cea50278..41a3250abb5 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/update-email-verification.md +++ b/docs/examples/1.3.x/server-deno/examples/users/update-email-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/update-email.md b/docs/examples/1.3.x/server-deno/examples/users/update-email.md index bd7f0ffbd85..428ab37b854 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/update-email.md +++ b/docs/examples/1.3.x/server-deno/examples/users/update-email.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/update-name.md b/docs/examples/1.3.x/server-deno/examples/users/update-name.md index 071c948201e..1b0918b5a58 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/update-name.md +++ b/docs/examples/1.3.x/server-deno/examples/users/update-name.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/update-password.md b/docs/examples/1.3.x/server-deno/examples/users/update-password.md index e6ae8b725e3..4d9d8b217e9 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/update-password.md +++ b/docs/examples/1.3.x/server-deno/examples/users/update-password.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/update-phone-verification.md b/docs/examples/1.3.x/server-deno/examples/users/update-phone-verification.md index 293f876152d..3241b4c4306 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/update-phone-verification.md +++ b/docs/examples/1.3.x/server-deno/examples/users/update-phone-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/update-phone.md b/docs/examples/1.3.x/server-deno/examples/users/update-phone.md index e634f59719d..b41c9bc15fb 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/update-phone.md +++ b/docs/examples/1.3.x/server-deno/examples/users/update-phone.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/update-prefs.md b/docs/examples/1.3.x/server-deno/examples/users/update-prefs.md index 248fdb10abf..c794bc9d6c3 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/update-prefs.md +++ b/docs/examples/1.3.x/server-deno/examples/users/update-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-deno/examples/users/update-status.md b/docs/examples/1.3.x/server-deno/examples/users/update-status.md index 2f142596fd5..80355e1b391 100644 --- a/docs/examples/1.3.x/server-deno/examples/users/update-status.md +++ b/docs/examples/1.3.x/server-deno/examples/users/update-status.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/create-phone-verification.md b/docs/examples/1.3.x/server-dotnet/examples/account/create-phone-verification.md index 570bb20f5e4..3dd38b8e05b 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/create-phone-verification.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/create-phone-verification.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/create-recovery.md b/docs/examples/1.3.x/server-dotnet/examples/account/create-recovery.md index 1edc79bc502..afa76bbd9b1 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/create-recovery.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/create-recovery.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/create-verification.md b/docs/examples/1.3.x/server-dotnet/examples/account/create-verification.md index 928fcb85616..09d73b228c4 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/create-verification.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/create-verification.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/delete-session.md b/docs/examples/1.3.x/server-dotnet/examples/account/delete-session.md index c880a4f88db..163bd05e6a2 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/delete-session.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/delete-session.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/delete-sessions.md b/docs/examples/1.3.x/server-dotnet/examples/account/delete-sessions.md index 8dcefaf71ce..b683052f3b4 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/delete-sessions.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/delete-sessions.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/get-prefs.md b/docs/examples/1.3.x/server-dotnet/examples/account/get-prefs.md index ce3ecc1179d..6fed36e39ea 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/get-prefs.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/get-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/get-session.md b/docs/examples/1.3.x/server-dotnet/examples/account/get-session.md index 9560b6a78aa..9f4becbfb7c 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/get-session.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/get-session.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/get.md b/docs/examples/1.3.x/server-dotnet/examples/account/get.md index 5a50299c733..4df0e2f2ceb 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/get.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/get.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/list-logs.md b/docs/examples/1.3.x/server-dotnet/examples/account/list-logs.md index 03b50407f50..7873a8036ed 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/list-logs.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/list-logs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/list-sessions.md b/docs/examples/1.3.x/server-dotnet/examples/account/list-sessions.md index aa813bc1dd5..b918cfe8067 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/list-sessions.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/list-sessions.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/update-email.md b/docs/examples/1.3.x/server-dotnet/examples/account/update-email.md index 0b457e0abb0..3d851672769 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/update-email.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/update-email.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/update-name.md b/docs/examples/1.3.x/server-dotnet/examples/account/update-name.md index b41ba372894..682ba83ab82 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/update-name.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/update-name.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/update-password.md b/docs/examples/1.3.x/server-dotnet/examples/account/update-password.md index d8bab0b4d23..153b62635e5 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/update-password.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/update-password.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/update-phone-verification.md b/docs/examples/1.3.x/server-dotnet/examples/account/update-phone-verification.md index 6914e7805f7..032961664bd 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/update-phone-verification.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/update-phone-verification.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/update-phone.md b/docs/examples/1.3.x/server-dotnet/examples/account/update-phone.md index f3e2f14df75..8fa853a8ce3 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/update-phone.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/update-phone.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/update-prefs.md b/docs/examples/1.3.x/server-dotnet/examples/account/update-prefs.md index 7a4f2378e49..c25dae59cb0 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/update-prefs.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/update-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/update-recovery.md b/docs/examples/1.3.x/server-dotnet/examples/account/update-recovery.md index d26f4ab8dae..3c13952fc13 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/update-recovery.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/update-recovery.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/update-session.md b/docs/examples/1.3.x/server-dotnet/examples/account/update-session.md index f3365bb96b7..4a7600e8201 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/update-session.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/update-session.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/update-status.md b/docs/examples/1.3.x/server-dotnet/examples/account/update-status.md index c5e3e2c5764..0a01ee23251 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/update-status.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/update-status.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/account/update-verification.md b/docs/examples/1.3.x/server-dotnet/examples/account/update-verification.md index 697d2dffa4e..4531f25611d 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/account/update-verification.md +++ b/docs/examples/1.3.x/server-dotnet/examples/account/update-verification.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/avatars/get-browser.md b/docs/examples/1.3.x/server-dotnet/examples/avatars/get-browser.md index 3ac58f8b475..4b9e62bf6ac 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/avatars/get-browser.md +++ b/docs/examples/1.3.x/server-dotnet/examples/avatars/get-browser.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/avatars/get-credit-card.md b/docs/examples/1.3.x/server-dotnet/examples/avatars/get-credit-card.md index 89f36fe35d1..5338e4f590b 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/server-dotnet/examples/avatars/get-credit-card.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/avatars/get-favicon.md b/docs/examples/1.3.x/server-dotnet/examples/avatars/get-favicon.md index dbabf05d574..78cf8f75610 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/avatars/get-favicon.md +++ b/docs/examples/1.3.x/server-dotnet/examples/avatars/get-favicon.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/avatars/get-flag.md b/docs/examples/1.3.x/server-dotnet/examples/avatars/get-flag.md index fc20581c1ce..7ef37404185 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/avatars/get-flag.md +++ b/docs/examples/1.3.x/server-dotnet/examples/avatars/get-flag.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/avatars/get-image.md b/docs/examples/1.3.x/server-dotnet/examples/avatars/get-image.md index 35bf382f12f..7c85d566f2a 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/avatars/get-image.md +++ b/docs/examples/1.3.x/server-dotnet/examples/avatars/get-image.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/avatars/get-initials.md b/docs/examples/1.3.x/server-dotnet/examples/avatars/get-initials.md index 20ea37a3a42..7f40a3f2a0b 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/avatars/get-initials.md +++ b/docs/examples/1.3.x/server-dotnet/examples/avatars/get-initials.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/avatars/get-q-r.md b/docs/examples/1.3.x/server-dotnet/examples/avatars/get-q-r.md index 33dcac6f918..3fe62f1bcc8 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/avatars/get-q-r.md +++ b/docs/examples/1.3.x/server-dotnet/examples/avatars/get-q-r.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/create-boolean-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/create-boolean-attribute.md index 439537a9cb3..6b86445fb83 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/create-boolean-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/create-collection.md b/docs/examples/1.3.x/server-dotnet/examples/databases/create-collection.md index 1b7aa198a60..c1545c3a57f 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/create-collection.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/create-collection.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/create-datetime-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/create-datetime-attribute.md index 1fff2965ffd..5722be761fd 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/create-datetime-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/create-document.md b/docs/examples/1.3.x/server-dotnet/examples/databases/create-document.md index c0081f1f200..bdd144c6c79 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/create-document.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/create-document.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/create-email-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/create-email-attribute.md index e22ed7ddca6..416bcad541f 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/create-email-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/create-email-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/create-enum-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/create-enum-attribute.md index 773d41e9fa8..cdf4142ac96 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/create-enum-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/create-float-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/create-float-attribute.md index d0915184e8a..038abe997b5 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/create-float-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/create-float-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/create-index.md b/docs/examples/1.3.x/server-dotnet/examples/databases/create-index.md index b13de722aa6..ee8c4b6fd69 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/create-index.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/create-index.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/create-integer-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/create-integer-attribute.md index 0d84ea7868d..0bb5c422293 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/create-integer-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/create-ip-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/create-ip-attribute.md index ca571d00bda..81362cda5ee 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/create-ip-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/create-relationship-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/create-relationship-attribute.md index 9c4a8c36043..37328d876e3 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/create-relationship-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/create-string-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/create-string-attribute.md index 645492eeabf..bd34f357aa7 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/create-string-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/create-string-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/create-url-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/create-url-attribute.md index 9425882decb..46368bf2f91 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/create-url-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/create-url-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/create.md b/docs/examples/1.3.x/server-dotnet/examples/databases/create.md index 61ba46c03a5..671a3864b89 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/create.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/create.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/delete-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/delete-attribute.md index 8ebde257c52..4ceffc29181 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/delete-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/delete-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/delete-collection.md b/docs/examples/1.3.x/server-dotnet/examples/databases/delete-collection.md index 398185c509e..ecb627ceb4b 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/delete-collection.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/delete-collection.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/delete-document.md b/docs/examples/1.3.x/server-dotnet/examples/databases/delete-document.md index 6892b25438b..1107dce324c 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/delete-document.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/delete-document.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/delete-index.md b/docs/examples/1.3.x/server-dotnet/examples/databases/delete-index.md index c5dab69e0fc..c7423b974c3 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/delete-index.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/delete-index.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/delete.md b/docs/examples/1.3.x/server-dotnet/examples/databases/delete.md index cc8b4317e19..d7e3d2030db 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/delete.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/delete.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/get-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/get-attribute.md index 13eae946e96..491a0db2f87 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/get-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/get-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/get-collection.md b/docs/examples/1.3.x/server-dotnet/examples/databases/get-collection.md index b617da7810f..0b956208f66 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/get-collection.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/get-collection.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/get-document.md b/docs/examples/1.3.x/server-dotnet/examples/databases/get-document.md index 079f93a4031..095d1a1e668 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/get-document.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/get-document.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/get-index.md b/docs/examples/1.3.x/server-dotnet/examples/databases/get-index.md index d989ed46519..7a81d9b1195 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/get-index.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/get-index.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/get.md b/docs/examples/1.3.x/server-dotnet/examples/databases/get.md index 5dfa70eec14..bc770bbf432 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/get.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/get.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/list-attributes.md b/docs/examples/1.3.x/server-dotnet/examples/databases/list-attributes.md index 8af529df418..30362cf3987 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/list-attributes.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/list-attributes.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/list-collections.md b/docs/examples/1.3.x/server-dotnet/examples/databases/list-collections.md index ed0d7bb56fc..6eae10213e8 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/list-collections.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/list-collections.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/list-documents.md b/docs/examples/1.3.x/server-dotnet/examples/databases/list-documents.md index 92895692f0a..47bb99e03af 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/list-documents.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/list-documents.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/list-indexes.md b/docs/examples/1.3.x/server-dotnet/examples/databases/list-indexes.md index dbbed3ca537..87f1560ec48 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/list-indexes.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/list-indexes.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/list.md b/docs/examples/1.3.x/server-dotnet/examples/databases/list.md index ec234ddbab3..c247e5abc2e 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/list.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/list.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/update-boolean-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/update-boolean-attribute.md index 2d6fa80849a..6e3ee9a0d0b 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/update-boolean-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/update-collection.md b/docs/examples/1.3.x/server-dotnet/examples/databases/update-collection.md index aa477e4ce01..a946514ed6f 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/update-collection.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/update-collection.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/update-datetime-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/update-datetime-attribute.md index 81966f05f14..65ba0b5c7f3 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/update-datetime-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/update-document.md b/docs/examples/1.3.x/server-dotnet/examples/databases/update-document.md index b19d9226c69..e204c9b90fc 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/update-document.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/update-document.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/update-email-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/update-email-attribute.md index 5baf67fd729..59a94d850d9 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/update-email-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/update-email-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/update-enum-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/update-enum-attribute.md index 184ac1820f1..dfef22bf6de 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/update-enum-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/update-float-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/update-float-attribute.md index d68815ab07f..f6561415d57 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/update-float-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/update-float-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/update-integer-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/update-integer-attribute.md index 2ad0e057549..e19cc9f6480 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/update-integer-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/update-ip-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/update-ip-attribute.md index 10fd34b3066..0f9d4ad2857 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/update-ip-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/update-relationship-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/update-relationship-attribute.md index 8a65da0a421..fa2042f18e7 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/update-relationship-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/update-string-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/update-string-attribute.md index 84fc2b8da95..5ce837ccbb9 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/update-string-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/update-string-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/update-url-attribute.md b/docs/examples/1.3.x/server-dotnet/examples/databases/update-url-attribute.md index e79812a77b1..a66a848951b 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/update-url-attribute.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/update-url-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/databases/update.md b/docs/examples/1.3.x/server-dotnet/examples/databases/update.md index 743108fc66b..8ab4cc5ea0f 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/databases/update.md +++ b/docs/examples/1.3.x/server-dotnet/examples/databases/update.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/create-build.md b/docs/examples/1.3.x/server-dotnet/examples/functions/create-build.md index 71eb842c6c7..51c539a59d3 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/create-build.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/create-build.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/create-deployment.md b/docs/examples/1.3.x/server-dotnet/examples/functions/create-deployment.md index c58d1ef68de..7744c8ab78d 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/create-deployment.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/create-deployment.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/create-execution.md b/docs/examples/1.3.x/server-dotnet/examples/functions/create-execution.md index 93cd65be5d2..d6e17cbcd44 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/create-execution.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/create-execution.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/create-variable.md b/docs/examples/1.3.x/server-dotnet/examples/functions/create-variable.md index 0724bc6eef4..a90e0e883fc 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/create-variable.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/create-variable.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/create.md b/docs/examples/1.3.x/server-dotnet/examples/functions/create.md index 75c9b242f69..02108327629 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/create.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/create.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/delete-deployment.md b/docs/examples/1.3.x/server-dotnet/examples/functions/delete-deployment.md index 2c17dfae9f2..907a3f03266 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/delete-deployment.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/delete-deployment.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/delete-variable.md b/docs/examples/1.3.x/server-dotnet/examples/functions/delete-variable.md index cf201480fa1..3faa77f8ce8 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/delete-variable.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/delete-variable.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/delete.md b/docs/examples/1.3.x/server-dotnet/examples/functions/delete.md index 123e307c799..c3db166334a 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/delete.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/delete.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/get-deployment.md b/docs/examples/1.3.x/server-dotnet/examples/functions/get-deployment.md index 7d895c6d82c..18f5206643f 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/get-deployment.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/get-deployment.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/get-execution.md b/docs/examples/1.3.x/server-dotnet/examples/functions/get-execution.md index ed65d26bef4..e6dfe4a9130 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/get-execution.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/get-execution.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/get-variable.md b/docs/examples/1.3.x/server-dotnet/examples/functions/get-variable.md index 12083e5acb8..c17dd8cf62c 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/get-variable.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/get-variable.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/get.md b/docs/examples/1.3.x/server-dotnet/examples/functions/get.md index 1914ccf7acc..c21fc7dbd54 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/get.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/get.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/list-deployments.md b/docs/examples/1.3.x/server-dotnet/examples/functions/list-deployments.md index cd6a7b94468..4e2e85fa528 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/list-deployments.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/list-deployments.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/list-executions.md b/docs/examples/1.3.x/server-dotnet/examples/functions/list-executions.md index d4c73a0d362..7bf4598b4cc 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/list-executions.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/list-executions.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/list-runtimes.md b/docs/examples/1.3.x/server-dotnet/examples/functions/list-runtimes.md index ca1d125eb23..ad8a60936f7 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/list-runtimes.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/list-runtimes.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/list-variables.md b/docs/examples/1.3.x/server-dotnet/examples/functions/list-variables.md index 31177df9ff3..555e972af51 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/list-variables.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/list-variables.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/list.md b/docs/examples/1.3.x/server-dotnet/examples/functions/list.md index 1b8897b76fb..76128c22bf3 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/list.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/list.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/update-deployment.md b/docs/examples/1.3.x/server-dotnet/examples/functions/update-deployment.md index 8cd7fc54257..ba2f2b1e5ac 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/update-deployment.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/update-deployment.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/update-variable.md b/docs/examples/1.3.x/server-dotnet/examples/functions/update-variable.md index 63eac46609c..c222a9e27f2 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/update-variable.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/update-variable.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/functions/update.md b/docs/examples/1.3.x/server-dotnet/examples/functions/update.md index d9b29e6e77e..fed73cc4785 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/functions/update.md +++ b/docs/examples/1.3.x/server-dotnet/examples/functions/update.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/graphql/mutation.md b/docs/examples/1.3.x/server-dotnet/examples/graphql/mutation.md index 8ab5f0e458e..7756823b7ee 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/graphql/mutation.md +++ b/docs/examples/1.3.x/server-dotnet/examples/graphql/mutation.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/graphql/query.md b/docs/examples/1.3.x/server-dotnet/examples/graphql/query.md index e019f43e5bd..24f480286d4 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/graphql/query.md +++ b/docs/examples/1.3.x/server-dotnet/examples/graphql/query.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/health/get-antivirus.md b/docs/examples/1.3.x/server-dotnet/examples/health/get-antivirus.md index b8b0d5d95e4..08bf1207329 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/health/get-antivirus.md +++ b/docs/examples/1.3.x/server-dotnet/examples/health/get-antivirus.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/health/get-cache.md b/docs/examples/1.3.x/server-dotnet/examples/health/get-cache.md index 2f36c10f3b1..98970f14425 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/health/get-cache.md +++ b/docs/examples/1.3.x/server-dotnet/examples/health/get-cache.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/health/get-d-b.md b/docs/examples/1.3.x/server-dotnet/examples/health/get-d-b.md index a263709073d..1ec2dea7fde 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/health/get-d-b.md +++ b/docs/examples/1.3.x/server-dotnet/examples/health/get-d-b.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-certificates.md b/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-certificates.md index b2f945cbc72..4ae91c03cb0 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-certificates.md +++ b/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-certificates.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-functions.md b/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-functions.md index cf2ed7fc082..935bef44369 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-functions.md +++ b/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-functions.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-logs.md b/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-logs.md index 8821509dbc2..5ff91aa0256 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-logs.md +++ b/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-logs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-webhooks.md b/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-webhooks.md index d2ffb01c4df..12b0edb7115 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.3.x/server-dotnet/examples/health/get-queue-webhooks.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/health/get-storage-local.md b/docs/examples/1.3.x/server-dotnet/examples/health/get-storage-local.md index bc60cc6ccd6..36934e7443a 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/health/get-storage-local.md +++ b/docs/examples/1.3.x/server-dotnet/examples/health/get-storage-local.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/health/get-time.md b/docs/examples/1.3.x/server-dotnet/examples/health/get-time.md index 15f17454537..ec6e71f0e9d 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/health/get-time.md +++ b/docs/examples/1.3.x/server-dotnet/examples/health/get-time.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/health/get.md b/docs/examples/1.3.x/server-dotnet/examples/health/get.md index d1ddd8fdf08..fb56bd5f3e9 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/health/get.md +++ b/docs/examples/1.3.x/server-dotnet/examples/health/get.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/locale/get.md b/docs/examples/1.3.x/server-dotnet/examples/locale/get.md index f049a920726..6713e1ed576 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/locale/get.md +++ b/docs/examples/1.3.x/server-dotnet/examples/locale/get.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/locale/list-continents.md b/docs/examples/1.3.x/server-dotnet/examples/locale/list-continents.md index dd91caba9de..34af0c22b7c 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/locale/list-continents.md +++ b/docs/examples/1.3.x/server-dotnet/examples/locale/list-continents.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/locale/list-countries-e-u.md b/docs/examples/1.3.x/server-dotnet/examples/locale/list-countries-e-u.md index 8692c7b78e8..c515841b7dc 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/server-dotnet/examples/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/locale/list-countries-phones.md b/docs/examples/1.3.x/server-dotnet/examples/locale/list-countries-phones.md index 8607ae90f58..ebe76e6bfd1 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/server-dotnet/examples/locale/list-countries-phones.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/locale/list-countries.md b/docs/examples/1.3.x/server-dotnet/examples/locale/list-countries.md index c67d863856a..a1a6ed3e3a8 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/locale/list-countries.md +++ b/docs/examples/1.3.x/server-dotnet/examples/locale/list-countries.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/locale/list-currencies.md b/docs/examples/1.3.x/server-dotnet/examples/locale/list-currencies.md index 1bb3c427e04..dc04bca6f94 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/locale/list-currencies.md +++ b/docs/examples/1.3.x/server-dotnet/examples/locale/list-currencies.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/locale/list-languages.md b/docs/examples/1.3.x/server-dotnet/examples/locale/list-languages.md index 1c2897d4fb8..79e53a20377 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/locale/list-languages.md +++ b/docs/examples/1.3.x/server-dotnet/examples/locale/list-languages.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/storage/create-bucket.md b/docs/examples/1.3.x/server-dotnet/examples/storage/create-bucket.md index b1da6cb0bd0..120a177dd6f 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/storage/create-bucket.md +++ b/docs/examples/1.3.x/server-dotnet/examples/storage/create-bucket.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/storage/create-file.md b/docs/examples/1.3.x/server-dotnet/examples/storage/create-file.md index f7d73152098..58118f66e1a 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/storage/create-file.md +++ b/docs/examples/1.3.x/server-dotnet/examples/storage/create-file.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/storage/delete-bucket.md b/docs/examples/1.3.x/server-dotnet/examples/storage/delete-bucket.md index c8825f30639..a19aec20998 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/storage/delete-bucket.md +++ b/docs/examples/1.3.x/server-dotnet/examples/storage/delete-bucket.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/storage/delete-file.md b/docs/examples/1.3.x/server-dotnet/examples/storage/delete-file.md index 8b70175d97a..5300b3e3f33 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/storage/delete-file.md +++ b/docs/examples/1.3.x/server-dotnet/examples/storage/delete-file.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/storage/get-bucket.md b/docs/examples/1.3.x/server-dotnet/examples/storage/get-bucket.md index aca9020f285..dd97d871470 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/storage/get-bucket.md +++ b/docs/examples/1.3.x/server-dotnet/examples/storage/get-bucket.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/storage/get-file-download.md b/docs/examples/1.3.x/server-dotnet/examples/storage/get-file-download.md index e6aa24bea3e..50e79c821f8 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/storage/get-file-download.md +++ b/docs/examples/1.3.x/server-dotnet/examples/storage/get-file-download.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/storage/get-file-preview.md b/docs/examples/1.3.x/server-dotnet/examples/storage/get-file-preview.md index 92565ae5efe..4bcb95323ac 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/storage/get-file-preview.md +++ b/docs/examples/1.3.x/server-dotnet/examples/storage/get-file-preview.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/storage/get-file-view.md b/docs/examples/1.3.x/server-dotnet/examples/storage/get-file-view.md index 081f2dce7ba..f0faf111eef 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/storage/get-file-view.md +++ b/docs/examples/1.3.x/server-dotnet/examples/storage/get-file-view.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/storage/get-file.md b/docs/examples/1.3.x/server-dotnet/examples/storage/get-file.md index 0299a91bbe9..a2640e3deb0 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/storage/get-file.md +++ b/docs/examples/1.3.x/server-dotnet/examples/storage/get-file.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/storage/list-buckets.md b/docs/examples/1.3.x/server-dotnet/examples/storage/list-buckets.md index 2caae5e0af8..6b527b1aaf9 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/storage/list-buckets.md +++ b/docs/examples/1.3.x/server-dotnet/examples/storage/list-buckets.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/storage/list-files.md b/docs/examples/1.3.x/server-dotnet/examples/storage/list-files.md index 9d861171acd..82cdd78bce1 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/storage/list-files.md +++ b/docs/examples/1.3.x/server-dotnet/examples/storage/list-files.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/storage/update-bucket.md b/docs/examples/1.3.x/server-dotnet/examples/storage/update-bucket.md index eac74562092..8675d42d30f 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/storage/update-bucket.md +++ b/docs/examples/1.3.x/server-dotnet/examples/storage/update-bucket.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/storage/update-file.md b/docs/examples/1.3.x/server-dotnet/examples/storage/update-file.md index c51d335eef2..dd6bad34a8f 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/storage/update-file.md +++ b/docs/examples/1.3.x/server-dotnet/examples/storage/update-file.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/teams/create-membership.md b/docs/examples/1.3.x/server-dotnet/examples/teams/create-membership.md index bcc331724e4..7ea35898e28 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/teams/create-membership.md +++ b/docs/examples/1.3.x/server-dotnet/examples/teams/create-membership.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/teams/create.md b/docs/examples/1.3.x/server-dotnet/examples/teams/create.md index fa34098cb25..2cec3e20093 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/teams/create.md +++ b/docs/examples/1.3.x/server-dotnet/examples/teams/create.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/teams/delete-membership.md b/docs/examples/1.3.x/server-dotnet/examples/teams/delete-membership.md index e3c7562f998..3eb75eff7c6 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/teams/delete-membership.md +++ b/docs/examples/1.3.x/server-dotnet/examples/teams/delete-membership.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/teams/delete.md b/docs/examples/1.3.x/server-dotnet/examples/teams/delete.md index 8229839b1cf..497b365113d 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/teams/delete.md +++ b/docs/examples/1.3.x/server-dotnet/examples/teams/delete.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/teams/get-membership.md b/docs/examples/1.3.x/server-dotnet/examples/teams/get-membership.md index 108dbadbe04..3cdaf1c8fd7 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/teams/get-membership.md +++ b/docs/examples/1.3.x/server-dotnet/examples/teams/get-membership.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/teams/get-prefs.md b/docs/examples/1.3.x/server-dotnet/examples/teams/get-prefs.md index 08be12ba836..39fdbf4cbfc 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/teams/get-prefs.md +++ b/docs/examples/1.3.x/server-dotnet/examples/teams/get-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/teams/get.md b/docs/examples/1.3.x/server-dotnet/examples/teams/get.md index f6c92a007b1..3ed9ff67718 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/teams/get.md +++ b/docs/examples/1.3.x/server-dotnet/examples/teams/get.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/teams/list-memberships.md b/docs/examples/1.3.x/server-dotnet/examples/teams/list-memberships.md index 145376cfb9d..b2a5a0ed0b5 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/teams/list-memberships.md +++ b/docs/examples/1.3.x/server-dotnet/examples/teams/list-memberships.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/teams/list.md b/docs/examples/1.3.x/server-dotnet/examples/teams/list.md index 1acf615039f..133907dc2c0 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/teams/list.md +++ b/docs/examples/1.3.x/server-dotnet/examples/teams/list.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/teams/update-membership-roles.md b/docs/examples/1.3.x/server-dotnet/examples/teams/update-membership-roles.md index 5f9db4401f3..33d90280833 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/server-dotnet/examples/teams/update-membership-roles.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/teams/update-membership-status.md b/docs/examples/1.3.x/server-dotnet/examples/teams/update-membership-status.md index bb377203ccb..d5514e77399 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/teams/update-membership-status.md +++ b/docs/examples/1.3.x/server-dotnet/examples/teams/update-membership-status.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/teams/update-name.md b/docs/examples/1.3.x/server-dotnet/examples/teams/update-name.md index 12867304375..bd0bd7df41c 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/teams/update-name.md +++ b/docs/examples/1.3.x/server-dotnet/examples/teams/update-name.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/teams/update-prefs.md b/docs/examples/1.3.x/server-dotnet/examples/teams/update-prefs.md index 3dfc0a3fc1a..c75e761fc45 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/teams/update-prefs.md +++ b/docs/examples/1.3.x/server-dotnet/examples/teams/update-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/create-argon2user.md b/docs/examples/1.3.x/server-dotnet/examples/users/create-argon2user.md index 6038594547b..958efe5c510 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/create-argon2user.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/create-argon2user.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/create-bcrypt-user.md b/docs/examples/1.3.x/server-dotnet/examples/users/create-bcrypt-user.md index 954e1ad1cca..20297ef5d88 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/create-bcrypt-user.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/create-m-d5user.md b/docs/examples/1.3.x/server-dotnet/examples/users/create-m-d5user.md index de54ee98fec..a7b0ad13814 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/create-m-d5user.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/create-m-d5user.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/create-p-h-pass-user.md b/docs/examples/1.3.x/server-dotnet/examples/users/create-p-h-pass-user.md index e8ede042daf..60d1f6d7798 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/create-p-h-pass-user.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/create-s-h-a-user.md b/docs/examples/1.3.x/server-dotnet/examples/users/create-s-h-a-user.md index f3816196514..68fcc2900ee 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/create-s-h-a-user.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/create-scrypt-modified-user.md b/docs/examples/1.3.x/server-dotnet/examples/users/create-scrypt-modified-user.md index c16cfe97f95..b03e4d0a121 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/create-scrypt-modified-user.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/create-scrypt-user.md b/docs/examples/1.3.x/server-dotnet/examples/users/create-scrypt-user.md index 1d6e60dd2d2..1cf9a2effe5 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/create-scrypt-user.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/create-scrypt-user.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/create.md b/docs/examples/1.3.x/server-dotnet/examples/users/create.md index 0a8421a5448..ad55ca54e2c 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/create.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/create.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/delete-session.md b/docs/examples/1.3.x/server-dotnet/examples/users/delete-session.md index 841bd456c85..3f342d1178d 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/delete-session.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/delete-session.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/delete-sessions.md b/docs/examples/1.3.x/server-dotnet/examples/users/delete-sessions.md index 8ff8f765228..bb5abd9a82b 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/delete-sessions.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/delete-sessions.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/delete.md b/docs/examples/1.3.x/server-dotnet/examples/users/delete.md index 7833a7950fd..71ba2bf6881 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/delete.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/delete.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/get-prefs.md b/docs/examples/1.3.x/server-dotnet/examples/users/get-prefs.md index c19f5e07786..6f122c0ff27 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/get-prefs.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/get-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/get.md b/docs/examples/1.3.x/server-dotnet/examples/users/get.md index 9c315e60210..b42ff2bf731 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/get.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/get.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/list-logs.md b/docs/examples/1.3.x/server-dotnet/examples/users/list-logs.md index 277addcd25e..b56bf45aa8a 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/list-logs.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/list-logs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/list-memberships.md b/docs/examples/1.3.x/server-dotnet/examples/users/list-memberships.md index c25d98b41d2..d3099aad978 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/list-memberships.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/list-memberships.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/list-sessions.md b/docs/examples/1.3.x/server-dotnet/examples/users/list-sessions.md index fcd87f01ad5..43230b847d7 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/list-sessions.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/list-sessions.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/list.md b/docs/examples/1.3.x/server-dotnet/examples/users/list.md index 9cb177b6923..580396eca5f 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/list.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/list.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/update-email-verification.md b/docs/examples/1.3.x/server-dotnet/examples/users/update-email-verification.md index 2b7a5b86748..5287a38ce01 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/update-email-verification.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/update-email-verification.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/update-email.md b/docs/examples/1.3.x/server-dotnet/examples/users/update-email.md index 0d371b13fc0..8bad70f9567 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/update-email.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/update-email.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/update-name.md b/docs/examples/1.3.x/server-dotnet/examples/users/update-name.md index f846543117c..8bfbeaafa20 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/update-name.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/update-name.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/update-password.md b/docs/examples/1.3.x/server-dotnet/examples/users/update-password.md index ce3241dfd5d..c6fd97306b3 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/update-password.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/update-password.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/update-phone-verification.md b/docs/examples/1.3.x/server-dotnet/examples/users/update-phone-verification.md index c2fd1673de4..784ea37f188 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/update-phone-verification.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/update-phone-verification.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/update-phone.md b/docs/examples/1.3.x/server-dotnet/examples/users/update-phone.md index 90728d76c70..e293e53002f 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/update-phone.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/update-phone.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/update-prefs.md b/docs/examples/1.3.x/server-dotnet/examples/users/update-prefs.md index a39d54565a1..5a443de5c79 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/update-prefs.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/update-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-dotnet/examples/users/update-status.md b/docs/examples/1.3.x/server-dotnet/examples/users/update-status.md index 713ece02ba5..d913bb5cb95 100644 --- a/docs/examples/1.3.x/server-dotnet/examples/users/update-status.md +++ b/docs/examples/1.3.x/server-dotnet/examples/users/update-status.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/account/create-phone-verification.md b/docs/examples/1.3.x/server-kotlin/java/account/create-phone-verification.md index 013b357f880..86416e08aaa 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/create-phone-verification.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/create-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/create-recovery.md b/docs/examples/1.3.x/server-kotlin/java/account/create-recovery.md index 284efc8107b..7f1a21b9dc8 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/create-recovery.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/create-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/create-verification.md b/docs/examples/1.3.x/server-kotlin/java/account/create-verification.md index 0280b4b15b1..c7911643c19 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/create-verification.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/create-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/delete-session.md b/docs/examples/1.3.x/server-kotlin/java/account/delete-session.md index 2cd069eaa13..27ce537ecd6 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/delete-session.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/delete-sessions.md b/docs/examples/1.3.x/server-kotlin/java/account/delete-sessions.md index 7a9999d3985..cd790a3ac73 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/delete-sessions.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/get-prefs.md b/docs/examples/1.3.x/server-kotlin/java/account/get-prefs.md index 3f6cd20c9dd..609707c4071 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/get-prefs.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/get-session.md b/docs/examples/1.3.x/server-kotlin/java/account/get-session.md index 17229e29de2..efe4fabba7d 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/get-session.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/get-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/get.md b/docs/examples/1.3.x/server-kotlin/java/account/get.md index 80a4988af5b..a79e0279408 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/get.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/list-logs.md b/docs/examples/1.3.x/server-kotlin/java/account/list-logs.md index 971ac866e12..cfb15dccfca 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/list-logs.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/list-sessions.md b/docs/examples/1.3.x/server-kotlin/java/account/list-sessions.md index 9d7e6308e51..f850618692a 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/list-sessions.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/update-email.md b/docs/examples/1.3.x/server-kotlin/java/account/update-email.md index 67ab31ad88b..4e09bdf1a97 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/update-email.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/update-name.md b/docs/examples/1.3.x/server-kotlin/java/account/update-name.md index 6900f121746..6a5a1711eb8 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/update-name.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/update-password.md b/docs/examples/1.3.x/server-kotlin/java/account/update-password.md index ace01fcc9ad..3797fcb7b4b 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/update-password.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/update-phone-verification.md b/docs/examples/1.3.x/server-kotlin/java/account/update-phone-verification.md index 8c3c9756de6..0c1d4407633 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/update-phone-verification.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/update-phone.md b/docs/examples/1.3.x/server-kotlin/java/account/update-phone.md index 9365a0f0b9b..d51cc4497e3 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/update-phone.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/update-prefs.md b/docs/examples/1.3.x/server-kotlin/java/account/update-prefs.md index 24a36258345..2c7e22f25fd 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/update-prefs.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/update-recovery.md b/docs/examples/1.3.x/server-kotlin/java/account/update-recovery.md index bc3251d1602..ffbfd402b94 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/update-recovery.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/update-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/update-session.md b/docs/examples/1.3.x/server-kotlin/java/account/update-session.md index 62d77e1366f..ec83c2d357e 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/update-session.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/update-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/update-status.md b/docs/examples/1.3.x/server-kotlin/java/account/update-status.md index 4af2cf1083b..964ce9c5b0f 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/update-status.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/account/update-verification.md b/docs/examples/1.3.x/server-kotlin/java/account/update-verification.md index 2190daf1b7d..76780f4ac60 100644 --- a/docs/examples/1.3.x/server-kotlin/java/account/update-verification.md +++ b/docs/examples/1.3.x/server-kotlin/java/account/update-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/avatars/get-browser.md b/docs/examples/1.3.x/server-kotlin/java/avatars/get-browser.md index 42e8e57ee11..0682288cfe9 100644 --- a/docs/examples/1.3.x/server-kotlin/java/avatars/get-browser.md +++ b/docs/examples/1.3.x/server-kotlin/java/avatars/get-browser.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/avatars/get-credit-card.md b/docs/examples/1.3.x/server-kotlin/java/avatars/get-credit-card.md index 5e3b32b527f..f821a7638c9 100644 --- a/docs/examples/1.3.x/server-kotlin/java/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/server-kotlin/java/avatars/get-credit-card.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/avatars/get-favicon.md b/docs/examples/1.3.x/server-kotlin/java/avatars/get-favicon.md index 109f88f7193..95b91adb90b 100644 --- a/docs/examples/1.3.x/server-kotlin/java/avatars/get-favicon.md +++ b/docs/examples/1.3.x/server-kotlin/java/avatars/get-favicon.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/avatars/get-flag.md b/docs/examples/1.3.x/server-kotlin/java/avatars/get-flag.md index 6ad820ae7a9..f0e2cda52db 100644 --- a/docs/examples/1.3.x/server-kotlin/java/avatars/get-flag.md +++ b/docs/examples/1.3.x/server-kotlin/java/avatars/get-flag.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/avatars/get-image.md b/docs/examples/1.3.x/server-kotlin/java/avatars/get-image.md index 26805449885..765a8024e50 100644 --- a/docs/examples/1.3.x/server-kotlin/java/avatars/get-image.md +++ b/docs/examples/1.3.x/server-kotlin/java/avatars/get-image.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/avatars/get-initials.md b/docs/examples/1.3.x/server-kotlin/java/avatars/get-initials.md index 8a86e7a01bd..8cbcee1497f 100644 --- a/docs/examples/1.3.x/server-kotlin/java/avatars/get-initials.md +++ b/docs/examples/1.3.x/server-kotlin/java/avatars/get-initials.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/avatars/get-q-r.md b/docs/examples/1.3.x/server-kotlin/java/avatars/get-q-r.md index c57d70a8409..2d7e1332817 100644 --- a/docs/examples/1.3.x/server-kotlin/java/avatars/get-q-r.md +++ b/docs/examples/1.3.x/server-kotlin/java/avatars/get-q-r.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/create-boolean-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/create-boolean-attribute.md index 6e79f0a917c..c5d83a05ff4 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/create-boolean-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/create-boolean-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/create-collection.md b/docs/examples/1.3.x/server-kotlin/java/databases/create-collection.md index 96b5d9b9743..77b5c9f7b72 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/create-collection.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/create-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/create-datetime-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/create-datetime-attribute.md index 307a8ffb653..c6d3c6f229f 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/create-datetime-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/create-datetime-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/create-document.md b/docs/examples/1.3.x/server-kotlin/java/databases/create-document.md index 029c3f7a253..ede98c60462 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/create-document.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/create-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/create-email-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/create-email-attribute.md index 8774c550b78..0200f11e7d1 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/create-email-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/create-email-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/create-enum-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/create-enum-attribute.md index e2cf6a28df3..c4ae2933a4f 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/create-enum-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/create-enum-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/create-float-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/create-float-attribute.md index 0fba6ac073a..ceede982b06 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/create-float-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/create-float-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/create-index.md b/docs/examples/1.3.x/server-kotlin/java/databases/create-index.md index 5dbdce895b8..44eba1df018 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/create-index.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/create-index.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/create-integer-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/create-integer-attribute.md index 5446862fdbc..b0d8028a623 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/create-integer-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/create-integer-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/create-ip-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/create-ip-attribute.md index fe37da96d57..a8ade8a4128 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/create-ip-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/create-ip-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/create-relationship-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/create-relationship-attribute.md index 0b7e5f999fa..1c54712e5a0 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/create-relationship-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/create-relationship-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/create-string-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/create-string-attribute.md index a9b19160669..1a767be1d89 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/create-string-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/create-string-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/create-url-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/create-url-attribute.md index 9c504d862bf..c1bee6e0ba3 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/create-url-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/create-url-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/create.md b/docs/examples/1.3.x/server-kotlin/java/databases/create.md index cd3cb34db7f..e82a65c08af 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/create.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/delete-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/delete-attribute.md index 68aeecd93be..d58ba87b289 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/delete-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/delete-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/delete-collection.md b/docs/examples/1.3.x/server-kotlin/java/databases/delete-collection.md index cd328b48a60..370781bea90 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/delete-collection.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/delete-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/delete-document.md b/docs/examples/1.3.x/server-kotlin/java/databases/delete-document.md index 4f4c8495c32..46b9edf2f62 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/delete-document.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/delete-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/delete-index.md b/docs/examples/1.3.x/server-kotlin/java/databases/delete-index.md index 640bd0fc312..d633a8a2aed 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/delete-index.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/delete-index.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/delete.md b/docs/examples/1.3.x/server-kotlin/java/databases/delete.md index 897a450fa41..a7fad611e05 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/delete.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/get-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/get-attribute.md index 79c1d2b2add..fcea6fefb99 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/get-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/get-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/get-collection.md b/docs/examples/1.3.x/server-kotlin/java/databases/get-collection.md index 3ecfa0ca802..ce0eea0cb39 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/get-collection.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/get-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/get-document.md b/docs/examples/1.3.x/server-kotlin/java/databases/get-document.md index 2061bed2020..cac1612f0c8 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/get-document.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/get-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/get-index.md b/docs/examples/1.3.x/server-kotlin/java/databases/get-index.md index 2bf036a0575..753fef468f1 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/get-index.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/get-index.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/get.md b/docs/examples/1.3.x/server-kotlin/java/databases/get.md index 066ec4d2626..d4eeb222fd7 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/get.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/list-attributes.md b/docs/examples/1.3.x/server-kotlin/java/databases/list-attributes.md index aafeca4a832..1d75e81a433 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/list-attributes.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/list-attributes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/list-collections.md b/docs/examples/1.3.x/server-kotlin/java/databases/list-collections.md index 67c343f38a7..639a45bc2e0 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/list-collections.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/list-collections.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/list-documents.md b/docs/examples/1.3.x/server-kotlin/java/databases/list-documents.md index 7a4a1b70b2a..56de64ca4c6 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/list-documents.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/list-documents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/list-indexes.md b/docs/examples/1.3.x/server-kotlin/java/databases/list-indexes.md index 1f5cf0c30f6..7ef4b6d4342 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/list-indexes.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/list-indexes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/list.md b/docs/examples/1.3.x/server-kotlin/java/databases/list.md index 04f81867f0e..b46abf235c8 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/list.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/update-boolean-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/update-boolean-attribute.md index 97cee2d5484..ac9e320ceca 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/update-boolean-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/update-boolean-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/update-collection.md b/docs/examples/1.3.x/server-kotlin/java/databases/update-collection.md index 3f25c5047e9..831193fbf54 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/update-collection.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/update-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/update-datetime-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/update-datetime-attribute.md index 503f2debdfa..4b143f17ba5 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/update-datetime-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/update-datetime-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/update-document.md b/docs/examples/1.3.x/server-kotlin/java/databases/update-document.md index e9a596d3d42..39755884660 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/update-document.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/update-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/update-email-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/update-email-attribute.md index 39ea153834d..336c25482e3 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/update-email-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/update-email-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/update-enum-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/update-enum-attribute.md index 969ea4eece2..cd9622fff92 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/update-enum-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/update-enum-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/update-float-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/update-float-attribute.md index 67d76e425ff..0e84626db79 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/update-float-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/update-float-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/update-integer-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/update-integer-attribute.md index b9308dc22b9..8cac2614886 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/update-integer-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/update-integer-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/update-ip-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/update-ip-attribute.md index 6a936a5f361..51cb161ea22 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/update-ip-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/update-ip-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/update-relationship-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/update-relationship-attribute.md index 272952b5970..624e66ed73e 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/update-relationship-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/update-relationship-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/update-string-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/update-string-attribute.md index aba0d0e53ca..1f605fd0ee1 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/update-string-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/update-string-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/update-url-attribute.md b/docs/examples/1.3.x/server-kotlin/java/databases/update-url-attribute.md index 87ab384929f..f1e29c43bc9 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/update-url-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/update-url-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/databases/update.md b/docs/examples/1.3.x/server-kotlin/java/databases/update.md index 3f4b4e19338..e5bf2ed66c0 100644 --- a/docs/examples/1.3.x/server-kotlin/java/databases/update.md +++ b/docs/examples/1.3.x/server-kotlin/java/databases/update.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/create-build.md b/docs/examples/1.3.x/server-kotlin/java/functions/create-build.md index 10c8d2fc801..5a571f76e8d 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/create-build.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/create-build.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/create-deployment.md b/docs/examples/1.3.x/server-kotlin/java/functions/create-deployment.md index ed79e4ecb4e..6e11beaf475 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/create-deployment.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/create-deployment.md @@ -4,7 +4,7 @@ import io.appwrite.models.InputFile; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/create-execution.md b/docs/examples/1.3.x/server-kotlin/java/functions/create-execution.md index 315f57d5cb5..d53744f70a7 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/create-execution.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/create-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/create-variable.md b/docs/examples/1.3.x/server-kotlin/java/functions/create-variable.md index 5e9c5a66bd9..3ce9c2d944d 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/create-variable.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/create-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/create.md b/docs/examples/1.3.x/server-kotlin/java/functions/create.md index 2386c1bbad2..26e9b769097 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/create.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/delete-deployment.md b/docs/examples/1.3.x/server-kotlin/java/functions/delete-deployment.md index 703dce63aa8..2da778a970d 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/delete-deployment.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/delete-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/delete-variable.md b/docs/examples/1.3.x/server-kotlin/java/functions/delete-variable.md index d36615092da..cbdfabc97b2 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/delete-variable.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/delete-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/delete.md b/docs/examples/1.3.x/server-kotlin/java/functions/delete.md index 8f398964115..2f4eb011f11 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/delete.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/get-deployment.md b/docs/examples/1.3.x/server-kotlin/java/functions/get-deployment.md index 5b539d28016..54bf0c461aa 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/get-deployment.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/get-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/get-execution.md b/docs/examples/1.3.x/server-kotlin/java/functions/get-execution.md index b1ff9485e82..00bb0a1ab85 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/get-execution.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/get-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/get-variable.md b/docs/examples/1.3.x/server-kotlin/java/functions/get-variable.md index 2be25a5c73d..01a05370645 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/get-variable.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/get-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/get.md b/docs/examples/1.3.x/server-kotlin/java/functions/get.md index 8ad5ea3522b..f6eb035a3ee 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/get.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/list-deployments.md b/docs/examples/1.3.x/server-kotlin/java/functions/list-deployments.md index 61f48c88c37..c5a81048ec7 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/list-deployments.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/list-deployments.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/list-executions.md b/docs/examples/1.3.x/server-kotlin/java/functions/list-executions.md index 392e9c82c56..f4db7948dfa 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/list-executions.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/list-executions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/list-runtimes.md b/docs/examples/1.3.x/server-kotlin/java/functions/list-runtimes.md index 46d04463102..968f019f025 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/list-runtimes.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/list-runtimes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/list-variables.md b/docs/examples/1.3.x/server-kotlin/java/functions/list-variables.md index 4fa47e8c57e..ad6d522b8f1 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/list-variables.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/list-variables.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/list.md b/docs/examples/1.3.x/server-kotlin/java/functions/list.md index 4224cf52b78..253cbafaa1c 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/list.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/update-deployment.md b/docs/examples/1.3.x/server-kotlin/java/functions/update-deployment.md index 2af0637379f..9e1db350714 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/update-deployment.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/update-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/update-variable.md b/docs/examples/1.3.x/server-kotlin/java/functions/update-variable.md index f30bbf8e4e3..c841731b533 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/update-variable.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/update-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/functions/update.md b/docs/examples/1.3.x/server-kotlin/java/functions/update.md index 8a53d75ea4a..d8c209b53a0 100644 --- a/docs/examples/1.3.x/server-kotlin/java/functions/update.md +++ b/docs/examples/1.3.x/server-kotlin/java/functions/update.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/graphql/mutation.md b/docs/examples/1.3.x/server-kotlin/java/graphql/mutation.md index d689c62e60b..9e93425d248 100644 --- a/docs/examples/1.3.x/server-kotlin/java/graphql/mutation.md +++ b/docs/examples/1.3.x/server-kotlin/java/graphql/mutation.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/graphql/query.md b/docs/examples/1.3.x/server-kotlin/java/graphql/query.md index e4b8693b4f9..4ce7a5e66aa 100644 --- a/docs/examples/1.3.x/server-kotlin/java/graphql/query.md +++ b/docs/examples/1.3.x/server-kotlin/java/graphql/query.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/health/get-antivirus.md b/docs/examples/1.3.x/server-kotlin/java/health/get-antivirus.md index 334563fd1ce..0e081401324 100644 --- a/docs/examples/1.3.x/server-kotlin/java/health/get-antivirus.md +++ b/docs/examples/1.3.x/server-kotlin/java/health/get-antivirus.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/health/get-cache.md b/docs/examples/1.3.x/server-kotlin/java/health/get-cache.md index 9a2981253ac..4c53f7a35bc 100644 --- a/docs/examples/1.3.x/server-kotlin/java/health/get-cache.md +++ b/docs/examples/1.3.x/server-kotlin/java/health/get-cache.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/health/get-d-b.md b/docs/examples/1.3.x/server-kotlin/java/health/get-d-b.md index 22a5a6b5bb9..9958d8bbdc4 100644 --- a/docs/examples/1.3.x/server-kotlin/java/health/get-d-b.md +++ b/docs/examples/1.3.x/server-kotlin/java/health/get-d-b.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/health/get-queue-certificates.md b/docs/examples/1.3.x/server-kotlin/java/health/get-queue-certificates.md index a0a3a22f8a5..7f4c32f49b0 100644 --- a/docs/examples/1.3.x/server-kotlin/java/health/get-queue-certificates.md +++ b/docs/examples/1.3.x/server-kotlin/java/health/get-queue-certificates.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/health/get-queue-functions.md b/docs/examples/1.3.x/server-kotlin/java/health/get-queue-functions.md index 54b425f63cc..556c3e73e43 100644 --- a/docs/examples/1.3.x/server-kotlin/java/health/get-queue-functions.md +++ b/docs/examples/1.3.x/server-kotlin/java/health/get-queue-functions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/health/get-queue-logs.md b/docs/examples/1.3.x/server-kotlin/java/health/get-queue-logs.md index 371c98f06d3..075eebf85d7 100644 --- a/docs/examples/1.3.x/server-kotlin/java/health/get-queue-logs.md +++ b/docs/examples/1.3.x/server-kotlin/java/health/get-queue-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/health/get-queue-webhooks.md b/docs/examples/1.3.x/server-kotlin/java/health/get-queue-webhooks.md index cbd6919d72e..344945db0aa 100644 --- a/docs/examples/1.3.x/server-kotlin/java/health/get-queue-webhooks.md +++ b/docs/examples/1.3.x/server-kotlin/java/health/get-queue-webhooks.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/health/get-storage-local.md b/docs/examples/1.3.x/server-kotlin/java/health/get-storage-local.md index a57f34520da..527499f94e9 100644 --- a/docs/examples/1.3.x/server-kotlin/java/health/get-storage-local.md +++ b/docs/examples/1.3.x/server-kotlin/java/health/get-storage-local.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/health/get-time.md b/docs/examples/1.3.x/server-kotlin/java/health/get-time.md index 36b276b4d7e..0f78d412474 100644 --- a/docs/examples/1.3.x/server-kotlin/java/health/get-time.md +++ b/docs/examples/1.3.x/server-kotlin/java/health/get-time.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/health/get.md b/docs/examples/1.3.x/server-kotlin/java/health/get.md index 59badb05432..a14a4b5aeca 100644 --- a/docs/examples/1.3.x/server-kotlin/java/health/get.md +++ b/docs/examples/1.3.x/server-kotlin/java/health/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/locale/get.md b/docs/examples/1.3.x/server-kotlin/java/locale/get.md index 4fb6be94169..22137f75b7b 100644 --- a/docs/examples/1.3.x/server-kotlin/java/locale/get.md +++ b/docs/examples/1.3.x/server-kotlin/java/locale/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/locale/list-continents.md b/docs/examples/1.3.x/server-kotlin/java/locale/list-continents.md index 661fcc3583a..3933873e37d 100644 --- a/docs/examples/1.3.x/server-kotlin/java/locale/list-continents.md +++ b/docs/examples/1.3.x/server-kotlin/java/locale/list-continents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/locale/list-countries-e-u.md b/docs/examples/1.3.x/server-kotlin/java/locale/list-countries-e-u.md index 6164ca02d29..9cb744abcb3 100644 --- a/docs/examples/1.3.x/server-kotlin/java/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/server-kotlin/java/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/locale/list-countries-phones.md b/docs/examples/1.3.x/server-kotlin/java/locale/list-countries-phones.md index 2cb41c19f22..c81457dbbf7 100644 --- a/docs/examples/1.3.x/server-kotlin/java/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/server-kotlin/java/locale/list-countries-phones.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/locale/list-countries.md b/docs/examples/1.3.x/server-kotlin/java/locale/list-countries.md index 74d3b5d4022..491b654edee 100644 --- a/docs/examples/1.3.x/server-kotlin/java/locale/list-countries.md +++ b/docs/examples/1.3.x/server-kotlin/java/locale/list-countries.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/locale/list-currencies.md b/docs/examples/1.3.x/server-kotlin/java/locale/list-currencies.md index 54a0e4de40c..a4c49e35689 100644 --- a/docs/examples/1.3.x/server-kotlin/java/locale/list-currencies.md +++ b/docs/examples/1.3.x/server-kotlin/java/locale/list-currencies.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/locale/list-languages.md b/docs/examples/1.3.x/server-kotlin/java/locale/list-languages.md index 54976c5c08b..4f09bab65c9 100644 --- a/docs/examples/1.3.x/server-kotlin/java/locale/list-languages.md +++ b/docs/examples/1.3.x/server-kotlin/java/locale/list-languages.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/storage/create-bucket.md b/docs/examples/1.3.x/server-kotlin/java/storage/create-bucket.md index c9ebc9178c9..268fa1563e6 100644 --- a/docs/examples/1.3.x/server-kotlin/java/storage/create-bucket.md +++ b/docs/examples/1.3.x/server-kotlin/java/storage/create-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/storage/create-file.md b/docs/examples/1.3.x/server-kotlin/java/storage/create-file.md index c83557bf282..e6cdf748528 100644 --- a/docs/examples/1.3.x/server-kotlin/java/storage/create-file.md +++ b/docs/examples/1.3.x/server-kotlin/java/storage/create-file.md @@ -4,7 +4,7 @@ import io.appwrite.models.InputFile; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/storage/delete-bucket.md b/docs/examples/1.3.x/server-kotlin/java/storage/delete-bucket.md index f26e9ee5a19..c7844f9e90d 100644 --- a/docs/examples/1.3.x/server-kotlin/java/storage/delete-bucket.md +++ b/docs/examples/1.3.x/server-kotlin/java/storage/delete-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/storage/delete-file.md b/docs/examples/1.3.x/server-kotlin/java/storage/delete-file.md index eb00b9706cc..b9095c139ba 100644 --- a/docs/examples/1.3.x/server-kotlin/java/storage/delete-file.md +++ b/docs/examples/1.3.x/server-kotlin/java/storage/delete-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/storage/get-bucket.md b/docs/examples/1.3.x/server-kotlin/java/storage/get-bucket.md index 2157dd7424c..f44d23fe902 100644 --- a/docs/examples/1.3.x/server-kotlin/java/storage/get-bucket.md +++ b/docs/examples/1.3.x/server-kotlin/java/storage/get-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/storage/get-file-download.md b/docs/examples/1.3.x/server-kotlin/java/storage/get-file-download.md index 8eef7e347e1..0b1207a0178 100644 --- a/docs/examples/1.3.x/server-kotlin/java/storage/get-file-download.md +++ b/docs/examples/1.3.x/server-kotlin/java/storage/get-file-download.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/storage/get-file-preview.md b/docs/examples/1.3.x/server-kotlin/java/storage/get-file-preview.md index 275e803000d..1356607a327 100644 --- a/docs/examples/1.3.x/server-kotlin/java/storage/get-file-preview.md +++ b/docs/examples/1.3.x/server-kotlin/java/storage/get-file-preview.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/storage/get-file-view.md b/docs/examples/1.3.x/server-kotlin/java/storage/get-file-view.md index adc0407c358..d5aa220f23d 100644 --- a/docs/examples/1.3.x/server-kotlin/java/storage/get-file-view.md +++ b/docs/examples/1.3.x/server-kotlin/java/storage/get-file-view.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/storage/get-file.md b/docs/examples/1.3.x/server-kotlin/java/storage/get-file.md index 4cb6fe6db31..0bd4f682b13 100644 --- a/docs/examples/1.3.x/server-kotlin/java/storage/get-file.md +++ b/docs/examples/1.3.x/server-kotlin/java/storage/get-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/storage/list-buckets.md b/docs/examples/1.3.x/server-kotlin/java/storage/list-buckets.md index 49c29cad2da..e3a69b43d9f 100644 --- a/docs/examples/1.3.x/server-kotlin/java/storage/list-buckets.md +++ b/docs/examples/1.3.x/server-kotlin/java/storage/list-buckets.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/storage/list-files.md b/docs/examples/1.3.x/server-kotlin/java/storage/list-files.md index 59719e530f2..dc87428ebbc 100644 --- a/docs/examples/1.3.x/server-kotlin/java/storage/list-files.md +++ b/docs/examples/1.3.x/server-kotlin/java/storage/list-files.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/storage/update-bucket.md b/docs/examples/1.3.x/server-kotlin/java/storage/update-bucket.md index 05483ea7252..08c77804e22 100644 --- a/docs/examples/1.3.x/server-kotlin/java/storage/update-bucket.md +++ b/docs/examples/1.3.x/server-kotlin/java/storage/update-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/storage/update-file.md b/docs/examples/1.3.x/server-kotlin/java/storage/update-file.md index 05385c2b88f..d2a1b6c4272 100644 --- a/docs/examples/1.3.x/server-kotlin/java/storage/update-file.md +++ b/docs/examples/1.3.x/server-kotlin/java/storage/update-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/teams/create-membership.md b/docs/examples/1.3.x/server-kotlin/java/teams/create-membership.md index 0ad2dd1bf07..dd27a70a80e 100644 --- a/docs/examples/1.3.x/server-kotlin/java/teams/create-membership.md +++ b/docs/examples/1.3.x/server-kotlin/java/teams/create-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/teams/create.md b/docs/examples/1.3.x/server-kotlin/java/teams/create.md index 4f3be33609f..75d13b61069 100644 --- a/docs/examples/1.3.x/server-kotlin/java/teams/create.md +++ b/docs/examples/1.3.x/server-kotlin/java/teams/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/teams/delete-membership.md b/docs/examples/1.3.x/server-kotlin/java/teams/delete-membership.md index e82ab293be4..26d0fba99cb 100644 --- a/docs/examples/1.3.x/server-kotlin/java/teams/delete-membership.md +++ b/docs/examples/1.3.x/server-kotlin/java/teams/delete-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/teams/delete.md b/docs/examples/1.3.x/server-kotlin/java/teams/delete.md index fa805ebd4d4..7699d575bf7 100644 --- a/docs/examples/1.3.x/server-kotlin/java/teams/delete.md +++ b/docs/examples/1.3.x/server-kotlin/java/teams/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/teams/get-membership.md b/docs/examples/1.3.x/server-kotlin/java/teams/get-membership.md index fc00d438731..e901b4438ed 100644 --- a/docs/examples/1.3.x/server-kotlin/java/teams/get-membership.md +++ b/docs/examples/1.3.x/server-kotlin/java/teams/get-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/teams/get-prefs.md b/docs/examples/1.3.x/server-kotlin/java/teams/get-prefs.md index b14dfc94d37..8809420b196 100644 --- a/docs/examples/1.3.x/server-kotlin/java/teams/get-prefs.md +++ b/docs/examples/1.3.x/server-kotlin/java/teams/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/teams/get.md b/docs/examples/1.3.x/server-kotlin/java/teams/get.md index 6be034b4182..ef9c02df2f6 100644 --- a/docs/examples/1.3.x/server-kotlin/java/teams/get.md +++ b/docs/examples/1.3.x/server-kotlin/java/teams/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/teams/list-memberships.md b/docs/examples/1.3.x/server-kotlin/java/teams/list-memberships.md index 0b9055f8169..8abf4644900 100644 --- a/docs/examples/1.3.x/server-kotlin/java/teams/list-memberships.md +++ b/docs/examples/1.3.x/server-kotlin/java/teams/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/teams/list.md b/docs/examples/1.3.x/server-kotlin/java/teams/list.md index 22a9d51d5fd..5f0540e6c46 100644 --- a/docs/examples/1.3.x/server-kotlin/java/teams/list.md +++ b/docs/examples/1.3.x/server-kotlin/java/teams/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/teams/update-membership-roles.md b/docs/examples/1.3.x/server-kotlin/java/teams/update-membership-roles.md index 291417da5ac..c485c0c0e69 100644 --- a/docs/examples/1.3.x/server-kotlin/java/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/server-kotlin/java/teams/update-membership-roles.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/teams/update-membership-status.md b/docs/examples/1.3.x/server-kotlin/java/teams/update-membership-status.md index 64e69663d42..54ea9877155 100644 --- a/docs/examples/1.3.x/server-kotlin/java/teams/update-membership-status.md +++ b/docs/examples/1.3.x/server-kotlin/java/teams/update-membership-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/teams/update-name.md b/docs/examples/1.3.x/server-kotlin/java/teams/update-name.md index 3d95ccb9d25..317113b6167 100644 --- a/docs/examples/1.3.x/server-kotlin/java/teams/update-name.md +++ b/docs/examples/1.3.x/server-kotlin/java/teams/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/teams/update-prefs.md b/docs/examples/1.3.x/server-kotlin/java/teams/update-prefs.md index 674bc6424df..7667e504ba4 100644 --- a/docs/examples/1.3.x/server-kotlin/java/teams/update-prefs.md +++ b/docs/examples/1.3.x/server-kotlin/java/teams/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/java/users/create-argon2user.md b/docs/examples/1.3.x/server-kotlin/java/users/create-argon2user.md index 47ac52c0863..0f1faf77e5c 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/create-argon2user.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/create-argon2user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/create-bcrypt-user.md b/docs/examples/1.3.x/server-kotlin/java/users/create-bcrypt-user.md index 91989dff0fe..3c34190dd3f 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/create-bcrypt-user.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/create-bcrypt-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/create-m-d5user.md b/docs/examples/1.3.x/server-kotlin/java/users/create-m-d5user.md index 35de18d1a34..be38f913a6c 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/create-m-d5user.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/create-m-d5user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/create-p-h-pass-user.md b/docs/examples/1.3.x/server-kotlin/java/users/create-p-h-pass-user.md index 7501f02f2f5..718f4100eb4 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/create-p-h-pass-user.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/create-p-h-pass-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/create-s-h-a-user.md b/docs/examples/1.3.x/server-kotlin/java/users/create-s-h-a-user.md index ae26de55437..e67c8745422 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/create-s-h-a-user.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/create-s-h-a-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/create-scrypt-modified-user.md b/docs/examples/1.3.x/server-kotlin/java/users/create-scrypt-modified-user.md index da0936a01b3..7a665a7c945 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/create-scrypt-modified-user.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/create-scrypt-modified-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/create-scrypt-user.md b/docs/examples/1.3.x/server-kotlin/java/users/create-scrypt-user.md index 9b48e06fbd2..9a99af84107 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/create-scrypt-user.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/create-scrypt-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/create.md b/docs/examples/1.3.x/server-kotlin/java/users/create.md index 97aad153029..c9b3c8558ee 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/create.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/delete-session.md b/docs/examples/1.3.x/server-kotlin/java/users/delete-session.md index 84153284065..dfde18e516f 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/delete-session.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/delete-sessions.md b/docs/examples/1.3.x/server-kotlin/java/users/delete-sessions.md index 9a2284c493b..45ed56eb53b 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/delete-sessions.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/delete.md b/docs/examples/1.3.x/server-kotlin/java/users/delete.md index 893a4d37940..7120f8035ca 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/delete.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/get-prefs.md b/docs/examples/1.3.x/server-kotlin/java/users/get-prefs.md index 664843e32c8..2c3190194a0 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/get-prefs.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/get.md b/docs/examples/1.3.x/server-kotlin/java/users/get.md index 1be96aee11f..43d32f8d1a2 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/get.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/list-logs.md b/docs/examples/1.3.x/server-kotlin/java/users/list-logs.md index 08ace35a19c..df4964211c1 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/list-logs.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/list-memberships.md b/docs/examples/1.3.x/server-kotlin/java/users/list-memberships.md index 503dbcb10ab..89c90c8cc88 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/list-memberships.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/list-sessions.md b/docs/examples/1.3.x/server-kotlin/java/users/list-sessions.md index efe091fe74e..8ea8833c2e0 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/list-sessions.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/list.md b/docs/examples/1.3.x/server-kotlin/java/users/list.md index d591bce79e1..0ca79280613 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/list.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/update-email-verification.md b/docs/examples/1.3.x/server-kotlin/java/users/update-email-verification.md index 3d6d205bce0..91b989b6681 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/update-email-verification.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/update-email-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/update-email.md b/docs/examples/1.3.x/server-kotlin/java/users/update-email.md index d0e9b17c1da..2d29d4cab1f 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/update-email.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/update-name.md b/docs/examples/1.3.x/server-kotlin/java/users/update-name.md index e16f539bdc4..9df5a00fd36 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/update-name.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/update-password.md b/docs/examples/1.3.x/server-kotlin/java/users/update-password.md index c94e6dd77b6..2d2f87ea024 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/update-password.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/update-phone-verification.md b/docs/examples/1.3.x/server-kotlin/java/users/update-phone-verification.md index 8c9a26d6093..ac7796c0415 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/update-phone-verification.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/update-phone.md b/docs/examples/1.3.x/server-kotlin/java/users/update-phone.md index 4a2accb7933..007d78dfd37 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/update-phone.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/update-prefs.md b/docs/examples/1.3.x/server-kotlin/java/users/update-prefs.md index b12a5d8e4f0..655ab79f5b6 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/update-prefs.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/java/users/update-status.md b/docs/examples/1.3.x/server-kotlin/java/users/update-status.md index 012142cad7b..d4c753e8d88 100644 --- a/docs/examples/1.3.x/server-kotlin/java/users/update-status.md +++ b/docs/examples/1.3.x/server-kotlin/java/users/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/create-phone-verification.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/create-phone-verification.md index e18d4ce13b2..9af377fed56 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/create-phone-verification.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/create-phone-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/create-recovery.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/create-recovery.md index a219cb8196b..5a207d31f28 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/create-recovery.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/create-recovery.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/create-verification.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/create-verification.md index 33846f1dba6..6ba8071254c 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/create-verification.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/create-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/delete-session.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/delete-session.md index 60aa4f26046..76e71066c56 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/delete-session.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/delete-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/delete-sessions.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/delete-sessions.md index a16622a526c..ac82578c8e1 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/delete-sessions.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/delete-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/get-prefs.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/get-prefs.md index dbbba1d98f6..eba56b21df7 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/get-prefs.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/get-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/get-session.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/get-session.md index 07861109b65..98b112b9122 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/get-session.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/get-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/get.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/get.md index 1fb002ae240..95f54906520 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/get.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/list-logs.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/list-logs.md index daddd758430..45ba397f94e 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/list-logs.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/list-logs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/list-sessions.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/list-sessions.md index 132a5da23b2..6420e6afdb5 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/list-sessions.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/list-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-email.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-email.md index 1127bbc2b28..0c9216f9238 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-email.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-email.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-name.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-name.md index 3de89a503ea..e5fb2264c4f 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-name.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-name.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-password.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-password.md index df92d9e9285..36ea44466bb 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-password.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-password.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-phone-verification.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-phone-verification.md index 0ed51d30c21..7e0bb4905c2 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-phone-verification.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-phone-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-phone.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-phone.md index 9c823bb6ac9..334f0fe1726 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-phone.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-phone.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-prefs.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-prefs.md index 6226269a1f1..542ddcc739a 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-prefs.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-recovery.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-recovery.md index 1b676c1ad52..d0b04380e23 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-recovery.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-recovery.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-session.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-session.md index bd3d28e3b82..61a3289047d 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-session.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-status.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-status.md index 3ed06279069..4f6562528d8 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-status.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-status.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-verification.md b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-verification.md index e73e555c602..288750a4712 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/account/update-verification.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/account/update-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-browser.md b/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-browser.md index e9f6eb2919f..7dddeea92c0 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-browser.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-browser.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-credit-card.md b/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-credit-card.md index c3413ac6442..3c56eb7ca99 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-favicon.md b/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-favicon.md index cd1ea0c7b37..2e27b70a011 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-favicon.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-favicon.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-flag.md b/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-flag.md index a81c59ae60b..e095c7b602c 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-flag.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-flag.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-image.md b/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-image.md index 09cacde6f89..fd2e0c61497 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-image.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-image.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-initials.md b/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-initials.md index ba46fb0d292..c42703969de 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-initials.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-initials.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-q-r.md b/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-q-r.md index c43aabcfe3a..2fc413de2bc 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-q-r.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/avatars/get-q-r.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-boolean-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-boolean-attribute.md index 22de12384d1..5a4e85568ea 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-boolean-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-boolean-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-collection.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-collection.md index 9ba70cf2fec..c48d2d49a23 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-collection.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-collection.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-datetime-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-datetime-attribute.md index d410244ec81..9fe6efab3aa 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-datetime-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-datetime-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-document.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-document.md index 95e5977b126..58bc1034015 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-document.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-email-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-email-attribute.md index 292f31f5254..081557e950c 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-email-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-email-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-enum-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-enum-attribute.md index 99008a479b2..e951b71b149 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-enum-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-enum-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-float-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-float-attribute.md index 68149625028..c26e5d37cc9 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-float-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-float-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-index.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-index.md index 42b3dbe7e16..d635002a12f 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-index.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-index.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-integer-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-integer-attribute.md index 57b2ff66a73..eafa05417a9 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-integer-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-integer-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-ip-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-ip-attribute.md index f941b82c9e6..daa18f083b7 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-ip-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-ip-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-relationship-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-relationship-attribute.md index 22ebc4a5c76..a9a65f86a9b 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-relationship-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-relationship-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-string-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-string-attribute.md index c5d3d52853f..99930484773 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-string-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-string-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-url-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-url-attribute.md index 8cd0731da13..238c73b7cc3 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-url-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create-url-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create.md index b70e39e4e9e..15c83e2cb8a 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/create.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-attribute.md index fef7a45cc40..9dddae53fcc 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-collection.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-collection.md index 676359331af..4fb66423e09 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-collection.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-collection.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-document.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-document.md index 2bf047fe4eb..361218721bc 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-document.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-index.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-index.md index 59bd149224f..e54aa398973 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-index.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete-index.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete.md index f927901f098..34d855ce238 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/delete.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-attribute.md index 4bba2dfa163..d3840b13b5c 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-collection.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-collection.md index 76ff9a1962f..e7127649cd8 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-collection.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-collection.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-document.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-document.md index 8bacaa57c2f..da5761f085f 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-document.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-index.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-index.md index 2d588dee731..d91f52b1116 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-index.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/get-index.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/get.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/get.md index 5584d4dd878..1453534929d 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/get.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-attributes.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-attributes.md index c0a5da53391..df870992470 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-attributes.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-attributes.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-collections.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-collections.md index f563c431a72..8035796f102 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-collections.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-collections.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-documents.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-documents.md index c081013fa03..df52ef1ab6e 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-documents.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-documents.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-indexes.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-indexes.md index e8f659ebf35..a51586d4c3c 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-indexes.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/list-indexes.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/list.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/list.md index 6ffece0bd53..d8c0090988b 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/list.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/list.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-boolean-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-boolean-attribute.md index b74ad795471..ab0c1e23ac1 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-boolean-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-boolean-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-collection.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-collection.md index f6ccffef9d1..57aba213726 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-collection.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-collection.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-datetime-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-datetime-attribute.md index 013e437db5a..e50375fa607 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-datetime-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-datetime-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-document.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-document.md index 10ff4c4b4c0..4abc8c5e8e8 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-document.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-email-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-email-attribute.md index 39ca4939ce0..ace50c67025 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-email-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-email-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-enum-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-enum-attribute.md index ece9f22c76a..c13303e9bb5 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-enum-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-enum-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-float-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-float-attribute.md index ed9ec055e8e..951dba57236 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-float-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-float-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-integer-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-integer-attribute.md index e881b01fa61..2bf2f0c3184 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-integer-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-integer-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-ip-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-ip-attribute.md index 5ebe893ed58..7f443013820 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-ip-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-ip-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-relationship-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-relationship-attribute.md index 9c0ffecae65..b04e76c0dd5 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-relationship-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-relationship-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-string-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-string-attribute.md index c8db1709547..ff99f7d068d 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-string-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-string-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-url-attribute.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-url-attribute.md index 71d9bde8487..03ab3c4a747 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-url-attribute.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update-url-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update.md b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update.md index d465a8dc3f4..a8c9dce5f5f 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/databases/update.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/databases/update.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-build.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-build.md index 62f9d1addd3..fafed65c354 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-build.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-build.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-deployment.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-deployment.md index c94c3fa5b8b..695fdc7f290 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-deployment.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.models.InputFile import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-execution.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-execution.md index 62bce1fde01..13f476127f5 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-execution.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-execution.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-variable.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-variable.md index 6b23614d113..5b8bd6c6337 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-variable.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/create-variable.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/create.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/create.md index fa10f995ed8..4c0d91081fb 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/create.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/delete-deployment.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/delete-deployment.md index 5187ba44195..57728a9ddd4 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/delete-deployment.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/delete-deployment.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/delete-variable.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/delete-variable.md index f0fe4a3d860..9d3c95e173e 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/delete-variable.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/delete-variable.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/delete.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/delete.md index f12095b5a89..b5a13223800 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/delete.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/delete.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/get-deployment.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/get-deployment.md index 4653e61f0e8..bd21f502454 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/get-deployment.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/get-deployment.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/get-execution.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/get-execution.md index 929a003a18c..517a3499af3 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/get-execution.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/get-execution.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/get-variable.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/get-variable.md index ce42276921b..ee73353aa09 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/get-variable.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/get-variable.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/get.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/get.md index 9261ab897ad..4c47e68d91a 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/get.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-deployments.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-deployments.md index 3ec2c810eef..c9cfa4be08e 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-deployments.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-deployments.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-executions.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-executions.md index 5378c79dbcb..06f1bdfdf18 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-executions.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-executions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-runtimes.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-runtimes.md index 0e777cd1fe7..abe677c0347 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-runtimes.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-runtimes.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-variables.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-variables.md index 10e74534f4b..729ade920cd 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-variables.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/list-variables.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/list.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/list.md index a5f4f0d325a..6aeafdc2580 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/list.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/list.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/update-deployment.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/update-deployment.md index 14b147384f5..8c0a93fc7a8 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/update-deployment.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/update-deployment.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/update-variable.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/update-variable.md index 1e0f3bbe5f3..e9990d56d11 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/update-variable.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/update-variable.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/functions/update.md b/docs/examples/1.3.x/server-kotlin/kotlin/functions/update.md index f8aed9d421d..126982018b6 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/functions/update.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/functions/update.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/graphql/mutation.md b/docs/examples/1.3.x/server-kotlin/kotlin/graphql/mutation.md index aed06cd7a6c..82c2c19fd21 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/graphql/mutation.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/graphql/mutation.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/graphql/query.md b/docs/examples/1.3.x/server-kotlin/kotlin/graphql/query.md index bd29d431c4c..a271566de16 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/graphql/query.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/graphql/query.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-antivirus.md b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-antivirus.md index e387fe0d951..d858d2189f2 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-antivirus.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-antivirus.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-cache.md b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-cache.md index 7aca9dd0080..daa7fb646eb 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-cache.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-cache.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-d-b.md b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-d-b.md index 8e719142bb0..496c7216f25 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-d-b.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-d-b.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-certificates.md b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-certificates.md index f4163517058..31c83bd8919 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-certificates.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-certificates.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-functions.md b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-functions.md index b55241d8f27..d7653c3a7d7 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-functions.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-functions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-logs.md b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-logs.md index fb634ec63c6..1446de4c16d 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-logs.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-logs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-webhooks.md b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-webhooks.md index bf4629d259a..11c9b7a6211 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-webhooks.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-queue-webhooks.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-storage-local.md b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-storage-local.md index f204168bc4d..b0087b6fb28 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-storage-local.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-storage-local.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-time.md b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-time.md index 35f3bb9bd67..8a9645a42bb 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/health/get-time.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/health/get-time.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/health/get.md b/docs/examples/1.3.x/server-kotlin/kotlin/health/get.md index b547be9aa57..a790b949c46 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/health/get.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/health/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/locale/get.md b/docs/examples/1.3.x/server-kotlin/kotlin/locale/get.md index 1d84651fea4..25bf0e1d0b2 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/locale/get.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/locale/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-continents.md b/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-continents.md index bd9ad1825b4..bcaad832cd8 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-continents.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-continents.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-countries-e-u.md b/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-countries-e-u.md index 5d3258335eb..b1e5671fb3b 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-countries-e-u.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-countries-phones.md b/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-countries-phones.md index e0f2ae3c6b0..1a9a2585ca4 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-countries-phones.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-countries.md b/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-countries.md index 626d38133e7..cd8276e49b4 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-countries.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-countries.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-currencies.md b/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-currencies.md index 6457056d70e..061a5c82cda 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-currencies.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-currencies.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-languages.md b/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-languages.md index 437b1c3fe92..6ed17be85e9 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-languages.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/locale/list-languages.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/storage/create-bucket.md b/docs/examples/1.3.x/server-kotlin/kotlin/storage/create-bucket.md index 27d73ffd070..1adf94ca061 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/storage/create-bucket.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/storage/create-bucket.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/storage/create-file.md b/docs/examples/1.3.x/server-kotlin/kotlin/storage/create-file.md index 1bdf5e48932..354e3bf94c4 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/storage/create-file.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/storage/create-file.md @@ -3,7 +3,7 @@ import io.appwrite.models.InputFile import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/storage/delete-bucket.md b/docs/examples/1.3.x/server-kotlin/kotlin/storage/delete-bucket.md index 3730a052987..a70b731423a 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/storage/delete-bucket.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/storage/delete-bucket.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/storage/delete-file.md b/docs/examples/1.3.x/server-kotlin/kotlin/storage/delete-file.md index dabf805e8b9..c6a2639376a 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/storage/delete-file.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/storage/delete-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-bucket.md b/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-bucket.md index 0c7fcc137c3..c2abb7b3386 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-bucket.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-bucket.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file-download.md b/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file-download.md index 6c3c1fb4aea..67bcc5d5b41 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file-download.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file-download.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file-preview.md b/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file-preview.md index 372416ed12f..4b75e70d3e3 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file-preview.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file-preview.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file-view.md b/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file-view.md index 4b23cfc9c6f..691acb10550 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file-view.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file-view.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file.md b/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file.md index 211713c7b66..0f98d900a12 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/storage/get-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/storage/list-buckets.md b/docs/examples/1.3.x/server-kotlin/kotlin/storage/list-buckets.md index 8c4c7bdaac8..b6bce3ace32 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/storage/list-buckets.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/storage/list-buckets.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/storage/list-files.md b/docs/examples/1.3.x/server-kotlin/kotlin/storage/list-files.md index 5243ed74cc5..af1c301c1cf 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/storage/list-files.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/storage/list-files.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/storage/update-bucket.md b/docs/examples/1.3.x/server-kotlin/kotlin/storage/update-bucket.md index 3de3b5460e8..b0117be004d 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/storage/update-bucket.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/storage/update-bucket.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/storage/update-file.md b/docs/examples/1.3.x/server-kotlin/kotlin/storage/update-file.md index 3d7fb9ab269..8b85210d15f 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/storage/update-file.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/storage/update-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/teams/create-membership.md b/docs/examples/1.3.x/server-kotlin/kotlin/teams/create-membership.md index 44f444bc100..80184f0afda 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/teams/create-membership.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/teams/create-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/teams/create.md b/docs/examples/1.3.x/server-kotlin/kotlin/teams/create.md index 9e080a13467..5b0105bf712 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/teams/create.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/teams/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/teams/delete-membership.md b/docs/examples/1.3.x/server-kotlin/kotlin/teams/delete-membership.md index 16e73e48849..397a9b794ad 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/teams/delete-membership.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/teams/delete-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/teams/delete.md b/docs/examples/1.3.x/server-kotlin/kotlin/teams/delete.md index c015a772c87..ab0b1c56328 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/teams/delete.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/teams/delete.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/teams/get-membership.md b/docs/examples/1.3.x/server-kotlin/kotlin/teams/get-membership.md index 4f2bed38002..bfb8ea94063 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/teams/get-membership.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/teams/get-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/teams/get-prefs.md b/docs/examples/1.3.x/server-kotlin/kotlin/teams/get-prefs.md index 1bfcf07f7a5..7af89d21663 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/teams/get-prefs.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/teams/get-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/teams/get.md b/docs/examples/1.3.x/server-kotlin/kotlin/teams/get.md index 402aeb1bebc..a6f43f8f189 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/teams/get.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/teams/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/teams/list-memberships.md b/docs/examples/1.3.x/server-kotlin/kotlin/teams/list-memberships.md index e9eae80f0b0..0da1afdfc1b 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/teams/list-memberships.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/teams/list-memberships.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/teams/list.md b/docs/examples/1.3.x/server-kotlin/kotlin/teams/list.md index aa10ca58fd0..43196f1d908 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/teams/list.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/teams/list.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-membership-roles.md b/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-membership-roles.md index e9ea1f18ab1..88a020c7377 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-membership-roles.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-membership-status.md b/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-membership-status.md index 7fa6bd837c2..e9dc0d91eba 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-membership-status.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-membership-status.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-name.md b/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-name.md index d717c371bcd..d27c8243191 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-name.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-name.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-prefs.md b/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-prefs.md index 62fc9254150..d70eafb4009 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-prefs.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/teams/update-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/create-argon2user.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/create-argon2user.md index 438363aed32..81a1f9960f9 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/create-argon2user.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/create-argon2user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/create-bcrypt-user.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/create-bcrypt-user.md index 977782ce3cb..15d101773a8 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/create-bcrypt-user.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/create-bcrypt-user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/create-m-d5user.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/create-m-d5user.md index 6d6451f3769..86e13b9f1bd 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/create-m-d5user.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/create-m-d5user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/create-p-h-pass-user.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/create-p-h-pass-user.md index c50b2c1da46..cadb580527d 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/create-p-h-pass-user.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/create-p-h-pass-user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/create-s-h-a-user.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/create-s-h-a-user.md index 708935c970c..979cc2a01b1 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/create-s-h-a-user.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/create-s-h-a-user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md index d49f7db4717..b2164d5aa84 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/create-scrypt-user.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/create-scrypt-user.md index aa006fb0db2..e5cabe92b70 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/create-scrypt-user.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/create-scrypt-user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/create.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/create.md index ae319d8cd82..fcc5e355ecf 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/create.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/delete-session.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/delete-session.md index f3a0264aa13..7b96b242135 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/delete-session.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/delete-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/delete-sessions.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/delete-sessions.md index 5c0070c027b..580031ecac6 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/delete-sessions.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/delete-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/delete.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/delete.md index 30ee8f3d7a0..2e0013f0ab4 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/delete.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/delete.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/get-prefs.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/get-prefs.md index 564489c398d..a7ffd650bc6 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/get-prefs.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/get-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/get.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/get.md index fd7e4b7a1b9..f55878912ea 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/get.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/list-logs.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/list-logs.md index 691007588ec..5b3111f5529 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/list-logs.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/list-logs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/list-memberships.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/list-memberships.md index 316889e8943..0059c2dc68c 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/list-memberships.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/list-memberships.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/list-sessions.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/list-sessions.md index 1d7e950425b..fd9a7716d57 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/list-sessions.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/list-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/list.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/list.md index e973a26e524..3a74a207570 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/list.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/list.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-email-verification.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-email-verification.md index b4f97bbcab5..ea16acf33bd 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-email-verification.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-email-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-email.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-email.md index c6dfaefd2f0..4adad691848 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-email.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-email.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-name.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-name.md index 1d46c7a8fcd..b60d5656208 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-name.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-name.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-password.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-password.md index f96158faa99..b6bfe65a9ae 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-password.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-password.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-phone-verification.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-phone-verification.md index 909803bd94d..fe6bcf39c09 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-phone-verification.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-phone-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-phone.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-phone.md index 073dd6640a8..3d243c0db7c 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-phone.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-phone.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-prefs.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-prefs.md index 127035ca488..c05713d316f 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-prefs.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-status.md b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-status.md index 5899ed360f5..1966d5d6d05 100644 --- a/docs/examples/1.3.x/server-kotlin/kotlin/users/update-status.md +++ b/docs/examples/1.3.x/server-kotlin/kotlin/users/update-status.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/create-phone-verification.md b/docs/examples/1.3.x/server-nodejs/examples/account/create-phone-verification.md index f381495f243..cd9bc62e7a2 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/create-phone-verification.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/create-phone-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/create-recovery.md b/docs/examples/1.3.x/server-nodejs/examples/account/create-recovery.md index f4c5ae98de3..53c6060edff 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/create-recovery.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/create-recovery.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/create-verification.md b/docs/examples/1.3.x/server-nodejs/examples/account/create-verification.md index 04585621eb0..1df32eb7119 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/create-verification.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/create-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/delete-session.md b/docs/examples/1.3.x/server-nodejs/examples/account/delete-session.md index 74f38698591..182d67e2c16 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/delete-session.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/delete-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/delete-sessions.md b/docs/examples/1.3.x/server-nodejs/examples/account/delete-sessions.md index 0968c30b927..dbf861cf31f 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/delete-sessions.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/delete-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/get-prefs.md b/docs/examples/1.3.x/server-nodejs/examples/account/get-prefs.md index 8bd5d97c25f..04e6ac307a2 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/get-prefs.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/get-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/get-session.md b/docs/examples/1.3.x/server-nodejs/examples/account/get-session.md index 3abb677fbe2..23d06a672b7 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/get-session.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/get-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/get.md b/docs/examples/1.3.x/server-nodejs/examples/account/get.md index d4f4066fb19..3b0da54b7a3 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/get.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/list-logs.md b/docs/examples/1.3.x/server-nodejs/examples/account/list-logs.md index 890e0d12d33..25cfab189df 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/list-logs.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/list-logs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/list-sessions.md b/docs/examples/1.3.x/server-nodejs/examples/account/list-sessions.md index 68e97ada316..fe753dd9968 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/list-sessions.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/list-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/update-email.md b/docs/examples/1.3.x/server-nodejs/examples/account/update-email.md index 388e2581bb4..324dfa7db6d 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/update-email.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/update-email.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/update-name.md b/docs/examples/1.3.x/server-nodejs/examples/account/update-name.md index 09846527126..8ae6bbf552b 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/update-name.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/update-name.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/update-password.md b/docs/examples/1.3.x/server-nodejs/examples/account/update-password.md index b46500fd3c9..b2e638c28b6 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/update-password.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/update-password.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/update-phone-verification.md b/docs/examples/1.3.x/server-nodejs/examples/account/update-phone-verification.md index 1aa4042f365..66c3ec8981f 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/update-phone-verification.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/update-phone-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/update-phone.md b/docs/examples/1.3.x/server-nodejs/examples/account/update-phone.md index 37124d81aa6..02270ec33e7 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/update-phone.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/update-phone.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/update-prefs.md b/docs/examples/1.3.x/server-nodejs/examples/account/update-prefs.md index 6948706abbd..6a9e10bf0c9 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/update-prefs.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/update-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/update-recovery.md b/docs/examples/1.3.x/server-nodejs/examples/account/update-recovery.md index 74f70f59c78..17dccf0e8b0 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/update-recovery.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/update-recovery.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/update-session.md b/docs/examples/1.3.x/server-nodejs/examples/account/update-session.md index b0b932524fc..ae1d9ab0653 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/update-session.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/update-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/update-status.md b/docs/examples/1.3.x/server-nodejs/examples/account/update-status.md index 277243b824f..4c13b5eec13 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/update-status.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/update-status.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/account/update-verification.md b/docs/examples/1.3.x/server-nodejs/examples/account/update-verification.md index 6a7fbbf99c1..03d663a6296 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/account/update-verification.md +++ b/docs/examples/1.3.x/server-nodejs/examples/account/update-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/avatars/get-browser.md b/docs/examples/1.3.x/server-nodejs/examples/avatars/get-browser.md index c05595ad67d..d88d7571dec 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/avatars/get-browser.md +++ b/docs/examples/1.3.x/server-nodejs/examples/avatars/get-browser.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/avatars/get-credit-card.md b/docs/examples/1.3.x/server-nodejs/examples/avatars/get-credit-card.md index 8fbd37d29ae..86cfe170598 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/server-nodejs/examples/avatars/get-credit-card.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/avatars/get-favicon.md b/docs/examples/1.3.x/server-nodejs/examples/avatars/get-favicon.md index 2924e394a07..acc780ccab1 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/avatars/get-favicon.md +++ b/docs/examples/1.3.x/server-nodejs/examples/avatars/get-favicon.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/avatars/get-flag.md b/docs/examples/1.3.x/server-nodejs/examples/avatars/get-flag.md index 50d611c3994..09efae01460 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/avatars/get-flag.md +++ b/docs/examples/1.3.x/server-nodejs/examples/avatars/get-flag.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/avatars/get-image.md b/docs/examples/1.3.x/server-nodejs/examples/avatars/get-image.md index 3b2bb517d1b..6cf825ff3e1 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/avatars/get-image.md +++ b/docs/examples/1.3.x/server-nodejs/examples/avatars/get-image.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/avatars/get-initials.md b/docs/examples/1.3.x/server-nodejs/examples/avatars/get-initials.md index 4afda6f5472..942f10ce51a 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/avatars/get-initials.md +++ b/docs/examples/1.3.x/server-nodejs/examples/avatars/get-initials.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/avatars/get-q-r.md b/docs/examples/1.3.x/server-nodejs/examples/avatars/get-q-r.md index d2d24e2055e..0b46c30ed60 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/avatars/get-q-r.md +++ b/docs/examples/1.3.x/server-nodejs/examples/avatars/get-q-r.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/create-boolean-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/create-boolean-attribute.md index 12a70102cae..03b9cbd67a9 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/create-boolean-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/create-collection.md b/docs/examples/1.3.x/server-nodejs/examples/databases/create-collection.md index 13ec4e037fe..2ff164d5539 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/create-collection.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/create-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/create-datetime-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/create-datetime-attribute.md index 70609a84e72..7c8710f80dd 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/create-datetime-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/create-document.md b/docs/examples/1.3.x/server-nodejs/examples/databases/create-document.md index f5fa7a50a6f..69d75e1b53e 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/create-document.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/create-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/create-email-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/create-email-attribute.md index 2229dfe7f9b..a14075c62ba 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/create-email-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/create-email-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/create-enum-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/create-enum-attribute.md index cd9daca6032..074e0098edf 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/create-enum-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/create-float-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/create-float-attribute.md index a12c4f44206..d818659c337 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/create-float-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/create-float-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/create-index.md b/docs/examples/1.3.x/server-nodejs/examples/databases/create-index.md index 66c3e519fea..9064cbf61b5 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/create-index.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/create-index.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/create-integer-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/create-integer-attribute.md index fa693d28def..051df7214f7 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/create-integer-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/create-ip-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/create-ip-attribute.md index 1e8985a2bdc..95c465d527e 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/create-ip-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/create-relationship-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/create-relationship-attribute.md index f680d1c03a5..efaa37d6408 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/create-relationship-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/create-string-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/create-string-attribute.md index bfb4fbfc3ff..9305983c337 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/create-string-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/create-string-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/create-url-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/create-url-attribute.md index e6a585f76bc..47c491916b8 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/create-url-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/create-url-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/create.md b/docs/examples/1.3.x/server-nodejs/examples/databases/create.md index 4e04f026bdc..451e39b410f 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/create.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/delete-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/delete-attribute.md index 3c65f62ef57..a7ee957de8a 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/delete-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/delete-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/delete-collection.md b/docs/examples/1.3.x/server-nodejs/examples/databases/delete-collection.md index 047fa268461..745042ec6e5 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/delete-collection.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/delete-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/delete-document.md b/docs/examples/1.3.x/server-nodejs/examples/databases/delete-document.md index a6f3fa58ca5..0081caa4990 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/delete-document.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/delete-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/delete-index.md b/docs/examples/1.3.x/server-nodejs/examples/databases/delete-index.md index 42d73104a09..e147eb1043d 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/delete-index.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/delete-index.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/delete.md b/docs/examples/1.3.x/server-nodejs/examples/databases/delete.md index 3f39965820e..b1ecfea0a4c 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/delete.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/get-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/get-attribute.md index df6c665b750..36b0b0336e1 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/get-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/get-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/get-collection.md b/docs/examples/1.3.x/server-nodejs/examples/databases/get-collection.md index ea4ed423e8a..0d0ba0e6cbd 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/get-collection.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/get-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/get-document.md b/docs/examples/1.3.x/server-nodejs/examples/databases/get-document.md index ac07b968aee..8f641962f0f 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/get-document.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/get-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/get-index.md b/docs/examples/1.3.x/server-nodejs/examples/databases/get-index.md index c3a3d168c52..d0602952b4f 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/get-index.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/get-index.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/get.md b/docs/examples/1.3.x/server-nodejs/examples/databases/get.md index 133f496b2eb..a47ba7a403f 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/get.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/list-attributes.md b/docs/examples/1.3.x/server-nodejs/examples/databases/list-attributes.md index b1a494b110d..01284a5e3a7 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/list-attributes.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/list-attributes.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/list-collections.md b/docs/examples/1.3.x/server-nodejs/examples/databases/list-collections.md index c1d9fd34216..9005d7a5b1d 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/list-collections.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/list-collections.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/list-documents.md b/docs/examples/1.3.x/server-nodejs/examples/databases/list-documents.md index bf0b9156bf3..9f9751ac370 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/list-documents.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/list-documents.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/list-indexes.md b/docs/examples/1.3.x/server-nodejs/examples/databases/list-indexes.md index 57787f1d3eb..fff198fc40e 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/list-indexes.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/list-indexes.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/list.md b/docs/examples/1.3.x/server-nodejs/examples/databases/list.md index 5652d1e0324..2f404785701 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/list.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/update-boolean-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/update-boolean-attribute.md index 3bdfc04e5f9..c9b81852e1c 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/update-boolean-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/update-collection.md b/docs/examples/1.3.x/server-nodejs/examples/databases/update-collection.md index db74a7b9eb3..4570385adca 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/update-collection.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/update-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/update-datetime-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/update-datetime-attribute.md index 8b602d434fa..1f3b67b47b8 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/update-datetime-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/update-document.md b/docs/examples/1.3.x/server-nodejs/examples/databases/update-document.md index ca3cdb85e7c..92405e556c4 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/update-document.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/update-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/update-email-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/update-email-attribute.md index a96e89853b6..6500f99b46d 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/update-email-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/update-email-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/update-enum-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/update-enum-attribute.md index b0dfbb11dfb..c385feacdb3 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/update-enum-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/update-float-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/update-float-attribute.md index 2c0672dd999..8d6a688d898 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/update-float-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/update-float-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/update-integer-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/update-integer-attribute.md index 8016aac6000..69f652b27e5 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/update-integer-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/update-ip-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/update-ip-attribute.md index 8eab99aa35e..398b2246b10 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/update-ip-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/update-relationship-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/update-relationship-attribute.md index 699148f882d..8bab7e543f2 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/update-relationship-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/update-string-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/update-string-attribute.md index c7e6fe9b7fa..f024f13d843 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/update-string-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/update-string-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/update-url-attribute.md b/docs/examples/1.3.x/server-nodejs/examples/databases/update-url-attribute.md index d8cb42aafdc..0f58e004494 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/update-url-attribute.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/update-url-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/databases/update.md b/docs/examples/1.3.x/server-nodejs/examples/databases/update.md index 7abe11bf80a..71a6f3a77a6 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/databases/update.md +++ b/docs/examples/1.3.x/server-nodejs/examples/databases/update.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/create-build.md b/docs/examples/1.3.x/server-nodejs/examples/functions/create-build.md index fe9751e73b7..38f3717fb0a 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/create-build.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/create-build.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/create-deployment.md b/docs/examples/1.3.x/server-nodejs/examples/functions/create-deployment.md index 661afa151aa..defbd30d102 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/create-deployment.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/create-deployment.md @@ -7,7 +7,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/create-execution.md b/docs/examples/1.3.x/server-nodejs/examples/functions/create-execution.md index dc182fdd447..be5bfbe85c4 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/create-execution.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/create-execution.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/create-variable.md b/docs/examples/1.3.x/server-nodejs/examples/functions/create-variable.md index 80f3fd02573..5bb7481f6af 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/create-variable.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/create-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/create.md b/docs/examples/1.3.x/server-nodejs/examples/functions/create.md index 8600f34b825..a014f1384a9 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/create.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/delete-deployment.md b/docs/examples/1.3.x/server-nodejs/examples/functions/delete-deployment.md index 5affdf18b9a..c0b1c4e4a1d 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/delete-deployment.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/delete-deployment.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/delete-variable.md b/docs/examples/1.3.x/server-nodejs/examples/functions/delete-variable.md index 2a075fdea73..e28f991ae1d 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/delete-variable.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/delete-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/delete.md b/docs/examples/1.3.x/server-nodejs/examples/functions/delete.md index d17f01361ef..18d2f4e26c1 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/delete.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/get-deployment.md b/docs/examples/1.3.x/server-nodejs/examples/functions/get-deployment.md index d67ce4647ab..4043de8d59a 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/get-deployment.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/get-deployment.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/get-execution.md b/docs/examples/1.3.x/server-nodejs/examples/functions/get-execution.md index bbf07881386..094a1d1983a 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/get-execution.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/get-execution.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/get-variable.md b/docs/examples/1.3.x/server-nodejs/examples/functions/get-variable.md index 11ce7e2836c..8c225de4da4 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/get-variable.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/get-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/get.md b/docs/examples/1.3.x/server-nodejs/examples/functions/get.md index 54ea4812b82..469f6fbb4ef 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/get.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/list-deployments.md b/docs/examples/1.3.x/server-nodejs/examples/functions/list-deployments.md index 48194108758..505de94734f 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/list-deployments.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/list-deployments.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/list-executions.md b/docs/examples/1.3.x/server-nodejs/examples/functions/list-executions.md index f9e77a5d32f..7ec383656d5 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/list-executions.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/list-executions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/list-runtimes.md b/docs/examples/1.3.x/server-nodejs/examples/functions/list-runtimes.md index d4718613743..d9edc4a040c 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/list-runtimes.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/list-runtimes.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/list-variables.md b/docs/examples/1.3.x/server-nodejs/examples/functions/list-variables.md index e193b2b1ba7..eefc1fe27e7 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/list-variables.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/list-variables.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/list.md b/docs/examples/1.3.x/server-nodejs/examples/functions/list.md index 4f7b45e26a5..0a2c6cd72f0 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/list.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/update-deployment.md b/docs/examples/1.3.x/server-nodejs/examples/functions/update-deployment.md index 25f0e79983f..d90a98481c5 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/update-deployment.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/update-deployment.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/update-variable.md b/docs/examples/1.3.x/server-nodejs/examples/functions/update-variable.md index 86e9a698f58..8d1f6466b7f 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/update-variable.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/update-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/functions/update.md b/docs/examples/1.3.x/server-nodejs/examples/functions/update.md index d8bf23f5a9b..c6b35f2459a 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/functions/update.md +++ b/docs/examples/1.3.x/server-nodejs/examples/functions/update.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/graphql/mutation.md b/docs/examples/1.3.x/server-nodejs/examples/graphql/mutation.md index 6f9bed84260..f8f2da769c8 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/graphql/mutation.md +++ b/docs/examples/1.3.x/server-nodejs/examples/graphql/mutation.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/graphql/query.md b/docs/examples/1.3.x/server-nodejs/examples/graphql/query.md index 35cd4060cc1..0f30d77e99d 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/graphql/query.md +++ b/docs/examples/1.3.x/server-nodejs/examples/graphql/query.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/health/get-antivirus.md b/docs/examples/1.3.x/server-nodejs/examples/health/get-antivirus.md index b6e5e78a306..516d19c0759 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/health/get-antivirus.md +++ b/docs/examples/1.3.x/server-nodejs/examples/health/get-antivirus.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/health/get-cache.md b/docs/examples/1.3.x/server-nodejs/examples/health/get-cache.md index 8171c40fc6a..84dd5b07ce4 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/health/get-cache.md +++ b/docs/examples/1.3.x/server-nodejs/examples/health/get-cache.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/health/get-d-b.md b/docs/examples/1.3.x/server-nodejs/examples/health/get-d-b.md index ef1739fff0a..ce5ba7b8dcc 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/health/get-d-b.md +++ b/docs/examples/1.3.x/server-nodejs/examples/health/get-d-b.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-certificates.md b/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-certificates.md index 38dadde1b24..c89318fc384 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-certificates.md +++ b/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-certificates.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-functions.md b/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-functions.md index bc8668eda65..52d3a2e80c0 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-functions.md +++ b/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-functions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-logs.md b/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-logs.md index 918a9d9e6ce..86b9fe0fb4f 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-logs.md +++ b/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-logs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-webhooks.md b/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-webhooks.md index acf023a1886..ee73f37ef6c 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.3.x/server-nodejs/examples/health/get-queue-webhooks.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/health/get-storage-local.md b/docs/examples/1.3.x/server-nodejs/examples/health/get-storage-local.md index 76e51489fdf..d41559c5f10 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/health/get-storage-local.md +++ b/docs/examples/1.3.x/server-nodejs/examples/health/get-storage-local.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/health/get-time.md b/docs/examples/1.3.x/server-nodejs/examples/health/get-time.md index f44836ac3c2..e3d70a93ff9 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/health/get-time.md +++ b/docs/examples/1.3.x/server-nodejs/examples/health/get-time.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/health/get.md b/docs/examples/1.3.x/server-nodejs/examples/health/get.md index a66b25631fd..1198b186247 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/health/get.md +++ b/docs/examples/1.3.x/server-nodejs/examples/health/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/locale/get.md b/docs/examples/1.3.x/server-nodejs/examples/locale/get.md index 31d90c6f117..27befec21ab 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/locale/get.md +++ b/docs/examples/1.3.x/server-nodejs/examples/locale/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/locale/list-continents.md b/docs/examples/1.3.x/server-nodejs/examples/locale/list-continents.md index ffe54d34da7..346f552a14c 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/locale/list-continents.md +++ b/docs/examples/1.3.x/server-nodejs/examples/locale/list-continents.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/locale/list-countries-e-u.md b/docs/examples/1.3.x/server-nodejs/examples/locale/list-countries-e-u.md index f9aaff666a0..627c350f8e4 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/server-nodejs/examples/locale/list-countries-e-u.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/locale/list-countries-phones.md b/docs/examples/1.3.x/server-nodejs/examples/locale/list-countries-phones.md index fdd2436dc0f..0a0965ab539 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/server-nodejs/examples/locale/list-countries-phones.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/locale/list-countries.md b/docs/examples/1.3.x/server-nodejs/examples/locale/list-countries.md index 429e1887762..857b7da7cf2 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/locale/list-countries.md +++ b/docs/examples/1.3.x/server-nodejs/examples/locale/list-countries.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/locale/list-currencies.md b/docs/examples/1.3.x/server-nodejs/examples/locale/list-currencies.md index 12d82fb70f5..017b5faebfa 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/locale/list-currencies.md +++ b/docs/examples/1.3.x/server-nodejs/examples/locale/list-currencies.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/locale/list-languages.md b/docs/examples/1.3.x/server-nodejs/examples/locale/list-languages.md index 8ea2b40afc5..716a44c3300 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/locale/list-languages.md +++ b/docs/examples/1.3.x/server-nodejs/examples/locale/list-languages.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/storage/create-bucket.md b/docs/examples/1.3.x/server-nodejs/examples/storage/create-bucket.md index 9093b7c9a6d..51e0b05acb8 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/storage/create-bucket.md +++ b/docs/examples/1.3.x/server-nodejs/examples/storage/create-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/storage/create-file.md b/docs/examples/1.3.x/server-nodejs/examples/storage/create-file.md index 664005e2732..be561320dbd 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/storage/create-file.md +++ b/docs/examples/1.3.x/server-nodejs/examples/storage/create-file.md @@ -7,7 +7,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/storage/delete-bucket.md b/docs/examples/1.3.x/server-nodejs/examples/storage/delete-bucket.md index 84486c68dc4..e3368facf10 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/storage/delete-bucket.md +++ b/docs/examples/1.3.x/server-nodejs/examples/storage/delete-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/storage/delete-file.md b/docs/examples/1.3.x/server-nodejs/examples/storage/delete-file.md index c4d451c63f7..d90be0a77e6 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/storage/delete-file.md +++ b/docs/examples/1.3.x/server-nodejs/examples/storage/delete-file.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/storage/get-bucket.md b/docs/examples/1.3.x/server-nodejs/examples/storage/get-bucket.md index d0fbb94bbcc..b176e6e5755 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/storage/get-bucket.md +++ b/docs/examples/1.3.x/server-nodejs/examples/storage/get-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/storage/get-file-download.md b/docs/examples/1.3.x/server-nodejs/examples/storage/get-file-download.md index 1503d102ba2..4ad79175d26 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/storage/get-file-download.md +++ b/docs/examples/1.3.x/server-nodejs/examples/storage/get-file-download.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/storage/get-file-preview.md b/docs/examples/1.3.x/server-nodejs/examples/storage/get-file-preview.md index 19d34495ba9..164a1c63771 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/storage/get-file-preview.md +++ b/docs/examples/1.3.x/server-nodejs/examples/storage/get-file-preview.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/storage/get-file-view.md b/docs/examples/1.3.x/server-nodejs/examples/storage/get-file-view.md index 1affab8bc09..a8d5029bd0c 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/storage/get-file-view.md +++ b/docs/examples/1.3.x/server-nodejs/examples/storage/get-file-view.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/storage/get-file.md b/docs/examples/1.3.x/server-nodejs/examples/storage/get-file.md index ceba42ce1e9..06f43878e87 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/storage/get-file.md +++ b/docs/examples/1.3.x/server-nodejs/examples/storage/get-file.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/storage/list-buckets.md b/docs/examples/1.3.x/server-nodejs/examples/storage/list-buckets.md index 9945febb421..b989a0748f7 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/storage/list-buckets.md +++ b/docs/examples/1.3.x/server-nodejs/examples/storage/list-buckets.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/storage/list-files.md b/docs/examples/1.3.x/server-nodejs/examples/storage/list-files.md index fea4bae61f7..4bce540ec4a 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/storage/list-files.md +++ b/docs/examples/1.3.x/server-nodejs/examples/storage/list-files.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/storage/update-bucket.md b/docs/examples/1.3.x/server-nodejs/examples/storage/update-bucket.md index 32df1f18d8c..9cab2ca26cb 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/storage/update-bucket.md +++ b/docs/examples/1.3.x/server-nodejs/examples/storage/update-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/storage/update-file.md b/docs/examples/1.3.x/server-nodejs/examples/storage/update-file.md index 042a1645016..aa67cf0f0e9 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/storage/update-file.md +++ b/docs/examples/1.3.x/server-nodejs/examples/storage/update-file.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/teams/create-membership.md b/docs/examples/1.3.x/server-nodejs/examples/teams/create-membership.md index 34d843d934a..4f5711ac642 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/teams/create-membership.md +++ b/docs/examples/1.3.x/server-nodejs/examples/teams/create-membership.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/teams/create.md b/docs/examples/1.3.x/server-nodejs/examples/teams/create.md index 5552f829f9b..a99a2cf3f7e 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/teams/create.md +++ b/docs/examples/1.3.x/server-nodejs/examples/teams/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/teams/delete-membership.md b/docs/examples/1.3.x/server-nodejs/examples/teams/delete-membership.md index ef72e63138d..2df3e41f366 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/teams/delete-membership.md +++ b/docs/examples/1.3.x/server-nodejs/examples/teams/delete-membership.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/teams/delete.md b/docs/examples/1.3.x/server-nodejs/examples/teams/delete.md index 6f1dfaa61d0..ad358748155 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/teams/delete.md +++ b/docs/examples/1.3.x/server-nodejs/examples/teams/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/teams/get-membership.md b/docs/examples/1.3.x/server-nodejs/examples/teams/get-membership.md index d31aa9a8b61..d2e12d6ef6f 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/teams/get-membership.md +++ b/docs/examples/1.3.x/server-nodejs/examples/teams/get-membership.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/teams/get-prefs.md b/docs/examples/1.3.x/server-nodejs/examples/teams/get-prefs.md index 0ac9e95ff1b..2d24bdc6e09 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/teams/get-prefs.md +++ b/docs/examples/1.3.x/server-nodejs/examples/teams/get-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/teams/get.md b/docs/examples/1.3.x/server-nodejs/examples/teams/get.md index 0d349432428..d162cdceeb8 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/teams/get.md +++ b/docs/examples/1.3.x/server-nodejs/examples/teams/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/teams/list-memberships.md b/docs/examples/1.3.x/server-nodejs/examples/teams/list-memberships.md index ca25bcbd257..9ff92c68ff1 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/teams/list-memberships.md +++ b/docs/examples/1.3.x/server-nodejs/examples/teams/list-memberships.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/teams/list.md b/docs/examples/1.3.x/server-nodejs/examples/teams/list.md index 8610bc7dc43..e3ad03e16ef 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/teams/list.md +++ b/docs/examples/1.3.x/server-nodejs/examples/teams/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/teams/update-membership-roles.md b/docs/examples/1.3.x/server-nodejs/examples/teams/update-membership-roles.md index 26551fe0b64..93b0f23aba6 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/server-nodejs/examples/teams/update-membership-roles.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/teams/update-membership-status.md b/docs/examples/1.3.x/server-nodejs/examples/teams/update-membership-status.md index 6c46e786a08..b3c4b64f096 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/teams/update-membership-status.md +++ b/docs/examples/1.3.x/server-nodejs/examples/teams/update-membership-status.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/teams/update-name.md b/docs/examples/1.3.x/server-nodejs/examples/teams/update-name.md index 962e18f1689..660c29859d8 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/teams/update-name.md +++ b/docs/examples/1.3.x/server-nodejs/examples/teams/update-name.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/teams/update-prefs.md b/docs/examples/1.3.x/server-nodejs/examples/teams/update-prefs.md index eeeed6c7ebe..55352df9245 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/teams/update-prefs.md +++ b/docs/examples/1.3.x/server-nodejs/examples/teams/update-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/create-argon2user.md b/docs/examples/1.3.x/server-nodejs/examples/users/create-argon2user.md index 2762cc0112c..17403fa2296 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/create-argon2user.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/create-argon2user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/create-bcrypt-user.md b/docs/examples/1.3.x/server-nodejs/examples/users/create-bcrypt-user.md index 7bbdd3b883b..90f2efe43af 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/create-bcrypt-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/create-m-d5user.md b/docs/examples/1.3.x/server-nodejs/examples/users/create-m-d5user.md index 0661743da22..fdbc0f30403 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/create-m-d5user.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/create-m-d5user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/create-p-h-pass-user.md b/docs/examples/1.3.x/server-nodejs/examples/users/create-p-h-pass-user.md index 37bd7e70c54..70789ec2dd1 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/create-p-h-pass-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/create-s-h-a-user.md b/docs/examples/1.3.x/server-nodejs/examples/users/create-s-h-a-user.md index 1d0502598b6..5b96402710e 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/create-s-h-a-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/create-scrypt-modified-user.md b/docs/examples/1.3.x/server-nodejs/examples/users/create-scrypt-modified-user.md index 5a0153ec9a2..ffbab8e176f 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/create-scrypt-modified-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/create-scrypt-user.md b/docs/examples/1.3.x/server-nodejs/examples/users/create-scrypt-user.md index 83ec8d3d787..ae10dc5eee2 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/create-scrypt-user.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/create-scrypt-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/create.md b/docs/examples/1.3.x/server-nodejs/examples/users/create.md index 65ab3fae413..ceb01f37353 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/create.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/delete-session.md b/docs/examples/1.3.x/server-nodejs/examples/users/delete-session.md index 18617ba2e8a..c5ad8e39fda 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/delete-session.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/delete-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/delete-sessions.md b/docs/examples/1.3.x/server-nodejs/examples/users/delete-sessions.md index c804d7ddcff..7265c131f82 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/delete-sessions.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/delete-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/delete.md b/docs/examples/1.3.x/server-nodejs/examples/users/delete.md index 53606a7a0ae..a1e694a3dec 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/delete.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/get-prefs.md b/docs/examples/1.3.x/server-nodejs/examples/users/get-prefs.md index c60db8ac770..4683f2fe245 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/get-prefs.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/get-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/get.md b/docs/examples/1.3.x/server-nodejs/examples/users/get.md index 3bad599d4d9..27fd6b74643 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/get.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/list-logs.md b/docs/examples/1.3.x/server-nodejs/examples/users/list-logs.md index 0f76626c6e8..40a1c8c8ba8 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/list-logs.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/list-logs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/list-memberships.md b/docs/examples/1.3.x/server-nodejs/examples/users/list-memberships.md index 81e0c4bc8fc..6a83ec28576 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/list-memberships.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/list-memberships.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/list-sessions.md b/docs/examples/1.3.x/server-nodejs/examples/users/list-sessions.md index b44341bcbe4..17d38f8c0e5 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/list-sessions.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/list-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/list.md b/docs/examples/1.3.x/server-nodejs/examples/users/list.md index a9ba208d2ed..016df4aa37b 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/list.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/update-email-verification.md b/docs/examples/1.3.x/server-nodejs/examples/users/update-email-verification.md index 29c3e26593c..c48ca4426e5 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/update-email-verification.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/update-email-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/update-email.md b/docs/examples/1.3.x/server-nodejs/examples/users/update-email.md index 5cef6fb5ec8..726d191e8d2 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/update-email.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/update-email.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/update-name.md b/docs/examples/1.3.x/server-nodejs/examples/users/update-name.md index ea33b7ed513..49140677fd0 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/update-name.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/update-name.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/update-password.md b/docs/examples/1.3.x/server-nodejs/examples/users/update-password.md index f08a5990f40..a5e98a03356 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/update-password.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/update-password.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/update-phone-verification.md b/docs/examples/1.3.x/server-nodejs/examples/users/update-phone-verification.md index e6a95f93f87..bb2ddeccf71 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/update-phone-verification.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/update-phone-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/update-phone.md b/docs/examples/1.3.x/server-nodejs/examples/users/update-phone.md index 8db9863c00a..6957b6d666c 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/update-phone.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/update-phone.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/update-prefs.md b/docs/examples/1.3.x/server-nodejs/examples/users/update-prefs.md index 75f1a4298c2..643ebee2204 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/update-prefs.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/update-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-nodejs/examples/users/update-status.md b/docs/examples/1.3.x/server-nodejs/examples/users/update-status.md index ac52d732ea0..1b914dba72f 100644 --- a/docs/examples/1.3.x/server-nodejs/examples/users/update-status.md +++ b/docs/examples/1.3.x/server-nodejs/examples/users/update-status.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/account/create-phone-verification.md b/docs/examples/1.3.x/server-php/examples/account/create-phone-verification.md index 1c41a30ce8d..30d16371745 100644 --- a/docs/examples/1.3.x/server-php/examples/account/create-phone-verification.md +++ b/docs/examples/1.3.x/server-php/examples/account/create-phone-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/create-recovery.md b/docs/examples/1.3.x/server-php/examples/account/create-recovery.md index 8ca78fc37bb..513037c533e 100644 --- a/docs/examples/1.3.x/server-php/examples/account/create-recovery.md +++ b/docs/examples/1.3.x/server-php/examples/account/create-recovery.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/create-verification.md b/docs/examples/1.3.x/server-php/examples/account/create-verification.md index 92fb38151c4..4785065601a 100644 --- a/docs/examples/1.3.x/server-php/examples/account/create-verification.md +++ b/docs/examples/1.3.x/server-php/examples/account/create-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/delete-session.md b/docs/examples/1.3.x/server-php/examples/account/delete-session.md index 51bf3e2d414..74847d73b76 100644 --- a/docs/examples/1.3.x/server-php/examples/account/delete-session.md +++ b/docs/examples/1.3.x/server-php/examples/account/delete-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/delete-sessions.md b/docs/examples/1.3.x/server-php/examples/account/delete-sessions.md index bf3bc2a3008..af4b46dbb67 100644 --- a/docs/examples/1.3.x/server-php/examples/account/delete-sessions.md +++ b/docs/examples/1.3.x/server-php/examples/account/delete-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/get-prefs.md b/docs/examples/1.3.x/server-php/examples/account/get-prefs.md index a91b888723a..50ffc766d38 100644 --- a/docs/examples/1.3.x/server-php/examples/account/get-prefs.md +++ b/docs/examples/1.3.x/server-php/examples/account/get-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/get-session.md b/docs/examples/1.3.x/server-php/examples/account/get-session.md index 9e2341ce084..e2112ee4cd6 100644 --- a/docs/examples/1.3.x/server-php/examples/account/get-session.md +++ b/docs/examples/1.3.x/server-php/examples/account/get-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/get.md b/docs/examples/1.3.x/server-php/examples/account/get.md index 4333bf2e734..b9361063ce7 100644 --- a/docs/examples/1.3.x/server-php/examples/account/get.md +++ b/docs/examples/1.3.x/server-php/examples/account/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/list-logs.md b/docs/examples/1.3.x/server-php/examples/account/list-logs.md index 62bc86d6681..1283d9cfd46 100644 --- a/docs/examples/1.3.x/server-php/examples/account/list-logs.md +++ b/docs/examples/1.3.x/server-php/examples/account/list-logs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/list-sessions.md b/docs/examples/1.3.x/server-php/examples/account/list-sessions.md index 7942a3de2a7..a07d303fe9b 100644 --- a/docs/examples/1.3.x/server-php/examples/account/list-sessions.md +++ b/docs/examples/1.3.x/server-php/examples/account/list-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/update-email.md b/docs/examples/1.3.x/server-php/examples/account/update-email.md index a7ac5ede7d2..a6bf5f6c241 100644 --- a/docs/examples/1.3.x/server-php/examples/account/update-email.md +++ b/docs/examples/1.3.x/server-php/examples/account/update-email.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/update-name.md b/docs/examples/1.3.x/server-php/examples/account/update-name.md index 21bac949002..17f51894123 100644 --- a/docs/examples/1.3.x/server-php/examples/account/update-name.md +++ b/docs/examples/1.3.x/server-php/examples/account/update-name.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/update-password.md b/docs/examples/1.3.x/server-php/examples/account/update-password.md index 47e4c96695a..8bd4b4915c9 100644 --- a/docs/examples/1.3.x/server-php/examples/account/update-password.md +++ b/docs/examples/1.3.x/server-php/examples/account/update-password.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/update-phone-verification.md b/docs/examples/1.3.x/server-php/examples/account/update-phone-verification.md index 02458727a5a..466f5164645 100644 --- a/docs/examples/1.3.x/server-php/examples/account/update-phone-verification.md +++ b/docs/examples/1.3.x/server-php/examples/account/update-phone-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/update-phone.md b/docs/examples/1.3.x/server-php/examples/account/update-phone.md index eaa18985123..75947cdf536 100644 --- a/docs/examples/1.3.x/server-php/examples/account/update-phone.md +++ b/docs/examples/1.3.x/server-php/examples/account/update-phone.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/update-prefs.md b/docs/examples/1.3.x/server-php/examples/account/update-prefs.md index 96d0be57816..f7687416f2b 100644 --- a/docs/examples/1.3.x/server-php/examples/account/update-prefs.md +++ b/docs/examples/1.3.x/server-php/examples/account/update-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/update-recovery.md b/docs/examples/1.3.x/server-php/examples/account/update-recovery.md index 379b219e6d2..0f8285654b9 100644 --- a/docs/examples/1.3.x/server-php/examples/account/update-recovery.md +++ b/docs/examples/1.3.x/server-php/examples/account/update-recovery.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/update-session.md b/docs/examples/1.3.x/server-php/examples/account/update-session.md index 462be6b914c..264e6b6435a 100644 --- a/docs/examples/1.3.x/server-php/examples/account/update-session.md +++ b/docs/examples/1.3.x/server-php/examples/account/update-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/update-status.md b/docs/examples/1.3.x/server-php/examples/account/update-status.md index b1a1f2c8ec9..ecfb4b56faa 100644 --- a/docs/examples/1.3.x/server-php/examples/account/update-status.md +++ b/docs/examples/1.3.x/server-php/examples/account/update-status.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/account/update-verification.md b/docs/examples/1.3.x/server-php/examples/account/update-verification.md index ad583a422e8..81a86041fda 100644 --- a/docs/examples/1.3.x/server-php/examples/account/update-verification.md +++ b/docs/examples/1.3.x/server-php/examples/account/update-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/avatars/get-browser.md b/docs/examples/1.3.x/server-php/examples/avatars/get-browser.md index 362106f645d..dc92f02acfa 100644 --- a/docs/examples/1.3.x/server-php/examples/avatars/get-browser.md +++ b/docs/examples/1.3.x/server-php/examples/avatars/get-browser.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/avatars/get-credit-card.md b/docs/examples/1.3.x/server-php/examples/avatars/get-credit-card.md index c85ebeac2eb..6808432f42d 100644 --- a/docs/examples/1.3.x/server-php/examples/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/server-php/examples/avatars/get-credit-card.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/avatars/get-favicon.md b/docs/examples/1.3.x/server-php/examples/avatars/get-favicon.md index 088524e0519..4266898e6ae 100644 --- a/docs/examples/1.3.x/server-php/examples/avatars/get-favicon.md +++ b/docs/examples/1.3.x/server-php/examples/avatars/get-favicon.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/avatars/get-flag.md b/docs/examples/1.3.x/server-php/examples/avatars/get-flag.md index 2f2705b61fb..df76fff7d8b 100644 --- a/docs/examples/1.3.x/server-php/examples/avatars/get-flag.md +++ b/docs/examples/1.3.x/server-php/examples/avatars/get-flag.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/avatars/get-image.md b/docs/examples/1.3.x/server-php/examples/avatars/get-image.md index d576232a42c..bc0b285de54 100644 --- a/docs/examples/1.3.x/server-php/examples/avatars/get-image.md +++ b/docs/examples/1.3.x/server-php/examples/avatars/get-image.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/avatars/get-initials.md b/docs/examples/1.3.x/server-php/examples/avatars/get-initials.md index 4e924c70624..eafe65f3d77 100644 --- a/docs/examples/1.3.x/server-php/examples/avatars/get-initials.md +++ b/docs/examples/1.3.x/server-php/examples/avatars/get-initials.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/avatars/get-q-r.md b/docs/examples/1.3.x/server-php/examples/avatars/get-q-r.md index fde6e35b77a..ff2bbf4a385 100644 --- a/docs/examples/1.3.x/server-php/examples/avatars/get-q-r.md +++ b/docs/examples/1.3.x/server-php/examples/avatars/get-q-r.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/create-boolean-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/create-boolean-attribute.md index 17c92241b4a..7ea50ba3788 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/create-boolean-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/create-collection.md b/docs/examples/1.3.x/server-php/examples/databases/create-collection.md index 2fd5fb61c07..7bf6139f45c 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/create-collection.md +++ b/docs/examples/1.3.x/server-php/examples/databases/create-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/create-datetime-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/create-datetime-attribute.md index 284163c266e..8cff5f18974 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/create-datetime-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/create-document.md b/docs/examples/1.3.x/server-php/examples/databases/create-document.md index 509160b9ad6..b5ed74d1d85 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/create-document.md +++ b/docs/examples/1.3.x/server-php/examples/databases/create-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/create-email-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/create-email-attribute.md index df68be7fb02..2fef5160db4 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/create-email-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/create-email-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/create-enum-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/create-enum-attribute.md index c469679fd73..baeeb8edfbf 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/create-enum-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/create-float-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/create-float-attribute.md index c182d0a7744..177647813c0 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/create-float-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/create-float-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/create-index.md b/docs/examples/1.3.x/server-php/examples/databases/create-index.md index 6ecd4cc58b8..4046c511a79 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/create-index.md +++ b/docs/examples/1.3.x/server-php/examples/databases/create-index.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/create-integer-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/create-integer-attribute.md index d86ca7056bf..8e5c54ec5ac 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/create-integer-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/create-ip-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/create-ip-attribute.md index 823fa994827..fe55cfe2040 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/create-ip-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/create-relationship-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/create-relationship-attribute.md index 4840a669374..97b00cda2fd 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/create-relationship-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/create-string-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/create-string-attribute.md index 50abd0a18db..7be05ee07ef 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/create-string-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/create-string-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/create-url-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/create-url-attribute.md index 5520cb13341..2380d74c43e 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/create-url-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/create-url-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/create.md b/docs/examples/1.3.x/server-php/examples/databases/create.md index 16176b9b40b..f05690391aa 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/create.md +++ b/docs/examples/1.3.x/server-php/examples/databases/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/delete-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/delete-attribute.md index d89c7de4f72..e46374ca423 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/delete-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/delete-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/delete-collection.md b/docs/examples/1.3.x/server-php/examples/databases/delete-collection.md index 29c627bbf0d..f5ffb2c75a4 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/delete-collection.md +++ b/docs/examples/1.3.x/server-php/examples/databases/delete-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/delete-document.md b/docs/examples/1.3.x/server-php/examples/databases/delete-document.md index 9d5f1f0d516..523d3b5e0e3 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/delete-document.md +++ b/docs/examples/1.3.x/server-php/examples/databases/delete-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/delete-index.md b/docs/examples/1.3.x/server-php/examples/databases/delete-index.md index 073aa3a82e1..5739f5ce6b5 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/delete-index.md +++ b/docs/examples/1.3.x/server-php/examples/databases/delete-index.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/delete.md b/docs/examples/1.3.x/server-php/examples/databases/delete.md index 3dab79bc99f..0cc8b06106e 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/delete.md +++ b/docs/examples/1.3.x/server-php/examples/databases/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/get-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/get-attribute.md index c286a7692af..5a109b7594f 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/get-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/get-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/get-collection.md b/docs/examples/1.3.x/server-php/examples/databases/get-collection.md index 7cc578df8d7..6d665e46018 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/get-collection.md +++ b/docs/examples/1.3.x/server-php/examples/databases/get-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/get-document.md b/docs/examples/1.3.x/server-php/examples/databases/get-document.md index 7637e035e23..0397d6cbd55 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/get-document.md +++ b/docs/examples/1.3.x/server-php/examples/databases/get-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/get-index.md b/docs/examples/1.3.x/server-php/examples/databases/get-index.md index a674a5935e9..ff39044a1fa 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/get-index.md +++ b/docs/examples/1.3.x/server-php/examples/databases/get-index.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/get.md b/docs/examples/1.3.x/server-php/examples/databases/get.md index adc415f9a51..f87400b7dd0 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/get.md +++ b/docs/examples/1.3.x/server-php/examples/databases/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/list-attributes.md b/docs/examples/1.3.x/server-php/examples/databases/list-attributes.md index 424c4b2405c..decd3939449 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/list-attributes.md +++ b/docs/examples/1.3.x/server-php/examples/databases/list-attributes.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/list-collections.md b/docs/examples/1.3.x/server-php/examples/databases/list-collections.md index 3f311f31385..7c0810a073b 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/list-collections.md +++ b/docs/examples/1.3.x/server-php/examples/databases/list-collections.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/list-documents.md b/docs/examples/1.3.x/server-php/examples/databases/list-documents.md index c9a6bbe4ff5..c2a1d47d2a6 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/list-documents.md +++ b/docs/examples/1.3.x/server-php/examples/databases/list-documents.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/list-indexes.md b/docs/examples/1.3.x/server-php/examples/databases/list-indexes.md index 733d20b9338..ecf4797d654 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/list-indexes.md +++ b/docs/examples/1.3.x/server-php/examples/databases/list-indexes.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/list.md b/docs/examples/1.3.x/server-php/examples/databases/list.md index 45963718d3b..6882d17e977 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/list.md +++ b/docs/examples/1.3.x/server-php/examples/databases/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/update-boolean-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/update-boolean-attribute.md index 9e8b8699e1d..13b25b52c43 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/update-boolean-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/update-collection.md b/docs/examples/1.3.x/server-php/examples/databases/update-collection.md index 878bf209865..9eedede688b 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/update-collection.md +++ b/docs/examples/1.3.x/server-php/examples/databases/update-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/update-datetime-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/update-datetime-attribute.md index 26214fb785c..efbb8713276 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/update-datetime-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/update-document.md b/docs/examples/1.3.x/server-php/examples/databases/update-document.md index 796e4600eb7..56310e155f8 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/update-document.md +++ b/docs/examples/1.3.x/server-php/examples/databases/update-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/update-email-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/update-email-attribute.md index 7278881e3b9..ba670046c3e 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/update-email-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/update-email-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/update-enum-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/update-enum-attribute.md index a77211b0f76..df0f6409ddb 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/update-enum-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/update-float-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/update-float-attribute.md index e73793e1fdf..9d27fa196fa 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/update-float-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/update-float-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/update-integer-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/update-integer-attribute.md index 1cff205200a..795f2cfd448 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/update-integer-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/update-ip-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/update-ip-attribute.md index bb49d89c399..0f42ca3f407 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/update-ip-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/update-relationship-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/update-relationship-attribute.md index b68025b84c8..078d0338ca7 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/update-relationship-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/update-string-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/update-string-attribute.md index 775d0fa2bec..0c821fe9d07 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/update-string-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/update-string-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/update-url-attribute.md b/docs/examples/1.3.x/server-php/examples/databases/update-url-attribute.md index 6d4845e7eb3..a14bde5d2db 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/update-url-attribute.md +++ b/docs/examples/1.3.x/server-php/examples/databases/update-url-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/databases/update.md b/docs/examples/1.3.x/server-php/examples/databases/update.md index db1ae7688e8..b1f0589be9a 100644 --- a/docs/examples/1.3.x/server-php/examples/databases/update.md +++ b/docs/examples/1.3.x/server-php/examples/databases/update.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/create-build.md b/docs/examples/1.3.x/server-php/examples/functions/create-build.md index ac66cc2eb25..cc83570c3a0 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/create-build.md +++ b/docs/examples/1.3.x/server-php/examples/functions/create-build.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/create-deployment.md b/docs/examples/1.3.x/server-php/examples/functions/create-deployment.md index a556cace24d..f23873acb8f 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/create-deployment.md +++ b/docs/examples/1.3.x/server-php/examples/functions/create-deployment.md @@ -7,7 +7,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/create-execution.md b/docs/examples/1.3.x/server-php/examples/functions/create-execution.md index 038126a728c..bc6138825ff 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/create-execution.md +++ b/docs/examples/1.3.x/server-php/examples/functions/create-execution.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/create-variable.md b/docs/examples/1.3.x/server-php/examples/functions/create-variable.md index f09e61861ee..57244ec1f45 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/create-variable.md +++ b/docs/examples/1.3.x/server-php/examples/functions/create-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/create.md b/docs/examples/1.3.x/server-php/examples/functions/create.md index 22744b7584a..30df185602c 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/create.md +++ b/docs/examples/1.3.x/server-php/examples/functions/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/delete-deployment.md b/docs/examples/1.3.x/server-php/examples/functions/delete-deployment.md index 7227cd995f5..bbc65aada12 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/delete-deployment.md +++ b/docs/examples/1.3.x/server-php/examples/functions/delete-deployment.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/delete-variable.md b/docs/examples/1.3.x/server-php/examples/functions/delete-variable.md index a457846492b..42376a0e9f8 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/delete-variable.md +++ b/docs/examples/1.3.x/server-php/examples/functions/delete-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/delete.md b/docs/examples/1.3.x/server-php/examples/functions/delete.md index d06c732f57d..2abe85b75d8 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/delete.md +++ b/docs/examples/1.3.x/server-php/examples/functions/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/get-deployment.md b/docs/examples/1.3.x/server-php/examples/functions/get-deployment.md index 4c4fe49eb3b..19f4d58392c 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/get-deployment.md +++ b/docs/examples/1.3.x/server-php/examples/functions/get-deployment.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/get-execution.md b/docs/examples/1.3.x/server-php/examples/functions/get-execution.md index ff59dc1cfeb..994f2be976f 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/get-execution.md +++ b/docs/examples/1.3.x/server-php/examples/functions/get-execution.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/get-variable.md b/docs/examples/1.3.x/server-php/examples/functions/get-variable.md index e80b8f9fc0d..34012f9fbbc 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/get-variable.md +++ b/docs/examples/1.3.x/server-php/examples/functions/get-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/get.md b/docs/examples/1.3.x/server-php/examples/functions/get.md index aef58062590..2f5e69b142c 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/get.md +++ b/docs/examples/1.3.x/server-php/examples/functions/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/list-deployments.md b/docs/examples/1.3.x/server-php/examples/functions/list-deployments.md index 366e5fdc71f..db4524430b0 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/list-deployments.md +++ b/docs/examples/1.3.x/server-php/examples/functions/list-deployments.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/list-executions.md b/docs/examples/1.3.x/server-php/examples/functions/list-executions.md index 34a80ad434d..f431a4a9374 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/list-executions.md +++ b/docs/examples/1.3.x/server-php/examples/functions/list-executions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/list-runtimes.md b/docs/examples/1.3.x/server-php/examples/functions/list-runtimes.md index b35dadfec97..23089ec3ea4 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/list-runtimes.md +++ b/docs/examples/1.3.x/server-php/examples/functions/list-runtimes.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/list-variables.md b/docs/examples/1.3.x/server-php/examples/functions/list-variables.md index cf742891573..aa84e28a6d7 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/list-variables.md +++ b/docs/examples/1.3.x/server-php/examples/functions/list-variables.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/list.md b/docs/examples/1.3.x/server-php/examples/functions/list.md index f57875572e0..05925721359 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/list.md +++ b/docs/examples/1.3.x/server-php/examples/functions/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/update-deployment.md b/docs/examples/1.3.x/server-php/examples/functions/update-deployment.md index b5f09cd0180..3e259458ffc 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/update-deployment.md +++ b/docs/examples/1.3.x/server-php/examples/functions/update-deployment.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/update-variable.md b/docs/examples/1.3.x/server-php/examples/functions/update-variable.md index 4eb52d94d3f..f1952d8b5ce 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/update-variable.md +++ b/docs/examples/1.3.x/server-php/examples/functions/update-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/functions/update.md b/docs/examples/1.3.x/server-php/examples/functions/update.md index 072ff5cdbb5..05636d40bfe 100644 --- a/docs/examples/1.3.x/server-php/examples/functions/update.md +++ b/docs/examples/1.3.x/server-php/examples/functions/update.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/graphql/mutation.md b/docs/examples/1.3.x/server-php/examples/graphql/mutation.md index 5622f7f2699..f75d53e86c4 100644 --- a/docs/examples/1.3.x/server-php/examples/graphql/mutation.md +++ b/docs/examples/1.3.x/server-php/examples/graphql/mutation.md @@ -6,7 +6,7 @@ use Appwrite\Services\Graphql; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/graphql/query.md b/docs/examples/1.3.x/server-php/examples/graphql/query.md index 3ca1d940c49..369dcbd47e5 100644 --- a/docs/examples/1.3.x/server-php/examples/graphql/query.md +++ b/docs/examples/1.3.x/server-php/examples/graphql/query.md @@ -6,7 +6,7 @@ use Appwrite\Services\Graphql; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/health/get-antivirus.md b/docs/examples/1.3.x/server-php/examples/health/get-antivirus.md index 4f1483514b7..f31c642d9f7 100644 --- a/docs/examples/1.3.x/server-php/examples/health/get-antivirus.md +++ b/docs/examples/1.3.x/server-php/examples/health/get-antivirus.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/health/get-cache.md b/docs/examples/1.3.x/server-php/examples/health/get-cache.md index 3d1b19b3ef7..90cc8d86868 100644 --- a/docs/examples/1.3.x/server-php/examples/health/get-cache.md +++ b/docs/examples/1.3.x/server-php/examples/health/get-cache.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/health/get-d-b.md b/docs/examples/1.3.x/server-php/examples/health/get-d-b.md index c03ba23723a..1ff93f4707a 100644 --- a/docs/examples/1.3.x/server-php/examples/health/get-d-b.md +++ b/docs/examples/1.3.x/server-php/examples/health/get-d-b.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/health/get-queue-certificates.md b/docs/examples/1.3.x/server-php/examples/health/get-queue-certificates.md index 76236de7b59..e58ba39c47b 100644 --- a/docs/examples/1.3.x/server-php/examples/health/get-queue-certificates.md +++ b/docs/examples/1.3.x/server-php/examples/health/get-queue-certificates.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/health/get-queue-functions.md b/docs/examples/1.3.x/server-php/examples/health/get-queue-functions.md index 31f65de1d12..699b4d390cd 100644 --- a/docs/examples/1.3.x/server-php/examples/health/get-queue-functions.md +++ b/docs/examples/1.3.x/server-php/examples/health/get-queue-functions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/health/get-queue-logs.md b/docs/examples/1.3.x/server-php/examples/health/get-queue-logs.md index ff1adb2a416..f55e8611766 100644 --- a/docs/examples/1.3.x/server-php/examples/health/get-queue-logs.md +++ b/docs/examples/1.3.x/server-php/examples/health/get-queue-logs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/health/get-queue-webhooks.md b/docs/examples/1.3.x/server-php/examples/health/get-queue-webhooks.md index 99592bcface..838f442822b 100644 --- a/docs/examples/1.3.x/server-php/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.3.x/server-php/examples/health/get-queue-webhooks.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/health/get-storage-local.md b/docs/examples/1.3.x/server-php/examples/health/get-storage-local.md index 55212c36aeb..f156c7a6fe5 100644 --- a/docs/examples/1.3.x/server-php/examples/health/get-storage-local.md +++ b/docs/examples/1.3.x/server-php/examples/health/get-storage-local.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/health/get-time.md b/docs/examples/1.3.x/server-php/examples/health/get-time.md index 54101247869..2efbd2d2377 100644 --- a/docs/examples/1.3.x/server-php/examples/health/get-time.md +++ b/docs/examples/1.3.x/server-php/examples/health/get-time.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/health/get.md b/docs/examples/1.3.x/server-php/examples/health/get.md index 62cab8acf2a..9a080c8e4d6 100644 --- a/docs/examples/1.3.x/server-php/examples/health/get.md +++ b/docs/examples/1.3.x/server-php/examples/health/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/locale/get.md b/docs/examples/1.3.x/server-php/examples/locale/get.md index c4910463c59..3a8e04cc538 100644 --- a/docs/examples/1.3.x/server-php/examples/locale/get.md +++ b/docs/examples/1.3.x/server-php/examples/locale/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/locale/list-continents.md b/docs/examples/1.3.x/server-php/examples/locale/list-continents.md index 9cd8fb13998..1103c8b847c 100644 --- a/docs/examples/1.3.x/server-php/examples/locale/list-continents.md +++ b/docs/examples/1.3.x/server-php/examples/locale/list-continents.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/locale/list-countries-e-u.md b/docs/examples/1.3.x/server-php/examples/locale/list-countries-e-u.md index 1f2ef98c963..7ad6b052996 100644 --- a/docs/examples/1.3.x/server-php/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/server-php/examples/locale/list-countries-e-u.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/locale/list-countries-phones.md b/docs/examples/1.3.x/server-php/examples/locale/list-countries-phones.md index 6f8acb7467d..3f5154c98c9 100644 --- a/docs/examples/1.3.x/server-php/examples/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/server-php/examples/locale/list-countries-phones.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/locale/list-countries.md b/docs/examples/1.3.x/server-php/examples/locale/list-countries.md index 28c518e82a6..4abf4cc4919 100644 --- a/docs/examples/1.3.x/server-php/examples/locale/list-countries.md +++ b/docs/examples/1.3.x/server-php/examples/locale/list-countries.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/locale/list-currencies.md b/docs/examples/1.3.x/server-php/examples/locale/list-currencies.md index 37784f3d1ee..8b115f898ce 100644 --- a/docs/examples/1.3.x/server-php/examples/locale/list-currencies.md +++ b/docs/examples/1.3.x/server-php/examples/locale/list-currencies.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/locale/list-languages.md b/docs/examples/1.3.x/server-php/examples/locale/list-languages.md index 8b4f082cb0b..74347ff87b2 100644 --- a/docs/examples/1.3.x/server-php/examples/locale/list-languages.md +++ b/docs/examples/1.3.x/server-php/examples/locale/list-languages.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/storage/create-bucket.md b/docs/examples/1.3.x/server-php/examples/storage/create-bucket.md index bf54c22a471..3e43cd52b4e 100644 --- a/docs/examples/1.3.x/server-php/examples/storage/create-bucket.md +++ b/docs/examples/1.3.x/server-php/examples/storage/create-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/storage/create-file.md b/docs/examples/1.3.x/server-php/examples/storage/create-file.md index e2cfce7ae92..3c0fc4c71f1 100644 --- a/docs/examples/1.3.x/server-php/examples/storage/create-file.md +++ b/docs/examples/1.3.x/server-php/examples/storage/create-file.md @@ -7,7 +7,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/storage/delete-bucket.md b/docs/examples/1.3.x/server-php/examples/storage/delete-bucket.md index b3659b6276f..bfae9b70a7b 100644 --- a/docs/examples/1.3.x/server-php/examples/storage/delete-bucket.md +++ b/docs/examples/1.3.x/server-php/examples/storage/delete-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/storage/delete-file.md b/docs/examples/1.3.x/server-php/examples/storage/delete-file.md index 00db8551b37..5fb21e02103 100644 --- a/docs/examples/1.3.x/server-php/examples/storage/delete-file.md +++ b/docs/examples/1.3.x/server-php/examples/storage/delete-file.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/storage/get-bucket.md b/docs/examples/1.3.x/server-php/examples/storage/get-bucket.md index d4d152aff49..e816ef192fd 100644 --- a/docs/examples/1.3.x/server-php/examples/storage/get-bucket.md +++ b/docs/examples/1.3.x/server-php/examples/storage/get-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/storage/get-file-download.md b/docs/examples/1.3.x/server-php/examples/storage/get-file-download.md index 0c7fefda37f..9a181f70070 100644 --- a/docs/examples/1.3.x/server-php/examples/storage/get-file-download.md +++ b/docs/examples/1.3.x/server-php/examples/storage/get-file-download.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/storage/get-file-preview.md b/docs/examples/1.3.x/server-php/examples/storage/get-file-preview.md index c1b91e5c295..d30c0ec450c 100644 --- a/docs/examples/1.3.x/server-php/examples/storage/get-file-preview.md +++ b/docs/examples/1.3.x/server-php/examples/storage/get-file-preview.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/storage/get-file-view.md b/docs/examples/1.3.x/server-php/examples/storage/get-file-view.md index f527c1b7440..983fb0c52fa 100644 --- a/docs/examples/1.3.x/server-php/examples/storage/get-file-view.md +++ b/docs/examples/1.3.x/server-php/examples/storage/get-file-view.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/storage/get-file.md b/docs/examples/1.3.x/server-php/examples/storage/get-file.md index cb56c96a428..799e1192d06 100644 --- a/docs/examples/1.3.x/server-php/examples/storage/get-file.md +++ b/docs/examples/1.3.x/server-php/examples/storage/get-file.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/storage/list-buckets.md b/docs/examples/1.3.x/server-php/examples/storage/list-buckets.md index b92dc82bcbe..235cc8f9b63 100644 --- a/docs/examples/1.3.x/server-php/examples/storage/list-buckets.md +++ b/docs/examples/1.3.x/server-php/examples/storage/list-buckets.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/storage/list-files.md b/docs/examples/1.3.x/server-php/examples/storage/list-files.md index e0b79186e45..12b697fc81e 100644 --- a/docs/examples/1.3.x/server-php/examples/storage/list-files.md +++ b/docs/examples/1.3.x/server-php/examples/storage/list-files.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/storage/update-bucket.md b/docs/examples/1.3.x/server-php/examples/storage/update-bucket.md index 5e46dfc83bb..6985651b9bf 100644 --- a/docs/examples/1.3.x/server-php/examples/storage/update-bucket.md +++ b/docs/examples/1.3.x/server-php/examples/storage/update-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/storage/update-file.md b/docs/examples/1.3.x/server-php/examples/storage/update-file.md index 1d3e01e99a9..6dc64b1f5ba 100644 --- a/docs/examples/1.3.x/server-php/examples/storage/update-file.md +++ b/docs/examples/1.3.x/server-php/examples/storage/update-file.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/teams/create-membership.md b/docs/examples/1.3.x/server-php/examples/teams/create-membership.md index 34f642ea11e..d87d3b894db 100644 --- a/docs/examples/1.3.x/server-php/examples/teams/create-membership.md +++ b/docs/examples/1.3.x/server-php/examples/teams/create-membership.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/teams/create.md b/docs/examples/1.3.x/server-php/examples/teams/create.md index e5efe49b302..551922be145 100644 --- a/docs/examples/1.3.x/server-php/examples/teams/create.md +++ b/docs/examples/1.3.x/server-php/examples/teams/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/teams/delete-membership.md b/docs/examples/1.3.x/server-php/examples/teams/delete-membership.md index 2b40c1742e2..5d070ee09c6 100644 --- a/docs/examples/1.3.x/server-php/examples/teams/delete-membership.md +++ b/docs/examples/1.3.x/server-php/examples/teams/delete-membership.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/teams/delete.md b/docs/examples/1.3.x/server-php/examples/teams/delete.md index 5ec2ed995c9..009c7eee2ec 100644 --- a/docs/examples/1.3.x/server-php/examples/teams/delete.md +++ b/docs/examples/1.3.x/server-php/examples/teams/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/teams/get-membership.md b/docs/examples/1.3.x/server-php/examples/teams/get-membership.md index fdd3024783d..f23b8a7eb0e 100644 --- a/docs/examples/1.3.x/server-php/examples/teams/get-membership.md +++ b/docs/examples/1.3.x/server-php/examples/teams/get-membership.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/teams/get-prefs.md b/docs/examples/1.3.x/server-php/examples/teams/get-prefs.md index 0436f969629..211373dd8aa 100644 --- a/docs/examples/1.3.x/server-php/examples/teams/get-prefs.md +++ b/docs/examples/1.3.x/server-php/examples/teams/get-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/teams/get.md b/docs/examples/1.3.x/server-php/examples/teams/get.md index 94b8a2695a7..b7b4a43ac6f 100644 --- a/docs/examples/1.3.x/server-php/examples/teams/get.md +++ b/docs/examples/1.3.x/server-php/examples/teams/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/teams/list-memberships.md b/docs/examples/1.3.x/server-php/examples/teams/list-memberships.md index f23b78eca10..3a15fd91bea 100644 --- a/docs/examples/1.3.x/server-php/examples/teams/list-memberships.md +++ b/docs/examples/1.3.x/server-php/examples/teams/list-memberships.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/teams/list.md b/docs/examples/1.3.x/server-php/examples/teams/list.md index 66f54b6e1c9..970b2b08d25 100644 --- a/docs/examples/1.3.x/server-php/examples/teams/list.md +++ b/docs/examples/1.3.x/server-php/examples/teams/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/teams/update-membership-roles.md b/docs/examples/1.3.x/server-php/examples/teams/update-membership-roles.md index 59239975519..c744578712f 100644 --- a/docs/examples/1.3.x/server-php/examples/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/server-php/examples/teams/update-membership-roles.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/teams/update-membership-status.md b/docs/examples/1.3.x/server-php/examples/teams/update-membership-status.md index 15504ad4215..0d0a1258863 100644 --- a/docs/examples/1.3.x/server-php/examples/teams/update-membership-status.md +++ b/docs/examples/1.3.x/server-php/examples/teams/update-membership-status.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/teams/update-name.md b/docs/examples/1.3.x/server-php/examples/teams/update-name.md index e88a31862da..09c9b6f928d 100644 --- a/docs/examples/1.3.x/server-php/examples/teams/update-name.md +++ b/docs/examples/1.3.x/server-php/examples/teams/update-name.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/teams/update-prefs.md b/docs/examples/1.3.x/server-php/examples/teams/update-prefs.md index 4d044cce235..fd42914c458 100644 --- a/docs/examples/1.3.x/server-php/examples/teams/update-prefs.md +++ b/docs/examples/1.3.x/server-php/examples/teams/update-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.3.x/server-php/examples/users/create-argon2user.md b/docs/examples/1.3.x/server-php/examples/users/create-argon2user.md index 1036ca109e1..83bc0408277 100644 --- a/docs/examples/1.3.x/server-php/examples/users/create-argon2user.md +++ b/docs/examples/1.3.x/server-php/examples/users/create-argon2user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/create-bcrypt-user.md b/docs/examples/1.3.x/server-php/examples/users/create-bcrypt-user.md index de15110a4ed..ce1e2d5633b 100644 --- a/docs/examples/1.3.x/server-php/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.3.x/server-php/examples/users/create-bcrypt-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/create-m-d5user.md b/docs/examples/1.3.x/server-php/examples/users/create-m-d5user.md index 15f4ebe0aab..d78ffa24d4f 100644 --- a/docs/examples/1.3.x/server-php/examples/users/create-m-d5user.md +++ b/docs/examples/1.3.x/server-php/examples/users/create-m-d5user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/create-p-h-pass-user.md b/docs/examples/1.3.x/server-php/examples/users/create-p-h-pass-user.md index 2eb682fc42f..097636038a6 100644 --- a/docs/examples/1.3.x/server-php/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.3.x/server-php/examples/users/create-p-h-pass-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/create-s-h-a-user.md b/docs/examples/1.3.x/server-php/examples/users/create-s-h-a-user.md index 3e63bd99282..ab5df354cc8 100644 --- a/docs/examples/1.3.x/server-php/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.3.x/server-php/examples/users/create-s-h-a-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/create-scrypt-modified-user.md b/docs/examples/1.3.x/server-php/examples/users/create-scrypt-modified-user.md index bcf7c52cd59..bb71afe901d 100644 --- a/docs/examples/1.3.x/server-php/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.3.x/server-php/examples/users/create-scrypt-modified-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/create-scrypt-user.md b/docs/examples/1.3.x/server-php/examples/users/create-scrypt-user.md index 43a4bcc2e2a..563268784da 100644 --- a/docs/examples/1.3.x/server-php/examples/users/create-scrypt-user.md +++ b/docs/examples/1.3.x/server-php/examples/users/create-scrypt-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/create.md b/docs/examples/1.3.x/server-php/examples/users/create.md index dab8a5ed708..67ab2660eb9 100644 --- a/docs/examples/1.3.x/server-php/examples/users/create.md +++ b/docs/examples/1.3.x/server-php/examples/users/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/delete-session.md b/docs/examples/1.3.x/server-php/examples/users/delete-session.md index c6a507c7b20..6ce035a739b 100644 --- a/docs/examples/1.3.x/server-php/examples/users/delete-session.md +++ b/docs/examples/1.3.x/server-php/examples/users/delete-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/delete-sessions.md b/docs/examples/1.3.x/server-php/examples/users/delete-sessions.md index 570d258683f..a4a07242bde 100644 --- a/docs/examples/1.3.x/server-php/examples/users/delete-sessions.md +++ b/docs/examples/1.3.x/server-php/examples/users/delete-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/delete.md b/docs/examples/1.3.x/server-php/examples/users/delete.md index 1d5a822fde0..63279e1b46e 100644 --- a/docs/examples/1.3.x/server-php/examples/users/delete.md +++ b/docs/examples/1.3.x/server-php/examples/users/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/get-prefs.md b/docs/examples/1.3.x/server-php/examples/users/get-prefs.md index e9c8c58bf36..d52706530e1 100644 --- a/docs/examples/1.3.x/server-php/examples/users/get-prefs.md +++ b/docs/examples/1.3.x/server-php/examples/users/get-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/get.md b/docs/examples/1.3.x/server-php/examples/users/get.md index 51482d37eb0..5f84f327db0 100644 --- a/docs/examples/1.3.x/server-php/examples/users/get.md +++ b/docs/examples/1.3.x/server-php/examples/users/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/list-logs.md b/docs/examples/1.3.x/server-php/examples/users/list-logs.md index e6287563c2d..d5166c0b668 100644 --- a/docs/examples/1.3.x/server-php/examples/users/list-logs.md +++ b/docs/examples/1.3.x/server-php/examples/users/list-logs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/list-memberships.md b/docs/examples/1.3.x/server-php/examples/users/list-memberships.md index 039216bc1ec..84ebf8e8a13 100644 --- a/docs/examples/1.3.x/server-php/examples/users/list-memberships.md +++ b/docs/examples/1.3.x/server-php/examples/users/list-memberships.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/list-sessions.md b/docs/examples/1.3.x/server-php/examples/users/list-sessions.md index e09b65d475c..100df65a488 100644 --- a/docs/examples/1.3.x/server-php/examples/users/list-sessions.md +++ b/docs/examples/1.3.x/server-php/examples/users/list-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/list.md b/docs/examples/1.3.x/server-php/examples/users/list.md index 8d86e863728..30929b467b7 100644 --- a/docs/examples/1.3.x/server-php/examples/users/list.md +++ b/docs/examples/1.3.x/server-php/examples/users/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/update-email-verification.md b/docs/examples/1.3.x/server-php/examples/users/update-email-verification.md index 67c3e12ee0b..6b0b5b0d4c2 100644 --- a/docs/examples/1.3.x/server-php/examples/users/update-email-verification.md +++ b/docs/examples/1.3.x/server-php/examples/users/update-email-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/update-email.md b/docs/examples/1.3.x/server-php/examples/users/update-email.md index c6a7412b893..fe35bf057e4 100644 --- a/docs/examples/1.3.x/server-php/examples/users/update-email.md +++ b/docs/examples/1.3.x/server-php/examples/users/update-email.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/update-name.md b/docs/examples/1.3.x/server-php/examples/users/update-name.md index 598ef2a3a2c..838f4367586 100644 --- a/docs/examples/1.3.x/server-php/examples/users/update-name.md +++ b/docs/examples/1.3.x/server-php/examples/users/update-name.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/update-password.md b/docs/examples/1.3.x/server-php/examples/users/update-password.md index de5ec7d1320..040e9e45993 100644 --- a/docs/examples/1.3.x/server-php/examples/users/update-password.md +++ b/docs/examples/1.3.x/server-php/examples/users/update-password.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/update-phone-verification.md b/docs/examples/1.3.x/server-php/examples/users/update-phone-verification.md index e9929a547b6..e18b57274aa 100644 --- a/docs/examples/1.3.x/server-php/examples/users/update-phone-verification.md +++ b/docs/examples/1.3.x/server-php/examples/users/update-phone-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/update-phone.md b/docs/examples/1.3.x/server-php/examples/users/update-phone.md index 0df380a23a9..610b3a65e75 100644 --- a/docs/examples/1.3.x/server-php/examples/users/update-phone.md +++ b/docs/examples/1.3.x/server-php/examples/users/update-phone.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/update-prefs.md b/docs/examples/1.3.x/server-php/examples/users/update-prefs.md index 9c4ebaae2b5..6aaa9451d64 100644 --- a/docs/examples/1.3.x/server-php/examples/users/update-prefs.md +++ b/docs/examples/1.3.x/server-php/examples/users/update-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-php/examples/users/update-status.md b/docs/examples/1.3.x/server-php/examples/users/update-status.md index ad3f6bde79b..dbe489de72f 100644 --- a/docs/examples/1.3.x/server-php/examples/users/update-status.md +++ b/docs/examples/1.3.x/server-php/examples/users/update-status.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.3.x/server-python/examples/account/create-phone-verification.md b/docs/examples/1.3.x/server-python/examples/account/create-phone-verification.md index 2203cdbd0ca..1e8670084d2 100644 --- a/docs/examples/1.3.x/server-python/examples/account/create-phone-verification.md +++ b/docs/examples/1.3.x/server-python/examples/account/create-phone-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/create-recovery.md b/docs/examples/1.3.x/server-python/examples/account/create-recovery.md index 21130fef6db..c86108ff4ee 100644 --- a/docs/examples/1.3.x/server-python/examples/account/create-recovery.md +++ b/docs/examples/1.3.x/server-python/examples/account/create-recovery.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/create-verification.md b/docs/examples/1.3.x/server-python/examples/account/create-verification.md index c45d0d462e0..0bc3954565b 100644 --- a/docs/examples/1.3.x/server-python/examples/account/create-verification.md +++ b/docs/examples/1.3.x/server-python/examples/account/create-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/delete-session.md b/docs/examples/1.3.x/server-python/examples/account/delete-session.md index 8095cdc07fe..449a7861695 100644 --- a/docs/examples/1.3.x/server-python/examples/account/delete-session.md +++ b/docs/examples/1.3.x/server-python/examples/account/delete-session.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/delete-sessions.md b/docs/examples/1.3.x/server-python/examples/account/delete-sessions.md index 1728d61e67d..4f208b93a6c 100644 --- a/docs/examples/1.3.x/server-python/examples/account/delete-sessions.md +++ b/docs/examples/1.3.x/server-python/examples/account/delete-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/get-prefs.md b/docs/examples/1.3.x/server-python/examples/account/get-prefs.md index da2fd7628e8..7063f0c3aa7 100644 --- a/docs/examples/1.3.x/server-python/examples/account/get-prefs.md +++ b/docs/examples/1.3.x/server-python/examples/account/get-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/get-session.md b/docs/examples/1.3.x/server-python/examples/account/get-session.md index 25b8f038373..def8838e19a 100644 --- a/docs/examples/1.3.x/server-python/examples/account/get-session.md +++ b/docs/examples/1.3.x/server-python/examples/account/get-session.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/get.md b/docs/examples/1.3.x/server-python/examples/account/get.md index f75bad7769d..d84d3785836 100644 --- a/docs/examples/1.3.x/server-python/examples/account/get.md +++ b/docs/examples/1.3.x/server-python/examples/account/get.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/list-logs.md b/docs/examples/1.3.x/server-python/examples/account/list-logs.md index 65802d8b0d3..601d243dca0 100644 --- a/docs/examples/1.3.x/server-python/examples/account/list-logs.md +++ b/docs/examples/1.3.x/server-python/examples/account/list-logs.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/list-sessions.md b/docs/examples/1.3.x/server-python/examples/account/list-sessions.md index 12d5c81d923..fcdfd857e72 100644 --- a/docs/examples/1.3.x/server-python/examples/account/list-sessions.md +++ b/docs/examples/1.3.x/server-python/examples/account/list-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/update-email.md b/docs/examples/1.3.x/server-python/examples/account/update-email.md index f4a6776f725..a2e393ae4ae 100644 --- a/docs/examples/1.3.x/server-python/examples/account/update-email.md +++ b/docs/examples/1.3.x/server-python/examples/account/update-email.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/update-name.md b/docs/examples/1.3.x/server-python/examples/account/update-name.md index eb1eb6279b1..b56296cb211 100644 --- a/docs/examples/1.3.x/server-python/examples/account/update-name.md +++ b/docs/examples/1.3.x/server-python/examples/account/update-name.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/update-password.md b/docs/examples/1.3.x/server-python/examples/account/update-password.md index 955ada651d6..7881c472f3f 100644 --- a/docs/examples/1.3.x/server-python/examples/account/update-password.md +++ b/docs/examples/1.3.x/server-python/examples/account/update-password.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/update-phone-verification.md b/docs/examples/1.3.x/server-python/examples/account/update-phone-verification.md index f2a75b4de95..dcba4273c4c 100644 --- a/docs/examples/1.3.x/server-python/examples/account/update-phone-verification.md +++ b/docs/examples/1.3.x/server-python/examples/account/update-phone-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/update-phone.md b/docs/examples/1.3.x/server-python/examples/account/update-phone.md index aaee1f7eecb..0f6470619ee 100644 --- a/docs/examples/1.3.x/server-python/examples/account/update-phone.md +++ b/docs/examples/1.3.x/server-python/examples/account/update-phone.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/update-prefs.md b/docs/examples/1.3.x/server-python/examples/account/update-prefs.md index e96546b05a1..64e32cee2ab 100644 --- a/docs/examples/1.3.x/server-python/examples/account/update-prefs.md +++ b/docs/examples/1.3.x/server-python/examples/account/update-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/update-recovery.md b/docs/examples/1.3.x/server-python/examples/account/update-recovery.md index b4ea8aa89c6..2bb9b10d2c3 100644 --- a/docs/examples/1.3.x/server-python/examples/account/update-recovery.md +++ b/docs/examples/1.3.x/server-python/examples/account/update-recovery.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/update-session.md b/docs/examples/1.3.x/server-python/examples/account/update-session.md index e7234f78015..16ea0183035 100644 --- a/docs/examples/1.3.x/server-python/examples/account/update-session.md +++ b/docs/examples/1.3.x/server-python/examples/account/update-session.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/update-status.md b/docs/examples/1.3.x/server-python/examples/account/update-status.md index 5924d4d54f9..877b8743d14 100644 --- a/docs/examples/1.3.x/server-python/examples/account/update-status.md +++ b/docs/examples/1.3.x/server-python/examples/account/update-status.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/account/update-verification.md b/docs/examples/1.3.x/server-python/examples/account/update-verification.md index 9a410a54a80..e2aecaa1174 100644 --- a/docs/examples/1.3.x/server-python/examples/account/update-verification.md +++ b/docs/examples/1.3.x/server-python/examples/account/update-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/avatars/get-browser.md b/docs/examples/1.3.x/server-python/examples/avatars/get-browser.md index 9ed56d1d4bc..e29ebcd84d7 100644 --- a/docs/examples/1.3.x/server-python/examples/avatars/get-browser.md +++ b/docs/examples/1.3.x/server-python/examples/avatars/get-browser.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/avatars/get-credit-card.md b/docs/examples/1.3.x/server-python/examples/avatars/get-credit-card.md index 9fa6b0fd1f5..3006186d811 100644 --- a/docs/examples/1.3.x/server-python/examples/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/server-python/examples/avatars/get-credit-card.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/avatars/get-favicon.md b/docs/examples/1.3.x/server-python/examples/avatars/get-favicon.md index 75b0315eae2..b860e801ce4 100644 --- a/docs/examples/1.3.x/server-python/examples/avatars/get-favicon.md +++ b/docs/examples/1.3.x/server-python/examples/avatars/get-favicon.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/avatars/get-flag.md b/docs/examples/1.3.x/server-python/examples/avatars/get-flag.md index 70d2e5f2428..055feb42821 100644 --- a/docs/examples/1.3.x/server-python/examples/avatars/get-flag.md +++ b/docs/examples/1.3.x/server-python/examples/avatars/get-flag.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/avatars/get-image.md b/docs/examples/1.3.x/server-python/examples/avatars/get-image.md index 35015d9620f..1cd0bd01641 100644 --- a/docs/examples/1.3.x/server-python/examples/avatars/get-image.md +++ b/docs/examples/1.3.x/server-python/examples/avatars/get-image.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/avatars/get-initials.md b/docs/examples/1.3.x/server-python/examples/avatars/get-initials.md index 639fa03bc91..9e7e5d2c18d 100644 --- a/docs/examples/1.3.x/server-python/examples/avatars/get-initials.md +++ b/docs/examples/1.3.x/server-python/examples/avatars/get-initials.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/avatars/get-q-r.md b/docs/examples/1.3.x/server-python/examples/avatars/get-q-r.md index 27fc8e29241..b3c3e728ab0 100644 --- a/docs/examples/1.3.x/server-python/examples/avatars/get-q-r.md +++ b/docs/examples/1.3.x/server-python/examples/avatars/get-q-r.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/create-boolean-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/create-boolean-attribute.md index f073d3d3b37..e0f333caabe 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/create-boolean-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/create-collection.md b/docs/examples/1.3.x/server-python/examples/databases/create-collection.md index 183c55c4486..ad704dea3d4 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/create-collection.md +++ b/docs/examples/1.3.x/server-python/examples/databases/create-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/create-datetime-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/create-datetime-attribute.md index 5c77689c991..8325de82304 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/create-datetime-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/create-document.md b/docs/examples/1.3.x/server-python/examples/databases/create-document.md index aa95de9ebd5..c712b11bdde 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/create-document.md +++ b/docs/examples/1.3.x/server-python/examples/databases/create-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/create-email-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/create-email-attribute.md index 92cdcb2a8fa..05397d6ab06 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/create-email-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/create-email-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/create-enum-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/create-enum-attribute.md index df66f128962..21e46357902 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/create-enum-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/create-float-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/create-float-attribute.md index 0bfe4248eb6..b7493dfcedb 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/create-float-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/create-float-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/create-index.md b/docs/examples/1.3.x/server-python/examples/databases/create-index.md index 78a7d3327e7..2237a7397e7 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/create-index.md +++ b/docs/examples/1.3.x/server-python/examples/databases/create-index.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/create-integer-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/create-integer-attribute.md index b3cce2bde48..b8a213bc219 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/create-integer-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/create-ip-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/create-ip-attribute.md index 967d284b9a9..85f1cd5b00e 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/create-ip-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/create-relationship-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/create-relationship-attribute.md index 4f69ecae003..041d8f20057 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/create-relationship-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/create-string-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/create-string-attribute.md index 00bbbe9ce74..1992f71e443 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/create-string-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/create-string-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/create-url-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/create-url-attribute.md index fd5b7f44e37..49e2cbf68c5 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/create-url-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/create-url-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/create.md b/docs/examples/1.3.x/server-python/examples/databases/create.md index e4a832066b1..7c1f63cb145 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/create.md +++ b/docs/examples/1.3.x/server-python/examples/databases/create.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/delete-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/delete-attribute.md index 41871b26622..7ca55adf156 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/delete-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/delete-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/delete-collection.md b/docs/examples/1.3.x/server-python/examples/databases/delete-collection.md index 998bb61fb90..af37479be2e 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/delete-collection.md +++ b/docs/examples/1.3.x/server-python/examples/databases/delete-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/delete-document.md b/docs/examples/1.3.x/server-python/examples/databases/delete-document.md index 605b087b7c2..6a3a3588c68 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/delete-document.md +++ b/docs/examples/1.3.x/server-python/examples/databases/delete-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/delete-index.md b/docs/examples/1.3.x/server-python/examples/databases/delete-index.md index a53e06c0242..5f32135c3b6 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/delete-index.md +++ b/docs/examples/1.3.x/server-python/examples/databases/delete-index.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/delete.md b/docs/examples/1.3.x/server-python/examples/databases/delete.md index 780e1451efb..594f357bbf5 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/delete.md +++ b/docs/examples/1.3.x/server-python/examples/databases/delete.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/get-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/get-attribute.md index 0a6105272ad..b855fbc6003 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/get-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/get-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/get-collection.md b/docs/examples/1.3.x/server-python/examples/databases/get-collection.md index 90f57a366c6..5d176dd2c5d 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/get-collection.md +++ b/docs/examples/1.3.x/server-python/examples/databases/get-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/get-document.md b/docs/examples/1.3.x/server-python/examples/databases/get-document.md index 708538418e3..7a11da3c273 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/get-document.md +++ b/docs/examples/1.3.x/server-python/examples/databases/get-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/get-index.md b/docs/examples/1.3.x/server-python/examples/databases/get-index.md index 3213c666604..6c376c69071 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/get-index.md +++ b/docs/examples/1.3.x/server-python/examples/databases/get-index.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/get.md b/docs/examples/1.3.x/server-python/examples/databases/get.md index 93a46b3fa4d..c8906fc9aff 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/get.md +++ b/docs/examples/1.3.x/server-python/examples/databases/get.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/list-attributes.md b/docs/examples/1.3.x/server-python/examples/databases/list-attributes.md index 632202c8947..3c173668a4a 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/list-attributes.md +++ b/docs/examples/1.3.x/server-python/examples/databases/list-attributes.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/list-collections.md b/docs/examples/1.3.x/server-python/examples/databases/list-collections.md index d0c98dad97e..197229e3081 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/list-collections.md +++ b/docs/examples/1.3.x/server-python/examples/databases/list-collections.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/list-documents.md b/docs/examples/1.3.x/server-python/examples/databases/list-documents.md index 5eb03b2658f..01cc594d98a 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/list-documents.md +++ b/docs/examples/1.3.x/server-python/examples/databases/list-documents.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/list-indexes.md b/docs/examples/1.3.x/server-python/examples/databases/list-indexes.md index b4224be62c8..f65545454b2 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/list-indexes.md +++ b/docs/examples/1.3.x/server-python/examples/databases/list-indexes.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/list.md b/docs/examples/1.3.x/server-python/examples/databases/list.md index 3aa6839d20e..117119439b7 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/list.md +++ b/docs/examples/1.3.x/server-python/examples/databases/list.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/update-boolean-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/update-boolean-attribute.md index e6a7d55fb6b..e9cd95c7830 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/update-boolean-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/update-collection.md b/docs/examples/1.3.x/server-python/examples/databases/update-collection.md index 4a38aab4d49..49c5c8154bf 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/update-collection.md +++ b/docs/examples/1.3.x/server-python/examples/databases/update-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/update-datetime-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/update-datetime-attribute.md index 5c792573ae6..de0ac103e97 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/update-datetime-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/update-document.md b/docs/examples/1.3.x/server-python/examples/databases/update-document.md index c768c5403c3..fc6645bf9f4 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/update-document.md +++ b/docs/examples/1.3.x/server-python/examples/databases/update-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/update-email-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/update-email-attribute.md index 8148b012fd3..b67549292b6 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/update-email-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/update-email-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/update-enum-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/update-enum-attribute.md index 65ef26f274f..79c491ecbe8 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/update-enum-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/update-float-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/update-float-attribute.md index efbf1ad04fe..9c34b6f8f27 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/update-float-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/update-float-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/update-integer-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/update-integer-attribute.md index 61c74b86751..8ab1cd1d28a 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/update-integer-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/update-ip-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/update-ip-attribute.md index 7d5a35d749d..4bd7899ad81 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/update-ip-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/update-relationship-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/update-relationship-attribute.md index 7c426a61e3a..cc3b6207341 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/update-relationship-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/update-string-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/update-string-attribute.md index 2ee236e6243..f59ee07ad98 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/update-string-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/update-string-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/update-url-attribute.md b/docs/examples/1.3.x/server-python/examples/databases/update-url-attribute.md index 119c787d2d8..a0b2e04b457 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/update-url-attribute.md +++ b/docs/examples/1.3.x/server-python/examples/databases/update-url-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/databases/update.md b/docs/examples/1.3.x/server-python/examples/databases/update.md index d46692ece42..9e32a878888 100644 --- a/docs/examples/1.3.x/server-python/examples/databases/update.md +++ b/docs/examples/1.3.x/server-python/examples/databases/update.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/create-build.md b/docs/examples/1.3.x/server-python/examples/functions/create-build.md index 76888f8b16d..398973ce571 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/create-build.md +++ b/docs/examples/1.3.x/server-python/examples/functions/create-build.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/create-deployment.md b/docs/examples/1.3.x/server-python/examples/functions/create-deployment.md index d29c43f2583..859cc3745df 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/create-deployment.md +++ b/docs/examples/1.3.x/server-python/examples/functions/create-deployment.md @@ -5,7 +5,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/create-execution.md b/docs/examples/1.3.x/server-python/examples/functions/create-execution.md index 7c045225b3e..b4476dae982 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/create-execution.md +++ b/docs/examples/1.3.x/server-python/examples/functions/create-execution.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/create-variable.md b/docs/examples/1.3.x/server-python/examples/functions/create-variable.md index f33ed08a717..c24fb5c825b 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/create-variable.md +++ b/docs/examples/1.3.x/server-python/examples/functions/create-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/create.md b/docs/examples/1.3.x/server-python/examples/functions/create.md index fa6f46ddc14..e9558ad7139 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/create.md +++ b/docs/examples/1.3.x/server-python/examples/functions/create.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/delete-deployment.md b/docs/examples/1.3.x/server-python/examples/functions/delete-deployment.md index 42d526eca99..2d186c10c6e 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/delete-deployment.md +++ b/docs/examples/1.3.x/server-python/examples/functions/delete-deployment.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/delete-variable.md b/docs/examples/1.3.x/server-python/examples/functions/delete-variable.md index cae0f2df9fd..d527ff09ce4 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/delete-variable.md +++ b/docs/examples/1.3.x/server-python/examples/functions/delete-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/delete.md b/docs/examples/1.3.x/server-python/examples/functions/delete.md index e89213ec7ab..585e2f9b105 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/delete.md +++ b/docs/examples/1.3.x/server-python/examples/functions/delete.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/get-deployment.md b/docs/examples/1.3.x/server-python/examples/functions/get-deployment.md index 6257b59d2e3..ccb30ccbb5b 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/get-deployment.md +++ b/docs/examples/1.3.x/server-python/examples/functions/get-deployment.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/get-execution.md b/docs/examples/1.3.x/server-python/examples/functions/get-execution.md index f0e4f0dc67a..110a7606667 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/get-execution.md +++ b/docs/examples/1.3.x/server-python/examples/functions/get-execution.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/get-variable.md b/docs/examples/1.3.x/server-python/examples/functions/get-variable.md index 4e71bff24fd..d6c445dc3f6 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/get-variable.md +++ b/docs/examples/1.3.x/server-python/examples/functions/get-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/get.md b/docs/examples/1.3.x/server-python/examples/functions/get.md index 30e1d5959af..4b1bbcf72fb 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/get.md +++ b/docs/examples/1.3.x/server-python/examples/functions/get.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/list-deployments.md b/docs/examples/1.3.x/server-python/examples/functions/list-deployments.md index d1797a18b3d..9f1eeef9780 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/list-deployments.md +++ b/docs/examples/1.3.x/server-python/examples/functions/list-deployments.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/list-executions.md b/docs/examples/1.3.x/server-python/examples/functions/list-executions.md index d70f004478b..0491ff2b3dd 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/list-executions.md +++ b/docs/examples/1.3.x/server-python/examples/functions/list-executions.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/list-runtimes.md b/docs/examples/1.3.x/server-python/examples/functions/list-runtimes.md index 19b85e23697..6255ce39865 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/list-runtimes.md +++ b/docs/examples/1.3.x/server-python/examples/functions/list-runtimes.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/list-variables.md b/docs/examples/1.3.x/server-python/examples/functions/list-variables.md index 9a72bba9f81..bdaa123e0eb 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/list-variables.md +++ b/docs/examples/1.3.x/server-python/examples/functions/list-variables.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/list.md b/docs/examples/1.3.x/server-python/examples/functions/list.md index b8442e5adee..6d05cc952ce 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/list.md +++ b/docs/examples/1.3.x/server-python/examples/functions/list.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/update-deployment.md b/docs/examples/1.3.x/server-python/examples/functions/update-deployment.md index 87dd09710fc..bb5eb869f90 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/update-deployment.md +++ b/docs/examples/1.3.x/server-python/examples/functions/update-deployment.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/update-variable.md b/docs/examples/1.3.x/server-python/examples/functions/update-variable.md index ab5b43abce1..4c98e068073 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/update-variable.md +++ b/docs/examples/1.3.x/server-python/examples/functions/update-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/functions/update.md b/docs/examples/1.3.x/server-python/examples/functions/update.md index 3960054f3af..a03fd2c02e9 100644 --- a/docs/examples/1.3.x/server-python/examples/functions/update.md +++ b/docs/examples/1.3.x/server-python/examples/functions/update.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/graphql/mutation.md b/docs/examples/1.3.x/server-python/examples/graphql/mutation.md index 24226a5a013..9f43d0e5d1c 100644 --- a/docs/examples/1.3.x/server-python/examples/graphql/mutation.md +++ b/docs/examples/1.3.x/server-python/examples/graphql/mutation.md @@ -4,7 +4,7 @@ from appwrite.services.graphql import Graphql client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/graphql/query.md b/docs/examples/1.3.x/server-python/examples/graphql/query.md index 8e1597c7596..a7315f8d317 100644 --- a/docs/examples/1.3.x/server-python/examples/graphql/query.md +++ b/docs/examples/1.3.x/server-python/examples/graphql/query.md @@ -4,7 +4,7 @@ from appwrite.services.graphql import Graphql client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/health/get-antivirus.md b/docs/examples/1.3.x/server-python/examples/health/get-antivirus.md index fbfaf0e52ea..28372001042 100644 --- a/docs/examples/1.3.x/server-python/examples/health/get-antivirus.md +++ b/docs/examples/1.3.x/server-python/examples/health/get-antivirus.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/health/get-cache.md b/docs/examples/1.3.x/server-python/examples/health/get-cache.md index 40bc01000b1..44ac2fa9406 100644 --- a/docs/examples/1.3.x/server-python/examples/health/get-cache.md +++ b/docs/examples/1.3.x/server-python/examples/health/get-cache.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/health/get-d-b.md b/docs/examples/1.3.x/server-python/examples/health/get-d-b.md index 803dd73bd3f..7362e839169 100644 --- a/docs/examples/1.3.x/server-python/examples/health/get-d-b.md +++ b/docs/examples/1.3.x/server-python/examples/health/get-d-b.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/health/get-queue-certificates.md b/docs/examples/1.3.x/server-python/examples/health/get-queue-certificates.md index 4fb0266d117..fed14c831a0 100644 --- a/docs/examples/1.3.x/server-python/examples/health/get-queue-certificates.md +++ b/docs/examples/1.3.x/server-python/examples/health/get-queue-certificates.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/health/get-queue-functions.md b/docs/examples/1.3.x/server-python/examples/health/get-queue-functions.md index 92e4e2021df..96700cc2fd6 100644 --- a/docs/examples/1.3.x/server-python/examples/health/get-queue-functions.md +++ b/docs/examples/1.3.x/server-python/examples/health/get-queue-functions.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/health/get-queue-logs.md b/docs/examples/1.3.x/server-python/examples/health/get-queue-logs.md index b798ad73323..985309b9ffb 100644 --- a/docs/examples/1.3.x/server-python/examples/health/get-queue-logs.md +++ b/docs/examples/1.3.x/server-python/examples/health/get-queue-logs.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/health/get-queue-webhooks.md b/docs/examples/1.3.x/server-python/examples/health/get-queue-webhooks.md index 8406de1ff8f..62da17c248b 100644 --- a/docs/examples/1.3.x/server-python/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.3.x/server-python/examples/health/get-queue-webhooks.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/health/get-storage-local.md b/docs/examples/1.3.x/server-python/examples/health/get-storage-local.md index bb2533e27f7..297a6a5714b 100644 --- a/docs/examples/1.3.x/server-python/examples/health/get-storage-local.md +++ b/docs/examples/1.3.x/server-python/examples/health/get-storage-local.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/health/get-time.md b/docs/examples/1.3.x/server-python/examples/health/get-time.md index 9fe313dd5f3..0034705ed9c 100644 --- a/docs/examples/1.3.x/server-python/examples/health/get-time.md +++ b/docs/examples/1.3.x/server-python/examples/health/get-time.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/health/get.md b/docs/examples/1.3.x/server-python/examples/health/get.md index d3ff5943879..118be474f30 100644 --- a/docs/examples/1.3.x/server-python/examples/health/get.md +++ b/docs/examples/1.3.x/server-python/examples/health/get.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/locale/get.md b/docs/examples/1.3.x/server-python/examples/locale/get.md index 06b04f2f631..de81e967db7 100644 --- a/docs/examples/1.3.x/server-python/examples/locale/get.md +++ b/docs/examples/1.3.x/server-python/examples/locale/get.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/locale/list-continents.md b/docs/examples/1.3.x/server-python/examples/locale/list-continents.md index ba9c94f8a97..bcd150f5cd1 100644 --- a/docs/examples/1.3.x/server-python/examples/locale/list-continents.md +++ b/docs/examples/1.3.x/server-python/examples/locale/list-continents.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/locale/list-countries-e-u.md b/docs/examples/1.3.x/server-python/examples/locale/list-countries-e-u.md index ea4c43cab6e..2dc40cd4877 100644 --- a/docs/examples/1.3.x/server-python/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/server-python/examples/locale/list-countries-e-u.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/locale/list-countries-phones.md b/docs/examples/1.3.x/server-python/examples/locale/list-countries-phones.md index 5a4cafe5200..b1b0773b3f5 100644 --- a/docs/examples/1.3.x/server-python/examples/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/server-python/examples/locale/list-countries-phones.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/locale/list-countries.md b/docs/examples/1.3.x/server-python/examples/locale/list-countries.md index f8ec83c83ec..278a039bbde 100644 --- a/docs/examples/1.3.x/server-python/examples/locale/list-countries.md +++ b/docs/examples/1.3.x/server-python/examples/locale/list-countries.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/locale/list-currencies.md b/docs/examples/1.3.x/server-python/examples/locale/list-currencies.md index 347e81c54c3..077d7c393c3 100644 --- a/docs/examples/1.3.x/server-python/examples/locale/list-currencies.md +++ b/docs/examples/1.3.x/server-python/examples/locale/list-currencies.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/locale/list-languages.md b/docs/examples/1.3.x/server-python/examples/locale/list-languages.md index ce50a6efe77..9cc7c8f9758 100644 --- a/docs/examples/1.3.x/server-python/examples/locale/list-languages.md +++ b/docs/examples/1.3.x/server-python/examples/locale/list-languages.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/storage/create-bucket.md b/docs/examples/1.3.x/server-python/examples/storage/create-bucket.md index 72ffdccbd83..1955987f172 100644 --- a/docs/examples/1.3.x/server-python/examples/storage/create-bucket.md +++ b/docs/examples/1.3.x/server-python/examples/storage/create-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/storage/create-file.md b/docs/examples/1.3.x/server-python/examples/storage/create-file.md index b469b5bdd59..250f469290e 100644 --- a/docs/examples/1.3.x/server-python/examples/storage/create-file.md +++ b/docs/examples/1.3.x/server-python/examples/storage/create-file.md @@ -5,7 +5,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/storage/delete-bucket.md b/docs/examples/1.3.x/server-python/examples/storage/delete-bucket.md index 60dc1074fd0..c6c93435d02 100644 --- a/docs/examples/1.3.x/server-python/examples/storage/delete-bucket.md +++ b/docs/examples/1.3.x/server-python/examples/storage/delete-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/storage/delete-file.md b/docs/examples/1.3.x/server-python/examples/storage/delete-file.md index 9bed0af7846..accf6697bfc 100644 --- a/docs/examples/1.3.x/server-python/examples/storage/delete-file.md +++ b/docs/examples/1.3.x/server-python/examples/storage/delete-file.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/storage/get-bucket.md b/docs/examples/1.3.x/server-python/examples/storage/get-bucket.md index 7ea64f22aa8..4fd4e70b31e 100644 --- a/docs/examples/1.3.x/server-python/examples/storage/get-bucket.md +++ b/docs/examples/1.3.x/server-python/examples/storage/get-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/storage/get-file-download.md b/docs/examples/1.3.x/server-python/examples/storage/get-file-download.md index e9f5cce8249..ef57f109552 100644 --- a/docs/examples/1.3.x/server-python/examples/storage/get-file-download.md +++ b/docs/examples/1.3.x/server-python/examples/storage/get-file-download.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/storage/get-file-preview.md b/docs/examples/1.3.x/server-python/examples/storage/get-file-preview.md index 4e12291f136..c7b90b96558 100644 --- a/docs/examples/1.3.x/server-python/examples/storage/get-file-preview.md +++ b/docs/examples/1.3.x/server-python/examples/storage/get-file-preview.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/storage/get-file-view.md b/docs/examples/1.3.x/server-python/examples/storage/get-file-view.md index 01cbfafd260..bd8efc6e45b 100644 --- a/docs/examples/1.3.x/server-python/examples/storage/get-file-view.md +++ b/docs/examples/1.3.x/server-python/examples/storage/get-file-view.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/storage/get-file.md b/docs/examples/1.3.x/server-python/examples/storage/get-file.md index f83ed8aa619..e0013ba120a 100644 --- a/docs/examples/1.3.x/server-python/examples/storage/get-file.md +++ b/docs/examples/1.3.x/server-python/examples/storage/get-file.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/storage/list-buckets.md b/docs/examples/1.3.x/server-python/examples/storage/list-buckets.md index 204fd9598c2..450f876d92f 100644 --- a/docs/examples/1.3.x/server-python/examples/storage/list-buckets.md +++ b/docs/examples/1.3.x/server-python/examples/storage/list-buckets.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/storage/list-files.md b/docs/examples/1.3.x/server-python/examples/storage/list-files.md index 63101e215ec..05df2d00564 100644 --- a/docs/examples/1.3.x/server-python/examples/storage/list-files.md +++ b/docs/examples/1.3.x/server-python/examples/storage/list-files.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/storage/update-bucket.md b/docs/examples/1.3.x/server-python/examples/storage/update-bucket.md index fb1b76b222a..f47bfa3d0e8 100644 --- a/docs/examples/1.3.x/server-python/examples/storage/update-bucket.md +++ b/docs/examples/1.3.x/server-python/examples/storage/update-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/storage/update-file.md b/docs/examples/1.3.x/server-python/examples/storage/update-file.md index 24a92e36c62..3208e44d2f0 100644 --- a/docs/examples/1.3.x/server-python/examples/storage/update-file.md +++ b/docs/examples/1.3.x/server-python/examples/storage/update-file.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/teams/create-membership.md b/docs/examples/1.3.x/server-python/examples/teams/create-membership.md index 57682383f79..c8d46aba10e 100644 --- a/docs/examples/1.3.x/server-python/examples/teams/create-membership.md +++ b/docs/examples/1.3.x/server-python/examples/teams/create-membership.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/teams/create.md b/docs/examples/1.3.x/server-python/examples/teams/create.md index c69012359f0..87e76cb0625 100644 --- a/docs/examples/1.3.x/server-python/examples/teams/create.md +++ b/docs/examples/1.3.x/server-python/examples/teams/create.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/teams/delete-membership.md b/docs/examples/1.3.x/server-python/examples/teams/delete-membership.md index f8d875986fe..7f5e4055d1f 100644 --- a/docs/examples/1.3.x/server-python/examples/teams/delete-membership.md +++ b/docs/examples/1.3.x/server-python/examples/teams/delete-membership.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/teams/delete.md b/docs/examples/1.3.x/server-python/examples/teams/delete.md index 4fc0fa44cca..651b861f03e 100644 --- a/docs/examples/1.3.x/server-python/examples/teams/delete.md +++ b/docs/examples/1.3.x/server-python/examples/teams/delete.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/teams/get-membership.md b/docs/examples/1.3.x/server-python/examples/teams/get-membership.md index e9c62ae3e34..3c351b16f78 100644 --- a/docs/examples/1.3.x/server-python/examples/teams/get-membership.md +++ b/docs/examples/1.3.x/server-python/examples/teams/get-membership.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/teams/get-prefs.md b/docs/examples/1.3.x/server-python/examples/teams/get-prefs.md index 40909fa7d88..b2b10fbbb21 100644 --- a/docs/examples/1.3.x/server-python/examples/teams/get-prefs.md +++ b/docs/examples/1.3.x/server-python/examples/teams/get-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/teams/get.md b/docs/examples/1.3.x/server-python/examples/teams/get.md index fdca2fc28fd..32100ad47f3 100644 --- a/docs/examples/1.3.x/server-python/examples/teams/get.md +++ b/docs/examples/1.3.x/server-python/examples/teams/get.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/teams/list-memberships.md b/docs/examples/1.3.x/server-python/examples/teams/list-memberships.md index 63e662a7a60..5001ae3e8aa 100644 --- a/docs/examples/1.3.x/server-python/examples/teams/list-memberships.md +++ b/docs/examples/1.3.x/server-python/examples/teams/list-memberships.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/teams/list.md b/docs/examples/1.3.x/server-python/examples/teams/list.md index e60cb60dab8..5a73d327661 100644 --- a/docs/examples/1.3.x/server-python/examples/teams/list.md +++ b/docs/examples/1.3.x/server-python/examples/teams/list.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/teams/update-membership-roles.md b/docs/examples/1.3.x/server-python/examples/teams/update-membership-roles.md index dcfd7a4e554..e161a33d5c6 100644 --- a/docs/examples/1.3.x/server-python/examples/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/server-python/examples/teams/update-membership-roles.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/teams/update-membership-status.md b/docs/examples/1.3.x/server-python/examples/teams/update-membership-status.md index a6cd4cd45f5..f35f8f7792a 100644 --- a/docs/examples/1.3.x/server-python/examples/teams/update-membership-status.md +++ b/docs/examples/1.3.x/server-python/examples/teams/update-membership-status.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/teams/update-name.md b/docs/examples/1.3.x/server-python/examples/teams/update-name.md index 929f4ecb489..b890196f110 100644 --- a/docs/examples/1.3.x/server-python/examples/teams/update-name.md +++ b/docs/examples/1.3.x/server-python/examples/teams/update-name.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/teams/update-prefs.md b/docs/examples/1.3.x/server-python/examples/teams/update-prefs.md index 4176c622a0b..ef5c5989f72 100644 --- a/docs/examples/1.3.x/server-python/examples/teams/update-prefs.md +++ b/docs/examples/1.3.x/server-python/examples/teams/update-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.3.x/server-python/examples/users/create-argon2user.md b/docs/examples/1.3.x/server-python/examples/users/create-argon2user.md index be1e8cef36c..63149881324 100644 --- a/docs/examples/1.3.x/server-python/examples/users/create-argon2user.md +++ b/docs/examples/1.3.x/server-python/examples/users/create-argon2user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/create-bcrypt-user.md b/docs/examples/1.3.x/server-python/examples/users/create-bcrypt-user.md index 77c9918879c..32632b9c1d4 100644 --- a/docs/examples/1.3.x/server-python/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.3.x/server-python/examples/users/create-bcrypt-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/create-m-d5user.md b/docs/examples/1.3.x/server-python/examples/users/create-m-d5user.md index f3ab3f84183..d2ecc0cc0b6 100644 --- a/docs/examples/1.3.x/server-python/examples/users/create-m-d5user.md +++ b/docs/examples/1.3.x/server-python/examples/users/create-m-d5user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/create-p-h-pass-user.md b/docs/examples/1.3.x/server-python/examples/users/create-p-h-pass-user.md index e715f47c145..7f4c6bcfd68 100644 --- a/docs/examples/1.3.x/server-python/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.3.x/server-python/examples/users/create-p-h-pass-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/create-s-h-a-user.md b/docs/examples/1.3.x/server-python/examples/users/create-s-h-a-user.md index 2a2db5a6736..17e4209ae78 100644 --- a/docs/examples/1.3.x/server-python/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.3.x/server-python/examples/users/create-s-h-a-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/create-scrypt-modified-user.md b/docs/examples/1.3.x/server-python/examples/users/create-scrypt-modified-user.md index 0b42e98dc71..64b54170aea 100644 --- a/docs/examples/1.3.x/server-python/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.3.x/server-python/examples/users/create-scrypt-modified-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/create-scrypt-user.md b/docs/examples/1.3.x/server-python/examples/users/create-scrypt-user.md index b4456230183..9a934d5caef 100644 --- a/docs/examples/1.3.x/server-python/examples/users/create-scrypt-user.md +++ b/docs/examples/1.3.x/server-python/examples/users/create-scrypt-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/create.md b/docs/examples/1.3.x/server-python/examples/users/create.md index 05249c08eae..657449e3b1e 100644 --- a/docs/examples/1.3.x/server-python/examples/users/create.md +++ b/docs/examples/1.3.x/server-python/examples/users/create.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/delete-session.md b/docs/examples/1.3.x/server-python/examples/users/delete-session.md index 26b041db1d4..baba61e58b3 100644 --- a/docs/examples/1.3.x/server-python/examples/users/delete-session.md +++ b/docs/examples/1.3.x/server-python/examples/users/delete-session.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/delete-sessions.md b/docs/examples/1.3.x/server-python/examples/users/delete-sessions.md index dabe4f627d4..0c7f38ba8e4 100644 --- a/docs/examples/1.3.x/server-python/examples/users/delete-sessions.md +++ b/docs/examples/1.3.x/server-python/examples/users/delete-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/delete.md b/docs/examples/1.3.x/server-python/examples/users/delete.md index 7fdc77576b9..4a21cab6fd3 100644 --- a/docs/examples/1.3.x/server-python/examples/users/delete.md +++ b/docs/examples/1.3.x/server-python/examples/users/delete.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/get-prefs.md b/docs/examples/1.3.x/server-python/examples/users/get-prefs.md index 2bbaa88c59a..bf325a4fda8 100644 --- a/docs/examples/1.3.x/server-python/examples/users/get-prefs.md +++ b/docs/examples/1.3.x/server-python/examples/users/get-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/get.md b/docs/examples/1.3.x/server-python/examples/users/get.md index 463957d3941..7491d3db17e 100644 --- a/docs/examples/1.3.x/server-python/examples/users/get.md +++ b/docs/examples/1.3.x/server-python/examples/users/get.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/list-logs.md b/docs/examples/1.3.x/server-python/examples/users/list-logs.md index ca3a5eb8150..84dc775e04a 100644 --- a/docs/examples/1.3.x/server-python/examples/users/list-logs.md +++ b/docs/examples/1.3.x/server-python/examples/users/list-logs.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/list-memberships.md b/docs/examples/1.3.x/server-python/examples/users/list-memberships.md index 0dfb97afce7..d091789b8bc 100644 --- a/docs/examples/1.3.x/server-python/examples/users/list-memberships.md +++ b/docs/examples/1.3.x/server-python/examples/users/list-memberships.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/list-sessions.md b/docs/examples/1.3.x/server-python/examples/users/list-sessions.md index 5f8fbd68ea7..75e3383a141 100644 --- a/docs/examples/1.3.x/server-python/examples/users/list-sessions.md +++ b/docs/examples/1.3.x/server-python/examples/users/list-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/list.md b/docs/examples/1.3.x/server-python/examples/users/list.md index baaf42c5745..1f82be4b740 100644 --- a/docs/examples/1.3.x/server-python/examples/users/list.md +++ b/docs/examples/1.3.x/server-python/examples/users/list.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/update-email-verification.md b/docs/examples/1.3.x/server-python/examples/users/update-email-verification.md index 8be33ad97f3..2828171035c 100644 --- a/docs/examples/1.3.x/server-python/examples/users/update-email-verification.md +++ b/docs/examples/1.3.x/server-python/examples/users/update-email-verification.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/update-email.md b/docs/examples/1.3.x/server-python/examples/users/update-email.md index 4899bd39362..370fedf8c46 100644 --- a/docs/examples/1.3.x/server-python/examples/users/update-email.md +++ b/docs/examples/1.3.x/server-python/examples/users/update-email.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/update-name.md b/docs/examples/1.3.x/server-python/examples/users/update-name.md index 66bb6b29204..e8411d203b0 100644 --- a/docs/examples/1.3.x/server-python/examples/users/update-name.md +++ b/docs/examples/1.3.x/server-python/examples/users/update-name.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/update-password.md b/docs/examples/1.3.x/server-python/examples/users/update-password.md index e79f1255b81..548768b400d 100644 --- a/docs/examples/1.3.x/server-python/examples/users/update-password.md +++ b/docs/examples/1.3.x/server-python/examples/users/update-password.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/update-phone-verification.md b/docs/examples/1.3.x/server-python/examples/users/update-phone-verification.md index e42317ca30b..e2d69ef2fc0 100644 --- a/docs/examples/1.3.x/server-python/examples/users/update-phone-verification.md +++ b/docs/examples/1.3.x/server-python/examples/users/update-phone-verification.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/update-phone.md b/docs/examples/1.3.x/server-python/examples/users/update-phone.md index 6df39fc9940..b6165469e8a 100644 --- a/docs/examples/1.3.x/server-python/examples/users/update-phone.md +++ b/docs/examples/1.3.x/server-python/examples/users/update-phone.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/update-prefs.md b/docs/examples/1.3.x/server-python/examples/users/update-prefs.md index 53d1e524e20..432b9da023a 100644 --- a/docs/examples/1.3.x/server-python/examples/users/update-prefs.md +++ b/docs/examples/1.3.x/server-python/examples/users/update-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-python/examples/users/update-status.md b/docs/examples/1.3.x/server-python/examples/users/update-status.md index 6d1577d4014..2afab7539fe 100644 --- a/docs/examples/1.3.x/server-python/examples/users/update-status.md +++ b/docs/examples/1.3.x/server-python/examples/users/update-status.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.3.x/server-ruby/examples/account/create-phone-verification.md b/docs/examples/1.3.x/server-ruby/examples/account/create-phone-verification.md index 7ec0a1c0c94..9ea5aa170c0 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/create-phone-verification.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/create-phone-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/create-recovery.md b/docs/examples/1.3.x/server-ruby/examples/account/create-recovery.md index 5c6d13c7240..dfa4038915d 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/create-recovery.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/create-recovery.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/create-verification.md b/docs/examples/1.3.x/server-ruby/examples/account/create-verification.md index dcd9722e471..37b838f4d25 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/create-verification.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/create-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/delete-session.md b/docs/examples/1.3.x/server-ruby/examples/account/delete-session.md index 3357b2ba20e..788b1d0dc15 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/delete-session.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/delete-session.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/delete-sessions.md b/docs/examples/1.3.x/server-ruby/examples/account/delete-sessions.md index b218a536dbe..fecb93ca767 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/delete-sessions.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/delete-sessions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/get-prefs.md b/docs/examples/1.3.x/server-ruby/examples/account/get-prefs.md index 24092b922b9..9870af6340c 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/get-prefs.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/get-prefs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/get-session.md b/docs/examples/1.3.x/server-ruby/examples/account/get-session.md index 2a8209031d0..09946ae0013 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/get-session.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/get-session.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/get.md b/docs/examples/1.3.x/server-ruby/examples/account/get.md index 61237b22157..616316ca8ca 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/get.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/list-logs.md b/docs/examples/1.3.x/server-ruby/examples/account/list-logs.md index 8a08eb96bef..22e23f38ee6 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/list-logs.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/list-logs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/list-sessions.md b/docs/examples/1.3.x/server-ruby/examples/account/list-sessions.md index a6bcb6816dd..9e267c659dd 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/list-sessions.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/list-sessions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/update-email.md b/docs/examples/1.3.x/server-ruby/examples/account/update-email.md index cd2e10cbbe3..1a871d27908 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/update-email.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/update-email.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/update-name.md b/docs/examples/1.3.x/server-ruby/examples/account/update-name.md index 2685e88cf60..f7a2bec7878 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/update-name.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/update-name.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/update-password.md b/docs/examples/1.3.x/server-ruby/examples/account/update-password.md index 6ec26f407af..fb7e3a7327f 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/update-password.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/update-password.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/update-phone-verification.md b/docs/examples/1.3.x/server-ruby/examples/account/update-phone-verification.md index 103b32c00da..6a0345a6f61 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/update-phone-verification.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/update-phone-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/update-phone.md b/docs/examples/1.3.x/server-ruby/examples/account/update-phone.md index 377c578deaf..aa6dc9804ce 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/update-phone.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/update-phone.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/update-prefs.md b/docs/examples/1.3.x/server-ruby/examples/account/update-prefs.md index 338a9704f1e..1e0f9c836cc 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/update-prefs.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/update-prefs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/update-recovery.md b/docs/examples/1.3.x/server-ruby/examples/account/update-recovery.md index fa901de8576..357bfa9d1d8 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/update-recovery.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/update-recovery.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/update-session.md b/docs/examples/1.3.x/server-ruby/examples/account/update-session.md index 31dde2e94fa..2de00124c65 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/update-session.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/update-session.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/update-status.md b/docs/examples/1.3.x/server-ruby/examples/account/update-status.md index ea7a3857b55..f0e73d13d55 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/update-status.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/update-status.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/account/update-verification.md b/docs/examples/1.3.x/server-ruby/examples/account/update-verification.md index b8f674ec773..32d4c79de07 100644 --- a/docs/examples/1.3.x/server-ruby/examples/account/update-verification.md +++ b/docs/examples/1.3.x/server-ruby/examples/account/update-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/avatars/get-browser.md b/docs/examples/1.3.x/server-ruby/examples/avatars/get-browser.md index 2a66b46b926..11fa186f0e1 100644 --- a/docs/examples/1.3.x/server-ruby/examples/avatars/get-browser.md +++ b/docs/examples/1.3.x/server-ruby/examples/avatars/get-browser.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/avatars/get-credit-card.md b/docs/examples/1.3.x/server-ruby/examples/avatars/get-credit-card.md index d5bcaa824f8..47c8dc8e076 100644 --- a/docs/examples/1.3.x/server-ruby/examples/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/server-ruby/examples/avatars/get-credit-card.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/avatars/get-favicon.md b/docs/examples/1.3.x/server-ruby/examples/avatars/get-favicon.md index c995fb2036a..48263bc19df 100644 --- a/docs/examples/1.3.x/server-ruby/examples/avatars/get-favicon.md +++ b/docs/examples/1.3.x/server-ruby/examples/avatars/get-favicon.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/avatars/get-flag.md b/docs/examples/1.3.x/server-ruby/examples/avatars/get-flag.md index 7633756425e..17e2cfb0539 100644 --- a/docs/examples/1.3.x/server-ruby/examples/avatars/get-flag.md +++ b/docs/examples/1.3.x/server-ruby/examples/avatars/get-flag.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/avatars/get-image.md b/docs/examples/1.3.x/server-ruby/examples/avatars/get-image.md index 4ea52a60e4b..168cc78d47f 100644 --- a/docs/examples/1.3.x/server-ruby/examples/avatars/get-image.md +++ b/docs/examples/1.3.x/server-ruby/examples/avatars/get-image.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/avatars/get-initials.md b/docs/examples/1.3.x/server-ruby/examples/avatars/get-initials.md index 62a8ff855d9..c6218320696 100644 --- a/docs/examples/1.3.x/server-ruby/examples/avatars/get-initials.md +++ b/docs/examples/1.3.x/server-ruby/examples/avatars/get-initials.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/avatars/get-q-r.md b/docs/examples/1.3.x/server-ruby/examples/avatars/get-q-r.md index 03a1f14aa97..93b91d13ea3 100644 --- a/docs/examples/1.3.x/server-ruby/examples/avatars/get-q-r.md +++ b/docs/examples/1.3.x/server-ruby/examples/avatars/get-q-r.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/create-boolean-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/create-boolean-attribute.md index d617d8e3225..17f0467cb1b 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/create-boolean-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/create-collection.md b/docs/examples/1.3.x/server-ruby/examples/databases/create-collection.md index d27e43ad664..d0c87c64337 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/create-collection.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/create-collection.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/create-datetime-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/create-datetime-attribute.md index 127d2ac2d77..2aebb09856f 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/create-datetime-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/create-document.md b/docs/examples/1.3.x/server-ruby/examples/databases/create-document.md index 8177fc4b3b8..e6d12497214 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/create-document.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/create-document.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/create-email-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/create-email-attribute.md index c7e1aac86be..38047e524d4 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/create-email-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/create-email-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/create-enum-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/create-enum-attribute.md index 36f8ee06d41..1fe0f0c689f 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/create-enum-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/create-float-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/create-float-attribute.md index 771d281ccf5..6da9f12caed 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/create-float-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/create-float-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/create-index.md b/docs/examples/1.3.x/server-ruby/examples/databases/create-index.md index 5488e36f74a..68fccf90ca3 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/create-index.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/create-index.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/create-integer-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/create-integer-attribute.md index 40649c25f8f..d17eef4f46d 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/create-integer-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/create-ip-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/create-ip-attribute.md index ef9e0feba52..c0daf8a4ae9 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/create-ip-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/create-relationship-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/create-relationship-attribute.md index 573ab10ddcc..de31af211fc 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/create-relationship-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/create-string-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/create-string-attribute.md index 9901c84b020..4b4c95b7c10 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/create-string-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/create-string-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/create-url-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/create-url-attribute.md index 475421fe537..03486d76952 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/create-url-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/create-url-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/create.md b/docs/examples/1.3.x/server-ruby/examples/databases/create.md index 1ce19d31250..8054c37fef1 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/create.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/create.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/delete-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/delete-attribute.md index ae2e32d8bd0..55013151523 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/delete-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/delete-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/delete-collection.md b/docs/examples/1.3.x/server-ruby/examples/databases/delete-collection.md index f118667b6ed..779865a67e1 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/delete-collection.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/delete-collection.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/delete-document.md b/docs/examples/1.3.x/server-ruby/examples/databases/delete-document.md index 0b7baa89ede..b83d2a38a88 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/delete-document.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/delete-document.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/delete-index.md b/docs/examples/1.3.x/server-ruby/examples/databases/delete-index.md index 829e6061354..fb30a95c642 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/delete-index.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/delete-index.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/delete.md b/docs/examples/1.3.x/server-ruby/examples/databases/delete.md index 7e0c4211f16..beeca37e8a7 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/delete.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/delete.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/get-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/get-attribute.md index 525c8f14cd5..653a4280542 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/get-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/get-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/get-collection.md b/docs/examples/1.3.x/server-ruby/examples/databases/get-collection.md index 897e40d1094..b3251fb7a69 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/get-collection.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/get-collection.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/get-document.md b/docs/examples/1.3.x/server-ruby/examples/databases/get-document.md index d5853aba563..9a4e9b7c01a 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/get-document.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/get-document.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/get-index.md b/docs/examples/1.3.x/server-ruby/examples/databases/get-index.md index 3217507541a..1f7d3b61551 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/get-index.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/get-index.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/get.md b/docs/examples/1.3.x/server-ruby/examples/databases/get.md index ced51d6ad12..93b171122f8 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/get.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/list-attributes.md b/docs/examples/1.3.x/server-ruby/examples/databases/list-attributes.md index 1b57bda217c..5a07c9a6352 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/list-attributes.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/list-attributes.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/list-collections.md b/docs/examples/1.3.x/server-ruby/examples/databases/list-collections.md index 3d646c47e72..c707b3faf77 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/list-collections.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/list-collections.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/list-documents.md b/docs/examples/1.3.x/server-ruby/examples/databases/list-documents.md index 6f57bb150cf..da14516505f 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/list-documents.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/list-documents.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/list-indexes.md b/docs/examples/1.3.x/server-ruby/examples/databases/list-indexes.md index d64b3bfc684..c6d42be1eaa 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/list-indexes.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/list-indexes.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/list.md b/docs/examples/1.3.x/server-ruby/examples/databases/list.md index 84baa108a38..628f44c7fca 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/list.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/list.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/update-boolean-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/update-boolean-attribute.md index 7a7f01a8541..dfd0d558fbd 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/update-boolean-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/update-collection.md b/docs/examples/1.3.x/server-ruby/examples/databases/update-collection.md index eee40585313..ab421153cce 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/update-collection.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/update-collection.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/update-datetime-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/update-datetime-attribute.md index c9f9aa759be..b5e6d092d42 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/update-datetime-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/update-document.md b/docs/examples/1.3.x/server-ruby/examples/databases/update-document.md index dbe1b0d71aa..0b5b2a07caf 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/update-document.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/update-document.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/update-email-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/update-email-attribute.md index de2d4c0749e..f172b39a327 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/update-email-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/update-email-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/update-enum-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/update-enum-attribute.md index e248a5bcf7e..2ffaef300fb 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/update-enum-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/update-float-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/update-float-attribute.md index 555355d6cb6..b2984c21bd3 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/update-float-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/update-float-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/update-integer-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/update-integer-attribute.md index 154daf330ec..b37f45c79e2 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/update-integer-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/update-ip-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/update-ip-attribute.md index a6fe4d95bcf..cd563df3dbf 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/update-ip-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/update-relationship-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/update-relationship-attribute.md index 9c51daa3a59..3f20382b11b 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/update-relationship-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/update-string-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/update-string-attribute.md index e5f2f8f09db..ecd9fcbce2b 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/update-string-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/update-string-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/update-url-attribute.md b/docs/examples/1.3.x/server-ruby/examples/databases/update-url-attribute.md index da21dcbfb0c..99a6f7952cc 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/update-url-attribute.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/update-url-attribute.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/databases/update.md b/docs/examples/1.3.x/server-ruby/examples/databases/update.md index 0900ab34286..9e67595cbc7 100644 --- a/docs/examples/1.3.x/server-ruby/examples/databases/update.md +++ b/docs/examples/1.3.x/server-ruby/examples/databases/update.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/create-build.md b/docs/examples/1.3.x/server-ruby/examples/functions/create-build.md index 9c7397bf269..6c9ad31fd0c 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/create-build.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/create-build.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/create-deployment.md b/docs/examples/1.3.x/server-ruby/examples/functions/create-deployment.md index 734625f449e..4cb56c9ad86 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/create-deployment.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/create-deployment.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/create-execution.md b/docs/examples/1.3.x/server-ruby/examples/functions/create-execution.md index 97f4d74ba15..3dc5e844e71 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/create-execution.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/create-execution.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/create-variable.md b/docs/examples/1.3.x/server-ruby/examples/functions/create-variable.md index 003fb4743a2..1340c1a3794 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/create-variable.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/create-variable.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/create.md b/docs/examples/1.3.x/server-ruby/examples/functions/create.md index 3f9b84d60e2..0ee3958085a 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/create.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/create.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/delete-deployment.md b/docs/examples/1.3.x/server-ruby/examples/functions/delete-deployment.md index 64feea1370e..00c85f50a1b 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/delete-deployment.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/delete-deployment.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/delete-variable.md b/docs/examples/1.3.x/server-ruby/examples/functions/delete-variable.md index 598e6941416..191796186d8 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/delete-variable.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/delete-variable.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/delete.md b/docs/examples/1.3.x/server-ruby/examples/functions/delete.md index 48ea5c7a737..c96a2621e65 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/delete.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/delete.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/get-deployment.md b/docs/examples/1.3.x/server-ruby/examples/functions/get-deployment.md index c19163e7f5c..fa1bbc08be3 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/get-deployment.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/get-deployment.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/get-execution.md b/docs/examples/1.3.x/server-ruby/examples/functions/get-execution.md index 3deee915740..52e46af41ac 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/get-execution.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/get-execution.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/get-variable.md b/docs/examples/1.3.x/server-ruby/examples/functions/get-variable.md index 835fc30d81b..b023e3653be 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/get-variable.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/get-variable.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/get.md b/docs/examples/1.3.x/server-ruby/examples/functions/get.md index cfcf8411e5a..76897965e5b 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/get.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/list-deployments.md b/docs/examples/1.3.x/server-ruby/examples/functions/list-deployments.md index 539301c4bba..5ec1f5ba313 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/list-deployments.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/list-deployments.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/list-executions.md b/docs/examples/1.3.x/server-ruby/examples/functions/list-executions.md index c0c1f46cf16..797817ad4f5 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/list-executions.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/list-executions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/list-runtimes.md b/docs/examples/1.3.x/server-ruby/examples/functions/list-runtimes.md index b679da2d8b9..b5fd2b0aafd 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/list-runtimes.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/list-runtimes.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/list-variables.md b/docs/examples/1.3.x/server-ruby/examples/functions/list-variables.md index 4e5bfab8911..196fcfe3cd7 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/list-variables.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/list-variables.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/list.md b/docs/examples/1.3.x/server-ruby/examples/functions/list.md index 2cc71a5c046..bf27f73cf94 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/list.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/list.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/update-deployment.md b/docs/examples/1.3.x/server-ruby/examples/functions/update-deployment.md index c9d9f49d63b..a9f039cfc64 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/update-deployment.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/update-deployment.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/update-variable.md b/docs/examples/1.3.x/server-ruby/examples/functions/update-variable.md index 28d7651a46f..3418454c276 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/update-variable.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/update-variable.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/functions/update.md b/docs/examples/1.3.x/server-ruby/examples/functions/update.md index 8503a507246..0850e233721 100644 --- a/docs/examples/1.3.x/server-ruby/examples/functions/update.md +++ b/docs/examples/1.3.x/server-ruby/examples/functions/update.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/graphql/mutation.md b/docs/examples/1.3.x/server-ruby/examples/graphql/mutation.md index 234dfe62021..a22fc7846ad 100644 --- a/docs/examples/1.3.x/server-ruby/examples/graphql/mutation.md +++ b/docs/examples/1.3.x/server-ruby/examples/graphql/mutation.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/graphql/query.md b/docs/examples/1.3.x/server-ruby/examples/graphql/query.md index 1304213caf1..a8c967ed6b8 100644 --- a/docs/examples/1.3.x/server-ruby/examples/graphql/query.md +++ b/docs/examples/1.3.x/server-ruby/examples/graphql/query.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/health/get-antivirus.md b/docs/examples/1.3.x/server-ruby/examples/health/get-antivirus.md index b1f16bb0b93..32646a5a0b3 100644 --- a/docs/examples/1.3.x/server-ruby/examples/health/get-antivirus.md +++ b/docs/examples/1.3.x/server-ruby/examples/health/get-antivirus.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/health/get-cache.md b/docs/examples/1.3.x/server-ruby/examples/health/get-cache.md index 4fb77ec68d4..a4b43daf926 100644 --- a/docs/examples/1.3.x/server-ruby/examples/health/get-cache.md +++ b/docs/examples/1.3.x/server-ruby/examples/health/get-cache.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/health/get-d-b.md b/docs/examples/1.3.x/server-ruby/examples/health/get-d-b.md index 3317acd6fa7..6b42bbaf6a1 100644 --- a/docs/examples/1.3.x/server-ruby/examples/health/get-d-b.md +++ b/docs/examples/1.3.x/server-ruby/examples/health/get-d-b.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/health/get-queue-certificates.md b/docs/examples/1.3.x/server-ruby/examples/health/get-queue-certificates.md index a4c5c7016bf..915731e056a 100644 --- a/docs/examples/1.3.x/server-ruby/examples/health/get-queue-certificates.md +++ b/docs/examples/1.3.x/server-ruby/examples/health/get-queue-certificates.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/health/get-queue-functions.md b/docs/examples/1.3.x/server-ruby/examples/health/get-queue-functions.md index 8edb310a5e2..ea585cacb79 100644 --- a/docs/examples/1.3.x/server-ruby/examples/health/get-queue-functions.md +++ b/docs/examples/1.3.x/server-ruby/examples/health/get-queue-functions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/health/get-queue-logs.md b/docs/examples/1.3.x/server-ruby/examples/health/get-queue-logs.md index 74823fcd6ce..253419c8bdd 100644 --- a/docs/examples/1.3.x/server-ruby/examples/health/get-queue-logs.md +++ b/docs/examples/1.3.x/server-ruby/examples/health/get-queue-logs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/health/get-queue-webhooks.md b/docs/examples/1.3.x/server-ruby/examples/health/get-queue-webhooks.md index 53b7f33cfe0..1902a930c83 100644 --- a/docs/examples/1.3.x/server-ruby/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.3.x/server-ruby/examples/health/get-queue-webhooks.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/health/get-storage-local.md b/docs/examples/1.3.x/server-ruby/examples/health/get-storage-local.md index 3a85bd3e12b..293c866762f 100644 --- a/docs/examples/1.3.x/server-ruby/examples/health/get-storage-local.md +++ b/docs/examples/1.3.x/server-ruby/examples/health/get-storage-local.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/health/get-time.md b/docs/examples/1.3.x/server-ruby/examples/health/get-time.md index 9956a33d1f6..e19bf05e792 100644 --- a/docs/examples/1.3.x/server-ruby/examples/health/get-time.md +++ b/docs/examples/1.3.x/server-ruby/examples/health/get-time.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/health/get.md b/docs/examples/1.3.x/server-ruby/examples/health/get.md index d23a9ad6755..07fc372f3b3 100644 --- a/docs/examples/1.3.x/server-ruby/examples/health/get.md +++ b/docs/examples/1.3.x/server-ruby/examples/health/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/locale/get.md b/docs/examples/1.3.x/server-ruby/examples/locale/get.md index e5922f4e7f5..b2abf36f19f 100644 --- a/docs/examples/1.3.x/server-ruby/examples/locale/get.md +++ b/docs/examples/1.3.x/server-ruby/examples/locale/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/locale/list-continents.md b/docs/examples/1.3.x/server-ruby/examples/locale/list-continents.md index 0416baf77a4..1a086d9a2fe 100644 --- a/docs/examples/1.3.x/server-ruby/examples/locale/list-continents.md +++ b/docs/examples/1.3.x/server-ruby/examples/locale/list-continents.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/locale/list-countries-e-u.md b/docs/examples/1.3.x/server-ruby/examples/locale/list-countries-e-u.md index 7faa85143cb..962387167f1 100644 --- a/docs/examples/1.3.x/server-ruby/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/server-ruby/examples/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/locale/list-countries-phones.md b/docs/examples/1.3.x/server-ruby/examples/locale/list-countries-phones.md index 1194f27e0c7..9e842f2121d 100644 --- a/docs/examples/1.3.x/server-ruby/examples/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/server-ruby/examples/locale/list-countries-phones.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/locale/list-countries.md b/docs/examples/1.3.x/server-ruby/examples/locale/list-countries.md index b78fba47fd5..eb093479b7a 100644 --- a/docs/examples/1.3.x/server-ruby/examples/locale/list-countries.md +++ b/docs/examples/1.3.x/server-ruby/examples/locale/list-countries.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/locale/list-currencies.md b/docs/examples/1.3.x/server-ruby/examples/locale/list-currencies.md index 14b2722ae82..1e20bdbbb28 100644 --- a/docs/examples/1.3.x/server-ruby/examples/locale/list-currencies.md +++ b/docs/examples/1.3.x/server-ruby/examples/locale/list-currencies.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/locale/list-languages.md b/docs/examples/1.3.x/server-ruby/examples/locale/list-languages.md index 4d88bc47232..7b919494b32 100644 --- a/docs/examples/1.3.x/server-ruby/examples/locale/list-languages.md +++ b/docs/examples/1.3.x/server-ruby/examples/locale/list-languages.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/storage/create-bucket.md b/docs/examples/1.3.x/server-ruby/examples/storage/create-bucket.md index d6299db79f9..459508e3116 100644 --- a/docs/examples/1.3.x/server-ruby/examples/storage/create-bucket.md +++ b/docs/examples/1.3.x/server-ruby/examples/storage/create-bucket.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/storage/create-file.md b/docs/examples/1.3.x/server-ruby/examples/storage/create-file.md index 851ed57a480..fd29996f730 100644 --- a/docs/examples/1.3.x/server-ruby/examples/storage/create-file.md +++ b/docs/examples/1.3.x/server-ruby/examples/storage/create-file.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/storage/delete-bucket.md b/docs/examples/1.3.x/server-ruby/examples/storage/delete-bucket.md index 3fd51bef5e4..be83f475f27 100644 --- a/docs/examples/1.3.x/server-ruby/examples/storage/delete-bucket.md +++ b/docs/examples/1.3.x/server-ruby/examples/storage/delete-bucket.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/storage/delete-file.md b/docs/examples/1.3.x/server-ruby/examples/storage/delete-file.md index 4d0e3fcbffc..6ea4059bbab 100644 --- a/docs/examples/1.3.x/server-ruby/examples/storage/delete-file.md +++ b/docs/examples/1.3.x/server-ruby/examples/storage/delete-file.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/storage/get-bucket.md b/docs/examples/1.3.x/server-ruby/examples/storage/get-bucket.md index ba88debc618..ca0905b463a 100644 --- a/docs/examples/1.3.x/server-ruby/examples/storage/get-bucket.md +++ b/docs/examples/1.3.x/server-ruby/examples/storage/get-bucket.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/storage/get-file-download.md b/docs/examples/1.3.x/server-ruby/examples/storage/get-file-download.md index a22f4cb68fc..77007f6b192 100644 --- a/docs/examples/1.3.x/server-ruby/examples/storage/get-file-download.md +++ b/docs/examples/1.3.x/server-ruby/examples/storage/get-file-download.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/storage/get-file-preview.md b/docs/examples/1.3.x/server-ruby/examples/storage/get-file-preview.md index c5b7c06db1c..c0e2b80931e 100644 --- a/docs/examples/1.3.x/server-ruby/examples/storage/get-file-preview.md +++ b/docs/examples/1.3.x/server-ruby/examples/storage/get-file-preview.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/storage/get-file-view.md b/docs/examples/1.3.x/server-ruby/examples/storage/get-file-view.md index c05770b9999..7689278e56e 100644 --- a/docs/examples/1.3.x/server-ruby/examples/storage/get-file-view.md +++ b/docs/examples/1.3.x/server-ruby/examples/storage/get-file-view.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/storage/get-file.md b/docs/examples/1.3.x/server-ruby/examples/storage/get-file.md index a33835c9e25..f5faa37e548 100644 --- a/docs/examples/1.3.x/server-ruby/examples/storage/get-file.md +++ b/docs/examples/1.3.x/server-ruby/examples/storage/get-file.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/storage/list-buckets.md b/docs/examples/1.3.x/server-ruby/examples/storage/list-buckets.md index 7009d0a105b..46eac9a2602 100644 --- a/docs/examples/1.3.x/server-ruby/examples/storage/list-buckets.md +++ b/docs/examples/1.3.x/server-ruby/examples/storage/list-buckets.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/storage/list-files.md b/docs/examples/1.3.x/server-ruby/examples/storage/list-files.md index 196831a1b3f..936b6eaeeb3 100644 --- a/docs/examples/1.3.x/server-ruby/examples/storage/list-files.md +++ b/docs/examples/1.3.x/server-ruby/examples/storage/list-files.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/storage/update-bucket.md b/docs/examples/1.3.x/server-ruby/examples/storage/update-bucket.md index f990ab3566a..d4c791f4db6 100644 --- a/docs/examples/1.3.x/server-ruby/examples/storage/update-bucket.md +++ b/docs/examples/1.3.x/server-ruby/examples/storage/update-bucket.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/storage/update-file.md b/docs/examples/1.3.x/server-ruby/examples/storage/update-file.md index 8108d3cc28a..6d26d9ee482 100644 --- a/docs/examples/1.3.x/server-ruby/examples/storage/update-file.md +++ b/docs/examples/1.3.x/server-ruby/examples/storage/update-file.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/teams/create-membership.md b/docs/examples/1.3.x/server-ruby/examples/teams/create-membership.md index 30f343c5d86..1ef600b3716 100644 --- a/docs/examples/1.3.x/server-ruby/examples/teams/create-membership.md +++ b/docs/examples/1.3.x/server-ruby/examples/teams/create-membership.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/teams/create.md b/docs/examples/1.3.x/server-ruby/examples/teams/create.md index d2dff77f41e..66127ecd340 100644 --- a/docs/examples/1.3.x/server-ruby/examples/teams/create.md +++ b/docs/examples/1.3.x/server-ruby/examples/teams/create.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/teams/delete-membership.md b/docs/examples/1.3.x/server-ruby/examples/teams/delete-membership.md index d41175d4a83..551ee62843d 100644 --- a/docs/examples/1.3.x/server-ruby/examples/teams/delete-membership.md +++ b/docs/examples/1.3.x/server-ruby/examples/teams/delete-membership.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/teams/delete.md b/docs/examples/1.3.x/server-ruby/examples/teams/delete.md index c1b9b8d8bb1..94a9d4bba74 100644 --- a/docs/examples/1.3.x/server-ruby/examples/teams/delete.md +++ b/docs/examples/1.3.x/server-ruby/examples/teams/delete.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/teams/get-membership.md b/docs/examples/1.3.x/server-ruby/examples/teams/get-membership.md index b06101dd84c..d95348801b0 100644 --- a/docs/examples/1.3.x/server-ruby/examples/teams/get-membership.md +++ b/docs/examples/1.3.x/server-ruby/examples/teams/get-membership.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/teams/get-prefs.md b/docs/examples/1.3.x/server-ruby/examples/teams/get-prefs.md index d4317e8dba1..1f5a376eca4 100644 --- a/docs/examples/1.3.x/server-ruby/examples/teams/get-prefs.md +++ b/docs/examples/1.3.x/server-ruby/examples/teams/get-prefs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/teams/get.md b/docs/examples/1.3.x/server-ruby/examples/teams/get.md index 7cee601b56d..a6c2884d2c8 100644 --- a/docs/examples/1.3.x/server-ruby/examples/teams/get.md +++ b/docs/examples/1.3.x/server-ruby/examples/teams/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/teams/list-memberships.md b/docs/examples/1.3.x/server-ruby/examples/teams/list-memberships.md index 885a857d720..4b523aa73a6 100644 --- a/docs/examples/1.3.x/server-ruby/examples/teams/list-memberships.md +++ b/docs/examples/1.3.x/server-ruby/examples/teams/list-memberships.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/teams/list.md b/docs/examples/1.3.x/server-ruby/examples/teams/list.md index e8b581fd910..fd8385bc71e 100644 --- a/docs/examples/1.3.x/server-ruby/examples/teams/list.md +++ b/docs/examples/1.3.x/server-ruby/examples/teams/list.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/teams/update-membership-roles.md b/docs/examples/1.3.x/server-ruby/examples/teams/update-membership-roles.md index a39ef030f9c..0a240b5bac9 100644 --- a/docs/examples/1.3.x/server-ruby/examples/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/server-ruby/examples/teams/update-membership-roles.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/teams/update-membership-status.md b/docs/examples/1.3.x/server-ruby/examples/teams/update-membership-status.md index aaf52cbb9ca..a1f8252899a 100644 --- a/docs/examples/1.3.x/server-ruby/examples/teams/update-membership-status.md +++ b/docs/examples/1.3.x/server-ruby/examples/teams/update-membership-status.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/teams/update-name.md b/docs/examples/1.3.x/server-ruby/examples/teams/update-name.md index 41766d68729..94370750355 100644 --- a/docs/examples/1.3.x/server-ruby/examples/teams/update-name.md +++ b/docs/examples/1.3.x/server-ruby/examples/teams/update-name.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/teams/update-prefs.md b/docs/examples/1.3.x/server-ruby/examples/teams/update-prefs.md index 7656edcd8bb..0ca205d4953 100644 --- a/docs/examples/1.3.x/server-ruby/examples/teams/update-prefs.md +++ b/docs/examples/1.3.x/server-ruby/examples/teams/update-prefs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-ruby/examples/users/create-argon2user.md b/docs/examples/1.3.x/server-ruby/examples/users/create-argon2user.md index 9c4fc9ea977..35445044c20 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/create-argon2user.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/create-argon2user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/create-bcrypt-user.md b/docs/examples/1.3.x/server-ruby/examples/users/create-bcrypt-user.md index 700fe49d121..50e11db1903 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/create-bcrypt-user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/create-m-d5user.md b/docs/examples/1.3.x/server-ruby/examples/users/create-m-d5user.md index a7f9c4f7a20..3f7a61994bc 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/create-m-d5user.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/create-m-d5user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/create-p-h-pass-user.md b/docs/examples/1.3.x/server-ruby/examples/users/create-p-h-pass-user.md index d7d8ba19333..a793d887c84 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/create-p-h-pass-user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/create-s-h-a-user.md b/docs/examples/1.3.x/server-ruby/examples/users/create-s-h-a-user.md index 2d37fc3bfa1..4b7c26629bb 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/create-s-h-a-user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/create-scrypt-modified-user.md b/docs/examples/1.3.x/server-ruby/examples/users/create-scrypt-modified-user.md index cec9dbb277a..50f52b9f12f 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/create-scrypt-modified-user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/create-scrypt-user.md b/docs/examples/1.3.x/server-ruby/examples/users/create-scrypt-user.md index 94a7af53d2a..e8bf8cf0597 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/create-scrypt-user.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/create-scrypt-user.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/create.md b/docs/examples/1.3.x/server-ruby/examples/users/create.md index b04fd5025f4..7d0cf8b48a7 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/create.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/create.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/delete-session.md b/docs/examples/1.3.x/server-ruby/examples/users/delete-session.md index 3b7918ca1f2..118747affcb 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/delete-session.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/delete-session.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/delete-sessions.md b/docs/examples/1.3.x/server-ruby/examples/users/delete-sessions.md index 6772e3fe10d..7d24d4442d2 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/delete-sessions.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/delete-sessions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/delete.md b/docs/examples/1.3.x/server-ruby/examples/users/delete.md index 62585db404c..b50e5a921d2 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/delete.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/delete.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/get-prefs.md b/docs/examples/1.3.x/server-ruby/examples/users/get-prefs.md index a4c4764bef6..a401ae11b0a 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/get-prefs.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/get-prefs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/get.md b/docs/examples/1.3.x/server-ruby/examples/users/get.md index a731ada955f..44f68d01382 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/get.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/get.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/list-logs.md b/docs/examples/1.3.x/server-ruby/examples/users/list-logs.md index fa8586eeffa..45a974e497e 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/list-logs.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/list-logs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/list-memberships.md b/docs/examples/1.3.x/server-ruby/examples/users/list-memberships.md index 693e6b9f2c2..c84277357ba 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/list-memberships.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/list-memberships.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/list-sessions.md b/docs/examples/1.3.x/server-ruby/examples/users/list-sessions.md index 765789a0da7..14c281f4e1b 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/list-sessions.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/list-sessions.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/list.md b/docs/examples/1.3.x/server-ruby/examples/users/list.md index 8d5daf21f81..eb067643e24 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/list.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/list.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/update-email-verification.md b/docs/examples/1.3.x/server-ruby/examples/users/update-email-verification.md index 72ec0195dc1..530c544bead 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/update-email-verification.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/update-email-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/update-email.md b/docs/examples/1.3.x/server-ruby/examples/users/update-email.md index a3a7dbde345..21ece40ff07 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/update-email.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/update-email.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/update-name.md b/docs/examples/1.3.x/server-ruby/examples/users/update-name.md index fbf00bb51be..7b1d0d65d32 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/update-name.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/update-name.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/update-password.md b/docs/examples/1.3.x/server-ruby/examples/users/update-password.md index 7310a2a0cc7..190576fbec1 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/update-password.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/update-password.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/update-phone-verification.md b/docs/examples/1.3.x/server-ruby/examples/users/update-phone-verification.md index 995a32a4bfe..be9e323ec11 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/update-phone-verification.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/update-phone-verification.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/update-phone.md b/docs/examples/1.3.x/server-ruby/examples/users/update-phone.md index f1e74b4a9e5..e78a3d5ff34 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/update-phone.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/update-phone.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/update-prefs.md b/docs/examples/1.3.x/server-ruby/examples/users/update-prefs.md index 9845cdf0d51..91eaf25a253 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/update-prefs.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/update-prefs.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-ruby/examples/users/update-status.md b/docs/examples/1.3.x/server-ruby/examples/users/update-status.md index 8a82948c76a..9f7372ede49 100644 --- a/docs/examples/1.3.x/server-ruby/examples/users/update-status.md +++ b/docs/examples/1.3.x/server-ruby/examples/users/update-status.md @@ -3,7 +3,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/account/create-phone-verification.md b/docs/examples/1.3.x/server-swift/examples/account/create-phone-verification.md index cdeba917008..26ced5985bf 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/create-phone-verification.md +++ b/docs/examples/1.3.x/server-swift/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/create-recovery.md b/docs/examples/1.3.x/server-swift/examples/account/create-recovery.md index fdb0e53765f..06cc974d663 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/create-recovery.md +++ b/docs/examples/1.3.x/server-swift/examples/account/create-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/create-verification.md b/docs/examples/1.3.x/server-swift/examples/account/create-verification.md index 63a6a7ac94f..1abcc4abb21 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/create-verification.md +++ b/docs/examples/1.3.x/server-swift/examples/account/create-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/delete-session.md b/docs/examples/1.3.x/server-swift/examples/account/delete-session.md index de9f736f9ce..e5c88080e93 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/delete-session.md +++ b/docs/examples/1.3.x/server-swift/examples/account/delete-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/delete-sessions.md b/docs/examples/1.3.x/server-swift/examples/account/delete-sessions.md index 0f58c600d25..971f34d524e 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/delete-sessions.md +++ b/docs/examples/1.3.x/server-swift/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/get-prefs.md b/docs/examples/1.3.x/server-swift/examples/account/get-prefs.md index ce72d7c340d..be9acecd9af 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/get-prefs.md +++ b/docs/examples/1.3.x/server-swift/examples/account/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/get-session.md b/docs/examples/1.3.x/server-swift/examples/account/get-session.md index e1b48b5aa50..3c5092f3be6 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/get-session.md +++ b/docs/examples/1.3.x/server-swift/examples/account/get-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/get.md b/docs/examples/1.3.x/server-swift/examples/account/get.md index 060b6a4a275..4d40b4b4748 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/get.md +++ b/docs/examples/1.3.x/server-swift/examples/account/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/list-logs.md b/docs/examples/1.3.x/server-swift/examples/account/list-logs.md index ee2e8bb7e6d..762062d1062 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/list-logs.md +++ b/docs/examples/1.3.x/server-swift/examples/account/list-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/list-sessions.md b/docs/examples/1.3.x/server-swift/examples/account/list-sessions.md index 2baf5836a2a..c3b2b0aed0a 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/list-sessions.md +++ b/docs/examples/1.3.x/server-swift/examples/account/list-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/update-email.md b/docs/examples/1.3.x/server-swift/examples/account/update-email.md index 4041da0222f..74244ea9d79 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/update-email.md +++ b/docs/examples/1.3.x/server-swift/examples/account/update-email.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/update-name.md b/docs/examples/1.3.x/server-swift/examples/account/update-name.md index 440b1b6c245..cd4be44741a 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/update-name.md +++ b/docs/examples/1.3.x/server-swift/examples/account/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/update-password.md b/docs/examples/1.3.x/server-swift/examples/account/update-password.md index 91d55db20f0..82c03d73dbd 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/update-password.md +++ b/docs/examples/1.3.x/server-swift/examples/account/update-password.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/update-phone-verification.md b/docs/examples/1.3.x/server-swift/examples/account/update-phone-verification.md index 29052c573a9..22cc1e86586 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/update-phone-verification.md +++ b/docs/examples/1.3.x/server-swift/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/update-phone.md b/docs/examples/1.3.x/server-swift/examples/account/update-phone.md index 645b6fc840b..9f215a9fe13 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/update-phone.md +++ b/docs/examples/1.3.x/server-swift/examples/account/update-phone.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/update-prefs.md b/docs/examples/1.3.x/server-swift/examples/account/update-prefs.md index 520f9d5fd42..05a1b445ae8 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/update-prefs.md +++ b/docs/examples/1.3.x/server-swift/examples/account/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/update-recovery.md b/docs/examples/1.3.x/server-swift/examples/account/update-recovery.md index 92825cae559..ba8d1fa1a0c 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/update-recovery.md +++ b/docs/examples/1.3.x/server-swift/examples/account/update-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/update-session.md b/docs/examples/1.3.x/server-swift/examples/account/update-session.md index 84229182aaa..d0002b6e497 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/update-session.md +++ b/docs/examples/1.3.x/server-swift/examples/account/update-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/update-status.md b/docs/examples/1.3.x/server-swift/examples/account/update-status.md index 96b94d63a1d..0f3e22b4011 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/update-status.md +++ b/docs/examples/1.3.x/server-swift/examples/account/update-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/account/update-verification.md b/docs/examples/1.3.x/server-swift/examples/account/update-verification.md index b8e925783eb..c50bf1b88d2 100644 --- a/docs/examples/1.3.x/server-swift/examples/account/update-verification.md +++ b/docs/examples/1.3.x/server-swift/examples/account/update-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/avatars/get-browser.md b/docs/examples/1.3.x/server-swift/examples/avatars/get-browser.md index df3a99c67a6..b566d6ca059 100644 --- a/docs/examples/1.3.x/server-swift/examples/avatars/get-browser.md +++ b/docs/examples/1.3.x/server-swift/examples/avatars/get-browser.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/avatars/get-credit-card.md b/docs/examples/1.3.x/server-swift/examples/avatars/get-credit-card.md index ce4382d77b0..5b47aab1ab1 100644 --- a/docs/examples/1.3.x/server-swift/examples/avatars/get-credit-card.md +++ b/docs/examples/1.3.x/server-swift/examples/avatars/get-credit-card.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/avatars/get-favicon.md b/docs/examples/1.3.x/server-swift/examples/avatars/get-favicon.md index 36c77218b74..77803cd5a07 100644 --- a/docs/examples/1.3.x/server-swift/examples/avatars/get-favicon.md +++ b/docs/examples/1.3.x/server-swift/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/avatars/get-flag.md b/docs/examples/1.3.x/server-swift/examples/avatars/get-flag.md index 849ec48cea1..16e566d9e1e 100644 --- a/docs/examples/1.3.x/server-swift/examples/avatars/get-flag.md +++ b/docs/examples/1.3.x/server-swift/examples/avatars/get-flag.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/avatars/get-image.md b/docs/examples/1.3.x/server-swift/examples/avatars/get-image.md index d457976f549..2fd24c5c7d5 100644 --- a/docs/examples/1.3.x/server-swift/examples/avatars/get-image.md +++ b/docs/examples/1.3.x/server-swift/examples/avatars/get-image.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/avatars/get-initials.md b/docs/examples/1.3.x/server-swift/examples/avatars/get-initials.md index 74d8d956db3..9062ca5ca73 100644 --- a/docs/examples/1.3.x/server-swift/examples/avatars/get-initials.md +++ b/docs/examples/1.3.x/server-swift/examples/avatars/get-initials.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/avatars/get-q-r.md b/docs/examples/1.3.x/server-swift/examples/avatars/get-q-r.md index 537bfb5b43f..c8d7fba5be5 100644 --- a/docs/examples/1.3.x/server-swift/examples/avatars/get-q-r.md +++ b/docs/examples/1.3.x/server-swift/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/create-boolean-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/create-boolean-attribute.md index 11eae088e7a..1be49bb0d44 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/create-boolean-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/create-collection.md b/docs/examples/1.3.x/server-swift/examples/databases/create-collection.md index ff9172bb29a..b4bb744eee0 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/create-collection.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/create-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/create-datetime-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/create-datetime-attribute.md index 26020fb88fa..119c5ec830e 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/create-datetime-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/create-document.md b/docs/examples/1.3.x/server-swift/examples/databases/create-document.md index b76eab7c708..5985560b67f 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/create-document.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/create-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/create-email-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/create-email-attribute.md index cddebec6b24..690a49b68a1 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/create-email-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/create-email-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/create-enum-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/create-enum-attribute.md index dc56bff3950..b08ccbeb831 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/create-enum-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/create-float-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/create-float-attribute.md index ec01499e988..851afc2ac1a 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/create-float-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/create-float-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/create-index.md b/docs/examples/1.3.x/server-swift/examples/databases/create-index.md index 03cc91b0b44..2271a9898ef 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/create-index.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/create-index.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/create-integer-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/create-integer-attribute.md index eeea1cb01bf..72cd31c5a83 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/create-integer-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/create-ip-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/create-ip-attribute.md index 948aa2ad376..c03c555f52f 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/create-ip-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/create-relationship-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/create-relationship-attribute.md index adb7cbb1fc4..5cbf08e2a4f 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/create-relationship-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/create-string-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/create-string-attribute.md index 0d3e65442b8..daa04767a3f 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/create-string-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/create-string-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/create-url-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/create-url-attribute.md index 747a6c73673..94eefa1b610 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/create-url-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/create-url-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/create.md b/docs/examples/1.3.x/server-swift/examples/databases/create.md index 5e4abf88a03..6578c5783bf 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/create.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/delete-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/delete-attribute.md index 0fc94705708..a9c778b34c3 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/delete-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/delete-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/delete-collection.md b/docs/examples/1.3.x/server-swift/examples/databases/delete-collection.md index b00916534e3..f410170aa84 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/delete-collection.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/delete-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/delete-document.md b/docs/examples/1.3.x/server-swift/examples/databases/delete-document.md index 185c33d4102..24dd564236c 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/delete-document.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/delete-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/delete-index.md b/docs/examples/1.3.x/server-swift/examples/databases/delete-index.md index 0ad4ac3442a..fa5acc635ab 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/delete-index.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/delete-index.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/delete.md b/docs/examples/1.3.x/server-swift/examples/databases/delete.md index 48b687e237f..01be19d136e 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/delete.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/get-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/get-attribute.md index e0ea280f568..4d4697052b7 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/get-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/get-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/get-collection.md b/docs/examples/1.3.x/server-swift/examples/databases/get-collection.md index 39c36b3d617..a55294591a9 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/get-collection.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/get-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/get-document.md b/docs/examples/1.3.x/server-swift/examples/databases/get-document.md index 2a12e1140ac..2d2768ca2c3 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/get-document.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/get-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/get-index.md b/docs/examples/1.3.x/server-swift/examples/databases/get-index.md index e69263346ae..69b694d0724 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/get-index.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/get-index.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/get.md b/docs/examples/1.3.x/server-swift/examples/databases/get.md index 805fa3ee23b..9fa4abca507 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/get.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/list-attributes.md b/docs/examples/1.3.x/server-swift/examples/databases/list-attributes.md index 475da0a7124..71fdcbc9971 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/list-attributes.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/list-attributes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/list-collections.md b/docs/examples/1.3.x/server-swift/examples/databases/list-collections.md index 8e451ca8a00..bf150e8596e 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/list-collections.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/list-collections.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/list-documents.md b/docs/examples/1.3.x/server-swift/examples/databases/list-documents.md index 24bb8597614..0ca2d5ff485 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/list-documents.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/list-documents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/list-indexes.md b/docs/examples/1.3.x/server-swift/examples/databases/list-indexes.md index 145c02ddcc4..be16b25a318 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/list-indexes.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/list-indexes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/list.md b/docs/examples/1.3.x/server-swift/examples/databases/list.md index fe7a54df444..45796c04c02 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/list.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/update-boolean-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/update-boolean-attribute.md index 73b68190ba0..90dd5f748ee 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/update-boolean-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/update-collection.md b/docs/examples/1.3.x/server-swift/examples/databases/update-collection.md index 807c5659f9c..d2969b4a4de 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/update-collection.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/update-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/update-datetime-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/update-datetime-attribute.md index 4ec71bbcf03..5f4444a08b4 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/update-datetime-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/update-document.md b/docs/examples/1.3.x/server-swift/examples/databases/update-document.md index 56eed000828..872711afcf3 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/update-document.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/update-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/update-email-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/update-email-attribute.md index 11608e1fcab..3f72ca75a68 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/update-email-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/update-email-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/update-enum-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/update-enum-attribute.md index fce99d4d03a..4a0560224ca 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/update-enum-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/update-float-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/update-float-attribute.md index 6cc8457d008..72393b3955e 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/update-float-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/update-float-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/update-integer-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/update-integer-attribute.md index cde600aad9f..56fcead9676 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/update-integer-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/update-ip-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/update-ip-attribute.md index 7d70495c27c..3f2e2e1b8a0 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/update-ip-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/update-relationship-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/update-relationship-attribute.md index e89c3658c21..f39630217b2 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/update-relationship-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/update-string-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/update-string-attribute.md index 40ab7baa48b..6c8263674ca 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/update-string-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/update-string-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/update-url-attribute.md b/docs/examples/1.3.x/server-swift/examples/databases/update-url-attribute.md index ef9198e3bb5..3adb9f83930 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/update-url-attribute.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/update-url-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/databases/update.md b/docs/examples/1.3.x/server-swift/examples/databases/update.md index 8e14f080094..b9185e6aaeb 100644 --- a/docs/examples/1.3.x/server-swift/examples/databases/update.md +++ b/docs/examples/1.3.x/server-swift/examples/databases/update.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/create-build.md b/docs/examples/1.3.x/server-swift/examples/functions/create-build.md index 8419bf69500..2c469e5ea69 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/create-build.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/create-build.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/create-deployment.md b/docs/examples/1.3.x/server-swift/examples/functions/create-deployment.md index d24359e73bd..6b4527852a7 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/create-deployment.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/create-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/create-execution.md b/docs/examples/1.3.x/server-swift/examples/functions/create-execution.md index 0354bf54883..1454b4e11a5 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/create-execution.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/create-execution.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/create-variable.md b/docs/examples/1.3.x/server-swift/examples/functions/create-variable.md index f2613111929..914f189284e 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/create-variable.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/create-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/create.md b/docs/examples/1.3.x/server-swift/examples/functions/create.md index 5370c789fa1..c2e98b17e1c 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/create.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/delete-deployment.md b/docs/examples/1.3.x/server-swift/examples/functions/delete-deployment.md index 228f9f62e23..378e1f35aa8 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/delete-deployment.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/delete-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/delete-variable.md b/docs/examples/1.3.x/server-swift/examples/functions/delete-variable.md index 410cffe13c2..55e3d4a91f2 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/delete-variable.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/delete-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/delete.md b/docs/examples/1.3.x/server-swift/examples/functions/delete.md index bee774e61b6..67b2f0332cf 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/delete.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/get-deployment.md b/docs/examples/1.3.x/server-swift/examples/functions/get-deployment.md index 0a463c41213..aba9a5084ab 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/get-deployment.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/get-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/get-execution.md b/docs/examples/1.3.x/server-swift/examples/functions/get-execution.md index 7af8bd5906f..c8ec6c1aca5 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/get-execution.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/get-execution.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/get-variable.md b/docs/examples/1.3.x/server-swift/examples/functions/get-variable.md index f2fa61b9034..f8acd3dda4f 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/get-variable.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/get-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/get.md b/docs/examples/1.3.x/server-swift/examples/functions/get.md index c5ba24ae266..aead1667f2b 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/get.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/list-deployments.md b/docs/examples/1.3.x/server-swift/examples/functions/list-deployments.md index 652620bf401..c2c32eaa346 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/list-deployments.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/list-deployments.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/list-executions.md b/docs/examples/1.3.x/server-swift/examples/functions/list-executions.md index fa32172cbdb..26536b7e034 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/list-executions.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/list-executions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/list-runtimes.md b/docs/examples/1.3.x/server-swift/examples/functions/list-runtimes.md index 6a543754eb5..c7de59bed3d 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/list-runtimes.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/list-runtimes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/list-variables.md b/docs/examples/1.3.x/server-swift/examples/functions/list-variables.md index d13c752254d..abf0f514be8 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/list-variables.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/list-variables.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/list.md b/docs/examples/1.3.x/server-swift/examples/functions/list.md index 81363f17ff7..d04ab677f3f 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/list.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/update-deployment.md b/docs/examples/1.3.x/server-swift/examples/functions/update-deployment.md index b0f4fc23c43..1e81e41286e 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/update-deployment.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/update-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/update-variable.md b/docs/examples/1.3.x/server-swift/examples/functions/update-variable.md index 0eb5b2e9760..2ce5b597ea5 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/update-variable.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/update-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/functions/update.md b/docs/examples/1.3.x/server-swift/examples/functions/update.md index 3612a7c46df..ebbc92877bc 100644 --- a/docs/examples/1.3.x/server-swift/examples/functions/update.md +++ b/docs/examples/1.3.x/server-swift/examples/functions/update.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/graphql/mutation.md b/docs/examples/1.3.x/server-swift/examples/graphql/mutation.md index db869d48c93..f2a0460e28b 100644 --- a/docs/examples/1.3.x/server-swift/examples/graphql/mutation.md +++ b/docs/examples/1.3.x/server-swift/examples/graphql/mutation.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/graphql/query.md b/docs/examples/1.3.x/server-swift/examples/graphql/query.md index 5e97508be50..58fe1041c45 100644 --- a/docs/examples/1.3.x/server-swift/examples/graphql/query.md +++ b/docs/examples/1.3.x/server-swift/examples/graphql/query.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/health/get-antivirus.md b/docs/examples/1.3.x/server-swift/examples/health/get-antivirus.md index cab0d98339d..2c45f7a619a 100644 --- a/docs/examples/1.3.x/server-swift/examples/health/get-antivirus.md +++ b/docs/examples/1.3.x/server-swift/examples/health/get-antivirus.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/health/get-cache.md b/docs/examples/1.3.x/server-swift/examples/health/get-cache.md index a682d63a6f6..8d54eede9c7 100644 --- a/docs/examples/1.3.x/server-swift/examples/health/get-cache.md +++ b/docs/examples/1.3.x/server-swift/examples/health/get-cache.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/health/get-d-b.md b/docs/examples/1.3.x/server-swift/examples/health/get-d-b.md index 81645497b5c..e115eee2add 100644 --- a/docs/examples/1.3.x/server-swift/examples/health/get-d-b.md +++ b/docs/examples/1.3.x/server-swift/examples/health/get-d-b.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/health/get-queue-certificates.md b/docs/examples/1.3.x/server-swift/examples/health/get-queue-certificates.md index 71f4dcfc436..f9490918e43 100644 --- a/docs/examples/1.3.x/server-swift/examples/health/get-queue-certificates.md +++ b/docs/examples/1.3.x/server-swift/examples/health/get-queue-certificates.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/health/get-queue-functions.md b/docs/examples/1.3.x/server-swift/examples/health/get-queue-functions.md index d6bdf767564..2f412b9da15 100644 --- a/docs/examples/1.3.x/server-swift/examples/health/get-queue-functions.md +++ b/docs/examples/1.3.x/server-swift/examples/health/get-queue-functions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/health/get-queue-logs.md b/docs/examples/1.3.x/server-swift/examples/health/get-queue-logs.md index 7580e46da17..6fc521baef1 100644 --- a/docs/examples/1.3.x/server-swift/examples/health/get-queue-logs.md +++ b/docs/examples/1.3.x/server-swift/examples/health/get-queue-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/health/get-queue-webhooks.md b/docs/examples/1.3.x/server-swift/examples/health/get-queue-webhooks.md index 431a5a031c9..42f1de37fea 100644 --- a/docs/examples/1.3.x/server-swift/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.3.x/server-swift/examples/health/get-queue-webhooks.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/health/get-storage-local.md b/docs/examples/1.3.x/server-swift/examples/health/get-storage-local.md index ee807980bba..276b1635ae7 100644 --- a/docs/examples/1.3.x/server-swift/examples/health/get-storage-local.md +++ b/docs/examples/1.3.x/server-swift/examples/health/get-storage-local.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/health/get-time.md b/docs/examples/1.3.x/server-swift/examples/health/get-time.md index f6d66d950a9..7b4bbb3dee8 100644 --- a/docs/examples/1.3.x/server-swift/examples/health/get-time.md +++ b/docs/examples/1.3.x/server-swift/examples/health/get-time.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/health/get.md b/docs/examples/1.3.x/server-swift/examples/health/get.md index 828f3453e0c..179b9694a2f 100644 --- a/docs/examples/1.3.x/server-swift/examples/health/get.md +++ b/docs/examples/1.3.x/server-swift/examples/health/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/locale/get.md b/docs/examples/1.3.x/server-swift/examples/locale/get.md index 5c5aee4cb4f..99df3ebbd11 100644 --- a/docs/examples/1.3.x/server-swift/examples/locale/get.md +++ b/docs/examples/1.3.x/server-swift/examples/locale/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/locale/list-continents.md b/docs/examples/1.3.x/server-swift/examples/locale/list-continents.md index 8cd7964b639..d3b8a66262e 100644 --- a/docs/examples/1.3.x/server-swift/examples/locale/list-continents.md +++ b/docs/examples/1.3.x/server-swift/examples/locale/list-continents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/locale/list-countries-e-u.md b/docs/examples/1.3.x/server-swift/examples/locale/list-countries-e-u.md index a787e7b7222..a02f72cd7af 100644 --- a/docs/examples/1.3.x/server-swift/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.3.x/server-swift/examples/locale/list-countries-e-u.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/locale/list-countries-phones.md b/docs/examples/1.3.x/server-swift/examples/locale/list-countries-phones.md index cf16d2d0b29..2d4d7ef0068 100644 --- a/docs/examples/1.3.x/server-swift/examples/locale/list-countries-phones.md +++ b/docs/examples/1.3.x/server-swift/examples/locale/list-countries-phones.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/locale/list-countries.md b/docs/examples/1.3.x/server-swift/examples/locale/list-countries.md index 32d5901e37e..ba769689a3e 100644 --- a/docs/examples/1.3.x/server-swift/examples/locale/list-countries.md +++ b/docs/examples/1.3.x/server-swift/examples/locale/list-countries.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/locale/list-currencies.md b/docs/examples/1.3.x/server-swift/examples/locale/list-currencies.md index 6b1daa7422c..2211e1855fa 100644 --- a/docs/examples/1.3.x/server-swift/examples/locale/list-currencies.md +++ b/docs/examples/1.3.x/server-swift/examples/locale/list-currencies.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/locale/list-languages.md b/docs/examples/1.3.x/server-swift/examples/locale/list-languages.md index 72c5649aaea..c8656709532 100644 --- a/docs/examples/1.3.x/server-swift/examples/locale/list-languages.md +++ b/docs/examples/1.3.x/server-swift/examples/locale/list-languages.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/storage/create-bucket.md b/docs/examples/1.3.x/server-swift/examples/storage/create-bucket.md index d3f91ab7af0..80ffc45decc 100644 --- a/docs/examples/1.3.x/server-swift/examples/storage/create-bucket.md +++ b/docs/examples/1.3.x/server-swift/examples/storage/create-bucket.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/storage/create-file.md b/docs/examples/1.3.x/server-swift/examples/storage/create-file.md index 45dd245d318..664a54c53ff 100644 --- a/docs/examples/1.3.x/server-swift/examples/storage/create-file.md +++ b/docs/examples/1.3.x/server-swift/examples/storage/create-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/storage/delete-bucket.md b/docs/examples/1.3.x/server-swift/examples/storage/delete-bucket.md index 4d41f1c373f..6c407365766 100644 --- a/docs/examples/1.3.x/server-swift/examples/storage/delete-bucket.md +++ b/docs/examples/1.3.x/server-swift/examples/storage/delete-bucket.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/storage/delete-file.md b/docs/examples/1.3.x/server-swift/examples/storage/delete-file.md index b2168f8ca1a..5d547d82a55 100644 --- a/docs/examples/1.3.x/server-swift/examples/storage/delete-file.md +++ b/docs/examples/1.3.x/server-swift/examples/storage/delete-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/storage/get-bucket.md b/docs/examples/1.3.x/server-swift/examples/storage/get-bucket.md index 8a27759e0e9..352aab3412f 100644 --- a/docs/examples/1.3.x/server-swift/examples/storage/get-bucket.md +++ b/docs/examples/1.3.x/server-swift/examples/storage/get-bucket.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/storage/get-file-download.md b/docs/examples/1.3.x/server-swift/examples/storage/get-file-download.md index 5205e17d436..1784f72852d 100644 --- a/docs/examples/1.3.x/server-swift/examples/storage/get-file-download.md +++ b/docs/examples/1.3.x/server-swift/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/storage/get-file-preview.md b/docs/examples/1.3.x/server-swift/examples/storage/get-file-preview.md index f6fbec66546..92fce42694d 100644 --- a/docs/examples/1.3.x/server-swift/examples/storage/get-file-preview.md +++ b/docs/examples/1.3.x/server-swift/examples/storage/get-file-preview.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/storage/get-file-view.md b/docs/examples/1.3.x/server-swift/examples/storage/get-file-view.md index 5926bdd959b..10d9c181d18 100644 --- a/docs/examples/1.3.x/server-swift/examples/storage/get-file-view.md +++ b/docs/examples/1.3.x/server-swift/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/storage/get-file.md b/docs/examples/1.3.x/server-swift/examples/storage/get-file.md index e516242775b..697dc83a16a 100644 --- a/docs/examples/1.3.x/server-swift/examples/storage/get-file.md +++ b/docs/examples/1.3.x/server-swift/examples/storage/get-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/storage/list-buckets.md b/docs/examples/1.3.x/server-swift/examples/storage/list-buckets.md index a3e92b282e4..c991833cdb1 100644 --- a/docs/examples/1.3.x/server-swift/examples/storage/list-buckets.md +++ b/docs/examples/1.3.x/server-swift/examples/storage/list-buckets.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/storage/list-files.md b/docs/examples/1.3.x/server-swift/examples/storage/list-files.md index 153a10d27f7..1f0018a150c 100644 --- a/docs/examples/1.3.x/server-swift/examples/storage/list-files.md +++ b/docs/examples/1.3.x/server-swift/examples/storage/list-files.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/storage/update-bucket.md b/docs/examples/1.3.x/server-swift/examples/storage/update-bucket.md index d2fd96c33de..f495e5efaae 100644 --- a/docs/examples/1.3.x/server-swift/examples/storage/update-bucket.md +++ b/docs/examples/1.3.x/server-swift/examples/storage/update-bucket.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/storage/update-file.md b/docs/examples/1.3.x/server-swift/examples/storage/update-file.md index f37202aa300..3a29db869db 100644 --- a/docs/examples/1.3.x/server-swift/examples/storage/update-file.md +++ b/docs/examples/1.3.x/server-swift/examples/storage/update-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/teams/create-membership.md b/docs/examples/1.3.x/server-swift/examples/teams/create-membership.md index a43f2a4fbfe..480ea28ac78 100644 --- a/docs/examples/1.3.x/server-swift/examples/teams/create-membership.md +++ b/docs/examples/1.3.x/server-swift/examples/teams/create-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/teams/create.md b/docs/examples/1.3.x/server-swift/examples/teams/create.md index e4f8c09e576..2e2b7faba06 100644 --- a/docs/examples/1.3.x/server-swift/examples/teams/create.md +++ b/docs/examples/1.3.x/server-swift/examples/teams/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/teams/delete-membership.md b/docs/examples/1.3.x/server-swift/examples/teams/delete-membership.md index 25326deba06..2f08c2cf0b3 100644 --- a/docs/examples/1.3.x/server-swift/examples/teams/delete-membership.md +++ b/docs/examples/1.3.x/server-swift/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/teams/delete.md b/docs/examples/1.3.x/server-swift/examples/teams/delete.md index c0e3d5e898d..104b19cecc3 100644 --- a/docs/examples/1.3.x/server-swift/examples/teams/delete.md +++ b/docs/examples/1.3.x/server-swift/examples/teams/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/teams/get-membership.md b/docs/examples/1.3.x/server-swift/examples/teams/get-membership.md index c399832ec26..c7adc3d0b62 100644 --- a/docs/examples/1.3.x/server-swift/examples/teams/get-membership.md +++ b/docs/examples/1.3.x/server-swift/examples/teams/get-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/teams/get-prefs.md b/docs/examples/1.3.x/server-swift/examples/teams/get-prefs.md index 4a79855f651..8cb4da49623 100644 --- a/docs/examples/1.3.x/server-swift/examples/teams/get-prefs.md +++ b/docs/examples/1.3.x/server-swift/examples/teams/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/teams/get.md b/docs/examples/1.3.x/server-swift/examples/teams/get.md index 07980d4f480..a100c3d20b5 100644 --- a/docs/examples/1.3.x/server-swift/examples/teams/get.md +++ b/docs/examples/1.3.x/server-swift/examples/teams/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/teams/list-memberships.md b/docs/examples/1.3.x/server-swift/examples/teams/list-memberships.md index 57d6ef7d379..31fd6131145 100644 --- a/docs/examples/1.3.x/server-swift/examples/teams/list-memberships.md +++ b/docs/examples/1.3.x/server-swift/examples/teams/list-memberships.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/teams/list.md b/docs/examples/1.3.x/server-swift/examples/teams/list.md index cdb174c357e..b5aa000dc03 100644 --- a/docs/examples/1.3.x/server-swift/examples/teams/list.md +++ b/docs/examples/1.3.x/server-swift/examples/teams/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/teams/update-membership-roles.md b/docs/examples/1.3.x/server-swift/examples/teams/update-membership-roles.md index b29bc6e7cb0..d0ee44be8eb 100644 --- a/docs/examples/1.3.x/server-swift/examples/teams/update-membership-roles.md +++ b/docs/examples/1.3.x/server-swift/examples/teams/update-membership-roles.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/teams/update-membership-status.md b/docs/examples/1.3.x/server-swift/examples/teams/update-membership-status.md index e209ece5eae..0ef80c00cc2 100644 --- a/docs/examples/1.3.x/server-swift/examples/teams/update-membership-status.md +++ b/docs/examples/1.3.x/server-swift/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/teams/update-name.md b/docs/examples/1.3.x/server-swift/examples/teams/update-name.md index 378d6d1ade4..66196008c72 100644 --- a/docs/examples/1.3.x/server-swift/examples/teams/update-name.md +++ b/docs/examples/1.3.x/server-swift/examples/teams/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/teams/update-prefs.md b/docs/examples/1.3.x/server-swift/examples/teams/update-prefs.md index 142896ad8a7..1d1ffd1d949 100644 --- a/docs/examples/1.3.x/server-swift/examples/teams/update-prefs.md +++ b/docs/examples/1.3.x/server-swift/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.3.x/server-swift/examples/users/create-argon2user.md b/docs/examples/1.3.x/server-swift/examples/users/create-argon2user.md index 5914c87d968..bdef66e02c6 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/create-argon2user.md +++ b/docs/examples/1.3.x/server-swift/examples/users/create-argon2user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/create-bcrypt-user.md b/docs/examples/1.3.x/server-swift/examples/users/create-bcrypt-user.md index 4321365b5c3..2e2f17737b2 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.3.x/server-swift/examples/users/create-bcrypt-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/create-m-d5user.md b/docs/examples/1.3.x/server-swift/examples/users/create-m-d5user.md index 2302780c6b7..30033f8b9d3 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/create-m-d5user.md +++ b/docs/examples/1.3.x/server-swift/examples/users/create-m-d5user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/create-p-h-pass-user.md b/docs/examples/1.3.x/server-swift/examples/users/create-p-h-pass-user.md index b856891a7d0..65cd8658f44 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.3.x/server-swift/examples/users/create-p-h-pass-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/create-s-h-a-user.md b/docs/examples/1.3.x/server-swift/examples/users/create-s-h-a-user.md index c96661377ac..c6c8f41b073 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.3.x/server-swift/examples/users/create-s-h-a-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/create-scrypt-modified-user.md b/docs/examples/1.3.x/server-swift/examples/users/create-scrypt-modified-user.md index 3a9f70386ef..bfc1ba25e99 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.3.x/server-swift/examples/users/create-scrypt-modified-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/create-scrypt-user.md b/docs/examples/1.3.x/server-swift/examples/users/create-scrypt-user.md index dbe923de938..5716295eae6 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/create-scrypt-user.md +++ b/docs/examples/1.3.x/server-swift/examples/users/create-scrypt-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/create.md b/docs/examples/1.3.x/server-swift/examples/users/create.md index db49c1f77f6..1727ee5acd3 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/create.md +++ b/docs/examples/1.3.x/server-swift/examples/users/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/delete-session.md b/docs/examples/1.3.x/server-swift/examples/users/delete-session.md index 161e11d2748..694dcdb7924 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/delete-session.md +++ b/docs/examples/1.3.x/server-swift/examples/users/delete-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/delete-sessions.md b/docs/examples/1.3.x/server-swift/examples/users/delete-sessions.md index 71bc2bf8931..a3d02a82030 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/delete-sessions.md +++ b/docs/examples/1.3.x/server-swift/examples/users/delete-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/delete.md b/docs/examples/1.3.x/server-swift/examples/users/delete.md index c8762da65ac..883e305527f 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/delete.md +++ b/docs/examples/1.3.x/server-swift/examples/users/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/get-prefs.md b/docs/examples/1.3.x/server-swift/examples/users/get-prefs.md index 956724d0b3f..149ec000999 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/get-prefs.md +++ b/docs/examples/1.3.x/server-swift/examples/users/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/get.md b/docs/examples/1.3.x/server-swift/examples/users/get.md index a2b3a126f92..83126bd872e 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/get.md +++ b/docs/examples/1.3.x/server-swift/examples/users/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/list-logs.md b/docs/examples/1.3.x/server-swift/examples/users/list-logs.md index 20a55b7f50e..71c3f667857 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/list-logs.md +++ b/docs/examples/1.3.x/server-swift/examples/users/list-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/list-memberships.md b/docs/examples/1.3.x/server-swift/examples/users/list-memberships.md index c07287eb46b..089b27da64a 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/list-memberships.md +++ b/docs/examples/1.3.x/server-swift/examples/users/list-memberships.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/list-sessions.md b/docs/examples/1.3.x/server-swift/examples/users/list-sessions.md index 9f403d8da02..ed3c7677bf9 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/list-sessions.md +++ b/docs/examples/1.3.x/server-swift/examples/users/list-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/list.md b/docs/examples/1.3.x/server-swift/examples/users/list.md index 6b41b200156..59a0e1d44d4 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/list.md +++ b/docs/examples/1.3.x/server-swift/examples/users/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/update-email-verification.md b/docs/examples/1.3.x/server-swift/examples/users/update-email-verification.md index b0649e63f6e..76e0a069b32 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/update-email-verification.md +++ b/docs/examples/1.3.x/server-swift/examples/users/update-email-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/update-email.md b/docs/examples/1.3.x/server-swift/examples/users/update-email.md index 892ff0033fa..7d779fcd1f2 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/update-email.md +++ b/docs/examples/1.3.x/server-swift/examples/users/update-email.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/update-name.md b/docs/examples/1.3.x/server-swift/examples/users/update-name.md index a5ce6f9cadc..4f0e1118f63 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/update-name.md +++ b/docs/examples/1.3.x/server-swift/examples/users/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/update-password.md b/docs/examples/1.3.x/server-swift/examples/users/update-password.md index fa2de8b93c8..cac1e9c6a2f 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/update-password.md +++ b/docs/examples/1.3.x/server-swift/examples/users/update-password.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/update-phone-verification.md b/docs/examples/1.3.x/server-swift/examples/users/update-phone-verification.md index f837ffc1670..ea10791ac0f 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/update-phone-verification.md +++ b/docs/examples/1.3.x/server-swift/examples/users/update-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/update-phone.md b/docs/examples/1.3.x/server-swift/examples/users/update-phone.md index f2b8f350dec..465d2613c98 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/update-phone.md +++ b/docs/examples/1.3.x/server-swift/examples/users/update-phone.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/update-prefs.md b/docs/examples/1.3.x/server-swift/examples/users/update-prefs.md index fc4131ea2fa..387d04f82ed 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/update-prefs.md +++ b/docs/examples/1.3.x/server-swift/examples/users/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.3.x/server-swift/examples/users/update-status.md b/docs/examples/1.3.x/server-swift/examples/users/update-status.md index f382775b179..c89328d3412 100644 --- a/docs/examples/1.3.x/server-swift/examples/users/update-status.md +++ b/docs/examples/1.3.x/server-swift/examples/users/update-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/client-android/java/account/create-anonymous-session.md b/docs/examples/1.4.x/client-android/java/account/create-anonymous-session.md index 59c76309e74..a52a17d1d03 100644 --- a/docs/examples/1.4.x/client-android/java/account/create-anonymous-session.md +++ b/docs/examples/1.4.x/client-android/java/account/create-anonymous-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/create-email-session.md b/docs/examples/1.4.x/client-android/java/account/create-email-session.md index e3e6fdd0070..86fa95f43c0 100644 --- a/docs/examples/1.4.x/client-android/java/account/create-email-session.md +++ b/docs/examples/1.4.x/client-android/java/account/create-email-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/create-j-w-t.md b/docs/examples/1.4.x/client-android/java/account/create-j-w-t.md index c3123860181..5b68aeb7ddc 100644 --- a/docs/examples/1.4.x/client-android/java/account/create-j-w-t.md +++ b/docs/examples/1.4.x/client-android/java/account/create-j-w-t.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/create-magic-u-r-l-session.md b/docs/examples/1.4.x/client-android/java/account/create-magic-u-r-l-session.md index 0ed43dc2860..a0b4e86b9f4 100644 --- a/docs/examples/1.4.x/client-android/java/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.4.x/client-android/java/account/create-magic-u-r-l-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/create-o-auth2session.md b/docs/examples/1.4.x/client-android/java/account/create-o-auth2session.md index cb9386a8483..57870eedbbf 100644 --- a/docs/examples/1.4.x/client-android/java/account/create-o-auth2session.md +++ b/docs/examples/1.4.x/client-android/java/account/create-o-auth2session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/create-phone-session.md b/docs/examples/1.4.x/client-android/java/account/create-phone-session.md index df5bc86891d..04918325c3f 100644 --- a/docs/examples/1.4.x/client-android/java/account/create-phone-session.md +++ b/docs/examples/1.4.x/client-android/java/account/create-phone-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/create-phone-verification.md b/docs/examples/1.4.x/client-android/java/account/create-phone-verification.md index 1545d0f82d2..7b7c354fff2 100644 --- a/docs/examples/1.4.x/client-android/java/account/create-phone-verification.md +++ b/docs/examples/1.4.x/client-android/java/account/create-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/create-recovery.md b/docs/examples/1.4.x/client-android/java/account/create-recovery.md index 5e8584fc359..955fe451ba7 100644 --- a/docs/examples/1.4.x/client-android/java/account/create-recovery.md +++ b/docs/examples/1.4.x/client-android/java/account/create-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/create-verification.md b/docs/examples/1.4.x/client-android/java/account/create-verification.md index fcea98f66c0..3fc9879f3ae 100644 --- a/docs/examples/1.4.x/client-android/java/account/create-verification.md +++ b/docs/examples/1.4.x/client-android/java/account/create-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/create.md b/docs/examples/1.4.x/client-android/java/account/create.md index e08731fd7ca..629374c8a47 100644 --- a/docs/examples/1.4.x/client-android/java/account/create.md +++ b/docs/examples/1.4.x/client-android/java/account/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/delete-identity.md b/docs/examples/1.4.x/client-android/java/account/delete-identity.md index 0d92d04616f..f7cdee3b863 100644 --- a/docs/examples/1.4.x/client-android/java/account/delete-identity.md +++ b/docs/examples/1.4.x/client-android/java/account/delete-identity.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/delete-session.md b/docs/examples/1.4.x/client-android/java/account/delete-session.md index 28009d014db..345094fcc2e 100644 --- a/docs/examples/1.4.x/client-android/java/account/delete-session.md +++ b/docs/examples/1.4.x/client-android/java/account/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/delete-sessions.md b/docs/examples/1.4.x/client-android/java/account/delete-sessions.md index 6bdc840cff0..7be86bea510 100644 --- a/docs/examples/1.4.x/client-android/java/account/delete-sessions.md +++ b/docs/examples/1.4.x/client-android/java/account/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/get-prefs.md b/docs/examples/1.4.x/client-android/java/account/get-prefs.md index 9911ad30a43..2b4f47b5046 100644 --- a/docs/examples/1.4.x/client-android/java/account/get-prefs.md +++ b/docs/examples/1.4.x/client-android/java/account/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/get-session.md b/docs/examples/1.4.x/client-android/java/account/get-session.md index fecb543782a..554bd545983 100644 --- a/docs/examples/1.4.x/client-android/java/account/get-session.md +++ b/docs/examples/1.4.x/client-android/java/account/get-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/get.md b/docs/examples/1.4.x/client-android/java/account/get.md index 2e5f40ad241..d6cf1077f59 100644 --- a/docs/examples/1.4.x/client-android/java/account/get.md +++ b/docs/examples/1.4.x/client-android/java/account/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/list-identities.md b/docs/examples/1.4.x/client-android/java/account/list-identities.md index d1f6a48deeb..eeaa3e62d4d 100644 --- a/docs/examples/1.4.x/client-android/java/account/list-identities.md +++ b/docs/examples/1.4.x/client-android/java/account/list-identities.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/list-logs.md b/docs/examples/1.4.x/client-android/java/account/list-logs.md index d2ce790bfe8..8fed6547c36 100644 --- a/docs/examples/1.4.x/client-android/java/account/list-logs.md +++ b/docs/examples/1.4.x/client-android/java/account/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/list-sessions.md b/docs/examples/1.4.x/client-android/java/account/list-sessions.md index 7fd587e1ba3..f77b0b387aa 100644 --- a/docs/examples/1.4.x/client-android/java/account/list-sessions.md +++ b/docs/examples/1.4.x/client-android/java/account/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/update-email.md b/docs/examples/1.4.x/client-android/java/account/update-email.md index 8034ada87dd..86ea5207c95 100644 --- a/docs/examples/1.4.x/client-android/java/account/update-email.md +++ b/docs/examples/1.4.x/client-android/java/account/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/update-magic-u-r-l-session.md b/docs/examples/1.4.x/client-android/java/account/update-magic-u-r-l-session.md index 0f8f2b3c5ce..58c491f389e 100644 --- a/docs/examples/1.4.x/client-android/java/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.4.x/client-android/java/account/update-magic-u-r-l-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/update-name.md b/docs/examples/1.4.x/client-android/java/account/update-name.md index 5940f93ef24..f10172ee8a5 100644 --- a/docs/examples/1.4.x/client-android/java/account/update-name.md +++ b/docs/examples/1.4.x/client-android/java/account/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/update-password.md b/docs/examples/1.4.x/client-android/java/account/update-password.md index d9426322a4c..749e904c6e1 100644 --- a/docs/examples/1.4.x/client-android/java/account/update-password.md +++ b/docs/examples/1.4.x/client-android/java/account/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/update-phone-session.md b/docs/examples/1.4.x/client-android/java/account/update-phone-session.md index 589e4ff5097..ca34b65c1f9 100644 --- a/docs/examples/1.4.x/client-android/java/account/update-phone-session.md +++ b/docs/examples/1.4.x/client-android/java/account/update-phone-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/update-phone-verification.md b/docs/examples/1.4.x/client-android/java/account/update-phone-verification.md index 81785f97c2c..eb0fcbd9af1 100644 --- a/docs/examples/1.4.x/client-android/java/account/update-phone-verification.md +++ b/docs/examples/1.4.x/client-android/java/account/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/update-phone.md b/docs/examples/1.4.x/client-android/java/account/update-phone.md index a8572f911c8..b1680bb6046 100644 --- a/docs/examples/1.4.x/client-android/java/account/update-phone.md +++ b/docs/examples/1.4.x/client-android/java/account/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/update-prefs.md b/docs/examples/1.4.x/client-android/java/account/update-prefs.md index ffd5ef03b52..6552f1a68cc 100644 --- a/docs/examples/1.4.x/client-android/java/account/update-prefs.md +++ b/docs/examples/1.4.x/client-android/java/account/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/update-recovery.md b/docs/examples/1.4.x/client-android/java/account/update-recovery.md index 7b0f3921763..d6c17cff3fa 100644 --- a/docs/examples/1.4.x/client-android/java/account/update-recovery.md +++ b/docs/examples/1.4.x/client-android/java/account/update-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/update-session.md b/docs/examples/1.4.x/client-android/java/account/update-session.md index 27b8f00668f..4c40264def7 100644 --- a/docs/examples/1.4.x/client-android/java/account/update-session.md +++ b/docs/examples/1.4.x/client-android/java/account/update-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/update-status.md b/docs/examples/1.4.x/client-android/java/account/update-status.md index 1e18ded5405..42c0d2dd9df 100644 --- a/docs/examples/1.4.x/client-android/java/account/update-status.md +++ b/docs/examples/1.4.x/client-android/java/account/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/account/update-verification.md b/docs/examples/1.4.x/client-android/java/account/update-verification.md index d852dbf8382..ba1a2cd5e23 100644 --- a/docs/examples/1.4.x/client-android/java/account/update-verification.md +++ b/docs/examples/1.4.x/client-android/java/account/update-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.4.x/client-android/java/avatars/get-browser.md b/docs/examples/1.4.x/client-android/java/avatars/get-browser.md index f0721102367..2382d352d63 100644 --- a/docs/examples/1.4.x/client-android/java/avatars/get-browser.md +++ b/docs/examples/1.4.x/client-android/java/avatars/get-browser.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.4.x/client-android/java/avatars/get-credit-card.md b/docs/examples/1.4.x/client-android/java/avatars/get-credit-card.md index 0a733127917..9d3d9c31a3e 100644 --- a/docs/examples/1.4.x/client-android/java/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/client-android/java/avatars/get-credit-card.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.4.x/client-android/java/avatars/get-favicon.md b/docs/examples/1.4.x/client-android/java/avatars/get-favicon.md index e0c1cb6b8a2..af7be8b2263 100644 --- a/docs/examples/1.4.x/client-android/java/avatars/get-favicon.md +++ b/docs/examples/1.4.x/client-android/java/avatars/get-favicon.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.4.x/client-android/java/avatars/get-flag.md b/docs/examples/1.4.x/client-android/java/avatars/get-flag.md index a5f47906404..698813bb1c8 100644 --- a/docs/examples/1.4.x/client-android/java/avatars/get-flag.md +++ b/docs/examples/1.4.x/client-android/java/avatars/get-flag.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.4.x/client-android/java/avatars/get-image.md b/docs/examples/1.4.x/client-android/java/avatars/get-image.md index cdc8ac722b6..903d93f4d1d 100644 --- a/docs/examples/1.4.x/client-android/java/avatars/get-image.md +++ b/docs/examples/1.4.x/client-android/java/avatars/get-image.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.4.x/client-android/java/avatars/get-initials.md b/docs/examples/1.4.x/client-android/java/avatars/get-initials.md index c02490c7344..8c5d1452fb3 100644 --- a/docs/examples/1.4.x/client-android/java/avatars/get-initials.md +++ b/docs/examples/1.4.x/client-android/java/avatars/get-initials.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.4.x/client-android/java/avatars/get-q-r.md b/docs/examples/1.4.x/client-android/java/avatars/get-q-r.md index 2532f204d83..80d03776ed5 100644 --- a/docs/examples/1.4.x/client-android/java/avatars/get-q-r.md +++ b/docs/examples/1.4.x/client-android/java/avatars/get-q-r.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.4.x/client-android/java/databases/create-document.md b/docs/examples/1.4.x/client-android/java/databases/create-document.md index 715e4cdbbe3..0be2e146d84 100644 --- a/docs/examples/1.4.x/client-android/java/databases/create-document.md +++ b/docs/examples/1.4.x/client-android/java/databases/create-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.4.x/client-android/java/databases/delete-document.md b/docs/examples/1.4.x/client-android/java/databases/delete-document.md index 1387f486870..f941418c084 100644 --- a/docs/examples/1.4.x/client-android/java/databases/delete-document.md +++ b/docs/examples/1.4.x/client-android/java/databases/delete-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.4.x/client-android/java/databases/get-document.md b/docs/examples/1.4.x/client-android/java/databases/get-document.md index b1a7161971a..987a7957c11 100644 --- a/docs/examples/1.4.x/client-android/java/databases/get-document.md +++ b/docs/examples/1.4.x/client-android/java/databases/get-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.4.x/client-android/java/databases/list-documents.md b/docs/examples/1.4.x/client-android/java/databases/list-documents.md index 62dc2c7e291..f4957e7f608 100644 --- a/docs/examples/1.4.x/client-android/java/databases/list-documents.md +++ b/docs/examples/1.4.x/client-android/java/databases/list-documents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.4.x/client-android/java/databases/update-document.md b/docs/examples/1.4.x/client-android/java/databases/update-document.md index d1ed59de3bd..0f31cb086d9 100644 --- a/docs/examples/1.4.x/client-android/java/databases/update-document.md +++ b/docs/examples/1.4.x/client-android/java/databases/update-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.4.x/client-android/java/functions/create-execution.md b/docs/examples/1.4.x/client-android/java/functions/create-execution.md index 3cce1c37be8..79cf8c11997 100644 --- a/docs/examples/1.4.x/client-android/java/functions/create-execution.md +++ b/docs/examples/1.4.x/client-android/java/functions/create-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.4.x/client-android/java/functions/get-execution.md b/docs/examples/1.4.x/client-android/java/functions/get-execution.md index 459d74394f2..496dfe61257 100644 --- a/docs/examples/1.4.x/client-android/java/functions/get-execution.md +++ b/docs/examples/1.4.x/client-android/java/functions/get-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.4.x/client-android/java/functions/list-executions.md b/docs/examples/1.4.x/client-android/java/functions/list-executions.md index c1f982b707b..6b8c37245e1 100644 --- a/docs/examples/1.4.x/client-android/java/functions/list-executions.md +++ b/docs/examples/1.4.x/client-android/java/functions/list-executions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.4.x/client-android/java/graphql/mutation.md b/docs/examples/1.4.x/client-android/java/graphql/mutation.md index 262e513bed7..3028bf105ae 100644 --- a/docs/examples/1.4.x/client-android/java/graphql/mutation.md +++ b/docs/examples/1.4.x/client-android/java/graphql/mutation.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.4.x/client-android/java/graphql/query.md b/docs/examples/1.4.x/client-android/java/graphql/query.md index 4291b4735f9..8215c674be5 100644 --- a/docs/examples/1.4.x/client-android/java/graphql/query.md +++ b/docs/examples/1.4.x/client-android/java/graphql/query.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.4.x/client-android/java/locale/get.md b/docs/examples/1.4.x/client-android/java/locale/get.md index 4d14be6d733..443f5e29b57 100644 --- a/docs/examples/1.4.x/client-android/java/locale/get.md +++ b/docs/examples/1.4.x/client-android/java/locale/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.4.x/client-android/java/locale/list-codes.md b/docs/examples/1.4.x/client-android/java/locale/list-codes.md index 599070ef779..1e73a6472f2 100644 --- a/docs/examples/1.4.x/client-android/java/locale/list-codes.md +++ b/docs/examples/1.4.x/client-android/java/locale/list-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.4.x/client-android/java/locale/list-continents.md b/docs/examples/1.4.x/client-android/java/locale/list-continents.md index 6abe97a0a02..47d11d7348b 100644 --- a/docs/examples/1.4.x/client-android/java/locale/list-continents.md +++ b/docs/examples/1.4.x/client-android/java/locale/list-continents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.4.x/client-android/java/locale/list-countries-e-u.md b/docs/examples/1.4.x/client-android/java/locale/list-countries-e-u.md index 3c5ca3ae8c5..0f010e71f3e 100644 --- a/docs/examples/1.4.x/client-android/java/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/client-android/java/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.4.x/client-android/java/locale/list-countries-phones.md b/docs/examples/1.4.x/client-android/java/locale/list-countries-phones.md index 81ef94d702d..0ff5e0a14eb 100644 --- a/docs/examples/1.4.x/client-android/java/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/client-android/java/locale/list-countries-phones.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.4.x/client-android/java/locale/list-countries.md b/docs/examples/1.4.x/client-android/java/locale/list-countries.md index dc0d5f52c4e..754507d56b1 100644 --- a/docs/examples/1.4.x/client-android/java/locale/list-countries.md +++ b/docs/examples/1.4.x/client-android/java/locale/list-countries.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.4.x/client-android/java/locale/list-currencies.md b/docs/examples/1.4.x/client-android/java/locale/list-currencies.md index 7a327b38ae7..82665375509 100644 --- a/docs/examples/1.4.x/client-android/java/locale/list-currencies.md +++ b/docs/examples/1.4.x/client-android/java/locale/list-currencies.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.4.x/client-android/java/locale/list-languages.md b/docs/examples/1.4.x/client-android/java/locale/list-languages.md index 0688614b6df..ad8d092a16b 100644 --- a/docs/examples/1.4.x/client-android/java/locale/list-languages.md +++ b/docs/examples/1.4.x/client-android/java/locale/list-languages.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.4.x/client-android/java/storage/create-file.md b/docs/examples/1.4.x/client-android/java/storage/create-file.md index 732b302f635..88fdd64a10b 100644 --- a/docs/examples/1.4.x/client-android/java/storage/create-file.md +++ b/docs/examples/1.4.x/client-android/java/storage/create-file.md @@ -4,7 +4,7 @@ import io.appwrite.models.InputFile; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.4.x/client-android/java/storage/delete-file.md b/docs/examples/1.4.x/client-android/java/storage/delete-file.md index 69a0f0f844b..90e98d3f0c8 100644 --- a/docs/examples/1.4.x/client-android/java/storage/delete-file.md +++ b/docs/examples/1.4.x/client-android/java/storage/delete-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.4.x/client-android/java/storage/get-file-download.md b/docs/examples/1.4.x/client-android/java/storage/get-file-download.md index 2ab30dce5af..5c92a9b27d1 100644 --- a/docs/examples/1.4.x/client-android/java/storage/get-file-download.md +++ b/docs/examples/1.4.x/client-android/java/storage/get-file-download.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.4.x/client-android/java/storage/get-file-preview.md b/docs/examples/1.4.x/client-android/java/storage/get-file-preview.md index 483f2fca168..519b03f73b4 100644 --- a/docs/examples/1.4.x/client-android/java/storage/get-file-preview.md +++ b/docs/examples/1.4.x/client-android/java/storage/get-file-preview.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.4.x/client-android/java/storage/get-file-view.md b/docs/examples/1.4.x/client-android/java/storage/get-file-view.md index 5614b694a50..376428309b4 100644 --- a/docs/examples/1.4.x/client-android/java/storage/get-file-view.md +++ b/docs/examples/1.4.x/client-android/java/storage/get-file-view.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.4.x/client-android/java/storage/get-file.md b/docs/examples/1.4.x/client-android/java/storage/get-file.md index 4ae0de0d9ae..61d6e9f03ab 100644 --- a/docs/examples/1.4.x/client-android/java/storage/get-file.md +++ b/docs/examples/1.4.x/client-android/java/storage/get-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.4.x/client-android/java/storage/list-files.md b/docs/examples/1.4.x/client-android/java/storage/list-files.md index dedfb6c1002..345e43fd14d 100644 --- a/docs/examples/1.4.x/client-android/java/storage/list-files.md +++ b/docs/examples/1.4.x/client-android/java/storage/list-files.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.4.x/client-android/java/storage/update-file.md b/docs/examples/1.4.x/client-android/java/storage/update-file.md index 9b4dd922667..92024cfdd61 100644 --- a/docs/examples/1.4.x/client-android/java/storage/update-file.md +++ b/docs/examples/1.4.x/client-android/java/storage/update-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.4.x/client-android/java/teams/create-membership.md b/docs/examples/1.4.x/client-android/java/teams/create-membership.md index 6073f5b035e..145b45d1894 100644 --- a/docs/examples/1.4.x/client-android/java/teams/create-membership.md +++ b/docs/examples/1.4.x/client-android/java/teams/create-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.4.x/client-android/java/teams/create.md b/docs/examples/1.4.x/client-android/java/teams/create.md index 263fa57be7b..5a9dd741db2 100644 --- a/docs/examples/1.4.x/client-android/java/teams/create.md +++ b/docs/examples/1.4.x/client-android/java/teams/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.4.x/client-android/java/teams/delete-membership.md b/docs/examples/1.4.x/client-android/java/teams/delete-membership.md index 40f28f0c21e..0babc74b4d3 100644 --- a/docs/examples/1.4.x/client-android/java/teams/delete-membership.md +++ b/docs/examples/1.4.x/client-android/java/teams/delete-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.4.x/client-android/java/teams/delete.md b/docs/examples/1.4.x/client-android/java/teams/delete.md index 5b4c378b5e2..aa7425b365c 100644 --- a/docs/examples/1.4.x/client-android/java/teams/delete.md +++ b/docs/examples/1.4.x/client-android/java/teams/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.4.x/client-android/java/teams/get-membership.md b/docs/examples/1.4.x/client-android/java/teams/get-membership.md index f2f1d99ae0b..f7a6a10d971 100644 --- a/docs/examples/1.4.x/client-android/java/teams/get-membership.md +++ b/docs/examples/1.4.x/client-android/java/teams/get-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.4.x/client-android/java/teams/get-prefs.md b/docs/examples/1.4.x/client-android/java/teams/get-prefs.md index 6963cb40cae..ea0c8594a6f 100644 --- a/docs/examples/1.4.x/client-android/java/teams/get-prefs.md +++ b/docs/examples/1.4.x/client-android/java/teams/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.4.x/client-android/java/teams/get.md b/docs/examples/1.4.x/client-android/java/teams/get.md index 549af20d342..62af7c22012 100644 --- a/docs/examples/1.4.x/client-android/java/teams/get.md +++ b/docs/examples/1.4.x/client-android/java/teams/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.4.x/client-android/java/teams/list-memberships.md b/docs/examples/1.4.x/client-android/java/teams/list-memberships.md index 3da4e33d518..65d1bf6e96f 100644 --- a/docs/examples/1.4.x/client-android/java/teams/list-memberships.md +++ b/docs/examples/1.4.x/client-android/java/teams/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.4.x/client-android/java/teams/list.md b/docs/examples/1.4.x/client-android/java/teams/list.md index b20ad4a2110..a8d4f12d774 100644 --- a/docs/examples/1.4.x/client-android/java/teams/list.md +++ b/docs/examples/1.4.x/client-android/java/teams/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.4.x/client-android/java/teams/update-membership-status.md b/docs/examples/1.4.x/client-android/java/teams/update-membership-status.md index 499251f21f8..1a0748149f1 100644 --- a/docs/examples/1.4.x/client-android/java/teams/update-membership-status.md +++ b/docs/examples/1.4.x/client-android/java/teams/update-membership-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.4.x/client-android/java/teams/update-membership.md b/docs/examples/1.4.x/client-android/java/teams/update-membership.md index 6cb334603a1..f64e6dc99b3 100644 --- a/docs/examples/1.4.x/client-android/java/teams/update-membership.md +++ b/docs/examples/1.4.x/client-android/java/teams/update-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.4.x/client-android/java/teams/update-name.md b/docs/examples/1.4.x/client-android/java/teams/update-name.md index 170ee590151..525cfdf201f 100644 --- a/docs/examples/1.4.x/client-android/java/teams/update-name.md +++ b/docs/examples/1.4.x/client-android/java/teams/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.4.x/client-android/java/teams/update-prefs.md b/docs/examples/1.4.x/client-android/java/teams/update-prefs.md index a19ad8207e5..f454393c429 100644 --- a/docs/examples/1.4.x/client-android/java/teams/update-prefs.md +++ b/docs/examples/1.4.x/client-android/java/teams/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.4.x/client-android/kotlin/account/create-anonymous-session.md b/docs/examples/1.4.x/client-android/kotlin/account/create-anonymous-session.md index cdcf401ed9e..f0d574304d0 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/create-anonymous-session.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/create-anonymous-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/create-email-session.md b/docs/examples/1.4.x/client-android/kotlin/account/create-email-session.md index ab8d581fd10..e7b438f8cc0 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/create-email-session.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/create-email-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/create-j-w-t.md b/docs/examples/1.4.x/client-android/kotlin/account/create-j-w-t.md index 35e7a6ffd4a..3e1f2e011ac 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/create-j-w-t.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/create-j-w-t.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/create-magic-u-r-l-session.md b/docs/examples/1.4.x/client-android/kotlin/account/create-magic-u-r-l-session.md index 51368b53923..88146d07322 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/create-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/create-o-auth2session.md b/docs/examples/1.4.x/client-android/kotlin/account/create-o-auth2session.md index 395bfada007..f3bf8145e4d 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/create-o-auth2session.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/create-o-auth2session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/create-phone-session.md b/docs/examples/1.4.x/client-android/kotlin/account/create-phone-session.md index eed6f7a2e21..b87e421f8b4 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/create-phone-session.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/create-phone-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/create-phone-verification.md b/docs/examples/1.4.x/client-android/kotlin/account/create-phone-verification.md index 12fb9f74e86..8dded67ac3b 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/create-phone-verification.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/create-phone-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/create-recovery.md b/docs/examples/1.4.x/client-android/kotlin/account/create-recovery.md index 7d73a671dde..70d55639c34 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/create-recovery.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/create-recovery.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/create-verification.md b/docs/examples/1.4.x/client-android/kotlin/account/create-verification.md index b3dc43ac48d..a7c8f11cac1 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/create-verification.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/create-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/create.md b/docs/examples/1.4.x/client-android/kotlin/account/create.md index c72ae90deff..a78fc611e58 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/create.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/delete-identity.md b/docs/examples/1.4.x/client-android/kotlin/account/delete-identity.md index 440333e1cb7..4650d0a995c 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/delete-identity.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/delete-identity.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/delete-session.md b/docs/examples/1.4.x/client-android/kotlin/account/delete-session.md index a98a28661b2..5e22b533695 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/delete-session.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/delete-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/delete-sessions.md b/docs/examples/1.4.x/client-android/kotlin/account/delete-sessions.md index c9afbf13457..e90c2a9348e 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/delete-sessions.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/delete-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/get-prefs.md b/docs/examples/1.4.x/client-android/kotlin/account/get-prefs.md index bd3f81a23fd..01c128266b5 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/get-prefs.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/get-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/get-session.md b/docs/examples/1.4.x/client-android/kotlin/account/get-session.md index d6d6c72eac7..f150d0fb2f7 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/get-session.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/get-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/get.md b/docs/examples/1.4.x/client-android/kotlin/account/get.md index 4c8f0be9de6..83f7f8789d7 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/get.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/list-identities.md b/docs/examples/1.4.x/client-android/kotlin/account/list-identities.md index 3292b35ff13..c6b73eea184 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/list-identities.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/list-identities.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/list-logs.md b/docs/examples/1.4.x/client-android/kotlin/account/list-logs.md index eb337caec0c..d9f569f3207 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/list-logs.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/list-logs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/list-sessions.md b/docs/examples/1.4.x/client-android/kotlin/account/list-sessions.md index cd9f63bc3c4..2969326917e 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/list-sessions.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/list-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/update-email.md b/docs/examples/1.4.x/client-android/kotlin/account/update-email.md index 85a02425911..dcc9b822b6f 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/update-email.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/update-email.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/update-magic-u-r-l-session.md b/docs/examples/1.4.x/client-android/kotlin/account/update-magic-u-r-l-session.md index c7286ba6c84..c0e7f408117 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/update-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/update-name.md b/docs/examples/1.4.x/client-android/kotlin/account/update-name.md index 574f4938d87..18b631b1d56 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/update-name.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/update-name.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/update-password.md b/docs/examples/1.4.x/client-android/kotlin/account/update-password.md index c5338b86945..45ff1b25e68 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/update-password.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/update-password.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/update-phone-session.md b/docs/examples/1.4.x/client-android/kotlin/account/update-phone-session.md index d3b02e04ce2..39be2c4f5f2 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/update-phone-session.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/update-phone-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/update-phone-verification.md b/docs/examples/1.4.x/client-android/kotlin/account/update-phone-verification.md index 0314f742230..4dc6c63915b 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/update-phone-verification.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/update-phone-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/update-phone.md b/docs/examples/1.4.x/client-android/kotlin/account/update-phone.md index 76eb8aac5e2..39d420b197a 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/update-phone.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/update-phone.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/update-prefs.md b/docs/examples/1.4.x/client-android/kotlin/account/update-prefs.md index f16e40ba41f..beb8e6e2dd5 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/update-prefs.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/update-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/update-recovery.md b/docs/examples/1.4.x/client-android/kotlin/account/update-recovery.md index 9682899bcb2..e2f56651164 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/update-recovery.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/update-recovery.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/update-session.md b/docs/examples/1.4.x/client-android/kotlin/account/update-session.md index e9e83d0cb03..74bf0a235eb 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/update-session.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/update-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/update-status.md b/docs/examples/1.4.x/client-android/kotlin/account/update-status.md index f7789ea237f..4637918887d 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/update-status.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/update-status.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/account/update-verification.md b/docs/examples/1.4.x/client-android/kotlin/account/update-verification.md index af800c1fc57..de3bf1bfe37 100644 --- a/docs/examples/1.4.x/client-android/kotlin/account/update-verification.md +++ b/docs/examples/1.4.x/client-android/kotlin/account/update-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/avatars/get-browser.md b/docs/examples/1.4.x/client-android/kotlin/avatars/get-browser.md index b1b2d081832..9d65c62b1cb 100644 --- a/docs/examples/1.4.x/client-android/kotlin/avatars/get-browser.md +++ b/docs/examples/1.4.x/client-android/kotlin/avatars/get-browser.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/avatars/get-credit-card.md b/docs/examples/1.4.x/client-android/kotlin/avatars/get-credit-card.md index 411e05ae51d..7265ea284c7 100644 --- a/docs/examples/1.4.x/client-android/kotlin/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/client-android/kotlin/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/avatars/get-favicon.md b/docs/examples/1.4.x/client-android/kotlin/avatars/get-favicon.md index 1a4b217fa4a..144c95a5c54 100644 --- a/docs/examples/1.4.x/client-android/kotlin/avatars/get-favicon.md +++ b/docs/examples/1.4.x/client-android/kotlin/avatars/get-favicon.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/avatars/get-flag.md b/docs/examples/1.4.x/client-android/kotlin/avatars/get-flag.md index 5c882d60186..82cd2166779 100644 --- a/docs/examples/1.4.x/client-android/kotlin/avatars/get-flag.md +++ b/docs/examples/1.4.x/client-android/kotlin/avatars/get-flag.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/avatars/get-image.md b/docs/examples/1.4.x/client-android/kotlin/avatars/get-image.md index 20d8dff13c7..05bdc47199f 100644 --- a/docs/examples/1.4.x/client-android/kotlin/avatars/get-image.md +++ b/docs/examples/1.4.x/client-android/kotlin/avatars/get-image.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/avatars/get-initials.md b/docs/examples/1.4.x/client-android/kotlin/avatars/get-initials.md index 70ef9b29091..6b1d95a22a7 100644 --- a/docs/examples/1.4.x/client-android/kotlin/avatars/get-initials.md +++ b/docs/examples/1.4.x/client-android/kotlin/avatars/get-initials.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/avatars/get-q-r.md b/docs/examples/1.4.x/client-android/kotlin/avatars/get-q-r.md index 92b17e11639..8d6aae60f74 100644 --- a/docs/examples/1.4.x/client-android/kotlin/avatars/get-q-r.md +++ b/docs/examples/1.4.x/client-android/kotlin/avatars/get-q-r.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/databases/create-document.md b/docs/examples/1.4.x/client-android/kotlin/databases/create-document.md index d7f1991d391..99e042cc690 100644 --- a/docs/examples/1.4.x/client-android/kotlin/databases/create-document.md +++ b/docs/examples/1.4.x/client-android/kotlin/databases/create-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/databases/delete-document.md b/docs/examples/1.4.x/client-android/kotlin/databases/delete-document.md index c5bf2a27070..1a150b8c9b1 100644 --- a/docs/examples/1.4.x/client-android/kotlin/databases/delete-document.md +++ b/docs/examples/1.4.x/client-android/kotlin/databases/delete-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/databases/get-document.md b/docs/examples/1.4.x/client-android/kotlin/databases/get-document.md index abdee363169..afad4a20be7 100644 --- a/docs/examples/1.4.x/client-android/kotlin/databases/get-document.md +++ b/docs/examples/1.4.x/client-android/kotlin/databases/get-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/databases/list-documents.md b/docs/examples/1.4.x/client-android/kotlin/databases/list-documents.md index f97d8787c91..5e3a8d62316 100644 --- a/docs/examples/1.4.x/client-android/kotlin/databases/list-documents.md +++ b/docs/examples/1.4.x/client-android/kotlin/databases/list-documents.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/databases/update-document.md b/docs/examples/1.4.x/client-android/kotlin/databases/update-document.md index 3820b8965ce..c6186d77890 100644 --- a/docs/examples/1.4.x/client-android/kotlin/databases/update-document.md +++ b/docs/examples/1.4.x/client-android/kotlin/databases/update-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/functions/create-execution.md b/docs/examples/1.4.x/client-android/kotlin/functions/create-execution.md index 77d4587755e..4bf08c84367 100644 --- a/docs/examples/1.4.x/client-android/kotlin/functions/create-execution.md +++ b/docs/examples/1.4.x/client-android/kotlin/functions/create-execution.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/functions/get-execution.md b/docs/examples/1.4.x/client-android/kotlin/functions/get-execution.md index b57668679fd..a6488876ed2 100644 --- a/docs/examples/1.4.x/client-android/kotlin/functions/get-execution.md +++ b/docs/examples/1.4.x/client-android/kotlin/functions/get-execution.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/functions/list-executions.md b/docs/examples/1.4.x/client-android/kotlin/functions/list-executions.md index 14b613f7036..7a0ebbf04a3 100644 --- a/docs/examples/1.4.x/client-android/kotlin/functions/list-executions.md +++ b/docs/examples/1.4.x/client-android/kotlin/functions/list-executions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/graphql/mutation.md b/docs/examples/1.4.x/client-android/kotlin/graphql/mutation.md index dc37a3e6408..ff5165a1c65 100644 --- a/docs/examples/1.4.x/client-android/kotlin/graphql/mutation.md +++ b/docs/examples/1.4.x/client-android/kotlin/graphql/mutation.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val graphql = Graphql(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/graphql/query.md b/docs/examples/1.4.x/client-android/kotlin/graphql/query.md index d8210709228..6b4c11190ef 100644 --- a/docs/examples/1.4.x/client-android/kotlin/graphql/query.md +++ b/docs/examples/1.4.x/client-android/kotlin/graphql/query.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val graphql = Graphql(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/locale/get.md b/docs/examples/1.4.x/client-android/kotlin/locale/get.md index a2044c72570..f07d3cf7eb5 100644 --- a/docs/examples/1.4.x/client-android/kotlin/locale/get.md +++ b/docs/examples/1.4.x/client-android/kotlin/locale/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/locale/list-codes.md b/docs/examples/1.4.x/client-android/kotlin/locale/list-codes.md index b4e949bb0dc..5f90626e21d 100644 --- a/docs/examples/1.4.x/client-android/kotlin/locale/list-codes.md +++ b/docs/examples/1.4.x/client-android/kotlin/locale/list-codes.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/locale/list-continents.md b/docs/examples/1.4.x/client-android/kotlin/locale/list-continents.md index 610747ee131..5fc344d1701 100644 --- a/docs/examples/1.4.x/client-android/kotlin/locale/list-continents.md +++ b/docs/examples/1.4.x/client-android/kotlin/locale/list-continents.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/locale/list-countries-e-u.md b/docs/examples/1.4.x/client-android/kotlin/locale/list-countries-e-u.md index fa5483f0b0d..691a9583fde 100644 --- a/docs/examples/1.4.x/client-android/kotlin/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/client-android/kotlin/locale/list-countries-e-u.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/locale/list-countries-phones.md b/docs/examples/1.4.x/client-android/kotlin/locale/list-countries-phones.md index 6aba463a388..6ef8dcd7ac3 100644 --- a/docs/examples/1.4.x/client-android/kotlin/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/client-android/kotlin/locale/list-countries-phones.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/locale/list-countries.md b/docs/examples/1.4.x/client-android/kotlin/locale/list-countries.md index c58456b0f51..4dcc23e85e2 100644 --- a/docs/examples/1.4.x/client-android/kotlin/locale/list-countries.md +++ b/docs/examples/1.4.x/client-android/kotlin/locale/list-countries.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/locale/list-currencies.md b/docs/examples/1.4.x/client-android/kotlin/locale/list-currencies.md index 2cf064402a0..f9fb666379d 100644 --- a/docs/examples/1.4.x/client-android/kotlin/locale/list-currencies.md +++ b/docs/examples/1.4.x/client-android/kotlin/locale/list-currencies.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/locale/list-languages.md b/docs/examples/1.4.x/client-android/kotlin/locale/list-languages.md index afc00b1e77a..cdbcaa6f076 100644 --- a/docs/examples/1.4.x/client-android/kotlin/locale/list-languages.md +++ b/docs/examples/1.4.x/client-android/kotlin/locale/list-languages.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/storage/create-file.md b/docs/examples/1.4.x/client-android/kotlin/storage/create-file.md index 7bb79ac11ed..60a80bb6336 100644 --- a/docs/examples/1.4.x/client-android/kotlin/storage/create-file.md +++ b/docs/examples/1.4.x/client-android/kotlin/storage/create-file.md @@ -3,7 +3,7 @@ import io.appwrite.models.InputFile import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/storage/delete-file.md b/docs/examples/1.4.x/client-android/kotlin/storage/delete-file.md index 9430d7efe37..e4f094062bb 100644 --- a/docs/examples/1.4.x/client-android/kotlin/storage/delete-file.md +++ b/docs/examples/1.4.x/client-android/kotlin/storage/delete-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/storage/get-file-download.md b/docs/examples/1.4.x/client-android/kotlin/storage/get-file-download.md index 85bd22c9c12..ccc23d23fbc 100644 --- a/docs/examples/1.4.x/client-android/kotlin/storage/get-file-download.md +++ b/docs/examples/1.4.x/client-android/kotlin/storage/get-file-download.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/storage/get-file-preview.md b/docs/examples/1.4.x/client-android/kotlin/storage/get-file-preview.md index c5bbdef4199..5338b3ce45d 100644 --- a/docs/examples/1.4.x/client-android/kotlin/storage/get-file-preview.md +++ b/docs/examples/1.4.x/client-android/kotlin/storage/get-file-preview.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/storage/get-file-view.md b/docs/examples/1.4.x/client-android/kotlin/storage/get-file-view.md index 7e7589c0790..acba4607d7d 100644 --- a/docs/examples/1.4.x/client-android/kotlin/storage/get-file-view.md +++ b/docs/examples/1.4.x/client-android/kotlin/storage/get-file-view.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/storage/get-file.md b/docs/examples/1.4.x/client-android/kotlin/storage/get-file.md index 8fb6e244e89..14d7425c568 100644 --- a/docs/examples/1.4.x/client-android/kotlin/storage/get-file.md +++ b/docs/examples/1.4.x/client-android/kotlin/storage/get-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/storage/list-files.md b/docs/examples/1.4.x/client-android/kotlin/storage/list-files.md index 191a3cc97ca..258daaf3748 100644 --- a/docs/examples/1.4.x/client-android/kotlin/storage/list-files.md +++ b/docs/examples/1.4.x/client-android/kotlin/storage/list-files.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/storage/update-file.md b/docs/examples/1.4.x/client-android/kotlin/storage/update-file.md index 005270f3e4d..b5cc0d29988 100644 --- a/docs/examples/1.4.x/client-android/kotlin/storage/update-file.md +++ b/docs/examples/1.4.x/client-android/kotlin/storage/update-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/teams/create-membership.md b/docs/examples/1.4.x/client-android/kotlin/teams/create-membership.md index 4d1de49b70e..0690f0f0e16 100644 --- a/docs/examples/1.4.x/client-android/kotlin/teams/create-membership.md +++ b/docs/examples/1.4.x/client-android/kotlin/teams/create-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/teams/create.md b/docs/examples/1.4.x/client-android/kotlin/teams/create.md index 5e70bd8df0b..2fa3cff014f 100644 --- a/docs/examples/1.4.x/client-android/kotlin/teams/create.md +++ b/docs/examples/1.4.x/client-android/kotlin/teams/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/teams/delete-membership.md b/docs/examples/1.4.x/client-android/kotlin/teams/delete-membership.md index 04ef5d3490f..56157f296b7 100644 --- a/docs/examples/1.4.x/client-android/kotlin/teams/delete-membership.md +++ b/docs/examples/1.4.x/client-android/kotlin/teams/delete-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/teams/delete.md b/docs/examples/1.4.x/client-android/kotlin/teams/delete.md index 7d58960e7c3..149c120375d 100644 --- a/docs/examples/1.4.x/client-android/kotlin/teams/delete.md +++ b/docs/examples/1.4.x/client-android/kotlin/teams/delete.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/teams/get-membership.md b/docs/examples/1.4.x/client-android/kotlin/teams/get-membership.md index 653bd520faf..78420a121e7 100644 --- a/docs/examples/1.4.x/client-android/kotlin/teams/get-membership.md +++ b/docs/examples/1.4.x/client-android/kotlin/teams/get-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/teams/get-prefs.md b/docs/examples/1.4.x/client-android/kotlin/teams/get-prefs.md index bfd8f7597fa..02e05873e80 100644 --- a/docs/examples/1.4.x/client-android/kotlin/teams/get-prefs.md +++ b/docs/examples/1.4.x/client-android/kotlin/teams/get-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/teams/get.md b/docs/examples/1.4.x/client-android/kotlin/teams/get.md index 72aea07f30a..7997e5aa2b6 100644 --- a/docs/examples/1.4.x/client-android/kotlin/teams/get.md +++ b/docs/examples/1.4.x/client-android/kotlin/teams/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/teams/list-memberships.md b/docs/examples/1.4.x/client-android/kotlin/teams/list-memberships.md index 53bd6f3b65b..79db9e57986 100644 --- a/docs/examples/1.4.x/client-android/kotlin/teams/list-memberships.md +++ b/docs/examples/1.4.x/client-android/kotlin/teams/list-memberships.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/teams/list.md b/docs/examples/1.4.x/client-android/kotlin/teams/list.md index 57c5fe83543..29b4d655e5f 100644 --- a/docs/examples/1.4.x/client-android/kotlin/teams/list.md +++ b/docs/examples/1.4.x/client-android/kotlin/teams/list.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/teams/update-membership-status.md b/docs/examples/1.4.x/client-android/kotlin/teams/update-membership-status.md index 33de006871f..e1a3b53df59 100644 --- a/docs/examples/1.4.x/client-android/kotlin/teams/update-membership-status.md +++ b/docs/examples/1.4.x/client-android/kotlin/teams/update-membership-status.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/teams/update-membership.md b/docs/examples/1.4.x/client-android/kotlin/teams/update-membership.md index 40005ed3658..4c739742338 100644 --- a/docs/examples/1.4.x/client-android/kotlin/teams/update-membership.md +++ b/docs/examples/1.4.x/client-android/kotlin/teams/update-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/teams/update-name.md b/docs/examples/1.4.x/client-android/kotlin/teams/update-name.md index 59c681232d8..d14522666a3 100644 --- a/docs/examples/1.4.x/client-android/kotlin/teams/update-name.md +++ b/docs/examples/1.4.x/client-android/kotlin/teams/update-name.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.4.x/client-android/kotlin/teams/update-prefs.md b/docs/examples/1.4.x/client-android/kotlin/teams/update-prefs.md index 6a89ac768d6..954f6a7aebf 100644 --- a/docs/examples/1.4.x/client-android/kotlin/teams/update-prefs.md +++ b/docs/examples/1.4.x/client-android/kotlin/teams/update-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/create-anonymous-session.md b/docs/examples/1.4.x/client-apple/examples/account/create-anonymous-session.md index 9904f6f222e..ec7bc357e17 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/create-anonymous-session.md +++ b/docs/examples/1.4.x/client-apple/examples/account/create-anonymous-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/create-email-session.md b/docs/examples/1.4.x/client-apple/examples/account/create-email-session.md index 311a3b6260f..cc9a14e931a 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/create-email-session.md +++ b/docs/examples/1.4.x/client-apple/examples/account/create-email-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/create-j-w-t.md b/docs/examples/1.4.x/client-apple/examples/account/create-j-w-t.md index c18c3c940ab..7d9b4e33674 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/create-j-w-t.md +++ b/docs/examples/1.4.x/client-apple/examples/account/create-j-w-t.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.4.x/client-apple/examples/account/create-magic-u-r-l-session.md index 929396ddc67..88efd04ca92 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.4.x/client-apple/examples/account/create-magic-u-r-l-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/create-o-auth2session.md b/docs/examples/1.4.x/client-apple/examples/account/create-o-auth2session.md index c84edfc6e76..7c4048689e7 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/create-o-auth2session.md +++ b/docs/examples/1.4.x/client-apple/examples/account/create-o-auth2session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/create-phone-session.md b/docs/examples/1.4.x/client-apple/examples/account/create-phone-session.md index caa66c161a6..40ad4c34fad 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/create-phone-session.md +++ b/docs/examples/1.4.x/client-apple/examples/account/create-phone-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/create-phone-verification.md b/docs/examples/1.4.x/client-apple/examples/account/create-phone-verification.md index b628897c60a..3b1548db4a8 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/create-phone-verification.md +++ b/docs/examples/1.4.x/client-apple/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/create-recovery.md b/docs/examples/1.4.x/client-apple/examples/account/create-recovery.md index 8d48938a87e..6f52d97ebb1 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/create-recovery.md +++ b/docs/examples/1.4.x/client-apple/examples/account/create-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/create-verification.md b/docs/examples/1.4.x/client-apple/examples/account/create-verification.md index 2c96d202d01..9271178af8a 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/create-verification.md +++ b/docs/examples/1.4.x/client-apple/examples/account/create-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/create.md b/docs/examples/1.4.x/client-apple/examples/account/create.md index a7836f8e379..fe023e0f617 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/create.md +++ b/docs/examples/1.4.x/client-apple/examples/account/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/delete-identity.md b/docs/examples/1.4.x/client-apple/examples/account/delete-identity.md index 7cd37c9755c..d0b98e6791e 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/delete-identity.md +++ b/docs/examples/1.4.x/client-apple/examples/account/delete-identity.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/delete-session.md b/docs/examples/1.4.x/client-apple/examples/account/delete-session.md index 316a27d8f7b..6e42ce8a5ec 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/delete-session.md +++ b/docs/examples/1.4.x/client-apple/examples/account/delete-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/delete-sessions.md b/docs/examples/1.4.x/client-apple/examples/account/delete-sessions.md index efb8c7cce11..b45ea356fe4 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/delete-sessions.md +++ b/docs/examples/1.4.x/client-apple/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/get-prefs.md b/docs/examples/1.4.x/client-apple/examples/account/get-prefs.md index 5a9fb2e356c..7605035f35d 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/get-prefs.md +++ b/docs/examples/1.4.x/client-apple/examples/account/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/get-session.md b/docs/examples/1.4.x/client-apple/examples/account/get-session.md index 66b363574aa..6adf367a337 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/get-session.md +++ b/docs/examples/1.4.x/client-apple/examples/account/get-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/get.md b/docs/examples/1.4.x/client-apple/examples/account/get.md index f29f83f8e8e..0bfdb0a7053 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/get.md +++ b/docs/examples/1.4.x/client-apple/examples/account/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/list-identities.md b/docs/examples/1.4.x/client-apple/examples/account/list-identities.md index 86d713c2d4e..7c9961697e6 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/list-identities.md +++ b/docs/examples/1.4.x/client-apple/examples/account/list-identities.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/list-logs.md b/docs/examples/1.4.x/client-apple/examples/account/list-logs.md index 0c9725555e5..bc463217d69 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/list-logs.md +++ b/docs/examples/1.4.x/client-apple/examples/account/list-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/list-sessions.md b/docs/examples/1.4.x/client-apple/examples/account/list-sessions.md index b160c89f9cd..9c1daf94b95 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/list-sessions.md +++ b/docs/examples/1.4.x/client-apple/examples/account/list-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/update-email.md b/docs/examples/1.4.x/client-apple/examples/account/update-email.md index a8c37af9464..c1c3dd52510 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/update-email.md +++ b/docs/examples/1.4.x/client-apple/examples/account/update-email.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.4.x/client-apple/examples/account/update-magic-u-r-l-session.md index 42a7f710b52..e0a340a6066 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.4.x/client-apple/examples/account/update-magic-u-r-l-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/update-name.md b/docs/examples/1.4.x/client-apple/examples/account/update-name.md index a9d76812b55..04f8832a6b3 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/update-name.md +++ b/docs/examples/1.4.x/client-apple/examples/account/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/update-password.md b/docs/examples/1.4.x/client-apple/examples/account/update-password.md index bb3c3b0bea4..42a82dda330 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/update-password.md +++ b/docs/examples/1.4.x/client-apple/examples/account/update-password.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/update-phone-session.md b/docs/examples/1.4.x/client-apple/examples/account/update-phone-session.md index 41e26c3935c..a102cb740df 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/update-phone-session.md +++ b/docs/examples/1.4.x/client-apple/examples/account/update-phone-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/update-phone-verification.md b/docs/examples/1.4.x/client-apple/examples/account/update-phone-verification.md index 1c88595dc24..8e47f16be4e 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/update-phone-verification.md +++ b/docs/examples/1.4.x/client-apple/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/update-phone.md b/docs/examples/1.4.x/client-apple/examples/account/update-phone.md index 306e8f5a939..e595ee3d082 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/update-phone.md +++ b/docs/examples/1.4.x/client-apple/examples/account/update-phone.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/update-prefs.md b/docs/examples/1.4.x/client-apple/examples/account/update-prefs.md index cc765480c5e..bab4b310e8e 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/update-prefs.md +++ b/docs/examples/1.4.x/client-apple/examples/account/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/update-recovery.md b/docs/examples/1.4.x/client-apple/examples/account/update-recovery.md index 335dd6aeef0..1e965beff0b 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/update-recovery.md +++ b/docs/examples/1.4.x/client-apple/examples/account/update-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/update-session.md b/docs/examples/1.4.x/client-apple/examples/account/update-session.md index b71826246d6..8e1d1116507 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/update-session.md +++ b/docs/examples/1.4.x/client-apple/examples/account/update-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/update-status.md b/docs/examples/1.4.x/client-apple/examples/account/update-status.md index 3f2d823641d..2c7753f3796 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/update-status.md +++ b/docs/examples/1.4.x/client-apple/examples/account/update-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/account/update-verification.md b/docs/examples/1.4.x/client-apple/examples/account/update-verification.md index 36af6b99dac..5a521a212a3 100644 --- a/docs/examples/1.4.x/client-apple/examples/account/update-verification.md +++ b/docs/examples/1.4.x/client-apple/examples/account/update-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.4.x/client-apple/examples/avatars/get-browser.md b/docs/examples/1.4.x/client-apple/examples/avatars/get-browser.md index 19c8d02b6d2..9f86b044356 100644 --- a/docs/examples/1.4.x/client-apple/examples/avatars/get-browser.md +++ b/docs/examples/1.4.x/client-apple/examples/avatars/get-browser.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.4.x/client-apple/examples/avatars/get-credit-card.md b/docs/examples/1.4.x/client-apple/examples/avatars/get-credit-card.md index d7a680f35ed..1756c5b1468 100644 --- a/docs/examples/1.4.x/client-apple/examples/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/client-apple/examples/avatars/get-credit-card.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.4.x/client-apple/examples/avatars/get-favicon.md b/docs/examples/1.4.x/client-apple/examples/avatars/get-favicon.md index 01a7ec13445..945ce41a8cc 100644 --- a/docs/examples/1.4.x/client-apple/examples/avatars/get-favicon.md +++ b/docs/examples/1.4.x/client-apple/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.4.x/client-apple/examples/avatars/get-flag.md b/docs/examples/1.4.x/client-apple/examples/avatars/get-flag.md index eb33c906b6b..4044888df38 100644 --- a/docs/examples/1.4.x/client-apple/examples/avatars/get-flag.md +++ b/docs/examples/1.4.x/client-apple/examples/avatars/get-flag.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.4.x/client-apple/examples/avatars/get-image.md b/docs/examples/1.4.x/client-apple/examples/avatars/get-image.md index ef0cd36920b..659749d9927 100644 --- a/docs/examples/1.4.x/client-apple/examples/avatars/get-image.md +++ b/docs/examples/1.4.x/client-apple/examples/avatars/get-image.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.4.x/client-apple/examples/avatars/get-initials.md b/docs/examples/1.4.x/client-apple/examples/avatars/get-initials.md index 1bdd6f058a1..b9a5a7d0957 100644 --- a/docs/examples/1.4.x/client-apple/examples/avatars/get-initials.md +++ b/docs/examples/1.4.x/client-apple/examples/avatars/get-initials.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.4.x/client-apple/examples/avatars/get-q-r.md b/docs/examples/1.4.x/client-apple/examples/avatars/get-q-r.md index 5c801d40bbd..edf910514f7 100644 --- a/docs/examples/1.4.x/client-apple/examples/avatars/get-q-r.md +++ b/docs/examples/1.4.x/client-apple/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.4.x/client-apple/examples/databases/create-document.md b/docs/examples/1.4.x/client-apple/examples/databases/create-document.md index 533bbd534c2..d7f66d018c9 100644 --- a/docs/examples/1.4.x/client-apple/examples/databases/create-document.md +++ b/docs/examples/1.4.x/client-apple/examples/databases/create-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.4.x/client-apple/examples/databases/delete-document.md b/docs/examples/1.4.x/client-apple/examples/databases/delete-document.md index c9a751294d8..f05f747b6ce 100644 --- a/docs/examples/1.4.x/client-apple/examples/databases/delete-document.md +++ b/docs/examples/1.4.x/client-apple/examples/databases/delete-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.4.x/client-apple/examples/databases/get-document.md b/docs/examples/1.4.x/client-apple/examples/databases/get-document.md index 53b71fb4f5c..8f85eae2a46 100644 --- a/docs/examples/1.4.x/client-apple/examples/databases/get-document.md +++ b/docs/examples/1.4.x/client-apple/examples/databases/get-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.4.x/client-apple/examples/databases/list-documents.md b/docs/examples/1.4.x/client-apple/examples/databases/list-documents.md index 0b375df67a3..c05bc15e995 100644 --- a/docs/examples/1.4.x/client-apple/examples/databases/list-documents.md +++ b/docs/examples/1.4.x/client-apple/examples/databases/list-documents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.4.x/client-apple/examples/databases/update-document.md b/docs/examples/1.4.x/client-apple/examples/databases/update-document.md index 5a943af8c11..238da36ec86 100644 --- a/docs/examples/1.4.x/client-apple/examples/databases/update-document.md +++ b/docs/examples/1.4.x/client-apple/examples/databases/update-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.4.x/client-apple/examples/functions/create-execution.md b/docs/examples/1.4.x/client-apple/examples/functions/create-execution.md index 93702bfdbcd..8c696c8dec5 100644 --- a/docs/examples/1.4.x/client-apple/examples/functions/create-execution.md +++ b/docs/examples/1.4.x/client-apple/examples/functions/create-execution.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let functions = Functions(client) diff --git a/docs/examples/1.4.x/client-apple/examples/functions/get-execution.md b/docs/examples/1.4.x/client-apple/examples/functions/get-execution.md index f1e53cb5708..b6ed7f7e75e 100644 --- a/docs/examples/1.4.x/client-apple/examples/functions/get-execution.md +++ b/docs/examples/1.4.x/client-apple/examples/functions/get-execution.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let functions = Functions(client) diff --git a/docs/examples/1.4.x/client-apple/examples/functions/list-executions.md b/docs/examples/1.4.x/client-apple/examples/functions/list-executions.md index 0f182950eeb..5e6920aa213 100644 --- a/docs/examples/1.4.x/client-apple/examples/functions/list-executions.md +++ b/docs/examples/1.4.x/client-apple/examples/functions/list-executions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let functions = Functions(client) diff --git a/docs/examples/1.4.x/client-apple/examples/graphql/mutation.md b/docs/examples/1.4.x/client-apple/examples/graphql/mutation.md index d58b881df4d..aa8d9d318cb 100644 --- a/docs/examples/1.4.x/client-apple/examples/graphql/mutation.md +++ b/docs/examples/1.4.x/client-apple/examples/graphql/mutation.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let graphql = Graphql(client) diff --git a/docs/examples/1.4.x/client-apple/examples/graphql/query.md b/docs/examples/1.4.x/client-apple/examples/graphql/query.md index 0aba98aeb88..78797a21a02 100644 --- a/docs/examples/1.4.x/client-apple/examples/graphql/query.md +++ b/docs/examples/1.4.x/client-apple/examples/graphql/query.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let graphql = Graphql(client) diff --git a/docs/examples/1.4.x/client-apple/examples/locale/get.md b/docs/examples/1.4.x/client-apple/examples/locale/get.md index d12470d66ab..95dc75d9f84 100644 --- a/docs/examples/1.4.x/client-apple/examples/locale/get.md +++ b/docs/examples/1.4.x/client-apple/examples/locale/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.4.x/client-apple/examples/locale/list-codes.md b/docs/examples/1.4.x/client-apple/examples/locale/list-codes.md index 5832aa4ced0..1bce2ff930e 100644 --- a/docs/examples/1.4.x/client-apple/examples/locale/list-codes.md +++ b/docs/examples/1.4.x/client-apple/examples/locale/list-codes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.4.x/client-apple/examples/locale/list-continents.md b/docs/examples/1.4.x/client-apple/examples/locale/list-continents.md index 4853f77212d..83073b0210b 100644 --- a/docs/examples/1.4.x/client-apple/examples/locale/list-continents.md +++ b/docs/examples/1.4.x/client-apple/examples/locale/list-continents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.4.x/client-apple/examples/locale/list-countries-e-u.md b/docs/examples/1.4.x/client-apple/examples/locale/list-countries-e-u.md index 6e0a4d31d04..6f9d96899a3 100644 --- a/docs/examples/1.4.x/client-apple/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/client-apple/examples/locale/list-countries-e-u.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.4.x/client-apple/examples/locale/list-countries-phones.md b/docs/examples/1.4.x/client-apple/examples/locale/list-countries-phones.md index b4752eb469b..46e86dbe965 100644 --- a/docs/examples/1.4.x/client-apple/examples/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/client-apple/examples/locale/list-countries-phones.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.4.x/client-apple/examples/locale/list-countries.md b/docs/examples/1.4.x/client-apple/examples/locale/list-countries.md index 75369d0606e..f5a43f040aa 100644 --- a/docs/examples/1.4.x/client-apple/examples/locale/list-countries.md +++ b/docs/examples/1.4.x/client-apple/examples/locale/list-countries.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.4.x/client-apple/examples/locale/list-currencies.md b/docs/examples/1.4.x/client-apple/examples/locale/list-currencies.md index 92eea812756..bcbf30ec9dc 100644 --- a/docs/examples/1.4.x/client-apple/examples/locale/list-currencies.md +++ b/docs/examples/1.4.x/client-apple/examples/locale/list-currencies.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.4.x/client-apple/examples/locale/list-languages.md b/docs/examples/1.4.x/client-apple/examples/locale/list-languages.md index 2184812b1e8..46fa89e0791 100644 --- a/docs/examples/1.4.x/client-apple/examples/locale/list-languages.md +++ b/docs/examples/1.4.x/client-apple/examples/locale/list-languages.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.4.x/client-apple/examples/storage/create-file.md b/docs/examples/1.4.x/client-apple/examples/storage/create-file.md index f8824208821..9abfb7678b4 100644 --- a/docs/examples/1.4.x/client-apple/examples/storage/create-file.md +++ b/docs/examples/1.4.x/client-apple/examples/storage/create-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.4.x/client-apple/examples/storage/delete-file.md b/docs/examples/1.4.x/client-apple/examples/storage/delete-file.md index 27624b4bc20..d0222a52631 100644 --- a/docs/examples/1.4.x/client-apple/examples/storage/delete-file.md +++ b/docs/examples/1.4.x/client-apple/examples/storage/delete-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.4.x/client-apple/examples/storage/get-file-download.md b/docs/examples/1.4.x/client-apple/examples/storage/get-file-download.md index ca96b31d93e..48d81066766 100644 --- a/docs/examples/1.4.x/client-apple/examples/storage/get-file-download.md +++ b/docs/examples/1.4.x/client-apple/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.4.x/client-apple/examples/storage/get-file-preview.md b/docs/examples/1.4.x/client-apple/examples/storage/get-file-preview.md index 71c0f31f27d..17f75ae40da 100644 --- a/docs/examples/1.4.x/client-apple/examples/storage/get-file-preview.md +++ b/docs/examples/1.4.x/client-apple/examples/storage/get-file-preview.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.4.x/client-apple/examples/storage/get-file-view.md b/docs/examples/1.4.x/client-apple/examples/storage/get-file-view.md index 85631efc835..f18fd82d3d1 100644 --- a/docs/examples/1.4.x/client-apple/examples/storage/get-file-view.md +++ b/docs/examples/1.4.x/client-apple/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.4.x/client-apple/examples/storage/get-file.md b/docs/examples/1.4.x/client-apple/examples/storage/get-file.md index fa28b48d640..8f961898de7 100644 --- a/docs/examples/1.4.x/client-apple/examples/storage/get-file.md +++ b/docs/examples/1.4.x/client-apple/examples/storage/get-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.4.x/client-apple/examples/storage/list-files.md b/docs/examples/1.4.x/client-apple/examples/storage/list-files.md index 51f7fe8f053..ab0633ade53 100644 --- a/docs/examples/1.4.x/client-apple/examples/storage/list-files.md +++ b/docs/examples/1.4.x/client-apple/examples/storage/list-files.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.4.x/client-apple/examples/storage/update-file.md b/docs/examples/1.4.x/client-apple/examples/storage/update-file.md index 13bf635ec60..ac8ef4b3d45 100644 --- a/docs/examples/1.4.x/client-apple/examples/storage/update-file.md +++ b/docs/examples/1.4.x/client-apple/examples/storage/update-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.4.x/client-apple/examples/teams/create-membership.md b/docs/examples/1.4.x/client-apple/examples/teams/create-membership.md index 6de7074644c..87dea9d9460 100644 --- a/docs/examples/1.4.x/client-apple/examples/teams/create-membership.md +++ b/docs/examples/1.4.x/client-apple/examples/teams/create-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.4.x/client-apple/examples/teams/create.md b/docs/examples/1.4.x/client-apple/examples/teams/create.md index c28eec416d0..5e2b092a702 100644 --- a/docs/examples/1.4.x/client-apple/examples/teams/create.md +++ b/docs/examples/1.4.x/client-apple/examples/teams/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.4.x/client-apple/examples/teams/delete-membership.md b/docs/examples/1.4.x/client-apple/examples/teams/delete-membership.md index 186f6ad6fb4..e14bba13c7f 100644 --- a/docs/examples/1.4.x/client-apple/examples/teams/delete-membership.md +++ b/docs/examples/1.4.x/client-apple/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.4.x/client-apple/examples/teams/delete.md b/docs/examples/1.4.x/client-apple/examples/teams/delete.md index e7585ec3876..5e39a53370b 100644 --- a/docs/examples/1.4.x/client-apple/examples/teams/delete.md +++ b/docs/examples/1.4.x/client-apple/examples/teams/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.4.x/client-apple/examples/teams/get-membership.md b/docs/examples/1.4.x/client-apple/examples/teams/get-membership.md index 02ee3dab422..a792889fd4e 100644 --- a/docs/examples/1.4.x/client-apple/examples/teams/get-membership.md +++ b/docs/examples/1.4.x/client-apple/examples/teams/get-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.4.x/client-apple/examples/teams/get-prefs.md b/docs/examples/1.4.x/client-apple/examples/teams/get-prefs.md index bcd65b68c46..9b7cf43c38e 100644 --- a/docs/examples/1.4.x/client-apple/examples/teams/get-prefs.md +++ b/docs/examples/1.4.x/client-apple/examples/teams/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.4.x/client-apple/examples/teams/get.md b/docs/examples/1.4.x/client-apple/examples/teams/get.md index c8630adaacf..689c5e68859 100644 --- a/docs/examples/1.4.x/client-apple/examples/teams/get.md +++ b/docs/examples/1.4.x/client-apple/examples/teams/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.4.x/client-apple/examples/teams/list-memberships.md b/docs/examples/1.4.x/client-apple/examples/teams/list-memberships.md index 1f8a0ccb730..57876d3feae 100644 --- a/docs/examples/1.4.x/client-apple/examples/teams/list-memberships.md +++ b/docs/examples/1.4.x/client-apple/examples/teams/list-memberships.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.4.x/client-apple/examples/teams/list.md b/docs/examples/1.4.x/client-apple/examples/teams/list.md index 72226d4f5b7..cb9da6c7d5d 100644 --- a/docs/examples/1.4.x/client-apple/examples/teams/list.md +++ b/docs/examples/1.4.x/client-apple/examples/teams/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.4.x/client-apple/examples/teams/update-membership-status.md b/docs/examples/1.4.x/client-apple/examples/teams/update-membership-status.md index 65a899cb1c7..5f8b723cd5d 100644 --- a/docs/examples/1.4.x/client-apple/examples/teams/update-membership-status.md +++ b/docs/examples/1.4.x/client-apple/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.4.x/client-apple/examples/teams/update-membership.md b/docs/examples/1.4.x/client-apple/examples/teams/update-membership.md index 1ac7d78f556..77328e8c985 100644 --- a/docs/examples/1.4.x/client-apple/examples/teams/update-membership.md +++ b/docs/examples/1.4.x/client-apple/examples/teams/update-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.4.x/client-apple/examples/teams/update-name.md b/docs/examples/1.4.x/client-apple/examples/teams/update-name.md index 357182b1036..de4a6eb99e6 100644 --- a/docs/examples/1.4.x/client-apple/examples/teams/update-name.md +++ b/docs/examples/1.4.x/client-apple/examples/teams/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.4.x/client-apple/examples/teams/update-prefs.md b/docs/examples/1.4.x/client-apple/examples/teams/update-prefs.md index 6cfe79e3a8c..1a1a21bd793 100644 --- a/docs/examples/1.4.x/client-apple/examples/teams/update-prefs.md +++ b/docs/examples/1.4.x/client-apple/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.4.x/client-flutter/examples/account/create-anonymous-session.md b/docs/examples/1.4.x/client-flutter/examples/account/create-anonymous-session.md index 2f3e7a606ce..58b707f3c9c 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/create-anonymous-session.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/create-anonymous-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createAnonymousSession(); diff --git a/docs/examples/1.4.x/client-flutter/examples/account/create-email-session.md b/docs/examples/1.4.x/client-flutter/examples/account/create-email-session.md index 52b6b91f193..c76c2a6e932 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/create-email-session.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/create-email-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createEmailSession( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/create-j-w-t.md b/docs/examples/1.4.x/client-flutter/examples/account/create-j-w-t.md index c4a61f7c340..8cee6bc69e6 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/create-j-w-t.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/create-j-w-t.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createJWT(); diff --git a/docs/examples/1.4.x/client-flutter/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.4.x/client-flutter/examples/account/create-magic-u-r-l-session.md index d1b89bf1761..e8e37329148 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/create-magic-u-r-l-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createMagicURLSession( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/create-o-auth2session.md b/docs/examples/1.4.x/client-flutter/examples/account/create-o-auth2session.md index e985a92ae0f..5d627a14511 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/create-o-auth2session.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/create-o-auth2session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createOAuth2Session( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/create-phone-session.md b/docs/examples/1.4.x/client-flutter/examples/account/create-phone-session.md index fcb705c9389..c54c0f23972 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/create-phone-session.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/create-phone-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createPhoneSession( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/create-phone-verification.md b/docs/examples/1.4.x/client-flutter/examples/account/create-phone-verification.md index 76e724d8297..23ee2fd588c 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/create-phone-verification.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createPhoneVerification(); diff --git a/docs/examples/1.4.x/client-flutter/examples/account/create-recovery.md b/docs/examples/1.4.x/client-flutter/examples/account/create-recovery.md index 361a9f04591..d011eef2a37 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/create-recovery.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/create-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createRecovery( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/create-verification.md b/docs/examples/1.4.x/client-flutter/examples/account/create-verification.md index d66c3b1a0a6..565033b9a8a 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/create-verification.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/create-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.createVerification( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/create.md b/docs/examples/1.4.x/client-flutter/examples/account/create.md index 1ff2ae91cbf..d2866cf5b66 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/create.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.create( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/delete-identity.md b/docs/examples/1.4.x/client-flutter/examples/account/delete-identity.md index c5ea2b39f3a..2ba4b6ff210 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/delete-identity.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/delete-identity.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.deleteIdentity( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/delete-session.md b/docs/examples/1.4.x/client-flutter/examples/account/delete-session.md index 91465610707..9e381a2fa3a 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/delete-session.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/delete-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.deleteSession( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/delete-sessions.md b/docs/examples/1.4.x/client-flutter/examples/account/delete-sessions.md index 4963de4442b..27b06b6104b 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/delete-sessions.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.deleteSessions(); diff --git a/docs/examples/1.4.x/client-flutter/examples/account/get-prefs.md b/docs/examples/1.4.x/client-flutter/examples/account/get-prefs.md index 81eb802d03d..919b50be884 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/get-prefs.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.getPrefs(); diff --git a/docs/examples/1.4.x/client-flutter/examples/account/get-session.md b/docs/examples/1.4.x/client-flutter/examples/account/get-session.md index 9e0f66ca3fd..ac8c35b8f57 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/get-session.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/get-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.getSession( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/get.md b/docs/examples/1.4.x/client-flutter/examples/account/get.md index 21192de2796..4bcc080deef 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/get.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.get(); diff --git a/docs/examples/1.4.x/client-flutter/examples/account/list-identities.md b/docs/examples/1.4.x/client-flutter/examples/account/list-identities.md index 2f2eed0da35..9d9d4db3c95 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/list-identities.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/list-identities.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.listIdentities( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/list-logs.md b/docs/examples/1.4.x/client-flutter/examples/account/list-logs.md index 9f7088a0d81..6d793c947d3 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/list-logs.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/list-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.listLogs( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/list-sessions.md b/docs/examples/1.4.x/client-flutter/examples/account/list-sessions.md index 6f2d5dc18d5..3656fca1a18 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/list-sessions.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/list-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.listSessions(); diff --git a/docs/examples/1.4.x/client-flutter/examples/account/update-email.md b/docs/examples/1.4.x/client-flutter/examples/account/update-email.md index 1fb9a3fe7a7..2383c8e0de7 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/update-email.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/update-email.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateEmail( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.4.x/client-flutter/examples/account/update-magic-u-r-l-session.md index 3c7ef8f0f24..0dff3be5bfd 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/update-magic-u-r-l-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateMagicURLSession( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/update-name.md b/docs/examples/1.4.x/client-flutter/examples/account/update-name.md index ae5d6235d15..4d674ec0064 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/update-name.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateName( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/update-password.md b/docs/examples/1.4.x/client-flutter/examples/account/update-password.md index b5e86de273f..42514bd6a1b 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/update-password.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/update-password.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePassword( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/update-phone-session.md b/docs/examples/1.4.x/client-flutter/examples/account/update-phone-session.md index 1f979265b56..dc6c8eb8938 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/update-phone-session.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/update-phone-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePhoneSession( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/update-phone-verification.md b/docs/examples/1.4.x/client-flutter/examples/account/update-phone-verification.md index 86d9b0fdfc5..a7acf71661b 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/update-phone-verification.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePhoneVerification( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/update-phone.md b/docs/examples/1.4.x/client-flutter/examples/account/update-phone.md index edfe47850b6..642ead44051 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/update-phone.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/update-phone.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePhone( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/update-prefs.md b/docs/examples/1.4.x/client-flutter/examples/account/update-prefs.md index 97697081474..d37013d80ac 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/update-prefs.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updatePrefs( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/update-recovery.md b/docs/examples/1.4.x/client-flutter/examples/account/update-recovery.md index f499b18770f..ce9c8b5e8e2 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/update-recovery.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/update-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateRecovery( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/update-session.md b/docs/examples/1.4.x/client-flutter/examples/account/update-session.md index fb1afcc526a..a6e1924e050 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/update-session.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/update-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateSession( diff --git a/docs/examples/1.4.x/client-flutter/examples/account/update-status.md b/docs/examples/1.4.x/client-flutter/examples/account/update-status.md index 8e734647fb9..521101c4292 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/update-status.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/update-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateStatus(); diff --git a/docs/examples/1.4.x/client-flutter/examples/account/update-verification.md b/docs/examples/1.4.x/client-flutter/examples/account/update-verification.md index fba8ed65bb6..1be9f728f7e 100644 --- a/docs/examples/1.4.x/client-flutter/examples/account/update-verification.md +++ b/docs/examples/1.4.x/client-flutter/examples/account/update-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = account.updateVerification( diff --git a/docs/examples/1.4.x/client-flutter/examples/avatars/get-browser.md b/docs/examples/1.4.x/client-flutter/examples/avatars/get-browser.md index 70af56659b6..5ca9106c01b 100644 --- a/docs/examples/1.4.x/client-flutter/examples/avatars/get-browser.md +++ b/docs/examples/1.4.x/client-flutter/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.4.x/client-flutter/examples/avatars/get-credit-card.md b/docs/examples/1.4.x/client-flutter/examples/avatars/get-credit-card.md index 6a29dc81736..30485827a1a 100644 --- a/docs/examples/1.4.x/client-flutter/examples/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/client-flutter/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.4.x/client-flutter/examples/avatars/get-favicon.md b/docs/examples/1.4.x/client-flutter/examples/avatars/get-favicon.md index 2da0f2e0566..769a873c840 100644 --- a/docs/examples/1.4.x/client-flutter/examples/avatars/get-favicon.md +++ b/docs/examples/1.4.x/client-flutter/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.4.x/client-flutter/examples/avatars/get-flag.md b/docs/examples/1.4.x/client-flutter/examples/avatars/get-flag.md index 13367885d0c..b8c3ea84d76 100644 --- a/docs/examples/1.4.x/client-flutter/examples/avatars/get-flag.md +++ b/docs/examples/1.4.x/client-flutter/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.4.x/client-flutter/examples/avatars/get-image.md b/docs/examples/1.4.x/client-flutter/examples/avatars/get-image.md index debbf1e2908..a90045f78da 100644 --- a/docs/examples/1.4.x/client-flutter/examples/avatars/get-image.md +++ b/docs/examples/1.4.x/client-flutter/examples/avatars/get-image.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.4.x/client-flutter/examples/avatars/get-initials.md b/docs/examples/1.4.x/client-flutter/examples/avatars/get-initials.md index b0f49c62131..dc08dda9812 100644 --- a/docs/examples/1.4.x/client-flutter/examples/avatars/get-initials.md +++ b/docs/examples/1.4.x/client-flutter/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.4.x/client-flutter/examples/avatars/get-q-r.md b/docs/examples/1.4.x/client-flutter/examples/avatars/get-q-r.md index 8df729379e3..4217e4395a3 100644 --- a/docs/examples/1.4.x/client-flutter/examples/avatars/get-q-r.md +++ b/docs/examples/1.4.x/client-flutter/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.4.x/client-flutter/examples/databases/create-document.md b/docs/examples/1.4.x/client-flutter/examples/databases/create-document.md index 6a031738d5a..5eabc3fb996 100644 --- a/docs/examples/1.4.x/client-flutter/examples/databases/create-document.md +++ b/docs/examples/1.4.x/client-flutter/examples/databases/create-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.createDocument( diff --git a/docs/examples/1.4.x/client-flutter/examples/databases/delete-document.md b/docs/examples/1.4.x/client-flutter/examples/databases/delete-document.md index a377b02747a..d883d08655b 100644 --- a/docs/examples/1.4.x/client-flutter/examples/databases/delete-document.md +++ b/docs/examples/1.4.x/client-flutter/examples/databases/delete-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.deleteDocument( diff --git a/docs/examples/1.4.x/client-flutter/examples/databases/get-document.md b/docs/examples/1.4.x/client-flutter/examples/databases/get-document.md index b2cf89a3fc8..f03d2589b99 100644 --- a/docs/examples/1.4.x/client-flutter/examples/databases/get-document.md +++ b/docs/examples/1.4.x/client-flutter/examples/databases/get-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.getDocument( diff --git a/docs/examples/1.4.x/client-flutter/examples/databases/list-documents.md b/docs/examples/1.4.x/client-flutter/examples/databases/list-documents.md index 4cd69e301a5..d996d2bcfde 100644 --- a/docs/examples/1.4.x/client-flutter/examples/databases/list-documents.md +++ b/docs/examples/1.4.x/client-flutter/examples/databases/list-documents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.listDocuments( diff --git a/docs/examples/1.4.x/client-flutter/examples/databases/update-document.md b/docs/examples/1.4.x/client-flutter/examples/databases/update-document.md index 595099bcb19..79e5490aff8 100644 --- a/docs/examples/1.4.x/client-flutter/examples/databases/update-document.md +++ b/docs/examples/1.4.x/client-flutter/examples/databases/update-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = databases.updateDocument( diff --git a/docs/examples/1.4.x/client-flutter/examples/functions/create-execution.md b/docs/examples/1.4.x/client-flutter/examples/functions/create-execution.md index b188c32f47a..bb9feb34429 100644 --- a/docs/examples/1.4.x/client-flutter/examples/functions/create-execution.md +++ b/docs/examples/1.4.x/client-flutter/examples/functions/create-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = functions.createExecution( diff --git a/docs/examples/1.4.x/client-flutter/examples/functions/get-execution.md b/docs/examples/1.4.x/client-flutter/examples/functions/get-execution.md index f30b4b4495b..76a1392586b 100644 --- a/docs/examples/1.4.x/client-flutter/examples/functions/get-execution.md +++ b/docs/examples/1.4.x/client-flutter/examples/functions/get-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = functions.getExecution( diff --git a/docs/examples/1.4.x/client-flutter/examples/functions/list-executions.md b/docs/examples/1.4.x/client-flutter/examples/functions/list-executions.md index 1840f50d7f6..4f363e7e82b 100644 --- a/docs/examples/1.4.x/client-flutter/examples/functions/list-executions.md +++ b/docs/examples/1.4.x/client-flutter/examples/functions/list-executions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = functions.listExecutions( diff --git a/docs/examples/1.4.x/client-flutter/examples/graphql/mutation.md b/docs/examples/1.4.x/client-flutter/examples/graphql/mutation.md index c0bffce70a0..160c5ec892e 100644 --- a/docs/examples/1.4.x/client-flutter/examples/graphql/mutation.md +++ b/docs/examples/1.4.x/client-flutter/examples/graphql/mutation.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = graphql.mutation( diff --git a/docs/examples/1.4.x/client-flutter/examples/graphql/query.md b/docs/examples/1.4.x/client-flutter/examples/graphql/query.md index 455cb0bd227..fd5d8e15002 100644 --- a/docs/examples/1.4.x/client-flutter/examples/graphql/query.md +++ b/docs/examples/1.4.x/client-flutter/examples/graphql/query.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = graphql.query( diff --git a/docs/examples/1.4.x/client-flutter/examples/locale/get.md b/docs/examples/1.4.x/client-flutter/examples/locale/get.md index 9e9fa96b22c..565253d9507 100644 --- a/docs/examples/1.4.x/client-flutter/examples/locale/get.md +++ b/docs/examples/1.4.x/client-flutter/examples/locale/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.get(); diff --git a/docs/examples/1.4.x/client-flutter/examples/locale/list-codes.md b/docs/examples/1.4.x/client-flutter/examples/locale/list-codes.md index d11cb7bd355..68419046653 100644 --- a/docs/examples/1.4.x/client-flutter/examples/locale/list-codes.md +++ b/docs/examples/1.4.x/client-flutter/examples/locale/list-codes.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCodes(); diff --git a/docs/examples/1.4.x/client-flutter/examples/locale/list-continents.md b/docs/examples/1.4.x/client-flutter/examples/locale/list-continents.md index 0ab2a4aba12..cbaa88b3de0 100644 --- a/docs/examples/1.4.x/client-flutter/examples/locale/list-continents.md +++ b/docs/examples/1.4.x/client-flutter/examples/locale/list-continents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listContinents(); diff --git a/docs/examples/1.4.x/client-flutter/examples/locale/list-countries-e-u.md b/docs/examples/1.4.x/client-flutter/examples/locale/list-countries-e-u.md index caa32e85625..af8da46e9bf 100644 --- a/docs/examples/1.4.x/client-flutter/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/client-flutter/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCountriesEU(); diff --git a/docs/examples/1.4.x/client-flutter/examples/locale/list-countries-phones.md b/docs/examples/1.4.x/client-flutter/examples/locale/list-countries-phones.md index b122eee7d4e..1b5438b3ca6 100644 --- a/docs/examples/1.4.x/client-flutter/examples/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/client-flutter/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCountriesPhones(); diff --git a/docs/examples/1.4.x/client-flutter/examples/locale/list-countries.md b/docs/examples/1.4.x/client-flutter/examples/locale/list-countries.md index e6a367ddb86..704d35de897 100644 --- a/docs/examples/1.4.x/client-flutter/examples/locale/list-countries.md +++ b/docs/examples/1.4.x/client-flutter/examples/locale/list-countries.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCountries(); diff --git a/docs/examples/1.4.x/client-flutter/examples/locale/list-currencies.md b/docs/examples/1.4.x/client-flutter/examples/locale/list-currencies.md index fcd1e825e33..52b6877069f 100644 --- a/docs/examples/1.4.x/client-flutter/examples/locale/list-currencies.md +++ b/docs/examples/1.4.x/client-flutter/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listCurrencies(); diff --git a/docs/examples/1.4.x/client-flutter/examples/locale/list-languages.md b/docs/examples/1.4.x/client-flutter/examples/locale/list-languages.md index 1fb68aa84f8..a54c6a11758 100644 --- a/docs/examples/1.4.x/client-flutter/examples/locale/list-languages.md +++ b/docs/examples/1.4.x/client-flutter/examples/locale/list-languages.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = locale.listLanguages(); diff --git a/docs/examples/1.4.x/client-flutter/examples/storage/create-file.md b/docs/examples/1.4.x/client-flutter/examples/storage/create-file.md index 0f5e44f5e8d..fc4d3278399 100644 --- a/docs/examples/1.4.x/client-flutter/examples/storage/create-file.md +++ b/docs/examples/1.4.x/client-flutter/examples/storage/create-file.md @@ -6,7 +6,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.createFile( diff --git a/docs/examples/1.4.x/client-flutter/examples/storage/delete-file.md b/docs/examples/1.4.x/client-flutter/examples/storage/delete-file.md index 230b73a9ac2..79cc9ef48ce 100644 --- a/docs/examples/1.4.x/client-flutter/examples/storage/delete-file.md +++ b/docs/examples/1.4.x/client-flutter/examples/storage/delete-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.deleteFile( diff --git a/docs/examples/1.4.x/client-flutter/examples/storage/get-file-download.md b/docs/examples/1.4.x/client-flutter/examples/storage/get-file-download.md index 883b7d69c48..cae5218c3a0 100644 --- a/docs/examples/1.4.x/client-flutter/examples/storage/get-file-download.md +++ b/docs/examples/1.4.x/client-flutter/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.4.x/client-flutter/examples/storage/get-file-preview.md b/docs/examples/1.4.x/client-flutter/examples/storage/get-file-preview.md index f42138bd036..131630ec66b 100644 --- a/docs/examples/1.4.x/client-flutter/examples/storage/get-file-preview.md +++ b/docs/examples/1.4.x/client-flutter/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.4.x/client-flutter/examples/storage/get-file-view.md b/docs/examples/1.4.x/client-flutter/examples/storage/get-file-view.md index 4f7c4d962bf..cfac3ac3b15 100644 --- a/docs/examples/1.4.x/client-flutter/examples/storage/get-file-view.md +++ b/docs/examples/1.4.x/client-flutter/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file diff --git a/docs/examples/1.4.x/client-flutter/examples/storage/get-file.md b/docs/examples/1.4.x/client-flutter/examples/storage/get-file.md index 681aca41e02..c997612386d 100644 --- a/docs/examples/1.4.x/client-flutter/examples/storage/get-file.md +++ b/docs/examples/1.4.x/client-flutter/examples/storage/get-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.getFile( diff --git a/docs/examples/1.4.x/client-flutter/examples/storage/list-files.md b/docs/examples/1.4.x/client-flutter/examples/storage/list-files.md index e574f7bdaa5..d4d07c19090 100644 --- a/docs/examples/1.4.x/client-flutter/examples/storage/list-files.md +++ b/docs/examples/1.4.x/client-flutter/examples/storage/list-files.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.listFiles( diff --git a/docs/examples/1.4.x/client-flutter/examples/storage/update-file.md b/docs/examples/1.4.x/client-flutter/examples/storage/update-file.md index 1170f05cf31..3d8140f408a 100644 --- a/docs/examples/1.4.x/client-flutter/examples/storage/update-file.md +++ b/docs/examples/1.4.x/client-flutter/examples/storage/update-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.updateFile( diff --git a/docs/examples/1.4.x/client-flutter/examples/teams/create-membership.md b/docs/examples/1.4.x/client-flutter/examples/teams/create-membership.md index 994462686f3..9065e5cd158 100644 --- a/docs/examples/1.4.x/client-flutter/examples/teams/create-membership.md +++ b/docs/examples/1.4.x/client-flutter/examples/teams/create-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.createMembership( diff --git a/docs/examples/1.4.x/client-flutter/examples/teams/create.md b/docs/examples/1.4.x/client-flutter/examples/teams/create.md index bd62ce32ab8..772eacc2a9d 100644 --- a/docs/examples/1.4.x/client-flutter/examples/teams/create.md +++ b/docs/examples/1.4.x/client-flutter/examples/teams/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.create( diff --git a/docs/examples/1.4.x/client-flutter/examples/teams/delete-membership.md b/docs/examples/1.4.x/client-flutter/examples/teams/delete-membership.md index 0febe42121b..7bcfaae8e6e 100644 --- a/docs/examples/1.4.x/client-flutter/examples/teams/delete-membership.md +++ b/docs/examples/1.4.x/client-flutter/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.deleteMembership( diff --git a/docs/examples/1.4.x/client-flutter/examples/teams/delete.md b/docs/examples/1.4.x/client-flutter/examples/teams/delete.md index b45d971bf68..22fe4e0b446 100644 --- a/docs/examples/1.4.x/client-flutter/examples/teams/delete.md +++ b/docs/examples/1.4.x/client-flutter/examples/teams/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.delete( diff --git a/docs/examples/1.4.x/client-flutter/examples/teams/get-membership.md b/docs/examples/1.4.x/client-flutter/examples/teams/get-membership.md index 28d95a201ba..9c7eac46ac4 100644 --- a/docs/examples/1.4.x/client-flutter/examples/teams/get-membership.md +++ b/docs/examples/1.4.x/client-flutter/examples/teams/get-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.getMembership( diff --git a/docs/examples/1.4.x/client-flutter/examples/teams/get-prefs.md b/docs/examples/1.4.x/client-flutter/examples/teams/get-prefs.md index e9ae94eb3ff..6a40cf66842 100644 --- a/docs/examples/1.4.x/client-flutter/examples/teams/get-prefs.md +++ b/docs/examples/1.4.x/client-flutter/examples/teams/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.getPrefs( diff --git a/docs/examples/1.4.x/client-flutter/examples/teams/get.md b/docs/examples/1.4.x/client-flutter/examples/teams/get.md index 0ec7027f89d..a3d59c10e8a 100644 --- a/docs/examples/1.4.x/client-flutter/examples/teams/get.md +++ b/docs/examples/1.4.x/client-flutter/examples/teams/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.get( diff --git a/docs/examples/1.4.x/client-flutter/examples/teams/list-memberships.md b/docs/examples/1.4.x/client-flutter/examples/teams/list-memberships.md index cbbc525dc44..bb2a37df46d 100644 --- a/docs/examples/1.4.x/client-flutter/examples/teams/list-memberships.md +++ b/docs/examples/1.4.x/client-flutter/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.listMemberships( diff --git a/docs/examples/1.4.x/client-flutter/examples/teams/list.md b/docs/examples/1.4.x/client-flutter/examples/teams/list.md index 80aa3016c2a..41e01365292 100644 --- a/docs/examples/1.4.x/client-flutter/examples/teams/list.md +++ b/docs/examples/1.4.x/client-flutter/examples/teams/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.list( diff --git a/docs/examples/1.4.x/client-flutter/examples/teams/update-membership-status.md b/docs/examples/1.4.x/client-flutter/examples/teams/update-membership-status.md index ed31f54b202..65584ff4246 100644 --- a/docs/examples/1.4.x/client-flutter/examples/teams/update-membership-status.md +++ b/docs/examples/1.4.x/client-flutter/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.updateMembershipStatus( diff --git a/docs/examples/1.4.x/client-flutter/examples/teams/update-membership.md b/docs/examples/1.4.x/client-flutter/examples/teams/update-membership.md index 669568bd81b..1397b983948 100644 --- a/docs/examples/1.4.x/client-flutter/examples/teams/update-membership.md +++ b/docs/examples/1.4.x/client-flutter/examples/teams/update-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.updateMembership( diff --git a/docs/examples/1.4.x/client-flutter/examples/teams/update-name.md b/docs/examples/1.4.x/client-flutter/examples/teams/update-name.md index 5c794bd99bb..7f20a7c10b8 100644 --- a/docs/examples/1.4.x/client-flutter/examples/teams/update-name.md +++ b/docs/examples/1.4.x/client-flutter/examples/teams/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.updateName( diff --git a/docs/examples/1.4.x/client-flutter/examples/teams/update-prefs.md b/docs/examples/1.4.x/client-flutter/examples/teams/update-prefs.md index c29cbb9eb1d..57711681778 100644 --- a/docs/examples/1.4.x/client-flutter/examples/teams/update-prefs.md +++ b/docs/examples/1.4.x/client-flutter/examples/teams/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.updatePrefs( diff --git a/docs/examples/1.4.x/client-web/examples/account/create-anonymous-session.md b/docs/examples/1.4.x/client-web/examples/account/create-anonymous-session.md index c331fc88633..d107d4a8dfa 100644 --- a/docs/examples/1.4.x/client-web/examples/account/create-anonymous-session.md +++ b/docs/examples/1.4.x/client-web/examples/account/create-anonymous-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/create-email-session.md b/docs/examples/1.4.x/client-web/examples/account/create-email-session.md index 76e2e31665f..fc25824dad8 100644 --- a/docs/examples/1.4.x/client-web/examples/account/create-email-session.md +++ b/docs/examples/1.4.x/client-web/examples/account/create-email-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/create-j-w-t.md b/docs/examples/1.4.x/client-web/examples/account/create-j-w-t.md index f388a3da31c..db78c41c3c9 100644 --- a/docs/examples/1.4.x/client-web/examples/account/create-j-w-t.md +++ b/docs/examples/1.4.x/client-web/examples/account/create-j-w-t.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.4.x/client-web/examples/account/create-magic-u-r-l-session.md index d48f031ded0..1179a0efc6f 100644 --- a/docs/examples/1.4.x/client-web/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.4.x/client-web/examples/account/create-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/create-o-auth2session.md b/docs/examples/1.4.x/client-web/examples/account/create-o-auth2session.md index 3757a1c63f2..03b7d2cb488 100644 --- a/docs/examples/1.4.x/client-web/examples/account/create-o-auth2session.md +++ b/docs/examples/1.4.x/client-web/examples/account/create-o-auth2session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/create-phone-session.md b/docs/examples/1.4.x/client-web/examples/account/create-phone-session.md index e5a23aafeef..53ead8a3f8f 100644 --- a/docs/examples/1.4.x/client-web/examples/account/create-phone-session.md +++ b/docs/examples/1.4.x/client-web/examples/account/create-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/create-phone-verification.md b/docs/examples/1.4.x/client-web/examples/account/create-phone-verification.md index a1cbd552774..974f94503fc 100644 --- a/docs/examples/1.4.x/client-web/examples/account/create-phone-verification.md +++ b/docs/examples/1.4.x/client-web/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/create-recovery.md b/docs/examples/1.4.x/client-web/examples/account/create-recovery.md index 1838c0414c3..7030423d2f6 100644 --- a/docs/examples/1.4.x/client-web/examples/account/create-recovery.md +++ b/docs/examples/1.4.x/client-web/examples/account/create-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/create-verification.md b/docs/examples/1.4.x/client-web/examples/account/create-verification.md index 4d8446e6ef1..6448a724963 100644 --- a/docs/examples/1.4.x/client-web/examples/account/create-verification.md +++ b/docs/examples/1.4.x/client-web/examples/account/create-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/create.md b/docs/examples/1.4.x/client-web/examples/account/create.md index fda1d88e0f6..f15b65307dd 100644 --- a/docs/examples/1.4.x/client-web/examples/account/create.md +++ b/docs/examples/1.4.x/client-web/examples/account/create.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/delete-identity.md b/docs/examples/1.4.x/client-web/examples/account/delete-identity.md index b4230cef33d..7dd55f59e7f 100644 --- a/docs/examples/1.4.x/client-web/examples/account/delete-identity.md +++ b/docs/examples/1.4.x/client-web/examples/account/delete-identity.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/delete-session.md b/docs/examples/1.4.x/client-web/examples/account/delete-session.md index c342afb2c95..052b78d8458 100644 --- a/docs/examples/1.4.x/client-web/examples/account/delete-session.md +++ b/docs/examples/1.4.x/client-web/examples/account/delete-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/delete-sessions.md b/docs/examples/1.4.x/client-web/examples/account/delete-sessions.md index 82133e38455..64b1c591d34 100644 --- a/docs/examples/1.4.x/client-web/examples/account/delete-sessions.md +++ b/docs/examples/1.4.x/client-web/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/get-prefs.md b/docs/examples/1.4.x/client-web/examples/account/get-prefs.md index b98776fd9d1..a02dc517856 100644 --- a/docs/examples/1.4.x/client-web/examples/account/get-prefs.md +++ b/docs/examples/1.4.x/client-web/examples/account/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/get-session.md b/docs/examples/1.4.x/client-web/examples/account/get-session.md index 43edd7d08a1..21be1738ba9 100644 --- a/docs/examples/1.4.x/client-web/examples/account/get-session.md +++ b/docs/examples/1.4.x/client-web/examples/account/get-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/get.md b/docs/examples/1.4.x/client-web/examples/account/get.md index 878227f0194..539ace69afc 100644 --- a/docs/examples/1.4.x/client-web/examples/account/get.md +++ b/docs/examples/1.4.x/client-web/examples/account/get.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/list-identities.md b/docs/examples/1.4.x/client-web/examples/account/list-identities.md index 91e01e221f9..8e791353cd9 100644 --- a/docs/examples/1.4.x/client-web/examples/account/list-identities.md +++ b/docs/examples/1.4.x/client-web/examples/account/list-identities.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/list-logs.md b/docs/examples/1.4.x/client-web/examples/account/list-logs.md index d710f7daa3e..d26bd396bae 100644 --- a/docs/examples/1.4.x/client-web/examples/account/list-logs.md +++ b/docs/examples/1.4.x/client-web/examples/account/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/list-sessions.md b/docs/examples/1.4.x/client-web/examples/account/list-sessions.md index ce6ec74862c..c5a5625b17c 100644 --- a/docs/examples/1.4.x/client-web/examples/account/list-sessions.md +++ b/docs/examples/1.4.x/client-web/examples/account/list-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/update-email.md b/docs/examples/1.4.x/client-web/examples/account/update-email.md index baac3a0ab09..2242db702cb 100644 --- a/docs/examples/1.4.x/client-web/examples/account/update-email.md +++ b/docs/examples/1.4.x/client-web/examples/account/update-email.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.4.x/client-web/examples/account/update-magic-u-r-l-session.md index c07fee2b144..70bf5d17da0 100644 --- a/docs/examples/1.4.x/client-web/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.4.x/client-web/examples/account/update-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/update-name.md b/docs/examples/1.4.x/client-web/examples/account/update-name.md index 4af963d5fc3..8ec9bd2395e 100644 --- a/docs/examples/1.4.x/client-web/examples/account/update-name.md +++ b/docs/examples/1.4.x/client-web/examples/account/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/update-password.md b/docs/examples/1.4.x/client-web/examples/account/update-password.md index 2404a743e74..0dcff6bfde2 100644 --- a/docs/examples/1.4.x/client-web/examples/account/update-password.md +++ b/docs/examples/1.4.x/client-web/examples/account/update-password.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/update-phone-session.md b/docs/examples/1.4.x/client-web/examples/account/update-phone-session.md index b3b29481a98..9870627d9f7 100644 --- a/docs/examples/1.4.x/client-web/examples/account/update-phone-session.md +++ b/docs/examples/1.4.x/client-web/examples/account/update-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/update-phone-verification.md b/docs/examples/1.4.x/client-web/examples/account/update-phone-verification.md index a274c9b07c8..912f178814e 100644 --- a/docs/examples/1.4.x/client-web/examples/account/update-phone-verification.md +++ b/docs/examples/1.4.x/client-web/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/update-phone.md b/docs/examples/1.4.x/client-web/examples/account/update-phone.md index a1017fc7f4a..6ee5eb40e89 100644 --- a/docs/examples/1.4.x/client-web/examples/account/update-phone.md +++ b/docs/examples/1.4.x/client-web/examples/account/update-phone.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/update-prefs.md b/docs/examples/1.4.x/client-web/examples/account/update-prefs.md index ecceff3158c..3f90dfabd2f 100644 --- a/docs/examples/1.4.x/client-web/examples/account/update-prefs.md +++ b/docs/examples/1.4.x/client-web/examples/account/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/update-recovery.md b/docs/examples/1.4.x/client-web/examples/account/update-recovery.md index eb78a8a52d2..200b993a4cb 100644 --- a/docs/examples/1.4.x/client-web/examples/account/update-recovery.md +++ b/docs/examples/1.4.x/client-web/examples/account/update-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/update-session.md b/docs/examples/1.4.x/client-web/examples/account/update-session.md index a7a42c663aa..a8c40ebb81c 100644 --- a/docs/examples/1.4.x/client-web/examples/account/update-session.md +++ b/docs/examples/1.4.x/client-web/examples/account/update-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/update-status.md b/docs/examples/1.4.x/client-web/examples/account/update-status.md index 9cbe78c5c42..d3ac91e7d50 100644 --- a/docs/examples/1.4.x/client-web/examples/account/update-status.md +++ b/docs/examples/1.4.x/client-web/examples/account/update-status.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/account/update-verification.md b/docs/examples/1.4.x/client-web/examples/account/update-verification.md index 73338da4df2..404fdd4352e 100644 --- a/docs/examples/1.4.x/client-web/examples/account/update-verification.md +++ b/docs/examples/1.4.x/client-web/examples/account/update-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/avatars/get-browser.md b/docs/examples/1.4.x/client-web/examples/avatars/get-browser.md index 0b4c2def003..cf5beeb4580 100644 --- a/docs/examples/1.4.x/client-web/examples/avatars/get-browser.md +++ b/docs/examples/1.4.x/client-web/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/avatars/get-credit-card.md b/docs/examples/1.4.x/client-web/examples/avatars/get-credit-card.md index 082ed92b670..3486722f907 100644 --- a/docs/examples/1.4.x/client-web/examples/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/client-web/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/avatars/get-favicon.md b/docs/examples/1.4.x/client-web/examples/avatars/get-favicon.md index 7ee6bd3da26..5e0056c8883 100644 --- a/docs/examples/1.4.x/client-web/examples/avatars/get-favicon.md +++ b/docs/examples/1.4.x/client-web/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/avatars/get-flag.md b/docs/examples/1.4.x/client-web/examples/avatars/get-flag.md index a43827a1aed..7e95a5bc132 100644 --- a/docs/examples/1.4.x/client-web/examples/avatars/get-flag.md +++ b/docs/examples/1.4.x/client-web/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/avatars/get-image.md b/docs/examples/1.4.x/client-web/examples/avatars/get-image.md index ea186a1a682..b6d25c7389f 100644 --- a/docs/examples/1.4.x/client-web/examples/avatars/get-image.md +++ b/docs/examples/1.4.x/client-web/examples/avatars/get-image.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/avatars/get-initials.md b/docs/examples/1.4.x/client-web/examples/avatars/get-initials.md index 7e8c8ec4130..efee82cfab4 100644 --- a/docs/examples/1.4.x/client-web/examples/avatars/get-initials.md +++ b/docs/examples/1.4.x/client-web/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/avatars/get-q-r.md b/docs/examples/1.4.x/client-web/examples/avatars/get-q-r.md index b957084aa1d..412dff00eac 100644 --- a/docs/examples/1.4.x/client-web/examples/avatars/get-q-r.md +++ b/docs/examples/1.4.x/client-web/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/databases/create-document.md b/docs/examples/1.4.x/client-web/examples/databases/create-document.md index 92792066efe..a87121baa76 100644 --- a/docs/examples/1.4.x/client-web/examples/databases/create-document.md +++ b/docs/examples/1.4.x/client-web/examples/databases/create-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/databases/delete-document.md b/docs/examples/1.4.x/client-web/examples/databases/delete-document.md index 9e281e71665..39f96d4d128 100644 --- a/docs/examples/1.4.x/client-web/examples/databases/delete-document.md +++ b/docs/examples/1.4.x/client-web/examples/databases/delete-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/databases/get-document.md b/docs/examples/1.4.x/client-web/examples/databases/get-document.md index ea80328794f..b38f81805d0 100644 --- a/docs/examples/1.4.x/client-web/examples/databases/get-document.md +++ b/docs/examples/1.4.x/client-web/examples/databases/get-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/databases/list-documents.md b/docs/examples/1.4.x/client-web/examples/databases/list-documents.md index 4a94c99db35..9be77973897 100644 --- a/docs/examples/1.4.x/client-web/examples/databases/list-documents.md +++ b/docs/examples/1.4.x/client-web/examples/databases/list-documents.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/databases/update-document.md b/docs/examples/1.4.x/client-web/examples/databases/update-document.md index cc5ef1cc021..6d584151120 100644 --- a/docs/examples/1.4.x/client-web/examples/databases/update-document.md +++ b/docs/examples/1.4.x/client-web/examples/databases/update-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/functions/create-execution.md b/docs/examples/1.4.x/client-web/examples/functions/create-execution.md index 4fc7ac75454..091e3aae240 100644 --- a/docs/examples/1.4.x/client-web/examples/functions/create-execution.md +++ b/docs/examples/1.4.x/client-web/examples/functions/create-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/functions/get-execution.md b/docs/examples/1.4.x/client-web/examples/functions/get-execution.md index 2473572c05a..704cf52c620 100644 --- a/docs/examples/1.4.x/client-web/examples/functions/get-execution.md +++ b/docs/examples/1.4.x/client-web/examples/functions/get-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/functions/list-executions.md b/docs/examples/1.4.x/client-web/examples/functions/list-executions.md index 481986ef405..b0a74de4a08 100644 --- a/docs/examples/1.4.x/client-web/examples/functions/list-executions.md +++ b/docs/examples/1.4.x/client-web/examples/functions/list-executions.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/graphql/mutation.md b/docs/examples/1.4.x/client-web/examples/graphql/mutation.md index 1a0b61cd3b5..c968d9a245a 100644 --- a/docs/examples/1.4.x/client-web/examples/graphql/mutation.md +++ b/docs/examples/1.4.x/client-web/examples/graphql/mutation.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/graphql/query.md b/docs/examples/1.4.x/client-web/examples/graphql/query.md index e507fbb5aa1..8d1e5edd18a 100644 --- a/docs/examples/1.4.x/client-web/examples/graphql/query.md +++ b/docs/examples/1.4.x/client-web/examples/graphql/query.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/locale/get.md b/docs/examples/1.4.x/client-web/examples/locale/get.md index e15bad2ce1b..1001b36d05c 100644 --- a/docs/examples/1.4.x/client-web/examples/locale/get.md +++ b/docs/examples/1.4.x/client-web/examples/locale/get.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/locale/list-codes.md b/docs/examples/1.4.x/client-web/examples/locale/list-codes.md index a18baa00255..98b4152d036 100644 --- a/docs/examples/1.4.x/client-web/examples/locale/list-codes.md +++ b/docs/examples/1.4.x/client-web/examples/locale/list-codes.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/locale/list-continents.md b/docs/examples/1.4.x/client-web/examples/locale/list-continents.md index aa3716ef565..9239750852f 100644 --- a/docs/examples/1.4.x/client-web/examples/locale/list-continents.md +++ b/docs/examples/1.4.x/client-web/examples/locale/list-continents.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/locale/list-countries-e-u.md b/docs/examples/1.4.x/client-web/examples/locale/list-countries-e-u.md index c924b8df4b7..005d5a33270 100644 --- a/docs/examples/1.4.x/client-web/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/client-web/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/locale/list-countries-phones.md b/docs/examples/1.4.x/client-web/examples/locale/list-countries-phones.md index 0ab60767da7..2e5faf107dd 100644 --- a/docs/examples/1.4.x/client-web/examples/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/client-web/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/locale/list-countries.md b/docs/examples/1.4.x/client-web/examples/locale/list-countries.md index ee8c454993a..d57ab0b732b 100644 --- a/docs/examples/1.4.x/client-web/examples/locale/list-countries.md +++ b/docs/examples/1.4.x/client-web/examples/locale/list-countries.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/locale/list-currencies.md b/docs/examples/1.4.x/client-web/examples/locale/list-currencies.md index dd37b14e25a..31015d585c3 100644 --- a/docs/examples/1.4.x/client-web/examples/locale/list-currencies.md +++ b/docs/examples/1.4.x/client-web/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/locale/list-languages.md b/docs/examples/1.4.x/client-web/examples/locale/list-languages.md index 89ae06d529b..cfd9adcc1a0 100644 --- a/docs/examples/1.4.x/client-web/examples/locale/list-languages.md +++ b/docs/examples/1.4.x/client-web/examples/locale/list-languages.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/storage/create-file.md b/docs/examples/1.4.x/client-web/examples/storage/create-file.md index 0cddb086901..8e84ec8ceea 100644 --- a/docs/examples/1.4.x/client-web/examples/storage/create-file.md +++ b/docs/examples/1.4.x/client-web/examples/storage/create-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/storage/delete-file.md b/docs/examples/1.4.x/client-web/examples/storage/delete-file.md index 257d855c320..47416bbb8f8 100644 --- a/docs/examples/1.4.x/client-web/examples/storage/delete-file.md +++ b/docs/examples/1.4.x/client-web/examples/storage/delete-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/storage/get-file-download.md b/docs/examples/1.4.x/client-web/examples/storage/get-file-download.md index d8a3542aab8..d9f4cd1895d 100644 --- a/docs/examples/1.4.x/client-web/examples/storage/get-file-download.md +++ b/docs/examples/1.4.x/client-web/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/storage/get-file-preview.md b/docs/examples/1.4.x/client-web/examples/storage/get-file-preview.md index f0588ba7dc2..d2d4731322c 100644 --- a/docs/examples/1.4.x/client-web/examples/storage/get-file-preview.md +++ b/docs/examples/1.4.x/client-web/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/storage/get-file-view.md b/docs/examples/1.4.x/client-web/examples/storage/get-file-view.md index 5eb2855befe..e9d0ff6d8d2 100644 --- a/docs/examples/1.4.x/client-web/examples/storage/get-file-view.md +++ b/docs/examples/1.4.x/client-web/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/storage/get-file.md b/docs/examples/1.4.x/client-web/examples/storage/get-file.md index 6b39ee386e2..e326154a4e9 100644 --- a/docs/examples/1.4.x/client-web/examples/storage/get-file.md +++ b/docs/examples/1.4.x/client-web/examples/storage/get-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/storage/list-files.md b/docs/examples/1.4.x/client-web/examples/storage/list-files.md index 696d4013cd9..7faeb85cb1c 100644 --- a/docs/examples/1.4.x/client-web/examples/storage/list-files.md +++ b/docs/examples/1.4.x/client-web/examples/storage/list-files.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/storage/update-file.md b/docs/examples/1.4.x/client-web/examples/storage/update-file.md index d22a2f6a11e..747044dc309 100644 --- a/docs/examples/1.4.x/client-web/examples/storage/update-file.md +++ b/docs/examples/1.4.x/client-web/examples/storage/update-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/teams/create-membership.md b/docs/examples/1.4.x/client-web/examples/teams/create-membership.md index 3e4707753aa..7f9f4a73b1d 100644 --- a/docs/examples/1.4.x/client-web/examples/teams/create-membership.md +++ b/docs/examples/1.4.x/client-web/examples/teams/create-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/teams/create.md b/docs/examples/1.4.x/client-web/examples/teams/create.md index c9037e95751..382b759d9c1 100644 --- a/docs/examples/1.4.x/client-web/examples/teams/create.md +++ b/docs/examples/1.4.x/client-web/examples/teams/create.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/teams/delete-membership.md b/docs/examples/1.4.x/client-web/examples/teams/delete-membership.md index c42d6694573..76232de1abd 100644 --- a/docs/examples/1.4.x/client-web/examples/teams/delete-membership.md +++ b/docs/examples/1.4.x/client-web/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/teams/delete.md b/docs/examples/1.4.x/client-web/examples/teams/delete.md index 0c99b7aab8d..2e5e8395517 100644 --- a/docs/examples/1.4.x/client-web/examples/teams/delete.md +++ b/docs/examples/1.4.x/client-web/examples/teams/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/teams/get-membership.md b/docs/examples/1.4.x/client-web/examples/teams/get-membership.md index d4d3c5a65dc..0e2c1454452 100644 --- a/docs/examples/1.4.x/client-web/examples/teams/get-membership.md +++ b/docs/examples/1.4.x/client-web/examples/teams/get-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/teams/get-prefs.md b/docs/examples/1.4.x/client-web/examples/teams/get-prefs.md index bcf3f43806b..6c729eead7c 100644 --- a/docs/examples/1.4.x/client-web/examples/teams/get-prefs.md +++ b/docs/examples/1.4.x/client-web/examples/teams/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/teams/get.md b/docs/examples/1.4.x/client-web/examples/teams/get.md index 396916ed411..cdf8812225b 100644 --- a/docs/examples/1.4.x/client-web/examples/teams/get.md +++ b/docs/examples/1.4.x/client-web/examples/teams/get.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/teams/list-memberships.md b/docs/examples/1.4.x/client-web/examples/teams/list-memberships.md index dfa0163037c..845d0ce229a 100644 --- a/docs/examples/1.4.x/client-web/examples/teams/list-memberships.md +++ b/docs/examples/1.4.x/client-web/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/teams/list.md b/docs/examples/1.4.x/client-web/examples/teams/list.md index daf799b95a7..97b4ca31f3b 100644 --- a/docs/examples/1.4.x/client-web/examples/teams/list.md +++ b/docs/examples/1.4.x/client-web/examples/teams/list.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/teams/update-membership-status.md b/docs/examples/1.4.x/client-web/examples/teams/update-membership-status.md index de1b7f8402a..5ef0b2289c8 100644 --- a/docs/examples/1.4.x/client-web/examples/teams/update-membership-status.md +++ b/docs/examples/1.4.x/client-web/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/teams/update-membership.md b/docs/examples/1.4.x/client-web/examples/teams/update-membership.md index 662cb917814..aaa79028a0e 100644 --- a/docs/examples/1.4.x/client-web/examples/teams/update-membership.md +++ b/docs/examples/1.4.x/client-web/examples/teams/update-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/teams/update-name.md b/docs/examples/1.4.x/client-web/examples/teams/update-name.md index 3159d51c6cd..80e59bbae62 100644 --- a/docs/examples/1.4.x/client-web/examples/teams/update-name.md +++ b/docs/examples/1.4.x/client-web/examples/teams/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/client-web/examples/teams/update-prefs.md b/docs/examples/1.4.x/client-web/examples/teams/update-prefs.md index 36f60b18e72..4ff1ca7a7f2 100644 --- a/docs/examples/1.4.x/client-web/examples/teams/update-prefs.md +++ b/docs/examples/1.4.x/client-web/examples/teams/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/create-anonymous-session.md b/docs/examples/1.4.x/console-web/examples/account/create-anonymous-session.md index 9521cf68a56..81b49b3364e 100644 --- a/docs/examples/1.4.x/console-web/examples/account/create-anonymous-session.md +++ b/docs/examples/1.4.x/console-web/examples/account/create-anonymous-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/create-email-session.md b/docs/examples/1.4.x/console-web/examples/account/create-email-session.md index 19812773df7..4b9d12c64fc 100644 --- a/docs/examples/1.4.x/console-web/examples/account/create-email-session.md +++ b/docs/examples/1.4.x/console-web/examples/account/create-email-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/create-j-w-t.md b/docs/examples/1.4.x/console-web/examples/account/create-j-w-t.md index 8a851df3699..86336ab693e 100644 --- a/docs/examples/1.4.x/console-web/examples/account/create-j-w-t.md +++ b/docs/examples/1.4.x/console-web/examples/account/create-j-w-t.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/create-magic-u-r-l-session.md b/docs/examples/1.4.x/console-web/examples/account/create-magic-u-r-l-session.md index 6917aa288c7..b000a713dd9 100644 --- a/docs/examples/1.4.x/console-web/examples/account/create-magic-u-r-l-session.md +++ b/docs/examples/1.4.x/console-web/examples/account/create-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/create-o-auth2session.md b/docs/examples/1.4.x/console-web/examples/account/create-o-auth2session.md index bf33c52f30b..3dc8a90076a 100644 --- a/docs/examples/1.4.x/console-web/examples/account/create-o-auth2session.md +++ b/docs/examples/1.4.x/console-web/examples/account/create-o-auth2session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/create-phone-session.md b/docs/examples/1.4.x/console-web/examples/account/create-phone-session.md index 85e7d68eed2..18fb31ee857 100644 --- a/docs/examples/1.4.x/console-web/examples/account/create-phone-session.md +++ b/docs/examples/1.4.x/console-web/examples/account/create-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/create-phone-verification.md b/docs/examples/1.4.x/console-web/examples/account/create-phone-verification.md index 0b10961e53f..aadd2c149da 100644 --- a/docs/examples/1.4.x/console-web/examples/account/create-phone-verification.md +++ b/docs/examples/1.4.x/console-web/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/create-recovery.md b/docs/examples/1.4.x/console-web/examples/account/create-recovery.md index dd33c01f04a..9cc625a21d5 100644 --- a/docs/examples/1.4.x/console-web/examples/account/create-recovery.md +++ b/docs/examples/1.4.x/console-web/examples/account/create-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/create-verification.md b/docs/examples/1.4.x/console-web/examples/account/create-verification.md index 7b1ec32f2f0..b3ce7d060fe 100644 --- a/docs/examples/1.4.x/console-web/examples/account/create-verification.md +++ b/docs/examples/1.4.x/console-web/examples/account/create-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/create.md b/docs/examples/1.4.x/console-web/examples/account/create.md index 4c61ef8eb29..38ad6190fab 100644 --- a/docs/examples/1.4.x/console-web/examples/account/create.md +++ b/docs/examples/1.4.x/console-web/examples/account/create.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/delete-identity.md b/docs/examples/1.4.x/console-web/examples/account/delete-identity.md index 8e7a87270ae..fcc330580ba 100644 --- a/docs/examples/1.4.x/console-web/examples/account/delete-identity.md +++ b/docs/examples/1.4.x/console-web/examples/account/delete-identity.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/delete-session.md b/docs/examples/1.4.x/console-web/examples/account/delete-session.md index b360b3bb892..c6a6188d4ef 100644 --- a/docs/examples/1.4.x/console-web/examples/account/delete-session.md +++ b/docs/examples/1.4.x/console-web/examples/account/delete-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/delete-sessions.md b/docs/examples/1.4.x/console-web/examples/account/delete-sessions.md index 0d0fea88f44..6cf737e92ae 100644 --- a/docs/examples/1.4.x/console-web/examples/account/delete-sessions.md +++ b/docs/examples/1.4.x/console-web/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/get-prefs.md b/docs/examples/1.4.x/console-web/examples/account/get-prefs.md index 284f8fabdaf..939df8a13cc 100644 --- a/docs/examples/1.4.x/console-web/examples/account/get-prefs.md +++ b/docs/examples/1.4.x/console-web/examples/account/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/get-session.md b/docs/examples/1.4.x/console-web/examples/account/get-session.md index 651d35c7344..485ccb7f7cb 100644 --- a/docs/examples/1.4.x/console-web/examples/account/get-session.md +++ b/docs/examples/1.4.x/console-web/examples/account/get-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/get.md b/docs/examples/1.4.x/console-web/examples/account/get.md index f6fc4b94010..f4bc097c8e9 100644 --- a/docs/examples/1.4.x/console-web/examples/account/get.md +++ b/docs/examples/1.4.x/console-web/examples/account/get.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/list-identities.md b/docs/examples/1.4.x/console-web/examples/account/list-identities.md index ea18a00081a..a2ba9573827 100644 --- a/docs/examples/1.4.x/console-web/examples/account/list-identities.md +++ b/docs/examples/1.4.x/console-web/examples/account/list-identities.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/list-logs.md b/docs/examples/1.4.x/console-web/examples/account/list-logs.md index 4f1d6813a78..68bc5a33863 100644 --- a/docs/examples/1.4.x/console-web/examples/account/list-logs.md +++ b/docs/examples/1.4.x/console-web/examples/account/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/list-sessions.md b/docs/examples/1.4.x/console-web/examples/account/list-sessions.md index bd3b102b215..c54c6420f29 100644 --- a/docs/examples/1.4.x/console-web/examples/account/list-sessions.md +++ b/docs/examples/1.4.x/console-web/examples/account/list-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/update-email.md b/docs/examples/1.4.x/console-web/examples/account/update-email.md index 21b7fcc3f26..1d69f5d15aa 100644 --- a/docs/examples/1.4.x/console-web/examples/account/update-email.md +++ b/docs/examples/1.4.x/console-web/examples/account/update-email.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.4.x/console-web/examples/account/update-magic-u-r-l-session.md index 1bc748ed309..e73d344a75f 100644 --- a/docs/examples/1.4.x/console-web/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.4.x/console-web/examples/account/update-magic-u-r-l-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/update-name.md b/docs/examples/1.4.x/console-web/examples/account/update-name.md index 5a9ab011b49..5a221115f1b 100644 --- a/docs/examples/1.4.x/console-web/examples/account/update-name.md +++ b/docs/examples/1.4.x/console-web/examples/account/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/update-password.md b/docs/examples/1.4.x/console-web/examples/account/update-password.md index ca059e5304e..2fdc3bdf54b 100644 --- a/docs/examples/1.4.x/console-web/examples/account/update-password.md +++ b/docs/examples/1.4.x/console-web/examples/account/update-password.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/update-phone-session.md b/docs/examples/1.4.x/console-web/examples/account/update-phone-session.md index 4b47389a3c6..2f5ca7fa64e 100644 --- a/docs/examples/1.4.x/console-web/examples/account/update-phone-session.md +++ b/docs/examples/1.4.x/console-web/examples/account/update-phone-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/update-phone-verification.md b/docs/examples/1.4.x/console-web/examples/account/update-phone-verification.md index 99c13cb90ea..4f66ec5e810 100644 --- a/docs/examples/1.4.x/console-web/examples/account/update-phone-verification.md +++ b/docs/examples/1.4.x/console-web/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/update-phone.md b/docs/examples/1.4.x/console-web/examples/account/update-phone.md index 80f715e0bcc..19ebdd256b0 100644 --- a/docs/examples/1.4.x/console-web/examples/account/update-phone.md +++ b/docs/examples/1.4.x/console-web/examples/account/update-phone.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/update-prefs.md b/docs/examples/1.4.x/console-web/examples/account/update-prefs.md index 0a85380d344..2cba25590f5 100644 --- a/docs/examples/1.4.x/console-web/examples/account/update-prefs.md +++ b/docs/examples/1.4.x/console-web/examples/account/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/update-recovery.md b/docs/examples/1.4.x/console-web/examples/account/update-recovery.md index 64c1545e89b..f91b353d944 100644 --- a/docs/examples/1.4.x/console-web/examples/account/update-recovery.md +++ b/docs/examples/1.4.x/console-web/examples/account/update-recovery.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/update-session.md b/docs/examples/1.4.x/console-web/examples/account/update-session.md index 29dc0c0907f..64abdcb0dc2 100644 --- a/docs/examples/1.4.x/console-web/examples/account/update-session.md +++ b/docs/examples/1.4.x/console-web/examples/account/update-session.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/update-status.md b/docs/examples/1.4.x/console-web/examples/account/update-status.md index 87b51465255..c1a568439fb 100644 --- a/docs/examples/1.4.x/console-web/examples/account/update-status.md +++ b/docs/examples/1.4.x/console-web/examples/account/update-status.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/account/update-verification.md b/docs/examples/1.4.x/console-web/examples/account/update-verification.md index 93dd5db120f..7ab66b2be6a 100644 --- a/docs/examples/1.4.x/console-web/examples/account/update-verification.md +++ b/docs/examples/1.4.x/console-web/examples/account/update-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/assistant/chat.md b/docs/examples/1.4.x/console-web/examples/assistant/chat.md index a6c22b98bc5..ca02c9fae07 100644 --- a/docs/examples/1.4.x/console-web/examples/assistant/chat.md +++ b/docs/examples/1.4.x/console-web/examples/assistant/chat.md @@ -5,7 +5,7 @@ const client = new Client(); const assistant = new Assistant(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/avatars/get-browser.md b/docs/examples/1.4.x/console-web/examples/avatars/get-browser.md index f830effff2c..f2a966e6d35 100644 --- a/docs/examples/1.4.x/console-web/examples/avatars/get-browser.md +++ b/docs/examples/1.4.x/console-web/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/avatars/get-credit-card.md b/docs/examples/1.4.x/console-web/examples/avatars/get-credit-card.md index a4e67b25e73..a3f59418dac 100644 --- a/docs/examples/1.4.x/console-web/examples/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/console-web/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/avatars/get-favicon.md b/docs/examples/1.4.x/console-web/examples/avatars/get-favicon.md index 14bc1b9b004..0076abdd54a 100644 --- a/docs/examples/1.4.x/console-web/examples/avatars/get-favicon.md +++ b/docs/examples/1.4.x/console-web/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/avatars/get-flag.md b/docs/examples/1.4.x/console-web/examples/avatars/get-flag.md index 52ebe68c659..f6a66a01a8d 100644 --- a/docs/examples/1.4.x/console-web/examples/avatars/get-flag.md +++ b/docs/examples/1.4.x/console-web/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/avatars/get-image.md b/docs/examples/1.4.x/console-web/examples/avatars/get-image.md index 517421e7f0f..2435fae9809 100644 --- a/docs/examples/1.4.x/console-web/examples/avatars/get-image.md +++ b/docs/examples/1.4.x/console-web/examples/avatars/get-image.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/avatars/get-initials.md b/docs/examples/1.4.x/console-web/examples/avatars/get-initials.md index 8b03b5d3863..0d5bc0a6c8f 100644 --- a/docs/examples/1.4.x/console-web/examples/avatars/get-initials.md +++ b/docs/examples/1.4.x/console-web/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/avatars/get-q-r.md b/docs/examples/1.4.x/console-web/examples/avatars/get-q-r.md index 89cea47ad9b..5f1d17d410d 100644 --- a/docs/examples/1.4.x/console-web/examples/avatars/get-q-r.md +++ b/docs/examples/1.4.x/console-web/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ const client = new Client(); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/console/variables.md b/docs/examples/1.4.x/console-web/examples/console/variables.md index 3c552dee381..27df66f8619 100644 --- a/docs/examples/1.4.x/console-web/examples/console/variables.md +++ b/docs/examples/1.4.x/console-web/examples/console/variables.md @@ -5,7 +5,7 @@ const client = new Client(); const console = new Console(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/create-boolean-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/create-boolean-attribute.md index 3924ff5cc54..995eb48e4ba 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/create-boolean-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/create-collection.md b/docs/examples/1.4.x/console-web/examples/databases/create-collection.md index ff3dbd974db..a478b7eeb63 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/create-collection.md +++ b/docs/examples/1.4.x/console-web/examples/databases/create-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/create-datetime-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/create-datetime-attribute.md index 4e1f3190b3f..a6e825299a5 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/create-datetime-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/create-document.md b/docs/examples/1.4.x/console-web/examples/databases/create-document.md index 4b9adc4e7c9..fdd014f39d0 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/create-document.md +++ b/docs/examples/1.4.x/console-web/examples/databases/create-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/create-email-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/create-email-attribute.md index 8d2a5523b60..d25d0cdca3c 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/create-email-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/create-email-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/create-enum-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/create-enum-attribute.md index 503290b951e..492fc94db7b 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/create-enum-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/create-float-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/create-float-attribute.md index 7ce41b6b0bd..e910e78d5f4 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/create-float-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/create-float-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/create-index.md b/docs/examples/1.4.x/console-web/examples/databases/create-index.md index 4da79809f45..90886275fc7 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/create-index.md +++ b/docs/examples/1.4.x/console-web/examples/databases/create-index.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/create-integer-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/create-integer-attribute.md index 28218a16d74..5fc48e79806 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/create-integer-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/create-ip-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/create-ip-attribute.md index 88fcd66825b..4f393305779 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/create-ip-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/create-relationship-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/create-relationship-attribute.md index 6fe22ad22e7..5189dae44b0 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/create-relationship-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/create-string-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/create-string-attribute.md index 8beade8f9d5..8b546994fb4 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/create-string-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/create-string-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/create-url-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/create-url-attribute.md index 1cbd402c2e3..4c1621878ae 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/create-url-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/create-url-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/create.md b/docs/examples/1.4.x/console-web/examples/databases/create.md index bca894d724b..035be47b85a 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/create.md +++ b/docs/examples/1.4.x/console-web/examples/databases/create.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/delete-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/delete-attribute.md index 858010b3137..9b5259f1358 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/delete-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/delete-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/delete-collection.md b/docs/examples/1.4.x/console-web/examples/databases/delete-collection.md index 9ce95a5e54a..b654863416f 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/delete-collection.md +++ b/docs/examples/1.4.x/console-web/examples/databases/delete-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/delete-document.md b/docs/examples/1.4.x/console-web/examples/databases/delete-document.md index d31d06b5210..727cf132ba6 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/delete-document.md +++ b/docs/examples/1.4.x/console-web/examples/databases/delete-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/delete-index.md b/docs/examples/1.4.x/console-web/examples/databases/delete-index.md index 2ef22b82ad1..6c8f1485115 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/delete-index.md +++ b/docs/examples/1.4.x/console-web/examples/databases/delete-index.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/delete.md b/docs/examples/1.4.x/console-web/examples/databases/delete.md index bfd5b0cea3e..049280a06be 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/delete.md +++ b/docs/examples/1.4.x/console-web/examples/databases/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/get-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/get-attribute.md index 1542f64763c..610f07904be 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/get-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/get-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/get-collection-usage.md b/docs/examples/1.4.x/console-web/examples/databases/get-collection-usage.md index 983a6133735..df519530465 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/get-collection-usage.md +++ b/docs/examples/1.4.x/console-web/examples/databases/get-collection-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/get-collection.md b/docs/examples/1.4.x/console-web/examples/databases/get-collection.md index 6dae02f5c20..f5fd435ff44 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/get-collection.md +++ b/docs/examples/1.4.x/console-web/examples/databases/get-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/get-database-usage.md b/docs/examples/1.4.x/console-web/examples/databases/get-database-usage.md index f75040811e1..3c293f0211f 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/get-database-usage.md +++ b/docs/examples/1.4.x/console-web/examples/databases/get-database-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/get-document.md b/docs/examples/1.4.x/console-web/examples/databases/get-document.md index 87569bd8639..63ec42b8171 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/get-document.md +++ b/docs/examples/1.4.x/console-web/examples/databases/get-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/get-index.md b/docs/examples/1.4.x/console-web/examples/databases/get-index.md index d3df35d7a7d..92fe6b48f41 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/get-index.md +++ b/docs/examples/1.4.x/console-web/examples/databases/get-index.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/get-usage.md b/docs/examples/1.4.x/console-web/examples/databases/get-usage.md index aabe123e892..c0ad5ea3c23 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/get-usage.md +++ b/docs/examples/1.4.x/console-web/examples/databases/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/get.md b/docs/examples/1.4.x/console-web/examples/databases/get.md index 64c8a859ed6..036ebd5294a 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/get.md +++ b/docs/examples/1.4.x/console-web/examples/databases/get.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/list-attributes.md b/docs/examples/1.4.x/console-web/examples/databases/list-attributes.md index df9123680e5..cb07aba1f50 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/list-attributes.md +++ b/docs/examples/1.4.x/console-web/examples/databases/list-attributes.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/list-collection-logs.md b/docs/examples/1.4.x/console-web/examples/databases/list-collection-logs.md index 89662fe4b33..a6484de5e23 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/list-collection-logs.md +++ b/docs/examples/1.4.x/console-web/examples/databases/list-collection-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/list-collections.md b/docs/examples/1.4.x/console-web/examples/databases/list-collections.md index 498e0d9c132..7d0e31ab0f9 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/list-collections.md +++ b/docs/examples/1.4.x/console-web/examples/databases/list-collections.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/list-document-logs.md b/docs/examples/1.4.x/console-web/examples/databases/list-document-logs.md index 0161998358f..34cf6c9c3df 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/list-document-logs.md +++ b/docs/examples/1.4.x/console-web/examples/databases/list-document-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/list-documents.md b/docs/examples/1.4.x/console-web/examples/databases/list-documents.md index 9e29eb52c78..6365b91045d 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/list-documents.md +++ b/docs/examples/1.4.x/console-web/examples/databases/list-documents.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/list-indexes.md b/docs/examples/1.4.x/console-web/examples/databases/list-indexes.md index 3449b7d82be..e821f98a12e 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/list-indexes.md +++ b/docs/examples/1.4.x/console-web/examples/databases/list-indexes.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/list-logs.md b/docs/examples/1.4.x/console-web/examples/databases/list-logs.md index 3b3f0dcead4..b982f8791b5 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/list-logs.md +++ b/docs/examples/1.4.x/console-web/examples/databases/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/list.md b/docs/examples/1.4.x/console-web/examples/databases/list.md index 20ae55793d2..d4ba3714c49 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/list.md +++ b/docs/examples/1.4.x/console-web/examples/databases/list.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/update-boolean-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/update-boolean-attribute.md index 629f8644b04..2d2ae72d823 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/update-boolean-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/update-collection.md b/docs/examples/1.4.x/console-web/examples/databases/update-collection.md index c0043b25002..c6fb8f69b66 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/update-collection.md +++ b/docs/examples/1.4.x/console-web/examples/databases/update-collection.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/update-datetime-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/update-datetime-attribute.md index f5be61d0e6a..57452ed4de5 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/update-datetime-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/update-document.md b/docs/examples/1.4.x/console-web/examples/databases/update-document.md index 249af346483..2fbe08d3d22 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/update-document.md +++ b/docs/examples/1.4.x/console-web/examples/databases/update-document.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/update-email-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/update-email-attribute.md index e9a89a9436c..bd7f56f0ed5 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/update-email-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/update-email-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/update-enum-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/update-enum-attribute.md index 8f0d5b6842d..5fae0029503 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/update-enum-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/update-float-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/update-float-attribute.md index 72fcd77e7bc..f79aa89f296 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/update-float-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/update-float-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/update-integer-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/update-integer-attribute.md index d035b842b11..9be0327aa0f 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/update-integer-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/update-ip-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/update-ip-attribute.md index 3373ae49ae6..579e5011b03 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/update-ip-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/update-relationship-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/update-relationship-attribute.md index a329d5b6ad0..aa97a12eb4f 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/update-relationship-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/update-string-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/update-string-attribute.md index 69482531edd..5afdd00648c 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/update-string-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/update-string-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/update-url-attribute.md b/docs/examples/1.4.x/console-web/examples/databases/update-url-attribute.md index 481394021d2..d57ba6db661 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/update-url-attribute.md +++ b/docs/examples/1.4.x/console-web/examples/databases/update-url-attribute.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/databases/update.md b/docs/examples/1.4.x/console-web/examples/databases/update.md index a8160956e52..5f2727847c9 100644 --- a/docs/examples/1.4.x/console-web/examples/databases/update.md +++ b/docs/examples/1.4.x/console-web/examples/databases/update.md @@ -5,7 +5,7 @@ const client = new Client(); const databases = new Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/create-build.md b/docs/examples/1.4.x/console-web/examples/functions/create-build.md index 141bb3247c7..a4d250ba582 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/create-build.md +++ b/docs/examples/1.4.x/console-web/examples/functions/create-build.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/create-deployment.md b/docs/examples/1.4.x/console-web/examples/functions/create-deployment.md index 6a97468f855..97434db6099 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/create-deployment.md +++ b/docs/examples/1.4.x/console-web/examples/functions/create-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/create-execution.md b/docs/examples/1.4.x/console-web/examples/functions/create-execution.md index cd623bb0562..b7c9d286528 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/create-execution.md +++ b/docs/examples/1.4.x/console-web/examples/functions/create-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/create-variable.md b/docs/examples/1.4.x/console-web/examples/functions/create-variable.md index df147ac2c8f..d8bad947e28 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/create-variable.md +++ b/docs/examples/1.4.x/console-web/examples/functions/create-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/create.md b/docs/examples/1.4.x/console-web/examples/functions/create.md index ef53a13a7a3..d321444a0d1 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/create.md +++ b/docs/examples/1.4.x/console-web/examples/functions/create.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/delete-deployment.md b/docs/examples/1.4.x/console-web/examples/functions/delete-deployment.md index 9597da3dcfc..a5dc5584570 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/delete-deployment.md +++ b/docs/examples/1.4.x/console-web/examples/functions/delete-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/delete-variable.md b/docs/examples/1.4.x/console-web/examples/functions/delete-variable.md index 30f2c031aae..1687be849be 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/delete-variable.md +++ b/docs/examples/1.4.x/console-web/examples/functions/delete-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/delete.md b/docs/examples/1.4.x/console-web/examples/functions/delete.md index 3cfa756613b..bee147500b8 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/delete.md +++ b/docs/examples/1.4.x/console-web/examples/functions/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/download-deployment.md b/docs/examples/1.4.x/console-web/examples/functions/download-deployment.md index fc514e7cb44..7b0f0a9d547 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/download-deployment.md +++ b/docs/examples/1.4.x/console-web/examples/functions/download-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/get-deployment.md b/docs/examples/1.4.x/console-web/examples/functions/get-deployment.md index 3a16587aca0..e5e988c9409 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/get-deployment.md +++ b/docs/examples/1.4.x/console-web/examples/functions/get-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/get-execution.md b/docs/examples/1.4.x/console-web/examples/functions/get-execution.md index ac92b98af8e..d5b5d7400bf 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/get-execution.md +++ b/docs/examples/1.4.x/console-web/examples/functions/get-execution.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/get-function-usage.md b/docs/examples/1.4.x/console-web/examples/functions/get-function-usage.md index 9ac20346ea3..19bb6aa293c 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/get-function-usage.md +++ b/docs/examples/1.4.x/console-web/examples/functions/get-function-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/get-usage.md b/docs/examples/1.4.x/console-web/examples/functions/get-usage.md index 6e3fe878607..8afeec514aa 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/get-usage.md +++ b/docs/examples/1.4.x/console-web/examples/functions/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/get-variable.md b/docs/examples/1.4.x/console-web/examples/functions/get-variable.md index 3d4b07f44ef..0d6a078176e 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/get-variable.md +++ b/docs/examples/1.4.x/console-web/examples/functions/get-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/get.md b/docs/examples/1.4.x/console-web/examples/functions/get.md index 5cb2e289106..fbb4e8be3f7 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/get.md +++ b/docs/examples/1.4.x/console-web/examples/functions/get.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/list-deployments.md b/docs/examples/1.4.x/console-web/examples/functions/list-deployments.md index bd63271f279..1acf26b16f8 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/list-deployments.md +++ b/docs/examples/1.4.x/console-web/examples/functions/list-deployments.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/list-executions.md b/docs/examples/1.4.x/console-web/examples/functions/list-executions.md index 5df980d48b7..b1d40eb4b6e 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/list-executions.md +++ b/docs/examples/1.4.x/console-web/examples/functions/list-executions.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/list-runtimes.md b/docs/examples/1.4.x/console-web/examples/functions/list-runtimes.md index 18f13b2c830..c1e2c654d73 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/list-runtimes.md +++ b/docs/examples/1.4.x/console-web/examples/functions/list-runtimes.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/list-variables.md b/docs/examples/1.4.x/console-web/examples/functions/list-variables.md index 5fd03bfc190..4f37c95bd59 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/list-variables.md +++ b/docs/examples/1.4.x/console-web/examples/functions/list-variables.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/list.md b/docs/examples/1.4.x/console-web/examples/functions/list.md index 721ad6bbb0c..903112a5f70 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/list.md +++ b/docs/examples/1.4.x/console-web/examples/functions/list.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/update-deployment.md b/docs/examples/1.4.x/console-web/examples/functions/update-deployment.md index 98752326efd..b668a3fabb3 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/update-deployment.md +++ b/docs/examples/1.4.x/console-web/examples/functions/update-deployment.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/update-variable.md b/docs/examples/1.4.x/console-web/examples/functions/update-variable.md index 33380ee102c..3ce70d0d627 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/update-variable.md +++ b/docs/examples/1.4.x/console-web/examples/functions/update-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/functions/update.md b/docs/examples/1.4.x/console-web/examples/functions/update.md index 473bbebbd60..8304a3d159d 100644 --- a/docs/examples/1.4.x/console-web/examples/functions/update.md +++ b/docs/examples/1.4.x/console-web/examples/functions/update.md @@ -5,7 +5,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/graphql/mutation.md b/docs/examples/1.4.x/console-web/examples/graphql/mutation.md index ee70c3630c4..6de224be68f 100644 --- a/docs/examples/1.4.x/console-web/examples/graphql/mutation.md +++ b/docs/examples/1.4.x/console-web/examples/graphql/mutation.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/graphql/query.md b/docs/examples/1.4.x/console-web/examples/graphql/query.md index 055c6ad0020..f1c35d81ba9 100644 --- a/docs/examples/1.4.x/console-web/examples/graphql/query.md +++ b/docs/examples/1.4.x/console-web/examples/graphql/query.md @@ -5,7 +5,7 @@ const client = new Client(); const graphql = new Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-antivirus.md b/docs/examples/1.4.x/console-web/examples/health/get-antivirus.md index 6d57550dd90..c55b33a3f56 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-antivirus.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-antivirus.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-cache.md b/docs/examples/1.4.x/console-web/examples/health/get-cache.md index 5748c8e9dc1..7c1563ced5b 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-cache.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-cache.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-d-b.md b/docs/examples/1.4.x/console-web/examples/health/get-d-b.md index 181dca70768..3c3c21b88c6 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-d-b.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-d-b.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-pub-sub.md b/docs/examples/1.4.x/console-web/examples/health/get-pub-sub.md index a56abb704d0..ddea8989914 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-pub-sub.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-pub-sub.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-queue-builds.md b/docs/examples/1.4.x/console-web/examples/health/get-queue-builds.md index a312fa7df03..a812a409bf0 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-queue-builds.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-queue-builds.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-queue-certificates.md b/docs/examples/1.4.x/console-web/examples/health/get-queue-certificates.md index 29fcb6707a7..f1361cb68aa 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-queue-certificates.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-queue-certificates.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-queue-databases.md b/docs/examples/1.4.x/console-web/examples/health/get-queue-databases.md index 481480a80d1..751a55eea16 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-queue-databases.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-queue-databases.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-queue-deletes.md b/docs/examples/1.4.x/console-web/examples/health/get-queue-deletes.md index c1bbb9f655f..cc3fb76f3c5 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-queue-deletes.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-queue-deletes.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-queue-functions.md b/docs/examples/1.4.x/console-web/examples/health/get-queue-functions.md index 0b011cb32d4..12e8a8b6ba5 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-queue-functions.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-queue-functions.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-queue-logs.md b/docs/examples/1.4.x/console-web/examples/health/get-queue-logs.md index 2dc33b377b3..8ddfaf700bd 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-queue-logs.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-queue-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-queue-mails.md b/docs/examples/1.4.x/console-web/examples/health/get-queue-mails.md index 8d6d68228a1..4c2268515f5 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-queue-mails.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-queue-mails.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-queue-messaging.md b/docs/examples/1.4.x/console-web/examples/health/get-queue-messaging.md index 8102e751823..c6b9dc12e17 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-queue-messaging.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-queue-messaging.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-queue-migrations.md b/docs/examples/1.4.x/console-web/examples/health/get-queue-migrations.md index af0285313bd..2bccd1c00fd 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-queue-migrations.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-queue-migrations.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-queue-webhooks.md b/docs/examples/1.4.x/console-web/examples/health/get-queue-webhooks.md index 534d68c7f46..b2ae504bd13 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-queue-webhooks.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-queue.md b/docs/examples/1.4.x/console-web/examples/health/get-queue.md index bdc3caf7498..a2163646594 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-queue.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-queue.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-storage-local.md b/docs/examples/1.4.x/console-web/examples/health/get-storage-local.md index ff842f4ba6a..b7e8d86da67 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-storage-local.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-storage-local.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get-time.md b/docs/examples/1.4.x/console-web/examples/health/get-time.md index 6d8e1c225a5..73e1155687e 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get-time.md +++ b/docs/examples/1.4.x/console-web/examples/health/get-time.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/health/get.md b/docs/examples/1.4.x/console-web/examples/health/get.md index 76e74be74cf..faa1a0c7c1c 100644 --- a/docs/examples/1.4.x/console-web/examples/health/get.md +++ b/docs/examples/1.4.x/console-web/examples/health/get.md @@ -5,7 +5,7 @@ const client = new Client(); const health = new Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/locale/get.md b/docs/examples/1.4.x/console-web/examples/locale/get.md index ac47468df81..bd3c27e3c32 100644 --- a/docs/examples/1.4.x/console-web/examples/locale/get.md +++ b/docs/examples/1.4.x/console-web/examples/locale/get.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/locale/list-codes.md b/docs/examples/1.4.x/console-web/examples/locale/list-codes.md index 9cb13350b36..ab67b3c7efe 100644 --- a/docs/examples/1.4.x/console-web/examples/locale/list-codes.md +++ b/docs/examples/1.4.x/console-web/examples/locale/list-codes.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/locale/list-continents.md b/docs/examples/1.4.x/console-web/examples/locale/list-continents.md index b2358396fcf..0c3d6bb4996 100644 --- a/docs/examples/1.4.x/console-web/examples/locale/list-continents.md +++ b/docs/examples/1.4.x/console-web/examples/locale/list-continents.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/locale/list-countries-e-u.md b/docs/examples/1.4.x/console-web/examples/locale/list-countries-e-u.md index 59d6e24dbf7..7ac2906b4c7 100644 --- a/docs/examples/1.4.x/console-web/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/console-web/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/locale/list-countries-phones.md b/docs/examples/1.4.x/console-web/examples/locale/list-countries-phones.md index 898cb3cf31b..300c81d9538 100644 --- a/docs/examples/1.4.x/console-web/examples/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/console-web/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/locale/list-countries.md b/docs/examples/1.4.x/console-web/examples/locale/list-countries.md index a36b8c25edf..3f26f6dba81 100644 --- a/docs/examples/1.4.x/console-web/examples/locale/list-countries.md +++ b/docs/examples/1.4.x/console-web/examples/locale/list-countries.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/locale/list-currencies.md b/docs/examples/1.4.x/console-web/examples/locale/list-currencies.md index 1f348914259..66163952bd7 100644 --- a/docs/examples/1.4.x/console-web/examples/locale/list-currencies.md +++ b/docs/examples/1.4.x/console-web/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/locale/list-languages.md b/docs/examples/1.4.x/console-web/examples/locale/list-languages.md index 4fb4dbf0be9..048c79d38ad 100644 --- a/docs/examples/1.4.x/console-web/examples/locale/list-languages.md +++ b/docs/examples/1.4.x/console-web/examples/locale/list-languages.md @@ -5,7 +5,7 @@ const client = new Client(); const locale = new Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/create-appwrite-migration.md b/docs/examples/1.4.x/console-web/examples/migrations/create-appwrite-migration.md index 7001e18204b..f478d2cd63d 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/create-appwrite-migration.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/create-appwrite-migration.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/create-firebase-migration.md b/docs/examples/1.4.x/console-web/examples/migrations/create-firebase-migration.md index de5becb5cab..9109f1f9c8b 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/create-firebase-migration.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/create-firebase-migration.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/create-firebase-o-auth-migration.md b/docs/examples/1.4.x/console-web/examples/migrations/create-firebase-o-auth-migration.md index 07e3efb0801..0d55b2617fc 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/create-firebase-o-auth-migration.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/create-firebase-o-auth-migration.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/create-n-host-migration.md b/docs/examples/1.4.x/console-web/examples/migrations/create-n-host-migration.md index b9a614d44af..c57effc4b24 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/create-n-host-migration.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/create-n-host-migration.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/create-supabase-migration.md b/docs/examples/1.4.x/console-web/examples/migrations/create-supabase-migration.md index 38b533f66ba..f734e42a98d 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/create-supabase-migration.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/create-supabase-migration.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/delete-firebase-auth.md b/docs/examples/1.4.x/console-web/examples/migrations/delete-firebase-auth.md index 9884956e548..304f9234c87 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/delete-firebase-auth.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/delete-firebase-auth.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/delete.md b/docs/examples/1.4.x/console-web/examples/migrations/delete.md index 88d82627184..937c2f7057a 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/delete.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/get-appwrite-report.md b/docs/examples/1.4.x/console-web/examples/migrations/get-appwrite-report.md index 0b922b2bc50..e7880c6ea65 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/get-appwrite-report.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/get-appwrite-report.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/get-firebase-report-o-auth.md b/docs/examples/1.4.x/console-web/examples/migrations/get-firebase-report-o-auth.md index 7b52ac95b78..bd5fe5a228f 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/get-firebase-report-o-auth.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/get-firebase-report-o-auth.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/get-firebase-report.md b/docs/examples/1.4.x/console-web/examples/migrations/get-firebase-report.md index 3764d786a6a..602ddc2f391 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/get-firebase-report.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/get-firebase-report.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/get-n-host-report.md b/docs/examples/1.4.x/console-web/examples/migrations/get-n-host-report.md index 34d34044084..b984ce85022 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/get-n-host-report.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/get-n-host-report.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/get-supabase-report.md b/docs/examples/1.4.x/console-web/examples/migrations/get-supabase-report.md index 00fbb9e56fd..d27b198a69a 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/get-supabase-report.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/get-supabase-report.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/get.md b/docs/examples/1.4.x/console-web/examples/migrations/get.md index 1331be2543f..7b6880a9b69 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/get.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/get.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/list-firebase-projects.md b/docs/examples/1.4.x/console-web/examples/migrations/list-firebase-projects.md index 799f58714fe..0e31008788c 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/list-firebase-projects.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/list-firebase-projects.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/list.md b/docs/examples/1.4.x/console-web/examples/migrations/list.md index 61f7754aff9..9396ed9ab74 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/list.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/list.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/migrations/retry.md b/docs/examples/1.4.x/console-web/examples/migrations/retry.md index 4c39d98c5db..5562403b14f 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/retry.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/retry.md @@ -5,7 +5,7 @@ const client = new Client(); const migrations = new Migrations(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/project/create-variable.md b/docs/examples/1.4.x/console-web/examples/project/create-variable.md index 94c0f04fe0b..f3bc1dd13af 100644 --- a/docs/examples/1.4.x/console-web/examples/project/create-variable.md +++ b/docs/examples/1.4.x/console-web/examples/project/create-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const project = new Project(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/project/delete-variable.md b/docs/examples/1.4.x/console-web/examples/project/delete-variable.md index 23c4144e394..2c28b029971 100644 --- a/docs/examples/1.4.x/console-web/examples/project/delete-variable.md +++ b/docs/examples/1.4.x/console-web/examples/project/delete-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const project = new Project(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/project/get-usage.md b/docs/examples/1.4.x/console-web/examples/project/get-usage.md index c831a06ff18..4687d94252f 100644 --- a/docs/examples/1.4.x/console-web/examples/project/get-usage.md +++ b/docs/examples/1.4.x/console-web/examples/project/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const project = new Project(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/project/get-variable.md b/docs/examples/1.4.x/console-web/examples/project/get-variable.md index c147f638e59..3c105d1e8f6 100644 --- a/docs/examples/1.4.x/console-web/examples/project/get-variable.md +++ b/docs/examples/1.4.x/console-web/examples/project/get-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const project = new Project(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/project/list-variables.md b/docs/examples/1.4.x/console-web/examples/project/list-variables.md index facfc321631..2bf69f7bc92 100644 --- a/docs/examples/1.4.x/console-web/examples/project/list-variables.md +++ b/docs/examples/1.4.x/console-web/examples/project/list-variables.md @@ -5,7 +5,7 @@ const client = new Client(); const project = new Project(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/project/update-variable.md b/docs/examples/1.4.x/console-web/examples/project/update-variable.md index 57590189dc7..e32e3592db7 100644 --- a/docs/examples/1.4.x/console-web/examples/project/update-variable.md +++ b/docs/examples/1.4.x/console-web/examples/project/update-variable.md @@ -5,7 +5,7 @@ const client = new Client(); const project = new Project(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/create-key.md b/docs/examples/1.4.x/console-web/examples/projects/create-key.md index 02032e81c54..d65660599b2 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/create-key.md +++ b/docs/examples/1.4.x/console-web/examples/projects/create-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/create-platform.md b/docs/examples/1.4.x/console-web/examples/projects/create-platform.md index 4a319681713..b668ec12f76 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/create-platform.md +++ b/docs/examples/1.4.x/console-web/examples/projects/create-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/create-webhook.md b/docs/examples/1.4.x/console-web/examples/projects/create-webhook.md index 356a5ffe866..0ca56346c4d 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/create-webhook.md +++ b/docs/examples/1.4.x/console-web/examples/projects/create-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/create.md b/docs/examples/1.4.x/console-web/examples/projects/create.md index 87eab0aea0c..29f5cc5c911 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/create.md +++ b/docs/examples/1.4.x/console-web/examples/projects/create.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/delete-email-template.md b/docs/examples/1.4.x/console-web/examples/projects/delete-email-template.md index 0df4a1db5c2..1826f4a89f9 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/delete-email-template.md +++ b/docs/examples/1.4.x/console-web/examples/projects/delete-email-template.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/delete-key.md b/docs/examples/1.4.x/console-web/examples/projects/delete-key.md index 74c6bd15621..399e97687a2 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/delete-key.md +++ b/docs/examples/1.4.x/console-web/examples/projects/delete-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/delete-platform.md b/docs/examples/1.4.x/console-web/examples/projects/delete-platform.md index da8ce56e54e..0d6fa3c55b3 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/delete-platform.md +++ b/docs/examples/1.4.x/console-web/examples/projects/delete-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/delete-sms-template.md b/docs/examples/1.4.x/console-web/examples/projects/delete-sms-template.md index ba0bc8ead3f..389e4365c26 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/delete-sms-template.md +++ b/docs/examples/1.4.x/console-web/examples/projects/delete-sms-template.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/delete-webhook.md b/docs/examples/1.4.x/console-web/examples/projects/delete-webhook.md index 08e3af636fc..2de71ec3f31 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/delete-webhook.md +++ b/docs/examples/1.4.x/console-web/examples/projects/delete-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/delete.md b/docs/examples/1.4.x/console-web/examples/projects/delete.md index 4f227a49a69..6d22dc30753 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/delete.md +++ b/docs/examples/1.4.x/console-web/examples/projects/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/get-email-template.md b/docs/examples/1.4.x/console-web/examples/projects/get-email-template.md index f7c193b95d0..0a368245ff6 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/get-email-template.md +++ b/docs/examples/1.4.x/console-web/examples/projects/get-email-template.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/get-key.md b/docs/examples/1.4.x/console-web/examples/projects/get-key.md index c0d3282c146..bfadb8de561 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/get-key.md +++ b/docs/examples/1.4.x/console-web/examples/projects/get-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/get-platform.md b/docs/examples/1.4.x/console-web/examples/projects/get-platform.md index fd65231affd..d178cbb8430 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/get-platform.md +++ b/docs/examples/1.4.x/console-web/examples/projects/get-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/get-sms-template.md b/docs/examples/1.4.x/console-web/examples/projects/get-sms-template.md index 5fce9ffcfb1..be4f1dd8491 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/get-sms-template.md +++ b/docs/examples/1.4.x/console-web/examples/projects/get-sms-template.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/get-usage.md b/docs/examples/1.4.x/console-web/examples/projects/get-usage.md index 8d8c91355dd..af512463fbe 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/get-usage.md +++ b/docs/examples/1.4.x/console-web/examples/projects/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/get-webhook.md b/docs/examples/1.4.x/console-web/examples/projects/get-webhook.md index 7f580b5f572..4357669a227 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/get-webhook.md +++ b/docs/examples/1.4.x/console-web/examples/projects/get-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/get.md b/docs/examples/1.4.x/console-web/examples/projects/get.md index 23c235a741c..69e53ca0f23 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/get.md +++ b/docs/examples/1.4.x/console-web/examples/projects/get.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/list-keys.md b/docs/examples/1.4.x/console-web/examples/projects/list-keys.md index c2dce0a419a..8800067c24b 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/list-keys.md +++ b/docs/examples/1.4.x/console-web/examples/projects/list-keys.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/list-platforms.md b/docs/examples/1.4.x/console-web/examples/projects/list-platforms.md index 968438f6bb7..692de5c43fe 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/list-platforms.md +++ b/docs/examples/1.4.x/console-web/examples/projects/list-platforms.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/list-webhooks.md b/docs/examples/1.4.x/console-web/examples/projects/list-webhooks.md index e0e0af367f5..d960a75f982 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/list-webhooks.md +++ b/docs/examples/1.4.x/console-web/examples/projects/list-webhooks.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/list.md b/docs/examples/1.4.x/console-web/examples/projects/list.md index 0cf5002afe9..a7476905fd5 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/list.md +++ b/docs/examples/1.4.x/console-web/examples/projects/list.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-auth-duration.md b/docs/examples/1.4.x/console-web/examples/projects/update-auth-duration.md index 37c69222df8..f74645388d4 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-auth-duration.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-auth-duration.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-auth-limit.md b/docs/examples/1.4.x/console-web/examples/projects/update-auth-limit.md index a63f5b4518e..4195655befe 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-auth-limit.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-auth-limit.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-auth-password-dictionary.md b/docs/examples/1.4.x/console-web/examples/projects/update-auth-password-dictionary.md index e3cb529d1b4..8f81a8fb937 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-auth-password-dictionary.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-auth-password-dictionary.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-auth-password-history.md b/docs/examples/1.4.x/console-web/examples/projects/update-auth-password-history.md index 67b885d49db..a5651e4e323 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-auth-password-history.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-auth-password-history.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-auth-sessions-limit.md b/docs/examples/1.4.x/console-web/examples/projects/update-auth-sessions-limit.md index ef2dffa67ae..21ce249f7aa 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-auth-sessions-limit.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-auth-sessions-limit.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-auth-status.md b/docs/examples/1.4.x/console-web/examples/projects/update-auth-status.md index 4751442d8fd..b183e1477c0 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-auth-status.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-auth-status.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-email-template.md b/docs/examples/1.4.x/console-web/examples/projects/update-email-template.md index b49594768a0..66939ea49e8 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-email-template.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-email-template.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-key.md b/docs/examples/1.4.x/console-web/examples/projects/update-key.md index fd2bde82bfa..659017451a2 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-key.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-key.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-o-auth2.md b/docs/examples/1.4.x/console-web/examples/projects/update-o-auth2.md index 34ce8142088..cf3c92658fa 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-o-auth2.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-o-auth2.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-personal-data-check.md b/docs/examples/1.4.x/console-web/examples/projects/update-personal-data-check.md index 6165e91b804..15800560a19 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-personal-data-check.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-personal-data-check.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-platform.md b/docs/examples/1.4.x/console-web/examples/projects/update-platform.md index ce49dfffd84..75f3b3b4e2c 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-platform.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-platform.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-service-status-all.md b/docs/examples/1.4.x/console-web/examples/projects/update-service-status-all.md index d348067194f..68fa5defbcf 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-service-status-all.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-service-status-all.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-service-status.md b/docs/examples/1.4.x/console-web/examples/projects/update-service-status.md index 5b727003b04..66010abf746 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-service-status.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-service-status.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-sms-template.md b/docs/examples/1.4.x/console-web/examples/projects/update-sms-template.md index 54edccd2aa2..74b14ead379 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-sms-template.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-sms-template.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-smtp-configuration.md b/docs/examples/1.4.x/console-web/examples/projects/update-smtp-configuration.md index 54f344e3a6d..730e41ffe6e 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-smtp-configuration.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-smtp-configuration.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-team.md b/docs/examples/1.4.x/console-web/examples/projects/update-team.md index 8b1c2f5665b..6c8f49d7a33 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-team.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-team.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-webhook-signature.md b/docs/examples/1.4.x/console-web/examples/projects/update-webhook-signature.md index 472271f8e60..8a18c842620 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-webhook-signature.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-webhook-signature.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-webhook.md b/docs/examples/1.4.x/console-web/examples/projects/update-webhook.md index 1339a458227..81fdd2913e9 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update-webhook.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update-webhook.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/projects/update.md b/docs/examples/1.4.x/console-web/examples/projects/update.md index 31281808c47..f162bd09b52 100644 --- a/docs/examples/1.4.x/console-web/examples/projects/update.md +++ b/docs/examples/1.4.x/console-web/examples/projects/update.md @@ -5,7 +5,7 @@ const client = new Client(); const projects = new Projects(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/proxy/create-rule.md b/docs/examples/1.4.x/console-web/examples/proxy/create-rule.md index fc11d86b973..61923b31363 100644 --- a/docs/examples/1.4.x/console-web/examples/proxy/create-rule.md +++ b/docs/examples/1.4.x/console-web/examples/proxy/create-rule.md @@ -5,7 +5,7 @@ const client = new Client(); const proxy = new Proxy(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/proxy/delete-rule.md b/docs/examples/1.4.x/console-web/examples/proxy/delete-rule.md index f21e4f2528c..05514b8c03b 100644 --- a/docs/examples/1.4.x/console-web/examples/proxy/delete-rule.md +++ b/docs/examples/1.4.x/console-web/examples/proxy/delete-rule.md @@ -5,7 +5,7 @@ const client = new Client(); const proxy = new Proxy(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/proxy/get-rule.md b/docs/examples/1.4.x/console-web/examples/proxy/get-rule.md index 99ddbca2732..ab8eb4ce2b6 100644 --- a/docs/examples/1.4.x/console-web/examples/proxy/get-rule.md +++ b/docs/examples/1.4.x/console-web/examples/proxy/get-rule.md @@ -5,7 +5,7 @@ const client = new Client(); const proxy = new Proxy(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/proxy/list-rules.md b/docs/examples/1.4.x/console-web/examples/proxy/list-rules.md index baa277339cd..72e86cfbf0a 100644 --- a/docs/examples/1.4.x/console-web/examples/proxy/list-rules.md +++ b/docs/examples/1.4.x/console-web/examples/proxy/list-rules.md @@ -5,7 +5,7 @@ const client = new Client(); const proxy = new Proxy(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/proxy/update-rule-verification.md b/docs/examples/1.4.x/console-web/examples/proxy/update-rule-verification.md index 33b442220c5..b0e45dc0cf9 100644 --- a/docs/examples/1.4.x/console-web/examples/proxy/update-rule-verification.md +++ b/docs/examples/1.4.x/console-web/examples/proxy/update-rule-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const proxy = new Proxy(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/storage/create-bucket.md b/docs/examples/1.4.x/console-web/examples/storage/create-bucket.md index 7696b14294e..766a4835dc3 100644 --- a/docs/examples/1.4.x/console-web/examples/storage/create-bucket.md +++ b/docs/examples/1.4.x/console-web/examples/storage/create-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/storage/create-file.md b/docs/examples/1.4.x/console-web/examples/storage/create-file.md index d1bf55b42b8..ce0c8f0b9c7 100644 --- a/docs/examples/1.4.x/console-web/examples/storage/create-file.md +++ b/docs/examples/1.4.x/console-web/examples/storage/create-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/storage/delete-bucket.md b/docs/examples/1.4.x/console-web/examples/storage/delete-bucket.md index 4634b11f5b3..0a3305e862a 100644 --- a/docs/examples/1.4.x/console-web/examples/storage/delete-bucket.md +++ b/docs/examples/1.4.x/console-web/examples/storage/delete-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/storage/delete-file.md b/docs/examples/1.4.x/console-web/examples/storage/delete-file.md index b4c0ff0f9d8..1961a1fcde1 100644 --- a/docs/examples/1.4.x/console-web/examples/storage/delete-file.md +++ b/docs/examples/1.4.x/console-web/examples/storage/delete-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/storage/get-bucket-usage.md b/docs/examples/1.4.x/console-web/examples/storage/get-bucket-usage.md index 65c66d7aa04..58223df2aef 100644 --- a/docs/examples/1.4.x/console-web/examples/storage/get-bucket-usage.md +++ b/docs/examples/1.4.x/console-web/examples/storage/get-bucket-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/storage/get-bucket.md b/docs/examples/1.4.x/console-web/examples/storage/get-bucket.md index 2b65e8b0cee..7b386458f9d 100644 --- a/docs/examples/1.4.x/console-web/examples/storage/get-bucket.md +++ b/docs/examples/1.4.x/console-web/examples/storage/get-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/storage/get-file-download.md b/docs/examples/1.4.x/console-web/examples/storage/get-file-download.md index 1ce57cb38a6..bdc8fb79d3f 100644 --- a/docs/examples/1.4.x/console-web/examples/storage/get-file-download.md +++ b/docs/examples/1.4.x/console-web/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/storage/get-file-preview.md b/docs/examples/1.4.x/console-web/examples/storage/get-file-preview.md index ab6bc18fc46..8f58323bd6e 100644 --- a/docs/examples/1.4.x/console-web/examples/storage/get-file-preview.md +++ b/docs/examples/1.4.x/console-web/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/storage/get-file-view.md b/docs/examples/1.4.x/console-web/examples/storage/get-file-view.md index 7ce851f0252..aa482c46f5c 100644 --- a/docs/examples/1.4.x/console-web/examples/storage/get-file-view.md +++ b/docs/examples/1.4.x/console-web/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/storage/get-file.md b/docs/examples/1.4.x/console-web/examples/storage/get-file.md index b6e800303d1..bb5a737721a 100644 --- a/docs/examples/1.4.x/console-web/examples/storage/get-file.md +++ b/docs/examples/1.4.x/console-web/examples/storage/get-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/storage/get-usage.md b/docs/examples/1.4.x/console-web/examples/storage/get-usage.md index f618ba4e16e..e9a8eb06729 100644 --- a/docs/examples/1.4.x/console-web/examples/storage/get-usage.md +++ b/docs/examples/1.4.x/console-web/examples/storage/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/storage/list-buckets.md b/docs/examples/1.4.x/console-web/examples/storage/list-buckets.md index 5a356900fab..a14a0d02172 100644 --- a/docs/examples/1.4.x/console-web/examples/storage/list-buckets.md +++ b/docs/examples/1.4.x/console-web/examples/storage/list-buckets.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/storage/list-files.md b/docs/examples/1.4.x/console-web/examples/storage/list-files.md index 0c6170f11d1..ac7ef669dc0 100644 --- a/docs/examples/1.4.x/console-web/examples/storage/list-files.md +++ b/docs/examples/1.4.x/console-web/examples/storage/list-files.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/storage/update-bucket.md b/docs/examples/1.4.x/console-web/examples/storage/update-bucket.md index 09ed4ce441f..1d050c14b88 100644 --- a/docs/examples/1.4.x/console-web/examples/storage/update-bucket.md +++ b/docs/examples/1.4.x/console-web/examples/storage/update-bucket.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/storage/update-file.md b/docs/examples/1.4.x/console-web/examples/storage/update-file.md index abaaf9afd4e..12292761d23 100644 --- a/docs/examples/1.4.x/console-web/examples/storage/update-file.md +++ b/docs/examples/1.4.x/console-web/examples/storage/update-file.md @@ -5,7 +5,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/teams/create-membership.md b/docs/examples/1.4.x/console-web/examples/teams/create-membership.md index 4ceac9feda5..e2b71c7dcd8 100644 --- a/docs/examples/1.4.x/console-web/examples/teams/create-membership.md +++ b/docs/examples/1.4.x/console-web/examples/teams/create-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/teams/create.md b/docs/examples/1.4.x/console-web/examples/teams/create.md index a2cb34296b6..881816db346 100644 --- a/docs/examples/1.4.x/console-web/examples/teams/create.md +++ b/docs/examples/1.4.x/console-web/examples/teams/create.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/teams/delete-membership.md b/docs/examples/1.4.x/console-web/examples/teams/delete-membership.md index 4e7d7e7a746..66274a17b65 100644 --- a/docs/examples/1.4.x/console-web/examples/teams/delete-membership.md +++ b/docs/examples/1.4.x/console-web/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/teams/delete.md b/docs/examples/1.4.x/console-web/examples/teams/delete.md index 0bc778ba635..d51318f89e2 100644 --- a/docs/examples/1.4.x/console-web/examples/teams/delete.md +++ b/docs/examples/1.4.x/console-web/examples/teams/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/teams/get-membership.md b/docs/examples/1.4.x/console-web/examples/teams/get-membership.md index c0bdae5fc6c..881f37d8b09 100644 --- a/docs/examples/1.4.x/console-web/examples/teams/get-membership.md +++ b/docs/examples/1.4.x/console-web/examples/teams/get-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/teams/get-prefs.md b/docs/examples/1.4.x/console-web/examples/teams/get-prefs.md index 2104c5f8986..f039b6e3dab 100644 --- a/docs/examples/1.4.x/console-web/examples/teams/get-prefs.md +++ b/docs/examples/1.4.x/console-web/examples/teams/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/teams/get.md b/docs/examples/1.4.x/console-web/examples/teams/get.md index 2dbfdb4b0b6..068d50c6d10 100644 --- a/docs/examples/1.4.x/console-web/examples/teams/get.md +++ b/docs/examples/1.4.x/console-web/examples/teams/get.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/teams/list-logs.md b/docs/examples/1.4.x/console-web/examples/teams/list-logs.md index 2c3c7311e26..7fb75214172 100644 --- a/docs/examples/1.4.x/console-web/examples/teams/list-logs.md +++ b/docs/examples/1.4.x/console-web/examples/teams/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/teams/list-memberships.md b/docs/examples/1.4.x/console-web/examples/teams/list-memberships.md index f7a7d1a54e6..93e8588a555 100644 --- a/docs/examples/1.4.x/console-web/examples/teams/list-memberships.md +++ b/docs/examples/1.4.x/console-web/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/teams/list.md b/docs/examples/1.4.x/console-web/examples/teams/list.md index 99e482d8f3c..3a5311efe33 100644 --- a/docs/examples/1.4.x/console-web/examples/teams/list.md +++ b/docs/examples/1.4.x/console-web/examples/teams/list.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/teams/update-membership-status.md b/docs/examples/1.4.x/console-web/examples/teams/update-membership-status.md index 1c8ec3a27e3..cdc93967b33 100644 --- a/docs/examples/1.4.x/console-web/examples/teams/update-membership-status.md +++ b/docs/examples/1.4.x/console-web/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/teams/update-membership.md b/docs/examples/1.4.x/console-web/examples/teams/update-membership.md index 1f9051fa77b..906b33ea2c0 100644 --- a/docs/examples/1.4.x/console-web/examples/teams/update-membership.md +++ b/docs/examples/1.4.x/console-web/examples/teams/update-membership.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/teams/update-name.md b/docs/examples/1.4.x/console-web/examples/teams/update-name.md index 4bee8deb525..9a8af03cd92 100644 --- a/docs/examples/1.4.x/console-web/examples/teams/update-name.md +++ b/docs/examples/1.4.x/console-web/examples/teams/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/teams/update-prefs.md b/docs/examples/1.4.x/console-web/examples/teams/update-prefs.md index 7d7ed633281..4f375b52cea 100644 --- a/docs/examples/1.4.x/console-web/examples/teams/update-prefs.md +++ b/docs/examples/1.4.x/console-web/examples/teams/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/create-argon2user.md b/docs/examples/1.4.x/console-web/examples/users/create-argon2user.md index f4dabafe189..e22db4f2987 100644 --- a/docs/examples/1.4.x/console-web/examples/users/create-argon2user.md +++ b/docs/examples/1.4.x/console-web/examples/users/create-argon2user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/create-bcrypt-user.md b/docs/examples/1.4.x/console-web/examples/users/create-bcrypt-user.md index 247f579c9ca..809c9aab772 100644 --- a/docs/examples/1.4.x/console-web/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.4.x/console-web/examples/users/create-bcrypt-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/create-m-d5user.md b/docs/examples/1.4.x/console-web/examples/users/create-m-d5user.md index 8a81f0801bf..13048d3ad68 100644 --- a/docs/examples/1.4.x/console-web/examples/users/create-m-d5user.md +++ b/docs/examples/1.4.x/console-web/examples/users/create-m-d5user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/create-p-h-pass-user.md b/docs/examples/1.4.x/console-web/examples/users/create-p-h-pass-user.md index f7297c10234..448fb53ac24 100644 --- a/docs/examples/1.4.x/console-web/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.4.x/console-web/examples/users/create-p-h-pass-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/create-s-h-a-user.md b/docs/examples/1.4.x/console-web/examples/users/create-s-h-a-user.md index 3cefaf17dfa..d188ec648d7 100644 --- a/docs/examples/1.4.x/console-web/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.4.x/console-web/examples/users/create-s-h-a-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/create-scrypt-modified-user.md b/docs/examples/1.4.x/console-web/examples/users/create-scrypt-modified-user.md index d8889fa2292..da40910a376 100644 --- a/docs/examples/1.4.x/console-web/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.4.x/console-web/examples/users/create-scrypt-modified-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/create-scrypt-user.md b/docs/examples/1.4.x/console-web/examples/users/create-scrypt-user.md index 3c4b357e4c9..ba82d26d9f6 100644 --- a/docs/examples/1.4.x/console-web/examples/users/create-scrypt-user.md +++ b/docs/examples/1.4.x/console-web/examples/users/create-scrypt-user.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/create.md b/docs/examples/1.4.x/console-web/examples/users/create.md index 845895d6a5c..30e6ec9266f 100644 --- a/docs/examples/1.4.x/console-web/examples/users/create.md +++ b/docs/examples/1.4.x/console-web/examples/users/create.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/delete-identity.md b/docs/examples/1.4.x/console-web/examples/users/delete-identity.md index d2aa30d34bd..0324ff08b91 100644 --- a/docs/examples/1.4.x/console-web/examples/users/delete-identity.md +++ b/docs/examples/1.4.x/console-web/examples/users/delete-identity.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/delete-session.md b/docs/examples/1.4.x/console-web/examples/users/delete-session.md index 70404ca574f..9098318a774 100644 --- a/docs/examples/1.4.x/console-web/examples/users/delete-session.md +++ b/docs/examples/1.4.x/console-web/examples/users/delete-session.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/delete-sessions.md b/docs/examples/1.4.x/console-web/examples/users/delete-sessions.md index b02771c7098..c8994db4e5a 100644 --- a/docs/examples/1.4.x/console-web/examples/users/delete-sessions.md +++ b/docs/examples/1.4.x/console-web/examples/users/delete-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/delete.md b/docs/examples/1.4.x/console-web/examples/users/delete.md index 0bb95c395bd..8dd6885f0e5 100644 --- a/docs/examples/1.4.x/console-web/examples/users/delete.md +++ b/docs/examples/1.4.x/console-web/examples/users/delete.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/get-prefs.md b/docs/examples/1.4.x/console-web/examples/users/get-prefs.md index 593552bd033..a0e8f78b94a 100644 --- a/docs/examples/1.4.x/console-web/examples/users/get-prefs.md +++ b/docs/examples/1.4.x/console-web/examples/users/get-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/get-usage.md b/docs/examples/1.4.x/console-web/examples/users/get-usage.md index 59d95e6dcb5..3c38b500d8b 100644 --- a/docs/examples/1.4.x/console-web/examples/users/get-usage.md +++ b/docs/examples/1.4.x/console-web/examples/users/get-usage.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/get.md b/docs/examples/1.4.x/console-web/examples/users/get.md index 46cee750f7b..816b41ad399 100644 --- a/docs/examples/1.4.x/console-web/examples/users/get.md +++ b/docs/examples/1.4.x/console-web/examples/users/get.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/list-identities.md b/docs/examples/1.4.x/console-web/examples/users/list-identities.md index 214fa9728da..bbddf9b560e 100644 --- a/docs/examples/1.4.x/console-web/examples/users/list-identities.md +++ b/docs/examples/1.4.x/console-web/examples/users/list-identities.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/list-logs.md b/docs/examples/1.4.x/console-web/examples/users/list-logs.md index ded1e98b40b..cb2402e2d07 100644 --- a/docs/examples/1.4.x/console-web/examples/users/list-logs.md +++ b/docs/examples/1.4.x/console-web/examples/users/list-logs.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/list-memberships.md b/docs/examples/1.4.x/console-web/examples/users/list-memberships.md index b47f7acf57a..3f9dca5ab21 100644 --- a/docs/examples/1.4.x/console-web/examples/users/list-memberships.md +++ b/docs/examples/1.4.x/console-web/examples/users/list-memberships.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/list-sessions.md b/docs/examples/1.4.x/console-web/examples/users/list-sessions.md index 087834e5695..0c0109550bd 100644 --- a/docs/examples/1.4.x/console-web/examples/users/list-sessions.md +++ b/docs/examples/1.4.x/console-web/examples/users/list-sessions.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/list.md b/docs/examples/1.4.x/console-web/examples/users/list.md index 28a8258b126..f658f432bac 100644 --- a/docs/examples/1.4.x/console-web/examples/users/list.md +++ b/docs/examples/1.4.x/console-web/examples/users/list.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/update-email-verification.md b/docs/examples/1.4.x/console-web/examples/users/update-email-verification.md index 019b0723714..7b9d2cc424e 100644 --- a/docs/examples/1.4.x/console-web/examples/users/update-email-verification.md +++ b/docs/examples/1.4.x/console-web/examples/users/update-email-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/update-email.md b/docs/examples/1.4.x/console-web/examples/users/update-email.md index e37d03a01c9..fe1f2500f83 100644 --- a/docs/examples/1.4.x/console-web/examples/users/update-email.md +++ b/docs/examples/1.4.x/console-web/examples/users/update-email.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/update-labels.md b/docs/examples/1.4.x/console-web/examples/users/update-labels.md index 9d61425d708..5ad24020a58 100644 --- a/docs/examples/1.4.x/console-web/examples/users/update-labels.md +++ b/docs/examples/1.4.x/console-web/examples/users/update-labels.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/update-name.md b/docs/examples/1.4.x/console-web/examples/users/update-name.md index 2834c747da4..2d491d7a569 100644 --- a/docs/examples/1.4.x/console-web/examples/users/update-name.md +++ b/docs/examples/1.4.x/console-web/examples/users/update-name.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/update-password.md b/docs/examples/1.4.x/console-web/examples/users/update-password.md index 5192abda89b..8edb97138fc 100644 --- a/docs/examples/1.4.x/console-web/examples/users/update-password.md +++ b/docs/examples/1.4.x/console-web/examples/users/update-password.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/update-phone-verification.md b/docs/examples/1.4.x/console-web/examples/users/update-phone-verification.md index 17ddf467d96..d4fe6f00a18 100644 --- a/docs/examples/1.4.x/console-web/examples/users/update-phone-verification.md +++ b/docs/examples/1.4.x/console-web/examples/users/update-phone-verification.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/update-phone.md b/docs/examples/1.4.x/console-web/examples/users/update-phone.md index a1d85aaaca4..ce74c710226 100644 --- a/docs/examples/1.4.x/console-web/examples/users/update-phone.md +++ b/docs/examples/1.4.x/console-web/examples/users/update-phone.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/update-prefs.md b/docs/examples/1.4.x/console-web/examples/users/update-prefs.md index e3c5b76c2aa..c05c4df53d6 100644 --- a/docs/examples/1.4.x/console-web/examples/users/update-prefs.md +++ b/docs/examples/1.4.x/console-web/examples/users/update-prefs.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/users/update-status.md b/docs/examples/1.4.x/console-web/examples/users/update-status.md index eafbec728f5..87e2197cfc6 100644 --- a/docs/examples/1.4.x/console-web/examples/users/update-status.md +++ b/docs/examples/1.4.x/console-web/examples/users/update-status.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/vcs/create-repository-detection.md b/docs/examples/1.4.x/console-web/examples/vcs/create-repository-detection.md index dc4591ef28b..8ac0a506ecb 100644 --- a/docs/examples/1.4.x/console-web/examples/vcs/create-repository-detection.md +++ b/docs/examples/1.4.x/console-web/examples/vcs/create-repository-detection.md @@ -5,7 +5,7 @@ const client = new Client(); const vcs = new Vcs(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/vcs/create-repository.md b/docs/examples/1.4.x/console-web/examples/vcs/create-repository.md index 84f919bbc18..d72fe1ee770 100644 --- a/docs/examples/1.4.x/console-web/examples/vcs/create-repository.md +++ b/docs/examples/1.4.x/console-web/examples/vcs/create-repository.md @@ -5,7 +5,7 @@ const client = new Client(); const vcs = new Vcs(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/vcs/delete-installation.md b/docs/examples/1.4.x/console-web/examples/vcs/delete-installation.md index b56f76b09f7..9fd383ea011 100644 --- a/docs/examples/1.4.x/console-web/examples/vcs/delete-installation.md +++ b/docs/examples/1.4.x/console-web/examples/vcs/delete-installation.md @@ -5,7 +5,7 @@ const client = new Client(); const vcs = new Vcs(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/vcs/get-installation.md b/docs/examples/1.4.x/console-web/examples/vcs/get-installation.md index 6dc92e92b06..c5584d2b61c 100644 --- a/docs/examples/1.4.x/console-web/examples/vcs/get-installation.md +++ b/docs/examples/1.4.x/console-web/examples/vcs/get-installation.md @@ -5,7 +5,7 @@ const client = new Client(); const vcs = new Vcs(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/vcs/get-repository.md b/docs/examples/1.4.x/console-web/examples/vcs/get-repository.md index b2c867d939d..b5d84993122 100644 --- a/docs/examples/1.4.x/console-web/examples/vcs/get-repository.md +++ b/docs/examples/1.4.x/console-web/examples/vcs/get-repository.md @@ -5,7 +5,7 @@ const client = new Client(); const vcs = new Vcs(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/vcs/list-installations.md b/docs/examples/1.4.x/console-web/examples/vcs/list-installations.md index f18d9993365..4c779dc1005 100644 --- a/docs/examples/1.4.x/console-web/examples/vcs/list-installations.md +++ b/docs/examples/1.4.x/console-web/examples/vcs/list-installations.md @@ -5,7 +5,7 @@ const client = new Client(); const vcs = new Vcs(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/vcs/list-repositories.md b/docs/examples/1.4.x/console-web/examples/vcs/list-repositories.md index 85eea5d62f1..50f0061d0cc 100644 --- a/docs/examples/1.4.x/console-web/examples/vcs/list-repositories.md +++ b/docs/examples/1.4.x/console-web/examples/vcs/list-repositories.md @@ -5,7 +5,7 @@ const client = new Client(); const vcs = new Vcs(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/vcs/list-repository-branches.md b/docs/examples/1.4.x/console-web/examples/vcs/list-repository-branches.md index 1ebc3a5fa19..c0ccf9e105e 100644 --- a/docs/examples/1.4.x/console-web/examples/vcs/list-repository-branches.md +++ b/docs/examples/1.4.x/console-web/examples/vcs/list-repository-branches.md @@ -5,7 +5,7 @@ const client = new Client(); const vcs = new Vcs(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/console-web/examples/vcs/update-external-deployments.md b/docs/examples/1.4.x/console-web/examples/vcs/update-external-deployments.md index a95a2c1e350..28b65b82d76 100644 --- a/docs/examples/1.4.x/console-web/examples/vcs/update-external-deployments.md +++ b/docs/examples/1.4.x/console-web/examples/vcs/update-external-deployments.md @@ -5,7 +5,7 @@ const client = new Client(); const vcs = new Vcs(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/create-phone-verification.md b/docs/examples/1.4.x/server-dart/examples/account/create-phone-verification.md index 912f8c3b1ec..85ea968b942 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/create-phone-verification.md +++ b/docs/examples/1.4.x/server-dart/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/create-recovery.md b/docs/examples/1.4.x/server-dart/examples/account/create-recovery.md index d9f13957c7e..0fe2889a76b 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/create-recovery.md +++ b/docs/examples/1.4.x/server-dart/examples/account/create-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/create-verification.md b/docs/examples/1.4.x/server-dart/examples/account/create-verification.md index cca3c7b7742..8daf5d7b1fb 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/create-verification.md +++ b/docs/examples/1.4.x/server-dart/examples/account/create-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/delete-identity.md b/docs/examples/1.4.x/server-dart/examples/account/delete-identity.md index 7b8f09a353f..09f7ea42221 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/delete-identity.md +++ b/docs/examples/1.4.x/server-dart/examples/account/delete-identity.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/delete-session.md b/docs/examples/1.4.x/server-dart/examples/account/delete-session.md index 9486ec9b80a..92a0fee9a21 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/delete-session.md +++ b/docs/examples/1.4.x/server-dart/examples/account/delete-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/delete-sessions.md b/docs/examples/1.4.x/server-dart/examples/account/delete-sessions.md index a5732cb68e4..2477115be14 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/delete-sessions.md +++ b/docs/examples/1.4.x/server-dart/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/get-prefs.md b/docs/examples/1.4.x/server-dart/examples/account/get-prefs.md index 527a71f3b13..fcf164dde07 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/get-prefs.md +++ b/docs/examples/1.4.x/server-dart/examples/account/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/get-session.md b/docs/examples/1.4.x/server-dart/examples/account/get-session.md index 6eb711ab4d7..029d7bc3d99 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/get-session.md +++ b/docs/examples/1.4.x/server-dart/examples/account/get-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/get.md b/docs/examples/1.4.x/server-dart/examples/account/get.md index c72fdddb107..805061bd701 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/get.md +++ b/docs/examples/1.4.x/server-dart/examples/account/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/list-identities.md b/docs/examples/1.4.x/server-dart/examples/account/list-identities.md index 63789e529ff..67c9dbf4754 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/list-identities.md +++ b/docs/examples/1.4.x/server-dart/examples/account/list-identities.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/list-logs.md b/docs/examples/1.4.x/server-dart/examples/account/list-logs.md index 68d2c49f743..41cdad74c0c 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/list-logs.md +++ b/docs/examples/1.4.x/server-dart/examples/account/list-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/list-sessions.md b/docs/examples/1.4.x/server-dart/examples/account/list-sessions.md index 0d6567b5f31..30bb6fc8c95 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/list-sessions.md +++ b/docs/examples/1.4.x/server-dart/examples/account/list-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/update-email.md b/docs/examples/1.4.x/server-dart/examples/account/update-email.md index b83f7d86da9..ad77ccfd9a1 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/update-email.md +++ b/docs/examples/1.4.x/server-dart/examples/account/update-email.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/update-name.md b/docs/examples/1.4.x/server-dart/examples/account/update-name.md index 0bd27cf2046..7df0f9cc019 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/update-name.md +++ b/docs/examples/1.4.x/server-dart/examples/account/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/update-password.md b/docs/examples/1.4.x/server-dart/examples/account/update-password.md index d5e27a7574e..559b875ebf1 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/update-password.md +++ b/docs/examples/1.4.x/server-dart/examples/account/update-password.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/update-phone-verification.md b/docs/examples/1.4.x/server-dart/examples/account/update-phone-verification.md index f2995b9b93f..4892311ef2a 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/update-phone-verification.md +++ b/docs/examples/1.4.x/server-dart/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/update-phone.md b/docs/examples/1.4.x/server-dart/examples/account/update-phone.md index 5848da5d10d..465593c0ab5 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/update-phone.md +++ b/docs/examples/1.4.x/server-dart/examples/account/update-phone.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/update-prefs.md b/docs/examples/1.4.x/server-dart/examples/account/update-prefs.md index ffbe7002884..7ffef542be5 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/update-prefs.md +++ b/docs/examples/1.4.x/server-dart/examples/account/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/update-recovery.md b/docs/examples/1.4.x/server-dart/examples/account/update-recovery.md index c2cf9d2396f..e3ade8270b2 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/update-recovery.md +++ b/docs/examples/1.4.x/server-dart/examples/account/update-recovery.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/update-session.md b/docs/examples/1.4.x/server-dart/examples/account/update-session.md index 61e11e27af9..859f1a81f7a 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/update-session.md +++ b/docs/examples/1.4.x/server-dart/examples/account/update-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/update-status.md b/docs/examples/1.4.x/server-dart/examples/account/update-status.md index 12f733334a3..610784294a0 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/update-status.md +++ b/docs/examples/1.4.x/server-dart/examples/account/update-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/account/update-verification.md b/docs/examples/1.4.x/server-dart/examples/account/update-verification.md index 40e36426a10..7b291b61605 100644 --- a/docs/examples/1.4.x/server-dart/examples/account/update-verification.md +++ b/docs/examples/1.4.x/server-dart/examples/account/update-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/avatars/get-browser.md b/docs/examples/1.4.x/server-dart/examples/avatars/get-browser.md index 0bac9df4ef9..abca00ba4b4 100644 --- a/docs/examples/1.4.x/server-dart/examples/avatars/get-browser.md +++ b/docs/examples/1.4.x/server-dart/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/avatars/get-credit-card.md b/docs/examples/1.4.x/server-dart/examples/avatars/get-credit-card.md index b9a8166e485..b50b1304f9e 100644 --- a/docs/examples/1.4.x/server-dart/examples/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/server-dart/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/avatars/get-favicon.md b/docs/examples/1.4.x/server-dart/examples/avatars/get-favicon.md index 6a728e7792a..a547908fa47 100644 --- a/docs/examples/1.4.x/server-dart/examples/avatars/get-favicon.md +++ b/docs/examples/1.4.x/server-dart/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/avatars/get-flag.md b/docs/examples/1.4.x/server-dart/examples/avatars/get-flag.md index 02e4880926f..8e2d9f14900 100644 --- a/docs/examples/1.4.x/server-dart/examples/avatars/get-flag.md +++ b/docs/examples/1.4.x/server-dart/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/avatars/get-image.md b/docs/examples/1.4.x/server-dart/examples/avatars/get-image.md index b1d5e338844..746ec079b0f 100644 --- a/docs/examples/1.4.x/server-dart/examples/avatars/get-image.md +++ b/docs/examples/1.4.x/server-dart/examples/avatars/get-image.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/avatars/get-initials.md b/docs/examples/1.4.x/server-dart/examples/avatars/get-initials.md index 5a68caf1d95..c979fddd08a 100644 --- a/docs/examples/1.4.x/server-dart/examples/avatars/get-initials.md +++ b/docs/examples/1.4.x/server-dart/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/avatars/get-q-r.md b/docs/examples/1.4.x/server-dart/examples/avatars/get-q-r.md index 8283b9bdf45..6ab3cf709d8 100644 --- a/docs/examples/1.4.x/server-dart/examples/avatars/get-q-r.md +++ b/docs/examples/1.4.x/server-dart/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/create-boolean-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/create-boolean-attribute.md index 224719685b5..0fb759bcb22 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/create-boolean-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/create-collection.md b/docs/examples/1.4.x/server-dart/examples/databases/create-collection.md index c90183deed2..e63877b39f7 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/create-collection.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/create-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/create-datetime-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/create-datetime-attribute.md index 24c44088f3d..f56eec54ec0 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/create-datetime-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/create-document.md b/docs/examples/1.4.x/server-dart/examples/databases/create-document.md index 00d844da0fc..1f6f6b9703d 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/create-document.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/create-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/create-email-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/create-email-attribute.md index 92fd32037b8..ea1ebfb480a 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/create-email-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/create-email-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/create-enum-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/create-enum-attribute.md index fa8ad92015f..03773c58ebf 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/create-enum-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/create-float-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/create-float-attribute.md index 96047bf2b21..94c716b9d47 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/create-float-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/create-float-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/create-index.md b/docs/examples/1.4.x/server-dart/examples/databases/create-index.md index c16a02719e7..248d9632a09 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/create-index.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/create-index.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/create-integer-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/create-integer-attribute.md index bc4f12f0c4f..4b1d76195dc 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/create-integer-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/create-ip-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/create-ip-attribute.md index ef3e985a384..4b3586ae34e 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/create-ip-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/create-relationship-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/create-relationship-attribute.md index 01f2b42f754..01c7e0e5db3 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/create-relationship-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/create-string-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/create-string-attribute.md index 14f2769dbbd..ed973e8c537 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/create-string-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/create-string-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/create-url-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/create-url-attribute.md index 4cf3e99a727..62b6970b27b 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/create-url-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/create-url-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/create.md b/docs/examples/1.4.x/server-dart/examples/databases/create.md index cbaf3b742d0..390baabb610 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/create.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/delete-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/delete-attribute.md index e9865bfe220..b52ba1f39de 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/delete-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/delete-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/delete-collection.md b/docs/examples/1.4.x/server-dart/examples/databases/delete-collection.md index 58869201153..8de343f8691 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/delete-collection.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/delete-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/delete-document.md b/docs/examples/1.4.x/server-dart/examples/databases/delete-document.md index 0d298f3b420..bcb4b7a2da1 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/delete-document.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/delete-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/delete-index.md b/docs/examples/1.4.x/server-dart/examples/databases/delete-index.md index be5b2a5c9f6..8422593fe55 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/delete-index.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/delete-index.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/delete.md b/docs/examples/1.4.x/server-dart/examples/databases/delete.md index ff19beea69a..bd4c483f014 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/delete.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/get-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/get-attribute.md index c27ddb648c5..e066f70d136 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/get-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/get-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/get-collection.md b/docs/examples/1.4.x/server-dart/examples/databases/get-collection.md index 359f0df829c..2678a1a5432 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/get-collection.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/get-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/get-document.md b/docs/examples/1.4.x/server-dart/examples/databases/get-document.md index 2141abf4bec..4c5beadccfe 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/get-document.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/get-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/get-index.md b/docs/examples/1.4.x/server-dart/examples/databases/get-index.md index 2b8a90318d5..9b881f7d788 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/get-index.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/get-index.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/get.md b/docs/examples/1.4.x/server-dart/examples/databases/get.md index f0cc118b960..7a2d9591013 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/get.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/list-attributes.md b/docs/examples/1.4.x/server-dart/examples/databases/list-attributes.md index 60ca58f3c32..1c9d635195d 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/list-attributes.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/list-attributes.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/list-collections.md b/docs/examples/1.4.x/server-dart/examples/databases/list-collections.md index a10038db119..cd120817dc8 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/list-collections.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/list-collections.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/list-documents.md b/docs/examples/1.4.x/server-dart/examples/databases/list-documents.md index 70299774fb6..41703ae26bc 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/list-documents.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/list-documents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/list-indexes.md b/docs/examples/1.4.x/server-dart/examples/databases/list-indexes.md index 6703ebf35a5..d959370fc6a 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/list-indexes.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/list-indexes.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/list.md b/docs/examples/1.4.x/server-dart/examples/databases/list.md index d9bd06ad34e..da25b576d7f 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/list.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/update-boolean-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/update-boolean-attribute.md index 94853d2819e..95b9735957b 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/update-boolean-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/update-collection.md b/docs/examples/1.4.x/server-dart/examples/databases/update-collection.md index a5f32dead1b..4501459265b 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/update-collection.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/update-collection.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/update-datetime-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/update-datetime-attribute.md index f93aa815005..200266fda0c 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/update-datetime-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/update-document.md b/docs/examples/1.4.x/server-dart/examples/databases/update-document.md index fb08413f2fd..4b34007c497 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/update-document.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/update-document.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/update-email-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/update-email-attribute.md index 8fd104db321..c79242fcc94 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/update-email-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/update-email-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/update-enum-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/update-enum-attribute.md index 20c44817ef5..29bbb49e496 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/update-enum-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/update-float-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/update-float-attribute.md index 50432542c6c..b395495516b 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/update-float-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/update-float-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/update-integer-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/update-integer-attribute.md index 2d3da6ced66..659631462c9 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/update-integer-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/update-ip-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/update-ip-attribute.md index 8c4cf4f3f24..c3bfa069b71 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/update-ip-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/update-relationship-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/update-relationship-attribute.md index 239e23daab4..35943d8f1a7 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/update-relationship-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/update-string-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/update-string-attribute.md index 7f24507abae..54a3d0df6e4 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/update-string-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/update-string-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/update-url-attribute.md b/docs/examples/1.4.x/server-dart/examples/databases/update-url-attribute.md index d7dd6758bbd..9787d2b7c51 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/update-url-attribute.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/update-url-attribute.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/databases/update.md b/docs/examples/1.4.x/server-dart/examples/databases/update.md index 59070cefa92..7187605e819 100644 --- a/docs/examples/1.4.x/server-dart/examples/databases/update.md +++ b/docs/examples/1.4.x/server-dart/examples/databases/update.md @@ -5,7 +5,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/create-build.md b/docs/examples/1.4.x/server-dart/examples/functions/create-build.md index 530ba6deab7..eea5cc14c0b 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/create-build.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/create-build.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/create-deployment.md b/docs/examples/1.4.x/server-dart/examples/functions/create-deployment.md index 8be0f1a725d..b31b345c998 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/create-deployment.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/create-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/create-execution.md b/docs/examples/1.4.x/server-dart/examples/functions/create-execution.md index f5de49f7cf7..610579eef0c 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/create-execution.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/create-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/create-variable.md b/docs/examples/1.4.x/server-dart/examples/functions/create-variable.md index 50cd063ca13..2990bf98be1 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/create-variable.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/create-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/create.md b/docs/examples/1.4.x/server-dart/examples/functions/create.md index 73d84fcf9a4..7e00eb099af 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/create.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/delete-deployment.md b/docs/examples/1.4.x/server-dart/examples/functions/delete-deployment.md index e65380c5012..339c0d60ce4 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/delete-deployment.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/delete-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/delete-variable.md b/docs/examples/1.4.x/server-dart/examples/functions/delete-variable.md index 87c7f407b56..ad86ec73cba 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/delete-variable.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/delete-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/delete.md b/docs/examples/1.4.x/server-dart/examples/functions/delete.md index 51633669120..276f7effa20 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/delete.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/download-deployment.md b/docs/examples/1.4.x/server-dart/examples/functions/download-deployment.md index d77d3aaff8c..aca94995266 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/download-deployment.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/download-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/get-deployment.md b/docs/examples/1.4.x/server-dart/examples/functions/get-deployment.md index 9cab571e94d..f46260a2ff5 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/get-deployment.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/get-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/get-execution.md b/docs/examples/1.4.x/server-dart/examples/functions/get-execution.md index 6cadde64262..6749539306b 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/get-execution.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/get-execution.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/get-variable.md b/docs/examples/1.4.x/server-dart/examples/functions/get-variable.md index 924bee2bffc..7223c5add9c 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/get-variable.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/get-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/get.md b/docs/examples/1.4.x/server-dart/examples/functions/get.md index 503ab207091..1073d33b1a2 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/get.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/list-deployments.md b/docs/examples/1.4.x/server-dart/examples/functions/list-deployments.md index b12f9eba87e..d1b80ddd956 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/list-deployments.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/list-deployments.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/list-executions.md b/docs/examples/1.4.x/server-dart/examples/functions/list-executions.md index 3d66a4496ac..255f38a299d 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/list-executions.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/list-executions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/list-runtimes.md b/docs/examples/1.4.x/server-dart/examples/functions/list-runtimes.md index 091a1116f70..a91a501814f 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/list-runtimes.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/list-runtimes.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/list-variables.md b/docs/examples/1.4.x/server-dart/examples/functions/list-variables.md index f3c6655b141..ea5e4779873 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/list-variables.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/list-variables.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/list.md b/docs/examples/1.4.x/server-dart/examples/functions/list.md index 4f2b11404d7..e5fde72144c 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/list.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/update-deployment.md b/docs/examples/1.4.x/server-dart/examples/functions/update-deployment.md index d503aecb3b4..cd9a57018a0 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/update-deployment.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/update-deployment.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/update-variable.md b/docs/examples/1.4.x/server-dart/examples/functions/update-variable.md index 126d2644701..d40a831970b 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/update-variable.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/update-variable.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/functions/update.md b/docs/examples/1.4.x/server-dart/examples/functions/update.md index 2b92f553874..bf36155e7ef 100644 --- a/docs/examples/1.4.x/server-dart/examples/functions/update.md +++ b/docs/examples/1.4.x/server-dart/examples/functions/update.md @@ -5,7 +5,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/graphql/mutation.md b/docs/examples/1.4.x/server-dart/examples/graphql/mutation.md index 780ee09f4ac..160c049dc29 100644 --- a/docs/examples/1.4.x/server-dart/examples/graphql/mutation.md +++ b/docs/examples/1.4.x/server-dart/examples/graphql/mutation.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/graphql/query.md b/docs/examples/1.4.x/server-dart/examples/graphql/query.md index 7f22f5360d8..4191d3c271d 100644 --- a/docs/examples/1.4.x/server-dart/examples/graphql/query.md +++ b/docs/examples/1.4.x/server-dart/examples/graphql/query.md @@ -5,7 +5,7 @@ void main() { // Init SDK Graphql graphql = Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-antivirus.md b/docs/examples/1.4.x/server-dart/examples/health/get-antivirus.md index 922dcfa1368..7b8d638d8e1 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-antivirus.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-antivirus.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-cache.md b/docs/examples/1.4.x/server-dart/examples/health/get-cache.md index 4b63edeee3a..08ea1370d16 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-cache.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-cache.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-d-b.md b/docs/examples/1.4.x/server-dart/examples/health/get-d-b.md index 65188c096e5..30cf5c928f5 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-d-b.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-d-b.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-pub-sub.md b/docs/examples/1.4.x/server-dart/examples/health/get-pub-sub.md index ef20bed89fc..5eaed7c9f85 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-pub-sub.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-pub-sub.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-queue-builds.md b/docs/examples/1.4.x/server-dart/examples/health/get-queue-builds.md index e1236d9e36a..257ce544bf0 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-queue-builds.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-queue-builds.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-queue-certificates.md b/docs/examples/1.4.x/server-dart/examples/health/get-queue-certificates.md index 4063ab35141..884c6b31f16 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-queue-certificates.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-queue-certificates.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-queue-databases.md b/docs/examples/1.4.x/server-dart/examples/health/get-queue-databases.md index a1540fbb46c..bf9a83b2ccc 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-queue-databases.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-queue-databases.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-queue-deletes.md b/docs/examples/1.4.x/server-dart/examples/health/get-queue-deletes.md index 7720d8231cd..a1598d0f715 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-queue-deletes.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-queue-deletes.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-queue-functions.md b/docs/examples/1.4.x/server-dart/examples/health/get-queue-functions.md index 5ebaad64848..048fce8d326 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-queue-functions.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-queue-functions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-queue-logs.md b/docs/examples/1.4.x/server-dart/examples/health/get-queue-logs.md index 11a5285439a..42195528570 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-queue-logs.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-queue-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-queue-mails.md b/docs/examples/1.4.x/server-dart/examples/health/get-queue-mails.md index 52954f1d589..f7c6d49c220 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-queue-mails.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-queue-mails.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-queue-messaging.md b/docs/examples/1.4.x/server-dart/examples/health/get-queue-messaging.md index 794c2ec02ea..f774ac01c0b 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-queue-messaging.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-queue-messaging.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-queue-migrations.md b/docs/examples/1.4.x/server-dart/examples/health/get-queue-migrations.md index cc0989a64c2..f60a16271e5 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-queue-migrations.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-queue-migrations.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-queue-webhooks.md b/docs/examples/1.4.x/server-dart/examples/health/get-queue-webhooks.md index a43f5f8423c..5b012125e1f 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-queue-webhooks.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-queue.md b/docs/examples/1.4.x/server-dart/examples/health/get-queue.md index 8b7c823dc77..c9ff3e28fc7 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-queue.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-queue.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-storage-local.md b/docs/examples/1.4.x/server-dart/examples/health/get-storage-local.md index 4a586690fee..e85aac8e012 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-storage-local.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-storage-local.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get-time.md b/docs/examples/1.4.x/server-dart/examples/health/get-time.md index d8166dd3d16..716216e6db3 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get-time.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get-time.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/health/get.md b/docs/examples/1.4.x/server-dart/examples/health/get.md index 1be37e5a934..2ea2ea669ea 100644 --- a/docs/examples/1.4.x/server-dart/examples/health/get.md +++ b/docs/examples/1.4.x/server-dart/examples/health/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Health health = Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/locale/get.md b/docs/examples/1.4.x/server-dart/examples/locale/get.md index 9ecb18c52d6..a3ebf5cefde 100644 --- a/docs/examples/1.4.x/server-dart/examples/locale/get.md +++ b/docs/examples/1.4.x/server-dart/examples/locale/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/locale/list-codes.md b/docs/examples/1.4.x/server-dart/examples/locale/list-codes.md index abc4528cfcc..26aac035e5c 100644 --- a/docs/examples/1.4.x/server-dart/examples/locale/list-codes.md +++ b/docs/examples/1.4.x/server-dart/examples/locale/list-codes.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/locale/list-continents.md b/docs/examples/1.4.x/server-dart/examples/locale/list-continents.md index e6849303b1b..a74df54886b 100644 --- a/docs/examples/1.4.x/server-dart/examples/locale/list-continents.md +++ b/docs/examples/1.4.x/server-dart/examples/locale/list-continents.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/locale/list-countries-e-u.md b/docs/examples/1.4.x/server-dart/examples/locale/list-countries-e-u.md index 2d1ddcf8f09..2a81d9afef2 100644 --- a/docs/examples/1.4.x/server-dart/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/server-dart/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/locale/list-countries-phones.md b/docs/examples/1.4.x/server-dart/examples/locale/list-countries-phones.md index 23057013393..2d1400a9604 100644 --- a/docs/examples/1.4.x/server-dart/examples/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/server-dart/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/locale/list-countries.md b/docs/examples/1.4.x/server-dart/examples/locale/list-countries.md index ef1158339ff..b4d00e52e7b 100644 --- a/docs/examples/1.4.x/server-dart/examples/locale/list-countries.md +++ b/docs/examples/1.4.x/server-dart/examples/locale/list-countries.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/locale/list-currencies.md b/docs/examples/1.4.x/server-dart/examples/locale/list-currencies.md index 0810f3dafb2..2c46eee2b2e 100644 --- a/docs/examples/1.4.x/server-dart/examples/locale/list-currencies.md +++ b/docs/examples/1.4.x/server-dart/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/locale/list-languages.md b/docs/examples/1.4.x/server-dart/examples/locale/list-languages.md index f3d642cc480..6d1f00219e2 100644 --- a/docs/examples/1.4.x/server-dart/examples/locale/list-languages.md +++ b/docs/examples/1.4.x/server-dart/examples/locale/list-languages.md @@ -5,7 +5,7 @@ void main() { // Init SDK Locale locale = Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/storage/create-bucket.md b/docs/examples/1.4.x/server-dart/examples/storage/create-bucket.md index 745a6b508d4..647d846e06a 100644 --- a/docs/examples/1.4.x/server-dart/examples/storage/create-bucket.md +++ b/docs/examples/1.4.x/server-dart/examples/storage/create-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/storage/create-file.md b/docs/examples/1.4.x/server-dart/examples/storage/create-file.md index ab4c661a541..760c95dcfb1 100644 --- a/docs/examples/1.4.x/server-dart/examples/storage/create-file.md +++ b/docs/examples/1.4.x/server-dart/examples/storage/create-file.md @@ -6,7 +6,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/storage/delete-bucket.md b/docs/examples/1.4.x/server-dart/examples/storage/delete-bucket.md index de516561bdb..a7c7065ba86 100644 --- a/docs/examples/1.4.x/server-dart/examples/storage/delete-bucket.md +++ b/docs/examples/1.4.x/server-dart/examples/storage/delete-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/storage/delete-file.md b/docs/examples/1.4.x/server-dart/examples/storage/delete-file.md index 8e4460bb009..ddb297c6b7a 100644 --- a/docs/examples/1.4.x/server-dart/examples/storage/delete-file.md +++ b/docs/examples/1.4.x/server-dart/examples/storage/delete-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/storage/get-bucket.md b/docs/examples/1.4.x/server-dart/examples/storage/get-bucket.md index 9e39076e355..26fec00cdf4 100644 --- a/docs/examples/1.4.x/server-dart/examples/storage/get-bucket.md +++ b/docs/examples/1.4.x/server-dart/examples/storage/get-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/storage/get-file-download.md b/docs/examples/1.4.x/server-dart/examples/storage/get-file-download.md index 6534fe33fff..632612a285e 100644 --- a/docs/examples/1.4.x/server-dart/examples/storage/get-file-download.md +++ b/docs/examples/1.4.x/server-dart/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/storage/get-file-preview.md b/docs/examples/1.4.x/server-dart/examples/storage/get-file-preview.md index ca16d635b26..70f55e3e267 100644 --- a/docs/examples/1.4.x/server-dart/examples/storage/get-file-preview.md +++ b/docs/examples/1.4.x/server-dart/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/storage/get-file-view.md b/docs/examples/1.4.x/server-dart/examples/storage/get-file-view.md index 5c3d69dcbc6..59176877b02 100644 --- a/docs/examples/1.4.x/server-dart/examples/storage/get-file-view.md +++ b/docs/examples/1.4.x/server-dart/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/storage/get-file.md b/docs/examples/1.4.x/server-dart/examples/storage/get-file.md index bc45c3f1e83..024b7fc63d3 100644 --- a/docs/examples/1.4.x/server-dart/examples/storage/get-file.md +++ b/docs/examples/1.4.x/server-dart/examples/storage/get-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/storage/list-buckets.md b/docs/examples/1.4.x/server-dart/examples/storage/list-buckets.md index 6a35febb390..fb46523303b 100644 --- a/docs/examples/1.4.x/server-dart/examples/storage/list-buckets.md +++ b/docs/examples/1.4.x/server-dart/examples/storage/list-buckets.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/storage/list-files.md b/docs/examples/1.4.x/server-dart/examples/storage/list-files.md index 40b8d3bce5e..bfafeb0b0a0 100644 --- a/docs/examples/1.4.x/server-dart/examples/storage/list-files.md +++ b/docs/examples/1.4.x/server-dart/examples/storage/list-files.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/storage/update-bucket.md b/docs/examples/1.4.x/server-dart/examples/storage/update-bucket.md index 064d2f2e37a..3bdc11240ff 100644 --- a/docs/examples/1.4.x/server-dart/examples/storage/update-bucket.md +++ b/docs/examples/1.4.x/server-dart/examples/storage/update-bucket.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/storage/update-file.md b/docs/examples/1.4.x/server-dart/examples/storage/update-file.md index 2fa999a5583..4e0178e27da 100644 --- a/docs/examples/1.4.x/server-dart/examples/storage/update-file.md +++ b/docs/examples/1.4.x/server-dart/examples/storage/update-file.md @@ -5,7 +5,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/teams/create-membership.md b/docs/examples/1.4.x/server-dart/examples/teams/create-membership.md index cc8611817cb..ae9146f8c8e 100644 --- a/docs/examples/1.4.x/server-dart/examples/teams/create-membership.md +++ b/docs/examples/1.4.x/server-dart/examples/teams/create-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/teams/create.md b/docs/examples/1.4.x/server-dart/examples/teams/create.md index 74895b23a0f..81c3a718d4b 100644 --- a/docs/examples/1.4.x/server-dart/examples/teams/create.md +++ b/docs/examples/1.4.x/server-dart/examples/teams/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/teams/delete-membership.md b/docs/examples/1.4.x/server-dart/examples/teams/delete-membership.md index 8c135994d67..07d596a1b3b 100644 --- a/docs/examples/1.4.x/server-dart/examples/teams/delete-membership.md +++ b/docs/examples/1.4.x/server-dart/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/teams/delete.md b/docs/examples/1.4.x/server-dart/examples/teams/delete.md index a5fee4d0841..2505cdfacda 100644 --- a/docs/examples/1.4.x/server-dart/examples/teams/delete.md +++ b/docs/examples/1.4.x/server-dart/examples/teams/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/teams/get-membership.md b/docs/examples/1.4.x/server-dart/examples/teams/get-membership.md index 4193b245f41..cf9d4b80a23 100644 --- a/docs/examples/1.4.x/server-dart/examples/teams/get-membership.md +++ b/docs/examples/1.4.x/server-dart/examples/teams/get-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/teams/get-prefs.md b/docs/examples/1.4.x/server-dart/examples/teams/get-prefs.md index 27f2ef15ad6..27608b6699d 100644 --- a/docs/examples/1.4.x/server-dart/examples/teams/get-prefs.md +++ b/docs/examples/1.4.x/server-dart/examples/teams/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/teams/get.md b/docs/examples/1.4.x/server-dart/examples/teams/get.md index daa67c4eb82..8dd731b1bec 100644 --- a/docs/examples/1.4.x/server-dart/examples/teams/get.md +++ b/docs/examples/1.4.x/server-dart/examples/teams/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/teams/list-memberships.md b/docs/examples/1.4.x/server-dart/examples/teams/list-memberships.md index 74c66c03190..71cdf466ccf 100644 --- a/docs/examples/1.4.x/server-dart/examples/teams/list-memberships.md +++ b/docs/examples/1.4.x/server-dart/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/teams/list.md b/docs/examples/1.4.x/server-dart/examples/teams/list.md index 11033f33da8..7d5e4ebef77 100644 --- a/docs/examples/1.4.x/server-dart/examples/teams/list.md +++ b/docs/examples/1.4.x/server-dart/examples/teams/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/teams/update-membership-status.md b/docs/examples/1.4.x/server-dart/examples/teams/update-membership-status.md index ca704e0fdba..50f9693bf94 100644 --- a/docs/examples/1.4.x/server-dart/examples/teams/update-membership-status.md +++ b/docs/examples/1.4.x/server-dart/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/teams/update-membership.md b/docs/examples/1.4.x/server-dart/examples/teams/update-membership.md index 85b126c13a3..7ae596a5557 100644 --- a/docs/examples/1.4.x/server-dart/examples/teams/update-membership.md +++ b/docs/examples/1.4.x/server-dart/examples/teams/update-membership.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/teams/update-name.md b/docs/examples/1.4.x/server-dart/examples/teams/update-name.md index 088a5cfbe68..324b691d3de 100644 --- a/docs/examples/1.4.x/server-dart/examples/teams/update-name.md +++ b/docs/examples/1.4.x/server-dart/examples/teams/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/teams/update-prefs.md b/docs/examples/1.4.x/server-dart/examples/teams/update-prefs.md index d99e8217595..5c9d5180125 100644 --- a/docs/examples/1.4.x/server-dart/examples/teams/update-prefs.md +++ b/docs/examples/1.4.x/server-dart/examples/teams/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/create-argon2user.md b/docs/examples/1.4.x/server-dart/examples/users/create-argon2user.md index a40b3afd55a..d01e8c6931e 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/create-argon2user.md +++ b/docs/examples/1.4.x/server-dart/examples/users/create-argon2user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/create-bcrypt-user.md b/docs/examples/1.4.x/server-dart/examples/users/create-bcrypt-user.md index 8b55d656b08..4685780b257 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.4.x/server-dart/examples/users/create-bcrypt-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/create-m-d5user.md b/docs/examples/1.4.x/server-dart/examples/users/create-m-d5user.md index 3ab8901f3ce..20ac1948e75 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/create-m-d5user.md +++ b/docs/examples/1.4.x/server-dart/examples/users/create-m-d5user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/create-p-h-pass-user.md b/docs/examples/1.4.x/server-dart/examples/users/create-p-h-pass-user.md index bedb44f4c27..0294339d647 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.4.x/server-dart/examples/users/create-p-h-pass-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/create-s-h-a-user.md b/docs/examples/1.4.x/server-dart/examples/users/create-s-h-a-user.md index 361f309a37a..21c4461cdcb 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.4.x/server-dart/examples/users/create-s-h-a-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/create-scrypt-modified-user.md b/docs/examples/1.4.x/server-dart/examples/users/create-scrypt-modified-user.md index fa5b80519e5..9d95641d761 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.4.x/server-dart/examples/users/create-scrypt-modified-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/create-scrypt-user.md b/docs/examples/1.4.x/server-dart/examples/users/create-scrypt-user.md index 91e1f7dc6d2..0a586407dc2 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/create-scrypt-user.md +++ b/docs/examples/1.4.x/server-dart/examples/users/create-scrypt-user.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/create.md b/docs/examples/1.4.x/server-dart/examples/users/create.md index 517cd22fcb0..a841df0e272 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/create.md +++ b/docs/examples/1.4.x/server-dart/examples/users/create.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/delete-identity.md b/docs/examples/1.4.x/server-dart/examples/users/delete-identity.md index 4bcfd6d4217..0fe6a9e6718 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/delete-identity.md +++ b/docs/examples/1.4.x/server-dart/examples/users/delete-identity.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/delete-session.md b/docs/examples/1.4.x/server-dart/examples/users/delete-session.md index 3f7611873ec..f1432677ed1 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/delete-session.md +++ b/docs/examples/1.4.x/server-dart/examples/users/delete-session.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/delete-sessions.md b/docs/examples/1.4.x/server-dart/examples/users/delete-sessions.md index 69cbc5e8d51..82a71188ce6 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/delete-sessions.md +++ b/docs/examples/1.4.x/server-dart/examples/users/delete-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/delete.md b/docs/examples/1.4.x/server-dart/examples/users/delete.md index 1e1311d5d94..351686fe588 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/delete.md +++ b/docs/examples/1.4.x/server-dart/examples/users/delete.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/get-prefs.md b/docs/examples/1.4.x/server-dart/examples/users/get-prefs.md index eb33ae656c5..cff91fa59b5 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/get-prefs.md +++ b/docs/examples/1.4.x/server-dart/examples/users/get-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/get.md b/docs/examples/1.4.x/server-dart/examples/users/get.md index c56852934cf..e2a24afd9a0 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/get.md +++ b/docs/examples/1.4.x/server-dart/examples/users/get.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/list-identities.md b/docs/examples/1.4.x/server-dart/examples/users/list-identities.md index b19fed01fee..781937f7592 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/list-identities.md +++ b/docs/examples/1.4.x/server-dart/examples/users/list-identities.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/list-logs.md b/docs/examples/1.4.x/server-dart/examples/users/list-logs.md index 0d2143ad487..44a5e13ea45 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/list-logs.md +++ b/docs/examples/1.4.x/server-dart/examples/users/list-logs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/list-memberships.md b/docs/examples/1.4.x/server-dart/examples/users/list-memberships.md index 36a83edec0e..398e7ceee81 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/list-memberships.md +++ b/docs/examples/1.4.x/server-dart/examples/users/list-memberships.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/list-sessions.md b/docs/examples/1.4.x/server-dart/examples/users/list-sessions.md index 5f77fdbfa7f..eeac7b8d4bc 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/list-sessions.md +++ b/docs/examples/1.4.x/server-dart/examples/users/list-sessions.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/list.md b/docs/examples/1.4.x/server-dart/examples/users/list.md index 34498c00ac1..ef91b2db4a7 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/list.md +++ b/docs/examples/1.4.x/server-dart/examples/users/list.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/update-email-verification.md b/docs/examples/1.4.x/server-dart/examples/users/update-email-verification.md index 8853f86529d..7de13257446 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/update-email-verification.md +++ b/docs/examples/1.4.x/server-dart/examples/users/update-email-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/update-email.md b/docs/examples/1.4.x/server-dart/examples/users/update-email.md index 8813e1101f5..589bf93d315 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/update-email.md +++ b/docs/examples/1.4.x/server-dart/examples/users/update-email.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/update-labels.md b/docs/examples/1.4.x/server-dart/examples/users/update-labels.md index ecd06e76995..c6c7d00345f 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/update-labels.md +++ b/docs/examples/1.4.x/server-dart/examples/users/update-labels.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/update-name.md b/docs/examples/1.4.x/server-dart/examples/users/update-name.md index 56797d585cd..a3a0c84bbbd 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/update-name.md +++ b/docs/examples/1.4.x/server-dart/examples/users/update-name.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/update-password.md b/docs/examples/1.4.x/server-dart/examples/users/update-password.md index 3dfedb4d4b4..bf99d92746b 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/update-password.md +++ b/docs/examples/1.4.x/server-dart/examples/users/update-password.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/update-phone-verification.md b/docs/examples/1.4.x/server-dart/examples/users/update-phone-verification.md index 37c3ced6084..0ef13f5b037 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/update-phone-verification.md +++ b/docs/examples/1.4.x/server-dart/examples/users/update-phone-verification.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/update-phone.md b/docs/examples/1.4.x/server-dart/examples/users/update-phone.md index 4d5e3110786..f512af071e4 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/update-phone.md +++ b/docs/examples/1.4.x/server-dart/examples/users/update-phone.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/update-prefs.md b/docs/examples/1.4.x/server-dart/examples/users/update-prefs.md index c6c1bbedffb..a2f0aea8fec 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/update-prefs.md +++ b/docs/examples/1.4.x/server-dart/examples/users/update-prefs.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dart/examples/users/update-status.md b/docs/examples/1.4.x/server-dart/examples/users/update-status.md index 6f80745a7af..32fa9019eb1 100644 --- a/docs/examples/1.4.x/server-dart/examples/users/update-status.md +++ b/docs/examples/1.4.x/server-dart/examples/users/update-status.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/create-phone-verification.md b/docs/examples/1.4.x/server-deno/examples/account/create-phone-verification.md index fe765887cca..aa9969c9a04 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/create-phone-verification.md +++ b/docs/examples/1.4.x/server-deno/examples/account/create-phone-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/create-recovery.md b/docs/examples/1.4.x/server-deno/examples/account/create-recovery.md index e5adb2a78bb..ca4ef258105 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/create-recovery.md +++ b/docs/examples/1.4.x/server-deno/examples/account/create-recovery.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/create-verification.md b/docs/examples/1.4.x/server-deno/examples/account/create-verification.md index 5861278e70b..89810ec730e 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/create-verification.md +++ b/docs/examples/1.4.x/server-deno/examples/account/create-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/delete-identity.md b/docs/examples/1.4.x/server-deno/examples/account/delete-identity.md index f24954e2b6e..d2d43a8c9ad 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/delete-identity.md +++ b/docs/examples/1.4.x/server-deno/examples/account/delete-identity.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/delete-session.md b/docs/examples/1.4.x/server-deno/examples/account/delete-session.md index 22417acb98c..969445ca5ee 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/delete-session.md +++ b/docs/examples/1.4.x/server-deno/examples/account/delete-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/delete-sessions.md b/docs/examples/1.4.x/server-deno/examples/account/delete-sessions.md index 2a82bd95668..ad5dcb1200f 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/delete-sessions.md +++ b/docs/examples/1.4.x/server-deno/examples/account/delete-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/get-prefs.md b/docs/examples/1.4.x/server-deno/examples/account/get-prefs.md index c9645d0fe1d..4b413ec3689 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/get-prefs.md +++ b/docs/examples/1.4.x/server-deno/examples/account/get-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/get-session.md b/docs/examples/1.4.x/server-deno/examples/account/get-session.md index f2c1c944699..b39704a72f3 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/get-session.md +++ b/docs/examples/1.4.x/server-deno/examples/account/get-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/get.md b/docs/examples/1.4.x/server-deno/examples/account/get.md index 03b22307ac0..d3a7a9b8e3a 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/get.md +++ b/docs/examples/1.4.x/server-deno/examples/account/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/list-identities.md b/docs/examples/1.4.x/server-deno/examples/account/list-identities.md index c3faa7b5b39..d930e9b784b 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/list-identities.md +++ b/docs/examples/1.4.x/server-deno/examples/account/list-identities.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/list-logs.md b/docs/examples/1.4.x/server-deno/examples/account/list-logs.md index fb793041013..4609c8e3b60 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/list-logs.md +++ b/docs/examples/1.4.x/server-deno/examples/account/list-logs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/list-sessions.md b/docs/examples/1.4.x/server-deno/examples/account/list-sessions.md index 32a7cfa09a4..498590452fd 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/list-sessions.md +++ b/docs/examples/1.4.x/server-deno/examples/account/list-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/update-email.md b/docs/examples/1.4.x/server-deno/examples/account/update-email.md index 26906d7eed3..c92ca4dc234 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/update-email.md +++ b/docs/examples/1.4.x/server-deno/examples/account/update-email.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/update-name.md b/docs/examples/1.4.x/server-deno/examples/account/update-name.md index b1a351216fd..2e52634e212 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/update-name.md +++ b/docs/examples/1.4.x/server-deno/examples/account/update-name.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/update-password.md b/docs/examples/1.4.x/server-deno/examples/account/update-password.md index a271dfe7e6f..0a2e2b5b0f7 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/update-password.md +++ b/docs/examples/1.4.x/server-deno/examples/account/update-password.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/update-phone-verification.md b/docs/examples/1.4.x/server-deno/examples/account/update-phone-verification.md index 064252a328a..a7b6e4670d4 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/update-phone-verification.md +++ b/docs/examples/1.4.x/server-deno/examples/account/update-phone-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/update-phone.md b/docs/examples/1.4.x/server-deno/examples/account/update-phone.md index e023424f9e6..0d1bfcc93a4 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/update-phone.md +++ b/docs/examples/1.4.x/server-deno/examples/account/update-phone.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/update-prefs.md b/docs/examples/1.4.x/server-deno/examples/account/update-prefs.md index 4a6ca88ae8a..472f53dd47e 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/update-prefs.md +++ b/docs/examples/1.4.x/server-deno/examples/account/update-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/update-recovery.md b/docs/examples/1.4.x/server-deno/examples/account/update-recovery.md index 06916bb2783..ee1546f1316 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/update-recovery.md +++ b/docs/examples/1.4.x/server-deno/examples/account/update-recovery.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/update-session.md b/docs/examples/1.4.x/server-deno/examples/account/update-session.md index 23a7ad2cf6c..310a7137450 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/update-session.md +++ b/docs/examples/1.4.x/server-deno/examples/account/update-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/update-status.md b/docs/examples/1.4.x/server-deno/examples/account/update-status.md index 6b9b18981bd..40c921be3ed 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/update-status.md +++ b/docs/examples/1.4.x/server-deno/examples/account/update-status.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/account/update-verification.md b/docs/examples/1.4.x/server-deno/examples/account/update-verification.md index c11f2b71c17..db4febb20f7 100644 --- a/docs/examples/1.4.x/server-deno/examples/account/update-verification.md +++ b/docs/examples/1.4.x/server-deno/examples/account/update-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/avatars/get-browser.md b/docs/examples/1.4.x/server-deno/examples/avatars/get-browser.md index 44c946e4d7e..317dc753313 100644 --- a/docs/examples/1.4.x/server-deno/examples/avatars/get-browser.md +++ b/docs/examples/1.4.x/server-deno/examples/avatars/get-browser.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/avatars/get-credit-card.md b/docs/examples/1.4.x/server-deno/examples/avatars/get-credit-card.md index 0f449827382..584c580559a 100644 --- a/docs/examples/1.4.x/server-deno/examples/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/server-deno/examples/avatars/get-credit-card.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/avatars/get-favicon.md b/docs/examples/1.4.x/server-deno/examples/avatars/get-favicon.md index f0a539b5fc5..d387cc2b7e7 100644 --- a/docs/examples/1.4.x/server-deno/examples/avatars/get-favicon.md +++ b/docs/examples/1.4.x/server-deno/examples/avatars/get-favicon.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/avatars/get-flag.md b/docs/examples/1.4.x/server-deno/examples/avatars/get-flag.md index c7593aee1e8..03fa737ef2a 100644 --- a/docs/examples/1.4.x/server-deno/examples/avatars/get-flag.md +++ b/docs/examples/1.4.x/server-deno/examples/avatars/get-flag.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/avatars/get-image.md b/docs/examples/1.4.x/server-deno/examples/avatars/get-image.md index 6e86307a5fc..7dd33398b63 100644 --- a/docs/examples/1.4.x/server-deno/examples/avatars/get-image.md +++ b/docs/examples/1.4.x/server-deno/examples/avatars/get-image.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/avatars/get-initials.md b/docs/examples/1.4.x/server-deno/examples/avatars/get-initials.md index 2adba9e971e..4054ecee995 100644 --- a/docs/examples/1.4.x/server-deno/examples/avatars/get-initials.md +++ b/docs/examples/1.4.x/server-deno/examples/avatars/get-initials.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/avatars/get-q-r.md b/docs/examples/1.4.x/server-deno/examples/avatars/get-q-r.md index 2c5faf01122..f239919e05e 100644 --- a/docs/examples/1.4.x/server-deno/examples/avatars/get-q-r.md +++ b/docs/examples/1.4.x/server-deno/examples/avatars/get-q-r.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/create-boolean-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/create-boolean-attribute.md index 81b66771ff5..3a06b123a0e 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/create-boolean-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/create-collection.md b/docs/examples/1.4.x/server-deno/examples/databases/create-collection.md index 5d59286e3ca..c65a13e2373 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/create-collection.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/create-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/create-datetime-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/create-datetime-attribute.md index c2c4eb81852..ee4fdb92532 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/create-datetime-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/create-document.md b/docs/examples/1.4.x/server-deno/examples/databases/create-document.md index d38818c164f..b746f3d3f31 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/create-document.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/create-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/create-email-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/create-email-attribute.md index 4952625bfcc..918ed10cbcb 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/create-email-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/create-email-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/create-enum-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/create-enum-attribute.md index d00274d616a..79cca97c506 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/create-enum-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/create-float-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/create-float-attribute.md index c2b056fd1ba..a61df747b35 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/create-float-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/create-float-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/create-index.md b/docs/examples/1.4.x/server-deno/examples/databases/create-index.md index bfde8e3fb56..0d238068aa5 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/create-index.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/create-index.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/create-integer-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/create-integer-attribute.md index 2a36f413e5e..fec9ed6835b 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/create-integer-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/create-ip-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/create-ip-attribute.md index 19180d6ac0e..858450d499b 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/create-ip-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/create-relationship-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/create-relationship-attribute.md index e613a6f596f..787a24c6652 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/create-relationship-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/create-string-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/create-string-attribute.md index f3b0a369234..82383ccc76c 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/create-string-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/create-string-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/create-url-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/create-url-attribute.md index 488751adff1..f556724dcaa 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/create-url-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/create-url-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/create.md b/docs/examples/1.4.x/server-deno/examples/databases/create.md index ea1ebb6460e..d8747a01aed 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/create.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/delete-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/delete-attribute.md index e6fe0823f26..fd3fca65ef7 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/delete-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/delete-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/delete-collection.md b/docs/examples/1.4.x/server-deno/examples/databases/delete-collection.md index 970602ac286..5f0599b7ec6 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/delete-collection.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/delete-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/delete-document.md b/docs/examples/1.4.x/server-deno/examples/databases/delete-document.md index 1a23e03e273..7c1ed710f40 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/delete-document.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/delete-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/delete-index.md b/docs/examples/1.4.x/server-deno/examples/databases/delete-index.md index 8a6050522a8..c25eb4a7fce 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/delete-index.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/delete-index.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/delete.md b/docs/examples/1.4.x/server-deno/examples/databases/delete.md index b735eccdbed..817dcd0dd00 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/delete.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/get-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/get-attribute.md index 1ec9957b5eb..cf5aa9ca1e2 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/get-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/get-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/get-collection.md b/docs/examples/1.4.x/server-deno/examples/databases/get-collection.md index bf471e3b36e..8973f9e8aa7 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/get-collection.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/get-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/get-document.md b/docs/examples/1.4.x/server-deno/examples/databases/get-document.md index a7248d0641d..e02b9c8f4b0 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/get-document.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/get-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/get-index.md b/docs/examples/1.4.x/server-deno/examples/databases/get-index.md index c1fe00cb65e..443b06883c5 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/get-index.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/get-index.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/get.md b/docs/examples/1.4.x/server-deno/examples/databases/get.md index 46df3aad225..a8ea62a5520 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/get.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/list-attributes.md b/docs/examples/1.4.x/server-deno/examples/databases/list-attributes.md index f2b21141b3d..7ee93a5ac09 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/list-attributes.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/list-attributes.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/list-collections.md b/docs/examples/1.4.x/server-deno/examples/databases/list-collections.md index 83e4ee951fd..7cdf106ab1c 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/list-collections.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/list-collections.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/list-documents.md b/docs/examples/1.4.x/server-deno/examples/databases/list-documents.md index c7db17efb5f..9c3cd7097e2 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/list-documents.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/list-documents.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/list-indexes.md b/docs/examples/1.4.x/server-deno/examples/databases/list-indexes.md index 69c412b99db..8fbba4a323b 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/list-indexes.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/list-indexes.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/list.md b/docs/examples/1.4.x/server-deno/examples/databases/list.md index 8bb75110ec8..84ec9927ac2 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/list.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/update-boolean-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/update-boolean-attribute.md index c8b55b77e5a..bc5c976286b 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/update-boolean-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/update-collection.md b/docs/examples/1.4.x/server-deno/examples/databases/update-collection.md index f81f46e7f48..234b4c68cf7 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/update-collection.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/update-collection.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/update-datetime-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/update-datetime-attribute.md index 25549b4ed25..a7fce2f168a 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/update-datetime-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/update-document.md b/docs/examples/1.4.x/server-deno/examples/databases/update-document.md index 9964fdb6eb5..78c984aae41 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/update-document.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/update-document.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/update-email-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/update-email-attribute.md index 78d2403cd8b..679b9971bb4 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/update-email-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/update-email-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/update-enum-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/update-enum-attribute.md index f47b96fc538..eb04ead02e0 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/update-enum-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/update-float-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/update-float-attribute.md index 62df38cddce..882beff1ca5 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/update-float-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/update-float-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/update-integer-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/update-integer-attribute.md index 001671eda13..85eefe4eeed 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/update-integer-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/update-ip-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/update-ip-attribute.md index 8ee0d5c80a7..bc98ddfec23 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/update-ip-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/update-relationship-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/update-relationship-attribute.md index c12a64a9dcc..fa8f36e9959 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/update-relationship-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/update-string-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/update-string-attribute.md index ab77495e23c..b166e1f6213 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/update-string-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/update-string-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/update-url-attribute.md b/docs/examples/1.4.x/server-deno/examples/databases/update-url-attribute.md index c9ab818c80c..1c2411f4d10 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/update-url-attribute.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/update-url-attribute.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/databases/update.md b/docs/examples/1.4.x/server-deno/examples/databases/update.md index 64886a697bc..c60c2499730 100644 --- a/docs/examples/1.4.x/server-deno/examples/databases/update.md +++ b/docs/examples/1.4.x/server-deno/examples/databases/update.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/create-build.md b/docs/examples/1.4.x/server-deno/examples/functions/create-build.md index 28d10105e39..ffa1906b0a8 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/create-build.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/create-build.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/create-deployment.md b/docs/examples/1.4.x/server-deno/examples/functions/create-deployment.md index 167d177bb7f..3afd2bf844c 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/create-deployment.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/create-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/create-execution.md b/docs/examples/1.4.x/server-deno/examples/functions/create-execution.md index 6ec920ef9db..a24cc942b51 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/create-execution.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/create-execution.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/create-variable.md b/docs/examples/1.4.x/server-deno/examples/functions/create-variable.md index 375ef8b7a6c..6de4953eec8 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/create-variable.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/create-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/create.md b/docs/examples/1.4.x/server-deno/examples/functions/create.md index cd9c1503deb..a8dd7c2785c 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/create.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/delete-deployment.md b/docs/examples/1.4.x/server-deno/examples/functions/delete-deployment.md index 7b6468bb064..b1f280fb13e 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/delete-deployment.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/delete-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/delete-variable.md b/docs/examples/1.4.x/server-deno/examples/functions/delete-variable.md index 16bf385a4c9..012f353540b 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/delete-variable.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/delete-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/delete.md b/docs/examples/1.4.x/server-deno/examples/functions/delete.md index 48ec374bf29..ac801878c81 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/delete.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/download-deployment.md b/docs/examples/1.4.x/server-deno/examples/functions/download-deployment.md index dc07358df19..8031278238d 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/download-deployment.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/download-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/get-deployment.md b/docs/examples/1.4.x/server-deno/examples/functions/get-deployment.md index 854f3897d94..eef2d306ecb 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/get-deployment.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/get-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/get-execution.md b/docs/examples/1.4.x/server-deno/examples/functions/get-execution.md index 42bcdfbfdfe..cfb4ef09dcb 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/get-execution.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/get-execution.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/get-variable.md b/docs/examples/1.4.x/server-deno/examples/functions/get-variable.md index 2b4190e0a66..9881efcb033 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/get-variable.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/get-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/get.md b/docs/examples/1.4.x/server-deno/examples/functions/get.md index 388958232aa..f511f594524 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/get.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/list-deployments.md b/docs/examples/1.4.x/server-deno/examples/functions/list-deployments.md index e84bb9cc093..cdd0ae775a5 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/list-deployments.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/list-deployments.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/list-executions.md b/docs/examples/1.4.x/server-deno/examples/functions/list-executions.md index aadd19f1cee..fcc47f2dcda 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/list-executions.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/list-executions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/list-runtimes.md b/docs/examples/1.4.x/server-deno/examples/functions/list-runtimes.md index 6fc7570b3a6..b45ec8f2232 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/list-runtimes.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/list-runtimes.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/list-variables.md b/docs/examples/1.4.x/server-deno/examples/functions/list-variables.md index 44a9828a67a..f9f241fee3b 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/list-variables.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/list-variables.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/list.md b/docs/examples/1.4.x/server-deno/examples/functions/list.md index 7c82760a397..cadecd7fc18 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/list.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/update-deployment.md b/docs/examples/1.4.x/server-deno/examples/functions/update-deployment.md index 94be560a2d4..4d1bda63635 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/update-deployment.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/update-deployment.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/update-variable.md b/docs/examples/1.4.x/server-deno/examples/functions/update-variable.md index 1a318f1ebae..bcdde06c9a9 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/update-variable.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/update-variable.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/functions/update.md b/docs/examples/1.4.x/server-deno/examples/functions/update.md index 8ed2663ba72..9b60b79afe7 100644 --- a/docs/examples/1.4.x/server-deno/examples/functions/update.md +++ b/docs/examples/1.4.x/server-deno/examples/functions/update.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/graphql/mutation.md b/docs/examples/1.4.x/server-deno/examples/graphql/mutation.md index 87beeabce65..f95cdc771d4 100644 --- a/docs/examples/1.4.x/server-deno/examples/graphql/mutation.md +++ b/docs/examples/1.4.x/server-deno/examples/graphql/mutation.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/graphql/query.md b/docs/examples/1.4.x/server-deno/examples/graphql/query.md index d2eec0a8dbf..27930bde4d6 100644 --- a/docs/examples/1.4.x/server-deno/examples/graphql/query.md +++ b/docs/examples/1.4.x/server-deno/examples/graphql/query.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-antivirus.md b/docs/examples/1.4.x/server-deno/examples/health/get-antivirus.md index 8d51808536f..7bee35a1276 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-antivirus.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-antivirus.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-cache.md b/docs/examples/1.4.x/server-deno/examples/health/get-cache.md index cafc3018c0c..12dfbb1b2d1 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-cache.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-cache.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-d-b.md b/docs/examples/1.4.x/server-deno/examples/health/get-d-b.md index a000535051f..73ac2931fb8 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-d-b.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-d-b.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-pub-sub.md b/docs/examples/1.4.x/server-deno/examples/health/get-pub-sub.md index 979ef0b51c8..3116d314fe6 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-pub-sub.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-pub-sub.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-queue-builds.md b/docs/examples/1.4.x/server-deno/examples/health/get-queue-builds.md index 4f457495dc8..3f59caf5167 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-queue-builds.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-queue-builds.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-queue-certificates.md b/docs/examples/1.4.x/server-deno/examples/health/get-queue-certificates.md index 49dab6b2e6f..ea90355ec9f 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-queue-certificates.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-queue-certificates.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-queue-databases.md b/docs/examples/1.4.x/server-deno/examples/health/get-queue-databases.md index 639d1099be4..323cabd57e2 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-queue-databases.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-queue-databases.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-queue-deletes.md b/docs/examples/1.4.x/server-deno/examples/health/get-queue-deletes.md index 26ff3da2043..a47daba8e19 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-queue-deletes.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-queue-deletes.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-queue-functions.md b/docs/examples/1.4.x/server-deno/examples/health/get-queue-functions.md index 74f458b9fed..e95a6020595 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-queue-functions.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-queue-functions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-queue-logs.md b/docs/examples/1.4.x/server-deno/examples/health/get-queue-logs.md index 98948b9de6f..457c2689eca 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-queue-logs.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-queue-logs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-queue-mails.md b/docs/examples/1.4.x/server-deno/examples/health/get-queue-mails.md index 478ad80e80e..d187dc0b1fb 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-queue-mails.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-queue-mails.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-queue-messaging.md b/docs/examples/1.4.x/server-deno/examples/health/get-queue-messaging.md index ba018acae3d..eef3568f47d 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-queue-messaging.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-queue-messaging.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-queue-migrations.md b/docs/examples/1.4.x/server-deno/examples/health/get-queue-migrations.md index d779a1d6784..c8c7655870c 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-queue-migrations.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-queue-migrations.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-queue-webhooks.md b/docs/examples/1.4.x/server-deno/examples/health/get-queue-webhooks.md index 7b45c189ccd..87af736da84 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-queue-webhooks.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-queue.md b/docs/examples/1.4.x/server-deno/examples/health/get-queue.md index 4c1f675bb63..a06fda06d16 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-queue.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-queue.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-storage-local.md b/docs/examples/1.4.x/server-deno/examples/health/get-storage-local.md index 4c45d89acae..31f708e88a1 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-storage-local.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-storage-local.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get-time.md b/docs/examples/1.4.x/server-deno/examples/health/get-time.md index 6a66a10a053..69c73045a95 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get-time.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get-time.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/health/get.md b/docs/examples/1.4.x/server-deno/examples/health/get.md index 0b9af9dd15b..6afe71a3152 100644 --- a/docs/examples/1.4.x/server-deno/examples/health/get.md +++ b/docs/examples/1.4.x/server-deno/examples/health/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/locale/get.md b/docs/examples/1.4.x/server-deno/examples/locale/get.md index 22b9a626550..f9f015cfb94 100644 --- a/docs/examples/1.4.x/server-deno/examples/locale/get.md +++ b/docs/examples/1.4.x/server-deno/examples/locale/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/locale/list-codes.md b/docs/examples/1.4.x/server-deno/examples/locale/list-codes.md index 1ca38d4e88d..ed351956efe 100644 --- a/docs/examples/1.4.x/server-deno/examples/locale/list-codes.md +++ b/docs/examples/1.4.x/server-deno/examples/locale/list-codes.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/locale/list-continents.md b/docs/examples/1.4.x/server-deno/examples/locale/list-continents.md index bd69f43a614..dd42b1957f1 100644 --- a/docs/examples/1.4.x/server-deno/examples/locale/list-continents.md +++ b/docs/examples/1.4.x/server-deno/examples/locale/list-continents.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/locale/list-countries-e-u.md b/docs/examples/1.4.x/server-deno/examples/locale/list-countries-e-u.md index 3d3b7b492ac..597edd6f920 100644 --- a/docs/examples/1.4.x/server-deno/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/server-deno/examples/locale/list-countries-e-u.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/locale/list-countries-phones.md b/docs/examples/1.4.x/server-deno/examples/locale/list-countries-phones.md index bc9e1754ad2..f3e27aa1523 100644 --- a/docs/examples/1.4.x/server-deno/examples/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/server-deno/examples/locale/list-countries-phones.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/locale/list-countries.md b/docs/examples/1.4.x/server-deno/examples/locale/list-countries.md index 0790270371b..3d65b3c71cf 100644 --- a/docs/examples/1.4.x/server-deno/examples/locale/list-countries.md +++ b/docs/examples/1.4.x/server-deno/examples/locale/list-countries.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/locale/list-currencies.md b/docs/examples/1.4.x/server-deno/examples/locale/list-currencies.md index e040312fefa..ae0fad6e0b4 100644 --- a/docs/examples/1.4.x/server-deno/examples/locale/list-currencies.md +++ b/docs/examples/1.4.x/server-deno/examples/locale/list-currencies.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/locale/list-languages.md b/docs/examples/1.4.x/server-deno/examples/locale/list-languages.md index be5af4d50ca..792a0e8a437 100644 --- a/docs/examples/1.4.x/server-deno/examples/locale/list-languages.md +++ b/docs/examples/1.4.x/server-deno/examples/locale/list-languages.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/storage/create-bucket.md b/docs/examples/1.4.x/server-deno/examples/storage/create-bucket.md index a25211a1c71..4a2460216bd 100644 --- a/docs/examples/1.4.x/server-deno/examples/storage/create-bucket.md +++ b/docs/examples/1.4.x/server-deno/examples/storage/create-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/storage/create-file.md b/docs/examples/1.4.x/server-deno/examples/storage/create-file.md index c0fe4930b97..e2b9edaa57b 100644 --- a/docs/examples/1.4.x/server-deno/examples/storage/create-file.md +++ b/docs/examples/1.4.x/server-deno/examples/storage/create-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/storage/delete-bucket.md b/docs/examples/1.4.x/server-deno/examples/storage/delete-bucket.md index d468428141d..f5c818046eb 100644 --- a/docs/examples/1.4.x/server-deno/examples/storage/delete-bucket.md +++ b/docs/examples/1.4.x/server-deno/examples/storage/delete-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/storage/delete-file.md b/docs/examples/1.4.x/server-deno/examples/storage/delete-file.md index e86da1763b4..61589ed878b 100644 --- a/docs/examples/1.4.x/server-deno/examples/storage/delete-file.md +++ b/docs/examples/1.4.x/server-deno/examples/storage/delete-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/storage/get-bucket.md b/docs/examples/1.4.x/server-deno/examples/storage/get-bucket.md index 35d22b941a8..34391b42c20 100644 --- a/docs/examples/1.4.x/server-deno/examples/storage/get-bucket.md +++ b/docs/examples/1.4.x/server-deno/examples/storage/get-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/storage/get-file-download.md b/docs/examples/1.4.x/server-deno/examples/storage/get-file-download.md index 206b860e258..9f2927e0546 100644 --- a/docs/examples/1.4.x/server-deno/examples/storage/get-file-download.md +++ b/docs/examples/1.4.x/server-deno/examples/storage/get-file-download.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/storage/get-file-preview.md b/docs/examples/1.4.x/server-deno/examples/storage/get-file-preview.md index 4815c6b40b0..903aa592708 100644 --- a/docs/examples/1.4.x/server-deno/examples/storage/get-file-preview.md +++ b/docs/examples/1.4.x/server-deno/examples/storage/get-file-preview.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/storage/get-file-view.md b/docs/examples/1.4.x/server-deno/examples/storage/get-file-view.md index 11ca8fdc6c1..27d20ab4a68 100644 --- a/docs/examples/1.4.x/server-deno/examples/storage/get-file-view.md +++ b/docs/examples/1.4.x/server-deno/examples/storage/get-file-view.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/storage/get-file.md b/docs/examples/1.4.x/server-deno/examples/storage/get-file.md index 04aa43a5b1b..c6ec55a1e66 100644 --- a/docs/examples/1.4.x/server-deno/examples/storage/get-file.md +++ b/docs/examples/1.4.x/server-deno/examples/storage/get-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/storage/list-buckets.md b/docs/examples/1.4.x/server-deno/examples/storage/list-buckets.md index 0c31feffe35..7cae11354fd 100644 --- a/docs/examples/1.4.x/server-deno/examples/storage/list-buckets.md +++ b/docs/examples/1.4.x/server-deno/examples/storage/list-buckets.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/storage/list-files.md b/docs/examples/1.4.x/server-deno/examples/storage/list-files.md index 00178aa874a..d5de10df59f 100644 --- a/docs/examples/1.4.x/server-deno/examples/storage/list-files.md +++ b/docs/examples/1.4.x/server-deno/examples/storage/list-files.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/storage/update-bucket.md b/docs/examples/1.4.x/server-deno/examples/storage/update-bucket.md index aca746145e4..d9c554bffe1 100644 --- a/docs/examples/1.4.x/server-deno/examples/storage/update-bucket.md +++ b/docs/examples/1.4.x/server-deno/examples/storage/update-bucket.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/storage/update-file.md b/docs/examples/1.4.x/server-deno/examples/storage/update-file.md index 79f31c3b030..a106b4b5052 100644 --- a/docs/examples/1.4.x/server-deno/examples/storage/update-file.md +++ b/docs/examples/1.4.x/server-deno/examples/storage/update-file.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/teams/create-membership.md b/docs/examples/1.4.x/server-deno/examples/teams/create-membership.md index afb6b914922..17e98c760fe 100644 --- a/docs/examples/1.4.x/server-deno/examples/teams/create-membership.md +++ b/docs/examples/1.4.x/server-deno/examples/teams/create-membership.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/teams/create.md b/docs/examples/1.4.x/server-deno/examples/teams/create.md index 8272adb4d0d..b5ad42710cd 100644 --- a/docs/examples/1.4.x/server-deno/examples/teams/create.md +++ b/docs/examples/1.4.x/server-deno/examples/teams/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/teams/delete-membership.md b/docs/examples/1.4.x/server-deno/examples/teams/delete-membership.md index 402deb0b8a8..dd73e8ae870 100644 --- a/docs/examples/1.4.x/server-deno/examples/teams/delete-membership.md +++ b/docs/examples/1.4.x/server-deno/examples/teams/delete-membership.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/teams/delete.md b/docs/examples/1.4.x/server-deno/examples/teams/delete.md index 3b30934beab..5f859e0cfce 100644 --- a/docs/examples/1.4.x/server-deno/examples/teams/delete.md +++ b/docs/examples/1.4.x/server-deno/examples/teams/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/teams/get-membership.md b/docs/examples/1.4.x/server-deno/examples/teams/get-membership.md index 7d50599b67d..8289e1fbd40 100644 --- a/docs/examples/1.4.x/server-deno/examples/teams/get-membership.md +++ b/docs/examples/1.4.x/server-deno/examples/teams/get-membership.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/teams/get-prefs.md b/docs/examples/1.4.x/server-deno/examples/teams/get-prefs.md index 5a7fa4d98f0..3327463fac1 100644 --- a/docs/examples/1.4.x/server-deno/examples/teams/get-prefs.md +++ b/docs/examples/1.4.x/server-deno/examples/teams/get-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/teams/get.md b/docs/examples/1.4.x/server-deno/examples/teams/get.md index 44ecdab949a..e18f9e580d4 100644 --- a/docs/examples/1.4.x/server-deno/examples/teams/get.md +++ b/docs/examples/1.4.x/server-deno/examples/teams/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/teams/list-memberships.md b/docs/examples/1.4.x/server-deno/examples/teams/list-memberships.md index 7d730021a6a..ca062ddb294 100644 --- a/docs/examples/1.4.x/server-deno/examples/teams/list-memberships.md +++ b/docs/examples/1.4.x/server-deno/examples/teams/list-memberships.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/teams/list.md b/docs/examples/1.4.x/server-deno/examples/teams/list.md index c45ffdc0666..a76660063de 100644 --- a/docs/examples/1.4.x/server-deno/examples/teams/list.md +++ b/docs/examples/1.4.x/server-deno/examples/teams/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/teams/update-membership-status.md b/docs/examples/1.4.x/server-deno/examples/teams/update-membership-status.md index 7bb57d8974e..2ac6332372b 100644 --- a/docs/examples/1.4.x/server-deno/examples/teams/update-membership-status.md +++ b/docs/examples/1.4.x/server-deno/examples/teams/update-membership-status.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/teams/update-membership.md b/docs/examples/1.4.x/server-deno/examples/teams/update-membership.md index 3ada2f47457..240cf1880bc 100644 --- a/docs/examples/1.4.x/server-deno/examples/teams/update-membership.md +++ b/docs/examples/1.4.x/server-deno/examples/teams/update-membership.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/teams/update-name.md b/docs/examples/1.4.x/server-deno/examples/teams/update-name.md index 47c3fc27653..bbac808c86a 100644 --- a/docs/examples/1.4.x/server-deno/examples/teams/update-name.md +++ b/docs/examples/1.4.x/server-deno/examples/teams/update-name.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/teams/update-prefs.md b/docs/examples/1.4.x/server-deno/examples/teams/update-prefs.md index 83845be0364..7a8823b805c 100644 --- a/docs/examples/1.4.x/server-deno/examples/teams/update-prefs.md +++ b/docs/examples/1.4.x/server-deno/examples/teams/update-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/create-argon2user.md b/docs/examples/1.4.x/server-deno/examples/users/create-argon2user.md index e55b644b62c..c9d3e68bcda 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/create-argon2user.md +++ b/docs/examples/1.4.x/server-deno/examples/users/create-argon2user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/create-bcrypt-user.md b/docs/examples/1.4.x/server-deno/examples/users/create-bcrypt-user.md index 325fbe46d56..a3cc0ddc7dc 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.4.x/server-deno/examples/users/create-bcrypt-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/create-m-d5user.md b/docs/examples/1.4.x/server-deno/examples/users/create-m-d5user.md index 8892688594d..387fd97da01 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/create-m-d5user.md +++ b/docs/examples/1.4.x/server-deno/examples/users/create-m-d5user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/create-p-h-pass-user.md b/docs/examples/1.4.x/server-deno/examples/users/create-p-h-pass-user.md index d7a3428fd54..1e02fba5530 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.4.x/server-deno/examples/users/create-p-h-pass-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/create-s-h-a-user.md b/docs/examples/1.4.x/server-deno/examples/users/create-s-h-a-user.md index c3ade982efc..82cf7ea8a45 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.4.x/server-deno/examples/users/create-s-h-a-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/create-scrypt-modified-user.md b/docs/examples/1.4.x/server-deno/examples/users/create-scrypt-modified-user.md index 8039a970c22..d06e6d3128c 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.4.x/server-deno/examples/users/create-scrypt-modified-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/create-scrypt-user.md b/docs/examples/1.4.x/server-deno/examples/users/create-scrypt-user.md index 9889855e7c7..6f9656ce5e1 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/create-scrypt-user.md +++ b/docs/examples/1.4.x/server-deno/examples/users/create-scrypt-user.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/create.md b/docs/examples/1.4.x/server-deno/examples/users/create.md index c56f8d8f88d..1338a4e59fc 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/create.md +++ b/docs/examples/1.4.x/server-deno/examples/users/create.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/delete-identity.md b/docs/examples/1.4.x/server-deno/examples/users/delete-identity.md index 7d7b88a7f90..9dac0a72173 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/delete-identity.md +++ b/docs/examples/1.4.x/server-deno/examples/users/delete-identity.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/delete-session.md b/docs/examples/1.4.x/server-deno/examples/users/delete-session.md index e4ea45ba737..8d6e862bdb4 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/delete-session.md +++ b/docs/examples/1.4.x/server-deno/examples/users/delete-session.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/delete-sessions.md b/docs/examples/1.4.x/server-deno/examples/users/delete-sessions.md index 0e12d6dacfe..894084dd90a 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/delete-sessions.md +++ b/docs/examples/1.4.x/server-deno/examples/users/delete-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/delete.md b/docs/examples/1.4.x/server-deno/examples/users/delete.md index f0223024a38..e291fa1cf10 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/delete.md +++ b/docs/examples/1.4.x/server-deno/examples/users/delete.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/get-prefs.md b/docs/examples/1.4.x/server-deno/examples/users/get-prefs.md index 63953f9d246..98d6f6aa625 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/get-prefs.md +++ b/docs/examples/1.4.x/server-deno/examples/users/get-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/get.md b/docs/examples/1.4.x/server-deno/examples/users/get.md index c9300c5060c..77c27630baa 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/get.md +++ b/docs/examples/1.4.x/server-deno/examples/users/get.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/list-identities.md b/docs/examples/1.4.x/server-deno/examples/users/list-identities.md index 687770178c8..8c1f7e85699 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/list-identities.md +++ b/docs/examples/1.4.x/server-deno/examples/users/list-identities.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/list-logs.md b/docs/examples/1.4.x/server-deno/examples/users/list-logs.md index 7d0841fc774..fe4103138db 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/list-logs.md +++ b/docs/examples/1.4.x/server-deno/examples/users/list-logs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/list-memberships.md b/docs/examples/1.4.x/server-deno/examples/users/list-memberships.md index 74f2fb7f1e2..592385fc047 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/list-memberships.md +++ b/docs/examples/1.4.x/server-deno/examples/users/list-memberships.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/list-sessions.md b/docs/examples/1.4.x/server-deno/examples/users/list-sessions.md index 1aa4ca7d788..2117b04927f 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/list-sessions.md +++ b/docs/examples/1.4.x/server-deno/examples/users/list-sessions.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/list.md b/docs/examples/1.4.x/server-deno/examples/users/list.md index 369ccd7b297..a092136f5ad 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/list.md +++ b/docs/examples/1.4.x/server-deno/examples/users/list.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/update-email-verification.md b/docs/examples/1.4.x/server-deno/examples/users/update-email-verification.md index 146cea50278..41a3250abb5 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/update-email-verification.md +++ b/docs/examples/1.4.x/server-deno/examples/users/update-email-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/update-email.md b/docs/examples/1.4.x/server-deno/examples/users/update-email.md index bd7f0ffbd85..428ab37b854 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/update-email.md +++ b/docs/examples/1.4.x/server-deno/examples/users/update-email.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/update-labels.md b/docs/examples/1.4.x/server-deno/examples/users/update-labels.md index 73aee6485bb..f8f8dc51df1 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/update-labels.md +++ b/docs/examples/1.4.x/server-deno/examples/users/update-labels.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/update-name.md b/docs/examples/1.4.x/server-deno/examples/users/update-name.md index 071c948201e..1b0918b5a58 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/update-name.md +++ b/docs/examples/1.4.x/server-deno/examples/users/update-name.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/update-password.md b/docs/examples/1.4.x/server-deno/examples/users/update-password.md index e6ae8b725e3..4d9d8b217e9 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/update-password.md +++ b/docs/examples/1.4.x/server-deno/examples/users/update-password.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/update-phone-verification.md b/docs/examples/1.4.x/server-deno/examples/users/update-phone-verification.md index 293f876152d..3241b4c4306 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/update-phone-verification.md +++ b/docs/examples/1.4.x/server-deno/examples/users/update-phone-verification.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/update-phone.md b/docs/examples/1.4.x/server-deno/examples/users/update-phone.md index e634f59719d..b41c9bc15fb 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/update-phone.md +++ b/docs/examples/1.4.x/server-deno/examples/users/update-phone.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/update-prefs.md b/docs/examples/1.4.x/server-deno/examples/users/update-prefs.md index 248fdb10abf..c794bc9d6c3 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/update-prefs.md +++ b/docs/examples/1.4.x/server-deno/examples/users/update-prefs.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-deno/examples/users/update-status.md b/docs/examples/1.4.x/server-deno/examples/users/update-status.md index 2f142596fd5..80355e1b391 100644 --- a/docs/examples/1.4.x/server-deno/examples/users/update-status.md +++ b/docs/examples/1.4.x/server-deno/examples/users/update-status.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/create-phone-verification.md b/docs/examples/1.4.x/server-dotnet/examples/account/create-phone-verification.md index 570bb20f5e4..3dd38b8e05b 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/create-phone-verification.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/create-phone-verification.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/create-recovery.md b/docs/examples/1.4.x/server-dotnet/examples/account/create-recovery.md index 1edc79bc502..afa76bbd9b1 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/create-recovery.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/create-recovery.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/create-verification.md b/docs/examples/1.4.x/server-dotnet/examples/account/create-verification.md index 928fcb85616..09d73b228c4 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/create-verification.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/create-verification.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/delete-identity.md b/docs/examples/1.4.x/server-dotnet/examples/account/delete-identity.md index c5ff9878220..ae99527ba6a 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/delete-identity.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/delete-identity.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/delete-session.md b/docs/examples/1.4.x/server-dotnet/examples/account/delete-session.md index c880a4f88db..163bd05e6a2 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/delete-session.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/delete-session.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/delete-sessions.md b/docs/examples/1.4.x/server-dotnet/examples/account/delete-sessions.md index 8dcefaf71ce..b683052f3b4 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/delete-sessions.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/delete-sessions.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/get-prefs.md b/docs/examples/1.4.x/server-dotnet/examples/account/get-prefs.md index ce3ecc1179d..6fed36e39ea 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/get-prefs.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/get-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/get-session.md b/docs/examples/1.4.x/server-dotnet/examples/account/get-session.md index 9560b6a78aa..9f4becbfb7c 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/get-session.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/get-session.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/get.md b/docs/examples/1.4.x/server-dotnet/examples/account/get.md index 5a50299c733..4df0e2f2ceb 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/get.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/get.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/list-identities.md b/docs/examples/1.4.x/server-dotnet/examples/account/list-identities.md index 3a25342e5db..57889ef7044 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/list-identities.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/list-identities.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/list-logs.md b/docs/examples/1.4.x/server-dotnet/examples/account/list-logs.md index 03b50407f50..7873a8036ed 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/list-logs.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/list-logs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/list-sessions.md b/docs/examples/1.4.x/server-dotnet/examples/account/list-sessions.md index aa813bc1dd5..b918cfe8067 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/list-sessions.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/list-sessions.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/update-email.md b/docs/examples/1.4.x/server-dotnet/examples/account/update-email.md index 0b457e0abb0..3d851672769 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/update-email.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/update-email.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/update-name.md b/docs/examples/1.4.x/server-dotnet/examples/account/update-name.md index b41ba372894..682ba83ab82 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/update-name.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/update-name.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/update-password.md b/docs/examples/1.4.x/server-dotnet/examples/account/update-password.md index d8bab0b4d23..153b62635e5 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/update-password.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/update-password.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/update-phone-verification.md b/docs/examples/1.4.x/server-dotnet/examples/account/update-phone-verification.md index 6914e7805f7..032961664bd 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/update-phone-verification.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/update-phone-verification.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/update-phone.md b/docs/examples/1.4.x/server-dotnet/examples/account/update-phone.md index f3e2f14df75..8fa853a8ce3 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/update-phone.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/update-phone.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/update-prefs.md b/docs/examples/1.4.x/server-dotnet/examples/account/update-prefs.md index 7a4f2378e49..c25dae59cb0 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/update-prefs.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/update-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/update-recovery.md b/docs/examples/1.4.x/server-dotnet/examples/account/update-recovery.md index d26f4ab8dae..3c13952fc13 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/update-recovery.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/update-recovery.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/update-session.md b/docs/examples/1.4.x/server-dotnet/examples/account/update-session.md index f3365bb96b7..4a7600e8201 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/update-session.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/update-session.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/update-status.md b/docs/examples/1.4.x/server-dotnet/examples/account/update-status.md index c5e3e2c5764..0a01ee23251 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/update-status.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/update-status.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/account/update-verification.md b/docs/examples/1.4.x/server-dotnet/examples/account/update-verification.md index 697d2dffa4e..4531f25611d 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/account/update-verification.md +++ b/docs/examples/1.4.x/server-dotnet/examples/account/update-verification.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/avatars/get-browser.md b/docs/examples/1.4.x/server-dotnet/examples/avatars/get-browser.md index 3ac58f8b475..4b9e62bf6ac 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/avatars/get-browser.md +++ b/docs/examples/1.4.x/server-dotnet/examples/avatars/get-browser.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/avatars/get-credit-card.md b/docs/examples/1.4.x/server-dotnet/examples/avatars/get-credit-card.md index 89f36fe35d1..5338e4f590b 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/server-dotnet/examples/avatars/get-credit-card.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/avatars/get-favicon.md b/docs/examples/1.4.x/server-dotnet/examples/avatars/get-favicon.md index dbabf05d574..78cf8f75610 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/avatars/get-favicon.md +++ b/docs/examples/1.4.x/server-dotnet/examples/avatars/get-favicon.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/avatars/get-flag.md b/docs/examples/1.4.x/server-dotnet/examples/avatars/get-flag.md index fc20581c1ce..7ef37404185 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/avatars/get-flag.md +++ b/docs/examples/1.4.x/server-dotnet/examples/avatars/get-flag.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/avatars/get-image.md b/docs/examples/1.4.x/server-dotnet/examples/avatars/get-image.md index 35bf382f12f..7c85d566f2a 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/avatars/get-image.md +++ b/docs/examples/1.4.x/server-dotnet/examples/avatars/get-image.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/avatars/get-initials.md b/docs/examples/1.4.x/server-dotnet/examples/avatars/get-initials.md index 20ea37a3a42..7f40a3f2a0b 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/avatars/get-initials.md +++ b/docs/examples/1.4.x/server-dotnet/examples/avatars/get-initials.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/avatars/get-q-r.md b/docs/examples/1.4.x/server-dotnet/examples/avatars/get-q-r.md index 33dcac6f918..3fe62f1bcc8 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/avatars/get-q-r.md +++ b/docs/examples/1.4.x/server-dotnet/examples/avatars/get-q-r.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/create-boolean-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/create-boolean-attribute.md index 439537a9cb3..6b86445fb83 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/create-boolean-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/create-collection.md b/docs/examples/1.4.x/server-dotnet/examples/databases/create-collection.md index 1b7aa198a60..c1545c3a57f 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/create-collection.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/create-collection.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/create-datetime-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/create-datetime-attribute.md index 1fff2965ffd..5722be761fd 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/create-datetime-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/create-document.md b/docs/examples/1.4.x/server-dotnet/examples/databases/create-document.md index c0081f1f200..bdd144c6c79 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/create-document.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/create-document.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/create-email-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/create-email-attribute.md index e22ed7ddca6..416bcad541f 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/create-email-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/create-email-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/create-enum-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/create-enum-attribute.md index 773d41e9fa8..cdf4142ac96 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/create-enum-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/create-float-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/create-float-attribute.md index d0915184e8a..038abe997b5 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/create-float-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/create-float-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/create-index.md b/docs/examples/1.4.x/server-dotnet/examples/databases/create-index.md index b13de722aa6..ee8c4b6fd69 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/create-index.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/create-index.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/create-integer-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/create-integer-attribute.md index 0d84ea7868d..0bb5c422293 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/create-integer-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/create-ip-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/create-ip-attribute.md index ca571d00bda..81362cda5ee 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/create-ip-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/create-relationship-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/create-relationship-attribute.md index 9c4a8c36043..37328d876e3 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/create-relationship-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/create-string-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/create-string-attribute.md index 645492eeabf..bd34f357aa7 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/create-string-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/create-string-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/create-url-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/create-url-attribute.md index 9425882decb..46368bf2f91 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/create-url-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/create-url-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/create.md b/docs/examples/1.4.x/server-dotnet/examples/databases/create.md index 61ba46c03a5..671a3864b89 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/create.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/create.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/delete-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/delete-attribute.md index 8ebde257c52..4ceffc29181 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/delete-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/delete-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/delete-collection.md b/docs/examples/1.4.x/server-dotnet/examples/databases/delete-collection.md index 398185c509e..ecb627ceb4b 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/delete-collection.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/delete-collection.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/delete-document.md b/docs/examples/1.4.x/server-dotnet/examples/databases/delete-document.md index 6892b25438b..1107dce324c 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/delete-document.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/delete-document.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/delete-index.md b/docs/examples/1.4.x/server-dotnet/examples/databases/delete-index.md index c5dab69e0fc..c7423b974c3 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/delete-index.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/delete-index.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/delete.md b/docs/examples/1.4.x/server-dotnet/examples/databases/delete.md index cc8b4317e19..d7e3d2030db 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/delete.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/delete.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/get-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/get-attribute.md index 13eae946e96..491a0db2f87 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/get-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/get-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/get-collection.md b/docs/examples/1.4.x/server-dotnet/examples/databases/get-collection.md index b617da7810f..0b956208f66 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/get-collection.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/get-collection.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/get-document.md b/docs/examples/1.4.x/server-dotnet/examples/databases/get-document.md index 079f93a4031..095d1a1e668 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/get-document.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/get-document.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/get-index.md b/docs/examples/1.4.x/server-dotnet/examples/databases/get-index.md index d989ed46519..7a81d9b1195 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/get-index.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/get-index.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/get.md b/docs/examples/1.4.x/server-dotnet/examples/databases/get.md index 5dfa70eec14..bc770bbf432 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/get.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/get.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/list-attributes.md b/docs/examples/1.4.x/server-dotnet/examples/databases/list-attributes.md index 8af529df418..30362cf3987 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/list-attributes.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/list-attributes.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/list-collections.md b/docs/examples/1.4.x/server-dotnet/examples/databases/list-collections.md index ed0d7bb56fc..6eae10213e8 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/list-collections.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/list-collections.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/list-documents.md b/docs/examples/1.4.x/server-dotnet/examples/databases/list-documents.md index 92895692f0a..47bb99e03af 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/list-documents.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/list-documents.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/list-indexes.md b/docs/examples/1.4.x/server-dotnet/examples/databases/list-indexes.md index dbbed3ca537..87f1560ec48 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/list-indexes.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/list-indexes.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/list.md b/docs/examples/1.4.x/server-dotnet/examples/databases/list.md index ec234ddbab3..c247e5abc2e 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/list.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/list.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/update-boolean-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/update-boolean-attribute.md index 2d6fa80849a..6e3ee9a0d0b 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/update-boolean-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/update-collection.md b/docs/examples/1.4.x/server-dotnet/examples/databases/update-collection.md index aa477e4ce01..a946514ed6f 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/update-collection.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/update-collection.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/update-datetime-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/update-datetime-attribute.md index 81966f05f14..65ba0b5c7f3 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/update-datetime-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/update-document.md b/docs/examples/1.4.x/server-dotnet/examples/databases/update-document.md index b19d9226c69..e204c9b90fc 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/update-document.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/update-document.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/update-email-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/update-email-attribute.md index 5baf67fd729..59a94d850d9 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/update-email-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/update-email-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/update-enum-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/update-enum-attribute.md index 184ac1820f1..dfef22bf6de 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/update-enum-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/update-float-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/update-float-attribute.md index d68815ab07f..f6561415d57 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/update-float-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/update-float-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/update-integer-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/update-integer-attribute.md index 2ad0e057549..e19cc9f6480 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/update-integer-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/update-ip-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/update-ip-attribute.md index 10fd34b3066..0f9d4ad2857 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/update-ip-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/update-relationship-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/update-relationship-attribute.md index 8a65da0a421..fa2042f18e7 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/update-relationship-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/update-string-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/update-string-attribute.md index 84fc2b8da95..5ce837ccbb9 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/update-string-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/update-string-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/update-url-attribute.md b/docs/examples/1.4.x/server-dotnet/examples/databases/update-url-attribute.md index e79812a77b1..a66a848951b 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/update-url-attribute.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/update-url-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/databases/update.md b/docs/examples/1.4.x/server-dotnet/examples/databases/update.md index 743108fc66b..8ab4cc5ea0f 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/databases/update.md +++ b/docs/examples/1.4.x/server-dotnet/examples/databases/update.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/create-build.md b/docs/examples/1.4.x/server-dotnet/examples/functions/create-build.md index 71eb842c6c7..51c539a59d3 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/create-build.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/create-build.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/create-deployment.md b/docs/examples/1.4.x/server-dotnet/examples/functions/create-deployment.md index 9bbcc65dea3..51444d9347a 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/create-deployment.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/create-deployment.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/create-execution.md b/docs/examples/1.4.x/server-dotnet/examples/functions/create-execution.md index 93cd65be5d2..d6e17cbcd44 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/create-execution.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/create-execution.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/create-variable.md b/docs/examples/1.4.x/server-dotnet/examples/functions/create-variable.md index 0724bc6eef4..a90e0e883fc 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/create-variable.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/create-variable.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/create.md b/docs/examples/1.4.x/server-dotnet/examples/functions/create.md index 695fe8b6262..f05e9ca69fd 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/create.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/create.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/delete-deployment.md b/docs/examples/1.4.x/server-dotnet/examples/functions/delete-deployment.md index 2c17dfae9f2..907a3f03266 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/delete-deployment.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/delete-deployment.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/delete-variable.md b/docs/examples/1.4.x/server-dotnet/examples/functions/delete-variable.md index cf201480fa1..3faa77f8ce8 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/delete-variable.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/delete-variable.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/delete.md b/docs/examples/1.4.x/server-dotnet/examples/functions/delete.md index 123e307c799..c3db166334a 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/delete.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/delete.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/download-deployment.md b/docs/examples/1.4.x/server-dotnet/examples/functions/download-deployment.md index d167c7ddfd0..e8a2f3d32e1 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/download-deployment.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/download-deployment.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/get-deployment.md b/docs/examples/1.4.x/server-dotnet/examples/functions/get-deployment.md index 7d895c6d82c..18f5206643f 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/get-deployment.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/get-deployment.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/get-execution.md b/docs/examples/1.4.x/server-dotnet/examples/functions/get-execution.md index ed65d26bef4..e6dfe4a9130 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/get-execution.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/get-execution.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/get-variable.md b/docs/examples/1.4.x/server-dotnet/examples/functions/get-variable.md index 12083e5acb8..c17dd8cf62c 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/get-variable.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/get-variable.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/get.md b/docs/examples/1.4.x/server-dotnet/examples/functions/get.md index 1914ccf7acc..c21fc7dbd54 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/get.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/get.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/list-deployments.md b/docs/examples/1.4.x/server-dotnet/examples/functions/list-deployments.md index cd6a7b94468..4e2e85fa528 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/list-deployments.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/list-deployments.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/list-executions.md b/docs/examples/1.4.x/server-dotnet/examples/functions/list-executions.md index d4c73a0d362..7bf4598b4cc 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/list-executions.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/list-executions.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/list-runtimes.md b/docs/examples/1.4.x/server-dotnet/examples/functions/list-runtimes.md index ca1d125eb23..ad8a60936f7 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/list-runtimes.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/list-runtimes.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/list-variables.md b/docs/examples/1.4.x/server-dotnet/examples/functions/list-variables.md index 31177df9ff3..555e972af51 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/list-variables.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/list-variables.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/list.md b/docs/examples/1.4.x/server-dotnet/examples/functions/list.md index 1b8897b76fb..76128c22bf3 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/list.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/list.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/update-deployment.md b/docs/examples/1.4.x/server-dotnet/examples/functions/update-deployment.md index 8cd7fc54257..ba2f2b1e5ac 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/update-deployment.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/update-deployment.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/update-variable.md b/docs/examples/1.4.x/server-dotnet/examples/functions/update-variable.md index 63eac46609c..c222a9e27f2 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/update-variable.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/update-variable.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/functions/update.md b/docs/examples/1.4.x/server-dotnet/examples/functions/update.md index d9b29e6e77e..fed73cc4785 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/functions/update.md +++ b/docs/examples/1.4.x/server-dotnet/examples/functions/update.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/graphql/mutation.md b/docs/examples/1.4.x/server-dotnet/examples/graphql/mutation.md index 8ab5f0e458e..7756823b7ee 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/graphql/mutation.md +++ b/docs/examples/1.4.x/server-dotnet/examples/graphql/mutation.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/graphql/query.md b/docs/examples/1.4.x/server-dotnet/examples/graphql/query.md index e019f43e5bd..24f480286d4 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/graphql/query.md +++ b/docs/examples/1.4.x/server-dotnet/examples/graphql/query.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-antivirus.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-antivirus.md index b8b0d5d95e4..08bf1207329 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-antivirus.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-antivirus.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-cache.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-cache.md index 2f36c10f3b1..98970f14425 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-cache.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-cache.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-d-b.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-d-b.md index a263709073d..1ec2dea7fde 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-d-b.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-d-b.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-pub-sub.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-pub-sub.md index 7850a7555c7..3e2bde164e7 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-pub-sub.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-pub-sub.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-builds.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-builds.md index 654ab8efbbf..46ab49174fe 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-builds.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-builds.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-certificates.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-certificates.md index b2f945cbc72..4ae91c03cb0 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-certificates.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-certificates.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-databases.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-databases.md index 5bd24a4607e..fd6e4409d41 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-databases.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-databases.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-deletes.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-deletes.md index 26a692ce4f3..36c61000772 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-deletes.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-deletes.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-functions.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-functions.md index cf2ed7fc082..935bef44369 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-functions.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-functions.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-logs.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-logs.md index 8821509dbc2..5ff91aa0256 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-logs.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-logs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-mails.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-mails.md index 41e09a221f8..e7d99cb23d7 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-mails.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-mails.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-messaging.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-messaging.md index 52b7aaf332e..d7f3c4d9622 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-messaging.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-messaging.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-migrations.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-migrations.md index 49b0597c0c1..f37ce657e0d 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-migrations.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-migrations.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-webhooks.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-webhooks.md index d2ffb01c4df..12b0edb7115 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue-webhooks.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue.md index 1087bc12c8f..b158d6fa2c1 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-queue.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-queue.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-storage-local.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-storage-local.md index bc60cc6ccd6..36934e7443a 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-storage-local.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-storage-local.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get-time.md b/docs/examples/1.4.x/server-dotnet/examples/health/get-time.md index 15f17454537..ec6e71f0e9d 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get-time.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get-time.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/health/get.md b/docs/examples/1.4.x/server-dotnet/examples/health/get.md index d1ddd8fdf08..fb56bd5f3e9 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/health/get.md +++ b/docs/examples/1.4.x/server-dotnet/examples/health/get.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/locale/get.md b/docs/examples/1.4.x/server-dotnet/examples/locale/get.md index f049a920726..6713e1ed576 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/locale/get.md +++ b/docs/examples/1.4.x/server-dotnet/examples/locale/get.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/locale/list-codes.md b/docs/examples/1.4.x/server-dotnet/examples/locale/list-codes.md index 9eaab834627..be761094e6e 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/locale/list-codes.md +++ b/docs/examples/1.4.x/server-dotnet/examples/locale/list-codes.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/locale/list-continents.md b/docs/examples/1.4.x/server-dotnet/examples/locale/list-continents.md index dd91caba9de..34af0c22b7c 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/locale/list-continents.md +++ b/docs/examples/1.4.x/server-dotnet/examples/locale/list-continents.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/locale/list-countries-e-u.md b/docs/examples/1.4.x/server-dotnet/examples/locale/list-countries-e-u.md index 8692c7b78e8..c515841b7dc 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/server-dotnet/examples/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/locale/list-countries-phones.md b/docs/examples/1.4.x/server-dotnet/examples/locale/list-countries-phones.md index 8607ae90f58..ebe76e6bfd1 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/server-dotnet/examples/locale/list-countries-phones.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/locale/list-countries.md b/docs/examples/1.4.x/server-dotnet/examples/locale/list-countries.md index c67d863856a..a1a6ed3e3a8 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/locale/list-countries.md +++ b/docs/examples/1.4.x/server-dotnet/examples/locale/list-countries.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/locale/list-currencies.md b/docs/examples/1.4.x/server-dotnet/examples/locale/list-currencies.md index 1bb3c427e04..dc04bca6f94 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/locale/list-currencies.md +++ b/docs/examples/1.4.x/server-dotnet/examples/locale/list-currencies.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/locale/list-languages.md b/docs/examples/1.4.x/server-dotnet/examples/locale/list-languages.md index 1c2897d4fb8..79e53a20377 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/locale/list-languages.md +++ b/docs/examples/1.4.x/server-dotnet/examples/locale/list-languages.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/storage/create-bucket.md b/docs/examples/1.4.x/server-dotnet/examples/storage/create-bucket.md index b1da6cb0bd0..120a177dd6f 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/storage/create-bucket.md +++ b/docs/examples/1.4.x/server-dotnet/examples/storage/create-bucket.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/storage/create-file.md b/docs/examples/1.4.x/server-dotnet/examples/storage/create-file.md index f7d73152098..58118f66e1a 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/storage/create-file.md +++ b/docs/examples/1.4.x/server-dotnet/examples/storage/create-file.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/storage/delete-bucket.md b/docs/examples/1.4.x/server-dotnet/examples/storage/delete-bucket.md index c8825f30639..a19aec20998 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/storage/delete-bucket.md +++ b/docs/examples/1.4.x/server-dotnet/examples/storage/delete-bucket.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/storage/delete-file.md b/docs/examples/1.4.x/server-dotnet/examples/storage/delete-file.md index 8b70175d97a..5300b3e3f33 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/storage/delete-file.md +++ b/docs/examples/1.4.x/server-dotnet/examples/storage/delete-file.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/storage/get-bucket.md b/docs/examples/1.4.x/server-dotnet/examples/storage/get-bucket.md index aca9020f285..dd97d871470 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/storage/get-bucket.md +++ b/docs/examples/1.4.x/server-dotnet/examples/storage/get-bucket.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/storage/get-file-download.md b/docs/examples/1.4.x/server-dotnet/examples/storage/get-file-download.md index e6aa24bea3e..50e79c821f8 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/storage/get-file-download.md +++ b/docs/examples/1.4.x/server-dotnet/examples/storage/get-file-download.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/storage/get-file-preview.md b/docs/examples/1.4.x/server-dotnet/examples/storage/get-file-preview.md index 92565ae5efe..4bcb95323ac 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/storage/get-file-preview.md +++ b/docs/examples/1.4.x/server-dotnet/examples/storage/get-file-preview.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/storage/get-file-view.md b/docs/examples/1.4.x/server-dotnet/examples/storage/get-file-view.md index 081f2dce7ba..f0faf111eef 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/storage/get-file-view.md +++ b/docs/examples/1.4.x/server-dotnet/examples/storage/get-file-view.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/storage/get-file.md b/docs/examples/1.4.x/server-dotnet/examples/storage/get-file.md index 0299a91bbe9..a2640e3deb0 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/storage/get-file.md +++ b/docs/examples/1.4.x/server-dotnet/examples/storage/get-file.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/storage/list-buckets.md b/docs/examples/1.4.x/server-dotnet/examples/storage/list-buckets.md index 2caae5e0af8..6b527b1aaf9 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/storage/list-buckets.md +++ b/docs/examples/1.4.x/server-dotnet/examples/storage/list-buckets.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/storage/list-files.md b/docs/examples/1.4.x/server-dotnet/examples/storage/list-files.md index 9d861171acd..82cdd78bce1 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/storage/list-files.md +++ b/docs/examples/1.4.x/server-dotnet/examples/storage/list-files.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/storage/update-bucket.md b/docs/examples/1.4.x/server-dotnet/examples/storage/update-bucket.md index eac74562092..8675d42d30f 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/storage/update-bucket.md +++ b/docs/examples/1.4.x/server-dotnet/examples/storage/update-bucket.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/storage/update-file.md b/docs/examples/1.4.x/server-dotnet/examples/storage/update-file.md index c51d335eef2..dd6bad34a8f 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/storage/update-file.md +++ b/docs/examples/1.4.x/server-dotnet/examples/storage/update-file.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/teams/create-membership.md b/docs/examples/1.4.x/server-dotnet/examples/teams/create-membership.md index 1fd8e265216..70ba09b27e0 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/teams/create-membership.md +++ b/docs/examples/1.4.x/server-dotnet/examples/teams/create-membership.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/teams/create.md b/docs/examples/1.4.x/server-dotnet/examples/teams/create.md index fa34098cb25..2cec3e20093 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/teams/create.md +++ b/docs/examples/1.4.x/server-dotnet/examples/teams/create.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/teams/delete-membership.md b/docs/examples/1.4.x/server-dotnet/examples/teams/delete-membership.md index e3c7562f998..3eb75eff7c6 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/teams/delete-membership.md +++ b/docs/examples/1.4.x/server-dotnet/examples/teams/delete-membership.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/teams/delete.md b/docs/examples/1.4.x/server-dotnet/examples/teams/delete.md index 8229839b1cf..497b365113d 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/teams/delete.md +++ b/docs/examples/1.4.x/server-dotnet/examples/teams/delete.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/teams/get-membership.md b/docs/examples/1.4.x/server-dotnet/examples/teams/get-membership.md index 108dbadbe04..3cdaf1c8fd7 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/teams/get-membership.md +++ b/docs/examples/1.4.x/server-dotnet/examples/teams/get-membership.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/teams/get-prefs.md b/docs/examples/1.4.x/server-dotnet/examples/teams/get-prefs.md index 08be12ba836..39fdbf4cbfc 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/teams/get-prefs.md +++ b/docs/examples/1.4.x/server-dotnet/examples/teams/get-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/teams/get.md b/docs/examples/1.4.x/server-dotnet/examples/teams/get.md index f6c92a007b1..3ed9ff67718 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/teams/get.md +++ b/docs/examples/1.4.x/server-dotnet/examples/teams/get.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/teams/list-memberships.md b/docs/examples/1.4.x/server-dotnet/examples/teams/list-memberships.md index 145376cfb9d..b2a5a0ed0b5 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/teams/list-memberships.md +++ b/docs/examples/1.4.x/server-dotnet/examples/teams/list-memberships.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/teams/list.md b/docs/examples/1.4.x/server-dotnet/examples/teams/list.md index 1acf615039f..133907dc2c0 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/teams/list.md +++ b/docs/examples/1.4.x/server-dotnet/examples/teams/list.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/teams/update-membership-status.md b/docs/examples/1.4.x/server-dotnet/examples/teams/update-membership-status.md index bb377203ccb..d5514e77399 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/teams/update-membership-status.md +++ b/docs/examples/1.4.x/server-dotnet/examples/teams/update-membership-status.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/teams/update-membership.md b/docs/examples/1.4.x/server-dotnet/examples/teams/update-membership.md index 70ad79f23f7..bd954738b5c 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/teams/update-membership.md +++ b/docs/examples/1.4.x/server-dotnet/examples/teams/update-membership.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/teams/update-name.md b/docs/examples/1.4.x/server-dotnet/examples/teams/update-name.md index 12867304375..bd0bd7df41c 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/teams/update-name.md +++ b/docs/examples/1.4.x/server-dotnet/examples/teams/update-name.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/teams/update-prefs.md b/docs/examples/1.4.x/server-dotnet/examples/teams/update-prefs.md index 3dfc0a3fc1a..c75e761fc45 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/teams/update-prefs.md +++ b/docs/examples/1.4.x/server-dotnet/examples/teams/update-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/create-argon2user.md b/docs/examples/1.4.x/server-dotnet/examples/users/create-argon2user.md index 6038594547b..958efe5c510 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/create-argon2user.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/create-argon2user.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/create-bcrypt-user.md b/docs/examples/1.4.x/server-dotnet/examples/users/create-bcrypt-user.md index 954e1ad1cca..20297ef5d88 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/create-bcrypt-user.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/create-m-d5user.md b/docs/examples/1.4.x/server-dotnet/examples/users/create-m-d5user.md index de54ee98fec..a7b0ad13814 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/create-m-d5user.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/create-m-d5user.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/create-p-h-pass-user.md b/docs/examples/1.4.x/server-dotnet/examples/users/create-p-h-pass-user.md index e8ede042daf..60d1f6d7798 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/create-p-h-pass-user.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/create-s-h-a-user.md b/docs/examples/1.4.x/server-dotnet/examples/users/create-s-h-a-user.md index f3816196514..68fcc2900ee 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/create-s-h-a-user.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/create-scrypt-modified-user.md b/docs/examples/1.4.x/server-dotnet/examples/users/create-scrypt-modified-user.md index c16cfe97f95..b03e4d0a121 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/create-scrypt-modified-user.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/create-scrypt-user.md b/docs/examples/1.4.x/server-dotnet/examples/users/create-scrypt-user.md index 1d6e60dd2d2..1cf9a2effe5 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/create-scrypt-user.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/create-scrypt-user.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/create.md b/docs/examples/1.4.x/server-dotnet/examples/users/create.md index 0a8421a5448..ad55ca54e2c 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/create.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/create.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/delete-identity.md b/docs/examples/1.4.x/server-dotnet/examples/users/delete-identity.md index f1425a9ab37..ee1815bb085 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/delete-identity.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/delete-identity.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/delete-session.md b/docs/examples/1.4.x/server-dotnet/examples/users/delete-session.md index 841bd456c85..3f342d1178d 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/delete-session.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/delete-session.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/delete-sessions.md b/docs/examples/1.4.x/server-dotnet/examples/users/delete-sessions.md index 8ff8f765228..bb5abd9a82b 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/delete-sessions.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/delete-sessions.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/delete.md b/docs/examples/1.4.x/server-dotnet/examples/users/delete.md index 7833a7950fd..71ba2bf6881 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/delete.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/delete.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/get-prefs.md b/docs/examples/1.4.x/server-dotnet/examples/users/get-prefs.md index c19f5e07786..6f122c0ff27 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/get-prefs.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/get-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/get.md b/docs/examples/1.4.x/server-dotnet/examples/users/get.md index 9c315e60210..b42ff2bf731 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/get.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/get.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/list-identities.md b/docs/examples/1.4.x/server-dotnet/examples/users/list-identities.md index af8f99620f1..69acb5529a5 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/list-identities.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/list-identities.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/list-logs.md b/docs/examples/1.4.x/server-dotnet/examples/users/list-logs.md index 277addcd25e..b56bf45aa8a 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/list-logs.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/list-logs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/list-memberships.md b/docs/examples/1.4.x/server-dotnet/examples/users/list-memberships.md index c25d98b41d2..d3099aad978 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/list-memberships.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/list-memberships.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/list-sessions.md b/docs/examples/1.4.x/server-dotnet/examples/users/list-sessions.md index fcd87f01ad5..43230b847d7 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/list-sessions.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/list-sessions.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/list.md b/docs/examples/1.4.x/server-dotnet/examples/users/list.md index 9cb177b6923..580396eca5f 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/list.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/list.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/update-email-verification.md b/docs/examples/1.4.x/server-dotnet/examples/users/update-email-verification.md index 2b7a5b86748..5287a38ce01 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/update-email-verification.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/update-email-verification.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/update-email.md b/docs/examples/1.4.x/server-dotnet/examples/users/update-email.md index 0d371b13fc0..8bad70f9567 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/update-email.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/update-email.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/update-labels.md b/docs/examples/1.4.x/server-dotnet/examples/users/update-labels.md index 97d5db356a9..050486720c2 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/update-labels.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/update-labels.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/update-name.md b/docs/examples/1.4.x/server-dotnet/examples/users/update-name.md index f846543117c..8bfbeaafa20 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/update-name.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/update-name.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/update-password.md b/docs/examples/1.4.x/server-dotnet/examples/users/update-password.md index ce3241dfd5d..c6fd97306b3 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/update-password.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/update-password.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/update-phone-verification.md b/docs/examples/1.4.x/server-dotnet/examples/users/update-phone-verification.md index c2fd1673de4..784ea37f188 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/update-phone-verification.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/update-phone-verification.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/update-phone.md b/docs/examples/1.4.x/server-dotnet/examples/users/update-phone.md index 90728d76c70..e293e53002f 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/update-phone.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/update-phone.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/update-prefs.md b/docs/examples/1.4.x/server-dotnet/examples/users/update-prefs.md index a39d54565a1..5a443de5c79 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/update-prefs.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/update-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-dotnet/examples/users/update-status.md b/docs/examples/1.4.x/server-dotnet/examples/users/update-status.md index 713ece02ba5..d913bb5cb95 100644 --- a/docs/examples/1.4.x/server-dotnet/examples/users/update-status.md +++ b/docs/examples/1.4.x/server-dotnet/examples/users/update-status.md @@ -3,7 +3,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/account/create-phone-verification.md b/docs/examples/1.4.x/server-kotlin/java/account/create-phone-verification.md index 013b357f880..86416e08aaa 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/create-phone-verification.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/create-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/create-recovery.md b/docs/examples/1.4.x/server-kotlin/java/account/create-recovery.md index 284efc8107b..7f1a21b9dc8 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/create-recovery.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/create-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/create-verification.md b/docs/examples/1.4.x/server-kotlin/java/account/create-verification.md index 0280b4b15b1..c7911643c19 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/create-verification.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/create-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/delete-identity.md b/docs/examples/1.4.x/server-kotlin/java/account/delete-identity.md index 54bad5a9f02..4ce39edbbfe 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/delete-identity.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/delete-identity.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/delete-session.md b/docs/examples/1.4.x/server-kotlin/java/account/delete-session.md index 2cd069eaa13..27ce537ecd6 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/delete-session.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/delete-sessions.md b/docs/examples/1.4.x/server-kotlin/java/account/delete-sessions.md index 7a9999d3985..cd790a3ac73 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/delete-sessions.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/get-prefs.md b/docs/examples/1.4.x/server-kotlin/java/account/get-prefs.md index 3f6cd20c9dd..609707c4071 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/get-prefs.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/get-session.md b/docs/examples/1.4.x/server-kotlin/java/account/get-session.md index 17229e29de2..efe4fabba7d 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/get-session.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/get-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/get.md b/docs/examples/1.4.x/server-kotlin/java/account/get.md index 80a4988af5b..a79e0279408 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/get.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/list-identities.md b/docs/examples/1.4.x/server-kotlin/java/account/list-identities.md index d6fcb681279..d0d62fc9d5a 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/list-identities.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/list-identities.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/list-logs.md b/docs/examples/1.4.x/server-kotlin/java/account/list-logs.md index 971ac866e12..cfb15dccfca 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/list-logs.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/list-sessions.md b/docs/examples/1.4.x/server-kotlin/java/account/list-sessions.md index 9d7e6308e51..f850618692a 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/list-sessions.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/update-email.md b/docs/examples/1.4.x/server-kotlin/java/account/update-email.md index 67ab31ad88b..4e09bdf1a97 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/update-email.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/update-name.md b/docs/examples/1.4.x/server-kotlin/java/account/update-name.md index 6900f121746..6a5a1711eb8 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/update-name.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/update-password.md b/docs/examples/1.4.x/server-kotlin/java/account/update-password.md index ace01fcc9ad..3797fcb7b4b 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/update-password.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/update-phone-verification.md b/docs/examples/1.4.x/server-kotlin/java/account/update-phone-verification.md index 8c3c9756de6..0c1d4407633 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/update-phone-verification.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/update-phone.md b/docs/examples/1.4.x/server-kotlin/java/account/update-phone.md index 9365a0f0b9b..d51cc4497e3 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/update-phone.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/update-prefs.md b/docs/examples/1.4.x/server-kotlin/java/account/update-prefs.md index 24a36258345..2c7e22f25fd 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/update-prefs.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/update-recovery.md b/docs/examples/1.4.x/server-kotlin/java/account/update-recovery.md index bc3251d1602..ffbfd402b94 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/update-recovery.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/update-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/update-session.md b/docs/examples/1.4.x/server-kotlin/java/account/update-session.md index 62d77e1366f..ec83c2d357e 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/update-session.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/update-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/update-status.md b/docs/examples/1.4.x/server-kotlin/java/account/update-status.md index 4af2cf1083b..964ce9c5b0f 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/update-status.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/account/update-verification.md b/docs/examples/1.4.x/server-kotlin/java/account/update-verification.md index 2190daf1b7d..76780f4ac60 100644 --- a/docs/examples/1.4.x/server-kotlin/java/account/update-verification.md +++ b/docs/examples/1.4.x/server-kotlin/java/account/update-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/avatars/get-browser.md b/docs/examples/1.4.x/server-kotlin/java/avatars/get-browser.md index 42e8e57ee11..0682288cfe9 100644 --- a/docs/examples/1.4.x/server-kotlin/java/avatars/get-browser.md +++ b/docs/examples/1.4.x/server-kotlin/java/avatars/get-browser.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/avatars/get-credit-card.md b/docs/examples/1.4.x/server-kotlin/java/avatars/get-credit-card.md index 5e3b32b527f..f821a7638c9 100644 --- a/docs/examples/1.4.x/server-kotlin/java/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/server-kotlin/java/avatars/get-credit-card.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/avatars/get-favicon.md b/docs/examples/1.4.x/server-kotlin/java/avatars/get-favicon.md index 109f88f7193..95b91adb90b 100644 --- a/docs/examples/1.4.x/server-kotlin/java/avatars/get-favicon.md +++ b/docs/examples/1.4.x/server-kotlin/java/avatars/get-favicon.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/avatars/get-flag.md b/docs/examples/1.4.x/server-kotlin/java/avatars/get-flag.md index 6ad820ae7a9..f0e2cda52db 100644 --- a/docs/examples/1.4.x/server-kotlin/java/avatars/get-flag.md +++ b/docs/examples/1.4.x/server-kotlin/java/avatars/get-flag.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/avatars/get-image.md b/docs/examples/1.4.x/server-kotlin/java/avatars/get-image.md index 26805449885..765a8024e50 100644 --- a/docs/examples/1.4.x/server-kotlin/java/avatars/get-image.md +++ b/docs/examples/1.4.x/server-kotlin/java/avatars/get-image.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/avatars/get-initials.md b/docs/examples/1.4.x/server-kotlin/java/avatars/get-initials.md index 8a86e7a01bd..8cbcee1497f 100644 --- a/docs/examples/1.4.x/server-kotlin/java/avatars/get-initials.md +++ b/docs/examples/1.4.x/server-kotlin/java/avatars/get-initials.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/avatars/get-q-r.md b/docs/examples/1.4.x/server-kotlin/java/avatars/get-q-r.md index c57d70a8409..2d7e1332817 100644 --- a/docs/examples/1.4.x/server-kotlin/java/avatars/get-q-r.md +++ b/docs/examples/1.4.x/server-kotlin/java/avatars/get-q-r.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/create-boolean-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/create-boolean-attribute.md index 6e79f0a917c..c5d83a05ff4 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/create-boolean-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/create-boolean-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/create-collection.md b/docs/examples/1.4.x/server-kotlin/java/databases/create-collection.md index 96b5d9b9743..77b5c9f7b72 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/create-collection.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/create-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/create-datetime-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/create-datetime-attribute.md index 307a8ffb653..c6d3c6f229f 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/create-datetime-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/create-datetime-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/create-document.md b/docs/examples/1.4.x/server-kotlin/java/databases/create-document.md index 029c3f7a253..ede98c60462 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/create-document.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/create-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/create-email-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/create-email-attribute.md index 8774c550b78..0200f11e7d1 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/create-email-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/create-email-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/create-enum-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/create-enum-attribute.md index e2cf6a28df3..c4ae2933a4f 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/create-enum-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/create-enum-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/create-float-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/create-float-attribute.md index 0fba6ac073a..ceede982b06 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/create-float-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/create-float-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/create-index.md b/docs/examples/1.4.x/server-kotlin/java/databases/create-index.md index 5dbdce895b8..44eba1df018 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/create-index.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/create-index.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/create-integer-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/create-integer-attribute.md index 5446862fdbc..b0d8028a623 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/create-integer-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/create-integer-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/create-ip-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/create-ip-attribute.md index fe37da96d57..a8ade8a4128 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/create-ip-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/create-ip-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/create-relationship-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/create-relationship-attribute.md index 0b7e5f999fa..1c54712e5a0 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/create-relationship-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/create-relationship-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/create-string-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/create-string-attribute.md index a9b19160669..1a767be1d89 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/create-string-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/create-string-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/create-url-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/create-url-attribute.md index 9c504d862bf..c1bee6e0ba3 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/create-url-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/create-url-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/create.md b/docs/examples/1.4.x/server-kotlin/java/databases/create.md index a3234340597..9a2d932dd89 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/create.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/delete-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/delete-attribute.md index 68aeecd93be..d58ba87b289 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/delete-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/delete-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/delete-collection.md b/docs/examples/1.4.x/server-kotlin/java/databases/delete-collection.md index cd328b48a60..370781bea90 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/delete-collection.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/delete-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/delete-document.md b/docs/examples/1.4.x/server-kotlin/java/databases/delete-document.md index 4f4c8495c32..46b9edf2f62 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/delete-document.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/delete-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/delete-index.md b/docs/examples/1.4.x/server-kotlin/java/databases/delete-index.md index 640bd0fc312..d633a8a2aed 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/delete-index.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/delete-index.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/delete.md b/docs/examples/1.4.x/server-kotlin/java/databases/delete.md index 897a450fa41..a7fad611e05 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/delete.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/get-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/get-attribute.md index 79c1d2b2add..fcea6fefb99 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/get-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/get-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/get-collection.md b/docs/examples/1.4.x/server-kotlin/java/databases/get-collection.md index 3ecfa0ca802..ce0eea0cb39 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/get-collection.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/get-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/get-document.md b/docs/examples/1.4.x/server-kotlin/java/databases/get-document.md index 2061bed2020..cac1612f0c8 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/get-document.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/get-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/get-index.md b/docs/examples/1.4.x/server-kotlin/java/databases/get-index.md index 2bf036a0575..753fef468f1 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/get-index.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/get-index.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/get.md b/docs/examples/1.4.x/server-kotlin/java/databases/get.md index 066ec4d2626..d4eeb222fd7 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/get.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/list-attributes.md b/docs/examples/1.4.x/server-kotlin/java/databases/list-attributes.md index f42baa02f48..9c9c2623d3a 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/list-attributes.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/list-attributes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/list-collections.md b/docs/examples/1.4.x/server-kotlin/java/databases/list-collections.md index 67c343f38a7..639a45bc2e0 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/list-collections.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/list-collections.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/list-documents.md b/docs/examples/1.4.x/server-kotlin/java/databases/list-documents.md index 7a4a1b70b2a..56de64ca4c6 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/list-documents.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/list-documents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/list-indexes.md b/docs/examples/1.4.x/server-kotlin/java/databases/list-indexes.md index be50cdd900d..58a7e3d2176 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/list-indexes.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/list-indexes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/list.md b/docs/examples/1.4.x/server-kotlin/java/databases/list.md index 04f81867f0e..b46abf235c8 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/list.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/update-boolean-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/update-boolean-attribute.md index 97cee2d5484..ac9e320ceca 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/update-boolean-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/update-boolean-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/update-collection.md b/docs/examples/1.4.x/server-kotlin/java/databases/update-collection.md index 3f25c5047e9..831193fbf54 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/update-collection.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/update-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/update-datetime-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/update-datetime-attribute.md index 503f2debdfa..4b143f17ba5 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/update-datetime-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/update-datetime-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/update-document.md b/docs/examples/1.4.x/server-kotlin/java/databases/update-document.md index e9a596d3d42..39755884660 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/update-document.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/update-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/update-email-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/update-email-attribute.md index 39ea153834d..336c25482e3 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/update-email-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/update-email-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/update-enum-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/update-enum-attribute.md index 969ea4eece2..cd9622fff92 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/update-enum-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/update-enum-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/update-float-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/update-float-attribute.md index 67d76e425ff..0e84626db79 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/update-float-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/update-float-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/update-integer-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/update-integer-attribute.md index b9308dc22b9..8cac2614886 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/update-integer-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/update-integer-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/update-ip-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/update-ip-attribute.md index 6a936a5f361..51cb161ea22 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/update-ip-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/update-ip-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/update-relationship-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/update-relationship-attribute.md index 272952b5970..624e66ed73e 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/update-relationship-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/update-relationship-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/update-string-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/update-string-attribute.md index aba0d0e53ca..1f605fd0ee1 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/update-string-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/update-string-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/update-url-attribute.md b/docs/examples/1.4.x/server-kotlin/java/databases/update-url-attribute.md index 87ab384929f..f1e29c43bc9 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/update-url-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/update-url-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/databases/update.md b/docs/examples/1.4.x/server-kotlin/java/databases/update.md index b706df65243..11337ed0d3e 100644 --- a/docs/examples/1.4.x/server-kotlin/java/databases/update.md +++ b/docs/examples/1.4.x/server-kotlin/java/databases/update.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/create-build.md b/docs/examples/1.4.x/server-kotlin/java/functions/create-build.md index 10c8d2fc801..5a571f76e8d 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/create-build.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/create-build.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/create-deployment.md b/docs/examples/1.4.x/server-kotlin/java/functions/create-deployment.md index 4e6da334825..40b8aa5ea73 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/create-deployment.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/create-deployment.md @@ -4,7 +4,7 @@ import io.appwrite.models.InputFile; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/create-execution.md b/docs/examples/1.4.x/server-kotlin/java/functions/create-execution.md index 315f57d5cb5..d53744f70a7 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/create-execution.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/create-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/create-variable.md b/docs/examples/1.4.x/server-kotlin/java/functions/create-variable.md index 5e9c5a66bd9..3ce9c2d944d 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/create-variable.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/create-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/create.md b/docs/examples/1.4.x/server-kotlin/java/functions/create.md index aac81692eac..2b143361f24 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/create.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/delete-deployment.md b/docs/examples/1.4.x/server-kotlin/java/functions/delete-deployment.md index 703dce63aa8..2da778a970d 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/delete-deployment.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/delete-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/delete-variable.md b/docs/examples/1.4.x/server-kotlin/java/functions/delete-variable.md index d36615092da..cbdfabc97b2 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/delete-variable.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/delete-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/delete.md b/docs/examples/1.4.x/server-kotlin/java/functions/delete.md index 8f398964115..2f4eb011f11 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/delete.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/download-deployment.md b/docs/examples/1.4.x/server-kotlin/java/functions/download-deployment.md index 91898dc07a3..1d785c14efe 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/download-deployment.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/download-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/get-deployment.md b/docs/examples/1.4.x/server-kotlin/java/functions/get-deployment.md index 5b539d28016..54bf0c461aa 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/get-deployment.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/get-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/get-execution.md b/docs/examples/1.4.x/server-kotlin/java/functions/get-execution.md index b1ff9485e82..00bb0a1ab85 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/get-execution.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/get-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/get-variable.md b/docs/examples/1.4.x/server-kotlin/java/functions/get-variable.md index 2be25a5c73d..01a05370645 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/get-variable.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/get-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/get.md b/docs/examples/1.4.x/server-kotlin/java/functions/get.md index 8ad5ea3522b..f6eb035a3ee 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/get.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/list-deployments.md b/docs/examples/1.4.x/server-kotlin/java/functions/list-deployments.md index 61f48c88c37..c5a81048ec7 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/list-deployments.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/list-deployments.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/list-executions.md b/docs/examples/1.4.x/server-kotlin/java/functions/list-executions.md index 392e9c82c56..f4db7948dfa 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/list-executions.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/list-executions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/list-runtimes.md b/docs/examples/1.4.x/server-kotlin/java/functions/list-runtimes.md index 46d04463102..968f019f025 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/list-runtimes.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/list-runtimes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/list-variables.md b/docs/examples/1.4.x/server-kotlin/java/functions/list-variables.md index 4fa47e8c57e..ad6d522b8f1 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/list-variables.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/list-variables.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/list.md b/docs/examples/1.4.x/server-kotlin/java/functions/list.md index 4224cf52b78..253cbafaa1c 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/list.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/update-deployment.md b/docs/examples/1.4.x/server-kotlin/java/functions/update-deployment.md index 2af0637379f..9e1db350714 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/update-deployment.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/update-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/update-variable.md b/docs/examples/1.4.x/server-kotlin/java/functions/update-variable.md index f30bbf8e4e3..c841731b533 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/update-variable.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/update-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/functions/update.md b/docs/examples/1.4.x/server-kotlin/java/functions/update.md index 8a53d75ea4a..d8c209b53a0 100644 --- a/docs/examples/1.4.x/server-kotlin/java/functions/update.md +++ b/docs/examples/1.4.x/server-kotlin/java/functions/update.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/graphql/mutation.md b/docs/examples/1.4.x/server-kotlin/java/graphql/mutation.md index d689c62e60b..9e93425d248 100644 --- a/docs/examples/1.4.x/server-kotlin/java/graphql/mutation.md +++ b/docs/examples/1.4.x/server-kotlin/java/graphql/mutation.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/graphql/query.md b/docs/examples/1.4.x/server-kotlin/java/graphql/query.md index e4b8693b4f9..4ce7a5e66aa 100644 --- a/docs/examples/1.4.x/server-kotlin/java/graphql/query.md +++ b/docs/examples/1.4.x/server-kotlin/java/graphql/query.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-antivirus.md b/docs/examples/1.4.x/server-kotlin/java/health/get-antivirus.md index 334563fd1ce..0e081401324 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-antivirus.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-antivirus.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-cache.md b/docs/examples/1.4.x/server-kotlin/java/health/get-cache.md index 9a2981253ac..4c53f7a35bc 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-cache.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-cache.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-d-b.md b/docs/examples/1.4.x/server-kotlin/java/health/get-d-b.md index 22a5a6b5bb9..9958d8bbdc4 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-d-b.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-d-b.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-pub-sub.md b/docs/examples/1.4.x/server-kotlin/java/health/get-pub-sub.md index ba945190848..176f2211f08 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-pub-sub.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-pub-sub.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-builds.md b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-builds.md index ed22ab75a9c..1d5a4e250aa 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-builds.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-builds.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-certificates.md b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-certificates.md index a0a3a22f8a5..7f4c32f49b0 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-certificates.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-certificates.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-databases.md b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-databases.md index 79b489771fe..cd7e25f159a 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-databases.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-databases.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-deletes.md b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-deletes.md index e746c5c8ff8..58f525a1ead 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-deletes.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-deletes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-functions.md b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-functions.md index 54b425f63cc..556c3e73e43 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-functions.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-functions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-logs.md b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-logs.md index 371c98f06d3..075eebf85d7 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-logs.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-mails.md b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-mails.md index af36ecbac7f..d93dd7b1bf8 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-mails.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-mails.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-messaging.md b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-messaging.md index 4c7db58658e..ee4724b4266 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-messaging.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-messaging.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-migrations.md b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-migrations.md index 966f470dee4..5b45a560997 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-migrations.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-migrations.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-webhooks.md b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-webhooks.md index cbd6919d72e..344945db0aa 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-queue-webhooks.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-queue-webhooks.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-queue.md b/docs/examples/1.4.x/server-kotlin/java/health/get-queue.md index 90b7eb35ad4..8072577f3ef 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-queue.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-queue.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-storage-local.md b/docs/examples/1.4.x/server-kotlin/java/health/get-storage-local.md index a57f34520da..527499f94e9 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-storage-local.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-storage-local.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get-time.md b/docs/examples/1.4.x/server-kotlin/java/health/get-time.md index 36b276b4d7e..0f78d412474 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get-time.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get-time.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/health/get.md b/docs/examples/1.4.x/server-kotlin/java/health/get.md index 59badb05432..a14a4b5aeca 100644 --- a/docs/examples/1.4.x/server-kotlin/java/health/get.md +++ b/docs/examples/1.4.x/server-kotlin/java/health/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/locale/get.md b/docs/examples/1.4.x/server-kotlin/java/locale/get.md index 4fb6be94169..22137f75b7b 100644 --- a/docs/examples/1.4.x/server-kotlin/java/locale/get.md +++ b/docs/examples/1.4.x/server-kotlin/java/locale/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/locale/list-codes.md b/docs/examples/1.4.x/server-kotlin/java/locale/list-codes.md index a3feffe0662..4ef80dc5b6b 100644 --- a/docs/examples/1.4.x/server-kotlin/java/locale/list-codes.md +++ b/docs/examples/1.4.x/server-kotlin/java/locale/list-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/locale/list-continents.md b/docs/examples/1.4.x/server-kotlin/java/locale/list-continents.md index 661fcc3583a..3933873e37d 100644 --- a/docs/examples/1.4.x/server-kotlin/java/locale/list-continents.md +++ b/docs/examples/1.4.x/server-kotlin/java/locale/list-continents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/locale/list-countries-e-u.md b/docs/examples/1.4.x/server-kotlin/java/locale/list-countries-e-u.md index 6164ca02d29..9cb744abcb3 100644 --- a/docs/examples/1.4.x/server-kotlin/java/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/server-kotlin/java/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/locale/list-countries-phones.md b/docs/examples/1.4.x/server-kotlin/java/locale/list-countries-phones.md index 2cb41c19f22..c81457dbbf7 100644 --- a/docs/examples/1.4.x/server-kotlin/java/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/server-kotlin/java/locale/list-countries-phones.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/locale/list-countries.md b/docs/examples/1.4.x/server-kotlin/java/locale/list-countries.md index 74d3b5d4022..491b654edee 100644 --- a/docs/examples/1.4.x/server-kotlin/java/locale/list-countries.md +++ b/docs/examples/1.4.x/server-kotlin/java/locale/list-countries.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/locale/list-currencies.md b/docs/examples/1.4.x/server-kotlin/java/locale/list-currencies.md index 54a0e4de40c..a4c49e35689 100644 --- a/docs/examples/1.4.x/server-kotlin/java/locale/list-currencies.md +++ b/docs/examples/1.4.x/server-kotlin/java/locale/list-currencies.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/locale/list-languages.md b/docs/examples/1.4.x/server-kotlin/java/locale/list-languages.md index 54976c5c08b..4f09bab65c9 100644 --- a/docs/examples/1.4.x/server-kotlin/java/locale/list-languages.md +++ b/docs/examples/1.4.x/server-kotlin/java/locale/list-languages.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/storage/create-bucket.md b/docs/examples/1.4.x/server-kotlin/java/storage/create-bucket.md index c9ebc9178c9..268fa1563e6 100644 --- a/docs/examples/1.4.x/server-kotlin/java/storage/create-bucket.md +++ b/docs/examples/1.4.x/server-kotlin/java/storage/create-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/storage/create-file.md b/docs/examples/1.4.x/server-kotlin/java/storage/create-file.md index c83557bf282..e6cdf748528 100644 --- a/docs/examples/1.4.x/server-kotlin/java/storage/create-file.md +++ b/docs/examples/1.4.x/server-kotlin/java/storage/create-file.md @@ -4,7 +4,7 @@ import io.appwrite.models.InputFile; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/storage/delete-bucket.md b/docs/examples/1.4.x/server-kotlin/java/storage/delete-bucket.md index f26e9ee5a19..c7844f9e90d 100644 --- a/docs/examples/1.4.x/server-kotlin/java/storage/delete-bucket.md +++ b/docs/examples/1.4.x/server-kotlin/java/storage/delete-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/storage/delete-file.md b/docs/examples/1.4.x/server-kotlin/java/storage/delete-file.md index eb00b9706cc..b9095c139ba 100644 --- a/docs/examples/1.4.x/server-kotlin/java/storage/delete-file.md +++ b/docs/examples/1.4.x/server-kotlin/java/storage/delete-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/storage/get-bucket.md b/docs/examples/1.4.x/server-kotlin/java/storage/get-bucket.md index 2157dd7424c..f44d23fe902 100644 --- a/docs/examples/1.4.x/server-kotlin/java/storage/get-bucket.md +++ b/docs/examples/1.4.x/server-kotlin/java/storage/get-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/storage/get-file-download.md b/docs/examples/1.4.x/server-kotlin/java/storage/get-file-download.md index 8eef7e347e1..0b1207a0178 100644 --- a/docs/examples/1.4.x/server-kotlin/java/storage/get-file-download.md +++ b/docs/examples/1.4.x/server-kotlin/java/storage/get-file-download.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/storage/get-file-preview.md b/docs/examples/1.4.x/server-kotlin/java/storage/get-file-preview.md index 275e803000d..1356607a327 100644 --- a/docs/examples/1.4.x/server-kotlin/java/storage/get-file-preview.md +++ b/docs/examples/1.4.x/server-kotlin/java/storage/get-file-preview.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/storage/get-file-view.md b/docs/examples/1.4.x/server-kotlin/java/storage/get-file-view.md index adc0407c358..d5aa220f23d 100644 --- a/docs/examples/1.4.x/server-kotlin/java/storage/get-file-view.md +++ b/docs/examples/1.4.x/server-kotlin/java/storage/get-file-view.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/storage/get-file.md b/docs/examples/1.4.x/server-kotlin/java/storage/get-file.md index 4cb6fe6db31..0bd4f682b13 100644 --- a/docs/examples/1.4.x/server-kotlin/java/storage/get-file.md +++ b/docs/examples/1.4.x/server-kotlin/java/storage/get-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/storage/list-buckets.md b/docs/examples/1.4.x/server-kotlin/java/storage/list-buckets.md index 49c29cad2da..e3a69b43d9f 100644 --- a/docs/examples/1.4.x/server-kotlin/java/storage/list-buckets.md +++ b/docs/examples/1.4.x/server-kotlin/java/storage/list-buckets.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/storage/list-files.md b/docs/examples/1.4.x/server-kotlin/java/storage/list-files.md index 59719e530f2..dc87428ebbc 100644 --- a/docs/examples/1.4.x/server-kotlin/java/storage/list-files.md +++ b/docs/examples/1.4.x/server-kotlin/java/storage/list-files.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/storage/update-bucket.md b/docs/examples/1.4.x/server-kotlin/java/storage/update-bucket.md index 05483ea7252..08c77804e22 100644 --- a/docs/examples/1.4.x/server-kotlin/java/storage/update-bucket.md +++ b/docs/examples/1.4.x/server-kotlin/java/storage/update-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/storage/update-file.md b/docs/examples/1.4.x/server-kotlin/java/storage/update-file.md index 05385c2b88f..d2a1b6c4272 100644 --- a/docs/examples/1.4.x/server-kotlin/java/storage/update-file.md +++ b/docs/examples/1.4.x/server-kotlin/java/storage/update-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/teams/create-membership.md b/docs/examples/1.4.x/server-kotlin/java/teams/create-membership.md index 295674f9d1a..0446946d3c5 100644 --- a/docs/examples/1.4.x/server-kotlin/java/teams/create-membership.md +++ b/docs/examples/1.4.x/server-kotlin/java/teams/create-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/teams/create.md b/docs/examples/1.4.x/server-kotlin/java/teams/create.md index 4f3be33609f..75d13b61069 100644 --- a/docs/examples/1.4.x/server-kotlin/java/teams/create.md +++ b/docs/examples/1.4.x/server-kotlin/java/teams/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/teams/delete-membership.md b/docs/examples/1.4.x/server-kotlin/java/teams/delete-membership.md index e82ab293be4..26d0fba99cb 100644 --- a/docs/examples/1.4.x/server-kotlin/java/teams/delete-membership.md +++ b/docs/examples/1.4.x/server-kotlin/java/teams/delete-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/teams/delete.md b/docs/examples/1.4.x/server-kotlin/java/teams/delete.md index fa805ebd4d4..7699d575bf7 100644 --- a/docs/examples/1.4.x/server-kotlin/java/teams/delete.md +++ b/docs/examples/1.4.x/server-kotlin/java/teams/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/teams/get-membership.md b/docs/examples/1.4.x/server-kotlin/java/teams/get-membership.md index fc00d438731..e901b4438ed 100644 --- a/docs/examples/1.4.x/server-kotlin/java/teams/get-membership.md +++ b/docs/examples/1.4.x/server-kotlin/java/teams/get-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/teams/get-prefs.md b/docs/examples/1.4.x/server-kotlin/java/teams/get-prefs.md index b14dfc94d37..8809420b196 100644 --- a/docs/examples/1.4.x/server-kotlin/java/teams/get-prefs.md +++ b/docs/examples/1.4.x/server-kotlin/java/teams/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/teams/get.md b/docs/examples/1.4.x/server-kotlin/java/teams/get.md index 6be034b4182..ef9c02df2f6 100644 --- a/docs/examples/1.4.x/server-kotlin/java/teams/get.md +++ b/docs/examples/1.4.x/server-kotlin/java/teams/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/teams/list-memberships.md b/docs/examples/1.4.x/server-kotlin/java/teams/list-memberships.md index 0b9055f8169..8abf4644900 100644 --- a/docs/examples/1.4.x/server-kotlin/java/teams/list-memberships.md +++ b/docs/examples/1.4.x/server-kotlin/java/teams/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/teams/list.md b/docs/examples/1.4.x/server-kotlin/java/teams/list.md index 22a9d51d5fd..5f0540e6c46 100644 --- a/docs/examples/1.4.x/server-kotlin/java/teams/list.md +++ b/docs/examples/1.4.x/server-kotlin/java/teams/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/teams/update-membership-status.md b/docs/examples/1.4.x/server-kotlin/java/teams/update-membership-status.md index 64e69663d42..54ea9877155 100644 --- a/docs/examples/1.4.x/server-kotlin/java/teams/update-membership-status.md +++ b/docs/examples/1.4.x/server-kotlin/java/teams/update-membership-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/teams/update-membership.md b/docs/examples/1.4.x/server-kotlin/java/teams/update-membership.md index e1fd4325ee9..1dbfc500f27 100644 --- a/docs/examples/1.4.x/server-kotlin/java/teams/update-membership.md +++ b/docs/examples/1.4.x/server-kotlin/java/teams/update-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/teams/update-name.md b/docs/examples/1.4.x/server-kotlin/java/teams/update-name.md index 3d95ccb9d25..317113b6167 100644 --- a/docs/examples/1.4.x/server-kotlin/java/teams/update-name.md +++ b/docs/examples/1.4.x/server-kotlin/java/teams/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/teams/update-prefs.md b/docs/examples/1.4.x/server-kotlin/java/teams/update-prefs.md index 674bc6424df..7667e504ba4 100644 --- a/docs/examples/1.4.x/server-kotlin/java/teams/update-prefs.md +++ b/docs/examples/1.4.x/server-kotlin/java/teams/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/java/users/create-argon2user.md b/docs/examples/1.4.x/server-kotlin/java/users/create-argon2user.md index 47ac52c0863..0f1faf77e5c 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/create-argon2user.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/create-argon2user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/create-bcrypt-user.md b/docs/examples/1.4.x/server-kotlin/java/users/create-bcrypt-user.md index 91989dff0fe..3c34190dd3f 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/create-bcrypt-user.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/create-bcrypt-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/create-m-d5user.md b/docs/examples/1.4.x/server-kotlin/java/users/create-m-d5user.md index 35de18d1a34..be38f913a6c 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/create-m-d5user.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/create-m-d5user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/create-p-h-pass-user.md b/docs/examples/1.4.x/server-kotlin/java/users/create-p-h-pass-user.md index 7501f02f2f5..718f4100eb4 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/create-p-h-pass-user.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/create-p-h-pass-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/create-s-h-a-user.md b/docs/examples/1.4.x/server-kotlin/java/users/create-s-h-a-user.md index ae26de55437..e67c8745422 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/create-s-h-a-user.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/create-s-h-a-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/create-scrypt-modified-user.md b/docs/examples/1.4.x/server-kotlin/java/users/create-scrypt-modified-user.md index da0936a01b3..7a665a7c945 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/create-scrypt-modified-user.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/create-scrypt-modified-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/create-scrypt-user.md b/docs/examples/1.4.x/server-kotlin/java/users/create-scrypt-user.md index 9b48e06fbd2..9a99af84107 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/create-scrypt-user.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/create-scrypt-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/create.md b/docs/examples/1.4.x/server-kotlin/java/users/create.md index 97aad153029..c9b3c8558ee 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/create.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/delete-identity.md b/docs/examples/1.4.x/server-kotlin/java/users/delete-identity.md index cd165a6dc01..6894733f9f3 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/delete-identity.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/delete-identity.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/delete-session.md b/docs/examples/1.4.x/server-kotlin/java/users/delete-session.md index 84153284065..dfde18e516f 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/delete-session.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/delete-sessions.md b/docs/examples/1.4.x/server-kotlin/java/users/delete-sessions.md index 9a2284c493b..45ed56eb53b 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/delete-sessions.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/delete.md b/docs/examples/1.4.x/server-kotlin/java/users/delete.md index 893a4d37940..7120f8035ca 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/delete.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/get-prefs.md b/docs/examples/1.4.x/server-kotlin/java/users/get-prefs.md index 664843e32c8..2c3190194a0 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/get-prefs.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/get.md b/docs/examples/1.4.x/server-kotlin/java/users/get.md index 1be96aee11f..43d32f8d1a2 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/get.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/list-identities.md b/docs/examples/1.4.x/server-kotlin/java/users/list-identities.md index 011f3a6ca2a..8f64b27c4c3 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/list-identities.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/list-identities.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/list-logs.md b/docs/examples/1.4.x/server-kotlin/java/users/list-logs.md index 08ace35a19c..df4964211c1 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/list-logs.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/list-memberships.md b/docs/examples/1.4.x/server-kotlin/java/users/list-memberships.md index 503dbcb10ab..89c90c8cc88 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/list-memberships.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/list-sessions.md b/docs/examples/1.4.x/server-kotlin/java/users/list-sessions.md index efe091fe74e..8ea8833c2e0 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/list-sessions.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/list.md b/docs/examples/1.4.x/server-kotlin/java/users/list.md index d591bce79e1..0ca79280613 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/list.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/update-email-verification.md b/docs/examples/1.4.x/server-kotlin/java/users/update-email-verification.md index 3d6d205bce0..91b989b6681 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/update-email-verification.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/update-email-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/update-email.md b/docs/examples/1.4.x/server-kotlin/java/users/update-email.md index d0e9b17c1da..2d29d4cab1f 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/update-email.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/update-labels.md b/docs/examples/1.4.x/server-kotlin/java/users/update-labels.md index e0c7bdc5b85..0beaf4e7251 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/update-labels.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/update-labels.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/update-name.md b/docs/examples/1.4.x/server-kotlin/java/users/update-name.md index e16f539bdc4..9df5a00fd36 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/update-name.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/update-password.md b/docs/examples/1.4.x/server-kotlin/java/users/update-password.md index c94e6dd77b6..2d2f87ea024 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/update-password.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/update-phone-verification.md b/docs/examples/1.4.x/server-kotlin/java/users/update-phone-verification.md index 8c9a26d6093..ac7796c0415 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/update-phone-verification.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/update-phone.md b/docs/examples/1.4.x/server-kotlin/java/users/update-phone.md index 4a2accb7933..007d78dfd37 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/update-phone.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/update-prefs.md b/docs/examples/1.4.x/server-kotlin/java/users/update-prefs.md index b12a5d8e4f0..655ab79f5b6 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/update-prefs.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/java/users/update-status.md b/docs/examples/1.4.x/server-kotlin/java/users/update-status.md index 012142cad7b..d4c753e8d88 100644 --- a/docs/examples/1.4.x/server-kotlin/java/users/update-status.md +++ b/docs/examples/1.4.x/server-kotlin/java/users/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/create-phone-verification.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/create-phone-verification.md index e18d4ce13b2..9af377fed56 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/create-phone-verification.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/create-phone-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/create-recovery.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/create-recovery.md index a219cb8196b..5a207d31f28 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/create-recovery.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/create-recovery.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/create-verification.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/create-verification.md index 33846f1dba6..6ba8071254c 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/create-verification.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/create-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/delete-identity.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/delete-identity.md index c21ccdab4a9..da07efd4aaa 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/delete-identity.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/delete-identity.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/delete-session.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/delete-session.md index 60aa4f26046..76e71066c56 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/delete-session.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/delete-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/delete-sessions.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/delete-sessions.md index a16622a526c..ac82578c8e1 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/delete-sessions.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/delete-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/get-prefs.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/get-prefs.md index dbbba1d98f6..eba56b21df7 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/get-prefs.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/get-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/get-session.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/get-session.md index 07861109b65..98b112b9122 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/get-session.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/get-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/get.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/get.md index 1fb002ae240..95f54906520 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/get.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/list-identities.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/list-identities.md index c300e28f7d1..3e0fd56893e 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/list-identities.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/list-identities.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/list-logs.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/list-logs.md index daddd758430..45ba397f94e 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/list-logs.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/list-logs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/list-sessions.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/list-sessions.md index 132a5da23b2..6420e6afdb5 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/list-sessions.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/list-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-email.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-email.md index 1127bbc2b28..0c9216f9238 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-email.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-email.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-name.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-name.md index 3de89a503ea..e5fb2264c4f 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-name.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-name.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-password.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-password.md index df92d9e9285..36ea44466bb 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-password.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-password.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-phone-verification.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-phone-verification.md index 0ed51d30c21..7e0bb4905c2 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-phone-verification.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-phone-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-phone.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-phone.md index 9c823bb6ac9..334f0fe1726 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-phone.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-phone.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-prefs.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-prefs.md index 6226269a1f1..542ddcc739a 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-prefs.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-recovery.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-recovery.md index 1b676c1ad52..d0b04380e23 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-recovery.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-recovery.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-session.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-session.md index bd3d28e3b82..61a3289047d 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-session.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-status.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-status.md index 3ed06279069..4f6562528d8 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-status.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-status.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-verification.md b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-verification.md index e73e555c602..288750a4712 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/account/update-verification.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/account/update-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-browser.md b/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-browser.md index e9f6eb2919f..7dddeea92c0 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-browser.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-browser.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-credit-card.md b/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-credit-card.md index c3413ac6442..3c56eb7ca99 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-favicon.md b/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-favicon.md index cd1ea0c7b37..2e27b70a011 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-favicon.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-favicon.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-flag.md b/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-flag.md index a81c59ae60b..e095c7b602c 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-flag.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-flag.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-image.md b/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-image.md index 09cacde6f89..fd2e0c61497 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-image.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-image.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-initials.md b/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-initials.md index ba46fb0d292..c42703969de 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-initials.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-initials.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-q-r.md b/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-q-r.md index c43aabcfe3a..2fc413de2bc 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-q-r.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/avatars/get-q-r.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-boolean-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-boolean-attribute.md index 22de12384d1..5a4e85568ea 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-boolean-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-boolean-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-collection.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-collection.md index 9ba70cf2fec..c48d2d49a23 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-collection.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-collection.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-datetime-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-datetime-attribute.md index d410244ec81..9fe6efab3aa 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-datetime-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-datetime-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-document.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-document.md index 95e5977b126..58bc1034015 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-document.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-email-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-email-attribute.md index 292f31f5254..081557e950c 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-email-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-email-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-enum-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-enum-attribute.md index 99008a479b2..e951b71b149 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-enum-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-enum-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-float-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-float-attribute.md index 68149625028..c26e5d37cc9 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-float-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-float-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-index.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-index.md index 42b3dbe7e16..d635002a12f 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-index.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-index.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-integer-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-integer-attribute.md index 57b2ff66a73..eafa05417a9 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-integer-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-integer-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-ip-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-ip-attribute.md index f941b82c9e6..daa18f083b7 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-ip-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-ip-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-relationship-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-relationship-attribute.md index 22ebc4a5c76..a9a65f86a9b 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-relationship-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-relationship-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-string-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-string-attribute.md index c5d3d52853f..99930484773 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-string-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-string-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-url-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-url-attribute.md index 8cd0731da13..238c73b7cc3 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-url-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create-url-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create.md index d7d462a3ce7..bd9d922b009 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/create.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-attribute.md index fef7a45cc40..9dddae53fcc 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-collection.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-collection.md index 676359331af..4fb66423e09 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-collection.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-collection.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-document.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-document.md index 2bf047fe4eb..361218721bc 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-document.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-index.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-index.md index 59bd149224f..e54aa398973 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-index.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete-index.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete.md index f927901f098..34d855ce238 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/delete.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-attribute.md index 4bba2dfa163..d3840b13b5c 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-collection.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-collection.md index 76ff9a1962f..e7127649cd8 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-collection.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-collection.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-document.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-document.md index 8bacaa57c2f..da5761f085f 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-document.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-index.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-index.md index 2d588dee731..d91f52b1116 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-index.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/get-index.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/get.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/get.md index 5584d4dd878..1453534929d 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/get.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-attributes.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-attributes.md index 4057571393a..3e45c17e1dc 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-attributes.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-attributes.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-collections.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-collections.md index f563c431a72..8035796f102 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-collections.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-collections.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-documents.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-documents.md index c081013fa03..df52ef1ab6e 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-documents.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-documents.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-indexes.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-indexes.md index 431d7acbff7..76c69880282 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-indexes.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/list-indexes.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/list.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/list.md index 6ffece0bd53..d8c0090988b 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/list.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/list.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-boolean-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-boolean-attribute.md index b74ad795471..ab0c1e23ac1 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-boolean-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-boolean-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-collection.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-collection.md index f6ccffef9d1..57aba213726 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-collection.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-collection.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-datetime-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-datetime-attribute.md index 013e437db5a..e50375fa607 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-datetime-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-datetime-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-document.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-document.md index 10ff4c4b4c0..4abc8c5e8e8 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-document.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-document.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-email-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-email-attribute.md index 39ca4939ce0..ace50c67025 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-email-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-email-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-enum-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-enum-attribute.md index ece9f22c76a..c13303e9bb5 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-enum-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-enum-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-float-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-float-attribute.md index ed9ec055e8e..951dba57236 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-float-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-float-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-integer-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-integer-attribute.md index e881b01fa61..2bf2f0c3184 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-integer-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-integer-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-ip-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-ip-attribute.md index 5ebe893ed58..7f443013820 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-ip-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-ip-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-relationship-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-relationship-attribute.md index 9c0ffecae65..b04e76c0dd5 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-relationship-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-relationship-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-string-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-string-attribute.md index c8db1709547..ff99f7d068d 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-string-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-string-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-url-attribute.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-url-attribute.md index 71d9bde8487..03ab3c4a747 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-url-attribute.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update-url-attribute.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update.md b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update.md index 3a4c6089427..b78fee1bb06 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/databases/update.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/databases/update.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-build.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-build.md index 62f9d1addd3..fafed65c354 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-build.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-build.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-deployment.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-deployment.md index 28b89a69f7b..21956d4789d 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-deployment.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.models.InputFile import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-execution.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-execution.md index 62bce1fde01..13f476127f5 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-execution.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-execution.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-variable.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-variable.md index 6b23614d113..5b8bd6c6337 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-variable.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/create-variable.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/create.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/create.md index d45be0b51bd..62cb4833a9f 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/create.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/delete-deployment.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/delete-deployment.md index 5187ba44195..57728a9ddd4 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/delete-deployment.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/delete-deployment.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/delete-variable.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/delete-variable.md index f0fe4a3d860..9d3c95e173e 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/delete-variable.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/delete-variable.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/delete.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/delete.md index f12095b5a89..b5a13223800 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/delete.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/delete.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/download-deployment.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/download-deployment.md index 2388e829c9a..b7debc7cfb6 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/download-deployment.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/download-deployment.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/get-deployment.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/get-deployment.md index 4653e61f0e8..bd21f502454 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/get-deployment.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/get-deployment.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/get-execution.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/get-execution.md index 929a003a18c..517a3499af3 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/get-execution.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/get-execution.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/get-variable.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/get-variable.md index ce42276921b..ee73353aa09 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/get-variable.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/get-variable.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/get.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/get.md index 9261ab897ad..4c47e68d91a 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/get.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-deployments.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-deployments.md index 3ec2c810eef..c9cfa4be08e 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-deployments.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-deployments.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-executions.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-executions.md index 5378c79dbcb..06f1bdfdf18 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-executions.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-executions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-runtimes.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-runtimes.md index 0e777cd1fe7..abe677c0347 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-runtimes.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-runtimes.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-variables.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-variables.md index 10e74534f4b..729ade920cd 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-variables.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/list-variables.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/list.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/list.md index a5f4f0d325a..6aeafdc2580 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/list.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/list.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/update-deployment.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/update-deployment.md index 14b147384f5..8c0a93fc7a8 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/update-deployment.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/update-deployment.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/update-variable.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/update-variable.md index 1e0f3bbe5f3..e9990d56d11 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/update-variable.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/update-variable.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/functions/update.md b/docs/examples/1.4.x/server-kotlin/kotlin/functions/update.md index f8aed9d421d..126982018b6 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/functions/update.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/functions/update.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/graphql/mutation.md b/docs/examples/1.4.x/server-kotlin/kotlin/graphql/mutation.md index aed06cd7a6c..82c2c19fd21 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/graphql/mutation.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/graphql/mutation.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/graphql/query.md b/docs/examples/1.4.x/server-kotlin/kotlin/graphql/query.md index bd29d431c4c..a271566de16 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/graphql/query.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/graphql/query.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-antivirus.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-antivirus.md index e387fe0d951..d858d2189f2 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-antivirus.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-antivirus.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-cache.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-cache.md index 7aca9dd0080..daa7fb646eb 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-cache.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-cache.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-d-b.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-d-b.md index 8e719142bb0..496c7216f25 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-d-b.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-d-b.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-pub-sub.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-pub-sub.md index 421407a8319..e32f719e98d 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-pub-sub.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-pub-sub.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-builds.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-builds.md index 16f2bf6cb0f..93ce522dec6 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-builds.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-builds.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-certificates.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-certificates.md index f4163517058..31c83bd8919 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-certificates.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-certificates.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-databases.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-databases.md index 80a38c104b1..7d73d972dc0 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-databases.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-databases.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-deletes.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-deletes.md index 3dca9011c3a..983cde9ae53 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-deletes.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-deletes.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-functions.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-functions.md index b55241d8f27..d7653c3a7d7 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-functions.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-functions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-logs.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-logs.md index fb634ec63c6..1446de4c16d 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-logs.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-logs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-mails.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-mails.md index 80083ef9513..f475ee1da57 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-mails.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-mails.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-messaging.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-messaging.md index 13f6666fbac..3c65ab53952 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-messaging.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-messaging.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-migrations.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-migrations.md index 4df1cf1d3be..6524d0a4d2d 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-migrations.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-migrations.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-webhooks.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-webhooks.md index bf4629d259a..11c9b7a6211 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-webhooks.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue-webhooks.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue.md index ead51857ac6..5f2e0ce0f92 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-queue.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-storage-local.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-storage-local.md index f204168bc4d..b0087b6fb28 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-storage-local.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-storage-local.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-time.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-time.md index 35f3bb9bd67..8a9645a42bb 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get-time.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get-time.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/health/get.md b/docs/examples/1.4.x/server-kotlin/kotlin/health/get.md index b547be9aa57..a790b949c46 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/health/get.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/health/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Health val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/locale/get.md b/docs/examples/1.4.x/server-kotlin/kotlin/locale/get.md index 1d84651fea4..25bf0e1d0b2 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/locale/get.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/locale/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-codes.md b/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-codes.md index 28f02027e77..214bf3dc097 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-codes.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-codes.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-continents.md b/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-continents.md index bd9ad1825b4..bcaad832cd8 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-continents.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-continents.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-countries-e-u.md b/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-countries-e-u.md index 5d3258335eb..b1e5671fb3b 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-countries-e-u.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-countries-phones.md b/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-countries-phones.md index e0f2ae3c6b0..1a9a2585ca4 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-countries-phones.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-countries.md b/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-countries.md index 626d38133e7..cd8276e49b4 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-countries.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-countries.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-currencies.md b/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-currencies.md index 6457056d70e..061a5c82cda 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-currencies.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-currencies.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-languages.md b/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-languages.md index 437b1c3fe92..6ed17be85e9 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-languages.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/locale/list-languages.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/storage/create-bucket.md b/docs/examples/1.4.x/server-kotlin/kotlin/storage/create-bucket.md index 27d73ffd070..1adf94ca061 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/storage/create-bucket.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/storage/create-bucket.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/storage/create-file.md b/docs/examples/1.4.x/server-kotlin/kotlin/storage/create-file.md index 1bdf5e48932..354e3bf94c4 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/storage/create-file.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/storage/create-file.md @@ -3,7 +3,7 @@ import io.appwrite.models.InputFile import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/storage/delete-bucket.md b/docs/examples/1.4.x/server-kotlin/kotlin/storage/delete-bucket.md index 3730a052987..a70b731423a 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/storage/delete-bucket.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/storage/delete-bucket.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/storage/delete-file.md b/docs/examples/1.4.x/server-kotlin/kotlin/storage/delete-file.md index dabf805e8b9..c6a2639376a 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/storage/delete-file.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/storage/delete-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-bucket.md b/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-bucket.md index 0c7fcc137c3..c2abb7b3386 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-bucket.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-bucket.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file-download.md b/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file-download.md index 6c3c1fb4aea..67bcc5d5b41 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file-download.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file-download.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file-preview.md b/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file-preview.md index 372416ed12f..4b75e70d3e3 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file-preview.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file-preview.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file-view.md b/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file-view.md index 4b23cfc9c6f..691acb10550 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file-view.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file-view.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file.md b/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file.md index 211713c7b66..0f98d900a12 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/storage/get-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/storage/list-buckets.md b/docs/examples/1.4.x/server-kotlin/kotlin/storage/list-buckets.md index 8c4c7bdaac8..b6bce3ace32 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/storage/list-buckets.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/storage/list-buckets.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/storage/list-files.md b/docs/examples/1.4.x/server-kotlin/kotlin/storage/list-files.md index 5243ed74cc5..af1c301c1cf 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/storage/list-files.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/storage/list-files.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/storage/update-bucket.md b/docs/examples/1.4.x/server-kotlin/kotlin/storage/update-bucket.md index 3de3b5460e8..b0117be004d 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/storage/update-bucket.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/storage/update-bucket.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/storage/update-file.md b/docs/examples/1.4.x/server-kotlin/kotlin/storage/update-file.md index 3d7fb9ab269..8b85210d15f 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/storage/update-file.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/storage/update-file.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/teams/create-membership.md b/docs/examples/1.4.x/server-kotlin/kotlin/teams/create-membership.md index b37a4533c76..455b103f9f2 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/teams/create-membership.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/teams/create-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/teams/create.md b/docs/examples/1.4.x/server-kotlin/kotlin/teams/create.md index 9e080a13467..5b0105bf712 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/teams/create.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/teams/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/teams/delete-membership.md b/docs/examples/1.4.x/server-kotlin/kotlin/teams/delete-membership.md index 16e73e48849..397a9b794ad 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/teams/delete-membership.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/teams/delete-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/teams/delete.md b/docs/examples/1.4.x/server-kotlin/kotlin/teams/delete.md index c015a772c87..ab0b1c56328 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/teams/delete.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/teams/delete.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/teams/get-membership.md b/docs/examples/1.4.x/server-kotlin/kotlin/teams/get-membership.md index 4f2bed38002..bfb8ea94063 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/teams/get-membership.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/teams/get-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/teams/get-prefs.md b/docs/examples/1.4.x/server-kotlin/kotlin/teams/get-prefs.md index 1bfcf07f7a5..7af89d21663 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/teams/get-prefs.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/teams/get-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/teams/get.md b/docs/examples/1.4.x/server-kotlin/kotlin/teams/get.md index 402aeb1bebc..a6f43f8f189 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/teams/get.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/teams/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/teams/list-memberships.md b/docs/examples/1.4.x/server-kotlin/kotlin/teams/list-memberships.md index e9eae80f0b0..0da1afdfc1b 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/teams/list-memberships.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/teams/list-memberships.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/teams/list.md b/docs/examples/1.4.x/server-kotlin/kotlin/teams/list.md index aa10ca58fd0..43196f1d908 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/teams/list.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/teams/list.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-membership-status.md b/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-membership-status.md index 7fa6bd837c2..e9dc0d91eba 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-membership-status.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-membership-status.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-membership.md b/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-membership.md index 9ca3a30f40c..09803cb4aae 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-membership.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-membership.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-name.md b/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-name.md index d717c371bcd..d27c8243191 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-name.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-name.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-prefs.md b/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-prefs.md index 62fc9254150..d70eafb4009 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-prefs.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/teams/update-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/create-argon2user.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/create-argon2user.md index 438363aed32..81a1f9960f9 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/create-argon2user.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/create-argon2user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/create-bcrypt-user.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/create-bcrypt-user.md index 977782ce3cb..15d101773a8 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/create-bcrypt-user.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/create-bcrypt-user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/create-m-d5user.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/create-m-d5user.md index 6d6451f3769..86e13b9f1bd 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/create-m-d5user.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/create-m-d5user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/create-p-h-pass-user.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/create-p-h-pass-user.md index c50b2c1da46..cadb580527d 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/create-p-h-pass-user.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/create-p-h-pass-user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/create-s-h-a-user.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/create-s-h-a-user.md index 708935c970c..979cc2a01b1 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/create-s-h-a-user.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/create-s-h-a-user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md index d49f7db4717..b2164d5aa84 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/create-scrypt-user.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/create-scrypt-user.md index aa006fb0db2..e5cabe92b70 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/create-scrypt-user.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/create-scrypt-user.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/create.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/create.md index ae319d8cd82..fcc5e355ecf 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/create.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/create.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/delete-identity.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/delete-identity.md index 7b4de829c73..d84da15d839 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/delete-identity.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/delete-identity.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/delete-session.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/delete-session.md index f3a0264aa13..7b96b242135 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/delete-session.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/delete-session.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/delete-sessions.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/delete-sessions.md index 5c0070c027b..580031ecac6 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/delete-sessions.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/delete-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/delete.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/delete.md index 30ee8f3d7a0..2e0013f0ab4 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/delete.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/delete.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/get-prefs.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/get-prefs.md index 564489c398d..a7ffd650bc6 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/get-prefs.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/get-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/get.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/get.md index fd7e4b7a1b9..f55878912ea 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/get.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/get.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/list-identities.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/list-identities.md index 0135fb1c231..c7c9746f3c0 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/list-identities.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/list-identities.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/list-logs.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/list-logs.md index 691007588ec..5b3111f5529 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/list-logs.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/list-logs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/list-memberships.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/list-memberships.md index 316889e8943..0059c2dc68c 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/list-memberships.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/list-memberships.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/list-sessions.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/list-sessions.md index 1d7e950425b..fd9a7716d57 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/list-sessions.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/list-sessions.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/list.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/list.md index e973a26e524..3a74a207570 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/list.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/list.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-email-verification.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-email-verification.md index b4f97bbcab5..ea16acf33bd 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-email-verification.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-email-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-email.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-email.md index c6dfaefd2f0..4adad691848 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-email.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-email.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-labels.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-labels.md index 4e869f82373..61300a263a0 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-labels.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-labels.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-name.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-name.md index 1d46c7a8fcd..b60d5656208 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-name.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-name.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-password.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-password.md index f96158faa99..b6bfe65a9ae 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-password.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-password.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-phone-verification.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-phone-verification.md index 909803bd94d..fe6bcf39c09 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-phone-verification.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-phone-verification.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-phone.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-phone.md index 073dd6640a8..3d243c0db7c 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-phone.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-phone.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-prefs.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-prefs.md index 127035ca488..c05713d316f 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-prefs.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-prefs.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-status.md b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-status.md index 5899ed360f5..1966d5d6d05 100644 --- a/docs/examples/1.4.x/server-kotlin/kotlin/users/update-status.md +++ b/docs/examples/1.4.x/server-kotlin/kotlin/users/update-status.md @@ -2,7 +2,7 @@ import io.appwrite.Client import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/create-phone-verification.md b/docs/examples/1.4.x/server-nodejs/examples/account/create-phone-verification.md index f381495f243..cd9bc62e7a2 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/create-phone-verification.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/create-phone-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/create-recovery.md b/docs/examples/1.4.x/server-nodejs/examples/account/create-recovery.md index f4c5ae98de3..53c6060edff 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/create-recovery.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/create-recovery.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/create-verification.md b/docs/examples/1.4.x/server-nodejs/examples/account/create-verification.md index 04585621eb0..1df32eb7119 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/create-verification.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/create-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/delete-identity.md b/docs/examples/1.4.x/server-nodejs/examples/account/delete-identity.md index 2900aa17168..fd495b11368 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/delete-identity.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/delete-identity.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/delete-session.md b/docs/examples/1.4.x/server-nodejs/examples/account/delete-session.md index 74f38698591..182d67e2c16 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/delete-session.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/delete-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/delete-sessions.md b/docs/examples/1.4.x/server-nodejs/examples/account/delete-sessions.md index 0968c30b927..dbf861cf31f 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/delete-sessions.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/delete-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/get-prefs.md b/docs/examples/1.4.x/server-nodejs/examples/account/get-prefs.md index 8bd5d97c25f..04e6ac307a2 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/get-prefs.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/get-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/get-session.md b/docs/examples/1.4.x/server-nodejs/examples/account/get-session.md index 3abb677fbe2..23d06a672b7 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/get-session.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/get-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/get.md b/docs/examples/1.4.x/server-nodejs/examples/account/get.md index d4f4066fb19..3b0da54b7a3 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/get.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/list-identities.md b/docs/examples/1.4.x/server-nodejs/examples/account/list-identities.md index fa2013bbf62..56c8864278d 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/list-identities.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/list-identities.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/list-logs.md b/docs/examples/1.4.x/server-nodejs/examples/account/list-logs.md index 890e0d12d33..25cfab189df 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/list-logs.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/list-logs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/list-sessions.md b/docs/examples/1.4.x/server-nodejs/examples/account/list-sessions.md index 68e97ada316..fe753dd9968 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/list-sessions.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/list-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/update-email.md b/docs/examples/1.4.x/server-nodejs/examples/account/update-email.md index 388e2581bb4..324dfa7db6d 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/update-email.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/update-email.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/update-name.md b/docs/examples/1.4.x/server-nodejs/examples/account/update-name.md index 09846527126..8ae6bbf552b 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/update-name.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/update-name.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/update-password.md b/docs/examples/1.4.x/server-nodejs/examples/account/update-password.md index b46500fd3c9..b2e638c28b6 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/update-password.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/update-password.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/update-phone-verification.md b/docs/examples/1.4.x/server-nodejs/examples/account/update-phone-verification.md index 1aa4042f365..66c3ec8981f 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/update-phone-verification.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/update-phone-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/update-phone.md b/docs/examples/1.4.x/server-nodejs/examples/account/update-phone.md index 37124d81aa6..02270ec33e7 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/update-phone.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/update-phone.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/update-prefs.md b/docs/examples/1.4.x/server-nodejs/examples/account/update-prefs.md index 6948706abbd..6a9e10bf0c9 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/update-prefs.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/update-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/update-recovery.md b/docs/examples/1.4.x/server-nodejs/examples/account/update-recovery.md index 74f70f59c78..17dccf0e8b0 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/update-recovery.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/update-recovery.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/update-session.md b/docs/examples/1.4.x/server-nodejs/examples/account/update-session.md index b0b932524fc..ae1d9ab0653 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/update-session.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/update-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/update-status.md b/docs/examples/1.4.x/server-nodejs/examples/account/update-status.md index 277243b824f..4c13b5eec13 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/update-status.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/update-status.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/account/update-verification.md b/docs/examples/1.4.x/server-nodejs/examples/account/update-verification.md index 6a7fbbf99c1..03d663a6296 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/account/update-verification.md +++ b/docs/examples/1.4.x/server-nodejs/examples/account/update-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/avatars/get-browser.md b/docs/examples/1.4.x/server-nodejs/examples/avatars/get-browser.md index c05595ad67d..d88d7571dec 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/avatars/get-browser.md +++ b/docs/examples/1.4.x/server-nodejs/examples/avatars/get-browser.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/avatars/get-credit-card.md b/docs/examples/1.4.x/server-nodejs/examples/avatars/get-credit-card.md index 8fbd37d29ae..86cfe170598 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/server-nodejs/examples/avatars/get-credit-card.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/avatars/get-favicon.md b/docs/examples/1.4.x/server-nodejs/examples/avatars/get-favicon.md index 2924e394a07..acc780ccab1 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/avatars/get-favicon.md +++ b/docs/examples/1.4.x/server-nodejs/examples/avatars/get-favicon.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/avatars/get-flag.md b/docs/examples/1.4.x/server-nodejs/examples/avatars/get-flag.md index 50d611c3994..09efae01460 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/avatars/get-flag.md +++ b/docs/examples/1.4.x/server-nodejs/examples/avatars/get-flag.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/avatars/get-image.md b/docs/examples/1.4.x/server-nodejs/examples/avatars/get-image.md index 3b2bb517d1b..6cf825ff3e1 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/avatars/get-image.md +++ b/docs/examples/1.4.x/server-nodejs/examples/avatars/get-image.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/avatars/get-initials.md b/docs/examples/1.4.x/server-nodejs/examples/avatars/get-initials.md index 4afda6f5472..942f10ce51a 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/avatars/get-initials.md +++ b/docs/examples/1.4.x/server-nodejs/examples/avatars/get-initials.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/avatars/get-q-r.md b/docs/examples/1.4.x/server-nodejs/examples/avatars/get-q-r.md index d2d24e2055e..0b46c30ed60 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/avatars/get-q-r.md +++ b/docs/examples/1.4.x/server-nodejs/examples/avatars/get-q-r.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const avatars = new sdk.Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/create-boolean-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/create-boolean-attribute.md index 12a70102cae..03b9cbd67a9 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/create-boolean-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/create-collection.md b/docs/examples/1.4.x/server-nodejs/examples/databases/create-collection.md index 13ec4e037fe..2ff164d5539 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/create-collection.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/create-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/create-datetime-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/create-datetime-attribute.md index 70609a84e72..7c8710f80dd 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/create-datetime-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/create-document.md b/docs/examples/1.4.x/server-nodejs/examples/databases/create-document.md index f5fa7a50a6f..69d75e1b53e 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/create-document.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/create-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/create-email-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/create-email-attribute.md index 2229dfe7f9b..a14075c62ba 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/create-email-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/create-email-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/create-enum-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/create-enum-attribute.md index cd9daca6032..074e0098edf 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/create-enum-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/create-float-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/create-float-attribute.md index a12c4f44206..d818659c337 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/create-float-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/create-float-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/create-index.md b/docs/examples/1.4.x/server-nodejs/examples/databases/create-index.md index 66c3e519fea..9064cbf61b5 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/create-index.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/create-index.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/create-integer-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/create-integer-attribute.md index fa693d28def..051df7214f7 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/create-integer-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/create-ip-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/create-ip-attribute.md index 1e8985a2bdc..95c465d527e 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/create-ip-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/create-relationship-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/create-relationship-attribute.md index f680d1c03a5..efaa37d6408 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/create-relationship-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/create-string-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/create-string-attribute.md index bfb4fbfc3ff..9305983c337 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/create-string-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/create-string-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/create-url-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/create-url-attribute.md index e6a585f76bc..47c491916b8 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/create-url-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/create-url-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/create.md b/docs/examples/1.4.x/server-nodejs/examples/databases/create.md index 4e04f026bdc..451e39b410f 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/create.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/delete-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/delete-attribute.md index 3c65f62ef57..a7ee957de8a 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/delete-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/delete-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/delete-collection.md b/docs/examples/1.4.x/server-nodejs/examples/databases/delete-collection.md index 047fa268461..745042ec6e5 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/delete-collection.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/delete-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/delete-document.md b/docs/examples/1.4.x/server-nodejs/examples/databases/delete-document.md index a6f3fa58ca5..0081caa4990 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/delete-document.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/delete-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/delete-index.md b/docs/examples/1.4.x/server-nodejs/examples/databases/delete-index.md index 42d73104a09..e147eb1043d 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/delete-index.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/delete-index.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/delete.md b/docs/examples/1.4.x/server-nodejs/examples/databases/delete.md index 3f39965820e..b1ecfea0a4c 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/delete.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/get-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/get-attribute.md index df6c665b750..36b0b0336e1 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/get-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/get-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/get-collection.md b/docs/examples/1.4.x/server-nodejs/examples/databases/get-collection.md index ea4ed423e8a..0d0ba0e6cbd 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/get-collection.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/get-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/get-document.md b/docs/examples/1.4.x/server-nodejs/examples/databases/get-document.md index ac07b968aee..8f641962f0f 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/get-document.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/get-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/get-index.md b/docs/examples/1.4.x/server-nodejs/examples/databases/get-index.md index c3a3d168c52..d0602952b4f 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/get-index.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/get-index.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/get.md b/docs/examples/1.4.x/server-nodejs/examples/databases/get.md index 133f496b2eb..a47ba7a403f 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/get.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/list-attributes.md b/docs/examples/1.4.x/server-nodejs/examples/databases/list-attributes.md index b1a494b110d..01284a5e3a7 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/list-attributes.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/list-attributes.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/list-collections.md b/docs/examples/1.4.x/server-nodejs/examples/databases/list-collections.md index c1d9fd34216..9005d7a5b1d 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/list-collections.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/list-collections.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/list-documents.md b/docs/examples/1.4.x/server-nodejs/examples/databases/list-documents.md index bf0b9156bf3..9f9751ac370 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/list-documents.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/list-documents.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/list-indexes.md b/docs/examples/1.4.x/server-nodejs/examples/databases/list-indexes.md index 57787f1d3eb..fff198fc40e 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/list-indexes.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/list-indexes.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/list.md b/docs/examples/1.4.x/server-nodejs/examples/databases/list.md index 5652d1e0324..2f404785701 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/list.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/update-boolean-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/update-boolean-attribute.md index 3bdfc04e5f9..c9b81852e1c 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/update-boolean-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/update-collection.md b/docs/examples/1.4.x/server-nodejs/examples/databases/update-collection.md index db74a7b9eb3..4570385adca 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/update-collection.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/update-collection.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/update-datetime-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/update-datetime-attribute.md index 8b602d434fa..1f3b67b47b8 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/update-datetime-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/update-document.md b/docs/examples/1.4.x/server-nodejs/examples/databases/update-document.md index ca3cdb85e7c..92405e556c4 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/update-document.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/update-document.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/update-email-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/update-email-attribute.md index a96e89853b6..6500f99b46d 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/update-email-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/update-email-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/update-enum-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/update-enum-attribute.md index b0dfbb11dfb..c385feacdb3 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/update-enum-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/update-float-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/update-float-attribute.md index 2c0672dd999..8d6a688d898 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/update-float-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/update-float-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/update-integer-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/update-integer-attribute.md index 8016aac6000..69f652b27e5 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/update-integer-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/update-ip-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/update-ip-attribute.md index 8eab99aa35e..398b2246b10 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/update-ip-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/update-relationship-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/update-relationship-attribute.md index 699148f882d..8bab7e543f2 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/update-relationship-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/update-string-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/update-string-attribute.md index c7e6fe9b7fa..f024f13d843 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/update-string-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/update-string-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/update-url-attribute.md b/docs/examples/1.4.x/server-nodejs/examples/databases/update-url-attribute.md index d8cb42aafdc..0f58e004494 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/update-url-attribute.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/update-url-attribute.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/databases/update.md b/docs/examples/1.4.x/server-nodejs/examples/databases/update.md index 7abe11bf80a..71a6f3a77a6 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/databases/update.md +++ b/docs/examples/1.4.x/server-nodejs/examples/databases/update.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/create-build.md b/docs/examples/1.4.x/server-nodejs/examples/functions/create-build.md index fe9751e73b7..38f3717fb0a 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/create-build.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/create-build.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/create-deployment.md b/docs/examples/1.4.x/server-nodejs/examples/functions/create-deployment.md index 6d14142f2ff..f58f483eee2 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/create-deployment.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/create-deployment.md @@ -7,7 +7,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/create-execution.md b/docs/examples/1.4.x/server-nodejs/examples/functions/create-execution.md index dc182fdd447..be5bfbe85c4 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/create-execution.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/create-execution.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/create-variable.md b/docs/examples/1.4.x/server-nodejs/examples/functions/create-variable.md index 80f3fd02573..5bb7481f6af 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/create-variable.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/create-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/create.md b/docs/examples/1.4.x/server-nodejs/examples/functions/create.md index ab193ff45aa..87803580f7a 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/create.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/delete-deployment.md b/docs/examples/1.4.x/server-nodejs/examples/functions/delete-deployment.md index 5affdf18b9a..c0b1c4e4a1d 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/delete-deployment.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/delete-deployment.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/delete-variable.md b/docs/examples/1.4.x/server-nodejs/examples/functions/delete-variable.md index 2a075fdea73..e28f991ae1d 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/delete-variable.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/delete-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/delete.md b/docs/examples/1.4.x/server-nodejs/examples/functions/delete.md index d17f01361ef..18d2f4e26c1 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/delete.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/download-deployment.md b/docs/examples/1.4.x/server-nodejs/examples/functions/download-deployment.md index d8bd913cc8f..16b74e86f7b 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/download-deployment.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/download-deployment.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/get-deployment.md b/docs/examples/1.4.x/server-nodejs/examples/functions/get-deployment.md index d67ce4647ab..4043de8d59a 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/get-deployment.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/get-deployment.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/get-execution.md b/docs/examples/1.4.x/server-nodejs/examples/functions/get-execution.md index bbf07881386..094a1d1983a 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/get-execution.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/get-execution.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/get-variable.md b/docs/examples/1.4.x/server-nodejs/examples/functions/get-variable.md index 11ce7e2836c..8c225de4da4 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/get-variable.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/get-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/get.md b/docs/examples/1.4.x/server-nodejs/examples/functions/get.md index 54ea4812b82..469f6fbb4ef 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/get.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/list-deployments.md b/docs/examples/1.4.x/server-nodejs/examples/functions/list-deployments.md index 48194108758..505de94734f 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/list-deployments.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/list-deployments.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/list-executions.md b/docs/examples/1.4.x/server-nodejs/examples/functions/list-executions.md index f9e77a5d32f..7ec383656d5 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/list-executions.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/list-executions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/list-runtimes.md b/docs/examples/1.4.x/server-nodejs/examples/functions/list-runtimes.md index d4718613743..d9edc4a040c 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/list-runtimes.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/list-runtimes.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/list-variables.md b/docs/examples/1.4.x/server-nodejs/examples/functions/list-variables.md index e193b2b1ba7..eefc1fe27e7 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/list-variables.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/list-variables.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/list.md b/docs/examples/1.4.x/server-nodejs/examples/functions/list.md index 4f7b45e26a5..0a2c6cd72f0 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/list.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/update-deployment.md b/docs/examples/1.4.x/server-nodejs/examples/functions/update-deployment.md index 25f0e79983f..d90a98481c5 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/update-deployment.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/update-deployment.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/update-variable.md b/docs/examples/1.4.x/server-nodejs/examples/functions/update-variable.md index 86e9a698f58..8d1f6466b7f 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/update-variable.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/update-variable.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/functions/update.md b/docs/examples/1.4.x/server-nodejs/examples/functions/update.md index d8bf23f5a9b..c6b35f2459a 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/functions/update.md +++ b/docs/examples/1.4.x/server-nodejs/examples/functions/update.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/graphql/mutation.md b/docs/examples/1.4.x/server-nodejs/examples/graphql/mutation.md index 6f9bed84260..f8f2da769c8 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/graphql/mutation.md +++ b/docs/examples/1.4.x/server-nodejs/examples/graphql/mutation.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/graphql/query.md b/docs/examples/1.4.x/server-nodejs/examples/graphql/query.md index 35cd4060cc1..0f30d77e99d 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/graphql/query.md +++ b/docs/examples/1.4.x/server-nodejs/examples/graphql/query.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const graphql = new sdk.Graphql(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-antivirus.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-antivirus.md index b6e5e78a306..516d19c0759 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-antivirus.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-antivirus.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-cache.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-cache.md index 8171c40fc6a..84dd5b07ce4 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-cache.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-cache.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-d-b.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-d-b.md index ef1739fff0a..ce5ba7b8dcc 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-d-b.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-d-b.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-pub-sub.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-pub-sub.md index b6902399104..5aa3cf3119d 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-pub-sub.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-pub-sub.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-builds.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-builds.md index ae6d6058023..d1f7db9d4a1 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-builds.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-builds.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-certificates.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-certificates.md index 38dadde1b24..c89318fc384 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-certificates.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-certificates.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-databases.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-databases.md index 0eedd16c749..3858ba923dc 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-databases.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-databases.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-deletes.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-deletes.md index c2683c18453..e16f5c08687 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-deletes.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-deletes.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-functions.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-functions.md index bc8668eda65..52d3a2e80c0 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-functions.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-functions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-logs.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-logs.md index 918a9d9e6ce..86b9fe0fb4f 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-logs.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-logs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-mails.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-mails.md index c8866baeb0a..4533c41fa08 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-mails.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-mails.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-messaging.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-messaging.md index d499f6669a4..56bc7406c82 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-messaging.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-messaging.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-migrations.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-migrations.md index 50dba96a236..ba2f2db5020 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-migrations.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-migrations.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-webhooks.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-webhooks.md index acf023a1886..ee73f37ef6c 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue-webhooks.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue.md index 4caafecfa46..3f705e06d33 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-queue.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-queue.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-storage-local.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-storage-local.md index 76e51489fdf..d41559c5f10 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-storage-local.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-storage-local.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get-time.md b/docs/examples/1.4.x/server-nodejs/examples/health/get-time.md index f44836ac3c2..e3d70a93ff9 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get-time.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get-time.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/health/get.md b/docs/examples/1.4.x/server-nodejs/examples/health/get.md index a66b25631fd..1198b186247 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/health/get.md +++ b/docs/examples/1.4.x/server-nodejs/examples/health/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const health = new sdk.Health(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/locale/get.md b/docs/examples/1.4.x/server-nodejs/examples/locale/get.md index 31d90c6f117..27befec21ab 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/locale/get.md +++ b/docs/examples/1.4.x/server-nodejs/examples/locale/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/locale/list-codes.md b/docs/examples/1.4.x/server-nodejs/examples/locale/list-codes.md index aa95dafc712..bd6f9c59a41 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/locale/list-codes.md +++ b/docs/examples/1.4.x/server-nodejs/examples/locale/list-codes.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/locale/list-continents.md b/docs/examples/1.4.x/server-nodejs/examples/locale/list-continents.md index ffe54d34da7..346f552a14c 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/locale/list-continents.md +++ b/docs/examples/1.4.x/server-nodejs/examples/locale/list-continents.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/locale/list-countries-e-u.md b/docs/examples/1.4.x/server-nodejs/examples/locale/list-countries-e-u.md index f9aaff666a0..627c350f8e4 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/server-nodejs/examples/locale/list-countries-e-u.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/locale/list-countries-phones.md b/docs/examples/1.4.x/server-nodejs/examples/locale/list-countries-phones.md index fdd2436dc0f..0a0965ab539 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/server-nodejs/examples/locale/list-countries-phones.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/locale/list-countries.md b/docs/examples/1.4.x/server-nodejs/examples/locale/list-countries.md index 429e1887762..857b7da7cf2 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/locale/list-countries.md +++ b/docs/examples/1.4.x/server-nodejs/examples/locale/list-countries.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/locale/list-currencies.md b/docs/examples/1.4.x/server-nodejs/examples/locale/list-currencies.md index 12d82fb70f5..017b5faebfa 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/locale/list-currencies.md +++ b/docs/examples/1.4.x/server-nodejs/examples/locale/list-currencies.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/locale/list-languages.md b/docs/examples/1.4.x/server-nodejs/examples/locale/list-languages.md index 8ea2b40afc5..716a44c3300 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/locale/list-languages.md +++ b/docs/examples/1.4.x/server-nodejs/examples/locale/list-languages.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const locale = new sdk.Locale(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/storage/create-bucket.md b/docs/examples/1.4.x/server-nodejs/examples/storage/create-bucket.md index 9093b7c9a6d..51e0b05acb8 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/storage/create-bucket.md +++ b/docs/examples/1.4.x/server-nodejs/examples/storage/create-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/storage/create-file.md b/docs/examples/1.4.x/server-nodejs/examples/storage/create-file.md index 664005e2732..be561320dbd 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/storage/create-file.md +++ b/docs/examples/1.4.x/server-nodejs/examples/storage/create-file.md @@ -7,7 +7,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/storage/delete-bucket.md b/docs/examples/1.4.x/server-nodejs/examples/storage/delete-bucket.md index 84486c68dc4..e3368facf10 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/storage/delete-bucket.md +++ b/docs/examples/1.4.x/server-nodejs/examples/storage/delete-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/storage/delete-file.md b/docs/examples/1.4.x/server-nodejs/examples/storage/delete-file.md index c4d451c63f7..d90be0a77e6 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/storage/delete-file.md +++ b/docs/examples/1.4.x/server-nodejs/examples/storage/delete-file.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/storage/get-bucket.md b/docs/examples/1.4.x/server-nodejs/examples/storage/get-bucket.md index d0fbb94bbcc..b176e6e5755 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/storage/get-bucket.md +++ b/docs/examples/1.4.x/server-nodejs/examples/storage/get-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/storage/get-file-download.md b/docs/examples/1.4.x/server-nodejs/examples/storage/get-file-download.md index 1503d102ba2..4ad79175d26 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/storage/get-file-download.md +++ b/docs/examples/1.4.x/server-nodejs/examples/storage/get-file-download.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/storage/get-file-preview.md b/docs/examples/1.4.x/server-nodejs/examples/storage/get-file-preview.md index 19d34495ba9..164a1c63771 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/storage/get-file-preview.md +++ b/docs/examples/1.4.x/server-nodejs/examples/storage/get-file-preview.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/storage/get-file-view.md b/docs/examples/1.4.x/server-nodejs/examples/storage/get-file-view.md index 1affab8bc09..a8d5029bd0c 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/storage/get-file-view.md +++ b/docs/examples/1.4.x/server-nodejs/examples/storage/get-file-view.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/storage/get-file.md b/docs/examples/1.4.x/server-nodejs/examples/storage/get-file.md index ceba42ce1e9..06f43878e87 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/storage/get-file.md +++ b/docs/examples/1.4.x/server-nodejs/examples/storage/get-file.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/storage/list-buckets.md b/docs/examples/1.4.x/server-nodejs/examples/storage/list-buckets.md index 9945febb421..b989a0748f7 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/storage/list-buckets.md +++ b/docs/examples/1.4.x/server-nodejs/examples/storage/list-buckets.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/storage/list-files.md b/docs/examples/1.4.x/server-nodejs/examples/storage/list-files.md index fea4bae61f7..4bce540ec4a 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/storage/list-files.md +++ b/docs/examples/1.4.x/server-nodejs/examples/storage/list-files.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/storage/update-bucket.md b/docs/examples/1.4.x/server-nodejs/examples/storage/update-bucket.md index 32df1f18d8c..9cab2ca26cb 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/storage/update-bucket.md +++ b/docs/examples/1.4.x/server-nodejs/examples/storage/update-bucket.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/storage/update-file.md b/docs/examples/1.4.x/server-nodejs/examples/storage/update-file.md index 042a1645016..aa67cf0f0e9 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/storage/update-file.md +++ b/docs/examples/1.4.x/server-nodejs/examples/storage/update-file.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/teams/create-membership.md b/docs/examples/1.4.x/server-nodejs/examples/teams/create-membership.md index 282e764cab7..12fe61f6ea7 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/teams/create-membership.md +++ b/docs/examples/1.4.x/server-nodejs/examples/teams/create-membership.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/teams/create.md b/docs/examples/1.4.x/server-nodejs/examples/teams/create.md index 5552f829f9b..a99a2cf3f7e 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/teams/create.md +++ b/docs/examples/1.4.x/server-nodejs/examples/teams/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/teams/delete-membership.md b/docs/examples/1.4.x/server-nodejs/examples/teams/delete-membership.md index ef72e63138d..2df3e41f366 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/teams/delete-membership.md +++ b/docs/examples/1.4.x/server-nodejs/examples/teams/delete-membership.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/teams/delete.md b/docs/examples/1.4.x/server-nodejs/examples/teams/delete.md index 6f1dfaa61d0..ad358748155 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/teams/delete.md +++ b/docs/examples/1.4.x/server-nodejs/examples/teams/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/teams/get-membership.md b/docs/examples/1.4.x/server-nodejs/examples/teams/get-membership.md index d31aa9a8b61..d2e12d6ef6f 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/teams/get-membership.md +++ b/docs/examples/1.4.x/server-nodejs/examples/teams/get-membership.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/teams/get-prefs.md b/docs/examples/1.4.x/server-nodejs/examples/teams/get-prefs.md index 0ac9e95ff1b..2d24bdc6e09 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/teams/get-prefs.md +++ b/docs/examples/1.4.x/server-nodejs/examples/teams/get-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/teams/get.md b/docs/examples/1.4.x/server-nodejs/examples/teams/get.md index 0d349432428..d162cdceeb8 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/teams/get.md +++ b/docs/examples/1.4.x/server-nodejs/examples/teams/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/teams/list-memberships.md b/docs/examples/1.4.x/server-nodejs/examples/teams/list-memberships.md index ca25bcbd257..9ff92c68ff1 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/teams/list-memberships.md +++ b/docs/examples/1.4.x/server-nodejs/examples/teams/list-memberships.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/teams/list.md b/docs/examples/1.4.x/server-nodejs/examples/teams/list.md index 8610bc7dc43..e3ad03e16ef 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/teams/list.md +++ b/docs/examples/1.4.x/server-nodejs/examples/teams/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/teams/update-membership-status.md b/docs/examples/1.4.x/server-nodejs/examples/teams/update-membership-status.md index 6c46e786a08..b3c4b64f096 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/teams/update-membership-status.md +++ b/docs/examples/1.4.x/server-nodejs/examples/teams/update-membership-status.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/teams/update-membership.md b/docs/examples/1.4.x/server-nodejs/examples/teams/update-membership.md index d5ba30a9380..2306c056aec 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/teams/update-membership.md +++ b/docs/examples/1.4.x/server-nodejs/examples/teams/update-membership.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/teams/update-name.md b/docs/examples/1.4.x/server-nodejs/examples/teams/update-name.md index 962e18f1689..660c29859d8 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/teams/update-name.md +++ b/docs/examples/1.4.x/server-nodejs/examples/teams/update-name.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/teams/update-prefs.md b/docs/examples/1.4.x/server-nodejs/examples/teams/update-prefs.md index eeeed6c7ebe..55352df9245 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/teams/update-prefs.md +++ b/docs/examples/1.4.x/server-nodejs/examples/teams/update-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const teams = new sdk.Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/create-argon2user.md b/docs/examples/1.4.x/server-nodejs/examples/users/create-argon2user.md index 2762cc0112c..17403fa2296 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/create-argon2user.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/create-argon2user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/create-bcrypt-user.md b/docs/examples/1.4.x/server-nodejs/examples/users/create-bcrypt-user.md index 7bbdd3b883b..90f2efe43af 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/create-bcrypt-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/create-m-d5user.md b/docs/examples/1.4.x/server-nodejs/examples/users/create-m-d5user.md index 0661743da22..fdbc0f30403 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/create-m-d5user.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/create-m-d5user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/create-p-h-pass-user.md b/docs/examples/1.4.x/server-nodejs/examples/users/create-p-h-pass-user.md index 37bd7e70c54..70789ec2dd1 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/create-p-h-pass-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/create-s-h-a-user.md b/docs/examples/1.4.x/server-nodejs/examples/users/create-s-h-a-user.md index 1d0502598b6..5b96402710e 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/create-s-h-a-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/create-scrypt-modified-user.md b/docs/examples/1.4.x/server-nodejs/examples/users/create-scrypt-modified-user.md index 5a0153ec9a2..ffbab8e176f 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/create-scrypt-modified-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/create-scrypt-user.md b/docs/examples/1.4.x/server-nodejs/examples/users/create-scrypt-user.md index 83ec8d3d787..ae10dc5eee2 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/create-scrypt-user.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/create-scrypt-user.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/create.md b/docs/examples/1.4.x/server-nodejs/examples/users/create.md index 65ab3fae413..ceb01f37353 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/create.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/create.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/delete-identity.md b/docs/examples/1.4.x/server-nodejs/examples/users/delete-identity.md index c3acfa9eca0..e2bc8f4de67 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/delete-identity.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/delete-identity.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/delete-session.md b/docs/examples/1.4.x/server-nodejs/examples/users/delete-session.md index 18617ba2e8a..c5ad8e39fda 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/delete-session.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/delete-session.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/delete-sessions.md b/docs/examples/1.4.x/server-nodejs/examples/users/delete-sessions.md index c804d7ddcff..7265c131f82 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/delete-sessions.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/delete-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/delete.md b/docs/examples/1.4.x/server-nodejs/examples/users/delete.md index 53606a7a0ae..a1e694a3dec 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/delete.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/delete.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/get-prefs.md b/docs/examples/1.4.x/server-nodejs/examples/users/get-prefs.md index c60db8ac770..4683f2fe245 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/get-prefs.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/get-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/get.md b/docs/examples/1.4.x/server-nodejs/examples/users/get.md index 3bad599d4d9..27fd6b74643 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/get.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/get.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/list-identities.md b/docs/examples/1.4.x/server-nodejs/examples/users/list-identities.md index 36a71b70510..1d2aa459923 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/list-identities.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/list-identities.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/list-logs.md b/docs/examples/1.4.x/server-nodejs/examples/users/list-logs.md index 0f76626c6e8..40a1c8c8ba8 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/list-logs.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/list-logs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/list-memberships.md b/docs/examples/1.4.x/server-nodejs/examples/users/list-memberships.md index 81e0c4bc8fc..6a83ec28576 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/list-memberships.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/list-memberships.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/list-sessions.md b/docs/examples/1.4.x/server-nodejs/examples/users/list-sessions.md index b44341bcbe4..17d38f8c0e5 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/list-sessions.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/list-sessions.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/list.md b/docs/examples/1.4.x/server-nodejs/examples/users/list.md index a9ba208d2ed..016df4aa37b 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/list.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/list.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/update-email-verification.md b/docs/examples/1.4.x/server-nodejs/examples/users/update-email-verification.md index 29c3e26593c..c48ca4426e5 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/update-email-verification.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/update-email-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/update-email.md b/docs/examples/1.4.x/server-nodejs/examples/users/update-email.md index 5cef6fb5ec8..726d191e8d2 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/update-email.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/update-email.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/update-labels.md b/docs/examples/1.4.x/server-nodejs/examples/users/update-labels.md index d727bf1ed21..9bd7ef9de5e 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/update-labels.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/update-labels.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/update-name.md b/docs/examples/1.4.x/server-nodejs/examples/users/update-name.md index ea33b7ed513..49140677fd0 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/update-name.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/update-name.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/update-password.md b/docs/examples/1.4.x/server-nodejs/examples/users/update-password.md index f08a5990f40..a5e98a03356 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/update-password.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/update-password.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/update-phone-verification.md b/docs/examples/1.4.x/server-nodejs/examples/users/update-phone-verification.md index e6a95f93f87..bb2ddeccf71 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/update-phone-verification.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/update-phone-verification.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/update-phone.md b/docs/examples/1.4.x/server-nodejs/examples/users/update-phone.md index 8db9863c00a..6957b6d666c 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/update-phone.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/update-phone.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/update-prefs.md b/docs/examples/1.4.x/server-nodejs/examples/users/update-prefs.md index 75f1a4298c2..643ebee2204 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/update-prefs.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/update-prefs.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-nodejs/examples/users/update-status.md b/docs/examples/1.4.x/server-nodejs/examples/users/update-status.md index ac52d732ea0..1b914dba72f 100644 --- a/docs/examples/1.4.x/server-nodejs/examples/users/update-status.md +++ b/docs/examples/1.4.x/server-nodejs/examples/users/update-status.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/account/create-phone-verification.md b/docs/examples/1.4.x/server-php/examples/account/create-phone-verification.md index 1c41a30ce8d..30d16371745 100644 --- a/docs/examples/1.4.x/server-php/examples/account/create-phone-verification.md +++ b/docs/examples/1.4.x/server-php/examples/account/create-phone-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/create-recovery.md b/docs/examples/1.4.x/server-php/examples/account/create-recovery.md index 8ca78fc37bb..513037c533e 100644 --- a/docs/examples/1.4.x/server-php/examples/account/create-recovery.md +++ b/docs/examples/1.4.x/server-php/examples/account/create-recovery.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/create-verification.md b/docs/examples/1.4.x/server-php/examples/account/create-verification.md index 92fb38151c4..4785065601a 100644 --- a/docs/examples/1.4.x/server-php/examples/account/create-verification.md +++ b/docs/examples/1.4.x/server-php/examples/account/create-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/delete-identity.md b/docs/examples/1.4.x/server-php/examples/account/delete-identity.md index 0b509afdc42..6e75fda760e 100644 --- a/docs/examples/1.4.x/server-php/examples/account/delete-identity.md +++ b/docs/examples/1.4.x/server-php/examples/account/delete-identity.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/delete-session.md b/docs/examples/1.4.x/server-php/examples/account/delete-session.md index 51bf3e2d414..74847d73b76 100644 --- a/docs/examples/1.4.x/server-php/examples/account/delete-session.md +++ b/docs/examples/1.4.x/server-php/examples/account/delete-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/delete-sessions.md b/docs/examples/1.4.x/server-php/examples/account/delete-sessions.md index bf3bc2a3008..af4b46dbb67 100644 --- a/docs/examples/1.4.x/server-php/examples/account/delete-sessions.md +++ b/docs/examples/1.4.x/server-php/examples/account/delete-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/get-prefs.md b/docs/examples/1.4.x/server-php/examples/account/get-prefs.md index a91b888723a..50ffc766d38 100644 --- a/docs/examples/1.4.x/server-php/examples/account/get-prefs.md +++ b/docs/examples/1.4.x/server-php/examples/account/get-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/get-session.md b/docs/examples/1.4.x/server-php/examples/account/get-session.md index 9e2341ce084..e2112ee4cd6 100644 --- a/docs/examples/1.4.x/server-php/examples/account/get-session.md +++ b/docs/examples/1.4.x/server-php/examples/account/get-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/get.md b/docs/examples/1.4.x/server-php/examples/account/get.md index 4333bf2e734..b9361063ce7 100644 --- a/docs/examples/1.4.x/server-php/examples/account/get.md +++ b/docs/examples/1.4.x/server-php/examples/account/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/list-identities.md b/docs/examples/1.4.x/server-php/examples/account/list-identities.md index c522a15a3eb..4b4dd75cb40 100644 --- a/docs/examples/1.4.x/server-php/examples/account/list-identities.md +++ b/docs/examples/1.4.x/server-php/examples/account/list-identities.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/list-logs.md b/docs/examples/1.4.x/server-php/examples/account/list-logs.md index 62bc86d6681..1283d9cfd46 100644 --- a/docs/examples/1.4.x/server-php/examples/account/list-logs.md +++ b/docs/examples/1.4.x/server-php/examples/account/list-logs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/list-sessions.md b/docs/examples/1.4.x/server-php/examples/account/list-sessions.md index 7942a3de2a7..a07d303fe9b 100644 --- a/docs/examples/1.4.x/server-php/examples/account/list-sessions.md +++ b/docs/examples/1.4.x/server-php/examples/account/list-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/update-email.md b/docs/examples/1.4.x/server-php/examples/account/update-email.md index a7ac5ede7d2..a6bf5f6c241 100644 --- a/docs/examples/1.4.x/server-php/examples/account/update-email.md +++ b/docs/examples/1.4.x/server-php/examples/account/update-email.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/update-name.md b/docs/examples/1.4.x/server-php/examples/account/update-name.md index 21bac949002..17f51894123 100644 --- a/docs/examples/1.4.x/server-php/examples/account/update-name.md +++ b/docs/examples/1.4.x/server-php/examples/account/update-name.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/update-password.md b/docs/examples/1.4.x/server-php/examples/account/update-password.md index 47e4c96695a..8bd4b4915c9 100644 --- a/docs/examples/1.4.x/server-php/examples/account/update-password.md +++ b/docs/examples/1.4.x/server-php/examples/account/update-password.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/update-phone-verification.md b/docs/examples/1.4.x/server-php/examples/account/update-phone-verification.md index 02458727a5a..466f5164645 100644 --- a/docs/examples/1.4.x/server-php/examples/account/update-phone-verification.md +++ b/docs/examples/1.4.x/server-php/examples/account/update-phone-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/update-phone.md b/docs/examples/1.4.x/server-php/examples/account/update-phone.md index eaa18985123..75947cdf536 100644 --- a/docs/examples/1.4.x/server-php/examples/account/update-phone.md +++ b/docs/examples/1.4.x/server-php/examples/account/update-phone.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/update-prefs.md b/docs/examples/1.4.x/server-php/examples/account/update-prefs.md index 96d0be57816..f7687416f2b 100644 --- a/docs/examples/1.4.x/server-php/examples/account/update-prefs.md +++ b/docs/examples/1.4.x/server-php/examples/account/update-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/update-recovery.md b/docs/examples/1.4.x/server-php/examples/account/update-recovery.md index 379b219e6d2..0f8285654b9 100644 --- a/docs/examples/1.4.x/server-php/examples/account/update-recovery.md +++ b/docs/examples/1.4.x/server-php/examples/account/update-recovery.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/update-session.md b/docs/examples/1.4.x/server-php/examples/account/update-session.md index 462be6b914c..264e6b6435a 100644 --- a/docs/examples/1.4.x/server-php/examples/account/update-session.md +++ b/docs/examples/1.4.x/server-php/examples/account/update-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/update-status.md b/docs/examples/1.4.x/server-php/examples/account/update-status.md index b1a1f2c8ec9..ecfb4b56faa 100644 --- a/docs/examples/1.4.x/server-php/examples/account/update-status.md +++ b/docs/examples/1.4.x/server-php/examples/account/update-status.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/account/update-verification.md b/docs/examples/1.4.x/server-php/examples/account/update-verification.md index ad583a422e8..81a86041fda 100644 --- a/docs/examples/1.4.x/server-php/examples/account/update-verification.md +++ b/docs/examples/1.4.x/server-php/examples/account/update-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/avatars/get-browser.md b/docs/examples/1.4.x/server-php/examples/avatars/get-browser.md index 362106f645d..dc92f02acfa 100644 --- a/docs/examples/1.4.x/server-php/examples/avatars/get-browser.md +++ b/docs/examples/1.4.x/server-php/examples/avatars/get-browser.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/avatars/get-credit-card.md b/docs/examples/1.4.x/server-php/examples/avatars/get-credit-card.md index c85ebeac2eb..6808432f42d 100644 --- a/docs/examples/1.4.x/server-php/examples/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/server-php/examples/avatars/get-credit-card.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/avatars/get-favicon.md b/docs/examples/1.4.x/server-php/examples/avatars/get-favicon.md index 088524e0519..4266898e6ae 100644 --- a/docs/examples/1.4.x/server-php/examples/avatars/get-favicon.md +++ b/docs/examples/1.4.x/server-php/examples/avatars/get-favicon.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/avatars/get-flag.md b/docs/examples/1.4.x/server-php/examples/avatars/get-flag.md index 2f2705b61fb..df76fff7d8b 100644 --- a/docs/examples/1.4.x/server-php/examples/avatars/get-flag.md +++ b/docs/examples/1.4.x/server-php/examples/avatars/get-flag.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/avatars/get-image.md b/docs/examples/1.4.x/server-php/examples/avatars/get-image.md index d576232a42c..bc0b285de54 100644 --- a/docs/examples/1.4.x/server-php/examples/avatars/get-image.md +++ b/docs/examples/1.4.x/server-php/examples/avatars/get-image.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/avatars/get-initials.md b/docs/examples/1.4.x/server-php/examples/avatars/get-initials.md index 4e924c70624..eafe65f3d77 100644 --- a/docs/examples/1.4.x/server-php/examples/avatars/get-initials.md +++ b/docs/examples/1.4.x/server-php/examples/avatars/get-initials.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/avatars/get-q-r.md b/docs/examples/1.4.x/server-php/examples/avatars/get-q-r.md index fde6e35b77a..ff2bbf4a385 100644 --- a/docs/examples/1.4.x/server-php/examples/avatars/get-q-r.md +++ b/docs/examples/1.4.x/server-php/examples/avatars/get-q-r.md @@ -6,7 +6,7 @@ use Appwrite\Services\Avatars; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/create-boolean-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/create-boolean-attribute.md index 17c92241b4a..7ea50ba3788 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/create-boolean-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/create-collection.md b/docs/examples/1.4.x/server-php/examples/databases/create-collection.md index 2fd5fb61c07..7bf6139f45c 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/create-collection.md +++ b/docs/examples/1.4.x/server-php/examples/databases/create-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/create-datetime-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/create-datetime-attribute.md index 284163c266e..8cff5f18974 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/create-datetime-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/create-document.md b/docs/examples/1.4.x/server-php/examples/databases/create-document.md index 509160b9ad6..b5ed74d1d85 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/create-document.md +++ b/docs/examples/1.4.x/server-php/examples/databases/create-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/create-email-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/create-email-attribute.md index df68be7fb02..2fef5160db4 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/create-email-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/create-email-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/create-enum-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/create-enum-attribute.md index c469679fd73..baeeb8edfbf 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/create-enum-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/create-float-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/create-float-attribute.md index c182d0a7744..177647813c0 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/create-float-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/create-float-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/create-index.md b/docs/examples/1.4.x/server-php/examples/databases/create-index.md index 6ecd4cc58b8..4046c511a79 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/create-index.md +++ b/docs/examples/1.4.x/server-php/examples/databases/create-index.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/create-integer-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/create-integer-attribute.md index d86ca7056bf..8e5c54ec5ac 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/create-integer-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/create-ip-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/create-ip-attribute.md index 823fa994827..fe55cfe2040 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/create-ip-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/create-relationship-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/create-relationship-attribute.md index 4840a669374..97b00cda2fd 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/create-relationship-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/create-string-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/create-string-attribute.md index 50abd0a18db..7be05ee07ef 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/create-string-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/create-string-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/create-url-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/create-url-attribute.md index 5520cb13341..2380d74c43e 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/create-url-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/create-url-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/create.md b/docs/examples/1.4.x/server-php/examples/databases/create.md index 16176b9b40b..f05690391aa 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/create.md +++ b/docs/examples/1.4.x/server-php/examples/databases/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/delete-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/delete-attribute.md index d89c7de4f72..e46374ca423 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/delete-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/delete-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/delete-collection.md b/docs/examples/1.4.x/server-php/examples/databases/delete-collection.md index 29c627bbf0d..f5ffb2c75a4 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/delete-collection.md +++ b/docs/examples/1.4.x/server-php/examples/databases/delete-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/delete-document.md b/docs/examples/1.4.x/server-php/examples/databases/delete-document.md index 9d5f1f0d516..523d3b5e0e3 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/delete-document.md +++ b/docs/examples/1.4.x/server-php/examples/databases/delete-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/delete-index.md b/docs/examples/1.4.x/server-php/examples/databases/delete-index.md index 073aa3a82e1..5739f5ce6b5 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/delete-index.md +++ b/docs/examples/1.4.x/server-php/examples/databases/delete-index.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/delete.md b/docs/examples/1.4.x/server-php/examples/databases/delete.md index 3dab79bc99f..0cc8b06106e 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/delete.md +++ b/docs/examples/1.4.x/server-php/examples/databases/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/get-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/get-attribute.md index c286a7692af..5a109b7594f 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/get-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/get-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/get-collection.md b/docs/examples/1.4.x/server-php/examples/databases/get-collection.md index 7cc578df8d7..6d665e46018 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/get-collection.md +++ b/docs/examples/1.4.x/server-php/examples/databases/get-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/get-document.md b/docs/examples/1.4.x/server-php/examples/databases/get-document.md index 7637e035e23..0397d6cbd55 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/get-document.md +++ b/docs/examples/1.4.x/server-php/examples/databases/get-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/get-index.md b/docs/examples/1.4.x/server-php/examples/databases/get-index.md index a674a5935e9..ff39044a1fa 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/get-index.md +++ b/docs/examples/1.4.x/server-php/examples/databases/get-index.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/get.md b/docs/examples/1.4.x/server-php/examples/databases/get.md index adc415f9a51..f87400b7dd0 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/get.md +++ b/docs/examples/1.4.x/server-php/examples/databases/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/list-attributes.md b/docs/examples/1.4.x/server-php/examples/databases/list-attributes.md index 424c4b2405c..decd3939449 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/list-attributes.md +++ b/docs/examples/1.4.x/server-php/examples/databases/list-attributes.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/list-collections.md b/docs/examples/1.4.x/server-php/examples/databases/list-collections.md index 3f311f31385..7c0810a073b 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/list-collections.md +++ b/docs/examples/1.4.x/server-php/examples/databases/list-collections.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/list-documents.md b/docs/examples/1.4.x/server-php/examples/databases/list-documents.md index c9a6bbe4ff5..c2a1d47d2a6 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/list-documents.md +++ b/docs/examples/1.4.x/server-php/examples/databases/list-documents.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/list-indexes.md b/docs/examples/1.4.x/server-php/examples/databases/list-indexes.md index 733d20b9338..ecf4797d654 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/list-indexes.md +++ b/docs/examples/1.4.x/server-php/examples/databases/list-indexes.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/list.md b/docs/examples/1.4.x/server-php/examples/databases/list.md index 45963718d3b..6882d17e977 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/list.md +++ b/docs/examples/1.4.x/server-php/examples/databases/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/update-boolean-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/update-boolean-attribute.md index 9e8b8699e1d..13b25b52c43 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/update-boolean-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/update-collection.md b/docs/examples/1.4.x/server-php/examples/databases/update-collection.md index 878bf209865..9eedede688b 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/update-collection.md +++ b/docs/examples/1.4.x/server-php/examples/databases/update-collection.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/update-datetime-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/update-datetime-attribute.md index 26214fb785c..efbb8713276 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/update-datetime-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/update-document.md b/docs/examples/1.4.x/server-php/examples/databases/update-document.md index 796e4600eb7..56310e155f8 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/update-document.md +++ b/docs/examples/1.4.x/server-php/examples/databases/update-document.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/update-email-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/update-email-attribute.md index 7278881e3b9..ba670046c3e 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/update-email-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/update-email-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/update-enum-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/update-enum-attribute.md index a77211b0f76..df0f6409ddb 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/update-enum-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/update-float-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/update-float-attribute.md index e73793e1fdf..9d27fa196fa 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/update-float-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/update-float-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/update-integer-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/update-integer-attribute.md index 1cff205200a..795f2cfd448 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/update-integer-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/update-ip-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/update-ip-attribute.md index bb49d89c399..0f42ca3f407 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/update-ip-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/update-relationship-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/update-relationship-attribute.md index b68025b84c8..078d0338ca7 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/update-relationship-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/update-string-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/update-string-attribute.md index 775d0fa2bec..0c821fe9d07 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/update-string-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/update-string-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/update-url-attribute.md b/docs/examples/1.4.x/server-php/examples/databases/update-url-attribute.md index 6d4845e7eb3..a14bde5d2db 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/update-url-attribute.md +++ b/docs/examples/1.4.x/server-php/examples/databases/update-url-attribute.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/databases/update.md b/docs/examples/1.4.x/server-php/examples/databases/update.md index db1ae7688e8..b1f0589be9a 100644 --- a/docs/examples/1.4.x/server-php/examples/databases/update.md +++ b/docs/examples/1.4.x/server-php/examples/databases/update.md @@ -6,7 +6,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/create-build.md b/docs/examples/1.4.x/server-php/examples/functions/create-build.md index ac66cc2eb25..cc83570c3a0 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/create-build.md +++ b/docs/examples/1.4.x/server-php/examples/functions/create-build.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/create-deployment.md b/docs/examples/1.4.x/server-php/examples/functions/create-deployment.md index b219b509de5..d5ddbd58c24 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/create-deployment.md +++ b/docs/examples/1.4.x/server-php/examples/functions/create-deployment.md @@ -7,7 +7,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/create-execution.md b/docs/examples/1.4.x/server-php/examples/functions/create-execution.md index 038126a728c..bc6138825ff 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/create-execution.md +++ b/docs/examples/1.4.x/server-php/examples/functions/create-execution.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/create-variable.md b/docs/examples/1.4.x/server-php/examples/functions/create-variable.md index f09e61861ee..57244ec1f45 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/create-variable.md +++ b/docs/examples/1.4.x/server-php/examples/functions/create-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/create.md b/docs/examples/1.4.x/server-php/examples/functions/create.md index cd4b02be668..5f6d948304a 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/create.md +++ b/docs/examples/1.4.x/server-php/examples/functions/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/delete-deployment.md b/docs/examples/1.4.x/server-php/examples/functions/delete-deployment.md index 7227cd995f5..bbc65aada12 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/delete-deployment.md +++ b/docs/examples/1.4.x/server-php/examples/functions/delete-deployment.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/delete-variable.md b/docs/examples/1.4.x/server-php/examples/functions/delete-variable.md index a457846492b..42376a0e9f8 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/delete-variable.md +++ b/docs/examples/1.4.x/server-php/examples/functions/delete-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/delete.md b/docs/examples/1.4.x/server-php/examples/functions/delete.md index d06c732f57d..2abe85b75d8 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/delete.md +++ b/docs/examples/1.4.x/server-php/examples/functions/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/download-deployment.md b/docs/examples/1.4.x/server-php/examples/functions/download-deployment.md index d7a6d55e2a6..46401e3503a 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/download-deployment.md +++ b/docs/examples/1.4.x/server-php/examples/functions/download-deployment.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/get-deployment.md b/docs/examples/1.4.x/server-php/examples/functions/get-deployment.md index 4c4fe49eb3b..19f4d58392c 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/get-deployment.md +++ b/docs/examples/1.4.x/server-php/examples/functions/get-deployment.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/get-execution.md b/docs/examples/1.4.x/server-php/examples/functions/get-execution.md index ff59dc1cfeb..994f2be976f 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/get-execution.md +++ b/docs/examples/1.4.x/server-php/examples/functions/get-execution.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/get-variable.md b/docs/examples/1.4.x/server-php/examples/functions/get-variable.md index e80b8f9fc0d..34012f9fbbc 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/get-variable.md +++ b/docs/examples/1.4.x/server-php/examples/functions/get-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/get.md b/docs/examples/1.4.x/server-php/examples/functions/get.md index aef58062590..2f5e69b142c 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/get.md +++ b/docs/examples/1.4.x/server-php/examples/functions/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/list-deployments.md b/docs/examples/1.4.x/server-php/examples/functions/list-deployments.md index 366e5fdc71f..db4524430b0 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/list-deployments.md +++ b/docs/examples/1.4.x/server-php/examples/functions/list-deployments.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/list-executions.md b/docs/examples/1.4.x/server-php/examples/functions/list-executions.md index 34a80ad434d..f431a4a9374 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/list-executions.md +++ b/docs/examples/1.4.x/server-php/examples/functions/list-executions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/list-runtimes.md b/docs/examples/1.4.x/server-php/examples/functions/list-runtimes.md index b35dadfec97..23089ec3ea4 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/list-runtimes.md +++ b/docs/examples/1.4.x/server-php/examples/functions/list-runtimes.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/list-variables.md b/docs/examples/1.4.x/server-php/examples/functions/list-variables.md index cf742891573..aa84e28a6d7 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/list-variables.md +++ b/docs/examples/1.4.x/server-php/examples/functions/list-variables.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/list.md b/docs/examples/1.4.x/server-php/examples/functions/list.md index f57875572e0..05925721359 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/list.md +++ b/docs/examples/1.4.x/server-php/examples/functions/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/update-deployment.md b/docs/examples/1.4.x/server-php/examples/functions/update-deployment.md index b5f09cd0180..3e259458ffc 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/update-deployment.md +++ b/docs/examples/1.4.x/server-php/examples/functions/update-deployment.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/update-variable.md b/docs/examples/1.4.x/server-php/examples/functions/update-variable.md index 4eb52d94d3f..f1952d8b5ce 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/update-variable.md +++ b/docs/examples/1.4.x/server-php/examples/functions/update-variable.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/functions/update.md b/docs/examples/1.4.x/server-php/examples/functions/update.md index 072ff5cdbb5..05636d40bfe 100644 --- a/docs/examples/1.4.x/server-php/examples/functions/update.md +++ b/docs/examples/1.4.x/server-php/examples/functions/update.md @@ -6,7 +6,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/graphql/mutation.md b/docs/examples/1.4.x/server-php/examples/graphql/mutation.md index 5622f7f2699..f75d53e86c4 100644 --- a/docs/examples/1.4.x/server-php/examples/graphql/mutation.md +++ b/docs/examples/1.4.x/server-php/examples/graphql/mutation.md @@ -6,7 +6,7 @@ use Appwrite\Services\Graphql; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/graphql/query.md b/docs/examples/1.4.x/server-php/examples/graphql/query.md index 3ca1d940c49..369dcbd47e5 100644 --- a/docs/examples/1.4.x/server-php/examples/graphql/query.md +++ b/docs/examples/1.4.x/server-php/examples/graphql/query.md @@ -6,7 +6,7 @@ use Appwrite\Services\Graphql; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-antivirus.md b/docs/examples/1.4.x/server-php/examples/health/get-antivirus.md index 4f1483514b7..f31c642d9f7 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-antivirus.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-antivirus.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-cache.md b/docs/examples/1.4.x/server-php/examples/health/get-cache.md index 3d1b19b3ef7..90cc8d86868 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-cache.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-cache.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-d-b.md b/docs/examples/1.4.x/server-php/examples/health/get-d-b.md index c03ba23723a..1ff93f4707a 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-d-b.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-d-b.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-pub-sub.md b/docs/examples/1.4.x/server-php/examples/health/get-pub-sub.md index 721b5c2474b..8c4d031cf97 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-pub-sub.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-pub-sub.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-queue-builds.md b/docs/examples/1.4.x/server-php/examples/health/get-queue-builds.md index 71d6ea8fe8b..9c1937df20a 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-queue-builds.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-queue-builds.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-queue-certificates.md b/docs/examples/1.4.x/server-php/examples/health/get-queue-certificates.md index 76236de7b59..e58ba39c47b 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-queue-certificates.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-queue-certificates.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-queue-databases.md b/docs/examples/1.4.x/server-php/examples/health/get-queue-databases.md index 154625a8299..9fffd33b421 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-queue-databases.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-queue-databases.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-queue-deletes.md b/docs/examples/1.4.x/server-php/examples/health/get-queue-deletes.md index 84107ad35a4..866d3095f31 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-queue-deletes.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-queue-deletes.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-queue-functions.md b/docs/examples/1.4.x/server-php/examples/health/get-queue-functions.md index 31f65de1d12..699b4d390cd 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-queue-functions.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-queue-functions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-queue-logs.md b/docs/examples/1.4.x/server-php/examples/health/get-queue-logs.md index ff1adb2a416..f55e8611766 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-queue-logs.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-queue-logs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-queue-mails.md b/docs/examples/1.4.x/server-php/examples/health/get-queue-mails.md index ec7459af4cf..a6b0fe59db5 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-queue-mails.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-queue-mails.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-queue-messaging.md b/docs/examples/1.4.x/server-php/examples/health/get-queue-messaging.md index 4b47d2ffa44..80e510b4106 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-queue-messaging.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-queue-messaging.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-queue-migrations.md b/docs/examples/1.4.x/server-php/examples/health/get-queue-migrations.md index 3b7a001d852..49d636ffe89 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-queue-migrations.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-queue-migrations.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-queue-webhooks.md b/docs/examples/1.4.x/server-php/examples/health/get-queue-webhooks.md index 99592bcface..838f442822b 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-queue-webhooks.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-queue.md b/docs/examples/1.4.x/server-php/examples/health/get-queue.md index 9feb1ad8e2b..4a51e4f8bf9 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-queue.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-queue.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-storage-local.md b/docs/examples/1.4.x/server-php/examples/health/get-storage-local.md index 55212c36aeb..f156c7a6fe5 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-storage-local.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-storage-local.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get-time.md b/docs/examples/1.4.x/server-php/examples/health/get-time.md index 54101247869..2efbd2d2377 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get-time.md +++ b/docs/examples/1.4.x/server-php/examples/health/get-time.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/health/get.md b/docs/examples/1.4.x/server-php/examples/health/get.md index 62cab8acf2a..9a080c8e4d6 100644 --- a/docs/examples/1.4.x/server-php/examples/health/get.md +++ b/docs/examples/1.4.x/server-php/examples/health/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Health; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/locale/get.md b/docs/examples/1.4.x/server-php/examples/locale/get.md index c4910463c59..3a8e04cc538 100644 --- a/docs/examples/1.4.x/server-php/examples/locale/get.md +++ b/docs/examples/1.4.x/server-php/examples/locale/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/locale/list-codes.md b/docs/examples/1.4.x/server-php/examples/locale/list-codes.md index 55207ce32de..7f545a494ba 100644 --- a/docs/examples/1.4.x/server-php/examples/locale/list-codes.md +++ b/docs/examples/1.4.x/server-php/examples/locale/list-codes.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/locale/list-continents.md b/docs/examples/1.4.x/server-php/examples/locale/list-continents.md index 9cd8fb13998..1103c8b847c 100644 --- a/docs/examples/1.4.x/server-php/examples/locale/list-continents.md +++ b/docs/examples/1.4.x/server-php/examples/locale/list-continents.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/locale/list-countries-e-u.md b/docs/examples/1.4.x/server-php/examples/locale/list-countries-e-u.md index 1f2ef98c963..7ad6b052996 100644 --- a/docs/examples/1.4.x/server-php/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/server-php/examples/locale/list-countries-e-u.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/locale/list-countries-phones.md b/docs/examples/1.4.x/server-php/examples/locale/list-countries-phones.md index 6f8acb7467d..3f5154c98c9 100644 --- a/docs/examples/1.4.x/server-php/examples/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/server-php/examples/locale/list-countries-phones.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/locale/list-countries.md b/docs/examples/1.4.x/server-php/examples/locale/list-countries.md index 28c518e82a6..4abf4cc4919 100644 --- a/docs/examples/1.4.x/server-php/examples/locale/list-countries.md +++ b/docs/examples/1.4.x/server-php/examples/locale/list-countries.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/locale/list-currencies.md b/docs/examples/1.4.x/server-php/examples/locale/list-currencies.md index 37784f3d1ee..8b115f898ce 100644 --- a/docs/examples/1.4.x/server-php/examples/locale/list-currencies.md +++ b/docs/examples/1.4.x/server-php/examples/locale/list-currencies.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/locale/list-languages.md b/docs/examples/1.4.x/server-php/examples/locale/list-languages.md index 8b4f082cb0b..74347ff87b2 100644 --- a/docs/examples/1.4.x/server-php/examples/locale/list-languages.md +++ b/docs/examples/1.4.x/server-php/examples/locale/list-languages.md @@ -6,7 +6,7 @@ use Appwrite\Services\Locale; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/storage/create-bucket.md b/docs/examples/1.4.x/server-php/examples/storage/create-bucket.md index bf54c22a471..3e43cd52b4e 100644 --- a/docs/examples/1.4.x/server-php/examples/storage/create-bucket.md +++ b/docs/examples/1.4.x/server-php/examples/storage/create-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/storage/create-file.md b/docs/examples/1.4.x/server-php/examples/storage/create-file.md index e2cfce7ae92..3c0fc4c71f1 100644 --- a/docs/examples/1.4.x/server-php/examples/storage/create-file.md +++ b/docs/examples/1.4.x/server-php/examples/storage/create-file.md @@ -7,7 +7,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/storage/delete-bucket.md b/docs/examples/1.4.x/server-php/examples/storage/delete-bucket.md index b3659b6276f..bfae9b70a7b 100644 --- a/docs/examples/1.4.x/server-php/examples/storage/delete-bucket.md +++ b/docs/examples/1.4.x/server-php/examples/storage/delete-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/storage/delete-file.md b/docs/examples/1.4.x/server-php/examples/storage/delete-file.md index 00db8551b37..5fb21e02103 100644 --- a/docs/examples/1.4.x/server-php/examples/storage/delete-file.md +++ b/docs/examples/1.4.x/server-php/examples/storage/delete-file.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/storage/get-bucket.md b/docs/examples/1.4.x/server-php/examples/storage/get-bucket.md index d4d152aff49..e816ef192fd 100644 --- a/docs/examples/1.4.x/server-php/examples/storage/get-bucket.md +++ b/docs/examples/1.4.x/server-php/examples/storage/get-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/storage/get-file-download.md b/docs/examples/1.4.x/server-php/examples/storage/get-file-download.md index 0c7fefda37f..9a181f70070 100644 --- a/docs/examples/1.4.x/server-php/examples/storage/get-file-download.md +++ b/docs/examples/1.4.x/server-php/examples/storage/get-file-download.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/storage/get-file-preview.md b/docs/examples/1.4.x/server-php/examples/storage/get-file-preview.md index c1b91e5c295..d30c0ec450c 100644 --- a/docs/examples/1.4.x/server-php/examples/storage/get-file-preview.md +++ b/docs/examples/1.4.x/server-php/examples/storage/get-file-preview.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/storage/get-file-view.md b/docs/examples/1.4.x/server-php/examples/storage/get-file-view.md index f527c1b7440..983fb0c52fa 100644 --- a/docs/examples/1.4.x/server-php/examples/storage/get-file-view.md +++ b/docs/examples/1.4.x/server-php/examples/storage/get-file-view.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/storage/get-file.md b/docs/examples/1.4.x/server-php/examples/storage/get-file.md index cb56c96a428..799e1192d06 100644 --- a/docs/examples/1.4.x/server-php/examples/storage/get-file.md +++ b/docs/examples/1.4.x/server-php/examples/storage/get-file.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/storage/list-buckets.md b/docs/examples/1.4.x/server-php/examples/storage/list-buckets.md index b92dc82bcbe..235cc8f9b63 100644 --- a/docs/examples/1.4.x/server-php/examples/storage/list-buckets.md +++ b/docs/examples/1.4.x/server-php/examples/storage/list-buckets.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/storage/list-files.md b/docs/examples/1.4.x/server-php/examples/storage/list-files.md index e0b79186e45..12b697fc81e 100644 --- a/docs/examples/1.4.x/server-php/examples/storage/list-files.md +++ b/docs/examples/1.4.x/server-php/examples/storage/list-files.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/storage/update-bucket.md b/docs/examples/1.4.x/server-php/examples/storage/update-bucket.md index 5e46dfc83bb..6985651b9bf 100644 --- a/docs/examples/1.4.x/server-php/examples/storage/update-bucket.md +++ b/docs/examples/1.4.x/server-php/examples/storage/update-bucket.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/storage/update-file.md b/docs/examples/1.4.x/server-php/examples/storage/update-file.md index 1d3e01e99a9..6dc64b1f5ba 100644 --- a/docs/examples/1.4.x/server-php/examples/storage/update-file.md +++ b/docs/examples/1.4.x/server-php/examples/storage/update-file.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/teams/create-membership.md b/docs/examples/1.4.x/server-php/examples/teams/create-membership.md index b20e15fb18c..32ba08840be 100644 --- a/docs/examples/1.4.x/server-php/examples/teams/create-membership.md +++ b/docs/examples/1.4.x/server-php/examples/teams/create-membership.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/teams/create.md b/docs/examples/1.4.x/server-php/examples/teams/create.md index e5efe49b302..551922be145 100644 --- a/docs/examples/1.4.x/server-php/examples/teams/create.md +++ b/docs/examples/1.4.x/server-php/examples/teams/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/teams/delete-membership.md b/docs/examples/1.4.x/server-php/examples/teams/delete-membership.md index 2b40c1742e2..5d070ee09c6 100644 --- a/docs/examples/1.4.x/server-php/examples/teams/delete-membership.md +++ b/docs/examples/1.4.x/server-php/examples/teams/delete-membership.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/teams/delete.md b/docs/examples/1.4.x/server-php/examples/teams/delete.md index 5ec2ed995c9..009c7eee2ec 100644 --- a/docs/examples/1.4.x/server-php/examples/teams/delete.md +++ b/docs/examples/1.4.x/server-php/examples/teams/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/teams/get-membership.md b/docs/examples/1.4.x/server-php/examples/teams/get-membership.md index fdd3024783d..f23b8a7eb0e 100644 --- a/docs/examples/1.4.x/server-php/examples/teams/get-membership.md +++ b/docs/examples/1.4.x/server-php/examples/teams/get-membership.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/teams/get-prefs.md b/docs/examples/1.4.x/server-php/examples/teams/get-prefs.md index 0436f969629..211373dd8aa 100644 --- a/docs/examples/1.4.x/server-php/examples/teams/get-prefs.md +++ b/docs/examples/1.4.x/server-php/examples/teams/get-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/teams/get.md b/docs/examples/1.4.x/server-php/examples/teams/get.md index 94b8a2695a7..b7b4a43ac6f 100644 --- a/docs/examples/1.4.x/server-php/examples/teams/get.md +++ b/docs/examples/1.4.x/server-php/examples/teams/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/teams/list-memberships.md b/docs/examples/1.4.x/server-php/examples/teams/list-memberships.md index f23b78eca10..3a15fd91bea 100644 --- a/docs/examples/1.4.x/server-php/examples/teams/list-memberships.md +++ b/docs/examples/1.4.x/server-php/examples/teams/list-memberships.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/teams/list.md b/docs/examples/1.4.x/server-php/examples/teams/list.md index 66f54b6e1c9..970b2b08d25 100644 --- a/docs/examples/1.4.x/server-php/examples/teams/list.md +++ b/docs/examples/1.4.x/server-php/examples/teams/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/teams/update-membership-status.md b/docs/examples/1.4.x/server-php/examples/teams/update-membership-status.md index 15504ad4215..0d0a1258863 100644 --- a/docs/examples/1.4.x/server-php/examples/teams/update-membership-status.md +++ b/docs/examples/1.4.x/server-php/examples/teams/update-membership-status.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/teams/update-membership.md b/docs/examples/1.4.x/server-php/examples/teams/update-membership.md index 37b8fa7388b..befef965d22 100644 --- a/docs/examples/1.4.x/server-php/examples/teams/update-membership.md +++ b/docs/examples/1.4.x/server-php/examples/teams/update-membership.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/teams/update-name.md b/docs/examples/1.4.x/server-php/examples/teams/update-name.md index e88a31862da..09c9b6f928d 100644 --- a/docs/examples/1.4.x/server-php/examples/teams/update-name.md +++ b/docs/examples/1.4.x/server-php/examples/teams/update-name.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/teams/update-prefs.md b/docs/examples/1.4.x/server-php/examples/teams/update-prefs.md index 4d044cce235..fd42914c458 100644 --- a/docs/examples/1.4.x/server-php/examples/teams/update-prefs.md +++ b/docs/examples/1.4.x/server-php/examples/teams/update-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Teams; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token ; diff --git a/docs/examples/1.4.x/server-php/examples/users/create-argon2user.md b/docs/examples/1.4.x/server-php/examples/users/create-argon2user.md index 1036ca109e1..83bc0408277 100644 --- a/docs/examples/1.4.x/server-php/examples/users/create-argon2user.md +++ b/docs/examples/1.4.x/server-php/examples/users/create-argon2user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/create-bcrypt-user.md b/docs/examples/1.4.x/server-php/examples/users/create-bcrypt-user.md index de15110a4ed..ce1e2d5633b 100644 --- a/docs/examples/1.4.x/server-php/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.4.x/server-php/examples/users/create-bcrypt-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/create-m-d5user.md b/docs/examples/1.4.x/server-php/examples/users/create-m-d5user.md index 15f4ebe0aab..d78ffa24d4f 100644 --- a/docs/examples/1.4.x/server-php/examples/users/create-m-d5user.md +++ b/docs/examples/1.4.x/server-php/examples/users/create-m-d5user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/create-p-h-pass-user.md b/docs/examples/1.4.x/server-php/examples/users/create-p-h-pass-user.md index 2eb682fc42f..097636038a6 100644 --- a/docs/examples/1.4.x/server-php/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.4.x/server-php/examples/users/create-p-h-pass-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/create-s-h-a-user.md b/docs/examples/1.4.x/server-php/examples/users/create-s-h-a-user.md index 3e63bd99282..ab5df354cc8 100644 --- a/docs/examples/1.4.x/server-php/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.4.x/server-php/examples/users/create-s-h-a-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/create-scrypt-modified-user.md b/docs/examples/1.4.x/server-php/examples/users/create-scrypt-modified-user.md index bcf7c52cd59..bb71afe901d 100644 --- a/docs/examples/1.4.x/server-php/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.4.x/server-php/examples/users/create-scrypt-modified-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/create-scrypt-user.md b/docs/examples/1.4.x/server-php/examples/users/create-scrypt-user.md index 43a4bcc2e2a..563268784da 100644 --- a/docs/examples/1.4.x/server-php/examples/users/create-scrypt-user.md +++ b/docs/examples/1.4.x/server-php/examples/users/create-scrypt-user.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/create.md b/docs/examples/1.4.x/server-php/examples/users/create.md index dab8a5ed708..67ab2660eb9 100644 --- a/docs/examples/1.4.x/server-php/examples/users/create.md +++ b/docs/examples/1.4.x/server-php/examples/users/create.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/delete-identity.md b/docs/examples/1.4.x/server-php/examples/users/delete-identity.md index a25222751cc..43a7ad69fec 100644 --- a/docs/examples/1.4.x/server-php/examples/users/delete-identity.md +++ b/docs/examples/1.4.x/server-php/examples/users/delete-identity.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/delete-session.md b/docs/examples/1.4.x/server-php/examples/users/delete-session.md index c6a507c7b20..6ce035a739b 100644 --- a/docs/examples/1.4.x/server-php/examples/users/delete-session.md +++ b/docs/examples/1.4.x/server-php/examples/users/delete-session.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/delete-sessions.md b/docs/examples/1.4.x/server-php/examples/users/delete-sessions.md index 570d258683f..a4a07242bde 100644 --- a/docs/examples/1.4.x/server-php/examples/users/delete-sessions.md +++ b/docs/examples/1.4.x/server-php/examples/users/delete-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/delete.md b/docs/examples/1.4.x/server-php/examples/users/delete.md index 1d5a822fde0..63279e1b46e 100644 --- a/docs/examples/1.4.x/server-php/examples/users/delete.md +++ b/docs/examples/1.4.x/server-php/examples/users/delete.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/get-prefs.md b/docs/examples/1.4.x/server-php/examples/users/get-prefs.md index e9c8c58bf36..d52706530e1 100644 --- a/docs/examples/1.4.x/server-php/examples/users/get-prefs.md +++ b/docs/examples/1.4.x/server-php/examples/users/get-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/get.md b/docs/examples/1.4.x/server-php/examples/users/get.md index 51482d37eb0..5f84f327db0 100644 --- a/docs/examples/1.4.x/server-php/examples/users/get.md +++ b/docs/examples/1.4.x/server-php/examples/users/get.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/list-identities.md b/docs/examples/1.4.x/server-php/examples/users/list-identities.md index 2d229e41199..ba75d77de34 100644 --- a/docs/examples/1.4.x/server-php/examples/users/list-identities.md +++ b/docs/examples/1.4.x/server-php/examples/users/list-identities.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/list-logs.md b/docs/examples/1.4.x/server-php/examples/users/list-logs.md index e6287563c2d..d5166c0b668 100644 --- a/docs/examples/1.4.x/server-php/examples/users/list-logs.md +++ b/docs/examples/1.4.x/server-php/examples/users/list-logs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/list-memberships.md b/docs/examples/1.4.x/server-php/examples/users/list-memberships.md index 039216bc1ec..84ebf8e8a13 100644 --- a/docs/examples/1.4.x/server-php/examples/users/list-memberships.md +++ b/docs/examples/1.4.x/server-php/examples/users/list-memberships.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/list-sessions.md b/docs/examples/1.4.x/server-php/examples/users/list-sessions.md index e09b65d475c..100df65a488 100644 --- a/docs/examples/1.4.x/server-php/examples/users/list-sessions.md +++ b/docs/examples/1.4.x/server-php/examples/users/list-sessions.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/list.md b/docs/examples/1.4.x/server-php/examples/users/list.md index 8d86e863728..30929b467b7 100644 --- a/docs/examples/1.4.x/server-php/examples/users/list.md +++ b/docs/examples/1.4.x/server-php/examples/users/list.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/update-email-verification.md b/docs/examples/1.4.x/server-php/examples/users/update-email-verification.md index 67c3e12ee0b..6b0b5b0d4c2 100644 --- a/docs/examples/1.4.x/server-php/examples/users/update-email-verification.md +++ b/docs/examples/1.4.x/server-php/examples/users/update-email-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/update-email.md b/docs/examples/1.4.x/server-php/examples/users/update-email.md index c6a7412b893..fe35bf057e4 100644 --- a/docs/examples/1.4.x/server-php/examples/users/update-email.md +++ b/docs/examples/1.4.x/server-php/examples/users/update-email.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/update-labels.md b/docs/examples/1.4.x/server-php/examples/users/update-labels.md index b9f4dc30dca..1d8683c000f 100644 --- a/docs/examples/1.4.x/server-php/examples/users/update-labels.md +++ b/docs/examples/1.4.x/server-php/examples/users/update-labels.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/update-name.md b/docs/examples/1.4.x/server-php/examples/users/update-name.md index 598ef2a3a2c..838f4367586 100644 --- a/docs/examples/1.4.x/server-php/examples/users/update-name.md +++ b/docs/examples/1.4.x/server-php/examples/users/update-name.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/update-password.md b/docs/examples/1.4.x/server-php/examples/users/update-password.md index de5ec7d1320..040e9e45993 100644 --- a/docs/examples/1.4.x/server-php/examples/users/update-password.md +++ b/docs/examples/1.4.x/server-php/examples/users/update-password.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/update-phone-verification.md b/docs/examples/1.4.x/server-php/examples/users/update-phone-verification.md index e9929a547b6..e18b57274aa 100644 --- a/docs/examples/1.4.x/server-php/examples/users/update-phone-verification.md +++ b/docs/examples/1.4.x/server-php/examples/users/update-phone-verification.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/update-phone.md b/docs/examples/1.4.x/server-php/examples/users/update-phone.md index 0df380a23a9..610b3a65e75 100644 --- a/docs/examples/1.4.x/server-php/examples/users/update-phone.md +++ b/docs/examples/1.4.x/server-php/examples/users/update-phone.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/update-prefs.md b/docs/examples/1.4.x/server-php/examples/users/update-prefs.md index 9c4ebaae2b5..6aaa9451d64 100644 --- a/docs/examples/1.4.x/server-php/examples/users/update-prefs.md +++ b/docs/examples/1.4.x/server-php/examples/users/update-prefs.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-php/examples/users/update-status.md b/docs/examples/1.4.x/server-php/examples/users/update-status.md index ad3f6bde79b..dbe489de72f 100644 --- a/docs/examples/1.4.x/server-php/examples/users/update-status.md +++ b/docs/examples/1.4.x/server-php/examples/users/update-status.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.4.x/server-python/examples/account/create-phone-verification.md b/docs/examples/1.4.x/server-python/examples/account/create-phone-verification.md index 2203cdbd0ca..1e8670084d2 100644 --- a/docs/examples/1.4.x/server-python/examples/account/create-phone-verification.md +++ b/docs/examples/1.4.x/server-python/examples/account/create-phone-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/create-recovery.md b/docs/examples/1.4.x/server-python/examples/account/create-recovery.md index 21130fef6db..c86108ff4ee 100644 --- a/docs/examples/1.4.x/server-python/examples/account/create-recovery.md +++ b/docs/examples/1.4.x/server-python/examples/account/create-recovery.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/create-verification.md b/docs/examples/1.4.x/server-python/examples/account/create-verification.md index c45d0d462e0..0bc3954565b 100644 --- a/docs/examples/1.4.x/server-python/examples/account/create-verification.md +++ b/docs/examples/1.4.x/server-python/examples/account/create-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/delete-identity.md b/docs/examples/1.4.x/server-python/examples/account/delete-identity.md index bac43345859..f542ade63ae 100644 --- a/docs/examples/1.4.x/server-python/examples/account/delete-identity.md +++ b/docs/examples/1.4.x/server-python/examples/account/delete-identity.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/delete-session.md b/docs/examples/1.4.x/server-python/examples/account/delete-session.md index 8095cdc07fe..449a7861695 100644 --- a/docs/examples/1.4.x/server-python/examples/account/delete-session.md +++ b/docs/examples/1.4.x/server-python/examples/account/delete-session.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/delete-sessions.md b/docs/examples/1.4.x/server-python/examples/account/delete-sessions.md index 1728d61e67d..4f208b93a6c 100644 --- a/docs/examples/1.4.x/server-python/examples/account/delete-sessions.md +++ b/docs/examples/1.4.x/server-python/examples/account/delete-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/get-prefs.md b/docs/examples/1.4.x/server-python/examples/account/get-prefs.md index da2fd7628e8..7063f0c3aa7 100644 --- a/docs/examples/1.4.x/server-python/examples/account/get-prefs.md +++ b/docs/examples/1.4.x/server-python/examples/account/get-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/get-session.md b/docs/examples/1.4.x/server-python/examples/account/get-session.md index 25b8f038373..def8838e19a 100644 --- a/docs/examples/1.4.x/server-python/examples/account/get-session.md +++ b/docs/examples/1.4.x/server-python/examples/account/get-session.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/get.md b/docs/examples/1.4.x/server-python/examples/account/get.md index f75bad7769d..d84d3785836 100644 --- a/docs/examples/1.4.x/server-python/examples/account/get.md +++ b/docs/examples/1.4.x/server-python/examples/account/get.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/list-identities.md b/docs/examples/1.4.x/server-python/examples/account/list-identities.md index 3c166d1df1a..479f835b92c 100644 --- a/docs/examples/1.4.x/server-python/examples/account/list-identities.md +++ b/docs/examples/1.4.x/server-python/examples/account/list-identities.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/list-logs.md b/docs/examples/1.4.x/server-python/examples/account/list-logs.md index 65802d8b0d3..601d243dca0 100644 --- a/docs/examples/1.4.x/server-python/examples/account/list-logs.md +++ b/docs/examples/1.4.x/server-python/examples/account/list-logs.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/list-sessions.md b/docs/examples/1.4.x/server-python/examples/account/list-sessions.md index 12d5c81d923..fcdfd857e72 100644 --- a/docs/examples/1.4.x/server-python/examples/account/list-sessions.md +++ b/docs/examples/1.4.x/server-python/examples/account/list-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/update-email.md b/docs/examples/1.4.x/server-python/examples/account/update-email.md index f4a6776f725..a2e393ae4ae 100644 --- a/docs/examples/1.4.x/server-python/examples/account/update-email.md +++ b/docs/examples/1.4.x/server-python/examples/account/update-email.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/update-name.md b/docs/examples/1.4.x/server-python/examples/account/update-name.md index eb1eb6279b1..b56296cb211 100644 --- a/docs/examples/1.4.x/server-python/examples/account/update-name.md +++ b/docs/examples/1.4.x/server-python/examples/account/update-name.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/update-password.md b/docs/examples/1.4.x/server-python/examples/account/update-password.md index 955ada651d6..7881c472f3f 100644 --- a/docs/examples/1.4.x/server-python/examples/account/update-password.md +++ b/docs/examples/1.4.x/server-python/examples/account/update-password.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/update-phone-verification.md b/docs/examples/1.4.x/server-python/examples/account/update-phone-verification.md index f2a75b4de95..dcba4273c4c 100644 --- a/docs/examples/1.4.x/server-python/examples/account/update-phone-verification.md +++ b/docs/examples/1.4.x/server-python/examples/account/update-phone-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/update-phone.md b/docs/examples/1.4.x/server-python/examples/account/update-phone.md index aaee1f7eecb..0f6470619ee 100644 --- a/docs/examples/1.4.x/server-python/examples/account/update-phone.md +++ b/docs/examples/1.4.x/server-python/examples/account/update-phone.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/update-prefs.md b/docs/examples/1.4.x/server-python/examples/account/update-prefs.md index e96546b05a1..64e32cee2ab 100644 --- a/docs/examples/1.4.x/server-python/examples/account/update-prefs.md +++ b/docs/examples/1.4.x/server-python/examples/account/update-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/update-recovery.md b/docs/examples/1.4.x/server-python/examples/account/update-recovery.md index b4ea8aa89c6..2bb9b10d2c3 100644 --- a/docs/examples/1.4.x/server-python/examples/account/update-recovery.md +++ b/docs/examples/1.4.x/server-python/examples/account/update-recovery.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/update-session.md b/docs/examples/1.4.x/server-python/examples/account/update-session.md index e7234f78015..16ea0183035 100644 --- a/docs/examples/1.4.x/server-python/examples/account/update-session.md +++ b/docs/examples/1.4.x/server-python/examples/account/update-session.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/update-status.md b/docs/examples/1.4.x/server-python/examples/account/update-status.md index 5924d4d54f9..877b8743d14 100644 --- a/docs/examples/1.4.x/server-python/examples/account/update-status.md +++ b/docs/examples/1.4.x/server-python/examples/account/update-status.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/account/update-verification.md b/docs/examples/1.4.x/server-python/examples/account/update-verification.md index 9a410a54a80..e2aecaa1174 100644 --- a/docs/examples/1.4.x/server-python/examples/account/update-verification.md +++ b/docs/examples/1.4.x/server-python/examples/account/update-verification.md @@ -4,7 +4,7 @@ from appwrite.services.account import Account client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/avatars/get-browser.md b/docs/examples/1.4.x/server-python/examples/avatars/get-browser.md index 9ed56d1d4bc..e29ebcd84d7 100644 --- a/docs/examples/1.4.x/server-python/examples/avatars/get-browser.md +++ b/docs/examples/1.4.x/server-python/examples/avatars/get-browser.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/avatars/get-credit-card.md b/docs/examples/1.4.x/server-python/examples/avatars/get-credit-card.md index 9fa6b0fd1f5..3006186d811 100644 --- a/docs/examples/1.4.x/server-python/examples/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/server-python/examples/avatars/get-credit-card.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/avatars/get-favicon.md b/docs/examples/1.4.x/server-python/examples/avatars/get-favicon.md index 75b0315eae2..b860e801ce4 100644 --- a/docs/examples/1.4.x/server-python/examples/avatars/get-favicon.md +++ b/docs/examples/1.4.x/server-python/examples/avatars/get-favicon.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/avatars/get-flag.md b/docs/examples/1.4.x/server-python/examples/avatars/get-flag.md index 70d2e5f2428..055feb42821 100644 --- a/docs/examples/1.4.x/server-python/examples/avatars/get-flag.md +++ b/docs/examples/1.4.x/server-python/examples/avatars/get-flag.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/avatars/get-image.md b/docs/examples/1.4.x/server-python/examples/avatars/get-image.md index 35015d9620f..1cd0bd01641 100644 --- a/docs/examples/1.4.x/server-python/examples/avatars/get-image.md +++ b/docs/examples/1.4.x/server-python/examples/avatars/get-image.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/avatars/get-initials.md b/docs/examples/1.4.x/server-python/examples/avatars/get-initials.md index 639fa03bc91..9e7e5d2c18d 100644 --- a/docs/examples/1.4.x/server-python/examples/avatars/get-initials.md +++ b/docs/examples/1.4.x/server-python/examples/avatars/get-initials.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/avatars/get-q-r.md b/docs/examples/1.4.x/server-python/examples/avatars/get-q-r.md index 27fc8e29241..b3c3e728ab0 100644 --- a/docs/examples/1.4.x/server-python/examples/avatars/get-q-r.md +++ b/docs/examples/1.4.x/server-python/examples/avatars/get-q-r.md @@ -4,7 +4,7 @@ from appwrite.services.avatars import Avatars client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/create-boolean-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/create-boolean-attribute.md index f073d3d3b37..e0f333caabe 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/create-boolean-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/create-collection.md b/docs/examples/1.4.x/server-python/examples/databases/create-collection.md index 183c55c4486..ad704dea3d4 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/create-collection.md +++ b/docs/examples/1.4.x/server-python/examples/databases/create-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/create-datetime-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/create-datetime-attribute.md index 5c77689c991..8325de82304 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/create-datetime-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/create-document.md b/docs/examples/1.4.x/server-python/examples/databases/create-document.md index aa95de9ebd5..c712b11bdde 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/create-document.md +++ b/docs/examples/1.4.x/server-python/examples/databases/create-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/create-email-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/create-email-attribute.md index 92cdcb2a8fa..05397d6ab06 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/create-email-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/create-email-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/create-enum-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/create-enum-attribute.md index df66f128962..21e46357902 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/create-enum-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/create-float-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/create-float-attribute.md index 0bfe4248eb6..b7493dfcedb 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/create-float-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/create-float-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/create-index.md b/docs/examples/1.4.x/server-python/examples/databases/create-index.md index 78a7d3327e7..2237a7397e7 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/create-index.md +++ b/docs/examples/1.4.x/server-python/examples/databases/create-index.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/create-integer-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/create-integer-attribute.md index b3cce2bde48..b8a213bc219 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/create-integer-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/create-ip-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/create-ip-attribute.md index 967d284b9a9..85f1cd5b00e 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/create-ip-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/create-relationship-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/create-relationship-attribute.md index 4f69ecae003..041d8f20057 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/create-relationship-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/create-string-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/create-string-attribute.md index 00bbbe9ce74..1992f71e443 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/create-string-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/create-string-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/create-url-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/create-url-attribute.md index fd5b7f44e37..49e2cbf68c5 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/create-url-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/create-url-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/create.md b/docs/examples/1.4.x/server-python/examples/databases/create.md index e4a832066b1..7c1f63cb145 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/create.md +++ b/docs/examples/1.4.x/server-python/examples/databases/create.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/delete-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/delete-attribute.md index 41871b26622..7ca55adf156 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/delete-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/delete-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/delete-collection.md b/docs/examples/1.4.x/server-python/examples/databases/delete-collection.md index 998bb61fb90..af37479be2e 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/delete-collection.md +++ b/docs/examples/1.4.x/server-python/examples/databases/delete-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/delete-document.md b/docs/examples/1.4.x/server-python/examples/databases/delete-document.md index 605b087b7c2..6a3a3588c68 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/delete-document.md +++ b/docs/examples/1.4.x/server-python/examples/databases/delete-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/delete-index.md b/docs/examples/1.4.x/server-python/examples/databases/delete-index.md index a53e06c0242..5f32135c3b6 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/delete-index.md +++ b/docs/examples/1.4.x/server-python/examples/databases/delete-index.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/delete.md b/docs/examples/1.4.x/server-python/examples/databases/delete.md index 780e1451efb..594f357bbf5 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/delete.md +++ b/docs/examples/1.4.x/server-python/examples/databases/delete.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/get-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/get-attribute.md index 0a6105272ad..b855fbc6003 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/get-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/get-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/get-collection.md b/docs/examples/1.4.x/server-python/examples/databases/get-collection.md index 90f57a366c6..5d176dd2c5d 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/get-collection.md +++ b/docs/examples/1.4.x/server-python/examples/databases/get-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/get-document.md b/docs/examples/1.4.x/server-python/examples/databases/get-document.md index 708538418e3..7a11da3c273 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/get-document.md +++ b/docs/examples/1.4.x/server-python/examples/databases/get-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/get-index.md b/docs/examples/1.4.x/server-python/examples/databases/get-index.md index 3213c666604..6c376c69071 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/get-index.md +++ b/docs/examples/1.4.x/server-python/examples/databases/get-index.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/get.md b/docs/examples/1.4.x/server-python/examples/databases/get.md index 93a46b3fa4d..c8906fc9aff 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/get.md +++ b/docs/examples/1.4.x/server-python/examples/databases/get.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/list-attributes.md b/docs/examples/1.4.x/server-python/examples/databases/list-attributes.md index 632202c8947..3c173668a4a 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/list-attributes.md +++ b/docs/examples/1.4.x/server-python/examples/databases/list-attributes.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/list-collections.md b/docs/examples/1.4.x/server-python/examples/databases/list-collections.md index d0c98dad97e..197229e3081 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/list-collections.md +++ b/docs/examples/1.4.x/server-python/examples/databases/list-collections.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/list-documents.md b/docs/examples/1.4.x/server-python/examples/databases/list-documents.md index 5eb03b2658f..01cc594d98a 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/list-documents.md +++ b/docs/examples/1.4.x/server-python/examples/databases/list-documents.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/list-indexes.md b/docs/examples/1.4.x/server-python/examples/databases/list-indexes.md index b4224be62c8..f65545454b2 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/list-indexes.md +++ b/docs/examples/1.4.x/server-python/examples/databases/list-indexes.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/list.md b/docs/examples/1.4.x/server-python/examples/databases/list.md index 3aa6839d20e..117119439b7 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/list.md +++ b/docs/examples/1.4.x/server-python/examples/databases/list.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/update-boolean-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/update-boolean-attribute.md index e6a7d55fb6b..e9cd95c7830 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/update-boolean-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/update-collection.md b/docs/examples/1.4.x/server-python/examples/databases/update-collection.md index 4a38aab4d49..49c5c8154bf 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/update-collection.md +++ b/docs/examples/1.4.x/server-python/examples/databases/update-collection.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/update-datetime-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/update-datetime-attribute.md index 5c792573ae6..de0ac103e97 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/update-datetime-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/update-document.md b/docs/examples/1.4.x/server-python/examples/databases/update-document.md index c768c5403c3..fc6645bf9f4 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/update-document.md +++ b/docs/examples/1.4.x/server-python/examples/databases/update-document.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/update-email-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/update-email-attribute.md index 8148b012fd3..b67549292b6 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/update-email-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/update-email-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/update-enum-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/update-enum-attribute.md index 65ef26f274f..79c491ecbe8 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/update-enum-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/update-float-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/update-float-attribute.md index efbf1ad04fe..9c34b6f8f27 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/update-float-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/update-float-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/update-integer-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/update-integer-attribute.md index 61c74b86751..8ab1cd1d28a 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/update-integer-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/update-ip-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/update-ip-attribute.md index 7d5a35d749d..4bd7899ad81 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/update-ip-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/update-relationship-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/update-relationship-attribute.md index 7c426a61e3a..cc3b6207341 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/update-relationship-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/update-string-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/update-string-attribute.md index 2ee236e6243..f59ee07ad98 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/update-string-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/update-string-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/update-url-attribute.md b/docs/examples/1.4.x/server-python/examples/databases/update-url-attribute.md index 119c787d2d8..a0b2e04b457 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/update-url-attribute.md +++ b/docs/examples/1.4.x/server-python/examples/databases/update-url-attribute.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/databases/update.md b/docs/examples/1.4.x/server-python/examples/databases/update.md index d46692ece42..9e32a878888 100644 --- a/docs/examples/1.4.x/server-python/examples/databases/update.md +++ b/docs/examples/1.4.x/server-python/examples/databases/update.md @@ -4,7 +4,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/create-build.md b/docs/examples/1.4.x/server-python/examples/functions/create-build.md index 76888f8b16d..398973ce571 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/create-build.md +++ b/docs/examples/1.4.x/server-python/examples/functions/create-build.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/create-deployment.md b/docs/examples/1.4.x/server-python/examples/functions/create-deployment.md index 1ee1be05ed7..035a643ae5b 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/create-deployment.md +++ b/docs/examples/1.4.x/server-python/examples/functions/create-deployment.md @@ -5,7 +5,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/create-execution.md b/docs/examples/1.4.x/server-python/examples/functions/create-execution.md index 7c045225b3e..b4476dae982 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/create-execution.md +++ b/docs/examples/1.4.x/server-python/examples/functions/create-execution.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/create-variable.md b/docs/examples/1.4.x/server-python/examples/functions/create-variable.md index f33ed08a717..c24fb5c825b 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/create-variable.md +++ b/docs/examples/1.4.x/server-python/examples/functions/create-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/create.md b/docs/examples/1.4.x/server-python/examples/functions/create.md index bf663969610..ddb94da7603 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/create.md +++ b/docs/examples/1.4.x/server-python/examples/functions/create.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/delete-deployment.md b/docs/examples/1.4.x/server-python/examples/functions/delete-deployment.md index 42d526eca99..2d186c10c6e 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/delete-deployment.md +++ b/docs/examples/1.4.x/server-python/examples/functions/delete-deployment.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/delete-variable.md b/docs/examples/1.4.x/server-python/examples/functions/delete-variable.md index cae0f2df9fd..d527ff09ce4 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/delete-variable.md +++ b/docs/examples/1.4.x/server-python/examples/functions/delete-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/delete.md b/docs/examples/1.4.x/server-python/examples/functions/delete.md index e89213ec7ab..585e2f9b105 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/delete.md +++ b/docs/examples/1.4.x/server-python/examples/functions/delete.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/download-deployment.md b/docs/examples/1.4.x/server-python/examples/functions/download-deployment.md index ee51f679366..9534735d6d5 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/download-deployment.md +++ b/docs/examples/1.4.x/server-python/examples/functions/download-deployment.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/get-deployment.md b/docs/examples/1.4.x/server-python/examples/functions/get-deployment.md index 6257b59d2e3..ccb30ccbb5b 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/get-deployment.md +++ b/docs/examples/1.4.x/server-python/examples/functions/get-deployment.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/get-execution.md b/docs/examples/1.4.x/server-python/examples/functions/get-execution.md index f0e4f0dc67a..110a7606667 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/get-execution.md +++ b/docs/examples/1.4.x/server-python/examples/functions/get-execution.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/get-variable.md b/docs/examples/1.4.x/server-python/examples/functions/get-variable.md index 4e71bff24fd..d6c445dc3f6 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/get-variable.md +++ b/docs/examples/1.4.x/server-python/examples/functions/get-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/get.md b/docs/examples/1.4.x/server-python/examples/functions/get.md index 30e1d5959af..4b1bbcf72fb 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/get.md +++ b/docs/examples/1.4.x/server-python/examples/functions/get.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/list-deployments.md b/docs/examples/1.4.x/server-python/examples/functions/list-deployments.md index d1797a18b3d..9f1eeef9780 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/list-deployments.md +++ b/docs/examples/1.4.x/server-python/examples/functions/list-deployments.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/list-executions.md b/docs/examples/1.4.x/server-python/examples/functions/list-executions.md index d70f004478b..0491ff2b3dd 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/list-executions.md +++ b/docs/examples/1.4.x/server-python/examples/functions/list-executions.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/list-runtimes.md b/docs/examples/1.4.x/server-python/examples/functions/list-runtimes.md index 19b85e23697..6255ce39865 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/list-runtimes.md +++ b/docs/examples/1.4.x/server-python/examples/functions/list-runtimes.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/list-variables.md b/docs/examples/1.4.x/server-python/examples/functions/list-variables.md index 9a72bba9f81..bdaa123e0eb 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/list-variables.md +++ b/docs/examples/1.4.x/server-python/examples/functions/list-variables.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/list.md b/docs/examples/1.4.x/server-python/examples/functions/list.md index b8442e5adee..6d05cc952ce 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/list.md +++ b/docs/examples/1.4.x/server-python/examples/functions/list.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/update-deployment.md b/docs/examples/1.4.x/server-python/examples/functions/update-deployment.md index 87dd09710fc..bb5eb869f90 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/update-deployment.md +++ b/docs/examples/1.4.x/server-python/examples/functions/update-deployment.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/update-variable.md b/docs/examples/1.4.x/server-python/examples/functions/update-variable.md index ab5b43abce1..4c98e068073 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/update-variable.md +++ b/docs/examples/1.4.x/server-python/examples/functions/update-variable.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/functions/update.md b/docs/examples/1.4.x/server-python/examples/functions/update.md index 3960054f3af..a03fd2c02e9 100644 --- a/docs/examples/1.4.x/server-python/examples/functions/update.md +++ b/docs/examples/1.4.x/server-python/examples/functions/update.md @@ -4,7 +4,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/graphql/mutation.md b/docs/examples/1.4.x/server-python/examples/graphql/mutation.md index 24226a5a013..9f43d0e5d1c 100644 --- a/docs/examples/1.4.x/server-python/examples/graphql/mutation.md +++ b/docs/examples/1.4.x/server-python/examples/graphql/mutation.md @@ -4,7 +4,7 @@ from appwrite.services.graphql import Graphql client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/graphql/query.md b/docs/examples/1.4.x/server-python/examples/graphql/query.md index 8e1597c7596..a7315f8d317 100644 --- a/docs/examples/1.4.x/server-python/examples/graphql/query.md +++ b/docs/examples/1.4.x/server-python/examples/graphql/query.md @@ -4,7 +4,7 @@ from appwrite.services.graphql import Graphql client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-antivirus.md b/docs/examples/1.4.x/server-python/examples/health/get-antivirus.md index fbfaf0e52ea..28372001042 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-antivirus.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-antivirus.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-cache.md b/docs/examples/1.4.x/server-python/examples/health/get-cache.md index 40bc01000b1..44ac2fa9406 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-cache.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-cache.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-d-b.md b/docs/examples/1.4.x/server-python/examples/health/get-d-b.md index 803dd73bd3f..7362e839169 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-d-b.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-d-b.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-pub-sub.md b/docs/examples/1.4.x/server-python/examples/health/get-pub-sub.md index 43ada69a0f0..72fe297e6e0 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-pub-sub.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-pub-sub.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-queue-builds.md b/docs/examples/1.4.x/server-python/examples/health/get-queue-builds.md index 3170559e159..b87480b2fea 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-queue-builds.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-queue-builds.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-queue-certificates.md b/docs/examples/1.4.x/server-python/examples/health/get-queue-certificates.md index 4fb0266d117..fed14c831a0 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-queue-certificates.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-queue-certificates.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-queue-databases.md b/docs/examples/1.4.x/server-python/examples/health/get-queue-databases.md index 4faff969057..aad59d06d7c 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-queue-databases.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-queue-databases.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-queue-deletes.md b/docs/examples/1.4.x/server-python/examples/health/get-queue-deletes.md index c84b9be8286..b9917720a0f 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-queue-deletes.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-queue-deletes.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-queue-functions.md b/docs/examples/1.4.x/server-python/examples/health/get-queue-functions.md index 92e4e2021df..96700cc2fd6 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-queue-functions.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-queue-functions.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-queue-logs.md b/docs/examples/1.4.x/server-python/examples/health/get-queue-logs.md index b798ad73323..985309b9ffb 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-queue-logs.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-queue-logs.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-queue-mails.md b/docs/examples/1.4.x/server-python/examples/health/get-queue-mails.md index cc2c3bc85db..f71e209a6b6 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-queue-mails.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-queue-mails.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-queue-messaging.md b/docs/examples/1.4.x/server-python/examples/health/get-queue-messaging.md index 95200f36a32..62001189892 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-queue-messaging.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-queue-messaging.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-queue-migrations.md b/docs/examples/1.4.x/server-python/examples/health/get-queue-migrations.md index 1c916637a98..0b47ea048e1 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-queue-migrations.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-queue-migrations.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-queue-webhooks.md b/docs/examples/1.4.x/server-python/examples/health/get-queue-webhooks.md index 8406de1ff8f..62da17c248b 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-queue-webhooks.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-queue.md b/docs/examples/1.4.x/server-python/examples/health/get-queue.md index 5a355881638..03561e6de22 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-queue.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-queue.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-storage-local.md b/docs/examples/1.4.x/server-python/examples/health/get-storage-local.md index bb2533e27f7..297a6a5714b 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-storage-local.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-storage-local.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get-time.md b/docs/examples/1.4.x/server-python/examples/health/get-time.md index 9fe313dd5f3..0034705ed9c 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get-time.md +++ b/docs/examples/1.4.x/server-python/examples/health/get-time.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/health/get.md b/docs/examples/1.4.x/server-python/examples/health/get.md index d3ff5943879..118be474f30 100644 --- a/docs/examples/1.4.x/server-python/examples/health/get.md +++ b/docs/examples/1.4.x/server-python/examples/health/get.md @@ -4,7 +4,7 @@ from appwrite.services.health import Health client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/locale/get.md b/docs/examples/1.4.x/server-python/examples/locale/get.md index 06b04f2f631..de81e967db7 100644 --- a/docs/examples/1.4.x/server-python/examples/locale/get.md +++ b/docs/examples/1.4.x/server-python/examples/locale/get.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/locale/list-codes.md b/docs/examples/1.4.x/server-python/examples/locale/list-codes.md index 3dc6cf8327e..9c342603f0e 100644 --- a/docs/examples/1.4.x/server-python/examples/locale/list-codes.md +++ b/docs/examples/1.4.x/server-python/examples/locale/list-codes.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/locale/list-continents.md b/docs/examples/1.4.x/server-python/examples/locale/list-continents.md index ba9c94f8a97..bcd150f5cd1 100644 --- a/docs/examples/1.4.x/server-python/examples/locale/list-continents.md +++ b/docs/examples/1.4.x/server-python/examples/locale/list-continents.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/locale/list-countries-e-u.md b/docs/examples/1.4.x/server-python/examples/locale/list-countries-e-u.md index ea4c43cab6e..2dc40cd4877 100644 --- a/docs/examples/1.4.x/server-python/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/server-python/examples/locale/list-countries-e-u.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/locale/list-countries-phones.md b/docs/examples/1.4.x/server-python/examples/locale/list-countries-phones.md index 5a4cafe5200..b1b0773b3f5 100644 --- a/docs/examples/1.4.x/server-python/examples/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/server-python/examples/locale/list-countries-phones.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/locale/list-countries.md b/docs/examples/1.4.x/server-python/examples/locale/list-countries.md index f8ec83c83ec..278a039bbde 100644 --- a/docs/examples/1.4.x/server-python/examples/locale/list-countries.md +++ b/docs/examples/1.4.x/server-python/examples/locale/list-countries.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/locale/list-currencies.md b/docs/examples/1.4.x/server-python/examples/locale/list-currencies.md index 347e81c54c3..077d7c393c3 100644 --- a/docs/examples/1.4.x/server-python/examples/locale/list-currencies.md +++ b/docs/examples/1.4.x/server-python/examples/locale/list-currencies.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/locale/list-languages.md b/docs/examples/1.4.x/server-python/examples/locale/list-languages.md index ce50a6efe77..9cc7c8f9758 100644 --- a/docs/examples/1.4.x/server-python/examples/locale/list-languages.md +++ b/docs/examples/1.4.x/server-python/examples/locale/list-languages.md @@ -4,7 +4,7 @@ from appwrite.services.locale import Locale client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/storage/create-bucket.md b/docs/examples/1.4.x/server-python/examples/storage/create-bucket.md index 72ffdccbd83..1955987f172 100644 --- a/docs/examples/1.4.x/server-python/examples/storage/create-bucket.md +++ b/docs/examples/1.4.x/server-python/examples/storage/create-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/storage/create-file.md b/docs/examples/1.4.x/server-python/examples/storage/create-file.md index b469b5bdd59..250f469290e 100644 --- a/docs/examples/1.4.x/server-python/examples/storage/create-file.md +++ b/docs/examples/1.4.x/server-python/examples/storage/create-file.md @@ -5,7 +5,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/storage/delete-bucket.md b/docs/examples/1.4.x/server-python/examples/storage/delete-bucket.md index 60dc1074fd0..c6c93435d02 100644 --- a/docs/examples/1.4.x/server-python/examples/storage/delete-bucket.md +++ b/docs/examples/1.4.x/server-python/examples/storage/delete-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/storage/delete-file.md b/docs/examples/1.4.x/server-python/examples/storage/delete-file.md index 9bed0af7846..accf6697bfc 100644 --- a/docs/examples/1.4.x/server-python/examples/storage/delete-file.md +++ b/docs/examples/1.4.x/server-python/examples/storage/delete-file.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/storage/get-bucket.md b/docs/examples/1.4.x/server-python/examples/storage/get-bucket.md index 7ea64f22aa8..4fd4e70b31e 100644 --- a/docs/examples/1.4.x/server-python/examples/storage/get-bucket.md +++ b/docs/examples/1.4.x/server-python/examples/storage/get-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/storage/get-file-download.md b/docs/examples/1.4.x/server-python/examples/storage/get-file-download.md index e9f5cce8249..ef57f109552 100644 --- a/docs/examples/1.4.x/server-python/examples/storage/get-file-download.md +++ b/docs/examples/1.4.x/server-python/examples/storage/get-file-download.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/storage/get-file-preview.md b/docs/examples/1.4.x/server-python/examples/storage/get-file-preview.md index 4e12291f136..c7b90b96558 100644 --- a/docs/examples/1.4.x/server-python/examples/storage/get-file-preview.md +++ b/docs/examples/1.4.x/server-python/examples/storage/get-file-preview.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/storage/get-file-view.md b/docs/examples/1.4.x/server-python/examples/storage/get-file-view.md index 01cbfafd260..bd8efc6e45b 100644 --- a/docs/examples/1.4.x/server-python/examples/storage/get-file-view.md +++ b/docs/examples/1.4.x/server-python/examples/storage/get-file-view.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/storage/get-file.md b/docs/examples/1.4.x/server-python/examples/storage/get-file.md index f83ed8aa619..e0013ba120a 100644 --- a/docs/examples/1.4.x/server-python/examples/storage/get-file.md +++ b/docs/examples/1.4.x/server-python/examples/storage/get-file.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/storage/list-buckets.md b/docs/examples/1.4.x/server-python/examples/storage/list-buckets.md index 204fd9598c2..450f876d92f 100644 --- a/docs/examples/1.4.x/server-python/examples/storage/list-buckets.md +++ b/docs/examples/1.4.x/server-python/examples/storage/list-buckets.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/storage/list-files.md b/docs/examples/1.4.x/server-python/examples/storage/list-files.md index 63101e215ec..05df2d00564 100644 --- a/docs/examples/1.4.x/server-python/examples/storage/list-files.md +++ b/docs/examples/1.4.x/server-python/examples/storage/list-files.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/storage/update-bucket.md b/docs/examples/1.4.x/server-python/examples/storage/update-bucket.md index fb1b76b222a..f47bfa3d0e8 100644 --- a/docs/examples/1.4.x/server-python/examples/storage/update-bucket.md +++ b/docs/examples/1.4.x/server-python/examples/storage/update-bucket.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/storage/update-file.md b/docs/examples/1.4.x/server-python/examples/storage/update-file.md index 24a92e36c62..3208e44d2f0 100644 --- a/docs/examples/1.4.x/server-python/examples/storage/update-file.md +++ b/docs/examples/1.4.x/server-python/examples/storage/update-file.md @@ -4,7 +4,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/teams/create-membership.md b/docs/examples/1.4.x/server-python/examples/teams/create-membership.md index cde8455a969..0c637ef99a7 100644 --- a/docs/examples/1.4.x/server-python/examples/teams/create-membership.md +++ b/docs/examples/1.4.x/server-python/examples/teams/create-membership.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/teams/create.md b/docs/examples/1.4.x/server-python/examples/teams/create.md index c69012359f0..87e76cb0625 100644 --- a/docs/examples/1.4.x/server-python/examples/teams/create.md +++ b/docs/examples/1.4.x/server-python/examples/teams/create.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/teams/delete-membership.md b/docs/examples/1.4.x/server-python/examples/teams/delete-membership.md index f8d875986fe..7f5e4055d1f 100644 --- a/docs/examples/1.4.x/server-python/examples/teams/delete-membership.md +++ b/docs/examples/1.4.x/server-python/examples/teams/delete-membership.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/teams/delete.md b/docs/examples/1.4.x/server-python/examples/teams/delete.md index 4fc0fa44cca..651b861f03e 100644 --- a/docs/examples/1.4.x/server-python/examples/teams/delete.md +++ b/docs/examples/1.4.x/server-python/examples/teams/delete.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/teams/get-membership.md b/docs/examples/1.4.x/server-python/examples/teams/get-membership.md index e9c62ae3e34..3c351b16f78 100644 --- a/docs/examples/1.4.x/server-python/examples/teams/get-membership.md +++ b/docs/examples/1.4.x/server-python/examples/teams/get-membership.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/teams/get-prefs.md b/docs/examples/1.4.x/server-python/examples/teams/get-prefs.md index 40909fa7d88..b2b10fbbb21 100644 --- a/docs/examples/1.4.x/server-python/examples/teams/get-prefs.md +++ b/docs/examples/1.4.x/server-python/examples/teams/get-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/teams/get.md b/docs/examples/1.4.x/server-python/examples/teams/get.md index fdca2fc28fd..32100ad47f3 100644 --- a/docs/examples/1.4.x/server-python/examples/teams/get.md +++ b/docs/examples/1.4.x/server-python/examples/teams/get.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/teams/list-memberships.md b/docs/examples/1.4.x/server-python/examples/teams/list-memberships.md index 63e662a7a60..5001ae3e8aa 100644 --- a/docs/examples/1.4.x/server-python/examples/teams/list-memberships.md +++ b/docs/examples/1.4.x/server-python/examples/teams/list-memberships.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/teams/list.md b/docs/examples/1.4.x/server-python/examples/teams/list.md index e60cb60dab8..5a73d327661 100644 --- a/docs/examples/1.4.x/server-python/examples/teams/list.md +++ b/docs/examples/1.4.x/server-python/examples/teams/list.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/teams/update-membership-status.md b/docs/examples/1.4.x/server-python/examples/teams/update-membership-status.md index a6cd4cd45f5..f35f8f7792a 100644 --- a/docs/examples/1.4.x/server-python/examples/teams/update-membership-status.md +++ b/docs/examples/1.4.x/server-python/examples/teams/update-membership-status.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/teams/update-membership.md b/docs/examples/1.4.x/server-python/examples/teams/update-membership.md index 816c6ad8945..aa31d90be2e 100644 --- a/docs/examples/1.4.x/server-python/examples/teams/update-membership.md +++ b/docs/examples/1.4.x/server-python/examples/teams/update-membership.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/teams/update-name.md b/docs/examples/1.4.x/server-python/examples/teams/update-name.md index 929f4ecb489..b890196f110 100644 --- a/docs/examples/1.4.x/server-python/examples/teams/update-name.md +++ b/docs/examples/1.4.x/server-python/examples/teams/update-name.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/teams/update-prefs.md b/docs/examples/1.4.x/server-python/examples/teams/update-prefs.md index 4176c622a0b..ef5c5989f72 100644 --- a/docs/examples/1.4.x/server-python/examples/teams/update-prefs.md +++ b/docs/examples/1.4.x/server-python/examples/teams/update-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.teams import Teams client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token ) diff --git a/docs/examples/1.4.x/server-python/examples/users/create-argon2user.md b/docs/examples/1.4.x/server-python/examples/users/create-argon2user.md index be1e8cef36c..63149881324 100644 --- a/docs/examples/1.4.x/server-python/examples/users/create-argon2user.md +++ b/docs/examples/1.4.x/server-python/examples/users/create-argon2user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/create-bcrypt-user.md b/docs/examples/1.4.x/server-python/examples/users/create-bcrypt-user.md index 77c9918879c..32632b9c1d4 100644 --- a/docs/examples/1.4.x/server-python/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.4.x/server-python/examples/users/create-bcrypt-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/create-m-d5user.md b/docs/examples/1.4.x/server-python/examples/users/create-m-d5user.md index f3ab3f84183..d2ecc0cc0b6 100644 --- a/docs/examples/1.4.x/server-python/examples/users/create-m-d5user.md +++ b/docs/examples/1.4.x/server-python/examples/users/create-m-d5user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/create-p-h-pass-user.md b/docs/examples/1.4.x/server-python/examples/users/create-p-h-pass-user.md index e715f47c145..7f4c6bcfd68 100644 --- a/docs/examples/1.4.x/server-python/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.4.x/server-python/examples/users/create-p-h-pass-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/create-s-h-a-user.md b/docs/examples/1.4.x/server-python/examples/users/create-s-h-a-user.md index 2a2db5a6736..17e4209ae78 100644 --- a/docs/examples/1.4.x/server-python/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.4.x/server-python/examples/users/create-s-h-a-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/create-scrypt-modified-user.md b/docs/examples/1.4.x/server-python/examples/users/create-scrypt-modified-user.md index 0b42e98dc71..64b54170aea 100644 --- a/docs/examples/1.4.x/server-python/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.4.x/server-python/examples/users/create-scrypt-modified-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/create-scrypt-user.md b/docs/examples/1.4.x/server-python/examples/users/create-scrypt-user.md index b4456230183..9a934d5caef 100644 --- a/docs/examples/1.4.x/server-python/examples/users/create-scrypt-user.md +++ b/docs/examples/1.4.x/server-python/examples/users/create-scrypt-user.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/create.md b/docs/examples/1.4.x/server-python/examples/users/create.md index 05249c08eae..657449e3b1e 100644 --- a/docs/examples/1.4.x/server-python/examples/users/create.md +++ b/docs/examples/1.4.x/server-python/examples/users/create.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/delete-identity.md b/docs/examples/1.4.x/server-python/examples/users/delete-identity.md index d1038248ab8..c50d877ab1d 100644 --- a/docs/examples/1.4.x/server-python/examples/users/delete-identity.md +++ b/docs/examples/1.4.x/server-python/examples/users/delete-identity.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/delete-session.md b/docs/examples/1.4.x/server-python/examples/users/delete-session.md index 26b041db1d4..baba61e58b3 100644 --- a/docs/examples/1.4.x/server-python/examples/users/delete-session.md +++ b/docs/examples/1.4.x/server-python/examples/users/delete-session.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/delete-sessions.md b/docs/examples/1.4.x/server-python/examples/users/delete-sessions.md index dabe4f627d4..0c7f38ba8e4 100644 --- a/docs/examples/1.4.x/server-python/examples/users/delete-sessions.md +++ b/docs/examples/1.4.x/server-python/examples/users/delete-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/delete.md b/docs/examples/1.4.x/server-python/examples/users/delete.md index 7fdc77576b9..4a21cab6fd3 100644 --- a/docs/examples/1.4.x/server-python/examples/users/delete.md +++ b/docs/examples/1.4.x/server-python/examples/users/delete.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/get-prefs.md b/docs/examples/1.4.x/server-python/examples/users/get-prefs.md index 2bbaa88c59a..bf325a4fda8 100644 --- a/docs/examples/1.4.x/server-python/examples/users/get-prefs.md +++ b/docs/examples/1.4.x/server-python/examples/users/get-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/get.md b/docs/examples/1.4.x/server-python/examples/users/get.md index 463957d3941..7491d3db17e 100644 --- a/docs/examples/1.4.x/server-python/examples/users/get.md +++ b/docs/examples/1.4.x/server-python/examples/users/get.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/list-identities.md b/docs/examples/1.4.x/server-python/examples/users/list-identities.md index 0addd3ec8a2..283c8a12311 100644 --- a/docs/examples/1.4.x/server-python/examples/users/list-identities.md +++ b/docs/examples/1.4.x/server-python/examples/users/list-identities.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/list-logs.md b/docs/examples/1.4.x/server-python/examples/users/list-logs.md index ca3a5eb8150..84dc775e04a 100644 --- a/docs/examples/1.4.x/server-python/examples/users/list-logs.md +++ b/docs/examples/1.4.x/server-python/examples/users/list-logs.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/list-memberships.md b/docs/examples/1.4.x/server-python/examples/users/list-memberships.md index 0dfb97afce7..d091789b8bc 100644 --- a/docs/examples/1.4.x/server-python/examples/users/list-memberships.md +++ b/docs/examples/1.4.x/server-python/examples/users/list-memberships.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/list-sessions.md b/docs/examples/1.4.x/server-python/examples/users/list-sessions.md index 5f8fbd68ea7..75e3383a141 100644 --- a/docs/examples/1.4.x/server-python/examples/users/list-sessions.md +++ b/docs/examples/1.4.x/server-python/examples/users/list-sessions.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/list.md b/docs/examples/1.4.x/server-python/examples/users/list.md index baaf42c5745..1f82be4b740 100644 --- a/docs/examples/1.4.x/server-python/examples/users/list.md +++ b/docs/examples/1.4.x/server-python/examples/users/list.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/update-email-verification.md b/docs/examples/1.4.x/server-python/examples/users/update-email-verification.md index 8be33ad97f3..2828171035c 100644 --- a/docs/examples/1.4.x/server-python/examples/users/update-email-verification.md +++ b/docs/examples/1.4.x/server-python/examples/users/update-email-verification.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/update-email.md b/docs/examples/1.4.x/server-python/examples/users/update-email.md index 4899bd39362..370fedf8c46 100644 --- a/docs/examples/1.4.x/server-python/examples/users/update-email.md +++ b/docs/examples/1.4.x/server-python/examples/users/update-email.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/update-labels.md b/docs/examples/1.4.x/server-python/examples/users/update-labels.md index b2d4c2dd01b..67e1371cfc3 100644 --- a/docs/examples/1.4.x/server-python/examples/users/update-labels.md +++ b/docs/examples/1.4.x/server-python/examples/users/update-labels.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/update-name.md b/docs/examples/1.4.x/server-python/examples/users/update-name.md index 66bb6b29204..e8411d203b0 100644 --- a/docs/examples/1.4.x/server-python/examples/users/update-name.md +++ b/docs/examples/1.4.x/server-python/examples/users/update-name.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/update-password.md b/docs/examples/1.4.x/server-python/examples/users/update-password.md index e79f1255b81..548768b400d 100644 --- a/docs/examples/1.4.x/server-python/examples/users/update-password.md +++ b/docs/examples/1.4.x/server-python/examples/users/update-password.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/update-phone-verification.md b/docs/examples/1.4.x/server-python/examples/users/update-phone-verification.md index e42317ca30b..e2d69ef2fc0 100644 --- a/docs/examples/1.4.x/server-python/examples/users/update-phone-verification.md +++ b/docs/examples/1.4.x/server-python/examples/users/update-phone-verification.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/update-phone.md b/docs/examples/1.4.x/server-python/examples/users/update-phone.md index 6df39fc9940..b6165469e8a 100644 --- a/docs/examples/1.4.x/server-python/examples/users/update-phone.md +++ b/docs/examples/1.4.x/server-python/examples/users/update-phone.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/update-prefs.md b/docs/examples/1.4.x/server-python/examples/users/update-prefs.md index 53d1e524e20..432b9da023a 100644 --- a/docs/examples/1.4.x/server-python/examples/users/update-prefs.md +++ b/docs/examples/1.4.x/server-python/examples/users/update-prefs.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-python/examples/users/update-status.md b/docs/examples/1.4.x/server-python/examples/users/update-status.md index 6d1577d4014..2afab7539fe 100644 --- a/docs/examples/1.4.x/server-python/examples/users/update-status.md +++ b/docs/examples/1.4.x/server-python/examples/users/update-status.md @@ -4,7 +4,7 @@ from appwrite.services.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.4.x/server-ruby/examples/account/create-phone-verification.md b/docs/examples/1.4.x/server-ruby/examples/account/create-phone-verification.md index 60e88d38ebf..54f287c24de 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/create-phone-verification.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/create-phone-verification.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/create-recovery.md b/docs/examples/1.4.x/server-ruby/examples/account/create-recovery.md index 5bc3e8166b9..f6f5fbf80ae 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/create-recovery.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/create-recovery.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/create-verification.md b/docs/examples/1.4.x/server-ruby/examples/account/create-verification.md index 2693bb6b1e1..5dcb637749c 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/create-verification.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/create-verification.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/delete-identity.md b/docs/examples/1.4.x/server-ruby/examples/account/delete-identity.md index 0aff3bfeaa6..c3164123f75 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/delete-identity.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/delete-identity.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/delete-session.md b/docs/examples/1.4.x/server-ruby/examples/account/delete-session.md index 89589c0763e..f3b25e72325 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/delete-session.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/delete-session.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/delete-sessions.md b/docs/examples/1.4.x/server-ruby/examples/account/delete-sessions.md index a1a6a2c14a1..46f18d9a675 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/delete-sessions.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/delete-sessions.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/get-prefs.md b/docs/examples/1.4.x/server-ruby/examples/account/get-prefs.md index d2f684e3f01..e13c47b2f54 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/get-prefs.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/get-prefs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/get-session.md b/docs/examples/1.4.x/server-ruby/examples/account/get-session.md index 12d048abef4..1b331e10aa9 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/get-session.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/get-session.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/get.md b/docs/examples/1.4.x/server-ruby/examples/account/get.md index 29ca6207913..72cf8b90265 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/get.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/get.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/list-identities.md b/docs/examples/1.4.x/server-ruby/examples/account/list-identities.md index dec816d9914..18af2b1a1d8 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/list-identities.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/list-identities.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/list-logs.md b/docs/examples/1.4.x/server-ruby/examples/account/list-logs.md index 874ea7e4438..01cdd0e7670 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/list-logs.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/list-logs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/list-sessions.md b/docs/examples/1.4.x/server-ruby/examples/account/list-sessions.md index 961142ebc29..8d08ef3e1e7 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/list-sessions.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/list-sessions.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/update-email.md b/docs/examples/1.4.x/server-ruby/examples/account/update-email.md index c9088d0ffc3..55acbc15db6 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/update-email.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/update-email.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/update-name.md b/docs/examples/1.4.x/server-ruby/examples/account/update-name.md index e75e9a1f074..455cf8048ac 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/update-name.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/update-name.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/update-password.md b/docs/examples/1.4.x/server-ruby/examples/account/update-password.md index c453a12b46d..b18cf533913 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/update-password.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/update-password.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/update-phone-verification.md b/docs/examples/1.4.x/server-ruby/examples/account/update-phone-verification.md index 9a38320e7da..58f5e29e231 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/update-phone-verification.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/update-phone-verification.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/update-phone.md b/docs/examples/1.4.x/server-ruby/examples/account/update-phone.md index 81bbb322d09..5f81881006d 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/update-phone.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/update-phone.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/update-prefs.md b/docs/examples/1.4.x/server-ruby/examples/account/update-prefs.md index 4a379d9bf05..bfaf7ad8850 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/update-prefs.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/update-prefs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/update-recovery.md b/docs/examples/1.4.x/server-ruby/examples/account/update-recovery.md index bbedfa17421..4202bca4c01 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/update-recovery.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/update-recovery.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/update-session.md b/docs/examples/1.4.x/server-ruby/examples/account/update-session.md index 724251e85ae..032c95d8d7d 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/update-session.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/update-session.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/update-status.md b/docs/examples/1.4.x/server-ruby/examples/account/update-status.md index 5f3bb376103..520981db91c 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/update-status.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/update-status.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/account/update-verification.md b/docs/examples/1.4.x/server-ruby/examples/account/update-verification.md index 416ab5184df..92297e79ba8 100644 --- a/docs/examples/1.4.x/server-ruby/examples/account/update-verification.md +++ b/docs/examples/1.4.x/server-ruby/examples/account/update-verification.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/avatars/get-browser.md b/docs/examples/1.4.x/server-ruby/examples/avatars/get-browser.md index 969eb5bb6c9..38786cf1c30 100644 --- a/docs/examples/1.4.x/server-ruby/examples/avatars/get-browser.md +++ b/docs/examples/1.4.x/server-ruby/examples/avatars/get-browser.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/avatars/get-credit-card.md b/docs/examples/1.4.x/server-ruby/examples/avatars/get-credit-card.md index 81a81ceeb27..c31c9e237d2 100644 --- a/docs/examples/1.4.x/server-ruby/examples/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/server-ruby/examples/avatars/get-credit-card.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/avatars/get-favicon.md b/docs/examples/1.4.x/server-ruby/examples/avatars/get-favicon.md index b1a574522aa..49683892d0e 100644 --- a/docs/examples/1.4.x/server-ruby/examples/avatars/get-favicon.md +++ b/docs/examples/1.4.x/server-ruby/examples/avatars/get-favicon.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/avatars/get-flag.md b/docs/examples/1.4.x/server-ruby/examples/avatars/get-flag.md index ed53143b2fa..0080ba09a1f 100644 --- a/docs/examples/1.4.x/server-ruby/examples/avatars/get-flag.md +++ b/docs/examples/1.4.x/server-ruby/examples/avatars/get-flag.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/avatars/get-image.md b/docs/examples/1.4.x/server-ruby/examples/avatars/get-image.md index 59fb6c36c54..7745cadb12a 100644 --- a/docs/examples/1.4.x/server-ruby/examples/avatars/get-image.md +++ b/docs/examples/1.4.x/server-ruby/examples/avatars/get-image.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/avatars/get-initials.md b/docs/examples/1.4.x/server-ruby/examples/avatars/get-initials.md index 93263baccb4..8803ac8f355 100644 --- a/docs/examples/1.4.x/server-ruby/examples/avatars/get-initials.md +++ b/docs/examples/1.4.x/server-ruby/examples/avatars/get-initials.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/avatars/get-q-r.md b/docs/examples/1.4.x/server-ruby/examples/avatars/get-q-r.md index bdaa14f8923..fdc53b1021e 100644 --- a/docs/examples/1.4.x/server-ruby/examples/avatars/get-q-r.md +++ b/docs/examples/1.4.x/server-ruby/examples/avatars/get-q-r.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/create-boolean-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/create-boolean-attribute.md index 524c01a2e30..201b3fd36bc 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/create-boolean-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/create-collection.md b/docs/examples/1.4.x/server-ruby/examples/databases/create-collection.md index 396fa2b6cc4..d48dbec7799 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/create-collection.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/create-collection.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/create-datetime-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/create-datetime-attribute.md index 7e306bf5e26..022cc4118ef 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/create-datetime-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/create-document.md b/docs/examples/1.4.x/server-ruby/examples/databases/create-document.md index e1faebd92ef..ec985cf34d2 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/create-document.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/create-document.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/create-email-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/create-email-attribute.md index c81b176ac74..73e89ffde02 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/create-email-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/create-email-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/create-enum-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/create-enum-attribute.md index 1505c9db207..2e712d045c2 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/create-enum-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/create-float-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/create-float-attribute.md index b1d7e981df3..9e3406b6e26 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/create-float-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/create-float-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/create-index.md b/docs/examples/1.4.x/server-ruby/examples/databases/create-index.md index 456e293f6e9..74df580eaf2 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/create-index.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/create-index.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/create-integer-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/create-integer-attribute.md index 55079da7c6b..4419e87ae1a 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/create-integer-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/create-ip-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/create-ip-attribute.md index c414d631d53..ce04aa21a97 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/create-ip-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/create-relationship-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/create-relationship-attribute.md index 73ca419ff8b..a4e55221dfa 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/create-relationship-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/create-string-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/create-string-attribute.md index 9027496caad..b6774761ead 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/create-string-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/create-string-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/create-url-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/create-url-attribute.md index 6c7d356e8bf..18d119a9b98 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/create-url-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/create-url-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/create.md b/docs/examples/1.4.x/server-ruby/examples/databases/create.md index 494ca1503b2..77c59ab3079 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/create.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/create.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/delete-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/delete-attribute.md index de35bb2756c..ca2bbb85a62 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/delete-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/delete-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/delete-collection.md b/docs/examples/1.4.x/server-ruby/examples/databases/delete-collection.md index 07e3a439f2a..dbbd8852781 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/delete-collection.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/delete-collection.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/delete-document.md b/docs/examples/1.4.x/server-ruby/examples/databases/delete-document.md index 0e94edd3fa5..f88b2e6bc64 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/delete-document.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/delete-document.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/delete-index.md b/docs/examples/1.4.x/server-ruby/examples/databases/delete-index.md index 63436e57002..1f5096fc362 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/delete-index.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/delete-index.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/delete.md b/docs/examples/1.4.x/server-ruby/examples/databases/delete.md index ee34774cee9..04819fac041 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/delete.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/delete.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/get-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/get-attribute.md index 585c311ff73..449cae1dbcf 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/get-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/get-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/get-collection.md b/docs/examples/1.4.x/server-ruby/examples/databases/get-collection.md index 3c53903ebbd..771edddf048 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/get-collection.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/get-collection.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/get-document.md b/docs/examples/1.4.x/server-ruby/examples/databases/get-document.md index 342812e659a..875d966bbb0 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/get-document.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/get-document.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/get-index.md b/docs/examples/1.4.x/server-ruby/examples/databases/get-index.md index c32ec0565d0..3d918807f16 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/get-index.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/get-index.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/get.md b/docs/examples/1.4.x/server-ruby/examples/databases/get.md index ab1f098b6d9..0e4943c7313 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/get.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/get.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/list-attributes.md b/docs/examples/1.4.x/server-ruby/examples/databases/list-attributes.md index 183d99d1932..2935ccbdcad 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/list-attributes.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/list-attributes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/list-collections.md b/docs/examples/1.4.x/server-ruby/examples/databases/list-collections.md index 472800a4c10..18a84038e43 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/list-collections.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/list-collections.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/list-documents.md b/docs/examples/1.4.x/server-ruby/examples/databases/list-documents.md index 920946501d0..6eda1af0eaf 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/list-documents.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/list-documents.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/list-indexes.md b/docs/examples/1.4.x/server-ruby/examples/databases/list-indexes.md index 63b1e75ec25..5509ec0ea25 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/list-indexes.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/list-indexes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/list.md b/docs/examples/1.4.x/server-ruby/examples/databases/list.md index eb810096f5e..4d10505dd60 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/list.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/list.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/update-boolean-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/update-boolean-attribute.md index 020d97689c3..ea01a100cb8 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/update-boolean-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/update-collection.md b/docs/examples/1.4.x/server-ruby/examples/databases/update-collection.md index e185aef2aec..87ce4a6e214 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/update-collection.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/update-collection.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/update-datetime-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/update-datetime-attribute.md index 2e931947d03..1ad37e80241 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/update-datetime-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/update-document.md b/docs/examples/1.4.x/server-ruby/examples/databases/update-document.md index 8b7680b85fa..38f7203c0f6 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/update-document.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/update-document.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/update-email-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/update-email-attribute.md index 3d0dc5c8a49..533be7d1d4e 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/update-email-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/update-email-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/update-enum-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/update-enum-attribute.md index feb38711252..afe0141aafa 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/update-enum-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/update-float-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/update-float-attribute.md index ec14217766e..69450c0d7dc 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/update-float-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/update-float-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/update-integer-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/update-integer-attribute.md index 976bad938df..32f3386c7a3 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/update-integer-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/update-ip-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/update-ip-attribute.md index 24d96b9d894..a072f2791db 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/update-ip-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/update-relationship-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/update-relationship-attribute.md index 345aea9deba..2b2d68bda00 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/update-relationship-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/update-string-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/update-string-attribute.md index 1801723c16e..265eeb68826 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/update-string-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/update-string-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/update-url-attribute.md b/docs/examples/1.4.x/server-ruby/examples/databases/update-url-attribute.md index 429f690ed12..92f0a51ddbb 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/update-url-attribute.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/update-url-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/databases/update.md b/docs/examples/1.4.x/server-ruby/examples/databases/update.md index f727f582d13..b866c979647 100644 --- a/docs/examples/1.4.x/server-ruby/examples/databases/update.md +++ b/docs/examples/1.4.x/server-ruby/examples/databases/update.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/create-build.md b/docs/examples/1.4.x/server-ruby/examples/functions/create-build.md index 344f92a9ec7..f5a347823e4 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/create-build.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/create-build.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/create-deployment.md b/docs/examples/1.4.x/server-ruby/examples/functions/create-deployment.md index 491a80846e6..837bc7f972a 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/create-deployment.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/create-deployment.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/create-execution.md b/docs/examples/1.4.x/server-ruby/examples/functions/create-execution.md index f14283b9d34..c9ec872b1b1 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/create-execution.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/create-execution.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/create-variable.md b/docs/examples/1.4.x/server-ruby/examples/functions/create-variable.md index ffb03ce042f..6c9ee947810 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/create-variable.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/create-variable.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/create.md b/docs/examples/1.4.x/server-ruby/examples/functions/create.md index 92ced89620a..de5058941c0 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/create.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/create.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/delete-deployment.md b/docs/examples/1.4.x/server-ruby/examples/functions/delete-deployment.md index 49004f60de6..51c68d42d76 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/delete-deployment.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/delete-deployment.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/delete-variable.md b/docs/examples/1.4.x/server-ruby/examples/functions/delete-variable.md index ef37dd5abbf..13bd8ee4d87 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/delete-variable.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/delete-variable.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/delete.md b/docs/examples/1.4.x/server-ruby/examples/functions/delete.md index 5e7d622fb72..902160ba898 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/delete.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/delete.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/download-deployment.md b/docs/examples/1.4.x/server-ruby/examples/functions/download-deployment.md index f6186a3037a..57edaba4348 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/download-deployment.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/download-deployment.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/get-deployment.md b/docs/examples/1.4.x/server-ruby/examples/functions/get-deployment.md index 35c2f011087..c3d8872f3e3 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/get-deployment.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/get-deployment.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/get-execution.md b/docs/examples/1.4.x/server-ruby/examples/functions/get-execution.md index c464fbc2fcc..f82e539987b 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/get-execution.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/get-execution.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/get-variable.md b/docs/examples/1.4.x/server-ruby/examples/functions/get-variable.md index 7559482af9f..ef581e150db 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/get-variable.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/get-variable.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/get.md b/docs/examples/1.4.x/server-ruby/examples/functions/get.md index 54d61840c90..b3c99283a4f 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/get.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/get.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/list-deployments.md b/docs/examples/1.4.x/server-ruby/examples/functions/list-deployments.md index d11e42e8d6b..976aee548fb 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/list-deployments.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/list-deployments.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/list-executions.md b/docs/examples/1.4.x/server-ruby/examples/functions/list-executions.md index 792d606f9bf..34936f3b75f 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/list-executions.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/list-executions.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/list-runtimes.md b/docs/examples/1.4.x/server-ruby/examples/functions/list-runtimes.md index a8c8fea4a31..ded2a6ffb20 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/list-runtimes.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/list-runtimes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/list-variables.md b/docs/examples/1.4.x/server-ruby/examples/functions/list-variables.md index d7d088890a9..41a0c9570ef 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/list-variables.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/list-variables.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/list.md b/docs/examples/1.4.x/server-ruby/examples/functions/list.md index 06f9ae7ae34..d65b551cc3b 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/list.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/list.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/update-deployment.md b/docs/examples/1.4.x/server-ruby/examples/functions/update-deployment.md index c768e662ec6..77c68d74fd3 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/update-deployment.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/update-deployment.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/update-variable.md b/docs/examples/1.4.x/server-ruby/examples/functions/update-variable.md index 07be591e9ed..b53ef4f96c9 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/update-variable.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/update-variable.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/functions/update.md b/docs/examples/1.4.x/server-ruby/examples/functions/update.md index f45fc1b312f..a5796514681 100644 --- a/docs/examples/1.4.x/server-ruby/examples/functions/update.md +++ b/docs/examples/1.4.x/server-ruby/examples/functions/update.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/graphql/mutation.md b/docs/examples/1.4.x/server-ruby/examples/graphql/mutation.md index ad4d03770b4..fea44506903 100644 --- a/docs/examples/1.4.x/server-ruby/examples/graphql/mutation.md +++ b/docs/examples/1.4.x/server-ruby/examples/graphql/mutation.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/graphql/query.md b/docs/examples/1.4.x/server-ruby/examples/graphql/query.md index a11b2881af7..9e3f8d23735 100644 --- a/docs/examples/1.4.x/server-ruby/examples/graphql/query.md +++ b/docs/examples/1.4.x/server-ruby/examples/graphql/query.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-antivirus.md b/docs/examples/1.4.x/server-ruby/examples/health/get-antivirus.md index fbd90494412..23dc67ec193 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-antivirus.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-antivirus.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-cache.md b/docs/examples/1.4.x/server-ruby/examples/health/get-cache.md index 3de43bf7637..0e8d905b8cd 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-cache.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-cache.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-d-b.md b/docs/examples/1.4.x/server-ruby/examples/health/get-d-b.md index 8d37dec0bc1..7c9dc9f42e9 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-d-b.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-d-b.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-pub-sub.md b/docs/examples/1.4.x/server-ruby/examples/health/get-pub-sub.md index dac20b2231d..b4e8fd65f92 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-pub-sub.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-pub-sub.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-builds.md b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-builds.md index 4fad17f30a9..837329c43a6 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-builds.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-builds.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-certificates.md b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-certificates.md index 42e0863f9a9..779dd120a46 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-certificates.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-certificates.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-databases.md b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-databases.md index 7536fc77683..344fe6a991d 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-databases.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-databases.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-deletes.md b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-deletes.md index ae96a911e48..01eab0af74b 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-deletes.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-deletes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-functions.md b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-functions.md index e350779f791..b1420564f8f 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-functions.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-functions.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-logs.md b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-logs.md index 3fd4570d2ff..136720c2c6d 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-logs.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-logs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-mails.md b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-mails.md index cb184182f5c..7cc9f2abdeb 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-mails.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-mails.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-messaging.md b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-messaging.md index 936d9fdffa4..207cb5f654c 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-messaging.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-messaging.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-migrations.md b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-migrations.md index 2d8a32b6a73..150463c1d5f 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-migrations.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-migrations.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-webhooks.md b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-webhooks.md index 0c10a192117..8be1eaea8fe 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-queue-webhooks.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-queue.md b/docs/examples/1.4.x/server-ruby/examples/health/get-queue.md index e67a90b11c1..9af2ef2f133 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-queue.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-queue.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-storage-local.md b/docs/examples/1.4.x/server-ruby/examples/health/get-storage-local.md index 4cede4153c4..da3ea231fc7 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-storage-local.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-storage-local.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get-time.md b/docs/examples/1.4.x/server-ruby/examples/health/get-time.md index 21750d7b96c..5396edbcb85 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get-time.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get-time.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/health/get.md b/docs/examples/1.4.x/server-ruby/examples/health/get.md index 395b039cec4..f8cebe49777 100644 --- a/docs/examples/1.4.x/server-ruby/examples/health/get.md +++ b/docs/examples/1.4.x/server-ruby/examples/health/get.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/locale/get.md b/docs/examples/1.4.x/server-ruby/examples/locale/get.md index 6a4ecb7df2e..1b3863df8a9 100644 --- a/docs/examples/1.4.x/server-ruby/examples/locale/get.md +++ b/docs/examples/1.4.x/server-ruby/examples/locale/get.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/locale/list-codes.md b/docs/examples/1.4.x/server-ruby/examples/locale/list-codes.md index d32be917760..6034f358aa3 100644 --- a/docs/examples/1.4.x/server-ruby/examples/locale/list-codes.md +++ b/docs/examples/1.4.x/server-ruby/examples/locale/list-codes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/locale/list-continents.md b/docs/examples/1.4.x/server-ruby/examples/locale/list-continents.md index c154e3e74a7..c97151d3a59 100644 --- a/docs/examples/1.4.x/server-ruby/examples/locale/list-continents.md +++ b/docs/examples/1.4.x/server-ruby/examples/locale/list-continents.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/locale/list-countries-e-u.md b/docs/examples/1.4.x/server-ruby/examples/locale/list-countries-e-u.md index dbbeeace38d..55182c4ccfc 100644 --- a/docs/examples/1.4.x/server-ruby/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/server-ruby/examples/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/locale/list-countries-phones.md b/docs/examples/1.4.x/server-ruby/examples/locale/list-countries-phones.md index d44f0c6a7f0..276b5f868bc 100644 --- a/docs/examples/1.4.x/server-ruby/examples/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/server-ruby/examples/locale/list-countries-phones.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/locale/list-countries.md b/docs/examples/1.4.x/server-ruby/examples/locale/list-countries.md index 0431a5444ea..56b04ea98b1 100644 --- a/docs/examples/1.4.x/server-ruby/examples/locale/list-countries.md +++ b/docs/examples/1.4.x/server-ruby/examples/locale/list-countries.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/locale/list-currencies.md b/docs/examples/1.4.x/server-ruby/examples/locale/list-currencies.md index 610b45901cd..e8fa59419e9 100644 --- a/docs/examples/1.4.x/server-ruby/examples/locale/list-currencies.md +++ b/docs/examples/1.4.x/server-ruby/examples/locale/list-currencies.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/locale/list-languages.md b/docs/examples/1.4.x/server-ruby/examples/locale/list-languages.md index dc09d481c26..154d2ff2eb0 100644 --- a/docs/examples/1.4.x/server-ruby/examples/locale/list-languages.md +++ b/docs/examples/1.4.x/server-ruby/examples/locale/list-languages.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/storage/create-bucket.md b/docs/examples/1.4.x/server-ruby/examples/storage/create-bucket.md index be1229ddd64..7c2898c61fb 100644 --- a/docs/examples/1.4.x/server-ruby/examples/storage/create-bucket.md +++ b/docs/examples/1.4.x/server-ruby/examples/storage/create-bucket.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/storage/create-file.md b/docs/examples/1.4.x/server-ruby/examples/storage/create-file.md index de207f1b64e..46f4b700b05 100644 --- a/docs/examples/1.4.x/server-ruby/examples/storage/create-file.md +++ b/docs/examples/1.4.x/server-ruby/examples/storage/create-file.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/storage/delete-bucket.md b/docs/examples/1.4.x/server-ruby/examples/storage/delete-bucket.md index bcb1b23a422..d1fea9a3149 100644 --- a/docs/examples/1.4.x/server-ruby/examples/storage/delete-bucket.md +++ b/docs/examples/1.4.x/server-ruby/examples/storage/delete-bucket.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/storage/delete-file.md b/docs/examples/1.4.x/server-ruby/examples/storage/delete-file.md index 4f0585773f8..f5a39397c54 100644 --- a/docs/examples/1.4.x/server-ruby/examples/storage/delete-file.md +++ b/docs/examples/1.4.x/server-ruby/examples/storage/delete-file.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/storage/get-bucket.md b/docs/examples/1.4.x/server-ruby/examples/storage/get-bucket.md index 1ee6843c8c3..ce635c27fca 100644 --- a/docs/examples/1.4.x/server-ruby/examples/storage/get-bucket.md +++ b/docs/examples/1.4.x/server-ruby/examples/storage/get-bucket.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/storage/get-file-download.md b/docs/examples/1.4.x/server-ruby/examples/storage/get-file-download.md index 4fe5798e6b1..af39e1e1921 100644 --- a/docs/examples/1.4.x/server-ruby/examples/storage/get-file-download.md +++ b/docs/examples/1.4.x/server-ruby/examples/storage/get-file-download.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/storage/get-file-preview.md b/docs/examples/1.4.x/server-ruby/examples/storage/get-file-preview.md index e76168c3eae..afb6a88e624 100644 --- a/docs/examples/1.4.x/server-ruby/examples/storage/get-file-preview.md +++ b/docs/examples/1.4.x/server-ruby/examples/storage/get-file-preview.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/storage/get-file-view.md b/docs/examples/1.4.x/server-ruby/examples/storage/get-file-view.md index 91dcbb59058..e484703cc12 100644 --- a/docs/examples/1.4.x/server-ruby/examples/storage/get-file-view.md +++ b/docs/examples/1.4.x/server-ruby/examples/storage/get-file-view.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/storage/get-file.md b/docs/examples/1.4.x/server-ruby/examples/storage/get-file.md index 2aea60a8daa..f1621af784d 100644 --- a/docs/examples/1.4.x/server-ruby/examples/storage/get-file.md +++ b/docs/examples/1.4.x/server-ruby/examples/storage/get-file.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/storage/list-buckets.md b/docs/examples/1.4.x/server-ruby/examples/storage/list-buckets.md index 32016332363..a92d14c291a 100644 --- a/docs/examples/1.4.x/server-ruby/examples/storage/list-buckets.md +++ b/docs/examples/1.4.x/server-ruby/examples/storage/list-buckets.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/storage/list-files.md b/docs/examples/1.4.x/server-ruby/examples/storage/list-files.md index 247426cc116..90f8db6555c 100644 --- a/docs/examples/1.4.x/server-ruby/examples/storage/list-files.md +++ b/docs/examples/1.4.x/server-ruby/examples/storage/list-files.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/storage/update-bucket.md b/docs/examples/1.4.x/server-ruby/examples/storage/update-bucket.md index 97238c1eb03..245fd161bba 100644 --- a/docs/examples/1.4.x/server-ruby/examples/storage/update-bucket.md +++ b/docs/examples/1.4.x/server-ruby/examples/storage/update-bucket.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/storage/update-file.md b/docs/examples/1.4.x/server-ruby/examples/storage/update-file.md index 2a1fe43bc9d..ce0b106a57b 100644 --- a/docs/examples/1.4.x/server-ruby/examples/storage/update-file.md +++ b/docs/examples/1.4.x/server-ruby/examples/storage/update-file.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/teams/create-membership.md b/docs/examples/1.4.x/server-ruby/examples/teams/create-membership.md index cb2ddfb0565..9485e3096e5 100644 --- a/docs/examples/1.4.x/server-ruby/examples/teams/create-membership.md +++ b/docs/examples/1.4.x/server-ruby/examples/teams/create-membership.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/teams/create.md b/docs/examples/1.4.x/server-ruby/examples/teams/create.md index 5f0f1f48277..7361dd31df7 100644 --- a/docs/examples/1.4.x/server-ruby/examples/teams/create.md +++ b/docs/examples/1.4.x/server-ruby/examples/teams/create.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/teams/delete-membership.md b/docs/examples/1.4.x/server-ruby/examples/teams/delete-membership.md index 2b78ca8ce1e..f2137a3d13e 100644 --- a/docs/examples/1.4.x/server-ruby/examples/teams/delete-membership.md +++ b/docs/examples/1.4.x/server-ruby/examples/teams/delete-membership.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/teams/delete.md b/docs/examples/1.4.x/server-ruby/examples/teams/delete.md index 4d71b38ea9a..e57d3869436 100644 --- a/docs/examples/1.4.x/server-ruby/examples/teams/delete.md +++ b/docs/examples/1.4.x/server-ruby/examples/teams/delete.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/teams/get-membership.md b/docs/examples/1.4.x/server-ruby/examples/teams/get-membership.md index 864ff8b8ecc..a0464d55c14 100644 --- a/docs/examples/1.4.x/server-ruby/examples/teams/get-membership.md +++ b/docs/examples/1.4.x/server-ruby/examples/teams/get-membership.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/teams/get-prefs.md b/docs/examples/1.4.x/server-ruby/examples/teams/get-prefs.md index 22135af9ff9..a27fc9a1e1a 100644 --- a/docs/examples/1.4.x/server-ruby/examples/teams/get-prefs.md +++ b/docs/examples/1.4.x/server-ruby/examples/teams/get-prefs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/teams/get.md b/docs/examples/1.4.x/server-ruby/examples/teams/get.md index a0e2aeb2ab9..cbc84c4e7e2 100644 --- a/docs/examples/1.4.x/server-ruby/examples/teams/get.md +++ b/docs/examples/1.4.x/server-ruby/examples/teams/get.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/teams/list-memberships.md b/docs/examples/1.4.x/server-ruby/examples/teams/list-memberships.md index c742c4520b0..6cd99fafcf8 100644 --- a/docs/examples/1.4.x/server-ruby/examples/teams/list-memberships.md +++ b/docs/examples/1.4.x/server-ruby/examples/teams/list-memberships.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/teams/list.md b/docs/examples/1.4.x/server-ruby/examples/teams/list.md index 9f12e7f9edc..567fd01030c 100644 --- a/docs/examples/1.4.x/server-ruby/examples/teams/list.md +++ b/docs/examples/1.4.x/server-ruby/examples/teams/list.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/teams/update-membership-status.md b/docs/examples/1.4.x/server-ruby/examples/teams/update-membership-status.md index 6c47214abc1..81a6fc4dce4 100644 --- a/docs/examples/1.4.x/server-ruby/examples/teams/update-membership-status.md +++ b/docs/examples/1.4.x/server-ruby/examples/teams/update-membership-status.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/teams/update-membership.md b/docs/examples/1.4.x/server-ruby/examples/teams/update-membership.md index d94291bcd13..c42f067f280 100644 --- a/docs/examples/1.4.x/server-ruby/examples/teams/update-membership.md +++ b/docs/examples/1.4.x/server-ruby/examples/teams/update-membership.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/teams/update-name.md b/docs/examples/1.4.x/server-ruby/examples/teams/update-name.md index 61914f7d5ac..cc36cfafa74 100644 --- a/docs/examples/1.4.x/server-ruby/examples/teams/update-name.md +++ b/docs/examples/1.4.x/server-ruby/examples/teams/update-name.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/teams/update-prefs.md b/docs/examples/1.4.x/server-ruby/examples/teams/update-prefs.md index 20e3942131b..10e0b54dc19 100644 --- a/docs/examples/1.4.x/server-ruby/examples/teams/update-prefs.md +++ b/docs/examples/1.4.x/server-ruby/examples/teams/update-prefs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-ruby/examples/users/create-argon2user.md b/docs/examples/1.4.x/server-ruby/examples/users/create-argon2user.md index 7249612c5f3..10d3db61810 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/create-argon2user.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/create-argon2user.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/create-bcrypt-user.md b/docs/examples/1.4.x/server-ruby/examples/users/create-bcrypt-user.md index 1d253f687c7..04904eff446 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/create-bcrypt-user.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/create-m-d5user.md b/docs/examples/1.4.x/server-ruby/examples/users/create-m-d5user.md index cc36572cf4b..b55c572ab46 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/create-m-d5user.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/create-m-d5user.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/create-p-h-pass-user.md b/docs/examples/1.4.x/server-ruby/examples/users/create-p-h-pass-user.md index 30004fc3600..f9be63a721f 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/create-p-h-pass-user.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/create-s-h-a-user.md b/docs/examples/1.4.x/server-ruby/examples/users/create-s-h-a-user.md index 809c313ca62..a25317929ea 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/create-s-h-a-user.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/create-scrypt-modified-user.md b/docs/examples/1.4.x/server-ruby/examples/users/create-scrypt-modified-user.md index 46b17d1338e..81417b6cbdb 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/create-scrypt-modified-user.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/create-scrypt-user.md b/docs/examples/1.4.x/server-ruby/examples/users/create-scrypt-user.md index c84f7e7bab8..251d226f1d9 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/create-scrypt-user.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/create-scrypt-user.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/create.md b/docs/examples/1.4.x/server-ruby/examples/users/create.md index a73a489294b..3f1e303b4e0 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/create.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/create.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/delete-identity.md b/docs/examples/1.4.x/server-ruby/examples/users/delete-identity.md index dd14abb41c4..da10d067e8f 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/delete-identity.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/delete-identity.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/delete-session.md b/docs/examples/1.4.x/server-ruby/examples/users/delete-session.md index da0362bfcbf..72d897b633d 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/delete-session.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/delete-session.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/delete-sessions.md b/docs/examples/1.4.x/server-ruby/examples/users/delete-sessions.md index 647916fdf0d..2b0ce0d22a0 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/delete-sessions.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/delete-sessions.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/delete.md b/docs/examples/1.4.x/server-ruby/examples/users/delete.md index b128e57c69c..e65afd4c160 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/delete.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/delete.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/get-prefs.md b/docs/examples/1.4.x/server-ruby/examples/users/get-prefs.md index 984d1e60c3e..69cea324dfc 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/get-prefs.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/get-prefs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/get.md b/docs/examples/1.4.x/server-ruby/examples/users/get.md index f0ace233a90..62b2da23ee8 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/get.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/get.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/list-identities.md b/docs/examples/1.4.x/server-ruby/examples/users/list-identities.md index fc18bc9bfe8..156b3681afa 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/list-identities.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/list-identities.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/list-logs.md b/docs/examples/1.4.x/server-ruby/examples/users/list-logs.md index 4bea6d152aa..28c43d95ab0 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/list-logs.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/list-logs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/list-memberships.md b/docs/examples/1.4.x/server-ruby/examples/users/list-memberships.md index 94654413978..4ffbbb36773 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/list-memberships.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/list-memberships.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/list-sessions.md b/docs/examples/1.4.x/server-ruby/examples/users/list-sessions.md index 27f04e1bb05..5178a7d73fd 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/list-sessions.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/list-sessions.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/list.md b/docs/examples/1.4.x/server-ruby/examples/users/list.md index 3672217a75e..c2844342390 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/list.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/list.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/update-email-verification.md b/docs/examples/1.4.x/server-ruby/examples/users/update-email-verification.md index 4ef455f9d48..4dfa52e7c97 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/update-email-verification.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/update-email-verification.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/update-email.md b/docs/examples/1.4.x/server-ruby/examples/users/update-email.md index 93e963e3251..4d5e5600869 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/update-email.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/update-email.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/update-labels.md b/docs/examples/1.4.x/server-ruby/examples/users/update-labels.md index 7947ef67375..89d5126d93a 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/update-labels.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/update-labels.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/update-name.md b/docs/examples/1.4.x/server-ruby/examples/users/update-name.md index 54a3edfb099..09e745aadd1 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/update-name.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/update-name.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/update-password.md b/docs/examples/1.4.x/server-ruby/examples/users/update-password.md index 2623267f553..8d1a98d9d08 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/update-password.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/update-password.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/update-phone-verification.md b/docs/examples/1.4.x/server-ruby/examples/users/update-phone-verification.md index ec96581e21f..9e8dd9dee2b 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/update-phone-verification.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/update-phone-verification.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/update-phone.md b/docs/examples/1.4.x/server-ruby/examples/users/update-phone.md index 430f03aaeda..cef37175ab8 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/update-phone.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/update-phone.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/update-prefs.md b/docs/examples/1.4.x/server-ruby/examples/users/update-prefs.md index eb17d8f500f..d3058ff1b40 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/update-prefs.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/update-prefs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-ruby/examples/users/update-status.md b/docs/examples/1.4.x/server-ruby/examples/users/update-status.md index 34365cf58ed..2d27d29ac74 100644 --- a/docs/examples/1.4.x/server-ruby/examples/users/update-status.md +++ b/docs/examples/1.4.x/server-ruby/examples/users/update-status.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/account/create-phone-verification.md b/docs/examples/1.4.x/server-swift/examples/account/create-phone-verification.md index cdeba917008..26ced5985bf 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/create-phone-verification.md +++ b/docs/examples/1.4.x/server-swift/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/create-recovery.md b/docs/examples/1.4.x/server-swift/examples/account/create-recovery.md index fdb0e53765f..06cc974d663 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/create-recovery.md +++ b/docs/examples/1.4.x/server-swift/examples/account/create-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/create-verification.md b/docs/examples/1.4.x/server-swift/examples/account/create-verification.md index 63a6a7ac94f..1abcc4abb21 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/create-verification.md +++ b/docs/examples/1.4.x/server-swift/examples/account/create-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/delete-identity.md b/docs/examples/1.4.x/server-swift/examples/account/delete-identity.md index 1ebcc46a7af..53f286ff873 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/delete-identity.md +++ b/docs/examples/1.4.x/server-swift/examples/account/delete-identity.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/delete-session.md b/docs/examples/1.4.x/server-swift/examples/account/delete-session.md index de9f736f9ce..e5c88080e93 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/delete-session.md +++ b/docs/examples/1.4.x/server-swift/examples/account/delete-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/delete-sessions.md b/docs/examples/1.4.x/server-swift/examples/account/delete-sessions.md index 0f58c600d25..971f34d524e 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/delete-sessions.md +++ b/docs/examples/1.4.x/server-swift/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/get-prefs.md b/docs/examples/1.4.x/server-swift/examples/account/get-prefs.md index ce72d7c340d..be9acecd9af 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/get-prefs.md +++ b/docs/examples/1.4.x/server-swift/examples/account/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/get-session.md b/docs/examples/1.4.x/server-swift/examples/account/get-session.md index e1b48b5aa50..3c5092f3be6 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/get-session.md +++ b/docs/examples/1.4.x/server-swift/examples/account/get-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/get.md b/docs/examples/1.4.x/server-swift/examples/account/get.md index 060b6a4a275..4d40b4b4748 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/get.md +++ b/docs/examples/1.4.x/server-swift/examples/account/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/list-identities.md b/docs/examples/1.4.x/server-swift/examples/account/list-identities.md index 4158e54b089..7940998f869 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/list-identities.md +++ b/docs/examples/1.4.x/server-swift/examples/account/list-identities.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/list-logs.md b/docs/examples/1.4.x/server-swift/examples/account/list-logs.md index ee2e8bb7e6d..762062d1062 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/list-logs.md +++ b/docs/examples/1.4.x/server-swift/examples/account/list-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/list-sessions.md b/docs/examples/1.4.x/server-swift/examples/account/list-sessions.md index 2baf5836a2a..c3b2b0aed0a 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/list-sessions.md +++ b/docs/examples/1.4.x/server-swift/examples/account/list-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/update-email.md b/docs/examples/1.4.x/server-swift/examples/account/update-email.md index 4041da0222f..74244ea9d79 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/update-email.md +++ b/docs/examples/1.4.x/server-swift/examples/account/update-email.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/update-name.md b/docs/examples/1.4.x/server-swift/examples/account/update-name.md index 440b1b6c245..cd4be44741a 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/update-name.md +++ b/docs/examples/1.4.x/server-swift/examples/account/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/update-password.md b/docs/examples/1.4.x/server-swift/examples/account/update-password.md index 91d55db20f0..82c03d73dbd 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/update-password.md +++ b/docs/examples/1.4.x/server-swift/examples/account/update-password.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/update-phone-verification.md b/docs/examples/1.4.x/server-swift/examples/account/update-phone-verification.md index 29052c573a9..22cc1e86586 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/update-phone-verification.md +++ b/docs/examples/1.4.x/server-swift/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/update-phone.md b/docs/examples/1.4.x/server-swift/examples/account/update-phone.md index 645b6fc840b..9f215a9fe13 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/update-phone.md +++ b/docs/examples/1.4.x/server-swift/examples/account/update-phone.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/update-prefs.md b/docs/examples/1.4.x/server-swift/examples/account/update-prefs.md index 520f9d5fd42..05a1b445ae8 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/update-prefs.md +++ b/docs/examples/1.4.x/server-swift/examples/account/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/update-recovery.md b/docs/examples/1.4.x/server-swift/examples/account/update-recovery.md index 92825cae559..ba8d1fa1a0c 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/update-recovery.md +++ b/docs/examples/1.4.x/server-swift/examples/account/update-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/update-session.md b/docs/examples/1.4.x/server-swift/examples/account/update-session.md index 84229182aaa..d0002b6e497 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/update-session.md +++ b/docs/examples/1.4.x/server-swift/examples/account/update-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/update-status.md b/docs/examples/1.4.x/server-swift/examples/account/update-status.md index 96b94d63a1d..0f3e22b4011 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/update-status.md +++ b/docs/examples/1.4.x/server-swift/examples/account/update-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/account/update-verification.md b/docs/examples/1.4.x/server-swift/examples/account/update-verification.md index b8e925783eb..c50bf1b88d2 100644 --- a/docs/examples/1.4.x/server-swift/examples/account/update-verification.md +++ b/docs/examples/1.4.x/server-swift/examples/account/update-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/avatars/get-browser.md b/docs/examples/1.4.x/server-swift/examples/avatars/get-browser.md index df3a99c67a6..b566d6ca059 100644 --- a/docs/examples/1.4.x/server-swift/examples/avatars/get-browser.md +++ b/docs/examples/1.4.x/server-swift/examples/avatars/get-browser.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/avatars/get-credit-card.md b/docs/examples/1.4.x/server-swift/examples/avatars/get-credit-card.md index ce4382d77b0..5b47aab1ab1 100644 --- a/docs/examples/1.4.x/server-swift/examples/avatars/get-credit-card.md +++ b/docs/examples/1.4.x/server-swift/examples/avatars/get-credit-card.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/avatars/get-favicon.md b/docs/examples/1.4.x/server-swift/examples/avatars/get-favicon.md index 36c77218b74..77803cd5a07 100644 --- a/docs/examples/1.4.x/server-swift/examples/avatars/get-favicon.md +++ b/docs/examples/1.4.x/server-swift/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/avatars/get-flag.md b/docs/examples/1.4.x/server-swift/examples/avatars/get-flag.md index 849ec48cea1..16e566d9e1e 100644 --- a/docs/examples/1.4.x/server-swift/examples/avatars/get-flag.md +++ b/docs/examples/1.4.x/server-swift/examples/avatars/get-flag.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/avatars/get-image.md b/docs/examples/1.4.x/server-swift/examples/avatars/get-image.md index d457976f549..2fd24c5c7d5 100644 --- a/docs/examples/1.4.x/server-swift/examples/avatars/get-image.md +++ b/docs/examples/1.4.x/server-swift/examples/avatars/get-image.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/avatars/get-initials.md b/docs/examples/1.4.x/server-swift/examples/avatars/get-initials.md index 74d8d956db3..9062ca5ca73 100644 --- a/docs/examples/1.4.x/server-swift/examples/avatars/get-initials.md +++ b/docs/examples/1.4.x/server-swift/examples/avatars/get-initials.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/avatars/get-q-r.md b/docs/examples/1.4.x/server-swift/examples/avatars/get-q-r.md index 537bfb5b43f..c8d7fba5be5 100644 --- a/docs/examples/1.4.x/server-swift/examples/avatars/get-q-r.md +++ b/docs/examples/1.4.x/server-swift/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/create-boolean-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/create-boolean-attribute.md index 11eae088e7a..1be49bb0d44 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/create-boolean-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/create-collection.md b/docs/examples/1.4.x/server-swift/examples/databases/create-collection.md index ff9172bb29a..b4bb744eee0 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/create-collection.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/create-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/create-datetime-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/create-datetime-attribute.md index 26020fb88fa..119c5ec830e 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/create-datetime-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/create-document.md b/docs/examples/1.4.x/server-swift/examples/databases/create-document.md index b76eab7c708..5985560b67f 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/create-document.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/create-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/create-email-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/create-email-attribute.md index cddebec6b24..690a49b68a1 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/create-email-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/create-email-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/create-enum-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/create-enum-attribute.md index dc56bff3950..b08ccbeb831 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/create-enum-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/create-float-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/create-float-attribute.md index ec01499e988..851afc2ac1a 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/create-float-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/create-float-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/create-index.md b/docs/examples/1.4.x/server-swift/examples/databases/create-index.md index 03cc91b0b44..2271a9898ef 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/create-index.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/create-index.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/create-integer-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/create-integer-attribute.md index eeea1cb01bf..72cd31c5a83 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/create-integer-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/create-ip-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/create-ip-attribute.md index 948aa2ad376..c03c555f52f 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/create-ip-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/create-relationship-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/create-relationship-attribute.md index adb7cbb1fc4..5cbf08e2a4f 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/create-relationship-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/create-string-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/create-string-attribute.md index 0d3e65442b8..daa04767a3f 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/create-string-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/create-string-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/create-url-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/create-url-attribute.md index 747a6c73673..94eefa1b610 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/create-url-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/create-url-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/create.md b/docs/examples/1.4.x/server-swift/examples/databases/create.md index 5e4abf88a03..6578c5783bf 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/create.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/delete-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/delete-attribute.md index 0fc94705708..a9c778b34c3 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/delete-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/delete-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/delete-collection.md b/docs/examples/1.4.x/server-swift/examples/databases/delete-collection.md index b00916534e3..f410170aa84 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/delete-collection.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/delete-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/delete-document.md b/docs/examples/1.4.x/server-swift/examples/databases/delete-document.md index 185c33d4102..24dd564236c 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/delete-document.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/delete-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/delete-index.md b/docs/examples/1.4.x/server-swift/examples/databases/delete-index.md index 0ad4ac3442a..fa5acc635ab 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/delete-index.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/delete-index.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/delete.md b/docs/examples/1.4.x/server-swift/examples/databases/delete.md index 48b687e237f..01be19d136e 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/delete.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/get-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/get-attribute.md index e0ea280f568..4d4697052b7 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/get-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/get-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/get-collection.md b/docs/examples/1.4.x/server-swift/examples/databases/get-collection.md index 39c36b3d617..a55294591a9 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/get-collection.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/get-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/get-document.md b/docs/examples/1.4.x/server-swift/examples/databases/get-document.md index 2a12e1140ac..2d2768ca2c3 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/get-document.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/get-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/get-index.md b/docs/examples/1.4.x/server-swift/examples/databases/get-index.md index e69263346ae..69b694d0724 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/get-index.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/get-index.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/get.md b/docs/examples/1.4.x/server-swift/examples/databases/get.md index 805fa3ee23b..9fa4abca507 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/get.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/list-attributes.md b/docs/examples/1.4.x/server-swift/examples/databases/list-attributes.md index 475da0a7124..71fdcbc9971 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/list-attributes.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/list-attributes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/list-collections.md b/docs/examples/1.4.x/server-swift/examples/databases/list-collections.md index 8e451ca8a00..bf150e8596e 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/list-collections.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/list-collections.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/list-documents.md b/docs/examples/1.4.x/server-swift/examples/databases/list-documents.md index 24bb8597614..0ca2d5ff485 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/list-documents.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/list-documents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/list-indexes.md b/docs/examples/1.4.x/server-swift/examples/databases/list-indexes.md index 145c02ddcc4..be16b25a318 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/list-indexes.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/list-indexes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/list.md b/docs/examples/1.4.x/server-swift/examples/databases/list.md index fe7a54df444..45796c04c02 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/list.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/update-boolean-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/update-boolean-attribute.md index 73b68190ba0..90dd5f748ee 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/update-boolean-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/update-collection.md b/docs/examples/1.4.x/server-swift/examples/databases/update-collection.md index 807c5659f9c..d2969b4a4de 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/update-collection.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/update-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/update-datetime-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/update-datetime-attribute.md index 4ec71bbcf03..5f4444a08b4 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/update-datetime-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/update-document.md b/docs/examples/1.4.x/server-swift/examples/databases/update-document.md index 56eed000828..872711afcf3 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/update-document.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/update-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/update-email-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/update-email-attribute.md index 11608e1fcab..3f72ca75a68 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/update-email-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/update-email-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/update-enum-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/update-enum-attribute.md index fce99d4d03a..4a0560224ca 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/update-enum-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/update-float-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/update-float-attribute.md index 6cc8457d008..72393b3955e 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/update-float-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/update-float-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/update-integer-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/update-integer-attribute.md index cde600aad9f..56fcead9676 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/update-integer-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/update-ip-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/update-ip-attribute.md index 7d70495c27c..3f2e2e1b8a0 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/update-ip-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/update-relationship-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/update-relationship-attribute.md index e89c3658c21..f39630217b2 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/update-relationship-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/update-string-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/update-string-attribute.md index 40ab7baa48b..6c8263674ca 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/update-string-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/update-string-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/update-url-attribute.md b/docs/examples/1.4.x/server-swift/examples/databases/update-url-attribute.md index ef9198e3bb5..3adb9f83930 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/update-url-attribute.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/update-url-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/databases/update.md b/docs/examples/1.4.x/server-swift/examples/databases/update.md index 8e14f080094..b9185e6aaeb 100644 --- a/docs/examples/1.4.x/server-swift/examples/databases/update.md +++ b/docs/examples/1.4.x/server-swift/examples/databases/update.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/create-build.md b/docs/examples/1.4.x/server-swift/examples/functions/create-build.md index 8419bf69500..2c469e5ea69 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/create-build.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/create-build.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/create-deployment.md b/docs/examples/1.4.x/server-swift/examples/functions/create-deployment.md index c6d32a1ba86..25299ccaa0c 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/create-deployment.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/create-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/create-execution.md b/docs/examples/1.4.x/server-swift/examples/functions/create-execution.md index 0354bf54883..1454b4e11a5 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/create-execution.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/create-execution.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/create-variable.md b/docs/examples/1.4.x/server-swift/examples/functions/create-variable.md index f2613111929..914f189284e 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/create-variable.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/create-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/create.md b/docs/examples/1.4.x/server-swift/examples/functions/create.md index 739c79825a4..0c67dc478e1 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/create.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/delete-deployment.md b/docs/examples/1.4.x/server-swift/examples/functions/delete-deployment.md index 228f9f62e23..378e1f35aa8 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/delete-deployment.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/delete-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/delete-variable.md b/docs/examples/1.4.x/server-swift/examples/functions/delete-variable.md index 410cffe13c2..55e3d4a91f2 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/delete-variable.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/delete-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/delete.md b/docs/examples/1.4.x/server-swift/examples/functions/delete.md index bee774e61b6..67b2f0332cf 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/delete.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/download-deployment.md b/docs/examples/1.4.x/server-swift/examples/functions/download-deployment.md index e75d1e7dfc6..e835027225e 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/download-deployment.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/download-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/get-deployment.md b/docs/examples/1.4.x/server-swift/examples/functions/get-deployment.md index 0a463c41213..aba9a5084ab 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/get-deployment.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/get-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/get-execution.md b/docs/examples/1.4.x/server-swift/examples/functions/get-execution.md index 7af8bd5906f..c8ec6c1aca5 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/get-execution.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/get-execution.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/get-variable.md b/docs/examples/1.4.x/server-swift/examples/functions/get-variable.md index f2fa61b9034..f8acd3dda4f 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/get-variable.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/get-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/get.md b/docs/examples/1.4.x/server-swift/examples/functions/get.md index c5ba24ae266..aead1667f2b 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/get.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/list-deployments.md b/docs/examples/1.4.x/server-swift/examples/functions/list-deployments.md index 652620bf401..c2c32eaa346 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/list-deployments.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/list-deployments.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/list-executions.md b/docs/examples/1.4.x/server-swift/examples/functions/list-executions.md index fa32172cbdb..26536b7e034 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/list-executions.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/list-executions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/list-runtimes.md b/docs/examples/1.4.x/server-swift/examples/functions/list-runtimes.md index 6a543754eb5..c7de59bed3d 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/list-runtimes.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/list-runtimes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/list-variables.md b/docs/examples/1.4.x/server-swift/examples/functions/list-variables.md index d13c752254d..abf0f514be8 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/list-variables.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/list-variables.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/list.md b/docs/examples/1.4.x/server-swift/examples/functions/list.md index 81363f17ff7..d04ab677f3f 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/list.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/update-deployment.md b/docs/examples/1.4.x/server-swift/examples/functions/update-deployment.md index b0f4fc23c43..1e81e41286e 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/update-deployment.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/update-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/update-variable.md b/docs/examples/1.4.x/server-swift/examples/functions/update-variable.md index 0eb5b2e9760..2ce5b597ea5 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/update-variable.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/update-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/functions/update.md b/docs/examples/1.4.x/server-swift/examples/functions/update.md index 3612a7c46df..ebbc92877bc 100644 --- a/docs/examples/1.4.x/server-swift/examples/functions/update.md +++ b/docs/examples/1.4.x/server-swift/examples/functions/update.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/graphql/mutation.md b/docs/examples/1.4.x/server-swift/examples/graphql/mutation.md index db869d48c93..f2a0460e28b 100644 --- a/docs/examples/1.4.x/server-swift/examples/graphql/mutation.md +++ b/docs/examples/1.4.x/server-swift/examples/graphql/mutation.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/graphql/query.md b/docs/examples/1.4.x/server-swift/examples/graphql/query.md index 5e97508be50..58fe1041c45 100644 --- a/docs/examples/1.4.x/server-swift/examples/graphql/query.md +++ b/docs/examples/1.4.x/server-swift/examples/graphql/query.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-antivirus.md b/docs/examples/1.4.x/server-swift/examples/health/get-antivirus.md index cab0d98339d..2c45f7a619a 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-antivirus.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-antivirus.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-cache.md b/docs/examples/1.4.x/server-swift/examples/health/get-cache.md index a682d63a6f6..8d54eede9c7 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-cache.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-cache.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-d-b.md b/docs/examples/1.4.x/server-swift/examples/health/get-d-b.md index 81645497b5c..e115eee2add 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-d-b.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-d-b.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-pub-sub.md b/docs/examples/1.4.x/server-swift/examples/health/get-pub-sub.md index 5bf027108a5..d06974d6293 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-pub-sub.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-pub-sub.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-queue-builds.md b/docs/examples/1.4.x/server-swift/examples/health/get-queue-builds.md index 5c8ac113668..426924a50c2 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-queue-builds.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-queue-builds.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-queue-certificates.md b/docs/examples/1.4.x/server-swift/examples/health/get-queue-certificates.md index 71f4dcfc436..f9490918e43 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-queue-certificates.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-queue-certificates.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-queue-databases.md b/docs/examples/1.4.x/server-swift/examples/health/get-queue-databases.md index a35bd6b232e..94a6cc06c2c 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-queue-databases.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-queue-databases.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-queue-deletes.md b/docs/examples/1.4.x/server-swift/examples/health/get-queue-deletes.md index fc0ec10f84e..06fb93c2827 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-queue-deletes.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-queue-deletes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-queue-functions.md b/docs/examples/1.4.x/server-swift/examples/health/get-queue-functions.md index d6bdf767564..2f412b9da15 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-queue-functions.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-queue-functions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-queue-logs.md b/docs/examples/1.4.x/server-swift/examples/health/get-queue-logs.md index 7580e46da17..6fc521baef1 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-queue-logs.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-queue-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-queue-mails.md b/docs/examples/1.4.x/server-swift/examples/health/get-queue-mails.md index a9177a7a62f..0cd7fc1f633 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-queue-mails.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-queue-mails.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-queue-messaging.md b/docs/examples/1.4.x/server-swift/examples/health/get-queue-messaging.md index 04e36436152..68dea12e934 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-queue-messaging.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-queue-messaging.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-queue-migrations.md b/docs/examples/1.4.x/server-swift/examples/health/get-queue-migrations.md index 6b28b4ee64c..13f596b2691 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-queue-migrations.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-queue-migrations.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-queue-webhooks.md b/docs/examples/1.4.x/server-swift/examples/health/get-queue-webhooks.md index 431a5a031c9..42f1de37fea 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-queue-webhooks.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-queue.md b/docs/examples/1.4.x/server-swift/examples/health/get-queue.md index 6f8131d7e83..88e3b8a82b1 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-queue.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-queue.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-storage-local.md b/docs/examples/1.4.x/server-swift/examples/health/get-storage-local.md index ee807980bba..276b1635ae7 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-storage-local.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-storage-local.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get-time.md b/docs/examples/1.4.x/server-swift/examples/health/get-time.md index f6d66d950a9..7b4bbb3dee8 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get-time.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get-time.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/health/get.md b/docs/examples/1.4.x/server-swift/examples/health/get.md index 828f3453e0c..179b9694a2f 100644 --- a/docs/examples/1.4.x/server-swift/examples/health/get.md +++ b/docs/examples/1.4.x/server-swift/examples/health/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/locale/get.md b/docs/examples/1.4.x/server-swift/examples/locale/get.md index 5c5aee4cb4f..99df3ebbd11 100644 --- a/docs/examples/1.4.x/server-swift/examples/locale/get.md +++ b/docs/examples/1.4.x/server-swift/examples/locale/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/locale/list-codes.md b/docs/examples/1.4.x/server-swift/examples/locale/list-codes.md index 72966a63712..9e0b107b548 100644 --- a/docs/examples/1.4.x/server-swift/examples/locale/list-codes.md +++ b/docs/examples/1.4.x/server-swift/examples/locale/list-codes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/locale/list-continents.md b/docs/examples/1.4.x/server-swift/examples/locale/list-continents.md index 8cd7964b639..d3b8a66262e 100644 --- a/docs/examples/1.4.x/server-swift/examples/locale/list-continents.md +++ b/docs/examples/1.4.x/server-swift/examples/locale/list-continents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/locale/list-countries-e-u.md b/docs/examples/1.4.x/server-swift/examples/locale/list-countries-e-u.md index a787e7b7222..a02f72cd7af 100644 --- a/docs/examples/1.4.x/server-swift/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.4.x/server-swift/examples/locale/list-countries-e-u.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/locale/list-countries-phones.md b/docs/examples/1.4.x/server-swift/examples/locale/list-countries-phones.md index cf16d2d0b29..2d4d7ef0068 100644 --- a/docs/examples/1.4.x/server-swift/examples/locale/list-countries-phones.md +++ b/docs/examples/1.4.x/server-swift/examples/locale/list-countries-phones.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/locale/list-countries.md b/docs/examples/1.4.x/server-swift/examples/locale/list-countries.md index 32d5901e37e..ba769689a3e 100644 --- a/docs/examples/1.4.x/server-swift/examples/locale/list-countries.md +++ b/docs/examples/1.4.x/server-swift/examples/locale/list-countries.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/locale/list-currencies.md b/docs/examples/1.4.x/server-swift/examples/locale/list-currencies.md index 6b1daa7422c..2211e1855fa 100644 --- a/docs/examples/1.4.x/server-swift/examples/locale/list-currencies.md +++ b/docs/examples/1.4.x/server-swift/examples/locale/list-currencies.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/locale/list-languages.md b/docs/examples/1.4.x/server-swift/examples/locale/list-languages.md index 72c5649aaea..c8656709532 100644 --- a/docs/examples/1.4.x/server-swift/examples/locale/list-languages.md +++ b/docs/examples/1.4.x/server-swift/examples/locale/list-languages.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/storage/create-bucket.md b/docs/examples/1.4.x/server-swift/examples/storage/create-bucket.md index d3f91ab7af0..80ffc45decc 100644 --- a/docs/examples/1.4.x/server-swift/examples/storage/create-bucket.md +++ b/docs/examples/1.4.x/server-swift/examples/storage/create-bucket.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/storage/create-file.md b/docs/examples/1.4.x/server-swift/examples/storage/create-file.md index 45dd245d318..664a54c53ff 100644 --- a/docs/examples/1.4.x/server-swift/examples/storage/create-file.md +++ b/docs/examples/1.4.x/server-swift/examples/storage/create-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/storage/delete-bucket.md b/docs/examples/1.4.x/server-swift/examples/storage/delete-bucket.md index 4d41f1c373f..6c407365766 100644 --- a/docs/examples/1.4.x/server-swift/examples/storage/delete-bucket.md +++ b/docs/examples/1.4.x/server-swift/examples/storage/delete-bucket.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/storage/delete-file.md b/docs/examples/1.4.x/server-swift/examples/storage/delete-file.md index b2168f8ca1a..5d547d82a55 100644 --- a/docs/examples/1.4.x/server-swift/examples/storage/delete-file.md +++ b/docs/examples/1.4.x/server-swift/examples/storage/delete-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/storage/get-bucket.md b/docs/examples/1.4.x/server-swift/examples/storage/get-bucket.md index 8a27759e0e9..352aab3412f 100644 --- a/docs/examples/1.4.x/server-swift/examples/storage/get-bucket.md +++ b/docs/examples/1.4.x/server-swift/examples/storage/get-bucket.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/storage/get-file-download.md b/docs/examples/1.4.x/server-swift/examples/storage/get-file-download.md index 5205e17d436..1784f72852d 100644 --- a/docs/examples/1.4.x/server-swift/examples/storage/get-file-download.md +++ b/docs/examples/1.4.x/server-swift/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/storage/get-file-preview.md b/docs/examples/1.4.x/server-swift/examples/storage/get-file-preview.md index f6fbec66546..92fce42694d 100644 --- a/docs/examples/1.4.x/server-swift/examples/storage/get-file-preview.md +++ b/docs/examples/1.4.x/server-swift/examples/storage/get-file-preview.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/storage/get-file-view.md b/docs/examples/1.4.x/server-swift/examples/storage/get-file-view.md index 5926bdd959b..10d9c181d18 100644 --- a/docs/examples/1.4.x/server-swift/examples/storage/get-file-view.md +++ b/docs/examples/1.4.x/server-swift/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/storage/get-file.md b/docs/examples/1.4.x/server-swift/examples/storage/get-file.md index e516242775b..697dc83a16a 100644 --- a/docs/examples/1.4.x/server-swift/examples/storage/get-file.md +++ b/docs/examples/1.4.x/server-swift/examples/storage/get-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/storage/list-buckets.md b/docs/examples/1.4.x/server-swift/examples/storage/list-buckets.md index a3e92b282e4..c991833cdb1 100644 --- a/docs/examples/1.4.x/server-swift/examples/storage/list-buckets.md +++ b/docs/examples/1.4.x/server-swift/examples/storage/list-buckets.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/storage/list-files.md b/docs/examples/1.4.x/server-swift/examples/storage/list-files.md index 153a10d27f7..1f0018a150c 100644 --- a/docs/examples/1.4.x/server-swift/examples/storage/list-files.md +++ b/docs/examples/1.4.x/server-swift/examples/storage/list-files.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/storage/update-bucket.md b/docs/examples/1.4.x/server-swift/examples/storage/update-bucket.md index d2fd96c33de..f495e5efaae 100644 --- a/docs/examples/1.4.x/server-swift/examples/storage/update-bucket.md +++ b/docs/examples/1.4.x/server-swift/examples/storage/update-bucket.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/storage/update-file.md b/docs/examples/1.4.x/server-swift/examples/storage/update-file.md index f37202aa300..3a29db869db 100644 --- a/docs/examples/1.4.x/server-swift/examples/storage/update-file.md +++ b/docs/examples/1.4.x/server-swift/examples/storage/update-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/teams/create-membership.md b/docs/examples/1.4.x/server-swift/examples/teams/create-membership.md index d441c26d27d..3f32ea08737 100644 --- a/docs/examples/1.4.x/server-swift/examples/teams/create-membership.md +++ b/docs/examples/1.4.x/server-swift/examples/teams/create-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/teams/create.md b/docs/examples/1.4.x/server-swift/examples/teams/create.md index e4f8c09e576..2e2b7faba06 100644 --- a/docs/examples/1.4.x/server-swift/examples/teams/create.md +++ b/docs/examples/1.4.x/server-swift/examples/teams/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/teams/delete-membership.md b/docs/examples/1.4.x/server-swift/examples/teams/delete-membership.md index 25326deba06..2f08c2cf0b3 100644 --- a/docs/examples/1.4.x/server-swift/examples/teams/delete-membership.md +++ b/docs/examples/1.4.x/server-swift/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/teams/delete.md b/docs/examples/1.4.x/server-swift/examples/teams/delete.md index c0e3d5e898d..104b19cecc3 100644 --- a/docs/examples/1.4.x/server-swift/examples/teams/delete.md +++ b/docs/examples/1.4.x/server-swift/examples/teams/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/teams/get-membership.md b/docs/examples/1.4.x/server-swift/examples/teams/get-membership.md index c399832ec26..c7adc3d0b62 100644 --- a/docs/examples/1.4.x/server-swift/examples/teams/get-membership.md +++ b/docs/examples/1.4.x/server-swift/examples/teams/get-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/teams/get-prefs.md b/docs/examples/1.4.x/server-swift/examples/teams/get-prefs.md index 4a79855f651..8cb4da49623 100644 --- a/docs/examples/1.4.x/server-swift/examples/teams/get-prefs.md +++ b/docs/examples/1.4.x/server-swift/examples/teams/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/teams/get.md b/docs/examples/1.4.x/server-swift/examples/teams/get.md index 07980d4f480..a100c3d20b5 100644 --- a/docs/examples/1.4.x/server-swift/examples/teams/get.md +++ b/docs/examples/1.4.x/server-swift/examples/teams/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/teams/list-memberships.md b/docs/examples/1.4.x/server-swift/examples/teams/list-memberships.md index 57d6ef7d379..31fd6131145 100644 --- a/docs/examples/1.4.x/server-swift/examples/teams/list-memberships.md +++ b/docs/examples/1.4.x/server-swift/examples/teams/list-memberships.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/teams/list.md b/docs/examples/1.4.x/server-swift/examples/teams/list.md index cdb174c357e..b5aa000dc03 100644 --- a/docs/examples/1.4.x/server-swift/examples/teams/list.md +++ b/docs/examples/1.4.x/server-swift/examples/teams/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/teams/update-membership-status.md b/docs/examples/1.4.x/server-swift/examples/teams/update-membership-status.md index e209ece5eae..0ef80c00cc2 100644 --- a/docs/examples/1.4.x/server-swift/examples/teams/update-membership-status.md +++ b/docs/examples/1.4.x/server-swift/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/teams/update-membership.md b/docs/examples/1.4.x/server-swift/examples/teams/update-membership.md index 0bbb83228e5..cb2d9c776ea 100644 --- a/docs/examples/1.4.x/server-swift/examples/teams/update-membership.md +++ b/docs/examples/1.4.x/server-swift/examples/teams/update-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/teams/update-name.md b/docs/examples/1.4.x/server-swift/examples/teams/update-name.md index 378d6d1ade4..66196008c72 100644 --- a/docs/examples/1.4.x/server-swift/examples/teams/update-name.md +++ b/docs/examples/1.4.x/server-swift/examples/teams/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/teams/update-prefs.md b/docs/examples/1.4.x/server-swift/examples/teams/update-prefs.md index 142896ad8a7..1d1ffd1d949 100644 --- a/docs/examples/1.4.x/server-swift/examples/teams/update-prefs.md +++ b/docs/examples/1.4.x/server-swift/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/docs/examples/1.4.x/server-swift/examples/users/create-argon2user.md b/docs/examples/1.4.x/server-swift/examples/users/create-argon2user.md index 5914c87d968..bdef66e02c6 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/create-argon2user.md +++ b/docs/examples/1.4.x/server-swift/examples/users/create-argon2user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/create-bcrypt-user.md b/docs/examples/1.4.x/server-swift/examples/users/create-bcrypt-user.md index 4321365b5c3..2e2f17737b2 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.4.x/server-swift/examples/users/create-bcrypt-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/create-m-d5user.md b/docs/examples/1.4.x/server-swift/examples/users/create-m-d5user.md index 2302780c6b7..30033f8b9d3 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/create-m-d5user.md +++ b/docs/examples/1.4.x/server-swift/examples/users/create-m-d5user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/create-p-h-pass-user.md b/docs/examples/1.4.x/server-swift/examples/users/create-p-h-pass-user.md index b856891a7d0..65cd8658f44 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.4.x/server-swift/examples/users/create-p-h-pass-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/create-s-h-a-user.md b/docs/examples/1.4.x/server-swift/examples/users/create-s-h-a-user.md index c96661377ac..c6c8f41b073 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.4.x/server-swift/examples/users/create-s-h-a-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/create-scrypt-modified-user.md b/docs/examples/1.4.x/server-swift/examples/users/create-scrypt-modified-user.md index 3a9f70386ef..bfc1ba25e99 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.4.x/server-swift/examples/users/create-scrypt-modified-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/create-scrypt-user.md b/docs/examples/1.4.x/server-swift/examples/users/create-scrypt-user.md index dbe923de938..5716295eae6 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/create-scrypt-user.md +++ b/docs/examples/1.4.x/server-swift/examples/users/create-scrypt-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/create.md b/docs/examples/1.4.x/server-swift/examples/users/create.md index db49c1f77f6..1727ee5acd3 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/create.md +++ b/docs/examples/1.4.x/server-swift/examples/users/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/delete-identity.md b/docs/examples/1.4.x/server-swift/examples/users/delete-identity.md index d4b26dbc68b..7c18ed06d68 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/delete-identity.md +++ b/docs/examples/1.4.x/server-swift/examples/users/delete-identity.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/delete-session.md b/docs/examples/1.4.x/server-swift/examples/users/delete-session.md index 161e11d2748..694dcdb7924 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/delete-session.md +++ b/docs/examples/1.4.x/server-swift/examples/users/delete-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/delete-sessions.md b/docs/examples/1.4.x/server-swift/examples/users/delete-sessions.md index 71bc2bf8931..a3d02a82030 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/delete-sessions.md +++ b/docs/examples/1.4.x/server-swift/examples/users/delete-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/delete.md b/docs/examples/1.4.x/server-swift/examples/users/delete.md index c8762da65ac..883e305527f 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/delete.md +++ b/docs/examples/1.4.x/server-swift/examples/users/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/get-prefs.md b/docs/examples/1.4.x/server-swift/examples/users/get-prefs.md index 956724d0b3f..149ec000999 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/get-prefs.md +++ b/docs/examples/1.4.x/server-swift/examples/users/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/get.md b/docs/examples/1.4.x/server-swift/examples/users/get.md index a2b3a126f92..83126bd872e 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/get.md +++ b/docs/examples/1.4.x/server-swift/examples/users/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/list-identities.md b/docs/examples/1.4.x/server-swift/examples/users/list-identities.md index db550963683..9dd48cf22de 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/list-identities.md +++ b/docs/examples/1.4.x/server-swift/examples/users/list-identities.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/list-logs.md b/docs/examples/1.4.x/server-swift/examples/users/list-logs.md index 20a55b7f50e..71c3f667857 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/list-logs.md +++ b/docs/examples/1.4.x/server-swift/examples/users/list-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/list-memberships.md b/docs/examples/1.4.x/server-swift/examples/users/list-memberships.md index c07287eb46b..089b27da64a 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/list-memberships.md +++ b/docs/examples/1.4.x/server-swift/examples/users/list-memberships.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/list-sessions.md b/docs/examples/1.4.x/server-swift/examples/users/list-sessions.md index 9f403d8da02..ed3c7677bf9 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/list-sessions.md +++ b/docs/examples/1.4.x/server-swift/examples/users/list-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/list.md b/docs/examples/1.4.x/server-swift/examples/users/list.md index 6b41b200156..59a0e1d44d4 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/list.md +++ b/docs/examples/1.4.x/server-swift/examples/users/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/update-email-verification.md b/docs/examples/1.4.x/server-swift/examples/users/update-email-verification.md index b0649e63f6e..76e0a069b32 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/update-email-verification.md +++ b/docs/examples/1.4.x/server-swift/examples/users/update-email-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/update-email.md b/docs/examples/1.4.x/server-swift/examples/users/update-email.md index 892ff0033fa..7d779fcd1f2 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/update-email.md +++ b/docs/examples/1.4.x/server-swift/examples/users/update-email.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/update-labels.md b/docs/examples/1.4.x/server-swift/examples/users/update-labels.md index 47fc1433874..8aade12c64c 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/update-labels.md +++ b/docs/examples/1.4.x/server-swift/examples/users/update-labels.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/update-name.md b/docs/examples/1.4.x/server-swift/examples/users/update-name.md index a5ce6f9cadc..4f0e1118f63 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/update-name.md +++ b/docs/examples/1.4.x/server-swift/examples/users/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/update-password.md b/docs/examples/1.4.x/server-swift/examples/users/update-password.md index fa2de8b93c8..cac1e9c6a2f 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/update-password.md +++ b/docs/examples/1.4.x/server-swift/examples/users/update-password.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/update-phone-verification.md b/docs/examples/1.4.x/server-swift/examples/users/update-phone-verification.md index f837ffc1670..ea10791ac0f 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/update-phone-verification.md +++ b/docs/examples/1.4.x/server-swift/examples/users/update-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/update-phone.md b/docs/examples/1.4.x/server-swift/examples/users/update-phone.md index f2b8f350dec..465d2613c98 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/update-phone.md +++ b/docs/examples/1.4.x/server-swift/examples/users/update-phone.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/update-prefs.md b/docs/examples/1.4.x/server-swift/examples/users/update-prefs.md index fc4131ea2fa..387d04f82ed 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/update-prefs.md +++ b/docs/examples/1.4.x/server-swift/examples/users/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.4.x/server-swift/examples/users/update-status.md b/docs/examples/1.4.x/server-swift/examples/users/update-status.md index f382775b179..c89328d3412 100644 --- a/docs/examples/1.4.x/server-swift/examples/users/update-status.md +++ b/docs/examples/1.4.x/server-swift/examples/users/update-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/client-android/java/account/add-authenticator.md b/docs/examples/1.5.x/client-android/java/account/add-authenticator.md index e81255d1e6f..c38ff35c729 100644 --- a/docs/examples/1.5.x/client-android/java/account/add-authenticator.md +++ b/docs/examples/1.5.x/client-android/java/account/add-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticatorType; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-anonymous-session.md b/docs/examples/1.5.x/client-android/java/account/create-anonymous-session.md index 46ae275ea7b..1639cdc1f02 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/client-android/java/account/create-anonymous-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-challenge.md b/docs/examples/1.5.x/client-android/java/account/create-challenge.md index 7a319205d90..4b93e74392f 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-challenge.md +++ b/docs/examples/1.5.x/client-android/java/account/create-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticationFactor; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-email-password-session.md b/docs/examples/1.5.x/client-android/java/account/create-email-password-session.md index 85d460e5857..817bda0123d 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-email-password-session.md +++ b/docs/examples/1.5.x/client-android/java/account/create-email-password-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-email-token.md b/docs/examples/1.5.x/client-android/java/account/create-email-token.md index adf8b3def37..a4bc83b6013 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-email-token.md +++ b/docs/examples/1.5.x/client-android/java/account/create-email-token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-j-w-t.md b/docs/examples/1.5.x/client-android/java/account/create-j-w-t.md index 13e6e49e466..9aeb29c77a1 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-j-w-t.md +++ b/docs/examples/1.5.x/client-android/java/account/create-j-w-t.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/client-android/java/account/create-magic-u-r-l-token.md index 21108cc11c1..e57758aca47 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/client-android/java/account/create-magic-u-r-l-token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-mfa-authenticator.md b/docs/examples/1.5.x/client-android/java/account/create-mfa-authenticator.md index cc64341441c..b8b06c34f31 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-android/java/account/create-mfa-authenticator.md @@ -5,7 +5,7 @@ import io.appwrite.enums.AuthenticatorType; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-mfa-challenge.md b/docs/examples/1.5.x/client-android/java/account/create-mfa-challenge.md index a2c2aa4601d..d9d9bb67324 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/client-android/java/account/create-mfa-challenge.md @@ -5,7 +5,7 @@ import io.appwrite.enums.AuthenticationFactor; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/client-android/java/account/create-mfa-recovery-codes.md index 8ed8573c5ef..6e23ad2a996 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-android/java/account/create-mfa-recovery-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-o-auth2session.md b/docs/examples/1.5.x/client-android/java/account/create-o-auth2session.md index ba284a1a06c..59f5b418e73 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/client-android/java/account/create-o-auth2session.md @@ -5,7 +5,7 @@ import io.appwrite.enums.OAuthProvider; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-o-auth2token.md b/docs/examples/1.5.x/client-android/java/account/create-o-auth2token.md index eb64da12e7e..610319682c7 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/client-android/java/account/create-o-auth2token.md @@ -5,7 +5,7 @@ import io.appwrite.enums.OAuthProvider; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-phone-token.md b/docs/examples/1.5.x/client-android/java/account/create-phone-token.md index 29ef311c9ae..a1ad85be754 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-phone-token.md +++ b/docs/examples/1.5.x/client-android/java/account/create-phone-token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-phone-verification.md b/docs/examples/1.5.x/client-android/java/account/create-phone-verification.md index ef14ce85316..cca9283392c 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-phone-verification.md +++ b/docs/examples/1.5.x/client-android/java/account/create-phone-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-push-target.md b/docs/examples/1.5.x/client-android/java/account/create-push-target.md index 7eff45379a4..34e8fcb25d6 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-push-target.md +++ b/docs/examples/1.5.x/client-android/java/account/create-push-target.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-recovery.md b/docs/examples/1.5.x/client-android/java/account/create-recovery.md index 19006f63ef0..4d2af8b160a 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-recovery.md +++ b/docs/examples/1.5.x/client-android/java/account/create-recovery.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-session.md b/docs/examples/1.5.x/client-android/java/account/create-session.md index 013d372c00d..71d11a541cb 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-session.md +++ b/docs/examples/1.5.x/client-android/java/account/create-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create-verification.md b/docs/examples/1.5.x/client-android/java/account/create-verification.md index 254a31b828d..be4f7c91b9e 100644 --- a/docs/examples/1.5.x/client-android/java/account/create-verification.md +++ b/docs/examples/1.5.x/client-android/java/account/create-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create.md b/docs/examples/1.5.x/client-android/java/account/create.md index 8ee1de3eda3..e7212486bcb 100644 --- a/docs/examples/1.5.x/client-android/java/account/create.md +++ b/docs/examples/1.5.x/client-android/java/account/create.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/create2f-a-challenge.md b/docs/examples/1.5.x/client-android/java/account/create2f-a-challenge.md index e095df776cd..95bba7ca0ab 100644 --- a/docs/examples/1.5.x/client-android/java/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/client-android/java/account/create2f-a-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticationFactor; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/delete-authenticator.md b/docs/examples/1.5.x/client-android/java/account/delete-authenticator.md index c988cfa1e31..270fba43ba3 100644 --- a/docs/examples/1.5.x/client-android/java/account/delete-authenticator.md +++ b/docs/examples/1.5.x/client-android/java/account/delete-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticatorType; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/delete-identity.md b/docs/examples/1.5.x/client-android/java/account/delete-identity.md index 1d6922a2f2e..6a62ea2a00b 100644 --- a/docs/examples/1.5.x/client-android/java/account/delete-identity.md +++ b/docs/examples/1.5.x/client-android/java/account/delete-identity.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/client-android/java/account/delete-mfa-authenticator.md index e8219307b90..bb6cb09f0ab 100644 --- a/docs/examples/1.5.x/client-android/java/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-android/java/account/delete-mfa-authenticator.md @@ -5,13 +5,12 @@ import io.appwrite.enums.AuthenticatorType; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); account.deleteMfaAuthenticator( AuthenticatorType.TOTP, // type - "<OTP>", // otp new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/client-android/java/account/delete-push-target.md b/docs/examples/1.5.x/client-android/java/account/delete-push-target.md index 484fc2cb138..c3208004190 100644 --- a/docs/examples/1.5.x/client-android/java/account/delete-push-target.md +++ b/docs/examples/1.5.x/client-android/java/account/delete-push-target.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/delete-session.md b/docs/examples/1.5.x/client-android/java/account/delete-session.md index 43440614385..2efc0f64634 100644 --- a/docs/examples/1.5.x/client-android/java/account/delete-session.md +++ b/docs/examples/1.5.x/client-android/java/account/delete-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/delete-sessions.md b/docs/examples/1.5.x/client-android/java/account/delete-sessions.md index 147523ed2a2..d4c438070e4 100644 --- a/docs/examples/1.5.x/client-android/java/account/delete-sessions.md +++ b/docs/examples/1.5.x/client-android/java/account/delete-sessions.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/client-android/java/account/get-mfa-recovery-codes.md index 14e5023a176..acf5984f691 100644 --- a/docs/examples/1.5.x/client-android/java/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-android/java/account/get-mfa-recovery-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/get-prefs.md b/docs/examples/1.5.x/client-android/java/account/get-prefs.md index bfa3c1a0e22..0fea3fe40a8 100644 --- a/docs/examples/1.5.x/client-android/java/account/get-prefs.md +++ b/docs/examples/1.5.x/client-android/java/account/get-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/get-session.md b/docs/examples/1.5.x/client-android/java/account/get-session.md index 470f643b734..3ce4ab5177c 100644 --- a/docs/examples/1.5.x/client-android/java/account/get-session.md +++ b/docs/examples/1.5.x/client-android/java/account/get-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/get.md b/docs/examples/1.5.x/client-android/java/account/get.md index 9006cb84110..5c25ed08cd1 100644 --- a/docs/examples/1.5.x/client-android/java/account/get.md +++ b/docs/examples/1.5.x/client-android/java/account/get.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/list-factors.md b/docs/examples/1.5.x/client-android/java/account/list-factors.md index e2d92b5e803..4e83332a6e1 100644 --- a/docs/examples/1.5.x/client-android/java/account/list-factors.md +++ b/docs/examples/1.5.x/client-android/java/account/list-factors.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/list-identities.md b/docs/examples/1.5.x/client-android/java/account/list-identities.md index cb5f74eccaa..7f9449dc225 100644 --- a/docs/examples/1.5.x/client-android/java/account/list-identities.md +++ b/docs/examples/1.5.x/client-android/java/account/list-identities.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/list-logs.md b/docs/examples/1.5.x/client-android/java/account/list-logs.md index 998d8a88f6c..3aa66e2b8d9 100644 --- a/docs/examples/1.5.x/client-android/java/account/list-logs.md +++ b/docs/examples/1.5.x/client-android/java/account/list-logs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/list-mfa-factors.md b/docs/examples/1.5.x/client-android/java/account/list-mfa-factors.md index e1a6fa69769..a10cb8d5205 100644 --- a/docs/examples/1.5.x/client-android/java/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/client-android/java/account/list-mfa-factors.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/list-sessions.md b/docs/examples/1.5.x/client-android/java/account/list-sessions.md index 9e70f0d70e9..aa8d37b3736 100644 --- a/docs/examples/1.5.x/client-android/java/account/list-sessions.md +++ b/docs/examples/1.5.x/client-android/java/account/list-sessions.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-challenge.md b/docs/examples/1.5.x/client-android/java/account/update-challenge.md index b2953e3347b..90c4c4d9582 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-challenge.md +++ b/docs/examples/1.5.x/client-android/java/account/update-challenge.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-email.md b/docs/examples/1.5.x/client-android/java/account/update-email.md index 13c5b65c3bb..98cf9076c49 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-email.md +++ b/docs/examples/1.5.x/client-android/java/account/update-email.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-m-f-a.md b/docs/examples/1.5.x/client-android/java/account/update-m-f-a.md index 7c774c7d7f3..620a20c2670 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-m-f-a.md +++ b/docs/examples/1.5.x/client-android/java/account/update-m-f-a.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/client-android/java/account/update-magic-u-r-l-session.md index 339b1f7134e..1b79b73b1c7 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/client-android/java/account/update-magic-u-r-l-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-mfa-authenticator.md b/docs/examples/1.5.x/client-android/java/account/update-mfa-authenticator.md index 44bb7f039dc..74321be38b7 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-android/java/account/update-mfa-authenticator.md @@ -5,7 +5,7 @@ import io.appwrite.enums.AuthenticatorType; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-mfa-challenge.md b/docs/examples/1.5.x/client-android/java/account/update-mfa-challenge.md index e30c733fa2d..a92f0070928 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/client-android/java/account/update-mfa-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/client-android/java/account/update-mfa-recovery-codes.md index 880d4780494..2aa82b1d440 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-android/java/account/update-mfa-recovery-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-name.md b/docs/examples/1.5.x/client-android/java/account/update-name.md index ff23acecf34..40a5e2ea554 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-name.md +++ b/docs/examples/1.5.x/client-android/java/account/update-name.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-password.md b/docs/examples/1.5.x/client-android/java/account/update-password.md index 764debfc2d7..355c06de71f 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-password.md +++ b/docs/examples/1.5.x/client-android/java/account/update-password.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-phone-session.md b/docs/examples/1.5.x/client-android/java/account/update-phone-session.md index 69d2dd76f0c..042238e397a 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-phone-session.md +++ b/docs/examples/1.5.x/client-android/java/account/update-phone-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-phone-verification.md b/docs/examples/1.5.x/client-android/java/account/update-phone-verification.md index 304e73edbc6..ba7b69cb343 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-phone-verification.md +++ b/docs/examples/1.5.x/client-android/java/account/update-phone-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-phone.md b/docs/examples/1.5.x/client-android/java/account/update-phone.md index 795700a632e..b3ce0f6816c 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-phone.md +++ b/docs/examples/1.5.x/client-android/java/account/update-phone.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-prefs.md b/docs/examples/1.5.x/client-android/java/account/update-prefs.md index 71eae4c26bb..d74606739f9 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-prefs.md +++ b/docs/examples/1.5.x/client-android/java/account/update-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-push-target.md b/docs/examples/1.5.x/client-android/java/account/update-push-target.md index 90dc29ea3ab..f9491e06b7a 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-push-target.md +++ b/docs/examples/1.5.x/client-android/java/account/update-push-target.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-recovery.md b/docs/examples/1.5.x/client-android/java/account/update-recovery.md index 527351ccefa..e172f12ccfc 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-recovery.md +++ b/docs/examples/1.5.x/client-android/java/account/update-recovery.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-session.md b/docs/examples/1.5.x/client-android/java/account/update-session.md index e2ef0c35a78..b3e8706d2b3 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-session.md +++ b/docs/examples/1.5.x/client-android/java/account/update-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-status.md b/docs/examples/1.5.x/client-android/java/account/update-status.md index 61cb9449232..22166492842 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-status.md +++ b/docs/examples/1.5.x/client-android/java/account/update-status.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/update-verification.md b/docs/examples/1.5.x/client-android/java/account/update-verification.md index 3f141961e03..25949432439 100644 --- a/docs/examples/1.5.x/client-android/java/account/update-verification.md +++ b/docs/examples/1.5.x/client-android/java/account/update-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/account/verify-authenticator.md b/docs/examples/1.5.x/client-android/java/account/verify-authenticator.md index c73ac43fbb7..71261975204 100644 --- a/docs/examples/1.5.x/client-android/java/account/verify-authenticator.md +++ b/docs/examples/1.5.x/client-android/java/account/verify-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticatorType; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/client-android/java/avatars/get-browser.md b/docs/examples/1.5.x/client-android/java/avatars/get-browser.md index a7b9e7f0478..f7e8651dfa1 100644 --- a/docs/examples/1.5.x/client-android/java/avatars/get-browser.md +++ b/docs/examples/1.5.x/client-android/java/avatars/get-browser.md @@ -5,7 +5,7 @@ import io.appwrite.enums.Browser; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-android/java/avatars/get-credit-card.md b/docs/examples/1.5.x/client-android/java/avatars/get-credit-card.md index 61a8a5101e2..5b1ee0660e1 100644 --- a/docs/examples/1.5.x/client-android/java/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/client-android/java/avatars/get-credit-card.md @@ -5,7 +5,7 @@ import io.appwrite.enums.CreditCard; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-android/java/avatars/get-favicon.md b/docs/examples/1.5.x/client-android/java/avatars/get-favicon.md index d2f86c0971a..05bf590d721 100644 --- a/docs/examples/1.5.x/client-android/java/avatars/get-favicon.md +++ b/docs/examples/1.5.x/client-android/java/avatars/get-favicon.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-android/java/avatars/get-flag.md b/docs/examples/1.5.x/client-android/java/avatars/get-flag.md index dc8cc2901b3..6a2185c543f 100644 --- a/docs/examples/1.5.x/client-android/java/avatars/get-flag.md +++ b/docs/examples/1.5.x/client-android/java/avatars/get-flag.md @@ -5,7 +5,7 @@ import io.appwrite.enums.Flag; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-android/java/avatars/get-image.md b/docs/examples/1.5.x/client-android/java/avatars/get-image.md index 81e80292ab9..78fbf98f90a 100644 --- a/docs/examples/1.5.x/client-android/java/avatars/get-image.md +++ b/docs/examples/1.5.x/client-android/java/avatars/get-image.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-android/java/avatars/get-initials.md b/docs/examples/1.5.x/client-android/java/avatars/get-initials.md index f6c3ee6bd30..621798be3a0 100644 --- a/docs/examples/1.5.x/client-android/java/avatars/get-initials.md +++ b/docs/examples/1.5.x/client-android/java/avatars/get-initials.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-android/java/avatars/get-q-r.md b/docs/examples/1.5.x/client-android/java/avatars/get-q-r.md index d75b3b3b25a..fc8bc4397ef 100644 --- a/docs/examples/1.5.x/client-android/java/avatars/get-q-r.md +++ b/docs/examples/1.5.x/client-android/java/avatars/get-q-r.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-android/java/databases/create-document.md b/docs/examples/1.5.x/client-android/java/databases/create-document.md index 361d5fef1ff..6c7e068be88 100644 --- a/docs/examples/1.5.x/client-android/java/databases/create-document.md +++ b/docs/examples/1.5.x/client-android/java/databases/create-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/client-android/java/databases/delete-document.md b/docs/examples/1.5.x/client-android/java/databases/delete-document.md index 26b67a239bc..0cbd6b50711 100644 --- a/docs/examples/1.5.x/client-android/java/databases/delete-document.md +++ b/docs/examples/1.5.x/client-android/java/databases/delete-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/client-android/java/databases/get-document.md b/docs/examples/1.5.x/client-android/java/databases/get-document.md index ac894897c75..0918c884505 100644 --- a/docs/examples/1.5.x/client-android/java/databases/get-document.md +++ b/docs/examples/1.5.x/client-android/java/databases/get-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/client-android/java/databases/list-documents.md b/docs/examples/1.5.x/client-android/java/databases/list-documents.md index 9f7042587b3..9cc722b0f37 100644 --- a/docs/examples/1.5.x/client-android/java/databases/list-documents.md +++ b/docs/examples/1.5.x/client-android/java/databases/list-documents.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/client-android/java/databases/update-document.md b/docs/examples/1.5.x/client-android/java/databases/update-document.md index 430a617d68e..ccfb4982c9c 100644 --- a/docs/examples/1.5.x/client-android/java/databases/update-document.md +++ b/docs/examples/1.5.x/client-android/java/databases/update-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/client-android/java/functions/create-execution.md b/docs/examples/1.5.x/client-android/java/functions/create-execution.md index 0db569bc2f6..845f02ea70b 100644 --- a/docs/examples/1.5.x/client-android/java/functions/create-execution.md +++ b/docs/examples/1.5.x/client-android/java/functions/create-execution.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Functions functions = new Functions(client); @@ -15,6 +15,7 @@ functions.createExecution( "<PATH>", // path (optional) ExecutionMethod.GET, // method (optional) mapOf( "a" to "b" ), // headers (optional) + "", // scheduledAt (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/client-android/java/functions/get-execution.md b/docs/examples/1.5.x/client-android/java/functions/get-execution.md index 66bf2639c01..c53ef0e093f 100644 --- a/docs/examples/1.5.x/client-android/java/functions/get-execution.md +++ b/docs/examples/1.5.x/client-android/java/functions/get-execution.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/client-android/java/functions/list-executions.md b/docs/examples/1.5.x/client-android/java/functions/list-executions.md index 1bb510a4a20..b796dc96b31 100644 --- a/docs/examples/1.5.x/client-android/java/functions/list-executions.md +++ b/docs/examples/1.5.x/client-android/java/functions/list-executions.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/client-android/java/graphql/mutation.md b/docs/examples/1.5.x/client-android/java/graphql/mutation.md index a7e5f6e3589..b79903b711e 100644 --- a/docs/examples/1.5.x/client-android/java/graphql/mutation.md +++ b/docs/examples/1.5.x/client-android/java/graphql/mutation.md @@ -4,7 +4,7 @@ import io.appwrite.services.Graphql; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.5.x/client-android/java/graphql/query.md b/docs/examples/1.5.x/client-android/java/graphql/query.md index a6420b4a0c7..82bad13666a 100644 --- a/docs/examples/1.5.x/client-android/java/graphql/query.md +++ b/docs/examples/1.5.x/client-android/java/graphql/query.md @@ -4,7 +4,7 @@ import io.appwrite.services.Graphql; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.5.x/client-android/java/locale/get.md b/docs/examples/1.5.x/client-android/java/locale/get.md index cc378966301..29b542f41fd 100644 --- a/docs/examples/1.5.x/client-android/java/locale/get.md +++ b/docs/examples/1.5.x/client-android/java/locale/get.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/client-android/java/locale/list-codes.md b/docs/examples/1.5.x/client-android/java/locale/list-codes.md index 3fbdf85d5ef..d8c9a0bc6b8 100644 --- a/docs/examples/1.5.x/client-android/java/locale/list-codes.md +++ b/docs/examples/1.5.x/client-android/java/locale/list-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/client-android/java/locale/list-continents.md b/docs/examples/1.5.x/client-android/java/locale/list-continents.md index 296eaded39a..cf43045f6ab 100644 --- a/docs/examples/1.5.x/client-android/java/locale/list-continents.md +++ b/docs/examples/1.5.x/client-android/java/locale/list-continents.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/client-android/java/locale/list-countries-e-u.md b/docs/examples/1.5.x/client-android/java/locale/list-countries-e-u.md index f674ac5bf19..b7b56ab8170 100644 --- a/docs/examples/1.5.x/client-android/java/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/client-android/java/locale/list-countries-e-u.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/client-android/java/locale/list-countries-phones.md b/docs/examples/1.5.x/client-android/java/locale/list-countries-phones.md index 6280cbb860b..c3598c07390 100644 --- a/docs/examples/1.5.x/client-android/java/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/client-android/java/locale/list-countries-phones.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/client-android/java/locale/list-countries.md b/docs/examples/1.5.x/client-android/java/locale/list-countries.md index eab9ae2a72a..91ac0520bed 100644 --- a/docs/examples/1.5.x/client-android/java/locale/list-countries.md +++ b/docs/examples/1.5.x/client-android/java/locale/list-countries.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/client-android/java/locale/list-currencies.md b/docs/examples/1.5.x/client-android/java/locale/list-currencies.md index 662e0253af7..5233004baef 100644 --- a/docs/examples/1.5.x/client-android/java/locale/list-currencies.md +++ b/docs/examples/1.5.x/client-android/java/locale/list-currencies.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/client-android/java/locale/list-languages.md b/docs/examples/1.5.x/client-android/java/locale/list-languages.md index dd68bf26d9b..0f10563846e 100644 --- a/docs/examples/1.5.x/client-android/java/locale/list-languages.md +++ b/docs/examples/1.5.x/client-android/java/locale/list-languages.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/client-android/java/messaging/create-subscriber.md b/docs/examples/1.5.x/client-android/java/messaging/create-subscriber.md index e83b43c05da..e8fa79f772b 100644 --- a/docs/examples/1.5.x/client-android/java/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/client-android/java/messaging/create-subscriber.md @@ -4,7 +4,7 @@ import io.appwrite.services.Messaging; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/client-android/java/messaging/delete-subscriber.md b/docs/examples/1.5.x/client-android/java/messaging/delete-subscriber.md index 5e8302b5d99..7e5b3d20175 100644 --- a/docs/examples/1.5.x/client-android/java/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/client-android/java/messaging/delete-subscriber.md @@ -4,7 +4,7 @@ import io.appwrite.services.Messaging; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/client-android/java/storage/create-file.md b/docs/examples/1.5.x/client-android/java/storage/create-file.md index a0605520e01..bc9ebed4f4f 100644 --- a/docs/examples/1.5.x/client-android/java/storage/create-file.md +++ b/docs/examples/1.5.x/client-android/java/storage/create-file.md @@ -5,7 +5,7 @@ import io.appwrite.services.Storage; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/client-android/java/storage/delete-file.md b/docs/examples/1.5.x/client-android/java/storage/delete-file.md index 113dfceeb3c..eaeb47b669b 100644 --- a/docs/examples/1.5.x/client-android/java/storage/delete-file.md +++ b/docs/examples/1.5.x/client-android/java/storage/delete-file.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/client-android/java/storage/get-file-download.md b/docs/examples/1.5.x/client-android/java/storage/get-file-download.md index 22207caea21..d0fdc41f76a 100644 --- a/docs/examples/1.5.x/client-android/java/storage/get-file-download.md +++ b/docs/examples/1.5.x/client-android/java/storage/get-file-download.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/client-android/java/storage/get-file-preview.md b/docs/examples/1.5.x/client-android/java/storage/get-file-preview.md index df81fb40473..c935e6fe2b5 100644 --- a/docs/examples/1.5.x/client-android/java/storage/get-file-preview.md +++ b/docs/examples/1.5.x/client-android/java/storage/get-file-preview.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/client-android/java/storage/get-file-view.md b/docs/examples/1.5.x/client-android/java/storage/get-file-view.md index d64c3e6a1d4..bbfd04d51a7 100644 --- a/docs/examples/1.5.x/client-android/java/storage/get-file-view.md +++ b/docs/examples/1.5.x/client-android/java/storage/get-file-view.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/client-android/java/storage/get-file.md b/docs/examples/1.5.x/client-android/java/storage/get-file.md index b68bf7897f0..a63122f57a8 100644 --- a/docs/examples/1.5.x/client-android/java/storage/get-file.md +++ b/docs/examples/1.5.x/client-android/java/storage/get-file.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/client-android/java/storage/list-files.md b/docs/examples/1.5.x/client-android/java/storage/list-files.md index 8b84ecb4529..dc327fc70a2 100644 --- a/docs/examples/1.5.x/client-android/java/storage/list-files.md +++ b/docs/examples/1.5.x/client-android/java/storage/list-files.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/client-android/java/storage/update-file.md b/docs/examples/1.5.x/client-android/java/storage/update-file.md index 12b6443d982..ed81821cbea 100644 --- a/docs/examples/1.5.x/client-android/java/storage/update-file.md +++ b/docs/examples/1.5.x/client-android/java/storage/update-file.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/client-android/java/teams/create-membership.md b/docs/examples/1.5.x/client-android/java/teams/create-membership.md index 468571ece2f..b30f1765c60 100644 --- a/docs/examples/1.5.x/client-android/java/teams/create-membership.md +++ b/docs/examples/1.5.x/client-android/java/teams/create-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/client-android/java/teams/create.md b/docs/examples/1.5.x/client-android/java/teams/create.md index 3c757acdb82..a0d4f07bc9b 100644 --- a/docs/examples/1.5.x/client-android/java/teams/create.md +++ b/docs/examples/1.5.x/client-android/java/teams/create.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/client-android/java/teams/delete-membership.md b/docs/examples/1.5.x/client-android/java/teams/delete-membership.md index e23409f7ad7..7f9189f55bc 100644 --- a/docs/examples/1.5.x/client-android/java/teams/delete-membership.md +++ b/docs/examples/1.5.x/client-android/java/teams/delete-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/client-android/java/teams/delete.md b/docs/examples/1.5.x/client-android/java/teams/delete.md index 567ea3dbd87..2f4e861248f 100644 --- a/docs/examples/1.5.x/client-android/java/teams/delete.md +++ b/docs/examples/1.5.x/client-android/java/teams/delete.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/client-android/java/teams/get-membership.md b/docs/examples/1.5.x/client-android/java/teams/get-membership.md index c09a267be09..529feb22942 100644 --- a/docs/examples/1.5.x/client-android/java/teams/get-membership.md +++ b/docs/examples/1.5.x/client-android/java/teams/get-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/client-android/java/teams/get-prefs.md b/docs/examples/1.5.x/client-android/java/teams/get-prefs.md index 48a98153c8c..61da757178e 100644 --- a/docs/examples/1.5.x/client-android/java/teams/get-prefs.md +++ b/docs/examples/1.5.x/client-android/java/teams/get-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/client-android/java/teams/get.md b/docs/examples/1.5.x/client-android/java/teams/get.md index 20a6f6a280d..39fe4d4a0ee 100644 --- a/docs/examples/1.5.x/client-android/java/teams/get.md +++ b/docs/examples/1.5.x/client-android/java/teams/get.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/client-android/java/teams/list-memberships.md b/docs/examples/1.5.x/client-android/java/teams/list-memberships.md index 2de609c2f5d..58430f074cb 100644 --- a/docs/examples/1.5.x/client-android/java/teams/list-memberships.md +++ b/docs/examples/1.5.x/client-android/java/teams/list-memberships.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/client-android/java/teams/list.md b/docs/examples/1.5.x/client-android/java/teams/list.md index 7f7910c2f9f..914509f47d1 100644 --- a/docs/examples/1.5.x/client-android/java/teams/list.md +++ b/docs/examples/1.5.x/client-android/java/teams/list.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/client-android/java/teams/update-membership-status.md b/docs/examples/1.5.x/client-android/java/teams/update-membership-status.md index 97e82427b19..513461331b1 100644 --- a/docs/examples/1.5.x/client-android/java/teams/update-membership-status.md +++ b/docs/examples/1.5.x/client-android/java/teams/update-membership-status.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/client-android/java/teams/update-membership.md b/docs/examples/1.5.x/client-android/java/teams/update-membership.md index 86f0ddd3f05..a60c2a0df3e 100644 --- a/docs/examples/1.5.x/client-android/java/teams/update-membership.md +++ b/docs/examples/1.5.x/client-android/java/teams/update-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/client-android/java/teams/update-name.md b/docs/examples/1.5.x/client-android/java/teams/update-name.md index 1aa96f8b192..54f218e411e 100644 --- a/docs/examples/1.5.x/client-android/java/teams/update-name.md +++ b/docs/examples/1.5.x/client-android/java/teams/update-name.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/client-android/java/teams/update-prefs.md b/docs/examples/1.5.x/client-android/java/teams/update-prefs.md index e188a99442c..eaa161e611b 100644 --- a/docs/examples/1.5.x/client-android/java/teams/update-prefs.md +++ b/docs/examples/1.5.x/client-android/java/teams/update-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/client-android/java/users/delete-authenticator.md b/docs/examples/1.5.x/client-android/java/users/delete-authenticator.md index 2de3df7934f..f86ca203157 100644 --- a/docs/examples/1.5.x/client-android/java/users/delete-authenticator.md +++ b/docs/examples/1.5.x/client-android/java/users/delete-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Users; import io.appwrite.enums.AuthenticatorProvider; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Users users = new Users(client); diff --git a/docs/examples/1.5.x/client-android/java/users/list-providers.md b/docs/examples/1.5.x/client-android/java/users/list-providers.md index ca2f27d818a..8e64a15b16a 100644 --- a/docs/examples/1.5.x/client-android/java/users/list-providers.md +++ b/docs/examples/1.5.x/client-android/java/users/list-providers.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Users users = new Users(client); diff --git a/docs/examples/1.5.x/client-android/kotlin/account/add-authenticator.md b/docs/examples/1.5.x/client-android/kotlin/account/add-authenticator.md index f96c175dcd3..c979d00e3ab 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/add-authenticator.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/add-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticatorType val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-anonymous-session.md b/docs/examples/1.5.x/client-android/kotlin/account/create-anonymous-session.md index 7961cc0ae48..50a011ae6b1 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-anonymous-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-challenge.md b/docs/examples/1.5.x/client-android/kotlin/account/create-challenge.md index 1018b96df5e..76a3ffb5963 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-challenge.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticationFactor val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-email-password-session.md b/docs/examples/1.5.x/client-android/kotlin/account/create-email-password-session.md index 57bc99b066e..8c447591381 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-email-password-session.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-email-password-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-email-token.md b/docs/examples/1.5.x/client-android/kotlin/account/create-email-token.md index dd0bdf3a888..219e7930d78 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-email-token.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-email-token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-j-w-t.md b/docs/examples/1.5.x/client-android/kotlin/account/create-j-w-t.md index 3aefe4af0c7..50014d4cb8e 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-j-w-t.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-j-w-t.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/client-android/kotlin/account/create-magic-u-r-l-token.md index dad908e8b33..905e942b5d9 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-magic-u-r-l-token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-mfa-authenticator.md b/docs/examples/1.5.x/client-android/kotlin/account/create-mfa-authenticator.md index f2ff748b121..dacf56a5a24 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-mfa-authenticator.md @@ -5,7 +5,7 @@ import io.appwrite.enums.AuthenticatorType val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-mfa-challenge.md b/docs/examples/1.5.x/client-android/kotlin/account/create-mfa-challenge.md index d43aa394596..22c965851de 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-mfa-challenge.md @@ -5,7 +5,7 @@ import io.appwrite.enums.AuthenticationFactor val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/client-android/kotlin/account/create-mfa-recovery-codes.md index be25e742022..364bc0eb9d4 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-mfa-recovery-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-o-auth2session.md b/docs/examples/1.5.x/client-android/kotlin/account/create-o-auth2session.md index d642de81cf5..fc9d8228c9d 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-o-auth2session.md @@ -5,7 +5,7 @@ import io.appwrite.enums.OAuthProvider val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-o-auth2token.md b/docs/examples/1.5.x/client-android/kotlin/account/create-o-auth2token.md index 7d651b125f6..11a814b1094 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-o-auth2token.md @@ -5,7 +5,7 @@ import io.appwrite.enums.OAuthProvider val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-phone-token.md b/docs/examples/1.5.x/client-android/kotlin/account/create-phone-token.md index 9e72059ee06..56b53c26881 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-phone-token.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-phone-token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-phone-verification.md b/docs/examples/1.5.x/client-android/kotlin/account/create-phone-verification.md index 3c94fb8e1ee..531aead542a 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-phone-verification.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-phone-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-push-target.md b/docs/examples/1.5.x/client-android/kotlin/account/create-push-target.md index 66729cc142f..7dd2101a63c 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-push-target.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-push-target.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-recovery.md b/docs/examples/1.5.x/client-android/kotlin/account/create-recovery.md index 8afb76c012c..d03bd323177 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-recovery.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-recovery.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-session.md b/docs/examples/1.5.x/client-android/kotlin/account/create-session.md index 49daa6b9d35..2b3da6d47bb 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-session.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create-verification.md b/docs/examples/1.5.x/client-android/kotlin/account/create-verification.md index 0638a36be86..54174be38b4 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create-verification.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create.md b/docs/examples/1.5.x/client-android/kotlin/account/create.md index 48b8b669118..2ee3ae4a1ef 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/create2f-a-challenge.md b/docs/examples/1.5.x/client-android/kotlin/account/create2f-a-challenge.md index 46084912921..650d5efb10d 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/create2f-a-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticationFactor val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/delete-authenticator.md b/docs/examples/1.5.x/client-android/kotlin/account/delete-authenticator.md index bc532b88f85..0387ead98a9 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/delete-authenticator.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/delete-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticatorType val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/delete-identity.md b/docs/examples/1.5.x/client-android/kotlin/account/delete-identity.md index 099b5ac1561..1e5d2065364 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/delete-identity.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/delete-identity.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/client-android/kotlin/account/delete-mfa-authenticator.md index c07afd099ef..48220b20c57 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/delete-mfa-authenticator.md @@ -5,11 +5,10 @@ import io.appwrite.enums.AuthenticatorType val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) val result = account.deleteMfaAuthenticator( type = AuthenticatorType.TOTP, - otp = "<OTP>", ) \ No newline at end of file diff --git a/docs/examples/1.5.x/client-android/kotlin/account/delete-push-target.md b/docs/examples/1.5.x/client-android/kotlin/account/delete-push-target.md index c20d04a1ba4..e67b180a4f2 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/delete-push-target.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/delete-push-target.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/delete-session.md b/docs/examples/1.5.x/client-android/kotlin/account/delete-session.md index ae2ed6747ab..0990989bfd6 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/delete-session.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/delete-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/delete-sessions.md b/docs/examples/1.5.x/client-android/kotlin/account/delete-sessions.md index 7caaea4696f..8c464e082bb 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/delete-sessions.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/delete-sessions.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/client-android/kotlin/account/get-mfa-recovery-codes.md index 4a1652c61a8..bd12e834a14 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/get-mfa-recovery-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/get-prefs.md b/docs/examples/1.5.x/client-android/kotlin/account/get-prefs.md index 08fdd136b61..9227effba72 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/get-prefs.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/get-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/get-session.md b/docs/examples/1.5.x/client-android/kotlin/account/get-session.md index d0520ce8de5..42e61fd4756 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/get-session.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/get-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/get.md b/docs/examples/1.5.x/client-android/kotlin/account/get.md index ed4874b184c..8c90304cbec 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/get.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/get.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/list-factors.md b/docs/examples/1.5.x/client-android/kotlin/account/list-factors.md index 05ba2b8c222..c3ed1ff03c8 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/list-factors.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/list-factors.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/list-identities.md b/docs/examples/1.5.x/client-android/kotlin/account/list-identities.md index bde60231a34..53e388d3d42 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/list-identities.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/list-identities.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/list-logs.md b/docs/examples/1.5.x/client-android/kotlin/account/list-logs.md index 56238f96f6c..683a94be453 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/list-logs.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/list-logs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/list-mfa-factors.md b/docs/examples/1.5.x/client-android/kotlin/account/list-mfa-factors.md index 9f8572ccc9e..ecfa6c2478a 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/list-mfa-factors.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/list-sessions.md b/docs/examples/1.5.x/client-android/kotlin/account/list-sessions.md index 9d64c74dff8..2da413da7b8 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/list-sessions.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/list-sessions.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-challenge.md b/docs/examples/1.5.x/client-android/kotlin/account/update-challenge.md index 2a82bfb7626..23fbdf90ec0 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-challenge.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-challenge.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-email.md b/docs/examples/1.5.x/client-android/kotlin/account/update-email.md index 5068962d7b6..072d6db9cae 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-email.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-email.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-m-f-a.md b/docs/examples/1.5.x/client-android/kotlin/account/update-m-f-a.md index 79494906e91..3cac098946d 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-m-f-a.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-m-f-a.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/client-android/kotlin/account/update-magic-u-r-l-session.md index 0abb033543a..52d0ad76e1b 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-magic-u-r-l-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-mfa-authenticator.md b/docs/examples/1.5.x/client-android/kotlin/account/update-mfa-authenticator.md index 8b1968019ed..321f25b2e8b 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-mfa-authenticator.md @@ -5,7 +5,7 @@ import io.appwrite.enums.AuthenticatorType val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-mfa-challenge.md b/docs/examples/1.5.x/client-android/kotlin/account/update-mfa-challenge.md index fe4cb1ecb04..021f51523f5 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-mfa-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/client-android/kotlin/account/update-mfa-recovery-codes.md index f39b7c69672..d4ea7f5f91e 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-mfa-recovery-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-name.md b/docs/examples/1.5.x/client-android/kotlin/account/update-name.md index 20aab9d8f89..374f84f2ec5 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-name.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-name.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-password.md b/docs/examples/1.5.x/client-android/kotlin/account/update-password.md index 86c862cc355..edf5117168c 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-password.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-password.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-phone-session.md b/docs/examples/1.5.x/client-android/kotlin/account/update-phone-session.md index 6c8fa6526e8..93e080dae91 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-phone-session.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-phone-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-phone-verification.md b/docs/examples/1.5.x/client-android/kotlin/account/update-phone-verification.md index 445a47e3d2b..226b21dcae8 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-phone-verification.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-phone-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-phone.md b/docs/examples/1.5.x/client-android/kotlin/account/update-phone.md index c8f50c34a32..772c099cd5f 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-phone.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-phone.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-prefs.md b/docs/examples/1.5.x/client-android/kotlin/account/update-prefs.md index f449ccb10cc..c5c7a3de3ea 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-prefs.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-push-target.md b/docs/examples/1.5.x/client-android/kotlin/account/update-push-target.md index 5fff5548713..c6e6f21ce31 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-push-target.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-push-target.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-recovery.md b/docs/examples/1.5.x/client-android/kotlin/account/update-recovery.md index da1f27edecd..b4481148e97 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-recovery.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-recovery.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-session.md b/docs/examples/1.5.x/client-android/kotlin/account/update-session.md index 32520394614..43d84e13c31 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-session.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-status.md b/docs/examples/1.5.x/client-android/kotlin/account/update-status.md index 2b542144460..4f44ce1a83c 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-status.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-status.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/update-verification.md b/docs/examples/1.5.x/client-android/kotlin/account/update-verification.md index 5f7f902276d..3c9c465afb3 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/update-verification.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/update-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/account/verify-authenticator.md b/docs/examples/1.5.x/client-android/kotlin/account/verify-authenticator.md index 9c306d4db39..9c9abd9dd1d 100644 --- a/docs/examples/1.5.x/client-android/kotlin/account/verify-authenticator.md +++ b/docs/examples/1.5.x/client-android/kotlin/account/verify-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticatorType val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/avatars/get-browser.md b/docs/examples/1.5.x/client-android/kotlin/avatars/get-browser.md index 1e632174836..34f6f28d2ad 100644 --- a/docs/examples/1.5.x/client-android/kotlin/avatars/get-browser.md +++ b/docs/examples/1.5.x/client-android/kotlin/avatars/get-browser.md @@ -5,7 +5,7 @@ import io.appwrite.enums.Browser val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/avatars/get-credit-card.md b/docs/examples/1.5.x/client-android/kotlin/avatars/get-credit-card.md index 23fbbfd4542..52eea79f6e2 100644 --- a/docs/examples/1.5.x/client-android/kotlin/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/client-android/kotlin/avatars/get-credit-card.md @@ -5,7 +5,7 @@ import io.appwrite.enums.CreditCard val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/avatars/get-favicon.md b/docs/examples/1.5.x/client-android/kotlin/avatars/get-favicon.md index a2d5e1884bf..5f83bdd0af0 100644 --- a/docs/examples/1.5.x/client-android/kotlin/avatars/get-favicon.md +++ b/docs/examples/1.5.x/client-android/kotlin/avatars/get-favicon.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/avatars/get-flag.md b/docs/examples/1.5.x/client-android/kotlin/avatars/get-flag.md index b1ac6326386..cfd5d010d17 100644 --- a/docs/examples/1.5.x/client-android/kotlin/avatars/get-flag.md +++ b/docs/examples/1.5.x/client-android/kotlin/avatars/get-flag.md @@ -5,7 +5,7 @@ import io.appwrite.enums.Flag val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/avatars/get-image.md b/docs/examples/1.5.x/client-android/kotlin/avatars/get-image.md index bb76b4cacde..a9a7c2aa5c6 100644 --- a/docs/examples/1.5.x/client-android/kotlin/avatars/get-image.md +++ b/docs/examples/1.5.x/client-android/kotlin/avatars/get-image.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/avatars/get-initials.md b/docs/examples/1.5.x/client-android/kotlin/avatars/get-initials.md index b2a1c25533a..bd2ae1b9b9f 100644 --- a/docs/examples/1.5.x/client-android/kotlin/avatars/get-initials.md +++ b/docs/examples/1.5.x/client-android/kotlin/avatars/get-initials.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/avatars/get-q-r.md b/docs/examples/1.5.x/client-android/kotlin/avatars/get-q-r.md index 853d94ec758..9e02a0c6ad7 100644 --- a/docs/examples/1.5.x/client-android/kotlin/avatars/get-q-r.md +++ b/docs/examples/1.5.x/client-android/kotlin/avatars/get-q-r.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/databases/create-document.md b/docs/examples/1.5.x/client-android/kotlin/databases/create-document.md index 10b6fdfefd3..2b77405d626 100644 --- a/docs/examples/1.5.x/client-android/kotlin/databases/create-document.md +++ b/docs/examples/1.5.x/client-android/kotlin/databases/create-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/databases/delete-document.md b/docs/examples/1.5.x/client-android/kotlin/databases/delete-document.md index 3eb114788e5..e3e6de326fc 100644 --- a/docs/examples/1.5.x/client-android/kotlin/databases/delete-document.md +++ b/docs/examples/1.5.x/client-android/kotlin/databases/delete-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/databases/get-document.md b/docs/examples/1.5.x/client-android/kotlin/databases/get-document.md index 6c5f92a73b5..6ed6c8ba62b 100644 --- a/docs/examples/1.5.x/client-android/kotlin/databases/get-document.md +++ b/docs/examples/1.5.x/client-android/kotlin/databases/get-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/databases/list-documents.md b/docs/examples/1.5.x/client-android/kotlin/databases/list-documents.md index 7b1e8512d29..ff419c44a61 100644 --- a/docs/examples/1.5.x/client-android/kotlin/databases/list-documents.md +++ b/docs/examples/1.5.x/client-android/kotlin/databases/list-documents.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/databases/update-document.md b/docs/examples/1.5.x/client-android/kotlin/databases/update-document.md index de6b1923083..630e2b6c66e 100644 --- a/docs/examples/1.5.x/client-android/kotlin/databases/update-document.md +++ b/docs/examples/1.5.x/client-android/kotlin/databases/update-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/functions/create-execution.md b/docs/examples/1.5.x/client-android/kotlin/functions/create-execution.md index de841868364..937bb4fdaa7 100644 --- a/docs/examples/1.5.x/client-android/kotlin/functions/create-execution.md +++ b/docs/examples/1.5.x/client-android/kotlin/functions/create-execution.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val functions = Functions(client) @@ -15,4 +15,5 @@ val result = functions.createExecution( path = "<PATH>", // (optional) method = ExecutionMethod.GET, // (optional) headers = mapOf( "a" to "b" ), // (optional) + scheduledAt = "", // (optional) ) \ No newline at end of file diff --git a/docs/examples/1.5.x/client-android/kotlin/functions/get-execution.md b/docs/examples/1.5.x/client-android/kotlin/functions/get-execution.md index 0c4de1e5e23..60b2e0f6306 100644 --- a/docs/examples/1.5.x/client-android/kotlin/functions/get-execution.md +++ b/docs/examples/1.5.x/client-android/kotlin/functions/get-execution.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/functions/list-executions.md b/docs/examples/1.5.x/client-android/kotlin/functions/list-executions.md index d28b32cccc0..90b2bf6ff10 100644 --- a/docs/examples/1.5.x/client-android/kotlin/functions/list-executions.md +++ b/docs/examples/1.5.x/client-android/kotlin/functions/list-executions.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/graphql/mutation.md b/docs/examples/1.5.x/client-android/kotlin/graphql/mutation.md index a429a664b01..e90c9ae301e 100644 --- a/docs/examples/1.5.x/client-android/kotlin/graphql/mutation.md +++ b/docs/examples/1.5.x/client-android/kotlin/graphql/mutation.md @@ -4,7 +4,7 @@ import io.appwrite.services.Graphql val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val graphql = Graphql(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/graphql/query.md b/docs/examples/1.5.x/client-android/kotlin/graphql/query.md index 0c39eddb2fe..2ce0cb10838 100644 --- a/docs/examples/1.5.x/client-android/kotlin/graphql/query.md +++ b/docs/examples/1.5.x/client-android/kotlin/graphql/query.md @@ -4,7 +4,7 @@ import io.appwrite.services.Graphql val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val graphql = Graphql(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/locale/get.md b/docs/examples/1.5.x/client-android/kotlin/locale/get.md index d38572a9048..f2f235a209e 100644 --- a/docs/examples/1.5.x/client-android/kotlin/locale/get.md +++ b/docs/examples/1.5.x/client-android/kotlin/locale/get.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/locale/list-codes.md b/docs/examples/1.5.x/client-android/kotlin/locale/list-codes.md index 9f506f06c4b..895c96df3a8 100644 --- a/docs/examples/1.5.x/client-android/kotlin/locale/list-codes.md +++ b/docs/examples/1.5.x/client-android/kotlin/locale/list-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/locale/list-continents.md b/docs/examples/1.5.x/client-android/kotlin/locale/list-continents.md index 96cfda556a3..e32034496c6 100644 --- a/docs/examples/1.5.x/client-android/kotlin/locale/list-continents.md +++ b/docs/examples/1.5.x/client-android/kotlin/locale/list-continents.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/locale/list-countries-e-u.md b/docs/examples/1.5.x/client-android/kotlin/locale/list-countries-e-u.md index 54faf5e6dc8..b9182aa1dec 100644 --- a/docs/examples/1.5.x/client-android/kotlin/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/client-android/kotlin/locale/list-countries-e-u.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/locale/list-countries-phones.md b/docs/examples/1.5.x/client-android/kotlin/locale/list-countries-phones.md index 9e4bec13f92..961ebd348f6 100644 --- a/docs/examples/1.5.x/client-android/kotlin/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/client-android/kotlin/locale/list-countries-phones.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/locale/list-countries.md b/docs/examples/1.5.x/client-android/kotlin/locale/list-countries.md index 4299efb5d26..1ebae69bead 100644 --- a/docs/examples/1.5.x/client-android/kotlin/locale/list-countries.md +++ b/docs/examples/1.5.x/client-android/kotlin/locale/list-countries.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/locale/list-currencies.md b/docs/examples/1.5.x/client-android/kotlin/locale/list-currencies.md index 2bb7ca7fe9a..7500aa717f9 100644 --- a/docs/examples/1.5.x/client-android/kotlin/locale/list-currencies.md +++ b/docs/examples/1.5.x/client-android/kotlin/locale/list-currencies.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/locale/list-languages.md b/docs/examples/1.5.x/client-android/kotlin/locale/list-languages.md index a9035e913a4..2be0ba59d60 100644 --- a/docs/examples/1.5.x/client-android/kotlin/locale/list-languages.md +++ b/docs/examples/1.5.x/client-android/kotlin/locale/list-languages.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/messaging/create-subscriber.md b/docs/examples/1.5.x/client-android/kotlin/messaging/create-subscriber.md index 3f1d476a6a0..db233422bd5 100644 --- a/docs/examples/1.5.x/client-android/kotlin/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/client-android/kotlin/messaging/create-subscriber.md @@ -4,7 +4,7 @@ import io.appwrite.services.Messaging val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/messaging/delete-subscriber.md b/docs/examples/1.5.x/client-android/kotlin/messaging/delete-subscriber.md index febf6225aa8..ab0d479df32 100644 --- a/docs/examples/1.5.x/client-android/kotlin/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/client-android/kotlin/messaging/delete-subscriber.md @@ -4,7 +4,7 @@ import io.appwrite.services.Messaging val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/storage/create-file.md b/docs/examples/1.5.x/client-android/kotlin/storage/create-file.md index ccd342ee2c6..d327e724a0c 100644 --- a/docs/examples/1.5.x/client-android/kotlin/storage/create-file.md +++ b/docs/examples/1.5.x/client-android/kotlin/storage/create-file.md @@ -5,7 +5,7 @@ import io.appwrite.services.Storage val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/storage/delete-file.md b/docs/examples/1.5.x/client-android/kotlin/storage/delete-file.md index 8def7d99d91..60df78e7369 100644 --- a/docs/examples/1.5.x/client-android/kotlin/storage/delete-file.md +++ b/docs/examples/1.5.x/client-android/kotlin/storage/delete-file.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/storage/get-file-download.md b/docs/examples/1.5.x/client-android/kotlin/storage/get-file-download.md index c6e8fa4b245..bb975411ba7 100644 --- a/docs/examples/1.5.x/client-android/kotlin/storage/get-file-download.md +++ b/docs/examples/1.5.x/client-android/kotlin/storage/get-file-download.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/storage/get-file-preview.md b/docs/examples/1.5.x/client-android/kotlin/storage/get-file-preview.md index 9c9993cb5dc..904f3ec103b 100644 --- a/docs/examples/1.5.x/client-android/kotlin/storage/get-file-preview.md +++ b/docs/examples/1.5.x/client-android/kotlin/storage/get-file-preview.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/storage/get-file-view.md b/docs/examples/1.5.x/client-android/kotlin/storage/get-file-view.md index 83f8b3196c1..898c1eec425 100644 --- a/docs/examples/1.5.x/client-android/kotlin/storage/get-file-view.md +++ b/docs/examples/1.5.x/client-android/kotlin/storage/get-file-view.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/storage/get-file.md b/docs/examples/1.5.x/client-android/kotlin/storage/get-file.md index df662eabb81..a07095d3754 100644 --- a/docs/examples/1.5.x/client-android/kotlin/storage/get-file.md +++ b/docs/examples/1.5.x/client-android/kotlin/storage/get-file.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/storage/list-files.md b/docs/examples/1.5.x/client-android/kotlin/storage/list-files.md index 4e28fc52ef9..640b7050d0e 100644 --- a/docs/examples/1.5.x/client-android/kotlin/storage/list-files.md +++ b/docs/examples/1.5.x/client-android/kotlin/storage/list-files.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/storage/update-file.md b/docs/examples/1.5.x/client-android/kotlin/storage/update-file.md index c84dadb72a8..f7a20f0d128 100644 --- a/docs/examples/1.5.x/client-android/kotlin/storage/update-file.md +++ b/docs/examples/1.5.x/client-android/kotlin/storage/update-file.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/teams/create-membership.md b/docs/examples/1.5.x/client-android/kotlin/teams/create-membership.md index a892663e102..63f3c67d8f9 100644 --- a/docs/examples/1.5.x/client-android/kotlin/teams/create-membership.md +++ b/docs/examples/1.5.x/client-android/kotlin/teams/create-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/teams/create.md b/docs/examples/1.5.x/client-android/kotlin/teams/create.md index 22d6e7f981b..f214a3733e7 100644 --- a/docs/examples/1.5.x/client-android/kotlin/teams/create.md +++ b/docs/examples/1.5.x/client-android/kotlin/teams/create.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/teams/delete-membership.md b/docs/examples/1.5.x/client-android/kotlin/teams/delete-membership.md index 66e57169e0a..f3a54b38db2 100644 --- a/docs/examples/1.5.x/client-android/kotlin/teams/delete-membership.md +++ b/docs/examples/1.5.x/client-android/kotlin/teams/delete-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/teams/delete.md b/docs/examples/1.5.x/client-android/kotlin/teams/delete.md index a73fa75b912..bc8e8d0c97c 100644 --- a/docs/examples/1.5.x/client-android/kotlin/teams/delete.md +++ b/docs/examples/1.5.x/client-android/kotlin/teams/delete.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/teams/get-membership.md b/docs/examples/1.5.x/client-android/kotlin/teams/get-membership.md index 80640c71ff3..e5a589e061f 100644 --- a/docs/examples/1.5.x/client-android/kotlin/teams/get-membership.md +++ b/docs/examples/1.5.x/client-android/kotlin/teams/get-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/teams/get-prefs.md b/docs/examples/1.5.x/client-android/kotlin/teams/get-prefs.md index 31001bd2777..af7503a4346 100644 --- a/docs/examples/1.5.x/client-android/kotlin/teams/get-prefs.md +++ b/docs/examples/1.5.x/client-android/kotlin/teams/get-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/teams/get.md b/docs/examples/1.5.x/client-android/kotlin/teams/get.md index 4387118eccc..70759bcb882 100644 --- a/docs/examples/1.5.x/client-android/kotlin/teams/get.md +++ b/docs/examples/1.5.x/client-android/kotlin/teams/get.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/teams/list-memberships.md b/docs/examples/1.5.x/client-android/kotlin/teams/list-memberships.md index 7c8c686e958..abb140e2ddb 100644 --- a/docs/examples/1.5.x/client-android/kotlin/teams/list-memberships.md +++ b/docs/examples/1.5.x/client-android/kotlin/teams/list-memberships.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/teams/list.md b/docs/examples/1.5.x/client-android/kotlin/teams/list.md index e73d9e46d28..5d808736caa 100644 --- a/docs/examples/1.5.x/client-android/kotlin/teams/list.md +++ b/docs/examples/1.5.x/client-android/kotlin/teams/list.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/teams/update-membership-status.md b/docs/examples/1.5.x/client-android/kotlin/teams/update-membership-status.md index 08668921d0b..9ecf4170dea 100644 --- a/docs/examples/1.5.x/client-android/kotlin/teams/update-membership-status.md +++ b/docs/examples/1.5.x/client-android/kotlin/teams/update-membership-status.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/teams/update-membership.md b/docs/examples/1.5.x/client-android/kotlin/teams/update-membership.md index 799c5946c01..15b2ac08e9b 100644 --- a/docs/examples/1.5.x/client-android/kotlin/teams/update-membership.md +++ b/docs/examples/1.5.x/client-android/kotlin/teams/update-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/teams/update-name.md b/docs/examples/1.5.x/client-android/kotlin/teams/update-name.md index 5e2399a5939..0040737a660 100644 --- a/docs/examples/1.5.x/client-android/kotlin/teams/update-name.md +++ b/docs/examples/1.5.x/client-android/kotlin/teams/update-name.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/teams/update-prefs.md b/docs/examples/1.5.x/client-android/kotlin/teams/update-prefs.md index 62febab0507..f70a5eb99ca 100644 --- a/docs/examples/1.5.x/client-android/kotlin/teams/update-prefs.md +++ b/docs/examples/1.5.x/client-android/kotlin/teams/update-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client(context) .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/users/delete-authenticator.md b/docs/examples/1.5.x/client-android/kotlin/users/delete-authenticator.md index 9c361733fea..6a4a250bd17 100644 --- a/docs/examples/1.5.x/client-android/kotlin/users/delete-authenticator.md +++ b/docs/examples/1.5.x/client-android/kotlin/users/delete-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Users import io.appwrite.enums.AuthenticatorProvider val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val users = Users(client) diff --git a/docs/examples/1.5.x/client-android/kotlin/users/list-providers.md b/docs/examples/1.5.x/client-android/kotlin/users/list-providers.md index 008cf93706f..e757d6fbe6c 100644 --- a/docs/examples/1.5.x/client-android/kotlin/users/list-providers.md +++ b/docs/examples/1.5.x/client-android/kotlin/users/list-providers.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val users = Users(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/add-authenticator.md b/docs/examples/1.5.x/client-apple/examples/account/add-authenticator.md index a820b54de9d..37e83761e87 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/add-authenticator.md +++ b/docs/examples/1.5.x/client-apple/examples/account/add-authenticator.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/client-apple/examples/account/create-anonymous-session.md index 9904f6f222e..f676bac4da4 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-anonymous-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-challenge.md b/docs/examples/1.5.x/client-apple/examples/account/create-challenge.md index 9d3b54a152d..4ebb3cbbfa6 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-challenge.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-challenge.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-email-password-session.md b/docs/examples/1.5.x/client-apple/examples/account/create-email-password-session.md index 8740f0caa91..15051827b86 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-email-password-session.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-email-password-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-email-token.md b/docs/examples/1.5.x/client-apple/examples/account/create-email-token.md index 40535d583ab..b9d39ff27f9 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-email-token.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-email-token.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-j-w-t.md b/docs/examples/1.5.x/client-apple/examples/account/create-j-w-t.md index c18c3c940ab..c1c0f22dffc 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-j-w-t.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-j-w-t.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/client-apple/examples/account/create-magic-u-r-l-token.md index 1fd73607328..83eb681673b 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-magic-u-r-l-token.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/client-apple/examples/account/create-mfa-authenticator.md index 2146831781c..7b103e0b247 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-mfa-authenticator.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/client-apple/examples/account/create-mfa-challenge.md index 4045203b299..6d262d9c74a 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-mfa-challenge.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/client-apple/examples/account/create-mfa-recovery-codes.md index c49dca53baf..1390b9de69d 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-o-auth2session.md b/docs/examples/1.5.x/client-apple/examples/account/create-o-auth2session.md index e7d6a539e39..32da4a28419 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-o-auth2session.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/client-apple/examples/account/create-o-auth2token.md index 677450ecdbe..7bbfe98f48c 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-o-auth2token.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-phone-token.md b/docs/examples/1.5.x/client-apple/examples/account/create-phone-token.md index a0c3a8cd876..acb7a696bcb 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-phone-token.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-phone-token.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-phone-verification.md b/docs/examples/1.5.x/client-apple/examples/account/create-phone-verification.md index b628897c60a..e0c4a21d963 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-phone-verification.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-phone-verification.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-push-target.md b/docs/examples/1.5.x/client-apple/examples/account/create-push-target.md index 36135264e99..75d694bcf6b 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-push-target.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-push-target.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-recovery.md b/docs/examples/1.5.x/client-apple/examples/account/create-recovery.md index 8d48938a87e..65536ee2113 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-recovery.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-recovery.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-session.md b/docs/examples/1.5.x/client-apple/examples/account/create-session.md index 4ed985dda3a..3ea51195697 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-session.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create-verification.md b/docs/examples/1.5.x/client-apple/examples/account/create-verification.md index 2c96d202d01..702c3c52828 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create-verification.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create-verification.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create.md b/docs/examples/1.5.x/client-apple/examples/account/create.md index e7caef4dc0e..cad7e44c449 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/create2f-a-challenge.md b/docs/examples/1.5.x/client-apple/examples/account/create2f-a-challenge.md index 56386ccb9ca..5c0523f0f04 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/client-apple/examples/account/create2f-a-challenge.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/delete-authenticator.md b/docs/examples/1.5.x/client-apple/examples/account/delete-authenticator.md index 0836b13b5ae..81602b17202 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/delete-authenticator.md +++ b/docs/examples/1.5.x/client-apple/examples/account/delete-authenticator.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/delete-identity.md b/docs/examples/1.5.x/client-apple/examples/account/delete-identity.md index 335f4f74de8..37ca520d4cb 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/delete-identity.md +++ b/docs/examples/1.5.x/client-apple/examples/account/delete-identity.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/client-apple/examples/account/delete-mfa-authenticator.md index 8fef7735d00..d9fe0ad8ea2 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-apple/examples/account/delete-mfa-authenticator.md @@ -3,12 +3,11 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) let result = try await account.deleteMfaAuthenticator( - type: .totp, - otp: "<OTP>" + type: .totp ) diff --git a/docs/examples/1.5.x/client-apple/examples/account/delete-push-target.md b/docs/examples/1.5.x/client-apple/examples/account/delete-push-target.md index 9090710f4c9..660a9c0376a 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/delete-push-target.md +++ b/docs/examples/1.5.x/client-apple/examples/account/delete-push-target.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/delete-session.md b/docs/examples/1.5.x/client-apple/examples/account/delete-session.md index d7f13e3d821..59f89a9b5e0 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/delete-session.md +++ b/docs/examples/1.5.x/client-apple/examples/account/delete-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/delete-sessions.md b/docs/examples/1.5.x/client-apple/examples/account/delete-sessions.md index efb8c7cce11..bfce736622b 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/delete-sessions.md +++ b/docs/examples/1.5.x/client-apple/examples/account/delete-sessions.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/client-apple/examples/account/get-mfa-recovery-codes.md index 80b9550390c..79e3a2c8b33 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-apple/examples/account/get-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/get-prefs.md b/docs/examples/1.5.x/client-apple/examples/account/get-prefs.md index 5a9fb2e356c..0e7909bd124 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/get-prefs.md +++ b/docs/examples/1.5.x/client-apple/examples/account/get-prefs.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/get-session.md b/docs/examples/1.5.x/client-apple/examples/account/get-session.md index 63cb9e2b69b..3ed89fcbf23 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/get-session.md +++ b/docs/examples/1.5.x/client-apple/examples/account/get-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/get.md b/docs/examples/1.5.x/client-apple/examples/account/get.md index f29f83f8e8e..2a0c2a58130 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/get.md +++ b/docs/examples/1.5.x/client-apple/examples/account/get.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/list-factors.md b/docs/examples/1.5.x/client-apple/examples/account/list-factors.md index bc8ef1ae992..b7d00eaa1c3 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/list-factors.md +++ b/docs/examples/1.5.x/client-apple/examples/account/list-factors.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/list-identities.md b/docs/examples/1.5.x/client-apple/examples/account/list-identities.md index da9592ca714..4d8c580a180 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/list-identities.md +++ b/docs/examples/1.5.x/client-apple/examples/account/list-identities.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/list-logs.md b/docs/examples/1.5.x/client-apple/examples/account/list-logs.md index a90e2cbc649..ecb5617d0b3 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/list-logs.md +++ b/docs/examples/1.5.x/client-apple/examples/account/list-logs.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/client-apple/examples/account/list-mfa-factors.md index df34b641d2e..3af3427b29e 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/client-apple/examples/account/list-mfa-factors.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/list-sessions.md b/docs/examples/1.5.x/client-apple/examples/account/list-sessions.md index b160c89f9cd..8b9e165c488 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/list-sessions.md +++ b/docs/examples/1.5.x/client-apple/examples/account/list-sessions.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-challenge.md b/docs/examples/1.5.x/client-apple/examples/account/update-challenge.md index 4743d06080e..efdf38b3bab 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-challenge.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-challenge.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-email.md b/docs/examples/1.5.x/client-apple/examples/account/update-email.md index a8c37af9464..4dbd3359a74 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-email.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-email.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-m-f-a.md b/docs/examples/1.5.x/client-apple/examples/account/update-m-f-a.md index 82fded780ec..eefcd79fda2 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-m-f-a.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/client-apple/examples/account/update-magic-u-r-l-session.md index 6950792fb51..8e0a26a6ef7 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/client-apple/examples/account/update-mfa-authenticator.md index de645954155..8ef2b241011 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-mfa-authenticator.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/client-apple/examples/account/update-mfa-challenge.md index 109c7ba5657..1c5874f7841 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-mfa-challenge.md @@ -2,11 +2,11 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) -let result = try await account.updateMfaChallenge( +let session = try await account.updateMfaChallenge( challengeId: "<CHALLENGE_ID>", otp: "<OTP>" ) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/client-apple/examples/account/update-mfa-recovery-codes.md index 76b3835548a..fb5ea5a898c 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-name.md b/docs/examples/1.5.x/client-apple/examples/account/update-name.md index 7a493dbf94d..893d96c77e0 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-name.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-name.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-password.md b/docs/examples/1.5.x/client-apple/examples/account/update-password.md index cf27be34310..60737dc5d2f 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-password.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-password.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-phone-session.md b/docs/examples/1.5.x/client-apple/examples/account/update-phone-session.md index 71d404eee4a..50a88cbe519 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-phone-session.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-phone-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-phone-verification.md b/docs/examples/1.5.x/client-apple/examples/account/update-phone-verification.md index 13dcb2f9f1f..045ba8d9b67 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-phone-verification.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-phone-verification.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-phone.md b/docs/examples/1.5.x/client-apple/examples/account/update-phone.md index 306e8f5a939..b43b975179a 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-phone.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-phone.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-prefs.md b/docs/examples/1.5.x/client-apple/examples/account/update-prefs.md index cc765480c5e..ea49c34f049 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-prefs.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-push-target.md b/docs/examples/1.5.x/client-apple/examples/account/update-push-target.md index 345764632ab..351801e1be3 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-push-target.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-push-target.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-recovery.md b/docs/examples/1.5.x/client-apple/examples/account/update-recovery.md index aec12912ec2..1e50a14632d 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-recovery.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-recovery.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-session.md b/docs/examples/1.5.x/client-apple/examples/account/update-session.md index b879ab78467..5fe7116cc1e 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-session.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-status.md b/docs/examples/1.5.x/client-apple/examples/account/update-status.md index 3f2d823641d..a7f99c34027 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-status.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-status.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/update-verification.md b/docs/examples/1.5.x/client-apple/examples/account/update-verification.md index 57441c9d3f1..c17a787490c 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/update-verification.md +++ b/docs/examples/1.5.x/client-apple/examples/account/update-verification.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/account/verify-authenticator.md b/docs/examples/1.5.x/client-apple/examples/account/verify-authenticator.md index e71c52f39d8..c6096867384 100644 --- a/docs/examples/1.5.x/client-apple/examples/account/verify-authenticator.md +++ b/docs/examples/1.5.x/client-apple/examples/account/verify-authenticator.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/client-apple/examples/avatars/get-browser.md b/docs/examples/1.5.x/client-apple/examples/avatars/get-browser.md index 0c4a194c945..e18a2b2cc9f 100644 --- a/docs/examples/1.5.x/client-apple/examples/avatars/get-browser.md +++ b/docs/examples/1.5.x/client-apple/examples/avatars/get-browser.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.5.x/client-apple/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/client-apple/examples/avatars/get-credit-card.md index 08a89304cf5..94a7bf69c0e 100644 --- a/docs/examples/1.5.x/client-apple/examples/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/client-apple/examples/avatars/get-credit-card.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.5.x/client-apple/examples/avatars/get-favicon.md b/docs/examples/1.5.x/client-apple/examples/avatars/get-favicon.md index 0e72f0ba6bb..95af5f59820 100644 --- a/docs/examples/1.5.x/client-apple/examples/avatars/get-favicon.md +++ b/docs/examples/1.5.x/client-apple/examples/avatars/get-favicon.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.5.x/client-apple/examples/avatars/get-flag.md b/docs/examples/1.5.x/client-apple/examples/avatars/get-flag.md index 22d77fde25c..b79cf57ae84 100644 --- a/docs/examples/1.5.x/client-apple/examples/avatars/get-flag.md +++ b/docs/examples/1.5.x/client-apple/examples/avatars/get-flag.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.5.x/client-apple/examples/avatars/get-image.md b/docs/examples/1.5.x/client-apple/examples/avatars/get-image.md index 13e756ad85c..f01e21bf8d9 100644 --- a/docs/examples/1.5.x/client-apple/examples/avatars/get-image.md +++ b/docs/examples/1.5.x/client-apple/examples/avatars/get-image.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.5.x/client-apple/examples/avatars/get-initials.md b/docs/examples/1.5.x/client-apple/examples/avatars/get-initials.md index 482be2c18ef..8593288a816 100644 --- a/docs/examples/1.5.x/client-apple/examples/avatars/get-initials.md +++ b/docs/examples/1.5.x/client-apple/examples/avatars/get-initials.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.5.x/client-apple/examples/avatars/get-q-r.md b/docs/examples/1.5.x/client-apple/examples/avatars/get-q-r.md index d03d79a9ca8..370209a842d 100644 --- a/docs/examples/1.5.x/client-apple/examples/avatars/get-q-r.md +++ b/docs/examples/1.5.x/client-apple/examples/avatars/get-q-r.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.5.x/client-apple/examples/databases/create-document.md b/docs/examples/1.5.x/client-apple/examples/databases/create-document.md index 5631b7abb86..1dff3625769 100644 --- a/docs/examples/1.5.x/client-apple/examples/databases/create-document.md +++ b/docs/examples/1.5.x/client-apple/examples/databases/create-document.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.5.x/client-apple/examples/databases/delete-document.md b/docs/examples/1.5.x/client-apple/examples/databases/delete-document.md index 4926bd6872d..80ca2eb0a94 100644 --- a/docs/examples/1.5.x/client-apple/examples/databases/delete-document.md +++ b/docs/examples/1.5.x/client-apple/examples/databases/delete-document.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.5.x/client-apple/examples/databases/get-document.md b/docs/examples/1.5.x/client-apple/examples/databases/get-document.md index bd5c446c00d..fa7aeb9090d 100644 --- a/docs/examples/1.5.x/client-apple/examples/databases/get-document.md +++ b/docs/examples/1.5.x/client-apple/examples/databases/get-document.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.5.x/client-apple/examples/databases/list-documents.md b/docs/examples/1.5.x/client-apple/examples/databases/list-documents.md index c2377bd5765..6b2cbbca7a3 100644 --- a/docs/examples/1.5.x/client-apple/examples/databases/list-documents.md +++ b/docs/examples/1.5.x/client-apple/examples/databases/list-documents.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.5.x/client-apple/examples/databases/update-document.md b/docs/examples/1.5.x/client-apple/examples/databases/update-document.md index 9de18fdfa5b..22602720293 100644 --- a/docs/examples/1.5.x/client-apple/examples/databases/update-document.md +++ b/docs/examples/1.5.x/client-apple/examples/databases/update-document.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.5.x/client-apple/examples/functions/create-execution.md b/docs/examples/1.5.x/client-apple/examples/functions/create-execution.md index f74bd53e9af..6d585ea42b1 100644 --- a/docs/examples/1.5.x/client-apple/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/client-apple/examples/functions/create-execution.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let functions = Functions(client) @@ -13,6 +13,7 @@ let execution = try await functions.createExecution( async: false, // optional path: "<PATH>", // optional method: .gET, // optional - headers: [:] // optional + headers: [:], // optional + scheduledAt: "" // optional ) diff --git a/docs/examples/1.5.x/client-apple/examples/functions/get-execution.md b/docs/examples/1.5.x/client-apple/examples/functions/get-execution.md index e478988a19f..dbf12e17cbc 100644 --- a/docs/examples/1.5.x/client-apple/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/client-apple/examples/functions/get-execution.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let functions = Functions(client) diff --git a/docs/examples/1.5.x/client-apple/examples/functions/list-executions.md b/docs/examples/1.5.x/client-apple/examples/functions/list-executions.md index 618fea32b16..4eb2694f7c4 100644 --- a/docs/examples/1.5.x/client-apple/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/client-apple/examples/functions/list-executions.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let functions = Functions(client) diff --git a/docs/examples/1.5.x/client-apple/examples/graphql/mutation.md b/docs/examples/1.5.x/client-apple/examples/graphql/mutation.md index d58b881df4d..8e54971f840 100644 --- a/docs/examples/1.5.x/client-apple/examples/graphql/mutation.md +++ b/docs/examples/1.5.x/client-apple/examples/graphql/mutation.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let graphql = Graphql(client) diff --git a/docs/examples/1.5.x/client-apple/examples/graphql/query.md b/docs/examples/1.5.x/client-apple/examples/graphql/query.md index 0aba98aeb88..db93660f1d8 100644 --- a/docs/examples/1.5.x/client-apple/examples/graphql/query.md +++ b/docs/examples/1.5.x/client-apple/examples/graphql/query.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let graphql = Graphql(client) diff --git a/docs/examples/1.5.x/client-apple/examples/locale/get.md b/docs/examples/1.5.x/client-apple/examples/locale/get.md index d12470d66ab..ec071cd3a60 100644 --- a/docs/examples/1.5.x/client-apple/examples/locale/get.md +++ b/docs/examples/1.5.x/client-apple/examples/locale/get.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.5.x/client-apple/examples/locale/list-codes.md b/docs/examples/1.5.x/client-apple/examples/locale/list-codes.md index 5832aa4ced0..adb35393f42 100644 --- a/docs/examples/1.5.x/client-apple/examples/locale/list-codes.md +++ b/docs/examples/1.5.x/client-apple/examples/locale/list-codes.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.5.x/client-apple/examples/locale/list-continents.md b/docs/examples/1.5.x/client-apple/examples/locale/list-continents.md index 4853f77212d..934b2640513 100644 --- a/docs/examples/1.5.x/client-apple/examples/locale/list-continents.md +++ b/docs/examples/1.5.x/client-apple/examples/locale/list-continents.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.5.x/client-apple/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/client-apple/examples/locale/list-countries-e-u.md index 6e0a4d31d04..393e523847b 100644 --- a/docs/examples/1.5.x/client-apple/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/client-apple/examples/locale/list-countries-e-u.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.5.x/client-apple/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/client-apple/examples/locale/list-countries-phones.md index b4752eb469b..840e9043f62 100644 --- a/docs/examples/1.5.x/client-apple/examples/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/client-apple/examples/locale/list-countries-phones.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.5.x/client-apple/examples/locale/list-countries.md b/docs/examples/1.5.x/client-apple/examples/locale/list-countries.md index 75369d0606e..e6adb9e7d31 100644 --- a/docs/examples/1.5.x/client-apple/examples/locale/list-countries.md +++ b/docs/examples/1.5.x/client-apple/examples/locale/list-countries.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.5.x/client-apple/examples/locale/list-currencies.md b/docs/examples/1.5.x/client-apple/examples/locale/list-currencies.md index 92eea812756..b34a9715a76 100644 --- a/docs/examples/1.5.x/client-apple/examples/locale/list-currencies.md +++ b/docs/examples/1.5.x/client-apple/examples/locale/list-currencies.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.5.x/client-apple/examples/locale/list-languages.md b/docs/examples/1.5.x/client-apple/examples/locale/list-languages.md index 2184812b1e8..db41d39e007 100644 --- a/docs/examples/1.5.x/client-apple/examples/locale/list-languages.md +++ b/docs/examples/1.5.x/client-apple/examples/locale/list-languages.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.5.x/client-apple/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/client-apple/examples/messaging/create-subscriber.md index 9c25454d3e6..0e3793b7bcb 100644 --- a/docs/examples/1.5.x/client-apple/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/client-apple/examples/messaging/create-subscriber.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/client-apple/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/client-apple/examples/messaging/delete-subscriber.md index 1f5baabde44..3a8b7c40cee 100644 --- a/docs/examples/1.5.x/client-apple/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/client-apple/examples/messaging/delete-subscriber.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/client-apple/examples/storage/create-file.md b/docs/examples/1.5.x/client-apple/examples/storage/create-file.md index 6f467aa2426..2e5b945198e 100644 --- a/docs/examples/1.5.x/client-apple/examples/storage/create-file.md +++ b/docs/examples/1.5.x/client-apple/examples/storage/create-file.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.5.x/client-apple/examples/storage/delete-file.md b/docs/examples/1.5.x/client-apple/examples/storage/delete-file.md index 30d67210184..caeb173fc5f 100644 --- a/docs/examples/1.5.x/client-apple/examples/storage/delete-file.md +++ b/docs/examples/1.5.x/client-apple/examples/storage/delete-file.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.5.x/client-apple/examples/storage/get-file-download.md b/docs/examples/1.5.x/client-apple/examples/storage/get-file-download.md index bc7521a6831..3d8bf6bfb9e 100644 --- a/docs/examples/1.5.x/client-apple/examples/storage/get-file-download.md +++ b/docs/examples/1.5.x/client-apple/examples/storage/get-file-download.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.5.x/client-apple/examples/storage/get-file-preview.md b/docs/examples/1.5.x/client-apple/examples/storage/get-file-preview.md index 4d16f200c14..17e42f9065e 100644 --- a/docs/examples/1.5.x/client-apple/examples/storage/get-file-preview.md +++ b/docs/examples/1.5.x/client-apple/examples/storage/get-file-preview.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.5.x/client-apple/examples/storage/get-file-view.md b/docs/examples/1.5.x/client-apple/examples/storage/get-file-view.md index 9edf46bb996..e62afb77274 100644 --- a/docs/examples/1.5.x/client-apple/examples/storage/get-file-view.md +++ b/docs/examples/1.5.x/client-apple/examples/storage/get-file-view.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.5.x/client-apple/examples/storage/get-file.md b/docs/examples/1.5.x/client-apple/examples/storage/get-file.md index f07798834d8..367fd39b2ea 100644 --- a/docs/examples/1.5.x/client-apple/examples/storage/get-file.md +++ b/docs/examples/1.5.x/client-apple/examples/storage/get-file.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.5.x/client-apple/examples/storage/list-files.md b/docs/examples/1.5.x/client-apple/examples/storage/list-files.md index bc1129eb758..3996ba718cb 100644 --- a/docs/examples/1.5.x/client-apple/examples/storage/list-files.md +++ b/docs/examples/1.5.x/client-apple/examples/storage/list-files.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.5.x/client-apple/examples/storage/update-file.md b/docs/examples/1.5.x/client-apple/examples/storage/update-file.md index eaeb5dae467..37a3001e950 100644 --- a/docs/examples/1.5.x/client-apple/examples/storage/update-file.md +++ b/docs/examples/1.5.x/client-apple/examples/storage/update-file.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.5.x/client-apple/examples/teams/create-membership.md b/docs/examples/1.5.x/client-apple/examples/teams/create-membership.md index 032579083a3..e911b2aa5a5 100644 --- a/docs/examples/1.5.x/client-apple/examples/teams/create-membership.md +++ b/docs/examples/1.5.x/client-apple/examples/teams/create-membership.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.5.x/client-apple/examples/teams/create.md b/docs/examples/1.5.x/client-apple/examples/teams/create.md index e5307029e65..b355a633c67 100644 --- a/docs/examples/1.5.x/client-apple/examples/teams/create.md +++ b/docs/examples/1.5.x/client-apple/examples/teams/create.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.5.x/client-apple/examples/teams/delete-membership.md b/docs/examples/1.5.x/client-apple/examples/teams/delete-membership.md index 8cd8a9afea8..8252272ec77 100644 --- a/docs/examples/1.5.x/client-apple/examples/teams/delete-membership.md +++ b/docs/examples/1.5.x/client-apple/examples/teams/delete-membership.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.5.x/client-apple/examples/teams/delete.md b/docs/examples/1.5.x/client-apple/examples/teams/delete.md index 34edd05d9d5..1caee83031a 100644 --- a/docs/examples/1.5.x/client-apple/examples/teams/delete.md +++ b/docs/examples/1.5.x/client-apple/examples/teams/delete.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.5.x/client-apple/examples/teams/get-membership.md b/docs/examples/1.5.x/client-apple/examples/teams/get-membership.md index 9365dcd30b9..62e3a513ef5 100644 --- a/docs/examples/1.5.x/client-apple/examples/teams/get-membership.md +++ b/docs/examples/1.5.x/client-apple/examples/teams/get-membership.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.5.x/client-apple/examples/teams/get-prefs.md b/docs/examples/1.5.x/client-apple/examples/teams/get-prefs.md index 08e90631277..04ece549173 100644 --- a/docs/examples/1.5.x/client-apple/examples/teams/get-prefs.md +++ b/docs/examples/1.5.x/client-apple/examples/teams/get-prefs.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.5.x/client-apple/examples/teams/get.md b/docs/examples/1.5.x/client-apple/examples/teams/get.md index d5e956a327d..c5673bdae3b 100644 --- a/docs/examples/1.5.x/client-apple/examples/teams/get.md +++ b/docs/examples/1.5.x/client-apple/examples/teams/get.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.5.x/client-apple/examples/teams/list-memberships.md b/docs/examples/1.5.x/client-apple/examples/teams/list-memberships.md index bde4f9b629a..e85b11cecbe 100644 --- a/docs/examples/1.5.x/client-apple/examples/teams/list-memberships.md +++ b/docs/examples/1.5.x/client-apple/examples/teams/list-memberships.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.5.x/client-apple/examples/teams/list.md b/docs/examples/1.5.x/client-apple/examples/teams/list.md index c7ed8d45927..c5e7175d30d 100644 --- a/docs/examples/1.5.x/client-apple/examples/teams/list.md +++ b/docs/examples/1.5.x/client-apple/examples/teams/list.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.5.x/client-apple/examples/teams/update-membership-status.md b/docs/examples/1.5.x/client-apple/examples/teams/update-membership-status.md index b76670b3539..c50ef0e8610 100644 --- a/docs/examples/1.5.x/client-apple/examples/teams/update-membership-status.md +++ b/docs/examples/1.5.x/client-apple/examples/teams/update-membership-status.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.5.x/client-apple/examples/teams/update-membership.md b/docs/examples/1.5.x/client-apple/examples/teams/update-membership.md index 85a7cb57937..c4500a3ff10 100644 --- a/docs/examples/1.5.x/client-apple/examples/teams/update-membership.md +++ b/docs/examples/1.5.x/client-apple/examples/teams/update-membership.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.5.x/client-apple/examples/teams/update-name.md b/docs/examples/1.5.x/client-apple/examples/teams/update-name.md index a7e117ad1d3..64e2cab0370 100644 --- a/docs/examples/1.5.x/client-apple/examples/teams/update-name.md +++ b/docs/examples/1.5.x/client-apple/examples/teams/update-name.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.5.x/client-apple/examples/teams/update-prefs.md b/docs/examples/1.5.x/client-apple/examples/teams/update-prefs.md index 469ba86b0ab..a69d48567dc 100644 --- a/docs/examples/1.5.x/client-apple/examples/teams/update-prefs.md +++ b/docs/examples/1.5.x/client-apple/examples/teams/update-prefs.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.5.x/client-apple/examples/users/delete-authenticator.md b/docs/examples/1.5.x/client-apple/examples/users/delete-authenticator.md index 0ff210d3c4d..337ec1732db 100644 --- a/docs/examples/1.5.x/client-apple/examples/users/delete-authenticator.md +++ b/docs/examples/1.5.x/client-apple/examples/users/delete-authenticator.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let users = Users(client) diff --git a/docs/examples/1.5.x/client-apple/examples/users/list-providers.md b/docs/examples/1.5.x/client-apple/examples/users/list-providers.md index 974bce12237..9e6eb9f556d 100644 --- a/docs/examples/1.5.x/client-apple/examples/users/list-providers.md +++ b/docs/examples/1.5.x/client-apple/examples/users/list-providers.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let users = Users(client) diff --git a/docs/examples/1.5.x/client-flutter/examples/account/add-authenticator.md b/docs/examples/1.5.x/client-flutter/examples/account/add-authenticator.md index 6f32c0428d3..05c3d15a7f6 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/add-authenticator.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/add-authenticator.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/client-flutter/examples/account/create-anonymous-session.md index 8eea4bf4f5f..50887f10dea 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-anonymous-session.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-challenge.md b/docs/examples/1.5.x/client-flutter/examples/account/create-challenge.md index a66111694db..fc87bdf0975 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-challenge.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-challenge.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-email-password-session.md b/docs/examples/1.5.x/client-flutter/examples/account/create-email-password-session.md index d90d9e264c2..64c0e93ca24 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-email-password-session.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-email-password-session.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-email-token.md b/docs/examples/1.5.x/client-flutter/examples/account/create-email-token.md index 2532d82d919..140689a9044 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-email-token.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-email-token.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-j-w-t.md b/docs/examples/1.5.x/client-flutter/examples/account/create-j-w-t.md index 1e33c888d9f..256f28e0f3f 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-j-w-t.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-j-w-t.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/client-flutter/examples/account/create-magic-u-r-l-token.md index 8c430c86f91..cf2d1bd1feb 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-magic-u-r-l-token.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/client-flutter/examples/account/create-mfa-authenticator.md index b43ec1a6161..2b35cc9ed4f 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-mfa-authenticator.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/client-flutter/examples/account/create-mfa-challenge.md index 64bcb36730f..ad1b8c201f4 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-mfa-challenge.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/client-flutter/examples/account/create-mfa-recovery-codes.md index 68fdaaa4c52..22b3b44cafd 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-o-auth2session.md b/docs/examples/1.5.x/client-flutter/examples/account/create-o-auth2session.md index ea651e73055..d00a1c7144d 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-o-auth2session.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/client-flutter/examples/account/create-o-auth2token.md index 4227359c4fc..b1478bf9dff 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-o-auth2token.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-phone-token.md b/docs/examples/1.5.x/client-flutter/examples/account/create-phone-token.md index efcdcbe8ecc..08dce5f7b27 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-phone-token.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-phone-token.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-phone-verification.md b/docs/examples/1.5.x/client-flutter/examples/account/create-phone-verification.md index ad0da61dd35..727cfe50121 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-phone-verification.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-phone-verification.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-push-target.md b/docs/examples/1.5.x/client-flutter/examples/account/create-push-target.md index be945eec972..de324b842e2 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-push-target.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-push-target.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-recovery.md b/docs/examples/1.5.x/client-flutter/examples/account/create-recovery.md index 8b8a41a8690..09d0994dd1d 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-recovery.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-recovery.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-session.md b/docs/examples/1.5.x/client-flutter/examples/account/create-session.md index 29aca9c5df5..e35cc1978da 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-session.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-session.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create-verification.md b/docs/examples/1.5.x/client-flutter/examples/account/create-verification.md index c3a4f0f7f13..85142abee90 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create-verification.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create-verification.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create.md b/docs/examples/1.5.x/client-flutter/examples/account/create.md index 032c523e790..98f6fcbaa2c 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/create2f-a-challenge.md b/docs/examples/1.5.x/client-flutter/examples/account/create2f-a-challenge.md index f987391f8e2..7a05586efb1 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/create2f-a-challenge.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/delete-authenticator.md b/docs/examples/1.5.x/client-flutter/examples/account/delete-authenticator.md index f4f44b1b72b..ac6a9f0b02e 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/delete-authenticator.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/delete-authenticator.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/delete-identity.md b/docs/examples/1.5.x/client-flutter/examples/account/delete-identity.md index ab68036af93..9846a0c11c2 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/delete-identity.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/delete-identity.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/client-flutter/examples/account/delete-mfa-authenticator.md index 3f62177e18e..6d2a21ce896 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/delete-mfa-authenticator.md @@ -2,11 +2,10 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); await account.deleteMfaAuthenticator( type: AuthenticatorType.totp, - otp: '<OTP>', ); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/delete-push-target.md b/docs/examples/1.5.x/client-flutter/examples/account/delete-push-target.md index 2081bf670b5..f6ec230d718 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/delete-push-target.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/delete-push-target.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/delete-session.md b/docs/examples/1.5.x/client-flutter/examples/account/delete-session.md index 7f84f82a6d0..07978e2c114 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/delete-session.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/delete-session.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/delete-sessions.md b/docs/examples/1.5.x/client-flutter/examples/account/delete-sessions.md index c17afd0d91b..faafcb97bda 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/delete-sessions.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/delete-sessions.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/client-flutter/examples/account/get-mfa-recovery-codes.md index 008f8cede30..413fb059e6a 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/get-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/get-prefs.md b/docs/examples/1.5.x/client-flutter/examples/account/get-prefs.md index 6b3789962ac..bc7731daaa0 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/get-prefs.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/get-prefs.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/get-session.md b/docs/examples/1.5.x/client-flutter/examples/account/get-session.md index 6954e51e294..4958fd1c94d 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/get-session.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/get-session.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/get.md b/docs/examples/1.5.x/client-flutter/examples/account/get.md index 2790b57a0ef..c38dd7f4fdc 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/get.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/get.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/list-factors.md b/docs/examples/1.5.x/client-flutter/examples/account/list-factors.md index b58f175dcf5..d81e5277b5b 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/list-factors.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/list-factors.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/list-identities.md b/docs/examples/1.5.x/client-flutter/examples/account/list-identities.md index 763e25335b6..183d525b3bb 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/list-identities.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/list-identities.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/list-logs.md b/docs/examples/1.5.x/client-flutter/examples/account/list-logs.md index d3b06dd95eb..ec29b9510d1 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/list-logs.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/list-logs.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/client-flutter/examples/account/list-mfa-factors.md index 08186e3edc2..bb320225cd3 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/list-mfa-factors.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/list-sessions.md b/docs/examples/1.5.x/client-flutter/examples/account/list-sessions.md index 0bde760d310..3af2299e04d 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/list-sessions.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/list-sessions.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-challenge.md b/docs/examples/1.5.x/client-flutter/examples/account/update-challenge.md index a27e620fd74..409b432f6c7 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-challenge.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-challenge.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-email.md b/docs/examples/1.5.x/client-flutter/examples/account/update-email.md index 0ce8eb5ed5a..b3c7ffe9117 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-email.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-email.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-m-f-a.md b/docs/examples/1.5.x/client-flutter/examples/account/update-m-f-a.md index 1f5f709b07c..c376c72917d 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-m-f-a.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/client-flutter/examples/account/update-magic-u-r-l-session.md index 2eb4b33d802..e75aba3ffd7 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/client-flutter/examples/account/update-mfa-authenticator.md index 4f5074e29e2..d2d974fbfe9 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-mfa-authenticator.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/client-flutter/examples/account/update-mfa-challenge.md index 34c37801017..bbe7c03470a 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-mfa-challenge.md @@ -2,11 +2,11 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); - result = await account.updateMfaChallenge( +Session result = await account.updateMfaChallenge( challengeId: '<CHALLENGE_ID>', otp: '<OTP>', ); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/client-flutter/examples/account/update-mfa-recovery-codes.md index 914366fb32b..fd2aaf721b0 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-name.md b/docs/examples/1.5.x/client-flutter/examples/account/update-name.md index dc2c4c6afef..77e774c767b 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-name.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-name.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-password.md b/docs/examples/1.5.x/client-flutter/examples/account/update-password.md index 37c6ecf4e26..8d36c1f68da 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-password.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-password.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-phone-session.md b/docs/examples/1.5.x/client-flutter/examples/account/update-phone-session.md index f6871317631..64d8d84201c 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-phone-session.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-phone-session.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-phone-verification.md b/docs/examples/1.5.x/client-flutter/examples/account/update-phone-verification.md index 0facc29f158..5c67e1a5c01 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-phone-verification.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-phone-verification.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-phone.md b/docs/examples/1.5.x/client-flutter/examples/account/update-phone.md index 24000c4b9dc..6c9559db147 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-phone.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-phone.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-prefs.md b/docs/examples/1.5.x/client-flutter/examples/account/update-prefs.md index d83e25f911c..ca9b709a500 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-prefs.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-push-target.md b/docs/examples/1.5.x/client-flutter/examples/account/update-push-target.md index 0311d0be172..a54b1aa30f5 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-push-target.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-push-target.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-recovery.md b/docs/examples/1.5.x/client-flutter/examples/account/update-recovery.md index f87e8723b2f..648d25b1b67 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-recovery.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-recovery.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-session.md b/docs/examples/1.5.x/client-flutter/examples/account/update-session.md index 5a12ad273c9..2cdf32aae04 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-session.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-session.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-status.md b/docs/examples/1.5.x/client-flutter/examples/account/update-status.md index 8b7bc49c5a9..0b0fb95ea69 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-status.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-status.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/update-verification.md b/docs/examples/1.5.x/client-flutter/examples/account/update-verification.md index c3db86b8ca5..3071a0409ea 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/update-verification.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/update-verification.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/account/verify-authenticator.md b/docs/examples/1.5.x/client-flutter/examples/account/verify-authenticator.md index 74f7111bd85..19df7d90d27 100644 --- a/docs/examples/1.5.x/client-flutter/examples/account/verify-authenticator.md +++ b/docs/examples/1.5.x/client-flutter/examples/account/verify-authenticator.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/avatars/get-browser.md b/docs/examples/1.5.x/client-flutter/examples/avatars/get-browser.md index 6bc6e5410ed..21dae2114e0 100644 --- a/docs/examples/1.5.x/client-flutter/examples/avatars/get-browser.md +++ b/docs/examples/1.5.x/client-flutter/examples/avatars/get-browser.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Avatars avatars = Avatars(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/client-flutter/examples/avatars/get-credit-card.md index d5b96383adb..a580e3bdaa0 100644 --- a/docs/examples/1.5.x/client-flutter/examples/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/client-flutter/examples/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Avatars avatars = Avatars(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/avatars/get-favicon.md b/docs/examples/1.5.x/client-flutter/examples/avatars/get-favicon.md index 10047b4402a..f35f5a71a0e 100644 --- a/docs/examples/1.5.x/client-flutter/examples/avatars/get-favicon.md +++ b/docs/examples/1.5.x/client-flutter/examples/avatars/get-favicon.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Avatars avatars = Avatars(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/avatars/get-flag.md b/docs/examples/1.5.x/client-flutter/examples/avatars/get-flag.md index 66a5b202474..8f358261241 100644 --- a/docs/examples/1.5.x/client-flutter/examples/avatars/get-flag.md +++ b/docs/examples/1.5.x/client-flutter/examples/avatars/get-flag.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Avatars avatars = Avatars(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/avatars/get-image.md b/docs/examples/1.5.x/client-flutter/examples/avatars/get-image.md index 15f3ea6e649..5d8a9865371 100644 --- a/docs/examples/1.5.x/client-flutter/examples/avatars/get-image.md +++ b/docs/examples/1.5.x/client-flutter/examples/avatars/get-image.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Avatars avatars = Avatars(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/avatars/get-initials.md b/docs/examples/1.5.x/client-flutter/examples/avatars/get-initials.md index 2d540a1dbea..26302d02c38 100644 --- a/docs/examples/1.5.x/client-flutter/examples/avatars/get-initials.md +++ b/docs/examples/1.5.x/client-flutter/examples/avatars/get-initials.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Avatars avatars = Avatars(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/avatars/get-q-r.md b/docs/examples/1.5.x/client-flutter/examples/avatars/get-q-r.md index 94b34bdaa0f..40f0b5068c2 100644 --- a/docs/examples/1.5.x/client-flutter/examples/avatars/get-q-r.md +++ b/docs/examples/1.5.x/client-flutter/examples/avatars/get-q-r.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Avatars avatars = Avatars(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/databases/create-document.md b/docs/examples/1.5.x/client-flutter/examples/databases/create-document.md index 6645b4edc69..7853329a05f 100644 --- a/docs/examples/1.5.x/client-flutter/examples/databases/create-document.md +++ b/docs/examples/1.5.x/client-flutter/examples/databases/create-document.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/databases/delete-document.md b/docs/examples/1.5.x/client-flutter/examples/databases/delete-document.md index fc7c5ef1d5d..14cec01c0a7 100644 --- a/docs/examples/1.5.x/client-flutter/examples/databases/delete-document.md +++ b/docs/examples/1.5.x/client-flutter/examples/databases/delete-document.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/databases/get-document.md b/docs/examples/1.5.x/client-flutter/examples/databases/get-document.md index 4f2ba3e3b17..55206357b22 100644 --- a/docs/examples/1.5.x/client-flutter/examples/databases/get-document.md +++ b/docs/examples/1.5.x/client-flutter/examples/databases/get-document.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/databases/list-documents.md b/docs/examples/1.5.x/client-flutter/examples/databases/list-documents.md index da43b17d09d..e78a02de6b4 100644 --- a/docs/examples/1.5.x/client-flutter/examples/databases/list-documents.md +++ b/docs/examples/1.5.x/client-flutter/examples/databases/list-documents.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/databases/update-document.md b/docs/examples/1.5.x/client-flutter/examples/databases/update-document.md index 42f5b657266..29ee8781ff4 100644 --- a/docs/examples/1.5.x/client-flutter/examples/databases/update-document.md +++ b/docs/examples/1.5.x/client-flutter/examples/databases/update-document.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/functions/create-execution.md b/docs/examples/1.5.x/client-flutter/examples/functions/create-execution.md index 6ca5e14bbcf..94f0ae55819 100644 --- a/docs/examples/1.5.x/client-flutter/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/client-flutter/examples/functions/create-execution.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Functions functions = Functions(client); @@ -13,4 +13,5 @@ Execution result = await functions.createExecution( path: '<PATH>', // optional method: ExecutionMethod.gET, // optional headers: {}, // optional + scheduledAt: '', // optional ); diff --git a/docs/examples/1.5.x/client-flutter/examples/functions/get-execution.md b/docs/examples/1.5.x/client-flutter/examples/functions/get-execution.md index 67439f40681..b4595146242 100644 --- a/docs/examples/1.5.x/client-flutter/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/client-flutter/examples/functions/get-execution.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/functions/list-executions.md b/docs/examples/1.5.x/client-flutter/examples/functions/list-executions.md index 3902d6e7c8c..ba4b4e41d7e 100644 --- a/docs/examples/1.5.x/client-flutter/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/client-flutter/examples/functions/list-executions.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/graphql/mutation.md b/docs/examples/1.5.x/client-flutter/examples/graphql/mutation.md index d94c53158ad..1ac9ba0a0d6 100644 --- a/docs/examples/1.5.x/client-flutter/examples/graphql/mutation.md +++ b/docs/examples/1.5.x/client-flutter/examples/graphql/mutation.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Graphql graphql = Graphql(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/graphql/query.md b/docs/examples/1.5.x/client-flutter/examples/graphql/query.md index 13c21eeb459..2c06a838ab2 100644 --- a/docs/examples/1.5.x/client-flutter/examples/graphql/query.md +++ b/docs/examples/1.5.x/client-flutter/examples/graphql/query.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Graphql graphql = Graphql(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/locale/get.md b/docs/examples/1.5.x/client-flutter/examples/locale/get.md index b705b834ef0..53cfda5c200 100644 --- a/docs/examples/1.5.x/client-flutter/examples/locale/get.md +++ b/docs/examples/1.5.x/client-flutter/examples/locale/get.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/locale/list-codes.md b/docs/examples/1.5.x/client-flutter/examples/locale/list-codes.md index c9ca329778a..bfd53f97bca 100644 --- a/docs/examples/1.5.x/client-flutter/examples/locale/list-codes.md +++ b/docs/examples/1.5.x/client-flutter/examples/locale/list-codes.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/locale/list-continents.md b/docs/examples/1.5.x/client-flutter/examples/locale/list-continents.md index b174e606087..c462c2e46b5 100644 --- a/docs/examples/1.5.x/client-flutter/examples/locale/list-continents.md +++ b/docs/examples/1.5.x/client-flutter/examples/locale/list-continents.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/client-flutter/examples/locale/list-countries-e-u.md index e3772f0f6bd..0f5629b54fb 100644 --- a/docs/examples/1.5.x/client-flutter/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/client-flutter/examples/locale/list-countries-e-u.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/client-flutter/examples/locale/list-countries-phones.md index 9e0ed7483bc..ee8689a986c 100644 --- a/docs/examples/1.5.x/client-flutter/examples/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/client-flutter/examples/locale/list-countries-phones.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/locale/list-countries.md b/docs/examples/1.5.x/client-flutter/examples/locale/list-countries.md index 12c57042a63..0c1bae6016e 100644 --- a/docs/examples/1.5.x/client-flutter/examples/locale/list-countries.md +++ b/docs/examples/1.5.x/client-flutter/examples/locale/list-countries.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/locale/list-currencies.md b/docs/examples/1.5.x/client-flutter/examples/locale/list-currencies.md index 0d6662ee137..a9c53b1264c 100644 --- a/docs/examples/1.5.x/client-flutter/examples/locale/list-currencies.md +++ b/docs/examples/1.5.x/client-flutter/examples/locale/list-currencies.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/locale/list-languages.md b/docs/examples/1.5.x/client-flutter/examples/locale/list-languages.md index b2f22a16a1b..c5bdd2643b4 100644 --- a/docs/examples/1.5.x/client-flutter/examples/locale/list-languages.md +++ b/docs/examples/1.5.x/client-flutter/examples/locale/list-languages.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/client-flutter/examples/messaging/create-subscriber.md index fc3b2596e84..1284151b610 100644 --- a/docs/examples/1.5.x/client-flutter/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/client-flutter/examples/messaging/create-subscriber.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/client-flutter/examples/messaging/delete-subscriber.md index 5cd62597e87..aa66acbf175 100644 --- a/docs/examples/1.5.x/client-flutter/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/client-flutter/examples/messaging/delete-subscriber.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/storage/create-file.md b/docs/examples/1.5.x/client-flutter/examples/storage/create-file.md index 55216ba31f7..1a0a498b762 100644 --- a/docs/examples/1.5.x/client-flutter/examples/storage/create-file.md +++ b/docs/examples/1.5.x/client-flutter/examples/storage/create-file.md @@ -3,7 +3,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/storage/delete-file.md b/docs/examples/1.5.x/client-flutter/examples/storage/delete-file.md index bab2a4774a5..39135824b73 100644 --- a/docs/examples/1.5.x/client-flutter/examples/storage/delete-file.md +++ b/docs/examples/1.5.x/client-flutter/examples/storage/delete-file.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/storage/get-file-download.md b/docs/examples/1.5.x/client-flutter/examples/storage/get-file-download.md index 1a612be00e6..3346442532a 100644 --- a/docs/examples/1.5.x/client-flutter/examples/storage/get-file-download.md +++ b/docs/examples/1.5.x/client-flutter/examples/storage/get-file-download.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/storage/get-file-preview.md b/docs/examples/1.5.x/client-flutter/examples/storage/get-file-preview.md index 2649bb2c60c..2bb09976169 100644 --- a/docs/examples/1.5.x/client-flutter/examples/storage/get-file-preview.md +++ b/docs/examples/1.5.x/client-flutter/examples/storage/get-file-preview.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/storage/get-file-view.md b/docs/examples/1.5.x/client-flutter/examples/storage/get-file-view.md index 5d0e38e8812..c5f8ea1147b 100644 --- a/docs/examples/1.5.x/client-flutter/examples/storage/get-file-view.md +++ b/docs/examples/1.5.x/client-flutter/examples/storage/get-file-view.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/storage/get-file.md b/docs/examples/1.5.x/client-flutter/examples/storage/get-file.md index b7b894b420d..83a32190a44 100644 --- a/docs/examples/1.5.x/client-flutter/examples/storage/get-file.md +++ b/docs/examples/1.5.x/client-flutter/examples/storage/get-file.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/storage/list-files.md b/docs/examples/1.5.x/client-flutter/examples/storage/list-files.md index f75ef6e33cb..d5f8b0b4d7c 100644 --- a/docs/examples/1.5.x/client-flutter/examples/storage/list-files.md +++ b/docs/examples/1.5.x/client-flutter/examples/storage/list-files.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/storage/update-file.md b/docs/examples/1.5.x/client-flutter/examples/storage/update-file.md index cca06533ca6..c88355a52c7 100644 --- a/docs/examples/1.5.x/client-flutter/examples/storage/update-file.md +++ b/docs/examples/1.5.x/client-flutter/examples/storage/update-file.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/teams/create-membership.md b/docs/examples/1.5.x/client-flutter/examples/teams/create-membership.md index 1cf042674a4..04eedde662c 100644 --- a/docs/examples/1.5.x/client-flutter/examples/teams/create-membership.md +++ b/docs/examples/1.5.x/client-flutter/examples/teams/create-membership.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/teams/create.md b/docs/examples/1.5.x/client-flutter/examples/teams/create.md index 04593d46ee2..1afcbf1ce57 100644 --- a/docs/examples/1.5.x/client-flutter/examples/teams/create.md +++ b/docs/examples/1.5.x/client-flutter/examples/teams/create.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/teams/delete-membership.md b/docs/examples/1.5.x/client-flutter/examples/teams/delete-membership.md index 38f47c791db..83c80a27038 100644 --- a/docs/examples/1.5.x/client-flutter/examples/teams/delete-membership.md +++ b/docs/examples/1.5.x/client-flutter/examples/teams/delete-membership.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/teams/delete.md b/docs/examples/1.5.x/client-flutter/examples/teams/delete.md index 4107155b451..5a4d0dba424 100644 --- a/docs/examples/1.5.x/client-flutter/examples/teams/delete.md +++ b/docs/examples/1.5.x/client-flutter/examples/teams/delete.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/teams/get-membership.md b/docs/examples/1.5.x/client-flutter/examples/teams/get-membership.md index 10fd959487e..3ae0844c81a 100644 --- a/docs/examples/1.5.x/client-flutter/examples/teams/get-membership.md +++ b/docs/examples/1.5.x/client-flutter/examples/teams/get-membership.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/teams/get-prefs.md b/docs/examples/1.5.x/client-flutter/examples/teams/get-prefs.md index b8f3692231c..0f93c25a338 100644 --- a/docs/examples/1.5.x/client-flutter/examples/teams/get-prefs.md +++ b/docs/examples/1.5.x/client-flutter/examples/teams/get-prefs.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/teams/get.md b/docs/examples/1.5.x/client-flutter/examples/teams/get.md index 12ed636c01b..bcf45530eea 100644 --- a/docs/examples/1.5.x/client-flutter/examples/teams/get.md +++ b/docs/examples/1.5.x/client-flutter/examples/teams/get.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/teams/list-memberships.md b/docs/examples/1.5.x/client-flutter/examples/teams/list-memberships.md index ca98b5f1c90..7fc920a2d09 100644 --- a/docs/examples/1.5.x/client-flutter/examples/teams/list-memberships.md +++ b/docs/examples/1.5.x/client-flutter/examples/teams/list-memberships.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/teams/list.md b/docs/examples/1.5.x/client-flutter/examples/teams/list.md index 25aaafa4e9b..75b29554c09 100644 --- a/docs/examples/1.5.x/client-flutter/examples/teams/list.md +++ b/docs/examples/1.5.x/client-flutter/examples/teams/list.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/teams/update-membership-status.md b/docs/examples/1.5.x/client-flutter/examples/teams/update-membership-status.md index ae05c371e6f..e08f63bac87 100644 --- a/docs/examples/1.5.x/client-flutter/examples/teams/update-membership-status.md +++ b/docs/examples/1.5.x/client-flutter/examples/teams/update-membership-status.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/teams/update-membership.md b/docs/examples/1.5.x/client-flutter/examples/teams/update-membership.md index 41f2a9be563..33e6568da1e 100644 --- a/docs/examples/1.5.x/client-flutter/examples/teams/update-membership.md +++ b/docs/examples/1.5.x/client-flutter/examples/teams/update-membership.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/teams/update-name.md b/docs/examples/1.5.x/client-flutter/examples/teams/update-name.md index 2b3b288d1f0..43d1b0c7fca 100644 --- a/docs/examples/1.5.x/client-flutter/examples/teams/update-name.md +++ b/docs/examples/1.5.x/client-flutter/examples/teams/update-name.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/teams/update-prefs.md b/docs/examples/1.5.x/client-flutter/examples/teams/update-prefs.md index 8afb99ad2fa..2a446f08004 100644 --- a/docs/examples/1.5.x/client-flutter/examples/teams/update-prefs.md +++ b/docs/examples/1.5.x/client-flutter/examples/teams/update-prefs.md @@ -2,7 +2,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/client-flutter/examples/users/delete-authenticator.md b/docs/examples/1.5.x/client-flutter/examples/users/delete-authenticator.md index 259f97c6b7b..02447e24dce 100644 --- a/docs/examples/1.5.x/client-flutter/examples/users/delete-authenticator.md +++ b/docs/examples/1.5.x/client-flutter/examples/users/delete-authenticator.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = users.deleteAuthenticator( diff --git a/docs/examples/1.5.x/client-flutter/examples/users/list-providers.md b/docs/examples/1.5.x/client-flutter/examples/users/list-providers.md index d0df43eaf63..894939fe0d9 100644 --- a/docs/examples/1.5.x/client-flutter/examples/users/list-providers.md +++ b/docs/examples/1.5.x/client-flutter/examples/users/list-providers.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = users.listProviders( diff --git a/docs/examples/1.5.x/client-graphql/examples/account/create-push-target.md b/docs/examples/1.5.x/client-graphql/examples/account/create-push-target.md index 8a0fad387c9..63802a782e5 100644 --- a/docs/examples/1.5.x/client-graphql/examples/account/create-push-target.md +++ b/docs/examples/1.5.x/client-graphql/examples/account/create-push-target.md @@ -12,5 +12,6 @@ mutation { providerId providerType identifier + expired } } diff --git a/docs/examples/1.5.x/client-graphql/examples/account/create.md b/docs/examples/1.5.x/client-graphql/examples/account/create.md index 3f8e3c3cf7c..0d39394a3d0 100644 --- a/docs/examples/1.5.x/client-graphql/examples/account/create.md +++ b/docs/examples/1.5.x/client-graphql/examples/account/create.md @@ -33,6 +33,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/client-graphql/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/client-graphql/examples/account/delete-mfa-authenticator.md index de14ae68f3a..fc5486623a9 100644 --- a/docs/examples/1.5.x/client-graphql/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-graphql/examples/account/delete-mfa-authenticator.md @@ -1,7 +1,6 @@ mutation { accountDeleteMfaAuthenticator( - type: "totp", - otp: "<OTP>" + type: "totp" ) { status } diff --git a/docs/examples/1.5.x/client-graphql/examples/account/get.md b/docs/examples/1.5.x/client-graphql/examples/account/get.md index e4db8f0e414..f4f07c187f2 100644 --- a/docs/examples/1.5.x/client-graphql/examples/account/get.md +++ b/docs/examples/1.5.x/client-graphql/examples/account/get.md @@ -28,6 +28,7 @@ query { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/client-graphql/examples/account/update-email.md b/docs/examples/1.5.x/client-graphql/examples/account/update-email.md index b207bad4bbb..c879e24a43a 100644 --- a/docs/examples/1.5.x/client-graphql/examples/account/update-email.md +++ b/docs/examples/1.5.x/client-graphql/examples/account/update-email.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/client-graphql/examples/account/update-m-f-a.md b/docs/examples/1.5.x/client-graphql/examples/account/update-m-f-a.md index d2cd3d6ae54..787c2e08608 100644 --- a/docs/examples/1.5.x/client-graphql/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/client-graphql/examples/account/update-m-f-a.md @@ -30,6 +30,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/client-graphql/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/client-graphql/examples/account/update-mfa-authenticator.md index c74062c7d4a..9cfe9150be6 100644 --- a/docs/examples/1.5.x/client-graphql/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-graphql/examples/account/update-mfa-authenticator.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/client-graphql/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/client-graphql/examples/account/update-mfa-challenge.md index 8237431bcfc..0bcec2157fe 100644 --- a/docs/examples/1.5.x/client-graphql/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/client-graphql/examples/account/update-mfa-challenge.md @@ -3,6 +3,34 @@ mutation { challengeId: "<CHALLENGE_ID>", otp: "<OTP>" ) { - status + _id + _createdAt + _updatedAt + userId + expire + provider + providerUid + providerAccessToken + providerAccessTokenExpiry + providerRefreshToken + ip + osCode + osName + osVersion + clientType + clientCode + clientName + clientVersion + clientEngine + clientEngineVersion + deviceName + deviceBrand + deviceModel + countryCode + countryName + current + factors + secret + mfaUpdatedAt } } diff --git a/docs/examples/1.5.x/client-graphql/examples/account/update-name.md b/docs/examples/1.5.x/client-graphql/examples/account/update-name.md index 850b5760a0a..8ba2c99d9c2 100644 --- a/docs/examples/1.5.x/client-graphql/examples/account/update-name.md +++ b/docs/examples/1.5.x/client-graphql/examples/account/update-name.md @@ -30,6 +30,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/client-graphql/examples/account/update-password.md b/docs/examples/1.5.x/client-graphql/examples/account/update-password.md index 5904da08420..f3619a10d28 100644 --- a/docs/examples/1.5.x/client-graphql/examples/account/update-password.md +++ b/docs/examples/1.5.x/client-graphql/examples/account/update-password.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/client-graphql/examples/account/update-phone.md b/docs/examples/1.5.x/client-graphql/examples/account/update-phone.md index 408a2033002..adecb711684 100644 --- a/docs/examples/1.5.x/client-graphql/examples/account/update-phone.md +++ b/docs/examples/1.5.x/client-graphql/examples/account/update-phone.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/client-graphql/examples/account/update-prefs.md b/docs/examples/1.5.x/client-graphql/examples/account/update-prefs.md index 40db7b43dbd..57280247e40 100644 --- a/docs/examples/1.5.x/client-graphql/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/client-graphql/examples/account/update-prefs.md @@ -30,6 +30,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/client-graphql/examples/account/update-push-target.md b/docs/examples/1.5.x/client-graphql/examples/account/update-push-target.md index 059702dc974..3c402cdf12a 100644 --- a/docs/examples/1.5.x/client-graphql/examples/account/update-push-target.md +++ b/docs/examples/1.5.x/client-graphql/examples/account/update-push-target.md @@ -11,5 +11,6 @@ mutation { providerId providerType identifier + expired } } diff --git a/docs/examples/1.5.x/client-graphql/examples/account/update-status.md b/docs/examples/1.5.x/client-graphql/examples/account/update-status.md index aca8c098e71..c17f5568426 100644 --- a/docs/examples/1.5.x/client-graphql/examples/account/update-status.md +++ b/docs/examples/1.5.x/client-graphql/examples/account/update-status.md @@ -28,6 +28,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/client-graphql/examples/functions/create-execution.md b/docs/examples/1.5.x/client-graphql/examples/functions/create-execution.md index 1627ee93397..1479aa3bb60 100644 --- a/docs/examples/1.5.x/client-graphql/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/client-graphql/examples/functions/create-execution.md @@ -5,7 +5,8 @@ mutation { async: false, path: "<PATH>", method: "GET", - headers: "{}" + headers: "{}", + scheduledAt: "" ) { _id _createdAt @@ -29,5 +30,6 @@ mutation { logs errors duration + scheduledAt } } diff --git a/docs/examples/1.5.x/client-graphql/examples/functions/get-execution.md b/docs/examples/1.5.x/client-graphql/examples/functions/get-execution.md index f9f8ef05526..6ded51a50cc 100644 --- a/docs/examples/1.5.x/client-graphql/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/client-graphql/examples/functions/get-execution.md @@ -25,5 +25,6 @@ query { logs errors duration + scheduledAt } } diff --git a/docs/examples/1.5.x/client-graphql/examples/functions/list-executions.md b/docs/examples/1.5.x/client-graphql/examples/functions/list-executions.md index 745ec32377a..a0c02fa76f2 100644 --- a/docs/examples/1.5.x/client-graphql/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/client-graphql/examples/functions/list-executions.md @@ -28,6 +28,7 @@ query { logs errors duration + scheduledAt } } } diff --git a/docs/examples/1.5.x/client-graphql/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/client-graphql/examples/messaging/create-subscriber.md index b2712ebb487..bab53612b79 100644 --- a/docs/examples/1.5.x/client-graphql/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/client-graphql/examples/messaging/create-subscriber.md @@ -17,6 +17,7 @@ mutation { providerId providerType identifier + expired } userId userName diff --git a/docs/examples/1.5.x/client-graphql/examples/storage/create-file.md b/docs/examples/1.5.x/client-graphql/examples/storage/create-file.md index 16569fccd55..e9324d22797 100644 --- a/docs/examples/1.5.x/client-graphql/examples/storage/create-file.md +++ b/docs/examples/1.5.x/client-graphql/examples/storage/create-file.md @@ -1,10 +1,10 @@ POST /v1/storage/buckets/{bucketId}/files HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> Content-Length: *Length of your entity body in bytes* --cec8e8123c05ba25 diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/client-react-native/examples/account/create-anonymous-session.md index 1c807bdc964..333e19942bd 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-anonymous-session.md @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.createAnonymousSession(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-email-password-session.md b/docs/examples/1.5.x/client-react-native/examples/account/create-email-password-session.md index d338cbe2331..0718e393765 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-email-password-session.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-email-password-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.createEmailPasswordSession( 'password' // password ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-email-token.md b/docs/examples/1.5.x/client-react-native/examples/account/create-email-token.md index cb2a31145b9..13d08f0b2f2 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-email-token.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-email-token.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -12,4 +12,4 @@ const result = await account.createEmailToken( false // phrase (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-j-w-t.md b/docs/examples/1.5.x/client-react-native/examples/account/create-j-w-t.md index 88ea31c5a31..fd060c8c327 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-j-w-t.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-j-w-t.md @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.createJWT(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/client-react-native/examples/account/create-magic-u-r-l-token.md index f2e7e8faf6d..b627ca6c5fb 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-magic-u-r-l-token.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -13,4 +13,4 @@ const result = await account.createMagicURLToken( false // phrase (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-authenticator.md index 88bc313a88e..d34d9957b17 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-authenticator.md @@ -2,7 +2,7 @@ import { Client, Account, AuthenticatorType } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.createMfaAuthenticator( AuthenticatorType.Totp // type ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-challenge.md index 119a204f0bb..f5c94903d05 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-challenge.md @@ -2,7 +2,7 @@ import { Client, Account, AuthenticationFactor } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.createMfaChallenge( AuthenticationFactor.Email // factor ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-recovery-codes.md index 4ffd8a39a18..66ec3680d05 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-recovery-codes.md @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.createMfaRecoveryCodes(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-o-auth2session.md b/docs/examples/1.5.x/client-react-native/examples/account/create-o-auth2session.md index 2302aaaa1eb..7dff5734650 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-o-auth2session.md @@ -2,7 +2,7 @@ import { Client, Account, OAuthProvider } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/client-react-native/examples/account/create-o-auth2token.md index 3479924e64a..85ffb2a2bf4 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-o-auth2token.md @@ -2,7 +2,7 @@ import { Client, Account, OAuthProvider } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-phone-token.md b/docs/examples/1.5.x/client-react-native/examples/account/create-phone-token.md index 93fc1b7f51b..33988887a27 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-phone-token.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-phone-token.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.createPhoneToken( '+12065550100' // phone ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-phone-verification.md b/docs/examples/1.5.x/client-react-native/examples/account/create-phone-verification.md index 28833c1806c..39a3313556c 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-phone-verification.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-phone-verification.md @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.createPhoneVerification(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-push-target.md b/docs/examples/1.5.x/client-react-native/examples/account/create-push-target.md index dd15821eaab..da020dae34a 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-push-target.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-push-target.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -12,4 +12,4 @@ const result = await account.createPushTarget( '<PROVIDER_ID>' // providerId (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-recovery.md b/docs/examples/1.5.x/client-react-native/examples/account/create-recovery.md index 5d2855486b5..c46c9079537 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-recovery.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-recovery.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.createRecovery( 'https://example.com' // url ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-session.md b/docs/examples/1.5.x/client-react-native/examples/account/create-session.md index f8a9f109a7c..3c85dc8a464 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-session.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.createSession( '<SECRET>' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-verification.md b/docs/examples/1.5.x/client-react-native/examples/account/create-verification.md index d072126c4e6..cce3e1aae09 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-verification.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create-verification.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.createVerification( 'https://example.com' // url ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create.md b/docs/examples/1.5.x/client-react-native/examples/account/create.md index 300f59b219a..5db3d7d9f15 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/create.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/create.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -13,4 +13,4 @@ const result = await account.create( '<NAME>' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/delete-identity.md b/docs/examples/1.5.x/client-react-native/examples/account/delete-identity.md index 9ff1bbd35d2..c25a5a4417a 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/delete-identity.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/delete-identity.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.deleteIdentity( '<IDENTITY_ID>' // identityId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/client-react-native/examples/account/delete-mfa-authenticator.md index c5f5695ddff..5be2b161aaa 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/delete-mfa-authenticator.md @@ -2,13 +2,12 @@ import { Client, Account, AuthenticatorType } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.deleteMfaAuthenticator( - AuthenticatorType.Totp, // type - '<OTP>' // otp + AuthenticatorType.Totp // type ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/delete-push-target.md b/docs/examples/1.5.x/client-react-native/examples/account/delete-push-target.md index 351b933bd01..34e89ab4a37 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/delete-push-target.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/delete-push-target.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.deletePushTarget( '<TARGET_ID>' // targetId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/delete-session.md b/docs/examples/1.5.x/client-react-native/examples/account/delete-session.md index 22966495c1d..60791284b6d 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/delete-session.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/delete-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.deleteSession( '<SESSION_ID>' // sessionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/delete-sessions.md b/docs/examples/1.5.x/client-react-native/examples/account/delete-sessions.md index b0967bf0193..67652f21e85 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/delete-sessions.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/delete-sessions.md @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.deleteSessions(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/client-react-native/examples/account/get-mfa-recovery-codes.md index d1c38fdde0c..06f09b8d346 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/get-mfa-recovery-codes.md @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.getMfaRecoveryCodes(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/get-prefs.md b/docs/examples/1.5.x/client-react-native/examples/account/get-prefs.md index b2502d7b196..ef4185ca12c 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/get-prefs.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/get-prefs.md @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.getPrefs(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/get-session.md b/docs/examples/1.5.x/client-react-native/examples/account/get-session.md index 3ecb79feee3..ca6cfb72aa4 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/get-session.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/get-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.getSession( '<SESSION_ID>' // sessionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/get.md b/docs/examples/1.5.x/client-react-native/examples/account/get.md index 94f0779d53f..cd5d50fe284 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/get.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/get.md @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.get(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/list-identities.md b/docs/examples/1.5.x/client-react-native/examples/account/list-identities.md index e7ca637afe8..6189f80e0fc 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/list-identities.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/list-identities.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.listIdentities( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/list-logs.md b/docs/examples/1.5.x/client-react-native/examples/account/list-logs.md index 424f8d76af9..48fe10be13a 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/list-logs.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/list-logs.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.listLogs( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/client-react-native/examples/account/list-mfa-factors.md index c6343a732eb..ada7d487626 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/list-mfa-factors.md @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.listMfaFactors(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/list-sessions.md b/docs/examples/1.5.x/client-react-native/examples/account/list-sessions.md index b0840c59e3a..cc081d5e3c9 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/list-sessions.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/list-sessions.md @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.listSessions(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-email.md b/docs/examples/1.5.x/client-react-native/examples/account/update-email.md index 560581e63c9..5f879989e3f 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-email.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-email.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updateEmail( 'password' // password ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-m-f-a.md b/docs/examples/1.5.x/client-react-native/examples/account/update-m-f-a.md index 38fd716c6a7..30f5f64199b 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-m-f-a.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.updateMFA( false // mfa ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/client-react-native/examples/account/update-magic-u-r-l-session.md index bb0c000126e..a5b92765dc0 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updateMagicURLSession( '<SECRET>' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-authenticator.md index d8ec7aed65f..f3f3276dfd6 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-authenticator.md @@ -2,7 +2,7 @@ import { Client, Account, AuthenticatorType } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updateMfaAuthenticator( '<OTP>' // otp ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-challenge.md index 7d875064574..b26d387ad2f 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-challenge.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updateMfaChallenge( '<OTP>' // otp ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-recovery-codes.md index cfbbf6f3c8d..81d27f7c549 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-recovery-codes.md @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.updateMfaRecoveryCodes(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-name.md b/docs/examples/1.5.x/client-react-native/examples/account/update-name.md index 8a403f2ab16..47e5db988b0 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-name.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-name.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.updateName( '<NAME>' // name ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-password.md b/docs/examples/1.5.x/client-react-native/examples/account/update-password.md index 09edf09182b..a37ee4c355f 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-password.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-password.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updatePassword( 'password' // oldPassword (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-phone-session.md b/docs/examples/1.5.x/client-react-native/examples/account/update-phone-session.md index cf026227fcb..d7098e5155a 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-phone-session.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-phone-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updatePhoneSession( '<SECRET>' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-phone-verification.md b/docs/examples/1.5.x/client-react-native/examples/account/update-phone-verification.md index 8467309a06d..582061fac5c 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-phone-verification.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-phone-verification.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updatePhoneVerification( '<SECRET>' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-phone.md b/docs/examples/1.5.x/client-react-native/examples/account/update-phone.md index 46efc141428..cc39c5ef0f2 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-phone.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-phone.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updatePhone( 'password' // password ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-prefs.md b/docs/examples/1.5.x/client-react-native/examples/account/update-prefs.md index a3ff8c34081..4478e02320d 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-prefs.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.updatePrefs( {} // prefs ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-push-target.md b/docs/examples/1.5.x/client-react-native/examples/account/update-push-target.md index 8096568d55c..6871a1016ca 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-push-target.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-push-target.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updatePushTarget( '<IDENTIFIER>' // identifier ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-recovery.md b/docs/examples/1.5.x/client-react-native/examples/account/update-recovery.md index 1ee93d35f94..73184b84b5b 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-recovery.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-recovery.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -12,4 +12,4 @@ const result = await account.updateRecovery( '' // password ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-session.md b/docs/examples/1.5.x/client-react-native/examples/account/update-session.md index 397e07edc21..34bc567fb55 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-session.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.updateSession( '<SESSION_ID>' // sessionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-status.md b/docs/examples/1.5.x/client-react-native/examples/account/update-status.md index 27ce5186217..0b6ec6f7928 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-status.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-status.md @@ -2,10 +2,10 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.updateStatus(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-verification.md b/docs/examples/1.5.x/client-react-native/examples/account/update-verification.md index 0007335fa5b..9d00a4826c6 100644 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-verification.md +++ b/docs/examples/1.5.x/client-react-native/examples/account/update-verification.md @@ -2,7 +2,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updateVerification( '<SECRET>' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/avatars/get-browser.md b/docs/examples/1.5.x/client-react-native/examples/avatars/get-browser.md index 9ceb1a39cf9..bbcb0df83a5 100644 --- a/docs/examples/1.5.x/client-react-native/examples/avatars/get-browser.md +++ b/docs/examples/1.5.x/client-react-native/examples/avatars/get-browser.md @@ -2,7 +2,7 @@ import { Client, Avatars, Browser } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-react-native/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/client-react-native/examples/avatars/get-credit-card.md index 0de631974ad..a97cc6c430d 100644 --- a/docs/examples/1.5.x/client-react-native/examples/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/client-react-native/examples/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import { Client, Avatars, CreditCard } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-react-native/examples/avatars/get-favicon.md b/docs/examples/1.5.x/client-react-native/examples/avatars/get-favicon.md index 6e23a774c01..067aa74000d 100644 --- a/docs/examples/1.5.x/client-react-native/examples/avatars/get-favicon.md +++ b/docs/examples/1.5.x/client-react-native/examples/avatars/get-favicon.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-react-native/examples/avatars/get-flag.md b/docs/examples/1.5.x/client-react-native/examples/avatars/get-flag.md index 6761052394a..f2268fcc69c 100644 --- a/docs/examples/1.5.x/client-react-native/examples/avatars/get-flag.md +++ b/docs/examples/1.5.x/client-react-native/examples/avatars/get-flag.md @@ -2,7 +2,7 @@ import { Client, Avatars, Flag } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-react-native/examples/avatars/get-image.md b/docs/examples/1.5.x/client-react-native/examples/avatars/get-image.md index b4956df8f1e..3816e7b4643 100644 --- a/docs/examples/1.5.x/client-react-native/examples/avatars/get-image.md +++ b/docs/examples/1.5.x/client-react-native/examples/avatars/get-image.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-react-native/examples/avatars/get-initials.md b/docs/examples/1.5.x/client-react-native/examples/avatars/get-initials.md index ba70a9cb036..b8545b37ca6 100644 --- a/docs/examples/1.5.x/client-react-native/examples/avatars/get-initials.md +++ b/docs/examples/1.5.x/client-react-native/examples/avatars/get-initials.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-react-native/examples/avatars/get-q-r.md b/docs/examples/1.5.x/client-react-native/examples/avatars/get-q-r.md index d4f2db2df81..5c80c6ae2ca 100644 --- a/docs/examples/1.5.x/client-react-native/examples/avatars/get-q-r.md +++ b/docs/examples/1.5.x/client-react-native/examples/avatars/get-q-r.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-react-native/examples/databases/create-document.md b/docs/examples/1.5.x/client-react-native/examples/databases/create-document.md index 15d1afcdc32..58053ca0aa5 100644 --- a/docs/examples/1.5.x/client-react-native/examples/databases/create-document.md +++ b/docs/examples/1.5.x/client-react-native/examples/databases/create-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -14,4 +14,4 @@ const result = await databases.createDocument( ["read("any")"] // permissions (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/databases/delete-document.md b/docs/examples/1.5.x/client-react-native/examples/databases/delete-document.md index f6fef3bcdf5..beeb7b2a720 100644 --- a/docs/examples/1.5.x/client-react-native/examples/databases/delete-document.md +++ b/docs/examples/1.5.x/client-react-native/examples/databases/delete-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.deleteDocument( '<DOCUMENT_ID>' // documentId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/databases/get-document.md b/docs/examples/1.5.x/client-react-native/examples/databases/get-document.md index 502f2f4640f..df2333b5cc7 100644 --- a/docs/examples/1.5.x/client-react-native/examples/databases/get-document.md +++ b/docs/examples/1.5.x/client-react-native/examples/databases/get-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -13,4 +13,4 @@ const result = await databases.getDocument( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/databases/list-documents.md b/docs/examples/1.5.x/client-react-native/examples/databases/list-documents.md index 90dcd6318cd..88d94a90895 100644 --- a/docs/examples/1.5.x/client-react-native/examples/databases/list-documents.md +++ b/docs/examples/1.5.x/client-react-native/examples/databases/list-documents.md @@ -2,7 +2,7 @@ import { Client, Databases } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.listDocuments( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/databases/update-document.md b/docs/examples/1.5.x/client-react-native/examples/databases/update-document.md index fa04f2134a8..5021c0b0f20 100644 --- a/docs/examples/1.5.x/client-react-native/examples/databases/update-document.md +++ b/docs/examples/1.5.x/client-react-native/examples/databases/update-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -14,4 +14,4 @@ const result = await databases.updateDocument( ["read("any")"] // permissions (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/functions/create-execution.md b/docs/examples/1.5.x/client-react-native/examples/functions/create-execution.md index 1b4bfaa609d..9933beb2774 100644 --- a/docs/examples/1.5.x/client-react-native/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/client-react-native/examples/functions/create-execution.md @@ -2,7 +2,7 @@ import { Client, Functions, ExecutionMethod } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -12,7 +12,8 @@ const result = await functions.createExecution( false, // async (optional) '<PATH>', // path (optional) ExecutionMethod.GET, // method (optional) - {} // headers (optional) + {}, // headers (optional) + '' // scheduledAt (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/functions/get-execution.md b/docs/examples/1.5.x/client-react-native/examples/functions/get-execution.md index adda0435433..79fffec4b42 100644 --- a/docs/examples/1.5.x/client-react-native/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/client-react-native/examples/functions/get-execution.md @@ -2,7 +2,7 @@ import { Client, Functions } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -11,4 +11,4 @@ const result = await functions.getExecution( '<EXECUTION_ID>' // executionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/functions/list-executions.md b/docs/examples/1.5.x/client-react-native/examples/functions/list-executions.md index b1fdd6bd6f2..0615ecbf57e 100644 --- a/docs/examples/1.5.x/client-react-native/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/client-react-native/examples/functions/list-executions.md @@ -2,7 +2,7 @@ import { Client, Functions } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -12,4 +12,4 @@ const result = await functions.listExecutions( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/graphql/mutation.md b/docs/examples/1.5.x/client-react-native/examples/graphql/mutation.md index b3c35838049..2fae4783f15 100644 --- a/docs/examples/1.5.x/client-react-native/examples/graphql/mutation.md +++ b/docs/examples/1.5.x/client-react-native/examples/graphql/mutation.md @@ -2,7 +2,7 @@ import { Client, Graphql } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const graphql = new Graphql(client); @@ -10,4 +10,4 @@ const result = await graphql.mutation( {} // query ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/graphql/query.md b/docs/examples/1.5.x/client-react-native/examples/graphql/query.md index e15400d05dc..39d8cb13bb3 100644 --- a/docs/examples/1.5.x/client-react-native/examples/graphql/query.md +++ b/docs/examples/1.5.x/client-react-native/examples/graphql/query.md @@ -2,7 +2,7 @@ import { Client, Graphql } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const graphql = new Graphql(client); @@ -10,4 +10,4 @@ const result = await graphql.query( {} // query ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/locale/get.md b/docs/examples/1.5.x/client-react-native/examples/locale/get.md index 4af9df39bce..0d48cd85cba 100644 --- a/docs/examples/1.5.x/client-react-native/examples/locale/get.md +++ b/docs/examples/1.5.x/client-react-native/examples/locale/get.md @@ -2,10 +2,10 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.get(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/locale/list-codes.md b/docs/examples/1.5.x/client-react-native/examples/locale/list-codes.md index 8737fde873f..f1466beeb54 100644 --- a/docs/examples/1.5.x/client-react-native/examples/locale/list-codes.md +++ b/docs/examples/1.5.x/client-react-native/examples/locale/list-codes.md @@ -2,10 +2,10 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.listCodes(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/locale/list-continents.md b/docs/examples/1.5.x/client-react-native/examples/locale/list-continents.md index e8c3920a178..a813a69f177 100644 --- a/docs/examples/1.5.x/client-react-native/examples/locale/list-continents.md +++ b/docs/examples/1.5.x/client-react-native/examples/locale/list-continents.md @@ -2,10 +2,10 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.listContinents(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/client-react-native/examples/locale/list-countries-e-u.md index 0a2abc53c78..7ba7149edde 100644 --- a/docs/examples/1.5.x/client-react-native/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/client-react-native/examples/locale/list-countries-e-u.md @@ -2,10 +2,10 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.listCountriesEU(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/client-react-native/examples/locale/list-countries-phones.md index d4d00ae3941..6d3093dce29 100644 --- a/docs/examples/1.5.x/client-react-native/examples/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/client-react-native/examples/locale/list-countries-phones.md @@ -2,10 +2,10 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.listCountriesPhones(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/locale/list-countries.md b/docs/examples/1.5.x/client-react-native/examples/locale/list-countries.md index 8839b6f0393..9ffb09b829c 100644 --- a/docs/examples/1.5.x/client-react-native/examples/locale/list-countries.md +++ b/docs/examples/1.5.x/client-react-native/examples/locale/list-countries.md @@ -2,10 +2,10 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.listCountries(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/locale/list-currencies.md b/docs/examples/1.5.x/client-react-native/examples/locale/list-currencies.md index 6700ef12920..06326651d2e 100644 --- a/docs/examples/1.5.x/client-react-native/examples/locale/list-currencies.md +++ b/docs/examples/1.5.x/client-react-native/examples/locale/list-currencies.md @@ -2,10 +2,10 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.listCurrencies(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/locale/list-languages.md b/docs/examples/1.5.x/client-react-native/examples/locale/list-languages.md index db9b17294e7..1ef69e5921e 100644 --- a/docs/examples/1.5.x/client-react-native/examples/locale/list-languages.md +++ b/docs/examples/1.5.x/client-react-native/examples/locale/list-languages.md @@ -2,10 +2,10 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.listLanguages(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/client-react-native/examples/messaging/create-subscriber.md index bf5a0cec1dc..153cd2e3aa0 100644 --- a/docs/examples/1.5.x/client-react-native/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/client-react-native/examples/messaging/create-subscriber.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -12,4 +12,4 @@ const result = await messaging.createSubscriber( '<TARGET_ID>' // targetId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/client-react-native/examples/messaging/delete-subscriber.md index da995fc419f..6d61172ac40 100644 --- a/docs/examples/1.5.x/client-react-native/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/client-react-native/examples/messaging/delete-subscriber.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -11,4 +11,4 @@ const result = await messaging.deleteSubscriber( '<SUBSCRIBER_ID>' // subscriberId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/storage/create-file.md b/docs/examples/1.5.x/client-react-native/examples/storage/create-file.md index 73908c6de0a..f6e4f472633 100644 --- a/docs/examples/1.5.x/client-react-native/examples/storage/create-file.md +++ b/docs/examples/1.5.x/client-react-native/examples/storage/create-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -13,4 +13,4 @@ const result = await storage.createFile( ["read("any")"] // permissions (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/storage/delete-file.md b/docs/examples/1.5.x/client-react-native/examples/storage/delete-file.md index 4373ebec043..55aed16a468 100644 --- a/docs/examples/1.5.x/client-react-native/examples/storage/delete-file.md +++ b/docs/examples/1.5.x/client-react-native/examples/storage/delete-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -11,4 +11,4 @@ const result = await storage.deleteFile( '<FILE_ID>' // fileId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/storage/get-file-download.md b/docs/examples/1.5.x/client-react-native/examples/storage/get-file-download.md index 943bf9dd768..b4b1374ca1f 100644 --- a/docs/examples/1.5.x/client-react-native/examples/storage/get-file-download.md +++ b/docs/examples/1.5.x/client-react-native/examples/storage/get-file-download.md @@ -2,7 +2,7 @@ import { Client, Storage } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.5.x/client-react-native/examples/storage/get-file-preview.md b/docs/examples/1.5.x/client-react-native/examples/storage/get-file-preview.md index 76713c86947..10d473ae06e 100644 --- a/docs/examples/1.5.x/client-react-native/examples/storage/get-file-preview.md +++ b/docs/examples/1.5.x/client-react-native/examples/storage/get-file-preview.md @@ -2,7 +2,7 @@ import { Client, Storage, ImageGravity, ImageFormat } from "react-native-appwrit const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.5.x/client-react-native/examples/storage/get-file-view.md b/docs/examples/1.5.x/client-react-native/examples/storage/get-file-view.md index b551e024051..1a54452911d 100644 --- a/docs/examples/1.5.x/client-react-native/examples/storage/get-file-view.md +++ b/docs/examples/1.5.x/client-react-native/examples/storage/get-file-view.md @@ -2,7 +2,7 @@ import { Client, Storage } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.5.x/client-react-native/examples/storage/get-file.md b/docs/examples/1.5.x/client-react-native/examples/storage/get-file.md index 8731c8463d2..bbbb3fe9fde 100644 --- a/docs/examples/1.5.x/client-react-native/examples/storage/get-file.md +++ b/docs/examples/1.5.x/client-react-native/examples/storage/get-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -11,4 +11,4 @@ const result = await storage.getFile( '<FILE_ID>' // fileId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/storage/list-files.md b/docs/examples/1.5.x/client-react-native/examples/storage/list-files.md index c72b9ba8a51..731a1d1ef4e 100644 --- a/docs/examples/1.5.x/client-react-native/examples/storage/list-files.md +++ b/docs/examples/1.5.x/client-react-native/examples/storage/list-files.md @@ -2,7 +2,7 @@ import { Client, Storage } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -12,4 +12,4 @@ const result = await storage.listFiles( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/storage/update-file.md b/docs/examples/1.5.x/client-react-native/examples/storage/update-file.md index 87f81ab038a..ba8cc6068a7 100644 --- a/docs/examples/1.5.x/client-react-native/examples/storage/update-file.md +++ b/docs/examples/1.5.x/client-react-native/examples/storage/update-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -13,4 +13,4 @@ const result = await storage.updateFile( ["read("any")"] // permissions (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/create-membership.md b/docs/examples/1.5.x/client-react-native/examples/teams/create-membership.md index a5d6fa043e6..c4fc557461e 100644 --- a/docs/examples/1.5.x/client-react-native/examples/teams/create-membership.md +++ b/docs/examples/1.5.x/client-react-native/examples/teams/create-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -16,4 +16,4 @@ const result = await teams.createMembership( '<NAME>' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/create.md b/docs/examples/1.5.x/client-react-native/examples/teams/create.md index f61df435a21..c252f3df893 100644 --- a/docs/examples/1.5.x/client-react-native/examples/teams/create.md +++ b/docs/examples/1.5.x/client-react-native/examples/teams/create.md @@ -2,7 +2,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -12,4 +12,4 @@ const result = await teams.create( [] // roles (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/delete-membership.md b/docs/examples/1.5.x/client-react-native/examples/teams/delete-membership.md index f5ed1bcf9cc..683c92d12bd 100644 --- a/docs/examples/1.5.x/client-react-native/examples/teams/delete-membership.md +++ b/docs/examples/1.5.x/client-react-native/examples/teams/delete-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.deleteMembership( '<MEMBERSHIP_ID>' // membershipId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/delete.md b/docs/examples/1.5.x/client-react-native/examples/teams/delete.md index 77dac565b0c..dfd63fc9178 100644 --- a/docs/examples/1.5.x/client-react-native/examples/teams/delete.md +++ b/docs/examples/1.5.x/client-react-native/examples/teams/delete.md @@ -2,7 +2,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -10,4 +10,4 @@ const result = await teams.delete( '<TEAM_ID>' // teamId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/get-membership.md b/docs/examples/1.5.x/client-react-native/examples/teams/get-membership.md index 44a664c5dba..4e30d1bda6a 100644 --- a/docs/examples/1.5.x/client-react-native/examples/teams/get-membership.md +++ b/docs/examples/1.5.x/client-react-native/examples/teams/get-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.getMembership( '<MEMBERSHIP_ID>' // membershipId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/get-prefs.md b/docs/examples/1.5.x/client-react-native/examples/teams/get-prefs.md index 5f7cf16921a..40cffb127ed 100644 --- a/docs/examples/1.5.x/client-react-native/examples/teams/get-prefs.md +++ b/docs/examples/1.5.x/client-react-native/examples/teams/get-prefs.md @@ -2,7 +2,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -10,4 +10,4 @@ const result = await teams.getPrefs( '<TEAM_ID>' // teamId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/get.md b/docs/examples/1.5.x/client-react-native/examples/teams/get.md index 28d8895c9c5..dc2d6cd4d17 100644 --- a/docs/examples/1.5.x/client-react-native/examples/teams/get.md +++ b/docs/examples/1.5.x/client-react-native/examples/teams/get.md @@ -2,7 +2,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -10,4 +10,4 @@ const result = await teams.get( '<TEAM_ID>' // teamId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/list-memberships.md b/docs/examples/1.5.x/client-react-native/examples/teams/list-memberships.md index afc2e39d209..7eabeeeeaba 100644 --- a/docs/examples/1.5.x/client-react-native/examples/teams/list-memberships.md +++ b/docs/examples/1.5.x/client-react-native/examples/teams/list-memberships.md @@ -2,7 +2,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -12,4 +12,4 @@ const result = await teams.listMemberships( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/list.md b/docs/examples/1.5.x/client-react-native/examples/teams/list.md index cd97431d141..64b9324dce8 100644 --- a/docs/examples/1.5.x/client-react-native/examples/teams/list.md +++ b/docs/examples/1.5.x/client-react-native/examples/teams/list.md @@ -2,7 +2,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.list( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/update-membership-status.md b/docs/examples/1.5.x/client-react-native/examples/teams/update-membership-status.md index 85eecb93204..0e42de97464 100644 --- a/docs/examples/1.5.x/client-react-native/examples/teams/update-membership-status.md +++ b/docs/examples/1.5.x/client-react-native/examples/teams/update-membership-status.md @@ -2,7 +2,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -13,4 +13,4 @@ const result = await teams.updateMembershipStatus( '<SECRET>' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/update-membership.md b/docs/examples/1.5.x/client-react-native/examples/teams/update-membership.md index 684c40a2d0e..e22fc975d94 100644 --- a/docs/examples/1.5.x/client-react-native/examples/teams/update-membership.md +++ b/docs/examples/1.5.x/client-react-native/examples/teams/update-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -12,4 +12,4 @@ const result = await teams.updateMembership( [] // roles ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/update-name.md b/docs/examples/1.5.x/client-react-native/examples/teams/update-name.md index 75f3fda4ef6..27447af384e 100644 --- a/docs/examples/1.5.x/client-react-native/examples/teams/update-name.md +++ b/docs/examples/1.5.x/client-react-native/examples/teams/update-name.md @@ -2,7 +2,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.updateName( '<NAME>' // name ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/update-prefs.md b/docs/examples/1.5.x/client-react-native/examples/teams/update-prefs.md index f9c4c21623e..02be2aca760 100644 --- a/docs/examples/1.5.x/client-react-native/examples/teams/update-prefs.md +++ b/docs/examples/1.5.x/client-react-native/examples/teams/update-prefs.md @@ -2,7 +2,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.updatePrefs( {} // prefs ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/client-rest/examples/account/create-anonymous-session.md index 6e885831642..c6ea0979117 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-anonymous-session.md @@ -1,6 +1,6 @@ POST /v1/account/sessions/anonymous HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-email-password-session.md b/docs/examples/1.5.x/client-rest/examples/account/create-email-password-session.md index f18903c8b81..3e4485908b2 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-email-password-session.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-email-password-session.md @@ -1,8 +1,8 @@ POST /v1/account/sessions/email HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> { "email": "email@example.com", diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-email-token.md b/docs/examples/1.5.x/client-rest/examples/account/create-email-token.md index f1c96ce045e..a296b5597ee 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-email-token.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-email-token.md @@ -1,8 +1,8 @@ POST /v1/account/tokens/email HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-j-w-t.md b/docs/examples/1.5.x/client-rest/examples/account/create-j-w-t.md index a7a3f688665..9d225fcfc2a 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-j-w-t.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-j-w-t.md @@ -1,6 +1,6 @@ -POST /v1/account/jwt HTTP/1.1 -Host: cloud.appwrite.io +POST /v1/account/jwts HTTP/1.1 +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/client-rest/examples/account/create-magic-u-r-l-token.md index cc88e87f9bd..12581613dce 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-magic-u-r-l-token.md @@ -1,8 +1,8 @@ POST /v1/account/tokens/magic-url HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/client-rest/examples/account/create-mfa-authenticator.md index 9273151f902..fef6b8476c9 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-mfa-authenticator.md @@ -1,8 +1,8 @@ POST /v1/account/mfa/authenticators/{type} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/client-rest/examples/account/create-mfa-challenge.md index d70105084dd..2019a1e52c5 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-mfa-challenge.md @@ -1,8 +1,8 @@ POST /v1/account/mfa/challenge HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> { "factor": "email" diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/client-rest/examples/account/create-mfa-recovery-codes.md index f00650d13d3..81e5621ecea 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-mfa-recovery-codes.md @@ -1,8 +1,8 @@ POST /v1/account/mfa/recovery-codes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-o-auth2session.md b/docs/examples/1.5.x/client-rest/examples/account/create-o-auth2session.md index 1eab4518794..7c7384e449a 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-o-auth2session.md @@ -1,6 +1,6 @@ GET /v1/account/sessions/oauth2/{provider} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/client-rest/examples/account/create-o-auth2token.md index b7c4d078268..f353a881b7b 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-o-auth2token.md @@ -1,6 +1,6 @@ GET /v1/account/tokens/oauth2/{provider} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-phone-token.md b/docs/examples/1.5.x/client-rest/examples/account/create-phone-token.md index d7cdcd50891..45d501a7702 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-phone-token.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-phone-token.md @@ -1,8 +1,8 @@ POST /v1/account/tokens/phone HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-phone-verification.md b/docs/examples/1.5.x/client-rest/examples/account/create-phone-verification.md index a8bd3ad8bd7..bc2bedb3ec0 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-phone-verification.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-phone-verification.md @@ -1,8 +1,8 @@ POST /v1/account/verification/phone HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-push-target.md b/docs/examples/1.5.x/client-rest/examples/account/create-push-target.md index 87a61799f10..8de4e0cd3a3 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-push-target.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-push-target.md @@ -1,8 +1,8 @@ POST /v1/account/targets/push HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: { diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-recovery.md b/docs/examples/1.5.x/client-rest/examples/account/create-recovery.md index ee811be613d..0c4c0046c29 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-recovery.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-recovery.md @@ -1,10 +1,10 @@ POST /v1/account/recovery HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "email": "email@example.com", diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-session.md b/docs/examples/1.5.x/client-rest/examples/account/create-session.md index 725adf4977c..62c8afeb3d4 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-session.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-session.md @@ -1,8 +1,8 @@ POST /v1/account/sessions/token HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/client-rest/examples/account/create-verification.md b/docs/examples/1.5.x/client-rest/examples/account/create-verification.md index e440939e8fe..d89b0ccd040 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create-verification.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create-verification.md @@ -1,10 +1,10 @@ POST /v1/account/verification HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "url": "https://example.com" diff --git a/docs/examples/1.5.x/client-rest/examples/account/create.md b/docs/examples/1.5.x/client-rest/examples/account/create.md index c1a959b43f6..f484be7bbdf 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/create.md +++ b/docs/examples/1.5.x/client-rest/examples/account/create.md @@ -1,8 +1,8 @@ POST /v1/account HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/client-rest/examples/account/delete-identity.md b/docs/examples/1.5.x/client-rest/examples/account/delete-identity.md index b43c8deafda..dbbceb4036b 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/delete-identity.md +++ b/docs/examples/1.5.x/client-rest/examples/account/delete-identity.md @@ -1,8 +1,8 @@ DELETE /v1/account/identities/{identityId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/client-rest/examples/account/delete-mfa-authenticator.md index dfb054f980e..77d8d215ada 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-rest/examples/account/delete-mfa-authenticator.md @@ -1,11 +1,8 @@ DELETE /v1/account/mfa/authenticators/{type} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> -{ - "otp": "<OTP>" -} \ No newline at end of file diff --git a/docs/examples/1.5.x/client-rest/examples/account/delete-push-target.md b/docs/examples/1.5.x/client-rest/examples/account/delete-push-target.md index 3647456bef3..ebc60fddb71 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/delete-push-target.md +++ b/docs/examples/1.5.x/client-rest/examples/account/delete-push-target.md @@ -1,7 +1,7 @@ DELETE /v1/account/targets/{targetId}/push HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: diff --git a/docs/examples/1.5.x/client-rest/examples/account/delete-session.md b/docs/examples/1.5.x/client-rest/examples/account/delete-session.md index ba75cdd52de..7f839667cb5 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/delete-session.md +++ b/docs/examples/1.5.x/client-rest/examples/account/delete-session.md @@ -1,8 +1,8 @@ DELETE /v1/account/sessions/{sessionId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/account/delete-sessions.md b/docs/examples/1.5.x/client-rest/examples/account/delete-sessions.md index b6b3ac55271..6f741155cb5 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/delete-sessions.md +++ b/docs/examples/1.5.x/client-rest/examples/account/delete-sessions.md @@ -1,8 +1,8 @@ DELETE /v1/account/sessions HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/client-rest/examples/account/get-mfa-recovery-codes.md index 095029fc039..7750e99c9df 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-rest/examples/account/get-mfa-recovery-codes.md @@ -1,8 +1,8 @@ GET /v1/account/mfa/recovery-codes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/account/get-prefs.md b/docs/examples/1.5.x/client-rest/examples/account/get-prefs.md index b240b0c36f8..5d12b5fc062 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/get-prefs.md +++ b/docs/examples/1.5.x/client-rest/examples/account/get-prefs.md @@ -1,8 +1,8 @@ GET /v1/account/prefs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/account/get-session.md b/docs/examples/1.5.x/client-rest/examples/account/get-session.md index 525008c4061..72494570178 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/get-session.md +++ b/docs/examples/1.5.x/client-rest/examples/account/get-session.md @@ -1,8 +1,8 @@ GET /v1/account/sessions/{sessionId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/account/get.md b/docs/examples/1.5.x/client-rest/examples/account/get.md index 3318040ddaa..0ff1878deea 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/get.md +++ b/docs/examples/1.5.x/client-rest/examples/account/get.md @@ -1,8 +1,8 @@ GET /v1/account HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/account/list-identities.md b/docs/examples/1.5.x/client-rest/examples/account/list-identities.md index 52399703502..41aa1dd70cf 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/list-identities.md +++ b/docs/examples/1.5.x/client-rest/examples/account/list-identities.md @@ -1,8 +1,8 @@ GET /v1/account/identities HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/account/list-logs.md b/docs/examples/1.5.x/client-rest/examples/account/list-logs.md index 9c4a838d5a4..55b5782ae5c 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/list-logs.md +++ b/docs/examples/1.5.x/client-rest/examples/account/list-logs.md @@ -1,8 +1,8 @@ GET /v1/account/logs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/client-rest/examples/account/list-mfa-factors.md index 0fcbebf6620..3e8479aef87 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/client-rest/examples/account/list-mfa-factors.md @@ -1,8 +1,8 @@ GET /v1/account/mfa/factors HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/account/list-sessions.md b/docs/examples/1.5.x/client-rest/examples/account/list-sessions.md index fbf968ef86e..89f747387fc 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/list-sessions.md +++ b/docs/examples/1.5.x/client-rest/examples/account/list-sessions.md @@ -1,8 +1,8 @@ GET /v1/account/sessions HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-email.md b/docs/examples/1.5.x/client-rest/examples/account/update-email.md index e5a131b0606..be4709dbc71 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-email.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-email.md @@ -1,10 +1,10 @@ PATCH /v1/account/email HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "email": "email@example.com", diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-m-f-a.md b/docs/examples/1.5.x/client-rest/examples/account/update-m-f-a.md index 49311807e75..c7ef57666ef 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-m-f-a.md @@ -1,10 +1,10 @@ PATCH /v1/account/mfa HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "mfa": false diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/client-rest/examples/account/update-magic-u-r-l-session.md index 5789bc204e8..5ca270cc73a 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-magic-u-r-l-session.md @@ -1,8 +1,8 @@ PUT /v1/account/sessions/magic-url HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/client-rest/examples/account/update-mfa-authenticator.md index a55ba579bc7..68eabe28116 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-mfa-authenticator.md @@ -1,10 +1,10 @@ PUT /v1/account/mfa/authenticators/{type} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "otp": "<OTP>" diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/client-rest/examples/account/update-mfa-challenge.md index 5e50a0e88d3..520b5875625 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-mfa-challenge.md @@ -1,10 +1,10 @@ PUT /v1/account/mfa/challenge HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "challengeId": "<CHALLENGE_ID>", diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/client-rest/examples/account/update-mfa-recovery-codes.md index 4ba1cb68569..398d84e4ded 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-mfa-recovery-codes.md @@ -1,8 +1,8 @@ PATCH /v1/account/mfa/recovery-codes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-name.md b/docs/examples/1.5.x/client-rest/examples/account/update-name.md index 40b50e2f0d2..bf7823fab9b 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-name.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-name.md @@ -1,10 +1,10 @@ PATCH /v1/account/name HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "name": "<NAME>" diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-password.md b/docs/examples/1.5.x/client-rest/examples/account/update-password.md index e254c25cd36..eeaf183a149 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-password.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-password.md @@ -1,10 +1,10 @@ PATCH /v1/account/password HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "password": , diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-phone-session.md b/docs/examples/1.5.x/client-rest/examples/account/update-phone-session.md index a9e1a939504..7b62067b9e5 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-phone-session.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-phone-session.md @@ -1,8 +1,8 @@ PUT /v1/account/sessions/phone HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-phone-verification.md b/docs/examples/1.5.x/client-rest/examples/account/update-phone-verification.md index 3ab8ee88715..8050b8ab69b 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-phone-verification.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-phone-verification.md @@ -1,10 +1,10 @@ PUT /v1/account/verification/phone HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-phone.md b/docs/examples/1.5.x/client-rest/examples/account/update-phone.md index b67ed03bea3..0123b564a79 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-phone.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-phone.md @@ -1,10 +1,10 @@ PATCH /v1/account/phone HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "phone": "+12065550100", diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-prefs.md b/docs/examples/1.5.x/client-rest/examples/account/update-prefs.md index 6f7c7308b8d..39a2466ed4a 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-prefs.md @@ -1,10 +1,10 @@ PATCH /v1/account/prefs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "prefs": {} diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-push-target.md b/docs/examples/1.5.x/client-rest/examples/account/update-push-target.md index 9ddd76232c1..6c9b318df40 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-push-target.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-push-target.md @@ -1,8 +1,8 @@ PUT /v1/account/targets/{targetId}/push HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: { diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-recovery.md b/docs/examples/1.5.x/client-rest/examples/account/update-recovery.md index c0c0bf6c8e0..cf388ea9afe 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-recovery.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-recovery.md @@ -1,10 +1,10 @@ PUT /v1/account/recovery HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-session.md b/docs/examples/1.5.x/client-rest/examples/account/update-session.md index ef778661349..ca04f76e6c0 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-session.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-session.md @@ -1,8 +1,8 @@ PATCH /v1/account/sessions/{sessionId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-status.md b/docs/examples/1.5.x/client-rest/examples/account/update-status.md index 809357b70b3..1f47e378b23 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-status.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-status.md @@ -1,8 +1,8 @@ PATCH /v1/account/status HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/account/update-verification.md b/docs/examples/1.5.x/client-rest/examples/account/update-verification.md index e798222b4aa..2558e5b4ffe 100644 --- a/docs/examples/1.5.x/client-rest/examples/account/update-verification.md +++ b/docs/examples/1.5.x/client-rest/examples/account/update-verification.md @@ -1,10 +1,10 @@ PUT /v1/account/verification HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/client-rest/examples/avatars/get-browser.md b/docs/examples/1.5.x/client-rest/examples/avatars/get-browser.md index fb573e4eb6e..93b41903430 100644 --- a/docs/examples/1.5.x/client-rest/examples/avatars/get-browser.md +++ b/docs/examples/1.5.x/client-rest/examples/avatars/get-browser.md @@ -1,8 +1,8 @@ GET /v1/avatars/browsers/{code} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/client-rest/examples/avatars/get-credit-card.md index 1b175ec64cd..d67ce3cd965 100644 --- a/docs/examples/1.5.x/client-rest/examples/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/client-rest/examples/avatars/get-credit-card.md @@ -1,8 +1,8 @@ GET /v1/avatars/credit-cards/{code} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/avatars/get-favicon.md b/docs/examples/1.5.x/client-rest/examples/avatars/get-favicon.md index 03caca5f8fd..f36d5b88f38 100644 --- a/docs/examples/1.5.x/client-rest/examples/avatars/get-favicon.md +++ b/docs/examples/1.5.x/client-rest/examples/avatars/get-favicon.md @@ -1,8 +1,8 @@ GET /v1/avatars/favicon HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/avatars/get-flag.md b/docs/examples/1.5.x/client-rest/examples/avatars/get-flag.md index dfe77dcfc04..c5fe6059b7d 100644 --- a/docs/examples/1.5.x/client-rest/examples/avatars/get-flag.md +++ b/docs/examples/1.5.x/client-rest/examples/avatars/get-flag.md @@ -1,8 +1,8 @@ GET /v1/avatars/flags/{code} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/avatars/get-image.md b/docs/examples/1.5.x/client-rest/examples/avatars/get-image.md index 566ee63a891..03dd55aa6c5 100644 --- a/docs/examples/1.5.x/client-rest/examples/avatars/get-image.md +++ b/docs/examples/1.5.x/client-rest/examples/avatars/get-image.md @@ -1,8 +1,8 @@ GET /v1/avatars/image HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/avatars/get-initials.md b/docs/examples/1.5.x/client-rest/examples/avatars/get-initials.md index cac12f0c6e3..3f78e796b17 100644 --- a/docs/examples/1.5.x/client-rest/examples/avatars/get-initials.md +++ b/docs/examples/1.5.x/client-rest/examples/avatars/get-initials.md @@ -1,8 +1,8 @@ GET /v1/avatars/initials HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/avatars/get-q-r.md b/docs/examples/1.5.x/client-rest/examples/avatars/get-q-r.md index a2ee2e0ca4a..129560b001d 100644 --- a/docs/examples/1.5.x/client-rest/examples/avatars/get-q-r.md +++ b/docs/examples/1.5.x/client-rest/examples/avatars/get-q-r.md @@ -1,8 +1,8 @@ GET /v1/avatars/qr HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/databases/create-document.md b/docs/examples/1.5.x/client-rest/examples/databases/create-document.md index 9ce28584566..f4e595f77ff 100644 --- a/docs/examples/1.5.x/client-rest/examples/databases/create-document.md +++ b/docs/examples/1.5.x/client-rest/examples/databases/create-document.md @@ -1,10 +1,10 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "documentId": "<DOCUMENT_ID>", diff --git a/docs/examples/1.5.x/client-rest/examples/databases/delete-document.md b/docs/examples/1.5.x/client-rest/examples/databases/delete-document.md index b085a2a9f64..c26d715d42c 100644 --- a/docs/examples/1.5.x/client-rest/examples/databases/delete-document.md +++ b/docs/examples/1.5.x/client-rest/examples/databases/delete-document.md @@ -1,8 +1,8 @@ DELETE /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/databases/get-document.md b/docs/examples/1.5.x/client-rest/examples/databases/get-document.md index 5baf4f70311..2815e446ca7 100644 --- a/docs/examples/1.5.x/client-rest/examples/databases/get-document.md +++ b/docs/examples/1.5.x/client-rest/examples/databases/get-document.md @@ -1,8 +1,8 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/databases/list-documents.md b/docs/examples/1.5.x/client-rest/examples/databases/list-documents.md index 95e788f0bb8..d6b7746f034 100644 --- a/docs/examples/1.5.x/client-rest/examples/databases/list-documents.md +++ b/docs/examples/1.5.x/client-rest/examples/databases/list-documents.md @@ -1,8 +1,8 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/databases/update-document.md b/docs/examples/1.5.x/client-rest/examples/databases/update-document.md index 87119b61ff8..ae0aa4df281 100644 --- a/docs/examples/1.5.x/client-rest/examples/databases/update-document.md +++ b/docs/examples/1.5.x/client-rest/examples/databases/update-document.md @@ -1,10 +1,10 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "data": {}, diff --git a/docs/examples/1.5.x/client-rest/examples/functions/create-execution.md b/docs/examples/1.5.x/client-rest/examples/functions/create-execution.md index 5a9c4449b27..600a8b5cf3b 100644 --- a/docs/examples/1.5.x/client-rest/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/client-rest/examples/functions/create-execution.md @@ -1,15 +1,16 @@ POST /v1/functions/{functionId}/executions HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "body": "<BODY>", "async": false, "path": "<PATH>", "method": "GET", - "headers": {} + "headers": {}, + "scheduledAt": } diff --git a/docs/examples/1.5.x/client-rest/examples/functions/get-execution.md b/docs/examples/1.5.x/client-rest/examples/functions/get-execution.md index 10a55824b41..36879bf50f9 100644 --- a/docs/examples/1.5.x/client-rest/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/client-rest/examples/functions/get-execution.md @@ -1,8 +1,8 @@ GET /v1/functions/{functionId}/executions/{executionId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/functions/list-executions.md b/docs/examples/1.5.x/client-rest/examples/functions/list-executions.md index 11f64ba362c..e87274915d9 100644 --- a/docs/examples/1.5.x/client-rest/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/client-rest/examples/functions/list-executions.md @@ -1,8 +1,8 @@ GET /v1/functions/{functionId}/executions HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/graphql/mutation.md b/docs/examples/1.5.x/client-rest/examples/graphql/mutation.md index ced360c0921..6def0f1720a 100644 --- a/docs/examples/1.5.x/client-rest/examples/graphql/mutation.md +++ b/docs/examples/1.5.x/client-rest/examples/graphql/mutation.md @@ -1,11 +1,11 @@ POST /v1/graphql/mutation HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io X-Sdk-Graphql: true Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "query": {} diff --git a/docs/examples/1.5.x/client-rest/examples/graphql/query.md b/docs/examples/1.5.x/client-rest/examples/graphql/query.md index 8edf1338f16..cba232be9fc 100644 --- a/docs/examples/1.5.x/client-rest/examples/graphql/query.md +++ b/docs/examples/1.5.x/client-rest/examples/graphql/query.md @@ -1,11 +1,11 @@ POST /v1/graphql HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io X-Sdk-Graphql: true Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "query": {} diff --git a/docs/examples/1.5.x/client-rest/examples/locale/get.md b/docs/examples/1.5.x/client-rest/examples/locale/get.md index 6fb003b3003..df152587a1d 100644 --- a/docs/examples/1.5.x/client-rest/examples/locale/get.md +++ b/docs/examples/1.5.x/client-rest/examples/locale/get.md @@ -1,8 +1,8 @@ GET /v1/locale HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/locale/list-codes.md b/docs/examples/1.5.x/client-rest/examples/locale/list-codes.md index 9ee5aa201c7..82025385290 100644 --- a/docs/examples/1.5.x/client-rest/examples/locale/list-codes.md +++ b/docs/examples/1.5.x/client-rest/examples/locale/list-codes.md @@ -1,8 +1,8 @@ GET /v1/locale/codes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/locale/list-continents.md b/docs/examples/1.5.x/client-rest/examples/locale/list-continents.md index 25873b28305..83e2e5cefdf 100644 --- a/docs/examples/1.5.x/client-rest/examples/locale/list-continents.md +++ b/docs/examples/1.5.x/client-rest/examples/locale/list-continents.md @@ -1,8 +1,8 @@ GET /v1/locale/continents HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/client-rest/examples/locale/list-countries-e-u.md index 98bb6f4f968..a759f6648e0 100644 --- a/docs/examples/1.5.x/client-rest/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/client-rest/examples/locale/list-countries-e-u.md @@ -1,8 +1,8 @@ GET /v1/locale/countries/eu HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/client-rest/examples/locale/list-countries-phones.md index 2128ba9bebe..a5f24fb4464 100644 --- a/docs/examples/1.5.x/client-rest/examples/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/client-rest/examples/locale/list-countries-phones.md @@ -1,8 +1,8 @@ GET /v1/locale/countries/phones HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/locale/list-countries.md b/docs/examples/1.5.x/client-rest/examples/locale/list-countries.md index 8bd074f8f71..5e6bd113610 100644 --- a/docs/examples/1.5.x/client-rest/examples/locale/list-countries.md +++ b/docs/examples/1.5.x/client-rest/examples/locale/list-countries.md @@ -1,8 +1,8 @@ GET /v1/locale/countries HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/locale/list-currencies.md b/docs/examples/1.5.x/client-rest/examples/locale/list-currencies.md index 06d8ab1aabd..9682eb8aa73 100644 --- a/docs/examples/1.5.x/client-rest/examples/locale/list-currencies.md +++ b/docs/examples/1.5.x/client-rest/examples/locale/list-currencies.md @@ -1,8 +1,8 @@ GET /v1/locale/currencies HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/locale/list-languages.md b/docs/examples/1.5.x/client-rest/examples/locale/list-languages.md index fa855689d34..832862033e2 100644 --- a/docs/examples/1.5.x/client-rest/examples/locale/list-languages.md +++ b/docs/examples/1.5.x/client-rest/examples/locale/list-languages.md @@ -1,8 +1,8 @@ GET /v1/locale/languages HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/client-rest/examples/messaging/create-subscriber.md index add7db20350..a9a293bec1e 100644 --- a/docs/examples/1.5.x/client-rest/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/client-rest/examples/messaging/create-subscriber.md @@ -1,9 +1,9 @@ POST /v1/messaging/topics/{topicId}/subscribers HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-JWT: <YOUR_JWT> X-Appwrite-Session: { diff --git a/docs/examples/1.5.x/client-rest/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/client-rest/examples/messaging/delete-subscriber.md index d9cb558e50d..4b1d3129789 100644 --- a/docs/examples/1.5.x/client-rest/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/client-rest/examples/messaging/delete-subscriber.md @@ -1,8 +1,8 @@ DELETE /v1/messaging/topics/{topicId}/subscribers/{subscriberId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-JWT: <YOUR_JWT> X-Appwrite-Session: diff --git a/docs/examples/1.5.x/client-rest/examples/storage/create-file.md b/docs/examples/1.5.x/client-rest/examples/storage/create-file.md index 4f4d6e18d59..5eebfa95db1 100644 --- a/docs/examples/1.5.x/client-rest/examples/storage/create-file.md +++ b/docs/examples/1.5.x/client-rest/examples/storage/create-file.md @@ -1,10 +1,10 @@ POST /v1/storage/buckets/{bucketId}/files HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> Content-Length: *Length of your entity body in bytes* --cec8e8123c05ba25 diff --git a/docs/examples/1.5.x/client-rest/examples/storage/delete-file.md b/docs/examples/1.5.x/client-rest/examples/storage/delete-file.md index 4c615d3f672..fc4bc5f09a9 100644 --- a/docs/examples/1.5.x/client-rest/examples/storage/delete-file.md +++ b/docs/examples/1.5.x/client-rest/examples/storage/delete-file.md @@ -1,8 +1,8 @@ DELETE /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/storage/get-file-download.md b/docs/examples/1.5.x/client-rest/examples/storage/get-file-download.md index 40e66ae9e27..fe870a0f85a 100644 --- a/docs/examples/1.5.x/client-rest/examples/storage/get-file-download.md +++ b/docs/examples/1.5.x/client-rest/examples/storage/get-file-download.md @@ -1,8 +1,8 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/download HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/storage/get-file-preview.md b/docs/examples/1.5.x/client-rest/examples/storage/get-file-preview.md index 64c142275df..97d26eb1e16 100644 --- a/docs/examples/1.5.x/client-rest/examples/storage/get-file-preview.md +++ b/docs/examples/1.5.x/client-rest/examples/storage/get-file-preview.md @@ -1,8 +1,8 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/preview HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/storage/get-file-view.md b/docs/examples/1.5.x/client-rest/examples/storage/get-file-view.md index fbc29da6b21..d24c5fdc49e 100644 --- a/docs/examples/1.5.x/client-rest/examples/storage/get-file-view.md +++ b/docs/examples/1.5.x/client-rest/examples/storage/get-file-view.md @@ -1,8 +1,8 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/view HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/storage/get-file.md b/docs/examples/1.5.x/client-rest/examples/storage/get-file.md index 42bca7c1de7..31500497b5c 100644 --- a/docs/examples/1.5.x/client-rest/examples/storage/get-file.md +++ b/docs/examples/1.5.x/client-rest/examples/storage/get-file.md @@ -1,8 +1,8 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/storage/list-files.md b/docs/examples/1.5.x/client-rest/examples/storage/list-files.md index 9b463a721b2..53bea3033f0 100644 --- a/docs/examples/1.5.x/client-rest/examples/storage/list-files.md +++ b/docs/examples/1.5.x/client-rest/examples/storage/list-files.md @@ -1,8 +1,8 @@ GET /v1/storage/buckets/{bucketId}/files HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/storage/update-file.md b/docs/examples/1.5.x/client-rest/examples/storage/update-file.md index 3659c229b55..ab03cd18e03 100644 --- a/docs/examples/1.5.x/client-rest/examples/storage/update-file.md +++ b/docs/examples/1.5.x/client-rest/examples/storage/update-file.md @@ -1,10 +1,10 @@ PUT /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/client-rest/examples/teams/create-membership.md b/docs/examples/1.5.x/client-rest/examples/teams/create-membership.md index f47ae88b650..4bf97cb154c 100644 --- a/docs/examples/1.5.x/client-rest/examples/teams/create-membership.md +++ b/docs/examples/1.5.x/client-rest/examples/teams/create-membership.md @@ -1,10 +1,10 @@ POST /v1/teams/{teamId}/memberships HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "email": "email@example.com", diff --git a/docs/examples/1.5.x/client-rest/examples/teams/create.md b/docs/examples/1.5.x/client-rest/examples/teams/create.md index 6208bd164b5..d24eaf69a4d 100644 --- a/docs/examples/1.5.x/client-rest/examples/teams/create.md +++ b/docs/examples/1.5.x/client-rest/examples/teams/create.md @@ -1,10 +1,10 @@ POST /v1/teams HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "teamId": "<TEAM_ID>", diff --git a/docs/examples/1.5.x/client-rest/examples/teams/delete-membership.md b/docs/examples/1.5.x/client-rest/examples/teams/delete-membership.md index fd9e054bdd1..f162ef71adc 100644 --- a/docs/examples/1.5.x/client-rest/examples/teams/delete-membership.md +++ b/docs/examples/1.5.x/client-rest/examples/teams/delete-membership.md @@ -1,8 +1,8 @@ DELETE /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/teams/delete.md b/docs/examples/1.5.x/client-rest/examples/teams/delete.md index 5766cc8a271..4ed41db00f7 100644 --- a/docs/examples/1.5.x/client-rest/examples/teams/delete.md +++ b/docs/examples/1.5.x/client-rest/examples/teams/delete.md @@ -1,8 +1,8 @@ DELETE /v1/teams/{teamId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/teams/get-membership.md b/docs/examples/1.5.x/client-rest/examples/teams/get-membership.md index 7c94a9e6dc6..8a7488ec3b5 100644 --- a/docs/examples/1.5.x/client-rest/examples/teams/get-membership.md +++ b/docs/examples/1.5.x/client-rest/examples/teams/get-membership.md @@ -1,8 +1,8 @@ GET /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/teams/get-prefs.md b/docs/examples/1.5.x/client-rest/examples/teams/get-prefs.md index dfac0657344..0486648b296 100644 --- a/docs/examples/1.5.x/client-rest/examples/teams/get-prefs.md +++ b/docs/examples/1.5.x/client-rest/examples/teams/get-prefs.md @@ -1,8 +1,8 @@ GET /v1/teams/{teamId}/prefs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/teams/get.md b/docs/examples/1.5.x/client-rest/examples/teams/get.md index 2b2a13fdb67..25e5d59eba5 100644 --- a/docs/examples/1.5.x/client-rest/examples/teams/get.md +++ b/docs/examples/1.5.x/client-rest/examples/teams/get.md @@ -1,8 +1,8 @@ GET /v1/teams/{teamId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/teams/list-memberships.md b/docs/examples/1.5.x/client-rest/examples/teams/list-memberships.md index 22624768b4f..691fecfa4dc 100644 --- a/docs/examples/1.5.x/client-rest/examples/teams/list-memberships.md +++ b/docs/examples/1.5.x/client-rest/examples/teams/list-memberships.md @@ -1,8 +1,8 @@ GET /v1/teams/{teamId}/memberships HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/teams/list.md b/docs/examples/1.5.x/client-rest/examples/teams/list.md index 9baa9b359f7..4fbc6a6afa8 100644 --- a/docs/examples/1.5.x/client-rest/examples/teams/list.md +++ b/docs/examples/1.5.x/client-rest/examples/teams/list.md @@ -1,8 +1,8 @@ GET /v1/teams HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/client-rest/examples/teams/update-membership-status.md b/docs/examples/1.5.x/client-rest/examples/teams/update-membership-status.md index dbcfd29391d..5fa7888d063 100644 --- a/docs/examples/1.5.x/client-rest/examples/teams/update-membership-status.md +++ b/docs/examples/1.5.x/client-rest/examples/teams/update-membership-status.md @@ -1,10 +1,10 @@ PATCH /v1/teams/{teamId}/memberships/{membershipId}/status HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/client-rest/examples/teams/update-membership.md b/docs/examples/1.5.x/client-rest/examples/teams/update-membership.md index 843e99ef24e..672e8c5f1c6 100644 --- a/docs/examples/1.5.x/client-rest/examples/teams/update-membership.md +++ b/docs/examples/1.5.x/client-rest/examples/teams/update-membership.md @@ -1,10 +1,10 @@ PATCH /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "roles": [] diff --git a/docs/examples/1.5.x/client-rest/examples/teams/update-name.md b/docs/examples/1.5.x/client-rest/examples/teams/update-name.md index 9df25968b92..07d3be22ba0 100644 --- a/docs/examples/1.5.x/client-rest/examples/teams/update-name.md +++ b/docs/examples/1.5.x/client-rest/examples/teams/update-name.md @@ -1,10 +1,10 @@ PUT /v1/teams/{teamId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "name": "<NAME>" diff --git a/docs/examples/1.5.x/client-rest/examples/teams/update-prefs.md b/docs/examples/1.5.x/client-rest/examples/teams/update-prefs.md index 1cf422595b1..b6b2cc6b977 100644 --- a/docs/examples/1.5.x/client-rest/examples/teams/update-prefs.md +++ b/docs/examples/1.5.x/client-rest/examples/teams/update-prefs.md @@ -1,10 +1,10 @@ PUT /v1/teams/{teamId}/prefs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "prefs": {} diff --git a/docs/examples/1.5.x/client-web/examples/account/add-authenticator.md b/docs/examples/1.5.x/client-web/examples/account/add-authenticator.md index e3241bc0be2..c1e7e3fb9de 100644 --- a/docs/examples/1.5.x/client-web/examples/account/add-authenticator.md +++ b/docs/examples/1.5.x/client-web/examples/account/add-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/client-web/examples/account/create-anonymous-session.md index 618b0034575..9a78549a302 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-anonymous-session.md @@ -2,10 +2,10 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.createAnonymousSession(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-challenge.md b/docs/examples/1.5.x/client-web/examples/account/create-challenge.md index b56439fba64..2b4e9796e93 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-challenge.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-challenge.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticationFactor } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-email-password-session.md b/docs/examples/1.5.x/client-web/examples/account/create-email-password-session.md index 7bbb30e4985..517a7c75183 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-email-password-session.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-email-password-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.createEmailPasswordSession( 'password' // password ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-email-token.md b/docs/examples/1.5.x/client-web/examples/account/create-email-token.md index 3591fcd5059..bcc9316b4e4 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-email-token.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-email-token.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -12,4 +12,4 @@ const result = await account.createEmailToken( false // phrase (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-j-w-t.md b/docs/examples/1.5.x/client-web/examples/account/create-j-w-t.md index 467d7ab93e3..e01d8de36e5 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-j-w-t.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-j-w-t.md @@ -2,10 +2,10 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.createJWT(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/client-web/examples/account/create-magic-u-r-l-token.md index c65b5e51c7a..155944702a1 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-magic-u-r-l-token.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -13,4 +13,4 @@ const result = await account.createMagicURLToken( false // phrase (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/client-web/examples/account/create-mfa-authenticator.md index e367f24bf75..6551d13f219 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-mfa-authenticator.md @@ -2,7 +2,7 @@ import { Client, Account, AuthenticatorType } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.createMfaAuthenticator( AuthenticatorType.Totp // type ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/client-web/examples/account/create-mfa-challenge.md index 48318c749d8..c620ca20cd9 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-mfa-challenge.md @@ -2,7 +2,7 @@ import { Client, Account, AuthenticationFactor } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.createMfaChallenge( AuthenticationFactor.Email // factor ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/client-web/examples/account/create-mfa-recovery-codes.md index ef5d35d5742..5a3f6f2d8c6 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-mfa-recovery-codes.md @@ -2,10 +2,10 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.createMfaRecoveryCodes(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-o-auth2session.md b/docs/examples/1.5.x/client-web/examples/account/create-o-auth2session.md index c158e3e77b0..0d797a8eac6 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-o-auth2session.md @@ -2,7 +2,7 @@ import { Client, Account, OAuthProvider } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/client-web/examples/account/create-o-auth2token.md index a4ca0496f53..a8d7300675e 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-o-auth2token.md @@ -2,7 +2,7 @@ import { Client, Account, OAuthProvider } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-phone-token.md b/docs/examples/1.5.x/client-web/examples/account/create-phone-token.md index d67892a4814..01a5d68af46 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-phone-token.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-phone-token.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.createPhoneToken( '+12065550100' // phone ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-phone-verification.md b/docs/examples/1.5.x/client-web/examples/account/create-phone-verification.md index cdb4629a229..5da89e9bc09 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-phone-verification.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-phone-verification.md @@ -2,10 +2,10 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.createPhoneVerification(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-push-target.md b/docs/examples/1.5.x/client-web/examples/account/create-push-target.md index fe6dd99a4cc..abbbf420576 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-push-target.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-push-target.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -12,4 +12,4 @@ const result = await account.createPushTarget( '<PROVIDER_ID>' // providerId (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-recovery.md b/docs/examples/1.5.x/client-web/examples/account/create-recovery.md index d6014cd94cc..4d3ec34786e 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-recovery.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-recovery.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.createRecovery( 'https://example.com' // url ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-session.md b/docs/examples/1.5.x/client-web/examples/account/create-session.md index a3ee7ccca8f..fe43a12c71c 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-session.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.createSession( '<SECRET>' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/create-verification.md b/docs/examples/1.5.x/client-web/examples/account/create-verification.md index 1757f3c984a..60bb2d270e5 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create-verification.md +++ b/docs/examples/1.5.x/client-web/examples/account/create-verification.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.createVerification( 'https://example.com' // url ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/create.md b/docs/examples/1.5.x/client-web/examples/account/create.md index 069ade299bd..eb4634faeb1 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create.md +++ b/docs/examples/1.5.x/client-web/examples/account/create.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -13,4 +13,4 @@ const result = await account.create( '<NAME>' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/create2f-a-challenge.md b/docs/examples/1.5.x/client-web/examples/account/create2f-a-challenge.md index 24a0871e205..317d60daa12 100644 --- a/docs/examples/1.5.x/client-web/examples/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/client-web/examples/account/create2f-a-challenge.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticationFactor } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/client-web/examples/account/delete-authenticator.md b/docs/examples/1.5.x/client-web/examples/account/delete-authenticator.md index f3c504865df..cb97fb7d482 100644 --- a/docs/examples/1.5.x/client-web/examples/account/delete-authenticator.md +++ b/docs/examples/1.5.x/client-web/examples/account/delete-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/client-web/examples/account/delete-identity.md b/docs/examples/1.5.x/client-web/examples/account/delete-identity.md index 07558e07916..7a6dbae0be5 100644 --- a/docs/examples/1.5.x/client-web/examples/account/delete-identity.md +++ b/docs/examples/1.5.x/client-web/examples/account/delete-identity.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.deleteIdentity( '<IDENTITY_ID>' // identityId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/client-web/examples/account/delete-mfa-authenticator.md index 6d389247e38..44f00653996 100644 --- a/docs/examples/1.5.x/client-web/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-web/examples/account/delete-mfa-authenticator.md @@ -2,13 +2,12 @@ import { Client, Account, AuthenticatorType } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.deleteMfaAuthenticator( - AuthenticatorType.Totp, // type - '<OTP>' // otp + AuthenticatorType.Totp // type ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/delete-push-target.md b/docs/examples/1.5.x/client-web/examples/account/delete-push-target.md index a5e7cb3fdf1..7b8f505196a 100644 --- a/docs/examples/1.5.x/client-web/examples/account/delete-push-target.md +++ b/docs/examples/1.5.x/client-web/examples/account/delete-push-target.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.deletePushTarget( '<TARGET_ID>' // targetId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/delete-session.md b/docs/examples/1.5.x/client-web/examples/account/delete-session.md index 4d5129f51ef..15e91fada04 100644 --- a/docs/examples/1.5.x/client-web/examples/account/delete-session.md +++ b/docs/examples/1.5.x/client-web/examples/account/delete-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.deleteSession( '<SESSION_ID>' // sessionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/delete-sessions.md b/docs/examples/1.5.x/client-web/examples/account/delete-sessions.md index a15d1309a16..71761b2e77c 100644 --- a/docs/examples/1.5.x/client-web/examples/account/delete-sessions.md +++ b/docs/examples/1.5.x/client-web/examples/account/delete-sessions.md @@ -2,10 +2,10 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.deleteSessions(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/client-web/examples/account/get-mfa-recovery-codes.md index fe3b7a37594..3a8c308052b 100644 --- a/docs/examples/1.5.x/client-web/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-web/examples/account/get-mfa-recovery-codes.md @@ -2,10 +2,10 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.getMfaRecoveryCodes(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/get-prefs.md b/docs/examples/1.5.x/client-web/examples/account/get-prefs.md index a65891177fe..749df1642fd 100644 --- a/docs/examples/1.5.x/client-web/examples/account/get-prefs.md +++ b/docs/examples/1.5.x/client-web/examples/account/get-prefs.md @@ -2,10 +2,10 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.getPrefs(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/get-session.md b/docs/examples/1.5.x/client-web/examples/account/get-session.md index b11278b9377..6e491f5f68e 100644 --- a/docs/examples/1.5.x/client-web/examples/account/get-session.md +++ b/docs/examples/1.5.x/client-web/examples/account/get-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.getSession( '<SESSION_ID>' // sessionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/get.md b/docs/examples/1.5.x/client-web/examples/account/get.md index 7c000bbe898..16498a4b395 100644 --- a/docs/examples/1.5.x/client-web/examples/account/get.md +++ b/docs/examples/1.5.x/client-web/examples/account/get.md @@ -2,10 +2,10 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.get(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/list-factors.md b/docs/examples/1.5.x/client-web/examples/account/list-factors.md index a8a152f763d..d9d2bcb0ef2 100644 --- a/docs/examples/1.5.x/client-web/examples/account/list-factors.md +++ b/docs/examples/1.5.x/client-web/examples/account/list-factors.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/client-web/examples/account/list-identities.md b/docs/examples/1.5.x/client-web/examples/account/list-identities.md index 4c627ce07df..f6febdf192c 100644 --- a/docs/examples/1.5.x/client-web/examples/account/list-identities.md +++ b/docs/examples/1.5.x/client-web/examples/account/list-identities.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.listIdentities( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/list-logs.md b/docs/examples/1.5.x/client-web/examples/account/list-logs.md index 973e37b2f00..02f1abb0b78 100644 --- a/docs/examples/1.5.x/client-web/examples/account/list-logs.md +++ b/docs/examples/1.5.x/client-web/examples/account/list-logs.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.listLogs( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/client-web/examples/account/list-mfa-factors.md index 2e7a6f19348..9a9c0d4cd66 100644 --- a/docs/examples/1.5.x/client-web/examples/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/client-web/examples/account/list-mfa-factors.md @@ -2,10 +2,10 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.listMfaFactors(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/list-sessions.md b/docs/examples/1.5.x/client-web/examples/account/list-sessions.md index 0220b3abf1f..a42018a00f7 100644 --- a/docs/examples/1.5.x/client-web/examples/account/list-sessions.md +++ b/docs/examples/1.5.x/client-web/examples/account/list-sessions.md @@ -2,10 +2,10 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.listSessions(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-challenge.md b/docs/examples/1.5.x/client-web/examples/account/update-challenge.md index 7437b3a6fc2..de95606069a 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-challenge.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-challenge.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-email.md b/docs/examples/1.5.x/client-web/examples/account/update-email.md index 06fabe0888d..e15f23c1c99 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-email.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-email.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updateEmail( 'password' // password ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-m-f-a.md b/docs/examples/1.5.x/client-web/examples/account/update-m-f-a.md index 4e6bb651af2..8ac76070867 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-m-f-a.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.updateMFA( false // mfa ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/client-web/examples/account/update-magic-u-r-l-session.md index 665b9f28df9..5f268f89835 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updateMagicURLSession( '<SECRET>' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/client-web/examples/account/update-mfa-authenticator.md index 50bd12105b3..34419463039 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-mfa-authenticator.md @@ -2,7 +2,7 @@ import { Client, Account, AuthenticatorType } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updateMfaAuthenticator( '<OTP>' // otp ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/client-web/examples/account/update-mfa-challenge.md index ca9a85d0f43..6c83570d3d7 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-mfa-challenge.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updateMfaChallenge( '<OTP>' // otp ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/client-web/examples/account/update-mfa-recovery-codes.md index 529fbae4400..dce2d4e2e0a 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-mfa-recovery-codes.md @@ -2,10 +2,10 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.updateMfaRecoveryCodes(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-name.md b/docs/examples/1.5.x/client-web/examples/account/update-name.md index ac11894f8cc..26258fd0558 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-name.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-name.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.updateName( '<NAME>' // name ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-password.md b/docs/examples/1.5.x/client-web/examples/account/update-password.md index f7c815ba765..84267c06498 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-password.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-password.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updatePassword( 'password' // oldPassword (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-phone-session.md b/docs/examples/1.5.x/client-web/examples/account/update-phone-session.md index 1d64eb539ec..5ab19851878 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-phone-session.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-phone-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updatePhoneSession( '<SECRET>' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-phone-verification.md b/docs/examples/1.5.x/client-web/examples/account/update-phone-verification.md index 53251691ea6..91cb79d0631 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-phone-verification.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-phone-verification.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updatePhoneVerification( '<SECRET>' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-phone.md b/docs/examples/1.5.x/client-web/examples/account/update-phone.md index 87779d4afba..03947e31d5e 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-phone.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-phone.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updatePhone( 'password' // password ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-prefs.md b/docs/examples/1.5.x/client-web/examples/account/update-prefs.md index d97cd059188..4f3039f3d8f 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-prefs.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.updatePrefs( {} // prefs ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-push-target.md b/docs/examples/1.5.x/client-web/examples/account/update-push-target.md index a8ac97c23f6..4803f6ba1e1 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-push-target.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-push-target.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updatePushTarget( '<IDENTIFIER>' // identifier ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-recovery.md b/docs/examples/1.5.x/client-web/examples/account/update-recovery.md index 90bfb6d442e..716efd2b484 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-recovery.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-recovery.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -12,4 +12,4 @@ const result = await account.updateRecovery( '' // password ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-session.md b/docs/examples/1.5.x/client-web/examples/account/update-session.md index 5f30f172e54..b4370569b94 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-session.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.updateSession( '<SESSION_ID>' // sessionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-status.md b/docs/examples/1.5.x/client-web/examples/account/update-status.md index e67bc78021d..c4b2c0eafb2 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-status.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-status.md @@ -2,10 +2,10 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.updateStatus(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/update-verification.md b/docs/examples/1.5.x/client-web/examples/account/update-verification.md index a57fe4bf630..f928efdb4ea 100644 --- a/docs/examples/1.5.x/client-web/examples/account/update-verification.md +++ b/docs/examples/1.5.x/client-web/examples/account/update-verification.md @@ -2,7 +2,7 @@ import { Client, Account } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updateVerification( '<SECRET>' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/account/verify-authenticator.md b/docs/examples/1.5.x/client-web/examples/account/verify-authenticator.md index 905ff39792c..1c943e098e2 100644 --- a/docs/examples/1.5.x/client-web/examples/account/verify-authenticator.md +++ b/docs/examples/1.5.x/client-web/examples/account/verify-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/client-web/examples/avatars/get-browser.md b/docs/examples/1.5.x/client-web/examples/avatars/get-browser.md index 682ba98f474..3ead6d6d2bf 100644 --- a/docs/examples/1.5.x/client-web/examples/avatars/get-browser.md +++ b/docs/examples/1.5.x/client-web/examples/avatars/get-browser.md @@ -2,7 +2,7 @@ import { Client, Avatars, Browser } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-web/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/client-web/examples/avatars/get-credit-card.md index 68b5337eac7..1391a33f19f 100644 --- a/docs/examples/1.5.x/client-web/examples/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/client-web/examples/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import { Client, Avatars, CreditCard } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-web/examples/avatars/get-favicon.md b/docs/examples/1.5.x/client-web/examples/avatars/get-favicon.md index 5d5e93bef5f..4da10c5f30b 100644 --- a/docs/examples/1.5.x/client-web/examples/avatars/get-favicon.md +++ b/docs/examples/1.5.x/client-web/examples/avatars/get-favicon.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-web/examples/avatars/get-flag.md b/docs/examples/1.5.x/client-web/examples/avatars/get-flag.md index e8521c9fa42..3bfe49d6491 100644 --- a/docs/examples/1.5.x/client-web/examples/avatars/get-flag.md +++ b/docs/examples/1.5.x/client-web/examples/avatars/get-flag.md @@ -2,7 +2,7 @@ import { Client, Avatars, Flag } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-web/examples/avatars/get-image.md b/docs/examples/1.5.x/client-web/examples/avatars/get-image.md index 8b8fbd97e9f..ef639f60799 100644 --- a/docs/examples/1.5.x/client-web/examples/avatars/get-image.md +++ b/docs/examples/1.5.x/client-web/examples/avatars/get-image.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-web/examples/avatars/get-initials.md b/docs/examples/1.5.x/client-web/examples/avatars/get-initials.md index cc456a4638e..25d23203dd8 100644 --- a/docs/examples/1.5.x/client-web/examples/avatars/get-initials.md +++ b/docs/examples/1.5.x/client-web/examples/avatars/get-initials.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-web/examples/avatars/get-q-r.md b/docs/examples/1.5.x/client-web/examples/avatars/get-q-r.md index 5254a56fd04..83344a0c84e 100644 --- a/docs/examples/1.5.x/client-web/examples/avatars/get-q-r.md +++ b/docs/examples/1.5.x/client-web/examples/avatars/get-q-r.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/client-web/examples/databases/create-document.md b/docs/examples/1.5.x/client-web/examples/databases/create-document.md index 3a4d53d24d2..45448a893c4 100644 --- a/docs/examples/1.5.x/client-web/examples/databases/create-document.md +++ b/docs/examples/1.5.x/client-web/examples/databases/create-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -14,4 +14,4 @@ const result = await databases.createDocument( ["read("any")"] // permissions (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/databases/delete-document.md b/docs/examples/1.5.x/client-web/examples/databases/delete-document.md index a08b3c7cc07..623e172a010 100644 --- a/docs/examples/1.5.x/client-web/examples/databases/delete-document.md +++ b/docs/examples/1.5.x/client-web/examples/databases/delete-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.deleteDocument( '<DOCUMENT_ID>' // documentId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/databases/get-document.md b/docs/examples/1.5.x/client-web/examples/databases/get-document.md index d8fe456dbb2..bdf9089c500 100644 --- a/docs/examples/1.5.x/client-web/examples/databases/get-document.md +++ b/docs/examples/1.5.x/client-web/examples/databases/get-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -13,4 +13,4 @@ const result = await databases.getDocument( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/databases/list-documents.md b/docs/examples/1.5.x/client-web/examples/databases/list-documents.md index 3070b002b63..1d5e48a8dbf 100644 --- a/docs/examples/1.5.x/client-web/examples/databases/list-documents.md +++ b/docs/examples/1.5.x/client-web/examples/databases/list-documents.md @@ -2,7 +2,7 @@ import { Client, Databases } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.listDocuments( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/databases/update-document.md b/docs/examples/1.5.x/client-web/examples/databases/update-document.md index 1daaf01038d..b7e4d5b276a 100644 --- a/docs/examples/1.5.x/client-web/examples/databases/update-document.md +++ b/docs/examples/1.5.x/client-web/examples/databases/update-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -14,4 +14,4 @@ const result = await databases.updateDocument( ["read("any")"] // permissions (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/functions/create-execution.md b/docs/examples/1.5.x/client-web/examples/functions/create-execution.md index 4a62462c158..401874f3751 100644 --- a/docs/examples/1.5.x/client-web/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/client-web/examples/functions/create-execution.md @@ -2,7 +2,7 @@ import { Client, Functions, ExecutionMethod } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -12,7 +12,8 @@ const result = await functions.createExecution( false, // async (optional) '<PATH>', // path (optional) ExecutionMethod.GET, // method (optional) - {} // headers (optional) + {}, // headers (optional) + '' // scheduledAt (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/functions/get-execution.md b/docs/examples/1.5.x/client-web/examples/functions/get-execution.md index 06f9e484cde..05e2c3c7221 100644 --- a/docs/examples/1.5.x/client-web/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/client-web/examples/functions/get-execution.md @@ -2,7 +2,7 @@ import { Client, Functions } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -11,4 +11,4 @@ const result = await functions.getExecution( '<EXECUTION_ID>' // executionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/functions/list-executions.md b/docs/examples/1.5.x/client-web/examples/functions/list-executions.md index f6a1c1f2fbf..93a70d950c5 100644 --- a/docs/examples/1.5.x/client-web/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/client-web/examples/functions/list-executions.md @@ -2,7 +2,7 @@ import { Client, Functions } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -12,4 +12,4 @@ const result = await functions.listExecutions( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/graphql/mutation.md b/docs/examples/1.5.x/client-web/examples/graphql/mutation.md index ca03455d197..b875f0e93ab 100644 --- a/docs/examples/1.5.x/client-web/examples/graphql/mutation.md +++ b/docs/examples/1.5.x/client-web/examples/graphql/mutation.md @@ -2,7 +2,7 @@ import { Client, Graphql } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const graphql = new Graphql(client); @@ -10,4 +10,4 @@ const result = await graphql.mutation( {} // query ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/graphql/query.md b/docs/examples/1.5.x/client-web/examples/graphql/query.md index 305e4c19271..c0f925a3a00 100644 --- a/docs/examples/1.5.x/client-web/examples/graphql/query.md +++ b/docs/examples/1.5.x/client-web/examples/graphql/query.md @@ -2,7 +2,7 @@ import { Client, Graphql } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const graphql = new Graphql(client); @@ -10,4 +10,4 @@ const result = await graphql.query( {} // query ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/locale/get.md b/docs/examples/1.5.x/client-web/examples/locale/get.md index 006f3392dff..f3a46b43fdd 100644 --- a/docs/examples/1.5.x/client-web/examples/locale/get.md +++ b/docs/examples/1.5.x/client-web/examples/locale/get.md @@ -2,10 +2,10 @@ import { Client, Locale } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.get(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/locale/list-codes.md b/docs/examples/1.5.x/client-web/examples/locale/list-codes.md index ca73077f855..36957e9fec7 100644 --- a/docs/examples/1.5.x/client-web/examples/locale/list-codes.md +++ b/docs/examples/1.5.x/client-web/examples/locale/list-codes.md @@ -2,10 +2,10 @@ import { Client, Locale } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.listCodes(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/locale/list-continents.md b/docs/examples/1.5.x/client-web/examples/locale/list-continents.md index 83e35e207ba..be3b2fa6473 100644 --- a/docs/examples/1.5.x/client-web/examples/locale/list-continents.md +++ b/docs/examples/1.5.x/client-web/examples/locale/list-continents.md @@ -2,10 +2,10 @@ import { Client, Locale } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.listContinents(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/client-web/examples/locale/list-countries-e-u.md index 7a18ab12f46..a3af6ae93c9 100644 --- a/docs/examples/1.5.x/client-web/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/client-web/examples/locale/list-countries-e-u.md @@ -2,10 +2,10 @@ import { Client, Locale } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.listCountriesEU(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/client-web/examples/locale/list-countries-phones.md index 2e0daa12268..d6845b70db3 100644 --- a/docs/examples/1.5.x/client-web/examples/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/client-web/examples/locale/list-countries-phones.md @@ -2,10 +2,10 @@ import { Client, Locale } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.listCountriesPhones(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/locale/list-countries.md b/docs/examples/1.5.x/client-web/examples/locale/list-countries.md index 28ce9ccc322..defdfec006a 100644 --- a/docs/examples/1.5.x/client-web/examples/locale/list-countries.md +++ b/docs/examples/1.5.x/client-web/examples/locale/list-countries.md @@ -2,10 +2,10 @@ import { Client, Locale } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.listCountries(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/locale/list-currencies.md b/docs/examples/1.5.x/client-web/examples/locale/list-currencies.md index 9ab5b1308db..7cbf8b81d90 100644 --- a/docs/examples/1.5.x/client-web/examples/locale/list-currencies.md +++ b/docs/examples/1.5.x/client-web/examples/locale/list-currencies.md @@ -2,10 +2,10 @@ import { Client, Locale } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.listCurrencies(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/locale/list-languages.md b/docs/examples/1.5.x/client-web/examples/locale/list-languages.md index ea02c7fa5f6..4f3f877332d 100644 --- a/docs/examples/1.5.x/client-web/examples/locale/list-languages.md +++ b/docs/examples/1.5.x/client-web/examples/locale/list-languages.md @@ -2,10 +2,10 @@ import { Client, Locale } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.listLanguages(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/client-web/examples/messaging/create-subscriber.md index 6485fe37846..1fa1de5d518 100644 --- a/docs/examples/1.5.x/client-web/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/client-web/examples/messaging/create-subscriber.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -12,4 +12,4 @@ const result = await messaging.createSubscriber( '<TARGET_ID>' // targetId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/client-web/examples/messaging/delete-subscriber.md index 1319c9a2ee0..bbed0715c09 100644 --- a/docs/examples/1.5.x/client-web/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/client-web/examples/messaging/delete-subscriber.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -11,4 +11,4 @@ const result = await messaging.deleteSubscriber( '<SUBSCRIBER_ID>' // subscriberId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/storage/create-file.md b/docs/examples/1.5.x/client-web/examples/storage/create-file.md index 644fc652f39..db2200b86a1 100644 --- a/docs/examples/1.5.x/client-web/examples/storage/create-file.md +++ b/docs/examples/1.5.x/client-web/examples/storage/create-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -13,4 +13,4 @@ const result = await storage.createFile( ["read("any")"] // permissions (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/storage/delete-file.md b/docs/examples/1.5.x/client-web/examples/storage/delete-file.md index aefef46a62e..52cc1d4fa2d 100644 --- a/docs/examples/1.5.x/client-web/examples/storage/delete-file.md +++ b/docs/examples/1.5.x/client-web/examples/storage/delete-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -11,4 +11,4 @@ const result = await storage.deleteFile( '<FILE_ID>' // fileId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/storage/get-file-download.md b/docs/examples/1.5.x/client-web/examples/storage/get-file-download.md index 4ec5e6376f0..d37541dd063 100644 --- a/docs/examples/1.5.x/client-web/examples/storage/get-file-download.md +++ b/docs/examples/1.5.x/client-web/examples/storage/get-file-download.md @@ -2,7 +2,7 @@ import { Client, Storage } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.5.x/client-web/examples/storage/get-file-preview.md b/docs/examples/1.5.x/client-web/examples/storage/get-file-preview.md index c674e937b78..629417325be 100644 --- a/docs/examples/1.5.x/client-web/examples/storage/get-file-preview.md +++ b/docs/examples/1.5.x/client-web/examples/storage/get-file-preview.md @@ -2,7 +2,7 @@ import { Client, Storage, ImageGravity, ImageFormat } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.5.x/client-web/examples/storage/get-file-view.md b/docs/examples/1.5.x/client-web/examples/storage/get-file-view.md index db161059417..9a58250003e 100644 --- a/docs/examples/1.5.x/client-web/examples/storage/get-file-view.md +++ b/docs/examples/1.5.x/client-web/examples/storage/get-file-view.md @@ -2,7 +2,7 @@ import { Client, Storage } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.5.x/client-web/examples/storage/get-file.md b/docs/examples/1.5.x/client-web/examples/storage/get-file.md index e52dc19a537..36c4b45ca60 100644 --- a/docs/examples/1.5.x/client-web/examples/storage/get-file.md +++ b/docs/examples/1.5.x/client-web/examples/storage/get-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -11,4 +11,4 @@ const result = await storage.getFile( '<FILE_ID>' // fileId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/storage/list-files.md b/docs/examples/1.5.x/client-web/examples/storage/list-files.md index ab5a755b5bb..731a76e3125 100644 --- a/docs/examples/1.5.x/client-web/examples/storage/list-files.md +++ b/docs/examples/1.5.x/client-web/examples/storage/list-files.md @@ -2,7 +2,7 @@ import { Client, Storage } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -12,4 +12,4 @@ const result = await storage.listFiles( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/storage/update-file.md b/docs/examples/1.5.x/client-web/examples/storage/update-file.md index 8eac864d292..75aefc1120a 100644 --- a/docs/examples/1.5.x/client-web/examples/storage/update-file.md +++ b/docs/examples/1.5.x/client-web/examples/storage/update-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -13,4 +13,4 @@ const result = await storage.updateFile( ["read("any")"] // permissions (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/teams/create-membership.md b/docs/examples/1.5.x/client-web/examples/teams/create-membership.md index 9d255ec1c66..3f585859a99 100644 --- a/docs/examples/1.5.x/client-web/examples/teams/create-membership.md +++ b/docs/examples/1.5.x/client-web/examples/teams/create-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -16,4 +16,4 @@ const result = await teams.createMembership( '<NAME>' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/teams/create.md b/docs/examples/1.5.x/client-web/examples/teams/create.md index 00ca64da29f..ffa14148786 100644 --- a/docs/examples/1.5.x/client-web/examples/teams/create.md +++ b/docs/examples/1.5.x/client-web/examples/teams/create.md @@ -2,7 +2,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -12,4 +12,4 @@ const result = await teams.create( [] // roles (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/teams/delete-membership.md b/docs/examples/1.5.x/client-web/examples/teams/delete-membership.md index c2045cd8c4d..dc871165ee8 100644 --- a/docs/examples/1.5.x/client-web/examples/teams/delete-membership.md +++ b/docs/examples/1.5.x/client-web/examples/teams/delete-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.deleteMembership( '<MEMBERSHIP_ID>' // membershipId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/teams/delete.md b/docs/examples/1.5.x/client-web/examples/teams/delete.md index f6e5cb7a96d..99ce85673fa 100644 --- a/docs/examples/1.5.x/client-web/examples/teams/delete.md +++ b/docs/examples/1.5.x/client-web/examples/teams/delete.md @@ -2,7 +2,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -10,4 +10,4 @@ const result = await teams.delete( '<TEAM_ID>' // teamId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/teams/get-membership.md b/docs/examples/1.5.x/client-web/examples/teams/get-membership.md index 9871a42b186..d4abeeff736 100644 --- a/docs/examples/1.5.x/client-web/examples/teams/get-membership.md +++ b/docs/examples/1.5.x/client-web/examples/teams/get-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.getMembership( '<MEMBERSHIP_ID>' // membershipId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/teams/get-prefs.md b/docs/examples/1.5.x/client-web/examples/teams/get-prefs.md index a3d036ba262..b5b3d1295f7 100644 --- a/docs/examples/1.5.x/client-web/examples/teams/get-prefs.md +++ b/docs/examples/1.5.x/client-web/examples/teams/get-prefs.md @@ -2,7 +2,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -10,4 +10,4 @@ const result = await teams.getPrefs( '<TEAM_ID>' // teamId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/teams/get.md b/docs/examples/1.5.x/client-web/examples/teams/get.md index f54180f2abd..8306cc59b6d 100644 --- a/docs/examples/1.5.x/client-web/examples/teams/get.md +++ b/docs/examples/1.5.x/client-web/examples/teams/get.md @@ -2,7 +2,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -10,4 +10,4 @@ const result = await teams.get( '<TEAM_ID>' // teamId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/teams/list-memberships.md b/docs/examples/1.5.x/client-web/examples/teams/list-memberships.md index 436a79b9015..b1c068112b4 100644 --- a/docs/examples/1.5.x/client-web/examples/teams/list-memberships.md +++ b/docs/examples/1.5.x/client-web/examples/teams/list-memberships.md @@ -2,7 +2,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -12,4 +12,4 @@ const result = await teams.listMemberships( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/teams/list.md b/docs/examples/1.5.x/client-web/examples/teams/list.md index 2376863b675..0d000e9b35c 100644 --- a/docs/examples/1.5.x/client-web/examples/teams/list.md +++ b/docs/examples/1.5.x/client-web/examples/teams/list.md @@ -2,7 +2,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.list( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/teams/update-membership-status.md b/docs/examples/1.5.x/client-web/examples/teams/update-membership-status.md index 2e240fa8e73..dd32bbb6f1b 100644 --- a/docs/examples/1.5.x/client-web/examples/teams/update-membership-status.md +++ b/docs/examples/1.5.x/client-web/examples/teams/update-membership-status.md @@ -2,7 +2,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -13,4 +13,4 @@ const result = await teams.updateMembershipStatus( '<SECRET>' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/teams/update-membership.md b/docs/examples/1.5.x/client-web/examples/teams/update-membership.md index dc55d04804f..ae7fb9a49cb 100644 --- a/docs/examples/1.5.x/client-web/examples/teams/update-membership.md +++ b/docs/examples/1.5.x/client-web/examples/teams/update-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -12,4 +12,4 @@ const result = await teams.updateMembership( [] // roles ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/teams/update-name.md b/docs/examples/1.5.x/client-web/examples/teams/update-name.md index c000401069a..553c77de3fb 100644 --- a/docs/examples/1.5.x/client-web/examples/teams/update-name.md +++ b/docs/examples/1.5.x/client-web/examples/teams/update-name.md @@ -2,7 +2,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.updateName( '<NAME>' // name ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/teams/update-prefs.md b/docs/examples/1.5.x/client-web/examples/teams/update-prefs.md index e0fbb766f68..55b273b9961 100644 --- a/docs/examples/1.5.x/client-web/examples/teams/update-prefs.md +++ b/docs/examples/1.5.x/client-web/examples/teams/update-prefs.md @@ -2,7 +2,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.updatePrefs( {} // prefs ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/client-web/examples/users/delete-authenticator.md b/docs/examples/1.5.x/client-web/examples/users/delete-authenticator.md index 78e1a0e4a9c..e874ce32dea 100644 --- a/docs/examples/1.5.x/client-web/examples/users/delete-authenticator.md +++ b/docs/examples/1.5.x/client-web/examples/users/delete-authenticator.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.5.x/client-web/examples/users/list-providers.md b/docs/examples/1.5.x/client-web/examples/users/list-providers.md index c75066c9881..7ed886ec18f 100644 --- a/docs/examples/1.5.x/client-web/examples/users/list-providers.md +++ b/docs/examples/1.5.x/client-web/examples/users/list-providers.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.5.x/console-cli/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/console-cli/examples/account/delete-mfa-authenticator.md index c36e9d55789..d4664855b5c 100644 --- a/docs/examples/1.5.x/console-cli/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/console-cli/examples/account/delete-mfa-authenticator.md @@ -1,3 +1,2 @@ appwrite account deleteMfaAuthenticator \ - --type totp \ - --otp <OTP> + --type totp diff --git a/docs/examples/1.5.x/console-cli/examples/databases/update-boolean-attribute.md b/docs/examples/1.5.x/console-cli/examples/databases/update-boolean-attribute.md index d48c3470fec..f5adb497ece 100644 --- a/docs/examples/1.5.x/console-cli/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.5.x/console-cli/examples/databases/update-boolean-attribute.md @@ -3,4 +3,5 @@ appwrite databases updateBooleanAttribute \ --collectionId <COLLECTION_ID> \ --key '' \ --required false \ - --default false + --default false \ + diff --git a/docs/examples/1.5.x/console-cli/examples/databases/update-datetime-attribute.md b/docs/examples/1.5.x/console-cli/examples/databases/update-datetime-attribute.md index 9fc56373ed7..fe4a4626649 100644 --- a/docs/examples/1.5.x/console-cli/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.5.x/console-cli/examples/databases/update-datetime-attribute.md @@ -3,4 +3,5 @@ appwrite databases updateDatetimeAttribute \ --collectionId <COLLECTION_ID> \ --key '' \ --required false \ - --default '' + --default '' \ + diff --git a/docs/examples/1.5.x/console-cli/examples/databases/update-email-attribute.md b/docs/examples/1.5.x/console-cli/examples/databases/update-email-attribute.md index 9f7bffeb9cf..58510a6f8e5 100644 --- a/docs/examples/1.5.x/console-cli/examples/databases/update-email-attribute.md +++ b/docs/examples/1.5.x/console-cli/examples/databases/update-email-attribute.md @@ -3,4 +3,5 @@ appwrite databases updateEmailAttribute \ --collectionId <COLLECTION_ID> \ --key '' \ --required false \ - --default email@example.com + --default email@example.com \ + diff --git a/docs/examples/1.5.x/console-cli/examples/databases/update-enum-attribute.md b/docs/examples/1.5.x/console-cli/examples/databases/update-enum-attribute.md index bf562a0a824..21d56d3e64a 100644 --- a/docs/examples/1.5.x/console-cli/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.5.x/console-cli/examples/databases/update-enum-attribute.md @@ -4,4 +4,5 @@ appwrite databases updateEnumAttribute \ --key '' \ --elements one two three \ --required false \ - --default <DEFAULT> + --default <DEFAULT> \ + diff --git a/docs/examples/1.5.x/console-cli/examples/databases/update-float-attribute.md b/docs/examples/1.5.x/console-cli/examples/databases/update-float-attribute.md index 097dfd310a2..a9bba3eb5e8 100644 --- a/docs/examples/1.5.x/console-cli/examples/databases/update-float-attribute.md +++ b/docs/examples/1.5.x/console-cli/examples/databases/update-float-attribute.md @@ -3,6 +3,7 @@ appwrite databases updateFloatAttribute \ --collectionId <COLLECTION_ID> \ --key '' \ --required false \ - --min null \ - --max null \ - --default null + --default null \ + + + diff --git a/docs/examples/1.5.x/console-cli/examples/databases/update-integer-attribute.md b/docs/examples/1.5.x/console-cli/examples/databases/update-integer-attribute.md index 6a6b0747a83..660cd4d1480 100644 --- a/docs/examples/1.5.x/console-cli/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.5.x/console-cli/examples/databases/update-integer-attribute.md @@ -3,6 +3,7 @@ appwrite databases updateIntegerAttribute \ --collectionId <COLLECTION_ID> \ --key '' \ --required false \ - --min null \ - --max null \ - --default null + --default null \ + + + diff --git a/docs/examples/1.5.x/console-cli/examples/databases/update-ip-attribute.md b/docs/examples/1.5.x/console-cli/examples/databases/update-ip-attribute.md index 2439b5a8de1..a400eadc1ea 100644 --- a/docs/examples/1.5.x/console-cli/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.5.x/console-cli/examples/databases/update-ip-attribute.md @@ -3,4 +3,5 @@ appwrite databases updateIpAttribute \ --collectionId <COLLECTION_ID> \ --key '' \ --required false \ - --default '' + --default '' \ + diff --git a/docs/examples/1.5.x/console-cli/examples/databases/update-relationship-attribute.md b/docs/examples/1.5.x/console-cli/examples/databases/update-relationship-attribute.md index be03a707363..6e2dbd927d5 100644 --- a/docs/examples/1.5.x/console-cli/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.5.x/console-cli/examples/databases/update-relationship-attribute.md @@ -3,3 +3,4 @@ appwrite databases updateRelationshipAttribute \ --collectionId <COLLECTION_ID> \ --key '' \ + diff --git a/docs/examples/1.5.x/console-cli/examples/databases/update-string-attribute.md b/docs/examples/1.5.x/console-cli/examples/databases/update-string-attribute.md index ebf45253fa8..526ece0b72e 100644 --- a/docs/examples/1.5.x/console-cli/examples/databases/update-string-attribute.md +++ b/docs/examples/1.5.x/console-cli/examples/databases/update-string-attribute.md @@ -3,4 +3,6 @@ appwrite databases updateStringAttribute \ --collectionId <COLLECTION_ID> \ --key '' \ --required false \ - --default <DEFAULT> + --default <DEFAULT> \ + + diff --git a/docs/examples/1.5.x/console-cli/examples/databases/update-url-attribute.md b/docs/examples/1.5.x/console-cli/examples/databases/update-url-attribute.md index aa11a588dbd..e6f401b8ca6 100644 --- a/docs/examples/1.5.x/console-cli/examples/databases/update-url-attribute.md +++ b/docs/examples/1.5.x/console-cli/examples/databases/update-url-attribute.md @@ -3,4 +3,5 @@ appwrite databases updateUrlAttribute \ --collectionId <COLLECTION_ID> \ --key '' \ --required false \ - --default https://example.com + --default https://example.com \ + diff --git a/docs/examples/1.5.x/console-cli/examples/functions/create-build.md b/docs/examples/1.5.x/console-cli/examples/functions/create-build.md index 98d087b089e..5a99f7a908d 100644 --- a/docs/examples/1.5.x/console-cli/examples/functions/create-build.md +++ b/docs/examples/1.5.x/console-cli/examples/functions/create-build.md @@ -1,4 +1,4 @@ appwrite functions createBuild \ --functionId <FUNCTION_ID> \ --deploymentId <DEPLOYMENT_ID> \ - --buildId <BUILD_ID> + diff --git a/docs/examples/1.5.x/console-cli/examples/functions/create-execution.md b/docs/examples/1.5.x/console-cli/examples/functions/create-execution.md index 1efb7018291..febe88c5412 100644 --- a/docs/examples/1.5.x/console-cli/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/console-cli/examples/functions/create-execution.md @@ -5,3 +5,4 @@ appwrite functions createExecution \ + diff --git a/docs/examples/1.5.x/console-cli/examples/functions/create.md b/docs/examples/1.5.x/console-cli/examples/functions/create.md index cfc3c9c2adf..8b83c0ea0a2 100644 --- a/docs/examples/1.5.x/console-cli/examples/functions/create.md +++ b/docs/examples/1.5.x/console-cli/examples/functions/create.md @@ -19,3 +19,5 @@ appwrite functions create \ + + diff --git a/docs/examples/1.5.x/console-cli/examples/functions/delete-execution.md b/docs/examples/1.5.x/console-cli/examples/functions/delete-execution.md new file mode 100644 index 00000000000..2926b5aaf1c --- /dev/null +++ b/docs/examples/1.5.x/console-cli/examples/functions/delete-execution.md @@ -0,0 +1,3 @@ +appwrite functions deleteExecution \ + --functionId <FUNCTION_ID> \ + --executionId <EXECUTION_ID> diff --git a/docs/examples/1.6.x/console-cli/examples/functions/download-deployment.md b/docs/examples/1.5.x/console-cli/examples/functions/get-deployment-download.md similarity index 63% rename from docs/examples/1.6.x/console-cli/examples/functions/download-deployment.md rename to docs/examples/1.5.x/console-cli/examples/functions/get-deployment-download.md index aa440b5145a..2cbb2bd6555 100644 --- a/docs/examples/1.6.x/console-cli/examples/functions/download-deployment.md +++ b/docs/examples/1.5.x/console-cli/examples/functions/get-deployment-download.md @@ -1,3 +1,3 @@ -appwrite functions downloadDeployment \ +appwrite functions getDeploymentDownload \ --functionId <FUNCTION_ID> \ --deploymentId <DEPLOYMENT_ID> diff --git a/docs/examples/1.5.x/console-cli/examples/functions/get-template.md b/docs/examples/1.5.x/console-cli/examples/functions/get-template.md new file mode 100644 index 00000000000..15c6068f355 --- /dev/null +++ b/docs/examples/1.5.x/console-cli/examples/functions/get-template.md @@ -0,0 +1,2 @@ +appwrite functions getTemplate \ + --templateId <TEMPLATE_ID> diff --git a/docs/examples/1.5.x/console-cli/examples/functions/list-specifications.md b/docs/examples/1.5.x/console-cli/examples/functions/list-specifications.md new file mode 100644 index 00000000000..1d64bc68e76 --- /dev/null +++ b/docs/examples/1.5.x/console-cli/examples/functions/list-specifications.md @@ -0,0 +1 @@ +appwrite functions listSpecifications diff --git a/docs/examples/1.5.x/console-cli/examples/functions/list-templates.md b/docs/examples/1.5.x/console-cli/examples/functions/list-templates.md new file mode 100644 index 00000000000..b48bab53e1f --- /dev/null +++ b/docs/examples/1.5.x/console-cli/examples/functions/list-templates.md @@ -0,0 +1,5 @@ +appwrite functions listTemplates \ + + + + diff --git a/docs/examples/1.5.x/console-cli/examples/functions/update-deployment-build.md b/docs/examples/1.5.x/console-cli/examples/functions/update-deployment-build.md new file mode 100644 index 00000000000..ddaf1e5955e --- /dev/null +++ b/docs/examples/1.5.x/console-cli/examples/functions/update-deployment-build.md @@ -0,0 +1,3 @@ +appwrite functions updateDeploymentBuild \ + --functionId <FUNCTION_ID> \ + --deploymentId <DEPLOYMENT_ID> diff --git a/docs/examples/1.5.x/console-cli/examples/functions/update.md b/docs/examples/1.5.x/console-cli/examples/functions/update.md index 6f42584e4a2..7ac63e0cd1e 100644 --- a/docs/examples/1.5.x/console-cli/examples/functions/update.md +++ b/docs/examples/1.5.x/console-cli/examples/functions/update.md @@ -15,3 +15,5 @@ appwrite functions update \ + + diff --git a/docs/examples/1.5.x/console-cli/examples/health/get-queue-stats-resources.md b/docs/examples/1.5.x/console-cli/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..9cce9637489 --- /dev/null +++ b/docs/examples/1.5.x/console-cli/examples/health/get-queue-stats-resources.md @@ -0,0 +1,2 @@ +appwrite health getQueueStatsResources \ + diff --git a/docs/examples/1.5.x/console-cli/examples/messaging/create-push.md b/docs/examples/1.5.x/console-cli/examples/messaging/create-push.md index e1873425038..18d8ec5aeca 100644 --- a/docs/examples/1.5.x/console-cli/examples/messaging/create-push.md +++ b/docs/examples/1.5.x/console-cli/examples/messaging/create-push.md @@ -1,7 +1,10 @@ appwrite messaging createPush \ --messageId <MESSAGE_ID> \ - --title <TITLE> \ - --body <BODY> \ + + + + + diff --git a/docs/examples/1.5.x/console-cli/examples/messaging/update-push.md b/docs/examples/1.5.x/console-cli/examples/messaging/update-push.md index 70f215c9351..1f4427cee7d 100644 --- a/docs/examples/1.5.x/console-cli/examples/messaging/update-push.md +++ b/docs/examples/1.5.x/console-cli/examples/messaging/update-push.md @@ -15,3 +15,6 @@ appwrite messaging updatePush \ + + + diff --git a/docs/examples/1.5.x/console-cli/examples/projects/create-j-w-t.md b/docs/examples/1.5.x/console-cli/examples/projects/create-j-w-t.md new file mode 100644 index 00000000000..d703d36b65a --- /dev/null +++ b/docs/examples/1.5.x/console-cli/examples/projects/create-j-w-t.md @@ -0,0 +1,4 @@ +appwrite projects createJWT \ + --projectId <PROJECT_ID> \ + --scopes one two three \ + diff --git a/docs/examples/1.5.x/console-cli/examples/projects/update-memberships-privacy.md b/docs/examples/1.5.x/console-cli/examples/projects/update-memberships-privacy.md new file mode 100644 index 00000000000..6c811ccfceb --- /dev/null +++ b/docs/examples/1.5.x/console-cli/examples/projects/update-memberships-privacy.md @@ -0,0 +1,5 @@ +appwrite projects updateMembershipsPrivacy \ + --projectId <PROJECT_ID> \ + --userName false \ + --userEmail false \ + --mfa false diff --git a/docs/examples/1.5.x/console-cli/examples/projects/update-mock-numbers.md b/docs/examples/1.5.x/console-cli/examples/projects/update-mock-numbers.md new file mode 100644 index 00000000000..733cc16887c --- /dev/null +++ b/docs/examples/1.5.x/console-cli/examples/projects/update-mock-numbers.md @@ -0,0 +1,3 @@ +appwrite projects updateMockNumbers \ + --projectId <PROJECT_ID> \ + --numbers one two three diff --git a/docs/examples/1.5.x/console-cli/examples/projects/update-session-alerts.md b/docs/examples/1.5.x/console-cli/examples/projects/update-session-alerts.md new file mode 100644 index 00000000000..bd23b7417aa --- /dev/null +++ b/docs/examples/1.5.x/console-cli/examples/projects/update-session-alerts.md @@ -0,0 +1,3 @@ +appwrite projects updateSessionAlerts \ + --projectId <PROJECT_ID> \ + --alerts false diff --git a/docs/examples/1.5.x/console-cli/examples/users/create-j-w-t.md b/docs/examples/1.5.x/console-cli/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..220086bb1a8 --- /dev/null +++ b/docs/examples/1.5.x/console-cli/examples/users/create-j-w-t.md @@ -0,0 +1,4 @@ +appwrite users createJWT \ + --userId <USER_ID> \ + + diff --git a/docs/examples/1.5.x/console-cli/examples/vcs/get-repository-contents.md b/docs/examples/1.5.x/console-cli/examples/vcs/get-repository-contents.md new file mode 100644 index 00000000000..7d378d7efa9 --- /dev/null +++ b/docs/examples/1.5.x/console-cli/examples/vcs/get-repository-contents.md @@ -0,0 +1,4 @@ +appwrite vcs getRepositoryContents \ + --installationId <INSTALLATION_ID> \ + --providerRepositoryId <PROVIDER_REPOSITORY_ID> \ + diff --git a/docs/examples/1.5.x/console-web/examples/account/add-authenticator.md b/docs/examples/1.5.x/console-web/examples/account/add-authenticator.md index a93945117b2..0a699c7d3b4 100644 --- a/docs/examples/1.5.x/console-web/examples/account/add-authenticator.md +++ b/docs/examples/1.5.x/console-web/examples/account/add-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/console-web/examples/account/create-anonymous-session.md index c3efd84a2d1..ef433a8fb68 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-anonymous-session.md @@ -2,10 +2,10 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.createAnonymousSession(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-challenge.md b/docs/examples/1.5.x/console-web/examples/account/create-challenge.md index 2a2bd708e4e..f4e89c39d9b 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-challenge.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-challenge.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticationFactor } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-email-password-session.md b/docs/examples/1.5.x/console-web/examples/account/create-email-password-session.md index 09004c1a750..0f51387343a 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-email-password-session.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-email-password-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.createEmailPasswordSession( 'password' // password ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-email-token.md b/docs/examples/1.5.x/console-web/examples/account/create-email-token.md index 9536329336d..b55f7c46bc1 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-email-token.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-email-token.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -12,4 +12,4 @@ const result = await account.createEmailToken( false // phrase (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-j-w-t.md b/docs/examples/1.5.x/console-web/examples/account/create-j-w-t.md index 72ecc6a066a..4f47136a6b7 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-j-w-t.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-j-w-t.md @@ -2,10 +2,10 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.createJWT(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/console-web/examples/account/create-magic-u-r-l-token.md index dcdef26e26b..68662b8a294 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-magic-u-r-l-token.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -13,4 +13,4 @@ const result = await account.createMagicURLToken( false // phrase (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/console-web/examples/account/create-mfa-authenticator.md index 94dac4d8bbe..97bd528cbf4 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-mfa-authenticator.md @@ -2,7 +2,7 @@ import { Client, Account, AuthenticatorType } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.createMfaAuthenticator( AuthenticatorType.Totp // type ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/console-web/examples/account/create-mfa-challenge.md index 2893120c8ac..ed2cd38628c 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-mfa-challenge.md @@ -2,7 +2,7 @@ import { Client, Account, AuthenticationFactor } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.createMfaChallenge( AuthenticationFactor.Email // factor ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/console-web/examples/account/create-mfa-recovery-codes.md index 13c28bbcdd3..06f25dd8170 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-mfa-recovery-codes.md @@ -2,10 +2,10 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.createMfaRecoveryCodes(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-o-auth2session.md b/docs/examples/1.5.x/console-web/examples/account/create-o-auth2session.md index 35ef6f84209..e565dd58408 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-o-auth2session.md @@ -2,7 +2,7 @@ import { Client, Account, OAuthProvider } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/console-web/examples/account/create-o-auth2token.md index a35bb3837e5..14c0d00af4a 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-o-auth2token.md @@ -2,7 +2,7 @@ import { Client, Account, OAuthProvider } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-phone-token.md b/docs/examples/1.5.x/console-web/examples/account/create-phone-token.md index 5d7c160cfd1..21fdb81e31a 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-phone-token.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-phone-token.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.createPhoneToken( '+12065550100' // phone ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-phone-verification.md b/docs/examples/1.5.x/console-web/examples/account/create-phone-verification.md index 7a1320c7c1d..4d193cbd398 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-phone-verification.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-phone-verification.md @@ -2,10 +2,10 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.createPhoneVerification(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-push-target.md b/docs/examples/1.5.x/console-web/examples/account/create-push-target.md index 093abcce429..339b9972c61 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-push-target.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-push-target.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -12,4 +12,4 @@ const result = await account.createPushTarget( '<PROVIDER_ID>' // providerId (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-recovery.md b/docs/examples/1.5.x/console-web/examples/account/create-recovery.md index 137e7c720ef..b28d4f8b015 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-recovery.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-recovery.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.createRecovery( 'https://example.com' // url ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-session.md b/docs/examples/1.5.x/console-web/examples/account/create-session.md index be5a2a38e1a..06e12603e1f 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-session.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.createSession( '<SECRET>' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/create-verification.md b/docs/examples/1.5.x/console-web/examples/account/create-verification.md index 34bacb0e995..555030a79ef 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create-verification.md +++ b/docs/examples/1.5.x/console-web/examples/account/create-verification.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.createVerification( 'https://example.com' // url ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/create.md b/docs/examples/1.5.x/console-web/examples/account/create.md index 9c0d0353f07..120aceb9d9b 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create.md +++ b/docs/examples/1.5.x/console-web/examples/account/create.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -13,4 +13,4 @@ const result = await account.create( '<NAME>' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/create2f-a-challenge.md b/docs/examples/1.5.x/console-web/examples/account/create2f-a-challenge.md index a10dded6a87..9868f5f4fd9 100644 --- a/docs/examples/1.5.x/console-web/examples/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/console-web/examples/account/create2f-a-challenge.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticationFactor } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/console-web/examples/account/delete-authenticator.md b/docs/examples/1.5.x/console-web/examples/account/delete-authenticator.md index af72aae918c..b7191f30c33 100644 --- a/docs/examples/1.5.x/console-web/examples/account/delete-authenticator.md +++ b/docs/examples/1.5.x/console-web/examples/account/delete-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/console-web/examples/account/delete-identity.md b/docs/examples/1.5.x/console-web/examples/account/delete-identity.md index ed23adf0e0f..a541e9bd346 100644 --- a/docs/examples/1.5.x/console-web/examples/account/delete-identity.md +++ b/docs/examples/1.5.x/console-web/examples/account/delete-identity.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.deleteIdentity( '<IDENTITY_ID>' // identityId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/console-web/examples/account/delete-mfa-authenticator.md index 6b25790c061..64f27fdfacc 100644 --- a/docs/examples/1.5.x/console-web/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/console-web/examples/account/delete-mfa-authenticator.md @@ -2,13 +2,12 @@ import { Client, Account, AuthenticatorType } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.deleteMfaAuthenticator( - AuthenticatorType.Totp, // type - '<OTP>' // otp + AuthenticatorType.Totp // type ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/delete-push-target.md b/docs/examples/1.5.x/console-web/examples/account/delete-push-target.md index 630ebfed045..017ebd438b1 100644 --- a/docs/examples/1.5.x/console-web/examples/account/delete-push-target.md +++ b/docs/examples/1.5.x/console-web/examples/account/delete-push-target.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.deletePushTarget( '<TARGET_ID>' // targetId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/delete-session.md b/docs/examples/1.5.x/console-web/examples/account/delete-session.md index 490880022ab..1045e98a825 100644 --- a/docs/examples/1.5.x/console-web/examples/account/delete-session.md +++ b/docs/examples/1.5.x/console-web/examples/account/delete-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.deleteSession( '<SESSION_ID>' // sessionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/delete-sessions.md b/docs/examples/1.5.x/console-web/examples/account/delete-sessions.md index 76dd39963ba..ff8c069503c 100644 --- a/docs/examples/1.5.x/console-web/examples/account/delete-sessions.md +++ b/docs/examples/1.5.x/console-web/examples/account/delete-sessions.md @@ -2,10 +2,10 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.deleteSessions(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/delete.md b/docs/examples/1.5.x/console-web/examples/account/delete.md index 2f8cfac8e15..7fa1ef10d1c 100644 --- a/docs/examples/1.5.x/console-web/examples/account/delete.md +++ b/docs/examples/1.5.x/console-web/examples/account/delete.md @@ -2,10 +2,10 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.delete(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/console-web/examples/account/get-mfa-recovery-codes.md index 1dee196749b..6d47bc3b7cb 100644 --- a/docs/examples/1.5.x/console-web/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/console-web/examples/account/get-mfa-recovery-codes.md @@ -2,10 +2,10 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.getMfaRecoveryCodes(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/get-prefs.md b/docs/examples/1.5.x/console-web/examples/account/get-prefs.md index 2a56a093c95..1470b683e58 100644 --- a/docs/examples/1.5.x/console-web/examples/account/get-prefs.md +++ b/docs/examples/1.5.x/console-web/examples/account/get-prefs.md @@ -2,10 +2,10 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.getPrefs(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/get-session.md b/docs/examples/1.5.x/console-web/examples/account/get-session.md index 6707c5184a4..b7de88646ad 100644 --- a/docs/examples/1.5.x/console-web/examples/account/get-session.md +++ b/docs/examples/1.5.x/console-web/examples/account/get-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.getSession( '<SESSION_ID>' // sessionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/get.md b/docs/examples/1.5.x/console-web/examples/account/get.md index d8ef1be4546..68dbf30b40b 100644 --- a/docs/examples/1.5.x/console-web/examples/account/get.md +++ b/docs/examples/1.5.x/console-web/examples/account/get.md @@ -2,10 +2,10 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.get(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/list-factors.md b/docs/examples/1.5.x/console-web/examples/account/list-factors.md index 79e1549b40e..dab56b79306 100644 --- a/docs/examples/1.5.x/console-web/examples/account/list-factors.md +++ b/docs/examples/1.5.x/console-web/examples/account/list-factors.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/console-web/examples/account/list-identities.md b/docs/examples/1.5.x/console-web/examples/account/list-identities.md index ad308c6647b..f67e5817b31 100644 --- a/docs/examples/1.5.x/console-web/examples/account/list-identities.md +++ b/docs/examples/1.5.x/console-web/examples/account/list-identities.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.listIdentities( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/list-logs.md b/docs/examples/1.5.x/console-web/examples/account/list-logs.md index 15c5054f5cb..0532a94e19e 100644 --- a/docs/examples/1.5.x/console-web/examples/account/list-logs.md +++ b/docs/examples/1.5.x/console-web/examples/account/list-logs.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.listLogs( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/console-web/examples/account/list-mfa-factors.md index a990fb1175f..3fa9652dbc6 100644 --- a/docs/examples/1.5.x/console-web/examples/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/console-web/examples/account/list-mfa-factors.md @@ -2,10 +2,10 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.listMfaFactors(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/list-sessions.md b/docs/examples/1.5.x/console-web/examples/account/list-sessions.md index b0b48c58660..2cc26632635 100644 --- a/docs/examples/1.5.x/console-web/examples/account/list-sessions.md +++ b/docs/examples/1.5.x/console-web/examples/account/list-sessions.md @@ -2,10 +2,10 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.listSessions(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-challenge.md b/docs/examples/1.5.x/console-web/examples/account/update-challenge.md index 2c5c34e5b6c..8c79655a5ee 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-challenge.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-challenge.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-email.md b/docs/examples/1.5.x/console-web/examples/account/update-email.md index eecb26fd614..d7b6fb7aca9 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-email.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-email.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updateEmail( 'password' // password ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-m-f-a.md b/docs/examples/1.5.x/console-web/examples/account/update-m-f-a.md index a039ee65463..3c9dac03262 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-m-f-a.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.updateMFA( false // mfa ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/console-web/examples/account/update-magic-u-r-l-session.md index d82c7c24e51..6bafae7723b 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updateMagicURLSession( '<SECRET>' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/console-web/examples/account/update-mfa-authenticator.md index 7a5c6407bff..430bf63cd97 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-mfa-authenticator.md @@ -2,7 +2,7 @@ import { Client, Account, AuthenticatorType } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updateMfaAuthenticator( '<OTP>' // otp ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/console-web/examples/account/update-mfa-challenge.md index 2f3c8a77c80..c170cc272d5 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-mfa-challenge.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updateMfaChallenge( '<OTP>' // otp ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/console-web/examples/account/update-mfa-recovery-codes.md index d9ad68a1e24..f61a5a1c1ef 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-mfa-recovery-codes.md @@ -2,10 +2,10 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.updateMfaRecoveryCodes(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-name.md b/docs/examples/1.5.x/console-web/examples/account/update-name.md index d3c0d895361..b2991305c51 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-name.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-name.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.updateName( '<NAME>' // name ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-password.md b/docs/examples/1.5.x/console-web/examples/account/update-password.md index 1d797293a9b..1c6c4ce5d06 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-password.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-password.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updatePassword( 'password' // oldPassword (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-phone-session.md b/docs/examples/1.5.x/console-web/examples/account/update-phone-session.md index c08b9927de6..a9c75466744 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-phone-session.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-phone-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updatePhoneSession( '<SECRET>' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-phone-verification.md b/docs/examples/1.5.x/console-web/examples/account/update-phone-verification.md index 5417e11bf0c..de1f471e888 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-phone-verification.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-phone-verification.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updatePhoneVerification( '<SECRET>' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-phone.md b/docs/examples/1.5.x/console-web/examples/account/update-phone.md index 82c1e9f0840..8c1880b482f 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-phone.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-phone.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updatePhone( 'password' // password ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-prefs.md b/docs/examples/1.5.x/console-web/examples/account/update-prefs.md index c5113b267d5..e3581de3414 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-prefs.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.updatePrefs( {} // prefs ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-push-target.md b/docs/examples/1.5.x/console-web/examples/account/update-push-target.md index 612515134fa..1cbf9e933ff 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-push-target.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-push-target.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updatePushTarget( '<IDENTIFIER>' // identifier ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-recovery.md b/docs/examples/1.5.x/console-web/examples/account/update-recovery.md index 4034ad5901d..3acc705f001 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-recovery.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-recovery.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -12,4 +12,4 @@ const result = await account.updateRecovery( '' // password ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-session.md b/docs/examples/1.5.x/console-web/examples/account/update-session.md index a55c078fcb8..88f51f18f21 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-session.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -10,4 +10,4 @@ const result = await account.updateSession( '<SESSION_ID>' // sessionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-status.md b/docs/examples/1.5.x/console-web/examples/account/update-status.md index ef3d9406754..3ed146cff8d 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-status.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-status.md @@ -2,10 +2,10 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); const result = await account.updateStatus(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/update-verification.md b/docs/examples/1.5.x/console-web/examples/account/update-verification.md index d221ebf338d..42d05ff3ef8 100644 --- a/docs/examples/1.5.x/console-web/examples/account/update-verification.md +++ b/docs/examples/1.5.x/console-web/examples/account/update-verification.md @@ -2,7 +2,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); @@ -11,4 +11,4 @@ const result = await account.updateVerification( '<SECRET>' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/account/verify-authenticator.md b/docs/examples/1.5.x/console-web/examples/account/verify-authenticator.md index 0ccb9de98c8..c6042ea7812 100644 --- a/docs/examples/1.5.x/console-web/examples/account/verify-authenticator.md +++ b/docs/examples/1.5.x/console-web/examples/account/verify-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/console-web/examples/assistant/chat.md b/docs/examples/1.5.x/console-web/examples/assistant/chat.md index 76a461fdc8c..9c44d5709a1 100644 --- a/docs/examples/1.5.x/console-web/examples/assistant/chat.md +++ b/docs/examples/1.5.x/console-web/examples/assistant/chat.md @@ -2,7 +2,7 @@ import { Client, Assistant } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const assistant = new Assistant(client); @@ -10,4 +10,4 @@ const result = await assistant.chat( '<PROMPT>' // prompt ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/avatars/get-browser.md b/docs/examples/1.5.x/console-web/examples/avatars/get-browser.md index 421edc439fb..3604984b896 100644 --- a/docs/examples/1.5.x/console-web/examples/avatars/get-browser.md +++ b/docs/examples/1.5.x/console-web/examples/avatars/get-browser.md @@ -2,7 +2,7 @@ import { Client, Avatars, Browser } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/console-web/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/console-web/examples/avatars/get-credit-card.md index 8eec98f455f..ec38da8a6b5 100644 --- a/docs/examples/1.5.x/console-web/examples/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/console-web/examples/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import { Client, Avatars, CreditCard } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/console-web/examples/avatars/get-favicon.md b/docs/examples/1.5.x/console-web/examples/avatars/get-favicon.md index 330ebb62327..87a310aaa34 100644 --- a/docs/examples/1.5.x/console-web/examples/avatars/get-favicon.md +++ b/docs/examples/1.5.x/console-web/examples/avatars/get-favicon.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/console-web/examples/avatars/get-flag.md b/docs/examples/1.5.x/console-web/examples/avatars/get-flag.md index efb03314bb0..dd9e2f60ae0 100644 --- a/docs/examples/1.5.x/console-web/examples/avatars/get-flag.md +++ b/docs/examples/1.5.x/console-web/examples/avatars/get-flag.md @@ -2,7 +2,7 @@ import { Client, Avatars, Flag } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/console-web/examples/avatars/get-image.md b/docs/examples/1.5.x/console-web/examples/avatars/get-image.md index f8e2f38efa6..8cb6546cf2c 100644 --- a/docs/examples/1.5.x/console-web/examples/avatars/get-image.md +++ b/docs/examples/1.5.x/console-web/examples/avatars/get-image.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/console-web/examples/avatars/get-initials.md b/docs/examples/1.5.x/console-web/examples/avatars/get-initials.md index 384f6350a22..81cfc5ca3e9 100644 --- a/docs/examples/1.5.x/console-web/examples/avatars/get-initials.md +++ b/docs/examples/1.5.x/console-web/examples/avatars/get-initials.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/console-web/examples/avatars/get-q-r.md b/docs/examples/1.5.x/console-web/examples/avatars/get-q-r.md index 4bafd30d0f7..d685011dc98 100644 --- a/docs/examples/1.5.x/console-web/examples/avatars/get-q-r.md +++ b/docs/examples/1.5.x/console-web/examples/avatars/get-q-r.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/console-web/examples/console/variables.md b/docs/examples/1.5.x/console-web/examples/console/variables.md index 1891b4daa57..0ee1f574831 100644 --- a/docs/examples/1.5.x/console-web/examples/console/variables.md +++ b/docs/examples/1.5.x/console-web/examples/console/variables.md @@ -2,10 +2,10 @@ import { Client, Console } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const console = new Console(client); const result = await console.variables(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/create-boolean-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/create-boolean-attribute.md index c1c8c864947..ae76596cb2d 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/create-boolean-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -15,4 +15,4 @@ const result = await databases.createBooleanAttribute( false // array (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/create-collection.md b/docs/examples/1.5.x/console-web/examples/databases/create-collection.md index d8d2bc3302c..29e9eeed7de 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/create-collection.md +++ b/docs/examples/1.5.x/console-web/examples/databases/create-collection.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -15,4 +15,4 @@ const result = await databases.createCollection( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/create-datetime-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/create-datetime-attribute.md index 1b0a0822e6d..7344660f51a 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/create-datetime-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -15,4 +15,4 @@ const result = await databases.createDatetimeAttribute( false // array (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/create-document.md b/docs/examples/1.5.x/console-web/examples/databases/create-document.md index 85114bdcdbb..8f1a69afe1c 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/create-document.md +++ b/docs/examples/1.5.x/console-web/examples/databases/create-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -14,4 +14,4 @@ const result = await databases.createDocument( ["read("any")"] // permissions (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/create-email-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/create-email-attribute.md index 867f9ed1ac4..32a51c506d6 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/create-email-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/create-email-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -15,4 +15,4 @@ const result = await databases.createEmailAttribute( false // array (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/create-enum-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/create-enum-attribute.md index fb8ed88b245..ab460cde2b0 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/create-enum-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -16,4 +16,4 @@ const result = await databases.createEnumAttribute( false // array (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/create-float-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/create-float-attribute.md index 51c4f23f1c0..7019deb0aa2 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/create-float-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/create-float-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -17,4 +17,4 @@ const result = await databases.createFloatAttribute( false // array (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/create-index.md b/docs/examples/1.5.x/console-web/examples/databases/create-index.md index dd21231d29d..e8a3470879d 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/create-index.md +++ b/docs/examples/1.5.x/console-web/examples/databases/create-index.md @@ -2,7 +2,7 @@ import { Client, Databases, IndexType } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -15,4 +15,4 @@ const result = await databases.createIndex( [] // orders (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/create-integer-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/create-integer-attribute.md index d73139c9cce..a2cdda2b1cc 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/create-integer-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -17,4 +17,4 @@ const result = await databases.createIntegerAttribute( false // array (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/create-ip-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/create-ip-attribute.md index 1609c87be0f..daf7e4fd113 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/create-ip-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -15,4 +15,4 @@ const result = await databases.createIpAttribute( false // array (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/create-relationship-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/create-relationship-attribute.md index f212ac4b63d..a64548c9632 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/create-relationship-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases, RelationshipType, RelationMutate } from "@appwrite.i const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -17,4 +17,4 @@ const result = await databases.createRelationshipAttribute( RelationMutate.Cascade // onDelete (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/create-string-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/create-string-attribute.md index 0d04eee83b2..6e9541ed573 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/create-string-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/create-string-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -17,4 +17,4 @@ const result = await databases.createStringAttribute( false // encrypt (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/create-url-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/create-url-attribute.md index 72e06b516e4..dc2dfc3ba0b 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/create-url-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/create-url-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -15,4 +15,4 @@ const result = await databases.createUrlAttribute( false // array (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/create.md b/docs/examples/1.5.x/console-web/examples/databases/create.md index b443c87cba7..a7f560eef77 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/create.md +++ b/docs/examples/1.5.x/console-web/examples/databases/create.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.create( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/delete-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/delete-attribute.md index 8d21126bd61..cec93bef6d5 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/delete-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/delete-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.deleteAttribute( '' // key ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/delete-collection.md b/docs/examples/1.5.x/console-web/examples/databases/delete-collection.md index 0f3b98d4bec..ef2aa905828 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/delete-collection.md +++ b/docs/examples/1.5.x/console-web/examples/databases/delete-collection.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,4 +11,4 @@ const result = await databases.deleteCollection( '<COLLECTION_ID>' // collectionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/delete-document.md b/docs/examples/1.5.x/console-web/examples/databases/delete-document.md index d2d986fce17..961bc639343 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/delete-document.md +++ b/docs/examples/1.5.x/console-web/examples/databases/delete-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.deleteDocument( '<DOCUMENT_ID>' // documentId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/delete-index.md b/docs/examples/1.5.x/console-web/examples/databases/delete-index.md index 3ecb1f1f2cd..152a93e0a1d 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/delete-index.md +++ b/docs/examples/1.5.x/console-web/examples/databases/delete-index.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.deleteIndex( '' // key ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/delete.md b/docs/examples/1.5.x/console-web/examples/databases/delete.md index 439130279f6..b6485ad9d94 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/delete.md +++ b/docs/examples/1.5.x/console-web/examples/databases/delete.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -10,4 +10,4 @@ const result = await databases.delete( '<DATABASE_ID>' // databaseId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/get-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/get-attribute.md index 20ce69c8d73..20c555cb9ec 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/get-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/get-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.getAttribute( '' // key ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/get-collection-usage.md b/docs/examples/1.5.x/console-web/examples/databases/get-collection-usage.md index d7cfc423145..4b14f1fd93b 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/get-collection-usage.md +++ b/docs/examples/1.5.x/console-web/examples/databases/get-collection-usage.md @@ -2,7 +2,7 @@ import { Client, Databases, DatabaseUsageRange } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.getCollectionUsage( DatabaseUsageRange.TwentyFourHours // range (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/get-collection.md b/docs/examples/1.5.x/console-web/examples/databases/get-collection.md index b7d6429035f..59ab03be1ee 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/get-collection.md +++ b/docs/examples/1.5.x/console-web/examples/databases/get-collection.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,4 +11,4 @@ const result = await databases.getCollection( '<COLLECTION_ID>' // collectionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/get-database-usage.md b/docs/examples/1.5.x/console-web/examples/databases/get-database-usage.md index 9ad346f5c7e..c0f15e4e6a3 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/get-database-usage.md +++ b/docs/examples/1.5.x/console-web/examples/databases/get-database-usage.md @@ -2,7 +2,7 @@ import { Client, Databases, DatabaseUsageRange } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,4 +11,4 @@ const result = await databases.getDatabaseUsage( DatabaseUsageRange.TwentyFourHours // range (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/get-document.md b/docs/examples/1.5.x/console-web/examples/databases/get-document.md index f9617272366..cf16708bfb3 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/get-document.md +++ b/docs/examples/1.5.x/console-web/examples/databases/get-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -13,4 +13,4 @@ const result = await databases.getDocument( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/get-index.md b/docs/examples/1.5.x/console-web/examples/databases/get-index.md index 340414c47a1..85a1c03b1b1 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/get-index.md +++ b/docs/examples/1.5.x/console-web/examples/databases/get-index.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.getIndex( '' // key ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/get-usage.md b/docs/examples/1.5.x/console-web/examples/databases/get-usage.md index 3d75f6a43c8..9d926e5ffb3 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/get-usage.md +++ b/docs/examples/1.5.x/console-web/examples/databases/get-usage.md @@ -2,7 +2,7 @@ import { Client, Databases, DatabaseUsageRange } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -10,4 +10,4 @@ const result = await databases.getUsage( DatabaseUsageRange.TwentyFourHours // range (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/get.md b/docs/examples/1.5.x/console-web/examples/databases/get.md index 86af9723328..8b9e02ed19f 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/get.md +++ b/docs/examples/1.5.x/console-web/examples/databases/get.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -10,4 +10,4 @@ const result = await databases.get( '<DATABASE_ID>' // databaseId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/list-attributes.md b/docs/examples/1.5.x/console-web/examples/databases/list-attributes.md index a4d5477a63e..987e1741f0b 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/list-attributes.md +++ b/docs/examples/1.5.x/console-web/examples/databases/list-attributes.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.listAttributes( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/list-collection-logs.md b/docs/examples/1.5.x/console-web/examples/databases/list-collection-logs.md index f2119e786dd..d01a57ea0d8 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/list-collection-logs.md +++ b/docs/examples/1.5.x/console-web/examples/databases/list-collection-logs.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.listCollectionLogs( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/list-collections.md b/docs/examples/1.5.x/console-web/examples/databases/list-collections.md index b1aa2706f2d..28450a7bfd1 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/list-collections.md +++ b/docs/examples/1.5.x/console-web/examples/databases/list-collections.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.listCollections( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/list-document-logs.md b/docs/examples/1.5.x/console-web/examples/databases/list-document-logs.md index 94bb129b60c..c1c2b06ede5 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/list-document-logs.md +++ b/docs/examples/1.5.x/console-web/examples/databases/list-document-logs.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -13,4 +13,4 @@ const result = await databases.listDocumentLogs( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/list-documents.md b/docs/examples/1.5.x/console-web/examples/databases/list-documents.md index d704eda5f44..27d4d77b90e 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/list-documents.md +++ b/docs/examples/1.5.x/console-web/examples/databases/list-documents.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.listDocuments( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/list-indexes.md b/docs/examples/1.5.x/console-web/examples/databases/list-indexes.md index c1818ad2ecd..829f6d7b023 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/list-indexes.md +++ b/docs/examples/1.5.x/console-web/examples/databases/list-indexes.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.listIndexes( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/list-logs.md b/docs/examples/1.5.x/console-web/examples/databases/list-logs.md index d889ec777f6..ec42922d4c6 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/list-logs.md +++ b/docs/examples/1.5.x/console-web/examples/databases/list-logs.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,4 +11,4 @@ const result = await databases.listLogs( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/list.md b/docs/examples/1.5.x/console-web/examples/databases/list.md index f5742ff85fa..d41bdabb7bd 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/list.md +++ b/docs/examples/1.5.x/console-web/examples/databases/list.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,4 +11,4 @@ const result = await databases.list( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/update-boolean-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/update-boolean-attribute.md index 4963701b61c..82b4c3ca2d8 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/update-boolean-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,7 +11,8 @@ const result = await databases.updateBooleanAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - false // default + false, // default + '' // newKey (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/update-collection.md b/docs/examples/1.5.x/console-web/examples/databases/update-collection.md index 7a94d88edfa..f5e6176811f 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/update-collection.md +++ b/docs/examples/1.5.x/console-web/examples/databases/update-collection.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -15,4 +15,4 @@ const result = await databases.updateCollection( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/update-datetime-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/update-datetime-attribute.md index ce12ecf94d0..453b2f369dc 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/update-datetime-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,7 +11,8 @@ const result = await databases.updateDatetimeAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - '' // default + '', // default + '' // newKey (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/update-document.md b/docs/examples/1.5.x/console-web/examples/databases/update-document.md index 82307c7e7c3..635c50722dc 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/update-document.md +++ b/docs/examples/1.5.x/console-web/examples/databases/update-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -14,4 +14,4 @@ const result = await databases.updateDocument( ["read("any")"] // permissions (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/update-email-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/update-email-attribute.md index eaf1167a255..581d7ab48ea 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/update-email-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/update-email-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,7 +11,8 @@ const result = await databases.updateEmailAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - 'email@example.com' // default + 'email@example.com', // default + '' // newKey (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/update-enum-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/update-enum-attribute.md index 4dba524a08b..999335a27e4 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/update-enum-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,7 +12,8 @@ const result = await databases.updateEnumAttribute( '', // key [], // elements false, // required - '<DEFAULT>' // default + '<DEFAULT>', // default + '' // newKey (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/update-float-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/update-float-attribute.md index c8c73e1b869..91e946dad4c 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/update-float-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/update-float-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,9 +11,10 @@ const result = await databases.updateFloatAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - null, // min - null, // max - null // default + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/update-integer-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/update-integer-attribute.md index c113213e535..84ed1656d6e 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/update-integer-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,9 +11,10 @@ const result = await databases.updateIntegerAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - null, // min - null, // max - null // default + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/update-ip-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/update-ip-attribute.md index 81c47d4ec65..f2a018c4b40 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/update-ip-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,7 +11,8 @@ const result = await databases.updateIpAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - '' // default + '', // default + '' // newKey (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/update-relationship-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/update-relationship-attribute.md index 649cae12a46..bc5f41cf92e 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/update-relationship-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases, RelationMutate } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -10,7 +10,8 @@ const result = await databases.updateRelationshipAttribute( '<DATABASE_ID>', // databaseId '<COLLECTION_ID>', // collectionId '', // key - RelationMutate.Cascade // onDelete (optional) + RelationMutate.Cascade, // onDelete (optional) + '' // newKey (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/update-string-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/update-string-attribute.md index 54d7875fdf4..f652c304ebf 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/update-string-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/update-string-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,7 +11,9 @@ const result = await databases.updateStringAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - '<DEFAULT>' // default + '<DEFAULT>', // default + 1, // size (optional) + '' // newKey (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/update-url-attribute.md b/docs/examples/1.5.x/console-web/examples/databases/update-url-attribute.md index 3d02628464b..e09220304e8 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/update-url-attribute.md +++ b/docs/examples/1.5.x/console-web/examples/databases/update-url-attribute.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,7 +11,8 @@ const result = await databases.updateUrlAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - 'https://example.com' // default + 'https://example.com', // default + '' // newKey (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/databases/update.md b/docs/examples/1.5.x/console-web/examples/databases/update.md index 41529ed8841..a8c2b33ae48 100644 --- a/docs/examples/1.5.x/console-web/examples/databases/update.md +++ b/docs/examples/1.5.x/console-web/examples/databases/update.md @@ -2,7 +2,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,4 +12,4 @@ const result = await databases.update( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/create-build.md b/docs/examples/1.5.x/console-web/examples/functions/create-build.md index 034ea7e56dc..89c7d0817cd 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/create-build.md +++ b/docs/examples/1.5.x/console-web/examples/functions/create-build.md @@ -2,14 +2,14 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); const result = await functions.createBuild( '<FUNCTION_ID>', // functionId '<DEPLOYMENT_ID>', // deploymentId - '<BUILD_ID>' // buildId + '<BUILD_ID>' // buildId (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/create-deployment.md b/docs/examples/1.5.x/console-web/examples/functions/create-deployment.md index d3086ceb6e8..75715323561 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/create-deployment.md +++ b/docs/examples/1.5.x/console-web/examples/functions/create-deployment.md @@ -2,7 +2,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -14,4 +14,4 @@ const result = await functions.createDeployment( '<COMMANDS>' // commands (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/create-execution.md b/docs/examples/1.5.x/console-web/examples/functions/create-execution.md index d8ff507012d..dfaf2ef2601 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/console-web/examples/functions/create-execution.md @@ -2,7 +2,7 @@ import { Client, Functions, ExecutionMethod } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -12,7 +12,8 @@ const result = await functions.createExecution( false, // async (optional) '<PATH>', // path (optional) ExecutionMethod.GET, // method (optional) - {} // headers (optional) + {}, // headers (optional) + '' // scheduledAt (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/create-variable.md b/docs/examples/1.5.x/console-web/examples/functions/create-variable.md index 3b8f6d38028..60d9a10b294 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/create-variable.md +++ b/docs/examples/1.5.x/console-web/examples/functions/create-variable.md @@ -2,7 +2,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -12,4 +12,4 @@ const result = await functions.createVariable( '<VALUE>' // value ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/create.md b/docs/examples/1.5.x/console-web/examples/functions/create.md index f726c5754b1..63df3bfa03c 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/create.md +++ b/docs/examples/1.5.x/console-web/examples/functions/create.md @@ -2,7 +2,7 @@ import { Client, Functions, } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -18,6 +18,7 @@ const result = await functions.create( false, // logging (optional) '<ENTRYPOINT>', // entrypoint (optional) '<COMMANDS>', // commands (optional) + [], // scopes (optional) '<INSTALLATION_ID>', // installationId (optional) '<PROVIDER_REPOSITORY_ID>', // providerRepositoryId (optional) '<PROVIDER_BRANCH>', // providerBranch (optional) @@ -26,7 +27,8 @@ const result = await functions.create( '<TEMPLATE_REPOSITORY>', // templateRepository (optional) '<TEMPLATE_OWNER>', // templateOwner (optional) '<TEMPLATE_ROOT_DIRECTORY>', // templateRootDirectory (optional) - '<TEMPLATE_BRANCH>' // templateBranch (optional) + '<TEMPLATE_VERSION>', // templateVersion (optional) + '' // specification (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/delete-deployment.md b/docs/examples/1.5.x/console-web/examples/functions/delete-deployment.md index fac4afedb8e..28fd5b29e3b 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/delete-deployment.md +++ b/docs/examples/1.5.x/console-web/examples/functions/delete-deployment.md @@ -2,7 +2,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -11,4 +11,4 @@ const result = await functions.deleteDeployment( '<DEPLOYMENT_ID>' // deploymentId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.6.x/client-web/examples/functions/get-deployment-download.md b/docs/examples/1.5.x/console-web/examples/functions/delete-execution.md similarity index 64% rename from docs/examples/1.6.x/client-web/examples/functions/get-deployment-download.md rename to docs/examples/1.5.x/console-web/examples/functions/delete-execution.md index 62e3ee65518..2a857d6535d 100644 --- a/docs/examples/1.6.x/client-web/examples/functions/get-deployment-download.md +++ b/docs/examples/1.5.x/console-web/examples/functions/delete-execution.md @@ -1,4 +1,4 @@ -import { Client, Functions } from "appwrite"; +import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint @@ -6,9 +6,9 @@ const client = new Client() const functions = new Functions(client); -const result = functions.getDeploymentDownload( +const result = await functions.deleteExecution( '<FUNCTION_ID>', // functionId - '<DEPLOYMENT_ID>' // deploymentId + '<EXECUTION_ID>' // executionId ); console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/delete-variable.md b/docs/examples/1.5.x/console-web/examples/functions/delete-variable.md index d6f7f925347..60c4de54cc7 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/delete-variable.md +++ b/docs/examples/1.5.x/console-web/examples/functions/delete-variable.md @@ -2,7 +2,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -11,4 +11,4 @@ const result = await functions.deleteVariable( '<VARIABLE_ID>' // variableId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/delete.md b/docs/examples/1.5.x/console-web/examples/functions/delete.md index 5cb2ee4c22b..b6dd5ccf3e7 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/delete.md +++ b/docs/examples/1.5.x/console-web/examples/functions/delete.md @@ -2,7 +2,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -10,4 +10,4 @@ const result = await functions.delete( '<FUNCTION_ID>' // functionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/download-deployment.md b/docs/examples/1.5.x/console-web/examples/functions/download-deployment.md index cea99706707..edb8284c383 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/download-deployment.md +++ b/docs/examples/1.5.x/console-web/examples/functions/download-deployment.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/download-deployment.md b/docs/examples/1.5.x/console-web/examples/functions/get-deployment-download.md similarity index 88% rename from docs/examples/1.6.x/console-web/examples/functions/download-deployment.md rename to docs/examples/1.5.x/console-web/examples/functions/get-deployment-download.md index 8115c7e1306..34f5b4e45f8 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/download-deployment.md +++ b/docs/examples/1.5.x/console-web/examples/functions/get-deployment-download.md @@ -6,7 +6,7 @@ const client = new Client() const functions = new Functions(client); -const result = functions.downloadDeployment( +const result = functions.getDeploymentDownload( '<FUNCTION_ID>', // functionId '<DEPLOYMENT_ID>' // deploymentId ); diff --git a/docs/examples/1.5.x/console-web/examples/functions/get-deployment.md b/docs/examples/1.5.x/console-web/examples/functions/get-deployment.md index 372697a00a0..242c77cfe04 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/get-deployment.md +++ b/docs/examples/1.5.x/console-web/examples/functions/get-deployment.md @@ -2,7 +2,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -11,4 +11,4 @@ const result = await functions.getDeployment( '<DEPLOYMENT_ID>' // deploymentId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/get-execution.md b/docs/examples/1.5.x/console-web/examples/functions/get-execution.md index 7dbb0501f31..6daf1757fdf 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/console-web/examples/functions/get-execution.md @@ -2,7 +2,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -11,4 +11,4 @@ const result = await functions.getExecution( '<EXECUTION_ID>' // executionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/get-function-usage.md b/docs/examples/1.5.x/console-web/examples/functions/get-function-usage.md index e465afcc50b..cfa6c003b04 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/get-function-usage.md +++ b/docs/examples/1.5.x/console-web/examples/functions/get-function-usage.md @@ -2,7 +2,7 @@ import { Client, Functions, FunctionUsageRange } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -11,4 +11,4 @@ const result = await functions.getFunctionUsage( FunctionUsageRange.TwentyFourHours // range (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.6.x/client-web/examples/functions/get-template.md b/docs/examples/1.5.x/console-web/examples/functions/get-template.md similarity index 83% rename from docs/examples/1.6.x/client-web/examples/functions/get-template.md rename to docs/examples/1.5.x/console-web/examples/functions/get-template.md index dd2d20284e4..a230c7aba96 100644 --- a/docs/examples/1.6.x/client-web/examples/functions/get-template.md +++ b/docs/examples/1.5.x/console-web/examples/functions/get-template.md @@ -1,4 +1,4 @@ -import { Client, Functions } from "appwrite"; +import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint diff --git a/docs/examples/1.5.x/console-web/examples/functions/get-usage.md b/docs/examples/1.5.x/console-web/examples/functions/get-usage.md index c222f0ea341..7fdf2d2f44d 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/get-usage.md +++ b/docs/examples/1.5.x/console-web/examples/functions/get-usage.md @@ -2,7 +2,7 @@ import { Client, Functions, FunctionUsageRange } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -10,4 +10,4 @@ const result = await functions.getUsage( FunctionUsageRange.TwentyFourHours // range (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/get-variable.md b/docs/examples/1.5.x/console-web/examples/functions/get-variable.md index 3507968b032..14fd5550775 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/get-variable.md +++ b/docs/examples/1.5.x/console-web/examples/functions/get-variable.md @@ -2,7 +2,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -11,4 +11,4 @@ const result = await functions.getVariable( '<VARIABLE_ID>' // variableId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/get.md b/docs/examples/1.5.x/console-web/examples/functions/get.md index 51c8190f455..7eb5d29923b 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/get.md +++ b/docs/examples/1.5.x/console-web/examples/functions/get.md @@ -2,7 +2,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -10,4 +10,4 @@ const result = await functions.get( '<FUNCTION_ID>' // functionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/list-deployments.md b/docs/examples/1.5.x/console-web/examples/functions/list-deployments.md index 30ae40f22e1..453e92cfaa3 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/list-deployments.md +++ b/docs/examples/1.5.x/console-web/examples/functions/list-deployments.md @@ -2,7 +2,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -12,4 +12,4 @@ const result = await functions.listDeployments( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/list-executions.md b/docs/examples/1.5.x/console-web/examples/functions/list-executions.md index 5236bf6562c..1aad664cda6 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/console-web/examples/functions/list-executions.md @@ -2,7 +2,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -12,4 +12,4 @@ const result = await functions.listExecutions( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/list-runtimes.md b/docs/examples/1.5.x/console-web/examples/functions/list-runtimes.md index 9935779e373..36010611f00 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/list-runtimes.md +++ b/docs/examples/1.5.x/console-web/examples/functions/list-runtimes.md @@ -2,10 +2,10 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); const result = await functions.listRuntimes(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.6.x/console-web/examples/functions/get-specifications.md b/docs/examples/1.5.x/console-web/examples/functions/list-specifications.md similarity index 84% rename from docs/examples/1.6.x/console-web/examples/functions/get-specifications.md rename to docs/examples/1.5.x/console-web/examples/functions/list-specifications.md index c5cb3fc0430..a3c11f1d835 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/get-specifications.md +++ b/docs/examples/1.5.x/console-web/examples/functions/list-specifications.md @@ -6,6 +6,6 @@ const client = new Client() const functions = new Functions(client); -const result = await functions.getSpecifications(); +const result = await functions.listSpecifications(); console.log(result); diff --git a/docs/examples/1.6.x/client-web/examples/functions/list-templates.md b/docs/examples/1.5.x/console-web/examples/functions/list-templates.md similarity index 86% rename from docs/examples/1.6.x/client-web/examples/functions/list-templates.md rename to docs/examples/1.5.x/console-web/examples/functions/list-templates.md index 141c56322b7..3970f8f6699 100644 --- a/docs/examples/1.6.x/client-web/examples/functions/list-templates.md +++ b/docs/examples/1.5.x/console-web/examples/functions/list-templates.md @@ -1,4 +1,4 @@ -import { Client, Functions } from "appwrite"; +import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint diff --git a/docs/examples/1.5.x/console-web/examples/functions/list-variables.md b/docs/examples/1.5.x/console-web/examples/functions/list-variables.md index ca43b90f308..fc659e3e7d3 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/list-variables.md +++ b/docs/examples/1.5.x/console-web/examples/functions/list-variables.md @@ -2,7 +2,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -10,4 +10,4 @@ const result = await functions.listVariables( '<FUNCTION_ID>' // functionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/list.md b/docs/examples/1.5.x/console-web/examples/functions/list.md index 586e51d49bc..26e4864e95a 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/list.md +++ b/docs/examples/1.5.x/console-web/examples/functions/list.md @@ -2,7 +2,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -11,4 +11,4 @@ const result = await functions.list( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.6.x/client-react-native/examples/functions/get-deployment-download.md b/docs/examples/1.5.x/console-web/examples/functions/update-deployment-build.md similarity index 72% rename from docs/examples/1.6.x/client-react-native/examples/functions/get-deployment-download.md rename to docs/examples/1.5.x/console-web/examples/functions/update-deployment-build.md index 7eac2b753fa..bd11a2a80e2 100644 --- a/docs/examples/1.6.x/client-react-native/examples/functions/get-deployment-download.md +++ b/docs/examples/1.5.x/console-web/examples/functions/update-deployment-build.md @@ -1,4 +1,4 @@ -import { Client, Functions } from "react-native-appwrite"; +import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint @@ -6,7 +6,7 @@ const client = new Client() const functions = new Functions(client); -const result = functions.getDeploymentDownload( +const result = await functions.updateDeploymentBuild( '<FUNCTION_ID>', // functionId '<DEPLOYMENT_ID>' // deploymentId ); diff --git a/docs/examples/1.5.x/console-web/examples/functions/update-deployment.md b/docs/examples/1.5.x/console-web/examples/functions/update-deployment.md index 373c9a4bf63..3aad019b137 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/update-deployment.md +++ b/docs/examples/1.5.x/console-web/examples/functions/update-deployment.md @@ -2,7 +2,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -11,4 +11,4 @@ const result = await functions.updateDeployment( '<DEPLOYMENT_ID>' // deploymentId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/update-variable.md b/docs/examples/1.5.x/console-web/examples/functions/update-variable.md index bd6b0b23ddf..5046499cc75 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/update-variable.md +++ b/docs/examples/1.5.x/console-web/examples/functions/update-variable.md @@ -2,7 +2,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -13,4 +13,4 @@ const result = await functions.updateVariable( '<VALUE>' // value (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/functions/update.md b/docs/examples/1.5.x/console-web/examples/functions/update.md index 3bb85eec5ee..a8d1709aca9 100644 --- a/docs/examples/1.5.x/console-web/examples/functions/update.md +++ b/docs/examples/1.5.x/console-web/examples/functions/update.md @@ -2,7 +2,7 @@ import { Client, Functions, } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); @@ -18,11 +18,13 @@ const result = await functions.update( false, // logging (optional) '<ENTRYPOINT>', // entrypoint (optional) '<COMMANDS>', // commands (optional) + [], // scopes (optional) '<INSTALLATION_ID>', // installationId (optional) '<PROVIDER_REPOSITORY_ID>', // providerRepositoryId (optional) '<PROVIDER_BRANCH>', // providerBranch (optional) false, // providerSilentMode (optional) - '<PROVIDER_ROOT_DIRECTORY>' // providerRootDirectory (optional) + '<PROVIDER_ROOT_DIRECTORY>', // providerRootDirectory (optional) + '' // specification (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/graphql/mutation.md b/docs/examples/1.5.x/console-web/examples/graphql/mutation.md index d3e96765764..0b9b76a2fd2 100644 --- a/docs/examples/1.5.x/console-web/examples/graphql/mutation.md +++ b/docs/examples/1.5.x/console-web/examples/graphql/mutation.md @@ -2,7 +2,7 @@ import { Client, Graphql } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const graphql = new Graphql(client); @@ -10,4 +10,4 @@ const result = await graphql.mutation( {} // query ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/graphql/query.md b/docs/examples/1.5.x/console-web/examples/graphql/query.md index a06a916535e..a708c3904e7 100644 --- a/docs/examples/1.5.x/console-web/examples/graphql/query.md +++ b/docs/examples/1.5.x/console-web/examples/graphql/query.md @@ -2,7 +2,7 @@ import { Client, Graphql } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const graphql = new Graphql(client); @@ -10,4 +10,4 @@ const result = await graphql.query( {} // query ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-antivirus.md b/docs/examples/1.5.x/console-web/examples/health/get-antivirus.md index 4d7b1cbd982..3c36cd720e9 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-antivirus.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-antivirus.md @@ -2,10 +2,10 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); const result = await health.getAntivirus(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-cache.md b/docs/examples/1.5.x/console-web/examples/health/get-cache.md index 34ca3ce8f1b..0bdb8947339 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-cache.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-cache.md @@ -2,10 +2,10 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); const result = await health.getCache(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-certificate.md b/docs/examples/1.5.x/console-web/examples/health/get-certificate.md index 08f90b893d6..4bd5c8a6b47 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-certificate.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-certificate.md @@ -2,7 +2,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); @@ -10,4 +10,4 @@ const result = await health.getCertificate( '' // domain (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-d-b.md b/docs/examples/1.5.x/console-web/examples/health/get-d-b.md index f0015197e05..d18ed28f649 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-d-b.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-d-b.md @@ -2,10 +2,10 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); const result = await health.getDB(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-failed-jobs.md b/docs/examples/1.5.x/console-web/examples/health/get-failed-jobs.md index b1768a7b6f7..e1e57b1654d 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-failed-jobs.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-failed-jobs.md @@ -2,7 +2,7 @@ import { Client, Health, } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); @@ -11,4 +11,4 @@ const result = await health.getFailedJobs( null // threshold (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-pub-sub.md b/docs/examples/1.5.x/console-web/examples/health/get-pub-sub.md index fd2773503d4..9b398f5b140 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-pub-sub.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-pub-sub.md @@ -2,10 +2,10 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); const result = await health.getPubSub(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-queue-builds.md b/docs/examples/1.5.x/console-web/examples/health/get-queue-builds.md index 00c702ee6be..0ee109f8dd7 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-queue-builds.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-queue-builds.md @@ -2,7 +2,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); @@ -10,4 +10,4 @@ const result = await health.getQueueBuilds( null // threshold (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-queue-certificates.md b/docs/examples/1.5.x/console-web/examples/health/get-queue-certificates.md index aafe14aab18..ce82ab00de9 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-queue-certificates.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-queue-certificates.md @@ -2,7 +2,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); @@ -10,4 +10,4 @@ const result = await health.getQueueCertificates( null // threshold (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-queue-databases.md b/docs/examples/1.5.x/console-web/examples/health/get-queue-databases.md index 9ea4d8c10bd..8a96fcf00ba 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-queue-databases.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-queue-databases.md @@ -2,7 +2,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); @@ -11,4 +11,4 @@ const result = await health.getQueueDatabases( null // threshold (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-queue-deletes.md b/docs/examples/1.5.x/console-web/examples/health/get-queue-deletes.md index 2e7fcbc41a7..840607e1131 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-queue-deletes.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-queue-deletes.md @@ -2,7 +2,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); @@ -10,4 +10,4 @@ const result = await health.getQueueDeletes( null // threshold (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-queue-functions.md b/docs/examples/1.5.x/console-web/examples/health/get-queue-functions.md index 7afce2b33f0..35c612a7af8 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-queue-functions.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-queue-functions.md @@ -2,7 +2,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); @@ -10,4 +10,4 @@ const result = await health.getQueueFunctions( null // threshold (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-queue-logs.md b/docs/examples/1.5.x/console-web/examples/health/get-queue-logs.md index 4c3477b3124..9f5d51dc298 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-queue-logs.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-queue-logs.md @@ -2,7 +2,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); @@ -10,4 +10,4 @@ const result = await health.getQueueLogs( null // threshold (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-queue-mails.md b/docs/examples/1.5.x/console-web/examples/health/get-queue-mails.md index c4ff788134e..58d694d7b8b 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-queue-mails.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-queue-mails.md @@ -2,7 +2,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); @@ -10,4 +10,4 @@ const result = await health.getQueueMails( null // threshold (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-queue-messaging.md b/docs/examples/1.5.x/console-web/examples/health/get-queue-messaging.md index 33f68de8b72..cfecdf9a634 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-queue-messaging.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-queue-messaging.md @@ -2,7 +2,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); @@ -10,4 +10,4 @@ const result = await health.getQueueMessaging( null // threshold (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-queue-migrations.md b/docs/examples/1.5.x/console-web/examples/health/get-queue-migrations.md index d2c873f661a..5a8b74e79cd 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-queue-migrations.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-queue-migrations.md @@ -2,7 +2,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); @@ -10,4 +10,4 @@ const result = await health.getQueueMigrations( null // threshold (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.6.x/client-react-native/examples/functions/get-template.md b/docs/examples/1.5.x/console-web/examples/health/get-queue-stats-resources.md similarity index 50% rename from docs/examples/1.6.x/client-react-native/examples/functions/get-template.md rename to docs/examples/1.5.x/console-web/examples/health/get-queue-stats-resources.md index ea756323dcc..97f4c5b4e9b 100644 --- a/docs/examples/1.6.x/client-react-native/examples/functions/get-template.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-queue-stats-resources.md @@ -1,13 +1,13 @@ -import { Client, Functions } from "react-native-appwrite"; +import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID -const functions = new Functions(client); +const health = new Health(client); -const result = await functions.getTemplate( - '<TEMPLATE_ID>' // templateId +const result = await health.getQueueStatsResources( + null // threshold (optional) ); console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-queue-usage-dump.md b/docs/examples/1.5.x/console-web/examples/health/get-queue-usage-dump.md index e88640edce0..dddfb821c59 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-queue-usage-dump.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-queue-usage.md b/docs/examples/1.5.x/console-web/examples/health/get-queue-usage.md index 7961ad62829..703574a3ba6 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-queue-usage.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-queue-usage.md @@ -2,7 +2,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); @@ -10,4 +10,4 @@ const result = await health.getQueueUsage( null // threshold (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-queue-webhooks.md b/docs/examples/1.5.x/console-web/examples/health/get-queue-webhooks.md index 0fce435c69d..1c003864a58 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-queue-webhooks.md @@ -2,7 +2,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); @@ -10,4 +10,4 @@ const result = await health.getQueueWebhooks( null // threshold (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-queue.md b/docs/examples/1.5.x/console-web/examples/health/get-queue.md index 755624eb924..c6443fee3f1 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-queue.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-queue.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-storage-local.md b/docs/examples/1.5.x/console-web/examples/health/get-storage-local.md index 280d5fea40e..82c6b8bebfa 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-storage-local.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-storage-local.md @@ -2,10 +2,10 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); const result = await health.getStorageLocal(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-storage.md b/docs/examples/1.5.x/console-web/examples/health/get-storage.md index 13dc5456527..a7a377a4246 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-storage.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-storage.md @@ -2,10 +2,10 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); const result = await health.getStorage(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get-time.md b/docs/examples/1.5.x/console-web/examples/health/get-time.md index 696d7acd400..8e126c0c074 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get-time.md +++ b/docs/examples/1.5.x/console-web/examples/health/get-time.md @@ -2,10 +2,10 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); const result = await health.getTime(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/health/get.md b/docs/examples/1.5.x/console-web/examples/health/get.md index 85a6fd9f77f..3f2f0fbd85a 100644 --- a/docs/examples/1.5.x/console-web/examples/health/get.md +++ b/docs/examples/1.5.x/console-web/examples/health/get.md @@ -2,10 +2,10 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); const result = await health.get(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/locale/get.md b/docs/examples/1.5.x/console-web/examples/locale/get.md index 387aedc0743..fc4f1490ac4 100644 --- a/docs/examples/1.5.x/console-web/examples/locale/get.md +++ b/docs/examples/1.5.x/console-web/examples/locale/get.md @@ -2,10 +2,10 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.get(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/locale/list-codes.md b/docs/examples/1.5.x/console-web/examples/locale/list-codes.md index d426e06a850..547ff184182 100644 --- a/docs/examples/1.5.x/console-web/examples/locale/list-codes.md +++ b/docs/examples/1.5.x/console-web/examples/locale/list-codes.md @@ -2,10 +2,10 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.listCodes(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/locale/list-continents.md b/docs/examples/1.5.x/console-web/examples/locale/list-continents.md index 544550a4632..2c09d6a472d 100644 --- a/docs/examples/1.5.x/console-web/examples/locale/list-continents.md +++ b/docs/examples/1.5.x/console-web/examples/locale/list-continents.md @@ -2,10 +2,10 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.listContinents(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/console-web/examples/locale/list-countries-e-u.md index a675d30d563..12769b40f52 100644 --- a/docs/examples/1.5.x/console-web/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/console-web/examples/locale/list-countries-e-u.md @@ -2,10 +2,10 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.listCountriesEU(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/console-web/examples/locale/list-countries-phones.md index 938b248b9da..6bd09be13e9 100644 --- a/docs/examples/1.5.x/console-web/examples/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/console-web/examples/locale/list-countries-phones.md @@ -2,10 +2,10 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.listCountriesPhones(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/locale/list-countries.md b/docs/examples/1.5.x/console-web/examples/locale/list-countries.md index e3f84b0c3a8..e245f18aa74 100644 --- a/docs/examples/1.5.x/console-web/examples/locale/list-countries.md +++ b/docs/examples/1.5.x/console-web/examples/locale/list-countries.md @@ -2,10 +2,10 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.listCountries(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/locale/list-currencies.md b/docs/examples/1.5.x/console-web/examples/locale/list-currencies.md index 8ffe9ad2fd5..4fabdd6a710 100644 --- a/docs/examples/1.5.x/console-web/examples/locale/list-currencies.md +++ b/docs/examples/1.5.x/console-web/examples/locale/list-currencies.md @@ -2,10 +2,10 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.listCurrencies(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/locale/list-languages.md b/docs/examples/1.5.x/console-web/examples/locale/list-languages.md index c9a74bf9689..3de7d36e2f9 100644 --- a/docs/examples/1.5.x/console-web/examples/locale/list-languages.md +++ b/docs/examples/1.5.x/console-web/examples/locale/list-languages.md @@ -2,10 +2,10 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); const result = await locale.listLanguages(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/create-a-p-n-s-provider.md index d329d2626ea..eee34083867 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-a-p-n-s-provider.md @@ -5,7 +5,7 @@ const client = new Client(); const messaging = new Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-apns-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/create-apns-provider.md index 2313716128e..2c9592eacb7 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-apns-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -17,4 +17,4 @@ const result = await messaging.createApnsProvider( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-email.md b/docs/examples/1.5.x/console-web/examples/messaging/create-email.md index 7d1b1184e35..cf9800827c0 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-email.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-email.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -21,4 +21,4 @@ const result = await messaging.createEmail( '' // scheduledAt (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/create-f-c-m-provider.md index a4774c7561f..8437f1dc58a 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-f-c-m-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-f-c-m-provider.md @@ -5,7 +5,7 @@ const client = new Client(); const messaging = new Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-fcm-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/create-fcm-provider.md index 64091866fb2..e4db7c5b876 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-fcm-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -13,4 +13,4 @@ const result = await messaging.createFcmProvider( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-mailgun-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/create-mailgun-provider.md index 70e60593fc6..e03a7adc7e9 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-mailgun-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -19,4 +19,4 @@ const result = await messaging.createMailgunProvider( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-msg91provider.md b/docs/examples/1.5.x/console-web/examples/messaging/create-msg91provider.md index e066f1c3e5d..2576d818e86 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-msg91provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -15,4 +15,4 @@ const result = await messaging.createMsg91Provider( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-push.md b/docs/examples/1.5.x/console-web/examples/messaging/create-push.md index dcb8654d1e4..9a4fd4269a0 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-push.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-push.md @@ -1,15 +1,15 @@ -import { Client, Messaging } from "@appwrite.io/console"; +import { Client, Messaging, MessagePriority } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); const result = await messaging.createPush( '<MESSAGE_ID>', // messageId - '<TITLE>', // title - '<BODY>', // body + '<TITLE>', // title (optional) + '<BODY>', // body (optional) [], // topics (optional) [], // users (optional) [], // targets (optional) @@ -20,9 +20,12 @@ const result = await messaging.createPush( '<SOUND>', // sound (optional) '<COLOR>', // color (optional) '<TAG>', // tag (optional) - '<BADGE>', // badge (optional) + null, // badge (optional) false, // draft (optional) - '' // scheduledAt (optional) + '', // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + MessagePriority.Normal // priority (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-s-m-s.md b/docs/examples/1.5.x/console-web/examples/messaging/create-s-m-s.md index d29de0dceaf..56f7320b4da 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-s-m-s.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-s-m-s.md @@ -5,7 +5,7 @@ const client = new Client(); const messaging = new Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/create-s-m-t-p-provider.md index d463ba3c502..c7b6d755214 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-s-m-t-p-provider.md @@ -5,7 +5,7 @@ const client = new Client(); const messaging = new Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/create-sendgrid-provider.md index 10c1987c1e0..309df22c6c1 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-sendgrid-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -17,4 +17,4 @@ const result = await messaging.createSendgridProvider( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-sms.md b/docs/examples/1.5.x/console-web/examples/messaging/create-sms.md index 91393f627c5..8cdc8ffd428 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-sms.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-sms.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -16,4 +16,4 @@ const result = await messaging.createSms( '' // scheduledAt (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-smtp-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/create-smtp-provider.md index fd8aa44cf27..a1363e6ded8 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-smtp-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging, SmtpEncryption } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -23,4 +23,4 @@ const result = await messaging.createSmtpProvider( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/console-web/examples/messaging/create-subscriber.md index 71e2e045bc7..9e6705488d9 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-subscriber.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -12,4 +12,4 @@ const result = await messaging.createSubscriber( '<TARGET_ID>' // targetId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-telesign-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/create-telesign-provider.md index d0105fff1e5..03928d1cba6 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-telesign-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -15,4 +15,4 @@ const result = await messaging.createTelesignProvider( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-textmagic-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/create-textmagic-provider.md index 9eccf339d72..f3a4f21a491 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-textmagic-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -15,4 +15,4 @@ const result = await messaging.createTextmagicProvider( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-topic.md b/docs/examples/1.5.x/console-web/examples/messaging/create-topic.md index ce49f9d097a..46a7a10f382 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-topic.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-topic.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -12,4 +12,4 @@ const result = await messaging.createTopic( ["any"] // subscribe (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-twilio-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/create-twilio-provider.md index 37e6851ac4e..4a1dbef2567 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-twilio-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -15,4 +15,4 @@ const result = await messaging.createTwilioProvider( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/create-vonage-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/create-vonage-provider.md index 81b3d16ff84..97dfed44f31 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/create-vonage-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -15,4 +15,4 @@ const result = await messaging.createVonageProvider( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/delete-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/delete-provider.md index dbdc076e490..03626ffd6f9 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/delete-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/delete-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -10,4 +10,4 @@ const result = await messaging.deleteProvider( '<PROVIDER_ID>' // providerId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/console-web/examples/messaging/delete-subscriber.md index c88a0a57816..dc10349ebb3 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/delete-subscriber.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -11,4 +11,4 @@ const result = await messaging.deleteSubscriber( '<SUBSCRIBER_ID>' // subscriberId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/delete-topic.md b/docs/examples/1.5.x/console-web/examples/messaging/delete-topic.md index 1adaa6a561b..f009f770af2 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/delete-topic.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/delete-topic.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -10,4 +10,4 @@ const result = await messaging.deleteTopic( '<TOPIC_ID>' // topicId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/delete.md b/docs/examples/1.5.x/console-web/examples/messaging/delete.md index 5adcdda136a..daf58d29002 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/delete.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/delete.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -10,4 +10,4 @@ const result = await messaging.delete( '<MESSAGE_ID>' // messageId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/get-message.md b/docs/examples/1.5.x/console-web/examples/messaging/get-message.md index d2969194e1c..3e141f41823 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/get-message.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/get-message.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -10,4 +10,4 @@ const result = await messaging.getMessage( '<MESSAGE_ID>' // messageId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/get-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/get-provider.md index ec576d2d4e2..834241ffb3e 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/get-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/get-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -10,4 +10,4 @@ const result = await messaging.getProvider( '<PROVIDER_ID>' // providerId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/get-subscriber.md b/docs/examples/1.5.x/console-web/examples/messaging/get-subscriber.md index 72706a0c7d4..22860485dcb 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/get-subscriber.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/get-subscriber.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -11,4 +11,4 @@ const result = await messaging.getSubscriber( '<SUBSCRIBER_ID>' // subscriberId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/get-topic.md b/docs/examples/1.5.x/console-web/examples/messaging/get-topic.md index 277d611ff77..dd30034a249 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/get-topic.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/get-topic.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -10,4 +10,4 @@ const result = await messaging.getTopic( '<TOPIC_ID>' // topicId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/list-message-logs.md b/docs/examples/1.5.x/console-web/examples/messaging/list-message-logs.md index 20ec0be37ed..709a433e737 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/list-message-logs.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/list-message-logs.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -11,4 +11,4 @@ const result = await messaging.listMessageLogs( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/list-messages.md b/docs/examples/1.5.x/console-web/examples/messaging/list-messages.md index e7d58f9ccdc..42cf8874e5e 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/list-messages.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/list-messages.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -11,4 +11,4 @@ const result = await messaging.listMessages( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/list-provider-logs.md b/docs/examples/1.5.x/console-web/examples/messaging/list-provider-logs.md index 9b338e39fac..228a83e6ca2 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/list-provider-logs.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -11,4 +11,4 @@ const result = await messaging.listProviderLogs( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/list-providers.md b/docs/examples/1.5.x/console-web/examples/messaging/list-providers.md index 5c3e1bde0c7..e135b4afb70 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/list-providers.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/list-providers.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -11,4 +11,4 @@ const result = await messaging.listProviders( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/list-subscriber-logs.md b/docs/examples/1.5.x/console-web/examples/messaging/list-subscriber-logs.md index 2ef14d7cd5c..33f4bdf0b1d 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/list-subscriber-logs.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -11,4 +11,4 @@ const result = await messaging.listSubscriberLogs( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/list-subscribers.md b/docs/examples/1.5.x/console-web/examples/messaging/list-subscribers.md index c317de9cffb..09818406d5e 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/list-subscribers.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/list-subscribers.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -12,4 +12,4 @@ const result = await messaging.listSubscribers( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/list-targets.md b/docs/examples/1.5.x/console-web/examples/messaging/list-targets.md index 1628d1dac12..92adc0cf346 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/list-targets.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/list-targets.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -11,4 +11,4 @@ const result = await messaging.listTargets( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/list-topic-logs.md b/docs/examples/1.5.x/console-web/examples/messaging/list-topic-logs.md index a3675031fe5..2ab33f65333 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/list-topic-logs.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -11,4 +11,4 @@ const result = await messaging.listTopicLogs( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/list-topics.md b/docs/examples/1.5.x/console-web/examples/messaging/list-topics.md index d42ae79a49a..8983f834f7d 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/list-topics.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/list-topics.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -11,4 +11,4 @@ const result = await messaging.listTopics( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/update-a-p-n-s-provider.md index 24e3a59a3e5..bb89e23de30 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-a-p-n-s-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-apns-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/update-apns-provider.md index adde33676d7..4face789204 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-apns-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -17,4 +17,4 @@ const result = await messaging.updateApnsProvider( false // sandbox (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-email.md b/docs/examples/1.5.x/console-web/examples/messaging/update-email.md index ea9ff13858e..905ba629c4c 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-email.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-email.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -21,4 +21,4 @@ const result = await messaging.updateEmail( [] // attachments (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/update-f-c-m-provider.md index e734ce66151..7f800a3e411 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-f-c-m-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-f-c-m-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-fcm-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/update-fcm-provider.md index bf408da2908..0c1b2627dc8 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-fcm-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -13,4 +13,4 @@ const result = await messaging.updateFcmProvider( {} // serviceAccountJSON (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-mailgun-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/update-mailgun-provider.md index 8edfd8f43e5..8dbf6b8bc39 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-mailgun-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -19,4 +19,4 @@ const result = await messaging.updateMailgunProvider( '<REPLY_TO_EMAIL>' // replyToEmail (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-msg91provider.md b/docs/examples/1.5.x/console-web/examples/messaging/update-msg91provider.md index 4a8148a24ff..68db8ffe2d7 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-msg91provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -15,4 +15,4 @@ const result = await messaging.updateMsg91Provider( '<AUTH_KEY>' // authKey (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-push.md b/docs/examples/1.5.x/console-web/examples/messaging/update-push.md index e6ec29c2cdd..fa2220d3c6c 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-push.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-push.md @@ -1,8 +1,8 @@ -import { Client, Messaging } from "@appwrite.io/console"; +import { Client, Messaging, MessagePriority } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -22,7 +22,10 @@ const result = await messaging.updatePush( '<TAG>', // tag (optional) null, // badge (optional) false, // draft (optional) - '' // scheduledAt (optional) + '', // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + MessagePriority.Normal // priority (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-s-m-s.md b/docs/examples/1.5.x/console-web/examples/messaging/update-s-m-s.md index b43057ac587..c277ed618fb 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-s-m-s.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-s-m-s.md @@ -5,7 +5,7 @@ const client = new Client(); const messaging = new Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/update-s-m-t-p-provider.md index 163512e004e..d4d05e49767 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-s-m-t-p-provider.md @@ -5,7 +5,7 @@ const client = new Client(); const messaging = new Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/update-sendgrid-provider.md index a815cfacd38..5cb6907f059 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-sendgrid-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -17,4 +17,4 @@ const result = await messaging.updateSendgridProvider( '<REPLY_TO_EMAIL>' // replyToEmail (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-sms.md b/docs/examples/1.5.x/console-web/examples/messaging/update-sms.md index 058ed8a3a4d..c26662680a1 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-sms.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-sms.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -16,4 +16,4 @@ const result = await messaging.updateSms( '' // scheduledAt (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-smtp-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/update-smtp-provider.md index a8556fe4824..aca32d19020 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-smtp-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging, SmtpEncryption } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -23,4 +23,4 @@ const result = await messaging.updateSmtpProvider( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-telesign-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/update-telesign-provider.md index 5ae3543a5ee..fcba0648f50 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-telesign-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -15,4 +15,4 @@ const result = await messaging.updateTelesignProvider( '<FROM>' // from (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-textmagic-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/update-textmagic-provider.md index 45c19fc3f22..c2f1c2506a8 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-textmagic-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -15,4 +15,4 @@ const result = await messaging.updateTextmagicProvider( '<FROM>' // from (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-topic.md b/docs/examples/1.5.x/console-web/examples/messaging/update-topic.md index 19da6c56055..d5d953511bc 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-topic.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-topic.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -12,4 +12,4 @@ const result = await messaging.updateTopic( ["any"] // subscribe (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-twilio-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/update-twilio-provider.md index fd1b314287c..d6a8d07a4b3 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-twilio-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -15,4 +15,4 @@ const result = await messaging.updateTwilioProvider( '<FROM>' // from (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/messaging/update-vonage-provider.md b/docs/examples/1.5.x/console-web/examples/messaging/update-vonage-provider.md index 7fd146680b0..939cd821d6c 100644 --- a/docs/examples/1.5.x/console-web/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.5.x/console-web/examples/messaging/update-vonage-provider.md @@ -2,7 +2,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -15,4 +15,4 @@ const result = await messaging.updateVonageProvider( '<FROM>' // from (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/create-appwrite-migration.md b/docs/examples/1.5.x/console-web/examples/migrations/create-appwrite-migration.md index 91e71539861..4e5b463e388 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/create-appwrite-migration.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/create-appwrite-migration.md @@ -2,7 +2,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); @@ -13,4 +13,4 @@ const result = await migrations.createAppwriteMigration( '<API_KEY>' // apiKey ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/create-firebase-migration.md b/docs/examples/1.5.x/console-web/examples/migrations/create-firebase-migration.md index 20e75883d71..9e59eda642b 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/create-firebase-migration.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/create-firebase-migration.md @@ -2,7 +2,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); @@ -11,4 +11,4 @@ const result = await migrations.createFirebaseMigration( '<SERVICE_ACCOUNT>' // serviceAccount ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/create-firebase-o-auth-migration.md b/docs/examples/1.5.x/console-web/examples/migrations/create-firebase-o-auth-migration.md index c35c654be7e..fca6e8ca18b 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/create-firebase-o-auth-migration.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/create-firebase-o-auth-migration.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/create-n-host-migration.md b/docs/examples/1.5.x/console-web/examples/migrations/create-n-host-migration.md index e87a6efd00d..281b584d351 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/create-n-host-migration.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/create-n-host-migration.md @@ -2,7 +2,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); @@ -17,4 +17,4 @@ const result = await migrations.createNHostMigration( null // port (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/create-supabase-migration.md b/docs/examples/1.5.x/console-web/examples/migrations/create-supabase-migration.md index 5377c6beaf6..290009b498f 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/create-supabase-migration.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/create-supabase-migration.md @@ -2,7 +2,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); @@ -16,4 +16,4 @@ const result = await migrations.createSupabaseMigration( null // port (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/delete-firebase-auth.md b/docs/examples/1.5.x/console-web/examples/migrations/delete-firebase-auth.md index 5707be782d0..e6cb6735871 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/delete-firebase-auth.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/delete-firebase-auth.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/delete.md b/docs/examples/1.5.x/console-web/examples/migrations/delete.md index 2a0af9b0faa..d5f68fffaff 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/delete.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/delete.md @@ -2,7 +2,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); @@ -10,4 +10,4 @@ const result = await migrations.delete( '<MIGRATION_ID>' // migrationId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/get-appwrite-report.md b/docs/examples/1.5.x/console-web/examples/migrations/get-appwrite-report.md index 82313bc14fd..b5de0848bcf 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/get-appwrite-report.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/get-appwrite-report.md @@ -2,7 +2,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); @@ -13,4 +13,4 @@ const result = await migrations.getAppwriteReport( '<KEY>' // key ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/get-firebase-report-o-auth.md b/docs/examples/1.5.x/console-web/examples/migrations/get-firebase-report-o-auth.md index 634f2f0f41b..cb4ee846896 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/get-firebase-report-o-auth.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/get-firebase-report-o-auth.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/get-firebase-report.md b/docs/examples/1.5.x/console-web/examples/migrations/get-firebase-report.md index 1d9ebaa6fb1..112dd629d76 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/get-firebase-report.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/get-firebase-report.md @@ -2,7 +2,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); @@ -11,4 +11,4 @@ const result = await migrations.getFirebaseReport( '<SERVICE_ACCOUNT>' // serviceAccount ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/get-n-host-report.md b/docs/examples/1.5.x/console-web/examples/migrations/get-n-host-report.md index 7d66870e4c7..ec615014f1b 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/get-n-host-report.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/get-n-host-report.md @@ -2,7 +2,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); @@ -17,4 +17,4 @@ const result = await migrations.getNHostReport( null // port (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/get-supabase-report.md b/docs/examples/1.5.x/console-web/examples/migrations/get-supabase-report.md index 4a5e1a97192..5f6dd316e75 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/get-supabase-report.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/get-supabase-report.md @@ -2,7 +2,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); @@ -16,4 +16,4 @@ const result = await migrations.getSupabaseReport( null // port (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/get.md b/docs/examples/1.5.x/console-web/examples/migrations/get.md index 4c1f5d3b90b..3397c2faa84 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/get.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/get.md @@ -2,7 +2,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); @@ -10,4 +10,4 @@ const result = await migrations.get( '<MIGRATION_ID>' // migrationId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/list-firebase-projects.md b/docs/examples/1.5.x/console-web/examples/migrations/list-firebase-projects.md index 018b1211fc7..8c981c9fb6c 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/list-firebase-projects.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/list-firebase-projects.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/list.md b/docs/examples/1.5.x/console-web/examples/migrations/list.md index 65c2c1888dc..05207f4a6ad 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/list.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/list.md @@ -2,7 +2,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); @@ -11,4 +11,4 @@ const result = await migrations.list( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/migrations/retry.md b/docs/examples/1.5.x/console-web/examples/migrations/retry.md index 110e600e40a..e70bc0700f2 100644 --- a/docs/examples/1.5.x/console-web/examples/migrations/retry.md +++ b/docs/examples/1.5.x/console-web/examples/migrations/retry.md @@ -2,7 +2,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); @@ -10,4 +10,4 @@ const result = await migrations.retry( '<MIGRATION_ID>' // migrationId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/project/create-variable.md b/docs/examples/1.5.x/console-web/examples/project/create-variable.md index d9efb5eb1e2..5d72427d9fa 100644 --- a/docs/examples/1.5.x/console-web/examples/project/create-variable.md +++ b/docs/examples/1.5.x/console-web/examples/project/create-variable.md @@ -2,7 +2,7 @@ import { Client, Project } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const project = new Project(client); @@ -11,4 +11,4 @@ const result = await project.createVariable( '<VALUE>' // value ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/project/delete-variable.md b/docs/examples/1.5.x/console-web/examples/project/delete-variable.md index 657520fb46b..f7a9cf7f3f7 100644 --- a/docs/examples/1.5.x/console-web/examples/project/delete-variable.md +++ b/docs/examples/1.5.x/console-web/examples/project/delete-variable.md @@ -2,7 +2,7 @@ import { Client, Project } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const project = new Project(client); @@ -10,4 +10,4 @@ const result = await project.deleteVariable( '<VARIABLE_ID>' // variableId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/project/get-usage.md b/docs/examples/1.5.x/console-web/examples/project/get-usage.md index b81026eaa98..28d2e32a501 100644 --- a/docs/examples/1.5.x/console-web/examples/project/get-usage.md +++ b/docs/examples/1.5.x/console-web/examples/project/get-usage.md @@ -2,7 +2,7 @@ import { Client, Project, ProjectUsageRange } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const project = new Project(client); @@ -12,4 +12,4 @@ const result = await project.getUsage( ProjectUsageRange.OneHour // period (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/project/get-variable.md b/docs/examples/1.5.x/console-web/examples/project/get-variable.md index f7cb80272d0..8765ccaf17b 100644 --- a/docs/examples/1.5.x/console-web/examples/project/get-variable.md +++ b/docs/examples/1.5.x/console-web/examples/project/get-variable.md @@ -2,7 +2,7 @@ import { Client, Project } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const project = new Project(client); @@ -10,4 +10,4 @@ const result = await project.getVariable( '<VARIABLE_ID>' // variableId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/project/list-variables.md b/docs/examples/1.5.x/console-web/examples/project/list-variables.md index 41e448e406d..fde2ccfaf03 100644 --- a/docs/examples/1.5.x/console-web/examples/project/list-variables.md +++ b/docs/examples/1.5.x/console-web/examples/project/list-variables.md @@ -2,10 +2,10 @@ import { Client, Project } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const project = new Project(client); const result = await project.listVariables(); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/project/update-variable.md b/docs/examples/1.5.x/console-web/examples/project/update-variable.md index 532fbdc82b9..7263032bfb4 100644 --- a/docs/examples/1.5.x/console-web/examples/project/update-variable.md +++ b/docs/examples/1.5.x/console-web/examples/project/update-variable.md @@ -2,7 +2,7 @@ import { Client, Project } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const project = new Project(client); @@ -12,4 +12,4 @@ const result = await project.updateVariable( '<VALUE>' // value (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/create-j-w-t.md b/docs/examples/1.5.x/console-web/examples/projects/create-j-w-t.md new file mode 100644 index 00000000000..2674a12ae18 --- /dev/null +++ b/docs/examples/1.5.x/console-web/examples/projects/create-j-w-t.md @@ -0,0 +1,15 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.createJWT( + '<PROJECT_ID>', // projectId + [], // scopes + 0 // duration (optional) +); + +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/create-key.md b/docs/examples/1.5.x/console-web/examples/projects/create-key.md index 29f9258d5b4..80ab9cc4293 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/create-key.md +++ b/docs/examples/1.5.x/console-web/examples/projects/create-key.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -13,4 +13,4 @@ const result = await projects.createKey( '' // expire (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/create-platform.md b/docs/examples/1.5.x/console-web/examples/projects/create-platform.md index e8ad4f846c8..472517a6257 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/create-platform.md +++ b/docs/examples/1.5.x/console-web/examples/projects/create-platform.md @@ -2,7 +2,7 @@ import { Client, Projects, PlatformType } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -15,4 +15,4 @@ const result = await projects.createPlatform( '' // hostname (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/create-smtp-test.md b/docs/examples/1.5.x/console-web/examples/projects/create-smtp-test.md index dab2e5ec9bb..205a60846df 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/create-smtp-test.md +++ b/docs/examples/1.5.x/console-web/examples/projects/create-smtp-test.md @@ -2,7 +2,7 @@ import { Client, Projects, SMTPSecure } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -19,4 +19,4 @@ const result = await projects.createSmtpTest( SMTPSecure.Tls // secure (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/create-webhook.md b/docs/examples/1.5.x/console-web/examples/projects/create-webhook.md index 8dec04c3150..066b1b78aaa 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/create-webhook.md +++ b/docs/examples/1.5.x/console-web/examples/projects/create-webhook.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -17,4 +17,4 @@ const result = await projects.createWebhook( '<HTTP_PASS>' // httpPass (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/create.md b/docs/examples/1.5.x/console-web/examples/projects/create.md index b008f9bc740..8d1eb12cac7 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/create.md +++ b/docs/examples/1.5.x/console-web/examples/projects/create.md @@ -2,7 +2,7 @@ import { Client, Projects, } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -22,4 +22,4 @@ const result = await projects.create( '<LEGAL_TAX_ID>' // legalTaxId (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/delete-email-template.md b/docs/examples/1.5.x/console-web/examples/projects/delete-email-template.md index 13a384cb275..582c7562602 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/delete-email-template.md +++ b/docs/examples/1.5.x/console-web/examples/projects/delete-email-template.md @@ -2,7 +2,7 @@ import { Client, Projects, EmailTemplateType, EmailTemplateLocale } from "@appwr const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -12,4 +12,4 @@ const result = await projects.deleteEmailTemplate( EmailTemplateLocale.Af // locale ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/delete-key.md b/docs/examples/1.5.x/console-web/examples/projects/delete-key.md index c1ac0a74961..21643859f70 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/delete-key.md +++ b/docs/examples/1.5.x/console-web/examples/projects/delete-key.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.deleteKey( '<KEY_ID>' // keyId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/delete-platform.md b/docs/examples/1.5.x/console-web/examples/projects/delete-platform.md index 28e1109152a..8a0dd667ac2 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/delete-platform.md +++ b/docs/examples/1.5.x/console-web/examples/projects/delete-platform.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.deletePlatform( '<PLATFORM_ID>' // platformId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/delete-sms-template.md b/docs/examples/1.5.x/console-web/examples/projects/delete-sms-template.md index 281384cab2a..cee473637e1 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/delete-sms-template.md +++ b/docs/examples/1.5.x/console-web/examples/projects/delete-sms-template.md @@ -2,7 +2,7 @@ import { Client, Projects, SmsTemplateType, SmsTemplateLocale } from "@appwrite. const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -12,4 +12,4 @@ const result = await projects.deleteSmsTemplate( SmsTemplateLocale.Af // locale ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/delete-webhook.md b/docs/examples/1.5.x/console-web/examples/projects/delete-webhook.md index f61268b342d..9b8b0ca0b53 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/delete-webhook.md +++ b/docs/examples/1.5.x/console-web/examples/projects/delete-webhook.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.deleteWebhook( '<WEBHOOK_ID>' // webhookId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/delete.md b/docs/examples/1.5.x/console-web/examples/projects/delete.md index abcdb644f47..606b4493889 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/delete.md +++ b/docs/examples/1.5.x/console-web/examples/projects/delete.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -10,4 +10,4 @@ const result = await projects.delete( '<PROJECT_ID>' // projectId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/get-email-template.md b/docs/examples/1.5.x/console-web/examples/projects/get-email-template.md index 177291a07d9..41da628ce2e 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/get-email-template.md +++ b/docs/examples/1.5.x/console-web/examples/projects/get-email-template.md @@ -2,7 +2,7 @@ import { Client, Projects, EmailTemplateType, EmailTemplateLocale } from "@appwr const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -12,4 +12,4 @@ const result = await projects.getEmailTemplate( EmailTemplateLocale.Af // locale ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/get-key.md b/docs/examples/1.5.x/console-web/examples/projects/get-key.md index ef5c30ba3e1..8965f7250a2 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/get-key.md +++ b/docs/examples/1.5.x/console-web/examples/projects/get-key.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.getKey( '<KEY_ID>' // keyId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/get-platform.md b/docs/examples/1.5.x/console-web/examples/projects/get-platform.md index e79319c0461..aa0b0847263 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/get-platform.md +++ b/docs/examples/1.5.x/console-web/examples/projects/get-platform.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.getPlatform( '<PLATFORM_ID>' // platformId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/get-sms-template.md b/docs/examples/1.5.x/console-web/examples/projects/get-sms-template.md index 8d28308b616..5c424db1608 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/get-sms-template.md +++ b/docs/examples/1.5.x/console-web/examples/projects/get-sms-template.md @@ -2,7 +2,7 @@ import { Client, Projects, SmsTemplateType, SmsTemplateLocale } from "@appwrite. const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -12,4 +12,4 @@ const result = await projects.getSmsTemplate( SmsTemplateLocale.Af // locale ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/get-webhook.md b/docs/examples/1.5.x/console-web/examples/projects/get-webhook.md index 70ffb98010e..eff61f8e712 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/get-webhook.md +++ b/docs/examples/1.5.x/console-web/examples/projects/get-webhook.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.getWebhook( '<WEBHOOK_ID>' // webhookId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/get.md b/docs/examples/1.5.x/console-web/examples/projects/get.md index 5efff32c1b4..eb537bfa3f2 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/get.md +++ b/docs/examples/1.5.x/console-web/examples/projects/get.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -10,4 +10,4 @@ const result = await projects.get( '<PROJECT_ID>' // projectId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/list-keys.md b/docs/examples/1.5.x/console-web/examples/projects/list-keys.md index 2a2ce198328..a381e9f5088 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/list-keys.md +++ b/docs/examples/1.5.x/console-web/examples/projects/list-keys.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -10,4 +10,4 @@ const result = await projects.listKeys( '<PROJECT_ID>' // projectId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/list-platforms.md b/docs/examples/1.5.x/console-web/examples/projects/list-platforms.md index 884a712878b..d2dbc82a0cd 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/list-platforms.md +++ b/docs/examples/1.5.x/console-web/examples/projects/list-platforms.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -10,4 +10,4 @@ const result = await projects.listPlatforms( '<PROJECT_ID>' // projectId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/list-webhooks.md b/docs/examples/1.5.x/console-web/examples/projects/list-webhooks.md index e060f4d5e17..c0e90e92023 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/list-webhooks.md +++ b/docs/examples/1.5.x/console-web/examples/projects/list-webhooks.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -10,4 +10,4 @@ const result = await projects.listWebhooks( '<PROJECT_ID>' // projectId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/list.md b/docs/examples/1.5.x/console-web/examples/projects/list.md index 51e65ac59c6..01d68f4fb09 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/list.md +++ b/docs/examples/1.5.x/console-web/examples/projects/list.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.list( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-a-p-i-status-all.md b/docs/examples/1.5.x/console-web/examples/projects/update-a-p-i-status-all.md index 937e3895425..8ef4562852f 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-a-p-i-status-all.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-a-p-i-status-all.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-api-status-all.md b/docs/examples/1.5.x/console-web/examples/projects/update-api-status-all.md index 37a9666f845..5378a3511eb 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-api-status-all.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-api-status-all.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.updateApiStatusAll( false // status ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-api-status.md b/docs/examples/1.5.x/console-web/examples/projects/update-api-status.md index e53a3bd4337..63328d4486d 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-api-status.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-api-status.md @@ -2,7 +2,7 @@ import { Client, Projects, } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -12,4 +12,4 @@ const result = await projects.updateApiStatus( false // status ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-auth-duration.md b/docs/examples/1.5.x/console-web/examples/projects/update-auth-duration.md index a46001a55a0..82738f3798a 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-auth-duration.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-auth-duration.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.updateAuthDuration( 0 // duration ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-auth-limit.md b/docs/examples/1.5.x/console-web/examples/projects/update-auth-limit.md index 12b444a7d30..e76582e0e25 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-auth-limit.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-auth-limit.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.updateAuthLimit( 0 // limit ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-auth-password-dictionary.md b/docs/examples/1.5.x/console-web/examples/projects/update-auth-password-dictionary.md index 8510cfe32d1..bd76c9b4b93 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-auth-password-dictionary.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-auth-password-dictionary.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.updateAuthPasswordDictionary( false // enabled ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-auth-password-history.md b/docs/examples/1.5.x/console-web/examples/projects/update-auth-password-history.md index acf2c4673b2..02aa65bbb83 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-auth-password-history.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-auth-password-history.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.updateAuthPasswordHistory( 0 // limit ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-auth-sessions-limit.md b/docs/examples/1.5.x/console-web/examples/projects/update-auth-sessions-limit.md index a47267aab2f..69efff8cbae 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-auth-sessions-limit.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-auth-sessions-limit.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.updateAuthSessionsLimit( 1 // limit ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-auth-status.md b/docs/examples/1.5.x/console-web/examples/projects/update-auth-status.md index 1f4d3978fb9..fc38aa64879 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-auth-status.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-auth-status.md @@ -2,7 +2,7 @@ import { Client, Projects, AuthMethod } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -12,4 +12,4 @@ const result = await projects.updateAuthStatus( false // status ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-email-template.md b/docs/examples/1.5.x/console-web/examples/projects/update-email-template.md index 5b16b9596dd..178193b4522 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-email-template.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-email-template.md @@ -2,7 +2,7 @@ import { Client, Projects, EmailTemplateType, EmailTemplateLocale } from "@appwr const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -17,4 +17,4 @@ const result = await projects.updateEmailTemplate( 'email@example.com' // replyTo (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-key.md b/docs/examples/1.5.x/console-web/examples/projects/update-key.md index 1a17ac848df..287133deee7 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-key.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-key.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -14,4 +14,4 @@ const result = await projects.updateKey( '' // expire (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-memberships-privacy.md b/docs/examples/1.5.x/console-web/examples/projects/update-memberships-privacy.md new file mode 100644 index 00000000000..2cde25faa56 --- /dev/null +++ b/docs/examples/1.5.x/console-web/examples/projects/update-memberships-privacy.md @@ -0,0 +1,16 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateMembershipsPrivacy( + '<PROJECT_ID>', // projectId + false, // userName + false, // userEmail + false // mfa +); + +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-mock-numbers.md b/docs/examples/1.5.x/console-web/examples/projects/update-mock-numbers.md new file mode 100644 index 00000000000..c371e721e9f --- /dev/null +++ b/docs/examples/1.5.x/console-web/examples/projects/update-mock-numbers.md @@ -0,0 +1,14 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateMockNumbers( + '<PROJECT_ID>', // projectId + [] // numbers +); + +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-o-auth2.md b/docs/examples/1.5.x/console-web/examples/projects/update-o-auth2.md index 6e2ff1ca9c9..fc9cd5a31e5 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-o-auth2.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-o-auth2.md @@ -2,7 +2,7 @@ import { Client, Projects, OAuthProvider } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -14,4 +14,4 @@ const result = await projects.updateOAuth2( false // enabled (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-personal-data-check.md b/docs/examples/1.5.x/console-web/examples/projects/update-personal-data-check.md index b597bc0c959..be52d712401 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-personal-data-check.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-personal-data-check.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.updatePersonalDataCheck( false // enabled ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-platform.md b/docs/examples/1.5.x/console-web/examples/projects/update-platform.md index 3bb24ac9911..a34d5cccebf 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-platform.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-platform.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -15,4 +15,4 @@ const result = await projects.updatePlatform( '' // hostname (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-service-status-all.md b/docs/examples/1.5.x/console-web/examples/projects/update-service-status-all.md index 17ac72e7ff4..9a64f375a41 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-service-status-all.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-service-status-all.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.updateServiceStatusAll( false // status ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-service-status.md b/docs/examples/1.5.x/console-web/examples/projects/update-service-status.md index cffa9554a05..e1af528617d 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-service-status.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-service-status.md @@ -2,7 +2,7 @@ import { Client, Projects, ApiService } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -12,4 +12,4 @@ const result = await projects.updateServiceStatus( false // status ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-session-alerts.md b/docs/examples/1.5.x/console-web/examples/projects/update-session-alerts.md new file mode 100644 index 00000000000..f718d251216 --- /dev/null +++ b/docs/examples/1.5.x/console-web/examples/projects/update-session-alerts.md @@ -0,0 +1,14 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateSessionAlerts( + '<PROJECT_ID>', // projectId + false // alerts +); + +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-sms-template.md b/docs/examples/1.5.x/console-web/examples/projects/update-sms-template.md index 1d35691af0c..97e70017754 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-sms-template.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-sms-template.md @@ -2,7 +2,7 @@ import { Client, Projects, SmsTemplateType, SmsTemplateLocale } from "@appwrite. const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -13,4 +13,4 @@ const result = await projects.updateSmsTemplate( '<MESSAGE>' // message ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-smtp.md b/docs/examples/1.5.x/console-web/examples/projects/update-smtp.md index 91c5d5721b5..d2cba5cff12 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-smtp.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-smtp.md @@ -2,7 +2,7 @@ import { Client, Projects, SMTPSecure } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -19,4 +19,4 @@ const result = await projects.updateSmtp( SMTPSecure.Tls // secure (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-team.md b/docs/examples/1.5.x/console-web/examples/projects/update-team.md index 416ccfda6ff..71ef96c9fbb 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-team.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-team.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.updateTeam( '<TEAM_ID>' // teamId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-webhook-signature.md b/docs/examples/1.5.x/console-web/examples/projects/update-webhook-signature.md index 8c83e156d22..14a277c0e12 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-webhook-signature.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-webhook-signature.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -11,4 +11,4 @@ const result = await projects.updateWebhookSignature( '<WEBHOOK_ID>' // webhookId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update-webhook.md b/docs/examples/1.5.x/console-web/examples/projects/update-webhook.md index eccb7a69053..3b248a8d29f 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update-webhook.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update-webhook.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -18,4 +18,4 @@ const result = await projects.updateWebhook( '<HTTP_PASS>' // httpPass (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/projects/update.md b/docs/examples/1.5.x/console-web/examples/projects/update.md index f77fdb22e5d..c5d2961acbe 100644 --- a/docs/examples/1.5.x/console-web/examples/projects/update.md +++ b/docs/examples/1.5.x/console-web/examples/projects/update.md @@ -2,7 +2,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); @@ -20,4 +20,4 @@ const result = await projects.update( '<LEGAL_TAX_ID>' // legalTaxId (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/proxy/create-rule.md b/docs/examples/1.5.x/console-web/examples/proxy/create-rule.md index 69b7396ea3f..e2eecb0f7f9 100644 --- a/docs/examples/1.5.x/console-web/examples/proxy/create-rule.md +++ b/docs/examples/1.5.x/console-web/examples/proxy/create-rule.md @@ -2,7 +2,7 @@ import { Client, Proxy, } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const proxy = new Proxy(client); @@ -12,4 +12,4 @@ const result = await proxy.createRule( '<RESOURCE_ID>' // resourceId (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/proxy/delete-rule.md b/docs/examples/1.5.x/console-web/examples/proxy/delete-rule.md index 6db415ee421..4e8cc42375c 100644 --- a/docs/examples/1.5.x/console-web/examples/proxy/delete-rule.md +++ b/docs/examples/1.5.x/console-web/examples/proxy/delete-rule.md @@ -2,7 +2,7 @@ import { Client, Proxy } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const proxy = new Proxy(client); @@ -10,4 +10,4 @@ const result = await proxy.deleteRule( '<RULE_ID>' // ruleId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/proxy/get-rule.md b/docs/examples/1.5.x/console-web/examples/proxy/get-rule.md index 41dfcb1ef5f..3e4ae78a1cb 100644 --- a/docs/examples/1.5.x/console-web/examples/proxy/get-rule.md +++ b/docs/examples/1.5.x/console-web/examples/proxy/get-rule.md @@ -2,7 +2,7 @@ import { Client, Proxy } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const proxy = new Proxy(client); @@ -10,4 +10,4 @@ const result = await proxy.getRule( '<RULE_ID>' // ruleId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/proxy/list-rules.md b/docs/examples/1.5.x/console-web/examples/proxy/list-rules.md index 349750440fb..01b5cc0527c 100644 --- a/docs/examples/1.5.x/console-web/examples/proxy/list-rules.md +++ b/docs/examples/1.5.x/console-web/examples/proxy/list-rules.md @@ -2,7 +2,7 @@ import { Client, Proxy } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const proxy = new Proxy(client); @@ -11,4 +11,4 @@ const result = await proxy.listRules( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/proxy/update-rule-verification.md b/docs/examples/1.5.x/console-web/examples/proxy/update-rule-verification.md index 480053b6751..6ae0a0274e2 100644 --- a/docs/examples/1.5.x/console-web/examples/proxy/update-rule-verification.md +++ b/docs/examples/1.5.x/console-web/examples/proxy/update-rule-verification.md @@ -2,7 +2,7 @@ import { Client, Proxy } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const proxy = new Proxy(client); @@ -10,4 +10,4 @@ const result = await proxy.updateRuleVerification( '<RULE_ID>' // ruleId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/storage/create-bucket.md b/docs/examples/1.5.x/console-web/examples/storage/create-bucket.md index 39671600b6f..eec0272c589 100644 --- a/docs/examples/1.5.x/console-web/examples/storage/create-bucket.md +++ b/docs/examples/1.5.x/console-web/examples/storage/create-bucket.md @@ -2,7 +2,7 @@ import { Client, Storage, } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -19,4 +19,4 @@ const result = await storage.createBucket( false // antivirus (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/storage/create-file.md b/docs/examples/1.5.x/console-web/examples/storage/create-file.md index 639676f4161..21c58dcbb0a 100644 --- a/docs/examples/1.5.x/console-web/examples/storage/create-file.md +++ b/docs/examples/1.5.x/console-web/examples/storage/create-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -13,4 +13,4 @@ const result = await storage.createFile( ["read("any")"] // permissions (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/storage/delete-bucket.md b/docs/examples/1.5.x/console-web/examples/storage/delete-bucket.md index 0a924a6408f..c20989887d3 100644 --- a/docs/examples/1.5.x/console-web/examples/storage/delete-bucket.md +++ b/docs/examples/1.5.x/console-web/examples/storage/delete-bucket.md @@ -2,7 +2,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -10,4 +10,4 @@ const result = await storage.deleteBucket( '<BUCKET_ID>' // bucketId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/storage/delete-file.md b/docs/examples/1.5.x/console-web/examples/storage/delete-file.md index 00ffd6e3428..3e2010a0279 100644 --- a/docs/examples/1.5.x/console-web/examples/storage/delete-file.md +++ b/docs/examples/1.5.x/console-web/examples/storage/delete-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -11,4 +11,4 @@ const result = await storage.deleteFile( '<FILE_ID>' // fileId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/storage/get-bucket-usage.md b/docs/examples/1.5.x/console-web/examples/storage/get-bucket-usage.md index 2511bbcf5f1..f28d21773a2 100644 --- a/docs/examples/1.5.x/console-web/examples/storage/get-bucket-usage.md +++ b/docs/examples/1.5.x/console-web/examples/storage/get-bucket-usage.md @@ -2,7 +2,7 @@ import { Client, Storage, StorageUsageRange } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -11,4 +11,4 @@ const result = await storage.getBucketUsage( StorageUsageRange.TwentyFourHours // range (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/storage/get-bucket.md b/docs/examples/1.5.x/console-web/examples/storage/get-bucket.md index 669d9749206..b69202ddd28 100644 --- a/docs/examples/1.5.x/console-web/examples/storage/get-bucket.md +++ b/docs/examples/1.5.x/console-web/examples/storage/get-bucket.md @@ -2,7 +2,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -10,4 +10,4 @@ const result = await storage.getBucket( '<BUCKET_ID>' // bucketId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/storage/get-file-download.md b/docs/examples/1.5.x/console-web/examples/storage/get-file-download.md index 2d9ca0b5f2f..2376adc4708 100644 --- a/docs/examples/1.5.x/console-web/examples/storage/get-file-download.md +++ b/docs/examples/1.5.x/console-web/examples/storage/get-file-download.md @@ -2,7 +2,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.5.x/console-web/examples/storage/get-file-preview.md b/docs/examples/1.5.x/console-web/examples/storage/get-file-preview.md index e63beb9ec16..ee390c5231c 100644 --- a/docs/examples/1.5.x/console-web/examples/storage/get-file-preview.md +++ b/docs/examples/1.5.x/console-web/examples/storage/get-file-preview.md @@ -2,7 +2,7 @@ import { Client, Storage, ImageGravity, ImageFormat } from "@appwrite.io/console const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.5.x/console-web/examples/storage/get-file-view.md b/docs/examples/1.5.x/console-web/examples/storage/get-file-view.md index fe46fd5040e..82689b59675 100644 --- a/docs/examples/1.5.x/console-web/examples/storage/get-file-view.md +++ b/docs/examples/1.5.x/console-web/examples/storage/get-file-view.md @@ -2,7 +2,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.5.x/console-web/examples/storage/get-file.md b/docs/examples/1.5.x/console-web/examples/storage/get-file.md index e901709c6c0..f4c0aa9c50b 100644 --- a/docs/examples/1.5.x/console-web/examples/storage/get-file.md +++ b/docs/examples/1.5.x/console-web/examples/storage/get-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -11,4 +11,4 @@ const result = await storage.getFile( '<FILE_ID>' // fileId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/storage/get-usage.md b/docs/examples/1.5.x/console-web/examples/storage/get-usage.md index e1c0abfe8d8..6090311d54f 100644 --- a/docs/examples/1.5.x/console-web/examples/storage/get-usage.md +++ b/docs/examples/1.5.x/console-web/examples/storage/get-usage.md @@ -2,7 +2,7 @@ import { Client, Storage, StorageUsageRange } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -10,4 +10,4 @@ const result = await storage.getUsage( StorageUsageRange.TwentyFourHours // range (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/storage/list-buckets.md b/docs/examples/1.5.x/console-web/examples/storage/list-buckets.md index a5b8c019eaf..eb4c561386c 100644 --- a/docs/examples/1.5.x/console-web/examples/storage/list-buckets.md +++ b/docs/examples/1.5.x/console-web/examples/storage/list-buckets.md @@ -2,7 +2,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -11,4 +11,4 @@ const result = await storage.listBuckets( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/storage/list-files.md b/docs/examples/1.5.x/console-web/examples/storage/list-files.md index db6aaf87b3a..e5039136ff3 100644 --- a/docs/examples/1.5.x/console-web/examples/storage/list-files.md +++ b/docs/examples/1.5.x/console-web/examples/storage/list-files.md @@ -2,7 +2,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -12,4 +12,4 @@ const result = await storage.listFiles( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/storage/update-bucket.md b/docs/examples/1.5.x/console-web/examples/storage/update-bucket.md index 3561b372865..89593957828 100644 --- a/docs/examples/1.5.x/console-web/examples/storage/update-bucket.md +++ b/docs/examples/1.5.x/console-web/examples/storage/update-bucket.md @@ -2,7 +2,7 @@ import { Client, Storage, } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -19,4 +19,4 @@ const result = await storage.updateBucket( false // antivirus (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/storage/update-file.md b/docs/examples/1.5.x/console-web/examples/storage/update-file.md index 759adaeb269..2d3fedbfcbc 100644 --- a/docs/examples/1.5.x/console-web/examples/storage/update-file.md +++ b/docs/examples/1.5.x/console-web/examples/storage/update-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); @@ -13,4 +13,4 @@ const result = await storage.updateFile( ["read("any")"] // permissions (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/teams/create-membership.md b/docs/examples/1.5.x/console-web/examples/teams/create-membership.md index 6988e395527..2ea76b1987d 100644 --- a/docs/examples/1.5.x/console-web/examples/teams/create-membership.md +++ b/docs/examples/1.5.x/console-web/examples/teams/create-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -16,4 +16,4 @@ const result = await teams.createMembership( '<NAME>' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/teams/create.md b/docs/examples/1.5.x/console-web/examples/teams/create.md index b9c4be1ea49..40cd4763c1c 100644 --- a/docs/examples/1.5.x/console-web/examples/teams/create.md +++ b/docs/examples/1.5.x/console-web/examples/teams/create.md @@ -2,7 +2,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -12,4 +12,4 @@ const result = await teams.create( [] // roles (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/teams/delete-membership.md b/docs/examples/1.5.x/console-web/examples/teams/delete-membership.md index afe0791dd15..c7a307da48d 100644 --- a/docs/examples/1.5.x/console-web/examples/teams/delete-membership.md +++ b/docs/examples/1.5.x/console-web/examples/teams/delete-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.deleteMembership( '<MEMBERSHIP_ID>' // membershipId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/teams/delete.md b/docs/examples/1.5.x/console-web/examples/teams/delete.md index 8e02cdd424c..fe71deed638 100644 --- a/docs/examples/1.5.x/console-web/examples/teams/delete.md +++ b/docs/examples/1.5.x/console-web/examples/teams/delete.md @@ -2,7 +2,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -10,4 +10,4 @@ const result = await teams.delete( '<TEAM_ID>' // teamId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/teams/get-membership.md b/docs/examples/1.5.x/console-web/examples/teams/get-membership.md index cf9117c34e2..99e67ea8ffa 100644 --- a/docs/examples/1.5.x/console-web/examples/teams/get-membership.md +++ b/docs/examples/1.5.x/console-web/examples/teams/get-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.getMembership( '<MEMBERSHIP_ID>' // membershipId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/teams/get-prefs.md b/docs/examples/1.5.x/console-web/examples/teams/get-prefs.md index bb79b377b46..9b5c724aadd 100644 --- a/docs/examples/1.5.x/console-web/examples/teams/get-prefs.md +++ b/docs/examples/1.5.x/console-web/examples/teams/get-prefs.md @@ -2,7 +2,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -10,4 +10,4 @@ const result = await teams.getPrefs( '<TEAM_ID>' // teamId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/teams/get.md b/docs/examples/1.5.x/console-web/examples/teams/get.md index 1d629a8997a..d87b58f05c9 100644 --- a/docs/examples/1.5.x/console-web/examples/teams/get.md +++ b/docs/examples/1.5.x/console-web/examples/teams/get.md @@ -2,7 +2,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -10,4 +10,4 @@ const result = await teams.get( '<TEAM_ID>' // teamId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/teams/list-logs.md b/docs/examples/1.5.x/console-web/examples/teams/list-logs.md index 51d0855e0fd..76ba484ddba 100644 --- a/docs/examples/1.5.x/console-web/examples/teams/list-logs.md +++ b/docs/examples/1.5.x/console-web/examples/teams/list-logs.md @@ -2,7 +2,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.listLogs( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/teams/list-memberships.md b/docs/examples/1.5.x/console-web/examples/teams/list-memberships.md index dfb8dfde3a8..9f1a6f91220 100644 --- a/docs/examples/1.5.x/console-web/examples/teams/list-memberships.md +++ b/docs/examples/1.5.x/console-web/examples/teams/list-memberships.md @@ -2,7 +2,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -12,4 +12,4 @@ const result = await teams.listMemberships( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/teams/list.md b/docs/examples/1.5.x/console-web/examples/teams/list.md index 3b2aea921d1..b738fe925bd 100644 --- a/docs/examples/1.5.x/console-web/examples/teams/list.md +++ b/docs/examples/1.5.x/console-web/examples/teams/list.md @@ -2,7 +2,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.list( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/teams/update-membership-status.md b/docs/examples/1.5.x/console-web/examples/teams/update-membership-status.md index ec9f36e5ad3..b7fe25d3eea 100644 --- a/docs/examples/1.5.x/console-web/examples/teams/update-membership-status.md +++ b/docs/examples/1.5.x/console-web/examples/teams/update-membership-status.md @@ -2,7 +2,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -13,4 +13,4 @@ const result = await teams.updateMembershipStatus( '<SECRET>' // secret ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/teams/update-membership.md b/docs/examples/1.5.x/console-web/examples/teams/update-membership.md index 35df0fb6049..2e6f75941e6 100644 --- a/docs/examples/1.5.x/console-web/examples/teams/update-membership.md +++ b/docs/examples/1.5.x/console-web/examples/teams/update-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -12,4 +12,4 @@ const result = await teams.updateMembership( [] // roles ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/teams/update-name.md b/docs/examples/1.5.x/console-web/examples/teams/update-name.md index 3cfcec14c1e..c8792637f13 100644 --- a/docs/examples/1.5.x/console-web/examples/teams/update-name.md +++ b/docs/examples/1.5.x/console-web/examples/teams/update-name.md @@ -2,7 +2,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.updateName( '<NAME>' // name ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/teams/update-prefs.md b/docs/examples/1.5.x/console-web/examples/teams/update-prefs.md index 42689cdbe19..d81c93dccef 100644 --- a/docs/examples/1.5.x/console-web/examples/teams/update-prefs.md +++ b/docs/examples/1.5.x/console-web/examples/teams/update-prefs.md @@ -2,7 +2,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); @@ -11,4 +11,4 @@ const result = await teams.updatePrefs( {} // prefs ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/create-argon2user.md b/docs/examples/1.5.x/console-web/examples/users/create-argon2user.md index 93d7ef2abfc..b39f688c8e8 100644 --- a/docs/examples/1.5.x/console-web/examples/users/create-argon2user.md +++ b/docs/examples/1.5.x/console-web/examples/users/create-argon2user.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -13,4 +13,4 @@ const result = await users.createArgon2User( '<NAME>' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/create-bcrypt-user.md b/docs/examples/1.5.x/console-web/examples/users/create-bcrypt-user.md index d0631748eee..874b4e76250 100644 --- a/docs/examples/1.5.x/console-web/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.5.x/console-web/examples/users/create-bcrypt-user.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -13,4 +13,4 @@ const result = await users.createBcryptUser( '<NAME>' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/create-j-w-t.md b/docs/examples/1.5.x/console-web/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..aefc6208001 --- /dev/null +++ b/docs/examples/1.5.x/console-web/examples/users/create-j-w-t.md @@ -0,0 +1,15 @@ +import { Client, Users } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const users = new Users(client); + +const result = await users.createJWT( + '<USER_ID>', // userId + '<SESSION_ID>', // sessionId (optional) + 0 // duration (optional) +); + +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/create-m-d5user.md b/docs/examples/1.5.x/console-web/examples/users/create-m-d5user.md index 8bad78c0768..da6d1065b4f 100644 --- a/docs/examples/1.5.x/console-web/examples/users/create-m-d5user.md +++ b/docs/examples/1.5.x/console-web/examples/users/create-m-d5user.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -13,4 +13,4 @@ const result = await users.createMD5User( '<NAME>' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.5.x/console-web/examples/users/create-mfa-recovery-codes.md index d5d609f9551..6689014cfa6 100644 --- a/docs/examples/1.5.x/console-web/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/console-web/examples/users/create-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -10,4 +10,4 @@ const result = await users.createMfaRecoveryCodes( '<USER_ID>' // userId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/create-p-h-pass-user.md b/docs/examples/1.5.x/console-web/examples/users/create-p-h-pass-user.md index bb26fedc4ac..235df140592 100644 --- a/docs/examples/1.5.x/console-web/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.5.x/console-web/examples/users/create-p-h-pass-user.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -13,4 +13,4 @@ const result = await users.createPHPassUser( '<NAME>' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/create-s-h-a-user.md b/docs/examples/1.5.x/console-web/examples/users/create-s-h-a-user.md index 43159288984..a13d0342f09 100644 --- a/docs/examples/1.5.x/console-web/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.5.x/console-web/examples/users/create-s-h-a-user.md @@ -2,7 +2,7 @@ import { Client, Users, PasswordHash } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -14,4 +14,4 @@ const result = await users.createSHAUser( '<NAME>' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/create-scrypt-modified-user.md b/docs/examples/1.5.x/console-web/examples/users/create-scrypt-modified-user.md index 401eb4cbb4f..e6e1c42c021 100644 --- a/docs/examples/1.5.x/console-web/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.5.x/console-web/examples/users/create-scrypt-modified-user.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -16,4 +16,4 @@ const result = await users.createScryptModifiedUser( '<NAME>' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/create-scrypt-user.md b/docs/examples/1.5.x/console-web/examples/users/create-scrypt-user.md index 2efaaa82751..c8e9340c50f 100644 --- a/docs/examples/1.5.x/console-web/examples/users/create-scrypt-user.md +++ b/docs/examples/1.5.x/console-web/examples/users/create-scrypt-user.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -18,4 +18,4 @@ const result = await users.createScryptUser( '<NAME>' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/create-session.md b/docs/examples/1.5.x/console-web/examples/users/create-session.md index d64ce3b6d92..55704e5af1a 100644 --- a/docs/examples/1.5.x/console-web/examples/users/create-session.md +++ b/docs/examples/1.5.x/console-web/examples/users/create-session.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -10,4 +10,4 @@ const result = await users.createSession( '<USER_ID>' // userId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/create-target.md b/docs/examples/1.5.x/console-web/examples/users/create-target.md index bcb047c4a34..28daa912020 100644 --- a/docs/examples/1.5.x/console-web/examples/users/create-target.md +++ b/docs/examples/1.5.x/console-web/examples/users/create-target.md @@ -2,7 +2,7 @@ import { Client, Users, MessagingProviderType } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -15,4 +15,4 @@ const result = await users.createTarget( '<NAME>' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/create-token.md b/docs/examples/1.5.x/console-web/examples/users/create-token.md index af25ba8c08e..6c91898d2f4 100644 --- a/docs/examples/1.5.x/console-web/examples/users/create-token.md +++ b/docs/examples/1.5.x/console-web/examples/users/create-token.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -12,4 +12,4 @@ const result = await users.createToken( 60 // expire (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/create.md b/docs/examples/1.5.x/console-web/examples/users/create.md index c83f8d0609f..8959c127d43 100644 --- a/docs/examples/1.5.x/console-web/examples/users/create.md +++ b/docs/examples/1.5.x/console-web/examples/users/create.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -14,4 +14,4 @@ const result = await users.create( '<NAME>' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/delete-authenticator.md b/docs/examples/1.5.x/console-web/examples/users/delete-authenticator.md index 572b1c67c81..3ac87876f87 100644 --- a/docs/examples/1.5.x/console-web/examples/users/delete-authenticator.md +++ b/docs/examples/1.5.x/console-web/examples/users/delete-authenticator.md @@ -1,7 +1,7 @@ import { Client, Users, AuthenticatorType } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.5.x/console-web/examples/users/delete-identity.md b/docs/examples/1.5.x/console-web/examples/users/delete-identity.md index e6e9381342e..b8ef32e24df 100644 --- a/docs/examples/1.5.x/console-web/examples/users/delete-identity.md +++ b/docs/examples/1.5.x/console-web/examples/users/delete-identity.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -10,4 +10,4 @@ const result = await users.deleteIdentity( '<IDENTITY_ID>' // identityId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/delete-mfa-authenticator.md b/docs/examples/1.5.x/console-web/examples/users/delete-mfa-authenticator.md index c8d26083027..586940ecb0c 100644 --- a/docs/examples/1.5.x/console-web/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/console-web/examples/users/delete-mfa-authenticator.md @@ -2,7 +2,7 @@ import { Client, Users, AuthenticatorType } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.deleteMfaAuthenticator( AuthenticatorType.Totp // type ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/delete-session.md b/docs/examples/1.5.x/console-web/examples/users/delete-session.md index 89534bf0673..3380f90cc47 100644 --- a/docs/examples/1.5.x/console-web/examples/users/delete-session.md +++ b/docs/examples/1.5.x/console-web/examples/users/delete-session.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.deleteSession( '<SESSION_ID>' // sessionId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/delete-sessions.md b/docs/examples/1.5.x/console-web/examples/users/delete-sessions.md index fd0de488181..3b0e153b3f1 100644 --- a/docs/examples/1.5.x/console-web/examples/users/delete-sessions.md +++ b/docs/examples/1.5.x/console-web/examples/users/delete-sessions.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -10,4 +10,4 @@ const result = await users.deleteSessions( '<USER_ID>' // userId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/delete-target.md b/docs/examples/1.5.x/console-web/examples/users/delete-target.md index cd0e15c0618..1877265f085 100644 --- a/docs/examples/1.5.x/console-web/examples/users/delete-target.md +++ b/docs/examples/1.5.x/console-web/examples/users/delete-target.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.deleteTarget( '<TARGET_ID>' // targetId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/delete.md b/docs/examples/1.5.x/console-web/examples/users/delete.md index db3dbb206d4..60a7e16fb43 100644 --- a/docs/examples/1.5.x/console-web/examples/users/delete.md +++ b/docs/examples/1.5.x/console-web/examples/users/delete.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -10,4 +10,4 @@ const result = await users.delete( '<USER_ID>' // userId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.5.x/console-web/examples/users/get-mfa-recovery-codes.md index 280a30ddf3f..7b74479420b 100644 --- a/docs/examples/1.5.x/console-web/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/console-web/examples/users/get-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -10,4 +10,4 @@ const result = await users.getMfaRecoveryCodes( '<USER_ID>' // userId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/get-prefs.md b/docs/examples/1.5.x/console-web/examples/users/get-prefs.md index fff61ee0c00..882cbd6c95f 100644 --- a/docs/examples/1.5.x/console-web/examples/users/get-prefs.md +++ b/docs/examples/1.5.x/console-web/examples/users/get-prefs.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -10,4 +10,4 @@ const result = await users.getPrefs( '<USER_ID>' // userId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/get-target.md b/docs/examples/1.5.x/console-web/examples/users/get-target.md index 803e8767120..a6b89622461 100644 --- a/docs/examples/1.5.x/console-web/examples/users/get-target.md +++ b/docs/examples/1.5.x/console-web/examples/users/get-target.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.getTarget( '<TARGET_ID>' // targetId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/get-usage.md b/docs/examples/1.5.x/console-web/examples/users/get-usage.md index ffb46678d65..5b559158b37 100644 --- a/docs/examples/1.5.x/console-web/examples/users/get-usage.md +++ b/docs/examples/1.5.x/console-web/examples/users/get-usage.md @@ -2,7 +2,7 @@ import { Client, Users, UserUsageRange } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -10,4 +10,4 @@ const result = await users.getUsage( UserUsageRange.TwentyFourHours // range (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/get.md b/docs/examples/1.5.x/console-web/examples/users/get.md index 791292a698f..84f0f33207f 100644 --- a/docs/examples/1.5.x/console-web/examples/users/get.md +++ b/docs/examples/1.5.x/console-web/examples/users/get.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -10,4 +10,4 @@ const result = await users.get( '<USER_ID>' // userId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/list-factors.md b/docs/examples/1.5.x/console-web/examples/users/list-factors.md index 7f84d3d783f..afb6d725792 100644 --- a/docs/examples/1.5.x/console-web/examples/users/list-factors.md +++ b/docs/examples/1.5.x/console-web/examples/users/list-factors.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.5.x/console-web/examples/users/list-identities.md b/docs/examples/1.5.x/console-web/examples/users/list-identities.md index 72f60217f6e..0836749535e 100644 --- a/docs/examples/1.5.x/console-web/examples/users/list-identities.md +++ b/docs/examples/1.5.x/console-web/examples/users/list-identities.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.listIdentities( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/list-logs.md b/docs/examples/1.5.x/console-web/examples/users/list-logs.md index 23436ba75fe..246cf260ce7 100644 --- a/docs/examples/1.5.x/console-web/examples/users/list-logs.md +++ b/docs/examples/1.5.x/console-web/examples/users/list-logs.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.listLogs( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/list-memberships.md b/docs/examples/1.5.x/console-web/examples/users/list-memberships.md index 07b04eb6e45..98189427548 100644 --- a/docs/examples/1.5.x/console-web/examples/users/list-memberships.md +++ b/docs/examples/1.5.x/console-web/examples/users/list-memberships.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -10,4 +10,4 @@ const result = await users.listMemberships( '<USER_ID>' // userId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/list-mfa-factors.md b/docs/examples/1.5.x/console-web/examples/users/list-mfa-factors.md index 29f95d5a84a..13d5571554d 100644 --- a/docs/examples/1.5.x/console-web/examples/users/list-mfa-factors.md +++ b/docs/examples/1.5.x/console-web/examples/users/list-mfa-factors.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -10,4 +10,4 @@ const result = await users.listMfaFactors( '<USER_ID>' // userId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/list-providers.md b/docs/examples/1.5.x/console-web/examples/users/list-providers.md index 3df0e025c7c..3e249a74e40 100644 --- a/docs/examples/1.5.x/console-web/examples/users/list-providers.md +++ b/docs/examples/1.5.x/console-web/examples/users/list-providers.md @@ -5,7 +5,7 @@ const client = new Client(); const users = new Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; diff --git a/docs/examples/1.5.x/console-web/examples/users/list-sessions.md b/docs/examples/1.5.x/console-web/examples/users/list-sessions.md index 537dd7bd384..b99d79b7453 100644 --- a/docs/examples/1.5.x/console-web/examples/users/list-sessions.md +++ b/docs/examples/1.5.x/console-web/examples/users/list-sessions.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -10,4 +10,4 @@ const result = await users.listSessions( '<USER_ID>' // userId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/list-targets.md b/docs/examples/1.5.x/console-web/examples/users/list-targets.md index 3d414afa233..3374bf91c7e 100644 --- a/docs/examples/1.5.x/console-web/examples/users/list-targets.md +++ b/docs/examples/1.5.x/console-web/examples/users/list-targets.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.listTargets( [] // queries (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/list.md b/docs/examples/1.5.x/console-web/examples/users/list.md index c26f302603b..0876ef39508 100644 --- a/docs/examples/1.5.x/console-web/examples/users/list.md +++ b/docs/examples/1.5.x/console-web/examples/users/list.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.list( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/update-email-verification.md b/docs/examples/1.5.x/console-web/examples/users/update-email-verification.md index 2548b1e6c86..869424d51a7 100644 --- a/docs/examples/1.5.x/console-web/examples/users/update-email-verification.md +++ b/docs/examples/1.5.x/console-web/examples/users/update-email-verification.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.updateEmailVerification( false // emailVerification ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/update-email.md b/docs/examples/1.5.x/console-web/examples/users/update-email.md index 9600c18d817..2e47e0106d2 100644 --- a/docs/examples/1.5.x/console-web/examples/users/update-email.md +++ b/docs/examples/1.5.x/console-web/examples/users/update-email.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.updateEmail( 'email@example.com' // email ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/update-labels.md b/docs/examples/1.5.x/console-web/examples/users/update-labels.md index aa6e30ed516..5c8cddafafb 100644 --- a/docs/examples/1.5.x/console-web/examples/users/update-labels.md +++ b/docs/examples/1.5.x/console-web/examples/users/update-labels.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.updateLabels( [] // labels ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.5.x/console-web/examples/users/update-mfa-recovery-codes.md index 6785a1375e7..2705a2acd99 100644 --- a/docs/examples/1.5.x/console-web/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/console-web/examples/users/update-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -10,4 +10,4 @@ const result = await users.updateMfaRecoveryCodes( '<USER_ID>' // userId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/update-mfa.md b/docs/examples/1.5.x/console-web/examples/users/update-mfa.md index b8cb93b9ceb..50a8a1d3661 100644 --- a/docs/examples/1.5.x/console-web/examples/users/update-mfa.md +++ b/docs/examples/1.5.x/console-web/examples/users/update-mfa.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.updateMfa( false // mfa ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/update-name.md b/docs/examples/1.5.x/console-web/examples/users/update-name.md index 0e1e07e5fcc..e615c4695e1 100644 --- a/docs/examples/1.5.x/console-web/examples/users/update-name.md +++ b/docs/examples/1.5.x/console-web/examples/users/update-name.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.updateName( '<NAME>' // name ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/update-password.md b/docs/examples/1.5.x/console-web/examples/users/update-password.md index 58615724bc4..3e8c33cb5bc 100644 --- a/docs/examples/1.5.x/console-web/examples/users/update-password.md +++ b/docs/examples/1.5.x/console-web/examples/users/update-password.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.updatePassword( '' // password ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/update-phone-verification.md b/docs/examples/1.5.x/console-web/examples/users/update-phone-verification.md index 0d141db5397..87cc8ee1685 100644 --- a/docs/examples/1.5.x/console-web/examples/users/update-phone-verification.md +++ b/docs/examples/1.5.x/console-web/examples/users/update-phone-verification.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.updatePhoneVerification( false // phoneVerification ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/update-phone.md b/docs/examples/1.5.x/console-web/examples/users/update-phone.md index 4ac5380ab84..65448535330 100644 --- a/docs/examples/1.5.x/console-web/examples/users/update-phone.md +++ b/docs/examples/1.5.x/console-web/examples/users/update-phone.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.updatePhone( '+12065550100' // number ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/update-prefs.md b/docs/examples/1.5.x/console-web/examples/users/update-prefs.md index 227ca36b132..d65a5e736ea 100644 --- a/docs/examples/1.5.x/console-web/examples/users/update-prefs.md +++ b/docs/examples/1.5.x/console-web/examples/users/update-prefs.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.updatePrefs( {} // prefs ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/update-status.md b/docs/examples/1.5.x/console-web/examples/users/update-status.md index cbc4dfeb886..4e61a50cf59 100644 --- a/docs/examples/1.5.x/console-web/examples/users/update-status.md +++ b/docs/examples/1.5.x/console-web/examples/users/update-status.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -11,4 +11,4 @@ const result = await users.updateStatus( false // status ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/users/update-target.md b/docs/examples/1.5.x/console-web/examples/users/update-target.md index 3bb88996a19..2872b9a57f3 100644 --- a/docs/examples/1.5.x/console-web/examples/users/update-target.md +++ b/docs/examples/1.5.x/console-web/examples/users/update-target.md @@ -2,7 +2,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); @@ -14,4 +14,4 @@ const result = await users.updateTarget( '<NAME>' // name (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/vcs/create-repository-detection.md b/docs/examples/1.5.x/console-web/examples/vcs/create-repository-detection.md index 22b49a8ac29..4f269bf1a77 100644 --- a/docs/examples/1.5.x/console-web/examples/vcs/create-repository-detection.md +++ b/docs/examples/1.5.x/console-web/examples/vcs/create-repository-detection.md @@ -2,7 +2,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); @@ -12,4 +12,4 @@ const result = await vcs.createRepositoryDetection( '<PROVIDER_ROOT_DIRECTORY>' // providerRootDirectory (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/vcs/create-repository.md b/docs/examples/1.5.x/console-web/examples/vcs/create-repository.md index 43abe6aceb6..d48e174eac6 100644 --- a/docs/examples/1.5.x/console-web/examples/vcs/create-repository.md +++ b/docs/examples/1.5.x/console-web/examples/vcs/create-repository.md @@ -2,7 +2,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); @@ -12,4 +12,4 @@ const result = await vcs.createRepository( false // private ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/vcs/delete-installation.md b/docs/examples/1.5.x/console-web/examples/vcs/delete-installation.md index f4d657873b0..0f49408ecb1 100644 --- a/docs/examples/1.5.x/console-web/examples/vcs/delete-installation.md +++ b/docs/examples/1.5.x/console-web/examples/vcs/delete-installation.md @@ -2,7 +2,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); @@ -10,4 +10,4 @@ const result = await vcs.deleteInstallation( '<INSTALLATION_ID>' // installationId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/vcs/get-installation.md b/docs/examples/1.5.x/console-web/examples/vcs/get-installation.md index 1f97d204ab7..ec4b6d6729f 100644 --- a/docs/examples/1.5.x/console-web/examples/vcs/get-installation.md +++ b/docs/examples/1.5.x/console-web/examples/vcs/get-installation.md @@ -2,7 +2,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); @@ -10,4 +10,4 @@ const result = await vcs.getInstallation( '<INSTALLATION_ID>' // installationId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/vcs/get-repository-contents.md b/docs/examples/1.5.x/console-web/examples/vcs/get-repository-contents.md new file mode 100644 index 00000000000..8a2fc294cce --- /dev/null +++ b/docs/examples/1.5.x/console-web/examples/vcs/get-repository-contents.md @@ -0,0 +1,15 @@ +import { Client, Vcs } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const vcs = new Vcs(client); + +const result = await vcs.getRepositoryContents( + '<INSTALLATION_ID>', // installationId + '<PROVIDER_REPOSITORY_ID>', // providerRepositoryId + '<PROVIDER_ROOT_DIRECTORY>' // providerRootDirectory (optional) +); + +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/vcs/get-repository.md b/docs/examples/1.5.x/console-web/examples/vcs/get-repository.md index 9707e9ebdaf..2161d0c22bd 100644 --- a/docs/examples/1.5.x/console-web/examples/vcs/get-repository.md +++ b/docs/examples/1.5.x/console-web/examples/vcs/get-repository.md @@ -2,7 +2,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); @@ -11,4 +11,4 @@ const result = await vcs.getRepository( '<PROVIDER_REPOSITORY_ID>' // providerRepositoryId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/vcs/list-installations.md b/docs/examples/1.5.x/console-web/examples/vcs/list-installations.md index a7e83071210..8213b832591 100644 --- a/docs/examples/1.5.x/console-web/examples/vcs/list-installations.md +++ b/docs/examples/1.5.x/console-web/examples/vcs/list-installations.md @@ -2,7 +2,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); @@ -11,4 +11,4 @@ const result = await vcs.listInstallations( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/vcs/list-repositories.md b/docs/examples/1.5.x/console-web/examples/vcs/list-repositories.md index 365f028810c..e69f9eeb756 100644 --- a/docs/examples/1.5.x/console-web/examples/vcs/list-repositories.md +++ b/docs/examples/1.5.x/console-web/examples/vcs/list-repositories.md @@ -2,7 +2,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); @@ -11,4 +11,4 @@ const result = await vcs.listRepositories( '<SEARCH>' // search (optional) ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/vcs/list-repository-branches.md b/docs/examples/1.5.x/console-web/examples/vcs/list-repository-branches.md index affe85a4461..4d3ab499125 100644 --- a/docs/examples/1.5.x/console-web/examples/vcs/list-repository-branches.md +++ b/docs/examples/1.5.x/console-web/examples/vcs/list-repository-branches.md @@ -2,7 +2,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); @@ -11,4 +11,4 @@ const result = await vcs.listRepositoryBranches( '<PROVIDER_REPOSITORY_ID>' // providerRepositoryId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/console-web/examples/vcs/update-external-deployments.md b/docs/examples/1.5.x/console-web/examples/vcs/update-external-deployments.md index d1fbf346a22..8ad52a64dc0 100644 --- a/docs/examples/1.5.x/console-web/examples/vcs/update-external-deployments.md +++ b/docs/examples/1.5.x/console-web/examples/vcs/update-external-deployments.md @@ -2,7 +2,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); @@ -12,4 +12,4 @@ const result = await vcs.updateExternalDeployments( '<PROVIDER_PULL_REQUEST_ID>' // providerPullRequestId ); -console.log(response); +console.log(result); diff --git a/docs/examples/1.5.x/server-dart/examples/account/add-authenticator.md b/docs/examples/1.5.x/server-dart/examples/account/add-authenticator.md index da87a6d0594..a68cdd296e3 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/add-authenticator.md +++ b/docs/examples/1.5.x/server-dart/examples/account/add-authenticator.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/server-dart/examples/account/create-anonymous-session.md index 200b49ee303..2363017b6e2 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-anonymous-session.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-challenge.md b/docs/examples/1.5.x/server-dart/examples/account/create-challenge.md index 758915e7a96..97c7e125d60 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-challenge.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-challenge.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-email-password-session.md b/docs/examples/1.5.x/server-dart/examples/account/create-email-password-session.md index 9e07cd81ab1..bd423de9441 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-email-password-session.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-email-password-session.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-email-token.md b/docs/examples/1.5.x/server-dart/examples/account/create-email-token.md index 70870d93ca8..b57a5f06417 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-email-token.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-email-token.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-j-w-t.md b/docs/examples/1.5.x/server-dart/examples/account/create-j-w-t.md index 4e452abe4f0..205e244917f 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-j-w-t.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-j-w-t.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/server-dart/examples/account/create-magic-u-r-l-token.md index ac60b0df0e0..3c071b825ed 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-magic-u-r-l-token.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/server-dart/examples/account/create-mfa-authenticator.md index a920b4754ce..38ffb3630c9 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-mfa-authenticator.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/server-dart/examples/account/create-mfa-challenge.md index f7e24ff992f..5578e32fcb6 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-mfa-challenge.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-dart/examples/account/create-mfa-recovery-codes.md index d44817e511a..d89ccd1d287 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-o-auth2session.md b/docs/examples/1.5.x/server-dart/examples/account/create-o-auth2session.md index 993733caa3c..44955f1af96 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-o-auth2session.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/server-dart/examples/account/create-o-auth2token.md index 2d33ad3981c..a23fa7231b3 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-o-auth2token.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-phone-token.md b/docs/examples/1.5.x/server-dart/examples/account/create-phone-token.md index 8653ad00a8d..e59ad503e11 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-phone-token.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-phone-token.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-phone-verification.md b/docs/examples/1.5.x/server-dart/examples/account/create-phone-verification.md index 40d6f2fca79..a47ad80f92a 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-phone-verification.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-phone-verification.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-recovery.md b/docs/examples/1.5.x/server-dart/examples/account/create-recovery.md index 0b0584dac8a..0479b71c2d7 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-recovery.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-recovery.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-session.md b/docs/examples/1.5.x/server-dart/examples/account/create-session.md index a85be647b30..209f5502d5c 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-session.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-session.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create-verification.md b/docs/examples/1.5.x/server-dart/examples/account/create-verification.md index 4ec54dc1105..414a193aa32 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create-verification.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create-verification.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create.md b/docs/examples/1.5.x/server-dart/examples/account/create.md index ac630d1bb55..59523e6201d 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/create2f-a-challenge.md b/docs/examples/1.5.x/server-dart/examples/account/create2f-a-challenge.md index 049a3e43ea5..962a945df0f 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/server-dart/examples/account/create2f-a-challenge.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/delete-authenticator.md b/docs/examples/1.5.x/server-dart/examples/account/delete-authenticator.md index 2b7f4111403..656b49de59a 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/delete-authenticator.md +++ b/docs/examples/1.5.x/server-dart/examples/account/delete-authenticator.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-dart/examples/account/delete-identity.md b/docs/examples/1.5.x/server-dart/examples/account/delete-identity.md index 4982e13a0ec..a0db3ccc705 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/delete-identity.md +++ b/docs/examples/1.5.x/server-dart/examples/account/delete-identity.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-dart/examples/account/delete-mfa-authenticator.md index cbeb5cde40d..27a5883ca84 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-dart/examples/account/delete-mfa-authenticator.md @@ -2,12 +2,11 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); await account.deleteMfaAuthenticator( type: AuthenticatorType.totp, - otp: '<OTP>', ); diff --git a/docs/examples/1.5.x/server-dart/examples/account/delete-session.md b/docs/examples/1.5.x/server-dart/examples/account/delete-session.md index eb740f19b16..ffbe4160766 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/delete-session.md +++ b/docs/examples/1.5.x/server-dart/examples/account/delete-session.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/delete-sessions.md b/docs/examples/1.5.x/server-dart/examples/account/delete-sessions.md index e42f161819e..ae93cf9b590 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/delete-sessions.md +++ b/docs/examples/1.5.x/server-dart/examples/account/delete-sessions.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-dart/examples/account/get-mfa-recovery-codes.md index b378ee7f4b5..2b2018315e2 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-dart/examples/account/get-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/get-prefs.md b/docs/examples/1.5.x/server-dart/examples/account/get-prefs.md index 4f5ad7c973d..355075c85c3 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/get-prefs.md +++ b/docs/examples/1.5.x/server-dart/examples/account/get-prefs.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/get-session.md b/docs/examples/1.5.x/server-dart/examples/account/get-session.md index e2423d67f93..c4b4acedb6d 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/get-session.md +++ b/docs/examples/1.5.x/server-dart/examples/account/get-session.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/get.md b/docs/examples/1.5.x/server-dart/examples/account/get.md index 86a80747199..64c923ce0da 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/get.md +++ b/docs/examples/1.5.x/server-dart/examples/account/get.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/list-factors.md b/docs/examples/1.5.x/server-dart/examples/account/list-factors.md index 2f2b00626ae..cd4208465fc 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/list-factors.md +++ b/docs/examples/1.5.x/server-dart/examples/account/list-factors.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-dart/examples/account/list-identities.md b/docs/examples/1.5.x/server-dart/examples/account/list-identities.md index bcd36718a01..289963709bf 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/list-identities.md +++ b/docs/examples/1.5.x/server-dart/examples/account/list-identities.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/list-logs.md b/docs/examples/1.5.x/server-dart/examples/account/list-logs.md index a45ddf2999e..78f527ca990 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/list-logs.md +++ b/docs/examples/1.5.x/server-dart/examples/account/list-logs.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/server-dart/examples/account/list-mfa-factors.md index 1a8a41664ba..1140e5c0e05 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-dart/examples/account/list-mfa-factors.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/list-sessions.md b/docs/examples/1.5.x/server-dart/examples/account/list-sessions.md index 7469ba55fa1..0a512d439dd 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/list-sessions.md +++ b/docs/examples/1.5.x/server-dart/examples/account/list-sessions.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-challenge.md b/docs/examples/1.5.x/server-dart/examples/account/update-challenge.md index 9c32207257c..bc8c6bb9181 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-challenge.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-challenge.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-email.md b/docs/examples/1.5.x/server-dart/examples/account/update-email.md index 325b764a504..91c701f8aff 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-email.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-email.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-m-f-a.md b/docs/examples/1.5.x/server-dart/examples/account/update-m-f-a.md index 102525e39cf..f029979ea99 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-m-f-a.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/server-dart/examples/account/update-magic-u-r-l-session.md index 535d26d7198..e9f24349c16 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/server-dart/examples/account/update-mfa-authenticator.md index f7d585ecb1f..3f5d6997e7d 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-mfa-authenticator.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/server-dart/examples/account/update-mfa-challenge.md index 024ac9d650c..2843d2f1b43 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-mfa-challenge.md @@ -2,12 +2,12 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); - result = await account.updateMfaChallenge( +Session result = await account.updateMfaChallenge( challengeId: '<CHALLENGE_ID>', otp: '<OTP>', ); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-dart/examples/account/update-mfa-recovery-codes.md index 789914372b9..0ee6e92d61e 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-name.md b/docs/examples/1.5.x/server-dart/examples/account/update-name.md index bf05b276f69..4eb46121bc0 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-name.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-name.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-password.md b/docs/examples/1.5.x/server-dart/examples/account/update-password.md index 92d53fadcd2..d379268e396 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-password.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-password.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-phone-session.md b/docs/examples/1.5.x/server-dart/examples/account/update-phone-session.md index 2586a89346a..0648c637127 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-phone-session.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-phone-session.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-phone-verification.md b/docs/examples/1.5.x/server-dart/examples/account/update-phone-verification.md index a7789677038..bb7443dda2d 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-phone-verification.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-phone-verification.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-phone.md b/docs/examples/1.5.x/server-dart/examples/account/update-phone.md index 9613bda833e..996e057b629 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-phone.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-phone.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-prefs.md b/docs/examples/1.5.x/server-dart/examples/account/update-prefs.md index 1ef69ee90db..1c555085b8f 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-prefs.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-recovery.md b/docs/examples/1.5.x/server-dart/examples/account/update-recovery.md index c0923c180fd..5c4c0735519 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-recovery.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-recovery.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-session.md b/docs/examples/1.5.x/server-dart/examples/account/update-session.md index 624b006d573..cb1930c1343 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-session.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-session.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-status.md b/docs/examples/1.5.x/server-dart/examples/account/update-status.md index 211421c1d4f..502522ce9ae 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-status.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-status.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/update-verification.md b/docs/examples/1.5.x/server-dart/examples/account/update-verification.md index e0e2518775a..1f0d0c1abb9 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/update-verification.md +++ b/docs/examples/1.5.x/server-dart/examples/account/update-verification.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); diff --git a/docs/examples/1.5.x/server-dart/examples/account/verify-authenticator.md b/docs/examples/1.5.x/server-dart/examples/account/verify-authenticator.md index 839acf00653..99136985d01 100644 --- a/docs/examples/1.5.x/server-dart/examples/account/verify-authenticator.md +++ b/docs/examples/1.5.x/server-dart/examples/account/verify-authenticator.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-dart/examples/avatars/get-browser.md b/docs/examples/1.5.x/server-dart/examples/avatars/get-browser.md index 4ad79d3712d..ba298590a46 100644 --- a/docs/examples/1.5.x/server-dart/examples/avatars/get-browser.md +++ b/docs/examples/1.5.x/server-dart/examples/avatars/get-browser.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Avatars avatars = Avatars(client); diff --git a/docs/examples/1.5.x/server-dart/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/server-dart/examples/avatars/get-credit-card.md index 95f84b629c6..e8495823a2b 100644 --- a/docs/examples/1.5.x/server-dart/examples/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/server-dart/examples/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Avatars avatars = Avatars(client); diff --git a/docs/examples/1.5.x/server-dart/examples/avatars/get-favicon.md b/docs/examples/1.5.x/server-dart/examples/avatars/get-favicon.md index 5fc30514a1a..d6d8c654b91 100644 --- a/docs/examples/1.5.x/server-dart/examples/avatars/get-favicon.md +++ b/docs/examples/1.5.x/server-dart/examples/avatars/get-favicon.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Avatars avatars = Avatars(client); diff --git a/docs/examples/1.5.x/server-dart/examples/avatars/get-flag.md b/docs/examples/1.5.x/server-dart/examples/avatars/get-flag.md index 3f7a10db6b0..cda8d0fdb67 100644 --- a/docs/examples/1.5.x/server-dart/examples/avatars/get-flag.md +++ b/docs/examples/1.5.x/server-dart/examples/avatars/get-flag.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Avatars avatars = Avatars(client); diff --git a/docs/examples/1.5.x/server-dart/examples/avatars/get-image.md b/docs/examples/1.5.x/server-dart/examples/avatars/get-image.md index f1d911ee0eb..da2541f37ef 100644 --- a/docs/examples/1.5.x/server-dart/examples/avatars/get-image.md +++ b/docs/examples/1.5.x/server-dart/examples/avatars/get-image.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Avatars avatars = Avatars(client); diff --git a/docs/examples/1.5.x/server-dart/examples/avatars/get-initials.md b/docs/examples/1.5.x/server-dart/examples/avatars/get-initials.md index da2849c8c85..f1261d1c054 100644 --- a/docs/examples/1.5.x/server-dart/examples/avatars/get-initials.md +++ b/docs/examples/1.5.x/server-dart/examples/avatars/get-initials.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Avatars avatars = Avatars(client); diff --git a/docs/examples/1.5.x/server-dart/examples/avatars/get-q-r.md b/docs/examples/1.5.x/server-dart/examples/avatars/get-q-r.md index 97d31d53ad2..1a9e906ca40 100644 --- a/docs/examples/1.5.x/server-dart/examples/avatars/get-q-r.md +++ b/docs/examples/1.5.x/server-dart/examples/avatars/get-q-r.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Avatars avatars = Avatars(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/create-boolean-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/create-boolean-attribute.md index 4c707302406..65537bab512 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/create-boolean-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/create-collection.md b/docs/examples/1.5.x/server-dart/examples/databases/create-collection.md index 2a6d8e93818..8b01aaad435 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/create-collection.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/create-collection.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/create-datetime-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/create-datetime-attribute.md index 6d44a263ca5..6a53b0457f7 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/create-datetime-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/create-document.md b/docs/examples/1.5.x/server-dart/examples/databases/create-document.md index b9d5eb0d69b..10382e3a786 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/create-document.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/create-document.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/create-email-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/create-email-attribute.md index 15bf0129267..fe77148e999 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/create-email-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/create-email-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/create-enum-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/create-enum-attribute.md index f1df262d02b..f0bdb6a67f0 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/create-enum-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/create-float-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/create-float-attribute.md index 548962a2ffc..29568ca011b 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/create-float-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/create-float-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/create-index.md b/docs/examples/1.5.x/server-dart/examples/databases/create-index.md index 7c978466c94..b7c0c04ba9c 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/create-index.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/create-index.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/create-integer-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/create-integer-attribute.md index 2449950d01f..35b60850663 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/create-integer-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/create-ip-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/create-ip-attribute.md index 05aa298c728..a7c3116b77a 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/create-ip-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/create-relationship-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/create-relationship-attribute.md index f838747c9d9..37ba8eb775b 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/create-relationship-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/create-string-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/create-string-attribute.md index d4a47541489..974c7dadfa7 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/create-string-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/create-string-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/create-url-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/create-url-attribute.md index f427bba5410..034ee47dd91 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/create-url-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/create-url-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/create.md b/docs/examples/1.5.x/server-dart/examples/databases/create.md index 01cd75c391a..199b982f311 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/create.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/create.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/delete-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/delete-attribute.md index 605220c49ed..f0bcf3b0548 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/delete-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/delete-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/delete-collection.md b/docs/examples/1.5.x/server-dart/examples/databases/delete-collection.md index 4243c8b90be..b97f27407a5 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/delete-collection.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/delete-collection.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/delete-document.md b/docs/examples/1.5.x/server-dart/examples/databases/delete-document.md index 8e1b233fc24..89347017518 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/delete-document.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/delete-document.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/delete-index.md b/docs/examples/1.5.x/server-dart/examples/databases/delete-index.md index df5a195a514..9f0e92f69e0 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/delete-index.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/delete-index.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/delete.md b/docs/examples/1.5.x/server-dart/examples/databases/delete.md index 5325af3f43d..0d4853d652d 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/delete.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/delete.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/get-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/get-attribute.md index fc6129ea54d..33e4a4a6958 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/get-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/get-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/get-collection.md b/docs/examples/1.5.x/server-dart/examples/databases/get-collection.md index 606018bc9a6..42dcea3423b 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/get-collection.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/get-collection.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/get-document.md b/docs/examples/1.5.x/server-dart/examples/databases/get-document.md index 17b2ca6ca25..ecda80ef376 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/get-document.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/get-document.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/get-index.md b/docs/examples/1.5.x/server-dart/examples/databases/get-index.md index 0dac7f522fa..0bbf4f555bf 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/get-index.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/get-index.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/get.md b/docs/examples/1.5.x/server-dart/examples/databases/get.md index c0878b8ff97..b2c0a0a2c7c 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/get.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/get.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/list-attributes.md b/docs/examples/1.5.x/server-dart/examples/databases/list-attributes.md index fe51fc1ff30..4bacaa976a4 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/list-attributes.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/list-attributes.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/list-collections.md b/docs/examples/1.5.x/server-dart/examples/databases/list-collections.md index de25c4078c0..e9bc510793b 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/list-collections.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/list-collections.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/list-documents.md b/docs/examples/1.5.x/server-dart/examples/databases/list-documents.md index d3caa082b49..244d4a7d186 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/list-documents.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/list-documents.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/list-indexes.md b/docs/examples/1.5.x/server-dart/examples/databases/list-indexes.md index a5c616c8583..e9534e78204 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/list-indexes.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/list-indexes.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/list.md b/docs/examples/1.5.x/server-dart/examples/databases/list.md index 23d6830458c..2678ede98fa 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/list.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/list.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/update-boolean-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/update-boolean-attribute.md index fe88c9e8d66..489ce4099ad 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/update-boolean-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); @@ -13,4 +13,5 @@ AttributeBoolean result = await databases.updateBooleanAttribute( key: '', xrequired: false, xdefault: false, + newKey: '', // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/update-collection.md b/docs/examples/1.5.x/server-dart/examples/databases/update-collection.md index a8c95b2a574..a8d1593c78c 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/update-collection.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/update-collection.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/update-datetime-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/update-datetime-attribute.md index d4bba1034a7..73f61e26d76 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/update-datetime-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); @@ -13,4 +13,5 @@ AttributeDatetime result = await databases.updateDatetimeAttribute( key: '', xrequired: false, xdefault: '', + newKey: '', // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/update-document.md b/docs/examples/1.5.x/server-dart/examples/databases/update-document.md index eccc98e9b18..c25b23f2b00 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/update-document.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/update-document.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/update-email-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/update-email-attribute.md index a5c72c9f006..37bcd4d7e78 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/update-email-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/update-email-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); @@ -13,4 +13,5 @@ AttributeEmail result = await databases.updateEmailAttribute( key: '', xrequired: false, xdefault: 'email@example.com', + newKey: '', // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/update-enum-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/update-enum-attribute.md index a3ebfe57739..f47078c8919 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/update-enum-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); @@ -14,4 +14,5 @@ AttributeEnum result = await databases.updateEnumAttribute( elements: [], xrequired: false, xdefault: '<DEFAULT>', + newKey: '', // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/update-float-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/update-float-attribute.md index fe86fa69e13..b85ebf7aaf1 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/update-float-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/update-float-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); @@ -12,7 +12,8 @@ AttributeFloat result = await databases.updateFloatAttribute( collectionId: '<COLLECTION_ID>', key: '', xrequired: false, - min: 0, - max: 0, xdefault: 0, + min: 0, // (optional) + max: 0, // (optional) + newKey: '', // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/update-integer-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/update-integer-attribute.md index 49a0b186999..486c192712f 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/update-integer-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); @@ -12,7 +12,8 @@ AttributeInteger result = await databases.updateIntegerAttribute( collectionId: '<COLLECTION_ID>', key: '', xrequired: false, - min: 0, - max: 0, xdefault: 0, + min: 0, // (optional) + max: 0, // (optional) + newKey: '', // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/update-ip-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/update-ip-attribute.md index 3549d5c1a99..dc83bd00438 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/update-ip-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); @@ -13,4 +13,5 @@ AttributeIp result = await databases.updateIpAttribute( key: '', xrequired: false, xdefault: '', + newKey: '', // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/update-relationship-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/update-relationship-attribute.md index e6dea661901..6d14f52d19d 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/update-relationship-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); @@ -12,4 +12,5 @@ AttributeRelationship result = await databases.updateRelationshipAttribute( collectionId: '<COLLECTION_ID>', key: '', onDelete: RelationMutate.cascade, // (optional) + newKey: '', // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/update-string-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/update-string-attribute.md index cb2a4b64b4b..f9498aa36bd 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/update-string-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/update-string-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); @@ -13,4 +13,6 @@ AttributeString result = await databases.updateStringAttribute( key: '', xrequired: false, xdefault: '<DEFAULT>', + size: 1, // (optional) + newKey: '', // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/update-url-attribute.md b/docs/examples/1.5.x/server-dart/examples/databases/update-url-attribute.md index 4042ed5e8f8..20c11fafc52 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/update-url-attribute.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/update-url-attribute.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); @@ -13,4 +13,5 @@ AttributeUrl result = await databases.updateUrlAttribute( key: '', xrequired: false, xdefault: 'https://example.com', + newKey: '', // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/databases/update.md b/docs/examples/1.5.x/server-dart/examples/databases/update.md index ad8a76ee449..0139f280d1b 100644 --- a/docs/examples/1.5.x/server-dart/examples/databases/update.md +++ b/docs/examples/1.5.x/server-dart/examples/databases/update.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Databases databases = Databases(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/create-build.md b/docs/examples/1.5.x/server-dart/examples/functions/create-build.md index a90dc7ca9ac..2835f8239f5 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/create-build.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/create-build.md @@ -2,13 +2,13 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); result = await functions.createBuild( functionId: '<FUNCTION_ID>', deploymentId: '<DEPLOYMENT_ID>', - buildId: '<BUILD_ID>', + buildId: '<BUILD_ID>', // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/create-deployment.md b/docs/examples/1.5.x/server-dart/examples/functions/create-deployment.md index dd32c609274..297bdc612af 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/create-deployment.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/create-deployment.md @@ -1,9 +1,10 @@ +import 'dart:io'; import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/create-execution.md b/docs/examples/1.5.x/server-dart/examples/functions/create-execution.md index 8d3eb7446a4..2bf146e285a 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/create-execution.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Functions functions = Functions(client); @@ -14,4 +14,5 @@ Execution result = await functions.createExecution( path: '<PATH>', // (optional) method: ExecutionMethod.gET, // (optional) headers: {}, // (optional) + scheduledAt: '', // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/create-variable.md b/docs/examples/1.5.x/server-dart/examples/functions/create-variable.md index 7b4f0623361..5333f88dfea 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/create-variable.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/create-variable.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/create.md b/docs/examples/1.5.x/server-dart/examples/functions/create.md index 18e2d3e4787..b4283a9953f 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/create.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/create.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); @@ -19,6 +19,7 @@ Func result = await functions.create( logging: false, // (optional) entrypoint: '<ENTRYPOINT>', // (optional) commands: '<COMMANDS>', // (optional) + scopes: [], // (optional) installationId: '<INSTALLATION_ID>', // (optional) providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // (optional) providerBranch: '<PROVIDER_BRANCH>', // (optional) @@ -27,5 +28,6 @@ Func result = await functions.create( templateRepository: '<TEMPLATE_REPOSITORY>', // (optional) templateOwner: '<TEMPLATE_OWNER>', // (optional) templateRootDirectory: '<TEMPLATE_ROOT_DIRECTORY>', // (optional) - templateBranch: '<TEMPLATE_BRANCH>', // (optional) + templateVersion: '<TEMPLATE_VERSION>', // (optional) + specification: '', // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/delete-deployment.md b/docs/examples/1.5.x/server-dart/examples/functions/delete-deployment.md index a50d9e441cf..e793812468b 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/delete-deployment.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/delete-deployment.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/delete-execution.md b/docs/examples/1.5.x/server-dart/examples/functions/delete-execution.md new file mode 100644 index 00000000000..a69267f6c4a --- /dev/null +++ b/docs/examples/1.5.x/server-dart/examples/functions/delete-execution.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Functions functions = Functions(client); + +await functions.deleteExecution( + functionId: '<FUNCTION_ID>', + executionId: '<EXECUTION_ID>', +); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/delete-variable.md b/docs/examples/1.5.x/server-dart/examples/functions/delete-variable.md index d677576e87a..1a52f9168ab 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/delete-variable.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/delete-variable.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/delete.md b/docs/examples/1.5.x/server-dart/examples/functions/delete.md index bca7d189999..9ee35f1a5fc 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/delete.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/delete.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/download-deployment.md b/docs/examples/1.5.x/server-dart/examples/functions/download-deployment.md index 40e39a28ab0..d40c253da51 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/download-deployment.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-dart/examples/functions/get-deployment-download.md b/docs/examples/1.5.x/server-dart/examples/functions/get-deployment-download.md new file mode 100644 index 00000000000..bbf9561ed76 --- /dev/null +++ b/docs/examples/1.5.x/server-dart/examples/functions/get-deployment-download.md @@ -0,0 +1,13 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Functions functions = Functions(client); + +UInt8List result = await functions.getDeploymentDownload( + functionId: '<FUNCTION_ID>', + deploymentId: '<DEPLOYMENT_ID>', +); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/get-deployment.md b/docs/examples/1.5.x/server-dart/examples/functions/get-deployment.md index 007e84866c9..e2438024544 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/get-deployment.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/get-deployment.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/get-execution.md b/docs/examples/1.5.x/server-dart/examples/functions/get-execution.md index 856b92b3227..3ba1795f7a7 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/get-execution.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/get-variable.md b/docs/examples/1.5.x/server-dart/examples/functions/get-variable.md index 23285727480..e9ba95912cb 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/get-variable.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/get-variable.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/get.md b/docs/examples/1.5.x/server-dart/examples/functions/get.md index b6d8c4ce45c..e81ac8d1cc7 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/get.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/get.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/list-deployments.md b/docs/examples/1.5.x/server-dart/examples/functions/list-deployments.md index c9fbc11b128..c2db9a76990 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/list-deployments.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/list-deployments.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/list-executions.md b/docs/examples/1.5.x/server-dart/examples/functions/list-executions.md index 3b0af609dfb..573634e7b1d 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/list-executions.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/list-runtimes.md b/docs/examples/1.5.x/server-dart/examples/functions/list-runtimes.md index 199ccce5f77..d2316a9613f 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/list-runtimes.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/list-runtimes.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); diff --git a/docs/examples/1.6.x/server-dart/examples/functions/get-template.md b/docs/examples/1.5.x/server-dart/examples/functions/list-specifications.md similarity index 52% rename from docs/examples/1.6.x/server-dart/examples/functions/get-template.md rename to docs/examples/1.5.x/server-dart/examples/functions/list-specifications.md index 881dac67827..4a77316978c 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/get-template.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/list-specifications.md @@ -2,10 +2,9 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); -TemplateFunction result = await functions.getTemplate( - templateId: '<TEMPLATE_ID>', -); +SpecificationList result = await functions.listSpecifications(); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/list-variables.md b/docs/examples/1.5.x/server-dart/examples/functions/list-variables.md index 4c8396bba08..6c882090b4d 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/list-variables.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/list-variables.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/list.md b/docs/examples/1.5.x/server-dart/examples/functions/list.md index d44b40ab51f..96516e7068a 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/list.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/list.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); diff --git a/docs/examples/1.6.x/server-dart/examples/functions/download-deployment.md b/docs/examples/1.5.x/server-dart/examples/functions/update-deployment-build.md similarity index 87% rename from docs/examples/1.6.x/server-dart/examples/functions/download-deployment.md rename to docs/examples/1.5.x/server-dart/examples/functions/update-deployment-build.md index 981de767561..ecd4d37bac6 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/update-deployment-build.md @@ -7,7 +7,7 @@ Client client = Client() Functions functions = Functions(client); -UInt8List result = await functions.downloadDeployment( +Build result = await functions.updateDeploymentBuild( functionId: '<FUNCTION_ID>', deploymentId: '<DEPLOYMENT_ID>', ); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/update-deployment.md b/docs/examples/1.5.x/server-dart/examples/functions/update-deployment.md index 78d5061c8e6..61e4d22e953 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/update-deployment.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/update-deployment.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/update-variable.md b/docs/examples/1.5.x/server-dart/examples/functions/update-variable.md index d534be3f4d9..570d4df3a05 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/update-variable.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/update-variable.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); diff --git a/docs/examples/1.5.x/server-dart/examples/functions/update.md b/docs/examples/1.5.x/server-dart/examples/functions/update.md index bc069a06c94..42aff7b8233 100644 --- a/docs/examples/1.5.x/server-dart/examples/functions/update.md +++ b/docs/examples/1.5.x/server-dart/examples/functions/update.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Functions functions = Functions(client); @@ -19,9 +19,11 @@ Func result = await functions.update( logging: false, // (optional) entrypoint: '<ENTRYPOINT>', // (optional) commands: '<COMMANDS>', // (optional) + scopes: [], // (optional) installationId: '<INSTALLATION_ID>', // (optional) providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // (optional) providerBranch: '<PROVIDER_BRANCH>', // (optional) providerSilentMode: false, // (optional) providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', // (optional) + specification: '', // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/graphql/mutation.md b/docs/examples/1.5.x/server-dart/examples/graphql/mutation.md index 75ba4cb0ee4..1eed406b60b 100644 --- a/docs/examples/1.5.x/server-dart/examples/graphql/mutation.md +++ b/docs/examples/1.5.x/server-dart/examples/graphql/mutation.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Graphql graphql = Graphql(client); diff --git a/docs/examples/1.5.x/server-dart/examples/graphql/query.md b/docs/examples/1.5.x/server-dart/examples/graphql/query.md index b69a6da1675..3e2700cd590 100644 --- a/docs/examples/1.5.x/server-dart/examples/graphql/query.md +++ b/docs/examples/1.5.x/server-dart/examples/graphql/query.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Graphql graphql = Graphql(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-antivirus.md b/docs/examples/1.5.x/server-dart/examples/health/get-antivirus.md index 2c68b241c6e..d492d0e33a7 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-antivirus.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-antivirus.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-cache.md b/docs/examples/1.5.x/server-dart/examples/health/get-cache.md index b379ce5348c..9a3ccbd06cc 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-cache.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-cache.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-certificate.md b/docs/examples/1.5.x/server-dart/examples/health/get-certificate.md index bd5c94e6221..2c1c60b7cb4 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-certificate.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-certificate.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-d-b.md b/docs/examples/1.5.x/server-dart/examples/health/get-d-b.md index 3363a249cc9..201f787f3f4 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-d-b.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-d-b.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-failed-jobs.md b/docs/examples/1.5.x/server-dart/examples/health/get-failed-jobs.md index 5e241f02981..324a6420132 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-failed-jobs.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-failed-jobs.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-pub-sub.md b/docs/examples/1.5.x/server-dart/examples/health/get-pub-sub.md index c683c97515c..dab221fb4fb 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-pub-sub.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-pub-sub.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-queue-builds.md b/docs/examples/1.5.x/server-dart/examples/health/get-queue-builds.md index ba71783e628..42b3913f1c3 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-queue-builds.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-queue-builds.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-queue-certificates.md b/docs/examples/1.5.x/server-dart/examples/health/get-queue-certificates.md index 1f2f44e2e94..bdd2913b518 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-queue-certificates.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-queue-certificates.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-queue-databases.md b/docs/examples/1.5.x/server-dart/examples/health/get-queue-databases.md index d10f47c287c..66f5822737a 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-queue-databases.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-queue-databases.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-queue-deletes.md b/docs/examples/1.5.x/server-dart/examples/health/get-queue-deletes.md index 340e107cf19..1b3666d6d1d 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-queue-deletes.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-queue-deletes.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-queue-functions.md b/docs/examples/1.5.x/server-dart/examples/health/get-queue-functions.md index 73e7d1459d5..836891002c6 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-queue-functions.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-queue-functions.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-queue-logs.md b/docs/examples/1.5.x/server-dart/examples/health/get-queue-logs.md index f901273e0e0..074d1a823eb 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-queue-logs.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-queue-logs.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-queue-mails.md b/docs/examples/1.5.x/server-dart/examples/health/get-queue-mails.md index a0f142925d2..5960e94456c 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-queue-mails.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-queue-mails.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-queue-messaging.md b/docs/examples/1.5.x/server-dart/examples/health/get-queue-messaging.md index d4e09f9521a..9b287116bc7 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-queue-messaging.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-queue-messaging.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-queue-migrations.md b/docs/examples/1.5.x/server-dart/examples/health/get-queue-migrations.md index 42d8aa10dd1..80ad6d25773 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-queue-migrations.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-queue-migrations.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-queue-stats-resources.md b/docs/examples/1.5.x/server-dart/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..d0b443e3ce2 --- /dev/null +++ b/docs/examples/1.5.x/server-dart/examples/health/get-queue-stats-resources.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Health health = Health(client); + +HealthQueue result = await health.getQueueStatsResources( + threshold: 0, // (optional) +); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-queue-usage-dump.md b/docs/examples/1.5.x/server-dart/examples/health/get-queue-usage-dump.md index 7b8d61efebb..543cfdd433e 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-queue-usage-dump.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-queue-usage.md b/docs/examples/1.5.x/server-dart/examples/health/get-queue-usage.md index 2d08bb75677..a8990b1dcb5 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-queue-usage.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-queue-usage.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-queue-webhooks.md b/docs/examples/1.5.x/server-dart/examples/health/get-queue-webhooks.md index d1d4c3ef11e..10e5787ea79 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-queue-webhooks.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-queue.md b/docs/examples/1.5.x/server-dart/examples/health/get-queue.md index 87f72f4bf9e..1087b217a6e 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-queue.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-queue.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-storage-local.md b/docs/examples/1.5.x/server-dart/examples/health/get-storage-local.md index 22232c00f30..34b8f7e3c15 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-storage-local.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-storage-local.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-storage.md b/docs/examples/1.5.x/server-dart/examples/health/get-storage.md index f02b535b9d2..d3745bca3c7 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-storage.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-storage.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get-time.md b/docs/examples/1.5.x/server-dart/examples/health/get-time.md index 51f865cfafe..539e0984654 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get-time.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get-time.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/health/get.md b/docs/examples/1.5.x/server-dart/examples/health/get.md index ebabd7fdbef..6286018d892 100644 --- a/docs/examples/1.5.x/server-dart/examples/health/get.md +++ b/docs/examples/1.5.x/server-dart/examples/health/get.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Health health = Health(client); diff --git a/docs/examples/1.5.x/server-dart/examples/locale/get.md b/docs/examples/1.5.x/server-dart/examples/locale/get.md index 12dd0749cd7..b5b6878b4c5 100644 --- a/docs/examples/1.5.x/server-dart/examples/locale/get.md +++ b/docs/examples/1.5.x/server-dart/examples/locale/get.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/server-dart/examples/locale/list-codes.md b/docs/examples/1.5.x/server-dart/examples/locale/list-codes.md index 40a62a93043..0b37c79f51d 100644 --- a/docs/examples/1.5.x/server-dart/examples/locale/list-codes.md +++ b/docs/examples/1.5.x/server-dart/examples/locale/list-codes.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/server-dart/examples/locale/list-continents.md b/docs/examples/1.5.x/server-dart/examples/locale/list-continents.md index 5adf67a8535..9c8fb6d206d 100644 --- a/docs/examples/1.5.x/server-dart/examples/locale/list-continents.md +++ b/docs/examples/1.5.x/server-dart/examples/locale/list-continents.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/server-dart/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/server-dart/examples/locale/list-countries-e-u.md index 14890ae4bc4..e114831ebac 100644 --- a/docs/examples/1.5.x/server-dart/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/server-dart/examples/locale/list-countries-e-u.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/server-dart/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/server-dart/examples/locale/list-countries-phones.md index a4764593f6e..6f73ed3704b 100644 --- a/docs/examples/1.5.x/server-dart/examples/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/server-dart/examples/locale/list-countries-phones.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/server-dart/examples/locale/list-countries.md b/docs/examples/1.5.x/server-dart/examples/locale/list-countries.md index 5cc508b92c2..404b9a12a74 100644 --- a/docs/examples/1.5.x/server-dart/examples/locale/list-countries.md +++ b/docs/examples/1.5.x/server-dart/examples/locale/list-countries.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/server-dart/examples/locale/list-currencies.md b/docs/examples/1.5.x/server-dart/examples/locale/list-currencies.md index afb4cf49343..8e74090bdfa 100644 --- a/docs/examples/1.5.x/server-dart/examples/locale/list-currencies.md +++ b/docs/examples/1.5.x/server-dart/examples/locale/list-currencies.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/server-dart/examples/locale/list-languages.md b/docs/examples/1.5.x/server-dart/examples/locale/list-languages.md index 2a83e2d7473..3a2d54b609d 100644 --- a/docs/examples/1.5.x/server-dart/examples/locale/list-languages.md +++ b/docs/examples/1.5.x/server-dart/examples/locale/list-languages.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Locale locale = Locale(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-a-p-n-s-provider.md index 792cd997bb6..069cc6b5c24 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-a-p-n-s-provider.md @@ -5,7 +5,7 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-apns-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-apns-provider.md index fa6b867e7d0..fc7c30efda3 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-apns-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-email.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-email.md index 56b542eeb7a..de06809fb07 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-email.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-email.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-f-c-m-provider.md index 595feb7f5d1..5191086a2d3 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-f-c-m-provider.md @@ -5,7 +5,7 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-fcm-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-fcm-provider.md index 2f14a3dbe1b..480a6ed578f 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-fcm-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-mailgun-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-mailgun-provider.md index c41871205a3..6617ff8c1d5 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-mailgun-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-msg91provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-msg91provider.md index 696d132a4cf..785c55ce4a2 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-msg91provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-push.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-push.md index 0249485f0a1..e496de9d27c 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-push.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-push.md @@ -2,15 +2,15 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); Message result = await messaging.createPush( messageId: '<MESSAGE_ID>', - title: '<TITLE>', - body: '<BODY>', + title: '<TITLE>', // (optional) + body: '<BODY>', // (optional) topics: [], // (optional) users: [], // (optional) targets: [], // (optional) @@ -21,7 +21,10 @@ Message result = await messaging.createPush( sound: '<SOUND>', // (optional) color: '<COLOR>', // (optional) tag: '<TAG>', // (optional) - badge: '<BADGE>', // (optional) + badge: 0, // (optional) draft: false, // (optional) scheduledAt: '', // (optional) + contentAvailable: false, // (optional) + critical: false, // (optional) + priority: MessagePriority.normal, // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-s-m-s.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-s-m-s.md index 82bbaab24e3..c27d8f10655 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-s-m-s.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-s-m-s.md @@ -5,7 +5,7 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-s-m-t-p-provider.md index c22c27c047e..52d6e28a1ee 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-s-m-t-p-provider.md @@ -5,7 +5,7 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-sendgrid-provider.md index 7194fd6f8f6..2f6d51d2fb0 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-sendgrid-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-sms.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-sms.md index ed6726109a0..8d31dc630d6 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-sms.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-sms.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-smtp-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-smtp-provider.md index 7eb8f907be0..352369a8bb2 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-smtp-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-subscriber.md index d7e313853ff..5fdd4c84044 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-subscriber.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...'); // Your secret JSON Web Token + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-telesign-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-telesign-provider.md index b5c475ca7c1..4fef6312787 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-telesign-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-textmagic-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-textmagic-provider.md index 5b40a6ab8e4..b7b456de722 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-textmagic-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-topic.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-topic.md index f735285749d..0e83103213d 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-topic.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-topic.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-twilio-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-twilio-provider.md index 050e06a34c7..1d9e4f44b08 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-twilio-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/create-vonage-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/create-vonage-provider.md index 31e3e8295e3..2bbad6591a7 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/create-vonage-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/delete-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/delete-provider.md index 1761eb8da24..189cdb310a6 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/delete-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/delete-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/server-dart/examples/messaging/delete-subscriber.md index 7a098dda2b6..7cfbdae02c6 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/delete-subscriber.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...'); // Your secret JSON Web Token + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/delete-topic.md b/docs/examples/1.5.x/server-dart/examples/messaging/delete-topic.md index 7455d50be54..a64056fc0f9 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/delete-topic.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/delete-topic.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/delete.md b/docs/examples/1.5.x/server-dart/examples/messaging/delete.md index 549c5eb0374..0cbc89ab229 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/delete.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/delete.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/get-message.md b/docs/examples/1.5.x/server-dart/examples/messaging/get-message.md index a89f8030483..b95babd1f59 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/get-message.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/get-message.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/get-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/get-provider.md index 3b1f23387e3..1ba21b81fbf 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/get-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/get-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/get-subscriber.md b/docs/examples/1.5.x/server-dart/examples/messaging/get-subscriber.md index 33caa7613ee..9a6711ba8db 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/get-subscriber.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/get-subscriber.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/get-topic.md b/docs/examples/1.5.x/server-dart/examples/messaging/get-topic.md index d90aea0cd1c..2418390f2ff 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/get-topic.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/get-topic.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/list-message-logs.md b/docs/examples/1.5.x/server-dart/examples/messaging/list-message-logs.md index c3f6a27e84e..09c669dd845 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/list-message-logs.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/list-message-logs.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/list-messages.md b/docs/examples/1.5.x/server-dart/examples/messaging/list-messages.md index 6532f0f9ca2..e58ab7f7878 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/list-messages.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/list-messages.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/list-provider-logs.md b/docs/examples/1.5.x/server-dart/examples/messaging/list-provider-logs.md index a21afd48f4c..fb8b6296759 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/list-provider-logs.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/list-providers.md b/docs/examples/1.5.x/server-dart/examples/messaging/list-providers.md index 072cb32cbd7..5ff2ac533f8 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/list-providers.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/list-providers.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/list-subscriber-logs.md b/docs/examples/1.5.x/server-dart/examples/messaging/list-subscriber-logs.md index 993b0936f88..8ccbe9c8c88 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/list-subscriber-logs.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/list-subscribers.md b/docs/examples/1.5.x/server-dart/examples/messaging/list-subscribers.md index 87a2e79effc..81db0613d91 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/list-subscribers.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/list-subscribers.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/list-targets.md b/docs/examples/1.5.x/server-dart/examples/messaging/list-targets.md index e3e95823c84..af02c235df9 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/list-targets.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/list-targets.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/list-topic-logs.md b/docs/examples/1.5.x/server-dart/examples/messaging/list-topic-logs.md index 232d6ecc147..afb80a24ba2 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/list-topic-logs.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/list-topics.md b/docs/examples/1.5.x/server-dart/examples/messaging/list-topics.md index 538937490c0..1516056ce1f 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/list-topics.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/list-topics.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-a-p-n-s-provider.md index 7a321532aac..83fb65bf538 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-a-p-n-s-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-apns-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-apns-provider.md index 9c13397b674..72eb8744586 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-apns-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-email.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-email.md index c6d69caa8ec..a53209abfd8 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-email.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-email.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-f-c-m-provider.md index 12ddad79e2f..3f436718122 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-f-c-m-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-fcm-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-fcm-provider.md index ec2ff349b9e..4b2bf6bd19c 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-fcm-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-mailgun-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-mailgun-provider.md index ddf4ef4ae00..6acc4950d67 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-mailgun-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-msg91provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-msg91provider.md index 7b1c32d8f34..10a8aa1655a 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-msg91provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-push.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-push.md index 7b01b5c372d..f5d75332e24 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-push.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-push.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); @@ -24,4 +24,7 @@ Message result = await messaging.updatePush( badge: 0, // (optional) draft: false, // (optional) scheduledAt: '', // (optional) + contentAvailable: false, // (optional) + critical: false, // (optional) + priority: MessagePriority.normal, // (optional) ); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-s-m-s.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-s-m-s.md index f091ba6fc8b..37ed6fa3c0c 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-s-m-s.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-s-m-s.md @@ -5,7 +5,7 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-s-m-t-p-provider.md index d74bbcd2a6b..5ff91473f6f 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-s-m-t-p-provider.md @@ -5,7 +5,7 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-sendgrid-provider.md index f23d0369932..ce00ee26e32 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-sendgrid-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-sms.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-sms.md index 054da06088c..795d03e9eb7 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-sms.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-sms.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-smtp-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-smtp-provider.md index 5d3fff930b1..c85e62ee93c 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-smtp-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-telesign-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-telesign-provider.md index d347df249fc..d313321ad0f 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-telesign-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-textmagic-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-textmagic-provider.md index ef0be2180ea..dc966eccecf 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-textmagic-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-topic.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-topic.md index 29bda3d6c13..8c149c57f1d 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-topic.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-topic.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-twilio-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-twilio-provider.md index 7eb7cbf4c52..a246dd62b9c 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-twilio-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/messaging/update-vonage-provider.md b/docs/examples/1.5.x/server-dart/examples/messaging/update-vonage-provider.md index 9965229ab8d..d848a648feb 100644 --- a/docs/examples/1.5.x/server-dart/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.5.x/server-dart/examples/messaging/update-vonage-provider.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Messaging messaging = Messaging(client); diff --git a/docs/examples/1.5.x/server-dart/examples/storage/create-bucket.md b/docs/examples/1.5.x/server-dart/examples/storage/create-bucket.md index 4cdc5b56490..e9b817f3671 100644 --- a/docs/examples/1.5.x/server-dart/examples/storage/create-bucket.md +++ b/docs/examples/1.5.x/server-dart/examples/storage/create-bucket.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/server-dart/examples/storage/create-file.md b/docs/examples/1.5.x/server-dart/examples/storage/create-file.md index fb46c84c2b5..0e06f4220c6 100644 --- a/docs/examples/1.5.x/server-dart/examples/storage/create-file.md +++ b/docs/examples/1.5.x/server-dart/examples/storage/create-file.md @@ -3,7 +3,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/server-dart/examples/storage/delete-bucket.md b/docs/examples/1.5.x/server-dart/examples/storage/delete-bucket.md index 28b8a5fffbf..51fa7aafca2 100644 --- a/docs/examples/1.5.x/server-dart/examples/storage/delete-bucket.md +++ b/docs/examples/1.5.x/server-dart/examples/storage/delete-bucket.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/server-dart/examples/storage/delete-file.md b/docs/examples/1.5.x/server-dart/examples/storage/delete-file.md index b50ebce4327..25f74b68bb6 100644 --- a/docs/examples/1.5.x/server-dart/examples/storage/delete-file.md +++ b/docs/examples/1.5.x/server-dart/examples/storage/delete-file.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/server-dart/examples/storage/get-bucket.md b/docs/examples/1.5.x/server-dart/examples/storage/get-bucket.md index b425a9f8964..20dfac75b6a 100644 --- a/docs/examples/1.5.x/server-dart/examples/storage/get-bucket.md +++ b/docs/examples/1.5.x/server-dart/examples/storage/get-bucket.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/server-dart/examples/storage/get-file-download.md b/docs/examples/1.5.x/server-dart/examples/storage/get-file-download.md index 06612637dac..ddbc538b8bb 100644 --- a/docs/examples/1.5.x/server-dart/examples/storage/get-file-download.md +++ b/docs/examples/1.5.x/server-dart/examples/storage/get-file-download.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/server-dart/examples/storage/get-file-preview.md b/docs/examples/1.5.x/server-dart/examples/storage/get-file-preview.md index 70a233210a8..0f9cada9b30 100644 --- a/docs/examples/1.5.x/server-dart/examples/storage/get-file-preview.md +++ b/docs/examples/1.5.x/server-dart/examples/storage/get-file-preview.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/server-dart/examples/storage/get-file-view.md b/docs/examples/1.5.x/server-dart/examples/storage/get-file-view.md index fa1471051cb..d9854177e8d 100644 --- a/docs/examples/1.5.x/server-dart/examples/storage/get-file-view.md +++ b/docs/examples/1.5.x/server-dart/examples/storage/get-file-view.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/server-dart/examples/storage/get-file.md b/docs/examples/1.5.x/server-dart/examples/storage/get-file.md index c5ca6182ac6..c79b608c431 100644 --- a/docs/examples/1.5.x/server-dart/examples/storage/get-file.md +++ b/docs/examples/1.5.x/server-dart/examples/storage/get-file.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/server-dart/examples/storage/list-buckets.md b/docs/examples/1.5.x/server-dart/examples/storage/list-buckets.md index d5e26a2ca63..7d9afb7ea14 100644 --- a/docs/examples/1.5.x/server-dart/examples/storage/list-buckets.md +++ b/docs/examples/1.5.x/server-dart/examples/storage/list-buckets.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/server-dart/examples/storage/list-files.md b/docs/examples/1.5.x/server-dart/examples/storage/list-files.md index 45555f229b1..02e52ba44a5 100644 --- a/docs/examples/1.5.x/server-dart/examples/storage/list-files.md +++ b/docs/examples/1.5.x/server-dart/examples/storage/list-files.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/server-dart/examples/storage/update-bucket.md b/docs/examples/1.5.x/server-dart/examples/storage/update-bucket.md index 202157678a4..23bfdb7395f 100644 --- a/docs/examples/1.5.x/server-dart/examples/storage/update-bucket.md +++ b/docs/examples/1.5.x/server-dart/examples/storage/update-bucket.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/server-dart/examples/storage/update-file.md b/docs/examples/1.5.x/server-dart/examples/storage/update-file.md index 5801bfd4bb7..d03e60406e0 100644 --- a/docs/examples/1.5.x/server-dart/examples/storage/update-file.md +++ b/docs/examples/1.5.x/server-dart/examples/storage/update-file.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Storage storage = Storage(client); diff --git a/docs/examples/1.5.x/server-dart/examples/teams/create-membership.md b/docs/examples/1.5.x/server-dart/examples/teams/create-membership.md index 679a9c028e2..96b037a1c0d 100644 --- a/docs/examples/1.5.x/server-dart/examples/teams/create-membership.md +++ b/docs/examples/1.5.x/server-dart/examples/teams/create-membership.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/server-dart/examples/teams/create.md b/docs/examples/1.5.x/server-dart/examples/teams/create.md index 1606dfb9173..f6575bc4408 100644 --- a/docs/examples/1.5.x/server-dart/examples/teams/create.md +++ b/docs/examples/1.5.x/server-dart/examples/teams/create.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/server-dart/examples/teams/delete-membership.md b/docs/examples/1.5.x/server-dart/examples/teams/delete-membership.md index f43961000ac..6f495ef4344 100644 --- a/docs/examples/1.5.x/server-dart/examples/teams/delete-membership.md +++ b/docs/examples/1.5.x/server-dart/examples/teams/delete-membership.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/server-dart/examples/teams/delete.md b/docs/examples/1.5.x/server-dart/examples/teams/delete.md index c41fbd98804..021368cb054 100644 --- a/docs/examples/1.5.x/server-dart/examples/teams/delete.md +++ b/docs/examples/1.5.x/server-dart/examples/teams/delete.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/server-dart/examples/teams/get-membership.md b/docs/examples/1.5.x/server-dart/examples/teams/get-membership.md index 5b8b51f492e..1d5c3b35505 100644 --- a/docs/examples/1.5.x/server-dart/examples/teams/get-membership.md +++ b/docs/examples/1.5.x/server-dart/examples/teams/get-membership.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/server-dart/examples/teams/get-prefs.md b/docs/examples/1.5.x/server-dart/examples/teams/get-prefs.md index 4038c0927b5..1e89d0e2770 100644 --- a/docs/examples/1.5.x/server-dart/examples/teams/get-prefs.md +++ b/docs/examples/1.5.x/server-dart/examples/teams/get-prefs.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/server-dart/examples/teams/get.md b/docs/examples/1.5.x/server-dart/examples/teams/get.md index 677c708424e..31d238ab963 100644 --- a/docs/examples/1.5.x/server-dart/examples/teams/get.md +++ b/docs/examples/1.5.x/server-dart/examples/teams/get.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/server-dart/examples/teams/list-memberships.md b/docs/examples/1.5.x/server-dart/examples/teams/list-memberships.md index 6c1da3f73d7..1cb91dd477f 100644 --- a/docs/examples/1.5.x/server-dart/examples/teams/list-memberships.md +++ b/docs/examples/1.5.x/server-dart/examples/teams/list-memberships.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/server-dart/examples/teams/list.md b/docs/examples/1.5.x/server-dart/examples/teams/list.md index 09a4548c608..e4c764c517e 100644 --- a/docs/examples/1.5.x/server-dart/examples/teams/list.md +++ b/docs/examples/1.5.x/server-dart/examples/teams/list.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/server-dart/examples/teams/update-membership-status.md b/docs/examples/1.5.x/server-dart/examples/teams/update-membership-status.md index befb753c4b5..71c343663a9 100644 --- a/docs/examples/1.5.x/server-dart/examples/teams/update-membership-status.md +++ b/docs/examples/1.5.x/server-dart/examples/teams/update-membership-status.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/server-dart/examples/teams/update-membership.md b/docs/examples/1.5.x/server-dart/examples/teams/update-membership.md index 5e976887d31..256c0823fe0 100644 --- a/docs/examples/1.5.x/server-dart/examples/teams/update-membership.md +++ b/docs/examples/1.5.x/server-dart/examples/teams/update-membership.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/server-dart/examples/teams/update-name.md b/docs/examples/1.5.x/server-dart/examples/teams/update-name.md index 93e2e3c20a6..a1727ced110 100644 --- a/docs/examples/1.5.x/server-dart/examples/teams/update-name.md +++ b/docs/examples/1.5.x/server-dart/examples/teams/update-name.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/server-dart/examples/teams/update-prefs.md b/docs/examples/1.5.x/server-dart/examples/teams/update-prefs.md index 22c13dac978..1b3208b79fc 100644 --- a/docs/examples/1.5.x/server-dart/examples/teams/update-prefs.md +++ b/docs/examples/1.5.x/server-dart/examples/teams/update-prefs.md @@ -2,7 +2,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Teams teams = Teams(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/create-argon2user.md b/docs/examples/1.5.x/server-dart/examples/users/create-argon2user.md index 080e66a5120..68dd98841ec 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/create-argon2user.md +++ b/docs/examples/1.5.x/server-dart/examples/users/create-argon2user.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/create-bcrypt-user.md b/docs/examples/1.5.x/server-dart/examples/users/create-bcrypt-user.md index afddc2c9bc0..cb000391c67 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.5.x/server-dart/examples/users/create-bcrypt-user.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/create-j-w-t.md b/docs/examples/1.5.x/server-dart/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..2a9c67bead5 --- /dev/null +++ b/docs/examples/1.5.x/server-dart/examples/users/create-j-w-t.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Users users = Users(client); + +Jwt result = await users.createJWT( + userId: '<USER_ID>', + sessionId: '<SESSION_ID>', // (optional) + duration: 0, // (optional) +); diff --git a/docs/examples/1.5.x/server-dart/examples/users/create-m-d5user.md b/docs/examples/1.5.x/server-dart/examples/users/create-m-d5user.md index 05a9cc19915..4ade88bc7d9 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/create-m-d5user.md +++ b/docs/examples/1.5.x/server-dart/examples/users/create-m-d5user.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-dart/examples/users/create-mfa-recovery-codes.md index 15cc9c10fc8..598cef49014 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-dart/examples/users/create-mfa-recovery-codes.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/create-p-h-pass-user.md b/docs/examples/1.5.x/server-dart/examples/users/create-p-h-pass-user.md index 952584d4380..1c95cbe2634 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.5.x/server-dart/examples/users/create-p-h-pass-user.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/create-s-h-a-user.md b/docs/examples/1.5.x/server-dart/examples/users/create-s-h-a-user.md index 9b29c5b8d46..17122072e4a 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.5.x/server-dart/examples/users/create-s-h-a-user.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/create-scrypt-modified-user.md b/docs/examples/1.5.x/server-dart/examples/users/create-scrypt-modified-user.md index 967fc3806ec..063fc97d844 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.5.x/server-dart/examples/users/create-scrypt-modified-user.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/create-scrypt-user.md b/docs/examples/1.5.x/server-dart/examples/users/create-scrypt-user.md index ba4fce846b4..03717bd7f09 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/create-scrypt-user.md +++ b/docs/examples/1.5.x/server-dart/examples/users/create-scrypt-user.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/create-session.md b/docs/examples/1.5.x/server-dart/examples/users/create-session.md index 8efc2d959fa..013707bcc52 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/create-session.md +++ b/docs/examples/1.5.x/server-dart/examples/users/create-session.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/create-target.md b/docs/examples/1.5.x/server-dart/examples/users/create-target.md index 630afbfce09..88c0c19e420 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/create-target.md +++ b/docs/examples/1.5.x/server-dart/examples/users/create-target.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/create-token.md b/docs/examples/1.5.x/server-dart/examples/users/create-token.md index 51a9892a47b..16040215a3e 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/create-token.md +++ b/docs/examples/1.5.x/server-dart/examples/users/create-token.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/create.md b/docs/examples/1.5.x/server-dart/examples/users/create.md index 8faa909e55b..a0f0c3fe3de 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/create.md +++ b/docs/examples/1.5.x/server-dart/examples/users/create.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/delete-authenticator.md b/docs/examples/1.5.x/server-dart/examples/users/delete-authenticator.md index 62eac5899fd..240790c0479 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/delete-authenticator.md +++ b/docs/examples/1.5.x/server-dart/examples/users/delete-authenticator.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-dart/examples/users/delete-identity.md b/docs/examples/1.5.x/server-dart/examples/users/delete-identity.md index 3ad24e32622..07ba49764e8 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/delete-identity.md +++ b/docs/examples/1.5.x/server-dart/examples/users/delete-identity.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-dart/examples/users/delete-mfa-authenticator.md index 8c67955d32c..d48ab6d4f0a 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-dart/examples/users/delete-mfa-authenticator.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/delete-session.md b/docs/examples/1.5.x/server-dart/examples/users/delete-session.md index 4cca314fc86..a2c985a7e77 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/delete-session.md +++ b/docs/examples/1.5.x/server-dart/examples/users/delete-session.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/delete-sessions.md b/docs/examples/1.5.x/server-dart/examples/users/delete-sessions.md index df0c5f1deb5..e86e0e29aa4 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/delete-sessions.md +++ b/docs/examples/1.5.x/server-dart/examples/users/delete-sessions.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/delete-target.md b/docs/examples/1.5.x/server-dart/examples/users/delete-target.md index 34283a1c44d..bae674cdcd7 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/delete-target.md +++ b/docs/examples/1.5.x/server-dart/examples/users/delete-target.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/delete.md b/docs/examples/1.5.x/server-dart/examples/users/delete.md index 6801e13b6b9..dbee4e8cc9b 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/delete.md +++ b/docs/examples/1.5.x/server-dart/examples/users/delete.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-dart/examples/users/get-mfa-recovery-codes.md index 95f5543a228..1e8baf2b9fd 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-dart/examples/users/get-mfa-recovery-codes.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/get-prefs.md b/docs/examples/1.5.x/server-dart/examples/users/get-prefs.md index 54da404ad2f..9fa4c8bd532 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/get-prefs.md +++ b/docs/examples/1.5.x/server-dart/examples/users/get-prefs.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/get-target.md b/docs/examples/1.5.x/server-dart/examples/users/get-target.md index 4f1f1b4b28e..2a62d94e9b1 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/get-target.md +++ b/docs/examples/1.5.x/server-dart/examples/users/get-target.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/get.md b/docs/examples/1.5.x/server-dart/examples/users/get.md index d57f9800d74..04dfcb6a9b1 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/get.md +++ b/docs/examples/1.5.x/server-dart/examples/users/get.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/list-factors.md b/docs/examples/1.5.x/server-dart/examples/users/list-factors.md index 7071dce1070..1744f4ac5a5 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/list-factors.md +++ b/docs/examples/1.5.x/server-dart/examples/users/list-factors.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-dart/examples/users/list-identities.md b/docs/examples/1.5.x/server-dart/examples/users/list-identities.md index d811428aa54..aa20d3f6012 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/list-identities.md +++ b/docs/examples/1.5.x/server-dart/examples/users/list-identities.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/list-logs.md b/docs/examples/1.5.x/server-dart/examples/users/list-logs.md index 539710acc94..18b34a10dee 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/list-logs.md +++ b/docs/examples/1.5.x/server-dart/examples/users/list-logs.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/list-memberships.md b/docs/examples/1.5.x/server-dart/examples/users/list-memberships.md index bc1bf36bdb3..495ab938199 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/list-memberships.md +++ b/docs/examples/1.5.x/server-dart/examples/users/list-memberships.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/list-mfa-factors.md b/docs/examples/1.5.x/server-dart/examples/users/list-mfa-factors.md index b70fcc55377..cca4df00d22 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-dart/examples/users/list-mfa-factors.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/list-providers.md b/docs/examples/1.5.x/server-dart/examples/users/list-providers.md index e4c751a1c4f..f3b45eabede 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/list-providers.md +++ b/docs/examples/1.5.x/server-dart/examples/users/list-providers.md @@ -5,7 +5,7 @@ void main() { // Init SDK Users users = Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-dart/examples/users/list-sessions.md b/docs/examples/1.5.x/server-dart/examples/users/list-sessions.md index 108fd279f21..4e1a47bc472 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/list-sessions.md +++ b/docs/examples/1.5.x/server-dart/examples/users/list-sessions.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/list-targets.md b/docs/examples/1.5.x/server-dart/examples/users/list-targets.md index a4831fef988..459d0cd4387 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/list-targets.md +++ b/docs/examples/1.5.x/server-dart/examples/users/list-targets.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/list.md b/docs/examples/1.5.x/server-dart/examples/users/list.md index 6da9d811bd1..b909d76ef0c 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/list.md +++ b/docs/examples/1.5.x/server-dart/examples/users/list.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/update-email-verification.md b/docs/examples/1.5.x/server-dart/examples/users/update-email-verification.md index 8f373b9f7d8..e350eb68f31 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/update-email-verification.md +++ b/docs/examples/1.5.x/server-dart/examples/users/update-email-verification.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/update-email.md b/docs/examples/1.5.x/server-dart/examples/users/update-email.md index 5391891cb9d..af995fc520f 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/update-email.md +++ b/docs/examples/1.5.x/server-dart/examples/users/update-email.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/update-labels.md b/docs/examples/1.5.x/server-dart/examples/users/update-labels.md index 115e0e8eddf..5cd609d2d61 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/update-labels.md +++ b/docs/examples/1.5.x/server-dart/examples/users/update-labels.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-dart/examples/users/update-mfa-recovery-codes.md index 15f0f6b6baf..3fdfc7c55b5 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-dart/examples/users/update-mfa-recovery-codes.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/update-mfa.md b/docs/examples/1.5.x/server-dart/examples/users/update-mfa.md index be50cb6fa07..e1efba91b4d 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/update-mfa.md +++ b/docs/examples/1.5.x/server-dart/examples/users/update-mfa.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/update-name.md b/docs/examples/1.5.x/server-dart/examples/users/update-name.md index bd39acd1cb0..2a742bcc510 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/update-name.md +++ b/docs/examples/1.5.x/server-dart/examples/users/update-name.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/update-password.md b/docs/examples/1.5.x/server-dart/examples/users/update-password.md index 532f4c66958..8650291bd13 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/update-password.md +++ b/docs/examples/1.5.x/server-dart/examples/users/update-password.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/update-phone-verification.md b/docs/examples/1.5.x/server-dart/examples/users/update-phone-verification.md index f77847435c6..cb8efa4a702 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/update-phone-verification.md +++ b/docs/examples/1.5.x/server-dart/examples/users/update-phone-verification.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/update-phone.md b/docs/examples/1.5.x/server-dart/examples/users/update-phone.md index 684cd1dcaa4..5334986f38e 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/update-phone.md +++ b/docs/examples/1.5.x/server-dart/examples/users/update-phone.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/update-prefs.md b/docs/examples/1.5.x/server-dart/examples/users/update-prefs.md index 1ee538f8104..2a1f0572a8a 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/update-prefs.md +++ b/docs/examples/1.5.x/server-dart/examples/users/update-prefs.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/update-status.md b/docs/examples/1.5.x/server-dart/examples/users/update-status.md index 82b57cf1e7b..2948e6e6c32 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/update-status.md +++ b/docs/examples/1.5.x/server-dart/examples/users/update-status.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-dart/examples/users/update-target.md b/docs/examples/1.5.x/server-dart/examples/users/update-target.md index 0713439363d..c3e907175b2 100644 --- a/docs/examples/1.5.x/server-dart/examples/users/update-target.md +++ b/docs/examples/1.5.x/server-dart/examples/users/update-target.md @@ -2,8 +2,8 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key Users users = Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/add-authenticator.md b/docs/examples/1.5.x/server-deno/examples/account/add-authenticator.md index 0bb56d4dad2..d3925aeb1c9 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/add-authenticator.md +++ b/docs/examples/1.5.x/server-deno/examples/account/add-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/server-deno/examples/account/create-anonymous-session.md index d3dae32db0a..f71baa9d5d9 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-anonymous-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-challenge.md b/docs/examples/1.5.x/server-deno/examples/account/create-challenge.md index 459232859a2..8c592e639c4 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-challenge.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-challenge.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticationFactor } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-email-password-session.md b/docs/examples/1.5.x/server-deno/examples/account/create-email-password-session.md index ee2d6985a72..ad62b8883e8 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-email-password-session.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-email-password-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-email-token.md b/docs/examples/1.5.x/server-deno/examples/account/create-email-token.md index 3a555ff99a8..2e33d2bc335 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-email-token.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-email-token.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-j-w-t.md b/docs/examples/1.5.x/server-deno/examples/account/create-j-w-t.md index 9b0707ee3a0..15197d099a2 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-j-w-t.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-j-w-t.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/server-deno/examples/account/create-magic-u-r-l-token.md index b8c2cf4e731..57697d4039f 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-magic-u-r-l-token.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/server-deno/examples/account/create-mfa-authenticator.md index d8206d55649..be345dc1598 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-mfa-authenticator.md @@ -2,7 +2,7 @@ import { Client, Account, AuthenticatorType } from "https://deno.land/x/appwrite const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/server-deno/examples/account/create-mfa-challenge.md index 7edc2bf8588..877c20392c2 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-mfa-challenge.md @@ -2,7 +2,7 @@ import { Client, Account, AuthenticationFactor } from "https://deno.land/x/appwr const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-deno/examples/account/create-mfa-recovery-codes.md index 514da0e4616..18ce21a076b 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-o-auth2session.md b/docs/examples/1.5.x/server-deno/examples/account/create-o-auth2session.md index b6a8ca8a2f6..72442ca23c8 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-o-auth2session.md @@ -1,7 +1,7 @@ import { Client, Account, OAuthProvider } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/server-deno/examples/account/create-o-auth2token.md index e1ff3b861e0..037da38d685 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-o-auth2token.md @@ -2,7 +2,7 @@ import { Client, Account, OAuthProvider } from "https://deno.land/x/appwrite/mod const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-phone-token.md b/docs/examples/1.5.x/server-deno/examples/account/create-phone-token.md index 6dcdff94f79..800f0210a11 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-phone-token.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-phone-token.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-phone-verification.md b/docs/examples/1.5.x/server-deno/examples/account/create-phone-verification.md index fa42f5ad604..5a9c87b7f62 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-phone-verification.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-phone-verification.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-recovery.md b/docs/examples/1.5.x/server-deno/examples/account/create-recovery.md index bf33fad2522..e32600111bf 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-recovery.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-recovery.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-session.md b/docs/examples/1.5.x/server-deno/examples/account/create-session.md index 37825fe8b9e..a34d3e37d97 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-session.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create-verification.md b/docs/examples/1.5.x/server-deno/examples/account/create-verification.md index 2631b628b8e..fd11e13b33a 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create-verification.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create-verification.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create.md b/docs/examples/1.5.x/server-deno/examples/account/create.md index 422be324032..9f1b16b7b9e 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/create2f-a-challenge.md b/docs/examples/1.5.x/server-deno/examples/account/create2f-a-challenge.md index d08d1b6e2d5..5e2342d7fed 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/server-deno/examples/account/create2f-a-challenge.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticationFactor } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/delete-authenticator.md b/docs/examples/1.5.x/server-deno/examples/account/delete-authenticator.md index 14681f8f6e6..6598a8a7743 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/delete-authenticator.md +++ b/docs/examples/1.5.x/server-deno/examples/account/delete-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-deno/examples/account/delete-identity.md b/docs/examples/1.5.x/server-deno/examples/account/delete-identity.md index cf6908304ec..30b14688918 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/delete-identity.md +++ b/docs/examples/1.5.x/server-deno/examples/account/delete-identity.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-deno/examples/account/delete-mfa-authenticator.md index 217dde84cce..7247155e2bf 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-deno/examples/account/delete-mfa-authenticator.md @@ -2,12 +2,11 @@ import { Client, Account, AuthenticatorType } from "https://deno.land/x/appwrite const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); const response = await account.deleteMfaAuthenticator( - AuthenticatorType.Totp, // type - '<OTP>' // otp + AuthenticatorType.Totp // type ); diff --git a/docs/examples/1.5.x/server-deno/examples/account/delete-session.md b/docs/examples/1.5.x/server-deno/examples/account/delete-session.md index 44277946bfd..5fd77c155ab 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/delete-session.md +++ b/docs/examples/1.5.x/server-deno/examples/account/delete-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/delete-sessions.md b/docs/examples/1.5.x/server-deno/examples/account/delete-sessions.md index c698bab6e69..6d676cf8f80 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/delete-sessions.md +++ b/docs/examples/1.5.x/server-deno/examples/account/delete-sessions.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-deno/examples/account/get-mfa-recovery-codes.md index c664309c33d..5861c1b561b 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-deno/examples/account/get-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/get-prefs.md b/docs/examples/1.5.x/server-deno/examples/account/get-prefs.md index dc990d8633f..685aa63ca60 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/get-prefs.md +++ b/docs/examples/1.5.x/server-deno/examples/account/get-prefs.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/get-session.md b/docs/examples/1.5.x/server-deno/examples/account/get-session.md index cd49260a4d2..91242d45652 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/get-session.md +++ b/docs/examples/1.5.x/server-deno/examples/account/get-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/get.md b/docs/examples/1.5.x/server-deno/examples/account/get.md index d630fb09799..59f91ca8468 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/get.md +++ b/docs/examples/1.5.x/server-deno/examples/account/get.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/list-factors.md b/docs/examples/1.5.x/server-deno/examples/account/list-factors.md index c2877395a3f..28c64e963cc 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/list-factors.md +++ b/docs/examples/1.5.x/server-deno/examples/account/list-factors.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-deno/examples/account/list-identities.md b/docs/examples/1.5.x/server-deno/examples/account/list-identities.md index 8e5964c044a..501042160da 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/list-identities.md +++ b/docs/examples/1.5.x/server-deno/examples/account/list-identities.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/list-logs.md b/docs/examples/1.5.x/server-deno/examples/account/list-logs.md index 5360f472d01..230c3f46a62 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/list-logs.md +++ b/docs/examples/1.5.x/server-deno/examples/account/list-logs.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/server-deno/examples/account/list-mfa-factors.md index d7cc93cf8e9..bf9d6b40e43 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-deno/examples/account/list-mfa-factors.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/list-sessions.md b/docs/examples/1.5.x/server-deno/examples/account/list-sessions.md index 0eb7ae88e43..927ccfc67c1 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/list-sessions.md +++ b/docs/examples/1.5.x/server-deno/examples/account/list-sessions.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-challenge.md b/docs/examples/1.5.x/server-deno/examples/account/update-challenge.md index 36a736a0711..0c5745abc32 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-challenge.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-challenge.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-email.md b/docs/examples/1.5.x/server-deno/examples/account/update-email.md index f68a0163f8c..9136450824c 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-email.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-email.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-m-f-a.md b/docs/examples/1.5.x/server-deno/examples/account/update-m-f-a.md index 4f629176fe5..db315e54685 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-m-f-a.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/server-deno/examples/account/update-magic-u-r-l-session.md index 9cf1c6e2db2..99243ec118b 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/server-deno/examples/account/update-mfa-authenticator.md index 08ecb162e6e..5c437194feb 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-mfa-authenticator.md @@ -2,7 +2,7 @@ import { Client, Account, AuthenticatorType } from "https://deno.land/x/appwrite const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/server-deno/examples/account/update-mfa-challenge.md index 4c75f1d78fb..4e0638ea42d 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-mfa-challenge.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-deno/examples/account/update-mfa-recovery-codes.md index 0825cc04bd1..3d604f6efde 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-name.md b/docs/examples/1.5.x/server-deno/examples/account/update-name.md index 4d4f26024d9..7e0e0122d0b 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-name.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-name.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-password.md b/docs/examples/1.5.x/server-deno/examples/account/update-password.md index ab178b332af..6d546291d87 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-password.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-password.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-phone-session.md b/docs/examples/1.5.x/server-deno/examples/account/update-phone-session.md index 9efe6b0abce..1d9104829eb 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-phone-session.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-phone-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-phone-verification.md b/docs/examples/1.5.x/server-deno/examples/account/update-phone-verification.md index ee8b4888674..9737de02ac2 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-phone-verification.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-phone-verification.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-phone.md b/docs/examples/1.5.x/server-deno/examples/account/update-phone.md index b8d68474f6c..8b1bc7c7f06 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-phone.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-phone.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-prefs.md b/docs/examples/1.5.x/server-deno/examples/account/update-prefs.md index 7a1fe04a6f9..58582c6bcab 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-prefs.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-recovery.md b/docs/examples/1.5.x/server-deno/examples/account/update-recovery.md index f8cf494c107..1b64a3beaf4 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-recovery.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-recovery.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-session.md b/docs/examples/1.5.x/server-deno/examples/account/update-session.md index 199ef85690f..93dd40fcc50 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-session.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-session.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-status.md b/docs/examples/1.5.x/server-deno/examples/account/update-status.md index 1430663193b..60a3d51f0dc 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-status.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-status.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/update-verification.md b/docs/examples/1.5.x/server-deno/examples/account/update-verification.md index 805b1c652d4..208988894f4 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/update-verification.md +++ b/docs/examples/1.5.x/server-deno/examples/account/update-verification.md @@ -2,7 +2,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new Account(client); diff --git a/docs/examples/1.5.x/server-deno/examples/account/verify-authenticator.md b/docs/examples/1.5.x/server-deno/examples/account/verify-authenticator.md index 214856be3d5..6021b61cda6 100644 --- a/docs/examples/1.5.x/server-deno/examples/account/verify-authenticator.md +++ b/docs/examples/1.5.x/server-deno/examples/account/verify-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-deno/examples/avatars/get-browser.md b/docs/examples/1.5.x/server-deno/examples/avatars/get-browser.md index 3265c6c1d05..c8e72644345 100644 --- a/docs/examples/1.5.x/server-deno/examples/avatars/get-browser.md +++ b/docs/examples/1.5.x/server-deno/examples/avatars/get-browser.md @@ -2,7 +2,7 @@ import { Client, Avatars, Browser } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-deno/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/server-deno/examples/avatars/get-credit-card.md index 10f31982880..8e1b3dba624 100644 --- a/docs/examples/1.5.x/server-deno/examples/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/server-deno/examples/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import { Client, Avatars, CreditCard } from "https://deno.land/x/appwrite/mod.ts const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-deno/examples/avatars/get-favicon.md b/docs/examples/1.5.x/server-deno/examples/avatars/get-favicon.md index a7981a69d30..5f50687f915 100644 --- a/docs/examples/1.5.x/server-deno/examples/avatars/get-favicon.md +++ b/docs/examples/1.5.x/server-deno/examples/avatars/get-favicon.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-deno/examples/avatars/get-flag.md b/docs/examples/1.5.x/server-deno/examples/avatars/get-flag.md index 346119f64f9..daa488e443a 100644 --- a/docs/examples/1.5.x/server-deno/examples/avatars/get-flag.md +++ b/docs/examples/1.5.x/server-deno/examples/avatars/get-flag.md @@ -2,7 +2,7 @@ import { Client, Avatars, Flag } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-deno/examples/avatars/get-image.md b/docs/examples/1.5.x/server-deno/examples/avatars/get-image.md index e37c975e055..fc72b74cf7d 100644 --- a/docs/examples/1.5.x/server-deno/examples/avatars/get-image.md +++ b/docs/examples/1.5.x/server-deno/examples/avatars/get-image.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-deno/examples/avatars/get-initials.md b/docs/examples/1.5.x/server-deno/examples/avatars/get-initials.md index 988f879afb3..d6d8dc8c7ce 100644 --- a/docs/examples/1.5.x/server-deno/examples/avatars/get-initials.md +++ b/docs/examples/1.5.x/server-deno/examples/avatars/get-initials.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-deno/examples/avatars/get-q-r.md b/docs/examples/1.5.x/server-deno/examples/avatars/get-q-r.md index 7a806f58893..bfa7833b508 100644 --- a/docs/examples/1.5.x/server-deno/examples/avatars/get-q-r.md +++ b/docs/examples/1.5.x/server-deno/examples/avatars/get-q-r.md @@ -2,7 +2,7 @@ import { Client, Avatars } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/create-boolean-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/create-boolean-attribute.md index 730adba675b..232efa137f4 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/create-boolean-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/create-collection.md b/docs/examples/1.5.x/server-deno/examples/databases/create-collection.md index 72f1100159e..8ae3e6acdbc 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/create-collection.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/create-collection.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/create-datetime-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/create-datetime-attribute.md index 62b4af40da9..10017f2162d 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/create-datetime-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/create-document.md b/docs/examples/1.5.x/server-deno/examples/databases/create-document.md index a8e69def287..f0f54b79ec5 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/create-document.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/create-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/create-email-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/create-email-attribute.md index 24568a93e25..979c5137242 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/create-email-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/create-email-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/create-enum-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/create-enum-attribute.md index 013ac96376c..163a9e49bd8 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/create-enum-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/create-float-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/create-float-attribute.md index 7cd652a243e..3b0e4193985 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/create-float-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/create-float-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/create-index.md b/docs/examples/1.5.x/server-deno/examples/databases/create-index.md index d8a8aba1e22..8b7d9c676f9 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/create-index.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/create-index.md @@ -2,8 +2,8 @@ import { Client, Databases, IndexType } from "https://deno.land/x/appwrite/mod.t const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/create-integer-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/create-integer-attribute.md index e6a04bc424f..1a2e394d512 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/create-integer-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/create-ip-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/create-ip-attribute.md index e44ddccb423..e0acc270163 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/create-ip-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/create-relationship-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/create-relationship-attribute.md index 9f751fa4acd..83b3e5833b9 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/create-relationship-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases, RelationshipType, RelationMutate } from "https://den const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/create-string-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/create-string-attribute.md index 37f202f1f76..d35b8a791f0 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/create-string-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/create-string-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/create-url-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/create-url-attribute.md index 9b20d0bf34a..9127e3acd06 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/create-url-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/create-url-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/create.md b/docs/examples/1.5.x/server-deno/examples/databases/create.md index d6bb161ab3d..a4252aa7c86 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/create.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/create.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/delete-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/delete-attribute.md index 0de42f8a082..142ae5af138 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/delete-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/delete-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/delete-collection.md b/docs/examples/1.5.x/server-deno/examples/databases/delete-collection.md index 22ddaefd798..3d72fa038aa 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/delete-collection.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/delete-collection.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/delete-document.md b/docs/examples/1.5.x/server-deno/examples/databases/delete-document.md index 1b11e26fad9..ade8151b807 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/delete-document.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/delete-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/delete-index.md b/docs/examples/1.5.x/server-deno/examples/databases/delete-index.md index f48eb722146..5bca23adf5e 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/delete-index.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/delete-index.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/delete.md b/docs/examples/1.5.x/server-deno/examples/databases/delete.md index 9a42e8f29e0..c729b9791ce 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/delete.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/delete.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/get-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/get-attribute.md index a2fe4e60fbf..a8300ea2a08 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/get-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/get-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/get-collection.md b/docs/examples/1.5.x/server-deno/examples/databases/get-collection.md index 6c49c6dcc62..b5213943e6e 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/get-collection.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/get-collection.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/get-document.md b/docs/examples/1.5.x/server-deno/examples/databases/get-document.md index dc37d41b6e9..1e5669ac964 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/get-document.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/get-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/get-index.md b/docs/examples/1.5.x/server-deno/examples/databases/get-index.md index 2540e2f88a0..bfd74021fa1 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/get-index.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/get-index.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/get.md b/docs/examples/1.5.x/server-deno/examples/databases/get.md index ffaddd7ba8a..386fbfedc6f 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/get.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/get.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/list-attributes.md b/docs/examples/1.5.x/server-deno/examples/databases/list-attributes.md index 193752eabf1..bedab6c9f62 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/list-attributes.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/list-attributes.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/list-collections.md b/docs/examples/1.5.x/server-deno/examples/databases/list-collections.md index d35f4db4b8a..9b4f76c57af 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/list-collections.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/list-collections.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/list-documents.md b/docs/examples/1.5.x/server-deno/examples/databases/list-documents.md index a65d720c9d3..0aa7b3f0b39 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/list-documents.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/list-documents.md @@ -2,7 +2,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/list-indexes.md b/docs/examples/1.5.x/server-deno/examples/databases/list-indexes.md index da01d7218b5..58222cbb553 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/list-indexes.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/list-indexes.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/list.md b/docs/examples/1.5.x/server-deno/examples/databases/list.md index e312057d6d7..8c8374e7ee2 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/list.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/list.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/update-boolean-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/update-boolean-attribute.md index e0e74ded3ed..dc107667aae 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/update-boolean-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); @@ -12,5 +12,6 @@ const response = await databases.updateBooleanAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - false // default + false, // default + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/update-collection.md b/docs/examples/1.5.x/server-deno/examples/databases/update-collection.md index 3a26a935845..88a34932678 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/update-collection.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/update-collection.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/update-datetime-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/update-datetime-attribute.md index d75a2ed846b..7de5a2c8471 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/update-datetime-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); @@ -12,5 +12,6 @@ const response = await databases.updateDatetimeAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - '' // default + '', // default + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/update-document.md b/docs/examples/1.5.x/server-deno/examples/databases/update-document.md index 66113df00f9..fe9947e7454 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/update-document.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/update-document.md @@ -2,7 +2,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/update-email-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/update-email-attribute.md index b238c66a024..41df1826512 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/update-email-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/update-email-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); @@ -12,5 +12,6 @@ const response = await databases.updateEmailAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - 'email@example.com' // default + 'email@example.com', // default + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/update-enum-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/update-enum-attribute.md index 885ab0ce096..6c0f9127b0b 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/update-enum-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); @@ -13,5 +13,6 @@ const response = await databases.updateEnumAttribute( '', // key [], // elements false, // required - '<DEFAULT>' // default + '<DEFAULT>', // default + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/update-float-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/update-float-attribute.md index cb422a3ebc7..9511a68be4c 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/update-float-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/update-float-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); @@ -12,7 +12,8 @@ const response = await databases.updateFloatAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - null, // min - null, // max - null // default + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/update-integer-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/update-integer-attribute.md index 2c4fa43f039..92aed877b7d 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/update-integer-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); @@ -12,7 +12,8 @@ const response = await databases.updateIntegerAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - null, // min - null, // max - null // default + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/update-ip-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/update-ip-attribute.md index 37ec1e9db38..9348cfa0b4a 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/update-ip-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); @@ -12,5 +12,6 @@ const response = await databases.updateIpAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - '' // default + '', // default + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/update-relationship-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/update-relationship-attribute.md index 63886f9e289..3d0bfdd9162 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/update-relationship-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases, RelationMutate } from "https://deno.land/x/appwrite/ const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); @@ -11,5 +11,6 @@ const response = await databases.updateRelationshipAttribute( '<DATABASE_ID>', // databaseId '<COLLECTION_ID>', // collectionId '', // key - RelationMutate.Cascade // onDelete (optional) + RelationMutate.Cascade, // onDelete (optional) + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/update-string-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/update-string-attribute.md index 33b106c1d64..d57f8fd663a 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/update-string-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/update-string-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); @@ -12,5 +12,7 @@ const response = await databases.updateStringAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - '<DEFAULT>' // default + '<DEFAULT>', // default + 1, // size (optional) + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/update-url-attribute.md b/docs/examples/1.5.x/server-deno/examples/databases/update-url-attribute.md index f06fcf91062..f1027d84b69 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/update-url-attribute.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/update-url-attribute.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); @@ -12,5 +12,6 @@ const response = await databases.updateUrlAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - 'https://example.com' // default + 'https://example.com', // default + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/databases/update.md b/docs/examples/1.5.x/server-deno/examples/databases/update.md index ce4023247a0..2e19221d1a9 100644 --- a/docs/examples/1.5.x/server-deno/examples/databases/update.md +++ b/docs/examples/1.5.x/server-deno/examples/databases/update.md @@ -2,8 +2,8 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/create-build.md b/docs/examples/1.5.x/server-deno/examples/functions/create-build.md index 9a58bf2eab4..c68fb256e06 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/create-build.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/create-build.md @@ -2,13 +2,13 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); const response = await functions.createBuild( '<FUNCTION_ID>', // functionId '<DEPLOYMENT_ID>', // deploymentId - '<BUILD_ID>' // buildId + '<BUILD_ID>' // buildId (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/create-deployment.md b/docs/examples/1.5.x/server-deno/examples/functions/create-deployment.md index ec6ea915797..5b976e65396 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/create-deployment.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/create-deployment.md @@ -2,8 +2,8 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/create-execution.md b/docs/examples/1.5.x/server-deno/examples/functions/create-execution.md index 6edabb4cafe..c794d72231d 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/create-execution.md @@ -2,7 +2,7 @@ import { Client, Functions, ExecutionMethod } from "https://deno.land/x/appwrite const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const functions = new Functions(client); @@ -13,5 +13,6 @@ const response = await functions.createExecution( false, // async (optional) '<PATH>', // path (optional) ExecutionMethod.GET, // method (optional) - {} // headers (optional) + {}, // headers (optional) + '' // scheduledAt (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/create-variable.md b/docs/examples/1.5.x/server-deno/examples/functions/create-variable.md index 9f933ebcd33..472a7982071 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/create-variable.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/create-variable.md @@ -2,8 +2,8 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/create.md b/docs/examples/1.5.x/server-deno/examples/functions/create.md index 14e26a7c2bb..2bb31f7d0c1 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/create.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/create.md @@ -2,8 +2,8 @@ import { Client, Functions, } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); @@ -19,6 +19,7 @@ const response = await functions.create( false, // logging (optional) '<ENTRYPOINT>', // entrypoint (optional) '<COMMANDS>', // commands (optional) + [], // scopes (optional) '<INSTALLATION_ID>', // installationId (optional) '<PROVIDER_REPOSITORY_ID>', // providerRepositoryId (optional) '<PROVIDER_BRANCH>', // providerBranch (optional) @@ -27,5 +28,6 @@ const response = await functions.create( '<TEMPLATE_REPOSITORY>', // templateRepository (optional) '<TEMPLATE_OWNER>', // templateOwner (optional) '<TEMPLATE_ROOT_DIRECTORY>', // templateRootDirectory (optional) - '<TEMPLATE_BRANCH>' // templateBranch (optional) + '<TEMPLATE_VERSION>', // templateVersion (optional) + '' // specification (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/delete-deployment.md b/docs/examples/1.5.x/server-deno/examples/functions/delete-deployment.md index 229c0842776..b640055473a 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/delete-deployment.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/delete-deployment.md @@ -2,8 +2,8 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/delete-execution.md b/docs/examples/1.5.x/server-deno/examples/functions/delete-execution.md new file mode 100644 index 00000000000..1785a0ed9ee --- /dev/null +++ b/docs/examples/1.5.x/server-deno/examples/functions/delete-execution.md @@ -0,0 +1,13 @@ +import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new Functions(client); + +const response = await functions.deleteExecution( + '<FUNCTION_ID>', // functionId + '<EXECUTION_ID>' // executionId +); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/delete-variable.md b/docs/examples/1.5.x/server-deno/examples/functions/delete-variable.md index 5694a5fb457..c4786ffe21d 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/delete-variable.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/delete-variable.md @@ -2,8 +2,8 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/delete.md b/docs/examples/1.5.x/server-deno/examples/functions/delete.md index a56e5e23e36..7155610689f 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/delete.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/delete.md @@ -2,8 +2,8 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/download-deployment.md b/docs/examples/1.5.x/server-deno/examples/functions/download-deployment.md index 5697c5e2193..5af14f27080 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/download-deployment.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/download-deployment.md b/docs/examples/1.5.x/server-deno/examples/functions/get-deployment-download.md similarity index 89% rename from docs/examples/1.6.x/server-deno/examples/functions/download-deployment.md rename to docs/examples/1.5.x/server-deno/examples/functions/get-deployment-download.md index bb0a4e71b45..c619208b501 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/get-deployment-download.md @@ -7,7 +7,7 @@ const client = new Client() const functions = new Functions(client); -const result = functions.downloadDeployment( +const result = functions.getDeploymentDownload( '<FUNCTION_ID>', // functionId '<DEPLOYMENT_ID>' // deploymentId ); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/get-deployment.md b/docs/examples/1.5.x/server-deno/examples/functions/get-deployment.md index 30426da2dc8..50e4cc50c06 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/get-deployment.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/get-deployment.md @@ -2,8 +2,8 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/get-execution.md b/docs/examples/1.5.x/server-deno/examples/functions/get-execution.md index 7007f79f4a7..af68d743605 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/get-execution.md @@ -2,7 +2,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/get-variable.md b/docs/examples/1.5.x/server-deno/examples/functions/get-variable.md index ba335cb50df..2352321bff4 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/get-variable.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/get-variable.md @@ -2,8 +2,8 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/get.md b/docs/examples/1.5.x/server-deno/examples/functions/get.md index 1f76c2af332..f90767de19d 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/get.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/get.md @@ -2,8 +2,8 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/list-deployments.md b/docs/examples/1.5.x/server-deno/examples/functions/list-deployments.md index ec89f55cb7f..2f4c345de22 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/list-deployments.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/list-deployments.md @@ -2,8 +2,8 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/list-executions.md b/docs/examples/1.5.x/server-deno/examples/functions/list-executions.md index 1d497a258ba..b8ce31703e6 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/list-executions.md @@ -2,7 +2,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/list-runtimes.md b/docs/examples/1.5.x/server-deno/examples/functions/list-runtimes.md index 67a3e9ac894..f78dfd03e73 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/list-runtimes.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/list-runtimes.md @@ -2,8 +2,8 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); diff --git a/docs/examples/1.6.x/server-deno/examples/functions/get-template.md b/docs/examples/1.5.x/server-deno/examples/functions/list-specifications.md similarity index 56% rename from docs/examples/1.6.x/server-deno/examples/functions/get-template.md rename to docs/examples/1.5.x/server-deno/examples/functions/list-specifications.md index 7a58c95a348..5dff4354ee4 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/get-template.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/list-specifications.md @@ -2,10 +2,9 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); -const response = await functions.getTemplate( - '<TEMPLATE_ID>' // templateId -); +const response = await functions.listSpecifications(); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/list-variables.md b/docs/examples/1.5.x/server-deno/examples/functions/list-variables.md index edcb4d48889..991292aac1c 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/list-variables.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/list-variables.md @@ -2,8 +2,8 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/list.md b/docs/examples/1.5.x/server-deno/examples/functions/list.md index 7cbcb0b1f77..6d1e09ba525 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/list.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/list.md @@ -2,8 +2,8 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/update-deployment-build.md b/docs/examples/1.5.x/server-deno/examples/functions/update-deployment-build.md new file mode 100644 index 00000000000..65ea3a97e6e --- /dev/null +++ b/docs/examples/1.5.x/server-deno/examples/functions/update-deployment-build.md @@ -0,0 +1,13 @@ +import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new Functions(client); + +const response = await functions.updateDeploymentBuild( + '<FUNCTION_ID>', // functionId + '<DEPLOYMENT_ID>' // deploymentId +); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/update-deployment.md b/docs/examples/1.5.x/server-deno/examples/functions/update-deployment.md index 95fd45046cd..87af2f34bfd 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/update-deployment.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/update-deployment.md @@ -2,8 +2,8 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/update-variable.md b/docs/examples/1.5.x/server-deno/examples/functions/update-variable.md index 4f4d6a5836d..5213a92ee82 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/update-variable.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/update-variable.md @@ -2,8 +2,8 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-deno/examples/functions/update.md b/docs/examples/1.5.x/server-deno/examples/functions/update.md index 1e6f385e2be..ab275257dbe 100644 --- a/docs/examples/1.5.x/server-deno/examples/functions/update.md +++ b/docs/examples/1.5.x/server-deno/examples/functions/update.md @@ -2,8 +2,8 @@ import { Client, Functions, } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new Functions(client); @@ -19,9 +19,11 @@ const response = await functions.update( false, // logging (optional) '<ENTRYPOINT>', // entrypoint (optional) '<COMMANDS>', // commands (optional) + [], // scopes (optional) '<INSTALLATION_ID>', // installationId (optional) '<PROVIDER_REPOSITORY_ID>', // providerRepositoryId (optional) '<PROVIDER_BRANCH>', // providerBranch (optional) false, // providerSilentMode (optional) - '<PROVIDER_ROOT_DIRECTORY>' // providerRootDirectory (optional) + '<PROVIDER_ROOT_DIRECTORY>', // providerRootDirectory (optional) + '' // specification (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/graphql/mutation.md b/docs/examples/1.5.x/server-deno/examples/graphql/mutation.md index a0ff9dd8662..68c06aa4e41 100644 --- a/docs/examples/1.5.x/server-deno/examples/graphql/mutation.md +++ b/docs/examples/1.5.x/server-deno/examples/graphql/mutation.md @@ -2,8 +2,8 @@ import { Client, Graphql } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const graphql = new Graphql(client); diff --git a/docs/examples/1.5.x/server-deno/examples/graphql/query.md b/docs/examples/1.5.x/server-deno/examples/graphql/query.md index ecec1c4c0cc..480c481f9cc 100644 --- a/docs/examples/1.5.x/server-deno/examples/graphql/query.md +++ b/docs/examples/1.5.x/server-deno/examples/graphql/query.md @@ -2,8 +2,8 @@ import { Client, Graphql } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const graphql = new Graphql(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-antivirus.md b/docs/examples/1.5.x/server-deno/examples/health/get-antivirus.md index 81142669b6e..ccf2968dd84 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-antivirus.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-antivirus.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-cache.md b/docs/examples/1.5.x/server-deno/examples/health/get-cache.md index 45d4464f3b7..2811f017a7c 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-cache.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-cache.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-certificate.md b/docs/examples/1.5.x/server-deno/examples/health/get-certificate.md index dc456022c32..5bde913750c 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-certificate.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-certificate.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-d-b.md b/docs/examples/1.5.x/server-deno/examples/health/get-d-b.md index 36f5a67ef1f..598c163b447 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-d-b.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-d-b.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-failed-jobs.md b/docs/examples/1.5.x/server-deno/examples/health/get-failed-jobs.md index 0057bbb985d..dd44711e5e1 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-failed-jobs.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-failed-jobs.md @@ -2,8 +2,8 @@ import { Client, Health, } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-pub-sub.md b/docs/examples/1.5.x/server-deno/examples/health/get-pub-sub.md index afa519e0613..9ecda7d32ac 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-pub-sub.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-pub-sub.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-queue-builds.md b/docs/examples/1.5.x/server-deno/examples/health/get-queue-builds.md index 6d1c88ef7f8..3b05fe66c3f 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-queue-builds.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-queue-builds.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-queue-certificates.md b/docs/examples/1.5.x/server-deno/examples/health/get-queue-certificates.md index d7c0a2406f9..73139a0806c 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-queue-certificates.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-queue-certificates.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-queue-databases.md b/docs/examples/1.5.x/server-deno/examples/health/get-queue-databases.md index fb98bbaa46c..9130cb8c349 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-queue-databases.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-queue-databases.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-queue-deletes.md b/docs/examples/1.5.x/server-deno/examples/health/get-queue-deletes.md index 9e2a530b77c..967e27d4a75 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-queue-deletes.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-queue-deletes.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-queue-functions.md b/docs/examples/1.5.x/server-deno/examples/health/get-queue-functions.md index 811efb334c5..a621d140a1c 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-queue-functions.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-queue-functions.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-queue-logs.md b/docs/examples/1.5.x/server-deno/examples/health/get-queue-logs.md index 17f62087358..7443b04fc49 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-queue-logs.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-queue-logs.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-queue-mails.md b/docs/examples/1.5.x/server-deno/examples/health/get-queue-mails.md index 26b58fb485e..f794deb8add 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-queue-mails.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-queue-mails.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-queue-messaging.md b/docs/examples/1.5.x/server-deno/examples/health/get-queue-messaging.md index 0198dce3dae..f04652e5978 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-queue-messaging.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-queue-messaging.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-queue-migrations.md b/docs/examples/1.5.x/server-deno/examples/health/get-queue-migrations.md index 5dfa6ea416e..5b3ba573511 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-queue-migrations.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-queue-migrations.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-queue-stats-resources.md b/docs/examples/1.5.x/server-deno/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..03f48beb658 --- /dev/null +++ b/docs/examples/1.5.x/server-deno/examples/health/get-queue-stats-resources.md @@ -0,0 +1,12 @@ +import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new Health(client); + +const response = await health.getQueueStatsResources( + null // threshold (optional) +); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-queue-usage-dump.md b/docs/examples/1.5.x/server-deno/examples/health/get-queue-usage-dump.md index ccc5c1eb7c4..3e650b63fbd 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-queue-usage-dump.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-queue-usage.md b/docs/examples/1.5.x/server-deno/examples/health/get-queue-usage.md index 7c83e593334..54dc92f7fd2 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-queue-usage.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-queue-usage.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-queue-webhooks.md b/docs/examples/1.5.x/server-deno/examples/health/get-queue-webhooks.md index 600d477bf1a..b1c8b54665a 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-queue-webhooks.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-queue.md b/docs/examples/1.5.x/server-deno/examples/health/get-queue.md index 013c93ebda3..2349c8f007a 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-queue.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-queue.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-storage-local.md b/docs/examples/1.5.x/server-deno/examples/health/get-storage-local.md index dd711319296..afffff6e1d2 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-storage-local.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-storage-local.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-storage.md b/docs/examples/1.5.x/server-deno/examples/health/get-storage.md index ee7d34cb833..c7fe4358c9b 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-storage.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-storage.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get-time.md b/docs/examples/1.5.x/server-deno/examples/health/get-time.md index 4d26bdab6dc..658ce30624f 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get-time.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get-time.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/health/get.md b/docs/examples/1.5.x/server-deno/examples/health/get.md index d3e4b20ec18..4483f9595ed 100644 --- a/docs/examples/1.5.x/server-deno/examples/health/get.md +++ b/docs/examples/1.5.x/server-deno/examples/health/get.md @@ -2,8 +2,8 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new Health(client); diff --git a/docs/examples/1.5.x/server-deno/examples/locale/get.md b/docs/examples/1.5.x/server-deno/examples/locale/get.md index f931ae48552..5d52acb3863 100644 --- a/docs/examples/1.5.x/server-deno/examples/locale/get.md +++ b/docs/examples/1.5.x/server-deno/examples/locale/get.md @@ -2,7 +2,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-deno/examples/locale/list-codes.md b/docs/examples/1.5.x/server-deno/examples/locale/list-codes.md index 93dedef2770..bed3b4cd814 100644 --- a/docs/examples/1.5.x/server-deno/examples/locale/list-codes.md +++ b/docs/examples/1.5.x/server-deno/examples/locale/list-codes.md @@ -2,7 +2,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-deno/examples/locale/list-continents.md b/docs/examples/1.5.x/server-deno/examples/locale/list-continents.md index 985b654171e..61b53851cd2 100644 --- a/docs/examples/1.5.x/server-deno/examples/locale/list-continents.md +++ b/docs/examples/1.5.x/server-deno/examples/locale/list-continents.md @@ -2,7 +2,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-deno/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/server-deno/examples/locale/list-countries-e-u.md index 311ef653d75..231c2f7f8b0 100644 --- a/docs/examples/1.5.x/server-deno/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/server-deno/examples/locale/list-countries-e-u.md @@ -2,7 +2,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-deno/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/server-deno/examples/locale/list-countries-phones.md index c732edaa6cf..34be4cb8da5 100644 --- a/docs/examples/1.5.x/server-deno/examples/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/server-deno/examples/locale/list-countries-phones.md @@ -2,7 +2,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-deno/examples/locale/list-countries.md b/docs/examples/1.5.x/server-deno/examples/locale/list-countries.md index 73b530cbf0a..dfa085b0a19 100644 --- a/docs/examples/1.5.x/server-deno/examples/locale/list-countries.md +++ b/docs/examples/1.5.x/server-deno/examples/locale/list-countries.md @@ -2,7 +2,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-deno/examples/locale/list-currencies.md b/docs/examples/1.5.x/server-deno/examples/locale/list-currencies.md index 942622c6968..0c809286899 100644 --- a/docs/examples/1.5.x/server-deno/examples/locale/list-currencies.md +++ b/docs/examples/1.5.x/server-deno/examples/locale/list-currencies.md @@ -2,7 +2,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-deno/examples/locale/list-languages.md b/docs/examples/1.5.x/server-deno/examples/locale/list-languages.md index e96ccc27cc2..8625649350b 100644 --- a/docs/examples/1.5.x/server-deno/examples/locale/list-languages.md +++ b/docs/examples/1.5.x/server-deno/examples/locale/list-languages.md @@ -2,7 +2,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-a-p-n-s-provider.md index c0b89623846..e0c8f57e3e4 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-a-p-n-s-provider.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-apns-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-apns-provider.md index 8a1c6b57cdc..8b890925649 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-apns-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-email.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-email.md index 28609fb9049..552e9e3ed42 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-email.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-email.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-f-c-m-provider.md index 1bec150514a..b152b3b13d3 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-f-c-m-provider.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-fcm-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-fcm-provider.md index e3b773f7000..bd9f0756c8f 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-fcm-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-mailgun-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-mailgun-provider.md index 0ede7b6ec70..3192bb2567b 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-mailgun-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-msg91provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-msg91provider.md index 86dbbf4533b..bd6b0304ad3 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-msg91provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-push.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-push.md index 28fe84dcdd6..7b419119189 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-push.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-push.md @@ -1,16 +1,16 @@ -import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; +import { Client, Messaging, MessagePriority } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); const response = await messaging.createPush( '<MESSAGE_ID>', // messageId - '<TITLE>', // title - '<BODY>', // body + '<TITLE>', // title (optional) + '<BODY>', // body (optional) [], // topics (optional) [], // users (optional) [], // targets (optional) @@ -21,7 +21,10 @@ const response = await messaging.createPush( '<SOUND>', // sound (optional) '<COLOR>', // color (optional) '<TAG>', // tag (optional) - '<BADGE>', // badge (optional) + null, // badge (optional) false, // draft (optional) - '' // scheduledAt (optional) + '', // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + MessagePriority.Normal // priority (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-s-m-s.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-s-m-s.md index a49c4d7548a..d6c031caa68 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-s-m-s.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-s-m-s.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-s-m-t-p-provider.md index a48fc40d908..4b0f64d820b 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-s-m-t-p-provider.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-sendgrid-provider.md index fe0a791822a..c6d4e2a8ee4 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-sendgrid-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-sms.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-sms.md index 13fb9f5bfcf..c316ea5ac14 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-sms.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-sms.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-smtp-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-smtp-provider.md index 613045f18c7..c1fb9ece507 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-smtp-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging, SmtpEncryption } from "https://deno.land/x/appwrite/ const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-subscriber.md index daa6ce230aa..26d7a97175e 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-subscriber.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...'); // Your secret JSON Web Token + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-telesign-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-telesign-provider.md index f3da859c2b2..391483a8af0 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-telesign-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-textmagic-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-textmagic-provider.md index eca653d8673..934372f82f5 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-textmagic-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-topic.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-topic.md index 0f01817886d..75d1103e5ed 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-topic.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-topic.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-twilio-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-twilio-provider.md index b72935429a1..ee17992c719 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-twilio-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/create-vonage-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/create-vonage-provider.md index 6236cb6df9a..3e8dd36ec7a 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/create-vonage-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/delete-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/delete-provider.md index 26408a48fdc..8ade1615f3d 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/delete-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/delete-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/server-deno/examples/messaging/delete-subscriber.md index 5f789a4b18d..1df31754608 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/delete-subscriber.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...'); // Your secret JSON Web Token + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/delete-topic.md b/docs/examples/1.5.x/server-deno/examples/messaging/delete-topic.md index ec26f943e81..fb50be8d5e7 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/delete-topic.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/delete-topic.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/delete.md b/docs/examples/1.5.x/server-deno/examples/messaging/delete.md index d3245403154..edd34565976 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/delete.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/delete.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/get-message.md b/docs/examples/1.5.x/server-deno/examples/messaging/get-message.md index f6030180d88..42d46131aa4 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/get-message.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/get-message.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/get-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/get-provider.md index ad1d7abd756..fe444769344 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/get-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/get-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/get-subscriber.md b/docs/examples/1.5.x/server-deno/examples/messaging/get-subscriber.md index 518bf48f81d..abfc167056b 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/get-subscriber.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/get-subscriber.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/get-topic.md b/docs/examples/1.5.x/server-deno/examples/messaging/get-topic.md index 2079f367300..0e104881162 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/get-topic.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/get-topic.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/list-message-logs.md b/docs/examples/1.5.x/server-deno/examples/messaging/list-message-logs.md index ca72b3a5137..b9424fa7cc2 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/list-message-logs.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/list-message-logs.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/list-messages.md b/docs/examples/1.5.x/server-deno/examples/messaging/list-messages.md index 27d2fb9b4e2..159d61b5853 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/list-messages.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/list-messages.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/list-provider-logs.md b/docs/examples/1.5.x/server-deno/examples/messaging/list-provider-logs.md index f29af3a82a3..af33244a7d5 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/list-provider-logs.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/list-providers.md b/docs/examples/1.5.x/server-deno/examples/messaging/list-providers.md index 1a6ae91db9b..8aa51c4474f 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/list-providers.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/list-providers.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/list-subscriber-logs.md b/docs/examples/1.5.x/server-deno/examples/messaging/list-subscriber-logs.md index b1c096baa2f..036b69af0a7 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/list-subscriber-logs.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/list-subscribers.md b/docs/examples/1.5.x/server-deno/examples/messaging/list-subscribers.md index 622f68c23f2..bc820a4283b 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/list-subscribers.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/list-subscribers.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/list-targets.md b/docs/examples/1.5.x/server-deno/examples/messaging/list-targets.md index 9399c490e5b..f2e7d470587 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/list-targets.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/list-targets.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/list-topic-logs.md b/docs/examples/1.5.x/server-deno/examples/messaging/list-topic-logs.md index cb5c46d2349..bb57ea99ea3 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/list-topic-logs.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/list-topics.md b/docs/examples/1.5.x/server-deno/examples/messaging/list-topics.md index 1992fd76f1d..4933b229fe4 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/list-topics.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/list-topics.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-a-p-n-s-provider.md index 483fafdfbfd..c510a1b2daf 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-a-p-n-s-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-apns-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-apns-provider.md index 0db3da40ba0..1786ad44bae 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-apns-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-email.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-email.md index a54d7f40d77..534bc3f2f30 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-email.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-email.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-f-c-m-provider.md index 1379d6e8b59..e4c33609687 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-f-c-m-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-fcm-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-fcm-provider.md index 15cb41fbc36..f9d1533d5f6 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-fcm-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-mailgun-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-mailgun-provider.md index 62efe62bc4e..7de8939ff5a 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-mailgun-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-msg91provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-msg91provider.md index c5e222f42e8..5cbb3d9a740 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-msg91provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-push.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-push.md index a6ae3c079e4..11437fabe1f 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-push.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-push.md @@ -1,9 +1,9 @@ -import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; +import { Client, Messaging, MessagePriority } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); @@ -23,5 +23,8 @@ const response = await messaging.updatePush( '<TAG>', // tag (optional) null, // badge (optional) false, // draft (optional) - '' // scheduledAt (optional) + '', // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + MessagePriority.Normal // priority (optional) ); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-s-m-s.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-s-m-s.md index 627f06b9b0e..0f36d1e29c1 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-s-m-s.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-s-m-s.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-s-m-t-p-provider.md index d16d988be9b..e3281cdc4e7 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-s-m-t-p-provider.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-sendgrid-provider.md index 64709e2b965..66dffb18f9d 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-sendgrid-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-sms.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-sms.md index dc4da7ed932..a027f1dda9c 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-sms.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-sms.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-smtp-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-smtp-provider.md index 78eb0dee228..6eb90cebbd1 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-smtp-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging, SmtpEncryption } from "https://deno.land/x/appwrite/ const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-telesign-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-telesign-provider.md index 531b37edb84..cc8448f5b25 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-telesign-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-textmagic-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-textmagic-provider.md index 1ae95f14534..fa12103524f 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-textmagic-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-topic.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-topic.md index ebcbd4f1063..1b60af0f377 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-topic.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-topic.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-twilio-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-twilio-provider.md index 67012cf48cc..e63a54cc116 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-twilio-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/messaging/update-vonage-provider.md b/docs/examples/1.5.x/server-deno/examples/messaging/update-vonage-provider.md index ba894cedd93..c4c68b290c8 100644 --- a/docs/examples/1.5.x/server-deno/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.5.x/server-deno/examples/messaging/update-vonage-provider.md @@ -2,8 +2,8 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-deno/examples/storage/create-bucket.md b/docs/examples/1.5.x/server-deno/examples/storage/create-bucket.md index 69457579cca..095f390e835 100644 --- a/docs/examples/1.5.x/server-deno/examples/storage/create-bucket.md +++ b/docs/examples/1.5.x/server-deno/examples/storage/create-bucket.md @@ -2,8 +2,8 @@ import { Client, Storage, } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-deno/examples/storage/create-file.md b/docs/examples/1.5.x/server-deno/examples/storage/create-file.md index 6f52c9bb609..9a420bb65c7 100644 --- a/docs/examples/1.5.x/server-deno/examples/storage/create-file.md +++ b/docs/examples/1.5.x/server-deno/examples/storage/create-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-deno/examples/storage/delete-bucket.md b/docs/examples/1.5.x/server-deno/examples/storage/delete-bucket.md index 78a652e00e0..eafb60eb772 100644 --- a/docs/examples/1.5.x/server-deno/examples/storage/delete-bucket.md +++ b/docs/examples/1.5.x/server-deno/examples/storage/delete-bucket.md @@ -2,8 +2,8 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-deno/examples/storage/delete-file.md b/docs/examples/1.5.x/server-deno/examples/storage/delete-file.md index 684f719adc5..554dbeb4cde 100644 --- a/docs/examples/1.5.x/server-deno/examples/storage/delete-file.md +++ b/docs/examples/1.5.x/server-deno/examples/storage/delete-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-deno/examples/storage/get-bucket.md b/docs/examples/1.5.x/server-deno/examples/storage/get-bucket.md index fcf34962e9d..1e0107edb8f 100644 --- a/docs/examples/1.5.x/server-deno/examples/storage/get-bucket.md +++ b/docs/examples/1.5.x/server-deno/examples/storage/get-bucket.md @@ -2,8 +2,8 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-deno/examples/storage/get-file-download.md b/docs/examples/1.5.x/server-deno/examples/storage/get-file-download.md index 10c4030c950..b3612f297db 100644 --- a/docs/examples/1.5.x/server-deno/examples/storage/get-file-download.md +++ b/docs/examples/1.5.x/server-deno/examples/storage/get-file-download.md @@ -2,7 +2,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-deno/examples/storage/get-file-preview.md b/docs/examples/1.5.x/server-deno/examples/storage/get-file-preview.md index 9eb85502bb7..d1a91c25aac 100644 --- a/docs/examples/1.5.x/server-deno/examples/storage/get-file-preview.md +++ b/docs/examples/1.5.x/server-deno/examples/storage/get-file-preview.md @@ -2,7 +2,7 @@ import { Client, Storage, ImageGravity, ImageFormat } from "https://deno.land/x/ const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-deno/examples/storage/get-file-view.md b/docs/examples/1.5.x/server-deno/examples/storage/get-file-view.md index 4e1605c223f..14e28a07b7a 100644 --- a/docs/examples/1.5.x/server-deno/examples/storage/get-file-view.md +++ b/docs/examples/1.5.x/server-deno/examples/storage/get-file-view.md @@ -2,7 +2,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-deno/examples/storage/get-file.md b/docs/examples/1.5.x/server-deno/examples/storage/get-file.md index 6cc3423dae4..0ad049a0414 100644 --- a/docs/examples/1.5.x/server-deno/examples/storage/get-file.md +++ b/docs/examples/1.5.x/server-deno/examples/storage/get-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-deno/examples/storage/list-buckets.md b/docs/examples/1.5.x/server-deno/examples/storage/list-buckets.md index c52da7dccee..667f65f87d7 100644 --- a/docs/examples/1.5.x/server-deno/examples/storage/list-buckets.md +++ b/docs/examples/1.5.x/server-deno/examples/storage/list-buckets.md @@ -2,8 +2,8 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-deno/examples/storage/list-files.md b/docs/examples/1.5.x/server-deno/examples/storage/list-files.md index e569eb4ff57..7d18165f336 100644 --- a/docs/examples/1.5.x/server-deno/examples/storage/list-files.md +++ b/docs/examples/1.5.x/server-deno/examples/storage/list-files.md @@ -2,7 +2,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-deno/examples/storage/update-bucket.md b/docs/examples/1.5.x/server-deno/examples/storage/update-bucket.md index 9adb0232370..7af2c1a6a54 100644 --- a/docs/examples/1.5.x/server-deno/examples/storage/update-bucket.md +++ b/docs/examples/1.5.x/server-deno/examples/storage/update-bucket.md @@ -2,8 +2,8 @@ import { Client, Storage, } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-deno/examples/storage/update-file.md b/docs/examples/1.5.x/server-deno/examples/storage/update-file.md index ca3f4762595..153ce08071e 100644 --- a/docs/examples/1.5.x/server-deno/examples/storage/update-file.md +++ b/docs/examples/1.5.x/server-deno/examples/storage/update-file.md @@ -2,7 +2,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-deno/examples/teams/create-membership.md b/docs/examples/1.5.x/server-deno/examples/teams/create-membership.md index 1b4a56ec745..69465f5efa4 100644 --- a/docs/examples/1.5.x/server-deno/examples/teams/create-membership.md +++ b/docs/examples/1.5.x/server-deno/examples/teams/create-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-deno/examples/teams/create.md b/docs/examples/1.5.x/server-deno/examples/teams/create.md index d8a6f9db97a..abcc0fd6aa9 100644 --- a/docs/examples/1.5.x/server-deno/examples/teams/create.md +++ b/docs/examples/1.5.x/server-deno/examples/teams/create.md @@ -2,7 +2,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-deno/examples/teams/delete-membership.md b/docs/examples/1.5.x/server-deno/examples/teams/delete-membership.md index 890a36da3dc..a2a4807922a 100644 --- a/docs/examples/1.5.x/server-deno/examples/teams/delete-membership.md +++ b/docs/examples/1.5.x/server-deno/examples/teams/delete-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-deno/examples/teams/delete.md b/docs/examples/1.5.x/server-deno/examples/teams/delete.md index 2384672340b..05d35f0cbf8 100644 --- a/docs/examples/1.5.x/server-deno/examples/teams/delete.md +++ b/docs/examples/1.5.x/server-deno/examples/teams/delete.md @@ -2,7 +2,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-deno/examples/teams/get-membership.md b/docs/examples/1.5.x/server-deno/examples/teams/get-membership.md index b6ee8e06201..9f9722ebde5 100644 --- a/docs/examples/1.5.x/server-deno/examples/teams/get-membership.md +++ b/docs/examples/1.5.x/server-deno/examples/teams/get-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-deno/examples/teams/get-prefs.md b/docs/examples/1.5.x/server-deno/examples/teams/get-prefs.md index 26940f00544..d741911586c 100644 --- a/docs/examples/1.5.x/server-deno/examples/teams/get-prefs.md +++ b/docs/examples/1.5.x/server-deno/examples/teams/get-prefs.md @@ -2,7 +2,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-deno/examples/teams/get.md b/docs/examples/1.5.x/server-deno/examples/teams/get.md index 8c822adbe1c..f5d7c12a86d 100644 --- a/docs/examples/1.5.x/server-deno/examples/teams/get.md +++ b/docs/examples/1.5.x/server-deno/examples/teams/get.md @@ -2,7 +2,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-deno/examples/teams/list-memberships.md b/docs/examples/1.5.x/server-deno/examples/teams/list-memberships.md index 7a5e26e402d..01988a7d17f 100644 --- a/docs/examples/1.5.x/server-deno/examples/teams/list-memberships.md +++ b/docs/examples/1.5.x/server-deno/examples/teams/list-memberships.md @@ -2,7 +2,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-deno/examples/teams/list.md b/docs/examples/1.5.x/server-deno/examples/teams/list.md index 03c8d0e3517..dd295a013a1 100644 --- a/docs/examples/1.5.x/server-deno/examples/teams/list.md +++ b/docs/examples/1.5.x/server-deno/examples/teams/list.md @@ -2,7 +2,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-deno/examples/teams/update-membership-status.md b/docs/examples/1.5.x/server-deno/examples/teams/update-membership-status.md index 7692eed29af..349ae6d12d1 100644 --- a/docs/examples/1.5.x/server-deno/examples/teams/update-membership-status.md +++ b/docs/examples/1.5.x/server-deno/examples/teams/update-membership-status.md @@ -2,7 +2,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-deno/examples/teams/update-membership.md b/docs/examples/1.5.x/server-deno/examples/teams/update-membership.md index 67e4d80b097..0f03ecb8dd7 100644 --- a/docs/examples/1.5.x/server-deno/examples/teams/update-membership.md +++ b/docs/examples/1.5.x/server-deno/examples/teams/update-membership.md @@ -2,7 +2,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-deno/examples/teams/update-name.md b/docs/examples/1.5.x/server-deno/examples/teams/update-name.md index faaf1e6e8f0..4e678ea881f 100644 --- a/docs/examples/1.5.x/server-deno/examples/teams/update-name.md +++ b/docs/examples/1.5.x/server-deno/examples/teams/update-name.md @@ -2,7 +2,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-deno/examples/teams/update-prefs.md b/docs/examples/1.5.x/server-deno/examples/teams/update-prefs.md index 1638b068599..9d11a5dd38a 100644 --- a/docs/examples/1.5.x/server-deno/examples/teams/update-prefs.md +++ b/docs/examples/1.5.x/server-deno/examples/teams/update-prefs.md @@ -2,7 +2,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/create-argon2user.md b/docs/examples/1.5.x/server-deno/examples/users/create-argon2user.md index 178fadb1a5f..1dec8dc5c1e 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/create-argon2user.md +++ b/docs/examples/1.5.x/server-deno/examples/users/create-argon2user.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/create-bcrypt-user.md b/docs/examples/1.5.x/server-deno/examples/users/create-bcrypt-user.md index 5787a4e0370..a57d1aeaa88 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.5.x/server-deno/examples/users/create-bcrypt-user.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/create-j-w-t.md b/docs/examples/1.5.x/server-deno/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..bc5205d0066 --- /dev/null +++ b/docs/examples/1.5.x/server-deno/examples/users/create-j-w-t.md @@ -0,0 +1,14 @@ +import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new Users(client); + +const response = await users.createJWT( + '<USER_ID>', // userId + '<SESSION_ID>', // sessionId (optional) + 0 // duration (optional) +); diff --git a/docs/examples/1.5.x/server-deno/examples/users/create-m-d5user.md b/docs/examples/1.5.x/server-deno/examples/users/create-m-d5user.md index 5cdde635f99..095d19f758b 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/create-m-d5user.md +++ b/docs/examples/1.5.x/server-deno/examples/users/create-m-d5user.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-deno/examples/users/create-mfa-recovery-codes.md index 350ae3cc809..da3741a14ab 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-deno/examples/users/create-mfa-recovery-codes.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/create-p-h-pass-user.md b/docs/examples/1.5.x/server-deno/examples/users/create-p-h-pass-user.md index baf2f656375..d3ada293783 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.5.x/server-deno/examples/users/create-p-h-pass-user.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/create-s-h-a-user.md b/docs/examples/1.5.x/server-deno/examples/users/create-s-h-a-user.md index 995c970f3cb..0d63f1b29c2 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.5.x/server-deno/examples/users/create-s-h-a-user.md @@ -2,8 +2,8 @@ import { Client, Users, PasswordHash } from "https://deno.land/x/appwrite/mod.ts const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/create-scrypt-modified-user.md b/docs/examples/1.5.x/server-deno/examples/users/create-scrypt-modified-user.md index dfeff7cf4ec..0ee061e743e 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.5.x/server-deno/examples/users/create-scrypt-modified-user.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/create-scrypt-user.md b/docs/examples/1.5.x/server-deno/examples/users/create-scrypt-user.md index 75d4738240b..fcf42316134 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/create-scrypt-user.md +++ b/docs/examples/1.5.x/server-deno/examples/users/create-scrypt-user.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/create-session.md b/docs/examples/1.5.x/server-deno/examples/users/create-session.md index 1e95dc70941..07c1623a614 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/create-session.md +++ b/docs/examples/1.5.x/server-deno/examples/users/create-session.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/create-target.md b/docs/examples/1.5.x/server-deno/examples/users/create-target.md index ae63ba659d4..82a44f938a9 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/create-target.md +++ b/docs/examples/1.5.x/server-deno/examples/users/create-target.md @@ -2,8 +2,8 @@ import { Client, Users, MessagingProviderType } from "https://deno.land/x/appwri const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/create-token.md b/docs/examples/1.5.x/server-deno/examples/users/create-token.md index 705f2726f85..aa15668a799 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/create-token.md +++ b/docs/examples/1.5.x/server-deno/examples/users/create-token.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/create.md b/docs/examples/1.5.x/server-deno/examples/users/create.md index 4c1c2266b7b..cd7c5b19bd4 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/create.md +++ b/docs/examples/1.5.x/server-deno/examples/users/create.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/delete-authenticator.md b/docs/examples/1.5.x/server-deno/examples/users/delete-authenticator.md index 1165dd04ccc..fd8a9e1b69a 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/delete-authenticator.md +++ b/docs/examples/1.5.x/server-deno/examples/users/delete-authenticator.md @@ -1,7 +1,7 @@ import { Client, Users, AuthenticatorType } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-deno/examples/users/delete-identity.md b/docs/examples/1.5.x/server-deno/examples/users/delete-identity.md index 07c1466f46e..3a4280cf165 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/delete-identity.md +++ b/docs/examples/1.5.x/server-deno/examples/users/delete-identity.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-deno/examples/users/delete-mfa-authenticator.md index 26ff1785e6c..92078bbb15e 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-deno/examples/users/delete-mfa-authenticator.md @@ -2,8 +2,8 @@ import { Client, Users, AuthenticatorType } from "https://deno.land/x/appwrite/m const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/delete-session.md b/docs/examples/1.5.x/server-deno/examples/users/delete-session.md index ffc359f23f4..0f9c12b57c1 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/delete-session.md +++ b/docs/examples/1.5.x/server-deno/examples/users/delete-session.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/delete-sessions.md b/docs/examples/1.5.x/server-deno/examples/users/delete-sessions.md index 071d2e4e58c..94e2f84133a 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/delete-sessions.md +++ b/docs/examples/1.5.x/server-deno/examples/users/delete-sessions.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/delete-target.md b/docs/examples/1.5.x/server-deno/examples/users/delete-target.md index d7c0fb50ffd..ee6a280ab34 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/delete-target.md +++ b/docs/examples/1.5.x/server-deno/examples/users/delete-target.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/delete.md b/docs/examples/1.5.x/server-deno/examples/users/delete.md index e5df110290f..3c43d5a72c3 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/delete.md +++ b/docs/examples/1.5.x/server-deno/examples/users/delete.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-deno/examples/users/get-mfa-recovery-codes.md index 26145a966b5..e63ae70917b 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-deno/examples/users/get-mfa-recovery-codes.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/get-prefs.md b/docs/examples/1.5.x/server-deno/examples/users/get-prefs.md index 281a621facd..ef38e96f0e3 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/get-prefs.md +++ b/docs/examples/1.5.x/server-deno/examples/users/get-prefs.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/get-target.md b/docs/examples/1.5.x/server-deno/examples/users/get-target.md index ce0965cdccb..e3d8568cc4b 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/get-target.md +++ b/docs/examples/1.5.x/server-deno/examples/users/get-target.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/get.md b/docs/examples/1.5.x/server-deno/examples/users/get.md index 8a2e0d440d3..d5c2155e49f 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/get.md +++ b/docs/examples/1.5.x/server-deno/examples/users/get.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/list-factors.md b/docs/examples/1.5.x/server-deno/examples/users/list-factors.md index d2fac0e8a2f..dd50519acd1 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/list-factors.md +++ b/docs/examples/1.5.x/server-deno/examples/users/list-factors.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-deno/examples/users/list-identities.md b/docs/examples/1.5.x/server-deno/examples/users/list-identities.md index e4402f7b7f5..c12a37eb511 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/list-identities.md +++ b/docs/examples/1.5.x/server-deno/examples/users/list-identities.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/list-logs.md b/docs/examples/1.5.x/server-deno/examples/users/list-logs.md index 8d7f37fec71..4fc2e6091da 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/list-logs.md +++ b/docs/examples/1.5.x/server-deno/examples/users/list-logs.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/list-memberships.md b/docs/examples/1.5.x/server-deno/examples/users/list-memberships.md index ec5a57b78f0..55ca2593cbe 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/list-memberships.md +++ b/docs/examples/1.5.x/server-deno/examples/users/list-memberships.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/list-mfa-factors.md b/docs/examples/1.5.x/server-deno/examples/users/list-mfa-factors.md index 90bfba8cafc..7d368b3d374 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-deno/examples/users/list-mfa-factors.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/list-providers.md b/docs/examples/1.5.x/server-deno/examples/users/list-providers.md index d1b6a41a032..e2d795d88d7 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/list-providers.md +++ b/docs/examples/1.5.x/server-deno/examples/users/list-providers.md @@ -6,7 +6,7 @@ let client = new sdk.Client(); let users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-deno/examples/users/list-sessions.md b/docs/examples/1.5.x/server-deno/examples/users/list-sessions.md index e4b0ede6864..c425ded1e09 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/list-sessions.md +++ b/docs/examples/1.5.x/server-deno/examples/users/list-sessions.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/list-targets.md b/docs/examples/1.5.x/server-deno/examples/users/list-targets.md index c15847d1bc6..e9a26ff6b08 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/list-targets.md +++ b/docs/examples/1.5.x/server-deno/examples/users/list-targets.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/list.md b/docs/examples/1.5.x/server-deno/examples/users/list.md index f60536638c2..d4d9da33fa8 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/list.md +++ b/docs/examples/1.5.x/server-deno/examples/users/list.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/update-email-verification.md b/docs/examples/1.5.x/server-deno/examples/users/update-email-verification.md index a3684dfc2eb..76f6e443418 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/update-email-verification.md +++ b/docs/examples/1.5.x/server-deno/examples/users/update-email-verification.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/update-email.md b/docs/examples/1.5.x/server-deno/examples/users/update-email.md index 592079111a8..80b727bfa27 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/update-email.md +++ b/docs/examples/1.5.x/server-deno/examples/users/update-email.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/update-labels.md b/docs/examples/1.5.x/server-deno/examples/users/update-labels.md index 847c70a9047..c41955caa1a 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/update-labels.md +++ b/docs/examples/1.5.x/server-deno/examples/users/update-labels.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-deno/examples/users/update-mfa-recovery-codes.md index 4ce52fddc31..201ffba616c 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-deno/examples/users/update-mfa-recovery-codes.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/update-mfa.md b/docs/examples/1.5.x/server-deno/examples/users/update-mfa.md index ced8232c9f3..3f061ef366a 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/update-mfa.md +++ b/docs/examples/1.5.x/server-deno/examples/users/update-mfa.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/update-name.md b/docs/examples/1.5.x/server-deno/examples/users/update-name.md index 61042dd0f26..df53c0ffb9e 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/update-name.md +++ b/docs/examples/1.5.x/server-deno/examples/users/update-name.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/update-password.md b/docs/examples/1.5.x/server-deno/examples/users/update-password.md index cdefd18e041..451604f20b6 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/update-password.md +++ b/docs/examples/1.5.x/server-deno/examples/users/update-password.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/update-phone-verification.md b/docs/examples/1.5.x/server-deno/examples/users/update-phone-verification.md index 6bcf61f5b87..4f97a18c48f 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/update-phone-verification.md +++ b/docs/examples/1.5.x/server-deno/examples/users/update-phone-verification.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/update-phone.md b/docs/examples/1.5.x/server-deno/examples/users/update-phone.md index 54756eaa864..d0ae0d7a088 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/update-phone.md +++ b/docs/examples/1.5.x/server-deno/examples/users/update-phone.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/update-prefs.md b/docs/examples/1.5.x/server-deno/examples/users/update-prefs.md index 61cbb155bf7..81a329400c2 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/update-prefs.md +++ b/docs/examples/1.5.x/server-deno/examples/users/update-prefs.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/update-status.md b/docs/examples/1.5.x/server-deno/examples/users/update-status.md index 2bf8feeec71..5b1c9892d76 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/update-status.md +++ b/docs/examples/1.5.x/server-deno/examples/users/update-status.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-deno/examples/users/update-target.md b/docs/examples/1.5.x/server-deno/examples/users/update-target.md index a34f651575b..8a816c8df0e 100644 --- a/docs/examples/1.5.x/server-deno/examples/users/update-target.md +++ b/docs/examples/1.5.x/server-deno/examples/users/update-target.md @@ -2,8 +2,8 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/add-authenticator.md b/docs/examples/1.5.x/server-dotnet/examples/account/add-authenticator.md index 3adfaa337e1..88a10694948 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/add-authenticator.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/add-authenticator.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-anonymous-session.md index f971377fbc4..4ee42ff9118 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-anonymous-session.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2"); // Your project ID + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-challenge.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-challenge.md index 0e81524d356..d72a7c1c6be 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-challenge.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-challenge.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-email-password-session.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-email-password-session.md index 8dd10f164df..4b2331223fe 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-email-password-session.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-email-password-session.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2"); // Your project ID + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-email-token.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-email-token.md index e248e03ff66..954848e6378 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-email-token.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-email-token.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2"); // Your project ID + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-j-w-t.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-j-w-t.md index 92379f442e1..200b025191a 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-j-w-t.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-j-w-t.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2"); // Your project ID + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-magic-u-r-l-token.md index 5dd68b2d205..1a435de405b 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-magic-u-r-l-token.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2"); // Your project ID + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-mfa-authenticator.md index b2f82e19129..284f44e24ec 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-mfa-authenticator.md @@ -5,7 +5,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-mfa-challenge.md index 6781e13cd8e..5a9ac58d15c 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-mfa-challenge.md @@ -5,7 +5,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2"); // Your project ID + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-mfa-recovery-codes.md index e83eaf69bf1..647e11a5272 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-mfa-recovery-codes.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-o-auth2session.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-o-auth2session.md index 01f66a575df..d00791513ba 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-o-auth2session.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Enums; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-o-auth2token.md index d81d711a555..2936426d336 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-o-auth2token.md @@ -5,7 +5,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2"); // Your project ID + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-phone-token.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-phone-token.md index e23b25ff4ea..131f7c2e477 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-phone-token.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-phone-token.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2"); // Your project ID + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-phone-verification.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-phone-verification.md index 2497cbbbfb9..c422790e11f 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-phone-verification.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-phone-verification.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-recovery.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-recovery.md index f92c4ff8639..f50a065cd1b 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-recovery.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-recovery.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-session.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-session.md index 70d648e7d3f..0c0bfae941c 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-session.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-session.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2"); // Your project ID + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create-verification.md b/docs/examples/1.5.x/server-dotnet/examples/account/create-verification.md index ae28e9292c3..64f54f7c0ee 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create-verification.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create-verification.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create.md b/docs/examples/1.5.x/server-dotnet/examples/account/create.md index d59fe481f91..5deeb885141 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2"); // Your project ID + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/create2f-a-challenge.md b/docs/examples/1.5.x/server-dotnet/examples/account/create2f-a-challenge.md index dc9d38d0bf1..b47fe1f82b8 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/create2f-a-challenge.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Enums; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/delete-authenticator.md b/docs/examples/1.5.x/server-dotnet/examples/account/delete-authenticator.md index 4a9736ec385..f3e890820e2 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/delete-authenticator.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/delete-authenticator.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/delete-identity.md b/docs/examples/1.5.x/server-dotnet/examples/account/delete-identity.md index b0e8051cf80..c70eed79313 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/delete-identity.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/delete-identity.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-dotnet/examples/account/delete-mfa-authenticator.md index 9d99795af1c..dd36da1a349 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/delete-mfa-authenticator.md @@ -5,12 +5,11 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); await account.DeleteMfaAuthenticator( - type: AuthenticatorType.Totp, - otp: "<OTP>" + type: AuthenticatorType.Totp ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/delete-session.md b/docs/examples/1.5.x/server-dotnet/examples/account/delete-session.md index a98b8fb30b4..3be113d517a 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/delete-session.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/delete-session.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/delete-sessions.md b/docs/examples/1.5.x/server-dotnet/examples/account/delete-sessions.md index 36fa4e60015..5d7aecc2005 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/delete-sessions.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/delete-sessions.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-dotnet/examples/account/get-mfa-recovery-codes.md index 39b23bb3d34..c798ad3a483 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/get-mfa-recovery-codes.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/get-prefs.md b/docs/examples/1.5.x/server-dotnet/examples/account/get-prefs.md index e470ede66b2..0c5ee40a357 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/get-prefs.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/get-prefs.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/get-session.md b/docs/examples/1.5.x/server-dotnet/examples/account/get-session.md index a7206b6c047..82bff873880 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/get-session.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/get-session.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/get.md b/docs/examples/1.5.x/server-dotnet/examples/account/get.md index 9719ab70a19..c87f4dda16c 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/get.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/get.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/list-factors.md b/docs/examples/1.5.x/server-dotnet/examples/account/list-factors.md index 5d6075d955f..95d0b6cefec 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/list-factors.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/list-factors.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/list-identities.md b/docs/examples/1.5.x/server-dotnet/examples/account/list-identities.md index dc2d94d4133..6d94a157449 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/list-identities.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/list-identities.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/list-logs.md b/docs/examples/1.5.x/server-dotnet/examples/account/list-logs.md index 50bf7c75df4..f4c20fa38b8 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/list-logs.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/list-logs.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/server-dotnet/examples/account/list-mfa-factors.md index 1117668ee6a..f6ef37882a7 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/list-mfa-factors.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/list-sessions.md b/docs/examples/1.5.x/server-dotnet/examples/account/list-sessions.md index 75ab1bfab94..e6d634b1201 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/list-sessions.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/list-sessions.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-challenge.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-challenge.md index e49a69231d7..aff706f1a8b 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-challenge.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-challenge.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-email.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-email.md index 98afbe531db..c7934f8d192 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-email.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-email.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-m-f-a.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-m-f-a.md index 0e259985777..7cee1ad712d 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-m-f-a.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-magic-u-r-l-session.md index 41b912f4f83..5ecf64f74f4 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-magic-u-r-l-session.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2"); // Your project ID + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-mfa-authenticator.md index 8da8027ada8..ac8ce0631fa 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-mfa-authenticator.md @@ -5,7 +5,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-mfa-challenge.md index 333161462dc..ec32f8c9007 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-mfa-challenge.md @@ -4,12 +4,12 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); - result = await account.UpdateMfaChallenge( +Session result = await account.UpdateMfaChallenge( challengeId: "<CHALLENGE_ID>", otp: "<OTP>" ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-mfa-recovery-codes.md index 003a96372bd..1e031e9c196 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-mfa-recovery-codes.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-name.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-name.md index 8c51112073c..e84fb9a96e2 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-name.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-name.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-password.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-password.md index e496d3e097f..e0524a6f732 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-password.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-password.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-phone-session.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-phone-session.md index 6cfcfa6e5b8..5004730502c 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-phone-session.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-phone-session.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2"); // Your project ID + .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-phone-verification.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-phone-verification.md index 7276998710f..b6b310401bb 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-phone-verification.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-phone-verification.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-phone.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-phone.md index b8354dc226e..dab96b6f6b9 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-phone.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-phone.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-prefs.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-prefs.md index c7f0347bb94..82d892d8a36 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-prefs.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-recovery.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-recovery.md index bbf309dea61..efcea1ee106 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-recovery.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-recovery.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-session.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-session.md index 43cbc2672a3..9d7eddc6d6b 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-session.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-session.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-status.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-status.md index 0a6e7547a06..9c9fc01c407 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-status.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-status.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/update-verification.md b/docs/examples/1.5.x/server-dotnet/examples/account/update-verification.md index 59f464c500f..d8cc8adedf3 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/update-verification.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/update-verification.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/account/verify-authenticator.md b/docs/examples/1.5.x/server-dotnet/examples/account/verify-authenticator.md index 47a34e0a53c..6a02dda3255 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/account/verify-authenticator.md +++ b/docs/examples/1.5.x/server-dotnet/examples/account/verify-authenticator.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-dotnet/examples/avatars/get-browser.md b/docs/examples/1.5.x/server-dotnet/examples/avatars/get-browser.md index e938d71e9ef..0fc9ac7316a 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/avatars/get-browser.md +++ b/docs/examples/1.5.x/server-dotnet/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/server-dotnet/examples/avatars/get-credit-card.md index f7b3a6a6bd6..3dc07cfc434 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/server-dotnet/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/avatars/get-favicon.md b/docs/examples/1.5.x/server-dotnet/examples/avatars/get-favicon.md index 02a60c8bcad..f7a3d9fed69 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/avatars/get-favicon.md +++ b/docs/examples/1.5.x/server-dotnet/examples/avatars/get-favicon.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/avatars/get-flag.md b/docs/examples/1.5.x/server-dotnet/examples/avatars/get-flag.md index 2abdb1b3e4b..734d7d75176 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/avatars/get-flag.md +++ b/docs/examples/1.5.x/server-dotnet/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/avatars/get-image.md b/docs/examples/1.5.x/server-dotnet/examples/avatars/get-image.md index 2026e4e9dff..942bffb258d 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/avatars/get-image.md +++ b/docs/examples/1.5.x/server-dotnet/examples/avatars/get-image.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/avatars/get-initials.md b/docs/examples/1.5.x/server-dotnet/examples/avatars/get-initials.md index e9fbf31c539..5b47eea4744 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/avatars/get-initials.md +++ b/docs/examples/1.5.x/server-dotnet/examples/avatars/get-initials.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/avatars/get-q-r.md b/docs/examples/1.5.x/server-dotnet/examples/avatars/get-q-r.md index 67f29775f18..b90ed074d11 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/avatars/get-q-r.md +++ b/docs/examples/1.5.x/server-dotnet/examples/avatars/get-q-r.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/create-boolean-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/create-boolean-attribute.md index cc470567076..0f113b05825 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/create-boolean-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/create-collection.md b/docs/examples/1.5.x/server-dotnet/examples/databases/create-collection.md index 03b7655da22..6b03dacd35e 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/create-collection.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/create-collection.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/create-datetime-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/create-datetime-attribute.md index 486985fbe9c..fac8f1b9836 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/create-datetime-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/create-document.md b/docs/examples/1.5.x/server-dotnet/examples/databases/create-document.md index 7650391f32d..438928d2dc4 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/create-document.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/create-document.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/create-email-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/create-email-attribute.md index 8bd4b34152b..640e8ee09aa 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/create-email-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/create-email-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/create-enum-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/create-enum-attribute.md index 4b14bab9e24..3b0a78764f8 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/create-enum-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/create-float-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/create-float-attribute.md index 8d6a5705846..620c451d789 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/create-float-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/create-float-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/create-index.md b/docs/examples/1.5.x/server-dotnet/examples/databases/create-index.md index 4de78eeab37..a7363f4c67e 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/create-index.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/create-index.md @@ -5,8 +5,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/create-integer-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/create-integer-attribute.md index b0a8fd0c627..3676c662f9a 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/create-integer-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/create-ip-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/create-ip-attribute.md index 42e492229f2..faad215f262 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/create-ip-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/create-relationship-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/create-relationship-attribute.md index 9c39d1fb5e0..eb10afce645 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/create-relationship-attribute.md @@ -5,8 +5,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/create-string-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/create-string-attribute.md index 45ba803a4ee..9d6aa904e55 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/create-string-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/create-string-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/create-url-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/create-url-attribute.md index 2299c937f24..9dd1913251d 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/create-url-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/create-url-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/create.md b/docs/examples/1.5.x/server-dotnet/examples/databases/create.md index f882c8d37a1..ea33e15992a 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/create.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/create.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/delete-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/delete-attribute.md index 3f1933c1e33..9e4658999f3 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/delete-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/delete-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/delete-collection.md b/docs/examples/1.5.x/server-dotnet/examples/databases/delete-collection.md index 7d3c02f2599..bd9ced02a51 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/delete-collection.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/delete-collection.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/delete-document.md b/docs/examples/1.5.x/server-dotnet/examples/databases/delete-document.md index 17b31dea72c..1c03debad5b 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/delete-document.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/delete-document.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/delete-index.md b/docs/examples/1.5.x/server-dotnet/examples/databases/delete-index.md index 3d0f6d40f66..21457ad19f5 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/delete-index.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/delete-index.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/delete.md b/docs/examples/1.5.x/server-dotnet/examples/databases/delete.md index d0ff3e48639..ddc1497c608 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/delete.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/delete.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/get-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/get-attribute.md index 5d2661160cd..5eaa11ee0a6 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/get-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/get-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/get-collection.md b/docs/examples/1.5.x/server-dotnet/examples/databases/get-collection.md index e27bd88d6a8..055d5473c6a 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/get-collection.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/get-collection.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/get-document.md b/docs/examples/1.5.x/server-dotnet/examples/databases/get-document.md index dab529aade0..51d05832f08 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/get-document.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/get-document.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/get-index.md b/docs/examples/1.5.x/server-dotnet/examples/databases/get-index.md index df36cf6e1fd..4cf44b66e20 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/get-index.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/get-index.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/get.md b/docs/examples/1.5.x/server-dotnet/examples/databases/get.md index 12252126dc3..c9278acd478 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/get.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/get.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/list-attributes.md b/docs/examples/1.5.x/server-dotnet/examples/databases/list-attributes.md index 0b4312b8096..516e3a3efa4 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/list-attributes.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/list-attributes.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/list-collections.md b/docs/examples/1.5.x/server-dotnet/examples/databases/list-collections.md index 0a50302d947..1665b449d27 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/list-collections.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/list-collections.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/list-documents.md b/docs/examples/1.5.x/server-dotnet/examples/databases/list-documents.md index 51f8f29e35a..7471d96a649 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/list-documents.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/list-documents.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/list-indexes.md b/docs/examples/1.5.x/server-dotnet/examples/databases/list-indexes.md index 1d13c81e6e1..f567ce9c8e7 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/list-indexes.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/list-indexes.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/list.md b/docs/examples/1.5.x/server-dotnet/examples/databases/list.md index c6a17397fc3..9972bda9347 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/list.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/list.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/update-boolean-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/update-boolean-attribute.md index 34765d811e8..7c435f51cec 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/update-boolean-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -14,5 +14,6 @@ AttributeBoolean result = await databases.UpdateBooleanAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: false + default: false, + newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/update-collection.md b/docs/examples/1.5.x/server-dotnet/examples/databases/update-collection.md index d73920fb644..2860ba69746 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/update-collection.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/update-collection.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/update-datetime-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/update-datetime-attribute.md index 354f9373d9c..a8208202c87 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/update-datetime-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -14,5 +14,6 @@ AttributeDatetime result = await databases.UpdateDatetimeAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "" + default: "", + newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/update-document.md b/docs/examples/1.5.x/server-dotnet/examples/databases/update-document.md index fb069fbf496..ce0aa580340 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/update-document.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/update-document.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/update-email-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/update-email-attribute.md index 498c9aa6d35..f7dde2ac2f2 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/update-email-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/update-email-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -14,5 +14,6 @@ AttributeEmail result = await databases.UpdateEmailAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "email@example.com" + default: "email@example.com", + newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/update-enum-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/update-enum-attribute.md index 4ce38fa2326..6abd3a607c0 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/update-enum-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -15,5 +15,6 @@ AttributeEnum result = await databases.UpdateEnumAttribute( key: "", elements: new List<string>(), required: false, - default: "<DEFAULT>" + default: "<DEFAULT>", + newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/update-float-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/update-float-attribute.md index 3cc29709b45..7191c51d2c0 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/update-float-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/update-float-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -14,7 +14,8 @@ AttributeFloat result = await databases.UpdateFloatAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - min: 0, - max: 0, - default: 0 + default: 0, + min: 0, // optional + max: 0, // optional + newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/update-integer-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/update-integer-attribute.md index a19090b69f8..6a261cd1092 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/update-integer-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -14,7 +14,8 @@ AttributeInteger result = await databases.UpdateIntegerAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - min: 0, - max: 0, - default: 0 + default: 0, + min: 0, // optional + max: 0, // optional + newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/update-ip-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/update-ip-attribute.md index bb5f31d6007..0be862b0048 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/update-ip-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -14,5 +14,6 @@ AttributeIp result = await databases.UpdateIpAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "" + default: "", + newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/update-relationship-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/update-relationship-attribute.md index 95f1183b10b..b49f72ccf86 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/update-relationship-attribute.md @@ -5,8 +5,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -14,5 +14,6 @@ AttributeRelationship result = await databases.UpdateRelationshipAttribute( databaseId: "<DATABASE_ID>", collectionId: "<COLLECTION_ID>", key: "", - onDelete: RelationMutate.Cascade // optional + onDelete: RelationMutate.Cascade, // optional + newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/update-string-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/update-string-attribute.md index a5930b74a08..a180815a505 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/update-string-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/update-string-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -14,5 +14,7 @@ AttributeString result = await databases.UpdateStringAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "<DEFAULT>" + default: "<DEFAULT>", + size: 1, // optional + newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/update-url-attribute.md b/docs/examples/1.5.x/server-dotnet/examples/databases/update-url-attribute.md index 35ef786d90e..30a9a6298a4 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/update-url-attribute.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/update-url-attribute.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -14,5 +14,6 @@ AttributeUrl result = await databases.UpdateUrlAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "https://example.com" + default: "https://example.com", + newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/databases/update.md b/docs/examples/1.5.x/server-dotnet/examples/databases/update.md index 8eccfe84c4d..1e55d8eccad 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/databases/update.md +++ b/docs/examples/1.5.x/server-dotnet/examples/databases/update.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/create-build.md b/docs/examples/1.5.x/server-dotnet/examples/functions/create-build.md index 4e53429ed3b..fa53854b3c6 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/create-build.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/create-build.md @@ -4,13 +4,13 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); result = await functions.CreateBuild( functionId: "<FUNCTION_ID>", deploymentId: "<DEPLOYMENT_ID>", - buildId: "<BUILD_ID>" + buildId: "<BUILD_ID>" // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/create-deployment.md b/docs/examples/1.5.x/server-dotnet/examples/functions/create-deployment.md index a2e06dc2273..7c3d4d887c6 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/create-deployment.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/create-deployment.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/create-execution.md b/docs/examples/1.5.x/server-dotnet/examples/functions/create-execution.md index c6b6db28c15..abe5454c83a 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/create-execution.md @@ -5,7 +5,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Functions functions = new Functions(client); @@ -16,5 +16,6 @@ Execution result = await functions.CreateExecution( async: false, // optional path: "<PATH>", // optional method: ExecutionMethod.GET, // optional - headers: [object] // optional + headers: [object], // optional + scheduledAt: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/create-variable.md b/docs/examples/1.5.x/server-dotnet/examples/functions/create-variable.md index 1813b57a557..2775c5b459b 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/create-variable.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/create-variable.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/create.md b/docs/examples/1.5.x/server-dotnet/examples/functions/create.md index 424b6a5351b..0ea11a8b9f4 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/create.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/create.md @@ -5,8 +5,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); @@ -22,6 +22,7 @@ Function result = await functions.Create( logging: false, // optional entrypoint: "<ENTRYPOINT>", // optional commands: "<COMMANDS>", // optional + scopes: new List<string>(), // optional installationId: "<INSTALLATION_ID>", // optional providerRepositoryId: "<PROVIDER_REPOSITORY_ID>", // optional providerBranch: "<PROVIDER_BRANCH>", // optional @@ -30,5 +31,6 @@ Function result = await functions.Create( templateRepository: "<TEMPLATE_REPOSITORY>", // optional templateOwner: "<TEMPLATE_OWNER>", // optional templateRootDirectory: "<TEMPLATE_ROOT_DIRECTORY>", // optional - templateBranch: "<TEMPLATE_BRANCH>" // optional + templateVersion: "<TEMPLATE_VERSION>", // optional + specification: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/delete-deployment.md b/docs/examples/1.5.x/server-dotnet/examples/functions/delete-deployment.md index 33b5240cc86..387383ed2b6 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/delete-deployment.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/delete-deployment.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/delete-execution.md b/docs/examples/1.5.x/server-dotnet/examples/functions/delete-execution.md new file mode 100644 index 00000000000..18bd347b705 --- /dev/null +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/delete-execution.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +await functions.DeleteExecution( + functionId: "<FUNCTION_ID>", + executionId: "<EXECUTION_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/delete-variable.md b/docs/examples/1.5.x/server-dotnet/examples/functions/delete-variable.md index 8c7782640b1..9be23cdcbed 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/delete-variable.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/delete-variable.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/delete.md b/docs/examples/1.5.x/server-dotnet/examples/functions/delete.md index d18ba2942fd..7666b624079 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/delete.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/delete.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/download-deployment.md b/docs/examples/1.5.x/server-dotnet/examples/functions/download-deployment.md index a06a70136bb..fce305f5d46 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/download-deployment.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/get-deployment-download.md b/docs/examples/1.5.x/server-dotnet/examples/functions/get-deployment-download.md new file mode 100644 index 00000000000..b67351e70ca --- /dev/null +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/get-deployment-download.md @@ -0,0 +1,15 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +byte[] result = await functions.GetDeploymentDownload( + functionId: "<FUNCTION_ID>", + deploymentId: "<DEPLOYMENT_ID>" +); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/get-deployment.md b/docs/examples/1.5.x/server-dotnet/examples/functions/get-deployment.md index 8323923165e..0fb27cc6232 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/get-deployment.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/get-deployment.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/get-execution.md b/docs/examples/1.5.x/server-dotnet/examples/functions/get-execution.md index 6ab4ec49ade..27b8f4d6207 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/get-execution.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/get-variable.md b/docs/examples/1.5.x/server-dotnet/examples/functions/get-variable.md index fcaf10dfcbd..2c897dd6489 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/get-variable.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/get-variable.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/get.md b/docs/examples/1.5.x/server-dotnet/examples/functions/get.md index a75c98e04d9..e1fdefd7fb1 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/get.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/get.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/list-deployments.md b/docs/examples/1.5.x/server-dotnet/examples/functions/list-deployments.md index 43169b61d59..d78eb6a2490 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/list-deployments.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/list-deployments.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/list-executions.md b/docs/examples/1.5.x/server-dotnet/examples/functions/list-executions.md index 6b325ca70c8..fe2b1d98acd 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/list-executions.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/list-runtimes.md b/docs/examples/1.5.x/server-dotnet/examples/functions/list-runtimes.md index f390dc5ae2a..68f34291be8 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/list-runtimes.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/list-runtimes.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/get-template.md b/docs/examples/1.5.x/server-dotnet/examples/functions/list-specifications.md similarity index 54% rename from docs/examples/1.6.x/server-dotnet/examples/functions/get-template.md rename to docs/examples/1.5.x/server-dotnet/examples/functions/list-specifications.md index f57d61a0240..21f3b1320e0 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/get-template.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/list-specifications.md @@ -4,10 +4,9 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>"); // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); -TemplateFunction result = await functions.GetTemplate( - templateId: "<TEMPLATE_ID>" -); \ No newline at end of file +SpecificationList result = await functions.ListSpecifications(); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/list-variables.md b/docs/examples/1.5.x/server-dotnet/examples/functions/list-variables.md index 3d8aec4ab3f..77f429ded09 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/list-variables.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/list-variables.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/list.md b/docs/examples/1.5.x/server-dotnet/examples/functions/list.md index 7c0cbbedb4f..a6c5511f8ad 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/list.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/list.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/download-deployment.md b/docs/examples/1.5.x/server-dotnet/examples/functions/update-deployment-build.md similarity index 87% rename from docs/examples/1.6.x/server-dotnet/examples/functions/download-deployment.md rename to docs/examples/1.5.x/server-dotnet/examples/functions/update-deployment-build.md index 83f56a8e144..3d33b61714d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/update-deployment-build.md @@ -9,7 +9,7 @@ Client client = new Client() Functions functions = new Functions(client); -byte[] result = await functions.DownloadDeployment( +Build result = await functions.UpdateDeploymentBuild( functionId: "<FUNCTION_ID>", deploymentId: "<DEPLOYMENT_ID>" ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/update-deployment.md b/docs/examples/1.5.x/server-dotnet/examples/functions/update-deployment.md index e9cf91fe674..348d01eb2bd 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/update-deployment.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/update-deployment.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/update-variable.md b/docs/examples/1.5.x/server-dotnet/examples/functions/update-variable.md index f6c52cdb4cd..fceb7587d75 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/update-variable.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/update-variable.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/functions/update.md b/docs/examples/1.5.x/server-dotnet/examples/functions/update.md index 3ac69458642..b94f5f3ebc7 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/functions/update.md +++ b/docs/examples/1.5.x/server-dotnet/examples/functions/update.md @@ -5,8 +5,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); @@ -22,9 +22,11 @@ Function result = await functions.Update( logging: false, // optional entrypoint: "<ENTRYPOINT>", // optional commands: "<COMMANDS>", // optional + scopes: new List<string>(), // optional installationId: "<INSTALLATION_ID>", // optional providerRepositoryId: "<PROVIDER_REPOSITORY_ID>", // optional providerBranch: "<PROVIDER_BRANCH>", // optional providerSilentMode: false, // optional - providerRootDirectory: "<PROVIDER_ROOT_DIRECTORY>" // optional + providerRootDirectory: "<PROVIDER_ROOT_DIRECTORY>", // optional + specification: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/graphql/mutation.md b/docs/examples/1.5.x/server-dotnet/examples/graphql/mutation.md index 7fa2d634871..5fb0f9a1908 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/graphql/mutation.md +++ b/docs/examples/1.5.x/server-dotnet/examples/graphql/mutation.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/graphql/query.md b/docs/examples/1.5.x/server-dotnet/examples/graphql/query.md index 74b57d18b27..e1f6f859db2 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/graphql/query.md +++ b/docs/examples/1.5.x/server-dotnet/examples/graphql/query.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-antivirus.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-antivirus.md index 63852498d16..674e0e70f20 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-antivirus.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-antivirus.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-cache.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-cache.md index 2afc5220b28..d61e2207945 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-cache.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-cache.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-certificate.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-certificate.md index 5c7df9cb79b..de536fd9ddb 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-certificate.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-certificate.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-d-b.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-d-b.md index cdcdbaa2148..8c1bf763ca0 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-d-b.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-d-b.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-failed-jobs.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-failed-jobs.md index baa2fa827bd..871abf0bc05 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-failed-jobs.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-failed-jobs.md @@ -5,8 +5,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-pub-sub.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-pub-sub.md index 95c55cbcf73..7fe20cdcf85 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-pub-sub.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-pub-sub.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-builds.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-builds.md index 06a979a8ad6..65596b49cfa 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-builds.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-builds.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-certificates.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-certificates.md index fa57789e80d..06e629d12c4 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-certificates.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-certificates.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-databases.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-databases.md index 13c25ab218e..80733ec20d2 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-databases.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-databases.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-deletes.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-deletes.md index 645ea40540f..7e280a1b62b 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-deletes.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-deletes.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-functions.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-functions.md index f7e80f4379a..8efd075b45e 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-functions.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-functions.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-logs.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-logs.md index ba89c040f2c..2a6767dd74a 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-logs.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-logs.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-mails.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-mails.md index b16a497edb5..2be751cf009 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-mails.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-mails.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-messaging.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-messaging.md index 9f6ecdd26c4..5681495382b 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-messaging.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-messaging.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-migrations.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-migrations.md index 024672ed2d5..f3677243106 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-migrations.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-migrations.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-stats-resources.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..339877afc2b --- /dev/null +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-stats-resources.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +HealthQueue result = await health.GetQueueStatsResources( + threshold: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-usage-dump.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-usage-dump.md index cbd89bd1691..c714a487a11 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-usage-dump.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-usage.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-usage.md index ad79ae2e654..14ca7580015 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-usage.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-usage.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-webhooks.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-webhooks.md index 485f43004a9..6dbbe052350 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue-webhooks.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue.md index 5825a2fb541..afe666b17d0 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-queue.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-queue.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-storage-local.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-storage-local.md index d96df2cfaee..80e4f7574a5 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-storage-local.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-storage-local.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-storage.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-storage.md index eb61c192042..4643825b96c 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-storage.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-storage.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get-time.md b/docs/examples/1.5.x/server-dotnet/examples/health/get-time.md index 5120df9704a..0b5d9b8a5d2 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get-time.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get-time.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/health/get.md b/docs/examples/1.5.x/server-dotnet/examples/health/get.md index f062b0195c2..16ac413bc41 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/health/get.md +++ b/docs/examples/1.5.x/server-dotnet/examples/health/get.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/locale/get.md b/docs/examples/1.5.x/server-dotnet/examples/locale/get.md index 54a42381d53..4ef0232eaa8 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/locale/get.md +++ b/docs/examples/1.5.x/server-dotnet/examples/locale/get.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/locale/list-codes.md b/docs/examples/1.5.x/server-dotnet/examples/locale/list-codes.md index 2286882e3a5..eea75da7d51 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/locale/list-codes.md +++ b/docs/examples/1.5.x/server-dotnet/examples/locale/list-codes.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/locale/list-continents.md b/docs/examples/1.5.x/server-dotnet/examples/locale/list-continents.md index 926a4ae89fa..4148a3068da 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/locale/list-continents.md +++ b/docs/examples/1.5.x/server-dotnet/examples/locale/list-continents.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/server-dotnet/examples/locale/list-countries-e-u.md index 4f5adf2dbb7..4c86505bc73 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/server-dotnet/examples/locale/list-countries-e-u.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/server-dotnet/examples/locale/list-countries-phones.md index aed1b46bc05..0277e032d18 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/server-dotnet/examples/locale/list-countries-phones.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/locale/list-countries.md b/docs/examples/1.5.x/server-dotnet/examples/locale/list-countries.md index 6bed4bcb0c4..f85c5283542 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/locale/list-countries.md +++ b/docs/examples/1.5.x/server-dotnet/examples/locale/list-countries.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/locale/list-currencies.md b/docs/examples/1.5.x/server-dotnet/examples/locale/list-currencies.md index eb3bf0bffff..384a5f4e12f 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/locale/list-currencies.md +++ b/docs/examples/1.5.x/server-dotnet/examples/locale/list-currencies.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/locale/list-languages.md b/docs/examples/1.5.x/server-dotnet/examples/locale/list-languages.md index 915d1ea1ee0..50f9dea6a9e 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/locale/list-languages.md +++ b/docs/examples/1.5.x/server-dotnet/examples/locale/list-languages.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-a-p-n-s-provider.md index db540ab1219..0953e595824 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-a-p-n-s-provider.md @@ -5,7 +5,7 @@ using Appwrite.Enums; using Appwrite.Enums; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-apns-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-apns-provider.md index a2be62c7e0d..b4b358dad25 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-apns-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-email.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-email.md index 60eec84bb67..1ce8b2cd407 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-email.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-email.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-f-c-m-provider.md index cfb6e4fc1e5..6fe64c35e0f 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-f-c-m-provider.md @@ -5,7 +5,7 @@ using Appwrite.Enums; using Appwrite.Enums; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-fcm-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-fcm-provider.md index 3041a1e9898..7558191115c 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-fcm-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-mailgun-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-mailgun-provider.md index aac15984032..311ad7f948d 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-mailgun-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-msg91provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-msg91provider.md index a0a8daa1fdc..596e63d635c 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-msg91provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-push.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-push.md index 10e633d536c..588781b3a18 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-push.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-push.md @@ -1,18 +1,19 @@ using Appwrite; +using Appwrite.Enums; using Appwrite.Models; using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); Message result = await messaging.CreatePush( messageId: "<MESSAGE_ID>", - title: "<TITLE>", - body: "<BODY>", + title: "<TITLE>", // optional + body: "<BODY>", // optional topics: new List<string>(), // optional users: new List<string>(), // optional targets: new List<string>(), // optional @@ -23,7 +24,10 @@ Message result = await messaging.CreatePush( sound: "<SOUND>", // optional color: "<COLOR>", // optional tag: "<TAG>", // optional - badge: "<BADGE>", // optional + badge: 0, // optional draft: false, // optional - scheduledAt: "" // optional + scheduledAt: "", // optional + contentAvailable: false, // optional + critical: false, // optional + priority: MessagePriority.Normal // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-s-m-s.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-s-m-s.md index d5bfd6acdcf..c2eca58a062 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-s-m-s.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-s-m-s.md @@ -5,7 +5,7 @@ using Appwrite.Enums; using Appwrite.Enums; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-s-m-t-p-provider.md index 66ff4fa4a44..583bbb4d1e9 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-s-m-t-p-provider.md @@ -6,7 +6,7 @@ using Appwrite.Enums; using Appwrite.Enums; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-sendgrid-provider.md index 56b28c673a6..64de3805dd7 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-sendgrid-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-sms.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-sms.md index b84ad5dde7c..3ef5cb925e9 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-sms.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-sms.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-smtp-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-smtp-provider.md index db98dc722a5..fdbd4ea5c3f 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-smtp-provider.md @@ -5,8 +5,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-subscriber.md index 3360e3429eb..f188a4fefa7 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-subscriber.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetJWT("<YOUR_JWT>"); // Your secret JSON Web Token Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-telesign-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-telesign-provider.md index bf3eaee45d8..8476f08866c 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-telesign-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-textmagic-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-textmagic-provider.md index 49e909bac92..98fbf86c238 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-textmagic-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-topic.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-topic.md index f943f4384f2..4e28defc50f 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-topic.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-topic.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-twilio-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-twilio-provider.md index 36f88816507..7902da1a34e 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-twilio-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-vonage-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-vonage-provider.md index 3c613760752..4dfe73175f7 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/create-vonage-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/delete-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/delete-provider.md index c7d80739378..767323047e0 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/delete-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/delete-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/delete-subscriber.md index 249b6b09141..54b41887736 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/delete-subscriber.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetJWT("<YOUR_JWT>"); // Your secret JSON Web Token Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/delete-topic.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/delete-topic.md index e39f2c45f67..22226992c75 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/delete-topic.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/delete-topic.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/delete.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/delete.md index efbb7e0f0da..d0b2a243a28 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/delete.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/delete.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/get-message.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/get-message.md index 97c92229887..19597387580 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/get-message.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/get-message.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/get-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/get-provider.md index 261c13247af..bc413b1ca11 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/get-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/get-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/get-subscriber.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/get-subscriber.md index 8a20feffe29..9a158961b1c 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/get-subscriber.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/get-subscriber.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/get-topic.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/get-topic.md index 857ffc0ab6d..43b7bcb55d9 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/get-topic.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/get-topic.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-message-logs.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-message-logs.md index 4075261193f..2d1a5fe9b78 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-message-logs.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-message-logs.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-messages.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-messages.md index 7936a67cea3..5004c7d0c45 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-messages.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-messages.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-provider-logs.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-provider-logs.md index 904663e2c21..47b55acc266 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-provider-logs.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-providers.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-providers.md index cd81771ec7b..2a1b4426e8b 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-providers.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-providers.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-subscriber-logs.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-subscriber-logs.md index 4dff73101f6..5dd1cf01b8a 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-subscriber-logs.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-subscribers.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-subscribers.md index 4e3ad1f5ae4..ca83034be08 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-subscribers.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-subscribers.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-targets.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-targets.md index ebe2b5ab100..9889e1f7260 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-targets.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-targets.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-topic-logs.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-topic-logs.md index 88bc1fc0dc3..b986a8babe4 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-topic-logs.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-topics.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-topics.md index 02f397cd81f..37842ad45ad 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/list-topics.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/list-topics.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-a-p-n-s-provider.md index 366f8386335..36ff7717f3d 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-a-p-n-s-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Enums; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-apns-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-apns-provider.md index 9c9667f437e..6750f3b7865 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-apns-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-email.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-email.md index a5db38cbe26..6fbb686d83e 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-email.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-email.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-f-c-m-provider.md index 050f8c8e2e0..2467a1cb414 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-f-c-m-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Enums; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-fcm-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-fcm-provider.md index b1a8f1ff5cc..9208e930e4b 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-fcm-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-mailgun-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-mailgun-provider.md index 065d122755b..6dd80b63498 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-mailgun-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-msg91provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-msg91provider.md index 713ed5fc87d..ca9c7e4e8b9 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-msg91provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-push.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-push.md index f306272b174..2b48d1827d2 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-push.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-push.md @@ -1,11 +1,12 @@ using Appwrite; +using Appwrite.Enums; using Appwrite.Models; using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); @@ -25,5 +26,8 @@ Message result = await messaging.UpdatePush( tag: "<TAG>", // optional badge: 0, // optional draft: false, // optional - scheduledAt: "" // optional + scheduledAt: "", // optional + contentAvailable: false, // optional + critical: false, // optional + priority: MessagePriority.Normal // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-s-m-s.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-s-m-s.md index 4c64ff6b329..847ace5b576 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-s-m-s.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-s-m-s.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Enums; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-s-m-t-p-provider.md index 4cb1beae4a6..9538efa02ed 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-s-m-t-p-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Enums; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-sendgrid-provider.md index 896b8d2b538..94f5d5af2b6 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-sendgrid-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-sms.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-sms.md index e53c7286986..df2252a98b0 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-sms.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-sms.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-smtp-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-smtp-provider.md index 1354332553b..a8560554209 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-smtp-provider.md @@ -5,8 +5,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-telesign-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-telesign-provider.md index 2a26134a61b..b44d068084d 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-telesign-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-textmagic-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-textmagic-provider.md index da238934541..6fe2f2d6941 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-textmagic-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-topic.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-topic.md index ba80bf1a238..b4a3e8ed79d 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-topic.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-topic.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-twilio-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-twilio-provider.md index b6060cfcc6b..73078bd7a17 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-twilio-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-vonage-provider.md b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-vonage-provider.md index 89553a15e72..94bc3f400fe 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.5.x/server-dotnet/examples/messaging/update-vonage-provider.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/storage/create-bucket.md b/docs/examples/1.5.x/server-dotnet/examples/storage/create-bucket.md index c3d9733cdc2..0a2953775b1 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/storage/create-bucket.md +++ b/docs/examples/1.5.x/server-dotnet/examples/storage/create-bucket.md @@ -5,8 +5,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/storage/create-file.md b/docs/examples/1.5.x/server-dotnet/examples/storage/create-file.md index 149281a1ea6..1fc110269f9 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/storage/create-file.md +++ b/docs/examples/1.5.x/server-dotnet/examples/storage/create-file.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/storage/delete-bucket.md b/docs/examples/1.5.x/server-dotnet/examples/storage/delete-bucket.md index 23c6634ec6f..d7cd28a911c 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/storage/delete-bucket.md +++ b/docs/examples/1.5.x/server-dotnet/examples/storage/delete-bucket.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/storage/delete-file.md b/docs/examples/1.5.x/server-dotnet/examples/storage/delete-file.md index 9d4e191da81..859f81e79d5 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/storage/delete-file.md +++ b/docs/examples/1.5.x/server-dotnet/examples/storage/delete-file.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/storage/get-bucket.md b/docs/examples/1.5.x/server-dotnet/examples/storage/get-bucket.md index 13ddf50d660..ea7c78c001f 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/storage/get-bucket.md +++ b/docs/examples/1.5.x/server-dotnet/examples/storage/get-bucket.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/storage/get-file-download.md b/docs/examples/1.5.x/server-dotnet/examples/storage/get-file-download.md index c6b1294424e..8bb19126a8d 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/storage/get-file-download.md +++ b/docs/examples/1.5.x/server-dotnet/examples/storage/get-file-download.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/storage/get-file-preview.md b/docs/examples/1.5.x/server-dotnet/examples/storage/get-file-preview.md index bde0e4106db..877e913eee3 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/storage/get-file-preview.md +++ b/docs/examples/1.5.x/server-dotnet/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/storage/get-file-view.md b/docs/examples/1.5.x/server-dotnet/examples/storage/get-file-view.md index 9497543be45..e0824051029 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/storage/get-file-view.md +++ b/docs/examples/1.5.x/server-dotnet/examples/storage/get-file-view.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/storage/get-file.md b/docs/examples/1.5.x/server-dotnet/examples/storage/get-file.md index 2c32d9d0263..314998b73ad 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/storage/get-file.md +++ b/docs/examples/1.5.x/server-dotnet/examples/storage/get-file.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/storage/list-buckets.md b/docs/examples/1.5.x/server-dotnet/examples/storage/list-buckets.md index 5545be76f52..8b59250dd96 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/storage/list-buckets.md +++ b/docs/examples/1.5.x/server-dotnet/examples/storage/list-buckets.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/storage/list-files.md b/docs/examples/1.5.x/server-dotnet/examples/storage/list-files.md index 6f75cc4fe62..cd3b52c45cc 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/storage/list-files.md +++ b/docs/examples/1.5.x/server-dotnet/examples/storage/list-files.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/storage/update-bucket.md b/docs/examples/1.5.x/server-dotnet/examples/storage/update-bucket.md index 029e9ab1dd0..1bd2f4f0912 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/storage/update-bucket.md +++ b/docs/examples/1.5.x/server-dotnet/examples/storage/update-bucket.md @@ -5,8 +5,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/storage/update-file.md b/docs/examples/1.5.x/server-dotnet/examples/storage/update-file.md index 9d21890be69..d256e21b4f8 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/storage/update-file.md +++ b/docs/examples/1.5.x/server-dotnet/examples/storage/update-file.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/teams/create-membership.md b/docs/examples/1.5.x/server-dotnet/examples/teams/create-membership.md index 3ac3f51a7f6..dd768c2335e 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/teams/create-membership.md +++ b/docs/examples/1.5.x/server-dotnet/examples/teams/create-membership.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/teams/create.md b/docs/examples/1.5.x/server-dotnet/examples/teams/create.md index 991423559a2..5b5c8014b4d 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/teams/create.md +++ b/docs/examples/1.5.x/server-dotnet/examples/teams/create.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/teams/delete-membership.md b/docs/examples/1.5.x/server-dotnet/examples/teams/delete-membership.md index 5bce1d4c6d5..93f60402d79 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/teams/delete-membership.md +++ b/docs/examples/1.5.x/server-dotnet/examples/teams/delete-membership.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/teams/delete.md b/docs/examples/1.5.x/server-dotnet/examples/teams/delete.md index ddf53413bdf..1c69bf0ea82 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/teams/delete.md +++ b/docs/examples/1.5.x/server-dotnet/examples/teams/delete.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/teams/get-membership.md b/docs/examples/1.5.x/server-dotnet/examples/teams/get-membership.md index 80fe57efef0..bb91bc9e892 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/teams/get-membership.md +++ b/docs/examples/1.5.x/server-dotnet/examples/teams/get-membership.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/teams/get-prefs.md b/docs/examples/1.5.x/server-dotnet/examples/teams/get-prefs.md index 80333e12f52..4e6012df169 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/teams/get-prefs.md +++ b/docs/examples/1.5.x/server-dotnet/examples/teams/get-prefs.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/teams/get.md b/docs/examples/1.5.x/server-dotnet/examples/teams/get.md index fbc40f662d0..c221122e7e1 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/teams/get.md +++ b/docs/examples/1.5.x/server-dotnet/examples/teams/get.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/teams/list-memberships.md b/docs/examples/1.5.x/server-dotnet/examples/teams/list-memberships.md index 8664ad98084..d44f12b41c3 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/teams/list-memberships.md +++ b/docs/examples/1.5.x/server-dotnet/examples/teams/list-memberships.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/teams/list.md b/docs/examples/1.5.x/server-dotnet/examples/teams/list.md index f06ab42a230..9c1a0fee657 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/teams/list.md +++ b/docs/examples/1.5.x/server-dotnet/examples/teams/list.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/teams/update-membership-status.md b/docs/examples/1.5.x/server-dotnet/examples/teams/update-membership-status.md index 5631ea4948e..151f17566eb 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/teams/update-membership-status.md +++ b/docs/examples/1.5.x/server-dotnet/examples/teams/update-membership-status.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/teams/update-membership.md b/docs/examples/1.5.x/server-dotnet/examples/teams/update-membership.md index 33bc0575038..1d9faebbf91 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/teams/update-membership.md +++ b/docs/examples/1.5.x/server-dotnet/examples/teams/update-membership.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/teams/update-name.md b/docs/examples/1.5.x/server-dotnet/examples/teams/update-name.md index eec43cf61a1..b3db0576af9 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/teams/update-name.md +++ b/docs/examples/1.5.x/server-dotnet/examples/teams/update-name.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/teams/update-prefs.md b/docs/examples/1.5.x/server-dotnet/examples/teams/update-prefs.md index ea600cac194..84b9b11ca83 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/teams/update-prefs.md +++ b/docs/examples/1.5.x/server-dotnet/examples/teams/update-prefs.md @@ -4,7 +4,7 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/create-argon2user.md b/docs/examples/1.5.x/server-dotnet/examples/users/create-argon2user.md index 1658290e443..7ee4d1d89d6 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/create-argon2user.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/create-argon2user.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/create-bcrypt-user.md b/docs/examples/1.5.x/server-dotnet/examples/users/create-bcrypt-user.md index 6142ffe14e8..9ff609d5f40 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/create-bcrypt-user.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/create-j-w-t.md b/docs/examples/1.5.x/server-dotnet/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..2997767f795 --- /dev/null +++ b/docs/examples/1.5.x/server-dotnet/examples/users/create-j-w-t.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +JWT result = await users.CreateJWT( + userId: "<USER_ID>", + sessionId: "<SESSION_ID>", // optional + duration: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/create-m-d5user.md b/docs/examples/1.5.x/server-dotnet/examples/users/create-m-d5user.md index fe4571c5f37..7294c805eda 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/create-m-d5user.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/create-m-d5user.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-dotnet/examples/users/create-mfa-recovery-codes.md index 5c308dc84e8..bbc41a66a19 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/create-mfa-recovery-codes.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/create-p-h-pass-user.md b/docs/examples/1.5.x/server-dotnet/examples/users/create-p-h-pass-user.md index 0bbbc334e27..3db0dc707d3 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/create-p-h-pass-user.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/create-s-h-a-user.md b/docs/examples/1.5.x/server-dotnet/examples/users/create-s-h-a-user.md index 4912995488d..873e666cdc6 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/create-s-h-a-user.md @@ -5,8 +5,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/create-scrypt-modified-user.md b/docs/examples/1.5.x/server-dotnet/examples/users/create-scrypt-modified-user.md index 389585c825f..7af9f2ab8bc 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/create-scrypt-modified-user.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/create-scrypt-user.md b/docs/examples/1.5.x/server-dotnet/examples/users/create-scrypt-user.md index 8a08036eec9..14ee42e4891 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/create-scrypt-user.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/create-scrypt-user.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/create-session.md b/docs/examples/1.5.x/server-dotnet/examples/users/create-session.md index ef29c037496..f624ff8554c 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/create-session.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/create-session.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/create-target.md b/docs/examples/1.5.x/server-dotnet/examples/users/create-target.md index 9ac56a9c7f8..80717ae19bf 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/create-target.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/create-target.md @@ -5,8 +5,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/create-token.md b/docs/examples/1.5.x/server-dotnet/examples/users/create-token.md index 8243fe7207f..ce96abc50cb 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/create-token.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/create-token.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/create.md b/docs/examples/1.5.x/server-dotnet/examples/users/create.md index 87c2943d8ea..04e25c32730 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/create.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/create.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/delete-authenticator.md b/docs/examples/1.5.x/server-dotnet/examples/users/delete-authenticator.md index 8cc8f63c439..b17b6558640 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/delete-authenticator.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/delete-authenticator.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/delete-identity.md b/docs/examples/1.5.x/server-dotnet/examples/users/delete-identity.md index e02a0f0d7cc..9579eba7a2d 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/delete-identity.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/delete-identity.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-dotnet/examples/users/delete-mfa-authenticator.md index c642cd84499..c3d081bf56b 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/delete-mfa-authenticator.md @@ -5,8 +5,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/delete-session.md b/docs/examples/1.5.x/server-dotnet/examples/users/delete-session.md index a86909517d5..ff46be8ad23 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/delete-session.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/delete-session.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/delete-sessions.md b/docs/examples/1.5.x/server-dotnet/examples/users/delete-sessions.md index 21d96f33226..5b9f5e1aa9a 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/delete-sessions.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/delete-sessions.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/delete-target.md b/docs/examples/1.5.x/server-dotnet/examples/users/delete-target.md index cfbbe671232..482b229912d 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/delete-target.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/delete-target.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/delete.md b/docs/examples/1.5.x/server-dotnet/examples/users/delete.md index 1adfb1821aa..670b98cbd16 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/delete.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/delete.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-dotnet/examples/users/get-mfa-recovery-codes.md index 5734cf48192..a69c58da2a4 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/get-mfa-recovery-codes.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/get-prefs.md b/docs/examples/1.5.x/server-dotnet/examples/users/get-prefs.md index 732f754aaf7..ec25c4160f0 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/get-prefs.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/get-prefs.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/get-target.md b/docs/examples/1.5.x/server-dotnet/examples/users/get-target.md index 776a7a86dd2..10a6955e49f 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/get-target.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/get-target.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/get.md b/docs/examples/1.5.x/server-dotnet/examples/users/get.md index a3120b814e2..7dc7eebdaa8 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/get.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/get.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/list-factors.md b/docs/examples/1.5.x/server-dotnet/examples/users/list-factors.md index a76aa24e848..302fd230c7f 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/list-factors.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/list-factors.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/list-identities.md b/docs/examples/1.5.x/server-dotnet/examples/users/list-identities.md index fe776a3c947..36a9b5f7703 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/list-identities.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/list-identities.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/list-logs.md b/docs/examples/1.5.x/server-dotnet/examples/users/list-logs.md index eb1d8c451c1..303839792b0 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/list-logs.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/list-logs.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/list-memberships.md b/docs/examples/1.5.x/server-dotnet/examples/users/list-memberships.md index 1d347055221..5c833de3667 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/list-memberships.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/list-memberships.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/list-mfa-factors.md b/docs/examples/1.5.x/server-dotnet/examples/users/list-mfa-factors.md index 224f4f08363..31e1ee3d555 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/list-mfa-factors.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/list-providers.md b/docs/examples/1.5.x/server-dotnet/examples/users/list-providers.md index dbe0bab5a6c..989ae5783e0 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/list-providers.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/list-providers.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Enums; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/list-sessions.md b/docs/examples/1.5.x/server-dotnet/examples/users/list-sessions.md index df0ecd816b3..a5c07505297 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/list-sessions.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/list-sessions.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/list-targets.md b/docs/examples/1.5.x/server-dotnet/examples/users/list-targets.md index 2f79c89d410..ded2ade2b69 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/list-targets.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/list-targets.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/list.md b/docs/examples/1.5.x/server-dotnet/examples/users/list.md index 92060abd672..74bce0bb1a7 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/list.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/list.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/update-email-verification.md b/docs/examples/1.5.x/server-dotnet/examples/users/update-email-verification.md index 1d93191870c..025d4f0a213 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/update-email-verification.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/update-email-verification.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/update-email.md b/docs/examples/1.5.x/server-dotnet/examples/users/update-email.md index 63efb73bdd6..250290539f8 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/update-email.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/update-email.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/update-labels.md b/docs/examples/1.5.x/server-dotnet/examples/users/update-labels.md index 283287a264b..865556db2f0 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/update-labels.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/update-labels.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-dotnet/examples/users/update-mfa-recovery-codes.md index 807c1c03d66..cb4f68eb040 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/update-mfa-recovery-codes.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/update-mfa.md b/docs/examples/1.5.x/server-dotnet/examples/users/update-mfa.md index 9f3404d3e85..bd881528c83 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/update-mfa.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/update-mfa.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/update-name.md b/docs/examples/1.5.x/server-dotnet/examples/users/update-name.md index 164ebec2d15..492a45ed688 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/update-name.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/update-name.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/update-password.md b/docs/examples/1.5.x/server-dotnet/examples/users/update-password.md index 69f580748ac..aa6e621180a 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/update-password.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/update-password.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/update-phone-verification.md b/docs/examples/1.5.x/server-dotnet/examples/users/update-phone-verification.md index e4752024193..13ded37df6b 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/update-phone-verification.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/update-phone-verification.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/update-phone.md b/docs/examples/1.5.x/server-dotnet/examples/users/update-phone.md index d92f0b75370..50708008ba6 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/update-phone.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/update-phone.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/update-prefs.md b/docs/examples/1.5.x/server-dotnet/examples/users/update-prefs.md index 57b6e5f1cd2..8015f738482 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/update-prefs.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/update-prefs.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/update-status.md b/docs/examples/1.5.x/server-dotnet/examples/users/update-status.md index 0657570a73c..f476bc58236 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/update-status.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/update-status.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-dotnet/examples/users/update-target.md b/docs/examples/1.5.x/server-dotnet/examples/users/update-target.md index fb431035d83..9fe888c7e3b 100644 --- a/docs/examples/1.5.x/server-dotnet/examples/users/update-target.md +++ b/docs/examples/1.5.x/server-dotnet/examples/users/update-target.md @@ -4,8 +4,8 @@ using Appwrite.Services; Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-go/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/server-go/examples/account/create-anonymous-session.md new file mode 100644 index 00000000000..bdf9c1b8e83 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/create-anonymous-session.md @@ -0,0 +1,24 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.CreateAnonymousSession( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/create-email-password-session.md b/docs/examples/1.5.x/server-go/examples/account/create-email-password-session.md new file mode 100644 index 00000000000..b6573084a99 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/create-email-password-session.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.CreateEmailPasswordSession( + "email@example.com", + "password", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/create-email-token.md b/docs/examples/1.5.x/server-go/examples/account/create-email-token.md new file mode 100644 index 00000000000..b9aae640a0f --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/create-email-token.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.CreateEmailToken( + "<USER_ID>", + "email@example.com", + account.WithCreateEmailTokenPhrase(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/create-j-w-t.md b/docs/examples/1.5.x/server-go/examples/account/create-j-w-t.md new file mode 100644 index 00000000000..fa4d41b315e --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/create-j-w-t.md @@ -0,0 +1,24 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.CreateJWT( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/server-go/examples/account/create-magic-u-r-l-token.md new file mode 100644 index 00000000000..cd1d07e5e05 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/create-magic-u-r-l-token.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.CreateMagicURLToken( + "<USER_ID>", + "email@example.com", + account.WithCreateMagicURLTokenUrl("https://example.com"), + account.WithCreateMagicURLTokenPhrase(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/server-go/examples/account/create-mfa-authenticator.md new file mode 100644 index 00000000000..150e4d18d62 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/create-mfa-authenticator.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.CreateMfaAuthenticator( + "totp", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/server-go/examples/account/create-mfa-challenge.md new file mode 100644 index 00000000000..93e122f8b3f --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/create-mfa-challenge.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.CreateMfaChallenge( + "email", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-go/examples/account/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..005b9603d88 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/create-mfa-recovery-codes.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.CreateMfaRecoveryCodes( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/server-go/examples/account/create-o-auth2token.md new file mode 100644 index 00000000000..6cc11b004bd --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/create-o-auth2token.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.CreateOAuth2Token( + "amazon", + account.WithCreateOAuth2TokenSuccess("https://example.com"), + account.WithCreateOAuth2TokenFailure("https://example.com"), + account.WithCreateOAuth2TokenScopes([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/create-phone-token.md b/docs/examples/1.5.x/server-go/examples/account/create-phone-token.md new file mode 100644 index 00000000000..eff0aa2ae0e --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/create-phone-token.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.CreatePhoneToken( + "<USER_ID>", + "+12065550100", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/create-phone-verification.md b/docs/examples/1.5.x/server-go/examples/account/create-phone-verification.md new file mode 100644 index 00000000000..fff450710d9 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/create-phone-verification.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.CreatePhoneVerification( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/create-recovery.md b/docs/examples/1.5.x/server-go/examples/account/create-recovery.md new file mode 100644 index 00000000000..6fc0115b033 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/create-recovery.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.CreateRecovery( + "email@example.com", + "https://example.com", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/create-session.md b/docs/examples/1.5.x/server-go/examples/account/create-session.md new file mode 100644 index 00000000000..c525401b5ff --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/create-session.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.CreateSession( + "<USER_ID>", + "<SECRET>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/create-verification.md b/docs/examples/1.5.x/server-go/examples/account/create-verification.md new file mode 100644 index 00000000000..9e2cecc6f9c --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/create-verification.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.CreateVerification( + "https://example.com", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/create.md b/docs/examples/1.5.x/server-go/examples/account/create.md new file mode 100644 index 00000000000..9cc27a5f1da --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/create.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.Create( + "<USER_ID>", + "email@example.com", + "", + account.WithCreateName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/delete-identity.md b/docs/examples/1.5.x/server-go/examples/account/delete-identity.md new file mode 100644 index 00000000000..939a3efa01c --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/delete-identity.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.DeleteIdentity( + "<IDENTITY_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-go/examples/account/delete-mfa-authenticator.md new file mode 100644 index 00000000000..664628b44ed --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/delete-mfa-authenticator.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.DeleteMfaAuthenticator( + "totp", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/delete-session.md b/docs/examples/1.5.x/server-go/examples/account/delete-session.md new file mode 100644 index 00000000000..c153451efec --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/delete-session.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.DeleteSession( + "<SESSION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/delete-sessions.md b/docs/examples/1.5.x/server-go/examples/account/delete-sessions.md new file mode 100644 index 00000000000..3c782b93ddf --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/delete-sessions.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.DeleteSessions( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-go/examples/account/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..d6abf99553f --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/get-mfa-recovery-codes.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.GetMfaRecoveryCodes( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/get-prefs.md b/docs/examples/1.5.x/server-go/examples/account/get-prefs.md new file mode 100644 index 00000000000..555e99d04d6 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/get-prefs.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.GetPrefs( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/get-session.md b/docs/examples/1.5.x/server-go/examples/account/get-session.md new file mode 100644 index 00000000000..b9958823bbd --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/get-session.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.GetSession( + "<SESSION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/get.md b/docs/examples/1.5.x/server-go/examples/account/get.md new file mode 100644 index 00000000000..47e52e895f9 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/get.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.Get( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/list-identities.md b/docs/examples/1.5.x/server-go/examples/account/list-identities.md new file mode 100644 index 00000000000..01b398018f5 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/list-identities.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.ListIdentities( + account.WithListIdentitiesQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/list-logs.md b/docs/examples/1.5.x/server-go/examples/account/list-logs.md new file mode 100644 index 00000000000..9cbdaa35694 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/list-logs.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.ListLogs( + account.WithListLogsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/server-go/examples/account/list-mfa-factors.md new file mode 100644 index 00000000000..8e028c96153 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/list-mfa-factors.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.ListMfaFactors( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/list-sessions.md b/docs/examples/1.5.x/server-go/examples/account/list-sessions.md new file mode 100644 index 00000000000..12454750d1c --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/list-sessions.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.ListSessions( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-email.md b/docs/examples/1.5.x/server-go/examples/account/update-email.md new file mode 100644 index 00000000000..16c31efe88f --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-email.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.UpdateEmail( + "email@example.com", + "password", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-m-f-a.md b/docs/examples/1.5.x/server-go/examples/account/update-m-f-a.md new file mode 100644 index 00000000000..f06eb959c19 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-m-f-a.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.UpdateMFA( + false, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/server-go/examples/account/update-magic-u-r-l-session.md new file mode 100644 index 00000000000..aaf8d697720 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-magic-u-r-l-session.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.UpdateMagicURLSession( + "<USER_ID>", + "<SECRET>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/server-go/examples/account/update-mfa-authenticator.md new file mode 100644 index 00000000000..350dcfaf64f --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-mfa-authenticator.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.UpdateMfaAuthenticator( + "totp", + "<OTP>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/server-go/examples/account/update-mfa-challenge.md new file mode 100644 index 00000000000..2c367fbc96c --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-mfa-challenge.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.UpdateMfaChallenge( + "<CHALLENGE_ID>", + "<OTP>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-go/examples/account/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..c04f169fa88 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-mfa-recovery-codes.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.UpdateMfaRecoveryCodes( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-name.md b/docs/examples/1.5.x/server-go/examples/account/update-name.md new file mode 100644 index 00000000000..31baf1f1dae --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-name.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.UpdateName( + "<NAME>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-password.md b/docs/examples/1.5.x/server-go/examples/account/update-password.md new file mode 100644 index 00000000000..770d748ccf5 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-password.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.UpdatePassword( + "", + account.WithUpdatePasswordOldPassword("password"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-phone-session.md b/docs/examples/1.5.x/server-go/examples/account/update-phone-session.md new file mode 100644 index 00000000000..4fb1e2ac69e --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-phone-session.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + + service := account.NewAccount(client) + response, error := service.UpdatePhoneSession( + "<USER_ID>", + "<SECRET>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-phone-verification.md b/docs/examples/1.5.x/server-go/examples/account/update-phone-verification.md new file mode 100644 index 00000000000..0e3af857546 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-phone-verification.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.UpdatePhoneVerification( + "<USER_ID>", + "<SECRET>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-phone.md b/docs/examples/1.5.x/server-go/examples/account/update-phone.md new file mode 100644 index 00000000000..3c39ab28997 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-phone.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.UpdatePhone( + "+12065550100", + "password", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-prefs.md b/docs/examples/1.5.x/server-go/examples/account/update-prefs.md new file mode 100644 index 00000000000..822c6fdfbb2 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-prefs.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.UpdatePrefs( + map[string]interface{}{}, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-recovery.md b/docs/examples/1.5.x/server-go/examples/account/update-recovery.md new file mode 100644 index 00000000000..0450f9a03c8 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-recovery.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.UpdateRecovery( + "<USER_ID>", + "<SECRET>", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-session.md b/docs/examples/1.5.x/server-go/examples/account/update-session.md new file mode 100644 index 00000000000..cc03ef1acdf --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-session.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.UpdateSession( + "<SESSION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-status.md b/docs/examples/1.5.x/server-go/examples/account/update-status.md new file mode 100644 index 00000000000..2e1f4f2e2ba --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-status.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.UpdateStatus( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/account/update-verification.md b/docs/examples/1.5.x/server-go/examples/account/update-verification.md new file mode 100644 index 00000000000..4e245c6bd63 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/account/update-verification.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/account" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := account.NewAccount(client) + response, error := service.UpdateVerification( + "<USER_ID>", + "<SECRET>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/avatars/get-browser.md b/docs/examples/1.5.x/server-go/examples/avatars/get-browser.md new file mode 100644 index 00000000000..41e6d3a64ac --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/avatars/get-browser.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/avatars" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := avatars.NewAvatars(client) + response, error := service.GetBrowser( + "aa", + avatars.WithGetBrowserWidth(0), + avatars.WithGetBrowserHeight(0), + avatars.WithGetBrowserQuality(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/server-go/examples/avatars/get-credit-card.md new file mode 100644 index 00000000000..29fa7c17155 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/avatars/get-credit-card.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/avatars" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := avatars.NewAvatars(client) + response, error := service.GetCreditCard( + "amex", + avatars.WithGetCreditCardWidth(0), + avatars.WithGetCreditCardHeight(0), + avatars.WithGetCreditCardQuality(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/avatars/get-favicon.md b/docs/examples/1.5.x/server-go/examples/avatars/get-favicon.md new file mode 100644 index 00000000000..52d71201335 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/avatars/get-favicon.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/avatars" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := avatars.NewAvatars(client) + response, error := service.GetFavicon( + "https://example.com", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/avatars/get-flag.md b/docs/examples/1.5.x/server-go/examples/avatars/get-flag.md new file mode 100644 index 00000000000..2024a671c76 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/avatars/get-flag.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/avatars" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := avatars.NewAvatars(client) + response, error := service.GetFlag( + "af", + avatars.WithGetFlagWidth(0), + avatars.WithGetFlagHeight(0), + avatars.WithGetFlagQuality(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/avatars/get-image.md b/docs/examples/1.5.x/server-go/examples/avatars/get-image.md new file mode 100644 index 00000000000..cbcb8c7b805 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/avatars/get-image.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/avatars" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := avatars.NewAvatars(client) + response, error := service.GetImage( + "https://example.com", + avatars.WithGetImageWidth(0), + avatars.WithGetImageHeight(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/avatars/get-initials.md b/docs/examples/1.5.x/server-go/examples/avatars/get-initials.md new file mode 100644 index 00000000000..83c2f212da7 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/avatars/get-initials.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/avatars" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := avatars.NewAvatars(client) + response, error := service.GetInitials( + avatars.WithGetInitialsName("<NAME>"), + avatars.WithGetInitialsWidth(0), + avatars.WithGetInitialsHeight(0), + avatars.WithGetInitialsBackground(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/avatars/get-q-r.md b/docs/examples/1.5.x/server-go/examples/avatars/get-q-r.md new file mode 100644 index 00000000000..172e2720168 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/avatars/get-q-r.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/avatars" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := avatars.NewAvatars(client) + response, error := service.GetQR( + "<TEXT>", + avatars.WithGetQRSize(1), + avatars.WithGetQRMargin(0), + avatars.WithGetQRDownload(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/create-boolean-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/create-boolean-attribute.md new file mode 100644 index 00000000000..e0a0a4255d8 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/create-boolean-attribute.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.CreateBooleanAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + databases.WithCreateBooleanAttributeDefault(false), + databases.WithCreateBooleanAttributeArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/create-collection.md b/docs/examples/1.5.x/server-go/examples/databases/create-collection.md new file mode 100644 index 00000000000..8b42c00dc17 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/create-collection.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.CreateCollection( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "<NAME>", + databases.WithCreateCollectionPermissions(interface{}{"read("any")"}), + databases.WithCreateCollectionDocumentSecurity(false), + databases.WithCreateCollectionEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/create-datetime-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/create-datetime-attribute.md new file mode 100644 index 00000000000..f8dc80f7fd1 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/create-datetime-attribute.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.CreateDatetimeAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + databases.WithCreateDatetimeAttributeDefault(""), + databases.WithCreateDatetimeAttributeArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/create-document.md b/docs/examples/1.5.x/server-go/examples/databases/create-document.md new file mode 100644 index 00000000000..19bcdba0a4c --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/create-document.md @@ -0,0 +1,30 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := databases.NewDatabases(client) + response, error := service.CreateDocument( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "<DOCUMENT_ID>", + map[string]interface{}{}, + databases.WithCreateDocumentPermissions(interface{}{"read("any")"}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/create-email-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/create-email-attribute.md new file mode 100644 index 00000000000..c79d5f28cad --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/create-email-attribute.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.CreateEmailAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + databases.WithCreateEmailAttributeDefault("email@example.com"), + databases.WithCreateEmailAttributeArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/create-enum-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/create-enum-attribute.md new file mode 100644 index 00000000000..ade770e80e2 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/create-enum-attribute.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.CreateEnumAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + []interface{}{}, + false, + databases.WithCreateEnumAttributeDefault("<DEFAULT>"), + databases.WithCreateEnumAttributeArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/create-float-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/create-float-attribute.md new file mode 100644 index 00000000000..fc873a21f0a --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/create-float-attribute.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.CreateFloatAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + databases.WithCreateFloatAttributeMin(0), + databases.WithCreateFloatAttributeMax(0), + databases.WithCreateFloatAttributeDefault(0), + databases.WithCreateFloatAttributeArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/create-index.md b/docs/examples/1.5.x/server-go/examples/databases/create-index.md new file mode 100644 index 00000000000..417a5ffbe9e --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/create-index.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.CreateIndex( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + "key", + []interface{}{}, + databases.WithCreateIndexOrders([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/create-integer-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/create-integer-attribute.md new file mode 100644 index 00000000000..3ab7505e51b --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/create-integer-attribute.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.CreateIntegerAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + databases.WithCreateIntegerAttributeMin(0), + databases.WithCreateIntegerAttributeMax(0), + databases.WithCreateIntegerAttributeDefault(0), + databases.WithCreateIntegerAttributeArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/create-ip-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/create-ip-attribute.md new file mode 100644 index 00000000000..5f80658c777 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/create-ip-attribute.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.CreateIpAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + databases.WithCreateIpAttributeDefault(""), + databases.WithCreateIpAttributeArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/create-relationship-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/create-relationship-attribute.md new file mode 100644 index 00000000000..2e9431901cf --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/create-relationship-attribute.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.CreateRelationshipAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "<RELATED_COLLECTION_ID>", + "oneToOne", + databases.WithCreateRelationshipAttributeTwoWay(false), + databases.WithCreateRelationshipAttributeKey(""), + databases.WithCreateRelationshipAttributeTwoWayKey(""), + databases.WithCreateRelationshipAttributeOnDelete("cascade"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/create-string-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/create-string-attribute.md new file mode 100644 index 00000000000..07fc841f747 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/create-string-attribute.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.CreateStringAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + 1, + false, + databases.WithCreateStringAttributeDefault("<DEFAULT>"), + databases.WithCreateStringAttributeArray(false), + databases.WithCreateStringAttributeEncrypt(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/create-url-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/create-url-attribute.md new file mode 100644 index 00000000000..a4525afc012 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/create-url-attribute.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.CreateUrlAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + databases.WithCreateUrlAttributeDefault("https://example.com"), + databases.WithCreateUrlAttributeArray(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/create.md b/docs/examples/1.5.x/server-go/examples/databases/create.md new file mode 100644 index 00000000000..3303b897224 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/create.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.Create( + "<DATABASE_ID>", + "<NAME>", + databases.WithCreateEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/delete-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/delete-attribute.md new file mode 100644 index 00000000000..6d4f2c89d7d --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/delete-attribute.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.DeleteAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/delete-collection.md b/docs/examples/1.5.x/server-go/examples/databases/delete-collection.md new file mode 100644 index 00000000000..33b6cce1c8a --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/delete-collection.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.DeleteCollection( + "<DATABASE_ID>", + "<COLLECTION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/delete-document.md b/docs/examples/1.5.x/server-go/examples/databases/delete-document.md new file mode 100644 index 00000000000..e1d98e79c22 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/delete-document.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := databases.NewDatabases(client) + response, error := service.DeleteDocument( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "<DOCUMENT_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/delete-index.md b/docs/examples/1.5.x/server-go/examples/databases/delete-index.md new file mode 100644 index 00000000000..540afeac4a2 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/delete-index.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.DeleteIndex( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/delete.md b/docs/examples/1.5.x/server-go/examples/databases/delete.md new file mode 100644 index 00000000000..76139289cec --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/delete.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.Delete( + "<DATABASE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/get-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/get-attribute.md new file mode 100644 index 00000000000..b819b75820d --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/get-attribute.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.GetAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/get-collection.md b/docs/examples/1.5.x/server-go/examples/databases/get-collection.md new file mode 100644 index 00000000000..9b9cd41aa33 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/get-collection.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.GetCollection( + "<DATABASE_ID>", + "<COLLECTION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/get-document.md b/docs/examples/1.5.x/server-go/examples/databases/get-document.md new file mode 100644 index 00000000000..d1e2d7b3776 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/get-document.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := databases.NewDatabases(client) + response, error := service.GetDocument( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "<DOCUMENT_ID>", + databases.WithGetDocumentQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/get-index.md b/docs/examples/1.5.x/server-go/examples/databases/get-index.md new file mode 100644 index 00000000000..6c7f35113fa --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/get-index.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.GetIndex( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/get.md b/docs/examples/1.5.x/server-go/examples/databases/get.md new file mode 100644 index 00000000000..8e1e002258d --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/get.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.Get( + "<DATABASE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/list-attributes.md b/docs/examples/1.5.x/server-go/examples/databases/list-attributes.md new file mode 100644 index 00000000000..8d127abbe61 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/list-attributes.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.ListAttributes( + "<DATABASE_ID>", + "<COLLECTION_ID>", + databases.WithListAttributesQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/list-collections.md b/docs/examples/1.5.x/server-go/examples/databases/list-collections.md new file mode 100644 index 00000000000..cd76783838c --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/list-collections.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.ListCollections( + "<DATABASE_ID>", + databases.WithListCollectionsQueries([]interface{}{}), + databases.WithListCollectionsSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/list-documents.md b/docs/examples/1.5.x/server-go/examples/databases/list-documents.md new file mode 100644 index 00000000000..237b6d17f78 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/list-documents.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := databases.NewDatabases(client) + response, error := service.ListDocuments( + "<DATABASE_ID>", + "<COLLECTION_ID>", + databases.WithListDocumentsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/list-indexes.md b/docs/examples/1.5.x/server-go/examples/databases/list-indexes.md new file mode 100644 index 00000000000..d0792e8dbff --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/list-indexes.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.ListIndexes( + "<DATABASE_ID>", + "<COLLECTION_ID>", + databases.WithListIndexesQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/list.md b/docs/examples/1.5.x/server-go/examples/databases/list.md new file mode 100644 index 00000000000..3548af44841 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/list.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.List( + databases.WithListQueries([]interface{}{}), + databases.WithListSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/update-boolean-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/update-boolean-attribute.md new file mode 100644 index 00000000000..b5386f01113 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/update-boolean-attribute.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.UpdateBooleanAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + false, + databases.WithUpdateBooleanAttributeNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/update-collection.md b/docs/examples/1.5.x/server-go/examples/databases/update-collection.md new file mode 100644 index 00000000000..2e9c9200227 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/update-collection.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.UpdateCollection( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "<NAME>", + databases.WithUpdateCollectionPermissions(interface{}{"read("any")"}), + databases.WithUpdateCollectionDocumentSecurity(false), + databases.WithUpdateCollectionEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/update-datetime-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/update-datetime-attribute.md new file mode 100644 index 00000000000..53a66e8cfe8 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/update-datetime-attribute.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.UpdateDatetimeAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + "", + databases.WithUpdateDatetimeAttributeNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/update-document.md b/docs/examples/1.5.x/server-go/examples/databases/update-document.md new file mode 100644 index 00000000000..c9345686078 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/update-document.md @@ -0,0 +1,30 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := databases.NewDatabases(client) + response, error := service.UpdateDocument( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "<DOCUMENT_ID>", + databases.WithUpdateDocumentData(map[string]interface{}{}), + databases.WithUpdateDocumentPermissions(interface{}{"read("any")"}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/update-email-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/update-email-attribute.md new file mode 100644 index 00000000000..0dd72beb4b0 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/update-email-attribute.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.UpdateEmailAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + "email@example.com", + databases.WithUpdateEmailAttributeNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/update-enum-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/update-enum-attribute.md new file mode 100644 index 00000000000..aec51772ee4 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/update-enum-attribute.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.UpdateEnumAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + []interface{}{}, + false, + "<DEFAULT>", + databases.WithUpdateEnumAttributeNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/update-float-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/update-float-attribute.md new file mode 100644 index 00000000000..7f45543b64f --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/update-float-attribute.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.UpdateFloatAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + 0, + databases.WithUpdateFloatAttributeMin(0), + databases.WithUpdateFloatAttributeMax(0), + databases.WithUpdateFloatAttributeNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/update-integer-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/update-integer-attribute.md new file mode 100644 index 00000000000..07da6f38ee6 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/update-integer-attribute.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.UpdateIntegerAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + 0, + databases.WithUpdateIntegerAttributeMin(0), + databases.WithUpdateIntegerAttributeMax(0), + databases.WithUpdateIntegerAttributeNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/update-ip-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/update-ip-attribute.md new file mode 100644 index 00000000000..b47672c530e --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/update-ip-attribute.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.UpdateIpAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + "", + databases.WithUpdateIpAttributeNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/update-relationship-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/update-relationship-attribute.md new file mode 100644 index 00000000000..7deadc7c152 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/update-relationship-attribute.md @@ -0,0 +1,30 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.UpdateRelationshipAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + databases.WithUpdateRelationshipAttributeOnDelete("cascade"), + databases.WithUpdateRelationshipAttributeNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/update-string-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/update-string-attribute.md new file mode 100644 index 00000000000..f3e6addb072 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/update-string-attribute.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.UpdateStringAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + "<DEFAULT>", + databases.WithUpdateStringAttributeSize(1), + databases.WithUpdateStringAttributeNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/update-url-attribute.md b/docs/examples/1.5.x/server-go/examples/databases/update-url-attribute.md new file mode 100644 index 00000000000..98dc66fa99c --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/update-url-attribute.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.UpdateUrlAttribute( + "<DATABASE_ID>", + "<COLLECTION_ID>", + "", + false, + "https://example.com", + databases.WithUpdateUrlAttributeNewKey(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/databases/update.md b/docs/examples/1.5.x/server-go/examples/databases/update.md new file mode 100644 index 00000000000..af9e20ba28a --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/databases/update.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.Update( + "<DATABASE_ID>", + "<NAME>", + databases.WithUpdateEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.6.x/server-go/examples/functions/list-templates.md b/docs/examples/1.5.x/server-go/examples/functions/create-build.md similarity index 63% rename from docs/examples/1.6.x/server-go/examples/functions/list-templates.md rename to docs/examples/1.5.x/server-go/examples/functions/create-build.md index 19edf6d360e..33e645bb028 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/list-templates.md +++ b/docs/examples/1.5.x/server-go/examples/functions/create-build.md @@ -11,13 +11,13 @@ func main() { client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key service := functions.NewFunctions(client) - response, error := service.ListTemplates( - functions.WithListTemplatesRuntimes([]interface{}{}), - functions.WithListTemplatesUseCases([]interface{}{}), - functions.WithListTemplatesLimit(1), - functions.WithListTemplatesOffset(0), + response, error := service.CreateBuild( + "<FUNCTION_ID>", + "<DEPLOYMENT_ID>", + functions.WithCreateBuildBuildId("<BUILD_ID>"), ) if error != nil { diff --git a/docs/examples/1.5.x/server-go/examples/functions/create-deployment.md b/docs/examples/1.5.x/server-go/examples/functions/create-deployment.md new file mode 100644 index 00000000000..c6ec69ca4a3 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/create-deployment.md @@ -0,0 +1,30 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := functions.NewFunctions(client) + response, error := service.CreateDeployment( + "<FUNCTION_ID>", + file.NewInputFile("/path/to/file.png", "file.png"), + false, + functions.WithCreateDeploymentEntrypoint("<ENTRYPOINT>"), + functions.WithCreateDeploymentCommands("<COMMANDS>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/create-execution.md b/docs/examples/1.5.x/server-go/examples/functions/create-execution.md new file mode 100644 index 00000000000..4924e2338c7 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/create-execution.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := functions.NewFunctions(client) + response, error := service.CreateExecution( + "<FUNCTION_ID>", + functions.WithCreateExecutionBody("<BODY>"), + functions.WithCreateExecutionAsync(false), + functions.WithCreateExecutionPath("<PATH>"), + functions.WithCreateExecutionMethod("GET"), + functions.WithCreateExecutionHeaders(map[string]interface{}{}), + functions.WithCreateExecutionScheduledAt(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/create-variable.md b/docs/examples/1.5.x/server-go/examples/functions/create-variable.md new file mode 100644 index 00000000000..9d50f0e0ec5 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/create-variable.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := functions.NewFunctions(client) + response, error := service.CreateVariable( + "<FUNCTION_ID>", + "<KEY>", + "<VALUE>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/create.md b/docs/examples/1.5.x/server-go/examples/functions/create.md new file mode 100644 index 00000000000..01cd0f0402c --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/create.md @@ -0,0 +1,47 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := functions.NewFunctions(client) + response, error := service.Create( + "<FUNCTION_ID>", + "<NAME>", + "node-14.5", + functions.WithCreateExecute(interface{}{"any"}), + functions.WithCreateEvents([]interface{}{}), + functions.WithCreateSchedule(""), + functions.WithCreateTimeout(1), + functions.WithCreateEnabled(false), + functions.WithCreateLogging(false), + functions.WithCreateEntrypoint("<ENTRYPOINT>"), + functions.WithCreateCommands("<COMMANDS>"), + functions.WithCreateScopes([]interface{}{}), + functions.WithCreateInstallationId("<INSTALLATION_ID>"), + functions.WithCreateProviderRepositoryId("<PROVIDER_REPOSITORY_ID>"), + functions.WithCreateProviderBranch("<PROVIDER_BRANCH>"), + functions.WithCreateProviderSilentMode(false), + functions.WithCreateProviderRootDirectory("<PROVIDER_ROOT_DIRECTORY>"), + functions.WithCreateTemplateRepository("<TEMPLATE_REPOSITORY>"), + functions.WithCreateTemplateOwner("<TEMPLATE_OWNER>"), + functions.WithCreateTemplateRootDirectory("<TEMPLATE_ROOT_DIRECTORY>"), + functions.WithCreateTemplateVersion("<TEMPLATE_VERSION>"), + functions.WithCreateSpecification(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/delete-deployment.md b/docs/examples/1.5.x/server-go/examples/functions/delete-deployment.md new file mode 100644 index 00000000000..3e189ea1c6e --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/delete-deployment.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := functions.NewFunctions(client) + response, error := service.DeleteDeployment( + "<FUNCTION_ID>", + "<DEPLOYMENT_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/delete-execution.md b/docs/examples/1.5.x/server-go/examples/functions/delete-execution.md new file mode 100644 index 00000000000..184f6234c79 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/delete-execution.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := functions.NewFunctions(client) + response, error := service.DeleteExecution( + "<FUNCTION_ID>", + "<EXECUTION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/delete-variable.md b/docs/examples/1.5.x/server-go/examples/functions/delete-variable.md new file mode 100644 index 00000000000..da9cb443da4 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/delete-variable.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := functions.NewFunctions(client) + response, error := service.DeleteVariable( + "<FUNCTION_ID>", + "<VARIABLE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/delete.md b/docs/examples/1.5.x/server-go/examples/functions/delete.md new file mode 100644 index 00000000000..c19495f32b8 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/delete.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := functions.NewFunctions(client) + response, error := service.Delete( + "<FUNCTION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/get-deployment-download.md b/docs/examples/1.5.x/server-go/examples/functions/get-deployment-download.md new file mode 100644 index 00000000000..16b29f5b910 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/get-deployment-download.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := functions.NewFunctions(client) + response, error := service.GetDeploymentDownload( + "<FUNCTION_ID>", + "<DEPLOYMENT_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.6.x/server-go/examples/functions/download-deployment.md b/docs/examples/1.5.x/server-go/examples/functions/get-deployment.md similarity index 72% rename from docs/examples/1.6.x/server-go/examples/functions/download-deployment.md rename to docs/examples/1.5.x/server-go/examples/functions/get-deployment.md index 37d2149541c..879f5b3e461 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-go/examples/functions/get-deployment.md @@ -10,11 +10,11 @@ func main() { client := client.NewClient() client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - client.SetProject("") // Your project ID - client.SetKey("") // Your secret API key + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key service := functions.NewFunctions(client) - response, error := service.DownloadDeployment( + response, error := service.GetDeployment( "<FUNCTION_ID>", "<DEPLOYMENT_ID>", ) diff --git a/docs/examples/1.5.x/server-go/examples/functions/get-execution.md b/docs/examples/1.5.x/server-go/examples/functions/get-execution.md new file mode 100644 index 00000000000..7ec459b7e12 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/get-execution.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := functions.NewFunctions(client) + response, error := service.GetExecution( + "<FUNCTION_ID>", + "<EXECUTION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/get-variable.md b/docs/examples/1.5.x/server-go/examples/functions/get-variable.md new file mode 100644 index 00000000000..f949ba5111c --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/get-variable.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := functions.NewFunctions(client) + response, error := service.GetVariable( + "<FUNCTION_ID>", + "<VARIABLE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/get.md b/docs/examples/1.5.x/server-go/examples/functions/get.md new file mode 100644 index 00000000000..3e31a307884 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/get.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := functions.NewFunctions(client) + response, error := service.Get( + "<FUNCTION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/list-deployments.md b/docs/examples/1.5.x/server-go/examples/functions/list-deployments.md new file mode 100644 index 00000000000..9549636b8d9 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/list-deployments.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := functions.NewFunctions(client) + response, error := service.ListDeployments( + "<FUNCTION_ID>", + functions.WithListDeploymentsQueries([]interface{}{}), + functions.WithListDeploymentsSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/list-executions.md b/docs/examples/1.5.x/server-go/examples/functions/list-executions.md new file mode 100644 index 00000000000..2a6291c6f34 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/list-executions.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := functions.NewFunctions(client) + response, error := service.ListExecutions( + "<FUNCTION_ID>", + functions.WithListExecutionsQueries([]interface{}{}), + functions.WithListExecutionsSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.6.x/server-go/examples/functions/get-template.md b/docs/examples/1.5.x/server-go/examples/functions/list-runtimes.md similarity index 81% rename from docs/examples/1.6.x/server-go/examples/functions/get-template.md rename to docs/examples/1.5.x/server-go/examples/functions/list-runtimes.md index fe4e1debb9d..d5124b2d687 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/get-template.md +++ b/docs/examples/1.5.x/server-go/examples/functions/list-runtimes.md @@ -11,10 +11,10 @@ func main() { client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key service := functions.NewFunctions(client) - response, error := service.GetTemplate( - "<TEMPLATE_ID>", + response, error := service.ListRuntimes( ) if error != nil { diff --git a/docs/examples/1.5.x/server-go/examples/functions/list-specifications.md b/docs/examples/1.5.x/server-go/examples/functions/list-specifications.md new file mode 100644 index 00000000000..5fb03bb8d50 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/list-specifications.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := functions.NewFunctions(client) + response, error := service.ListSpecifications( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/list-variables.md b/docs/examples/1.5.x/server-go/examples/functions/list-variables.md new file mode 100644 index 00000000000..374c64ae546 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/list-variables.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := functions.NewFunctions(client) + response, error := service.ListVariables( + "<FUNCTION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/list.md b/docs/examples/1.5.x/server-go/examples/functions/list.md new file mode 100644 index 00000000000..124126fc918 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/list.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := functions.NewFunctions(client) + response, error := service.List( + functions.WithListQueries([]interface{}{}), + functions.WithListSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/update-deployment-build.md b/docs/examples/1.5.x/server-go/examples/functions/update-deployment-build.md new file mode 100644 index 00000000000..92af3ee31fb --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/update-deployment-build.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := functions.NewFunctions(client) + response, error := service.UpdateDeploymentBuild( + "<FUNCTION_ID>", + "<DEPLOYMENT_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/update-deployment.md b/docs/examples/1.5.x/server-go/examples/functions/update-deployment.md new file mode 100644 index 00000000000..da08d0d8c69 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/update-deployment.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := functions.NewFunctions(client) + response, error := service.UpdateDeployment( + "<FUNCTION_ID>", + "<DEPLOYMENT_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/update-variable.md b/docs/examples/1.5.x/server-go/examples/functions/update-variable.md new file mode 100644 index 00000000000..fce59eb7140 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/update-variable.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := functions.NewFunctions(client) + response, error := service.UpdateVariable( + "<FUNCTION_ID>", + "<VARIABLE_ID>", + "<KEY>", + functions.WithUpdateVariableValue("<VALUE>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/functions/update.md b/docs/examples/1.5.x/server-go/examples/functions/update.md new file mode 100644 index 00000000000..c29bf748ba2 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/functions/update.md @@ -0,0 +1,43 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/functions" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := functions.NewFunctions(client) + response, error := service.Update( + "<FUNCTION_ID>", + "<NAME>", + functions.WithUpdateRuntime("node-14.5"), + functions.WithUpdateExecute(interface{}{"any"}), + functions.WithUpdateEvents([]interface{}{}), + functions.WithUpdateSchedule(""), + functions.WithUpdateTimeout(1), + functions.WithUpdateEnabled(false), + functions.WithUpdateLogging(false), + functions.WithUpdateEntrypoint("<ENTRYPOINT>"), + functions.WithUpdateCommands("<COMMANDS>"), + functions.WithUpdateScopes([]interface{}{}), + functions.WithUpdateInstallationId("<INSTALLATION_ID>"), + functions.WithUpdateProviderRepositoryId("<PROVIDER_REPOSITORY_ID>"), + functions.WithUpdateProviderBranch("<PROVIDER_BRANCH>"), + functions.WithUpdateProviderSilentMode(false), + functions.WithUpdateProviderRootDirectory("<PROVIDER_ROOT_DIRECTORY>"), + functions.WithUpdateSpecification(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/graphql/mutation.md b/docs/examples/1.5.x/server-go/examples/graphql/mutation.md new file mode 100644 index 00000000000..e011bc8016f --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/graphql/mutation.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/graphql" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := graphql.NewGraphql(client) + response, error := service.Mutation( + map[string]interface{}{}, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/graphql/query.md b/docs/examples/1.5.x/server-go/examples/graphql/query.md new file mode 100644 index 00000000000..6dec430cd7a --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/graphql/query.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/graphql" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := graphql.NewGraphql(client) + response, error := service.Query( + map[string]interface{}{}, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-antivirus.md b/docs/examples/1.5.x/server-go/examples/health/get-antivirus.md new file mode 100644 index 00000000000..2ed5b0dd5a0 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-antivirus.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := health.NewHealth(client) + response, error := service.GetAntivirus( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-cache.md b/docs/examples/1.5.x/server-go/examples/health/get-cache.md new file mode 100644 index 00000000000..4e6b8de6ced --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-cache.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := health.NewHealth(client) + response, error := service.GetCache( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-certificate.md b/docs/examples/1.5.x/server-go/examples/health/get-certificate.md new file mode 100644 index 00000000000..d251fff351b --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-certificate.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := health.NewHealth(client) + response, error := service.GetCertificate( + health.WithGetCertificateDomain(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-d-b.md b/docs/examples/1.5.x/server-go/examples/health/get-d-b.md new file mode 100644 index 00000000000..a6fbda00520 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-d-b.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := health.NewHealth(client) + response, error := service.GetDB( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-failed-jobs.md b/docs/examples/1.5.x/server-go/examples/health/get-failed-jobs.md new file mode 100644 index 00000000000..6e89dd400d5 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-failed-jobs.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := health.NewHealth(client) + response, error := service.GetFailedJobs( + "v1-database", + health.WithGetFailedJobsThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-pub-sub.md b/docs/examples/1.5.x/server-go/examples/health/get-pub-sub.md new file mode 100644 index 00000000000..5ab0d90ef63 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-pub-sub.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := health.NewHealth(client) + response, error := service.GetPubSub( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-queue-builds.md b/docs/examples/1.5.x/server-go/examples/health/get-queue-builds.md new file mode 100644 index 00000000000..bd68bdf8b41 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-queue-builds.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := health.NewHealth(client) + response, error := service.GetQueueBuilds( + health.WithGetQueueBuildsThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-queue-certificates.md b/docs/examples/1.5.x/server-go/examples/health/get-queue-certificates.md new file mode 100644 index 00000000000..1e43f62b980 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-queue-certificates.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := health.NewHealth(client) + response, error := service.GetQueueCertificates( + health.WithGetQueueCertificatesThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-queue-databases.md b/docs/examples/1.5.x/server-go/examples/health/get-queue-databases.md new file mode 100644 index 00000000000..d0fb2fb1149 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-queue-databases.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := health.NewHealth(client) + response, error := service.GetQueueDatabases( + health.WithGetQueueDatabasesName("<NAME>"), + health.WithGetQueueDatabasesThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-queue-deletes.md b/docs/examples/1.5.x/server-go/examples/health/get-queue-deletes.md new file mode 100644 index 00000000000..d4f76f57f22 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-queue-deletes.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := health.NewHealth(client) + response, error := service.GetQueueDeletes( + health.WithGetQueueDeletesThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-queue-functions.md b/docs/examples/1.5.x/server-go/examples/health/get-queue-functions.md new file mode 100644 index 00000000000..75bc0cb3c14 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-queue-functions.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := health.NewHealth(client) + response, error := service.GetQueueFunctions( + health.WithGetQueueFunctionsThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-queue-logs.md b/docs/examples/1.5.x/server-go/examples/health/get-queue-logs.md new file mode 100644 index 00000000000..686e42c84e6 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-queue-logs.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := health.NewHealth(client) + response, error := service.GetQueueLogs( + health.WithGetQueueLogsThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-queue-mails.md b/docs/examples/1.5.x/server-go/examples/health/get-queue-mails.md new file mode 100644 index 00000000000..32433a1f79e --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-queue-mails.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := health.NewHealth(client) + response, error := service.GetQueueMails( + health.WithGetQueueMailsThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-queue-messaging.md b/docs/examples/1.5.x/server-go/examples/health/get-queue-messaging.md new file mode 100644 index 00000000000..56c50010fcc --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-queue-messaging.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := health.NewHealth(client) + response, error := service.GetQueueMessaging( + health.WithGetQueueMessagingThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-queue-migrations.md b/docs/examples/1.5.x/server-go/examples/health/get-queue-migrations.md new file mode 100644 index 00000000000..dba9bd18096 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-queue-migrations.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := health.NewHealth(client) + response, error := service.GetQueueMigrations( + health.WithGetQueueMigrationsThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-queue-stats-resources.md b/docs/examples/1.5.x/server-go/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..74462449e1b --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-queue-stats-resources.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := health.NewHealth(client) + response, error := service.GetQueueStatsResources( + health.WithGetQueueStatsResourcesThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-queue-usage.md b/docs/examples/1.5.x/server-go/examples/health/get-queue-usage.md new file mode 100644 index 00000000000..f4315e37fb3 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-queue-usage.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := health.NewHealth(client) + response, error := service.GetQueueUsage( + health.WithGetQueueUsageThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-queue-webhooks.md b/docs/examples/1.5.x/server-go/examples/health/get-queue-webhooks.md new file mode 100644 index 00000000000..70f3b9888c5 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-queue-webhooks.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := health.NewHealth(client) + response, error := service.GetQueueWebhooks( + health.WithGetQueueWebhooksThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-storage-local.md b/docs/examples/1.5.x/server-go/examples/health/get-storage-local.md new file mode 100644 index 00000000000..1bebff56d45 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-storage-local.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := health.NewHealth(client) + response, error := service.GetStorageLocal( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-storage.md b/docs/examples/1.5.x/server-go/examples/health/get-storage.md new file mode 100644 index 00000000000..8ac0f7fb361 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-storage.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := health.NewHealth(client) + response, error := service.GetStorage( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get-time.md b/docs/examples/1.5.x/server-go/examples/health/get-time.md new file mode 100644 index 00000000000..447954b76b7 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get-time.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := health.NewHealth(client) + response, error := service.GetTime( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/health/get.md b/docs/examples/1.5.x/server-go/examples/health/get.md new file mode 100644 index 00000000000..35022c7302d --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/health/get.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := health.NewHealth(client) + response, error := service.Get( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/locale/get.md b/docs/examples/1.5.x/server-go/examples/locale/get.md new file mode 100644 index 00000000000..233ee953dd0 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/locale/get.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/locale" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := locale.NewLocale(client) + response, error := service.Get( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/locale/list-codes.md b/docs/examples/1.5.x/server-go/examples/locale/list-codes.md new file mode 100644 index 00000000000..d3d049b1fd6 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/locale/list-codes.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/locale" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := locale.NewLocale(client) + response, error := service.ListCodes( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/locale/list-continents.md b/docs/examples/1.5.x/server-go/examples/locale/list-continents.md new file mode 100644 index 00000000000..ba80f2549bf --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/locale/list-continents.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/locale" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := locale.NewLocale(client) + response, error := service.ListContinents( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/server-go/examples/locale/list-countries-e-u.md new file mode 100644 index 00000000000..1fbc22c1e5b --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/locale/list-countries-e-u.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/locale" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := locale.NewLocale(client) + response, error := service.ListCountriesEU( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/server-go/examples/locale/list-countries-phones.md new file mode 100644 index 00000000000..72b7d96a19d --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/locale/list-countries-phones.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/locale" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := locale.NewLocale(client) + response, error := service.ListCountriesPhones( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/locale/list-countries.md b/docs/examples/1.5.x/server-go/examples/locale/list-countries.md new file mode 100644 index 00000000000..894ae4c15bb --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/locale/list-countries.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/locale" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := locale.NewLocale(client) + response, error := service.ListCountries( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/locale/list-currencies.md b/docs/examples/1.5.x/server-go/examples/locale/list-currencies.md new file mode 100644 index 00000000000..4335a934895 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/locale/list-currencies.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/locale" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := locale.NewLocale(client) + response, error := service.ListCurrencies( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/locale/list-languages.md b/docs/examples/1.5.x/server-go/examples/locale/list-languages.md new file mode 100644 index 00000000000..789d5701029 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/locale/list-languages.md @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/locale" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := locale.NewLocale(client) + response, error := service.ListLanguages( + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/create-apns-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/create-apns-provider.md new file mode 100644 index 00000000000..feabfae8461 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/create-apns-provider.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.CreateApnsProvider( + "<PROVIDER_ID>", + "<NAME>", + messaging.WithCreateApnsProviderAuthKey("<AUTH_KEY>"), + messaging.WithCreateApnsProviderAuthKeyId("<AUTH_KEY_ID>"), + messaging.WithCreateApnsProviderTeamId("<TEAM_ID>"), + messaging.WithCreateApnsProviderBundleId("<BUNDLE_ID>"), + messaging.WithCreateApnsProviderSandbox(false), + messaging.WithCreateApnsProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/create-email.md b/docs/examples/1.5.x/server-go/examples/messaging/create-email.md new file mode 100644 index 00000000000..87d386452f2 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/create-email.md @@ -0,0 +1,37 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.CreateEmail( + "<MESSAGE_ID>", + "<SUBJECT>", + "<CONTENT>", + messaging.WithCreateEmailTopics([]interface{}{}), + messaging.WithCreateEmailUsers([]interface{}{}), + messaging.WithCreateEmailTargets([]interface{}{}), + messaging.WithCreateEmailCc([]interface{}{}), + messaging.WithCreateEmailBcc([]interface{}{}), + messaging.WithCreateEmailAttachments([]interface{}{}), + messaging.WithCreateEmailDraft(false), + messaging.WithCreateEmailHtml(false), + messaging.WithCreateEmailScheduledAt(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/create-fcm-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/create-fcm-provider.md new file mode 100644 index 00000000000..54223961974 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/create-fcm-provider.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.CreateFcmProvider( + "<PROVIDER_ID>", + "<NAME>", + messaging.WithCreateFcmProviderServiceAccountJSON(map[string]interface{}{}), + messaging.WithCreateFcmProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/create-mailgun-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/create-mailgun-provider.md new file mode 100644 index 00000000000..2b26246fba1 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/create-mailgun-provider.md @@ -0,0 +1,35 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.CreateMailgunProvider( + "<PROVIDER_ID>", + "<NAME>", + messaging.WithCreateMailgunProviderApiKey("<API_KEY>"), + messaging.WithCreateMailgunProviderDomain("<DOMAIN>"), + messaging.WithCreateMailgunProviderIsEuRegion(false), + messaging.WithCreateMailgunProviderFromName("<FROM_NAME>"), + messaging.WithCreateMailgunProviderFromEmail("email@example.com"), + messaging.WithCreateMailgunProviderReplyToName("<REPLY_TO_NAME>"), + messaging.WithCreateMailgunProviderReplyToEmail("email@example.com"), + messaging.WithCreateMailgunProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/create-msg91provider.md b/docs/examples/1.5.x/server-go/examples/messaging/create-msg91provider.md new file mode 100644 index 00000000000..e2d74128623 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/create-msg91provider.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.CreateMsg91Provider( + "<PROVIDER_ID>", + "<NAME>", + messaging.WithCreateMsg91ProviderTemplateId("<TEMPLATE_ID>"), + messaging.WithCreateMsg91ProviderSenderId("<SENDER_ID>"), + messaging.WithCreateMsg91ProviderAuthKey("<AUTH_KEY>"), + messaging.WithCreateMsg91ProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/create-push.md b/docs/examples/1.5.x/server-go/examples/messaging/create-push.md new file mode 100644 index 00000000000..b40037472f2 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/create-push.md @@ -0,0 +1,44 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.CreatePush( + "<MESSAGE_ID>", + messaging.WithCreatePushTitle("<TITLE>"), + messaging.WithCreatePushBody("<BODY>"), + messaging.WithCreatePushTopics([]interface{}{}), + messaging.WithCreatePushUsers([]interface{}{}), + messaging.WithCreatePushTargets([]interface{}{}), + messaging.WithCreatePushData(map[string]interface{}{}), + messaging.WithCreatePushAction("<ACTION>"), + messaging.WithCreatePushImage("[ID1:ID2]"), + messaging.WithCreatePushIcon("<ICON>"), + messaging.WithCreatePushSound("<SOUND>"), + messaging.WithCreatePushColor("<COLOR>"), + messaging.WithCreatePushTag("<TAG>"), + messaging.WithCreatePushBadge(0), + messaging.WithCreatePushDraft(false), + messaging.WithCreatePushScheduledAt(""), + messaging.WithCreatePushContentAvailable(false), + messaging.WithCreatePushCritical(false), + messaging.WithCreatePushPriority("normal"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/create-sendgrid-provider.md new file mode 100644 index 00000000000..1f70761a7d3 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/create-sendgrid-provider.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.CreateSendgridProvider( + "<PROVIDER_ID>", + "<NAME>", + messaging.WithCreateSendgridProviderApiKey("<API_KEY>"), + messaging.WithCreateSendgridProviderFromName("<FROM_NAME>"), + messaging.WithCreateSendgridProviderFromEmail("email@example.com"), + messaging.WithCreateSendgridProviderReplyToName("<REPLY_TO_NAME>"), + messaging.WithCreateSendgridProviderReplyToEmail("email@example.com"), + messaging.WithCreateSendgridProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/create-sms.md b/docs/examples/1.5.x/server-go/examples/messaging/create-sms.md new file mode 100644 index 00000000000..74583d236d4 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/create-sms.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.CreateSms( + "<MESSAGE_ID>", + "<CONTENT>", + messaging.WithCreateSmsTopics([]interface{}{}), + messaging.WithCreateSmsUsers([]interface{}{}), + messaging.WithCreateSmsTargets([]interface{}{}), + messaging.WithCreateSmsDraft(false), + messaging.WithCreateSmsScheduledAt(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/create-smtp-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/create-smtp-provider.md new file mode 100644 index 00000000000..136e274ed74 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/create-smtp-provider.md @@ -0,0 +1,39 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.CreateSmtpProvider( + "<PROVIDER_ID>", + "<NAME>", + "<HOST>", + messaging.WithCreateSmtpProviderPort(1), + messaging.WithCreateSmtpProviderUsername("<USERNAME>"), + messaging.WithCreateSmtpProviderPassword("<PASSWORD>"), + messaging.WithCreateSmtpProviderEncryption("none"), + messaging.WithCreateSmtpProviderAutoTLS(false), + messaging.WithCreateSmtpProviderMailer("<MAILER>"), + messaging.WithCreateSmtpProviderFromName("<FROM_NAME>"), + messaging.WithCreateSmtpProviderFromEmail("email@example.com"), + messaging.WithCreateSmtpProviderReplyToName("<REPLY_TO_NAME>"), + messaging.WithCreateSmtpProviderReplyToEmail("email@example.com"), + messaging.WithCreateSmtpProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/server-go/examples/messaging/create-subscriber.md new file mode 100644 index 00000000000..38f8418accc --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/create-subscriber.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetJWT("<YOUR_JWT>") // Your secret JSON Web Token + + service := messaging.NewMessaging(client) + response, error := service.CreateSubscriber( + "<TOPIC_ID>", + "<SUBSCRIBER_ID>", + "<TARGET_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/create-telesign-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/create-telesign-provider.md new file mode 100644 index 00000000000..7de661031b8 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/create-telesign-provider.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.CreateTelesignProvider( + "<PROVIDER_ID>", + "<NAME>", + messaging.WithCreateTelesignProviderFrom("+12065550100"), + messaging.WithCreateTelesignProviderCustomerId("<CUSTOMER_ID>"), + messaging.WithCreateTelesignProviderApiKey("<API_KEY>"), + messaging.WithCreateTelesignProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/create-textmagic-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/create-textmagic-provider.md new file mode 100644 index 00000000000..c58bbe7569c --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/create-textmagic-provider.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.CreateTextmagicProvider( + "<PROVIDER_ID>", + "<NAME>", + messaging.WithCreateTextmagicProviderFrom("+12065550100"), + messaging.WithCreateTextmagicProviderUsername("<USERNAME>"), + messaging.WithCreateTextmagicProviderApiKey("<API_KEY>"), + messaging.WithCreateTextmagicProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/create-topic.md b/docs/examples/1.5.x/server-go/examples/messaging/create-topic.md new file mode 100644 index 00000000000..d435d5e4a09 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/create-topic.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.CreateTopic( + "<TOPIC_ID>", + "<NAME>", + messaging.WithCreateTopicSubscribe(interface{}{"any"}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/create-twilio-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/create-twilio-provider.md new file mode 100644 index 00000000000..73c3656ec68 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/create-twilio-provider.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.CreateTwilioProvider( + "<PROVIDER_ID>", + "<NAME>", + messaging.WithCreateTwilioProviderFrom("+12065550100"), + messaging.WithCreateTwilioProviderAccountSid("<ACCOUNT_SID>"), + messaging.WithCreateTwilioProviderAuthToken("<AUTH_TOKEN>"), + messaging.WithCreateTwilioProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/create-vonage-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/create-vonage-provider.md new file mode 100644 index 00000000000..37568abc686 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/create-vonage-provider.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.CreateVonageProvider( + "<PROVIDER_ID>", + "<NAME>", + messaging.WithCreateVonageProviderFrom("+12065550100"), + messaging.WithCreateVonageProviderApiKey("<API_KEY>"), + messaging.WithCreateVonageProviderApiSecret("<API_SECRET>"), + messaging.WithCreateVonageProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/delete-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/delete-provider.md new file mode 100644 index 00000000000..304293d7805 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/delete-provider.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.DeleteProvider( + "<PROVIDER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/server-go/examples/messaging/delete-subscriber.md new file mode 100644 index 00000000000..1e918d95876 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/delete-subscriber.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetJWT("<YOUR_JWT>") // Your secret JSON Web Token + + service := messaging.NewMessaging(client) + response, error := service.DeleteSubscriber( + "<TOPIC_ID>", + "<SUBSCRIBER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/delete-topic.md b/docs/examples/1.5.x/server-go/examples/messaging/delete-topic.md new file mode 100644 index 00000000000..36c13a4a552 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/delete-topic.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.DeleteTopic( + "<TOPIC_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/delete.md b/docs/examples/1.5.x/server-go/examples/messaging/delete.md new file mode 100644 index 00000000000..ce4b8a2e73c --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/delete.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.Delete( + "<MESSAGE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/get-message.md b/docs/examples/1.5.x/server-go/examples/messaging/get-message.md new file mode 100644 index 00000000000..d0d2d21d277 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/get-message.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.GetMessage( + "<MESSAGE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/get-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/get-provider.md new file mode 100644 index 00000000000..9796d60fd36 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/get-provider.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.GetProvider( + "<PROVIDER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/get-subscriber.md b/docs/examples/1.5.x/server-go/examples/messaging/get-subscriber.md new file mode 100644 index 00000000000..c0c39a928c6 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/get-subscriber.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.GetSubscriber( + "<TOPIC_ID>", + "<SUBSCRIBER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/get-topic.md b/docs/examples/1.5.x/server-go/examples/messaging/get-topic.md new file mode 100644 index 00000000000..8c8f4613daa --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/get-topic.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.GetTopic( + "<TOPIC_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/list-message-logs.md b/docs/examples/1.5.x/server-go/examples/messaging/list-message-logs.md new file mode 100644 index 00000000000..6d82a61ee23 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/list-message-logs.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.ListMessageLogs( + "<MESSAGE_ID>", + messaging.WithListMessageLogsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/list-messages.md b/docs/examples/1.5.x/server-go/examples/messaging/list-messages.md new file mode 100644 index 00000000000..047ff9bd1fd --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/list-messages.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.ListMessages( + messaging.WithListMessagesQueries([]interface{}{}), + messaging.WithListMessagesSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/list-provider-logs.md b/docs/examples/1.5.x/server-go/examples/messaging/list-provider-logs.md new file mode 100644 index 00000000000..89449d193a1 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/list-provider-logs.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.ListProviderLogs( + "<PROVIDER_ID>", + messaging.WithListProviderLogsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/list-providers.md b/docs/examples/1.5.x/server-go/examples/messaging/list-providers.md new file mode 100644 index 00000000000..b8ae055baeb --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/list-providers.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.ListProviders( + messaging.WithListProvidersQueries([]interface{}{}), + messaging.WithListProvidersSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/list-subscriber-logs.md b/docs/examples/1.5.x/server-go/examples/messaging/list-subscriber-logs.md new file mode 100644 index 00000000000..679039ec919 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/list-subscriber-logs.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.ListSubscriberLogs( + "<SUBSCRIBER_ID>", + messaging.WithListSubscriberLogsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/list-subscribers.md b/docs/examples/1.5.x/server-go/examples/messaging/list-subscribers.md new file mode 100644 index 00000000000..7da3d67bc70 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/list-subscribers.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.ListSubscribers( + "<TOPIC_ID>", + messaging.WithListSubscribersQueries([]interface{}{}), + messaging.WithListSubscribersSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/list-targets.md b/docs/examples/1.5.x/server-go/examples/messaging/list-targets.md new file mode 100644 index 00000000000..448e3f58a41 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/list-targets.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.ListTargets( + "<MESSAGE_ID>", + messaging.WithListTargetsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/list-topic-logs.md b/docs/examples/1.5.x/server-go/examples/messaging/list-topic-logs.md new file mode 100644 index 00000000000..49316663b3b --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/list-topic-logs.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.ListTopicLogs( + "<TOPIC_ID>", + messaging.WithListTopicLogsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/list-topics.md b/docs/examples/1.5.x/server-go/examples/messaging/list-topics.md new file mode 100644 index 00000000000..39478d30f30 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/list-topics.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.ListTopics( + messaging.WithListTopicsQueries([]interface{}{}), + messaging.WithListTopicsSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/update-apns-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/update-apns-provider.md new file mode 100644 index 00000000000..bd331bca3c7 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/update-apns-provider.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.UpdateApnsProvider( + "<PROVIDER_ID>", + messaging.WithUpdateApnsProviderName("<NAME>"), + messaging.WithUpdateApnsProviderEnabled(false), + messaging.WithUpdateApnsProviderAuthKey("<AUTH_KEY>"), + messaging.WithUpdateApnsProviderAuthKeyId("<AUTH_KEY_ID>"), + messaging.WithUpdateApnsProviderTeamId("<TEAM_ID>"), + messaging.WithUpdateApnsProviderBundleId("<BUNDLE_ID>"), + messaging.WithUpdateApnsProviderSandbox(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/update-email.md b/docs/examples/1.5.x/server-go/examples/messaging/update-email.md new file mode 100644 index 00000000000..86c7ee0601c --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/update-email.md @@ -0,0 +1,37 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.UpdateEmail( + "<MESSAGE_ID>", + messaging.WithUpdateEmailTopics([]interface{}{}), + messaging.WithUpdateEmailUsers([]interface{}{}), + messaging.WithUpdateEmailTargets([]interface{}{}), + messaging.WithUpdateEmailSubject("<SUBJECT>"), + messaging.WithUpdateEmailContent("<CONTENT>"), + messaging.WithUpdateEmailDraft(false), + messaging.WithUpdateEmailHtml(false), + messaging.WithUpdateEmailCc([]interface{}{}), + messaging.WithUpdateEmailBcc([]interface{}{}), + messaging.WithUpdateEmailScheduledAt(""), + messaging.WithUpdateEmailAttachments([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/update-fcm-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/update-fcm-provider.md new file mode 100644 index 00000000000..c6bd3ba4857 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/update-fcm-provider.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.UpdateFcmProvider( + "<PROVIDER_ID>", + messaging.WithUpdateFcmProviderName("<NAME>"), + messaging.WithUpdateFcmProviderEnabled(false), + messaging.WithUpdateFcmProviderServiceAccountJSON(map[string]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/update-mailgun-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/update-mailgun-provider.md new file mode 100644 index 00000000000..00789d2f6db --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/update-mailgun-provider.md @@ -0,0 +1,35 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.UpdateMailgunProvider( + "<PROVIDER_ID>", + messaging.WithUpdateMailgunProviderName("<NAME>"), + messaging.WithUpdateMailgunProviderApiKey("<API_KEY>"), + messaging.WithUpdateMailgunProviderDomain("<DOMAIN>"), + messaging.WithUpdateMailgunProviderIsEuRegion(false), + messaging.WithUpdateMailgunProviderEnabled(false), + messaging.WithUpdateMailgunProviderFromName("<FROM_NAME>"), + messaging.WithUpdateMailgunProviderFromEmail("email@example.com"), + messaging.WithUpdateMailgunProviderReplyToName("<REPLY_TO_NAME>"), + messaging.WithUpdateMailgunProviderReplyToEmail("<REPLY_TO_EMAIL>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/update-msg91provider.md b/docs/examples/1.5.x/server-go/examples/messaging/update-msg91provider.md new file mode 100644 index 00000000000..0bda860823c --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/update-msg91provider.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.UpdateMsg91Provider( + "<PROVIDER_ID>", + messaging.WithUpdateMsg91ProviderName("<NAME>"), + messaging.WithUpdateMsg91ProviderEnabled(false), + messaging.WithUpdateMsg91ProviderTemplateId("<TEMPLATE_ID>"), + messaging.WithUpdateMsg91ProviderSenderId("<SENDER_ID>"), + messaging.WithUpdateMsg91ProviderAuthKey("<AUTH_KEY>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/update-push.md b/docs/examples/1.5.x/server-go/examples/messaging/update-push.md new file mode 100644 index 00000000000..d1b47256c07 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/update-push.md @@ -0,0 +1,44 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.UpdatePush( + "<MESSAGE_ID>", + messaging.WithUpdatePushTopics([]interface{}{}), + messaging.WithUpdatePushUsers([]interface{}{}), + messaging.WithUpdatePushTargets([]interface{}{}), + messaging.WithUpdatePushTitle("<TITLE>"), + messaging.WithUpdatePushBody("<BODY>"), + messaging.WithUpdatePushData(map[string]interface{}{}), + messaging.WithUpdatePushAction("<ACTION>"), + messaging.WithUpdatePushImage("[ID1:ID2]"), + messaging.WithUpdatePushIcon("<ICON>"), + messaging.WithUpdatePushSound("<SOUND>"), + messaging.WithUpdatePushColor("<COLOR>"), + messaging.WithUpdatePushTag("<TAG>"), + messaging.WithUpdatePushBadge(0), + messaging.WithUpdatePushDraft(false), + messaging.WithUpdatePushScheduledAt(""), + messaging.WithUpdatePushContentAvailable(false), + messaging.WithUpdatePushCritical(false), + messaging.WithUpdatePushPriority("normal"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/update-sendgrid-provider.md new file mode 100644 index 00000000000..e7205716ccb --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/update-sendgrid-provider.md @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.UpdateSendgridProvider( + "<PROVIDER_ID>", + messaging.WithUpdateSendgridProviderName("<NAME>"), + messaging.WithUpdateSendgridProviderEnabled(false), + messaging.WithUpdateSendgridProviderApiKey("<API_KEY>"), + messaging.WithUpdateSendgridProviderFromName("<FROM_NAME>"), + messaging.WithUpdateSendgridProviderFromEmail("email@example.com"), + messaging.WithUpdateSendgridProviderReplyToName("<REPLY_TO_NAME>"), + messaging.WithUpdateSendgridProviderReplyToEmail("<REPLY_TO_EMAIL>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/update-sms.md b/docs/examples/1.5.x/server-go/examples/messaging/update-sms.md new file mode 100644 index 00000000000..2f74b58422b --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/update-sms.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.UpdateSms( + "<MESSAGE_ID>", + messaging.WithUpdateSmsTopics([]interface{}{}), + messaging.WithUpdateSmsUsers([]interface{}{}), + messaging.WithUpdateSmsTargets([]interface{}{}), + messaging.WithUpdateSmsContent("<CONTENT>"), + messaging.WithUpdateSmsDraft(false), + messaging.WithUpdateSmsScheduledAt(""), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/update-smtp-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/update-smtp-provider.md new file mode 100644 index 00000000000..5c0ecedf944 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/update-smtp-provider.md @@ -0,0 +1,39 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.UpdateSmtpProvider( + "<PROVIDER_ID>", + messaging.WithUpdateSmtpProviderName("<NAME>"), + messaging.WithUpdateSmtpProviderHost("<HOST>"), + messaging.WithUpdateSmtpProviderPort(1), + messaging.WithUpdateSmtpProviderUsername("<USERNAME>"), + messaging.WithUpdateSmtpProviderPassword("<PASSWORD>"), + messaging.WithUpdateSmtpProviderEncryption("none"), + messaging.WithUpdateSmtpProviderAutoTLS(false), + messaging.WithUpdateSmtpProviderMailer("<MAILER>"), + messaging.WithUpdateSmtpProviderFromName("<FROM_NAME>"), + messaging.WithUpdateSmtpProviderFromEmail("email@example.com"), + messaging.WithUpdateSmtpProviderReplyToName("<REPLY_TO_NAME>"), + messaging.WithUpdateSmtpProviderReplyToEmail("<REPLY_TO_EMAIL>"), + messaging.WithUpdateSmtpProviderEnabled(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/update-telesign-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/update-telesign-provider.md new file mode 100644 index 00000000000..c30c288caa1 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/update-telesign-provider.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.UpdateTelesignProvider( + "<PROVIDER_ID>", + messaging.WithUpdateTelesignProviderName("<NAME>"), + messaging.WithUpdateTelesignProviderEnabled(false), + messaging.WithUpdateTelesignProviderCustomerId("<CUSTOMER_ID>"), + messaging.WithUpdateTelesignProviderApiKey("<API_KEY>"), + messaging.WithUpdateTelesignProviderFrom("<FROM>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/update-textmagic-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/update-textmagic-provider.md new file mode 100644 index 00000000000..baaed6020d2 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/update-textmagic-provider.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.UpdateTextmagicProvider( + "<PROVIDER_ID>", + messaging.WithUpdateTextmagicProviderName("<NAME>"), + messaging.WithUpdateTextmagicProviderEnabled(false), + messaging.WithUpdateTextmagicProviderUsername("<USERNAME>"), + messaging.WithUpdateTextmagicProviderApiKey("<API_KEY>"), + messaging.WithUpdateTextmagicProviderFrom("<FROM>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/update-topic.md b/docs/examples/1.5.x/server-go/examples/messaging/update-topic.md new file mode 100644 index 00000000000..4f5b003e3bc --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/update-topic.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.UpdateTopic( + "<TOPIC_ID>", + messaging.WithUpdateTopicName("<NAME>"), + messaging.WithUpdateTopicSubscribe(interface{}{"any"}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/update-twilio-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/update-twilio-provider.md new file mode 100644 index 00000000000..1763a5f02df --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/update-twilio-provider.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.UpdateTwilioProvider( + "<PROVIDER_ID>", + messaging.WithUpdateTwilioProviderName("<NAME>"), + messaging.WithUpdateTwilioProviderEnabled(false), + messaging.WithUpdateTwilioProviderAccountSid("<ACCOUNT_SID>"), + messaging.WithUpdateTwilioProviderAuthToken("<AUTH_TOKEN>"), + messaging.WithUpdateTwilioProviderFrom("<FROM>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/messaging/update-vonage-provider.md b/docs/examples/1.5.x/server-go/examples/messaging/update-vonage-provider.md new file mode 100644 index 00000000000..ea1d6fe3936 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/messaging/update-vonage-provider.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/messaging" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := messaging.NewMessaging(client) + response, error := service.UpdateVonageProvider( + "<PROVIDER_ID>", + messaging.WithUpdateVonageProviderName("<NAME>"), + messaging.WithUpdateVonageProviderEnabled(false), + messaging.WithUpdateVonageProviderApiKey("<API_KEY>"), + messaging.WithUpdateVonageProviderApiSecret("<API_SECRET>"), + messaging.WithUpdateVonageProviderFrom("<FROM>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/storage/create-bucket.md b/docs/examples/1.5.x/server-go/examples/storage/create-bucket.md new file mode 100644 index 00000000000..9ab1965854a --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/storage/create-bucket.md @@ -0,0 +1,35 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := storage.NewStorage(client) + response, error := service.CreateBucket( + "<BUCKET_ID>", + "<NAME>", + storage.WithCreateBucketPermissions(interface{}{"read("any")"}), + storage.WithCreateBucketFileSecurity(false), + storage.WithCreateBucketEnabled(false), + storage.WithCreateBucketMaximumFileSize(1), + storage.WithCreateBucketAllowedFileExtensions([]interface{}{}), + storage.WithCreateBucketCompression("none"), + storage.WithCreateBucketEncryption(false), + storage.WithCreateBucketAntivirus(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/storage/create-file.md b/docs/examples/1.5.x/server-go/examples/storage/create-file.md new file mode 100644 index 00000000000..e561e22e3e8 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/storage/create-file.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := storage.NewStorage(client) + response, error := service.CreateFile( + "<BUCKET_ID>", + "<FILE_ID>", + file.NewInputFile("/path/to/file.png", "file.png"), + storage.WithCreateFilePermissions(interface{}{"read("any")"}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/storage/delete-bucket.md b/docs/examples/1.5.x/server-go/examples/storage/delete-bucket.md new file mode 100644 index 00000000000..227ae84109f --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/storage/delete-bucket.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := storage.NewStorage(client) + response, error := service.DeleteBucket( + "<BUCKET_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/storage/delete-file.md b/docs/examples/1.5.x/server-go/examples/storage/delete-file.md new file mode 100644 index 00000000000..d67861b0b20 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/storage/delete-file.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := storage.NewStorage(client) + response, error := service.DeleteFile( + "<BUCKET_ID>", + "<FILE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/storage/get-bucket.md b/docs/examples/1.5.x/server-go/examples/storage/get-bucket.md new file mode 100644 index 00000000000..3aa33b40c06 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/storage/get-bucket.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := storage.NewStorage(client) + response, error := service.GetBucket( + "<BUCKET_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/storage/get-file-download.md b/docs/examples/1.5.x/server-go/examples/storage/get-file-download.md new file mode 100644 index 00000000000..aa9185cadd9 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/storage/get-file-download.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := storage.NewStorage(client) + response, error := service.GetFileDownload( + "<BUCKET_ID>", + "<FILE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/storage/get-file-preview.md b/docs/examples/1.5.x/server-go/examples/storage/get-file-preview.md new file mode 100644 index 00000000000..2210c4559e9 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/storage/get-file-preview.md @@ -0,0 +1,38 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := storage.NewStorage(client) + response, error := service.GetFilePreview( + "<BUCKET_ID>", + "<FILE_ID>", + storage.WithGetFilePreviewWidth(0), + storage.WithGetFilePreviewHeight(0), + storage.WithGetFilePreviewGravity("center"), + storage.WithGetFilePreviewQuality(0), + storage.WithGetFilePreviewBorderWidth(0), + storage.WithGetFilePreviewBorderColor(""), + storage.WithGetFilePreviewBorderRadius(0), + storage.WithGetFilePreviewOpacity(0), + storage.WithGetFilePreviewRotation(-360), + storage.WithGetFilePreviewBackground(""), + storage.WithGetFilePreviewOutput("jpg"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/storage/get-file-view.md b/docs/examples/1.5.x/server-go/examples/storage/get-file-view.md new file mode 100644 index 00000000000..e4a3ece23c2 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/storage/get-file-view.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := storage.NewStorage(client) + response, error := service.GetFileView( + "<BUCKET_ID>", + "<FILE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/storage/get-file.md b/docs/examples/1.5.x/server-go/examples/storage/get-file.md new file mode 100644 index 00000000000..4dfc7df8294 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/storage/get-file.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := storage.NewStorage(client) + response, error := service.GetFile( + "<BUCKET_ID>", + "<FILE_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/storage/list-buckets.md b/docs/examples/1.5.x/server-go/examples/storage/list-buckets.md new file mode 100644 index 00000000000..571d46376e9 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/storage/list-buckets.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := storage.NewStorage(client) + response, error := service.ListBuckets( + storage.WithListBucketsQueries([]interface{}{}), + storage.WithListBucketsSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/storage/list-files.md b/docs/examples/1.5.x/server-go/examples/storage/list-files.md new file mode 100644 index 00000000000..13f4549a9a0 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/storage/list-files.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := storage.NewStorage(client) + response, error := service.ListFiles( + "<BUCKET_ID>", + storage.WithListFilesQueries([]interface{}{}), + storage.WithListFilesSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/storage/update-bucket.md b/docs/examples/1.5.x/server-go/examples/storage/update-bucket.md new file mode 100644 index 00000000000..6c7f9463c90 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/storage/update-bucket.md @@ -0,0 +1,35 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := storage.NewStorage(client) + response, error := service.UpdateBucket( + "<BUCKET_ID>", + "<NAME>", + storage.WithUpdateBucketPermissions(interface{}{"read("any")"}), + storage.WithUpdateBucketFileSecurity(false), + storage.WithUpdateBucketEnabled(false), + storage.WithUpdateBucketMaximumFileSize(1), + storage.WithUpdateBucketAllowedFileExtensions([]interface{}{}), + storage.WithUpdateBucketCompression("none"), + storage.WithUpdateBucketEncryption(false), + storage.WithUpdateBucketAntivirus(false), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/storage/update-file.md b/docs/examples/1.5.x/server-go/examples/storage/update-file.md new file mode 100644 index 00000000000..820e6d4f230 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/storage/update-file.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/storage" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := storage.NewStorage(client) + response, error := service.UpdateFile( + "<BUCKET_ID>", + "<FILE_ID>", + storage.WithUpdateFileName("<NAME>"), + storage.WithUpdateFilePermissions(interface{}{"read("any")"}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/teams/create-membership.md b/docs/examples/1.5.x/server-go/examples/teams/create-membership.md new file mode 100644 index 00000000000..186520d47a8 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/teams/create-membership.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := teams.NewTeams(client) + response, error := service.CreateMembership( + "<TEAM_ID>", + []interface{}{}, + teams.WithCreateMembershipEmail("email@example.com"), + teams.WithCreateMembershipUserId("<USER_ID>"), + teams.WithCreateMembershipPhone("+12065550100"), + teams.WithCreateMembershipUrl("https://example.com"), + teams.WithCreateMembershipName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/teams/create.md b/docs/examples/1.5.x/server-go/examples/teams/create.md new file mode 100644 index 00000000000..b429e396a66 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/teams/create.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := teams.NewTeams(client) + response, error := service.Create( + "<TEAM_ID>", + "<NAME>", + teams.WithCreateRoles([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/teams/delete-membership.md b/docs/examples/1.5.x/server-go/examples/teams/delete-membership.md new file mode 100644 index 00000000000..536aa91f93a --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/teams/delete-membership.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := teams.NewTeams(client) + response, error := service.DeleteMembership( + "<TEAM_ID>", + "<MEMBERSHIP_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/teams/delete.md b/docs/examples/1.5.x/server-go/examples/teams/delete.md new file mode 100644 index 00000000000..8e1c5d48934 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/teams/delete.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := teams.NewTeams(client) + response, error := service.Delete( + "<TEAM_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/teams/get-membership.md b/docs/examples/1.5.x/server-go/examples/teams/get-membership.md new file mode 100644 index 00000000000..3bc8650dd9b --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/teams/get-membership.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := teams.NewTeams(client) + response, error := service.GetMembership( + "<TEAM_ID>", + "<MEMBERSHIP_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/teams/get-prefs.md b/docs/examples/1.5.x/server-go/examples/teams/get-prefs.md new file mode 100644 index 00000000000..bb2ff1c7780 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/teams/get-prefs.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := teams.NewTeams(client) + response, error := service.GetPrefs( + "<TEAM_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/teams/get.md b/docs/examples/1.5.x/server-go/examples/teams/get.md new file mode 100644 index 00000000000..69b00075a90 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/teams/get.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := teams.NewTeams(client) + response, error := service.Get( + "<TEAM_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/teams/list-memberships.md b/docs/examples/1.5.x/server-go/examples/teams/list-memberships.md new file mode 100644 index 00000000000..45a6267e989 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/teams/list-memberships.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := teams.NewTeams(client) + response, error := service.ListMemberships( + "<TEAM_ID>", + teams.WithListMembershipsQueries([]interface{}{}), + teams.WithListMembershipsSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/teams/list.md b/docs/examples/1.5.x/server-go/examples/teams/list.md new file mode 100644 index 00000000000..96c5f8ab747 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/teams/list.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := teams.NewTeams(client) + response, error := service.List( + teams.WithListQueries([]interface{}{}), + teams.WithListSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/teams/update-membership-status.md b/docs/examples/1.5.x/server-go/examples/teams/update-membership-status.md new file mode 100644 index 00000000000..accc79ebce0 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/teams/update-membership-status.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := teams.NewTeams(client) + response, error := service.UpdateMembershipStatus( + "<TEAM_ID>", + "<MEMBERSHIP_ID>", + "<USER_ID>", + "<SECRET>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/teams/update-membership.md b/docs/examples/1.5.x/server-go/examples/teams/update-membership.md new file mode 100644 index 00000000000..9f18528938d --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/teams/update-membership.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := teams.NewTeams(client) + response, error := service.UpdateMembership( + "<TEAM_ID>", + "<MEMBERSHIP_ID>", + []interface{}{}, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/teams/update-name.md b/docs/examples/1.5.x/server-go/examples/teams/update-name.md new file mode 100644 index 00000000000..05459deb4a3 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/teams/update-name.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := teams.NewTeams(client) + response, error := service.UpdateName( + "<TEAM_ID>", + "<NAME>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/teams/update-prefs.md b/docs/examples/1.5.x/server-go/examples/teams/update-prefs.md new file mode 100644 index 00000000000..314cf6c6852 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/teams/update-prefs.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/teams" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := teams.NewTeams(client) + response, error := service.UpdatePrefs( + "<TEAM_ID>", + map[string]interface{}{}, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/create-argon2user.md b/docs/examples/1.5.x/server-go/examples/users/create-argon2user.md new file mode 100644 index 00000000000..87226b8033b --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/create-argon2user.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.CreateArgon2User( + "<USER_ID>", + "email@example.com", + "password", + users.WithCreateArgon2UserName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/create-bcrypt-user.md b/docs/examples/1.5.x/server-go/examples/users/create-bcrypt-user.md new file mode 100644 index 00000000000..89e979d1b87 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/create-bcrypt-user.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.CreateBcryptUser( + "<USER_ID>", + "email@example.com", + "password", + users.WithCreateBcryptUserName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/create-j-w-t.md b/docs/examples/1.5.x/server-go/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..37d1a5d0eba --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/create-j-w-t.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.CreateJWT( + "<USER_ID>", + users.WithCreateJWTSessionId("<SESSION_ID>"), + users.WithCreateJWTDuration(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/create-m-d5user.md b/docs/examples/1.5.x/server-go/examples/users/create-m-d5user.md new file mode 100644 index 00000000000..d2c87b4d147 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/create-m-d5user.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.CreateMD5User( + "<USER_ID>", + "email@example.com", + "password", + users.WithCreateMD5UserName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-go/examples/users/create-mfa-recovery-codes.md new file mode 100644 index 00000000000..6757a627215 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/create-mfa-recovery-codes.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.CreateMfaRecoveryCodes( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/create-p-h-pass-user.md b/docs/examples/1.5.x/server-go/examples/users/create-p-h-pass-user.md new file mode 100644 index 00000000000..f8a9f4007d4 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/create-p-h-pass-user.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.CreatePHPassUser( + "<USER_ID>", + "email@example.com", + "password", + users.WithCreatePHPassUserName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/create-s-h-a-user.md b/docs/examples/1.5.x/server-go/examples/users/create-s-h-a-user.md new file mode 100644 index 00000000000..b8e348c8844 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/create-s-h-a-user.md @@ -0,0 +1,30 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.CreateSHAUser( + "<USER_ID>", + "email@example.com", + "password", + users.WithCreateSHAUserPasswordVersion("sha1"), + users.WithCreateSHAUserName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/create-scrypt-modified-user.md b/docs/examples/1.5.x/server-go/examples/users/create-scrypt-modified-user.md new file mode 100644 index 00000000000..935ecc12cc7 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/create-scrypt-modified-user.md @@ -0,0 +1,32 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.CreateScryptModifiedUser( + "<USER_ID>", + "email@example.com", + "password", + "<PASSWORD_SALT>", + "<PASSWORD_SALT_SEPARATOR>", + "<PASSWORD_SIGNER_KEY>", + users.WithCreateScryptModifiedUserName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/create-scrypt-user.md b/docs/examples/1.5.x/server-go/examples/users/create-scrypt-user.md new file mode 100644 index 00000000000..8320412796c --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/create-scrypt-user.md @@ -0,0 +1,34 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.CreateScryptUser( + "<USER_ID>", + "email@example.com", + "password", + "<PASSWORD_SALT>", + 0, + 0, + 0, + 0, + users.WithCreateScryptUserName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/create-session.md b/docs/examples/1.5.x/server-go/examples/users/create-session.md new file mode 100644 index 00000000000..b246b8feb7a --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/create-session.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.CreateSession( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/create-target.md b/docs/examples/1.5.x/server-go/examples/users/create-target.md new file mode 100644 index 00000000000..d4802c19980 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/create-target.md @@ -0,0 +1,31 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.CreateTarget( + "<USER_ID>", + "<TARGET_ID>", + "email", + "<IDENTIFIER>", + users.WithCreateTargetProviderId("<PROVIDER_ID>"), + users.WithCreateTargetName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/create-token.md b/docs/examples/1.5.x/server-go/examples/users/create-token.md new file mode 100644 index 00000000000..ea9b5a1e8b3 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/create-token.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.CreateToken( + "<USER_ID>", + users.WithCreateTokenLength(4), + users.WithCreateTokenExpire(60), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/create.md b/docs/examples/1.5.x/server-go/examples/users/create.md new file mode 100644 index 00000000000..f1b8f25d616 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/create.md @@ -0,0 +1,30 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.Create( + "<USER_ID>", + users.WithCreateEmail("email@example.com"), + users.WithCreatePhone("+12065550100"), + users.WithCreatePassword(""), + users.WithCreateName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/delete-identity.md b/docs/examples/1.5.x/server-go/examples/users/delete-identity.md new file mode 100644 index 00000000000..af33140a4fd --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/delete-identity.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.DeleteIdentity( + "<IDENTITY_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-go/examples/users/delete-mfa-authenticator.md new file mode 100644 index 00000000000..eb8f23b6a30 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/delete-mfa-authenticator.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.DeleteMfaAuthenticator( + "<USER_ID>", + "totp", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/delete-session.md b/docs/examples/1.5.x/server-go/examples/users/delete-session.md new file mode 100644 index 00000000000..b29c8b0d709 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/delete-session.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.DeleteSession( + "<USER_ID>", + "<SESSION_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/delete-sessions.md b/docs/examples/1.5.x/server-go/examples/users/delete-sessions.md new file mode 100644 index 00000000000..9fc4e8012a2 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/delete-sessions.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.DeleteSessions( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/delete-target.md b/docs/examples/1.5.x/server-go/examples/users/delete-target.md new file mode 100644 index 00000000000..73443c5a1d9 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/delete-target.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.DeleteTarget( + "<USER_ID>", + "<TARGET_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/delete.md b/docs/examples/1.5.x/server-go/examples/users/delete.md new file mode 100644 index 00000000000..4e4e0468919 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/delete.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.Delete( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-go/examples/users/get-mfa-recovery-codes.md new file mode 100644 index 00000000000..6e70217d0d9 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/get-mfa-recovery-codes.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.GetMfaRecoveryCodes( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/get-prefs.md b/docs/examples/1.5.x/server-go/examples/users/get-prefs.md new file mode 100644 index 00000000000..8c05fddc5f6 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/get-prefs.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.GetPrefs( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/get-target.md b/docs/examples/1.5.x/server-go/examples/users/get-target.md new file mode 100644 index 00000000000..761d008b374 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/get-target.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.GetTarget( + "<USER_ID>", + "<TARGET_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/get.md b/docs/examples/1.5.x/server-go/examples/users/get.md new file mode 100644 index 00000000000..44852bb9721 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/get.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.Get( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/list-identities.md b/docs/examples/1.5.x/server-go/examples/users/list-identities.md new file mode 100644 index 00000000000..a4cbbbd1eeb --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/list-identities.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.ListIdentities( + users.WithListIdentitiesQueries([]interface{}{}), + users.WithListIdentitiesSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/list-logs.md b/docs/examples/1.5.x/server-go/examples/users/list-logs.md new file mode 100644 index 00000000000..a713ee3ba29 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/list-logs.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.ListLogs( + "<USER_ID>", + users.WithListLogsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/list-memberships.md b/docs/examples/1.5.x/server-go/examples/users/list-memberships.md new file mode 100644 index 00000000000..5770fd8c7e3 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/list-memberships.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.ListMemberships( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/list-mfa-factors.md b/docs/examples/1.5.x/server-go/examples/users/list-mfa-factors.md new file mode 100644 index 00000000000..d89e0f3f967 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/list-mfa-factors.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.ListMfaFactors( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/list-sessions.md b/docs/examples/1.5.x/server-go/examples/users/list-sessions.md new file mode 100644 index 00000000000..a58d0532df5 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/list-sessions.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.ListSessions( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/list-targets.md b/docs/examples/1.5.x/server-go/examples/users/list-targets.md new file mode 100644 index 00000000000..45f967b4245 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/list-targets.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.ListTargets( + "<USER_ID>", + users.WithListTargetsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/list.md b/docs/examples/1.5.x/server-go/examples/users/list.md new file mode 100644 index 00000000000..b84ee0e3b73 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/list.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.List( + users.WithListQueries([]interface{}{}), + users.WithListSearch("<SEARCH>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/update-email-verification.md b/docs/examples/1.5.x/server-go/examples/users/update-email-verification.md new file mode 100644 index 00000000000..af4c066543b --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/update-email-verification.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.UpdateEmailVerification( + "<USER_ID>", + false, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/update-email.md b/docs/examples/1.5.x/server-go/examples/users/update-email.md new file mode 100644 index 00000000000..ea18cc68637 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/update-email.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.UpdateEmail( + "<USER_ID>", + "email@example.com", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/update-labels.md b/docs/examples/1.5.x/server-go/examples/users/update-labels.md new file mode 100644 index 00000000000..63bbe1255b5 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/update-labels.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.UpdateLabels( + "<USER_ID>", + []interface{}{}, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-go/examples/users/update-mfa-recovery-codes.md new file mode 100644 index 00000000000..408721b2ec7 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/update-mfa-recovery-codes.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.UpdateMfaRecoveryCodes( + "<USER_ID>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/update-mfa.md b/docs/examples/1.5.x/server-go/examples/users/update-mfa.md new file mode 100644 index 00000000000..9da9d05fd07 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/update-mfa.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.UpdateMfa( + "<USER_ID>", + false, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/update-name.md b/docs/examples/1.5.x/server-go/examples/users/update-name.md new file mode 100644 index 00000000000..7d5a2553ea9 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/update-name.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.UpdateName( + "<USER_ID>", + "<NAME>", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/update-password.md b/docs/examples/1.5.x/server-go/examples/users/update-password.md new file mode 100644 index 00000000000..64f5766c9b7 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/update-password.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.UpdatePassword( + "<USER_ID>", + "", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/update-phone-verification.md b/docs/examples/1.5.x/server-go/examples/users/update-phone-verification.md new file mode 100644 index 00000000000..409cdf3c18c --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/update-phone-verification.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.UpdatePhoneVerification( + "<USER_ID>", + false, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/update-phone.md b/docs/examples/1.5.x/server-go/examples/users/update-phone.md new file mode 100644 index 00000000000..0440906d1ec --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/update-phone.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.UpdatePhone( + "<USER_ID>", + "+12065550100", + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/update-prefs.md b/docs/examples/1.5.x/server-go/examples/users/update-prefs.md new file mode 100644 index 00000000000..184235d2dd2 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/update-prefs.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.UpdatePrefs( + "<USER_ID>", + map[string]interface{}{}, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/update-status.md b/docs/examples/1.5.x/server-go/examples/users/update-status.md new file mode 100644 index 00000000000..a081d0bff43 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/update-status.md @@ -0,0 +1,27 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.UpdateStatus( + "<USER_ID>", + false, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-go/examples/users/update-target.md b/docs/examples/1.5.x/server-go/examples/users/update-target.md new file mode 100644 index 00000000000..a06c395cab1 --- /dev/null +++ b/docs/examples/1.5.x/server-go/examples/users/update-target.md @@ -0,0 +1,30 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/users" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := users.NewUsers(client) + response, error := service.UpdateTarget( + "<USER_ID>", + "<TARGET_ID>", + users.WithUpdateTargetIdentifier("<IDENTIFIER>"), + users.WithUpdateTargetProviderId("<PROVIDER_ID>"), + users.WithUpdateTargetName("<NAME>"), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.5.x/server-graphql/examples/account/create.md b/docs/examples/1.5.x/server-graphql/examples/account/create.md index 3f8e3c3cf7c..0d39394a3d0 100644 --- a/docs/examples/1.5.x/server-graphql/examples/account/create.md +++ b/docs/examples/1.5.x/server-graphql/examples/account/create.md @@ -33,6 +33,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-graphql/examples/account/delete-mfa-authenticator.md index de14ae68f3a..fc5486623a9 100644 --- a/docs/examples/1.5.x/server-graphql/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-graphql/examples/account/delete-mfa-authenticator.md @@ -1,7 +1,6 @@ mutation { accountDeleteMfaAuthenticator( - type: "totp", - otp: "<OTP>" + type: "totp" ) { status } diff --git a/docs/examples/1.5.x/server-graphql/examples/account/get.md b/docs/examples/1.5.x/server-graphql/examples/account/get.md index e4db8f0e414..f4f07c187f2 100644 --- a/docs/examples/1.5.x/server-graphql/examples/account/get.md +++ b/docs/examples/1.5.x/server-graphql/examples/account/get.md @@ -28,6 +28,7 @@ query { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/account/update-email.md b/docs/examples/1.5.x/server-graphql/examples/account/update-email.md index b207bad4bbb..c879e24a43a 100644 --- a/docs/examples/1.5.x/server-graphql/examples/account/update-email.md +++ b/docs/examples/1.5.x/server-graphql/examples/account/update-email.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/account/update-m-f-a.md b/docs/examples/1.5.x/server-graphql/examples/account/update-m-f-a.md index d2cd3d6ae54..787c2e08608 100644 --- a/docs/examples/1.5.x/server-graphql/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/server-graphql/examples/account/update-m-f-a.md @@ -30,6 +30,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/server-graphql/examples/account/update-mfa-authenticator.md index c74062c7d4a..9cfe9150be6 100644 --- a/docs/examples/1.5.x/server-graphql/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-graphql/examples/account/update-mfa-authenticator.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/server-graphql/examples/account/update-mfa-challenge.md index 8237431bcfc..0bcec2157fe 100644 --- a/docs/examples/1.5.x/server-graphql/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/server-graphql/examples/account/update-mfa-challenge.md @@ -3,6 +3,34 @@ mutation { challengeId: "<CHALLENGE_ID>", otp: "<OTP>" ) { - status + _id + _createdAt + _updatedAt + userId + expire + provider + providerUid + providerAccessToken + providerAccessTokenExpiry + providerRefreshToken + ip + osCode + osName + osVersion + clientType + clientCode + clientName + clientVersion + clientEngine + clientEngineVersion + deviceName + deviceBrand + deviceModel + countryCode + countryName + current + factors + secret + mfaUpdatedAt } } diff --git a/docs/examples/1.5.x/server-graphql/examples/account/update-name.md b/docs/examples/1.5.x/server-graphql/examples/account/update-name.md index 850b5760a0a..8ba2c99d9c2 100644 --- a/docs/examples/1.5.x/server-graphql/examples/account/update-name.md +++ b/docs/examples/1.5.x/server-graphql/examples/account/update-name.md @@ -30,6 +30,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/account/update-password.md b/docs/examples/1.5.x/server-graphql/examples/account/update-password.md index 5904da08420..f3619a10d28 100644 --- a/docs/examples/1.5.x/server-graphql/examples/account/update-password.md +++ b/docs/examples/1.5.x/server-graphql/examples/account/update-password.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/account/update-phone.md b/docs/examples/1.5.x/server-graphql/examples/account/update-phone.md index 408a2033002..adecb711684 100644 --- a/docs/examples/1.5.x/server-graphql/examples/account/update-phone.md +++ b/docs/examples/1.5.x/server-graphql/examples/account/update-phone.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/account/update-prefs.md b/docs/examples/1.5.x/server-graphql/examples/account/update-prefs.md index 40db7b43dbd..57280247e40 100644 --- a/docs/examples/1.5.x/server-graphql/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/server-graphql/examples/account/update-prefs.md @@ -30,6 +30,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/account/update-status.md b/docs/examples/1.5.x/server-graphql/examples/account/update-status.md index aca8c098e71..c17f5568426 100644 --- a/docs/examples/1.5.x/server-graphql/examples/account/update-status.md +++ b/docs/examples/1.5.x/server-graphql/examples/account/update-status.md @@ -28,6 +28,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/create-boolean-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/create-boolean-attribute.md index 6e969a587ec..aa0bfa832e4 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/create-boolean-attribute.md @@ -13,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt default } } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/create-collection.md b/docs/examples/1.5.x/server-graphql/examples/databases/create-collection.md index 05175cc1e78..51eb51f4101 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/create-collection.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/create-collection.md @@ -23,6 +23,8 @@ mutation { error attributes orders + _createdAt + _updatedAt } } } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/create-datetime-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/create-datetime-attribute.md index fcd5cb37a20..47601df0d8e 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/create-datetime-attribute.md @@ -13,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/create-email-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/create-email-attribute.md index 1f23a23ba7b..e5845ccd47c 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/create-email-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/create-email-attribute.md @@ -13,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/create-enum-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/create-enum-attribute.md index 410a7983b45..d13c080e4ac 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/create-enum-attribute.md @@ -14,6 +14,8 @@ mutation { error required array + _createdAt + _updatedAt elements format default diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/create-float-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/create-float-attribute.md index ae6f9f72d61..2a270c3aff8 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/create-float-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/create-float-attribute.md @@ -15,6 +15,8 @@ mutation { error required array + _createdAt + _updatedAt min max default diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/create-index.md b/docs/examples/1.5.x/server-graphql/examples/databases/create-index.md index efc92a798c2..2875a9b4b7d 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/create-index.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/create-index.md @@ -13,5 +13,7 @@ mutation { error attributes orders + _createdAt + _updatedAt } } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/create-integer-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/create-integer-attribute.md index 1dc43f6b0d0..8c79706817a 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/create-integer-attribute.md @@ -15,6 +15,8 @@ mutation { error required array + _createdAt + _updatedAt min max default diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/create-ip-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/create-ip-attribute.md index b2fd7215a0a..0f4ad9e1396 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/create-ip-attribute.md @@ -13,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/create-relationship-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/create-relationship-attribute.md index ddca20b83aa..f66b87d6afc 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/create-relationship-attribute.md @@ -15,6 +15,8 @@ mutation { error required array + _createdAt + _updatedAt relatedCollection relationType twoWay diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/create-string-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/create-string-attribute.md index 3c290712e9b..62d97d69623 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/create-string-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/create-string-attribute.md @@ -15,6 +15,8 @@ mutation { error required array + _createdAt + _updatedAt size default } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/create-url-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/create-url-attribute.md index d2a39756c94..89ad873e52b 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/create-url-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/create-url-attribute.md @@ -13,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/get-collection.md b/docs/examples/1.5.x/server-graphql/examples/databases/get-collection.md index f76b71b6bab..ed27286b0d6 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/get-collection.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/get-collection.md @@ -19,6 +19,8 @@ query { error attributes orders + _createdAt + _updatedAt } } } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/get-index.md b/docs/examples/1.5.x/server-graphql/examples/databases/get-index.md index de3c44ebe08..29de7a76f82 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/get-index.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/get-index.md @@ -10,5 +10,7 @@ query { error attributes orders + _createdAt + _updatedAt } } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/list-collections.md b/docs/examples/1.5.x/server-graphql/examples/databases/list-collections.md index b821b6c4cf2..8dafbf7042f 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/list-collections.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/list-collections.md @@ -22,6 +22,8 @@ query { error attributes orders + _createdAt + _updatedAt } } } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/list-indexes.md b/docs/examples/1.5.x/server-graphql/examples/databases/list-indexes.md index e1c11b6c038..3cb67c64511 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/list-indexes.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/list-indexes.md @@ -12,6 +12,8 @@ query { error attributes orders + _createdAt + _updatedAt } } } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/update-boolean-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/update-boolean-attribute.md index 4c9aa62ef03..d508e62139d 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/update-boolean-attribute.md @@ -4,7 +4,8 @@ mutation { collectionId: "<COLLECTION_ID>", key: "", required: false, - default: false + default: false, + newKey: "" ) { key type @@ -12,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt default } } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/update-collection.md b/docs/examples/1.5.x/server-graphql/examples/databases/update-collection.md index fc78bb8efc1..e918c058b88 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/update-collection.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/update-collection.md @@ -23,6 +23,8 @@ mutation { error attributes orders + _createdAt + _updatedAt } } } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/update-datetime-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/update-datetime-attribute.md index 3da44838371..a21b910edc9 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/update-datetime-attribute.md @@ -4,7 +4,8 @@ mutation { collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "" + default: "", + newKey: "" ) { key type @@ -12,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/update-email-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/update-email-attribute.md index 36dd14d6463..6c83d80e162 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/update-email-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/update-email-attribute.md @@ -4,7 +4,8 @@ mutation { collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "email@example.com" + default: "email@example.com", + newKey: "" ) { key type @@ -12,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/update-enum-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/update-enum-attribute.md index f2954f070f4..378e32f9b87 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/update-enum-attribute.md @@ -5,7 +5,8 @@ mutation { key: "", elements: [], required: false, - default: "<DEFAULT>" + default: "<DEFAULT>", + newKey: "" ) { key type @@ -13,6 +14,8 @@ mutation { error required array + _createdAt + _updatedAt elements format default diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/update-float-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/update-float-attribute.md index de987485a77..c70232e7491 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/update-float-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/update-float-attribute.md @@ -4,9 +4,10 @@ mutation { collectionId: "<COLLECTION_ID>", key: "", required: false, + default: 0, min: 0, max: 0, - default: 0 + newKey: "" ) { key type @@ -14,6 +15,8 @@ mutation { error required array + _createdAt + _updatedAt min max default diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/update-integer-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/update-integer-attribute.md index 34ceca93afd..b24af5f2605 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/update-integer-attribute.md @@ -4,9 +4,10 @@ mutation { collectionId: "<COLLECTION_ID>", key: "", required: false, + default: 0, min: 0, max: 0, - default: 0 + newKey: "" ) { key type @@ -14,6 +15,8 @@ mutation { error required array + _createdAt + _updatedAt min max default diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/update-ip-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/update-ip-attribute.md index a3a2aec5853..7a262242005 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/update-ip-attribute.md @@ -4,7 +4,8 @@ mutation { collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "" + default: "", + newKey: "" ) { key type @@ -12,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/update-relationship-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/update-relationship-attribute.md index aa994f14ae2..6694540d93f 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/update-relationship-attribute.md @@ -3,7 +3,8 @@ mutation { databaseId: "<DATABASE_ID>", collectionId: "<COLLECTION_ID>", key: "", - onDelete: "cascade" + onDelete: "cascade", + newKey: "" ) { key type @@ -11,6 +12,8 @@ mutation { error required array + _createdAt + _updatedAt relatedCollection relationType twoWay diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/update-string-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/update-string-attribute.md index cc98a1a177d..afafb307f5b 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/update-string-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/update-string-attribute.md @@ -4,7 +4,9 @@ mutation { collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "<DEFAULT>" + default: "<DEFAULT>", + size: 1, + newKey: "" ) { key type @@ -12,6 +14,8 @@ mutation { error required array + _createdAt + _updatedAt size default } diff --git a/docs/examples/1.5.x/server-graphql/examples/databases/update-url-attribute.md b/docs/examples/1.5.x/server-graphql/examples/databases/update-url-attribute.md index e94723efe1b..f9f14a04f61 100644 --- a/docs/examples/1.5.x/server-graphql/examples/databases/update-url-attribute.md +++ b/docs/examples/1.5.x/server-graphql/examples/databases/update-url-attribute.md @@ -4,7 +4,8 @@ mutation { collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "https://example.com" + default: "https://example.com", + newKey: "" ) { key type @@ -12,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.5.x/server-graphql/examples/functions/create-deployment.md b/docs/examples/1.5.x/server-graphql/examples/functions/create-deployment.md index 3cda4d74424..5f94c49f29e 100644 --- a/docs/examples/1.5.x/server-graphql/examples/functions/create-deployment.md +++ b/docs/examples/1.5.x/server-graphql/examples/functions/create-deployment.md @@ -1,9 +1,9 @@ POST /v1/functions/{functionId}/deployments HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> Content-Length: *Length of your entity body in bytes* --cec8e8123c05ba25 diff --git a/docs/examples/1.5.x/server-graphql/examples/functions/create-execution.md b/docs/examples/1.5.x/server-graphql/examples/functions/create-execution.md index 1627ee93397..1479aa3bb60 100644 --- a/docs/examples/1.5.x/server-graphql/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/server-graphql/examples/functions/create-execution.md @@ -5,7 +5,8 @@ mutation { async: false, path: "<PATH>", method: "GET", - headers: "{}" + headers: "{}", + scheduledAt: "" ) { _id _createdAt @@ -29,5 +30,6 @@ mutation { logs errors duration + scheduledAt } } diff --git a/docs/examples/1.5.x/server-graphql/examples/functions/create.md b/docs/examples/1.5.x/server-graphql/examples/functions/create.md index f4eba8fafaf..88cb6df2239 100644 --- a/docs/examples/1.5.x/server-graphql/examples/functions/create.md +++ b/docs/examples/1.5.x/server-graphql/examples/functions/create.md @@ -11,6 +11,7 @@ mutation { logging: false, entrypoint: "<ENTRYPOINT>", commands: "<COMMANDS>", + scopes: [], installationId: "<INSTALLATION_ID>", providerRepositoryId: "<PROVIDER_REPOSITORY_ID>", providerBranch: "<PROVIDER_BRANCH>", @@ -19,7 +20,8 @@ mutation { templateRepository: "<TEMPLATE_REPOSITORY>", templateOwner: "<TEMPLATE_OWNER>", templateRootDirectory: "<TEMPLATE_ROOT_DIRECTORY>", - templateBranch: "<TEMPLATE_BRANCH>" + templateVersion: "<TEMPLATE_VERSION>", + specification: "" ) { _id _createdAt @@ -31,6 +33,7 @@ mutation { logging runtime deployment + scopes vars { _id _createdAt @@ -51,5 +54,6 @@ mutation { providerBranch providerRootDirectory providerSilentMode + specification } } diff --git a/docs/examples/1.5.x/server-graphql/examples/functions/delete-execution.md b/docs/examples/1.5.x/server-graphql/examples/functions/delete-execution.md new file mode 100644 index 00000000000..c6e950afc9b --- /dev/null +++ b/docs/examples/1.5.x/server-graphql/examples/functions/delete-execution.md @@ -0,0 +1,8 @@ +mutation { + functionsDeleteExecution( + functionId: "<FUNCTION_ID>", + executionId: "<EXECUTION_ID>" + ) { + status + } +} diff --git a/docs/examples/1.6.x/client-graphql/examples/functions/get-deployment-download.md b/docs/examples/1.5.x/server-graphql/examples/functions/get-deployment-download.md similarity index 100% rename from docs/examples/1.6.x/client-graphql/examples/functions/get-deployment-download.md rename to docs/examples/1.5.x/server-graphql/examples/functions/get-deployment-download.md diff --git a/docs/examples/1.5.x/server-graphql/examples/functions/get-deployment.md b/docs/examples/1.5.x/server-graphql/examples/functions/get-deployment.md index 1e1e7208a31..1f47561dd59 100644 --- a/docs/examples/1.5.x/server-graphql/examples/functions/get-deployment.md +++ b/docs/examples/1.5.x/server-graphql/examples/functions/get-deployment.md @@ -11,6 +11,7 @@ query { resourceType entrypoint size + buildSize buildId activate status diff --git a/docs/examples/1.5.x/server-graphql/examples/functions/get-execution.md b/docs/examples/1.5.x/server-graphql/examples/functions/get-execution.md index f9f8ef05526..6ded51a50cc 100644 --- a/docs/examples/1.5.x/server-graphql/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/server-graphql/examples/functions/get-execution.md @@ -25,5 +25,6 @@ query { logs errors duration + scheduledAt } } diff --git a/docs/examples/1.5.x/server-graphql/examples/functions/get.md b/docs/examples/1.5.x/server-graphql/examples/functions/get.md index 1b00e91c735..016a942bce2 100644 --- a/docs/examples/1.5.x/server-graphql/examples/functions/get.md +++ b/docs/examples/1.5.x/server-graphql/examples/functions/get.md @@ -12,6 +12,7 @@ query { logging runtime deployment + scopes vars { _id _createdAt @@ -32,5 +33,6 @@ query { providerBranch providerRootDirectory providerSilentMode + specification } } diff --git a/docs/examples/1.5.x/server-graphql/examples/functions/list-deployments.md b/docs/examples/1.5.x/server-graphql/examples/functions/list-deployments.md index b736744384a..57b50fc98f1 100644 --- a/docs/examples/1.5.x/server-graphql/examples/functions/list-deployments.md +++ b/docs/examples/1.5.x/server-graphql/examples/functions/list-deployments.md @@ -14,6 +14,7 @@ query { resourceType entrypoint size + buildSize buildId activate status diff --git a/docs/examples/1.5.x/server-graphql/examples/functions/list-executions.md b/docs/examples/1.5.x/server-graphql/examples/functions/list-executions.md index 745ec32377a..a0c02fa76f2 100644 --- a/docs/examples/1.5.x/server-graphql/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/server-graphql/examples/functions/list-executions.md @@ -28,6 +28,7 @@ query { logs errors duration + scheduledAt } } } diff --git a/docs/examples/1.5.x/server-graphql/examples/functions/list-runtimes.md b/docs/examples/1.5.x/server-graphql/examples/functions/list-runtimes.md index 2c2b207e60e..445ff9dd082 100644 --- a/docs/examples/1.5.x/server-graphql/examples/functions/list-runtimes.md +++ b/docs/examples/1.5.x/server-graphql/examples/functions/list-runtimes.md @@ -3,6 +3,7 @@ query { total runtimes { _id + key name version base diff --git a/docs/examples/1.5.x/server-graphql/examples/functions/list-specifications.md b/docs/examples/1.5.x/server-graphql/examples/functions/list-specifications.md new file mode 100644 index 00000000000..a86b6ea4948 --- /dev/null +++ b/docs/examples/1.5.x/server-graphql/examples/functions/list-specifications.md @@ -0,0 +1,11 @@ +query { + functionsListSpecifications { + total + specifications { + memory + cpus + enabled + slug + } + } +} diff --git a/docs/examples/1.5.x/server-graphql/examples/functions/list.md b/docs/examples/1.5.x/server-graphql/examples/functions/list.md index fd63347701a..25341ed0ddd 100644 --- a/docs/examples/1.5.x/server-graphql/examples/functions/list.md +++ b/docs/examples/1.5.x/server-graphql/examples/functions/list.md @@ -15,6 +15,7 @@ query { logging runtime deployment + scopes vars { _id _createdAt @@ -35,6 +36,7 @@ query { providerBranch providerRootDirectory providerSilentMode + specification } } } diff --git a/docs/examples/1.5.x/server-graphql/examples/functions/update-deployment-build.md b/docs/examples/1.5.x/server-graphql/examples/functions/update-deployment-build.md new file mode 100644 index 00000000000..484d4b39ce8 --- /dev/null +++ b/docs/examples/1.5.x/server-graphql/examples/functions/update-deployment-build.md @@ -0,0 +1,16 @@ +mutation { + functionsUpdateDeploymentBuild( + functionId: "<FUNCTION_ID>", + deploymentId: "<DEPLOYMENT_ID>" + ) { + _id + deploymentId + status + stdout + stderr + startTime + endTime + duration + size + } +} diff --git a/docs/examples/1.5.x/server-graphql/examples/functions/update-deployment.md b/docs/examples/1.5.x/server-graphql/examples/functions/update-deployment.md index d19fb87f675..310efb206b6 100644 --- a/docs/examples/1.5.x/server-graphql/examples/functions/update-deployment.md +++ b/docs/examples/1.5.x/server-graphql/examples/functions/update-deployment.md @@ -13,6 +13,7 @@ mutation { logging runtime deployment + scopes vars { _id _createdAt @@ -33,5 +34,6 @@ mutation { providerBranch providerRootDirectory providerSilentMode + specification } } diff --git a/docs/examples/1.5.x/server-graphql/examples/functions/update.md b/docs/examples/1.5.x/server-graphql/examples/functions/update.md index 8804dcc091a..cb384058c6c 100644 --- a/docs/examples/1.5.x/server-graphql/examples/functions/update.md +++ b/docs/examples/1.5.x/server-graphql/examples/functions/update.md @@ -11,11 +11,13 @@ mutation { logging: false, entrypoint: "<ENTRYPOINT>", commands: "<COMMANDS>", + scopes: [], installationId: "<INSTALLATION_ID>", providerRepositoryId: "<PROVIDER_REPOSITORY_ID>", providerBranch: "<PROVIDER_BRANCH>", providerSilentMode: false, - providerRootDirectory: "<PROVIDER_ROOT_DIRECTORY>" + providerRootDirectory: "<PROVIDER_ROOT_DIRECTORY>", + specification: "" ) { _id _createdAt @@ -27,6 +29,7 @@ mutation { logging runtime deployment + scopes vars { _id _createdAt @@ -47,5 +50,6 @@ mutation { providerBranch providerRootDirectory providerSilentMode + specification } } diff --git a/docs/examples/1.5.x/server-graphql/examples/health/get-queue-stats-resources.md b/docs/examples/1.5.x/server-graphql/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..ce5cf59ecad --- /dev/null +++ b/docs/examples/1.5.x/server-graphql/examples/health/get-queue-stats-resources.md @@ -0,0 +1,7 @@ +query { + healthGetQueueStatsResources( + threshold: 0 + ) { + size + } +} diff --git a/docs/examples/1.5.x/server-graphql/examples/messaging/create-push.md b/docs/examples/1.5.x/server-graphql/examples/messaging/create-push.md index 3084c97635f..92264d1b675 100644 --- a/docs/examples/1.5.x/server-graphql/examples/messaging/create-push.md +++ b/docs/examples/1.5.x/server-graphql/examples/messaging/create-push.md @@ -13,9 +13,12 @@ mutation { sound: "<SOUND>", color: "<COLOR>", tag: "<TAG>", - badge: "<BADGE>", + badge: 0, draft: false, - scheduledAt: "" + scheduledAt: "", + contentAvailable: false, + critical: false, + priority: "normal" ) { _id _createdAt diff --git a/docs/examples/1.5.x/server-graphql/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/server-graphql/examples/messaging/create-subscriber.md index b2712ebb487..bab53612b79 100644 --- a/docs/examples/1.5.x/server-graphql/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/server-graphql/examples/messaging/create-subscriber.md @@ -17,6 +17,7 @@ mutation { providerId providerType identifier + expired } userId userName diff --git a/docs/examples/1.5.x/server-graphql/examples/messaging/get-subscriber.md b/docs/examples/1.5.x/server-graphql/examples/messaging/get-subscriber.md index 54096dd70a4..2e1672d0106 100644 --- a/docs/examples/1.5.x/server-graphql/examples/messaging/get-subscriber.md +++ b/docs/examples/1.5.x/server-graphql/examples/messaging/get-subscriber.md @@ -16,6 +16,7 @@ query { providerId providerType identifier + expired } userId userName diff --git a/docs/examples/1.5.x/server-graphql/examples/messaging/list-subscribers.md b/docs/examples/1.5.x/server-graphql/examples/messaging/list-subscribers.md index 5c48ae34bb8..a5a4f91e567 100644 --- a/docs/examples/1.5.x/server-graphql/examples/messaging/list-subscribers.md +++ b/docs/examples/1.5.x/server-graphql/examples/messaging/list-subscribers.md @@ -19,6 +19,7 @@ query { providerId providerType identifier + expired } userId userName diff --git a/docs/examples/1.5.x/server-graphql/examples/messaging/list-targets.md b/docs/examples/1.5.x/server-graphql/examples/messaging/list-targets.md index 8e356dce5fe..aa82276de24 100644 --- a/docs/examples/1.5.x/server-graphql/examples/messaging/list-targets.md +++ b/docs/examples/1.5.x/server-graphql/examples/messaging/list-targets.md @@ -13,6 +13,7 @@ query { providerId providerType identifier + expired } } } diff --git a/docs/examples/1.5.x/server-graphql/examples/messaging/update-push.md b/docs/examples/1.5.x/server-graphql/examples/messaging/update-push.md index 9039792573a..8ee2f576107 100644 --- a/docs/examples/1.5.x/server-graphql/examples/messaging/update-push.md +++ b/docs/examples/1.5.x/server-graphql/examples/messaging/update-push.md @@ -15,7 +15,10 @@ mutation { tag: "<TAG>", badge: 0, draft: false, - scheduledAt: "" + scheduledAt: "", + contentAvailable: false, + critical: false, + priority: "normal" ) { _id _createdAt diff --git a/docs/examples/1.5.x/server-graphql/examples/storage/create-file.md b/docs/examples/1.5.x/server-graphql/examples/storage/create-file.md index ece52b9f876..ceb5b613bc4 100644 --- a/docs/examples/1.5.x/server-graphql/examples/storage/create-file.md +++ b/docs/examples/1.5.x/server-graphql/examples/storage/create-file.md @@ -1,11 +1,11 @@ POST /v1/storage/buckets/{bucketId}/files HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> Content-Length: *Length of your entity body in bytes* --cec8e8123c05ba25 diff --git a/docs/examples/1.5.x/server-graphql/examples/users/create-argon2user.md b/docs/examples/1.5.x/server-graphql/examples/users/create-argon2user.md index 464dc754c9a..7f99622e524 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/create-argon2user.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/create-argon2user.md @@ -33,6 +33,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/create-bcrypt-user.md b/docs/examples/1.5.x/server-graphql/examples/users/create-bcrypt-user.md index 4d4bb091945..26659176ebf 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/create-bcrypt-user.md @@ -33,6 +33,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/create-j-w-t.md b/docs/examples/1.5.x/server-graphql/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..bf0b1bd6382 --- /dev/null +++ b/docs/examples/1.5.x/server-graphql/examples/users/create-j-w-t.md @@ -0,0 +1,9 @@ +mutation { + usersCreateJWT( + userId: "<USER_ID>", + sessionId: "<SESSION_ID>", + duration: 0 + ) { + jwt + } +} diff --git a/docs/examples/1.5.x/server-graphql/examples/users/create-m-d5user.md b/docs/examples/1.5.x/server-graphql/examples/users/create-m-d5user.md index e8e833e6de4..7e642b8233e 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/create-m-d5user.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/create-m-d5user.md @@ -33,6 +33,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/create-p-h-pass-user.md b/docs/examples/1.5.x/server-graphql/examples/users/create-p-h-pass-user.md index 53960e7890a..4c06b007a24 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/create-p-h-pass-user.md @@ -33,6 +33,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/create-s-h-a-user.md b/docs/examples/1.5.x/server-graphql/examples/users/create-s-h-a-user.md index 17e287f8b32..f99da2752da 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/create-s-h-a-user.md @@ -34,6 +34,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/create-scrypt-modified-user.md b/docs/examples/1.5.x/server-graphql/examples/users/create-scrypt-modified-user.md index 6d51fb29ba6..624ffcdd386 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/create-scrypt-modified-user.md @@ -36,6 +36,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/create-scrypt-user.md b/docs/examples/1.5.x/server-graphql/examples/users/create-scrypt-user.md index 0d4bac1db8b..68a5f4c75f7 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/create-scrypt-user.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/create-scrypt-user.md @@ -38,6 +38,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/create-target.md b/docs/examples/1.5.x/server-graphql/examples/users/create-target.md index a3a0696deca..7068c21aba1 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/create-target.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/create-target.md @@ -15,5 +15,6 @@ mutation { providerId providerType identifier + expired } } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/create.md b/docs/examples/1.5.x/server-graphql/examples/users/create.md index 826a5168efd..465da804322 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/create.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/create.md @@ -34,6 +34,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-graphql/examples/users/delete-mfa-authenticator.md index 227c340c68d..43f73404f0a 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/delete-mfa-authenticator.md @@ -3,35 +3,6 @@ mutation { userId: "<USER_ID>", type: "totp" ) { - _id - _createdAt - _updatedAt - name - password - hash - hashOptions - registration status - labels - passwordUpdate - email - phone - emailVerification - phoneVerification - mfa - prefs { - data - } - targets { - _id - _createdAt - _updatedAt - name - userId - providerId - providerType - identifier - } - accessedAt } } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/get-target.md b/docs/examples/1.5.x/server-graphql/examples/users/get-target.md index e4ba1a04a1d..c84f947898e 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/get-target.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/get-target.md @@ -11,5 +11,6 @@ query { providerId providerType identifier + expired } } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/get.md b/docs/examples/1.5.x/server-graphql/examples/users/get.md index f94a5818eda..9d0be685d95 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/get.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/get.md @@ -30,6 +30,7 @@ query { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/list-targets.md b/docs/examples/1.5.x/server-graphql/examples/users/list-targets.md index 05e796f1673..408fd96f804 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/list-targets.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/list-targets.md @@ -13,6 +13,7 @@ query { providerId providerType identifier + expired } } } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/list.md b/docs/examples/1.5.x/server-graphql/examples/users/list.md index e2326dd1a2f..a90121adf2f 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/list.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/list.md @@ -33,6 +33,7 @@ query { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/update-email-verification.md b/docs/examples/1.5.x/server-graphql/examples/users/update-email-verification.md index 6bb27818545..cda7278ac0b 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/update-email-verification.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/update-email-verification.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/update-email.md b/docs/examples/1.5.x/server-graphql/examples/users/update-email.md index 046937ac048..408a74972b4 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/update-email.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/update-email.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/update-labels.md b/docs/examples/1.5.x/server-graphql/examples/users/update-labels.md index 93da33d805a..cb3c5b64830 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/update-labels.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/update-labels.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/update-mfa.md b/docs/examples/1.5.x/server-graphql/examples/users/update-mfa.md index 9219aa1aea7..ac09ea19a4f 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/update-mfa.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/update-mfa.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/update-name.md b/docs/examples/1.5.x/server-graphql/examples/users/update-name.md index 01a53ce479c..ec7e3dc27cc 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/update-name.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/update-name.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/update-password.md b/docs/examples/1.5.x/server-graphql/examples/users/update-password.md index c95637c4ceb..95ef74c83dd 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/update-password.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/update-password.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/update-phone-verification.md b/docs/examples/1.5.x/server-graphql/examples/users/update-phone-verification.md index 58343ae365f..c6afa54ba4a 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/update-phone-verification.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/update-phone-verification.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/update-phone.md b/docs/examples/1.5.x/server-graphql/examples/users/update-phone.md index dbcb076c659..d3fc7d5f378 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/update-phone.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/update-phone.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/update-status.md b/docs/examples/1.5.x/server-graphql/examples/users/update-status.md index ad05bc75fff..2499c1c2588 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/update-status.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/update-status.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.5.x/server-graphql/examples/users/update-target.md b/docs/examples/1.5.x/server-graphql/examples/users/update-target.md index fe3444ede7d..1f7cc1147a5 100644 --- a/docs/examples/1.5.x/server-graphql/examples/users/update-target.md +++ b/docs/examples/1.5.x/server-graphql/examples/users/update-target.md @@ -14,5 +14,6 @@ mutation { providerId providerType identifier + expired } } diff --git a/docs/examples/1.5.x/server-kotlin/java/account/add-authenticator.md b/docs/examples/1.5.x/server-kotlin/java/account/add-authenticator.md index 3c3ac2b0646..06b329802c8 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/add-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/add-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticatorType; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-anonymous-session.md b/docs/examples/1.5.x/server-kotlin/java/account/create-anonymous-session.md index ba833732d64..0ba9c6967c7 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-anonymous-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-challenge.md b/docs/examples/1.5.x/server-kotlin/java/account/create-challenge.md index 14c538d9d31..a1aad6fd10c 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-challenge.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticationFactor; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-email-password-session.md b/docs/examples/1.5.x/server-kotlin/java/account/create-email-password-session.md index 0af4269f3fb..75fa73fb002 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-email-password-session.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-email-password-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-email-token.md b/docs/examples/1.5.x/server-kotlin/java/account/create-email-token.md index 040b59b4518..eff6d4310c5 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-email-token.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-email-token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-j-w-t.md b/docs/examples/1.5.x/server-kotlin/java/account/create-j-w-t.md index 1e223e40293..285d1e04bb1 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-j-w-t.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-j-w-t.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/server-kotlin/java/account/create-magic-u-r-l-token.md index 71a318c3f9c..3f9bda200b9 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-magic-u-r-l-token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-mfa-authenticator.md b/docs/examples/1.5.x/server-kotlin/java/account/create-mfa-authenticator.md index 9cf177f64ca..eb127bd4585 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-mfa-authenticator.md @@ -5,7 +5,7 @@ import io.appwrite.enums.AuthenticatorType; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-mfa-challenge.md b/docs/examples/1.5.x/server-kotlin/java/account/create-mfa-challenge.md index 6a3d9ceb701..e5fcbe95769 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-mfa-challenge.md @@ -5,7 +5,7 @@ import io.appwrite.enums.AuthenticationFactor; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-kotlin/java/account/create-mfa-recovery-codes.md index 6a9342d7967..b64fb7dda63 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-mfa-recovery-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-o-auth2session.md b/docs/examples/1.5.x/server-kotlin/java/account/create-o-auth2session.md index 3b77fb677b6..851b0cd8f16 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-o-auth2session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.OAuthProvider; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-o-auth2token.md b/docs/examples/1.5.x/server-kotlin/java/account/create-o-auth2token.md index 4c92629612c..47873c5af70 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-o-auth2token.md @@ -5,7 +5,7 @@ import io.appwrite.enums.OAuthProvider; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-phone-token.md b/docs/examples/1.5.x/server-kotlin/java/account/create-phone-token.md index 022eaa4e30b..1f7c05c3614 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-phone-token.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-phone-token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-phone-verification.md b/docs/examples/1.5.x/server-kotlin/java/account/create-phone-verification.md index bfe3722db5e..07937ab2570 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-phone-verification.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-phone-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-recovery.md b/docs/examples/1.5.x/server-kotlin/java/account/create-recovery.md index 590fee3d080..d74106bbb79 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-recovery.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-recovery.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-session.md b/docs/examples/1.5.x/server-kotlin/java/account/create-session.md index 0a9606e6b0a..861af3da091 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-session.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create-verification.md b/docs/examples/1.5.x/server-kotlin/java/account/create-verification.md index d38067b1679..4479cc69156 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create-verification.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create.md b/docs/examples/1.5.x/server-kotlin/java/account/create.md index f0d3a51e059..3bcfe1dff6e 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/create2f-a-challenge.md b/docs/examples/1.5.x/server-kotlin/java/account/create2f-a-challenge.md index abe274064d0..f0e46f6cb84 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/create2f-a-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticationFactor; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/delete-authenticator.md b/docs/examples/1.5.x/server-kotlin/java/account/delete-authenticator.md index 5d11dcd2783..fbd552cf67c 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/delete-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/delete-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticatorType; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-kotlin/java/account/delete-identity.md b/docs/examples/1.5.x/server-kotlin/java/account/delete-identity.md index 9417083719f..5eec2424d85 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/delete-identity.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/delete-identity.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-kotlin/java/account/delete-mfa-authenticator.md index c335161a2b4..7f3b6b9558b 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/delete-mfa-authenticator.md @@ -5,14 +5,13 @@ import io.appwrite.enums.AuthenticatorType; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); account.deleteMfaAuthenticator( AuthenticatorType.TOTP, // type - "<OTP>", // otp new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/delete-session.md b/docs/examples/1.5.x/server-kotlin/java/account/delete-session.md index b77ac28b324..687df8193bc 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/delete-session.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/delete-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/delete-sessions.md b/docs/examples/1.5.x/server-kotlin/java/account/delete-sessions.md index 80103a4ebe2..0bfa1f23f5c 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/delete-sessions.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/delete-sessions.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-kotlin/java/account/get-mfa-recovery-codes.md index 7298699bda1..f99634d71e4 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/get-mfa-recovery-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/get-prefs.md b/docs/examples/1.5.x/server-kotlin/java/account/get-prefs.md index fd05e63d551..46d41816c71 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/get-prefs.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/get-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/get-session.md b/docs/examples/1.5.x/server-kotlin/java/account/get-session.md index 60c4312ebc2..6d07a85b4a6 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/get-session.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/get-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/get.md b/docs/examples/1.5.x/server-kotlin/java/account/get.md index f49288116c8..6d0eb40cf2e 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/get.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/get.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/list-factors.md b/docs/examples/1.5.x/server-kotlin/java/account/list-factors.md index 55d50db3ba5..373915375f5 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/list-factors.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/list-factors.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-kotlin/java/account/list-identities.md b/docs/examples/1.5.x/server-kotlin/java/account/list-identities.md index 4b073999a51..8977a23b20e 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/list-identities.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/list-identities.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/list-logs.md b/docs/examples/1.5.x/server-kotlin/java/account/list-logs.md index b33b55a450f..e26cab9ad42 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/list-logs.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/list-logs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/list-mfa-factors.md b/docs/examples/1.5.x/server-kotlin/java/account/list-mfa-factors.md index 9232cdf4830..74f3e53444c 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/list-mfa-factors.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/list-sessions.md b/docs/examples/1.5.x/server-kotlin/java/account/list-sessions.md index c1fd54076e4..6b01d445b24 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/list-sessions.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/list-sessions.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-challenge.md b/docs/examples/1.5.x/server-kotlin/java/account/update-challenge.md index f3e008c7701..b94cfa5a1b5 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-challenge.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-challenge.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-email.md b/docs/examples/1.5.x/server-kotlin/java/account/update-email.md index 453e1da0de6..391e5311ed8 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-email.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-email.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-m-f-a.md b/docs/examples/1.5.x/server-kotlin/java/account/update-m-f-a.md index 28780aeb789..58ac56bed81 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-m-f-a.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-m-f-a.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/server-kotlin/java/account/update-magic-u-r-l-session.md index f11d09abf0c..62fe856fe0c 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-magic-u-r-l-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-mfa-authenticator.md b/docs/examples/1.5.x/server-kotlin/java/account/update-mfa-authenticator.md index cc6b7740e9d..b492d8c4a32 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-mfa-authenticator.md @@ -5,7 +5,7 @@ import io.appwrite.enums.AuthenticatorType; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-mfa-challenge.md b/docs/examples/1.5.x/server-kotlin/java/account/update-mfa-challenge.md index 8b907b1526f..74ca4815d78 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-mfa-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-kotlin/java/account/update-mfa-recovery-codes.md index c00cd9e79d1..8f38ad83454 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-mfa-recovery-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-name.md b/docs/examples/1.5.x/server-kotlin/java/account/update-name.md index 48805222eaf..1ce2abfa122 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-name.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-name.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-password.md b/docs/examples/1.5.x/server-kotlin/java/account/update-password.md index 078301ad25b..437e825be54 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-password.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-password.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-phone-session.md b/docs/examples/1.5.x/server-kotlin/java/account/update-phone-session.md index b4fdb3cb045..c401de4c65d 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-phone-session.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-phone-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2"); // Your project ID + .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-phone-verification.md b/docs/examples/1.5.x/server-kotlin/java/account/update-phone-verification.md index 509f220dab0..ddf786a2dea 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-phone-verification.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-phone-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-phone.md b/docs/examples/1.5.x/server-kotlin/java/account/update-phone.md index 18087675327..6a47fd10994 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-phone.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-phone.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-prefs.md b/docs/examples/1.5.x/server-kotlin/java/account/update-prefs.md index 0ff11167120..8c10ede3bd5 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-prefs.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-recovery.md b/docs/examples/1.5.x/server-kotlin/java/account/update-recovery.md index 11cd3e7a58d..be4301c516f 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-recovery.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-recovery.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-session.md b/docs/examples/1.5.x/server-kotlin/java/account/update-session.md index a944695f7ee..96e35069a91 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-session.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-status.md b/docs/examples/1.5.x/server-kotlin/java/account/update-status.md index 888bd3102dd..7c42f35ba61 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-status.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-status.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/update-verification.md b/docs/examples/1.5.x/server-kotlin/java/account/update-verification.md index 3b2db934047..ed8a40bc830 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/update-verification.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/update-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Account account = new Account(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/account/verify-authenticator.md b/docs/examples/1.5.x/server-kotlin/java/account/verify-authenticator.md index f572ef14636..4169363ba5a 100644 --- a/docs/examples/1.5.x/server-kotlin/java/account/verify-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/java/account/verify-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticatorType; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-kotlin/java/avatars/get-browser.md b/docs/examples/1.5.x/server-kotlin/java/avatars/get-browser.md index 7e89188474a..4cd18b69586 100644 --- a/docs/examples/1.5.x/server-kotlin/java/avatars/get-browser.md +++ b/docs/examples/1.5.x/server-kotlin/java/avatars/get-browser.md @@ -5,7 +5,7 @@ import io.appwrite.enums.Browser; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/avatars/get-credit-card.md b/docs/examples/1.5.x/server-kotlin/java/avatars/get-credit-card.md index e6e60049ed0..eadbf5de9aa 100644 --- a/docs/examples/1.5.x/server-kotlin/java/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/server-kotlin/java/avatars/get-credit-card.md @@ -5,7 +5,7 @@ import io.appwrite.enums.CreditCard; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/avatars/get-favicon.md b/docs/examples/1.5.x/server-kotlin/java/avatars/get-favicon.md index 3819896781e..9f519412aa7 100644 --- a/docs/examples/1.5.x/server-kotlin/java/avatars/get-favicon.md +++ b/docs/examples/1.5.x/server-kotlin/java/avatars/get-favicon.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/avatars/get-flag.md b/docs/examples/1.5.x/server-kotlin/java/avatars/get-flag.md index b5dc08ab409..1b7f423ad87 100644 --- a/docs/examples/1.5.x/server-kotlin/java/avatars/get-flag.md +++ b/docs/examples/1.5.x/server-kotlin/java/avatars/get-flag.md @@ -5,7 +5,7 @@ import io.appwrite.enums.Flag; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/avatars/get-image.md b/docs/examples/1.5.x/server-kotlin/java/avatars/get-image.md index f1d0d297f7e..af5f217e77d 100644 --- a/docs/examples/1.5.x/server-kotlin/java/avatars/get-image.md +++ b/docs/examples/1.5.x/server-kotlin/java/avatars/get-image.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/avatars/get-initials.md b/docs/examples/1.5.x/server-kotlin/java/avatars/get-initials.md index 8d69379a855..4b00f730330 100644 --- a/docs/examples/1.5.x/server-kotlin/java/avatars/get-initials.md +++ b/docs/examples/1.5.x/server-kotlin/java/avatars/get-initials.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/avatars/get-q-r.md b/docs/examples/1.5.x/server-kotlin/java/avatars/get-q-r.md index 8a34781ea22..903e2b0d1df 100644 --- a/docs/examples/1.5.x/server-kotlin/java/avatars/get-q-r.md +++ b/docs/examples/1.5.x/server-kotlin/java/avatars/get-q-r.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/create-boolean-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/create-boolean-attribute.md index c1325cf256d..d959a65a9c6 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/create-boolean-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/create-boolean-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/create-collection.md b/docs/examples/1.5.x/server-kotlin/java/databases/create-collection.md index 4be72451c0a..9a17b263911 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/create-collection.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/create-collection.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/create-datetime-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/create-datetime-attribute.md index 514933cb01f..b35d4894e42 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/create-datetime-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/create-datetime-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/create-document.md b/docs/examples/1.5.x/server-kotlin/java/databases/create-document.md index 73f2c5a86fc..e05d1fe5de1 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/create-document.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/create-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/create-email-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/create-email-attribute.md index 375ca5c2caf..5a42e97c865 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/create-email-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/create-email-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/create-enum-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/create-enum-attribute.md index c0190bca143..59cbd46dc4f 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/create-enum-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/create-enum-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/create-float-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/create-float-attribute.md index 844ae50e78b..cdbdbb24d39 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/create-float-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/create-float-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/create-index.md b/docs/examples/1.5.x/server-kotlin/java/databases/create-index.md index bcfb327474d..a3f09d43794 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/create-index.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/create-index.md @@ -5,8 +5,8 @@ import io.appwrite.enums.IndexType; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/create-integer-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/create-integer-attribute.md index feab2442345..37e7f37352b 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/create-integer-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/create-integer-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/create-ip-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/create-ip-attribute.md index f6242128661..bdb009374c0 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/create-ip-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/create-ip-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/create-relationship-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/create-relationship-attribute.md index ed998b4834d..f3d0f51f3d6 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/create-relationship-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/create-relationship-attribute.md @@ -5,8 +5,8 @@ import io.appwrite.enums.RelationshipType; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/create-string-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/create-string-attribute.md index 70257ea4777..7d9d8d48f03 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/create-string-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/create-string-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/create-url-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/create-url-attribute.md index 706db3f3753..57ed89d8146 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/create-url-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/create-url-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/create.md b/docs/examples/1.5.x/server-kotlin/java/databases/create.md index 3700e180b63..5b665108877 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/create.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/create.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/delete-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/delete-attribute.md index ee14deb737a..8f9d2f0e240 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/delete-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/delete-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/delete-collection.md b/docs/examples/1.5.x/server-kotlin/java/databases/delete-collection.md index de17e072a05..334e7adffb2 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/delete-collection.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/delete-collection.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/delete-document.md b/docs/examples/1.5.x/server-kotlin/java/databases/delete-document.md index 722bb4fcac0..a42b3f14b01 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/delete-document.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/delete-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/delete-index.md b/docs/examples/1.5.x/server-kotlin/java/databases/delete-index.md index ed3640819fe..725045eb151 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/delete-index.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/delete-index.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/delete.md b/docs/examples/1.5.x/server-kotlin/java/databases/delete.md index aa323b2ae10..41fb72bb7f5 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/delete.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/delete.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/get-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/get-attribute.md index be2dc5d00c9..1b29312a678 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/get-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/get-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/get-collection.md b/docs/examples/1.5.x/server-kotlin/java/databases/get-collection.md index 75701bd4fd2..41bbb234b0f 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/get-collection.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/get-collection.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/get-document.md b/docs/examples/1.5.x/server-kotlin/java/databases/get-document.md index 7b6d04386af..870642bb2c8 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/get-document.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/get-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/get-index.md b/docs/examples/1.5.x/server-kotlin/java/databases/get-index.md index 1c5dec77670..eb33b87f6d6 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/get-index.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/get-index.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/get.md b/docs/examples/1.5.x/server-kotlin/java/databases/get.md index f21ee37ab22..b276da4eabd 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/get.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/get.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/list-attributes.md b/docs/examples/1.5.x/server-kotlin/java/databases/list-attributes.md index 3f5b659cb87..417fe6e5e47 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/list-attributes.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/list-attributes.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/list-collections.md b/docs/examples/1.5.x/server-kotlin/java/databases/list-collections.md index cdb807fae5a..e12e1580d37 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/list-collections.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/list-collections.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/list-documents.md b/docs/examples/1.5.x/server-kotlin/java/databases/list-documents.md index 3dd929da4c4..4fab62aeaff 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/list-documents.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/list-documents.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/list-indexes.md b/docs/examples/1.5.x/server-kotlin/java/databases/list-indexes.md index 5d59dfa7591..c26626531d2 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/list-indexes.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/list-indexes.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/list.md b/docs/examples/1.5.x/server-kotlin/java/databases/list.md index 19334f3cb0e..d014a70c7cc 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/list.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/list.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/update-boolean-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/update-boolean-attribute.md index 8b4791312b0..01a8ba13d36 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/update-boolean-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/update-boolean-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -15,6 +15,7 @@ databases.updateBooleanAttribute( "", // key false, // required false, // default + "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/update-collection.md b/docs/examples/1.5.x/server-kotlin/java/databases/update-collection.md index f3cdf9adf39..533d7a762b4 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/update-collection.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/update-collection.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/update-datetime-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/update-datetime-attribute.md index bc6bee4aa8b..00b35689d36 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/update-datetime-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/update-datetime-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -15,6 +15,7 @@ databases.updateDatetimeAttribute( "", // key false, // required "", // default + "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/update-document.md b/docs/examples/1.5.x/server-kotlin/java/databases/update-document.md index 246a9000f3b..43c9600c58b 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/update-document.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/update-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/update-email-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/update-email-attribute.md index a62447d4ae0..b9313701892 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/update-email-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/update-email-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -15,6 +15,7 @@ databases.updateEmailAttribute( "", // key false, // required "email@example.com", // default + "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/update-enum-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/update-enum-attribute.md index b78fb885686..febf784f96d 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/update-enum-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/update-enum-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -16,6 +16,7 @@ databases.updateEnumAttribute( listOf(), // elements false, // required "<DEFAULT>", // default + "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/update-float-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/update-float-attribute.md index 89e6c61c355..061e2a9e331 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/update-float-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/update-float-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -14,9 +14,10 @@ databases.updateFloatAttribute( "<COLLECTION_ID>", // collectionId "", // key false, // required - 0, // min - 0, // max 0, // default + 0, // min (optional) + 0, // max (optional) + "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/update-integer-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/update-integer-attribute.md index 1e90bdc2400..24a26eb8b41 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/update-integer-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/update-integer-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -14,9 +14,10 @@ databases.updateIntegerAttribute( "<COLLECTION_ID>", // collectionId "", // key false, // required - 0, // min - 0, // max 0, // default + 0, // min (optional) + 0, // max (optional) + "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/update-ip-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/update-ip-attribute.md index 8df90b5970a..72b85cf531d 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/update-ip-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/update-ip-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -15,6 +15,7 @@ databases.updateIpAttribute( "", // key false, // required "", // default + "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/update-relationship-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/update-relationship-attribute.md index 1fd638f8ae6..73e21218b12 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/update-relationship-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/update-relationship-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -14,6 +14,7 @@ databases.updateRelationshipAttribute( "<COLLECTION_ID>", // collectionId "", // key RelationMutate.CASCADE, // onDelete (optional) + "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/update-string-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/update-string-attribute.md index b5cf75ab597..2d690061814 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/update-string-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/update-string-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -15,6 +15,8 @@ databases.updateStringAttribute( "", // key false, // required "<DEFAULT>", // default + 1, // size (optional) + "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/update-url-attribute.md b/docs/examples/1.5.x/server-kotlin/java/databases/update-url-attribute.md index c93f509cb93..dcfbf3065da 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/update-url-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/update-url-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); @@ -15,6 +15,7 @@ databases.updateUrlAttribute( "", // key false, // required "https://example.com", // default + "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/databases/update.md b/docs/examples/1.5.x/server-kotlin/java/databases/update.md index 2d9695b51ba..f1e6dd3972d 100644 --- a/docs/examples/1.5.x/server-kotlin/java/databases/update.md +++ b/docs/examples/1.5.x/server-kotlin/java/databases/update.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Databases databases = new Databases(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/create-build.md b/docs/examples/1.5.x/server-kotlin/java/functions/create-build.md index 097587f1bdc..ad55df1fcbf 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/create-build.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/create-build.md @@ -4,15 +4,15 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); functions.createBuild( "<FUNCTION_ID>", // functionId "<DEPLOYMENT_ID>", // deploymentId - "<BUILD_ID>", // buildId + "<BUILD_ID>", // buildId (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/create-deployment.md b/docs/examples/1.5.x/server-kotlin/java/functions/create-deployment.md index 25ca118b2e1..920998e6019 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/create-deployment.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/create-deployment.md @@ -5,8 +5,8 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/create-execution.md b/docs/examples/1.5.x/server-kotlin/java/functions/create-execution.md index f3507f392f0..62c0634b60f 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/create-execution.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/create-execution.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Functions functions = new Functions(client); @@ -16,6 +16,7 @@ functions.createExecution( "<PATH>", // path (optional) ExecutionMethod.GET, // method (optional) mapOf( "a" to "b" ), // headers (optional) + "", // scheduledAt (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/create-variable.md b/docs/examples/1.5.x/server-kotlin/java/functions/create-variable.md index f833f3466a0..a1d6c7b82f6 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/create-variable.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/create-variable.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/create.md b/docs/examples/1.5.x/server-kotlin/java/functions/create.md index edaaa1197cc..db0cc56b6bf 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/create.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/create.md @@ -5,8 +5,8 @@ import io.appwrite.enums.Runtime; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); @@ -22,6 +22,7 @@ functions.create( false, // logging (optional) "<ENTRYPOINT>", // entrypoint (optional) "<COMMANDS>", // commands (optional) + listOf(), // scopes (optional) "<INSTALLATION_ID>", // installationId (optional) "<PROVIDER_REPOSITORY_ID>", // providerRepositoryId (optional) "<PROVIDER_BRANCH>", // providerBranch (optional) @@ -30,7 +31,8 @@ functions.create( "<TEMPLATE_REPOSITORY>", // templateRepository (optional) "<TEMPLATE_OWNER>", // templateOwner (optional) "<TEMPLATE_ROOT_DIRECTORY>", // templateRootDirectory (optional) - "<TEMPLATE_BRANCH>", // templateBranch (optional) + "<TEMPLATE_VERSION>", // templateVersion (optional) + "", // specification (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/delete-deployment.md b/docs/examples/1.5.x/server-kotlin/java/functions/delete-deployment.md index 83de97038ec..f115bcc1916 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/delete-deployment.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/delete-deployment.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/get-template.md b/docs/examples/1.5.x/server-kotlin/java/functions/delete-execution.md similarity index 68% rename from docs/examples/1.6.x/server-kotlin/java/functions/get-template.md rename to docs/examples/1.5.x/server-kotlin/java/functions/delete-execution.md index 1521fa47c1d..68c11bd4366 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/get-template.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/delete-execution.md @@ -4,12 +4,14 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>"); // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); -functions.getTemplate( - "<TEMPLATE_ID>", // templateId +functions.deleteExecution( + "<FUNCTION_ID>", // functionId + "<EXECUTION_ID>", // executionId new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/delete-variable.md b/docs/examples/1.5.x/server-kotlin/java/functions/delete-variable.md index 6d91f50df92..ca4d4f4440d 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/delete-variable.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/delete-variable.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/delete.md b/docs/examples/1.5.x/server-kotlin/java/functions/delete.md index 647da6e5255..94c7da516fa 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/delete.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/delete.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/download-deployment.md b/docs/examples/1.5.x/server-kotlin/java/functions/download-deployment.md index e2414811949..69dfdae97f3 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/download-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/download-deployment.md b/docs/examples/1.5.x/server-kotlin/java/functions/get-deployment-download.md similarity index 95% rename from docs/examples/1.6.x/server-kotlin/java/functions/download-deployment.md rename to docs/examples/1.5.x/server-kotlin/java/functions/get-deployment-download.md index 77e4809379c..719d662f7f7 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/get-deployment-download.md @@ -9,7 +9,7 @@ Client client = new Client() Functions functions = new Functions(client); -functions.downloadDeployment( +functions.getDeploymentDownload( "<FUNCTION_ID>", // functionId "<DEPLOYMENT_ID>", // deploymentId new CoroutineCallback<>((result, error) -> { diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/get-deployment.md b/docs/examples/1.5.x/server-kotlin/java/functions/get-deployment.md index 12575adf52b..f039beed2d9 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/get-deployment.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/get-deployment.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/get-execution.md b/docs/examples/1.5.x/server-kotlin/java/functions/get-execution.md index 1f0d01b92e7..253ff54bd8c 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/get-execution.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/get-execution.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/get-variable.md b/docs/examples/1.5.x/server-kotlin/java/functions/get-variable.md index 6b89b16619a..3d01fa49426 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/get-variable.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/get-variable.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/get.md b/docs/examples/1.5.x/server-kotlin/java/functions/get.md index 777bf83a831..c22ccca5c62 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/get.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/get.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/list-deployments.md b/docs/examples/1.5.x/server-kotlin/java/functions/list-deployments.md index bee24c939fe..9a1f1ef35db 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/list-deployments.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/list-deployments.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/list-executions.md b/docs/examples/1.5.x/server-kotlin/java/functions/list-executions.md index d8632aacb16..f2faa02138b 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/list-executions.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/list-executions.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/list-runtimes.md b/docs/examples/1.5.x/server-kotlin/java/functions/list-runtimes.md index 46d04463102..156e81feb24 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/list-runtimes.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/list-runtimes.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/list-specifications.md b/docs/examples/1.5.x/server-kotlin/java/functions/list-specifications.md new file mode 100644 index 00000000000..47d941c557e --- /dev/null +++ b/docs/examples/1.5.x/server-kotlin/java/functions/list-specifications.md @@ -0,0 +1,19 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Functions; + +Client client = new Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Functions functions = new Functions(client); + +functions.listSpecifications(new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); +})); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/list-variables.md b/docs/examples/1.5.x/server-kotlin/java/functions/list-variables.md index df66fd7d898..1e1e0e7c8bb 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/list-variables.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/list-variables.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/list.md b/docs/examples/1.5.x/server-kotlin/java/functions/list.md index 2276e55ebf9..1c501fd1450 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/list.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/list.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/list-templates.md b/docs/examples/1.5.x/server-kotlin/java/functions/update-deployment-build.md similarity index 67% rename from docs/examples/1.6.x/server-kotlin/java/functions/list-templates.md rename to docs/examples/1.5.x/server-kotlin/java/functions/update-deployment-build.md index e88e19124f8..62b684fd8bf 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/list-templates.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/update-deployment-build.md @@ -4,15 +4,14 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>"); // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); -functions.listTemplates( - listOf(), // runtimes (optional) - listOf(), // useCases (optional) - 1, // limit (optional) - 0, // offset (optional) +functions.updateDeploymentBuild( + "<FUNCTION_ID>", // functionId + "<DEPLOYMENT_ID>", // deploymentId new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/update-deployment.md b/docs/examples/1.5.x/server-kotlin/java/functions/update-deployment.md index b0a9c157eb4..8d285019080 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/update-deployment.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/update-deployment.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/update-variable.md b/docs/examples/1.5.x/server-kotlin/java/functions/update-variable.md index 20610d94f94..4e0576ef103 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/update-variable.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/update-variable.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/functions/update.md b/docs/examples/1.5.x/server-kotlin/java/functions/update.md index dca994349f3..c63dfb47ef2 100644 --- a/docs/examples/1.5.x/server-kotlin/java/functions/update.md +++ b/docs/examples/1.5.x/server-kotlin/java/functions/update.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Functions functions = new Functions(client); @@ -21,11 +21,13 @@ functions.update( false, // logging (optional) "<ENTRYPOINT>", // entrypoint (optional) "<COMMANDS>", // commands (optional) + listOf(), // scopes (optional) "<INSTALLATION_ID>", // installationId (optional) "<PROVIDER_REPOSITORY_ID>", // providerRepositoryId (optional) "<PROVIDER_BRANCH>", // providerBranch (optional) false, // providerSilentMode (optional) "<PROVIDER_ROOT_DIRECTORY>", // providerRootDirectory (optional) + "", // specification (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/graphql/mutation.md b/docs/examples/1.5.x/server-kotlin/java/graphql/mutation.md index 3b45db71270..a929468eba7 100644 --- a/docs/examples/1.5.x/server-kotlin/java/graphql/mutation.md +++ b/docs/examples/1.5.x/server-kotlin/java/graphql/mutation.md @@ -4,8 +4,8 @@ import io.appwrite.services.Graphql; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/graphql/query.md b/docs/examples/1.5.x/server-kotlin/java/graphql/query.md index 508b32647b3..8182ea74009 100644 --- a/docs/examples/1.5.x/server-kotlin/java/graphql/query.md +++ b/docs/examples/1.5.x/server-kotlin/java/graphql/query.md @@ -4,8 +4,8 @@ import io.appwrite.services.Graphql; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-antivirus.md b/docs/examples/1.5.x/server-kotlin/java/health/get-antivirus.md index 334563fd1ce..6c1eb155ced 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-antivirus.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-antivirus.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-cache.md b/docs/examples/1.5.x/server-kotlin/java/health/get-cache.md index 9a2981253ac..62880c9e809 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-cache.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-cache.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-certificate.md b/docs/examples/1.5.x/server-kotlin/java/health/get-certificate.md index 73120ece03f..2a60a4c5b79 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-certificate.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-certificate.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-d-b.md b/docs/examples/1.5.x/server-kotlin/java/health/get-d-b.md index 22a5a6b5bb9..703989fa1e3 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-d-b.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-d-b.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-failed-jobs.md b/docs/examples/1.5.x/server-kotlin/java/health/get-failed-jobs.md index 7fa35ae1c18..25f53b83374 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-failed-jobs.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-failed-jobs.md @@ -5,8 +5,8 @@ import io.appwrite.enums.Name; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-pub-sub.md b/docs/examples/1.5.x/server-kotlin/java/health/get-pub-sub.md index ba945190848..116da6f15d3 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-pub-sub.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-pub-sub.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-builds.md b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-builds.md index e7289a7bc9c..a80a7452066 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-builds.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-builds.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-certificates.md b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-certificates.md index 14722d1efc2..ee0d48efe44 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-certificates.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-certificates.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-databases.md b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-databases.md index c504a84dd3c..7f34b19083a 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-databases.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-databases.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-deletes.md b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-deletes.md index 83a4862a255..23ed2aff0fb 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-deletes.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-deletes.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-functions.md b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-functions.md index 1984d81f297..2fcfb8b60cd 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-functions.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-functions.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-logs.md b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-logs.md index fa7fa7e4515..bcf6da214f4 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-logs.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-logs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-mails.md b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-mails.md index 3962d945a01..7580db6b2c8 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-mails.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-mails.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-messaging.md b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-messaging.md index 01b7e5a5b53..7b927d00b21 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-messaging.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-messaging.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-migrations.md b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-migrations.md index 7272a6f9a9a..c1a9fadd197 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-migrations.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-migrations.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-stats-resources.md b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..5a6db4a62ea --- /dev/null +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-stats-resources.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +health.getQueueStatsResources( + 0, // threshold (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-usage-dump.md b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-usage-dump.md index 8083af8c66b..74d5e3dbb89 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-usage-dump.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-usage-dump.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-usage.md b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-usage.md index ad4a163258a..360567a5533 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-usage.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-usage.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-webhooks.md b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-webhooks.md index 06dba931953..180c0cc87a2 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-queue-webhooks.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-queue-webhooks.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-queue.md b/docs/examples/1.5.x/server-kotlin/java/health/get-queue.md index 90b7eb35ad4..8072577f3ef 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-queue.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-queue.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-storage-local.md b/docs/examples/1.5.x/server-kotlin/java/health/get-storage-local.md index a57f34520da..99c7513fda3 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-storage-local.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-storage-local.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-storage.md b/docs/examples/1.5.x/server-kotlin/java/health/get-storage.md index c011ba5dcc7..9bd63ca5c92 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-storage.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-storage.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get-time.md b/docs/examples/1.5.x/server-kotlin/java/health/get-time.md index 36b276b4d7e..89ec655ea3b 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get-time.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get-time.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/health/get.md b/docs/examples/1.5.x/server-kotlin/java/health/get.md index 59badb05432..e81254e8781 100644 --- a/docs/examples/1.5.x/server-kotlin/java/health/get.md +++ b/docs/examples/1.5.x/server-kotlin/java/health/get.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Health health = new Health(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/locale/get.md b/docs/examples/1.5.x/server-kotlin/java/locale/get.md index de09960c97f..8063ce161a2 100644 --- a/docs/examples/1.5.x/server-kotlin/java/locale/get.md +++ b/docs/examples/1.5.x/server-kotlin/java/locale/get.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/locale/list-codes.md b/docs/examples/1.5.x/server-kotlin/java/locale/list-codes.md index 55e7503bab9..4bc244a0c91 100644 --- a/docs/examples/1.5.x/server-kotlin/java/locale/list-codes.md +++ b/docs/examples/1.5.x/server-kotlin/java/locale/list-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/locale/list-continents.md b/docs/examples/1.5.x/server-kotlin/java/locale/list-continents.md index 793c8630588..03b912200fb 100644 --- a/docs/examples/1.5.x/server-kotlin/java/locale/list-continents.md +++ b/docs/examples/1.5.x/server-kotlin/java/locale/list-continents.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/locale/list-countries-e-u.md b/docs/examples/1.5.x/server-kotlin/java/locale/list-countries-e-u.md index 8d45317e25c..9a6ee54a716 100644 --- a/docs/examples/1.5.x/server-kotlin/java/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/server-kotlin/java/locale/list-countries-e-u.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/locale/list-countries-phones.md b/docs/examples/1.5.x/server-kotlin/java/locale/list-countries-phones.md index bad8ff27d2f..cfab3be5db4 100644 --- a/docs/examples/1.5.x/server-kotlin/java/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/server-kotlin/java/locale/list-countries-phones.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/locale/list-countries.md b/docs/examples/1.5.x/server-kotlin/java/locale/list-countries.md index 96aac66ab65..079a8397095 100644 --- a/docs/examples/1.5.x/server-kotlin/java/locale/list-countries.md +++ b/docs/examples/1.5.x/server-kotlin/java/locale/list-countries.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/locale/list-currencies.md b/docs/examples/1.5.x/server-kotlin/java/locale/list-currencies.md index 55365ef682b..bab723f5be4 100644 --- a/docs/examples/1.5.x/server-kotlin/java/locale/list-currencies.md +++ b/docs/examples/1.5.x/server-kotlin/java/locale/list-currencies.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/locale/list-languages.md b/docs/examples/1.5.x/server-kotlin/java/locale/list-languages.md index fbf5565a1c4..b0435b7835e 100644 --- a/docs/examples/1.5.x/server-kotlin/java/locale/list-languages.md +++ b/docs/examples/1.5.x/server-kotlin/java/locale/list-languages.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Locale locale = new Locale(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-a-p-n-s-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-a-p-n-s-provider.md index 61fca2e267e..d0926c16521 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-a-p-n-s-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-apns-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-apns-provider.md index 2941fc6cb3b..5dde983120a 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-apns-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-apns-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-email.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-email.md index 4bf3a7cc66f..753a89b695a 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-email.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-email.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-f-c-m-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-f-c-m-provider.md index 18df4badac4..18c1e63bc10 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-f-c-m-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-fcm-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-fcm-provider.md index 8a0211c0d3a..1078514b6ba 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-fcm-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-fcm-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-mailgun-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-mailgun-provider.md index 946729be4c1..4b2a7bdd3cd 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-mailgun-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-mailgun-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-msg91provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-msg91provider.md index 9d7ffcb12ab..6cc120c37c5 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-msg91provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-msg91provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-push.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-push.md index 904b43675d3..56c7a607951 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-push.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-push.md @@ -4,15 +4,15 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); messaging.createPush( "<MESSAGE_ID>", // messageId - "<TITLE>", // title - "<BODY>", // body + "<TITLE>", // title (optional) + "<BODY>", // body (optional) listOf(), // topics (optional) listOf(), // users (optional) listOf(), // targets (optional) @@ -23,9 +23,12 @@ messaging.createPush( "<SOUND>", // sound (optional) "<COLOR>", // color (optional) "<TAG>", // tag (optional) - "<BADGE>", // badge (optional) + 0, // badge (optional) false, // draft (optional) "", // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + MessagePriority.NORMAL, // priority (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-s-m-s.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-s-m-s.md index cc6b7cdfe0d..9bc1d2ed541 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-s-m-s.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-s-m-s.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-s-m-t-p-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-s-m-t-p-provider.md index d443f8d17d8..73ffb67574f 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-s-m-t-p-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-sendgrid-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-sendgrid-provider.md index 9da521eea82..20e12749b2b 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-sendgrid-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-sms.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-sms.md index 2bde3b6fe6f..60e1749f321 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-sms.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-sms.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-smtp-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-smtp-provider.md index 05a9ab197be..3f69f610360 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-smtp-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-smtp-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-subscriber.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-subscriber.md index 1aa89e1d8f7..77ef2d59ff1 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-subscriber.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setJWT("<YOUR_JWT>"); // Your secret JSON Web Token Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-telesign-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-telesign-provider.md index 738f1fd5fda..f66081490b5 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-telesign-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-telesign-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-textmagic-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-textmagic-provider.md index f78362dda03..cda11d5bada 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-textmagic-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-textmagic-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-topic.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-topic.md index fa314c47292..8fa74d8ede2 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-topic.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-topic.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-twilio-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-twilio-provider.md index 896e4a30b8a..a122837691d 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-twilio-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-twilio-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/create-vonage-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/create-vonage-provider.md index e7ee86bc2a6..808ca0c1022 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/create-vonage-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/create-vonage-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/delete-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/delete-provider.md index f9806504283..e1337dc02fa 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/delete-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/delete-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/delete-subscriber.md b/docs/examples/1.5.x/server-kotlin/java/messaging/delete-subscriber.md index ba02c12b04f..c80fc72eb08 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/delete-subscriber.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setJWT("<YOUR_JWT>"); // Your secret JSON Web Token Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/delete-topic.md b/docs/examples/1.5.x/server-kotlin/java/messaging/delete-topic.md index 17aefe1fe77..9c51144bfc2 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/delete-topic.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/delete-topic.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/delete.md b/docs/examples/1.5.x/server-kotlin/java/messaging/delete.md index 1565f8bf92a..f90336a2ce3 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/delete.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/delete.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/get-message.md b/docs/examples/1.5.x/server-kotlin/java/messaging/get-message.md index 9129a20e3c9..5e940cff106 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/get-message.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/get-message.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/get-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/get-provider.md index 704a2b2b142..74ece13b1b1 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/get-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/get-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/get-subscriber.md b/docs/examples/1.5.x/server-kotlin/java/messaging/get-subscriber.md index 53638ef02e7..2e6beaac533 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/get-subscriber.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/get-subscriber.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/get-topic.md b/docs/examples/1.5.x/server-kotlin/java/messaging/get-topic.md index 3e8ad4cd9c5..adf64bbec58 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/get-topic.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/get-topic.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/list-message-logs.md b/docs/examples/1.5.x/server-kotlin/java/messaging/list-message-logs.md index 224c2ef93b2..70bb49ae859 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/list-message-logs.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/list-message-logs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/list-messages.md b/docs/examples/1.5.x/server-kotlin/java/messaging/list-messages.md index 7b31e16cdf1..847ce73f5c7 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/list-messages.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/list-messages.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/list-provider-logs.md b/docs/examples/1.5.x/server-kotlin/java/messaging/list-provider-logs.md index 1cda4d1ea9c..be1aba0eebc 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/list-provider-logs.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/list-provider-logs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/list-providers.md b/docs/examples/1.5.x/server-kotlin/java/messaging/list-providers.md index a52493393ce..feda90082ac 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/list-providers.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/list-providers.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/list-subscriber-logs.md b/docs/examples/1.5.x/server-kotlin/java/messaging/list-subscriber-logs.md index 3cab92359eb..30250e46880 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/list-subscriber-logs.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/list-subscriber-logs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/list-subscribers.md b/docs/examples/1.5.x/server-kotlin/java/messaging/list-subscribers.md index 1250442af19..d00d4925a0f 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/list-subscribers.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/list-subscribers.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/list-targets.md b/docs/examples/1.5.x/server-kotlin/java/messaging/list-targets.md index 32a621cf663..f1eeac02df0 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/list-targets.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/list-targets.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/list-topic-logs.md b/docs/examples/1.5.x/server-kotlin/java/messaging/list-topic-logs.md index 4e00e16c5c4..c7edc92992c 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/list-topic-logs.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/list-topic-logs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/list-topics.md b/docs/examples/1.5.x/server-kotlin/java/messaging/list-topics.md index 91b843eea4f..278d0d49089 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/list-topics.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/list-topics.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-a-p-n-s-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-a-p-n-s-provider.md index f38ccd52d03..60137835aa4 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-a-p-n-s-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-apns-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-apns-provider.md index 14873beec24..b9ac1a93f29 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-apns-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-apns-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-email.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-email.md index 04748490526..a5d98201f15 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-email.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-email.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-f-c-m-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-f-c-m-provider.md index 27a90c1ff17..2ee8cb3f1e4 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-f-c-m-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-fcm-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-fcm-provider.md index 631bdf4b27f..956900d7b8f 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-fcm-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-fcm-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-mailgun-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-mailgun-provider.md index 881dc3eebec..8512de159c7 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-mailgun-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-mailgun-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-msg91provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-msg91provider.md index 700995e90be..74de7d25e29 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-msg91provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-msg91provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-push.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-push.md index 468f95891a0..bb8c3c8c2ee 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-push.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-push.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); @@ -26,6 +26,9 @@ messaging.updatePush( 0, // badge (optional) false, // draft (optional) "", // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + MessagePriority.NORMAL, // priority (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-s-m-s.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-s-m-s.md index 7ff3526b66b..f4a65d0b98c 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-s-m-s.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-s-m-s.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-s-m-t-p-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-s-m-t-p-provider.md index 32b9d285d4b..3df74573f4f 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-s-m-t-p-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-sendgrid-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-sendgrid-provider.md index 099a617998a..79c89c0fc75 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-sendgrid-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-sms.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-sms.md index 913bd599962..bfca7d32df6 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-sms.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-sms.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-smtp-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-smtp-provider.md index 4bc5017c7d3..e3083816c92 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-smtp-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-smtp-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-telesign-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-telesign-provider.md index 31ab356e61c..6ffb534a3cd 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-telesign-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-telesign-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-textmagic-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-textmagic-provider.md index c4013dd6709..d80b5ae5c74 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-textmagic-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-textmagic-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-topic.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-topic.md index 0c6d41f8ba9..1013fbac572 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-topic.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-topic.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-twilio-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-twilio-provider.md index 7f8980d0244..65fb0fcb7e7 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-twilio-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-twilio-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/messaging/update-vonage-provider.md b/docs/examples/1.5.x/server-kotlin/java/messaging/update-vonage-provider.md index 7bbb06e50fe..6548d1758bf 100644 --- a/docs/examples/1.5.x/server-kotlin/java/messaging/update-vonage-provider.md +++ b/docs/examples/1.5.x/server-kotlin/java/messaging/update-vonage-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/storage/create-bucket.md b/docs/examples/1.5.x/server-kotlin/java/storage/create-bucket.md index 735aef71592..ccb9961b019 100644 --- a/docs/examples/1.5.x/server-kotlin/java/storage/create-bucket.md +++ b/docs/examples/1.5.x/server-kotlin/java/storage/create-bucket.md @@ -4,8 +4,8 @@ import io.appwrite.services.Storage; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/storage/create-file.md b/docs/examples/1.5.x/server-kotlin/java/storage/create-file.md index 275724fcdb9..92907fc4d93 100644 --- a/docs/examples/1.5.x/server-kotlin/java/storage/create-file.md +++ b/docs/examples/1.5.x/server-kotlin/java/storage/create-file.md @@ -5,7 +5,7 @@ import io.appwrite.services.Storage; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/storage/delete-bucket.md b/docs/examples/1.5.x/server-kotlin/java/storage/delete-bucket.md index e6e3d122d3b..8c46ba9303a 100644 --- a/docs/examples/1.5.x/server-kotlin/java/storage/delete-bucket.md +++ b/docs/examples/1.5.x/server-kotlin/java/storage/delete-bucket.md @@ -4,8 +4,8 @@ import io.appwrite.services.Storage; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/storage/delete-file.md b/docs/examples/1.5.x/server-kotlin/java/storage/delete-file.md index af498b47d5b..01d423d13a3 100644 --- a/docs/examples/1.5.x/server-kotlin/java/storage/delete-file.md +++ b/docs/examples/1.5.x/server-kotlin/java/storage/delete-file.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/storage/get-bucket.md b/docs/examples/1.5.x/server-kotlin/java/storage/get-bucket.md index e2259853f06..63c847f1717 100644 --- a/docs/examples/1.5.x/server-kotlin/java/storage/get-bucket.md +++ b/docs/examples/1.5.x/server-kotlin/java/storage/get-bucket.md @@ -4,8 +4,8 @@ import io.appwrite.services.Storage; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/storage/get-file-download.md b/docs/examples/1.5.x/server-kotlin/java/storage/get-file-download.md index 171cfd62b06..32bff0b051d 100644 --- a/docs/examples/1.5.x/server-kotlin/java/storage/get-file-download.md +++ b/docs/examples/1.5.x/server-kotlin/java/storage/get-file-download.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/storage/get-file-preview.md b/docs/examples/1.5.x/server-kotlin/java/storage/get-file-preview.md index 17d6e688aa0..650ea4dff50 100644 --- a/docs/examples/1.5.x/server-kotlin/java/storage/get-file-preview.md +++ b/docs/examples/1.5.x/server-kotlin/java/storage/get-file-preview.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/storage/get-file-view.md b/docs/examples/1.5.x/server-kotlin/java/storage/get-file-view.md index fc90ab91cfa..5a81ebaca0b 100644 --- a/docs/examples/1.5.x/server-kotlin/java/storage/get-file-view.md +++ b/docs/examples/1.5.x/server-kotlin/java/storage/get-file-view.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/storage/get-file.md b/docs/examples/1.5.x/server-kotlin/java/storage/get-file.md index edcba745d4e..004dc01f387 100644 --- a/docs/examples/1.5.x/server-kotlin/java/storage/get-file.md +++ b/docs/examples/1.5.x/server-kotlin/java/storage/get-file.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/storage/list-buckets.md b/docs/examples/1.5.x/server-kotlin/java/storage/list-buckets.md index 7e1e93469f7..8ab56e32533 100644 --- a/docs/examples/1.5.x/server-kotlin/java/storage/list-buckets.md +++ b/docs/examples/1.5.x/server-kotlin/java/storage/list-buckets.md @@ -4,8 +4,8 @@ import io.appwrite.services.Storage; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/storage/list-files.md b/docs/examples/1.5.x/server-kotlin/java/storage/list-files.md index cf1f9a024a2..6fbd2c3aa41 100644 --- a/docs/examples/1.5.x/server-kotlin/java/storage/list-files.md +++ b/docs/examples/1.5.x/server-kotlin/java/storage/list-files.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/storage/update-bucket.md b/docs/examples/1.5.x/server-kotlin/java/storage/update-bucket.md index ade3a575e51..342174ead5d 100644 --- a/docs/examples/1.5.x/server-kotlin/java/storage/update-bucket.md +++ b/docs/examples/1.5.x/server-kotlin/java/storage/update-bucket.md @@ -4,8 +4,8 @@ import io.appwrite.services.Storage; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/storage/update-file.md b/docs/examples/1.5.x/server-kotlin/java/storage/update-file.md index 961228c4d03..3578bcd6256 100644 --- a/docs/examples/1.5.x/server-kotlin/java/storage/update-file.md +++ b/docs/examples/1.5.x/server-kotlin/java/storage/update-file.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Storage storage = new Storage(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/teams/create-membership.md b/docs/examples/1.5.x/server-kotlin/java/teams/create-membership.md index c16dd8361f5..f7a4ecb66b9 100644 --- a/docs/examples/1.5.x/server-kotlin/java/teams/create-membership.md +++ b/docs/examples/1.5.x/server-kotlin/java/teams/create-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/teams/create.md b/docs/examples/1.5.x/server-kotlin/java/teams/create.md index b709bc7ee1a..e8fb127b3ef 100644 --- a/docs/examples/1.5.x/server-kotlin/java/teams/create.md +++ b/docs/examples/1.5.x/server-kotlin/java/teams/create.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/teams/delete-membership.md b/docs/examples/1.5.x/server-kotlin/java/teams/delete-membership.md index 25e3a399f7b..0fe1e170cf9 100644 --- a/docs/examples/1.5.x/server-kotlin/java/teams/delete-membership.md +++ b/docs/examples/1.5.x/server-kotlin/java/teams/delete-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/teams/delete.md b/docs/examples/1.5.x/server-kotlin/java/teams/delete.md index 3bdd838cc23..74f5a7c26d5 100644 --- a/docs/examples/1.5.x/server-kotlin/java/teams/delete.md +++ b/docs/examples/1.5.x/server-kotlin/java/teams/delete.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/teams/get-membership.md b/docs/examples/1.5.x/server-kotlin/java/teams/get-membership.md index de1c052b6e1..d013d913b2e 100644 --- a/docs/examples/1.5.x/server-kotlin/java/teams/get-membership.md +++ b/docs/examples/1.5.x/server-kotlin/java/teams/get-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/teams/get-prefs.md b/docs/examples/1.5.x/server-kotlin/java/teams/get-prefs.md index 86474430a5a..27cd6f9a8b6 100644 --- a/docs/examples/1.5.x/server-kotlin/java/teams/get-prefs.md +++ b/docs/examples/1.5.x/server-kotlin/java/teams/get-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/teams/get.md b/docs/examples/1.5.x/server-kotlin/java/teams/get.md index 3fd4ba74758..0416602ae72 100644 --- a/docs/examples/1.5.x/server-kotlin/java/teams/get.md +++ b/docs/examples/1.5.x/server-kotlin/java/teams/get.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/teams/list-memberships.md b/docs/examples/1.5.x/server-kotlin/java/teams/list-memberships.md index 98b1096078c..0260673a093 100644 --- a/docs/examples/1.5.x/server-kotlin/java/teams/list-memberships.md +++ b/docs/examples/1.5.x/server-kotlin/java/teams/list-memberships.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/teams/list.md b/docs/examples/1.5.x/server-kotlin/java/teams/list.md index c27e9fed716..a4e85acc5c6 100644 --- a/docs/examples/1.5.x/server-kotlin/java/teams/list.md +++ b/docs/examples/1.5.x/server-kotlin/java/teams/list.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/teams/update-membership-status.md b/docs/examples/1.5.x/server-kotlin/java/teams/update-membership-status.md index 9c86c609da2..8ca3398e6ec 100644 --- a/docs/examples/1.5.x/server-kotlin/java/teams/update-membership-status.md +++ b/docs/examples/1.5.x/server-kotlin/java/teams/update-membership-status.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/teams/update-membership.md b/docs/examples/1.5.x/server-kotlin/java/teams/update-membership.md index fd2abed1e10..60be82cbf04 100644 --- a/docs/examples/1.5.x/server-kotlin/java/teams/update-membership.md +++ b/docs/examples/1.5.x/server-kotlin/java/teams/update-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/teams/update-name.md b/docs/examples/1.5.x/server-kotlin/java/teams/update-name.md index 96f50322e5a..8db6f04d91c 100644 --- a/docs/examples/1.5.x/server-kotlin/java/teams/update-name.md +++ b/docs/examples/1.5.x/server-kotlin/java/teams/update-name.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/teams/update-prefs.md b/docs/examples/1.5.x/server-kotlin/java/teams/update-prefs.md index 790fa3ee26f..91f1492e727 100644 --- a/docs/examples/1.5.x/server-kotlin/java/teams/update-prefs.md +++ b/docs/examples/1.5.x/server-kotlin/java/teams/update-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with Teams teams = new Teams(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/create-argon2user.md b/docs/examples/1.5.x/server-kotlin/java/users/create-argon2user.md index 4e6a2579cbb..01275263dbc 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/create-argon2user.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/create-argon2user.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/create-bcrypt-user.md b/docs/examples/1.5.x/server-kotlin/java/users/create-bcrypt-user.md index 8faeb03496b..c98939bf025 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/create-bcrypt-user.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/create-bcrypt-user.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/create-j-w-t.md b/docs/examples/1.5.x/server-kotlin/java/users/create-j-w-t.md new file mode 100644 index 00000000000..c4538b730d9 --- /dev/null +++ b/docs/examples/1.5.x/server-kotlin/java/users/create-j-w-t.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Users; + +Client client = new Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Users users = new Users(client); + +users.createJWT( + "<USER_ID>", // userId + "<SESSION_ID>", // sessionId (optional) + 0, // duration (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.5.x/server-kotlin/java/users/create-m-d5user.md b/docs/examples/1.5.x/server-kotlin/java/users/create-m-d5user.md index 134db690e5f..0456a775764 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/create-m-d5user.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/create-m-d5user.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-kotlin/java/users/create-mfa-recovery-codes.md index 5e7e665433a..f9dfbe8fafd 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/create-mfa-recovery-codes.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/create-p-h-pass-user.md b/docs/examples/1.5.x/server-kotlin/java/users/create-p-h-pass-user.md index 48f9070cda9..e97767887c5 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/create-p-h-pass-user.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/create-p-h-pass-user.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/create-s-h-a-user.md b/docs/examples/1.5.x/server-kotlin/java/users/create-s-h-a-user.md index b10674c74b4..6a3869ce473 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/create-s-h-a-user.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/create-s-h-a-user.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/create-scrypt-modified-user.md b/docs/examples/1.5.x/server-kotlin/java/users/create-scrypt-modified-user.md index eb06445e24d..28d5881f7da 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/create-scrypt-modified-user.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/create-scrypt-modified-user.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/create-scrypt-user.md b/docs/examples/1.5.x/server-kotlin/java/users/create-scrypt-user.md index a98d50bd142..43e1ad8db95 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/create-scrypt-user.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/create-scrypt-user.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/create-session.md b/docs/examples/1.5.x/server-kotlin/java/users/create-session.md index 8b20589d200..bc7dfb02992 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/create-session.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/create-session.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/create-target.md b/docs/examples/1.5.x/server-kotlin/java/users/create-target.md index 5b387723214..6bad1ce682f 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/create-target.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/create-target.md @@ -5,8 +5,8 @@ import io.appwrite.enums.MessagingProviderType; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/create-token.md b/docs/examples/1.5.x/server-kotlin/java/users/create-token.md index 44f0a3c3ee8..9389e0eaef5 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/create-token.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/create-token.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/create.md b/docs/examples/1.5.x/server-kotlin/java/users/create.md index 89eb328f557..98891295704 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/create.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/create.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/delete-authenticator.md b/docs/examples/1.5.x/server-kotlin/java/users/delete-authenticator.md index af291b22d52..6e3cb5f2533 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/delete-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/delete-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Users; import io.appwrite.enums.AuthenticatorType; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/java/users/delete-identity.md b/docs/examples/1.5.x/server-kotlin/java/users/delete-identity.md index 54459cdd15a..063a91da894 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/delete-identity.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/delete-identity.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-kotlin/java/users/delete-mfa-authenticator.md index df3691fad9a..cd5d9ab00da 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/delete-mfa-authenticator.md @@ -5,8 +5,8 @@ import io.appwrite.enums.AuthenticatorType; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/delete-session.md b/docs/examples/1.5.x/server-kotlin/java/users/delete-session.md index 3eaaef26389..4ed2713d257 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/delete-session.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/delete-session.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/delete-sessions.md b/docs/examples/1.5.x/server-kotlin/java/users/delete-sessions.md index 63981e7b6fb..f0da6e09ce6 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/delete-sessions.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/delete-sessions.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/delete-target.md b/docs/examples/1.5.x/server-kotlin/java/users/delete-target.md index 6a703faf58c..ddd04602073 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/delete-target.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/delete-target.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/delete.md b/docs/examples/1.5.x/server-kotlin/java/users/delete.md index 4dfbe9467be..6a256f87e90 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/delete.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/delete.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-kotlin/java/users/get-mfa-recovery-codes.md index 13ffbb3d590..be33d2095e9 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/get-mfa-recovery-codes.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/get-prefs.md b/docs/examples/1.5.x/server-kotlin/java/users/get-prefs.md index a1dc1c077ff..3e36f166039 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/get-prefs.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/get-prefs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/get-target.md b/docs/examples/1.5.x/server-kotlin/java/users/get-target.md index c5674c721ec..2ee5b4a965b 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/get-target.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/get-target.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/get.md b/docs/examples/1.5.x/server-kotlin/java/users/get.md index 55060b59504..8c34ebacaf3 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/get.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/get.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/list-factors.md b/docs/examples/1.5.x/server-kotlin/java/users/list-factors.md index e72fdb2243e..5adb6a50252 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/list-factors.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/list-factors.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/java/users/list-identities.md b/docs/examples/1.5.x/server-kotlin/java/users/list-identities.md index 16724f02c21..169b41440df 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/list-identities.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/list-identities.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/list-logs.md b/docs/examples/1.5.x/server-kotlin/java/users/list-logs.md index 6a38abbbba7..f3d2701609a 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/list-logs.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/list-logs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/list-memberships.md b/docs/examples/1.5.x/server-kotlin/java/users/list-memberships.md index 240f6f9d071..4f3cfd82bec 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/list-memberships.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/list-memberships.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/list-mfa-factors.md b/docs/examples/1.5.x/server-kotlin/java/users/list-mfa-factors.md index ee288318561..4d51ece94b6 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/list-mfa-factors.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/list-providers.md b/docs/examples/1.5.x/server-kotlin/java/users/list-providers.md index 2c3e56a91b8..4e62056b48e 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/list-providers.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/list-providers.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/java/users/list-sessions.md b/docs/examples/1.5.x/server-kotlin/java/users/list-sessions.md index 680bee0c2bb..a1d3a3a7d96 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/list-sessions.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/list-sessions.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/list-targets.md b/docs/examples/1.5.x/server-kotlin/java/users/list-targets.md index 6e925eb8485..ab0457725a4 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/list-targets.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/list-targets.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/list.md b/docs/examples/1.5.x/server-kotlin/java/users/list.md index 9d8b0a703a6..a854ba0a791 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/list.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/list.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/update-email-verification.md b/docs/examples/1.5.x/server-kotlin/java/users/update-email-verification.md index 7770ee40cca..7423f774848 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/update-email-verification.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/update-email-verification.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/update-email.md b/docs/examples/1.5.x/server-kotlin/java/users/update-email.md index bc9407b0f38..23e3977db1d 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/update-email.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/update-email.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/update-labels.md b/docs/examples/1.5.x/server-kotlin/java/users/update-labels.md index 6b3c81be47d..acc3d1b0248 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/update-labels.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/update-labels.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-kotlin/java/users/update-mfa-recovery-codes.md index 34bdcc66fdd..eb560e72e09 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/update-mfa-recovery-codes.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/update-mfa.md b/docs/examples/1.5.x/server-kotlin/java/users/update-mfa.md index 7630c81330f..e1fc96f8afd 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/update-mfa.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/update-mfa.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/update-name.md b/docs/examples/1.5.x/server-kotlin/java/users/update-name.md index f2b8e98a950..e8bfe567cb6 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/update-name.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/update-name.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/update-password.md b/docs/examples/1.5.x/server-kotlin/java/users/update-password.md index 4f5c58b88db..bdf31a7771b 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/update-password.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/update-password.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/update-phone-verification.md b/docs/examples/1.5.x/server-kotlin/java/users/update-phone-verification.md index 58137b52af2..ce2377be9b5 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/update-phone-verification.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/update-phone-verification.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/update-phone.md b/docs/examples/1.5.x/server-kotlin/java/users/update-phone.md index 7b060aa7013..e0a0a4976fa 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/update-phone.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/update-phone.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/update-prefs.md b/docs/examples/1.5.x/server-kotlin/java/users/update-prefs.md index e9f278af1b8..1d1cc7c5ba5 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/update-prefs.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/update-prefs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/update-status.md b/docs/examples/1.5.x/server-kotlin/java/users/update-status.md index ce78408699d..e757ece454f 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/update-status.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/update-status.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/java/users/update-target.md b/docs/examples/1.5.x/server-kotlin/java/users/update-target.md index 8f3ae78a947..23ca8d0187f 100644 --- a/docs/examples/1.5.x/server-kotlin/java/users/update-target.md +++ b/docs/examples/1.5.x/server-kotlin/java/users/update-target.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users; Client client = new Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key Users users = new Users(client); diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/add-authenticator.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/add-authenticator.md index 0d178a4ca4d..d0bac4f54f9 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/add-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/add-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticatorType val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-anonymous-session.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-anonymous-session.md index 67686bb0d31..932b8a75073 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-anonymous-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-challenge.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-challenge.md index 416fd7da7f8..0fb3e706e4a 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-challenge.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticationFactor val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-email-password-session.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-email-password-session.md index e02d47c3be8..cc3b8cb3fac 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-email-password-session.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-email-password-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-email-token.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-email-token.md index 90a7c9effdc..b56e48909fb 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-email-token.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-email-token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-j-w-t.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-j-w-t.md index 234e0129eae..a0208cb9117 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-j-w-t.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-j-w-t.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-magic-u-r-l-token.md index 4d4775bf8a7..ba66695f15c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-magic-u-r-l-token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-mfa-authenticator.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-mfa-authenticator.md index 48aed258861..0afd790727b 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-mfa-authenticator.md @@ -5,7 +5,7 @@ import io.appwrite.enums.AuthenticatorType val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-mfa-challenge.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-mfa-challenge.md index 2f041ebf84f..921e791154c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-mfa-challenge.md @@ -5,7 +5,7 @@ import io.appwrite.enums.AuthenticationFactor val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-mfa-recovery-codes.md index 2665e994fa2..270fedaf7a0 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-mfa-recovery-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-o-auth2session.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-o-auth2session.md index fbffb4126f5..d1b34b3e52c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-o-auth2session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.OAuthProvider val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-o-auth2token.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-o-auth2token.md index 5718139a204..62d176d6b81 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-o-auth2token.md @@ -5,7 +5,7 @@ import io.appwrite.enums.OAuthProvider val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-phone-token.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-phone-token.md index 925d8616450..b9633e78110 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-phone-token.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-phone-token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-phone-verification.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-phone-verification.md index a2e08c63546..038d72e6f43 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-phone-verification.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-phone-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-recovery.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-recovery.md index c1d22f5c8cc..27c6af55fd1 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-recovery.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-recovery.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-session.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-session.md index 8627df3ddeb..5e6c47cc1bf 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-session.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-verification.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-verification.md index cfd0f21ac50..0d42f8a919f 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create-verification.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create.md index e18eaf22e19..19d7c12b5bc 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/create2f-a-challenge.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/create2f-a-challenge.md index a73686d8f91..3da5010865a 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/create2f-a-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticationFactor val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-authenticator.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-authenticator.md index 26afb5e7173..51768e3b27c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticatorType val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-identity.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-identity.md index 569502939b5..f6ede24729d 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-identity.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-identity.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-mfa-authenticator.md index 56b69f59bc1..ffa853f3f65 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-mfa-authenticator.md @@ -5,12 +5,11 @@ import io.appwrite.enums.AuthenticatorType val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) val response = account.deleteMfaAuthenticator( - type = AuthenticatorType.TOTP, - otp = "<OTP>" + type = AuthenticatorType.TOTP ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-session.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-session.md index a02389dd632..47b80d77a5b 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-session.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-sessions.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-sessions.md index 3698dacd6b4..b2571de0212 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-sessions.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/delete-sessions.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/get-mfa-recovery-codes.md index 4ff8a23cdbf..5335a0d0042 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/get-mfa-recovery-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/get-prefs.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/get-prefs.md index 8581225ddd6..3705645a028 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/get-prefs.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/get-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/get-session.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/get-session.md index d64687b3c6b..78478e1eb78 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/get-session.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/get-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/get.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/get.md index 4c8cb97b936..84f9bc3fe89 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/get.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/get.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/list-factors.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/list-factors.md index 7b281b01081..b1c65eebc21 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/list-factors.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/list-factors.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/list-identities.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/list-identities.md index 5dda161c5f9..f947de3da49 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/list-identities.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/list-identities.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/list-logs.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/list-logs.md index 4550de29329..ba926ae06e0 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/list-logs.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/list-logs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/list-mfa-factors.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/list-mfa-factors.md index 5703870995f..ee07a486c90 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/list-mfa-factors.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/list-sessions.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/list-sessions.md index 91a922cde5b..7f23ad30179 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/list-sessions.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/list-sessions.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-challenge.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-challenge.md index e8ff319bbb8..376169965ad 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-challenge.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-challenge.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-email.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-email.md index c952b55d155..c10c25e4ba5 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-email.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-email.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-m-f-a.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-m-f-a.md index 6f23864dceb..516f14d5cd5 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-m-f-a.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-m-f-a.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-magic-u-r-l-session.md index 1a533bfb4d2..99b65ebbc93 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-magic-u-r-l-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-mfa-authenticator.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-mfa-authenticator.md index a3edc9b40dd..482dfb360db 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-mfa-authenticator.md @@ -5,7 +5,7 @@ import io.appwrite.enums.AuthenticatorType val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-mfa-challenge.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-mfa-challenge.md index 2fb5d38ace0..2a9a1a463d0 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-mfa-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-mfa-recovery-codes.md index bef9f9a38fb..ebc6d718c9b 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-mfa-recovery-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-name.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-name.md index 711aa36b94f..13f90197f08 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-name.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-name.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-password.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-password.md index 8d62d873ddb..fbb67963d68 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-password.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-password.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-phone-session.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-phone-session.md index b6b13855b92..1f6aa40ddec 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-phone-session.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-phone-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-phone-verification.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-phone-verification.md index eb2c0752f57..87cd3ffeb76 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-phone-verification.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-phone-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-phone.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-phone.md index 35adaab9729..1a2600c4f0f 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-phone.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-phone.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-prefs.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-prefs.md index fda3f9483bf..32d083b6b9f 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-prefs.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-recovery.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-recovery.md index 3543991fcb5..8626e979841 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-recovery.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-recovery.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-session.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-session.md index c75abc0649e..5f83a2bb916 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-session.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-status.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-status.md index 07adc5311a7..aa94adec109 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-status.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-status.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-verification.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-verification.md index 19e55fc1a7c..2f8cc25cef3 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/update-verification.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/update-verification.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val account = Account(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/account/verify-authenticator.md b/docs/examples/1.5.x/server-kotlin/kotlin/account/verify-authenticator.md index 02695612f83..33cf99eadd4 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/account/verify-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/account/verify-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticatorType val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-browser.md b/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-browser.md index b5eb52d4858..0e29e1146d1 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-browser.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-browser.md @@ -5,7 +5,7 @@ import io.appwrite.enums.Browser val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-credit-card.md b/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-credit-card.md index f60f78ff40c..9929e764404 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-credit-card.md @@ -5,7 +5,7 @@ import io.appwrite.enums.CreditCard val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-favicon.md b/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-favicon.md index 22d91ffaa89..8cf4af26fe4 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-favicon.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-favicon.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-flag.md b/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-flag.md index 646445c5a88..73f3fefbdcb 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-flag.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-flag.md @@ -5,7 +5,7 @@ import io.appwrite.enums.Flag val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-image.md b/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-image.md index bda8ee63d9a..1369000a46e 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-image.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-image.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-initials.md b/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-initials.md index 35378c0579b..95499241a15 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-initials.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-initials.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-q-r.md b/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-q-r.md index 84e5e374a82..cea667bc933 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-q-r.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/avatars/get-q-r.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-boolean-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-boolean-attribute.md index 733fedef70f..64ac210006e 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-boolean-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-boolean-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-collection.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-collection.md index 1ae8865698b..03ca6a4b748 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-collection.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-collection.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-datetime-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-datetime-attribute.md index 3c39c717a61..d9e0771c9d2 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-datetime-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-datetime-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-document.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-document.md index 9c7608bcc8a..873e2edd48a 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-document.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-email-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-email-attribute.md index 94d928dada7..5e5091be6bd 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-email-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-email-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-enum-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-enum-attribute.md index 43761864488..733fbadf449 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-enum-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-enum-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-float-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-float-attribute.md index 1d6f94c3a69..04e9bfa17ce 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-float-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-float-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-index.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-index.md index f61f8295d8a..6dab46fec9a 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-index.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-index.md @@ -5,8 +5,8 @@ import io.appwrite.enums.IndexType val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-integer-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-integer-attribute.md index ae496a8e7ea..6c483bbac61 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-integer-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-integer-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-ip-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-ip-attribute.md index 5f78d503b67..76dd82dcb9d 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-ip-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-ip-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-relationship-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-relationship-attribute.md index 832192ab718..4797b94c910 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-relationship-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-relationship-attribute.md @@ -5,8 +5,8 @@ import io.appwrite.enums.RelationshipType val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-string-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-string-attribute.md index 3724e6b1307..06781f236c0 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-string-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-string-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-url-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-url-attribute.md index e2c52202fb7..33cadc7933d 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-url-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create-url-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create.md index ce481876af6..c17246f776f 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/create.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/create.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-attribute.md index ad31cd46f54..8fed2d841c2 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-collection.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-collection.md index ce4ebe76881..2c85947f379 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-collection.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-collection.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-document.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-document.md index b399a1dbec1..e920841a93a 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-document.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-index.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-index.md index 791ced39c87..8655b6bc678 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-index.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete-index.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete.md index 60cc227987d..13c56605807 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/delete.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-attribute.md index 1ee14627a7b..6a7ceb22103 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-collection.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-collection.md index 10da0e296d9..79980c5db71 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-collection.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-collection.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-document.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-document.md index 4d578616735..508e0dae37c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-document.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-index.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-index.md index ecb05402d08..3935c38ba6f 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-index.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/get-index.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/get.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/get.md index 92923f1b7a5..bb6b17cd193 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/get.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/get.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-attributes.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-attributes.md index 7d67ff0425e..b3f26a2e383 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-attributes.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-attributes.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-collections.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-collections.md index df8796e3b1f..9bdfa6e4d0f 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-collections.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-collections.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-documents.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-documents.md index 53a48bbee45..90cef399a2d 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-documents.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-documents.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-indexes.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-indexes.md index 8c653ea5978..6dd29ba2062 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-indexes.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/list-indexes.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/list.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/list.md index 7134f0e8395..f7f332b91fd 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/list.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/list.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-boolean-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-boolean-attribute.md index 8ccc39884cc..ebffab74f26 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-boolean-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-boolean-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) @@ -14,5 +14,6 @@ val response = databases.updateBooleanAttribute( collectionId = "<COLLECTION_ID>", key = "", required = false, - default = false + default = false, + newKey = "" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-collection.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-collection.md index f7b648f90e9..7ceef8423b0 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-collection.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-collection.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-datetime-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-datetime-attribute.md index 3ffb212edd4..676c779bc96 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-datetime-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-datetime-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) @@ -14,5 +14,6 @@ val response = databases.updateDatetimeAttribute( collectionId = "<COLLECTION_ID>", key = "", required = false, - default = "" + default = "", + newKey = "" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-document.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-document.md index ef02fdb4cd8..1737be1d3d7 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-document.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-document.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-email-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-email-attribute.md index 2a7a74ced37..2f1cbd25276 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-email-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-email-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) @@ -14,5 +14,6 @@ val response = databases.updateEmailAttribute( collectionId = "<COLLECTION_ID>", key = "", required = false, - default = "email@example.com" + default = "email@example.com", + newKey = "" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-enum-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-enum-attribute.md index 18ff0a34d70..7c0c92fad6b 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-enum-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-enum-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) @@ -15,5 +15,6 @@ val response = databases.updateEnumAttribute( key = "", elements = listOf(), required = false, - default = "<DEFAULT>" + default = "<DEFAULT>", + newKey = "" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-float-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-float-attribute.md index 315bf5602e7..3d0485f953a 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-float-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-float-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) @@ -14,7 +14,8 @@ val response = databases.updateFloatAttribute( collectionId = "<COLLECTION_ID>", key = "", required = false, - min = 0, - max = 0, - default = 0 + default = 0, + min = 0, // optional + max = 0, // optional + newKey = "" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-integer-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-integer-attribute.md index 9c61307e7a4..249972d975c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-integer-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-integer-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) @@ -14,7 +14,8 @@ val response = databases.updateIntegerAttribute( collectionId = "<COLLECTION_ID>", key = "", required = false, - min = 0, - max = 0, - default = 0 + default = 0, + min = 0, // optional + max = 0, // optional + newKey = "" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-ip-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-ip-attribute.md index a7959648d8b..bfc0cddce0e 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-ip-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-ip-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) @@ -14,5 +14,6 @@ val response = databases.updateIpAttribute( collectionId = "<COLLECTION_ID>", key = "", required = false, - default = "" + default = "", + newKey = "" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-relationship-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-relationship-attribute.md index b58559b2aac..ab121951406 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-relationship-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-relationship-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) @@ -13,5 +13,6 @@ val response = databases.updateRelationshipAttribute( databaseId = "<DATABASE_ID>", collectionId = "<COLLECTION_ID>", key = "", - onDelete = "cascade" // optional + onDelete = "cascade", // optional + newKey = "" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-string-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-string-attribute.md index e6fc440a5a9..32e17beb9c1 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-string-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-string-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) @@ -14,5 +14,7 @@ val response = databases.updateStringAttribute( collectionId = "<COLLECTION_ID>", key = "", required = false, - default = "<DEFAULT>" + default = "<DEFAULT>", + size = 1, // optional + newKey = "" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-url-attribute.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-url-attribute.md index 84ce862295e..78351133db0 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-url-attribute.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update-url-attribute.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) @@ -14,5 +14,6 @@ val response = databases.updateUrlAttribute( collectionId = "<COLLECTION_ID>", key = "", required = false, - default = "https://example.com" + default = "https://example.com", + newKey = "" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update.md b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update.md index e458d69c444..7da795cb725 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/databases/update.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/databases/update.md @@ -4,8 +4,8 @@ import io.appwrite.services.Databases val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val databases = Databases(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-build.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-build.md index fe64c02b827..6d20586e940 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-build.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-build.md @@ -4,13 +4,13 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) val response = functions.createBuild( functionId = "<FUNCTION_ID>", deploymentId = "<DEPLOYMENT_ID>", - buildId = "<BUILD_ID>" + buildId = "<BUILD_ID>" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-deployment.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-deployment.md index e961aa3ea73..aba8f0c5f73 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-deployment.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-deployment.md @@ -5,8 +5,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-execution.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-execution.md index 29f64bcf62a..42267458e0e 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-execution.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-execution.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val functions = Functions(client) @@ -15,5 +15,6 @@ val response = functions.createExecution( async = false, // optional path = "<PATH>", // optional method = "GET", // optional - headers = mapOf( "a" to "b" ) // optional + headers = mapOf( "a" to "b" ), // optional + scheduledAt = "" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-variable.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-variable.md index e6043609781..e5d33b4f1a5 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-variable.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-variable.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/create.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/create.md index f15566e61d6..d94bdf63787 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/create.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/create.md @@ -5,8 +5,8 @@ import io.appwrite.enums.Runtime val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) @@ -22,6 +22,7 @@ val response = functions.create( logging = false, // optional entrypoint = "<ENTRYPOINT>", // optional commands = "<COMMANDS>", // optional + scopes = listOf(), // optional installationId = "<INSTALLATION_ID>", // optional providerRepositoryId = "<PROVIDER_REPOSITORY_ID>", // optional providerBranch = "<PROVIDER_BRANCH>", // optional @@ -30,5 +31,6 @@ val response = functions.create( templateRepository = "<TEMPLATE_REPOSITORY>", // optional templateOwner = "<TEMPLATE_OWNER>", // optional templateRootDirectory = "<TEMPLATE_ROOT_DIRECTORY>", // optional - templateBranch = "<TEMPLATE_BRANCH>" // optional + templateVersion = "<TEMPLATE_VERSION>", // optional + specification = "" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/delete-deployment.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/delete-deployment.md index 43a8b60d154..9e4e4762f1f 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/delete-deployment.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/delete-deployment.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-templates.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/delete-execution.md similarity index 64% rename from docs/examples/1.6.x/server-kotlin/kotlin/functions/list-templates.md rename to docs/examples/1.5.x/server-kotlin/kotlin/functions/delete-execution.md index 37dc89ce89f..eb1f59eda7c 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-templates.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/delete-execution.md @@ -5,12 +5,11 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) -val response = functions.listTemplates( - runtimes = listOf(), // optional - useCases = listOf(), // optional - limit = 1, // optional - offset = 0 // optional +val response = functions.deleteExecution( + functionId = "<FUNCTION_ID>", + executionId = "<EXECUTION_ID>" ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/delete-variable.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/delete-variable.md index db1290a4555..912e7699b6c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/delete-variable.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/delete-variable.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/delete.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/delete.md index 4acba272264..97f0b0082fb 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/delete.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/delete.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/download-deployment.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/download-deployment.md index 7e126354490..b1954498fc7 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/download-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/download-deployment.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/get-deployment-download.md similarity index 90% rename from docs/examples/1.6.x/server-kotlin/kotlin/functions/download-deployment.md rename to docs/examples/1.5.x/server-kotlin/kotlin/functions/get-deployment-download.md index 0ae36b314f7..13dec6ade24 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/get-deployment-download.md @@ -9,7 +9,7 @@ val client = Client() val functions = Functions(client) -val result = functions.downloadDeployment( +val result = functions.getDeploymentDownload( functionId = "<FUNCTION_ID>", deploymentId = "<DEPLOYMENT_ID>" ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/get-deployment.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/get-deployment.md index cb92710acc3..e844328f58c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/get-deployment.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/get-deployment.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/get-execution.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/get-execution.md index e0c9dc76ffd..5f981bfc4f1 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/get-execution.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/get-execution.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val functions = Functions(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/get-variable.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/get-variable.md index c9a0f11a2e4..8d6ee38cf21 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/get-variable.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/get-variable.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/get.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/get.md index bffb1a074ee..f56d8b9eaaa 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/get.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/get.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-deployments.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-deployments.md index bb4b0b8f417..cf7deffa736 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-deployments.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-deployments.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-executions.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-executions.md index 04d6216e490..8f4546cb624 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-executions.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-executions.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val functions = Functions(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-runtimes.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-runtimes.md index 099b87b9369..a464156a1c0 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-runtimes.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-runtimes.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-template.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-specifications.md similarity index 75% rename from docs/examples/1.6.x/server-kotlin/kotlin/functions/get-template.md rename to docs/examples/1.5.x/server-kotlin/kotlin/functions/list-specifications.md index 53d838f7e65..8d86aa6cae5 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-template.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-specifications.md @@ -5,9 +5,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) -val response = functions.getTemplate( - templateId = "<TEMPLATE_ID>" -) +val response = functions.listSpecifications() diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-variables.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-variables.md index c1521632da3..4876517279c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-variables.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/list-variables.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/list.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/list.md index c04efeea40e..9a585017da5 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/list.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/list.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/functions/get-deployment-download.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/update-deployment-build.md similarity index 58% rename from docs/examples/1.6.x/client-android/kotlin/functions/get-deployment-download.md rename to docs/examples/1.5.x/server-kotlin/kotlin/functions/update-deployment-build.md index 21e99cb731e..6adb07a7817 100644 --- a/docs/examples/1.6.x/client-android/kotlin/functions/get-deployment-download.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/update-deployment-build.md @@ -2,13 +2,14 @@ import io.appwrite.Client import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions -val client = Client(context) +val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) -val result = functions.getDeploymentDownload( - functionId = "<FUNCTION_ID>", - deploymentId = "<DEPLOYMENT_ID>", -) \ No newline at end of file +val response = functions.updateDeploymentBuild( + functionId = "<FUNCTION_ID>", + deploymentId = "<DEPLOYMENT_ID>" +) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/update-deployment.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/update-deployment.md index 85b0f65cd5b..fb95b08abc2 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/update-deployment.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/update-deployment.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/update-variable.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/update-variable.md index 010de12e8e8..db9438c667a 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/update-variable.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/update-variable.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/functions/update.md b/docs/examples/1.5.x/server-kotlin/kotlin/functions/update.md index 0dc8ec3797a..d36c7610180 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/functions/update.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/functions/update.md @@ -4,8 +4,8 @@ import io.appwrite.services.Functions val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val functions = Functions(client) @@ -21,9 +21,11 @@ val response = functions.update( logging = false, // optional entrypoint = "<ENTRYPOINT>", // optional commands = "<COMMANDS>", // optional + scopes = listOf(), // optional installationId = "<INSTALLATION_ID>", // optional providerRepositoryId = "<PROVIDER_REPOSITORY_ID>", // optional providerBranch = "<PROVIDER_BRANCH>", // optional providerSilentMode = false, // optional - providerRootDirectory = "<PROVIDER_ROOT_DIRECTORY>" // optional + providerRootDirectory = "<PROVIDER_ROOT_DIRECTORY>", // optional + specification = "" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/graphql/mutation.md b/docs/examples/1.5.x/server-kotlin/kotlin/graphql/mutation.md index 9024c0ecb87..d4d2fd2dc26 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/graphql/mutation.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/graphql/mutation.md @@ -4,8 +4,8 @@ import io.appwrite.services.Graphql val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val graphql = Graphql(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/graphql/query.md b/docs/examples/1.5.x/server-kotlin/kotlin/graphql/query.md index c5e616583ae..79457c1e144 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/graphql/query.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/graphql/query.md @@ -4,8 +4,8 @@ import io.appwrite.services.Graphql val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val graphql = Graphql(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-antivirus.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-antivirus.md index b381dc2bcc4..c84072504b9 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-antivirus.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-antivirus.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-cache.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-cache.md index 0359605ad87..20ddb89ad3b 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-cache.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-cache.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-certificate.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-certificate.md index 48b1e06d3ef..714a2709a90 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-certificate.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-certificate.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-d-b.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-d-b.md index 92553e733b9..c707be39110 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-d-b.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-d-b.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-failed-jobs.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-failed-jobs.md index b8384d31e6e..5c5497a4c06 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-failed-jobs.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-failed-jobs.md @@ -5,8 +5,8 @@ import io.appwrite.enums.Name val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-pub-sub.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-pub-sub.md index 0f91e7758af..8a69bc7be69 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-pub-sub.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-pub-sub.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-builds.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-builds.md index 139268975ee..4d0cb3a0e6d 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-builds.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-builds.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-certificates.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-certificates.md index af6e44290d8..1b07df680e8 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-certificates.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-certificates.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-databases.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-databases.md index d9b020099fc..fb1dce69f80 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-databases.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-databases.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-deletes.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-deletes.md index c7f7a0a0780..d3f11862424 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-deletes.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-deletes.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-functions.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-functions.md index 37f2c676004..2a045955cba 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-functions.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-functions.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-logs.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-logs.md index f0f2bde0c77..6467a390ad6 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-logs.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-logs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-mails.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-mails.md index d4dc40aa19e..143dc409aec 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-mails.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-mails.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-messaging.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-messaging.md index ffb71923c47..e85e4258327 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-messaging.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-messaging.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-migrations.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-migrations.md index 300814c7dd9..f287e78d4a1 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-migrations.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-migrations.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-stats-resources.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..ac95abc6368 --- /dev/null +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-stats-resources.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val health = Health(client) + +val response = health.getQueueStatsResources( + threshold = 0 // optional +) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-usage-dump.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-usage-dump.md index 11c31641053..a97db61f2af 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-usage-dump.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-usage-dump.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-usage.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-usage.md index e5a9ade3429..fcfcf108e13 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-usage.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-usage.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-webhooks.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-webhooks.md index d4d56dd3774..6452f1a76e9 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-webhooks.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue-webhooks.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue.md index f9749e9eb02..5aa235ee315 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-queue.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-storage-local.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-storage-local.md index cc2664b7908..b2c9987353f 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-storage-local.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-storage-local.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-storage.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-storage.md index b4a35abd019..7038ee2b5a1 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-storage.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-storage.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-time.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-time.md index e121cb9d4b6..7c50ae424b2 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get-time.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get-time.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/health/get.md b/docs/examples/1.5.x/server-kotlin/kotlin/health/get.md index 49e229ef9bd..c53445ff991 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/health/get.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/health/get.md @@ -4,8 +4,8 @@ import io.appwrite.services.Health val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val health = Health(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/locale/get.md b/docs/examples/1.5.x/server-kotlin/kotlin/locale/get.md index 9d4853f6a63..b8dc768a0df 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/locale/get.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/locale/get.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val locale = Locale(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-codes.md b/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-codes.md index 084581055e9..784e688f4d1 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-codes.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-codes.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val locale = Locale(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-continents.md b/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-continents.md index b4be20b1626..6cad16e4a92 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-continents.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-continents.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val locale = Locale(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-countries-e-u.md b/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-countries-e-u.md index f09845708dc..cfec468dd5c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-countries-e-u.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val locale = Locale(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-countries-phones.md b/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-countries-phones.md index 9308be7dc19..06585ad248d 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-countries-phones.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val locale = Locale(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-countries.md b/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-countries.md index 4b2f1b1625e..7789bbeff50 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-countries.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-countries.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val locale = Locale(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-currencies.md b/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-currencies.md index 2ab56dbf311..6c7f7097d3b 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-currencies.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-currencies.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val locale = Locale(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-languages.md b/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-languages.md index 8401d258c3e..a20096e3352 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-languages.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/locale/list-languages.md @@ -4,7 +4,7 @@ import io.appwrite.services.Locale val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val locale = Locale(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-a-p-n-s-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-a-p-n-s-provider.md index 56f2b48490d..2342e3c4ebb 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-a-p-n-s-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-apns-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-apns-provider.md index d2125dc0a5b..8a58fe8672c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-apns-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-apns-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-email.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-email.md index f5d76790f44..02b0651b681 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-email.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-email.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-f-c-m-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-f-c-m-provider.md index a066bc6191b..4e40c7ff3a1 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-f-c-m-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-fcm-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-fcm-provider.md index 343ba99871b..779596cd78f 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-fcm-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-fcm-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-mailgun-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-mailgun-provider.md index 0d1c55ce9f3..a73a27ff08e 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-mailgun-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-mailgun-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-msg91provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-msg91provider.md index e3bf36cc061..31eb606e288 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-msg91provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-msg91provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-push.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-push.md index 1e783335768..f92a49d627a 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-push.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-push.md @@ -4,15 +4,15 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) val response = messaging.createPush( messageId = "<MESSAGE_ID>", - title = "<TITLE>", - body = "<BODY>", + title = "<TITLE>", // optional + body = "<BODY>", // optional topics = listOf(), // optional users = listOf(), // optional targets = listOf(), // optional @@ -23,7 +23,10 @@ val response = messaging.createPush( sound = "<SOUND>", // optional color = "<COLOR>", // optional tag = "<TAG>", // optional - badge = "<BADGE>", // optional + badge = 0, // optional draft = false, // optional - scheduledAt = "" // optional + scheduledAt = "", // optional + contentAvailable = false, // optional + critical = false, // optional + priority = "normal" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-s-m-s.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-s-m-s.md index 9b413e89069..ee552e6059a 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-s-m-s.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-s-m-s.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-s-m-t-p-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-s-m-t-p-provider.md index df4c616392b..56ab28e03db 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-s-m-t-p-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-sendgrid-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-sendgrid-provider.md index 701094d428c..34f61c9889b 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-sendgrid-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-sms.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-sms.md index b6f591a522a..6fbcffb09eb 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-sms.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-sms.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-smtp-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-smtp-provider.md index f263dcc29fa..17643dc6a54 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-smtp-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-smtp-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-subscriber.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-subscriber.md index 57b3e68e594..805cd583279 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-subscriber.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setJWT("<YOUR_JWT>") // Your secret JSON Web Token val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-telesign-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-telesign-provider.md index 88084239b3d..1d44fcab2a7 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-telesign-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-telesign-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-textmagic-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-textmagic-provider.md index d6abf3245d1..d88b9bb9d0e 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-textmagic-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-textmagic-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-topic.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-topic.md index 110abf47736..6a6b9bd4b27 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-topic.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-topic.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-twilio-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-twilio-provider.md index 24920ead981..3df99e97dac 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-twilio-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-twilio-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-vonage-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-vonage-provider.md index bccd07769ec..59e5d149fe3 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-vonage-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/create-vonage-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete-provider.md index c437e34b887..3ecd64deab2 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete-subscriber.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete-subscriber.md index 51012d89640..4a7c18faf99 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete-subscriber.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setJWT("<YOUR_JWT>") // Your secret JSON Web Token val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete-topic.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete-topic.md index 83b460de9cc..4859c0a621c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete-topic.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete-topic.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete.md index f7f400c41f8..0b925ca8a0e 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/delete.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-message.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-message.md index 8fbbdc02f63..01db389b24c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-message.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-message.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-provider.md index 48fdc64ea24..53e5cf32d56 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-subscriber.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-subscriber.md index 23bae3ee48a..036f17f757d 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-subscriber.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-subscriber.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-topic.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-topic.md index 21e5ae741de..09d36884f3b 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-topic.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/get-topic.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-message-logs.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-message-logs.md index d3062ea7ffc..30489041338 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-message-logs.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-message-logs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-messages.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-messages.md index ca4ab22ca91..e9e509e4c9b 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-messages.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-messages.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-provider-logs.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-provider-logs.md index 51d7723d4d0..e0a52cb402d 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-provider-logs.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-provider-logs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-providers.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-providers.md index 2779e86147a..66439e2a4c6 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-providers.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-providers.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-subscriber-logs.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-subscriber-logs.md index b331ccb444c..5472d5f46ff 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-subscriber-logs.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-subscriber-logs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-subscribers.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-subscribers.md index d257171059d..a95e8543289 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-subscribers.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-subscribers.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-targets.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-targets.md index 415d6119146..a99e8226d18 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-targets.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-targets.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-topic-logs.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-topic-logs.md index a9d5d5ab0b8..7b7d2f03840 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-topic-logs.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-topic-logs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-topics.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-topics.md index ed19b2a9902..4550f1e6589 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-topics.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/list-topics.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-a-p-n-s-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-a-p-n-s-provider.md index f14c1718489..2bd5c5e79c6 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-a-p-n-s-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-apns-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-apns-provider.md index 52e03d816ff..83a60830b14 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-apns-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-apns-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-email.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-email.md index 9af06277a9b..29baf1896d5 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-email.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-email.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-f-c-m-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-f-c-m-provider.md index d80a715a52b..579e0836253 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-f-c-m-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-fcm-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-fcm-provider.md index b64f48ae448..4d8534c2c47 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-fcm-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-fcm-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-mailgun-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-mailgun-provider.md index 1ad9e35f1a3..9caff421c84 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-mailgun-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-mailgun-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-msg91provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-msg91provider.md index c5c690bc6d9..1a6a0b49ad9 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-msg91provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-msg91provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-push.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-push.md index 4469e10612b..0ba72c461ce 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-push.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-push.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) @@ -25,5 +25,8 @@ val response = messaging.updatePush( tag = "<TAG>", // optional badge = 0, // optional draft = false, // optional - scheduledAt = "" // optional + scheduledAt = "", // optional + contentAvailable = false, // optional + critical = false, // optional + priority = "normal" // optional ) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-s-m-s.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-s-m-s.md index f13dc221045..9f6a5a96d8e 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-s-m-s.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-s-m-s.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-s-m-t-p-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-s-m-t-p-provider.md index 1c0ef7f25aa..d2584f548d8 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-s-m-t-p-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-sendgrid-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-sendgrid-provider.md index cb8a9cea549..353cbd01801 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-sendgrid-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-sms.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-sms.md index 752cf26eb23..7f008e8dbe6 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-sms.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-sms.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-smtp-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-smtp-provider.md index 40e466c5646..465d76b4da4 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-smtp-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-smtp-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-telesign-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-telesign-provider.md index 601d676dcb7..9a4d93e9c33 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-telesign-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-telesign-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-textmagic-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-textmagic-provider.md index d16de03d8e8..14e8ac51029 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-textmagic-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-textmagic-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-topic.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-topic.md index 9a2002688b7..68e894973dc 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-topic.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-topic.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-twilio-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-twilio-provider.md index bfd27758573..2c7a5e8cf9e 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-twilio-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-twilio-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-vonage-provider.md b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-vonage-provider.md index 209aef03894..4d432f73108 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-vonage-provider.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/messaging/update-vonage-provider.md @@ -4,8 +4,8 @@ import io.appwrite.services.Messaging val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/storage/create-bucket.md b/docs/examples/1.5.x/server-kotlin/kotlin/storage/create-bucket.md index 08419ef2c0b..0c0119e556a 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/storage/create-bucket.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/storage/create-bucket.md @@ -4,8 +4,8 @@ import io.appwrite.services.Storage val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val storage = Storage(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/storage/create-file.md b/docs/examples/1.5.x/server-kotlin/kotlin/storage/create-file.md index 8789d171388..a2203ff6862 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/storage/create-file.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/storage/create-file.md @@ -5,7 +5,7 @@ import io.appwrite.services.Storage val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val storage = Storage(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/storage/delete-bucket.md b/docs/examples/1.5.x/server-kotlin/kotlin/storage/delete-bucket.md index 5209db7e807..22981035d1a 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/storage/delete-bucket.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/storage/delete-bucket.md @@ -4,8 +4,8 @@ import io.appwrite.services.Storage val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val storage = Storage(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/storage/delete-file.md b/docs/examples/1.5.x/server-kotlin/kotlin/storage/delete-file.md index c26d90021e4..5b17c5c8b00 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/storage/delete-file.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/storage/delete-file.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val storage = Storage(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-bucket.md b/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-bucket.md index c8e007b1a5e..604ec05a26b 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-bucket.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-bucket.md @@ -4,8 +4,8 @@ import io.appwrite.services.Storage val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val storage = Storage(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file-download.md b/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file-download.md index 0635561cd5c..46b02e77302 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file-download.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file-download.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val storage = Storage(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file-preview.md b/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file-preview.md index 3362bb03bd5..88be42f6f58 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file-preview.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file-preview.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val storage = Storage(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file-view.md b/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file-view.md index 4005a6d0b18..b4ad81fcecd 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file-view.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file-view.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val storage = Storage(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file.md b/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file.md index 5fc6d6740fd..a6d2d3d85d7 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/storage/get-file.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val storage = Storage(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/storage/list-buckets.md b/docs/examples/1.5.x/server-kotlin/kotlin/storage/list-buckets.md index 942490ef410..4b22970641e 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/storage/list-buckets.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/storage/list-buckets.md @@ -4,8 +4,8 @@ import io.appwrite.services.Storage val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val storage = Storage(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/storage/list-files.md b/docs/examples/1.5.x/server-kotlin/kotlin/storage/list-files.md index 50fcda67faa..e7c3d664388 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/storage/list-files.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/storage/list-files.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val storage = Storage(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/storage/update-bucket.md b/docs/examples/1.5.x/server-kotlin/kotlin/storage/update-bucket.md index 45bcf390c0c..4040dfb4f9d 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/storage/update-bucket.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/storage/update-bucket.md @@ -4,8 +4,8 @@ import io.appwrite.services.Storage val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val storage = Storage(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/storage/update-file.md b/docs/examples/1.5.x/server-kotlin/kotlin/storage/update-file.md index 05fb981f059..96d4b08f9ac 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/storage/update-file.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/storage/update-file.md @@ -4,7 +4,7 @@ import io.appwrite.services.Storage val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val storage = Storage(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/teams/create-membership.md b/docs/examples/1.5.x/server-kotlin/kotlin/teams/create-membership.md index 59cd67ed447..250502ecc96 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/teams/create-membership.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/teams/create-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val teams = Teams(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/teams/create.md b/docs/examples/1.5.x/server-kotlin/kotlin/teams/create.md index 9b1ceaa50d5..b66029f08ea 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/teams/create.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/teams/create.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val teams = Teams(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/teams/delete-membership.md b/docs/examples/1.5.x/server-kotlin/kotlin/teams/delete-membership.md index 7f703a64421..0dff54515ff 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/teams/delete-membership.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/teams/delete-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val teams = Teams(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/teams/delete.md b/docs/examples/1.5.x/server-kotlin/kotlin/teams/delete.md index 678182b3ff0..9a75b2ae72b 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/teams/delete.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/teams/delete.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val teams = Teams(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/teams/get-membership.md b/docs/examples/1.5.x/server-kotlin/kotlin/teams/get-membership.md index 860ded76632..77c6ae5d1a9 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/teams/get-membership.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/teams/get-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val teams = Teams(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/teams/get-prefs.md b/docs/examples/1.5.x/server-kotlin/kotlin/teams/get-prefs.md index 331d3c33176..2700c893ae9 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/teams/get-prefs.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/teams/get-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val teams = Teams(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/teams/get.md b/docs/examples/1.5.x/server-kotlin/kotlin/teams/get.md index dfd0a53b123..a7be374a46e 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/teams/get.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/teams/get.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val teams = Teams(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/teams/list-memberships.md b/docs/examples/1.5.x/server-kotlin/kotlin/teams/list-memberships.md index 8f942472c40..916252dd617 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/teams/list-memberships.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/teams/list-memberships.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val teams = Teams(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/teams/list.md b/docs/examples/1.5.x/server-kotlin/kotlin/teams/list.md index 6d404843635..5af95dbfc7f 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/teams/list.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/teams/list.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val teams = Teams(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-membership-status.md b/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-membership-status.md index d72eace77fd..75c4a73731b 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-membership-status.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-membership-status.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val teams = Teams(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-membership.md b/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-membership.md index 61b3622f4f4..556e0a3394d 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-membership.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-membership.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val teams = Teams(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-name.md b/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-name.md index cfa502215e3..8e6a2a237c1 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-name.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-name.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val teams = Teams(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-prefs.md b/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-prefs.md index 60bb17f003b..c9153d359a3 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-prefs.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/teams/update-prefs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Teams val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with val teams = Teams(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-argon2user.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-argon2user.md index 47e9e3447e0..a01f6d54c3c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-argon2user.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-argon2user.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-bcrypt-user.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-bcrypt-user.md index 938c90dd1ca..b4758e4aba5 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-bcrypt-user.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-bcrypt-user.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-j-w-t.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-j-w-t.md new file mode 100644 index 00000000000..137847d13b1 --- /dev/null +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-j-w-t.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Users + +val client = Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val users = Users(client) + +val response = users.createJWT( + userId = "<USER_ID>", + sessionId = "<SESSION_ID>", // optional + duration = 0 // optional +) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-m-d5user.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-m-d5user.md index cadc7e55b66..f9d7cb2f120 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-m-d5user.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-m-d5user.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-mfa-recovery-codes.md index cd63135084f..b3a3950f545 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-mfa-recovery-codes.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-p-h-pass-user.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-p-h-pass-user.md index e473698af91..87d74aac8bb 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-p-h-pass-user.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-p-h-pass-user.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-s-h-a-user.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-s-h-a-user.md index f169d38a08c..0be03bf8a00 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-s-h-a-user.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-s-h-a-user.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md index 738de127e2d..f651d3fc586 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-scrypt-user.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-scrypt-user.md index 9a547bd2490..2502312f55b 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-scrypt-user.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-scrypt-user.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-session.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-session.md index 0eed0ceec4b..4b0e5dc277b 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-session.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-session.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-target.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-target.md index a683cb0fc90..4a7856bd61c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-target.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-target.md @@ -5,8 +5,8 @@ import io.appwrite.enums.MessagingProviderType val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-token.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-token.md index 0d39bcc8dfe..bd8f76d9be2 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/create-token.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/create-token.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/create.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/create.md index 8983f6fe475..b5bcee929fc 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/create.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/create.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-authenticator.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-authenticator.md index 002df8eb9f5..5ab0cb2eec1 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Users import io.appwrite.enums.AuthenticatorType val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-identity.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-identity.md index 59e927e3732..2c0bfae3bcf 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-identity.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-identity.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-mfa-authenticator.md index 56df063f37b..60989d4c6a7 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-mfa-authenticator.md @@ -5,8 +5,8 @@ import io.appwrite.enums.AuthenticatorType val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-session.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-session.md index c9fffaddce9..0127fa3183f 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-session.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-session.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-sessions.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-sessions.md index 51b92ea0392..26d7c703d9a 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-sessions.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-sessions.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-target.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-target.md index 50e641d1c62..6be6652c32b 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-target.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/delete-target.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/delete.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/delete.md index 508e72e5964..e250c44b7a7 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/delete.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/delete.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/get-mfa-recovery-codes.md index e2e75541b39..5860b4cca68 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/get-mfa-recovery-codes.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/get-prefs.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/get-prefs.md index b89f0fdc5c6..76545377081 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/get-prefs.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/get-prefs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/get-target.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/get-target.md index cd89cb7b68c..be8bbe81cab 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/get-target.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/get-target.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/get.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/get.md index 9f296b5bda2..829843065ba 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/get.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/get.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-factors.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-factors.md index 0d723c02620..40acf170747 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-factors.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-factors.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-identities.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-identities.md index 4e13335f7de..05156dbe935 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-identities.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-identities.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-logs.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-logs.md index 3c5ece22e4c..8868d0d30bd 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-logs.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-logs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-memberships.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-memberships.md index 498644cf73a..5a3d2ead352 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-memberships.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-memberships.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-mfa-factors.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-mfa-factors.md index 162a66b578e..25d9a4a1127 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-mfa-factors.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-providers.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-providers.md index 7d96f2521f9..bc1c6a17623 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-providers.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-providers.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-sessions.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-sessions.md index a2133550c2a..c14ebd7b829 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-sessions.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-sessions.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-targets.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-targets.md index d2eb67f8452..d017592a863 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/list-targets.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/list-targets.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/list.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/list.md index 8744fecd67f..e86ac0de468 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/list.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/list.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-email-verification.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-email-verification.md index ea2e7c538a8..3f5f2937e5c 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-email-verification.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-email-verification.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-email.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-email.md index 27f1437be41..b7a06443380 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-email.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-email.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-labels.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-labels.md index 04141830762..ecc29480a8d 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-labels.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-labels.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-mfa-recovery-codes.md index 723599f426d..b8fa2c503a5 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-mfa-recovery-codes.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-mfa.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-mfa.md index 50e9255e3f8..a169f3df781 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-mfa.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-mfa.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-name.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-name.md index 96db1f99388..32d164df29a 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-name.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-name.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-password.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-password.md index 00fd47fb36a..152226767c8 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-password.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-password.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-phone-verification.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-phone-verification.md index 9b311aae608..bc8f4c626fd 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-phone-verification.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-phone-verification.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-phone.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-phone.md index 144266201c2..f00a15d0151 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-phone.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-phone.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-prefs.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-prefs.md index d2e7041502d..cc8dcf6e742 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-prefs.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-prefs.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-status.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-status.md index e568cc9b446..e546ba5705a 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-status.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-status.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-target.md b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-target.md index 9326748c04f..1827c6a95b5 100644 --- a/docs/examples/1.5.x/server-kotlin/kotlin/users/update-target.md +++ b/docs/examples/1.5.x/server-kotlin/kotlin/users/update-target.md @@ -4,8 +4,8 @@ import io.appwrite.services.Users val client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key val users = Users(client) diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/add-authenticator.md b/docs/examples/1.5.x/server-nodejs/examples/account/add-authenticator.md index 4109ee4fb9e..6f74d501b00 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/add-authenticator.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/add-authenticator.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-anonymous-session.md index de09b8a176f..90a916143da 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-anonymous-session.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-challenge.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-challenge.md index 212645934e9..42097bb1a23 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-challenge.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-challenge.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-email-password-session.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-email-password-session.md index 72808985c19..34aabddad7a 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-email-password-session.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-email-password-session.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-email-token.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-email-token.md index ee95c2478fa..0f218a2bc02 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-email-token.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-email-token.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-j-w-t.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-j-w-t.md index 6df2696a849..673e1e077a5 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-j-w-t.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-j-w-t.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-magic-u-r-l-token.md index 1a0be7c30cd..cb6ef36732f 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-magic-u-r-l-token.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-mfa-authenticator.md index 54f32dc79d7..0305e029917 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-mfa-authenticator.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-mfa-challenge.md index 8ba238064e3..301d83d0405 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-mfa-challenge.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-mfa-recovery-codes.md index 4cbd16336da..c653ae55b20 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-mfa-recovery-codes.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-o-auth2session.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-o-auth2session.md index d0c12a9c93d..9140a082cb0 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-o-auth2session.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-o-auth2token.md index 62dc22a879c..7538a9d01ac 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-o-auth2token.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-phone-token.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-phone-token.md index 5258ee71440..04d5bc08c2b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-phone-token.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-phone-token.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-phone-verification.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-phone-verification.md index c1940fdc7c6..15dcf8a15f2 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-phone-verification.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-phone-verification.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-recovery.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-recovery.md index 6595eaf35ff..ed83848e7ea 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-recovery.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-recovery.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-session.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-session.md index 8ad93ce3774..8b2751b1a5f 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-session.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-session.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create-verification.md b/docs/examples/1.5.x/server-nodejs/examples/account/create-verification.md index 2c3421c812b..14456ef69ff 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create-verification.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create-verification.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create.md b/docs/examples/1.5.x/server-nodejs/examples/account/create.md index c32343efd80..860e341a470 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/create2f-a-challenge.md b/docs/examples/1.5.x/server-nodejs/examples/account/create2f-a-challenge.md index 40954647bd2..6d5126ed9ad 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/create2f-a-challenge.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/delete-authenticator.md b/docs/examples/1.5.x/server-nodejs/examples/account/delete-authenticator.md index 3a72939693c..e1534a66bf3 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/delete-authenticator.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/delete-authenticator.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/delete-identity.md b/docs/examples/1.5.x/server-nodejs/examples/account/delete-identity.md index 436a5e1a9f2..071133465ea 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/delete-identity.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/delete-identity.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-nodejs/examples/account/delete-mfa-authenticator.md index 7d756dff143..1cf8154acd8 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/delete-mfa-authenticator.md @@ -2,12 +2,11 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); const result = await account.deleteMfaAuthenticator( - sdk.AuthenticatorType.Totp, // type - '<OTP>' // otp + sdk.AuthenticatorType.Totp // type ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/delete-session.md b/docs/examples/1.5.x/server-nodejs/examples/account/delete-session.md index bbe3d070625..d29810f2674 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/delete-session.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/delete-session.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/delete-sessions.md b/docs/examples/1.5.x/server-nodejs/examples/account/delete-sessions.md index 943f4bb6ca8..496bd4a5f69 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/delete-sessions.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/delete-sessions.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-nodejs/examples/account/get-mfa-recovery-codes.md index 9fe1d11cf33..2bada1bafa9 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/get-mfa-recovery-codes.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/get-prefs.md b/docs/examples/1.5.x/server-nodejs/examples/account/get-prefs.md index 4b21918c8db..9ed003c69ae 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/get-prefs.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/get-prefs.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/get-session.md b/docs/examples/1.5.x/server-nodejs/examples/account/get-session.md index acef3abe9f2..aeaaa149336 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/get-session.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/get-session.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/get.md b/docs/examples/1.5.x/server-nodejs/examples/account/get.md index a72e90ed435..b1fc61f1ee9 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/get.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/get.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/list-factors.md b/docs/examples/1.5.x/server-nodejs/examples/account/list-factors.md index 3910c325b41..9191d012ed4 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/list-factors.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/list-factors.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/list-identities.md b/docs/examples/1.5.x/server-nodejs/examples/account/list-identities.md index 019cacb91d8..642034d796a 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/list-identities.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/list-identities.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/list-logs.md b/docs/examples/1.5.x/server-nodejs/examples/account/list-logs.md index 04e4797520f..08dcf812f40 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/list-logs.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/list-logs.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/server-nodejs/examples/account/list-mfa-factors.md index c6be1f22cc1..e2c9683ee69 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/list-mfa-factors.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/list-sessions.md b/docs/examples/1.5.x/server-nodejs/examples/account/list-sessions.md index 17793ca2b95..a8b423f95dd 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/list-sessions.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/list-sessions.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-challenge.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-challenge.md index 401ddab8735..7c9b7d49215 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-challenge.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-challenge.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-email.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-email.md index 53dcc45ae47..4c0c6c23fb5 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-email.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-email.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-m-f-a.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-m-f-a.md index 318976d0e61..30c36230ac0 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-m-f-a.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-magic-u-r-l-session.md index 4bcda8fcb09..56d2b02f049 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-magic-u-r-l-session.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-mfa-authenticator.md index dc2e5f13fe5..c8f1773daf3 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-mfa-authenticator.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-mfa-challenge.md index aeb5f2bdc57..bdb1a538afe 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-mfa-challenge.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-mfa-recovery-codes.md index bc3af027a84..16a3d3cca16 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-mfa-recovery-codes.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-name.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-name.md index 93412144a2f..df510029d31 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-name.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-name.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-password.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-password.md index 797eb9afc50..76021bcb89a 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-password.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-password.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-phone-session.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-phone-session.md index f38c1f0c647..40fccba90e3 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-phone-session.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-phone-session.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-phone-verification.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-phone-verification.md index 0144cbda2c2..93f35a8d3e4 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-phone-verification.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-phone-verification.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-phone.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-phone.md index f305df70849..11982b7c816 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-phone.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-phone.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-prefs.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-prefs.md index b8a94c89cfa..6f2700358d1 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-prefs.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-recovery.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-recovery.md index c932694eb57..09bfc64d427 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-recovery.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-recovery.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-session.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-session.md index 2ae04253055..64ec68ebd9d 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-session.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-session.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-status.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-status.md index b5692625c67..cf65e828651 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-status.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-status.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/update-verification.md b/docs/examples/1.5.x/server-nodejs/examples/account/update-verification.md index 3c7303ec0f6..cc3678ec213 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/update-verification.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/update-verification.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const account = new sdk.Account(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/account/verify-authenticator.md b/docs/examples/1.5.x/server-nodejs/examples/account/verify-authenticator.md index af0b31bb889..e03566f2766 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/account/verify-authenticator.md +++ b/docs/examples/1.5.x/server-nodejs/examples/account/verify-authenticator.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-nodejs/examples/avatars/get-browser.md b/docs/examples/1.5.x/server-nodejs/examples/avatars/get-browser.md index da49225bc93..ad6d0d4b686 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/avatars/get-browser.md +++ b/docs/examples/1.5.x/server-nodejs/examples/avatars/get-browser.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const avatars = new sdk.Avatars(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/server-nodejs/examples/avatars/get-credit-card.md index d3aa637c9e3..5ffcc344b1b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/server-nodejs/examples/avatars/get-credit-card.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const avatars = new sdk.Avatars(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/avatars/get-favicon.md b/docs/examples/1.5.x/server-nodejs/examples/avatars/get-favicon.md index aac0795498b..09804035435 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/avatars/get-favicon.md +++ b/docs/examples/1.5.x/server-nodejs/examples/avatars/get-favicon.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const avatars = new sdk.Avatars(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/avatars/get-flag.md b/docs/examples/1.5.x/server-nodejs/examples/avatars/get-flag.md index f2b3ea9ad4f..53b912f5a87 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/avatars/get-flag.md +++ b/docs/examples/1.5.x/server-nodejs/examples/avatars/get-flag.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const avatars = new sdk.Avatars(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/avatars/get-image.md b/docs/examples/1.5.x/server-nodejs/examples/avatars/get-image.md index ee3b07dc206..5a72fe3bcc3 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/avatars/get-image.md +++ b/docs/examples/1.5.x/server-nodejs/examples/avatars/get-image.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const avatars = new sdk.Avatars(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/avatars/get-initials.md b/docs/examples/1.5.x/server-nodejs/examples/avatars/get-initials.md index 9225048a4cd..b9d41fc27a1 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/avatars/get-initials.md +++ b/docs/examples/1.5.x/server-nodejs/examples/avatars/get-initials.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const avatars = new sdk.Avatars(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/avatars/get-q-r.md b/docs/examples/1.5.x/server-nodejs/examples/avatars/get-q-r.md index ff3dc25757a..0a2723561c3 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/avatars/get-q-r.md +++ b/docs/examples/1.5.x/server-nodejs/examples/avatars/get-q-r.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const avatars = new sdk.Avatars(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/create-boolean-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/create-boolean-attribute.md index 382322d7c47..7a04ed02fce 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/create-boolean-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/create-collection.md b/docs/examples/1.5.x/server-nodejs/examples/databases/create-collection.md index 2f37e3e6862..7119a4e500b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/create-collection.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/create-collection.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/create-datetime-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/create-datetime-attribute.md index 01119abdba9..ba40de8b43e 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/create-datetime-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/create-document.md b/docs/examples/1.5.x/server-nodejs/examples/databases/create-document.md index a99748edbab..3e1c76945ba 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/create-document.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/create-document.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/create-email-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/create-email-attribute.md index cbb8fe2bb6a..6f2da81f39b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/create-email-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/create-email-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/create-enum-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/create-enum-attribute.md index 468c91597f6..9439f8f5df8 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/create-enum-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/create-float-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/create-float-attribute.md index a85114fb986..7ed62239229 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/create-float-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/create-float-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/create-index.md b/docs/examples/1.5.x/server-nodejs/examples/databases/create-index.md index b29265cfc9a..73cdf3912e3 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/create-index.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/create-index.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/create-integer-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/create-integer-attribute.md index ad0532b5199..479b9d87549 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/create-integer-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/create-ip-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/create-ip-attribute.md index 870d7241667..c88087f9441 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/create-ip-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/create-relationship-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/create-relationship-attribute.md index 1cbf17b729c..7be4bae6a23 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/create-relationship-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/create-string-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/create-string-attribute.md index 3abde18839a..03905f4e86f 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/create-string-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/create-string-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/create-url-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/create-url-attribute.md index 9223af1aaeb..741249bb00d 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/create-url-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/create-url-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/create.md b/docs/examples/1.5.x/server-nodejs/examples/databases/create.md index 36f01c7c647..792bbf1c901 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/create.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/create.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/delete-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/delete-attribute.md index b67c0ab4c36..b8b2d47a65c 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/delete-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/delete-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/delete-collection.md b/docs/examples/1.5.x/server-nodejs/examples/databases/delete-collection.md index 1dd41af615c..bb72b9eb84b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/delete-collection.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/delete-collection.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/delete-document.md b/docs/examples/1.5.x/server-nodejs/examples/databases/delete-document.md index ddc6625f5b4..05183b5e042 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/delete-document.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/delete-document.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/delete-index.md b/docs/examples/1.5.x/server-nodejs/examples/databases/delete-index.md index 2e98d498d41..0f50d7d2f6f 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/delete-index.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/delete-index.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/delete.md b/docs/examples/1.5.x/server-nodejs/examples/databases/delete.md index ff14436ea6c..79ca89ddba1 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/delete.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/delete.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/get-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/get-attribute.md index ab530a84595..86dccff42bc 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/get-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/get-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/get-collection.md b/docs/examples/1.5.x/server-nodejs/examples/databases/get-collection.md index b2622ccbce9..f107c149c66 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/get-collection.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/get-collection.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/get-document.md b/docs/examples/1.5.x/server-nodejs/examples/databases/get-document.md index b4fe065924e..edd2cb210f4 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/get-document.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/get-document.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/get-index.md b/docs/examples/1.5.x/server-nodejs/examples/databases/get-index.md index b14322f21ea..3c1039cd1ed 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/get-index.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/get-index.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/get.md b/docs/examples/1.5.x/server-nodejs/examples/databases/get.md index 223f09caa34..ca5dd328e1e 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/get.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/get.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/list-attributes.md b/docs/examples/1.5.x/server-nodejs/examples/databases/list-attributes.md index 02e65dd8e84..fb0264f8a11 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/list-attributes.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/list-attributes.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/list-collections.md b/docs/examples/1.5.x/server-nodejs/examples/databases/list-collections.md index 6f44cce88c1..e5f725d1f80 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/list-collections.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/list-collections.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/list-documents.md b/docs/examples/1.5.x/server-nodejs/examples/databases/list-documents.md index 066e2733c33..346fba0abdb 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/list-documents.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/list-documents.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/list-indexes.md b/docs/examples/1.5.x/server-nodejs/examples/databases/list-indexes.md index 08fa9fe1eda..7acfc918ef1 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/list-indexes.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/list-indexes.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/list.md b/docs/examples/1.5.x/server-nodejs/examples/databases/list.md index 23c429934ce..f887719cbd3 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/list.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/list.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/update-boolean-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/update-boolean-attribute.md index 1298c51e38f..e6329b66749 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/update-boolean-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); @@ -12,5 +12,6 @@ const result = await databases.updateBooleanAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - false // default + false, // default + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/update-collection.md b/docs/examples/1.5.x/server-nodejs/examples/databases/update-collection.md index 9af17fe330d..b9bbeb8c45e 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/update-collection.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/update-collection.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/update-datetime-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/update-datetime-attribute.md index 2395bfd3ada..ef69c7e4b5b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/update-datetime-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); @@ -12,5 +12,6 @@ const result = await databases.updateDatetimeAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - '' // default + '', // default + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/update-document.md b/docs/examples/1.5.x/server-nodejs/examples/databases/update-document.md index b80b1031d6d..2e087ca7d06 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/update-document.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/update-document.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/update-email-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/update-email-attribute.md index c06a21363be..1fe9e572d42 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/update-email-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/update-email-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); @@ -12,5 +12,6 @@ const result = await databases.updateEmailAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - 'email@example.com' // default + 'email@example.com', // default + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/update-enum-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/update-enum-attribute.md index b04826495e5..ec9e3bd2cb0 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/update-enum-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); @@ -13,5 +13,6 @@ const result = await databases.updateEnumAttribute( '', // key [], // elements false, // required - '<DEFAULT>' // default + '<DEFAULT>', // default + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/update-float-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/update-float-attribute.md index 953492309b9..b064bf7c9f8 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/update-float-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/update-float-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); @@ -12,7 +12,8 @@ const result = await databases.updateFloatAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - null, // min - null, // max - null // default + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/update-integer-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/update-integer-attribute.md index fcdc509cb45..f686612fa2c 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/update-integer-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); @@ -12,7 +12,8 @@ const result = await databases.updateIntegerAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - null, // min - null, // max - null // default + null, // default + null, // min (optional) + null, // max (optional) + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/update-ip-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/update-ip-attribute.md index 91d928abfdb..019b4f2dbf4 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/update-ip-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); @@ -12,5 +12,6 @@ const result = await databases.updateIpAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - '' // default + '', // default + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/update-relationship-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/update-relationship-attribute.md index 72b6a70958c..2668380b504 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/update-relationship-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); @@ -11,5 +11,6 @@ const result = await databases.updateRelationshipAttribute( '<DATABASE_ID>', // databaseId '<COLLECTION_ID>', // collectionId '', // key - sdk.RelationMutate.Cascade // onDelete (optional) + sdk.RelationMutate.Cascade, // onDelete (optional) + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/update-string-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/update-string-attribute.md index 5d9bb738ddd..6aecbb591e3 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/update-string-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/update-string-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); @@ -12,5 +12,7 @@ const result = await databases.updateStringAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - '<DEFAULT>' // default + '<DEFAULT>', // default + 1, // size (optional) + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/update-url-attribute.md b/docs/examples/1.5.x/server-nodejs/examples/databases/update-url-attribute.md index f7acda30bfe..36d10953996 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/update-url-attribute.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/update-url-attribute.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); @@ -12,5 +12,6 @@ const result = await databases.updateUrlAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - 'https://example.com' // default + 'https://example.com', // default + '' // newKey (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/databases/update.md b/docs/examples/1.5.x/server-nodejs/examples/databases/update.md index d57e811bd1c..4b24cdddf90 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/databases/update.md +++ b/docs/examples/1.5.x/server-nodejs/examples/databases/update.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const databases = new sdk.Databases(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/create-build.md b/docs/examples/1.5.x/server-nodejs/examples/functions/create-build.md index 94661244052..c026a960c63 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/create-build.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/create-build.md @@ -2,13 +2,13 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); const result = await functions.createBuild( '<FUNCTION_ID>', // functionId '<DEPLOYMENT_ID>', // deploymentId - '<BUILD_ID>' // buildId + '<BUILD_ID>' // buildId (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/create-deployment.md b/docs/examples/1.5.x/server-nodejs/examples/functions/create-deployment.md index 89ae42dad3e..1928e4c5a93 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/create-deployment.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/create-deployment.md @@ -3,8 +3,8 @@ const fs = require('fs'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/create-execution.md b/docs/examples/1.5.x/server-nodejs/examples/functions/create-execution.md index 72b6d669431..4eec409ef09 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/create-execution.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const functions = new sdk.Functions(client); @@ -13,5 +13,6 @@ const result = await functions.createExecution( false, // async (optional) '<PATH>', // path (optional) sdk.ExecutionMethod.GET, // method (optional) - {} // headers (optional) + {}, // headers (optional) + '' // scheduledAt (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/create-variable.md b/docs/examples/1.5.x/server-nodejs/examples/functions/create-variable.md index 6290edc4f59..60a93666b89 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/create-variable.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/create-variable.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/create.md b/docs/examples/1.5.x/server-nodejs/examples/functions/create.md index 8f8aea8c416..cb4464825c4 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/create.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/create.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); @@ -19,6 +19,7 @@ const result = await functions.create( false, // logging (optional) '<ENTRYPOINT>', // entrypoint (optional) '<COMMANDS>', // commands (optional) + [], // scopes (optional) '<INSTALLATION_ID>', // installationId (optional) '<PROVIDER_REPOSITORY_ID>', // providerRepositoryId (optional) '<PROVIDER_BRANCH>', // providerBranch (optional) @@ -27,5 +28,6 @@ const result = await functions.create( '<TEMPLATE_REPOSITORY>', // templateRepository (optional) '<TEMPLATE_OWNER>', // templateOwner (optional) '<TEMPLATE_ROOT_DIRECTORY>', // templateRootDirectory (optional) - '<TEMPLATE_BRANCH>' // templateBranch (optional) + '<TEMPLATE_VERSION>', // templateVersion (optional) + '' // specification (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/delete-deployment.md b/docs/examples/1.5.x/server-nodejs/examples/functions/delete-deployment.md index f84b635cf74..a9038bc6eac 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/delete-deployment.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/delete-deployment.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/delete-execution.md b/docs/examples/1.5.x/server-nodejs/examples/functions/delete-execution.md new file mode 100644 index 00000000000..28b5e415b97 --- /dev/null +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/delete-execution.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new sdk.Functions(client); + +const result = await functions.deleteExecution( + '<FUNCTION_ID>', // functionId + '<EXECUTION_ID>' // executionId +); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/delete-variable.md b/docs/examples/1.5.x/server-nodejs/examples/functions/delete-variable.md index 87b69e46bf2..f3cf0186d00 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/delete-variable.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/delete-variable.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/delete.md b/docs/examples/1.5.x/server-nodejs/examples/functions/delete.md index c793aa887f8..43acc4b130b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/delete.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/delete.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/download-deployment.md b/docs/examples/1.5.x/server-nodejs/examples/functions/download-deployment.md index 496f3496270..16a77908e35 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/download-deployment.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/download-deployment.md b/docs/examples/1.5.x/server-nodejs/examples/functions/get-deployment-download.md similarity index 87% rename from docs/examples/1.6.x/server-nodejs/examples/functions/download-deployment.md rename to docs/examples/1.5.x/server-nodejs/examples/functions/get-deployment-download.md index e0962db0ed9..a15215dd3a0 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/get-deployment-download.md @@ -7,7 +7,7 @@ const client = new sdk.Client() const functions = new sdk.Functions(client); -const result = await functions.downloadDeployment( +const result = await functions.getDeploymentDownload( '<FUNCTION_ID>', // functionId '<DEPLOYMENT_ID>' // deploymentId ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/get-deployment.md b/docs/examples/1.5.x/server-nodejs/examples/functions/get-deployment.md index c801f570f88..1c10a92d4ad 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/get-deployment.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/get-deployment.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/get-execution.md b/docs/examples/1.5.x/server-nodejs/examples/functions/get-execution.md index b1168edf99c..7be4378c4e0 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/get-execution.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/get-variable.md b/docs/examples/1.5.x/server-nodejs/examples/functions/get-variable.md index 9a8932b8369..64150e0f552 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/get-variable.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/get-variable.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/get.md b/docs/examples/1.5.x/server-nodejs/examples/functions/get.md index a6e561b233a..26807e7908c 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/get.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/get.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/list-deployments.md b/docs/examples/1.5.x/server-nodejs/examples/functions/list-deployments.md index ff524ba6495..67c3c3c5ad7 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/list-deployments.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/list-deployments.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/list-executions.md b/docs/examples/1.5.x/server-nodejs/examples/functions/list-executions.md index a837455e577..26aa02e16e8 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/list-executions.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/list-runtimes.md b/docs/examples/1.5.x/server-nodejs/examples/functions/list-runtimes.md index f128b1c5193..729cce7c2b3 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/list-runtimes.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/list-runtimes.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/get-template.md b/docs/examples/1.5.x/server-nodejs/examples/functions/list-specifications.md similarity index 53% rename from docs/examples/1.6.x/server-nodejs/examples/functions/get-template.md rename to docs/examples/1.5.x/server-nodejs/examples/functions/list-specifications.md index 36195db7f34..4942bc39187 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/get-template.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/list-specifications.md @@ -2,10 +2,9 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); -const result = await functions.getTemplate( - '<TEMPLATE_ID>' // templateId -); +const result = await functions.listSpecifications(); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/list-variables.md b/docs/examples/1.5.x/server-nodejs/examples/functions/list-variables.md index feeaa118a38..f213d0ceef1 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/list-variables.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/list-variables.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/list.md b/docs/examples/1.5.x/server-nodejs/examples/functions/list.md index f6751ca26f4..ba7365f936a 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/list.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/list.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/update-deployment-build.md b/docs/examples/1.5.x/server-nodejs/examples/functions/update-deployment-build.md new file mode 100644 index 00000000000..b492af8254a --- /dev/null +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/update-deployment-build.md @@ -0,0 +1,13 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const functions = new sdk.Functions(client); + +const result = await functions.updateDeploymentBuild( + '<FUNCTION_ID>', // functionId + '<DEPLOYMENT_ID>' // deploymentId +); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/update-deployment.md b/docs/examples/1.5.x/server-nodejs/examples/functions/update-deployment.md index 00eafd350a9..82543900df7 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/update-deployment.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/update-deployment.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/update-variable.md b/docs/examples/1.5.x/server-nodejs/examples/functions/update-variable.md index 068abee2f9c..657b0bd10ec 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/update-variable.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/update-variable.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/functions/update.md b/docs/examples/1.5.x/server-nodejs/examples/functions/update.md index dc1da25b675..b82dc35f368 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/functions/update.md +++ b/docs/examples/1.5.x/server-nodejs/examples/functions/update.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const functions = new sdk.Functions(client); @@ -19,9 +19,11 @@ const result = await functions.update( false, // logging (optional) '<ENTRYPOINT>', // entrypoint (optional) '<COMMANDS>', // commands (optional) + [], // scopes (optional) '<INSTALLATION_ID>', // installationId (optional) '<PROVIDER_REPOSITORY_ID>', // providerRepositoryId (optional) '<PROVIDER_BRANCH>', // providerBranch (optional) false, // providerSilentMode (optional) - '<PROVIDER_ROOT_DIRECTORY>' // providerRootDirectory (optional) + '<PROVIDER_ROOT_DIRECTORY>', // providerRootDirectory (optional) + '' // specification (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/graphql/mutation.md b/docs/examples/1.5.x/server-nodejs/examples/graphql/mutation.md index ee32b9eee7e..64b2393426e 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/graphql/mutation.md +++ b/docs/examples/1.5.x/server-nodejs/examples/graphql/mutation.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const graphql = new sdk.Graphql(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/graphql/query.md b/docs/examples/1.5.x/server-nodejs/examples/graphql/query.md index 887b5bdcb25..24a6e56e67b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/graphql/query.md +++ b/docs/examples/1.5.x/server-nodejs/examples/graphql/query.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const graphql = new sdk.Graphql(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-antivirus.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-antivirus.md index 1555b6d20cd..fc98ff937c8 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-antivirus.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-antivirus.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-cache.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-cache.md index c418a4995ed..9289cad7e44 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-cache.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-cache.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-certificate.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-certificate.md index 9f25b69a977..637f30bd211 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-certificate.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-certificate.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-d-b.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-d-b.md index 36519bda47d..6cca907ba35 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-d-b.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-d-b.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-failed-jobs.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-failed-jobs.md index 0cff48836cf..2ce2dfb6eb1 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-failed-jobs.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-failed-jobs.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-pub-sub.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-pub-sub.md index a17f5c62919..36dc5ba39e9 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-pub-sub.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-pub-sub.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-builds.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-builds.md index 93b27631e0f..ef09f92d929 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-builds.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-builds.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-certificates.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-certificates.md index efb52c64c8b..1095c398201 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-certificates.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-certificates.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-databases.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-databases.md index c3ae629bb08..fcd113aaa3d 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-databases.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-databases.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-deletes.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-deletes.md index 4a7f96acf03..6a6f5175d7e 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-deletes.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-deletes.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-functions.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-functions.md index 94599395629..05cd6e63dc9 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-functions.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-functions.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-logs.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-logs.md index 2ee3693206a..e0a75b8de01 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-logs.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-logs.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-mails.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-mails.md index 6c099d31c07..253e9ba004d 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-mails.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-mails.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-messaging.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-messaging.md index 9494c636ddd..3db1f6f5aee 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-messaging.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-messaging.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-migrations.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-migrations.md index 6e94b98b774..a2034495376 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-migrations.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-migrations.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-stats-resources.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..e469391403d --- /dev/null +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-stats-resources.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new sdk.Health(client); + +const result = await health.getQueueStatsResources( + null // threshold (optional) +); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-usage-dump.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-usage-dump.md index e7651bebf36..584518a18a0 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-usage-dump.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-usage.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-usage.md index 6902e1df98c..919d0973e25 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-usage.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-usage.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-webhooks.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-webhooks.md index 4e53e286477..54b6ba4dd2a 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue-webhooks.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue.md index 46fd991021a..b6806d5da61 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-queue.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-queue.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-storage-local.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-storage-local.md index 29daa871206..d04610df9b6 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-storage-local.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-storage-local.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-storage.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-storage.md index 7b7ad5cb33b..cd6d494d846 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-storage.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-storage.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get-time.md b/docs/examples/1.5.x/server-nodejs/examples/health/get-time.md index 5768c15847d..71caa3ff8a5 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get-time.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get-time.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/health/get.md b/docs/examples/1.5.x/server-nodejs/examples/health/get.md index 75e5726c396..d92cb944aca 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/health/get.md +++ b/docs/examples/1.5.x/server-nodejs/examples/health/get.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const health = new sdk.Health(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/locale/get.md b/docs/examples/1.5.x/server-nodejs/examples/locale/get.md index 27e8f0665ca..eb7353d3a8f 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/locale/get.md +++ b/docs/examples/1.5.x/server-nodejs/examples/locale/get.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new sdk.Locale(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/locale/list-codes.md b/docs/examples/1.5.x/server-nodejs/examples/locale/list-codes.md index 9bcbd72ea79..c95a8522389 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/locale/list-codes.md +++ b/docs/examples/1.5.x/server-nodejs/examples/locale/list-codes.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new sdk.Locale(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/locale/list-continents.md b/docs/examples/1.5.x/server-nodejs/examples/locale/list-continents.md index 3ba7f795f7f..ffce38e71eb 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/locale/list-continents.md +++ b/docs/examples/1.5.x/server-nodejs/examples/locale/list-continents.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new sdk.Locale(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/server-nodejs/examples/locale/list-countries-e-u.md index 309cca604bd..3bd63b33a6f 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/server-nodejs/examples/locale/list-countries-e-u.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new sdk.Locale(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/server-nodejs/examples/locale/list-countries-phones.md index dca14893d86..be39d0f87cf 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/server-nodejs/examples/locale/list-countries-phones.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new sdk.Locale(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/locale/list-countries.md b/docs/examples/1.5.x/server-nodejs/examples/locale/list-countries.md index 808d3ea022e..5496a1f747d 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/locale/list-countries.md +++ b/docs/examples/1.5.x/server-nodejs/examples/locale/list-countries.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new sdk.Locale(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/locale/list-currencies.md b/docs/examples/1.5.x/server-nodejs/examples/locale/list-currencies.md index 2e1216bb66e..ff67f9f78e5 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/locale/list-currencies.md +++ b/docs/examples/1.5.x/server-nodejs/examples/locale/list-currencies.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new sdk.Locale(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/locale/list-languages.md b/docs/examples/1.5.x/server-nodejs/examples/locale/list-languages.md index b01c5f06ad9..d6753d33544 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/locale/list-languages.md +++ b/docs/examples/1.5.x/server-nodejs/examples/locale/list-languages.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const locale = new sdk.Locale(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-a-p-n-s-provider.md index 6666c40cab6..dd7555f3bc9 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-a-p-n-s-provider.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-apns-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-apns-provider.md index 11622dff768..fedbc556e32 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-apns-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-email.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-email.md index fbec7a369ed..35ac684b93e 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-email.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-email.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-f-c-m-provider.md index d53252e494d..8285cea937a 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-f-c-m-provider.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-fcm-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-fcm-provider.md index a296b77aace..80ffa5839a1 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-fcm-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-mailgun-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-mailgun-provider.md index 2ce3bb1e9d5..2b5f657182e 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-mailgun-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-msg91provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-msg91provider.md index 5e6a44a1c8b..c8dcb38592c 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-msg91provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-push.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-push.md index af57507d6c4..bb985387484 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-push.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-push.md @@ -2,15 +2,15 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); const result = await messaging.createPush( '<MESSAGE_ID>', // messageId - '<TITLE>', // title - '<BODY>', // body + '<TITLE>', // title (optional) + '<BODY>', // body (optional) [], // topics (optional) [], // users (optional) [], // targets (optional) @@ -21,7 +21,10 @@ const result = await messaging.createPush( '<SOUND>', // sound (optional) '<COLOR>', // color (optional) '<TAG>', // tag (optional) - '<BADGE>', // badge (optional) + null, // badge (optional) false, // draft (optional) - '' // scheduledAt (optional) + '', // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + sdk.MessagePriority.Normal // priority (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-s-m-s.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-s-m-s.md index 23f2779ec5d..b1e04ab0a33 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-s-m-s.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-s-m-s.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-s-m-t-p-provider.md index a81fc24279c..06bf4fa7e67 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-s-m-t-p-provider.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-sendgrid-provider.md index 125c8e3f984..65d4f4026af 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-sendgrid-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-sms.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-sms.md index 786aac4fad6..75dce904f27 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-sms.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-sms.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-smtp-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-smtp-provider.md index d03d2e6534e..9c69f276711 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-smtp-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-subscriber.md index 75b9321a5c7..e5d2a9774c0 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-subscriber.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...'); // Your secret JSON Web Token + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-telesign-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-telesign-provider.md index 5642b48838a..544be15a2c6 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-telesign-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-textmagic-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-textmagic-provider.md index d3f301dc016..ef41b803af8 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-textmagic-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-topic.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-topic.md index 1bbd1b5dd81..22fe4121ceb 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-topic.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-topic.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-twilio-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-twilio-provider.md index dbaa0aaa271..908f09ed1d7 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-twilio-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-vonage-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-vonage-provider.md index 68b8dba88a9..78270b7f841 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/create-vonage-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/delete-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/delete-provider.md index 39678390b29..fd664515fe4 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/delete-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/delete-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/delete-subscriber.md index 22ed0af8f7e..aec3a7ed5df 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/delete-subscriber.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...'); // Your secret JSON Web Token + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/delete-topic.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/delete-topic.md index fa389953f2b..7b4a360e8c4 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/delete-topic.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/delete-topic.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/delete.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/delete.md index 22a3d35adf0..d4f8bfcc6d1 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/delete.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/delete.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/get-message.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/get-message.md index 4f0b92c8590..7b466226854 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/get-message.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/get-message.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/get-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/get-provider.md index 17d1e580ea3..796bcbc768c 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/get-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/get-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/get-subscriber.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/get-subscriber.md index 96ca08ad2bb..3930e54bcbe 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/get-subscriber.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/get-subscriber.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/get-topic.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/get-topic.md index 8075b0c891b..68fda14e940 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/get-topic.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/get-topic.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-message-logs.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-message-logs.md index e83f316d15b..01b941b652b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-message-logs.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-message-logs.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-messages.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-messages.md index d09b3e58670..4c0ee7a3072 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-messages.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-messages.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-provider-logs.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-provider-logs.md index 8e267daf6f8..625fedb2b93 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-provider-logs.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-providers.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-providers.md index b9273f1ecaf..4d3a63b93e8 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-providers.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-providers.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-subscriber-logs.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-subscriber-logs.md index 17f8fefdc8c..61077f299d5 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-subscriber-logs.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-subscribers.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-subscribers.md index 05e27aaffab..85b91ca5fae 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-subscribers.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-subscribers.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-targets.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-targets.md index 0e509ab5f67..cafdf9bab1a 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-targets.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-targets.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-topic-logs.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-topic-logs.md index 9f63540824c..fe0a09487eb 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-topic-logs.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-topics.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-topics.md index ae16c26a971..5d0419a7a56 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/list-topics.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/list-topics.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-a-p-n-s-provider.md index 1ec27d08453..894383dcf13 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-a-p-n-s-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-apns-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-apns-provider.md index 8498b4f9749..23d806e0138 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-apns-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-email.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-email.md index 92117111b21..a6798eeb6c5 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-email.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-email.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-f-c-m-provider.md index 0de756c6d50..fd15afd0744 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-f-c-m-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-fcm-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-fcm-provider.md index fc084ff7901..3d343993aae 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-fcm-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-mailgun-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-mailgun-provider.md index 850fcf6acad..5bcc4d1ae47 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-mailgun-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-msg91provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-msg91provider.md index 7f84b5d2f1d..02f091f3d75 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-msg91provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-push.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-push.md index c2de910489a..700c3a99de5 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-push.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-push.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); @@ -23,5 +23,8 @@ const result = await messaging.updatePush( '<TAG>', // tag (optional) null, // badge (optional) false, // draft (optional) - '' // scheduledAt (optional) + '', // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + sdk.MessagePriority.Normal // priority (optional) ); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-s-m-s.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-s-m-s.md index 44251f74e23..dbb8ff9fc69 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-s-m-s.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-s-m-s.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-s-m-t-p-provider.md index 969bab0a1e5..f64134fa5bf 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-s-m-t-p-provider.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-sendgrid-provider.md index b9c94398e38..22a5fe59643 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-sendgrid-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-sms.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-sms.md index 172dcb6bf4d..03c266be58b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-sms.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-sms.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-smtp-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-smtp-provider.md index 3f8f20c1224..35b744347bb 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-smtp-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-telesign-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-telesign-provider.md index 2f331688c41..dd668f82c5c 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-telesign-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-textmagic-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-textmagic-provider.md index 788c0ddeb49..d90c95d845b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-textmagic-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-topic.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-topic.md index eeb34f6d584..08690a195e1 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-topic.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-topic.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-twilio-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-twilio-provider.md index ec187612074..c6d2b8c0777 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-twilio-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-vonage-provider.md b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-vonage-provider.md index 4b5dc9ac055..ba9f1029509 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.5.x/server-nodejs/examples/messaging/update-vonage-provider.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const messaging = new sdk.Messaging(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/storage/create-bucket.md b/docs/examples/1.5.x/server-nodejs/examples/storage/create-bucket.md index c961c7915cc..91a5126e901 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/storage/create-bucket.md +++ b/docs/examples/1.5.x/server-nodejs/examples/storage/create-bucket.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const storage = new sdk.Storage(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/storage/create-file.md b/docs/examples/1.5.x/server-nodejs/examples/storage/create-file.md index 7440143e496..067307cc5d8 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/storage/create-file.md +++ b/docs/examples/1.5.x/server-nodejs/examples/storage/create-file.md @@ -3,7 +3,7 @@ const fs = require('fs'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new sdk.Storage(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/storage/delete-bucket.md b/docs/examples/1.5.x/server-nodejs/examples/storage/delete-bucket.md index f3db8caa061..606ffba7197 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/storage/delete-bucket.md +++ b/docs/examples/1.5.x/server-nodejs/examples/storage/delete-bucket.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const storage = new sdk.Storage(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/storage/delete-file.md b/docs/examples/1.5.x/server-nodejs/examples/storage/delete-file.md index c7dbe9ee620..c5b9df92960 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/storage/delete-file.md +++ b/docs/examples/1.5.x/server-nodejs/examples/storage/delete-file.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new sdk.Storage(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/storage/get-bucket.md b/docs/examples/1.5.x/server-nodejs/examples/storage/get-bucket.md index f9d0385381b..711753d4095 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/storage/get-bucket.md +++ b/docs/examples/1.5.x/server-nodejs/examples/storage/get-bucket.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const storage = new sdk.Storage(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/storage/get-file-download.md b/docs/examples/1.5.x/server-nodejs/examples/storage/get-file-download.md index e94ba951622..cbd4c1615c3 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/storage/get-file-download.md +++ b/docs/examples/1.5.x/server-nodejs/examples/storage/get-file-download.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new sdk.Storage(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/storage/get-file-preview.md b/docs/examples/1.5.x/server-nodejs/examples/storage/get-file-preview.md index 7ce73718b39..be7b974be83 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/storage/get-file-preview.md +++ b/docs/examples/1.5.x/server-nodejs/examples/storage/get-file-preview.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new sdk.Storage(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/storage/get-file-view.md b/docs/examples/1.5.x/server-nodejs/examples/storage/get-file-view.md index 1ddfa1cd2a5..f5722d06cd5 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/storage/get-file-view.md +++ b/docs/examples/1.5.x/server-nodejs/examples/storage/get-file-view.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new sdk.Storage(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/storage/get-file.md b/docs/examples/1.5.x/server-nodejs/examples/storage/get-file.md index 54d41b1ba4b..61b14e6bbac 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/storage/get-file.md +++ b/docs/examples/1.5.x/server-nodejs/examples/storage/get-file.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new sdk.Storage(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/storage/list-buckets.md b/docs/examples/1.5.x/server-nodejs/examples/storage/list-buckets.md index beaea21ed21..ce012c450e3 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/storage/list-buckets.md +++ b/docs/examples/1.5.x/server-nodejs/examples/storage/list-buckets.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const storage = new sdk.Storage(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/storage/list-files.md b/docs/examples/1.5.x/server-nodejs/examples/storage/list-files.md index 001c18630fb..a9dbaa8f80b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/storage/list-files.md +++ b/docs/examples/1.5.x/server-nodejs/examples/storage/list-files.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new sdk.Storage(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/storage/update-bucket.md b/docs/examples/1.5.x/server-nodejs/examples/storage/update-bucket.md index 483b4cc42d1..31e131675fa 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/storage/update-bucket.md +++ b/docs/examples/1.5.x/server-nodejs/examples/storage/update-bucket.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const storage = new sdk.Storage(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/storage/update-file.md b/docs/examples/1.5.x/server-nodejs/examples/storage/update-file.md index d508bbbf7ad..c60b2e4a8bf 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/storage/update-file.md +++ b/docs/examples/1.5.x/server-nodejs/examples/storage/update-file.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const storage = new sdk.Storage(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/teams/create-membership.md b/docs/examples/1.5.x/server-nodejs/examples/teams/create-membership.md index 642fb0ab482..46066241578 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/teams/create-membership.md +++ b/docs/examples/1.5.x/server-nodejs/examples/teams/create-membership.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new sdk.Teams(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/teams/create.md b/docs/examples/1.5.x/server-nodejs/examples/teams/create.md index dc30f1009c1..cecf4f60241 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/teams/create.md +++ b/docs/examples/1.5.x/server-nodejs/examples/teams/create.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new sdk.Teams(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/teams/delete-membership.md b/docs/examples/1.5.x/server-nodejs/examples/teams/delete-membership.md index 08dcf39a71f..933cd7ccf8c 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/teams/delete-membership.md +++ b/docs/examples/1.5.x/server-nodejs/examples/teams/delete-membership.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new sdk.Teams(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/teams/delete.md b/docs/examples/1.5.x/server-nodejs/examples/teams/delete.md index 6956f5f5453..50963b3e1df 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/teams/delete.md +++ b/docs/examples/1.5.x/server-nodejs/examples/teams/delete.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new sdk.Teams(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/teams/get-membership.md b/docs/examples/1.5.x/server-nodejs/examples/teams/get-membership.md index 1fbd9933180..b638adeb125 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/teams/get-membership.md +++ b/docs/examples/1.5.x/server-nodejs/examples/teams/get-membership.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new sdk.Teams(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/teams/get-prefs.md b/docs/examples/1.5.x/server-nodejs/examples/teams/get-prefs.md index aea783094c8..68f19a41173 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/teams/get-prefs.md +++ b/docs/examples/1.5.x/server-nodejs/examples/teams/get-prefs.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new sdk.Teams(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/teams/get.md b/docs/examples/1.5.x/server-nodejs/examples/teams/get.md index 2fbfb3ef087..38ee6e4c41b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/teams/get.md +++ b/docs/examples/1.5.x/server-nodejs/examples/teams/get.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new sdk.Teams(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/teams/list-memberships.md b/docs/examples/1.5.x/server-nodejs/examples/teams/list-memberships.md index 22ce29961d3..c66ec7d601a 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/teams/list-memberships.md +++ b/docs/examples/1.5.x/server-nodejs/examples/teams/list-memberships.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new sdk.Teams(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/teams/list.md b/docs/examples/1.5.x/server-nodejs/examples/teams/list.md index 51f200f26c8..d50527bf127 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/teams/list.md +++ b/docs/examples/1.5.x/server-nodejs/examples/teams/list.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new sdk.Teams(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/teams/update-membership-status.md b/docs/examples/1.5.x/server-nodejs/examples/teams/update-membership-status.md index c97f0fd9640..80660e94f9b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/teams/update-membership-status.md +++ b/docs/examples/1.5.x/server-nodejs/examples/teams/update-membership-status.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new sdk.Teams(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/teams/update-membership.md b/docs/examples/1.5.x/server-nodejs/examples/teams/update-membership.md index bb8edccad34..068cc55bca2 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/teams/update-membership.md +++ b/docs/examples/1.5.x/server-nodejs/examples/teams/update-membership.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new sdk.Teams(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/teams/update-name.md b/docs/examples/1.5.x/server-nodejs/examples/teams/update-name.md index ed349bb4b5b..217412020fe 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/teams/update-name.md +++ b/docs/examples/1.5.x/server-nodejs/examples/teams/update-name.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new sdk.Teams(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/teams/update-prefs.md b/docs/examples/1.5.x/server-nodejs/examples/teams/update-prefs.md index 3f396b6c149..9d6a6f5f87d 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/teams/update-prefs.md +++ b/docs/examples/1.5.x/server-nodejs/examples/teams/update-prefs.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with const teams = new sdk.Teams(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/create-argon2user.md b/docs/examples/1.5.x/server-nodejs/examples/users/create-argon2user.md index 942f3d09049..e96a797d052 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/create-argon2user.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/create-argon2user.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/create-bcrypt-user.md b/docs/examples/1.5.x/server-nodejs/examples/users/create-bcrypt-user.md index 2ab4974a51f..be14d217a03 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/create-bcrypt-user.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/create-j-w-t.md b/docs/examples/1.5.x/server-nodejs/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..e615b1ee5b0 --- /dev/null +++ b/docs/examples/1.5.x/server-nodejs/examples/users/create-j-w-t.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const users = new sdk.Users(client); + +const result = await users.createJWT( + '<USER_ID>', // userId + '<SESSION_ID>', // sessionId (optional) + 0 // duration (optional) +); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/create-m-d5user.md b/docs/examples/1.5.x/server-nodejs/examples/users/create-m-d5user.md index e862f56d3e0..77a7d70885d 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/create-m-d5user.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/create-m-d5user.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-nodejs/examples/users/create-mfa-recovery-codes.md index ad7d0d49df5..42945293c12 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/create-mfa-recovery-codes.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/create-p-h-pass-user.md b/docs/examples/1.5.x/server-nodejs/examples/users/create-p-h-pass-user.md index 20f96764081..a5784d7ded5 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/create-p-h-pass-user.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/create-s-h-a-user.md b/docs/examples/1.5.x/server-nodejs/examples/users/create-s-h-a-user.md index 3e2707f7d62..a72e373040b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/create-s-h-a-user.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/create-scrypt-modified-user.md b/docs/examples/1.5.x/server-nodejs/examples/users/create-scrypt-modified-user.md index b012154acc2..b27fe318aaa 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/create-scrypt-modified-user.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/create-scrypt-user.md b/docs/examples/1.5.x/server-nodejs/examples/users/create-scrypt-user.md index 0920b591091..60b61be49f6 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/create-scrypt-user.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/create-scrypt-user.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/create-session.md b/docs/examples/1.5.x/server-nodejs/examples/users/create-session.md index 0a79f5c09a4..2672905ef78 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/create-session.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/create-session.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/create-target.md b/docs/examples/1.5.x/server-nodejs/examples/users/create-target.md index 79e889c261c..099b00379bc 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/create-target.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/create-target.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/create-token.md b/docs/examples/1.5.x/server-nodejs/examples/users/create-token.md index 971ad967ae1..a399313104f 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/create-token.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/create-token.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/create.md b/docs/examples/1.5.x/server-nodejs/examples/users/create.md index 95e6c4c5bc2..e8fb4cd9270 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/create.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/create.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/delete-authenticator.md b/docs/examples/1.5.x/server-nodejs/examples/users/delete-authenticator.md index 384a20b63d3..4ce6ab6f4db 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/delete-authenticator.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/delete-authenticator.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/delete-identity.md b/docs/examples/1.5.x/server-nodejs/examples/users/delete-identity.md index 611039b6d5c..46f5203da1f 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/delete-identity.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/delete-identity.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-nodejs/examples/users/delete-mfa-authenticator.md index 5be1ed403f0..1f00e963ea1 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/delete-mfa-authenticator.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/delete-session.md b/docs/examples/1.5.x/server-nodejs/examples/users/delete-session.md index ec24ea9867f..168f4948bce 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/delete-session.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/delete-session.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/delete-sessions.md b/docs/examples/1.5.x/server-nodejs/examples/users/delete-sessions.md index 4ad7e1689c1..4c320fc4a7c 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/delete-sessions.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/delete-sessions.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/delete-target.md b/docs/examples/1.5.x/server-nodejs/examples/users/delete-target.md index d857d7f3ab7..6505a8bb49c 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/delete-target.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/delete-target.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/delete.md b/docs/examples/1.5.x/server-nodejs/examples/users/delete.md index e30be84ddac..4d6c9963e75 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/delete.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/delete.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-nodejs/examples/users/get-mfa-recovery-codes.md index ef67a0aad26..3e97065fa1d 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/get-mfa-recovery-codes.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/get-prefs.md b/docs/examples/1.5.x/server-nodejs/examples/users/get-prefs.md index 04ed0049293..fda205b04d0 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/get-prefs.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/get-prefs.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/get-target.md b/docs/examples/1.5.x/server-nodejs/examples/users/get-target.md index ef44e9b2942..1d93a1b1623 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/get-target.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/get-target.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/get.md b/docs/examples/1.5.x/server-nodejs/examples/users/get.md index 3d3eb15976d..9d361573253 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/get.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/get.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/list-factors.md b/docs/examples/1.5.x/server-nodejs/examples/users/list-factors.md index 87b1523b70f..70ad6bf14cc 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/list-factors.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/list-factors.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/list-identities.md b/docs/examples/1.5.x/server-nodejs/examples/users/list-identities.md index 1ead975092d..0ba1345397e 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/list-identities.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/list-identities.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/list-logs.md b/docs/examples/1.5.x/server-nodejs/examples/users/list-logs.md index ad90cfed509..5636e021b93 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/list-logs.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/list-logs.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/list-memberships.md b/docs/examples/1.5.x/server-nodejs/examples/users/list-memberships.md index 51631be604b..bc4ce5e8b75 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/list-memberships.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/list-memberships.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/list-mfa-factors.md b/docs/examples/1.5.x/server-nodejs/examples/users/list-mfa-factors.md index 601410b2860..6396a694e50 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/list-mfa-factors.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/list-providers.md b/docs/examples/1.5.x/server-nodejs/examples/users/list-providers.md index 4efaad18daa..95deee8d800 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/list-providers.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/list-providers.md @@ -6,7 +6,7 @@ const client = new sdk.Client(); const users = new sdk.Users(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/list-sessions.md b/docs/examples/1.5.x/server-nodejs/examples/users/list-sessions.md index b07fb87e4f0..de4aa3d424e 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/list-sessions.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/list-sessions.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/list-targets.md b/docs/examples/1.5.x/server-nodejs/examples/users/list-targets.md index 547f496e3e1..2d2a6d26c4e 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/list-targets.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/list-targets.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/list.md b/docs/examples/1.5.x/server-nodejs/examples/users/list.md index a1ba8bda8ad..664d32c625e 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/list.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/list.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/update-email-verification.md b/docs/examples/1.5.x/server-nodejs/examples/users/update-email-verification.md index f8c9988728f..560ca3e870b 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/update-email-verification.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/update-email-verification.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/update-email.md b/docs/examples/1.5.x/server-nodejs/examples/users/update-email.md index ec27032ed8e..eef17615ee2 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/update-email.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/update-email.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/update-labels.md b/docs/examples/1.5.x/server-nodejs/examples/users/update-labels.md index 9bfb286c979..ec27094275a 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/update-labels.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/update-labels.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-nodejs/examples/users/update-mfa-recovery-codes.md index bc64df375a9..56ef9b20222 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/update-mfa-recovery-codes.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/update-mfa.md b/docs/examples/1.5.x/server-nodejs/examples/users/update-mfa.md index 2726e5825cd..7c7944429a0 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/update-mfa.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/update-mfa.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/update-name.md b/docs/examples/1.5.x/server-nodejs/examples/users/update-name.md index 388c82d331f..5478a78bb06 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/update-name.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/update-name.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/update-password.md b/docs/examples/1.5.x/server-nodejs/examples/users/update-password.md index 40fa2fb6bc5..856e3a8576a 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/update-password.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/update-password.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/update-phone-verification.md b/docs/examples/1.5.x/server-nodejs/examples/users/update-phone-verification.md index fdfa81645a1..654e7833d00 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/update-phone-verification.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/update-phone-verification.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/update-phone.md b/docs/examples/1.5.x/server-nodejs/examples/users/update-phone.md index c1d3276a8a7..8cc4af0513e 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/update-phone.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/update-phone.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/update-prefs.md b/docs/examples/1.5.x/server-nodejs/examples/users/update-prefs.md index 4114565364c..f80dae11786 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/update-prefs.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/update-prefs.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/update-status.md b/docs/examples/1.5.x/server-nodejs/examples/users/update-status.md index 0b56965b1e5..04a18a26365 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/update-status.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/update-status.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-nodejs/examples/users/update-target.md b/docs/examples/1.5.x/server-nodejs/examples/users/update-target.md index c7d995d8766..3322867dba9 100644 --- a/docs/examples/1.5.x/server-nodejs/examples/users/update-target.md +++ b/docs/examples/1.5.x/server-nodejs/examples/users/update-target.md @@ -2,8 +2,8 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key const users = new sdk.Users(client); diff --git a/docs/examples/1.5.x/server-php/examples/account/add-authenticator.md b/docs/examples/1.5.x/server-php/examples/account/add-authenticator.md index 09f1fd995c0..78cf5f81b73 100644 --- a/docs/examples/1.5.x/server-php/examples/account/add-authenticator.md +++ b/docs/examples/1.5.x/server-php/examples/account/add-authenticator.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; use Appwrite\Enums\AuthenticatorType; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-php/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/server-php/examples/account/create-anonymous-session.md index 950bb4a5e42..4cf953855c7 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-anonymous-session.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2'); // Your project ID + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create-challenge.md b/docs/examples/1.5.x/server-php/examples/account/create-challenge.md index b81a7b47780..336beb4f0f8 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-challenge.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-challenge.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; use Appwrite\Enums\AuthenticationFactor; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create-email-password-session.md b/docs/examples/1.5.x/server-php/examples/account/create-email-password-session.md index 3fd96f3d583..b0e4d75c900 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-email-password-session.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-email-password-session.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2'); // Your project ID + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create-email-token.md b/docs/examples/1.5.x/server-php/examples/account/create-email-token.md index 1477366e0e5..afa9bc90940 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-email-token.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-email-token.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2'); // Your project ID + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create-j-w-t.md b/docs/examples/1.5.x/server-php/examples/account/create-j-w-t.md index d59316f4ea0..2658a66f2e6 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-j-w-t.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-j-w-t.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2'); // Your project ID + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/server-php/examples/account/create-magic-u-r-l-token.md index e744157d870..1ac0087c57e 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-magic-u-r-l-token.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2'); // Your project ID + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/server-php/examples/account/create-mfa-authenticator.md index 1b3d176ec6b..7833852043b 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-mfa-authenticator.md @@ -6,7 +6,7 @@ use Appwrite\Enums\AuthenticatorType; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/server-php/examples/account/create-mfa-challenge.md index 5cef5108896..a58d674d301 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-mfa-challenge.md @@ -6,7 +6,7 @@ use Appwrite\Enums\AuthenticationFactor; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2'); // Your project ID + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-php/examples/account/create-mfa-recovery-codes.md index 8adf24711dc..d82a97ab0a7 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-mfa-recovery-codes.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create-o-auth2session.md b/docs/examples/1.5.x/server-php/examples/account/create-o-auth2session.md index 105fbd2bce8..ee60581366a 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-o-auth2session.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; use Appwrite\Enums\OAuthProvider; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/server-php/examples/account/create-o-auth2token.md index dc97ef69923..21b9ef1313d 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-o-auth2token.md @@ -6,7 +6,7 @@ use Appwrite\Enums\OAuthProvider; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2'); // Your project ID + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create-phone-token.md b/docs/examples/1.5.x/server-php/examples/account/create-phone-token.md index 43ff008941e..72462ff1752 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-phone-token.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-phone-token.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2'); // Your project ID + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create-phone-verification.md b/docs/examples/1.5.x/server-php/examples/account/create-phone-verification.md index c4b52f3a35c..cb81da53af3 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-phone-verification.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-phone-verification.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create-recovery.md b/docs/examples/1.5.x/server-php/examples/account/create-recovery.md index b35c58f90eb..a924379cd49 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-recovery.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-recovery.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create-session.md b/docs/examples/1.5.x/server-php/examples/account/create-session.md index 71fa75ceabc..aa089ae586a 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-session.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-session.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2'); // Your project ID + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create-verification.md b/docs/examples/1.5.x/server-php/examples/account/create-verification.md index b1ca321cf28..99929f1a2a7 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create-verification.md +++ b/docs/examples/1.5.x/server-php/examples/account/create-verification.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create.md b/docs/examples/1.5.x/server-php/examples/account/create.md index c07c2d777c9..2b25cde4575 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create.md +++ b/docs/examples/1.5.x/server-php/examples/account/create.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2'); // Your project ID + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/create2f-a-challenge.md b/docs/examples/1.5.x/server-php/examples/account/create2f-a-challenge.md index 3c1b48f555a..67447335413 100644 --- a/docs/examples/1.5.x/server-php/examples/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/server-php/examples/account/create2f-a-challenge.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; use Appwrite\Enums\AuthenticationFactor; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/delete-authenticator.md b/docs/examples/1.5.x/server-php/examples/account/delete-authenticator.md index 3582a6b9548..5b721788995 100644 --- a/docs/examples/1.5.x/server-php/examples/account/delete-authenticator.md +++ b/docs/examples/1.5.x/server-php/examples/account/delete-authenticator.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; use Appwrite\Enums\AuthenticatorType; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-php/examples/account/delete-identity.md b/docs/examples/1.5.x/server-php/examples/account/delete-identity.md index 06a6a389b52..31e5f429468 100644 --- a/docs/examples/1.5.x/server-php/examples/account/delete-identity.md +++ b/docs/examples/1.5.x/server-php/examples/account/delete-identity.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-php/examples/account/delete-mfa-authenticator.md index 78a304f7b2f..5367409d4a6 100644 --- a/docs/examples/1.5.x/server-php/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-php/examples/account/delete-mfa-authenticator.md @@ -6,12 +6,11 @@ use Appwrite\Enums\AuthenticatorType; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); $result = $account->deleteMfaAuthenticator( - type: AuthenticatorType::TOTP(), - otp: '<OTP>' + type: AuthenticatorType::TOTP() ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/account/delete-session.md b/docs/examples/1.5.x/server-php/examples/account/delete-session.md index 9b06705854a..d44aca87fa7 100644 --- a/docs/examples/1.5.x/server-php/examples/account/delete-session.md +++ b/docs/examples/1.5.x/server-php/examples/account/delete-session.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/delete-sessions.md b/docs/examples/1.5.x/server-php/examples/account/delete-sessions.md index 7f927fa1f87..bf9e5c1fdcf 100644 --- a/docs/examples/1.5.x/server-php/examples/account/delete-sessions.md +++ b/docs/examples/1.5.x/server-php/examples/account/delete-sessions.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-php/examples/account/get-mfa-recovery-codes.md index 795559b1db8..43c3f06b375 100644 --- a/docs/examples/1.5.x/server-php/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-php/examples/account/get-mfa-recovery-codes.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/get-prefs.md b/docs/examples/1.5.x/server-php/examples/account/get-prefs.md index 57990c174d5..808699ab445 100644 --- a/docs/examples/1.5.x/server-php/examples/account/get-prefs.md +++ b/docs/examples/1.5.x/server-php/examples/account/get-prefs.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/get-session.md b/docs/examples/1.5.x/server-php/examples/account/get-session.md index 52360026618..dfd1c23339e 100644 --- a/docs/examples/1.5.x/server-php/examples/account/get-session.md +++ b/docs/examples/1.5.x/server-php/examples/account/get-session.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/get.md b/docs/examples/1.5.x/server-php/examples/account/get.md index 4b6d8e2b50a..427632d2d0a 100644 --- a/docs/examples/1.5.x/server-php/examples/account/get.md +++ b/docs/examples/1.5.x/server-php/examples/account/get.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/list-factors.md b/docs/examples/1.5.x/server-php/examples/account/list-factors.md index 09a29d4e66b..04fcca08aaa 100644 --- a/docs/examples/1.5.x/server-php/examples/account/list-factors.md +++ b/docs/examples/1.5.x/server-php/examples/account/list-factors.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-php/examples/account/list-identities.md b/docs/examples/1.5.x/server-php/examples/account/list-identities.md index da36bbdefe9..d9289212770 100644 --- a/docs/examples/1.5.x/server-php/examples/account/list-identities.md +++ b/docs/examples/1.5.x/server-php/examples/account/list-identities.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/list-logs.md b/docs/examples/1.5.x/server-php/examples/account/list-logs.md index a83c39a691f..72199a2d957 100644 --- a/docs/examples/1.5.x/server-php/examples/account/list-logs.md +++ b/docs/examples/1.5.x/server-php/examples/account/list-logs.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/server-php/examples/account/list-mfa-factors.md index 448f18d296c..d670b97c8ab 100644 --- a/docs/examples/1.5.x/server-php/examples/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-php/examples/account/list-mfa-factors.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/list-sessions.md b/docs/examples/1.5.x/server-php/examples/account/list-sessions.md index bae339f965f..bbc1b788abd 100644 --- a/docs/examples/1.5.x/server-php/examples/account/list-sessions.md +++ b/docs/examples/1.5.x/server-php/examples/account/list-sessions.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-challenge.md b/docs/examples/1.5.x/server-php/examples/account/update-challenge.md index b0e85bd70b3..de3c0ed533d 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-challenge.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-challenge.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-php/examples/account/update-email.md b/docs/examples/1.5.x/server-php/examples/account/update-email.md index efe3d996bc2..c5fd462047b 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-email.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-email.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-m-f-a.md b/docs/examples/1.5.x/server-php/examples/account/update-m-f-a.md index 5247ec43b73..9489b96a150 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-m-f-a.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/server-php/examples/account/update-magic-u-r-l-session.md index 1fa3422e354..e80adf9a865 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-magic-u-r-l-session.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2'); // Your project ID + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/server-php/examples/account/update-mfa-authenticator.md index e97fff565bb..d3c36a3a9ff 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-mfa-authenticator.md @@ -6,7 +6,7 @@ use Appwrite\Enums\AuthenticatorType; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/server-php/examples/account/update-mfa-challenge.md index d0f278c1601..dcc5dcdf514 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-mfa-challenge.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-php/examples/account/update-mfa-recovery-codes.md index 7b6809f0487..cf6204a3003 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-mfa-recovery-codes.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-name.md b/docs/examples/1.5.x/server-php/examples/account/update-name.md index ea6353f5926..a55a0767916 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-name.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-name.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-password.md b/docs/examples/1.5.x/server-php/examples/account/update-password.md index dc873db4338..9ef275701c6 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-password.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-password.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-phone-session.md b/docs/examples/1.5.x/server-php/examples/account/update-phone-session.md index 9681b354749..973d29d04c2 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-phone-session.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-phone-session.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2'); // Your project ID + ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-phone-verification.md b/docs/examples/1.5.x/server-php/examples/account/update-phone-verification.md index 9c3d3b76fac..a1164474c08 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-phone-verification.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-phone-verification.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-phone.md b/docs/examples/1.5.x/server-php/examples/account/update-phone.md index cbaf93a73ba..be489f7d640 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-phone.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-phone.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-prefs.md b/docs/examples/1.5.x/server-php/examples/account/update-prefs.md index f0574710ec5..0d47ee89573 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-prefs.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-recovery.md b/docs/examples/1.5.x/server-php/examples/account/update-recovery.md index 5b7f88bb7e4..523a61779e8 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-recovery.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-recovery.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-session.md b/docs/examples/1.5.x/server-php/examples/account/update-session.md index d0220daed39..3eebb12c3c9 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-session.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-session.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-status.md b/docs/examples/1.5.x/server-php/examples/account/update-status.md index e5d51ec9d79..d343c95f2a0 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-status.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-status.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/update-verification.md b/docs/examples/1.5.x/server-php/examples/account/update-verification.md index b7cd6f95281..a03e87fd96e 100644 --- a/docs/examples/1.5.x/server-php/examples/account/update-verification.md +++ b/docs/examples/1.5.x/server-php/examples/account/update-verification.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $account = new Account($client); diff --git a/docs/examples/1.5.x/server-php/examples/account/verify-authenticator.md b/docs/examples/1.5.x/server-php/examples/account/verify-authenticator.md index 8131bf3f840..49b48af592f 100644 --- a/docs/examples/1.5.x/server-php/examples/account/verify-authenticator.md +++ b/docs/examples/1.5.x/server-php/examples/account/verify-authenticator.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; use Appwrite\Enums\AuthenticatorType; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-php/examples/avatars/get-browser.md b/docs/examples/1.5.x/server-php/examples/avatars/get-browser.md index 02bc411a104..d7e7e76e857 100644 --- a/docs/examples/1.5.x/server-php/examples/avatars/get-browser.md +++ b/docs/examples/1.5.x/server-php/examples/avatars/get-browser.md @@ -6,7 +6,7 @@ use Appwrite\Enums\Browser; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $avatars = new Avatars($client); diff --git a/docs/examples/1.5.x/server-php/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/server-php/examples/avatars/get-credit-card.md index be934277094..55e2516f31d 100644 --- a/docs/examples/1.5.x/server-php/examples/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/server-php/examples/avatars/get-credit-card.md @@ -6,7 +6,7 @@ use Appwrite\Enums\CreditCard; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $avatars = new Avatars($client); diff --git a/docs/examples/1.5.x/server-php/examples/avatars/get-favicon.md b/docs/examples/1.5.x/server-php/examples/avatars/get-favicon.md index ff48929407d..5f5c5d7d5bf 100644 --- a/docs/examples/1.5.x/server-php/examples/avatars/get-favicon.md +++ b/docs/examples/1.5.x/server-php/examples/avatars/get-favicon.md @@ -5,7 +5,7 @@ use Appwrite\Services\Avatars; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $avatars = new Avatars($client); diff --git a/docs/examples/1.5.x/server-php/examples/avatars/get-flag.md b/docs/examples/1.5.x/server-php/examples/avatars/get-flag.md index b2cd79abc9f..2e5e4b648c8 100644 --- a/docs/examples/1.5.x/server-php/examples/avatars/get-flag.md +++ b/docs/examples/1.5.x/server-php/examples/avatars/get-flag.md @@ -6,7 +6,7 @@ use Appwrite\Enums\Flag; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $avatars = new Avatars($client); diff --git a/docs/examples/1.5.x/server-php/examples/avatars/get-image.md b/docs/examples/1.5.x/server-php/examples/avatars/get-image.md index f069e7f659d..0ab77fea0d7 100644 --- a/docs/examples/1.5.x/server-php/examples/avatars/get-image.md +++ b/docs/examples/1.5.x/server-php/examples/avatars/get-image.md @@ -5,7 +5,7 @@ use Appwrite\Services\Avatars; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $avatars = new Avatars($client); diff --git a/docs/examples/1.5.x/server-php/examples/avatars/get-initials.md b/docs/examples/1.5.x/server-php/examples/avatars/get-initials.md index 448e1a6dceb..2bd0bbeb398 100644 --- a/docs/examples/1.5.x/server-php/examples/avatars/get-initials.md +++ b/docs/examples/1.5.x/server-php/examples/avatars/get-initials.md @@ -5,7 +5,7 @@ use Appwrite\Services\Avatars; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $avatars = new Avatars($client); diff --git a/docs/examples/1.5.x/server-php/examples/avatars/get-q-r.md b/docs/examples/1.5.x/server-php/examples/avatars/get-q-r.md index 8d19ddd752d..05f8128c911 100644 --- a/docs/examples/1.5.x/server-php/examples/avatars/get-q-r.md +++ b/docs/examples/1.5.x/server-php/examples/avatars/get-q-r.md @@ -5,7 +5,7 @@ use Appwrite\Services\Avatars; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $avatars = new Avatars($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/create-boolean-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/create-boolean-attribute.md index 9344cff885a..823dd033452 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/create-boolean-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/create-collection.md b/docs/examples/1.5.x/server-php/examples/databases/create-collection.md index f5c5cb39f92..ae886b9f7d8 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/create-collection.md +++ b/docs/examples/1.5.x/server-php/examples/databases/create-collection.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/create-datetime-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/create-datetime-attribute.md index 3169914f206..fb3ce709cea 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/create-datetime-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/create-document.md b/docs/examples/1.5.x/server-php/examples/databases/create-document.md index 83ffc07566c..f68ea8104dc 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/create-document.md +++ b/docs/examples/1.5.x/server-php/examples/databases/create-document.md @@ -5,7 +5,7 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/create-email-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/create-email-attribute.md index c88a039521b..b2f7770f4e0 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/create-email-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/create-email-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/create-enum-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/create-enum-attribute.md index e12bb369593..de2553ce82f 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/create-enum-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/create-float-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/create-float-attribute.md index c685c6a654f..ad534aa4bef 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/create-float-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/create-float-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/create-index.md b/docs/examples/1.5.x/server-php/examples/databases/create-index.md index b6582349fbb..7f95d3f8185 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/create-index.md +++ b/docs/examples/1.5.x/server-php/examples/databases/create-index.md @@ -6,8 +6,8 @@ use Appwrite\Enums\IndexType; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/create-integer-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/create-integer-attribute.md index ef63e05fc55..fb481188e76 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/create-integer-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/create-ip-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/create-ip-attribute.md index a3d9de9aac8..d40e23729e8 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/create-ip-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/create-relationship-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/create-relationship-attribute.md index 1d262cf8ed0..4b353f1897f 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/create-relationship-attribute.md @@ -6,8 +6,8 @@ use Appwrite\Enums\RelationshipType; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/create-string-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/create-string-attribute.md index 2a883973944..a04dfba7e01 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/create-string-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/create-string-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/create-url-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/create-url-attribute.md index 299ff706449..bfa8af0058c 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/create-url-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/create-url-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/create.md b/docs/examples/1.5.x/server-php/examples/databases/create.md index 10f46ff3ca2..3b9881a60ac 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/create.md +++ b/docs/examples/1.5.x/server-php/examples/databases/create.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/delete-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/delete-attribute.md index 097e7f0aab1..2db4c762113 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/delete-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/delete-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/delete-collection.md b/docs/examples/1.5.x/server-php/examples/databases/delete-collection.md index 5c3606bf281..4af5130647f 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/delete-collection.md +++ b/docs/examples/1.5.x/server-php/examples/databases/delete-collection.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/delete-document.md b/docs/examples/1.5.x/server-php/examples/databases/delete-document.md index 892dc03ca06..05a3abbc68b 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/delete-document.md +++ b/docs/examples/1.5.x/server-php/examples/databases/delete-document.md @@ -5,7 +5,7 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/delete-index.md b/docs/examples/1.5.x/server-php/examples/databases/delete-index.md index f0ba6e76cc9..67cda1205f7 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/delete-index.md +++ b/docs/examples/1.5.x/server-php/examples/databases/delete-index.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/delete.md b/docs/examples/1.5.x/server-php/examples/databases/delete.md index 999fe3a2e34..2480a7c825b 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/delete.md +++ b/docs/examples/1.5.x/server-php/examples/databases/delete.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/get-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/get-attribute.md index 87f684e7091..a9dad4bc407 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/get-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/get-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/get-collection.md b/docs/examples/1.5.x/server-php/examples/databases/get-collection.md index cf9fa777b10..deeddec4ad7 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/get-collection.md +++ b/docs/examples/1.5.x/server-php/examples/databases/get-collection.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/get-document.md b/docs/examples/1.5.x/server-php/examples/databases/get-document.md index 25bc79a79bc..851e2d57479 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/get-document.md +++ b/docs/examples/1.5.x/server-php/examples/databases/get-document.md @@ -5,7 +5,7 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/get-index.md b/docs/examples/1.5.x/server-php/examples/databases/get-index.md index be8fab39daa..a6e60f599dd 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/get-index.md +++ b/docs/examples/1.5.x/server-php/examples/databases/get-index.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/get.md b/docs/examples/1.5.x/server-php/examples/databases/get.md index d30acdc658c..7234b2369f4 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/get.md +++ b/docs/examples/1.5.x/server-php/examples/databases/get.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/list-attributes.md b/docs/examples/1.5.x/server-php/examples/databases/list-attributes.md index 2e087d026c6..fb53eae371e 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/list-attributes.md +++ b/docs/examples/1.5.x/server-php/examples/databases/list-attributes.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/list-collections.md b/docs/examples/1.5.x/server-php/examples/databases/list-collections.md index 0f43e4d05f3..941e4a6e577 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/list-collections.md +++ b/docs/examples/1.5.x/server-php/examples/databases/list-collections.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/list-documents.md b/docs/examples/1.5.x/server-php/examples/databases/list-documents.md index bead79b364a..6ccddf60932 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/list-documents.md +++ b/docs/examples/1.5.x/server-php/examples/databases/list-documents.md @@ -5,7 +5,7 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/list-indexes.md b/docs/examples/1.5.x/server-php/examples/databases/list-indexes.md index 2ba17a45982..b3935fc10ad 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/list-indexes.md +++ b/docs/examples/1.5.x/server-php/examples/databases/list-indexes.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/list.md b/docs/examples/1.5.x/server-php/examples/databases/list.md index d2bfe71d48d..d5d078f8ece 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/list.md +++ b/docs/examples/1.5.x/server-php/examples/databases/list.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/update-boolean-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/update-boolean-attribute.md index a070a833271..133fbb8b47f 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/update-boolean-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); @@ -15,5 +15,6 @@ $result = $databases->updateBooleanAttribute( collectionId: '<COLLECTION_ID>', key: '', required: false, - default: false + default: false, + newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/databases/update-collection.md b/docs/examples/1.5.x/server-php/examples/databases/update-collection.md index c9232170c4e..790bb2b9c80 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/update-collection.md +++ b/docs/examples/1.5.x/server-php/examples/databases/update-collection.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/update-datetime-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/update-datetime-attribute.md index e4e89ad9fc0..4773e54537d 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/update-datetime-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); @@ -15,5 +15,6 @@ $result = $databases->updateDatetimeAttribute( collectionId: '<COLLECTION_ID>', key: '', required: false, - default: '' + default: '', + newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/databases/update-document.md b/docs/examples/1.5.x/server-php/examples/databases/update-document.md index 837653ff9ac..a1b70187111 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/update-document.md +++ b/docs/examples/1.5.x/server-php/examples/databases/update-document.md @@ -5,7 +5,7 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/databases/update-email-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/update-email-attribute.md index 518a255b37b..9c1bdb48bdf 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/update-email-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/update-email-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); @@ -15,5 +15,6 @@ $result = $databases->updateEmailAttribute( collectionId: '<COLLECTION_ID>', key: '', required: false, - default: 'email@example.com' + default: 'email@example.com', + newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/databases/update-enum-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/update-enum-attribute.md index 55368c61c18..88229bc999d 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/update-enum-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); @@ -16,5 +16,6 @@ $result = $databases->updateEnumAttribute( key: '', elements: [], required: false, - default: '<DEFAULT>' + default: '<DEFAULT>', + newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/databases/update-float-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/update-float-attribute.md index a7ec2387185..39ad3b1ce27 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/update-float-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/update-float-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); @@ -15,7 +15,8 @@ $result = $databases->updateFloatAttribute( collectionId: '<COLLECTION_ID>', key: '', required: false, - min: null, - max: null, - default: null + default: null, + min: null, // optional + max: null, // optional + newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/databases/update-integer-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/update-integer-attribute.md index 4567a3cd33f..af4957aa05c 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/update-integer-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); @@ -15,7 +15,8 @@ $result = $databases->updateIntegerAttribute( collectionId: '<COLLECTION_ID>', key: '', required: false, - min: null, - max: null, - default: null + default: null, + min: null, // optional + max: null, // optional + newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/databases/update-ip-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/update-ip-attribute.md index 8e7c87b9a82..e88e75c2b61 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/update-ip-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); @@ -15,5 +15,6 @@ $result = $databases->updateIpAttribute( collectionId: '<COLLECTION_ID>', key: '', required: false, - default: '' + default: '', + newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/databases/update-relationship-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/update-relationship-attribute.md index 756de782634..0afaea27b55 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/update-relationship-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); @@ -14,5 +14,6 @@ $result = $databases->updateRelationshipAttribute( databaseId: '<DATABASE_ID>', collectionId: '<COLLECTION_ID>', key: '', - onDelete: RelationMutate::CASCADE() // optional + onDelete: RelationMutate::CASCADE(), // optional + newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/databases/update-string-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/update-string-attribute.md index 819aee45e6e..721ba324de2 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/update-string-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/update-string-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); @@ -15,5 +15,7 @@ $result = $databases->updateStringAttribute( collectionId: '<COLLECTION_ID>', key: '', required: false, - default: '<DEFAULT>' + default: '<DEFAULT>', + size: 1, // optional + newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/databases/update-url-attribute.md b/docs/examples/1.5.x/server-php/examples/databases/update-url-attribute.md index d7f9c8981b3..1825e558455 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/update-url-attribute.md +++ b/docs/examples/1.5.x/server-php/examples/databases/update-url-attribute.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); @@ -15,5 +15,6 @@ $result = $databases->updateUrlAttribute( collectionId: '<COLLECTION_ID>', key: '', required: false, - default: 'https://example.com' + default: 'https://example.com', + newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/databases/update.md b/docs/examples/1.5.x/server-php/examples/databases/update.md index 484875a7a6b..d9bf5e97382 100644 --- a/docs/examples/1.5.x/server-php/examples/databases/update.md +++ b/docs/examples/1.5.x/server-php/examples/databases/update.md @@ -5,8 +5,8 @@ use Appwrite\Services\Databases; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $databases = new Databases($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/create-build.md b/docs/examples/1.5.x/server-php/examples/functions/create-build.md index 6d60cb83242..429653c3c57 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/create-build.md +++ b/docs/examples/1.5.x/server-php/examples/functions/create-build.md @@ -5,13 +5,13 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); $result = $functions->createBuild( functionId: '<FUNCTION_ID>', deploymentId: '<DEPLOYMENT_ID>', - buildId: '<BUILD_ID>' + buildId: '<BUILD_ID>' // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/functions/create-deployment.md b/docs/examples/1.5.x/server-php/examples/functions/create-deployment.md index 370ca1d048f..90f4c7ed18e 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/create-deployment.md +++ b/docs/examples/1.5.x/server-php/examples/functions/create-deployment.md @@ -6,8 +6,8 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/create-execution.md b/docs/examples/1.5.x/server-php/examples/functions/create-execution.md index 59493d4adfb..4c62b9afc0a 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/server-php/examples/functions/create-execution.md @@ -5,7 +5,7 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $functions = new Functions($client); @@ -16,5 +16,6 @@ $result = $functions->createExecution( async: false, // optional path: '<PATH>', // optional method: ExecutionMethod::GET(), // optional - headers: [] // optional + headers: [], // optional + scheduledAt: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/functions/create-variable.md b/docs/examples/1.5.x/server-php/examples/functions/create-variable.md index f1d35c30921..fc1ee4afeb1 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/create-variable.md +++ b/docs/examples/1.5.x/server-php/examples/functions/create-variable.md @@ -5,8 +5,8 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/create.md b/docs/examples/1.5.x/server-php/examples/functions/create.md index 0c282bae100..6b16c59cbdd 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/create.md +++ b/docs/examples/1.5.x/server-php/examples/functions/create.md @@ -6,8 +6,8 @@ use Appwrite\Enums\; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); @@ -23,6 +23,7 @@ $result = $functions->create( logging: false, // optional entrypoint: '<ENTRYPOINT>', // optional commands: '<COMMANDS>', // optional + scopes: [], // optional installationId: '<INSTALLATION_ID>', // optional providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // optional providerBranch: '<PROVIDER_BRANCH>', // optional @@ -31,5 +32,6 @@ $result = $functions->create( templateRepository: '<TEMPLATE_REPOSITORY>', // optional templateOwner: '<TEMPLATE_OWNER>', // optional templateRootDirectory: '<TEMPLATE_ROOT_DIRECTORY>', // optional - templateBranch: '<TEMPLATE_BRANCH>' // optional + templateVersion: '<TEMPLATE_VERSION>', // optional + specification: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/functions/delete-deployment.md b/docs/examples/1.5.x/server-php/examples/functions/delete-deployment.md index 6a609cd0372..23439f21076 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/delete-deployment.md +++ b/docs/examples/1.5.x/server-php/examples/functions/delete-deployment.md @@ -5,8 +5,8 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/delete-execution.md b/docs/examples/1.5.x/server-php/examples/functions/delete-execution.md new file mode 100644 index 00000000000..4fbef181757 --- /dev/null +++ b/docs/examples/1.5.x/server-php/examples/functions/delete-execution.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; + +$client = (new Client()) + ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$functions = new Functions($client); + +$result = $functions->deleteExecution( + functionId: '<FUNCTION_ID>', + executionId: '<EXECUTION_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/functions/delete-variable.md b/docs/examples/1.5.x/server-php/examples/functions/delete-variable.md index d25df57af61..344506b9e26 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/delete-variable.md +++ b/docs/examples/1.5.x/server-php/examples/functions/delete-variable.md @@ -5,8 +5,8 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/delete.md b/docs/examples/1.5.x/server-php/examples/functions/delete.md index 08b5cc403b3..6596754991c 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/delete.md +++ b/docs/examples/1.5.x/server-php/examples/functions/delete.md @@ -5,8 +5,8 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/download-deployment.md b/docs/examples/1.5.x/server-php/examples/functions/download-deployment.md index 9f3b3da51eb..17da83111d4 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-php/examples/functions/download-deployment.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/download-deployment.md b/docs/examples/1.5.x/server-php/examples/functions/get-deployment-download.md similarity index 89% rename from docs/examples/1.6.x/server-php/examples/functions/download-deployment.md rename to docs/examples/1.5.x/server-php/examples/functions/get-deployment-download.md index 83c8bb756f3..4103ec81e9e 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-php/examples/functions/get-deployment-download.md @@ -10,7 +10,7 @@ $client = (new Client()) $functions = new Functions($client); -$result = $functions->downloadDeployment( +$result = $functions->getDeploymentDownload( functionId: '<FUNCTION_ID>', deploymentId: '<DEPLOYMENT_ID>' ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/functions/get-deployment.md b/docs/examples/1.5.x/server-php/examples/functions/get-deployment.md index 12e37f32eb5..73d70816cff 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/get-deployment.md +++ b/docs/examples/1.5.x/server-php/examples/functions/get-deployment.md @@ -5,8 +5,8 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/get-execution.md b/docs/examples/1.5.x/server-php/examples/functions/get-execution.md index 47270d66fc3..9bb8d6af7a9 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/server-php/examples/functions/get-execution.md @@ -5,7 +5,7 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/get-variable.md b/docs/examples/1.5.x/server-php/examples/functions/get-variable.md index 3635372af52..cdb5ce9c45e 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/get-variable.md +++ b/docs/examples/1.5.x/server-php/examples/functions/get-variable.md @@ -5,8 +5,8 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/get.md b/docs/examples/1.5.x/server-php/examples/functions/get.md index 00993f7da22..d249ce7266e 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/get.md +++ b/docs/examples/1.5.x/server-php/examples/functions/get.md @@ -5,8 +5,8 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/list-deployments.md b/docs/examples/1.5.x/server-php/examples/functions/list-deployments.md index 7f6480859cb..9046c1880a3 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/list-deployments.md +++ b/docs/examples/1.5.x/server-php/examples/functions/list-deployments.md @@ -5,8 +5,8 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/list-executions.md b/docs/examples/1.5.x/server-php/examples/functions/list-executions.md index b446868c2c4..05e60a0cb9b 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/server-php/examples/functions/list-executions.md @@ -5,7 +5,7 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/list-runtimes.md b/docs/examples/1.5.x/server-php/examples/functions/list-runtimes.md index 75be157f697..1d2297846a2 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/list-runtimes.md +++ b/docs/examples/1.5.x/server-php/examples/functions/list-runtimes.md @@ -5,8 +5,8 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); diff --git a/docs/examples/1.6.x/server-php/examples/functions/get-template.md b/docs/examples/1.5.x/server-php/examples/functions/list-specifications.md similarity index 55% rename from docs/examples/1.6.x/server-php/examples/functions/get-template.md rename to docs/examples/1.5.x/server-php/examples/functions/list-specifications.md index 421557dcd2f..e68a4b0a8bb 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/get-template.md +++ b/docs/examples/1.5.x/server-php/examples/functions/list-specifications.md @@ -5,10 +5,9 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>'); // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); -$result = $functions->getTemplate( - templateId: '<TEMPLATE_ID>' -); \ No newline at end of file +$result = $functions->listSpecifications(); diff --git a/docs/examples/1.5.x/server-php/examples/functions/list-variables.md b/docs/examples/1.5.x/server-php/examples/functions/list-variables.md index 681102b418b..b9687a4ef80 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/list-variables.md +++ b/docs/examples/1.5.x/server-php/examples/functions/list-variables.md @@ -5,8 +5,8 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/list.md b/docs/examples/1.5.x/server-php/examples/functions/list.md index b59494bed72..22aa3cf9064 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/list.md +++ b/docs/examples/1.5.x/server-php/examples/functions/list.md @@ -5,8 +5,8 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/update-deployment-build.md b/docs/examples/1.5.x/server-php/examples/functions/update-deployment-build.md new file mode 100644 index 00000000000..98f2a3aaceb --- /dev/null +++ b/docs/examples/1.5.x/server-php/examples/functions/update-deployment-build.md @@ -0,0 +1,16 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Functions; + +$client = (new Client()) + ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$functions = new Functions($client); + +$result = $functions->updateDeploymentBuild( + functionId: '<FUNCTION_ID>', + deploymentId: '<DEPLOYMENT_ID>' +); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/functions/update-deployment.md b/docs/examples/1.5.x/server-php/examples/functions/update-deployment.md index 4405767fe96..9c6ad6dc8f2 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/update-deployment.md +++ b/docs/examples/1.5.x/server-php/examples/functions/update-deployment.md @@ -5,8 +5,8 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/update-variable.md b/docs/examples/1.5.x/server-php/examples/functions/update-variable.md index cdce6184508..b1b50081617 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/update-variable.md +++ b/docs/examples/1.5.x/server-php/examples/functions/update-variable.md @@ -5,8 +5,8 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); diff --git a/docs/examples/1.5.x/server-php/examples/functions/update.md b/docs/examples/1.5.x/server-php/examples/functions/update.md index e55108ffddc..8f84ca85ebe 100644 --- a/docs/examples/1.5.x/server-php/examples/functions/update.md +++ b/docs/examples/1.5.x/server-php/examples/functions/update.md @@ -5,8 +5,8 @@ use Appwrite\Services\Functions; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $functions = new Functions($client); @@ -22,9 +22,11 @@ $result = $functions->update( logging: false, // optional entrypoint: '<ENTRYPOINT>', // optional commands: '<COMMANDS>', // optional + scopes: [], // optional installationId: '<INSTALLATION_ID>', // optional providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // optional providerBranch: '<PROVIDER_BRANCH>', // optional providerSilentMode: false, // optional - providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>' // optional + providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', // optional + specification: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/graphql/mutation.md b/docs/examples/1.5.x/server-php/examples/graphql/mutation.md index 1be480261bb..1a0da4a405c 100644 --- a/docs/examples/1.5.x/server-php/examples/graphql/mutation.md +++ b/docs/examples/1.5.x/server-php/examples/graphql/mutation.md @@ -5,8 +5,8 @@ use Appwrite\Services\Graphql; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $graphql = new Graphql($client); diff --git a/docs/examples/1.5.x/server-php/examples/graphql/query.md b/docs/examples/1.5.x/server-php/examples/graphql/query.md index 5467fe11db8..eea9e8fc60b 100644 --- a/docs/examples/1.5.x/server-php/examples/graphql/query.md +++ b/docs/examples/1.5.x/server-php/examples/graphql/query.md @@ -5,8 +5,8 @@ use Appwrite\Services\Graphql; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $graphql = new Graphql($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-antivirus.md b/docs/examples/1.5.x/server-php/examples/health/get-antivirus.md index 7f4fcb8ac31..1f0dd2feeb7 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-antivirus.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-antivirus.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-cache.md b/docs/examples/1.5.x/server-php/examples/health/get-cache.md index 4fe6e69b573..4755d69f1da 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-cache.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-cache.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-certificate.md b/docs/examples/1.5.x/server-php/examples/health/get-certificate.md index 1f4d55ee999..1f0cda448db 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-certificate.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-certificate.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-d-b.md b/docs/examples/1.5.x/server-php/examples/health/get-d-b.md index ca1349b1707..fec1daa8ee7 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-d-b.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-d-b.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-failed-jobs.md b/docs/examples/1.5.x/server-php/examples/health/get-failed-jobs.md index 94a8d746718..8e331bcbfe7 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-failed-jobs.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-failed-jobs.md @@ -6,8 +6,8 @@ use Appwrite\Enums\; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-pub-sub.md b/docs/examples/1.5.x/server-php/examples/health/get-pub-sub.md index 63cd7647bc5..fb266b132d0 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-pub-sub.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-pub-sub.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-queue-builds.md b/docs/examples/1.5.x/server-php/examples/health/get-queue-builds.md index 56d342ba5d3..7886dfb21e0 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-queue-builds.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-queue-builds.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-queue-certificates.md b/docs/examples/1.5.x/server-php/examples/health/get-queue-certificates.md index 10c1308e59e..b00611e3540 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-queue-certificates.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-queue-certificates.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-queue-databases.md b/docs/examples/1.5.x/server-php/examples/health/get-queue-databases.md index c51e123bcdc..81e8442f0de 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-queue-databases.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-queue-databases.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-queue-deletes.md b/docs/examples/1.5.x/server-php/examples/health/get-queue-deletes.md index 70dcaca3984..fe51b072c81 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-queue-deletes.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-queue-deletes.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-queue-functions.md b/docs/examples/1.5.x/server-php/examples/health/get-queue-functions.md index 46cde881617..e6ee6880769 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-queue-functions.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-queue-functions.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-queue-logs.md b/docs/examples/1.5.x/server-php/examples/health/get-queue-logs.md index c982068db42..4c9b0cd81ce 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-queue-logs.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-queue-logs.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-queue-mails.md b/docs/examples/1.5.x/server-php/examples/health/get-queue-mails.md index ad415fc88bc..02d4ed2663f 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-queue-mails.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-queue-mails.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-queue-messaging.md b/docs/examples/1.5.x/server-php/examples/health/get-queue-messaging.md index a722d2fca93..ec69788353d 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-queue-messaging.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-queue-messaging.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-queue-migrations.md b/docs/examples/1.5.x/server-php/examples/health/get-queue-migrations.md index 2e2826dc6df..f52f78a0a8f 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-queue-migrations.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-queue-migrations.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-queue-stats-resources.md b/docs/examples/1.5.x/server-php/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..fd9d421773b --- /dev/null +++ b/docs/examples/1.5.x/server-php/examples/health/get-queue-stats-resources.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Health; + +$client = (new Client()) + ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$health = new Health($client); + +$result = $health->getQueueStatsResources( + threshold: null // optional +); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/health/get-queue-usage-dump.md b/docs/examples/1.5.x/server-php/examples/health/get-queue-usage-dump.md index 050cbeb8575..bd7d1c5d0b3 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-queue-usage-dump.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-php/examples/health/get-queue-usage.md b/docs/examples/1.5.x/server-php/examples/health/get-queue-usage.md index d9a3fb9121c..018e8acf0a5 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-queue-usage.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-queue-usage.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-queue-webhooks.md b/docs/examples/1.5.x/server-php/examples/health/get-queue-webhooks.md index e1d6e6fdc73..7e7af127c12 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-queue-webhooks.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-queue.md b/docs/examples/1.5.x/server-php/examples/health/get-queue.md index a8b1393e0bc..3a6033414ab 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-queue.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-queue.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-php/examples/health/get-storage-local.md b/docs/examples/1.5.x/server-php/examples/health/get-storage-local.md index 43bef96231d..0c26902ee7d 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-storage-local.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-storage-local.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-storage.md b/docs/examples/1.5.x/server-php/examples/health/get-storage.md index d5d817a12e0..abfc5bbd1bc 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-storage.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-storage.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get-time.md b/docs/examples/1.5.x/server-php/examples/health/get-time.md index d31e757f3ff..4577be3294d 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get-time.md +++ b/docs/examples/1.5.x/server-php/examples/health/get-time.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/health/get.md b/docs/examples/1.5.x/server-php/examples/health/get.md index 6e8216c1a81..514d0837568 100644 --- a/docs/examples/1.5.x/server-php/examples/health/get.md +++ b/docs/examples/1.5.x/server-php/examples/health/get.md @@ -5,8 +5,8 @@ use Appwrite\Services\Health; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $health = new Health($client); diff --git a/docs/examples/1.5.x/server-php/examples/locale/get.md b/docs/examples/1.5.x/server-php/examples/locale/get.md index beecee98db0..82247d4a689 100644 --- a/docs/examples/1.5.x/server-php/examples/locale/get.md +++ b/docs/examples/1.5.x/server-php/examples/locale/get.md @@ -5,7 +5,7 @@ use Appwrite\Services\Locale; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $locale = new Locale($client); diff --git a/docs/examples/1.5.x/server-php/examples/locale/list-codes.md b/docs/examples/1.5.x/server-php/examples/locale/list-codes.md index 699326fc65d..a88c2b64766 100644 --- a/docs/examples/1.5.x/server-php/examples/locale/list-codes.md +++ b/docs/examples/1.5.x/server-php/examples/locale/list-codes.md @@ -5,7 +5,7 @@ use Appwrite\Services\Locale; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $locale = new Locale($client); diff --git a/docs/examples/1.5.x/server-php/examples/locale/list-continents.md b/docs/examples/1.5.x/server-php/examples/locale/list-continents.md index 038f099445c..e861eced56a 100644 --- a/docs/examples/1.5.x/server-php/examples/locale/list-continents.md +++ b/docs/examples/1.5.x/server-php/examples/locale/list-continents.md @@ -5,7 +5,7 @@ use Appwrite\Services\Locale; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $locale = new Locale($client); diff --git a/docs/examples/1.5.x/server-php/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/server-php/examples/locale/list-countries-e-u.md index 1b895e5e97c..2b8bf7ee020 100644 --- a/docs/examples/1.5.x/server-php/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/server-php/examples/locale/list-countries-e-u.md @@ -5,7 +5,7 @@ use Appwrite\Services\Locale; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $locale = new Locale($client); diff --git a/docs/examples/1.5.x/server-php/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/server-php/examples/locale/list-countries-phones.md index 503ff39c0b3..fba9ff8ec25 100644 --- a/docs/examples/1.5.x/server-php/examples/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/server-php/examples/locale/list-countries-phones.md @@ -5,7 +5,7 @@ use Appwrite\Services\Locale; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $locale = new Locale($client); diff --git a/docs/examples/1.5.x/server-php/examples/locale/list-countries.md b/docs/examples/1.5.x/server-php/examples/locale/list-countries.md index 3e092d77132..60801b4dc5b 100644 --- a/docs/examples/1.5.x/server-php/examples/locale/list-countries.md +++ b/docs/examples/1.5.x/server-php/examples/locale/list-countries.md @@ -5,7 +5,7 @@ use Appwrite\Services\Locale; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $locale = new Locale($client); diff --git a/docs/examples/1.5.x/server-php/examples/locale/list-currencies.md b/docs/examples/1.5.x/server-php/examples/locale/list-currencies.md index 81157c9efeb..5fb1667e591 100644 --- a/docs/examples/1.5.x/server-php/examples/locale/list-currencies.md +++ b/docs/examples/1.5.x/server-php/examples/locale/list-currencies.md @@ -5,7 +5,7 @@ use Appwrite\Services\Locale; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $locale = new Locale($client); diff --git a/docs/examples/1.5.x/server-php/examples/locale/list-languages.md b/docs/examples/1.5.x/server-php/examples/locale/list-languages.md index 31de74086b6..aec67ca74a4 100644 --- a/docs/examples/1.5.x/server-php/examples/locale/list-languages.md +++ b/docs/examples/1.5.x/server-php/examples/locale/list-languages.md @@ -5,7 +5,7 @@ use Appwrite\Services\Locale; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $locale = new Locale($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/create-a-p-n-s-provider.md index 686c61cd77d..0b2d4669ba0 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-a-p-n-s-provider.md @@ -6,7 +6,7 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-apns-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/create-apns-provider.md index 48140782a98..bdc5d7fcc7a 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-apns-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-email.md b/docs/examples/1.5.x/server-php/examples/messaging/create-email.md index 8327f74e1b9..fe51bf16273 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-email.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-email.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/create-f-c-m-provider.md index 7f083cdbd56..beb512b239c 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-f-c-m-provider.md @@ -6,7 +6,7 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-fcm-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/create-fcm-provider.md index 4bb7123a50d..7252fde72e4 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-fcm-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-mailgun-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/create-mailgun-provider.md index 8ffa70c51c5..72f3360f26b 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-mailgun-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-msg91provider.md b/docs/examples/1.5.x/server-php/examples/messaging/create-msg91provider.md index 5efd866c1eb..bb7a79aea14 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-msg91provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-push.md b/docs/examples/1.5.x/server-php/examples/messaging/create-push.md index 7b7eb8e7121..9aaf6ad4adf 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-push.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-push.md @@ -5,15 +5,15 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); $result = $messaging->createPush( messageId: '<MESSAGE_ID>', - title: '<TITLE>', - body: '<BODY>', + title: '<TITLE>', // optional + body: '<BODY>', // optional topics: [], // optional users: [], // optional targets: [], // optional @@ -24,7 +24,10 @@ $result = $messaging->createPush( sound: '<SOUND>', // optional color: '<COLOR>', // optional tag: '<TAG>', // optional - badge: '<BADGE>', // optional + badge: null, // optional draft: false, // optional - scheduledAt: '' // optional + scheduledAt: '', // optional + contentAvailable: false, // optional + critical: false, // optional + priority: MessagePriority::NORMAL() // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-s-m-s.md b/docs/examples/1.5.x/server-php/examples/messaging/create-s-m-s.md index 5ee3ae3c7d1..fd6f57fdc1f 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-s-m-s.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-s-m-s.md @@ -6,7 +6,7 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/create-s-m-t-p-provider.md index 8c84350d296..f3aa85c439e 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-s-m-t-p-provider.md @@ -6,7 +6,7 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/create-sendgrid-provider.md index fbaa819ea2f..53381f67c38 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-sendgrid-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-sms.md b/docs/examples/1.5.x/server-php/examples/messaging/create-sms.md index ae288081765..8c0cb79dbfe 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-sms.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-sms.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-smtp-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/create-smtp-provider.md index 4c6d384633d..fd771fa2acb 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-smtp-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/server-php/examples/messaging/create-subscriber.md index 36a2a760822..c0324ab382e 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-subscriber.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...'); // Your secret JSON Web Token + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setJWT('<YOUR_JWT>'); // Your secret JSON Web Token $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-telesign-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/create-telesign-provider.md index d84c93f795c..89e17a1bca8 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-telesign-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-textmagic-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/create-textmagic-provider.md index c1d0337db68..0e0c8681ea0 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-textmagic-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-topic.md b/docs/examples/1.5.x/server-php/examples/messaging/create-topic.md index bf214946c8e..79e3d2635d4 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-topic.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-topic.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-twilio-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/create-twilio-provider.md index 915cc940a0f..f370df244e6 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-twilio-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/create-vonage-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/create-vonage-provider.md index bd1e665651b..4663b05c3ec 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/create-vonage-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/delete-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/delete-provider.md index b52e5f07edc..a3d8d474fc6 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/delete-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/delete-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/server-php/examples/messaging/delete-subscriber.md index 1736d00f676..a5f7eb79eb0 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/delete-subscriber.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...'); // Your secret JSON Web Token + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setJWT('<YOUR_JWT>'); // Your secret JSON Web Token $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/delete-topic.md b/docs/examples/1.5.x/server-php/examples/messaging/delete-topic.md index 25ed35e77b9..7333a8de8d6 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/delete-topic.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/delete-topic.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/delete.md b/docs/examples/1.5.x/server-php/examples/messaging/delete.md index 5c05eedd02b..b9b33808663 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/delete.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/delete.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/get-message.md b/docs/examples/1.5.x/server-php/examples/messaging/get-message.md index 47b6afd7380..c6ff233e6e0 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/get-message.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/get-message.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/get-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/get-provider.md index 1576107a973..1d29307aec4 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/get-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/get-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/get-subscriber.md b/docs/examples/1.5.x/server-php/examples/messaging/get-subscriber.md index 3fa4c0ae736..503e7010cb0 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/get-subscriber.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/get-subscriber.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/get-topic.md b/docs/examples/1.5.x/server-php/examples/messaging/get-topic.md index f732fcbb531..3277168bec9 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/get-topic.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/get-topic.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/list-message-logs.md b/docs/examples/1.5.x/server-php/examples/messaging/list-message-logs.md index 58c026e7b0c..283b2a7794c 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/list-message-logs.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/list-message-logs.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/list-messages.md b/docs/examples/1.5.x/server-php/examples/messaging/list-messages.md index 681863babb9..a4190e644b0 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/list-messages.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/list-messages.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/list-provider-logs.md b/docs/examples/1.5.x/server-php/examples/messaging/list-provider-logs.md index 3809e67a024..bf80f20477b 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/list-provider-logs.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/list-providers.md b/docs/examples/1.5.x/server-php/examples/messaging/list-providers.md index 99c8cc1dc0c..1dc0e3cb985 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/list-providers.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/list-providers.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/list-subscriber-logs.md b/docs/examples/1.5.x/server-php/examples/messaging/list-subscriber-logs.md index 45837902e82..c0c88d69354 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/list-subscriber-logs.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/list-subscribers.md b/docs/examples/1.5.x/server-php/examples/messaging/list-subscribers.md index 36054d2028f..7597ad89ce6 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/list-subscribers.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/list-subscribers.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/list-targets.md b/docs/examples/1.5.x/server-php/examples/messaging/list-targets.md index b12aa4455d4..1825a088389 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/list-targets.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/list-targets.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/list-topic-logs.md b/docs/examples/1.5.x/server-php/examples/messaging/list-topic-logs.md index 49bcc048aa9..1ab8c363d62 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/list-topic-logs.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/list-topics.md b/docs/examples/1.5.x/server-php/examples/messaging/list-topics.md index 565504ab2b4..cfcba97a212 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/list-topics.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/list-topics.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/update-a-p-n-s-provider.md index 1a114d7c307..5e39b6da063 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-a-p-n-s-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-apns-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/update-apns-provider.md index 5de36f2425d..d7177551d50 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-apns-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-email.md b/docs/examples/1.5.x/server-php/examples/messaging/update-email.md index 2acafafe463..d3b65692c1b 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-email.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-email.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/update-f-c-m-provider.md index 314d4393b0a..48ec3542c91 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-f-c-m-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-fcm-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/update-fcm-provider.md index 2cadd87da6c..9a80b44ff2d 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-fcm-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-mailgun-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/update-mailgun-provider.md index 7f36655f22d..7891cb5bb03 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-mailgun-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-msg91provider.md b/docs/examples/1.5.x/server-php/examples/messaging/update-msg91provider.md index 9ca978293cd..98f4f13a59f 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-msg91provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-push.md b/docs/examples/1.5.x/server-php/examples/messaging/update-push.md index 204c63d5da4..7546fc8668a 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-push.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-push.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); @@ -26,5 +26,8 @@ $result = $messaging->updatePush( tag: '<TAG>', // optional badge: null, // optional draft: false, // optional - scheduledAt: '' // optional + scheduledAt: '', // optional + contentAvailable: false, // optional + critical: false, // optional + priority: MessagePriority::NORMAL() // optional ); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-s-m-s.md b/docs/examples/1.5.x/server-php/examples/messaging/update-s-m-s.md index 825f9ab60fa..1f4712234dd 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-s-m-s.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-s-m-s.md @@ -6,7 +6,7 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/update-s-m-t-p-provider.md index 531e4e104ec..5123c030319 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-s-m-t-p-provider.md @@ -6,7 +6,7 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/update-sendgrid-provider.md index 61253a467e5..2820e2e20ec 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-sendgrid-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-sms.md b/docs/examples/1.5.x/server-php/examples/messaging/update-sms.md index 9f4b24165df..a342b7a0672 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-sms.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-sms.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-smtp-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/update-smtp-provider.md index e4b0ad83c81..66dde3ea01f 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-smtp-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-telesign-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/update-telesign-provider.md index b77a45cbb25..3c1b760dd1d 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-telesign-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-textmagic-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/update-textmagic-provider.md index e3e3f2b62c7..3328ac714de 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-textmagic-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-topic.md b/docs/examples/1.5.x/server-php/examples/messaging/update-topic.md index 50671b1582c..5669e5f7541 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-topic.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-topic.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-twilio-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/update-twilio-provider.md index 60eef45d9d6..07b7a2eafe1 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-twilio-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/messaging/update-vonage-provider.md b/docs/examples/1.5.x/server-php/examples/messaging/update-vonage-provider.md index 4a3ee5afa23..ba7f5305e52 100644 --- a/docs/examples/1.5.x/server-php/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.5.x/server-php/examples/messaging/update-vonage-provider.md @@ -5,8 +5,8 @@ use Appwrite\Services\Messaging; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $messaging = new Messaging($client); diff --git a/docs/examples/1.5.x/server-php/examples/storage/create-bucket.md b/docs/examples/1.5.x/server-php/examples/storage/create-bucket.md index 0582e188fda..0c8ef0fefe9 100644 --- a/docs/examples/1.5.x/server-php/examples/storage/create-bucket.md +++ b/docs/examples/1.5.x/server-php/examples/storage/create-bucket.md @@ -5,8 +5,8 @@ use Appwrite\Services\Storage; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $storage = new Storage($client); diff --git a/docs/examples/1.5.x/server-php/examples/storage/create-file.md b/docs/examples/1.5.x/server-php/examples/storage/create-file.md index e73af547169..a9485465632 100644 --- a/docs/examples/1.5.x/server-php/examples/storage/create-file.md +++ b/docs/examples/1.5.x/server-php/examples/storage/create-file.md @@ -6,7 +6,7 @@ use Appwrite\Services\Storage; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $storage = new Storage($client); diff --git a/docs/examples/1.5.x/server-php/examples/storage/delete-bucket.md b/docs/examples/1.5.x/server-php/examples/storage/delete-bucket.md index 6d5278dfccf..784331887e5 100644 --- a/docs/examples/1.5.x/server-php/examples/storage/delete-bucket.md +++ b/docs/examples/1.5.x/server-php/examples/storage/delete-bucket.md @@ -5,8 +5,8 @@ use Appwrite\Services\Storage; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $storage = new Storage($client); diff --git a/docs/examples/1.5.x/server-php/examples/storage/delete-file.md b/docs/examples/1.5.x/server-php/examples/storage/delete-file.md index eff096dc445..4274c25a45a 100644 --- a/docs/examples/1.5.x/server-php/examples/storage/delete-file.md +++ b/docs/examples/1.5.x/server-php/examples/storage/delete-file.md @@ -5,7 +5,7 @@ use Appwrite\Services\Storage; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $storage = new Storage($client); diff --git a/docs/examples/1.5.x/server-php/examples/storage/get-bucket.md b/docs/examples/1.5.x/server-php/examples/storage/get-bucket.md index a7a8c1d2afc..85a5b75f621 100644 --- a/docs/examples/1.5.x/server-php/examples/storage/get-bucket.md +++ b/docs/examples/1.5.x/server-php/examples/storage/get-bucket.md @@ -5,8 +5,8 @@ use Appwrite\Services\Storage; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $storage = new Storage($client); diff --git a/docs/examples/1.5.x/server-php/examples/storage/get-file-download.md b/docs/examples/1.5.x/server-php/examples/storage/get-file-download.md index 1d4969509cc..72be0f68413 100644 --- a/docs/examples/1.5.x/server-php/examples/storage/get-file-download.md +++ b/docs/examples/1.5.x/server-php/examples/storage/get-file-download.md @@ -5,7 +5,7 @@ use Appwrite\Services\Storage; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $storage = new Storage($client); diff --git a/docs/examples/1.5.x/server-php/examples/storage/get-file-preview.md b/docs/examples/1.5.x/server-php/examples/storage/get-file-preview.md index 519ee53ea41..aef4f4a63f9 100644 --- a/docs/examples/1.5.x/server-php/examples/storage/get-file-preview.md +++ b/docs/examples/1.5.x/server-php/examples/storage/get-file-preview.md @@ -5,7 +5,7 @@ use Appwrite\Services\Storage; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $storage = new Storage($client); diff --git a/docs/examples/1.5.x/server-php/examples/storage/get-file-view.md b/docs/examples/1.5.x/server-php/examples/storage/get-file-view.md index 9e37230789a..782e49bd214 100644 --- a/docs/examples/1.5.x/server-php/examples/storage/get-file-view.md +++ b/docs/examples/1.5.x/server-php/examples/storage/get-file-view.md @@ -5,7 +5,7 @@ use Appwrite\Services\Storage; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $storage = new Storage($client); diff --git a/docs/examples/1.5.x/server-php/examples/storage/get-file.md b/docs/examples/1.5.x/server-php/examples/storage/get-file.md index 894c8bbf955..80196a5199e 100644 --- a/docs/examples/1.5.x/server-php/examples/storage/get-file.md +++ b/docs/examples/1.5.x/server-php/examples/storage/get-file.md @@ -5,7 +5,7 @@ use Appwrite\Services\Storage; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $storage = new Storage($client); diff --git a/docs/examples/1.5.x/server-php/examples/storage/list-buckets.md b/docs/examples/1.5.x/server-php/examples/storage/list-buckets.md index 06f4e2a9cb5..a53eb913c9b 100644 --- a/docs/examples/1.5.x/server-php/examples/storage/list-buckets.md +++ b/docs/examples/1.5.x/server-php/examples/storage/list-buckets.md @@ -5,8 +5,8 @@ use Appwrite\Services\Storage; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $storage = new Storage($client); diff --git a/docs/examples/1.5.x/server-php/examples/storage/list-files.md b/docs/examples/1.5.x/server-php/examples/storage/list-files.md index 824ae303a51..767fe86c300 100644 --- a/docs/examples/1.5.x/server-php/examples/storage/list-files.md +++ b/docs/examples/1.5.x/server-php/examples/storage/list-files.md @@ -5,7 +5,7 @@ use Appwrite\Services\Storage; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $storage = new Storage($client); diff --git a/docs/examples/1.5.x/server-php/examples/storage/update-bucket.md b/docs/examples/1.5.x/server-php/examples/storage/update-bucket.md index 451ff80587e..e4a0f5df351 100644 --- a/docs/examples/1.5.x/server-php/examples/storage/update-bucket.md +++ b/docs/examples/1.5.x/server-php/examples/storage/update-bucket.md @@ -5,8 +5,8 @@ use Appwrite\Services\Storage; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $storage = new Storage($client); diff --git a/docs/examples/1.5.x/server-php/examples/storage/update-file.md b/docs/examples/1.5.x/server-php/examples/storage/update-file.md index 531a843ec41..506593f427e 100644 --- a/docs/examples/1.5.x/server-php/examples/storage/update-file.md +++ b/docs/examples/1.5.x/server-php/examples/storage/update-file.md @@ -5,7 +5,7 @@ use Appwrite\Services\Storage; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $storage = new Storage($client); diff --git a/docs/examples/1.5.x/server-php/examples/teams/create-membership.md b/docs/examples/1.5.x/server-php/examples/teams/create-membership.md index ef9bf44f865..51b1795a011 100644 --- a/docs/examples/1.5.x/server-php/examples/teams/create-membership.md +++ b/docs/examples/1.5.x/server-php/examples/teams/create-membership.md @@ -5,7 +5,7 @@ use Appwrite\Services\Teams; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $teams = new Teams($client); diff --git a/docs/examples/1.5.x/server-php/examples/teams/create.md b/docs/examples/1.5.x/server-php/examples/teams/create.md index de01cbc4738..3cc6b19be9e 100644 --- a/docs/examples/1.5.x/server-php/examples/teams/create.md +++ b/docs/examples/1.5.x/server-php/examples/teams/create.md @@ -5,7 +5,7 @@ use Appwrite\Services\Teams; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $teams = new Teams($client); diff --git a/docs/examples/1.5.x/server-php/examples/teams/delete-membership.md b/docs/examples/1.5.x/server-php/examples/teams/delete-membership.md index b68b692a81e..04f4056fcd0 100644 --- a/docs/examples/1.5.x/server-php/examples/teams/delete-membership.md +++ b/docs/examples/1.5.x/server-php/examples/teams/delete-membership.md @@ -5,7 +5,7 @@ use Appwrite\Services\Teams; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $teams = new Teams($client); diff --git a/docs/examples/1.5.x/server-php/examples/teams/delete.md b/docs/examples/1.5.x/server-php/examples/teams/delete.md index 45f2100cf4f..734464538f5 100644 --- a/docs/examples/1.5.x/server-php/examples/teams/delete.md +++ b/docs/examples/1.5.x/server-php/examples/teams/delete.md @@ -5,7 +5,7 @@ use Appwrite\Services\Teams; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $teams = new Teams($client); diff --git a/docs/examples/1.5.x/server-php/examples/teams/get-membership.md b/docs/examples/1.5.x/server-php/examples/teams/get-membership.md index f075372fb83..5f4bd63a642 100644 --- a/docs/examples/1.5.x/server-php/examples/teams/get-membership.md +++ b/docs/examples/1.5.x/server-php/examples/teams/get-membership.md @@ -5,7 +5,7 @@ use Appwrite\Services\Teams; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $teams = new Teams($client); diff --git a/docs/examples/1.5.x/server-php/examples/teams/get-prefs.md b/docs/examples/1.5.x/server-php/examples/teams/get-prefs.md index 738a6c7d18e..27f6e06973a 100644 --- a/docs/examples/1.5.x/server-php/examples/teams/get-prefs.md +++ b/docs/examples/1.5.x/server-php/examples/teams/get-prefs.md @@ -5,7 +5,7 @@ use Appwrite\Services\Teams; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $teams = new Teams($client); diff --git a/docs/examples/1.5.x/server-php/examples/teams/get.md b/docs/examples/1.5.x/server-php/examples/teams/get.md index f68c41582a3..f1ce1348d84 100644 --- a/docs/examples/1.5.x/server-php/examples/teams/get.md +++ b/docs/examples/1.5.x/server-php/examples/teams/get.md @@ -5,7 +5,7 @@ use Appwrite\Services\Teams; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $teams = new Teams($client); diff --git a/docs/examples/1.5.x/server-php/examples/teams/list-memberships.md b/docs/examples/1.5.x/server-php/examples/teams/list-memberships.md index 27d5d0075e6..9d0c988ce62 100644 --- a/docs/examples/1.5.x/server-php/examples/teams/list-memberships.md +++ b/docs/examples/1.5.x/server-php/examples/teams/list-memberships.md @@ -5,7 +5,7 @@ use Appwrite\Services\Teams; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $teams = new Teams($client); diff --git a/docs/examples/1.5.x/server-php/examples/teams/list.md b/docs/examples/1.5.x/server-php/examples/teams/list.md index 90cdcfd656a..7ab8f81b275 100644 --- a/docs/examples/1.5.x/server-php/examples/teams/list.md +++ b/docs/examples/1.5.x/server-php/examples/teams/list.md @@ -5,7 +5,7 @@ use Appwrite\Services\Teams; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $teams = new Teams($client); diff --git a/docs/examples/1.5.x/server-php/examples/teams/update-membership-status.md b/docs/examples/1.5.x/server-php/examples/teams/update-membership-status.md index 4a802a5ec24..6179020df24 100644 --- a/docs/examples/1.5.x/server-php/examples/teams/update-membership-status.md +++ b/docs/examples/1.5.x/server-php/examples/teams/update-membership-status.md @@ -5,7 +5,7 @@ use Appwrite\Services\Teams; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $teams = new Teams($client); diff --git a/docs/examples/1.5.x/server-php/examples/teams/update-membership.md b/docs/examples/1.5.x/server-php/examples/teams/update-membership.md index 308f7f1b9e0..3b6cafa5f57 100644 --- a/docs/examples/1.5.x/server-php/examples/teams/update-membership.md +++ b/docs/examples/1.5.x/server-php/examples/teams/update-membership.md @@ -5,7 +5,7 @@ use Appwrite\Services\Teams; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $teams = new Teams($client); diff --git a/docs/examples/1.5.x/server-php/examples/teams/update-name.md b/docs/examples/1.5.x/server-php/examples/teams/update-name.md index 088d32ef253..62768a9fb83 100644 --- a/docs/examples/1.5.x/server-php/examples/teams/update-name.md +++ b/docs/examples/1.5.x/server-php/examples/teams/update-name.md @@ -5,7 +5,7 @@ use Appwrite\Services\Teams; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $teams = new Teams($client); diff --git a/docs/examples/1.5.x/server-php/examples/teams/update-prefs.md b/docs/examples/1.5.x/server-php/examples/teams/update-prefs.md index c2a9aad1ff7..ec52ac07dfc 100644 --- a/docs/examples/1.5.x/server-php/examples/teams/update-prefs.md +++ b/docs/examples/1.5.x/server-php/examples/teams/update-prefs.md @@ -5,7 +5,7 @@ use Appwrite\Services\Teams; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with $teams = new Teams($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/create-argon2user.md b/docs/examples/1.5.x/server-php/examples/users/create-argon2user.md index db01dda58b4..a482b5dd578 100644 --- a/docs/examples/1.5.x/server-php/examples/users/create-argon2user.md +++ b/docs/examples/1.5.x/server-php/examples/users/create-argon2user.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/create-bcrypt-user.md b/docs/examples/1.5.x/server-php/examples/users/create-bcrypt-user.md index 0a061f9a500..af71dcdc73b 100644 --- a/docs/examples/1.5.x/server-php/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.5.x/server-php/examples/users/create-bcrypt-user.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/create-j-w-t.md b/docs/examples/1.5.x/server-php/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..994cdc3bb39 --- /dev/null +++ b/docs/examples/1.5.x/server-php/examples/users/create-j-w-t.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Users; + +$client = (new Client()) + ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$users = new Users($client); + +$result = $users->createJWT( + userId: '<USER_ID>', + sessionId: '<SESSION_ID>', // optional + duration: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.5.x/server-php/examples/users/create-m-d5user.md b/docs/examples/1.5.x/server-php/examples/users/create-m-d5user.md index 400b6bdbedc..13bb884aa74 100644 --- a/docs/examples/1.5.x/server-php/examples/users/create-m-d5user.md +++ b/docs/examples/1.5.x/server-php/examples/users/create-m-d5user.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-php/examples/users/create-mfa-recovery-codes.md index e8b3b60f1ae..faec2341069 100644 --- a/docs/examples/1.5.x/server-php/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-php/examples/users/create-mfa-recovery-codes.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/create-p-h-pass-user.md b/docs/examples/1.5.x/server-php/examples/users/create-p-h-pass-user.md index e0d734281b1..da0889df702 100644 --- a/docs/examples/1.5.x/server-php/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.5.x/server-php/examples/users/create-p-h-pass-user.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/create-s-h-a-user.md b/docs/examples/1.5.x/server-php/examples/users/create-s-h-a-user.md index 9cb35ee9bc7..ecb9af7f318 100644 --- a/docs/examples/1.5.x/server-php/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.5.x/server-php/examples/users/create-s-h-a-user.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/create-scrypt-modified-user.md b/docs/examples/1.5.x/server-php/examples/users/create-scrypt-modified-user.md index 325745d3e3d..d1c99065e1e 100644 --- a/docs/examples/1.5.x/server-php/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.5.x/server-php/examples/users/create-scrypt-modified-user.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/create-scrypt-user.md b/docs/examples/1.5.x/server-php/examples/users/create-scrypt-user.md index 0828acc6584..3c833b098eb 100644 --- a/docs/examples/1.5.x/server-php/examples/users/create-scrypt-user.md +++ b/docs/examples/1.5.x/server-php/examples/users/create-scrypt-user.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/create-session.md b/docs/examples/1.5.x/server-php/examples/users/create-session.md index c4f905256c1..498e161c67e 100644 --- a/docs/examples/1.5.x/server-php/examples/users/create-session.md +++ b/docs/examples/1.5.x/server-php/examples/users/create-session.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/create-target.md b/docs/examples/1.5.x/server-php/examples/users/create-target.md index 2820472dd81..999cae1394c 100644 --- a/docs/examples/1.5.x/server-php/examples/users/create-target.md +++ b/docs/examples/1.5.x/server-php/examples/users/create-target.md @@ -6,8 +6,8 @@ use Appwrite\Enums\MessagingProviderType; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/create-token.md b/docs/examples/1.5.x/server-php/examples/users/create-token.md index 83f05e15d30..9d8e1635a7a 100644 --- a/docs/examples/1.5.x/server-php/examples/users/create-token.md +++ b/docs/examples/1.5.x/server-php/examples/users/create-token.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/create.md b/docs/examples/1.5.x/server-php/examples/users/create.md index 7cf4b6fb7f9..16549ae0927 100644 --- a/docs/examples/1.5.x/server-php/examples/users/create.md +++ b/docs/examples/1.5.x/server-php/examples/users/create.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/delete-authenticator.md b/docs/examples/1.5.x/server-php/examples/users/delete-authenticator.md index 78f8f7718b2..2cf23df55c7 100644 --- a/docs/examples/1.5.x/server-php/examples/users/delete-authenticator.md +++ b/docs/examples/1.5.x/server-php/examples/users/delete-authenticator.md @@ -5,7 +5,7 @@ use Appwrite\Services\Users; use Appwrite\Enums\AuthenticatorType; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-php/examples/users/delete-identity.md b/docs/examples/1.5.x/server-php/examples/users/delete-identity.md index 81751a165c9..9ca15569ced 100644 --- a/docs/examples/1.5.x/server-php/examples/users/delete-identity.md +++ b/docs/examples/1.5.x/server-php/examples/users/delete-identity.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-php/examples/users/delete-mfa-authenticator.md index aa7405ebe02..94a9e04b593 100644 --- a/docs/examples/1.5.x/server-php/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-php/examples/users/delete-mfa-authenticator.md @@ -6,8 +6,8 @@ use Appwrite\Enums\AuthenticatorType; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/delete-session.md b/docs/examples/1.5.x/server-php/examples/users/delete-session.md index 3ef58aa4d03..e711a923196 100644 --- a/docs/examples/1.5.x/server-php/examples/users/delete-session.md +++ b/docs/examples/1.5.x/server-php/examples/users/delete-session.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/delete-sessions.md b/docs/examples/1.5.x/server-php/examples/users/delete-sessions.md index e89b65f9289..3b46021a815 100644 --- a/docs/examples/1.5.x/server-php/examples/users/delete-sessions.md +++ b/docs/examples/1.5.x/server-php/examples/users/delete-sessions.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/delete-target.md b/docs/examples/1.5.x/server-php/examples/users/delete-target.md index 444c4969423..6b9975d748f 100644 --- a/docs/examples/1.5.x/server-php/examples/users/delete-target.md +++ b/docs/examples/1.5.x/server-php/examples/users/delete-target.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/delete.md b/docs/examples/1.5.x/server-php/examples/users/delete.md index b715e8466cb..f1dbbf3d93f 100644 --- a/docs/examples/1.5.x/server-php/examples/users/delete.md +++ b/docs/examples/1.5.x/server-php/examples/users/delete.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-php/examples/users/get-mfa-recovery-codes.md index a852fa558df..b0e3a759bd2 100644 --- a/docs/examples/1.5.x/server-php/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-php/examples/users/get-mfa-recovery-codes.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/get-prefs.md b/docs/examples/1.5.x/server-php/examples/users/get-prefs.md index 79f778a83ce..59589f74fff 100644 --- a/docs/examples/1.5.x/server-php/examples/users/get-prefs.md +++ b/docs/examples/1.5.x/server-php/examples/users/get-prefs.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/get-target.md b/docs/examples/1.5.x/server-php/examples/users/get-target.md index 489e1e2777a..ba146a30042 100644 --- a/docs/examples/1.5.x/server-php/examples/users/get-target.md +++ b/docs/examples/1.5.x/server-php/examples/users/get-target.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/get.md b/docs/examples/1.5.x/server-php/examples/users/get.md index 5428d73d9a9..4ff399b6226 100644 --- a/docs/examples/1.5.x/server-php/examples/users/get.md +++ b/docs/examples/1.5.x/server-php/examples/users/get.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/list-factors.md b/docs/examples/1.5.x/server-php/examples/users/list-factors.md index 0c6f2b9bb13..f82be6a8dba 100644 --- a/docs/examples/1.5.x/server-php/examples/users/list-factors.md +++ b/docs/examples/1.5.x/server-php/examples/users/list-factors.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/docs/examples/1.5.x/server-php/examples/users/list-identities.md b/docs/examples/1.5.x/server-php/examples/users/list-identities.md index 0fde8a3db48..53ba78d8b23 100644 --- a/docs/examples/1.5.x/server-php/examples/users/list-identities.md +++ b/docs/examples/1.5.x/server-php/examples/users/list-identities.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/list-logs.md b/docs/examples/1.5.x/server-php/examples/users/list-logs.md index 863bab5bec4..434dbafc111 100644 --- a/docs/examples/1.5.x/server-php/examples/users/list-logs.md +++ b/docs/examples/1.5.x/server-php/examples/users/list-logs.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/list-memberships.md b/docs/examples/1.5.x/server-php/examples/users/list-memberships.md index 616f014eae6..addc6b75d0c 100644 --- a/docs/examples/1.5.x/server-php/examples/users/list-memberships.md +++ b/docs/examples/1.5.x/server-php/examples/users/list-memberships.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/list-mfa-factors.md b/docs/examples/1.5.x/server-php/examples/users/list-mfa-factors.md index 305896622c8..0d137aaf5e5 100644 --- a/docs/examples/1.5.x/server-php/examples/users/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-php/examples/users/list-mfa-factors.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/list-providers.md b/docs/examples/1.5.x/server-php/examples/users/list-providers.md index b31b9f37ecf..1a61af46399 100644 --- a/docs/examples/1.5.x/server-php/examples/users/list-providers.md +++ b/docs/examples/1.5.x/server-php/examples/users/list-providers.md @@ -6,7 +6,7 @@ use Appwrite\Services\Users; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/docs/examples/1.5.x/server-php/examples/users/list-sessions.md b/docs/examples/1.5.x/server-php/examples/users/list-sessions.md index 3b0c4905d44..5dcac1f5a4e 100644 --- a/docs/examples/1.5.x/server-php/examples/users/list-sessions.md +++ b/docs/examples/1.5.x/server-php/examples/users/list-sessions.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/list-targets.md b/docs/examples/1.5.x/server-php/examples/users/list-targets.md index c441a1c070e..a91ac5e8cbf 100644 --- a/docs/examples/1.5.x/server-php/examples/users/list-targets.md +++ b/docs/examples/1.5.x/server-php/examples/users/list-targets.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/list.md b/docs/examples/1.5.x/server-php/examples/users/list.md index 63616e5246a..9b8d1d5f2c8 100644 --- a/docs/examples/1.5.x/server-php/examples/users/list.md +++ b/docs/examples/1.5.x/server-php/examples/users/list.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/update-email-verification.md b/docs/examples/1.5.x/server-php/examples/users/update-email-verification.md index 74ef3401b26..e74e88735ea 100644 --- a/docs/examples/1.5.x/server-php/examples/users/update-email-verification.md +++ b/docs/examples/1.5.x/server-php/examples/users/update-email-verification.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/update-email.md b/docs/examples/1.5.x/server-php/examples/users/update-email.md index fb8e231f72a..fc40fac0278 100644 --- a/docs/examples/1.5.x/server-php/examples/users/update-email.md +++ b/docs/examples/1.5.x/server-php/examples/users/update-email.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/update-labels.md b/docs/examples/1.5.x/server-php/examples/users/update-labels.md index 87e1b66a6fb..45fe23b7c9e 100644 --- a/docs/examples/1.5.x/server-php/examples/users/update-labels.md +++ b/docs/examples/1.5.x/server-php/examples/users/update-labels.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-php/examples/users/update-mfa-recovery-codes.md index aec96fae3d1..369c248f11e 100644 --- a/docs/examples/1.5.x/server-php/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-php/examples/users/update-mfa-recovery-codes.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/update-mfa.md b/docs/examples/1.5.x/server-php/examples/users/update-mfa.md index 83a3e3709a2..5df7aa265db 100644 --- a/docs/examples/1.5.x/server-php/examples/users/update-mfa.md +++ b/docs/examples/1.5.x/server-php/examples/users/update-mfa.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/update-name.md b/docs/examples/1.5.x/server-php/examples/users/update-name.md index 33ca1751757..7050d19bcfd 100644 --- a/docs/examples/1.5.x/server-php/examples/users/update-name.md +++ b/docs/examples/1.5.x/server-php/examples/users/update-name.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/update-password.md b/docs/examples/1.5.x/server-php/examples/users/update-password.md index a6226eb0583..8dcb57b6a4a 100644 --- a/docs/examples/1.5.x/server-php/examples/users/update-password.md +++ b/docs/examples/1.5.x/server-php/examples/users/update-password.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/update-phone-verification.md b/docs/examples/1.5.x/server-php/examples/users/update-phone-verification.md index 8d26d649a52..12e44dade1e 100644 --- a/docs/examples/1.5.x/server-php/examples/users/update-phone-verification.md +++ b/docs/examples/1.5.x/server-php/examples/users/update-phone-verification.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/update-phone.md b/docs/examples/1.5.x/server-php/examples/users/update-phone.md index eb5f55e52fd..95c31156ee9 100644 --- a/docs/examples/1.5.x/server-php/examples/users/update-phone.md +++ b/docs/examples/1.5.x/server-php/examples/users/update-phone.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/update-prefs.md b/docs/examples/1.5.x/server-php/examples/users/update-prefs.md index b96ff17ca8a..2ffd93875bb 100644 --- a/docs/examples/1.5.x/server-php/examples/users/update-prefs.md +++ b/docs/examples/1.5.x/server-php/examples/users/update-prefs.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/update-status.md b/docs/examples/1.5.x/server-php/examples/users/update-status.md index ef748019819..28a05320cee 100644 --- a/docs/examples/1.5.x/server-php/examples/users/update-status.md +++ b/docs/examples/1.5.x/server-php/examples/users/update-status.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-php/examples/users/update-target.md b/docs/examples/1.5.x/server-php/examples/users/update-target.md index 4d40c8345c2..a1b654d9018 100644 --- a/docs/examples/1.5.x/server-php/examples/users/update-target.md +++ b/docs/examples/1.5.x/server-php/examples/users/update-target.md @@ -5,8 +5,8 @@ use Appwrite\Services\Users; $client = (new Client()) ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key $users = new Users($client); diff --git a/docs/examples/1.5.x/server-python/examples/account/add-authenticator.md b/docs/examples/1.5.x/server-python/examples/account/add-authenticator.md index 3c52b8933a4..72d5688e26e 100644 --- a/docs/examples/1.5.x/server-python/examples/account/add-authenticator.md +++ b/docs/examples/1.5.x/server-python/examples/account/add-authenticator.md @@ -2,7 +2,7 @@ from appwrite.client import Client from appwrite.enums import AuthenticatorType client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.5.x/server-python/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/server-python/examples/account/create-anonymous-session.md index afaa76b4db8..ce5a92ad187 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-anonymous-session.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create-challenge.md b/docs/examples/1.5.x/server-python/examples/account/create-challenge.md index 6952faefc6e..531af7cf2d9 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-challenge.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-challenge.md @@ -2,7 +2,7 @@ from appwrite.client import Client from appwrite.enums import AuthenticationFactor client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create-email-password-session.md b/docs/examples/1.5.x/server-python/examples/account/create-email-password-session.md index 667d85a1868..5e869fd40c0 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-email-password-session.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-email-password-session.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create-email-token.md b/docs/examples/1.5.x/server-python/examples/account/create-email-token.md index a283f4212eb..5cf2bfb085b 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-email-token.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-email-token.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create-j-w-t.md b/docs/examples/1.5.x/server-python/examples/account/create-j-w-t.md index bc9b6842d54..c737f1b8e9b 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-j-w-t.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-j-w-t.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/server-python/examples/account/create-magic-u-r-l-token.md index 1f6593b3f04..00778172bbe 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-magic-u-r-l-token.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/server-python/examples/account/create-mfa-authenticator.md index 1c59624f165..a6f09eb4f01 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-mfa-authenticator.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.account import Account from appwrite.enums import AuthenticatorType client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/server-python/examples/account/create-mfa-challenge.md index 5448d961a64..deb4c9c6007 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-mfa-challenge.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.account import Account from appwrite.enums import AuthenticationFactor client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-python/examples/account/create-mfa-recovery-codes.md index c675936404b..a149cb95b7b 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-mfa-recovery-codes.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create-o-auth2session.md b/docs/examples/1.5.x/server-python/examples/account/create-o-auth2session.md index 341087fa3e3..991f946ce38 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-o-auth2session.md @@ -2,7 +2,7 @@ from appwrite.client import Client from appwrite.enums import OAuthProvider client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/server-python/examples/account/create-o-auth2token.md index 96c0f88904c..fa11d31c31b 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-o-auth2token.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.account import Account from appwrite.enums import OAuthProvider client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create-phone-token.md b/docs/examples/1.5.x/server-python/examples/account/create-phone-token.md index b7597dfe9b1..d242d71bc1d 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-phone-token.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-phone-token.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create-phone-verification.md b/docs/examples/1.5.x/server-python/examples/account/create-phone-verification.md index ca46b01b828..bb2058eb2a4 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-phone-verification.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-phone-verification.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create-recovery.md b/docs/examples/1.5.x/server-python/examples/account/create-recovery.md index c16be97bf2b..3d215a400e3 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-recovery.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-recovery.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create-session.md b/docs/examples/1.5.x/server-python/examples/account/create-session.md index 118a1ab780f..d00e8cb8998 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-session.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-session.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create-verification.md b/docs/examples/1.5.x/server-python/examples/account/create-verification.md index 6138686978c..329d19e6fdb 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create-verification.md +++ b/docs/examples/1.5.x/server-python/examples/account/create-verification.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create.md b/docs/examples/1.5.x/server-python/examples/account/create.md index d1656976dcc..39b33c62ee1 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create.md +++ b/docs/examples/1.5.x/server-python/examples/account/create.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/create2f-a-challenge.md b/docs/examples/1.5.x/server-python/examples/account/create2f-a-challenge.md index 60141a5634e..38ddec75bee 100644 --- a/docs/examples/1.5.x/server-python/examples/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/server-python/examples/account/create2f-a-challenge.md @@ -2,7 +2,7 @@ from appwrite.client import Client from appwrite.enums import AuthenticationFactor client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/delete-authenticator.md b/docs/examples/1.5.x/server-python/examples/account/delete-authenticator.md index 6539a4faebc..857df4149a7 100644 --- a/docs/examples/1.5.x/server-python/examples/account/delete-authenticator.md +++ b/docs/examples/1.5.x/server-python/examples/account/delete-authenticator.md @@ -2,7 +2,7 @@ from appwrite.client import Client from appwrite.enums import AuthenticatorType client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.5.x/server-python/examples/account/delete-identity.md b/docs/examples/1.5.x/server-python/examples/account/delete-identity.md index 1462fbc7cae..3556122de86 100644 --- a/docs/examples/1.5.x/server-python/examples/account/delete-identity.md +++ b/docs/examples/1.5.x/server-python/examples/account/delete-identity.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-python/examples/account/delete-mfa-authenticator.md index 5deb210d54a..939ea718c74 100644 --- a/docs/examples/1.5.x/server-python/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-python/examples/account/delete-mfa-authenticator.md @@ -1,14 +1,14 @@ from appwrite.client import Client +from appwrite.services.account import Account from appwrite.enums import AuthenticatorType client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) result = account.delete_mfa_authenticator( - type = AuthenticatorType.TOTP, - otp = '<OTP>' + type = AuthenticatorType.TOTP ) diff --git a/docs/examples/1.5.x/server-python/examples/account/delete-session.md b/docs/examples/1.5.x/server-python/examples/account/delete-session.md index 030d69817ad..9ddb4431d34 100644 --- a/docs/examples/1.5.x/server-python/examples/account/delete-session.md +++ b/docs/examples/1.5.x/server-python/examples/account/delete-session.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/delete-sessions.md b/docs/examples/1.5.x/server-python/examples/account/delete-sessions.md index 182c375d5f9..751ab9bb2d6 100644 --- a/docs/examples/1.5.x/server-python/examples/account/delete-sessions.md +++ b/docs/examples/1.5.x/server-python/examples/account/delete-sessions.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-python/examples/account/get-mfa-recovery-codes.md index 123fe4b67f7..f70b9682744 100644 --- a/docs/examples/1.5.x/server-python/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-python/examples/account/get-mfa-recovery-codes.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/get-prefs.md b/docs/examples/1.5.x/server-python/examples/account/get-prefs.md index 102f4dca318..52df6450dc9 100644 --- a/docs/examples/1.5.x/server-python/examples/account/get-prefs.md +++ b/docs/examples/1.5.x/server-python/examples/account/get-prefs.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/get-session.md b/docs/examples/1.5.x/server-python/examples/account/get-session.md index b9483ac2f4c..f38466fb34b 100644 --- a/docs/examples/1.5.x/server-python/examples/account/get-session.md +++ b/docs/examples/1.5.x/server-python/examples/account/get-session.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/get.md b/docs/examples/1.5.x/server-python/examples/account/get.md index cc66fe6024e..b414047e2da 100644 --- a/docs/examples/1.5.x/server-python/examples/account/get.md +++ b/docs/examples/1.5.x/server-python/examples/account/get.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/list-factors.md b/docs/examples/1.5.x/server-python/examples/account/list-factors.md index 5b0c2596bb1..419707efb4c 100644 --- a/docs/examples/1.5.x/server-python/examples/account/list-factors.md +++ b/docs/examples/1.5.x/server-python/examples/account/list-factors.md @@ -1,7 +1,7 @@ from appwrite.client import Client client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.5.x/server-python/examples/account/list-identities.md b/docs/examples/1.5.x/server-python/examples/account/list-identities.md index 3e0d4e024fb..4bf9beb1b24 100644 --- a/docs/examples/1.5.x/server-python/examples/account/list-identities.md +++ b/docs/examples/1.5.x/server-python/examples/account/list-identities.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/list-logs.md b/docs/examples/1.5.x/server-python/examples/account/list-logs.md index 0c0b28aaf0c..5d8c27aded9 100644 --- a/docs/examples/1.5.x/server-python/examples/account/list-logs.md +++ b/docs/examples/1.5.x/server-python/examples/account/list-logs.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/server-python/examples/account/list-mfa-factors.md index 007c23758ba..ba3796bf657 100644 --- a/docs/examples/1.5.x/server-python/examples/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-python/examples/account/list-mfa-factors.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/list-sessions.md b/docs/examples/1.5.x/server-python/examples/account/list-sessions.md index 23398dcbb61..74733138cdd 100644 --- a/docs/examples/1.5.x/server-python/examples/account/list-sessions.md +++ b/docs/examples/1.5.x/server-python/examples/account/list-sessions.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-challenge.md b/docs/examples/1.5.x/server-python/examples/account/update-challenge.md index b9aa1863cc5..5ecdf42679e 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-challenge.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-challenge.md @@ -1,7 +1,7 @@ from appwrite.client import Client client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.5.x/server-python/examples/account/update-email.md b/docs/examples/1.5.x/server-python/examples/account/update-email.md index 353edb0d34a..004d071da1b 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-email.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-email.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-m-f-a.md b/docs/examples/1.5.x/server-python/examples/account/update-m-f-a.md index b59ede8c1a8..2f9321c4856 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-m-f-a.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/server-python/examples/account/update-magic-u-r-l-session.md index 631fac0a052..ca8e8e51a32 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-magic-u-r-l-session.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/server-python/examples/account/update-mfa-authenticator.md index dc9a21f1bb5..a5a951906ce 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-mfa-authenticator.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.account import Account from appwrite.enums import AuthenticatorType client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/server-python/examples/account/update-mfa-challenge.md index 7074e6d4702..d28a2518d7b 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-mfa-challenge.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-python/examples/account/update-mfa-recovery-codes.md index 281d8920ea5..38cb41ca8d1 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-mfa-recovery-codes.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-name.md b/docs/examples/1.5.x/server-python/examples/account/update-name.md index 8e16f498910..9b4bf8291d5 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-name.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-name.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-password.md b/docs/examples/1.5.x/server-python/examples/account/update-password.md index 7d651c22c1a..ecb4228df02 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-password.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-password.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-phone-session.md b/docs/examples/1.5.x/server-python/examples/account/update-phone-session.md index ff0c10dfda4..d29ab28e390 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-phone-session.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-phone-session.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-phone-verification.md b/docs/examples/1.5.x/server-python/examples/account/update-phone-verification.md index adb5b355b2a..e64d79f6bda 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-phone-verification.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-phone-verification.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-phone.md b/docs/examples/1.5.x/server-python/examples/account/update-phone.md index c05bb167935..65a6a387b33 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-phone.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-phone.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-prefs.md b/docs/examples/1.5.x/server-python/examples/account/update-prefs.md index 2c58cca2c43..c3683007b7b 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-prefs.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-recovery.md b/docs/examples/1.5.x/server-python/examples/account/update-recovery.md index 4dca7116187..2493dc5e538 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-recovery.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-recovery.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-session.md b/docs/examples/1.5.x/server-python/examples/account/update-session.md index 006c508198e..ee3a2f7543c 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-session.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-session.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-status.md b/docs/examples/1.5.x/server-python/examples/account/update-status.md index 5c17fa19a33..c8318a43ce2 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-status.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-status.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/update-verification.md b/docs/examples/1.5.x/server-python/examples/account/update-verification.md index 84c8c4bc2bf..63a7f26322c 100644 --- a/docs/examples/1.5.x/server-python/examples/account/update-verification.md +++ b/docs/examples/1.5.x/server-python/examples/account/update-verification.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with account = Account(client) diff --git a/docs/examples/1.5.x/server-python/examples/account/verify-authenticator.md b/docs/examples/1.5.x/server-python/examples/account/verify-authenticator.md index e0a26a37098..9a4e584a472 100644 --- a/docs/examples/1.5.x/server-python/examples/account/verify-authenticator.md +++ b/docs/examples/1.5.x/server-python/examples/account/verify-authenticator.md @@ -2,7 +2,7 @@ from appwrite.client import Client from appwrite.enums import AuthenticatorType client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.5.x/server-python/examples/avatars/get-browser.md b/docs/examples/1.5.x/server-python/examples/avatars/get-browser.md index 1de5eab6c29..7ed831835fb 100644 --- a/docs/examples/1.5.x/server-python/examples/avatars/get-browser.md +++ b/docs/examples/1.5.x/server-python/examples/avatars/get-browser.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.avatars import Avatars from appwrite.enums import Browser client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-python/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/server-python/examples/avatars/get-credit-card.md index 9437ff8ade7..aa66b86b2df 100644 --- a/docs/examples/1.5.x/server-python/examples/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/server-python/examples/avatars/get-credit-card.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.avatars import Avatars from appwrite.enums import CreditCard client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-python/examples/avatars/get-favicon.md b/docs/examples/1.5.x/server-python/examples/avatars/get-favicon.md index 28676965668..2c6a67e2f27 100644 --- a/docs/examples/1.5.x/server-python/examples/avatars/get-favicon.md +++ b/docs/examples/1.5.x/server-python/examples/avatars/get-favicon.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.avatars import Avatars client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-python/examples/avatars/get-flag.md b/docs/examples/1.5.x/server-python/examples/avatars/get-flag.md index 37ac482e96f..435c8550f70 100644 --- a/docs/examples/1.5.x/server-python/examples/avatars/get-flag.md +++ b/docs/examples/1.5.x/server-python/examples/avatars/get-flag.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.avatars import Avatars from appwrite.enums import Flag client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-python/examples/avatars/get-image.md b/docs/examples/1.5.x/server-python/examples/avatars/get-image.md index 00afe0c87d1..ee9e0cb15eb 100644 --- a/docs/examples/1.5.x/server-python/examples/avatars/get-image.md +++ b/docs/examples/1.5.x/server-python/examples/avatars/get-image.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.avatars import Avatars client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-python/examples/avatars/get-initials.md b/docs/examples/1.5.x/server-python/examples/avatars/get-initials.md index 0a20c14b143..edcbbb33ecb 100644 --- a/docs/examples/1.5.x/server-python/examples/avatars/get-initials.md +++ b/docs/examples/1.5.x/server-python/examples/avatars/get-initials.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.avatars import Avatars client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-python/examples/avatars/get-q-r.md b/docs/examples/1.5.x/server-python/examples/avatars/get-q-r.md index bee29f7b26b..7f6da32ddfd 100644 --- a/docs/examples/1.5.x/server-python/examples/avatars/get-q-r.md +++ b/docs/examples/1.5.x/server-python/examples/avatars/get-q-r.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.avatars import Avatars client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/create-boolean-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/create-boolean-attribute.md index bf09562b4c9..2b4209db9de 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/create-boolean-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/create-collection.md b/docs/examples/1.5.x/server-python/examples/databases/create-collection.md index dfe3611ee85..99c44a2f9f4 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/create-collection.md +++ b/docs/examples/1.5.x/server-python/examples/databases/create-collection.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/create-datetime-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/create-datetime-attribute.md index 0b8a555c680..db81c021e27 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/create-datetime-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/create-document.md b/docs/examples/1.5.x/server-python/examples/databases/create-document.md index a4578117c47..22f2c07396e 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/create-document.md +++ b/docs/examples/1.5.x/server-python/examples/databases/create-document.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/create-email-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/create-email-attribute.md index 840e6b53df8..2e28e0bfff8 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/create-email-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/create-email-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/create-enum-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/create-enum-attribute.md index 0e891d51cda..b1efdc7dc3f 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/create-enum-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/create-float-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/create-float-attribute.md index 34fda4ff35d..b36863b8ee1 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/create-float-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/create-float-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/create-index.md b/docs/examples/1.5.x/server-python/examples/databases/create-index.md index 72fe6229d2d..9885c06e959 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/create-index.md +++ b/docs/examples/1.5.x/server-python/examples/databases/create-index.md @@ -1,10 +1,11 @@ from appwrite.client import Client +from appwrite.services.databases import Databases from appwrite.enums import IndexType client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/create-integer-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/create-integer-attribute.md index 057cfb7d3e6..8cb140a7b96 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/create-integer-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/create-ip-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/create-ip-attribute.md index 54e887cbbdd..d4b4ab65283 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/create-ip-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/create-relationship-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/create-relationship-attribute.md index 0d1dbe03164..4172c272493 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/create-relationship-attribute.md @@ -1,10 +1,11 @@ from appwrite.client import Client +from appwrite.services.databases import Databases from appwrite.enums import RelationshipType client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/create-string-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/create-string-attribute.md index c15512acc01..e69687124dc 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/create-string-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/create-string-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/create-url-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/create-url-attribute.md index f77a630b738..4ad03c4010c 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/create-url-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/create-url-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/create.md b/docs/examples/1.5.x/server-python/examples/databases/create.md index 329e6538b1a..d5cbb99eed9 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/create.md +++ b/docs/examples/1.5.x/server-python/examples/databases/create.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/delete-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/delete-attribute.md index 87fcf5722c4..b317ba9dd45 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/delete-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/delete-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/delete-collection.md b/docs/examples/1.5.x/server-python/examples/databases/delete-collection.md index 296c69d23b4..ab274c6bdf0 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/delete-collection.md +++ b/docs/examples/1.5.x/server-python/examples/databases/delete-collection.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/delete-document.md b/docs/examples/1.5.x/server-python/examples/databases/delete-document.md index 3191f10dd6e..69151aad9e2 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/delete-document.md +++ b/docs/examples/1.5.x/server-python/examples/databases/delete-document.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/delete-index.md b/docs/examples/1.5.x/server-python/examples/databases/delete-index.md index bd4fcf5e6b7..2ed0165b36d 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/delete-index.md +++ b/docs/examples/1.5.x/server-python/examples/databases/delete-index.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/delete.md b/docs/examples/1.5.x/server-python/examples/databases/delete.md index 302a6524df2..e7e988a9a55 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/delete.md +++ b/docs/examples/1.5.x/server-python/examples/databases/delete.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/get-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/get-attribute.md index 8316fe79042..a7175526597 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/get-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/get-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/get-collection.md b/docs/examples/1.5.x/server-python/examples/databases/get-collection.md index 7b0c7e4a333..f63298ebedf 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/get-collection.md +++ b/docs/examples/1.5.x/server-python/examples/databases/get-collection.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/get-document.md b/docs/examples/1.5.x/server-python/examples/databases/get-document.md index 978c5a5f6a2..acdc25de7e4 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/get-document.md +++ b/docs/examples/1.5.x/server-python/examples/databases/get-document.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/get-index.md b/docs/examples/1.5.x/server-python/examples/databases/get-index.md index e53878ced5a..ca5a9958ad9 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/get-index.md +++ b/docs/examples/1.5.x/server-python/examples/databases/get-index.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/get.md b/docs/examples/1.5.x/server-python/examples/databases/get.md index b12f7d8ff0e..deadf6ab416 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/get.md +++ b/docs/examples/1.5.x/server-python/examples/databases/get.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/list-attributes.md b/docs/examples/1.5.x/server-python/examples/databases/list-attributes.md index 46283940bc5..245ec60c199 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/list-attributes.md +++ b/docs/examples/1.5.x/server-python/examples/databases/list-attributes.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/list-collections.md b/docs/examples/1.5.x/server-python/examples/databases/list-collections.md index 0ceed95f257..ca182672500 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/list-collections.md +++ b/docs/examples/1.5.x/server-python/examples/databases/list-collections.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/list-documents.md b/docs/examples/1.5.x/server-python/examples/databases/list-documents.md index 08f3c8912f5..41f0380e153 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/list-documents.md +++ b/docs/examples/1.5.x/server-python/examples/databases/list-documents.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/list-indexes.md b/docs/examples/1.5.x/server-python/examples/databases/list-indexes.md index 05a9e15397f..bf18bd1c950 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/list-indexes.md +++ b/docs/examples/1.5.x/server-python/examples/databases/list-indexes.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/list.md b/docs/examples/1.5.x/server-python/examples/databases/list.md index 8ba8b28448e..11669b34530 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/list.md +++ b/docs/examples/1.5.x/server-python/examples/databases/list.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/update-boolean-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/update-boolean-attribute.md index 8cf9bc87d4b..c9300ea57d1 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/update-boolean-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) @@ -12,5 +13,6 @@ result = databases.update_boolean_attribute( collection_id = '<COLLECTION_ID>', key = '', required = False, - default = False + default = False, + new_key = '' # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/databases/update-collection.md b/docs/examples/1.5.x/server-python/examples/databases/update-collection.md index 9f0615fb918..d9297285eea 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/update-collection.md +++ b/docs/examples/1.5.x/server-python/examples/databases/update-collection.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/update-datetime-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/update-datetime-attribute.md index 5541dd47064..96c7fb54397 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/update-datetime-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) @@ -12,5 +13,6 @@ result = databases.update_datetime_attribute( collection_id = '<COLLECTION_ID>', key = '', required = False, - default = '' + default = '', + new_key = '' # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/databases/update-document.md b/docs/examples/1.5.x/server-python/examples/databases/update-document.md index 37c1b433dd9..7b9cce95139 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/update-document.md +++ b/docs/examples/1.5.x/server-python/examples/databases/update-document.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/databases/update-email-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/update-email-attribute.md index cedde9da127..5b042d4b72a 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/update-email-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/update-email-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) @@ -12,5 +13,6 @@ result = databases.update_email_attribute( collection_id = '<COLLECTION_ID>', key = '', required = False, - default = 'email@example.com' + default = 'email@example.com', + new_key = '' # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/databases/update-enum-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/update-enum-attribute.md index 76ede757306..caa1b4ecdb6 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/update-enum-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) @@ -13,5 +14,6 @@ result = databases.update_enum_attribute( key = '', elements = [], required = False, - default = '<DEFAULT>' + default = '<DEFAULT>', + new_key = '' # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/databases/update-float-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/update-float-attribute.md index 1556e03b62f..d16b9bbbebe 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/update-float-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/update-float-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) @@ -12,7 +13,8 @@ result = databases.update_float_attribute( collection_id = '<COLLECTION_ID>', key = '', required = False, - min = None, - max = None, - default = None + default = None, + min = None, # optional + max = None, # optional + new_key = '' # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/databases/update-integer-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/update-integer-attribute.md index 37a87ed7d70..ab0ccd67247 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/update-integer-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) @@ -12,7 +13,8 @@ result = databases.update_integer_attribute( collection_id = '<COLLECTION_ID>', key = '', required = False, - min = None, - max = None, - default = None + default = None, + min = None, # optional + max = None, # optional + new_key = '' # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/databases/update-ip-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/update-ip-attribute.md index d6df600399b..a2b8bad2013 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/update-ip-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) @@ -12,5 +13,6 @@ result = databases.update_ip_attribute( collection_id = '<COLLECTION_ID>', key = '', required = False, - default = '' + default = '', + new_key = '' # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/databases/update-relationship-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/update-relationship-attribute.md index 8c9fb456f07..0aacc139a00 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/update-relationship-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) @@ -11,5 +12,6 @@ result = databases.update_relationship_attribute( database_id = '<DATABASE_ID>', collection_id = '<COLLECTION_ID>', key = '', - on_delete = RelationMutate.CASCADE # optional + on_delete = RelationMutate.CASCADE, # optional + new_key = '' # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/databases/update-string-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/update-string-attribute.md index d765acf4839..c85eb25f59f 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/update-string-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/update-string-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) @@ -12,5 +13,7 @@ result = databases.update_string_attribute( collection_id = '<COLLECTION_ID>', key = '', required = False, - default = '<DEFAULT>' + default = '<DEFAULT>', + size = 1, # optional + new_key = '' # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/databases/update-url-attribute.md b/docs/examples/1.5.x/server-python/examples/databases/update-url-attribute.md index 3a6347c3018..53da6ae45f9 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/update-url-attribute.md +++ b/docs/examples/1.5.x/server-python/examples/databases/update-url-attribute.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) @@ -12,5 +13,6 @@ result = databases.update_url_attribute( collection_id = '<COLLECTION_ID>', key = '', required = False, - default = 'https://example.com' + default = 'https://example.com', + new_key = '' # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/databases/update.md b/docs/examples/1.5.x/server-python/examples/databases/update.md index ab6227f67ec..da59776b3e0 100644 --- a/docs/examples/1.5.x/server-python/examples/databases/update.md +++ b/docs/examples/1.5.x/server-python/examples/databases/update.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/create-build.md b/docs/examples/1.5.x/server-python/examples/functions/create-build.md index f3422f33f7f..ce2ffb72f56 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/create-build.md +++ b/docs/examples/1.5.x/server-python/examples/functions/create-build.md @@ -1,14 +1,15 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) result = functions.create_build( function_id = '<FUNCTION_ID>', deployment_id = '<DEPLOYMENT_ID>', - build_id = '<BUILD_ID>' + build_id = '<BUILD_ID>' # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/functions/create-deployment.md b/docs/examples/1.5.x/server-python/examples/functions/create-deployment.md index 68ae7a96013..c86fdf679dd 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/create-deployment.md +++ b/docs/examples/1.5.x/server-python/examples/functions/create-deployment.md @@ -1,10 +1,11 @@ from appwrite.client import Client +from appwrite.services.functions import Functions from appwrite.input_file import InputFile client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/create-execution.md b/docs/examples/1.5.x/server-python/examples/functions/create-execution.md index 46c64b2ee69..cb3fddd02b3 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/server-python/examples/functions/create-execution.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with functions = Functions(client) @@ -13,5 +14,6 @@ result = functions.create_execution( async = False, # optional path = '<PATH>', # optional method = ExecutionMethod.GET, # optional - headers = {} # optional + headers = {}, # optional + scheduled_at = '' # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/functions/create-variable.md b/docs/examples/1.5.x/server-python/examples/functions/create-variable.md index 6b4e95525db..101ecdf3151 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/create-variable.md +++ b/docs/examples/1.5.x/server-python/examples/functions/create-variable.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/create.md b/docs/examples/1.5.x/server-python/examples/functions/create.md index 76320c2731e..f10a953ca81 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/create.md +++ b/docs/examples/1.5.x/server-python/examples/functions/create.md @@ -1,10 +1,11 @@ from appwrite.client import Client +from appwrite.services.functions import Functions from appwrite.enums import client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) @@ -20,6 +21,7 @@ result = functions.create( logging = False, # optional entrypoint = '<ENTRYPOINT>', # optional commands = '<COMMANDS>', # optional + scopes = [], # optional installation_id = '<INSTALLATION_ID>', # optional provider_repository_id = '<PROVIDER_REPOSITORY_ID>', # optional provider_branch = '<PROVIDER_BRANCH>', # optional @@ -28,5 +30,6 @@ result = functions.create( template_repository = '<TEMPLATE_REPOSITORY>', # optional template_owner = '<TEMPLATE_OWNER>', # optional template_root_directory = '<TEMPLATE_ROOT_DIRECTORY>', # optional - template_branch = '<TEMPLATE_BRANCH>' # optional + template_version = '<TEMPLATE_VERSION>', # optional + specification = '' # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/functions/delete-deployment.md b/docs/examples/1.5.x/server-python/examples/functions/delete-deployment.md index def007ba73b..f98bd60a9b6 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/delete-deployment.md +++ b/docs/examples/1.5.x/server-python/examples/functions/delete-deployment.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) diff --git a/docs/examples/1.6.x/server-python/examples/functions/list-templates.md b/docs/examples/1.5.x/server-python/examples/functions/delete-execution.md similarity index 50% rename from docs/examples/1.6.x/server-python/examples/functions/list-templates.md rename to docs/examples/1.5.x/server-python/examples/functions/delete-execution.md index b3ee38aef7d..b723fd6c47c 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/list-templates.md +++ b/docs/examples/1.5.x/server-python/examples/functions/delete-execution.md @@ -1,14 +1,14 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) -result = functions.list_templates( - runtimes = [], # optional - use_cases = [], # optional - limit = 1, # optional - offset = 0 # optional +result = functions.delete_execution( + function_id = '<FUNCTION_ID>', + execution_id = '<EXECUTION_ID>' ) diff --git a/docs/examples/1.5.x/server-python/examples/functions/delete-variable.md b/docs/examples/1.5.x/server-python/examples/functions/delete-variable.md index 96f1304c945..e17afed3633 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/delete-variable.md +++ b/docs/examples/1.5.x/server-python/examples/functions/delete-variable.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/delete.md b/docs/examples/1.5.x/server-python/examples/functions/delete.md index 7e20857472f..a34d476744d 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/delete.md +++ b/docs/examples/1.5.x/server-python/examples/functions/delete.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/download-deployment.md b/docs/examples/1.5.x/server-python/examples/functions/download-deployment.md index 91c1fac67f0..38ccb1a335c 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-python/examples/functions/download-deployment.md @@ -1,7 +1,7 @@ from appwrite.client import Client client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/download-deployment.md b/docs/examples/1.5.x/server-python/examples/functions/get-deployment-download.md similarity index 78% rename from docs/examples/1.6.x/server-python/examples/functions/download-deployment.md rename to docs/examples/1.5.x/server-python/examples/functions/get-deployment-download.md index f9d395451e9..90f029aff51 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-python/examples/functions/get-deployment-download.md @@ -1,4 +1,5 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint @@ -7,7 +8,7 @@ client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) -result = functions.download_deployment( +result = functions.get_deployment_download( function_id = '<FUNCTION_ID>', deployment_id = '<DEPLOYMENT_ID>' ) diff --git a/docs/examples/1.5.x/server-python/examples/functions/get-deployment.md b/docs/examples/1.5.x/server-python/examples/functions/get-deployment.md index e2b8e3f6cd9..0617b0429cd 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/get-deployment.md +++ b/docs/examples/1.5.x/server-python/examples/functions/get-deployment.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/get-execution.md b/docs/examples/1.5.x/server-python/examples/functions/get-execution.md index 04be41b899e..0a9a3474092 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/server-python/examples/functions/get-execution.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with functions = Functions(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/get-variable.md b/docs/examples/1.5.x/server-python/examples/functions/get-variable.md index 21157003c66..174c8b27bf3 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/get-variable.md +++ b/docs/examples/1.5.x/server-python/examples/functions/get-variable.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/get.md b/docs/examples/1.5.x/server-python/examples/functions/get.md index f6304868875..a463fa6b286 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/get.md +++ b/docs/examples/1.5.x/server-python/examples/functions/get.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/list-deployments.md b/docs/examples/1.5.x/server-python/examples/functions/list-deployments.md index c681463841c..4d8feea9273 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/list-deployments.md +++ b/docs/examples/1.5.x/server-python/examples/functions/list-deployments.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/list-executions.md b/docs/examples/1.5.x/server-python/examples/functions/list-executions.md index 50dc7cb7484..293bab047ac 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/server-python/examples/functions/list-executions.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with functions = Functions(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/list-runtimes.md b/docs/examples/1.5.x/server-python/examples/functions/list-runtimes.md index ae64245d5bc..b6247330d01 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/list-runtimes.md +++ b/docs/examples/1.5.x/server-python/examples/functions/list-runtimes.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) diff --git a/docs/examples/1.6.x/server-python/examples/functions/get-template.md b/docs/examples/1.5.x/server-python/examples/functions/list-specifications.md similarity index 59% rename from docs/examples/1.6.x/server-python/examples/functions/get-template.md rename to docs/examples/1.5.x/server-python/examples/functions/list-specifications.md index bea5b6ab032..5e1ec7fd61d 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/get-template.md +++ b/docs/examples/1.5.x/server-python/examples/functions/list-specifications.md @@ -1,11 +1,11 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) -result = functions.get_template( - template_id = '<TEMPLATE_ID>' -) +result = functions.list_specifications() diff --git a/docs/examples/1.5.x/server-python/examples/functions/list-variables.md b/docs/examples/1.5.x/server-python/examples/functions/list-variables.md index cfd0b644e8e..ee1a516c5e5 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/list-variables.md +++ b/docs/examples/1.5.x/server-python/examples/functions/list-variables.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/list.md b/docs/examples/1.5.x/server-python/examples/functions/list.md index bc4fc218d08..0b5f18d70ab 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/list.md +++ b/docs/examples/1.5.x/server-python/examples/functions/list.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/update-deployment-build.md b/docs/examples/1.5.x/server-python/examples/functions/update-deployment-build.md new file mode 100644 index 00000000000..c69cd7c181f --- /dev/null +++ b/docs/examples/1.5.x/server-python/examples/functions/update-deployment-build.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() +client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions(client) + +result = functions.update_deployment_build( + function_id = '<FUNCTION_ID>', + deployment_id = '<DEPLOYMENT_ID>' +) diff --git a/docs/examples/1.5.x/server-python/examples/functions/update-deployment.md b/docs/examples/1.5.x/server-python/examples/functions/update-deployment.md index 59e183e2512..0f4c96e85c5 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/update-deployment.md +++ b/docs/examples/1.5.x/server-python/examples/functions/update-deployment.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/update-variable.md b/docs/examples/1.5.x/server-python/examples/functions/update-variable.md index 3fb73e0b2ea..bcab3685a20 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/update-variable.md +++ b/docs/examples/1.5.x/server-python/examples/functions/update-variable.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) diff --git a/docs/examples/1.5.x/server-python/examples/functions/update.md b/docs/examples/1.5.x/server-python/examples/functions/update.md index edc1b0c3ffe..a7282412cc5 100644 --- a/docs/examples/1.5.x/server-python/examples/functions/update.md +++ b/docs/examples/1.5.x/server-python/examples/functions/update.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions(client) @@ -19,9 +20,11 @@ result = functions.update( logging = False, # optional entrypoint = '<ENTRYPOINT>', # optional commands = '<COMMANDS>', # optional + scopes = [], # optional installation_id = '<INSTALLATION_ID>', # optional provider_repository_id = '<PROVIDER_REPOSITORY_ID>', # optional provider_branch = '<PROVIDER_BRANCH>', # optional provider_silent_mode = False, # optional - provider_root_directory = '<PROVIDER_ROOT_DIRECTORY>' # optional + provider_root_directory = '<PROVIDER_ROOT_DIRECTORY>', # optional + specification = '' # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/graphql/mutation.md b/docs/examples/1.5.x/server-python/examples/graphql/mutation.md index 3d9ad021395..e05f6027196 100644 --- a/docs/examples/1.5.x/server-python/examples/graphql/mutation.md +++ b/docs/examples/1.5.x/server-python/examples/graphql/mutation.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.graphql import Graphql client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key graphql = Graphql(client) diff --git a/docs/examples/1.5.x/server-python/examples/graphql/query.md b/docs/examples/1.5.x/server-python/examples/graphql/query.md index deb07a882d6..c8f3c78a1ac 100644 --- a/docs/examples/1.5.x/server-python/examples/graphql/query.md +++ b/docs/examples/1.5.x/server-python/examples/graphql/query.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.graphql import Graphql client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key graphql = Graphql(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-antivirus.md b/docs/examples/1.5.x/server-python/examples/health/get-antivirus.md index 5ba219917f4..7bc0475abf6 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-antivirus.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-antivirus.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-cache.md b/docs/examples/1.5.x/server-python/examples/health/get-cache.md index 02b85b3286c..7e69825ecf1 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-cache.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-cache.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-certificate.md b/docs/examples/1.5.x/server-python/examples/health/get-certificate.md index 83018cf1b10..f6a713e2f3a 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-certificate.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-certificate.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-d-b.md b/docs/examples/1.5.x/server-python/examples/health/get-d-b.md index 5446df5b9d7..a23a073ac70 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-d-b.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-d-b.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-failed-jobs.md b/docs/examples/1.5.x/server-python/examples/health/get-failed-jobs.md index ad9f88c25f6..d0fe64f7f31 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-failed-jobs.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-failed-jobs.md @@ -1,10 +1,11 @@ from appwrite.client import Client +from appwrite.services.health import Health from appwrite.enums import client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-pub-sub.md b/docs/examples/1.5.x/server-python/examples/health/get-pub-sub.md index 84ffd974a28..109b2889f69 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-pub-sub.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-pub-sub.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-queue-builds.md b/docs/examples/1.5.x/server-python/examples/health/get-queue-builds.md index b513c2c364a..b1d4d62116a 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-queue-builds.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-queue-builds.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-queue-certificates.md b/docs/examples/1.5.x/server-python/examples/health/get-queue-certificates.md index bbeece17029..99f52b8eda3 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-queue-certificates.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-queue-certificates.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-queue-databases.md b/docs/examples/1.5.x/server-python/examples/health/get-queue-databases.md index 936266c6095..7d5e5a0c58d 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-queue-databases.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-queue-databases.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-queue-deletes.md b/docs/examples/1.5.x/server-python/examples/health/get-queue-deletes.md index b39b445cd13..d677af582e1 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-queue-deletes.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-queue-deletes.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-queue-functions.md b/docs/examples/1.5.x/server-python/examples/health/get-queue-functions.md index a989a6a3970..3ffc4b8f525 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-queue-functions.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-queue-functions.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-queue-logs.md b/docs/examples/1.5.x/server-python/examples/health/get-queue-logs.md index 47a56f7ef06..0cb6417f4f2 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-queue-logs.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-queue-logs.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-queue-mails.md b/docs/examples/1.5.x/server-python/examples/health/get-queue-mails.md index 39fc879aedd..97a501cc1ce 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-queue-mails.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-queue-mails.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-queue-messaging.md b/docs/examples/1.5.x/server-python/examples/health/get-queue-messaging.md index 3862c9ee2ef..ea93eab6dc3 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-queue-messaging.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-queue-messaging.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-queue-migrations.md b/docs/examples/1.5.x/server-python/examples/health/get-queue-migrations.md index 85a5e56544d..09e35dfa9d9 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-queue-migrations.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-queue-migrations.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-queue-stats-resources.md b/docs/examples/1.5.x/server-python/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..3b09342c4bc --- /dev/null +++ b/docs/examples/1.5.x/server-python/examples/health/get-queue-stats-resources.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() +client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health(client) + +result = health.get_queue_stats_resources( + threshold = None # optional +) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-queue-usage-dump.md b/docs/examples/1.5.x/server-python/examples/health/get-queue-usage-dump.md index 2b8e302fd5c..d12e9abe8a0 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-queue-usage-dump.md @@ -1,7 +1,7 @@ from appwrite.client import Client client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-python/examples/health/get-queue-usage.md b/docs/examples/1.5.x/server-python/examples/health/get-queue-usage.md index 42d7281ff92..dbee75fce05 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-queue-usage.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-queue-usage.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-queue-webhooks.md b/docs/examples/1.5.x/server-python/examples/health/get-queue-webhooks.md index 435ba95b3be..1072a20defd 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-queue-webhooks.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-queue.md b/docs/examples/1.5.x/server-python/examples/health/get-queue.md index 81ea4ba6bd5..2b1a03b8a6d 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-queue.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-queue.md @@ -1,7 +1,7 @@ from appwrite.client import Client client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-python/examples/health/get-storage-local.md b/docs/examples/1.5.x/server-python/examples/health/get-storage-local.md index c2624558db6..d3b94b21772 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-storage-local.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-storage-local.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-storage.md b/docs/examples/1.5.x/server-python/examples/health/get-storage.md index ebe83edc287..65af2f959d8 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-storage.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-storage.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get-time.md b/docs/examples/1.5.x/server-python/examples/health/get-time.md index 02405dbd732..d63beb988ba 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get-time.md +++ b/docs/examples/1.5.x/server-python/examples/health/get-time.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/health/get.md b/docs/examples/1.5.x/server-python/examples/health/get.md index 22034e760af..f5c494e12d4 100644 --- a/docs/examples/1.5.x/server-python/examples/health/get.md +++ b/docs/examples/1.5.x/server-python/examples/health/get.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key health = Health(client) diff --git a/docs/examples/1.5.x/server-python/examples/locale/get.md b/docs/examples/1.5.x/server-python/examples/locale/get.md index 8915eb10b30..a44f4974acd 100644 --- a/docs/examples/1.5.x/server-python/examples/locale/get.md +++ b/docs/examples/1.5.x/server-python/examples/locale/get.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with locale = Locale(client) diff --git a/docs/examples/1.5.x/server-python/examples/locale/list-codes.md b/docs/examples/1.5.x/server-python/examples/locale/list-codes.md index 9d2c93905fa..12cd12ee70f 100644 --- a/docs/examples/1.5.x/server-python/examples/locale/list-codes.md +++ b/docs/examples/1.5.x/server-python/examples/locale/list-codes.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with locale = Locale(client) diff --git a/docs/examples/1.5.x/server-python/examples/locale/list-continents.md b/docs/examples/1.5.x/server-python/examples/locale/list-continents.md index fadd5f36fcb..ea4ac5312da 100644 --- a/docs/examples/1.5.x/server-python/examples/locale/list-continents.md +++ b/docs/examples/1.5.x/server-python/examples/locale/list-continents.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with locale = Locale(client) diff --git a/docs/examples/1.5.x/server-python/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/server-python/examples/locale/list-countries-e-u.md index 2f3bd507044..7fb6aaa59ef 100644 --- a/docs/examples/1.5.x/server-python/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/server-python/examples/locale/list-countries-e-u.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with locale = Locale(client) diff --git a/docs/examples/1.5.x/server-python/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/server-python/examples/locale/list-countries-phones.md index 134ddaab172..aafdb3d547c 100644 --- a/docs/examples/1.5.x/server-python/examples/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/server-python/examples/locale/list-countries-phones.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with locale = Locale(client) diff --git a/docs/examples/1.5.x/server-python/examples/locale/list-countries.md b/docs/examples/1.5.x/server-python/examples/locale/list-countries.md index f344cc1098d..a2f1ec458dd 100644 --- a/docs/examples/1.5.x/server-python/examples/locale/list-countries.md +++ b/docs/examples/1.5.x/server-python/examples/locale/list-countries.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with locale = Locale(client) diff --git a/docs/examples/1.5.x/server-python/examples/locale/list-currencies.md b/docs/examples/1.5.x/server-python/examples/locale/list-currencies.md index 19d831f7c2a..39267c663cc 100644 --- a/docs/examples/1.5.x/server-python/examples/locale/list-currencies.md +++ b/docs/examples/1.5.x/server-python/examples/locale/list-currencies.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with locale = Locale(client) diff --git a/docs/examples/1.5.x/server-python/examples/locale/list-languages.md b/docs/examples/1.5.x/server-python/examples/locale/list-languages.md index 6de06d36d88..6dec1b9072b 100644 --- a/docs/examples/1.5.x/server-python/examples/locale/list-languages.md +++ b/docs/examples/1.5.x/server-python/examples/locale/list-languages.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with locale = Locale(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/create-a-p-n-s-provider.md index ad05664cd16..5a08fdeede1 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-a-p-n-s-provider.md @@ -3,7 +3,7 @@ from appwrite.client import Client client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-apns-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/create-apns-provider.md index 287472fa3e4..700e909c44c 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-apns-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-email.md b/docs/examples/1.5.x/server-python/examples/messaging/create-email.md index acca4d5ade3..92353e22c2e 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-email.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-email.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/create-f-c-m-provider.md index b6b2a7b3eda..7619f4d2f2b 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-f-c-m-provider.md @@ -3,7 +3,7 @@ from appwrite.client import Client client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-fcm-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/create-fcm-provider.md index 43c882befa2..d13ba0213d6 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-fcm-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-mailgun-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/create-mailgun-provider.md index 38eb415db77..83899716d70 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-mailgun-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-msg91provider.md b/docs/examples/1.5.x/server-python/examples/messaging/create-msg91provider.md index d11812c8cb5..117c46edcac 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-msg91provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-push.md b/docs/examples/1.5.x/server-python/examples/messaging/create-push.md index 7da7ac75a35..d4051859df9 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-push.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-push.md @@ -1,16 +1,17 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) result = messaging.create_push( message_id = '<MESSAGE_ID>', - title = '<TITLE>', - body = '<BODY>', + title = '<TITLE>', # optional + body = '<BODY>', # optional topics = [], # optional users = [], # optional targets = [], # optional @@ -21,7 +22,10 @@ result = messaging.create_push( sound = '<SOUND>', # optional color = '<COLOR>', # optional tag = '<TAG>', # optional - badge = '<BADGE>', # optional + badge = None, # optional draft = False, # optional - scheduled_at = '' # optional + scheduled_at = '', # optional + content_available = False, # optional + critical = False, # optional + priority = MessagePriority.NORMAL # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-s-m-s.md b/docs/examples/1.5.x/server-python/examples/messaging/create-s-m-s.md index d2eb41a92d7..12d0961e930 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-s-m-s.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-s-m-s.md @@ -3,7 +3,7 @@ from appwrite.client import Client client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/create-s-m-t-p-provider.md index f7af468d9a6..c2832168074 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-s-m-t-p-provider.md @@ -3,7 +3,7 @@ from appwrite.client import Client client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/create-sendgrid-provider.md index e22dad8efe9..5d20cde78d9 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-sendgrid-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-sms.md b/docs/examples/1.5.x/server-python/examples/messaging/create-sms.md index 38c36657fbb..c7e66d8c751 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-sms.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-sms.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-smtp-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/create-smtp-provider.md index b3b299b8ab5..85c58236c05 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-smtp-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/server-python/examples/messaging/create-subscriber.md index d6ffd09c5e4..cb8f4f748d1 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-subscriber.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_jwt('<YOUR_JWT>') # Your secret JSON Web Token messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-telesign-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/create-telesign-provider.md index b1fbab3192b..b602213b784 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-telesign-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-textmagic-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/create-textmagic-provider.md index bd251d9ccfb..03287e8faca 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-textmagic-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-topic.md b/docs/examples/1.5.x/server-python/examples/messaging/create-topic.md index e8532b27c43..4dd16da3f0f 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-topic.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-topic.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-twilio-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/create-twilio-provider.md index 3535fd003b5..524348f0858 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-twilio-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/create-vonage-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/create-vonage-provider.md index 60780969cae..68416bd8c38 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/create-vonage-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/delete-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/delete-provider.md index 58e1684976e..2a1840d64d4 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/delete-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/delete-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/server-python/examples/messaging/delete-subscriber.md index 4988d0696b4..94085ef86b3 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/delete-subscriber.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_jwt('<YOUR_JWT>') # Your secret JSON Web Token messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/delete-topic.md b/docs/examples/1.5.x/server-python/examples/messaging/delete-topic.md index 769df6ee38d..1c2f5635dae 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/delete-topic.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/delete-topic.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/delete.md b/docs/examples/1.5.x/server-python/examples/messaging/delete.md index a25e80b7bdb..aee928a7921 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/delete.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/delete.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/get-message.md b/docs/examples/1.5.x/server-python/examples/messaging/get-message.md index db6506eee96..9e32d806238 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/get-message.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/get-message.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/get-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/get-provider.md index 3e71e95154f..6bc85f2710b 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/get-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/get-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/get-subscriber.md b/docs/examples/1.5.x/server-python/examples/messaging/get-subscriber.md index e8bb0300e46..43185d7eb3e 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/get-subscriber.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/get-subscriber.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/get-topic.md b/docs/examples/1.5.x/server-python/examples/messaging/get-topic.md index a5e9e7b8164..dea6cbfb6b2 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/get-topic.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/get-topic.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/list-message-logs.md b/docs/examples/1.5.x/server-python/examples/messaging/list-message-logs.md index 1cfbb2ea2a6..1c2ab0b035f 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/list-message-logs.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/list-message-logs.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/list-messages.md b/docs/examples/1.5.x/server-python/examples/messaging/list-messages.md index 429273305ac..8457f99ad50 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/list-messages.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/list-messages.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/list-provider-logs.md b/docs/examples/1.5.x/server-python/examples/messaging/list-provider-logs.md index be2f73557d6..c8544fac1e6 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/list-provider-logs.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/list-providers.md b/docs/examples/1.5.x/server-python/examples/messaging/list-providers.md index 477c3b2dc74..258e7cd6e1e 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/list-providers.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/list-providers.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/list-subscriber-logs.md b/docs/examples/1.5.x/server-python/examples/messaging/list-subscriber-logs.md index 744b53ff256..d2049bd560f 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/list-subscriber-logs.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/list-subscribers.md b/docs/examples/1.5.x/server-python/examples/messaging/list-subscribers.md index ec8ef1d4081..ba9e09d8b94 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/list-subscribers.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/list-subscribers.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/list-targets.md b/docs/examples/1.5.x/server-python/examples/messaging/list-targets.md index 7ccc6f95ec3..b941ccbd315 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/list-targets.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/list-targets.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/list-topic-logs.md b/docs/examples/1.5.x/server-python/examples/messaging/list-topic-logs.md index 4813049dfff..57ba7f8d31e 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/list-topic-logs.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/list-topics.md b/docs/examples/1.5.x/server-python/examples/messaging/list-topics.md index 6bae44592f3..cb21567d422 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/list-topics.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/list-topics.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/update-a-p-n-s-provider.md index 02b9dd8d008..73f3d167755 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-a-p-n-s-provider.md @@ -1,7 +1,7 @@ from appwrite.client import Client client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-apns-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/update-apns-provider.md index 4e3f998d8e7..3f0205d4cec 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-apns-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-email.md b/docs/examples/1.5.x/server-python/examples/messaging/update-email.md index a2d2589424f..b8f9d719c10 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-email.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-email.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/update-f-c-m-provider.md index e767772f2c8..1905e17ce66 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-f-c-m-provider.md @@ -1,7 +1,7 @@ from appwrite.client import Client client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-fcm-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/update-fcm-provider.md index d2179b6e438..862e579f531 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-fcm-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-mailgun-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/update-mailgun-provider.md index d04c61756e2..aa1d4e922c8 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-mailgun-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-msg91provider.md b/docs/examples/1.5.x/server-python/examples/messaging/update-msg91provider.md index d13a3871ff3..2d4efdbd781 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-msg91provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-push.md b/docs/examples/1.5.x/server-python/examples/messaging/update-push.md index ff136b940d3..12663533c38 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-push.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-push.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) @@ -23,5 +24,8 @@ result = messaging.update_push( tag = '<TAG>', # optional badge = None, # optional draft = False, # optional - scheduled_at = '' # optional + scheduled_at = '', # optional + content_available = False, # optional + critical = False, # optional + priority = MessagePriority.NORMAL # optional ) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-s-m-s.md b/docs/examples/1.5.x/server-python/examples/messaging/update-s-m-s.md index bb8039a4e88..0b0ac5909dd 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-s-m-s.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-s-m-s.md @@ -3,7 +3,7 @@ from appwrite.client import Client client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/update-s-m-t-p-provider.md index 7faad9eb08d..9475fb8a8de 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-s-m-t-p-provider.md @@ -3,7 +3,7 @@ from appwrite.client import Client client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/update-sendgrid-provider.md index 4d10aad1f2a..e528bd543de 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-sendgrid-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-sms.md b/docs/examples/1.5.x/server-python/examples/messaging/update-sms.md index 4b9319ba6c6..7cb008736ff 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-sms.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-sms.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-smtp-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/update-smtp-provider.md index f3a9b963600..2d798d4e0ee 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-smtp-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-telesign-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/update-telesign-provider.md index 9c3c5bb62af..91de1f155ce 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-telesign-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-textmagic-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/update-textmagic-provider.md index 4da5e71fd5a..c3031047c9e 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-textmagic-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-topic.md b/docs/examples/1.5.x/server-python/examples/messaging/update-topic.md index 73c2c88886c..160ac26b6ba 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-topic.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-topic.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-twilio-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/update-twilio-provider.md index 8461df020b3..865fcb5c1d0 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-twilio-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/messaging/update-vonage-provider.md b/docs/examples/1.5.x/server-python/examples/messaging/update-vonage-provider.md index 32708b01b50..8e01128bf28 100644 --- a/docs/examples/1.5.x/server-python/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.5.x/server-python/examples/messaging/update-vonage-provider.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-python/examples/storage/create-bucket.md b/docs/examples/1.5.x/server-python/examples/storage/create-bucket.md index bbeebf13287..7e321f12a32 100644 --- a/docs/examples/1.5.x/server-python/examples/storage/create-bucket.md +++ b/docs/examples/1.5.x/server-python/examples/storage/create-bucket.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key storage = Storage(client) diff --git a/docs/examples/1.5.x/server-python/examples/storage/create-file.md b/docs/examples/1.5.x/server-python/examples/storage/create-file.md index b8cae35c357..fa0b117b01d 100644 --- a/docs/examples/1.5.x/server-python/examples/storage/create-file.md +++ b/docs/examples/1.5.x/server-python/examples/storage/create-file.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.storage import Storage from appwrite.input_file import InputFile client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with storage = Storage(client) diff --git a/docs/examples/1.5.x/server-python/examples/storage/delete-bucket.md b/docs/examples/1.5.x/server-python/examples/storage/delete-bucket.md index cd008a7bcc0..8cddfb9202d 100644 --- a/docs/examples/1.5.x/server-python/examples/storage/delete-bucket.md +++ b/docs/examples/1.5.x/server-python/examples/storage/delete-bucket.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key storage = Storage(client) diff --git a/docs/examples/1.5.x/server-python/examples/storage/delete-file.md b/docs/examples/1.5.x/server-python/examples/storage/delete-file.md index 69fe398bbfa..08bba5ca4b3 100644 --- a/docs/examples/1.5.x/server-python/examples/storage/delete-file.md +++ b/docs/examples/1.5.x/server-python/examples/storage/delete-file.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with storage = Storage(client) diff --git a/docs/examples/1.5.x/server-python/examples/storage/get-bucket.md b/docs/examples/1.5.x/server-python/examples/storage/get-bucket.md index 8740eb5fa18..79f903f2445 100644 --- a/docs/examples/1.5.x/server-python/examples/storage/get-bucket.md +++ b/docs/examples/1.5.x/server-python/examples/storage/get-bucket.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key storage = Storage(client) diff --git a/docs/examples/1.5.x/server-python/examples/storage/get-file-download.md b/docs/examples/1.5.x/server-python/examples/storage/get-file-download.md index 30fff99e220..1a82b26c703 100644 --- a/docs/examples/1.5.x/server-python/examples/storage/get-file-download.md +++ b/docs/examples/1.5.x/server-python/examples/storage/get-file-download.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with storage = Storage(client) diff --git a/docs/examples/1.5.x/server-python/examples/storage/get-file-preview.md b/docs/examples/1.5.x/server-python/examples/storage/get-file-preview.md index 08dcb47c2dc..40f32f1f10b 100644 --- a/docs/examples/1.5.x/server-python/examples/storage/get-file-preview.md +++ b/docs/examples/1.5.x/server-python/examples/storage/get-file-preview.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with storage = Storage(client) diff --git a/docs/examples/1.5.x/server-python/examples/storage/get-file-view.md b/docs/examples/1.5.x/server-python/examples/storage/get-file-view.md index 6cf8565aacd..3947c76761f 100644 --- a/docs/examples/1.5.x/server-python/examples/storage/get-file-view.md +++ b/docs/examples/1.5.x/server-python/examples/storage/get-file-view.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with storage = Storage(client) diff --git a/docs/examples/1.5.x/server-python/examples/storage/get-file.md b/docs/examples/1.5.x/server-python/examples/storage/get-file.md index f54c7a5c02c..0c2d5e3b2cf 100644 --- a/docs/examples/1.5.x/server-python/examples/storage/get-file.md +++ b/docs/examples/1.5.x/server-python/examples/storage/get-file.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with storage = Storage(client) diff --git a/docs/examples/1.5.x/server-python/examples/storage/list-buckets.md b/docs/examples/1.5.x/server-python/examples/storage/list-buckets.md index 909d6f7db18..88540cd5ceb 100644 --- a/docs/examples/1.5.x/server-python/examples/storage/list-buckets.md +++ b/docs/examples/1.5.x/server-python/examples/storage/list-buckets.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key storage = Storage(client) diff --git a/docs/examples/1.5.x/server-python/examples/storage/list-files.md b/docs/examples/1.5.x/server-python/examples/storage/list-files.md index 73f4a285b8c..e26ac2e5f37 100644 --- a/docs/examples/1.5.x/server-python/examples/storage/list-files.md +++ b/docs/examples/1.5.x/server-python/examples/storage/list-files.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with storage = Storage(client) diff --git a/docs/examples/1.5.x/server-python/examples/storage/update-bucket.md b/docs/examples/1.5.x/server-python/examples/storage/update-bucket.md index 4722284f96b..61388b0923e 100644 --- a/docs/examples/1.5.x/server-python/examples/storage/update-bucket.md +++ b/docs/examples/1.5.x/server-python/examples/storage/update-bucket.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key storage = Storage(client) diff --git a/docs/examples/1.5.x/server-python/examples/storage/update-file.md b/docs/examples/1.5.x/server-python/examples/storage/update-file.md index 0a0b78cc258..336e8a08464 100644 --- a/docs/examples/1.5.x/server-python/examples/storage/update-file.md +++ b/docs/examples/1.5.x/server-python/examples/storage/update-file.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with storage = Storage(client) diff --git a/docs/examples/1.5.x/server-python/examples/teams/create-membership.md b/docs/examples/1.5.x/server-python/examples/teams/create-membership.md index 5be1405b643..1af9f252ab0 100644 --- a/docs/examples/1.5.x/server-python/examples/teams/create-membership.md +++ b/docs/examples/1.5.x/server-python/examples/teams/create-membership.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with teams = Teams(client) diff --git a/docs/examples/1.5.x/server-python/examples/teams/create.md b/docs/examples/1.5.x/server-python/examples/teams/create.md index c305b46b755..7085d396427 100644 --- a/docs/examples/1.5.x/server-python/examples/teams/create.md +++ b/docs/examples/1.5.x/server-python/examples/teams/create.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with teams = Teams(client) diff --git a/docs/examples/1.5.x/server-python/examples/teams/delete-membership.md b/docs/examples/1.5.x/server-python/examples/teams/delete-membership.md index b9f34aa2bdd..adf065cd3c1 100644 --- a/docs/examples/1.5.x/server-python/examples/teams/delete-membership.md +++ b/docs/examples/1.5.x/server-python/examples/teams/delete-membership.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with teams = Teams(client) diff --git a/docs/examples/1.5.x/server-python/examples/teams/delete.md b/docs/examples/1.5.x/server-python/examples/teams/delete.md index 18623d180b0..762f532dbf6 100644 --- a/docs/examples/1.5.x/server-python/examples/teams/delete.md +++ b/docs/examples/1.5.x/server-python/examples/teams/delete.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with teams = Teams(client) diff --git a/docs/examples/1.5.x/server-python/examples/teams/get-membership.md b/docs/examples/1.5.x/server-python/examples/teams/get-membership.md index 06d270a9c90..17bacff1d34 100644 --- a/docs/examples/1.5.x/server-python/examples/teams/get-membership.md +++ b/docs/examples/1.5.x/server-python/examples/teams/get-membership.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with teams = Teams(client) diff --git a/docs/examples/1.5.x/server-python/examples/teams/get-prefs.md b/docs/examples/1.5.x/server-python/examples/teams/get-prefs.md index 046d6385085..035777d5cd9 100644 --- a/docs/examples/1.5.x/server-python/examples/teams/get-prefs.md +++ b/docs/examples/1.5.x/server-python/examples/teams/get-prefs.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with teams = Teams(client) diff --git a/docs/examples/1.5.x/server-python/examples/teams/get.md b/docs/examples/1.5.x/server-python/examples/teams/get.md index ee5fdf6a59e..985924e10bd 100644 --- a/docs/examples/1.5.x/server-python/examples/teams/get.md +++ b/docs/examples/1.5.x/server-python/examples/teams/get.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with teams = Teams(client) diff --git a/docs/examples/1.5.x/server-python/examples/teams/list-memberships.md b/docs/examples/1.5.x/server-python/examples/teams/list-memberships.md index 997a106dd90..885a4c28221 100644 --- a/docs/examples/1.5.x/server-python/examples/teams/list-memberships.md +++ b/docs/examples/1.5.x/server-python/examples/teams/list-memberships.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with teams = Teams(client) diff --git a/docs/examples/1.5.x/server-python/examples/teams/list.md b/docs/examples/1.5.x/server-python/examples/teams/list.md index f066e018941..c92d4c9c13f 100644 --- a/docs/examples/1.5.x/server-python/examples/teams/list.md +++ b/docs/examples/1.5.x/server-python/examples/teams/list.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with teams = Teams(client) diff --git a/docs/examples/1.5.x/server-python/examples/teams/update-membership-status.md b/docs/examples/1.5.x/server-python/examples/teams/update-membership-status.md index 5ab354e93e8..ae6e524da5a 100644 --- a/docs/examples/1.5.x/server-python/examples/teams/update-membership-status.md +++ b/docs/examples/1.5.x/server-python/examples/teams/update-membership-status.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with teams = Teams(client) diff --git a/docs/examples/1.5.x/server-python/examples/teams/update-membership.md b/docs/examples/1.5.x/server-python/examples/teams/update-membership.md index a681533a6b5..c50f345b881 100644 --- a/docs/examples/1.5.x/server-python/examples/teams/update-membership.md +++ b/docs/examples/1.5.x/server-python/examples/teams/update-membership.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with teams = Teams(client) diff --git a/docs/examples/1.5.x/server-python/examples/teams/update-name.md b/docs/examples/1.5.x/server-python/examples/teams/update-name.md index 24305701c8f..d25c8db1f27 100644 --- a/docs/examples/1.5.x/server-python/examples/teams/update-name.md +++ b/docs/examples/1.5.x/server-python/examples/teams/update-name.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with teams = Teams(client) diff --git a/docs/examples/1.5.x/server-python/examples/teams/update-prefs.md b/docs/examples/1.5.x/server-python/examples/teams/update-prefs.md index 27de6470b5f..9eca847a02a 100644 --- a/docs/examples/1.5.x/server-python/examples/teams/update-prefs.md +++ b/docs/examples/1.5.x/server-python/examples/teams/update-prefs.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with teams = Teams(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/create-argon2user.md b/docs/examples/1.5.x/server-python/examples/users/create-argon2user.md index 2317c811004..3d654965732 100644 --- a/docs/examples/1.5.x/server-python/examples/users/create-argon2user.md +++ b/docs/examples/1.5.x/server-python/examples/users/create-argon2user.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/create-bcrypt-user.md b/docs/examples/1.5.x/server-python/examples/users/create-bcrypt-user.md index 7ea2345d804..76532a98f01 100644 --- a/docs/examples/1.5.x/server-python/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.5.x/server-python/examples/users/create-bcrypt-user.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/create-j-w-t.md b/docs/examples/1.5.x/server-python/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..2e1fdf632f9 --- /dev/null +++ b/docs/examples/1.5.x/server-python/examples/users/create-j-w-t.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() +client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users(client) + +result = users.create_jwt( + user_id = '<USER_ID>', + session_id = '<SESSION_ID>', # optional + duration = 0 # optional +) diff --git a/docs/examples/1.5.x/server-python/examples/users/create-m-d5user.md b/docs/examples/1.5.x/server-python/examples/users/create-m-d5user.md index 10b33e56996..da9d471fe2d 100644 --- a/docs/examples/1.5.x/server-python/examples/users/create-m-d5user.md +++ b/docs/examples/1.5.x/server-python/examples/users/create-m-d5user.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-python/examples/users/create-mfa-recovery-codes.md index 35706cc3d9b..a4477b04066 100644 --- a/docs/examples/1.5.x/server-python/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-python/examples/users/create-mfa-recovery-codes.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/create-p-h-pass-user.md b/docs/examples/1.5.x/server-python/examples/users/create-p-h-pass-user.md index 5f923302eee..363be4f92f4 100644 --- a/docs/examples/1.5.x/server-python/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.5.x/server-python/examples/users/create-p-h-pass-user.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/create-s-h-a-user.md b/docs/examples/1.5.x/server-python/examples/users/create-s-h-a-user.md index c4c9a92a231..bb78ff7b5c2 100644 --- a/docs/examples/1.5.x/server-python/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.5.x/server-python/examples/users/create-s-h-a-user.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/create-scrypt-modified-user.md b/docs/examples/1.5.x/server-python/examples/users/create-scrypt-modified-user.md index 321642fc4de..1cfbcfc4b4e 100644 --- a/docs/examples/1.5.x/server-python/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.5.x/server-python/examples/users/create-scrypt-modified-user.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/create-scrypt-user.md b/docs/examples/1.5.x/server-python/examples/users/create-scrypt-user.md index e7da3a54a0a..2d1e72bf77b 100644 --- a/docs/examples/1.5.x/server-python/examples/users/create-scrypt-user.md +++ b/docs/examples/1.5.x/server-python/examples/users/create-scrypt-user.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/create-session.md b/docs/examples/1.5.x/server-python/examples/users/create-session.md index 2440e5040a2..bebd46b022d 100644 --- a/docs/examples/1.5.x/server-python/examples/users/create-session.md +++ b/docs/examples/1.5.x/server-python/examples/users/create-session.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/create-target.md b/docs/examples/1.5.x/server-python/examples/users/create-target.md index 123a092318f..c11c7ca2331 100644 --- a/docs/examples/1.5.x/server-python/examples/users/create-target.md +++ b/docs/examples/1.5.x/server-python/examples/users/create-target.md @@ -1,10 +1,11 @@ from appwrite.client import Client +from appwrite.services.users import Users from appwrite.enums import MessagingProviderType client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/create-token.md b/docs/examples/1.5.x/server-python/examples/users/create-token.md index 27e4f5153ae..00a0e786100 100644 --- a/docs/examples/1.5.x/server-python/examples/users/create-token.md +++ b/docs/examples/1.5.x/server-python/examples/users/create-token.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/create.md b/docs/examples/1.5.x/server-python/examples/users/create.md index 716c4acc569..c8dac9feae2 100644 --- a/docs/examples/1.5.x/server-python/examples/users/create.md +++ b/docs/examples/1.5.x/server-python/examples/users/create.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/delete-authenticator.md b/docs/examples/1.5.x/server-python/examples/users/delete-authenticator.md index b5c5203ee4d..09504848519 100644 --- a/docs/examples/1.5.x/server-python/examples/users/delete-authenticator.md +++ b/docs/examples/1.5.x/server-python/examples/users/delete-authenticator.md @@ -2,7 +2,7 @@ from appwrite.client import Client from appwrite.enums import AuthenticatorType client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-python/examples/users/delete-identity.md b/docs/examples/1.5.x/server-python/examples/users/delete-identity.md index 8e9918f8b34..85c5b6dee33 100644 --- a/docs/examples/1.5.x/server-python/examples/users/delete-identity.md +++ b/docs/examples/1.5.x/server-python/examples/users/delete-identity.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-python/examples/users/delete-mfa-authenticator.md index d4181078c44..b22d3918798 100644 --- a/docs/examples/1.5.x/server-python/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-python/examples/users/delete-mfa-authenticator.md @@ -1,10 +1,11 @@ from appwrite.client import Client +from appwrite.services.users import Users from appwrite.enums import AuthenticatorType client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/delete-session.md b/docs/examples/1.5.x/server-python/examples/users/delete-session.md index b3bdcb24d71..dda5713a9e2 100644 --- a/docs/examples/1.5.x/server-python/examples/users/delete-session.md +++ b/docs/examples/1.5.x/server-python/examples/users/delete-session.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/delete-sessions.md b/docs/examples/1.5.x/server-python/examples/users/delete-sessions.md index 08640f5a231..268c311dd91 100644 --- a/docs/examples/1.5.x/server-python/examples/users/delete-sessions.md +++ b/docs/examples/1.5.x/server-python/examples/users/delete-sessions.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/delete-target.md b/docs/examples/1.5.x/server-python/examples/users/delete-target.md index 5309b17c905..38cc5a9a238 100644 --- a/docs/examples/1.5.x/server-python/examples/users/delete-target.md +++ b/docs/examples/1.5.x/server-python/examples/users/delete-target.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/delete.md b/docs/examples/1.5.x/server-python/examples/users/delete.md index bb73199ad3f..090c20f5a98 100644 --- a/docs/examples/1.5.x/server-python/examples/users/delete.md +++ b/docs/examples/1.5.x/server-python/examples/users/delete.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-python/examples/users/get-mfa-recovery-codes.md index 529346a497f..ec9986ce604 100644 --- a/docs/examples/1.5.x/server-python/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-python/examples/users/get-mfa-recovery-codes.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/get-prefs.md b/docs/examples/1.5.x/server-python/examples/users/get-prefs.md index 34614de240d..eb14d3acb95 100644 --- a/docs/examples/1.5.x/server-python/examples/users/get-prefs.md +++ b/docs/examples/1.5.x/server-python/examples/users/get-prefs.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/get-target.md b/docs/examples/1.5.x/server-python/examples/users/get-target.md index d07591f165a..f549f084505 100644 --- a/docs/examples/1.5.x/server-python/examples/users/get-target.md +++ b/docs/examples/1.5.x/server-python/examples/users/get-target.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/get.md b/docs/examples/1.5.x/server-python/examples/users/get.md index efa59416e70..6e018c2b005 100644 --- a/docs/examples/1.5.x/server-python/examples/users/get.md +++ b/docs/examples/1.5.x/server-python/examples/users/get.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/list-factors.md b/docs/examples/1.5.x/server-python/examples/users/list-factors.md index f30144f38cb..d45661d8ec6 100644 --- a/docs/examples/1.5.x/server-python/examples/users/list-factors.md +++ b/docs/examples/1.5.x/server-python/examples/users/list-factors.md @@ -1,7 +1,7 @@ from appwrite.client import Client client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-python/examples/users/list-identities.md b/docs/examples/1.5.x/server-python/examples/users/list-identities.md index e19a3dd3b42..b10c320cddc 100644 --- a/docs/examples/1.5.x/server-python/examples/users/list-identities.md +++ b/docs/examples/1.5.x/server-python/examples/users/list-identities.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/list-logs.md b/docs/examples/1.5.x/server-python/examples/users/list-logs.md index 54e688616c8..10d8ae0d039 100644 --- a/docs/examples/1.5.x/server-python/examples/users/list-logs.md +++ b/docs/examples/1.5.x/server-python/examples/users/list-logs.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/list-memberships.md b/docs/examples/1.5.x/server-python/examples/users/list-memberships.md index d0de2fbc0d9..fbb3b4c05e6 100644 --- a/docs/examples/1.5.x/server-python/examples/users/list-memberships.md +++ b/docs/examples/1.5.x/server-python/examples/users/list-memberships.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/list-mfa-factors.md b/docs/examples/1.5.x/server-python/examples/users/list-mfa-factors.md index 8092b0fd391..1f40b1f538a 100644 --- a/docs/examples/1.5.x/server-python/examples/users/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-python/examples/users/list-mfa-factors.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/list-providers.md b/docs/examples/1.5.x/server-python/examples/users/list-providers.md index cf95496c3d4..c13ec88462b 100644 --- a/docs/examples/1.5.x/server-python/examples/users/list-providers.md +++ b/docs/examples/1.5.x/server-python/examples/users/list-providers.md @@ -3,7 +3,7 @@ from appwrite.client import Client client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/docs/examples/1.5.x/server-python/examples/users/list-sessions.md b/docs/examples/1.5.x/server-python/examples/users/list-sessions.md index f4a59463f6d..a9eead0d780 100644 --- a/docs/examples/1.5.x/server-python/examples/users/list-sessions.md +++ b/docs/examples/1.5.x/server-python/examples/users/list-sessions.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/list-targets.md b/docs/examples/1.5.x/server-python/examples/users/list-targets.md index 3b1e28b39fb..47666467ff5 100644 --- a/docs/examples/1.5.x/server-python/examples/users/list-targets.md +++ b/docs/examples/1.5.x/server-python/examples/users/list-targets.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/list.md b/docs/examples/1.5.x/server-python/examples/users/list.md index 9dbe774640d..4b09ca5f85d 100644 --- a/docs/examples/1.5.x/server-python/examples/users/list.md +++ b/docs/examples/1.5.x/server-python/examples/users/list.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/update-email-verification.md b/docs/examples/1.5.x/server-python/examples/users/update-email-verification.md index 7c541c9eea1..4623bc34b1b 100644 --- a/docs/examples/1.5.x/server-python/examples/users/update-email-verification.md +++ b/docs/examples/1.5.x/server-python/examples/users/update-email-verification.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/update-email.md b/docs/examples/1.5.x/server-python/examples/users/update-email.md index e1c95ee2899..083715bbfac 100644 --- a/docs/examples/1.5.x/server-python/examples/users/update-email.md +++ b/docs/examples/1.5.x/server-python/examples/users/update-email.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/update-labels.md b/docs/examples/1.5.x/server-python/examples/users/update-labels.md index 2a54e768de3..24c5b270341 100644 --- a/docs/examples/1.5.x/server-python/examples/users/update-labels.md +++ b/docs/examples/1.5.x/server-python/examples/users/update-labels.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-python/examples/users/update-mfa-recovery-codes.md index 5ff7bfe0142..d0e4da4e4a1 100644 --- a/docs/examples/1.5.x/server-python/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-python/examples/users/update-mfa-recovery-codes.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/update-mfa.md b/docs/examples/1.5.x/server-python/examples/users/update-mfa.md index 305566ac68e..efd6730a269 100644 --- a/docs/examples/1.5.x/server-python/examples/users/update-mfa.md +++ b/docs/examples/1.5.x/server-python/examples/users/update-mfa.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/update-name.md b/docs/examples/1.5.x/server-python/examples/users/update-name.md index 17ebfb62cd3..6014ef51a57 100644 --- a/docs/examples/1.5.x/server-python/examples/users/update-name.md +++ b/docs/examples/1.5.x/server-python/examples/users/update-name.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/update-password.md b/docs/examples/1.5.x/server-python/examples/users/update-password.md index 1ee3edb18f7..90ac15f5650 100644 --- a/docs/examples/1.5.x/server-python/examples/users/update-password.md +++ b/docs/examples/1.5.x/server-python/examples/users/update-password.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/update-phone-verification.md b/docs/examples/1.5.x/server-python/examples/users/update-phone-verification.md index 70ce29fa4c4..a62e6a8ceb2 100644 --- a/docs/examples/1.5.x/server-python/examples/users/update-phone-verification.md +++ b/docs/examples/1.5.x/server-python/examples/users/update-phone-verification.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/update-phone.md b/docs/examples/1.5.x/server-python/examples/users/update-phone.md index 10c5e61e544..f5227300035 100644 --- a/docs/examples/1.5.x/server-python/examples/users/update-phone.md +++ b/docs/examples/1.5.x/server-python/examples/users/update-phone.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/update-prefs.md b/docs/examples/1.5.x/server-python/examples/users/update-prefs.md index df773464e47..64d9df39f8a 100644 --- a/docs/examples/1.5.x/server-python/examples/users/update-prefs.md +++ b/docs/examples/1.5.x/server-python/examples/users/update-prefs.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/update-status.md b/docs/examples/1.5.x/server-python/examples/users/update-status.md index 6b8e8b8ddae..8943ef59f5e 100644 --- a/docs/examples/1.5.x/server-python/examples/users/update-status.md +++ b/docs/examples/1.5.x/server-python/examples/users/update-status.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-python/examples/users/update-target.md b/docs/examples/1.5.x/server-python/examples/users/update-target.md index c7ec1a657ef..89513850b09 100644 --- a/docs/examples/1.5.x/server-python/examples/users/update-target.md +++ b/docs/examples/1.5.x/server-python/examples/users/update-target.md @@ -1,9 +1,10 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key users = Users(client) diff --git a/docs/examples/1.5.x/server-rest/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/server-rest/examples/account/create-anonymous-session.md index 6e885831642..c6ea0979117 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/server-rest/examples/account/create-anonymous-session.md @@ -1,6 +1,6 @@ POST /v1/account/sessions/anonymous HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> diff --git a/docs/examples/1.5.x/server-rest/examples/account/create-email-password-session.md b/docs/examples/1.5.x/server-rest/examples/account/create-email-password-session.md index f18903c8b81..3e4485908b2 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/create-email-password-session.md +++ b/docs/examples/1.5.x/server-rest/examples/account/create-email-password-session.md @@ -1,8 +1,8 @@ POST /v1/account/sessions/email HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> { "email": "email@example.com", diff --git a/docs/examples/1.5.x/server-rest/examples/account/create-email-token.md b/docs/examples/1.5.x/server-rest/examples/account/create-email-token.md index f1c96ce045e..a296b5597ee 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/create-email-token.md +++ b/docs/examples/1.5.x/server-rest/examples/account/create-email-token.md @@ -1,8 +1,8 @@ POST /v1/account/tokens/email HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/account/create-j-w-t.md b/docs/examples/1.5.x/server-rest/examples/account/create-j-w-t.md index a7a3f688665..9d225fcfc2a 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/create-j-w-t.md +++ b/docs/examples/1.5.x/server-rest/examples/account/create-j-w-t.md @@ -1,6 +1,6 @@ -POST /v1/account/jwt HTTP/1.1 -Host: cloud.appwrite.io +POST /v1/account/jwts HTTP/1.1 +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> diff --git a/docs/examples/1.5.x/server-rest/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/server-rest/examples/account/create-magic-u-r-l-token.md index cc88e87f9bd..12581613dce 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/server-rest/examples/account/create-magic-u-r-l-token.md @@ -1,8 +1,8 @@ POST /v1/account/tokens/magic-url HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/server-rest/examples/account/create-mfa-authenticator.md index 9273151f902..fef6b8476c9 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-rest/examples/account/create-mfa-authenticator.md @@ -1,8 +1,8 @@ POST /v1/account/mfa/authenticators/{type} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/server-rest/examples/account/create-mfa-challenge.md index d70105084dd..2019a1e52c5 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/server-rest/examples/account/create-mfa-challenge.md @@ -1,8 +1,8 @@ POST /v1/account/mfa/challenge HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> { "factor": "email" diff --git a/docs/examples/1.5.x/server-rest/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-rest/examples/account/create-mfa-recovery-codes.md index f00650d13d3..81e5621ecea 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-rest/examples/account/create-mfa-recovery-codes.md @@ -1,8 +1,8 @@ POST /v1/account/mfa/recovery-codes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/server-rest/examples/account/create-o-auth2token.md index b7c4d078268..f353a881b7b 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/server-rest/examples/account/create-o-auth2token.md @@ -1,6 +1,6 @@ GET /v1/account/tokens/oauth2/{provider} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> diff --git a/docs/examples/1.5.x/server-rest/examples/account/create-phone-token.md b/docs/examples/1.5.x/server-rest/examples/account/create-phone-token.md index d7cdcd50891..45d501a7702 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/create-phone-token.md +++ b/docs/examples/1.5.x/server-rest/examples/account/create-phone-token.md @@ -1,8 +1,8 @@ POST /v1/account/tokens/phone HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/account/create-phone-verification.md b/docs/examples/1.5.x/server-rest/examples/account/create-phone-verification.md index a8bd3ad8bd7..bc2bedb3ec0 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/create-phone-verification.md +++ b/docs/examples/1.5.x/server-rest/examples/account/create-phone-verification.md @@ -1,8 +1,8 @@ POST /v1/account/verification/phone HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/create-recovery.md b/docs/examples/1.5.x/server-rest/examples/account/create-recovery.md index ee811be613d..0c4c0046c29 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/create-recovery.md +++ b/docs/examples/1.5.x/server-rest/examples/account/create-recovery.md @@ -1,10 +1,10 @@ POST /v1/account/recovery HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "email": "email@example.com", diff --git a/docs/examples/1.5.x/server-rest/examples/account/create-session.md b/docs/examples/1.5.x/server-rest/examples/account/create-session.md index 725adf4977c..62c8afeb3d4 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/create-session.md +++ b/docs/examples/1.5.x/server-rest/examples/account/create-session.md @@ -1,8 +1,8 @@ POST /v1/account/sessions/token HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/account/create-verification.md b/docs/examples/1.5.x/server-rest/examples/account/create-verification.md index e440939e8fe..d89b0ccd040 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/create-verification.md +++ b/docs/examples/1.5.x/server-rest/examples/account/create-verification.md @@ -1,10 +1,10 @@ POST /v1/account/verification HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "url": "https://example.com" diff --git a/docs/examples/1.5.x/server-rest/examples/account/create.md b/docs/examples/1.5.x/server-rest/examples/account/create.md index c1a959b43f6..f484be7bbdf 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/create.md +++ b/docs/examples/1.5.x/server-rest/examples/account/create.md @@ -1,8 +1,8 @@ POST /v1/account HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/account/delete-identity.md b/docs/examples/1.5.x/server-rest/examples/account/delete-identity.md index b43c8deafda..dbbceb4036b 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/delete-identity.md +++ b/docs/examples/1.5.x/server-rest/examples/account/delete-identity.md @@ -1,8 +1,8 @@ DELETE /v1/account/identities/{identityId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-rest/examples/account/delete-mfa-authenticator.md index 3d178f6b594..77d8d215ada 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-rest/examples/account/delete-mfa-authenticator.md @@ -1,11 +1,8 @@ DELETE /v1/account/mfa/authenticators/{type} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> -{ - "otp": "<OTP>" -} diff --git a/docs/examples/1.5.x/server-rest/examples/account/delete-session.md b/docs/examples/1.5.x/server-rest/examples/account/delete-session.md index ba75cdd52de..7f839667cb5 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/delete-session.md +++ b/docs/examples/1.5.x/server-rest/examples/account/delete-session.md @@ -1,8 +1,8 @@ DELETE /v1/account/sessions/{sessionId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/delete-sessions.md b/docs/examples/1.5.x/server-rest/examples/account/delete-sessions.md index b6b3ac55271..6f741155cb5 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/delete-sessions.md +++ b/docs/examples/1.5.x/server-rest/examples/account/delete-sessions.md @@ -1,8 +1,8 @@ DELETE /v1/account/sessions HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-rest/examples/account/get-mfa-recovery-codes.md index 095029fc039..7750e99c9df 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-rest/examples/account/get-mfa-recovery-codes.md @@ -1,8 +1,8 @@ GET /v1/account/mfa/recovery-codes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/get-prefs.md b/docs/examples/1.5.x/server-rest/examples/account/get-prefs.md index b240b0c36f8..5d12b5fc062 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/get-prefs.md +++ b/docs/examples/1.5.x/server-rest/examples/account/get-prefs.md @@ -1,8 +1,8 @@ GET /v1/account/prefs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/get-session.md b/docs/examples/1.5.x/server-rest/examples/account/get-session.md index 525008c4061..72494570178 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/get-session.md +++ b/docs/examples/1.5.x/server-rest/examples/account/get-session.md @@ -1,8 +1,8 @@ GET /v1/account/sessions/{sessionId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/get.md b/docs/examples/1.5.x/server-rest/examples/account/get.md index 3318040ddaa..0ff1878deea 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/get.md +++ b/docs/examples/1.5.x/server-rest/examples/account/get.md @@ -1,8 +1,8 @@ GET /v1/account HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/list-identities.md b/docs/examples/1.5.x/server-rest/examples/account/list-identities.md index 52399703502..41aa1dd70cf 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/list-identities.md +++ b/docs/examples/1.5.x/server-rest/examples/account/list-identities.md @@ -1,8 +1,8 @@ GET /v1/account/identities HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/list-logs.md b/docs/examples/1.5.x/server-rest/examples/account/list-logs.md index 9c4a838d5a4..55b5782ae5c 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/list-logs.md +++ b/docs/examples/1.5.x/server-rest/examples/account/list-logs.md @@ -1,8 +1,8 @@ GET /v1/account/logs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/server-rest/examples/account/list-mfa-factors.md index 0fcbebf6620..3e8479aef87 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-rest/examples/account/list-mfa-factors.md @@ -1,8 +1,8 @@ GET /v1/account/mfa/factors HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/list-sessions.md b/docs/examples/1.5.x/server-rest/examples/account/list-sessions.md index fbf968ef86e..89f747387fc 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/list-sessions.md +++ b/docs/examples/1.5.x/server-rest/examples/account/list-sessions.md @@ -1,8 +1,8 @@ GET /v1/account/sessions HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-email.md b/docs/examples/1.5.x/server-rest/examples/account/update-email.md index e5a131b0606..be4709dbc71 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-email.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-email.md @@ -1,10 +1,10 @@ PATCH /v1/account/email HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "email": "email@example.com", diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-m-f-a.md b/docs/examples/1.5.x/server-rest/examples/account/update-m-f-a.md index 49311807e75..c7ef57666ef 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-m-f-a.md @@ -1,10 +1,10 @@ PATCH /v1/account/mfa HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "mfa": false diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/server-rest/examples/account/update-magic-u-r-l-session.md index 5789bc204e8..5ca270cc73a 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-magic-u-r-l-session.md @@ -1,8 +1,8 @@ PUT /v1/account/sessions/magic-url HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/server-rest/examples/account/update-mfa-authenticator.md index a55ba579bc7..68eabe28116 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-mfa-authenticator.md @@ -1,10 +1,10 @@ PUT /v1/account/mfa/authenticators/{type} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "otp": "<OTP>" diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/server-rest/examples/account/update-mfa-challenge.md index 5e50a0e88d3..520b5875625 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-mfa-challenge.md @@ -1,10 +1,10 @@ PUT /v1/account/mfa/challenge HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "challengeId": "<CHALLENGE_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-rest/examples/account/update-mfa-recovery-codes.md index 4ba1cb68569..398d84e4ded 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-mfa-recovery-codes.md @@ -1,8 +1,8 @@ PATCH /v1/account/mfa/recovery-codes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-name.md b/docs/examples/1.5.x/server-rest/examples/account/update-name.md index 40b50e2f0d2..bf7823fab9b 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-name.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-name.md @@ -1,10 +1,10 @@ PATCH /v1/account/name HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "name": "<NAME>" diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-password.md b/docs/examples/1.5.x/server-rest/examples/account/update-password.md index e254c25cd36..eeaf183a149 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-password.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-password.md @@ -1,10 +1,10 @@ PATCH /v1/account/password HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "password": , diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-phone-session.md b/docs/examples/1.5.x/server-rest/examples/account/update-phone-session.md index a9e1a939504..7b62067b9e5 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-phone-session.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-phone-session.md @@ -1,8 +1,8 @@ PUT /v1/account/sessions/phone HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-phone-verification.md b/docs/examples/1.5.x/server-rest/examples/account/update-phone-verification.md index 3ab8ee88715..8050b8ab69b 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-phone-verification.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-phone-verification.md @@ -1,10 +1,10 @@ PUT /v1/account/verification/phone HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-phone.md b/docs/examples/1.5.x/server-rest/examples/account/update-phone.md index b67ed03bea3..0123b564a79 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-phone.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-phone.md @@ -1,10 +1,10 @@ PATCH /v1/account/phone HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "phone": "+12065550100", diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-prefs.md b/docs/examples/1.5.x/server-rest/examples/account/update-prefs.md index 6f7c7308b8d..39a2466ed4a 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-prefs.md @@ -1,10 +1,10 @@ PATCH /v1/account/prefs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "prefs": {} diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-recovery.md b/docs/examples/1.5.x/server-rest/examples/account/update-recovery.md index c0c0bf6c8e0..cf388ea9afe 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-recovery.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-recovery.md @@ -1,10 +1,10 @@ PUT /v1/account/recovery HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-session.md b/docs/examples/1.5.x/server-rest/examples/account/update-session.md index ef778661349..ca04f76e6c0 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-session.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-session.md @@ -1,8 +1,8 @@ PATCH /v1/account/sessions/{sessionId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-status.md b/docs/examples/1.5.x/server-rest/examples/account/update-status.md index 809357b70b3..1f47e378b23 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-status.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-status.md @@ -1,8 +1,8 @@ PATCH /v1/account/status HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/account/update-verification.md b/docs/examples/1.5.x/server-rest/examples/account/update-verification.md index e798222b4aa..2558e5b4ffe 100644 --- a/docs/examples/1.5.x/server-rest/examples/account/update-verification.md +++ b/docs/examples/1.5.x/server-rest/examples/account/update-verification.md @@ -1,10 +1,10 @@ PUT /v1/account/verification HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/avatars/get-browser.md b/docs/examples/1.5.x/server-rest/examples/avatars/get-browser.md index 4f9c11890a6..8dfcd6601c0 100644 --- a/docs/examples/1.5.x/server-rest/examples/avatars/get-browser.md +++ b/docs/examples/1.5.x/server-rest/examples/avatars/get-browser.md @@ -1,9 +1,9 @@ GET /v1/avatars/browsers/{code} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/server-rest/examples/avatars/get-credit-card.md index 0aafd32b77f..672e535947e 100644 --- a/docs/examples/1.5.x/server-rest/examples/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/server-rest/examples/avatars/get-credit-card.md @@ -1,9 +1,9 @@ GET /v1/avatars/credit-cards/{code} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/avatars/get-favicon.md b/docs/examples/1.5.x/server-rest/examples/avatars/get-favicon.md index b4c7c52332a..c696a124663 100644 --- a/docs/examples/1.5.x/server-rest/examples/avatars/get-favicon.md +++ b/docs/examples/1.5.x/server-rest/examples/avatars/get-favicon.md @@ -1,9 +1,9 @@ GET /v1/avatars/favicon HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/avatars/get-flag.md b/docs/examples/1.5.x/server-rest/examples/avatars/get-flag.md index 87b99f4b19c..b991cde06c0 100644 --- a/docs/examples/1.5.x/server-rest/examples/avatars/get-flag.md +++ b/docs/examples/1.5.x/server-rest/examples/avatars/get-flag.md @@ -1,9 +1,9 @@ GET /v1/avatars/flags/{code} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/avatars/get-image.md b/docs/examples/1.5.x/server-rest/examples/avatars/get-image.md index dbb2b011813..16ae4afb8f9 100644 --- a/docs/examples/1.5.x/server-rest/examples/avatars/get-image.md +++ b/docs/examples/1.5.x/server-rest/examples/avatars/get-image.md @@ -1,9 +1,9 @@ GET /v1/avatars/image HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/avatars/get-initials.md b/docs/examples/1.5.x/server-rest/examples/avatars/get-initials.md index 18d76624d69..fa6d69cf98d 100644 --- a/docs/examples/1.5.x/server-rest/examples/avatars/get-initials.md +++ b/docs/examples/1.5.x/server-rest/examples/avatars/get-initials.md @@ -1,9 +1,9 @@ GET /v1/avatars/initials HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/avatars/get-q-r.md b/docs/examples/1.5.x/server-rest/examples/avatars/get-q-r.md index 2c00b19a0ca..e11b23eea91 100644 --- a/docs/examples/1.5.x/server-rest/examples/avatars/get-q-r.md +++ b/docs/examples/1.5.x/server-rest/examples/avatars/get-q-r.md @@ -1,9 +1,9 @@ GET /v1/avatars/qr HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/create-boolean-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/create-boolean-attribute.md index 76d18604f4c..329c4736bc0 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/create-boolean-attribute.md @@ -1,9 +1,9 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/boolean HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "key": , diff --git a/docs/examples/1.5.x/server-rest/examples/databases/create-collection.md b/docs/examples/1.5.x/server-rest/examples/databases/create-collection.md index 1b56150e2f7..67ad310c857 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/create-collection.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/create-collection.md @@ -1,9 +1,9 @@ POST /v1/databases/{databaseId}/collections HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "collectionId": "<COLLECTION_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/databases/create-datetime-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/create-datetime-attribute.md index d9a991c9022..e05713d86c1 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/create-datetime-attribute.md @@ -1,9 +1,9 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/datetime HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "key": , diff --git a/docs/examples/1.5.x/server-rest/examples/databases/create-document.md b/docs/examples/1.5.x/server-rest/examples/databases/create-document.md index f4207eddd34..3dfc27f2a3a 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/create-document.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/create-document.md @@ -1,11 +1,11 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> { "documentId": "<DOCUMENT_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/databases/create-email-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/create-email-attribute.md index ce6bb59dd14..adf2433f379 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/create-email-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/create-email-attribute.md @@ -1,9 +1,9 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/email HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "key": , diff --git a/docs/examples/1.5.x/server-rest/examples/databases/create-enum-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/create-enum-attribute.md index 2b38d865733..4a16c0439e7 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/create-enum-attribute.md @@ -1,9 +1,9 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/enum HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "key": , diff --git a/docs/examples/1.5.x/server-rest/examples/databases/create-float-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/create-float-attribute.md index ccd6e5fbe16..69927412b2c 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/create-float-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/create-float-attribute.md @@ -1,9 +1,9 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/float HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "key": , diff --git a/docs/examples/1.5.x/server-rest/examples/databases/create-index.md b/docs/examples/1.5.x/server-rest/examples/databases/create-index.md index 9719ebf8fbd..2cc17ae7cb3 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/create-index.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/create-index.md @@ -1,9 +1,9 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/indexes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "key": , diff --git a/docs/examples/1.5.x/server-rest/examples/databases/create-integer-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/create-integer-attribute.md index d2bfbf19674..7ed36b82533 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/create-integer-attribute.md @@ -1,9 +1,9 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/integer HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "key": , diff --git a/docs/examples/1.5.x/server-rest/examples/databases/create-ip-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/create-ip-attribute.md index 0f1fae446e7..1ad575ee24b 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/create-ip-attribute.md @@ -1,9 +1,9 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/ip HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "key": , diff --git a/docs/examples/1.5.x/server-rest/examples/databases/create-relationship-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/create-relationship-attribute.md index aaf56bac05e..c3510215486 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/create-relationship-attribute.md @@ -1,9 +1,9 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/relationship HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "relatedCollectionId": "<RELATED_COLLECTION_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/databases/create-string-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/create-string-attribute.md index 7e6e73d1c12..49095885a86 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/create-string-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/create-string-attribute.md @@ -1,9 +1,9 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/string HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "key": , diff --git a/docs/examples/1.5.x/server-rest/examples/databases/create-url-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/create-url-attribute.md index e960ccada5f..050212e3abc 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/create-url-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/create-url-attribute.md @@ -1,9 +1,9 @@ POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/url HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "key": , diff --git a/docs/examples/1.5.x/server-rest/examples/databases/create.md b/docs/examples/1.5.x/server-rest/examples/databases/create.md index 7e00ee2d0bc..5b57073a5c5 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/create.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/create.md @@ -1,9 +1,9 @@ POST /v1/databases HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "databaseId": "<DATABASE_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/databases/delete-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/delete-attribute.md index 11aeaef043f..9cfed13ae1b 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/delete-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/delete-attribute.md @@ -1,7 +1,7 @@ DELETE /v1/databases/{databaseId}/collections/{collectionId}/attributes/{key} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/delete-collection.md b/docs/examples/1.5.x/server-rest/examples/databases/delete-collection.md index 22f3e14e770..a09a008843d 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/delete-collection.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/delete-collection.md @@ -1,7 +1,7 @@ DELETE /v1/databases/{databaseId}/collections/{collectionId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/delete-document.md b/docs/examples/1.5.x/server-rest/examples/databases/delete-document.md index a0311bde528..033b7dcc4ab 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/delete-document.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/delete-document.md @@ -1,9 +1,9 @@ DELETE /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/delete-index.md b/docs/examples/1.5.x/server-rest/examples/databases/delete-index.md index 5b09484459a..6c6db3385f1 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/delete-index.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/delete-index.md @@ -1,7 +1,7 @@ DELETE /v1/databases/{databaseId}/collections/{collectionId}/indexes/{key} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/delete.md b/docs/examples/1.5.x/server-rest/examples/databases/delete.md index 51b6d3c8ce1..32ee4890c6a 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/delete.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/delete.md @@ -1,7 +1,7 @@ DELETE /v1/databases/{databaseId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/get-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/get-attribute.md index 1af8f3e32d4..9327bc1fe3c 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/get-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/get-attribute.md @@ -1,7 +1,7 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/attributes/{key} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/get-collection.md b/docs/examples/1.5.x/server-rest/examples/databases/get-collection.md index 04e1ef3b6c0..bb170d1de2c 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/get-collection.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/get-collection.md @@ -1,7 +1,7 @@ GET /v1/databases/{databaseId}/collections/{collectionId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/get-document.md b/docs/examples/1.5.x/server-rest/examples/databases/get-document.md index 9612b66affa..8321397b82b 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/get-document.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/get-document.md @@ -1,9 +1,9 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/get-index.md b/docs/examples/1.5.x/server-rest/examples/databases/get-index.md index 97822cb3041..f8be405d6e1 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/get-index.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/get-index.md @@ -1,7 +1,7 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/indexes/{key} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/get.md b/docs/examples/1.5.x/server-rest/examples/databases/get.md index f1404f98dfe..3a6ef2d740e 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/get.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/get.md @@ -1,7 +1,7 @@ GET /v1/databases/{databaseId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/list-attributes.md b/docs/examples/1.5.x/server-rest/examples/databases/list-attributes.md index 69747154a28..a9427ad3391 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/list-attributes.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/list-attributes.md @@ -1,7 +1,7 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/attributes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/list-collections.md b/docs/examples/1.5.x/server-rest/examples/databases/list-collections.md index 0153088d35c..4f7cbcb1a6b 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/list-collections.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/list-collections.md @@ -1,7 +1,7 @@ GET /v1/databases/{databaseId}/collections HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/list-documents.md b/docs/examples/1.5.x/server-rest/examples/databases/list-documents.md index 44c6ddad4c4..047e6dfd21a 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/list-documents.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/list-documents.md @@ -1,9 +1,9 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/list-indexes.md b/docs/examples/1.5.x/server-rest/examples/databases/list-indexes.md index 6128a67de9b..e5f503d043b 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/list-indexes.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/list-indexes.md @@ -1,7 +1,7 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/indexes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/list.md b/docs/examples/1.5.x/server-rest/examples/databases/list.md index 087c332105d..63cb6fcf86c 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/list.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/list.md @@ -1,7 +1,7 @@ GET /v1/databases HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/databases/update-boolean-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/update-boolean-attribute.md index b30dffb1ba0..cb8b8cc456b 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/update-boolean-attribute.md @@ -1,11 +1,12 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/boolean/{key} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "required": false, - "default": false + "default": false, + "newKey": } diff --git a/docs/examples/1.5.x/server-rest/examples/databases/update-collection.md b/docs/examples/1.5.x/server-rest/examples/databases/update-collection.md index 0c75605d828..8d2d5468e44 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/update-collection.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/update-collection.md @@ -1,9 +1,9 @@ PUT /v1/databases/{databaseId}/collections/{collectionId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/server-rest/examples/databases/update-datetime-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/update-datetime-attribute.md index 9fbf82ec755..1a99d4d4dcc 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/update-datetime-attribute.md @@ -1,11 +1,12 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/datetime/{key} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "required": false, - "default": + "default": , + "newKey": } diff --git a/docs/examples/1.5.x/server-rest/examples/databases/update-document.md b/docs/examples/1.5.x/server-rest/examples/databases/update-document.md index 47b3c11827a..74108cefadb 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/update-document.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/update-document.md @@ -1,11 +1,11 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> { "data": {}, diff --git a/docs/examples/1.5.x/server-rest/examples/databases/update-email-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/update-email-attribute.md index 8e2e745a2d2..0d411b1146a 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/update-email-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/update-email-attribute.md @@ -1,11 +1,12 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/email/{key} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "required": false, - "default": "email@example.com" + "default": "email@example.com", + "newKey": } diff --git a/docs/examples/1.5.x/server-rest/examples/databases/update-enum-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/update-enum-attribute.md index 82f14405f59..e2fb151bfc3 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/update-enum-attribute.md @@ -1,12 +1,13 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/enum/{key} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "elements": [], "required": false, - "default": "<DEFAULT>" + "default": "<DEFAULT>", + "newKey": } diff --git a/docs/examples/1.5.x/server-rest/examples/databases/update-float-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/update-float-attribute.md index 0845a06c19e..76241850b6b 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/update-float-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/update-float-attribute.md @@ -1,13 +1,14 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/float/{key} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "required": false, "min": 0, "max": 0, - "default": 0 + "default": 0, + "newKey": } diff --git a/docs/examples/1.5.x/server-rest/examples/databases/update-integer-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/update-integer-attribute.md index 953449ca30d..19707ef4fd9 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/update-integer-attribute.md @@ -1,13 +1,14 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/integer/{key} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "required": false, "min": 0, "max": 0, - "default": 0 + "default": 0, + "newKey": } diff --git a/docs/examples/1.5.x/server-rest/examples/databases/update-ip-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/update-ip-attribute.md index abcbec9b384..9abf54069c9 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/update-ip-attribute.md @@ -1,11 +1,12 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/ip/{key} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "required": false, - "default": + "default": , + "newKey": } diff --git a/docs/examples/1.5.x/server-rest/examples/databases/update-relationship-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/update-relationship-attribute.md index 214a8db45c6..dd12556c928 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/update-relationship-attribute.md @@ -1,10 +1,11 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/{key}/relationship HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { - "onDelete": "cascade" + "onDelete": "cascade", + "newKey": } diff --git a/docs/examples/1.5.x/server-rest/examples/databases/update-string-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/update-string-attribute.md index 3df5ae95653..e64833d2a6b 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/update-string-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/update-string-attribute.md @@ -1,11 +1,13 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/string/{key} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "required": false, - "default": "<DEFAULT>" + "default": "<DEFAULT>", + "size": 1, + "newKey": } diff --git a/docs/examples/1.5.x/server-rest/examples/databases/update-url-attribute.md b/docs/examples/1.5.x/server-rest/examples/databases/update-url-attribute.md index 5e4544511aa..562ea1624f6 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/update-url-attribute.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/update-url-attribute.md @@ -1,11 +1,12 @@ PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/url/{key} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "required": false, - "default": "https://example.com" + "default": "https://example.com", + "newKey": } diff --git a/docs/examples/1.5.x/server-rest/examples/databases/update.md b/docs/examples/1.5.x/server-rest/examples/databases/update.md index ba142d80a33..9eaca1a9481 100644 --- a/docs/examples/1.5.x/server-rest/examples/databases/update.md +++ b/docs/examples/1.5.x/server-rest/examples/databases/update.md @@ -1,9 +1,9 @@ PUT /v1/databases/{databaseId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/server-rest/examples/functions/create-build.md b/docs/examples/1.5.x/server-rest/examples/functions/create-build.md index e0cee7e41a9..ca474f32d8d 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/create-build.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/create-build.md @@ -1,7 +1,10 @@ -POST /v1/functions/{functionId}/deployments/{deploymentId}/builds/{buildId} HTTP/1.1 -Host: cloud.appwrite.io +POST /v1/functions/{functionId}/deployments/{deploymentId}/build HTTP/1.1 +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> +{ + "buildId": "<BUILD_ID>" +} diff --git a/docs/examples/1.5.x/server-rest/examples/functions/create-deployment.md b/docs/examples/1.5.x/server-rest/examples/functions/create-deployment.md index dc553a3967c..82900f78449 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/create-deployment.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/create-deployment.md @@ -1,9 +1,9 @@ POST /v1/functions/{functionId}/deployments HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> Content-Length: *Length of your entity body in bytes* --cec8e8123c05ba25 diff --git a/docs/examples/1.5.x/server-rest/examples/functions/create-execution.md b/docs/examples/1.5.x/server-rest/examples/functions/create-execution.md index 775d4c1fc22..708ee0d7481 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/create-execution.md @@ -1,16 +1,17 @@ POST /v1/functions/{functionId}/executions HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> { "body": "<BODY>", "async": false, "path": "<PATH>", "method": "GET", - "headers": {} + "headers": {}, + "scheduledAt": } diff --git a/docs/examples/1.5.x/server-rest/examples/functions/create-variable.md b/docs/examples/1.5.x/server-rest/examples/functions/create-variable.md index 4e9a88290f0..8a0606fca11 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/create-variable.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/create-variable.md @@ -1,9 +1,9 @@ POST /v1/functions/{functionId}/variables HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "key": "<KEY>", diff --git a/docs/examples/1.5.x/server-rest/examples/functions/create.md b/docs/examples/1.5.x/server-rest/examples/functions/create.md index b19f7807098..057907719a9 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/create.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/create.md @@ -1,9 +1,9 @@ POST /v1/functions HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "functionId": "<FUNCTION_ID>", @@ -17,6 +17,7 @@ X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 "logging": false, "entrypoint": "<ENTRYPOINT>", "commands": "<COMMANDS>", + "scopes": [], "installationId": "<INSTALLATION_ID>", "providerRepositoryId": "<PROVIDER_REPOSITORY_ID>", "providerBranch": "<PROVIDER_BRANCH>", @@ -25,5 +26,6 @@ X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 "templateRepository": "<TEMPLATE_REPOSITORY>", "templateOwner": "<TEMPLATE_OWNER>", "templateRootDirectory": "<TEMPLATE_ROOT_DIRECTORY>", - "templateBranch": "<TEMPLATE_BRANCH>" + "templateVersion": "<TEMPLATE_VERSION>", + "specification": } diff --git a/docs/examples/1.5.x/server-rest/examples/functions/delete-deployment.md b/docs/examples/1.5.x/server-rest/examples/functions/delete-deployment.md index a3d61934208..be871448048 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/delete-deployment.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/delete-deployment.md @@ -1,7 +1,7 @@ DELETE /v1/functions/{functionId}/deployments/{deploymentId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/functions/delete-execution.md b/docs/examples/1.5.x/server-rest/examples/functions/delete-execution.md new file mode 100644 index 00000000000..78b94d2fbcb --- /dev/null +++ b/docs/examples/1.5.x/server-rest/examples/functions/delete-execution.md @@ -0,0 +1,7 @@ +DELETE /v1/functions/{functionId}/executions/{executionId} HTTP/1.1 +Host: <REGION>.cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.5.x/server-rest/examples/functions/delete-variable.md b/docs/examples/1.5.x/server-rest/examples/functions/delete-variable.md index a56fb68f1fe..55280b57eef 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/delete-variable.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/delete-variable.md @@ -1,7 +1,7 @@ DELETE /v1/functions/{functionId}/variables/{variableId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/functions/delete.md b/docs/examples/1.5.x/server-rest/examples/functions/delete.md index cfd32f14b31..ea574b2d4ce 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/delete.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/delete.md @@ -1,7 +1,7 @@ DELETE /v1/functions/{functionId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.6.x/client-rest/examples/functions/get-deployment-download.md b/docs/examples/1.5.x/server-rest/examples/functions/get-deployment-download.md similarity index 74% rename from docs/examples/1.6.x/client-rest/examples/functions/get-deployment-download.md rename to docs/examples/1.5.x/server-rest/examples/functions/get-deployment-download.md index 0f6166b77fa..37321ee2ad0 100644 --- a/docs/examples/1.6.x/client-rest/examples/functions/get-deployment-download.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/get-deployment-download.md @@ -1,8 +1,8 @@ GET /v1/functions/{functionId}/deployments/{deploymentId}/download HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/functions/get-deployment.md b/docs/examples/1.5.x/server-rest/examples/functions/get-deployment.md index 4677fc1dd46..1f5108659c8 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/get-deployment.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/get-deployment.md @@ -1,7 +1,7 @@ GET /v1/functions/{functionId}/deployments/{deploymentId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/functions/get-execution.md b/docs/examples/1.5.x/server-rest/examples/functions/get-execution.md index 69f8e766fae..8013646ef28 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/get-execution.md @@ -1,9 +1,9 @@ GET /v1/functions/{functionId}/executions/{executionId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/functions/get-variable.md b/docs/examples/1.5.x/server-rest/examples/functions/get-variable.md index 344af84b7ee..a31cd5b9eaf 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/get-variable.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/get-variable.md @@ -1,7 +1,7 @@ GET /v1/functions/{functionId}/variables/{variableId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/functions/get.md b/docs/examples/1.5.x/server-rest/examples/functions/get.md index 729f22b4dd2..89cd27e80b6 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/get.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/get.md @@ -1,7 +1,7 @@ GET /v1/functions/{functionId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/functions/list-deployments.md b/docs/examples/1.5.x/server-rest/examples/functions/list-deployments.md index 8284adca50a..ab7bd74e190 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/list-deployments.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/list-deployments.md @@ -1,7 +1,7 @@ GET /v1/functions/{functionId}/deployments HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/functions/list-executions.md b/docs/examples/1.5.x/server-rest/examples/functions/list-executions.md index 58daa1edaef..3f6c95faf3d 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/list-executions.md @@ -1,9 +1,9 @@ GET /v1/functions/{functionId}/executions HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/functions/list-runtimes.md b/docs/examples/1.5.x/server-rest/examples/functions/list-runtimes.md index 2b6e4ed3e84..f583a77aaa8 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/list-runtimes.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/list-runtimes.md @@ -1,7 +1,7 @@ GET /v1/functions/runtimes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/functions/list-specifications.md b/docs/examples/1.5.x/server-rest/examples/functions/list-specifications.md new file mode 100644 index 00000000000..b71075fcaee --- /dev/null +++ b/docs/examples/1.5.x/server-rest/examples/functions/list-specifications.md @@ -0,0 +1,7 @@ +GET /v1/functions/specifications HTTP/1.1 +Host: <REGION>.cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.5.x/server-rest/examples/functions/list-variables.md b/docs/examples/1.5.x/server-rest/examples/functions/list-variables.md index 38003de08c4..094eed9938b 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/list-variables.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/list-variables.md @@ -1,7 +1,7 @@ GET /v1/functions/{functionId}/variables HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/functions/list.md b/docs/examples/1.5.x/server-rest/examples/functions/list.md index 4f1c89e8179..73817aafb21 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/list.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/list.md @@ -1,7 +1,7 @@ GET /v1/functions HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/functions/update-deployment-build.md b/docs/examples/1.5.x/server-rest/examples/functions/update-deployment-build.md new file mode 100644 index 00000000000..4621fdc97a4 --- /dev/null +++ b/docs/examples/1.5.x/server-rest/examples/functions/update-deployment-build.md @@ -0,0 +1,7 @@ +PATCH /v1/functions/{functionId}/deployments/{deploymentId}/build HTTP/1.1 +Host: <REGION>.cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.5.x/server-rest/examples/functions/update-deployment.md b/docs/examples/1.5.x/server-rest/examples/functions/update-deployment.md index 1f7bdb38ff4..30c68f7b86d 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/update-deployment.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/update-deployment.md @@ -1,7 +1,7 @@ PATCH /v1/functions/{functionId}/deployments/{deploymentId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/functions/update-variable.md b/docs/examples/1.5.x/server-rest/examples/functions/update-variable.md index a90e728471a..64975d69531 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/update-variable.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/update-variable.md @@ -1,9 +1,9 @@ PUT /v1/functions/{functionId}/variables/{variableId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "key": "<KEY>", diff --git a/docs/examples/1.5.x/server-rest/examples/functions/update.md b/docs/examples/1.5.x/server-rest/examples/functions/update.md index 8bf01a4c545..873a98faecc 100644 --- a/docs/examples/1.5.x/server-rest/examples/functions/update.md +++ b/docs/examples/1.5.x/server-rest/examples/functions/update.md @@ -1,9 +1,9 @@ PUT /v1/functions/{functionId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>", @@ -16,9 +16,11 @@ X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 "logging": false, "entrypoint": "<ENTRYPOINT>", "commands": "<COMMANDS>", + "scopes": [], "installationId": "<INSTALLATION_ID>", "providerRepositoryId": "<PROVIDER_REPOSITORY_ID>", "providerBranch": "<PROVIDER_BRANCH>", "providerSilentMode": false, - "providerRootDirectory": "<PROVIDER_ROOT_DIRECTORY>" + "providerRootDirectory": "<PROVIDER_ROOT_DIRECTORY>", + "specification": } diff --git a/docs/examples/1.5.x/server-rest/examples/graphql/mutation.md b/docs/examples/1.5.x/server-rest/examples/graphql/mutation.md index 096eef10111..4004e7c3ffc 100644 --- a/docs/examples/1.5.x/server-rest/examples/graphql/mutation.md +++ b/docs/examples/1.5.x/server-rest/examples/graphql/mutation.md @@ -1,12 +1,12 @@ POST /v1/graphql/mutation HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io X-Sdk-Graphql: true Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "query": {} diff --git a/docs/examples/1.5.x/server-rest/examples/graphql/query.md b/docs/examples/1.5.x/server-rest/examples/graphql/query.md index 707adc117ea..bcf4e56c849 100644 --- a/docs/examples/1.5.x/server-rest/examples/graphql/query.md +++ b/docs/examples/1.5.x/server-rest/examples/graphql/query.md @@ -1,12 +1,12 @@ POST /v1/graphql HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io X-Sdk-Graphql: true Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "query": {} diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-antivirus.md b/docs/examples/1.5.x/server-rest/examples/health/get-antivirus.md index b18b71819c2..0e9957b1f2f 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-antivirus.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-antivirus.md @@ -1,7 +1,7 @@ GET /v1/health/anti-virus HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-cache.md b/docs/examples/1.5.x/server-rest/examples/health/get-cache.md index 80efc5e289f..475daca98d5 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-cache.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-cache.md @@ -1,7 +1,7 @@ GET /v1/health/cache HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-certificate.md b/docs/examples/1.5.x/server-rest/examples/health/get-certificate.md index 86cc98cd262..34614428dd8 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-certificate.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-certificate.md @@ -1,7 +1,7 @@ GET /v1/health/certificate HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-d-b.md b/docs/examples/1.5.x/server-rest/examples/health/get-d-b.md index 173c8c6e7ed..6ac45185261 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-d-b.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-d-b.md @@ -1,7 +1,7 @@ GET /v1/health/db HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-failed-jobs.md b/docs/examples/1.5.x/server-rest/examples/health/get-failed-jobs.md index 8b0a02c5526..0cf2048ec8e 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-failed-jobs.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-failed-jobs.md @@ -1,7 +1,7 @@ GET /v1/health/queue/failed/{name} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-pub-sub.md b/docs/examples/1.5.x/server-rest/examples/health/get-pub-sub.md index 58916feeee3..ea06b06e27e 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-pub-sub.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-pub-sub.md @@ -1,7 +1,7 @@ GET /v1/health/pubsub HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-queue-builds.md b/docs/examples/1.5.x/server-rest/examples/health/get-queue-builds.md index 538b0b9c338..ba0ba562416 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-queue-builds.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-queue-builds.md @@ -1,7 +1,7 @@ GET /v1/health/queue/builds HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-queue-certificates.md b/docs/examples/1.5.x/server-rest/examples/health/get-queue-certificates.md index 059775c0fea..9a7e4172300 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-queue-certificates.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-queue-certificates.md @@ -1,7 +1,7 @@ GET /v1/health/queue/certificates HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-queue-databases.md b/docs/examples/1.5.x/server-rest/examples/health/get-queue-databases.md index cecfcdb335a..f805b8c2316 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-queue-databases.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-queue-databases.md @@ -1,7 +1,7 @@ GET /v1/health/queue/databases HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-queue-deletes.md b/docs/examples/1.5.x/server-rest/examples/health/get-queue-deletes.md index 38f01dbaf1b..6f0cfef1290 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-queue-deletes.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-queue-deletes.md @@ -1,7 +1,7 @@ GET /v1/health/queue/deletes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-queue-functions.md b/docs/examples/1.5.x/server-rest/examples/health/get-queue-functions.md index d697c0815ba..1c0778aef3c 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-queue-functions.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-queue-functions.md @@ -1,7 +1,7 @@ GET /v1/health/queue/functions HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-queue-logs.md b/docs/examples/1.5.x/server-rest/examples/health/get-queue-logs.md index a6fa176d6b3..e8355ae4811 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-queue-logs.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-queue-logs.md @@ -1,7 +1,7 @@ GET /v1/health/queue/logs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-queue-mails.md b/docs/examples/1.5.x/server-rest/examples/health/get-queue-mails.md index 0cf720c5548..667dc1dd26f 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-queue-mails.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-queue-mails.md @@ -1,7 +1,7 @@ GET /v1/health/queue/mails HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-queue-messaging.md b/docs/examples/1.5.x/server-rest/examples/health/get-queue-messaging.md index 584a57062d5..4c2e744123c 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-queue-messaging.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-queue-messaging.md @@ -1,7 +1,7 @@ GET /v1/health/queue/messaging HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-queue-migrations.md b/docs/examples/1.5.x/server-rest/examples/health/get-queue-migrations.md index 974c0ff4f16..ffbc4de372f 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-queue-migrations.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-queue-migrations.md @@ -1,7 +1,7 @@ GET /v1/health/queue/migrations HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-queue-stats-resources.md b/docs/examples/1.5.x/server-rest/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..b9b3da19857 --- /dev/null +++ b/docs/examples/1.5.x/server-rest/examples/health/get-queue-stats-resources.md @@ -0,0 +1,7 @@ +GET /v1/health/queue/stats-resources HTTP/1.1 +Host: <REGION>.cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-queue-usage.md b/docs/examples/1.5.x/server-rest/examples/health/get-queue-usage.md index a14be91a496..ef71659392a 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-queue-usage.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-queue-usage.md @@ -1,7 +1,7 @@ -GET /v1/health/queue/usage HTTP/1.1 -Host: cloud.appwrite.io +GET /v1/health/queue/stats-usage HTTP/1.1 +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-queue-webhooks.md b/docs/examples/1.5.x/server-rest/examples/health/get-queue-webhooks.md index 26e86bd3a5c..cc69225d987 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-queue-webhooks.md @@ -1,7 +1,7 @@ GET /v1/health/queue/webhooks HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-storage-local.md b/docs/examples/1.5.x/server-rest/examples/health/get-storage-local.md index 082ecea1dbe..47762ff360b 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-storage-local.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-storage-local.md @@ -1,7 +1,7 @@ GET /v1/health/storage/local HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-storage.md b/docs/examples/1.5.x/server-rest/examples/health/get-storage.md index b7d80d1ac4e..60c5b1f52a4 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-storage.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-storage.md @@ -1,7 +1,7 @@ GET /v1/health/storage HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get-time.md b/docs/examples/1.5.x/server-rest/examples/health/get-time.md index 7aa66a63e1e..6865f00a70a 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get-time.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get-time.md @@ -1,7 +1,7 @@ GET /v1/health/time HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/health/get.md b/docs/examples/1.5.x/server-rest/examples/health/get.md index 5a572c60d13..65dde394f6a 100644 --- a/docs/examples/1.5.x/server-rest/examples/health/get.md +++ b/docs/examples/1.5.x/server-rest/examples/health/get.md @@ -1,7 +1,7 @@ GET /v1/health HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/locale/get.md b/docs/examples/1.5.x/server-rest/examples/locale/get.md index b1362c3dd70..6f5d23b2b74 100644 --- a/docs/examples/1.5.x/server-rest/examples/locale/get.md +++ b/docs/examples/1.5.x/server-rest/examples/locale/get.md @@ -1,9 +1,9 @@ GET /v1/locale HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/locale/list-codes.md b/docs/examples/1.5.x/server-rest/examples/locale/list-codes.md index 7954d3f8b27..536c2f9375d 100644 --- a/docs/examples/1.5.x/server-rest/examples/locale/list-codes.md +++ b/docs/examples/1.5.x/server-rest/examples/locale/list-codes.md @@ -1,9 +1,9 @@ GET /v1/locale/codes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/locale/list-continents.md b/docs/examples/1.5.x/server-rest/examples/locale/list-continents.md index 613ca7aff2b..a4c02757ef9 100644 --- a/docs/examples/1.5.x/server-rest/examples/locale/list-continents.md +++ b/docs/examples/1.5.x/server-rest/examples/locale/list-continents.md @@ -1,9 +1,9 @@ GET /v1/locale/continents HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/server-rest/examples/locale/list-countries-e-u.md index 9f92b563a63..f581f5251a7 100644 --- a/docs/examples/1.5.x/server-rest/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/server-rest/examples/locale/list-countries-e-u.md @@ -1,9 +1,9 @@ GET /v1/locale/countries/eu HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/server-rest/examples/locale/list-countries-phones.md index 6ab1c478d63..9802b4e8b5e 100644 --- a/docs/examples/1.5.x/server-rest/examples/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/server-rest/examples/locale/list-countries-phones.md @@ -1,9 +1,9 @@ GET /v1/locale/countries/phones HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/locale/list-countries.md b/docs/examples/1.5.x/server-rest/examples/locale/list-countries.md index c553e9b49cf..9a23a0849c7 100644 --- a/docs/examples/1.5.x/server-rest/examples/locale/list-countries.md +++ b/docs/examples/1.5.x/server-rest/examples/locale/list-countries.md @@ -1,9 +1,9 @@ GET /v1/locale/countries HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/locale/list-currencies.md b/docs/examples/1.5.x/server-rest/examples/locale/list-currencies.md index f8cfc778bfe..da625de369f 100644 --- a/docs/examples/1.5.x/server-rest/examples/locale/list-currencies.md +++ b/docs/examples/1.5.x/server-rest/examples/locale/list-currencies.md @@ -1,9 +1,9 @@ GET /v1/locale/currencies HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/locale/list-languages.md b/docs/examples/1.5.x/server-rest/examples/locale/list-languages.md index fd02f64b0a8..3e258e13311 100644 --- a/docs/examples/1.5.x/server-rest/examples/locale/list-languages.md +++ b/docs/examples/1.5.x/server-rest/examples/locale/list-languages.md @@ -1,9 +1,9 @@ GET /v1/locale/languages HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/create-apns-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/create-apns-provider.md index 710d7c2ad17..ca189a55eb3 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/create-apns-provider.md @@ -1,9 +1,9 @@ POST /v1/messaging/providers/apns HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "providerId": "<PROVIDER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/create-email.md b/docs/examples/1.5.x/server-rest/examples/messaging/create-email.md index 7a988c1c003..3d187c1bde5 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/create-email.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/create-email.md @@ -1,9 +1,9 @@ POST /v1/messaging/messages/email HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "messageId": "<MESSAGE_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/create-fcm-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/create-fcm-provider.md index ba6aa9888f3..70c8b84d76a 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/create-fcm-provider.md @@ -1,9 +1,9 @@ POST /v1/messaging/providers/fcm HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "providerId": "<PROVIDER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/create-mailgun-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/create-mailgun-provider.md index 57bd4a365f4..1ccd17c44b2 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/create-mailgun-provider.md @@ -1,9 +1,9 @@ POST /v1/messaging/providers/mailgun HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "providerId": "<PROVIDER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/create-msg91provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/create-msg91provider.md index 05052e4b1ef..59f3a30d5eb 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/create-msg91provider.md @@ -1,9 +1,9 @@ POST /v1/messaging/providers/msg91 HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "providerId": "<PROVIDER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/create-push.md b/docs/examples/1.5.x/server-rest/examples/messaging/create-push.md index 1f20509d25d..30efda67020 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/create-push.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/create-push.md @@ -1,9 +1,9 @@ POST /v1/messaging/messages/push HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "messageId": "<MESSAGE_ID>", @@ -19,7 +19,10 @@ X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 "sound": "<SOUND>", "color": "<COLOR>", "tag": "<TAG>", - "badge": "<BADGE>", + "badge": 0, "draft": false, - "scheduledAt": + "scheduledAt": , + "contentAvailable": false, + "critical": false, + "priority": "normal" } diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/create-sendgrid-provider.md index 148d0537cfc..bb82e428821 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/create-sendgrid-provider.md @@ -1,9 +1,9 @@ POST /v1/messaging/providers/sendgrid HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "providerId": "<PROVIDER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/create-sms.md b/docs/examples/1.5.x/server-rest/examples/messaging/create-sms.md index 10280fc9430..14d6a6e386a 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/create-sms.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/create-sms.md @@ -1,9 +1,9 @@ POST /v1/messaging/messages/sms HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "messageId": "<MESSAGE_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/create-smtp-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/create-smtp-provider.md index a6a5ca213e0..fbb23f9b6a1 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/create-smtp-provider.md @@ -1,9 +1,9 @@ POST /v1/messaging/providers/smtp HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "providerId": "<PROVIDER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/server-rest/examples/messaging/create-subscriber.md index 6141a408e81..cb952c36aee 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/create-subscriber.md @@ -1,11 +1,11 @@ POST /v1/messaging/topics/{topicId}/subscribers HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-JWT: <YOUR_JWT> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Key: <YOUR_API_KEY> { "subscriberId": "<SUBSCRIBER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/create-telesign-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/create-telesign-provider.md index 07cc8435575..d9fcf64fc95 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/create-telesign-provider.md @@ -1,9 +1,9 @@ POST /v1/messaging/providers/telesign HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "providerId": "<PROVIDER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/create-textmagic-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/create-textmagic-provider.md index 8f4ae3486e5..bb94b511f62 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/create-textmagic-provider.md @@ -1,9 +1,9 @@ POST /v1/messaging/providers/textmagic HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "providerId": "<PROVIDER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/create-topic.md b/docs/examples/1.5.x/server-rest/examples/messaging/create-topic.md index dc44f11668d..45c9d24a1fb 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/create-topic.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/create-topic.md @@ -1,9 +1,9 @@ POST /v1/messaging/topics HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "topicId": "<TOPIC_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/create-twilio-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/create-twilio-provider.md index 64906f002e6..a4e7f8c1f0b 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/create-twilio-provider.md @@ -1,9 +1,9 @@ POST /v1/messaging/providers/twilio HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "providerId": "<PROVIDER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/create-vonage-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/create-vonage-provider.md index 1a85b726acf..1b866521e1b 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/create-vonage-provider.md @@ -1,9 +1,9 @@ POST /v1/messaging/providers/vonage HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "providerId": "<PROVIDER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/delete-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/delete-provider.md index 9bd35794ad9..64233828961 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/delete-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/delete-provider.md @@ -1,7 +1,7 @@ DELETE /v1/messaging/providers/{providerId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/server-rest/examples/messaging/delete-subscriber.md index 0420315e1d0..d826c6ceb26 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/delete-subscriber.md @@ -1,9 +1,9 @@ DELETE /v1/messaging/topics/{topicId}/subscribers/{subscriberId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-JWT: <YOUR_JWT> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/delete-topic.md b/docs/examples/1.5.x/server-rest/examples/messaging/delete-topic.md index 86bd0797fad..43753ee3de8 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/delete-topic.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/delete-topic.md @@ -1,7 +1,7 @@ DELETE /v1/messaging/topics/{topicId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/delete.md b/docs/examples/1.5.x/server-rest/examples/messaging/delete.md index 50d0cea0af6..c86e7df658d 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/delete.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/delete.md @@ -1,7 +1,7 @@ DELETE /v1/messaging/messages/{messageId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/get-message.md b/docs/examples/1.5.x/server-rest/examples/messaging/get-message.md index 1d1ff563faf..a028ed942b0 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/get-message.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/get-message.md @@ -1,7 +1,7 @@ GET /v1/messaging/messages/{messageId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/get-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/get-provider.md index 97347364f55..c721575af6e 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/get-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/get-provider.md @@ -1,7 +1,7 @@ GET /v1/messaging/providers/{providerId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/get-subscriber.md b/docs/examples/1.5.x/server-rest/examples/messaging/get-subscriber.md index 7ab1e6611ad..bb0ce225f1f 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/get-subscriber.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/get-subscriber.md @@ -1,7 +1,7 @@ GET /v1/messaging/topics/{topicId}/subscribers/{subscriberId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/get-topic.md b/docs/examples/1.5.x/server-rest/examples/messaging/get-topic.md index d4e3bf34802..0efe9444213 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/get-topic.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/get-topic.md @@ -1,7 +1,7 @@ GET /v1/messaging/topics/{topicId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/list-message-logs.md b/docs/examples/1.5.x/server-rest/examples/messaging/list-message-logs.md index c7aba35f038..15729cf60ad 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/list-message-logs.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/list-message-logs.md @@ -1,7 +1,7 @@ GET /v1/messaging/messages/{messageId}/logs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/list-messages.md b/docs/examples/1.5.x/server-rest/examples/messaging/list-messages.md index daf72c3c535..e497923c873 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/list-messages.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/list-messages.md @@ -1,7 +1,7 @@ GET /v1/messaging/messages HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/list-provider-logs.md b/docs/examples/1.5.x/server-rest/examples/messaging/list-provider-logs.md index 16b81708e76..38f9cd36e06 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/list-provider-logs.md @@ -1,7 +1,7 @@ GET /v1/messaging/providers/{providerId}/logs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/list-providers.md b/docs/examples/1.5.x/server-rest/examples/messaging/list-providers.md index 556facdae23..b1fc0e9bfcc 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/list-providers.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/list-providers.md @@ -1,7 +1,7 @@ GET /v1/messaging/providers HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/list-subscriber-logs.md b/docs/examples/1.5.x/server-rest/examples/messaging/list-subscriber-logs.md index 952c4618025..008132bec6e 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/list-subscriber-logs.md @@ -1,7 +1,7 @@ GET /v1/messaging/subscribers/{subscriberId}/logs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/list-subscribers.md b/docs/examples/1.5.x/server-rest/examples/messaging/list-subscribers.md index 38ec946a425..8e8f80fa86f 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/list-subscribers.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/list-subscribers.md @@ -1,7 +1,7 @@ GET /v1/messaging/topics/{topicId}/subscribers HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/list-targets.md b/docs/examples/1.5.x/server-rest/examples/messaging/list-targets.md index fd4dda146cb..00fefdcfcc2 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/list-targets.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/list-targets.md @@ -1,7 +1,7 @@ GET /v1/messaging/messages/{messageId}/targets HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/list-topic-logs.md b/docs/examples/1.5.x/server-rest/examples/messaging/list-topic-logs.md index b4a266c6274..5dce5314916 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/list-topic-logs.md @@ -1,7 +1,7 @@ GET /v1/messaging/topics/{topicId}/logs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/list-topics.md b/docs/examples/1.5.x/server-rest/examples/messaging/list-topics.md index 71225acd6b0..cf5bc4e5099 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/list-topics.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/list-topics.md @@ -1,7 +1,7 @@ GET /v1/messaging/topics HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/update-apns-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/update-apns-provider.md index d230f150bda..34c569193ad 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/update-apns-provider.md @@ -1,9 +1,9 @@ PATCH /v1/messaging/providers/apns/{providerId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/update-email.md b/docs/examples/1.5.x/server-rest/examples/messaging/update-email.md index 61ef1ed7984..d1973371257 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/update-email.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/update-email.md @@ -1,9 +1,9 @@ PATCH /v1/messaging/messages/email/{messageId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "topics": [], diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/update-fcm-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/update-fcm-provider.md index 14e5cc9cca7..eff2cd3d047 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/update-fcm-provider.md @@ -1,9 +1,9 @@ PATCH /v1/messaging/providers/fcm/{providerId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/update-mailgun-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/update-mailgun-provider.md index a25d1c18850..2a4b07d8b17 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/update-mailgun-provider.md @@ -1,9 +1,9 @@ PATCH /v1/messaging/providers/mailgun/{providerId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/update-msg91provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/update-msg91provider.md index a2458c06345..426a625847b 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/update-msg91provider.md @@ -1,9 +1,9 @@ PATCH /v1/messaging/providers/msg91/{providerId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/update-push.md b/docs/examples/1.5.x/server-rest/examples/messaging/update-push.md index b99b7e0c484..e4a46603d1c 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/update-push.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/update-push.md @@ -1,9 +1,9 @@ PATCH /v1/messaging/messages/push/{messageId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "topics": [], @@ -20,5 +20,8 @@ X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 "tag": "<TAG>", "badge": 0, "draft": false, - "scheduledAt": + "scheduledAt": , + "contentAvailable": false, + "critical": false, + "priority": "normal" } diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/update-sendgrid-provider.md index 08249e5674b..e3082f97507 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/update-sendgrid-provider.md @@ -1,9 +1,9 @@ PATCH /v1/messaging/providers/sendgrid/{providerId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/update-sms.md b/docs/examples/1.5.x/server-rest/examples/messaging/update-sms.md index 3af498bed8d..ad63dd6d162 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/update-sms.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/update-sms.md @@ -1,9 +1,9 @@ PATCH /v1/messaging/messages/sms/{messageId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "topics": [], diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/update-smtp-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/update-smtp-provider.md index 6d78182b66c..981ee039a5a 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/update-smtp-provider.md @@ -1,9 +1,9 @@ PATCH /v1/messaging/providers/smtp/{providerId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/update-telesign-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/update-telesign-provider.md index ec8e52d3bca..7b79305285a 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/update-telesign-provider.md @@ -1,9 +1,9 @@ PATCH /v1/messaging/providers/telesign/{providerId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/update-textmagic-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/update-textmagic-provider.md index 2e7ca828f22..270da23b47d 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/update-textmagic-provider.md @@ -1,9 +1,9 @@ PATCH /v1/messaging/providers/textmagic/{providerId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/update-topic.md b/docs/examples/1.5.x/server-rest/examples/messaging/update-topic.md index 14066013202..a05bec9618c 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/update-topic.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/update-topic.md @@ -1,9 +1,9 @@ PATCH /v1/messaging/topics/{topicId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/update-twilio-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/update-twilio-provider.md index cc96053b88e..65c7ca6181e 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/update-twilio-provider.md @@ -1,9 +1,9 @@ PATCH /v1/messaging/providers/twilio/{providerId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/server-rest/examples/messaging/update-vonage-provider.md b/docs/examples/1.5.x/server-rest/examples/messaging/update-vonage-provider.md index a8155ec61ac..c99fa7f4fb5 100644 --- a/docs/examples/1.5.x/server-rest/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.5.x/server-rest/examples/messaging/update-vonage-provider.md @@ -1,9 +1,9 @@ PATCH /v1/messaging/providers/vonage/{providerId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/server-rest/examples/storage/create-bucket.md b/docs/examples/1.5.x/server-rest/examples/storage/create-bucket.md index 194c28f8bae..e73ec00482d 100644 --- a/docs/examples/1.5.x/server-rest/examples/storage/create-bucket.md +++ b/docs/examples/1.5.x/server-rest/examples/storage/create-bucket.md @@ -1,9 +1,9 @@ POST /v1/storage/buckets HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "bucketId": "<BUCKET_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/storage/create-file.md b/docs/examples/1.5.x/server-rest/examples/storage/create-file.md index e2dd42aec81..1b18a8022cb 100644 --- a/docs/examples/1.5.x/server-rest/examples/storage/create-file.md +++ b/docs/examples/1.5.x/server-rest/examples/storage/create-file.md @@ -1,11 +1,11 @@ POST /v1/storage/buckets/{bucketId}/files HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: multipart/form-data; boundary="cec8e8123c05ba25" -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> Content-Length: *Length of your entity body in bytes* --cec8e8123c05ba25 diff --git a/docs/examples/1.5.x/server-rest/examples/storage/delete-bucket.md b/docs/examples/1.5.x/server-rest/examples/storage/delete-bucket.md index ce3a81b5570..0f7f6ed134c 100644 --- a/docs/examples/1.5.x/server-rest/examples/storage/delete-bucket.md +++ b/docs/examples/1.5.x/server-rest/examples/storage/delete-bucket.md @@ -1,7 +1,7 @@ DELETE /v1/storage/buckets/{bucketId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/storage/delete-file.md b/docs/examples/1.5.x/server-rest/examples/storage/delete-file.md index 3824dad3ca8..2bc22c81c35 100644 --- a/docs/examples/1.5.x/server-rest/examples/storage/delete-file.md +++ b/docs/examples/1.5.x/server-rest/examples/storage/delete-file.md @@ -1,9 +1,9 @@ DELETE /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/storage/get-bucket.md b/docs/examples/1.5.x/server-rest/examples/storage/get-bucket.md index d67eb5c375c..f8b1248ac4a 100644 --- a/docs/examples/1.5.x/server-rest/examples/storage/get-bucket.md +++ b/docs/examples/1.5.x/server-rest/examples/storage/get-bucket.md @@ -1,7 +1,7 @@ GET /v1/storage/buckets/{bucketId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/storage/get-file-download.md b/docs/examples/1.5.x/server-rest/examples/storage/get-file-download.md index b2546ebfb61..8e72699a88a 100644 --- a/docs/examples/1.5.x/server-rest/examples/storage/get-file-download.md +++ b/docs/examples/1.5.x/server-rest/examples/storage/get-file-download.md @@ -1,9 +1,9 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/download HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/storage/get-file-preview.md b/docs/examples/1.5.x/server-rest/examples/storage/get-file-preview.md index 722d8ea1b46..312c2c87ab5 100644 --- a/docs/examples/1.5.x/server-rest/examples/storage/get-file-preview.md +++ b/docs/examples/1.5.x/server-rest/examples/storage/get-file-preview.md @@ -1,9 +1,9 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/preview HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/storage/get-file-view.md b/docs/examples/1.5.x/server-rest/examples/storage/get-file-view.md index e436e471129..3112ccbbf5e 100644 --- a/docs/examples/1.5.x/server-rest/examples/storage/get-file-view.md +++ b/docs/examples/1.5.x/server-rest/examples/storage/get-file-view.md @@ -1,9 +1,9 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/view HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/storage/get-file.md b/docs/examples/1.5.x/server-rest/examples/storage/get-file.md index 797ee58cb53..74695ded85c 100644 --- a/docs/examples/1.5.x/server-rest/examples/storage/get-file.md +++ b/docs/examples/1.5.x/server-rest/examples/storage/get-file.md @@ -1,9 +1,9 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/storage/list-buckets.md b/docs/examples/1.5.x/server-rest/examples/storage/list-buckets.md index 1fe1fe6e7b4..f801c6a42b6 100644 --- a/docs/examples/1.5.x/server-rest/examples/storage/list-buckets.md +++ b/docs/examples/1.5.x/server-rest/examples/storage/list-buckets.md @@ -1,7 +1,7 @@ GET /v1/storage/buckets HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/storage/list-files.md b/docs/examples/1.5.x/server-rest/examples/storage/list-files.md index d37bee88ce2..c64556fb578 100644 --- a/docs/examples/1.5.x/server-rest/examples/storage/list-files.md +++ b/docs/examples/1.5.x/server-rest/examples/storage/list-files.md @@ -1,9 +1,9 @@ GET /v1/storage/buckets/{bucketId}/files HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/storage/update-bucket.md b/docs/examples/1.5.x/server-rest/examples/storage/update-bucket.md index 02e4f6b52ab..aa966fe57ce 100644 --- a/docs/examples/1.5.x/server-rest/examples/storage/update-bucket.md +++ b/docs/examples/1.5.x/server-rest/examples/storage/update-bucket.md @@ -1,9 +1,9 @@ PUT /v1/storage/buckets/{bucketId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/server-rest/examples/storage/update-file.md b/docs/examples/1.5.x/server-rest/examples/storage/update-file.md index af2c0ca6738..1d3183936e3 100644 --- a/docs/examples/1.5.x/server-rest/examples/storage/update-file.md +++ b/docs/examples/1.5.x/server-rest/examples/storage/update-file.md @@ -1,11 +1,11 @@ PUT /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> { "name": "<NAME>", diff --git a/docs/examples/1.5.x/server-rest/examples/teams/create-membership.md b/docs/examples/1.5.x/server-rest/examples/teams/create-membership.md index 8fb7f2c3590..92ba6cb9aea 100644 --- a/docs/examples/1.5.x/server-rest/examples/teams/create-membership.md +++ b/docs/examples/1.5.x/server-rest/examples/teams/create-membership.md @@ -1,11 +1,11 @@ POST /v1/teams/{teamId}/memberships HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> { "email": "email@example.com", diff --git a/docs/examples/1.5.x/server-rest/examples/teams/create.md b/docs/examples/1.5.x/server-rest/examples/teams/create.md index 667031e2a67..ff86b5365bc 100644 --- a/docs/examples/1.5.x/server-rest/examples/teams/create.md +++ b/docs/examples/1.5.x/server-rest/examples/teams/create.md @@ -1,11 +1,11 @@ POST /v1/teams HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> { "teamId": "<TEAM_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/teams/delete-membership.md b/docs/examples/1.5.x/server-rest/examples/teams/delete-membership.md index db22608716e..4dce5657bc7 100644 --- a/docs/examples/1.5.x/server-rest/examples/teams/delete-membership.md +++ b/docs/examples/1.5.x/server-rest/examples/teams/delete-membership.md @@ -1,9 +1,9 @@ DELETE /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/teams/delete.md b/docs/examples/1.5.x/server-rest/examples/teams/delete.md index e8e7bb4e028..c071c2a9ee9 100644 --- a/docs/examples/1.5.x/server-rest/examples/teams/delete.md +++ b/docs/examples/1.5.x/server-rest/examples/teams/delete.md @@ -1,9 +1,9 @@ DELETE /v1/teams/{teamId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/teams/get-membership.md b/docs/examples/1.5.x/server-rest/examples/teams/get-membership.md index ed5d6cbf693..2cd4b719a05 100644 --- a/docs/examples/1.5.x/server-rest/examples/teams/get-membership.md +++ b/docs/examples/1.5.x/server-rest/examples/teams/get-membership.md @@ -1,9 +1,9 @@ GET /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/teams/get-prefs.md b/docs/examples/1.5.x/server-rest/examples/teams/get-prefs.md index dfac0657344..0486648b296 100644 --- a/docs/examples/1.5.x/server-rest/examples/teams/get-prefs.md +++ b/docs/examples/1.5.x/server-rest/examples/teams/get-prefs.md @@ -1,8 +1,8 @@ GET /v1/teams/{teamId}/prefs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/teams/get.md b/docs/examples/1.5.x/server-rest/examples/teams/get.md index 1205d42fb57..90da5602f96 100644 --- a/docs/examples/1.5.x/server-rest/examples/teams/get.md +++ b/docs/examples/1.5.x/server-rest/examples/teams/get.md @@ -1,9 +1,9 @@ GET /v1/teams/{teamId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/teams/list-memberships.md b/docs/examples/1.5.x/server-rest/examples/teams/list-memberships.md index 91b3db092c8..647ab68c067 100644 --- a/docs/examples/1.5.x/server-rest/examples/teams/list-memberships.md +++ b/docs/examples/1.5.x/server-rest/examples/teams/list-memberships.md @@ -1,9 +1,9 @@ GET /v1/teams/{teamId}/memberships HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/teams/list.md b/docs/examples/1.5.x/server-rest/examples/teams/list.md index 650719cd6ac..67b43b562c9 100644 --- a/docs/examples/1.5.x/server-rest/examples/teams/list.md +++ b/docs/examples/1.5.x/server-rest/examples/teams/list.md @@ -1,9 +1,9 @@ GET /v1/teams HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.5.x/server-rest/examples/teams/update-membership-status.md b/docs/examples/1.5.x/server-rest/examples/teams/update-membership-status.md index dbcfd29391d..5fa7888d063 100644 --- a/docs/examples/1.5.x/server-rest/examples/teams/update-membership-status.md +++ b/docs/examples/1.5.x/server-rest/examples/teams/update-membership-status.md @@ -1,10 +1,10 @@ PATCH /v1/teams/{teamId}/memberships/{membershipId}/status HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/teams/update-membership.md b/docs/examples/1.5.x/server-rest/examples/teams/update-membership.md index 0e5c94eb1a3..f41efcfaa9d 100644 --- a/docs/examples/1.5.x/server-rest/examples/teams/update-membership.md +++ b/docs/examples/1.5.x/server-rest/examples/teams/update-membership.md @@ -1,11 +1,11 @@ PATCH /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> { "roles": [] diff --git a/docs/examples/1.5.x/server-rest/examples/teams/update-name.md b/docs/examples/1.5.x/server-rest/examples/teams/update-name.md index 682ca49812c..fb17efab356 100644 --- a/docs/examples/1.5.x/server-rest/examples/teams/update-name.md +++ b/docs/examples/1.5.x/server-rest/examples/teams/update-name.md @@ -1,11 +1,11 @@ PUT /v1/teams/{teamId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> { "name": "<NAME>" diff --git a/docs/examples/1.5.x/server-rest/examples/teams/update-prefs.md b/docs/examples/1.5.x/server-rest/examples/teams/update-prefs.md index 1cf422595b1..b6b2cc6b977 100644 --- a/docs/examples/1.5.x/server-rest/examples/teams/update-prefs.md +++ b/docs/examples/1.5.x/server-rest/examples/teams/update-prefs.md @@ -1,10 +1,10 @@ PUT /v1/teams/{teamId}/prefs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: -X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ... +X-Appwrite-JWT: <YOUR_JWT> { "prefs": {} diff --git a/docs/examples/1.5.x/server-rest/examples/users/create-argon2user.md b/docs/examples/1.5.x/server-rest/examples/users/create-argon2user.md index d3c8ba51304..8de112573c1 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/create-argon2user.md +++ b/docs/examples/1.5.x/server-rest/examples/users/create-argon2user.md @@ -1,9 +1,9 @@ POST /v1/users/argon2 HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/users/create-bcrypt-user.md b/docs/examples/1.5.x/server-rest/examples/users/create-bcrypt-user.md index 4824ca9835a..b85346b0610 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.5.x/server-rest/examples/users/create-bcrypt-user.md @@ -1,9 +1,9 @@ POST /v1/users/bcrypt HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/users/create-j-w-t.md b/docs/examples/1.5.x/server-rest/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..7b35707322e --- /dev/null +++ b/docs/examples/1.5.x/server-rest/examples/users/create-j-w-t.md @@ -0,0 +1,11 @@ +POST /v1/users/{userId}/jwts HTTP/1.1 +Host: <REGION>.cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "sessionId": "<SESSION_ID>", + "duration": 0 +} diff --git a/docs/examples/1.5.x/server-rest/examples/users/create-m-d5user.md b/docs/examples/1.5.x/server-rest/examples/users/create-m-d5user.md index ac7a693149c..338df5c4cf0 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/create-m-d5user.md +++ b/docs/examples/1.5.x/server-rest/examples/users/create-m-d5user.md @@ -1,9 +1,9 @@ POST /v1/users/md5 HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-rest/examples/users/create-mfa-recovery-codes.md index 86d51a1d225..26e6a144b79 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-rest/examples/users/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ PATCH /v1/users/{userId}/mfa/recovery-codes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/create-p-h-pass-user.md b/docs/examples/1.5.x/server-rest/examples/users/create-p-h-pass-user.md index 426101ca4ed..811c8f08227 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.5.x/server-rest/examples/users/create-p-h-pass-user.md @@ -1,9 +1,9 @@ POST /v1/users/phpass HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/users/create-s-h-a-user.md b/docs/examples/1.5.x/server-rest/examples/users/create-s-h-a-user.md index 07597619d59..e523526c88e 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.5.x/server-rest/examples/users/create-s-h-a-user.md @@ -1,9 +1,9 @@ POST /v1/users/sha HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/users/create-scrypt-modified-user.md b/docs/examples/1.5.x/server-rest/examples/users/create-scrypt-modified-user.md index 57051fef0b5..0ebd35752ea 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.5.x/server-rest/examples/users/create-scrypt-modified-user.md @@ -1,9 +1,9 @@ POST /v1/users/scrypt-modified HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/users/create-scrypt-user.md b/docs/examples/1.5.x/server-rest/examples/users/create-scrypt-user.md index fdd4ce04051..ab26763949f 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/create-scrypt-user.md +++ b/docs/examples/1.5.x/server-rest/examples/users/create-scrypt-user.md @@ -1,9 +1,9 @@ POST /v1/users/scrypt HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/users/create-session.md b/docs/examples/1.5.x/server-rest/examples/users/create-session.md index cf6c9ab28b3..02c337f360f 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/create-session.md +++ b/docs/examples/1.5.x/server-rest/examples/users/create-session.md @@ -1,7 +1,7 @@ POST /v1/users/{userId}/sessions HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/create-target.md b/docs/examples/1.5.x/server-rest/examples/users/create-target.md index ba9b99aae97..80266b1284e 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/create-target.md +++ b/docs/examples/1.5.x/server-rest/examples/users/create-target.md @@ -1,9 +1,9 @@ POST /v1/users/{userId}/targets HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "targetId": "<TARGET_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/users/create-token.md b/docs/examples/1.5.x/server-rest/examples/users/create-token.md index 856e089bf6c..934ec0255e3 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/create-token.md +++ b/docs/examples/1.5.x/server-rest/examples/users/create-token.md @@ -1,9 +1,9 @@ POST /v1/users/{userId}/tokens HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "length": 4, diff --git a/docs/examples/1.5.x/server-rest/examples/users/create.md b/docs/examples/1.5.x/server-rest/examples/users/create.md index 885ab9fa28b..036f57c7a7b 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/create.md +++ b/docs/examples/1.5.x/server-rest/examples/users/create.md @@ -1,9 +1,9 @@ POST /v1/users HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "userId": "<USER_ID>", diff --git a/docs/examples/1.5.x/server-rest/examples/users/delete-identity.md b/docs/examples/1.5.x/server-rest/examples/users/delete-identity.md index ab49f1958d3..32ac042d05f 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/delete-identity.md +++ b/docs/examples/1.5.x/server-rest/examples/users/delete-identity.md @@ -1,7 +1,7 @@ DELETE /v1/users/identities/{identityId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-rest/examples/users/delete-mfa-authenticator.md index c4e389ff6c0..135301b1902 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-rest/examples/users/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ DELETE /v1/users/{userId}/mfa/authenticators/{type} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/delete-session.md b/docs/examples/1.5.x/server-rest/examples/users/delete-session.md index 2a88fadf70a..e718e6abf28 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/delete-session.md +++ b/docs/examples/1.5.x/server-rest/examples/users/delete-session.md @@ -1,7 +1,7 @@ DELETE /v1/users/{userId}/sessions/{sessionId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/delete-sessions.md b/docs/examples/1.5.x/server-rest/examples/users/delete-sessions.md index 96d4ee638b1..740a8117ad2 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/delete-sessions.md +++ b/docs/examples/1.5.x/server-rest/examples/users/delete-sessions.md @@ -1,7 +1,7 @@ DELETE /v1/users/{userId}/sessions HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/delete-target.md b/docs/examples/1.5.x/server-rest/examples/users/delete-target.md index 18189d75a13..b38f49e5094 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/delete-target.md +++ b/docs/examples/1.5.x/server-rest/examples/users/delete-target.md @@ -1,7 +1,7 @@ DELETE /v1/users/{userId}/targets/{targetId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/delete.md b/docs/examples/1.5.x/server-rest/examples/users/delete.md index 5f2aef9c5d0..46f2edaa4cc 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/delete.md +++ b/docs/examples/1.5.x/server-rest/examples/users/delete.md @@ -1,7 +1,7 @@ DELETE /v1/users/{userId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-rest/examples/users/get-mfa-recovery-codes.md index 0ce4059e85e..3cf339ca55f 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-rest/examples/users/get-mfa-recovery-codes.md @@ -1,7 +1,7 @@ GET /v1/users/{userId}/mfa/recovery-codes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/get-prefs.md b/docs/examples/1.5.x/server-rest/examples/users/get-prefs.md index faab4904e7a..afb2ec1d725 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/get-prefs.md +++ b/docs/examples/1.5.x/server-rest/examples/users/get-prefs.md @@ -1,7 +1,7 @@ GET /v1/users/{userId}/prefs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/get-target.md b/docs/examples/1.5.x/server-rest/examples/users/get-target.md index 76f69bceb32..3014c22539f 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/get-target.md +++ b/docs/examples/1.5.x/server-rest/examples/users/get-target.md @@ -1,7 +1,7 @@ GET /v1/users/{userId}/targets/{targetId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/get.md b/docs/examples/1.5.x/server-rest/examples/users/get.md index bad5c3218f3..a1b448aa69b 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/get.md +++ b/docs/examples/1.5.x/server-rest/examples/users/get.md @@ -1,7 +1,7 @@ GET /v1/users/{userId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/list-identities.md b/docs/examples/1.5.x/server-rest/examples/users/list-identities.md index 3e784b07b4b..5e02343e5c3 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/list-identities.md +++ b/docs/examples/1.5.x/server-rest/examples/users/list-identities.md @@ -1,7 +1,7 @@ GET /v1/users/identities HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/list-logs.md b/docs/examples/1.5.x/server-rest/examples/users/list-logs.md index 1a53a5c3eb7..cfa6b75ce40 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/list-logs.md +++ b/docs/examples/1.5.x/server-rest/examples/users/list-logs.md @@ -1,7 +1,7 @@ GET /v1/users/{userId}/logs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/list-memberships.md b/docs/examples/1.5.x/server-rest/examples/users/list-memberships.md index 8ef09ab56bd..0f1825b5b09 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/list-memberships.md +++ b/docs/examples/1.5.x/server-rest/examples/users/list-memberships.md @@ -1,7 +1,7 @@ GET /v1/users/{userId}/memberships HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/list-mfa-factors.md b/docs/examples/1.5.x/server-rest/examples/users/list-mfa-factors.md index 42d5b8f8021..5ef70d1d102 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-rest/examples/users/list-mfa-factors.md @@ -1,7 +1,7 @@ GET /v1/users/{userId}/mfa/factors HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/list-sessions.md b/docs/examples/1.5.x/server-rest/examples/users/list-sessions.md index 2572954b828..37d23974ce4 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/list-sessions.md +++ b/docs/examples/1.5.x/server-rest/examples/users/list-sessions.md @@ -1,7 +1,7 @@ GET /v1/users/{userId}/sessions HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/list-targets.md b/docs/examples/1.5.x/server-rest/examples/users/list-targets.md index 3d3f56b4a1e..01c6572c261 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/list-targets.md +++ b/docs/examples/1.5.x/server-rest/examples/users/list-targets.md @@ -1,7 +1,7 @@ GET /v1/users/{userId}/targets HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/list.md b/docs/examples/1.5.x/server-rest/examples/users/list.md index b41435a1edd..44fd36a284f 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/list.md +++ b/docs/examples/1.5.x/server-rest/examples/users/list.md @@ -1,7 +1,7 @@ GET /v1/users HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/update-email-verification.md b/docs/examples/1.5.x/server-rest/examples/users/update-email-verification.md index fd83b4243ef..c0e3f6fdfea 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/update-email-verification.md +++ b/docs/examples/1.5.x/server-rest/examples/users/update-email-verification.md @@ -1,9 +1,9 @@ PATCH /v1/users/{userId}/verification HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "emailVerification": false diff --git a/docs/examples/1.5.x/server-rest/examples/users/update-email.md b/docs/examples/1.5.x/server-rest/examples/users/update-email.md index 6738d08be0b..95751defb58 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/update-email.md +++ b/docs/examples/1.5.x/server-rest/examples/users/update-email.md @@ -1,9 +1,9 @@ PATCH /v1/users/{userId}/email HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "email": "email@example.com" diff --git a/docs/examples/1.5.x/server-rest/examples/users/update-labels.md b/docs/examples/1.5.x/server-rest/examples/users/update-labels.md index 4192fce2616..2076b3bb228 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/update-labels.md +++ b/docs/examples/1.5.x/server-rest/examples/users/update-labels.md @@ -1,9 +1,9 @@ PUT /v1/users/{userId}/labels HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "labels": [] diff --git a/docs/examples/1.5.x/server-rest/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-rest/examples/users/update-mfa-recovery-codes.md index 2fb9eaa618f..31ccea9f74c 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-rest/examples/users/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ PUT /v1/users/{userId}/mfa/recovery-codes HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.5.x/server-rest/examples/users/update-mfa.md b/docs/examples/1.5.x/server-rest/examples/users/update-mfa.md index f89945d3fc1..98b2708cd46 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/update-mfa.md +++ b/docs/examples/1.5.x/server-rest/examples/users/update-mfa.md @@ -1,9 +1,9 @@ PATCH /v1/users/{userId}/mfa HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "mfa": false diff --git a/docs/examples/1.5.x/server-rest/examples/users/update-name.md b/docs/examples/1.5.x/server-rest/examples/users/update-name.md index 2d3b0ffc1e5..a3cdb1c034d 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/update-name.md +++ b/docs/examples/1.5.x/server-rest/examples/users/update-name.md @@ -1,9 +1,9 @@ PATCH /v1/users/{userId}/name HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "name": "<NAME>" diff --git a/docs/examples/1.5.x/server-rest/examples/users/update-password.md b/docs/examples/1.5.x/server-rest/examples/users/update-password.md index b8090b22738..1b984747fad 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/update-password.md +++ b/docs/examples/1.5.x/server-rest/examples/users/update-password.md @@ -1,9 +1,9 @@ PATCH /v1/users/{userId}/password HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "password": diff --git a/docs/examples/1.5.x/server-rest/examples/users/update-phone-verification.md b/docs/examples/1.5.x/server-rest/examples/users/update-phone-verification.md index b2d19ba4014..fe49c6231cd 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/update-phone-verification.md +++ b/docs/examples/1.5.x/server-rest/examples/users/update-phone-verification.md @@ -1,9 +1,9 @@ PATCH /v1/users/{userId}/verification/phone HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "phoneVerification": false diff --git a/docs/examples/1.5.x/server-rest/examples/users/update-phone.md b/docs/examples/1.5.x/server-rest/examples/users/update-phone.md index b7fa7d50783..2e5337ce2bc 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/update-phone.md +++ b/docs/examples/1.5.x/server-rest/examples/users/update-phone.md @@ -1,9 +1,9 @@ PATCH /v1/users/{userId}/phone HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "number": "+12065550100" diff --git a/docs/examples/1.5.x/server-rest/examples/users/update-prefs.md b/docs/examples/1.5.x/server-rest/examples/users/update-prefs.md index f79fdf283e4..c048503369d 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/update-prefs.md +++ b/docs/examples/1.5.x/server-rest/examples/users/update-prefs.md @@ -1,9 +1,9 @@ PATCH /v1/users/{userId}/prefs HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "prefs": {} diff --git a/docs/examples/1.5.x/server-rest/examples/users/update-status.md b/docs/examples/1.5.x/server-rest/examples/users/update-status.md index 106f3fc30ad..f029b62ae3b 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/update-status.md +++ b/docs/examples/1.5.x/server-rest/examples/users/update-status.md @@ -1,9 +1,9 @@ PATCH /v1/users/{userId}/status HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "status": false diff --git a/docs/examples/1.5.x/server-rest/examples/users/update-target.md b/docs/examples/1.5.x/server-rest/examples/users/update-target.md index 4b51889127d..96d70d4b80a 100644 --- a/docs/examples/1.5.x/server-rest/examples/users/update-target.md +++ b/docs/examples/1.5.x/server-rest/examples/users/update-target.md @@ -1,9 +1,9 @@ PATCH /v1/users/{userId}/targets/{targetId} HTTP/1.1 -Host: cloud.appwrite.io +Host: <REGION>.cloud.appwrite.io Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: 5df5acd0d48c2 -X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> { "identifier": "<IDENTIFIER>", diff --git a/docs/examples/1.5.x/server-ruby/examples/account/add-authenticator.md b/docs/examples/1.5.x/server-ruby/examples/account/add-authenticator.md index f47f31f41a7..247d82198e9 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/add-authenticator.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/add-authenticator.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/server-ruby/examples/account/create-anonymous-session.md index ccdddd5c6c3..a54d5f00575 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-anonymous-session.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-challenge.md b/docs/examples/1.5.x/server-ruby/examples/account/create-challenge.md index 968527e9f89..c8042dfc0eb 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-challenge.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-challenge.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-email-password-session.md b/docs/examples/1.5.x/server-ruby/examples/account/create-email-password-session.md index e95a51430bd..08d34230a0e 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-email-password-session.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-email-password-session.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-email-token.md b/docs/examples/1.5.x/server-ruby/examples/account/create-email-token.md index bf2e1f2f137..1e85706cf2e 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-email-token.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-email-token.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-j-w-t.md b/docs/examples/1.5.x/server-ruby/examples/account/create-j-w-t.md index fb9d1f9b018..8ad2db14ca6 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-j-w-t.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-j-w-t.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/server-ruby/examples/account/create-magic-u-r-l-token.md index d1aa8ac5e5f..253b26309ef 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-magic-u-r-l-token.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/server-ruby/examples/account/create-mfa-authenticator.md index 8df238ae9f4..38ad5492d95 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-mfa-authenticator.md @@ -5,7 +5,7 @@ include Appwrite::Enums client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/server-ruby/examples/account/create-mfa-challenge.md index c6dc502af7e..b5fa72f78b0 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-mfa-challenge.md @@ -5,7 +5,7 @@ include Appwrite::Enums client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-ruby/examples/account/create-mfa-recovery-codes.md index 95a18b0aa51..9c64fdf47aa 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-mfa-recovery-codes.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-o-auth2session.md b/docs/examples/1.5.x/server-ruby/examples/account/create-o-auth2session.md index d3b04366d95..562453b174b 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-o-auth2session.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/server-ruby/examples/account/create-o-auth2token.md index d79e48ac1bd..be8169e58d5 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-o-auth2token.md @@ -5,7 +5,7 @@ include Appwrite::Enums client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-phone-token.md b/docs/examples/1.5.x/server-ruby/examples/account/create-phone-token.md index f6c9ac9e2f2..70e8be2ca97 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-phone-token.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-phone-token.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-phone-verification.md b/docs/examples/1.5.x/server-ruby/examples/account/create-phone-verification.md index f95fa3bb869..0f5685bf20f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-phone-verification.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-phone-verification.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-recovery.md b/docs/examples/1.5.x/server-ruby/examples/account/create-recovery.md index 51863f669cf..15f0f93a987 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-recovery.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-recovery.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-session.md b/docs/examples/1.5.x/server-ruby/examples/account/create-session.md index 1684a09ac30..27c265549ee 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-session.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-session.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create-verification.md b/docs/examples/1.5.x/server-ruby/examples/account/create-verification.md index a4cb5f25212..216d88c02c4 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create-verification.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create-verification.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create.md b/docs/examples/1.5.x/server-ruby/examples/account/create.md index a722eac1f2e..e27f488f6b5 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/create2f-a-challenge.md b/docs/examples/1.5.x/server-ruby/examples/account/create2f-a-challenge.md index f5553056081..ace1ed64a98 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/create2f-a-challenge.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/delete-authenticator.md b/docs/examples/1.5.x/server-ruby/examples/account/delete-authenticator.md index a6b50dff651..91cc135807b 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/delete-authenticator.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/delete-authenticator.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.5.x/server-ruby/examples/account/delete-identity.md b/docs/examples/1.5.x/server-ruby/examples/account/delete-identity.md index 37ce0d40b0f..a38eccd0805 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/delete-identity.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/delete-identity.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-ruby/examples/account/delete-mfa-authenticator.md index 8bebf5a717d..9b4f352badc 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/delete-mfa-authenticator.md @@ -5,12 +5,11 @@ include Appwrite::Enums client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) result = account.delete_mfa_authenticator( - type: AuthenticatorType::TOTP, - otp: '<OTP>' + type: AuthenticatorType::TOTP ) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/delete-session.md b/docs/examples/1.5.x/server-ruby/examples/account/delete-session.md index 0c63c2c36b8..4781eecdc6a 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/delete-session.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/delete-session.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/delete-sessions.md b/docs/examples/1.5.x/server-ruby/examples/account/delete-sessions.md index 8d79d217cb3..776938e2dc8 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/delete-sessions.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/delete-sessions.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-ruby/examples/account/get-mfa-recovery-codes.md index ffd1e6608ed..207e5219d69 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/get-mfa-recovery-codes.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/get-prefs.md b/docs/examples/1.5.x/server-ruby/examples/account/get-prefs.md index 951aed5e293..0a1ca1c1c90 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/get-prefs.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/get-prefs.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/get-session.md b/docs/examples/1.5.x/server-ruby/examples/account/get-session.md index 61ff279944a..32a162e60d5 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/get-session.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/get-session.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/get.md b/docs/examples/1.5.x/server-ruby/examples/account/get.md index 153cf2eeb6d..5174ab71777 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/get.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/get.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/list-factors.md b/docs/examples/1.5.x/server-ruby/examples/account/list-factors.md index 3f5fe6305ed..f5cc05831a3 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/list-factors.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/list-factors.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.5.x/server-ruby/examples/account/list-identities.md b/docs/examples/1.5.x/server-ruby/examples/account/list-identities.md index 1fb8b3d4739..91b513b9c0a 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/list-identities.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/list-identities.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/list-logs.md b/docs/examples/1.5.x/server-ruby/examples/account/list-logs.md index 11210754e3e..b11dc1a4aba 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/list-logs.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/list-logs.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/server-ruby/examples/account/list-mfa-factors.md index bc10699b56a..48050f2235a 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/list-mfa-factors.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/list-sessions.md b/docs/examples/1.5.x/server-ruby/examples/account/list-sessions.md index 62cc4485060..65d50483bb1 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/list-sessions.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/list-sessions.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-challenge.md b/docs/examples/1.5.x/server-ruby/examples/account/update-challenge.md index 7b38086a348..f830299fe21 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-challenge.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-challenge.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-email.md b/docs/examples/1.5.x/server-ruby/examples/account/update-email.md index b5044244765..69e49847cb2 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-email.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-email.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-m-f-a.md b/docs/examples/1.5.x/server-ruby/examples/account/update-m-f-a.md index 496a5bdd960..bf5d7458757 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-m-f-a.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/server-ruby/examples/account/update-magic-u-r-l-session.md index b7939c814d3..7e72263f97c 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-magic-u-r-l-session.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/server-ruby/examples/account/update-mfa-authenticator.md index a5485169a84..ba6389d0436 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-mfa-authenticator.md @@ -5,7 +5,7 @@ include Appwrite::Enums client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/server-ruby/examples/account/update-mfa-challenge.md index 92e84b3b4ea..ab0d4d31ef6 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-mfa-challenge.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-ruby/examples/account/update-mfa-recovery-codes.md index 3016f27c19e..5724025f636 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-mfa-recovery-codes.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-name.md b/docs/examples/1.5.x/server-ruby/examples/account/update-name.md index 851010ee9dc..e071dd96fdd 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-name.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-name.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-password.md b/docs/examples/1.5.x/server-ruby/examples/account/update-password.md index f826da68a5c..8dd0da6bdd5 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-password.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-password.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-phone-session.md b/docs/examples/1.5.x/server-ruby/examples/account/update-phone-session.md index 4cb0bd27e0e..90776cededa 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-phone-session.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-phone-session.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-phone-verification.md b/docs/examples/1.5.x/server-ruby/examples/account/update-phone-verification.md index 6faf3df062c..b41bb42fad7 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-phone-verification.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-phone-verification.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-phone.md b/docs/examples/1.5.x/server-ruby/examples/account/update-phone.md index 9851e8916d6..b562355f0e2 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-phone.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-phone.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-prefs.md b/docs/examples/1.5.x/server-ruby/examples/account/update-prefs.md index 15345e655dc..5dc92d1242b 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-prefs.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-recovery.md b/docs/examples/1.5.x/server-ruby/examples/account/update-recovery.md index 3ff5f606d1a..06372cb86a5 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-recovery.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-recovery.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-session.md b/docs/examples/1.5.x/server-ruby/examples/account/update-session.md index bbf039a4356..b1181e0c87a 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-session.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-session.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-status.md b/docs/examples/1.5.x/server-ruby/examples/account/update-status.md index 5a12f33bf0d..f69f527dfa3 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-status.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-status.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/update-verification.md b/docs/examples/1.5.x/server-ruby/examples/account/update-verification.md index 19503990e7c..5a0cff80a2d 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/update-verification.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/update-verification.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with account = Account.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/account/verify-authenticator.md b/docs/examples/1.5.x/server-ruby/examples/account/verify-authenticator.md index d04b9fcee07..3ec98a89492 100644 --- a/docs/examples/1.5.x/server-ruby/examples/account/verify-authenticator.md +++ b/docs/examples/1.5.x/server-ruby/examples/account/verify-authenticator.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.5.x/server-ruby/examples/avatars/get-browser.md b/docs/examples/1.5.x/server-ruby/examples/avatars/get-browser.md index 518770d47eb..f48a05a06e5 100644 --- a/docs/examples/1.5.x/server-ruby/examples/avatars/get-browser.md +++ b/docs/examples/1.5.x/server-ruby/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ include Appwrite::Enums client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with avatars = Avatars.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/server-ruby/examples/avatars/get-credit-card.md index f8b05fc9ed6..99b3c626461 100644 --- a/docs/examples/1.5.x/server-ruby/examples/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/server-ruby/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ include Appwrite::Enums client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with avatars = Avatars.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/avatars/get-favicon.md b/docs/examples/1.5.x/server-ruby/examples/avatars/get-favicon.md index 1c30235f423..470512868b3 100644 --- a/docs/examples/1.5.x/server-ruby/examples/avatars/get-favicon.md +++ b/docs/examples/1.5.x/server-ruby/examples/avatars/get-favicon.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with avatars = Avatars.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/avatars/get-flag.md b/docs/examples/1.5.x/server-ruby/examples/avatars/get-flag.md index 34199ee9997..cd162a5f9e2 100644 --- a/docs/examples/1.5.x/server-ruby/examples/avatars/get-flag.md +++ b/docs/examples/1.5.x/server-ruby/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ include Appwrite::Enums client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with avatars = Avatars.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/avatars/get-image.md b/docs/examples/1.5.x/server-ruby/examples/avatars/get-image.md index 348eea01f41..bc38de19c9f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/avatars/get-image.md +++ b/docs/examples/1.5.x/server-ruby/examples/avatars/get-image.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with avatars = Avatars.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/avatars/get-initials.md b/docs/examples/1.5.x/server-ruby/examples/avatars/get-initials.md index 96eb588da2e..9d79e8eac73 100644 --- a/docs/examples/1.5.x/server-ruby/examples/avatars/get-initials.md +++ b/docs/examples/1.5.x/server-ruby/examples/avatars/get-initials.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with avatars = Avatars.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/avatars/get-q-r.md b/docs/examples/1.5.x/server-ruby/examples/avatars/get-q-r.md index 9d9bd6df473..f5228664fa5 100644 --- a/docs/examples/1.5.x/server-ruby/examples/avatars/get-q-r.md +++ b/docs/examples/1.5.x/server-ruby/examples/avatars/get-q-r.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with avatars = Avatars.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/create-boolean-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/create-boolean-attribute.md index 600718ce3f7..35449c28f8d 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/create-boolean-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/create-collection.md b/docs/examples/1.5.x/server-ruby/examples/databases/create-collection.md index 8387e134c7c..8d564a38e6e 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/create-collection.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/create-collection.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/create-datetime-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/create-datetime-attribute.md index 48477340b34..594f36eda9c 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/create-datetime-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/create-document.md b/docs/examples/1.5.x/server-ruby/examples/databases/create-document.md index e9be93057a5..30ef93f61af 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/create-document.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/create-document.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/create-email-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/create-email-attribute.md index abb77fc8da8..d7456a1d5aa 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/create-email-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/create-email-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/create-enum-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/create-enum-attribute.md index 741678c748f..86212795f2c 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/create-enum-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/create-float-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/create-float-attribute.md index 1497999eae1..3b61bf56e6b 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/create-float-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/create-float-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/create-index.md b/docs/examples/1.5.x/server-ruby/examples/databases/create-index.md index cbf13bf9b82..865ce932cc5 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/create-index.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/create-index.md @@ -5,8 +5,8 @@ include Appwrite::Enums client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/create-integer-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/create-integer-attribute.md index 140f367ecbe..88832bdf74f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/create-integer-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/create-ip-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/create-ip-attribute.md index eb591b4d7cf..88167e1f539 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/create-ip-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/create-relationship-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/create-relationship-attribute.md index a868dc0a1fb..d80f19c8f80 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/create-relationship-attribute.md @@ -5,8 +5,8 @@ include Appwrite::Enums client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/create-string-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/create-string-attribute.md index 6c8dfa32539..05f96cfb804 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/create-string-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/create-string-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/create-url-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/create-url-attribute.md index e551d75c26a..9f216d91254 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/create-url-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/create-url-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/create.md b/docs/examples/1.5.x/server-ruby/examples/databases/create.md index 020dba8c5e8..3846e50a84d 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/create.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/create.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/delete-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/delete-attribute.md index d79757dc619..a352a73a19d 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/delete-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/delete-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/delete-collection.md b/docs/examples/1.5.x/server-ruby/examples/databases/delete-collection.md index d6ff193a0a1..1c0b961d2dd 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/delete-collection.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/delete-collection.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/delete-document.md b/docs/examples/1.5.x/server-ruby/examples/databases/delete-document.md index 971d532eda5..5195ea4efe7 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/delete-document.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/delete-document.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/delete-index.md b/docs/examples/1.5.x/server-ruby/examples/databases/delete-index.md index 5e8e666e12c..e91770c3388 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/delete-index.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/delete-index.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/delete.md b/docs/examples/1.5.x/server-ruby/examples/databases/delete.md index e142eff4a01..dbd5b559d78 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/delete.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/delete.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/get-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/get-attribute.md index e6162e58619..94ed06a5080 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/get-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/get-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/get-collection.md b/docs/examples/1.5.x/server-ruby/examples/databases/get-collection.md index 04f62a9e10c..ff66336b85f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/get-collection.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/get-collection.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/get-document.md b/docs/examples/1.5.x/server-ruby/examples/databases/get-document.md index 406a8c20b71..bd0e4ec030b 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/get-document.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/get-document.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/get-index.md b/docs/examples/1.5.x/server-ruby/examples/databases/get-index.md index d2aebfc858c..3042e1496f6 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/get-index.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/get-index.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/get.md b/docs/examples/1.5.x/server-ruby/examples/databases/get.md index 0c1d3f3edee..cd8b777cce8 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/get.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/get.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/list-attributes.md b/docs/examples/1.5.x/server-ruby/examples/databases/list-attributes.md index 7c39cde7138..2a500a69e23 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/list-attributes.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/list-attributes.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/list-collections.md b/docs/examples/1.5.x/server-ruby/examples/databases/list-collections.md index 8d39c92be2f..bac8095c1c2 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/list-collections.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/list-collections.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/list-documents.md b/docs/examples/1.5.x/server-ruby/examples/databases/list-documents.md index 4dc7cb0d41c..891e5345c8e 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/list-documents.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/list-documents.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/list-indexes.md b/docs/examples/1.5.x/server-ruby/examples/databases/list-indexes.md index 8d82d784e12..7f86bb77b1b 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/list-indexes.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/list-indexes.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/list.md b/docs/examples/1.5.x/server-ruby/examples/databases/list.md index b96d2d677df..14c6fd16440 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/list.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/list.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/update-boolean-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/update-boolean-attribute.md index c91eab7016f..854848617bc 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/update-boolean-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) @@ -14,5 +14,6 @@ result = databases.update_boolean_attribute( collection_id: '<COLLECTION_ID>', key: '', required: false, - default: false + default: false, + new_key: '' # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/update-collection.md b/docs/examples/1.5.x/server-ruby/examples/databases/update-collection.md index 9b3280ffde4..9a1c73cb102 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/update-collection.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/update-collection.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/update-datetime-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/update-datetime-attribute.md index 56827225b7d..a7c8b32e9f0 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/update-datetime-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) @@ -14,5 +14,6 @@ result = databases.update_datetime_attribute( collection_id: '<COLLECTION_ID>', key: '', required: false, - default: '' + default: '', + new_key: '' # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/update-document.md b/docs/examples/1.5.x/server-ruby/examples/databases/update-document.md index 3dcc969d918..dce09af140a 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/update-document.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/update-document.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/update-email-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/update-email-attribute.md index d30a592fe36..9845f4bf4da 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/update-email-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/update-email-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) @@ -14,5 +14,6 @@ result = databases.update_email_attribute( collection_id: '<COLLECTION_ID>', key: '', required: false, - default: 'email@example.com' + default: 'email@example.com', + new_key: '' # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/update-enum-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/update-enum-attribute.md index 870458b71cc..6bc28c3759d 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/update-enum-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) @@ -15,5 +15,6 @@ result = databases.update_enum_attribute( key: '', elements: [], required: false, - default: '<DEFAULT>' + default: '<DEFAULT>', + new_key: '' # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/update-float-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/update-float-attribute.md index 5a1ded1ae23..241a6395a4d 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/update-float-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/update-float-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) @@ -14,7 +14,8 @@ result = databases.update_float_attribute( collection_id: '<COLLECTION_ID>', key: '', required: false, - min: null, - max: null, - default: null + default: null, + min: null, # optional + max: null, # optional + new_key: '' # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/update-integer-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/update-integer-attribute.md index 44e25405780..15e3960a964 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/update-integer-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) @@ -14,7 +14,8 @@ result = databases.update_integer_attribute( collection_id: '<COLLECTION_ID>', key: '', required: false, - min: null, - max: null, - default: null + default: null, + min: null, # optional + max: null, # optional + new_key: '' # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/update-ip-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/update-ip-attribute.md index ddf841617b5..b53719edd86 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/update-ip-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) @@ -14,5 +14,6 @@ result = databases.update_ip_attribute( collection_id: '<COLLECTION_ID>', key: '', required: false, - default: '' + default: '', + new_key: '' # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/update-relationship-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/update-relationship-attribute.md index a13af6a0447..2b9d72a93a4 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/update-relationship-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) @@ -13,5 +13,6 @@ result = databases.update_relationship_attribute( database_id: '<DATABASE_ID>', collection_id: '<COLLECTION_ID>', key: '', - on_delete: RelationMutate::CASCADE # optional + on_delete: RelationMutate::CASCADE, # optional + new_key: '' # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/update-string-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/update-string-attribute.md index d7fb983368b..5e4ac573dcc 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/update-string-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/update-string-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) @@ -14,5 +14,7 @@ result = databases.update_string_attribute( collection_id: '<COLLECTION_ID>', key: '', required: false, - default: '<DEFAULT>' + default: '<DEFAULT>', + size: 1, # optional + new_key: '' # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/update-url-attribute.md b/docs/examples/1.5.x/server-ruby/examples/databases/update-url-attribute.md index 28cdbe2c9cf..4367107e950 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/update-url-attribute.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/update-url-attribute.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) @@ -14,5 +14,6 @@ result = databases.update_url_attribute( collection_id: '<COLLECTION_ID>', key: '', required: false, - default: 'https://example.com' + default: 'https://example.com', + new_key: '' # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/databases/update.md b/docs/examples/1.5.x/server-ruby/examples/databases/update.md index a024d211542..eb5e42c3996 100644 --- a/docs/examples/1.5.x/server-ruby/examples/databases/update.md +++ b/docs/examples/1.5.x/server-ruby/examples/databases/update.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key databases = Databases.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/create-build.md b/docs/examples/1.5.x/server-ruby/examples/functions/create-build.md index 313a49db75b..031bf03d6be 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/create-build.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/create-build.md @@ -4,13 +4,13 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) result = functions.create_build( function_id: '<FUNCTION_ID>', deployment_id: '<DEPLOYMENT_ID>', - build_id: '<BUILD_ID>' + build_id: '<BUILD_ID>' # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/create-deployment.md b/docs/examples/1.5.x/server-ruby/examples/functions/create-deployment.md index 14654948206..8c0b3a58d81 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/create-deployment.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/create-deployment.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/create-execution.md b/docs/examples/1.5.x/server-ruby/examples/functions/create-execution.md index 920b26c86df..bda612c813f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/create-execution.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with functions = Functions.new(client) @@ -15,5 +15,6 @@ result = functions.create_execution( async: false, # optional path: '<PATH>', # optional method: ExecutionMethod::GET, # optional - headers: {} # optional + headers: {}, # optional + scheduled_at: '' # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/create-variable.md b/docs/examples/1.5.x/server-ruby/examples/functions/create-variable.md index 1d3b141f17f..10fa86e4ccf 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/create-variable.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/create-variable.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/create.md b/docs/examples/1.5.x/server-ruby/examples/functions/create.md index 51c4ac5cd38..9c0bf2911b0 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/create.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/create.md @@ -5,8 +5,8 @@ include Appwrite::Enums client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) @@ -22,6 +22,7 @@ result = functions.create( logging: false, # optional entrypoint: '<ENTRYPOINT>', # optional commands: '<COMMANDS>', # optional + scopes: [], # optional installation_id: '<INSTALLATION_ID>', # optional provider_repository_id: '<PROVIDER_REPOSITORY_ID>', # optional provider_branch: '<PROVIDER_BRANCH>', # optional @@ -30,5 +31,6 @@ result = functions.create( template_repository: '<TEMPLATE_REPOSITORY>', # optional template_owner: '<TEMPLATE_OWNER>', # optional template_root_directory: '<TEMPLATE_ROOT_DIRECTORY>', # optional - template_branch: '<TEMPLATE_BRANCH>' # optional + template_version: '<TEMPLATE_VERSION>', # optional + specification: '' # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/delete-deployment.md b/docs/examples/1.5.x/server-ruby/examples/functions/delete-deployment.md index 4d6d58cd6b1..642bf23b903 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/delete-deployment.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/delete-deployment.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/list-templates.md b/docs/examples/1.5.x/server-ruby/examples/functions/delete-execution.md similarity index 58% rename from docs/examples/1.6.x/server-ruby/examples/functions/list-templates.md rename to docs/examples/1.5.x/server-ruby/examples/functions/delete-execution.md index 8bee6b01873..bb91baa338a 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/list-templates.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/delete-execution.md @@ -5,12 +5,11 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) -result = functions.list_templates( - runtimes: [], # optional - use_cases: [], # optional - limit: 1, # optional - offset: 0 # optional +result = functions.delete_execution( + function_id: '<FUNCTION_ID>', + execution_id: '<EXECUTION_ID>' ) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/delete-variable.md b/docs/examples/1.5.x/server-ruby/examples/functions/delete-variable.md index b1b7abc4e8a..c36a58359ee 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/delete-variable.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/delete-variable.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/delete.md b/docs/examples/1.5.x/server-ruby/examples/functions/delete.md index 82737b01b85..787692accc5 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/delete.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/delete.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/download-deployment.md b/docs/examples/1.5.x/server-ruby/examples/functions/download-deployment.md index 98f2cdd7b23..f31c13ec9db 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/download-deployment.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/download-deployment.md b/docs/examples/1.5.x/server-ruby/examples/functions/get-deployment-download.md similarity index 88% rename from docs/examples/1.6.x/server-ruby/examples/functions/download-deployment.md rename to docs/examples/1.5.x/server-ruby/examples/functions/get-deployment-download.md index 748d0c9d010..01db87c7541 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/get-deployment-download.md @@ -9,7 +9,7 @@ client = Client.new functions = Functions.new(client) -result = functions.download_deployment( +result = functions.get_deployment_download( function_id: '<FUNCTION_ID>', deployment_id: '<DEPLOYMENT_ID>' ) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/get-deployment.md b/docs/examples/1.5.x/server-ruby/examples/functions/get-deployment.md index 51beea92a9e..b6baee49104 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/get-deployment.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/get-deployment.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/get-execution.md b/docs/examples/1.5.x/server-ruby/examples/functions/get-execution.md index 6ddf923d24f..6b19e4e65b6 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/get-execution.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with functions = Functions.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/get-variable.md b/docs/examples/1.5.x/server-ruby/examples/functions/get-variable.md index f84a46e42b0..30d6a0009df 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/get-variable.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/get-variable.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/get.md b/docs/examples/1.5.x/server-ruby/examples/functions/get.md index 7248bac3e7d..c2d63deb77a 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/get.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/get.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/list-deployments.md b/docs/examples/1.5.x/server-ruby/examples/functions/list-deployments.md index 72532e34ade..7db9d45c01d 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/list-deployments.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/list-deployments.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/list-executions.md b/docs/examples/1.5.x/server-ruby/examples/functions/list-executions.md index 7f1c147840f..159c78dbde0 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/list-executions.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with functions = Functions.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/list-runtimes.md b/docs/examples/1.5.x/server-ruby/examples/functions/list-runtimes.md index 431ba11d1e5..938fcf75526 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/list-runtimes.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/list-runtimes.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/get-template.md b/docs/examples/1.5.x/server-ruby/examples/functions/list-specifications.md similarity index 70% rename from docs/examples/1.6.x/server-ruby/examples/functions/get-template.md rename to docs/examples/1.5.x/server-ruby/examples/functions/list-specifications.md index 5274880f672..2ccd05e3fd2 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/get-template.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/list-specifications.md @@ -5,9 +5,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) -result = functions.get_template( - template_id: '<TEMPLATE_ID>' -) +result = functions.list_specifications() diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/list-variables.md b/docs/examples/1.5.x/server-ruby/examples/functions/list-variables.md index a2293535007..6159bf102bc 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/list-variables.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/list-variables.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/list.md b/docs/examples/1.5.x/server-ruby/examples/functions/list.md index 06336138c73..a49034d0514 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/list.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/list.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/update-deployment-build.md b/docs/examples/1.5.x/server-ruby/examples/functions/update-deployment-build.md new file mode 100644 index 00000000000..5164aebd6ef --- /dev/null +++ b/docs/examples/1.5.x/server-ruby/examples/functions/update-deployment-build.md @@ -0,0 +1,15 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +functions = Functions.new(client) + +result = functions.update_deployment_build( + function_id: '<FUNCTION_ID>', + deployment_id: '<DEPLOYMENT_ID>' +) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/update-deployment.md b/docs/examples/1.5.x/server-ruby/examples/functions/update-deployment.md index ef403735176..862e86d2a66 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/update-deployment.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/update-deployment.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/update-variable.md b/docs/examples/1.5.x/server-ruby/examples/functions/update-variable.md index 77db1b940a4..6ac47f80dc7 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/update-variable.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/update-variable.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/functions/update.md b/docs/examples/1.5.x/server-ruby/examples/functions/update.md index d258dc30d76..8f5cafdb551 100644 --- a/docs/examples/1.5.x/server-ruby/examples/functions/update.md +++ b/docs/examples/1.5.x/server-ruby/examples/functions/update.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key functions = Functions.new(client) @@ -21,9 +21,11 @@ result = functions.update( logging: false, # optional entrypoint: '<ENTRYPOINT>', # optional commands: '<COMMANDS>', # optional + scopes: [], # optional installation_id: '<INSTALLATION_ID>', # optional provider_repository_id: '<PROVIDER_REPOSITORY_ID>', # optional provider_branch: '<PROVIDER_BRANCH>', # optional provider_silent_mode: false, # optional - provider_root_directory: '<PROVIDER_ROOT_DIRECTORY>' # optional + provider_root_directory: '<PROVIDER_ROOT_DIRECTORY>', # optional + specification: '' # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/graphql/mutation.md b/docs/examples/1.5.x/server-ruby/examples/graphql/mutation.md index 0a744c9ca54..7daf975ea66 100644 --- a/docs/examples/1.5.x/server-ruby/examples/graphql/mutation.md +++ b/docs/examples/1.5.x/server-ruby/examples/graphql/mutation.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key graphql = Graphql.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/graphql/query.md b/docs/examples/1.5.x/server-ruby/examples/graphql/query.md index 1606e365f36..0825bdea46a 100644 --- a/docs/examples/1.5.x/server-ruby/examples/graphql/query.md +++ b/docs/examples/1.5.x/server-ruby/examples/graphql/query.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key graphql = Graphql.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-antivirus.md b/docs/examples/1.5.x/server-ruby/examples/health/get-antivirus.md index e8f84fb705e..51125076569 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-antivirus.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-antivirus.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-cache.md b/docs/examples/1.5.x/server-ruby/examples/health/get-cache.md index 5a6c7c26613..5493b757be1 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-cache.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-cache.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-certificate.md b/docs/examples/1.5.x/server-ruby/examples/health/get-certificate.md index 68fe88c88e7..dcfcb6afb7e 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-certificate.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-certificate.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-d-b.md b/docs/examples/1.5.x/server-ruby/examples/health/get-d-b.md index 716bca7e5fc..a707a14ada3 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-d-b.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-d-b.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-failed-jobs.md b/docs/examples/1.5.x/server-ruby/examples/health/get-failed-jobs.md index 78b7e88b476..da41856b403 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-failed-jobs.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-failed-jobs.md @@ -5,8 +5,8 @@ include Appwrite::Enums client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-pub-sub.md b/docs/examples/1.5.x/server-ruby/examples/health/get-pub-sub.md index 35029bc8107..4d86e06ea23 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-pub-sub.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-pub-sub.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-builds.md b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-builds.md index 609c0088271..bb002f8b393 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-builds.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-builds.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-certificates.md b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-certificates.md index 8cc69a14ccd..59572f94f3b 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-certificates.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-certificates.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-databases.md b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-databases.md index e6c6e9dc504..e09233bc343 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-databases.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-databases.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-deletes.md b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-deletes.md index f2f273833e8..184c13421c8 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-deletes.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-deletes.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-functions.md b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-functions.md index 1da04f82c96..b44b7b8983c 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-functions.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-functions.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-logs.md b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-logs.md index 87dc2e03068..dd3f8759c36 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-logs.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-logs.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-mails.md b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-mails.md index 2eb19cef2ec..ce7c40587b1 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-mails.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-mails.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-messaging.md b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-messaging.md index 27d2aca3e7a..842da5bdd0c 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-messaging.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-messaging.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-migrations.md b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-migrations.md index 4125bb99ee9..3349291ff83 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-migrations.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-migrations.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-stats-resources.md b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..9796195c407 --- /dev/null +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-stats-resources.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health.new(client) + +result = health.get_queue_stats_resources( + threshold: null # optional +) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-usage-dump.md b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-usage-dump.md index 2363018227d..6cc915cbe79 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-usage-dump.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-usage.md b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-usage.md index 414bd102687..b1d17042e76 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-usage.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-usage.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-webhooks.md b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-webhooks.md index 207039b13c4..982e244bbbd 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-queue-webhooks.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-queue.md b/docs/examples/1.5.x/server-ruby/examples/health/get-queue.md index ef9e7837336..1eb1399b669 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-queue.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-queue.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-storage-local.md b/docs/examples/1.5.x/server-ruby/examples/health/get-storage-local.md index 6a4a5f9b639..8a04f77b9bf 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-storage-local.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-storage-local.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-storage.md b/docs/examples/1.5.x/server-ruby/examples/health/get-storage.md index c5305dd35d8..6a5dfa97e4c 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-storage.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-storage.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get-time.md b/docs/examples/1.5.x/server-ruby/examples/health/get-time.md index 0eedfd4cd41..9e95c2332e1 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get-time.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get-time.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/health/get.md b/docs/examples/1.5.x/server-ruby/examples/health/get.md index 9ab56f1c5eb..5c82e66ce21 100644 --- a/docs/examples/1.5.x/server-ruby/examples/health/get.md +++ b/docs/examples/1.5.x/server-ruby/examples/health/get.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key health = Health.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/locale/get.md b/docs/examples/1.5.x/server-ruby/examples/locale/get.md index 3bba39add96..d3a982d0431 100644 --- a/docs/examples/1.5.x/server-ruby/examples/locale/get.md +++ b/docs/examples/1.5.x/server-ruby/examples/locale/get.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with locale = Locale.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/locale/list-codes.md b/docs/examples/1.5.x/server-ruby/examples/locale/list-codes.md index 30ddf1fbab3..74a41b95245 100644 --- a/docs/examples/1.5.x/server-ruby/examples/locale/list-codes.md +++ b/docs/examples/1.5.x/server-ruby/examples/locale/list-codes.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with locale = Locale.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/locale/list-continents.md b/docs/examples/1.5.x/server-ruby/examples/locale/list-continents.md index cedb5057730..312936104ca 100644 --- a/docs/examples/1.5.x/server-ruby/examples/locale/list-continents.md +++ b/docs/examples/1.5.x/server-ruby/examples/locale/list-continents.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with locale = Locale.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/server-ruby/examples/locale/list-countries-e-u.md index 17101e78cbe..9b19151d110 100644 --- a/docs/examples/1.5.x/server-ruby/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/server-ruby/examples/locale/list-countries-e-u.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with locale = Locale.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/server-ruby/examples/locale/list-countries-phones.md index b03b1a93b67..c011734ae1c 100644 --- a/docs/examples/1.5.x/server-ruby/examples/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/server-ruby/examples/locale/list-countries-phones.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with locale = Locale.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/locale/list-countries.md b/docs/examples/1.5.x/server-ruby/examples/locale/list-countries.md index 5de35adbe3d..4884f6a6810 100644 --- a/docs/examples/1.5.x/server-ruby/examples/locale/list-countries.md +++ b/docs/examples/1.5.x/server-ruby/examples/locale/list-countries.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with locale = Locale.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/locale/list-currencies.md b/docs/examples/1.5.x/server-ruby/examples/locale/list-currencies.md index 4323fe7337c..3dcfb703dba 100644 --- a/docs/examples/1.5.x/server-ruby/examples/locale/list-currencies.md +++ b/docs/examples/1.5.x/server-ruby/examples/locale/list-currencies.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with locale = Locale.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/locale/list-languages.md b/docs/examples/1.5.x/server-ruby/examples/locale/list-languages.md index 025dffa9520..3d9a2dbc9c2 100644 --- a/docs/examples/1.5.x/server-ruby/examples/locale/list-languages.md +++ b/docs/examples/1.5.x/server-ruby/examples/locale/list-languages.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with locale = Locale.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-a-p-n-s-provider.md index 3d9425415d3..770125e936a 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-a-p-n-s-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-apns-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-apns-provider.md index 3f9e84a780e..88988f6e438 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-apns-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-email.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-email.md index 1f46f01e5a8..c64cf5f2842 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-email.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-email.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-f-c-m-provider.md index 9552da9aa50..2e727936b72 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-f-c-m-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-fcm-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-fcm-provider.md index 3aa3e4eae52..1c23df81f7f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-fcm-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-mailgun-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-mailgun-provider.md index 5f9608c4350..3c8a574d6e4 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-mailgun-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-msg91provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-msg91provider.md index 951b3bffcca..7037f00d0e3 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-msg91provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-push.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-push.md index 26c29c59def..61663f4dc0f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-push.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-push.md @@ -4,15 +4,15 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) result = messaging.create_push( message_id: '<MESSAGE_ID>', - title: '<TITLE>', - body: '<BODY>', + title: '<TITLE>', # optional + body: '<BODY>', # optional topics: [], # optional users: [], # optional targets: [], # optional @@ -23,7 +23,10 @@ result = messaging.create_push( sound: '<SOUND>', # optional color: '<COLOR>', # optional tag: '<TAG>', # optional - badge: '<BADGE>', # optional + badge: null, # optional draft: false, # optional - scheduled_at: '' # optional + scheduled_at: '', # optional + content_available: false, # optional + critical: false, # optional + priority: MessagePriority::NORMAL # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-s-m-s.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-s-m-s.md index 012095ab845..d73887837cc 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-s-m-s.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-s-m-s.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-s-m-t-p-provider.md index 601663bc8c5..8b3d556596c 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-s-m-t-p-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-sendgrid-provider.md index 11831f145f2..e9c31548d46 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-sendgrid-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-sms.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-sms.md index bc25191c913..58a96aa4772 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-sms.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-sms.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-smtp-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-smtp-provider.md index 02ae76d5759..cbdaaaf8b53 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-smtp-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-subscriber.md index 1fc7a5ababb..973349084f9 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-subscriber.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_jwt('<YOUR_JWT>') # Your secret JSON Web Token messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-telesign-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-telesign-provider.md index 727369329f4..40c60a793c4 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-telesign-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-textmagic-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-textmagic-provider.md index 6f8025bd1c7..804f0b2c86a 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-textmagic-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-topic.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-topic.md index 0a290f9d856..f1f29c99624 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-topic.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-topic.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-twilio-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-twilio-provider.md index 44c51c48707..1350b8535a0 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-twilio-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/create-vonage-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/create-vonage-provider.md index 2efe730a092..c1c83a4b0b9 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/create-vonage-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/delete-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/delete-provider.md index 47521cd37a1..86c9ae1473c 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/delete-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/delete-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/server-ruby/examples/messaging/delete-subscriber.md index 834a6b335c2..5606269d53e 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/delete-subscriber.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_jwt('<YOUR_JWT>') # Your secret JSON Web Token messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/delete-topic.md b/docs/examples/1.5.x/server-ruby/examples/messaging/delete-topic.md index 14772d37749..d8506621945 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/delete-topic.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/delete-topic.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/delete.md b/docs/examples/1.5.x/server-ruby/examples/messaging/delete.md index 3aafc876d14..1155406f819 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/delete.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/delete.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/get-message.md b/docs/examples/1.5.x/server-ruby/examples/messaging/get-message.md index 72e3614ef86..8b7ffad012b 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/get-message.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/get-message.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/get-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/get-provider.md index 1d25b0199aa..3da5beb468e 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/get-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/get-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/get-subscriber.md b/docs/examples/1.5.x/server-ruby/examples/messaging/get-subscriber.md index 45b12de176d..278aba08d2d 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/get-subscriber.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/get-subscriber.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/get-topic.md b/docs/examples/1.5.x/server-ruby/examples/messaging/get-topic.md index 62a6e30fe87..ec58550f235 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/get-topic.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/get-topic.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/list-message-logs.md b/docs/examples/1.5.x/server-ruby/examples/messaging/list-message-logs.md index 581f0f2ab38..7db1381d84b 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/list-message-logs.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/list-message-logs.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/list-messages.md b/docs/examples/1.5.x/server-ruby/examples/messaging/list-messages.md index 8ef429805ed..07fc3fcc9bd 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/list-messages.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/list-messages.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/list-provider-logs.md b/docs/examples/1.5.x/server-ruby/examples/messaging/list-provider-logs.md index 03df3ad2cd0..fda60b669ac 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/list-provider-logs.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/list-providers.md b/docs/examples/1.5.x/server-ruby/examples/messaging/list-providers.md index 1afab7d1656..43f4a213f5b 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/list-providers.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/list-providers.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/list-subscriber-logs.md b/docs/examples/1.5.x/server-ruby/examples/messaging/list-subscriber-logs.md index e131f59c7da..5be2900cb65 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/list-subscriber-logs.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/list-subscribers.md b/docs/examples/1.5.x/server-ruby/examples/messaging/list-subscribers.md index e033939311a..6583f9300e2 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/list-subscribers.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/list-subscribers.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/list-targets.md b/docs/examples/1.5.x/server-ruby/examples/messaging/list-targets.md index d763add9081..7354fc54b66 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/list-targets.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/list-targets.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/list-topic-logs.md b/docs/examples/1.5.x/server-ruby/examples/messaging/list-topic-logs.md index 903006a76d4..fb1f0e21b3a 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/list-topic-logs.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/list-topics.md b/docs/examples/1.5.x/server-ruby/examples/messaging/list-topics.md index b5351bd52cb..c00b8f1731f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/list-topics.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/list-topics.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-a-p-n-s-provider.md index 3c59e90b48b..cf9a52d51bf 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-a-p-n-s-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-apns-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-apns-provider.md index db12c14d59e..e1748e6d88f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-apns-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-email.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-email.md index a692c554027..baae0f9462c 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-email.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-email.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-f-c-m-provider.md index e398b701c2b..2a296658253 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-f-c-m-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-fcm-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-fcm-provider.md index 6660826b70b..463e028d5ae 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-fcm-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-mailgun-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-mailgun-provider.md index f5aee1ddc10..38f741749bc 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-mailgun-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-msg91provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-msg91provider.md index a8adc2d8acc..b58c04f4946 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-msg91provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-push.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-push.md index 55e0f2d18de..6bf9fcaa79f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-push.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-push.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) @@ -25,5 +25,8 @@ result = messaging.update_push( tag: '<TAG>', # optional badge: null, # optional draft: false, # optional - scheduled_at: '' # optional + scheduled_at: '', # optional + content_available: false, # optional + critical: false, # optional + priority: MessagePriority::NORMAL # optional ) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-s-m-s.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-s-m-s.md index cf0114115e3..6e3f2611b99 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-s-m-s.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-s-m-s.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-s-m-t-p-provider.md index 51b2a7a0ef3..508be6e93eb 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-s-m-t-p-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-sendgrid-provider.md index cb3f5979372..afa2c172f72 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-sendgrid-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-sms.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-sms.md index fc520cd97f8..31adae7aa2f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-sms.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-sms.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-smtp-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-smtp-provider.md index 14b5d984757..00c6d57c0ec 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-smtp-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-telesign-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-telesign-provider.md index 6dcd3fb9276..1d530f07b65 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-telesign-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-textmagic-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-textmagic-provider.md index a3c3d5cb70b..e4e7a42d705 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-textmagic-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-topic.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-topic.md index 6eb8dc8449f..c944fb4ab6c 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-topic.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-topic.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-twilio-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-twilio-provider.md index 5f1cdb8cf86..8203054f59d 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-twilio-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/messaging/update-vonage-provider.md b/docs/examples/1.5.x/server-ruby/examples/messaging/update-vonage-provider.md index 83a788c62ba..01d7fe12de7 100644 --- a/docs/examples/1.5.x/server-ruby/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.5.x/server-ruby/examples/messaging/update-vonage-provider.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key messaging = Messaging.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/storage/create-bucket.md b/docs/examples/1.5.x/server-ruby/examples/storage/create-bucket.md index 385641f285a..a6bb22cc5af 100644 --- a/docs/examples/1.5.x/server-ruby/examples/storage/create-bucket.md +++ b/docs/examples/1.5.x/server-ruby/examples/storage/create-bucket.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key storage = Storage.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/storage/create-file.md b/docs/examples/1.5.x/server-ruby/examples/storage/create-file.md index 13fe6554600..c6f3e266a99 100644 --- a/docs/examples/1.5.x/server-ruby/examples/storage/create-file.md +++ b/docs/examples/1.5.x/server-ruby/examples/storage/create-file.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with storage = Storage.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/storage/delete-bucket.md b/docs/examples/1.5.x/server-ruby/examples/storage/delete-bucket.md index a91f4587530..37d504cdc3f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/storage/delete-bucket.md +++ b/docs/examples/1.5.x/server-ruby/examples/storage/delete-bucket.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key storage = Storage.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/storage/delete-file.md b/docs/examples/1.5.x/server-ruby/examples/storage/delete-file.md index 5b369f18d93..74bd8df8a85 100644 --- a/docs/examples/1.5.x/server-ruby/examples/storage/delete-file.md +++ b/docs/examples/1.5.x/server-ruby/examples/storage/delete-file.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with storage = Storage.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/storage/get-bucket.md b/docs/examples/1.5.x/server-ruby/examples/storage/get-bucket.md index 7e8049c7634..158fc300b0f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/storage/get-bucket.md +++ b/docs/examples/1.5.x/server-ruby/examples/storage/get-bucket.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key storage = Storage.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/storage/get-file-download.md b/docs/examples/1.5.x/server-ruby/examples/storage/get-file-download.md index 8f1c4d26857..86efd7c609e 100644 --- a/docs/examples/1.5.x/server-ruby/examples/storage/get-file-download.md +++ b/docs/examples/1.5.x/server-ruby/examples/storage/get-file-download.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with storage = Storage.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/storage/get-file-preview.md b/docs/examples/1.5.x/server-ruby/examples/storage/get-file-preview.md index bb47d0a37b6..2babfbd856d 100644 --- a/docs/examples/1.5.x/server-ruby/examples/storage/get-file-preview.md +++ b/docs/examples/1.5.x/server-ruby/examples/storage/get-file-preview.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with storage = Storage.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/storage/get-file-view.md b/docs/examples/1.5.x/server-ruby/examples/storage/get-file-view.md index a4386594701..b6b0c560bb9 100644 --- a/docs/examples/1.5.x/server-ruby/examples/storage/get-file-view.md +++ b/docs/examples/1.5.x/server-ruby/examples/storage/get-file-view.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with storage = Storage.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/storage/get-file.md b/docs/examples/1.5.x/server-ruby/examples/storage/get-file.md index cb1705a3e43..76bcca44832 100644 --- a/docs/examples/1.5.x/server-ruby/examples/storage/get-file.md +++ b/docs/examples/1.5.x/server-ruby/examples/storage/get-file.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with storage = Storage.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/storage/list-buckets.md b/docs/examples/1.5.x/server-ruby/examples/storage/list-buckets.md index 56cee3ac7f1..73cf40ed4fd 100644 --- a/docs/examples/1.5.x/server-ruby/examples/storage/list-buckets.md +++ b/docs/examples/1.5.x/server-ruby/examples/storage/list-buckets.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key storage = Storage.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/storage/list-files.md b/docs/examples/1.5.x/server-ruby/examples/storage/list-files.md index e8776f168ae..0ce09d8c150 100644 --- a/docs/examples/1.5.x/server-ruby/examples/storage/list-files.md +++ b/docs/examples/1.5.x/server-ruby/examples/storage/list-files.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with storage = Storage.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/storage/update-bucket.md b/docs/examples/1.5.x/server-ruby/examples/storage/update-bucket.md index 87491d06287..3db084deff5 100644 --- a/docs/examples/1.5.x/server-ruby/examples/storage/update-bucket.md +++ b/docs/examples/1.5.x/server-ruby/examples/storage/update-bucket.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key storage = Storage.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/storage/update-file.md b/docs/examples/1.5.x/server-ruby/examples/storage/update-file.md index 6d3a93c40aa..ed50e9c9081 100644 --- a/docs/examples/1.5.x/server-ruby/examples/storage/update-file.md +++ b/docs/examples/1.5.x/server-ruby/examples/storage/update-file.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with storage = Storage.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/teams/create-membership.md b/docs/examples/1.5.x/server-ruby/examples/teams/create-membership.md index cce792959dd..1990223142f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/teams/create-membership.md +++ b/docs/examples/1.5.x/server-ruby/examples/teams/create-membership.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with teams = Teams.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/teams/create.md b/docs/examples/1.5.x/server-ruby/examples/teams/create.md index b6fca1c3d96..e462cf42778 100644 --- a/docs/examples/1.5.x/server-ruby/examples/teams/create.md +++ b/docs/examples/1.5.x/server-ruby/examples/teams/create.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with teams = Teams.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/teams/delete-membership.md b/docs/examples/1.5.x/server-ruby/examples/teams/delete-membership.md index d02bacd767e..4dc3397592d 100644 --- a/docs/examples/1.5.x/server-ruby/examples/teams/delete-membership.md +++ b/docs/examples/1.5.x/server-ruby/examples/teams/delete-membership.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with teams = Teams.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/teams/delete.md b/docs/examples/1.5.x/server-ruby/examples/teams/delete.md index 6c8931bd3bc..f4879ba422b 100644 --- a/docs/examples/1.5.x/server-ruby/examples/teams/delete.md +++ b/docs/examples/1.5.x/server-ruby/examples/teams/delete.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with teams = Teams.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/teams/get-membership.md b/docs/examples/1.5.x/server-ruby/examples/teams/get-membership.md index 54098318c2e..ed60299e2c2 100644 --- a/docs/examples/1.5.x/server-ruby/examples/teams/get-membership.md +++ b/docs/examples/1.5.x/server-ruby/examples/teams/get-membership.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with teams = Teams.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/teams/get-prefs.md b/docs/examples/1.5.x/server-ruby/examples/teams/get-prefs.md index 87bb54cfee8..1708412d562 100644 --- a/docs/examples/1.5.x/server-ruby/examples/teams/get-prefs.md +++ b/docs/examples/1.5.x/server-ruby/examples/teams/get-prefs.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with teams = Teams.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/teams/get.md b/docs/examples/1.5.x/server-ruby/examples/teams/get.md index c57565daff5..5d5a274b558 100644 --- a/docs/examples/1.5.x/server-ruby/examples/teams/get.md +++ b/docs/examples/1.5.x/server-ruby/examples/teams/get.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with teams = Teams.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/teams/list-memberships.md b/docs/examples/1.5.x/server-ruby/examples/teams/list-memberships.md index 28e51ebcbc4..ac22269e3c0 100644 --- a/docs/examples/1.5.x/server-ruby/examples/teams/list-memberships.md +++ b/docs/examples/1.5.x/server-ruby/examples/teams/list-memberships.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with teams = Teams.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/teams/list.md b/docs/examples/1.5.x/server-ruby/examples/teams/list.md index ca84b8f1183..50b49f8b45f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/teams/list.md +++ b/docs/examples/1.5.x/server-ruby/examples/teams/list.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with teams = Teams.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/teams/update-membership-status.md b/docs/examples/1.5.x/server-ruby/examples/teams/update-membership-status.md index daeee571bc2..bb22ef03e70 100644 --- a/docs/examples/1.5.x/server-ruby/examples/teams/update-membership-status.md +++ b/docs/examples/1.5.x/server-ruby/examples/teams/update-membership-status.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with teams = Teams.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/teams/update-membership.md b/docs/examples/1.5.x/server-ruby/examples/teams/update-membership.md index 65a206b38ba..7f92ff053cf 100644 --- a/docs/examples/1.5.x/server-ruby/examples/teams/update-membership.md +++ b/docs/examples/1.5.x/server-ruby/examples/teams/update-membership.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with teams = Teams.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/teams/update-name.md b/docs/examples/1.5.x/server-ruby/examples/teams/update-name.md index 324d6cb121d..267e5f29636 100644 --- a/docs/examples/1.5.x/server-ruby/examples/teams/update-name.md +++ b/docs/examples/1.5.x/server-ruby/examples/teams/update-name.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with teams = Teams.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/teams/update-prefs.md b/docs/examples/1.5.x/server-ruby/examples/teams/update-prefs.md index 08df9cce4a4..337db7f22f1 100644 --- a/docs/examples/1.5.x/server-ruby/examples/teams/update-prefs.md +++ b/docs/examples/1.5.x/server-ruby/examples/teams/update-prefs.md @@ -4,7 +4,7 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID + .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with teams = Teams.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/create-argon2user.md b/docs/examples/1.5.x/server-ruby/examples/users/create-argon2user.md index 073b8405a61..8b633daaa8c 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/create-argon2user.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/create-argon2user.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/create-bcrypt-user.md b/docs/examples/1.5.x/server-ruby/examples/users/create-bcrypt-user.md index 800f1932bff..d76f653d276 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/create-bcrypt-user.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/create-j-w-t.md b/docs/examples/1.5.x/server-ruby/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..a30a2b6bf04 --- /dev/null +++ b/docs/examples/1.5.x/server-ruby/examples/users/create-j-w-t.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +users = Users.new(client) + +result = users.create_jwt( + user_id: '<USER_ID>', + session_id: '<SESSION_ID>', # optional + duration: 0 # optional +) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/create-m-d5user.md b/docs/examples/1.5.x/server-ruby/examples/users/create-m-d5user.md index 75304c11fe8..80ca9f59cba 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/create-m-d5user.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/create-m-d5user.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-ruby/examples/users/create-mfa-recovery-codes.md index 3766310c8d6..64fc8d5c58c 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/create-mfa-recovery-codes.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/create-p-h-pass-user.md b/docs/examples/1.5.x/server-ruby/examples/users/create-p-h-pass-user.md index 29925904a21..2fa6081cea9 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/create-p-h-pass-user.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/create-s-h-a-user.md b/docs/examples/1.5.x/server-ruby/examples/users/create-s-h-a-user.md index d7361f74508..39c17743fd5 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/create-s-h-a-user.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/create-scrypt-modified-user.md b/docs/examples/1.5.x/server-ruby/examples/users/create-scrypt-modified-user.md index ff0b9fdaca3..2a0ac89ebed 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/create-scrypt-modified-user.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/create-scrypt-user.md b/docs/examples/1.5.x/server-ruby/examples/users/create-scrypt-user.md index c8ef8ee24ef..38c250e5520 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/create-scrypt-user.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/create-scrypt-user.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/create-session.md b/docs/examples/1.5.x/server-ruby/examples/users/create-session.md index ccf143da6c5..ece2f429af7 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/create-session.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/create-session.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/create-target.md b/docs/examples/1.5.x/server-ruby/examples/users/create-target.md index d9b6f4d2a27..5e5d9433310 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/create-target.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/create-target.md @@ -5,8 +5,8 @@ include Appwrite::Enums client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/create-token.md b/docs/examples/1.5.x/server-ruby/examples/users/create-token.md index 8e5fc767583..318294b9899 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/create-token.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/create-token.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/create.md b/docs/examples/1.5.x/server-ruby/examples/users/create.md index 310706e9d4c..aa742f60ffb 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/create.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/create.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/delete-authenticator.md b/docs/examples/1.5.x/server-ruby/examples/users/delete-authenticator.md index 24b17dbfe4a..988edcea1dd 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/delete-authenticator.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/delete-authenticator.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-ruby/examples/users/delete-identity.md b/docs/examples/1.5.x/server-ruby/examples/users/delete-identity.md index bce226b8448..3c2e7a55b91 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/delete-identity.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/delete-identity.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-ruby/examples/users/delete-mfa-authenticator.md index 737d52b569c..9bed8637c2a 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/delete-mfa-authenticator.md @@ -5,8 +5,8 @@ include Appwrite::Enums client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/delete-session.md b/docs/examples/1.5.x/server-ruby/examples/users/delete-session.md index 0652d8e7065..4ac5f2795c9 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/delete-session.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/delete-session.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/delete-sessions.md b/docs/examples/1.5.x/server-ruby/examples/users/delete-sessions.md index 88c63f76156..b83a4224f2c 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/delete-sessions.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/delete-sessions.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/delete-target.md b/docs/examples/1.5.x/server-ruby/examples/users/delete-target.md index 3c275d6144c..0e016cf70cf 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/delete-target.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/delete-target.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/delete.md b/docs/examples/1.5.x/server-ruby/examples/users/delete.md index 3494a66f115..0aea69334ef 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/delete.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/delete.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-ruby/examples/users/get-mfa-recovery-codes.md index a06060c732e..f12a2879ee2 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/get-mfa-recovery-codes.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/get-prefs.md b/docs/examples/1.5.x/server-ruby/examples/users/get-prefs.md index b1705aeaf4e..afcb56f42db 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/get-prefs.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/get-prefs.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/get-target.md b/docs/examples/1.5.x/server-ruby/examples/users/get-target.md index 641cb0f5601..b2e268e8163 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/get-target.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/get-target.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/get.md b/docs/examples/1.5.x/server-ruby/examples/users/get.md index 056f772302c..86ec849c7c8 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/get.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/get.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/list-factors.md b/docs/examples/1.5.x/server-ruby/examples/users/list-factors.md index a9c71759ff2..e0b5618dc5f 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/list-factors.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/list-factors.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-ruby/examples/users/list-identities.md b/docs/examples/1.5.x/server-ruby/examples/users/list-identities.md index 539f108e860..2d4aa2f7eec 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/list-identities.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/list-identities.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/list-logs.md b/docs/examples/1.5.x/server-ruby/examples/users/list-logs.md index 7138c779fa0..a13cec1b536 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/list-logs.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/list-logs.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/list-memberships.md b/docs/examples/1.5.x/server-ruby/examples/users/list-memberships.md index 6e102d26671..8706af14051 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/list-memberships.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/list-memberships.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/list-mfa-factors.md b/docs/examples/1.5.x/server-ruby/examples/users/list-mfa-factors.md index 44ea4775f37..ab98651311e 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/list-mfa-factors.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/list-providers.md b/docs/examples/1.5.x/server-ruby/examples/users/list-providers.md index 905a1b18338..f05ec6db107 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/list-providers.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/list-providers.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/docs/examples/1.5.x/server-ruby/examples/users/list-sessions.md b/docs/examples/1.5.x/server-ruby/examples/users/list-sessions.md index 3169afa7a31..17faa167019 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/list-sessions.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/list-sessions.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/list-targets.md b/docs/examples/1.5.x/server-ruby/examples/users/list-targets.md index 0f071251a4d..9b849e4fcc2 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/list-targets.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/list-targets.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/list.md b/docs/examples/1.5.x/server-ruby/examples/users/list.md index a67741daa79..40d1e839445 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/list.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/list.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/update-email-verification.md b/docs/examples/1.5.x/server-ruby/examples/users/update-email-verification.md index 61b85984e00..439fa330d40 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/update-email-verification.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/update-email-verification.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/update-email.md b/docs/examples/1.5.x/server-ruby/examples/users/update-email.md index 4be0112e198..d93141f3c97 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/update-email.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/update-email.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/update-labels.md b/docs/examples/1.5.x/server-ruby/examples/users/update-labels.md index 063e0c35700..2789e8fea99 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/update-labels.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/update-labels.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-ruby/examples/users/update-mfa-recovery-codes.md index 8dde2d09002..1fc497c22ec 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/update-mfa-recovery-codes.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/update-mfa.md b/docs/examples/1.5.x/server-ruby/examples/users/update-mfa.md index 5d076d0252d..9bafee47efc 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/update-mfa.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/update-mfa.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/update-name.md b/docs/examples/1.5.x/server-ruby/examples/users/update-name.md index 08eec197143..7645c165971 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/update-name.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/update-name.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/update-password.md b/docs/examples/1.5.x/server-ruby/examples/users/update-password.md index 24f26d8fdf5..40e03eea9c5 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/update-password.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/update-password.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/update-phone-verification.md b/docs/examples/1.5.x/server-ruby/examples/users/update-phone-verification.md index a2c46b0b08b..88082ee0342 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/update-phone-verification.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/update-phone-verification.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/update-phone.md b/docs/examples/1.5.x/server-ruby/examples/users/update-phone.md index 6a2083bc585..b08daa83860 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/update-phone.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/update-phone.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/update-prefs.md b/docs/examples/1.5.x/server-ruby/examples/users/update-prefs.md index b7c843ad56f..9871ff5b625 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/update-prefs.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/update-prefs.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/update-status.md b/docs/examples/1.5.x/server-ruby/examples/users/update-status.md index 9a024033eeb..a5d9544cbfc 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/update-status.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/update-status.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-ruby/examples/users/update-target.md b/docs/examples/1.5.x/server-ruby/examples/users/update-target.md index 70d74f624f7..6acc913642b 100644 --- a/docs/examples/1.5.x/server-ruby/examples/users/update-target.md +++ b/docs/examples/1.5.x/server-ruby/examples/users/update-target.md @@ -4,8 +4,8 @@ include Appwrite client = Client.new .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key users = Users.new(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/add-authenticator.md b/docs/examples/1.5.x/server-swift/examples/account/add-authenticator.md index 07607a31688..ce7e7650c04 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/add-authenticator.md +++ b/docs/examples/1.5.x/server-swift/examples/account/add-authenticator.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/server-swift/examples/account/create-anonymous-session.md index 9904f6f222e..f676bac4da4 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-anonymous-session.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-anonymous-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-challenge.md b/docs/examples/1.5.x/server-swift/examples/account/create-challenge.md index 9d3b54a152d..4ebb3cbbfa6 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-challenge.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-challenge.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-email-password-session.md b/docs/examples/1.5.x/server-swift/examples/account/create-email-password-session.md index 8740f0caa91..15051827b86 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-email-password-session.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-email-password-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-email-token.md b/docs/examples/1.5.x/server-swift/examples/account/create-email-token.md index 40535d583ab..b9d39ff27f9 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-email-token.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-email-token.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-j-w-t.md b/docs/examples/1.5.x/server-swift/examples/account/create-j-w-t.md index c18c3c940ab..c1c0f22dffc 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-j-w-t.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-j-w-t.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/server-swift/examples/account/create-magic-u-r-l-token.md index 1fd73607328..83eb681673b 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-magic-u-r-l-token.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/server-swift/examples/account/create-mfa-authenticator.md index ff53e0b20ac..70294e99a22 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-mfa-authenticator.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/server-swift/examples/account/create-mfa-challenge.md index 4045203b299..6d262d9c74a 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-mfa-challenge.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-swift/examples/account/create-mfa-recovery-codes.md index 77bb2efd8f4..8480f417792 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-o-auth2session.md b/docs/examples/1.5.x/server-swift/examples/account/create-o-auth2session.md index e7d6a539e39..77826ccac7a 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-o-auth2session.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-o-auth2session.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/server-swift/examples/account/create-o-auth2token.md index 677450ecdbe..7bbfe98f48c 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-o-auth2token.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-o-auth2token.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-phone-token.md b/docs/examples/1.5.x/server-swift/examples/account/create-phone-token.md index a0c3a8cd876..acb7a696bcb 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-phone-token.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-phone-token.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-phone-verification.md b/docs/examples/1.5.x/server-swift/examples/account/create-phone-verification.md index 1391fe56794..8bab0b760f3 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-phone-verification.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-phone-verification.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-recovery.md b/docs/examples/1.5.x/server-swift/examples/account/create-recovery.md index 1069fd4a844..f110d5b84d2 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-recovery.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-recovery.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-session.md b/docs/examples/1.5.x/server-swift/examples/account/create-session.md index 4ed985dda3a..3ea51195697 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-session.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create-verification.md b/docs/examples/1.5.x/server-swift/examples/account/create-verification.md index 259bb51a993..305adcab30b 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create-verification.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create-verification.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create.md b/docs/examples/1.5.x/server-swift/examples/account/create.md index e7caef4dc0e..cad7e44c449 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/create2f-a-challenge.md b/docs/examples/1.5.x/server-swift/examples/account/create2f-a-challenge.md index 56386ccb9ca..5c0523f0f04 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/create2f-a-challenge.md +++ b/docs/examples/1.5.x/server-swift/examples/account/create2f-a-challenge.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/delete-authenticator.md b/docs/examples/1.5.x/server-swift/examples/account/delete-authenticator.md index 125244e8ecf..b8d01666c76 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/delete-authenticator.md +++ b/docs/examples/1.5.x/server-swift/examples/account/delete-authenticator.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-swift/examples/account/delete-identity.md b/docs/examples/1.5.x/server-swift/examples/account/delete-identity.md index 59001b43fad..e0322503f80 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/delete-identity.md +++ b/docs/examples/1.5.x/server-swift/examples/account/delete-identity.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-swift/examples/account/delete-mfa-authenticator.md index eeee94cd213..9aa02ff4caa 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-swift/examples/account/delete-mfa-authenticator.md @@ -3,13 +3,12 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) let result = try await account.deleteMfaAuthenticator( - type: .totp, - otp: "<OTP>" + type: .totp ) diff --git a/docs/examples/1.5.x/server-swift/examples/account/delete-session.md b/docs/examples/1.5.x/server-swift/examples/account/delete-session.md index c0682f47b9c..9c685bc5514 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/delete-session.md +++ b/docs/examples/1.5.x/server-swift/examples/account/delete-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/delete-sessions.md b/docs/examples/1.5.x/server-swift/examples/account/delete-sessions.md index bfd1689ea21..59710f1a771 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/delete-sessions.md +++ b/docs/examples/1.5.x/server-swift/examples/account/delete-sessions.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-swift/examples/account/get-mfa-recovery-codes.md index d24b4f9c2fe..34743be6d30 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-swift/examples/account/get-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/get-prefs.md b/docs/examples/1.5.x/server-swift/examples/account/get-prefs.md index 6351eb2c1df..08d9ab5b4ac 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/get-prefs.md +++ b/docs/examples/1.5.x/server-swift/examples/account/get-prefs.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/get-session.md b/docs/examples/1.5.x/server-swift/examples/account/get-session.md index 49f0f57a076..37747add26f 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/get-session.md +++ b/docs/examples/1.5.x/server-swift/examples/account/get-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/get.md b/docs/examples/1.5.x/server-swift/examples/account/get.md index 701135bd8a0..91ed56ab7c2 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/get.md +++ b/docs/examples/1.5.x/server-swift/examples/account/get.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/list-factors.md b/docs/examples/1.5.x/server-swift/examples/account/list-factors.md index e2fc910ec27..13d0ef8810e 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/list-factors.md +++ b/docs/examples/1.5.x/server-swift/examples/account/list-factors.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-swift/examples/account/list-identities.md b/docs/examples/1.5.x/server-swift/examples/account/list-identities.md index 973719579fd..96c6fd9dc27 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/list-identities.md +++ b/docs/examples/1.5.x/server-swift/examples/account/list-identities.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/list-logs.md b/docs/examples/1.5.x/server-swift/examples/account/list-logs.md index 28b72f7fc7f..1a93da0d0eb 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/list-logs.md +++ b/docs/examples/1.5.x/server-swift/examples/account/list-logs.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/server-swift/examples/account/list-mfa-factors.md index 0fcf12eaddf..72c2f5affef 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-swift/examples/account/list-mfa-factors.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/list-sessions.md b/docs/examples/1.5.x/server-swift/examples/account/list-sessions.md index 6d8b6742067..67bb1070918 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/list-sessions.md +++ b/docs/examples/1.5.x/server-swift/examples/account/list-sessions.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-challenge.md b/docs/examples/1.5.x/server-swift/examples/account/update-challenge.md index a671374dc3a..b4f3a35e1a5 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-challenge.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-challenge.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-email.md b/docs/examples/1.5.x/server-swift/examples/account/update-email.md index 21e907a4af3..d8126b5cf86 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-email.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-email.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-m-f-a.md b/docs/examples/1.5.x/server-swift/examples/account/update-m-f-a.md index 35f69fbae45..4a471a4a358 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-m-f-a.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-m-f-a.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/server-swift/examples/account/update-magic-u-r-l-session.md index 6950792fb51..8e0a26a6ef7 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/server-swift/examples/account/update-mfa-authenticator.md index cde9bf2c5b2..30e2705318b 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-mfa-authenticator.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/server-swift/examples/account/update-mfa-challenge.md index 13bd81ea7de..fee76bf0dd8 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-mfa-challenge.md @@ -2,12 +2,12 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) -let result = try await account.updateMfaChallenge( +let session = try await account.updateMfaChallenge( challengeId: "<CHALLENGE_ID>", otp: "<OTP>" ) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-swift/examples/account/update-mfa-recovery-codes.md index b194a21460c..2be8f6fbf6a 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-name.md b/docs/examples/1.5.x/server-swift/examples/account/update-name.md index 89b64ee2354..419b30a0098 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-name.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-name.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-password.md b/docs/examples/1.5.x/server-swift/examples/account/update-password.md index aca15882aea..8358ede14f6 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-password.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-password.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-phone-session.md b/docs/examples/1.5.x/server-swift/examples/account/update-phone-session.md index 71d404eee4a..50a88cbe519 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-phone-session.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-phone-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-phone-verification.md b/docs/examples/1.5.x/server-swift/examples/account/update-phone-verification.md index c4aee72c8bb..13b0baca639 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-phone-verification.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-phone-verification.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-phone.md b/docs/examples/1.5.x/server-swift/examples/account/update-phone.md index 0c1517bc367..496ddd9d0ee 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-phone.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-phone.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-prefs.md b/docs/examples/1.5.x/server-swift/examples/account/update-prefs.md index b39d94392aa..846764b4e5f 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-prefs.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-prefs.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-recovery.md b/docs/examples/1.5.x/server-swift/examples/account/update-recovery.md index e6df18509db..82e86839d82 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-recovery.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-recovery.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-session.md b/docs/examples/1.5.x/server-swift/examples/account/update-session.md index 3e7a0be2cc1..866ea03047a 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-session.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-status.md b/docs/examples/1.5.x/server-swift/examples/account/update-status.md index 979cf37f3ed..d63ceed7243 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-status.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-status.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/update-verification.md b/docs/examples/1.5.x/server-swift/examples/account/update-verification.md index 2d79cfc7d92..5bae6777440 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/update-verification.md +++ b/docs/examples/1.5.x/server-swift/examples/account/update-verification.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/1.5.x/server-swift/examples/account/verify-authenticator.md b/docs/examples/1.5.x/server-swift/examples/account/verify-authenticator.md index 2c113111808..bc5398088e8 100644 --- a/docs/examples/1.5.x/server-swift/examples/account/verify-authenticator.md +++ b/docs/examples/1.5.x/server-swift/examples/account/verify-authenticator.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.5.x/server-swift/examples/avatars/get-browser.md b/docs/examples/1.5.x/server-swift/examples/avatars/get-browser.md index dbe9f60a5dc..e2a79f953f5 100644 --- a/docs/examples/1.5.x/server-swift/examples/avatars/get-browser.md +++ b/docs/examples/1.5.x/server-swift/examples/avatars/get-browser.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-swift/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/server-swift/examples/avatars/get-credit-card.md index 9475b42d63e..741d3410604 100644 --- a/docs/examples/1.5.x/server-swift/examples/avatars/get-credit-card.md +++ b/docs/examples/1.5.x/server-swift/examples/avatars/get-credit-card.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-swift/examples/avatars/get-favicon.md b/docs/examples/1.5.x/server-swift/examples/avatars/get-favicon.md index bb5ed293f09..0ee7ba17669 100644 --- a/docs/examples/1.5.x/server-swift/examples/avatars/get-favicon.md +++ b/docs/examples/1.5.x/server-swift/examples/avatars/get-favicon.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-swift/examples/avatars/get-flag.md b/docs/examples/1.5.x/server-swift/examples/avatars/get-flag.md index ecde3c8ae9a..2bdd9577ee0 100644 --- a/docs/examples/1.5.x/server-swift/examples/avatars/get-flag.md +++ b/docs/examples/1.5.x/server-swift/examples/avatars/get-flag.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-swift/examples/avatars/get-image.md b/docs/examples/1.5.x/server-swift/examples/avatars/get-image.md index 37fa82b5404..fecadf7cf7e 100644 --- a/docs/examples/1.5.x/server-swift/examples/avatars/get-image.md +++ b/docs/examples/1.5.x/server-swift/examples/avatars/get-image.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-swift/examples/avatars/get-initials.md b/docs/examples/1.5.x/server-swift/examples/avatars/get-initials.md index d324dcb882d..d5e09050f26 100644 --- a/docs/examples/1.5.x/server-swift/examples/avatars/get-initials.md +++ b/docs/examples/1.5.x/server-swift/examples/avatars/get-initials.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-swift/examples/avatars/get-q-r.md b/docs/examples/1.5.x/server-swift/examples/avatars/get-q-r.md index 3c418c2ff5b..56f4b9c7d79 100644 --- a/docs/examples/1.5.x/server-swift/examples/avatars/get-q-r.md +++ b/docs/examples/1.5.x/server-swift/examples/avatars/get-q-r.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let avatars = Avatars(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/create-boolean-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/create-boolean-attribute.md index c7ffdd0eb09..0776be6ead8 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/create-boolean-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/create-collection.md b/docs/examples/1.5.x/server-swift/examples/databases/create-collection.md index 241b381008e..79c2d59861e 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/create-collection.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/create-collection.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/create-datetime-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/create-datetime-attribute.md index 022be46b326..b4f51d8f0c9 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/create-datetime-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/create-document.md b/docs/examples/1.5.x/server-swift/examples/databases/create-document.md index aac1abd0b7d..5f480a5ee45 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/create-document.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/create-document.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/create-email-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/create-email-attribute.md index e64ce2fc9c8..7c44f4d62ef 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/create-email-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/create-email-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/create-enum-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/create-enum-attribute.md index ca055202077..b1d680824c1 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/create-enum-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/create-float-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/create-float-attribute.md index 9353b2f9a25..780e53b7752 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/create-float-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/create-float-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/create-index.md b/docs/examples/1.5.x/server-swift/examples/databases/create-index.md index 03d0b965f7c..bd1d26dc323 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/create-index.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/create-index.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/create-integer-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/create-integer-attribute.md index b43fd66afcf..03fea65bc65 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/create-integer-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/create-ip-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/create-ip-attribute.md index 8c3af36cc61..4e601a37c8e 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/create-ip-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/create-relationship-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/create-relationship-attribute.md index faee863d677..c85b4779984 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/create-relationship-attribute.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/create-string-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/create-string-attribute.md index e3b4763e1a0..6a7ae27c6eb 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/create-string-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/create-string-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/create-url-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/create-url-attribute.md index ebd7ef43a5e..6d59fed9584 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/create-url-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/create-url-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/create.md b/docs/examples/1.5.x/server-swift/examples/databases/create.md index b6eb502b92c..82689d1b52d 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/create.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/create.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/delete-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/delete-attribute.md index 7f0690d3622..7fb7c3a02e2 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/delete-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/delete-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/delete-collection.md b/docs/examples/1.5.x/server-swift/examples/databases/delete-collection.md index 2f22e551c36..781e97c27d0 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/delete-collection.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/delete-collection.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/delete-document.md b/docs/examples/1.5.x/server-swift/examples/databases/delete-document.md index e0728330fb2..f934d5b29c2 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/delete-document.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/delete-document.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/delete-index.md b/docs/examples/1.5.x/server-swift/examples/databases/delete-index.md index df7015f5ca7..f819d921b69 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/delete-index.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/delete-index.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/delete.md b/docs/examples/1.5.x/server-swift/examples/databases/delete.md index d6ef6c4918c..8cb3f882128 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/delete.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/delete.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/get-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/get-attribute.md index 4910e2b6d49..f22fd9280af 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/get-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/get-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/get-collection.md b/docs/examples/1.5.x/server-swift/examples/databases/get-collection.md index 6fed2393b70..81b0bf21bac 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/get-collection.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/get-collection.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/get-document.md b/docs/examples/1.5.x/server-swift/examples/databases/get-document.md index 27338b8afab..206fddd3e6b 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/get-document.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/get-document.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/get-index.md b/docs/examples/1.5.x/server-swift/examples/databases/get-index.md index 572b04d7b99..b2c1b30902e 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/get-index.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/get-index.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/get.md b/docs/examples/1.5.x/server-swift/examples/databases/get.md index f6ba9543f77..37c15982cbb 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/get.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/get.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/list-attributes.md b/docs/examples/1.5.x/server-swift/examples/databases/list-attributes.md index 2e5a5afa3b5..356b13be0fd 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/list-attributes.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/list-attributes.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/list-collections.md b/docs/examples/1.5.x/server-swift/examples/databases/list-collections.md index bfa60eb66fb..03db34f8d56 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/list-collections.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/list-collections.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/list-documents.md b/docs/examples/1.5.x/server-swift/examples/databases/list-documents.md index 45683f831e9..11dc91d2ae5 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/list-documents.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/list-documents.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/list-indexes.md b/docs/examples/1.5.x/server-swift/examples/databases/list-indexes.md index 643f51097bf..2f37a0b30d8 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/list-indexes.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/list-indexes.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/list.md b/docs/examples/1.5.x/server-swift/examples/databases/list.md index e65284b9827..e27367659a0 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/list.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/list.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/update-boolean-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/update-boolean-attribute.md index 98293937a7d..e40da1a1e16 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/update-boolean-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) @@ -12,6 +12,7 @@ let attributeBoolean = try await databases.updateBooleanAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: false + default: false, + newKey: "" // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/update-collection.md b/docs/examples/1.5.x/server-swift/examples/databases/update-collection.md index 4338b1abb54..741d3c60160 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/update-collection.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/update-collection.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/update-datetime-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/update-datetime-attribute.md index 41324dddb81..a7728d24c54 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/update-datetime-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) @@ -12,6 +12,7 @@ let attributeDatetime = try await databases.updateDatetimeAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "" + default: "", + newKey: "" // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/update-document.md b/docs/examples/1.5.x/server-swift/examples/databases/update-document.md index 52e6a52caf0..67cfb960ea7 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/update-document.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/update-document.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/update-email-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/update-email-attribute.md index c5e1f16b279..137ca78afe7 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/update-email-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/update-email-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) @@ -12,6 +12,7 @@ let attributeEmail = try await databases.updateEmailAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "email@example.com" + default: "email@example.com", + newKey: "" // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/update-enum-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/update-enum-attribute.md index 4f6823878bd..bf7df6f7143 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/update-enum-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) @@ -13,6 +13,7 @@ let attributeEnum = try await databases.updateEnumAttribute( key: "", elements: [], required: false, - default: "<DEFAULT>" + default: "<DEFAULT>", + newKey: "" // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/update-float-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/update-float-attribute.md index c95c12f804f..7e246a76355 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/update-float-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/update-float-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) @@ -12,8 +12,9 @@ let attributeFloat = try await databases.updateFloatAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - min: 0, - max: 0, - default: 0 + default: 0, + min: 0, // optional + max: 0, // optional + newKey: "" // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/update-integer-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/update-integer-attribute.md index 5e26e2ad7e8..d502b8cef1d 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/update-integer-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) @@ -12,8 +12,9 @@ let attributeInteger = try await databases.updateIntegerAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - min: 0, - max: 0, - default: 0 + default: 0, + min: 0, // optional + max: 0, // optional + newKey: "" // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/update-ip-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/update-ip-attribute.md index 99bbbb6cd7a..2b4109665a1 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/update-ip-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) @@ -12,6 +12,7 @@ let attributeIp = try await databases.updateIpAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "" + default: "", + newKey: "" // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/update-relationship-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/update-relationship-attribute.md index fa5bd54fbce..8faa5ae17ff 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/update-relationship-attribute.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) @@ -12,6 +12,7 @@ let attributeRelationship = try await databases.updateRelationshipAttribute( databaseId: "<DATABASE_ID>", collectionId: "<COLLECTION_ID>", key: "", - onDelete: .cascade // optional + onDelete: .cascade, // optional + newKey: "" // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/update-string-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/update-string-attribute.md index fe381e051dd..d3129dcce2a 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/update-string-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/update-string-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) @@ -12,6 +12,8 @@ let attributeString = try await databases.updateStringAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "<DEFAULT>" + default: "<DEFAULT>", + size: 1, // optional + newKey: "" // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/update-url-attribute.md b/docs/examples/1.5.x/server-swift/examples/databases/update-url-attribute.md index e3f7bb24479..b442a6add44 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/update-url-attribute.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/update-url-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) @@ -12,6 +12,7 @@ let attributeUrl = try await databases.updateUrlAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - default: "https://example.com" + default: "https://example.com", + newKey: "" // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/databases/update.md b/docs/examples/1.5.x/server-swift/examples/databases/update.md index 9d60ad44e98..a03a74b4ff5 100644 --- a/docs/examples/1.5.x/server-swift/examples/databases/update.md +++ b/docs/examples/1.5.x/server-swift/examples/databases/update.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/create-build.md b/docs/examples/1.5.x/server-swift/examples/functions/create-build.md index d2ce165e869..f67ac99bc17 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/create-build.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/create-build.md @@ -2,14 +2,14 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) let result = try await functions.createBuild( functionId: "<FUNCTION_ID>", deploymentId: "<DEPLOYMENT_ID>", - buildId: "<BUILD_ID>" + buildId: "<BUILD_ID>" // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/create-deployment.md b/docs/examples/1.5.x/server-swift/examples/functions/create-deployment.md index 7eeee10ec80..bcd10ae042a 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/create-deployment.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/create-deployment.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/create-execution.md b/docs/examples/1.5.x/server-swift/examples/functions/create-execution.md index cf6acb5fca7..560f1a977f4 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/create-execution.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/create-execution.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let functions = Functions(client) @@ -14,6 +14,7 @@ let execution = try await functions.createExecution( async: false, // optional path: "<PATH>", // optional method: .gET, // optional - headers: [:] // optional + headers: [:], // optional + scheduledAt: "" // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/create-variable.md b/docs/examples/1.5.x/server-swift/examples/functions/create-variable.md index e1e78f75c9c..3af32209755 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/create-variable.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/create-variable.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/create.md b/docs/examples/1.5.x/server-swift/examples/functions/create.md index ab776cb327c..fb614b5a4ec 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/create.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/create.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) @@ -20,6 +20,7 @@ let function = try await functions.create( logging: false, // optional entrypoint: "<ENTRYPOINT>", // optional commands: "<COMMANDS>", // optional + scopes: [], // optional installationId: "<INSTALLATION_ID>", // optional providerRepositoryId: "<PROVIDER_REPOSITORY_ID>", // optional providerBranch: "<PROVIDER_BRANCH>", // optional @@ -28,6 +29,7 @@ let function = try await functions.create( templateRepository: "<TEMPLATE_REPOSITORY>", // optional templateOwner: "<TEMPLATE_OWNER>", // optional templateRootDirectory: "<TEMPLATE_ROOT_DIRECTORY>", // optional - templateBranch: "<TEMPLATE_BRANCH>" // optional + templateVersion: "<TEMPLATE_VERSION>", // optional + specification: "" // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/delete-deployment.md b/docs/examples/1.5.x/server-swift/examples/functions/delete-deployment.md index ad5fd237934..cf9315e9af1 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/delete-deployment.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/delete-deployment.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.6.x/client-apple/examples/functions/get-template.md b/docs/examples/1.5.x/server-swift/examples/functions/delete-execution.md similarity index 54% rename from docs/examples/1.6.x/client-apple/examples/functions/get-template.md rename to docs/examples/1.5.x/server-swift/examples/functions/delete-execution.md index bc7a9a3aef3..f6e13cd4bb4 100644 --- a/docs/examples/1.6.x/client-apple/examples/functions/get-template.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/delete-execution.md @@ -3,10 +3,12 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) -let templateFunction = try await functions.getTemplate( - templateId: "<TEMPLATE_ID>" +let result = try await functions.deleteExecution( + functionId: "<FUNCTION_ID>", + executionId: "<EXECUTION_ID>" ) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/delete-variable.md b/docs/examples/1.5.x/server-swift/examples/functions/delete-variable.md index 08ae7e9499e..7d09f110488 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/delete-variable.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/delete-variable.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/delete.md b/docs/examples/1.5.x/server-swift/examples/functions/delete.md index ff9a12f6be3..ff1d0490909 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/delete.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/delete.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/download-deployment.md b/docs/examples/1.5.x/server-swift/examples/functions/download-deployment.md index e01e8feb28b..189d829fb0f 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/download-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.6.x/client-apple/examples/functions/get-deployment-download.md b/docs/examples/1.5.x/server-swift/examples/functions/get-deployment-download.md similarity index 86% rename from docs/examples/1.6.x/client-apple/examples/functions/get-deployment-download.md rename to docs/examples/1.5.x/server-swift/examples/functions/get-deployment-download.md index 0e6659969cb..6d08d9bb7f0 100644 --- a/docs/examples/1.6.x/client-apple/examples/functions/get-deployment-download.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/get-deployment-download.md @@ -3,6 +3,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/get-deployment.md b/docs/examples/1.5.x/server-swift/examples/functions/get-deployment.md index 7246236c3ee..438b667e105 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/get-deployment.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/get-deployment.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/get-execution.md b/docs/examples/1.5.x/server-swift/examples/functions/get-execution.md index 6b16cc45cc7..0aa9d66af62 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/get-execution.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/get-execution.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let functions = Functions(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/get-variable.md b/docs/examples/1.5.x/server-swift/examples/functions/get-variable.md index 17b7060486f..0832b41e887 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/get-variable.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/get-variable.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/get.md b/docs/examples/1.5.x/server-swift/examples/functions/get.md index 5063dfc1733..aa434c03e34 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/get.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/get.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/list-deployments.md b/docs/examples/1.5.x/server-swift/examples/functions/list-deployments.md index 21b737d60f5..5f005f02fae 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/list-deployments.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/list-deployments.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/list-executions.md b/docs/examples/1.5.x/server-swift/examples/functions/list-executions.md index c25b06e5bca..2c28d542745 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/list-executions.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/list-executions.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let functions = Functions(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/list-runtimes.md b/docs/examples/1.5.x/server-swift/examples/functions/list-runtimes.md index 6a543754eb5..bad50b172c6 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/list-runtimes.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/list-runtimes.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.6.x/server-swift/examples/functions/get-template.md b/docs/examples/1.5.x/server-swift/examples/functions/list-specifications.md similarity index 63% rename from docs/examples/1.6.x/server-swift/examples/functions/get-template.md rename to docs/examples/1.5.x/server-swift/examples/functions/list-specifications.md index bc7a9a3aef3..0c9da2df0b2 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/get-template.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/list-specifications.md @@ -3,10 +3,9 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) -let templateFunction = try await functions.getTemplate( - templateId: "<TEMPLATE_ID>" -) +let specificationList = try await functions.listSpecifications() diff --git a/docs/examples/1.5.x/server-swift/examples/functions/list-variables.md b/docs/examples/1.5.x/server-swift/examples/functions/list-variables.md index cbddf45a3a4..67030b93d1d 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/list-variables.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/list-variables.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/list.md b/docs/examples/1.5.x/server-swift/examples/functions/list.md index 475cab3ff66..f6ed013a564 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/list.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/list.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.6.x/server-swift/examples/functions/download-deployment.md b/docs/examples/1.5.x/server-swift/examples/functions/update-deployment-build.md similarity index 85% rename from docs/examples/1.6.x/server-swift/examples/functions/download-deployment.md rename to docs/examples/1.5.x/server-swift/examples/functions/update-deployment-build.md index 753d7058e6f..9003a02df3f 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/download-deployment.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/update-deployment-build.md @@ -7,7 +7,7 @@ let client = Client() let functions = Functions(client) -let bytes = try await functions.downloadDeployment( +let build = try await functions.updateDeploymentBuild( functionId: "<FUNCTION_ID>", deploymentId: "<DEPLOYMENT_ID>" ) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/update-deployment.md b/docs/examples/1.5.x/server-swift/examples/functions/update-deployment.md index 49730d22014..9ae6ec4f51e 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/update-deployment.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/update-deployment.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/update-variable.md b/docs/examples/1.5.x/server-swift/examples/functions/update-variable.md index 5e468259c8c..67169852a7c 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/update-variable.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/update-variable.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/1.5.x/server-swift/examples/functions/update.md b/docs/examples/1.5.x/server-swift/examples/functions/update.md index 51b7aa7fd06..dcc4ed637e8 100644 --- a/docs/examples/1.5.x/server-swift/examples/functions/update.md +++ b/docs/examples/1.5.x/server-swift/examples/functions/update.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) @@ -20,10 +20,12 @@ let function = try await functions.update( logging: false, // optional entrypoint: "<ENTRYPOINT>", // optional commands: "<COMMANDS>", // optional + scopes: [], // optional installationId: "<INSTALLATION_ID>", // optional providerRepositoryId: "<PROVIDER_REPOSITORY_ID>", // optional providerBranch: "<PROVIDER_BRANCH>", // optional providerSilentMode: false, // optional - providerRootDirectory: "<PROVIDER_ROOT_DIRECTORY>" // optional + providerRootDirectory: "<PROVIDER_ROOT_DIRECTORY>", // optional + specification: "" // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/graphql/mutation.md b/docs/examples/1.5.x/server-swift/examples/graphql/mutation.md index db869d48c93..6d4f7475370 100644 --- a/docs/examples/1.5.x/server-swift/examples/graphql/mutation.md +++ b/docs/examples/1.5.x/server-swift/examples/graphql/mutation.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let graphql = Graphql(client) diff --git a/docs/examples/1.5.x/server-swift/examples/graphql/query.md b/docs/examples/1.5.x/server-swift/examples/graphql/query.md index 5e97508be50..4a10f57cbcb 100644 --- a/docs/examples/1.5.x/server-swift/examples/graphql/query.md +++ b/docs/examples/1.5.x/server-swift/examples/graphql/query.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let graphql = Graphql(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-antivirus.md b/docs/examples/1.5.x/server-swift/examples/health/get-antivirus.md index cab0d98339d..d45b7190eb7 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-antivirus.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-antivirus.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-cache.md b/docs/examples/1.5.x/server-swift/examples/health/get-cache.md index a682d63a6f6..4d493c40ad7 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-cache.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-cache.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-certificate.md b/docs/examples/1.5.x/server-swift/examples/health/get-certificate.md index 6014dd55385..1d2d453d73e 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-certificate.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-certificate.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-d-b.md b/docs/examples/1.5.x/server-swift/examples/health/get-d-b.md index 81645497b5c..c7b5127d59f 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-d-b.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-d-b.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-failed-jobs.md b/docs/examples/1.5.x/server-swift/examples/health/get-failed-jobs.md index b76dc69ac6c..5120c072a6c 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-failed-jobs.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-failed-jobs.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-pub-sub.md b/docs/examples/1.5.x/server-swift/examples/health/get-pub-sub.md index 5bf027108a5..561fc6b7a97 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-pub-sub.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-pub-sub.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-queue-builds.md b/docs/examples/1.5.x/server-swift/examples/health/get-queue-builds.md index af09ed2bcb9..81b4fb2523a 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-queue-builds.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-queue-builds.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-queue-certificates.md b/docs/examples/1.5.x/server-swift/examples/health/get-queue-certificates.md index 48d39f2a41f..cecb88ae675 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-queue-certificates.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-queue-certificates.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-queue-databases.md b/docs/examples/1.5.x/server-swift/examples/health/get-queue-databases.md index 016146d796a..b3fefc8b050 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-queue-databases.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-queue-databases.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-queue-deletes.md b/docs/examples/1.5.x/server-swift/examples/health/get-queue-deletes.md index 33ea2381098..0d90387c6df 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-queue-deletes.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-queue-deletes.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-queue-functions.md b/docs/examples/1.5.x/server-swift/examples/health/get-queue-functions.md index a66e8ace0dd..961cc6221d7 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-queue-functions.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-queue-functions.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-queue-logs.md b/docs/examples/1.5.x/server-swift/examples/health/get-queue-logs.md index 6bdf95f73d2..34d26efd758 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-queue-logs.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-queue-logs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-queue-mails.md b/docs/examples/1.5.x/server-swift/examples/health/get-queue-mails.md index 6424b4d7251..f48a96d7c8a 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-queue-mails.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-queue-mails.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-queue-messaging.md b/docs/examples/1.5.x/server-swift/examples/health/get-queue-messaging.md index 31db7ac5f54..7a171bd7339 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-queue-messaging.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-queue-messaging.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-queue-migrations.md b/docs/examples/1.5.x/server-swift/examples/health/get-queue-migrations.md index 503d0bf5715..f36eb129a60 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-queue-migrations.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-queue-migrations.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-queue-stats-resources.md b/docs/examples/1.5.x/server-swift/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..3c349662cb7 --- /dev/null +++ b/docs/examples/1.5.x/server-swift/examples/health/get-queue-stats-resources.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let health = Health(client) + +let healthQueue = try await health.getQueueStatsResources( + threshold: 0 // optional +) + diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-queue-usage-dump.md b/docs/examples/1.5.x/server-swift/examples/health/get-queue-usage-dump.md index 3537c4ccf20..3830e94bd0b 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-queue-usage-dump.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-queue-usage.md b/docs/examples/1.5.x/server-swift/examples/health/get-queue-usage.md index 586e635e974..b3bc88ed881 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-queue-usage.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-queue-usage.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-queue-webhooks.md b/docs/examples/1.5.x/server-swift/examples/health/get-queue-webhooks.md index dcfd11e8e4f..25ed30f4426 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-queue-webhooks.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-queue.md b/docs/examples/1.5.x/server-swift/examples/health/get-queue.md index 6f8131d7e83..88e3b8a82b1 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-queue.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-queue.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-storage-local.md b/docs/examples/1.5.x/server-swift/examples/health/get-storage-local.md index ee807980bba..4e8518362c1 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-storage-local.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-storage-local.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-storage.md b/docs/examples/1.5.x/server-swift/examples/health/get-storage.md index eccd97db13c..fbe116fccef 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-storage.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-storage.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get-time.md b/docs/examples/1.5.x/server-swift/examples/health/get-time.md index f6d66d950a9..02cca3f21bc 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get-time.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get-time.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/health/get.md b/docs/examples/1.5.x/server-swift/examples/health/get.md index 828f3453e0c..140b304461e 100644 --- a/docs/examples/1.5.x/server-swift/examples/health/get.md +++ b/docs/examples/1.5.x/server-swift/examples/health/get.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/1.5.x/server-swift/examples/locale/get.md b/docs/examples/1.5.x/server-swift/examples/locale/get.md index cabd64c3a7c..94121fd0b28 100644 --- a/docs/examples/1.5.x/server-swift/examples/locale/get.md +++ b/docs/examples/1.5.x/server-swift/examples/locale/get.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/1.5.x/server-swift/examples/locale/list-codes.md b/docs/examples/1.5.x/server-swift/examples/locale/list-codes.md index d8704287fa9..1f41799b204 100644 --- a/docs/examples/1.5.x/server-swift/examples/locale/list-codes.md +++ b/docs/examples/1.5.x/server-swift/examples/locale/list-codes.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/1.5.x/server-swift/examples/locale/list-continents.md b/docs/examples/1.5.x/server-swift/examples/locale/list-continents.md index fd700f34354..f46f3c034bd 100644 --- a/docs/examples/1.5.x/server-swift/examples/locale/list-continents.md +++ b/docs/examples/1.5.x/server-swift/examples/locale/list-continents.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/1.5.x/server-swift/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/server-swift/examples/locale/list-countries-e-u.md index 8cf5ca1f8fc..ee57e01a8e1 100644 --- a/docs/examples/1.5.x/server-swift/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.5.x/server-swift/examples/locale/list-countries-e-u.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/1.5.x/server-swift/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/server-swift/examples/locale/list-countries-phones.md index aa0ca92ff0f..9263de68e5b 100644 --- a/docs/examples/1.5.x/server-swift/examples/locale/list-countries-phones.md +++ b/docs/examples/1.5.x/server-swift/examples/locale/list-countries-phones.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/1.5.x/server-swift/examples/locale/list-countries.md b/docs/examples/1.5.x/server-swift/examples/locale/list-countries.md index b82c61c2037..d793492f719 100644 --- a/docs/examples/1.5.x/server-swift/examples/locale/list-countries.md +++ b/docs/examples/1.5.x/server-swift/examples/locale/list-countries.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/1.5.x/server-swift/examples/locale/list-currencies.md b/docs/examples/1.5.x/server-swift/examples/locale/list-currencies.md index 43a48a1b240..eb0ddf7f5e1 100644 --- a/docs/examples/1.5.x/server-swift/examples/locale/list-currencies.md +++ b/docs/examples/1.5.x/server-swift/examples/locale/list-currencies.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/1.5.x/server-swift/examples/locale/list-languages.md b/docs/examples/1.5.x/server-swift/examples/locale/list-languages.md index 0aedcd735bd..19a70b23a4e 100644 --- a/docs/examples/1.5.x/server-swift/examples/locale/list-languages.md +++ b/docs/examples/1.5.x/server-swift/examples/locale/list-languages.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-a-p-n-s-provider.md index d56050fedfc..0e6f8e32749 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-a-p-n-s-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-apns-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-apns-provider.md index f16352c968f..9bbb4da7a1d 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-apns-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-email.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-email.md index d1a5f86fc96..655daeaad4c 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-email.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-email.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-f-c-m-provider.md index 41a3d44b823..375720320b2 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-f-c-m-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-fcm-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-fcm-provider.md index 6a39c33d875..b127946cf84 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-fcm-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-mailgun-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-mailgun-provider.md index 752ec02efb4..63fd5a127fb 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-mailgun-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-msg91provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-msg91provider.md index 35647c63084..57cd54be154 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-msg91provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-push.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-push.md index c62f36d8433..42f48ddd2e9 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-push.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-push.md @@ -1,16 +1,17 @@ import Appwrite +import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) let message = try await messaging.createPush( messageId: "<MESSAGE_ID>", - title: "<TITLE>", - body: "<BODY>", + title: "<TITLE>", // optional + body: "<BODY>", // optional topics: [], // optional users: [], // optional targets: [], // optional @@ -21,8 +22,11 @@ let message = try await messaging.createPush( sound: "<SOUND>", // optional color: "<COLOR>", // optional tag: "<TAG>", // optional - badge: "<BADGE>", // optional + badge: 0, // optional draft: false, // optional - scheduledAt: "" // optional + scheduledAt: "", // optional + contentAvailable: false, // optional + critical: false, // optional + priority: .normal // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-s-m-s.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-s-m-s.md index 7c764462cba..8efc17ac938 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-s-m-s.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-s-m-s.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-s-m-t-p-provider.md index 16647161abf..fba631f080c 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-s-m-t-p-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-sendgrid-provider.md index 3f435bc8294..e8b70b629f8 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-sendgrid-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-sms.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-sms.md index ae465198f0b..22ca198e461 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-sms.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-sms.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-smtp-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-smtp-provider.md index ba097b110a4..5eff6413e1e 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-smtp-provider.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-subscriber.md index 68afa345a07..087ec0e31e1 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-subscriber.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-subscriber.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setJWT("<YOUR_JWT>") // Your secret JSON Web Token let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-telesign-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-telesign-provider.md index e960d5a2b83..b9beb151f6f 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-telesign-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-textmagic-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-textmagic-provider.md index 361934887b8..f1802d9f296 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-textmagic-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-topic.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-topic.md index c6227a4787b..14f222907b4 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-topic.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-topic.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-twilio-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-twilio-provider.md index 131b54c5f01..f0f0d6e0875 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-twilio-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/create-vonage-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/create-vonage-provider.md index 609001481e7..4e683dfc9d1 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/create-vonage-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/delete-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/delete-provider.md index ffc9b6927af..3652609bec1 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/delete-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/delete-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/server-swift/examples/messaging/delete-subscriber.md index 24e86a12957..b083fc4e1ac 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/delete-subscriber.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setJWT("<YOUR_JWT>") // Your secret JSON Web Token let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/delete-topic.md b/docs/examples/1.5.x/server-swift/examples/messaging/delete-topic.md index 771d98415a0..1de412682d3 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/delete-topic.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/delete-topic.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/delete.md b/docs/examples/1.5.x/server-swift/examples/messaging/delete.md index 148c945bd8e..2e407808af3 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/delete.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/delete.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/get-message.md b/docs/examples/1.5.x/server-swift/examples/messaging/get-message.md index 358dadeeb4d..5db5f7d5084 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/get-message.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/get-message.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/get-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/get-provider.md index 419f2a5c69c..b5a81562883 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/get-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/get-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/get-subscriber.md b/docs/examples/1.5.x/server-swift/examples/messaging/get-subscriber.md index fbc702d2e15..ac4d2898716 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/get-subscriber.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/get-subscriber.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/get-topic.md b/docs/examples/1.5.x/server-swift/examples/messaging/get-topic.md index 06723c55c20..3d883714588 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/get-topic.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/get-topic.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/list-message-logs.md b/docs/examples/1.5.x/server-swift/examples/messaging/list-message-logs.md index 4512e065190..c58ef450d25 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/list-message-logs.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/list-message-logs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/list-messages.md b/docs/examples/1.5.x/server-swift/examples/messaging/list-messages.md index c47f9be12f8..bfa9222239c 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/list-messages.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/list-messages.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/list-provider-logs.md b/docs/examples/1.5.x/server-swift/examples/messaging/list-provider-logs.md index 8fcb13f3bc3..55f0d1f2541 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/list-provider-logs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/list-providers.md b/docs/examples/1.5.x/server-swift/examples/messaging/list-providers.md index dc395dc8c9f..fbb5803538e 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/list-providers.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/list-providers.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/list-subscriber-logs.md b/docs/examples/1.5.x/server-swift/examples/messaging/list-subscriber-logs.md index 0debb66a921..a83cb6053db 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/list-subscriber-logs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/list-subscribers.md b/docs/examples/1.5.x/server-swift/examples/messaging/list-subscribers.md index 9d2be0336c0..ded4fdf9757 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/list-subscribers.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/list-subscribers.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/list-targets.md b/docs/examples/1.5.x/server-swift/examples/messaging/list-targets.md index facdb44eba8..00219f15f6f 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/list-targets.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/list-targets.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/list-topic-logs.md b/docs/examples/1.5.x/server-swift/examples/messaging/list-topic-logs.md index 396ca6cec5f..68f121c9efe 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/list-topic-logs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/list-topics.md b/docs/examples/1.5.x/server-swift/examples/messaging/list-topics.md index 5ee09819b88..617b13c70d6 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/list-topics.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/list-topics.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-a-p-n-s-provider.md index 09574c870c0..05f474809a7 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-a-p-n-s-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-a-p-n-s-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-apns-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-apns-provider.md index 071d2ee7cee..012e91e7bf2 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-apns-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-email.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-email.md index 358bf5dea61..e9251641806 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-email.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-email.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-f-c-m-provider.md index 69cbf382f5a..6c240f8c6b8 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-f-c-m-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-f-c-m-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-fcm-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-fcm-provider.md index 428eaca6972..60a0ce46e2f 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-fcm-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-mailgun-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-mailgun-provider.md index 63d27b8e847..bc385267ecd 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-mailgun-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-msg91provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-msg91provider.md index 5d8cebb325b..3818b7a9c1c 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-msg91provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-push.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-push.md index 5344fb369b2..02893a180ae 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-push.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-push.md @@ -1,9 +1,10 @@ import Appwrite +import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) @@ -23,6 +24,9 @@ let message = try await messaging.updatePush( tag: "<TAG>", // optional badge: 0, // optional draft: false, // optional - scheduledAt: "" // optional + scheduledAt: "", // optional + contentAvailable: false, // optional + critical: false, // optional + priority: .normal // optional ) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-s-m-s.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-s-m-s.md index cdf0f9329d4..e3475259cc6 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-s-m-s.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-s-m-s.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-s-m-t-p-provider.md index 408bc0d3afb..f6dcc74c716 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-s-m-t-p-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-s-m-t-p-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-sendgrid-provider.md index 0ec24c4a9af..af950c7db05 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-sendgrid-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-sms.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-sms.md index cf588c954f3..8f4476783ec 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-sms.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-sms.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-smtp-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-smtp-provider.md index 3c71a8309e5..95db5056cfc 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-smtp-provider.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-telesign-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-telesign-provider.md index 51dc3ba1093..0d3279c98b1 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-telesign-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-textmagic-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-textmagic-provider.md index 530da15950e..738d27d7c11 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-textmagic-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-topic.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-topic.md index 5d645df59b9..ad5edd1f904 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-topic.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-topic.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-twilio-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-twilio-provider.md index d505416f43e..6320665e616 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-twilio-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/messaging/update-vonage-provider.md b/docs/examples/1.5.x/server-swift/examples/messaging/update-vonage-provider.md index 6a0e4ae9a22..ffdbe95d3de 100644 --- a/docs/examples/1.5.x/server-swift/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.5.x/server-swift/examples/messaging/update-vonage-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/1.5.x/server-swift/examples/storage/create-bucket.md b/docs/examples/1.5.x/server-swift/examples/storage/create-bucket.md index 57c8beefc54..4ebbdf84153 100644 --- a/docs/examples/1.5.x/server-swift/examples/storage/create-bucket.md +++ b/docs/examples/1.5.x/server-swift/examples/storage/create-bucket.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.5.x/server-swift/examples/storage/create-file.md b/docs/examples/1.5.x/server-swift/examples/storage/create-file.md index cdf2215fc08..0716cf7d237 100644 --- a/docs/examples/1.5.x/server-swift/examples/storage/create-file.md +++ b/docs/examples/1.5.x/server-swift/examples/storage/create-file.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/1.5.x/server-swift/examples/storage/delete-bucket.md b/docs/examples/1.5.x/server-swift/examples/storage/delete-bucket.md index 4bef1753322..56c7d3ed6d9 100644 --- a/docs/examples/1.5.x/server-swift/examples/storage/delete-bucket.md +++ b/docs/examples/1.5.x/server-swift/examples/storage/delete-bucket.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.5.x/server-swift/examples/storage/delete-file.md b/docs/examples/1.5.x/server-swift/examples/storage/delete-file.md index 151bd96db1d..35dca5e706d 100644 --- a/docs/examples/1.5.x/server-swift/examples/storage/delete-file.md +++ b/docs/examples/1.5.x/server-swift/examples/storage/delete-file.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/1.5.x/server-swift/examples/storage/get-bucket.md b/docs/examples/1.5.x/server-swift/examples/storage/get-bucket.md index 9e92b87dd76..e33af5cc3b3 100644 --- a/docs/examples/1.5.x/server-swift/examples/storage/get-bucket.md +++ b/docs/examples/1.5.x/server-swift/examples/storage/get-bucket.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.5.x/server-swift/examples/storage/get-file-download.md b/docs/examples/1.5.x/server-swift/examples/storage/get-file-download.md index 90379b0c51e..40607d08ddd 100644 --- a/docs/examples/1.5.x/server-swift/examples/storage/get-file-download.md +++ b/docs/examples/1.5.x/server-swift/examples/storage/get-file-download.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/1.5.x/server-swift/examples/storage/get-file-preview.md b/docs/examples/1.5.x/server-swift/examples/storage/get-file-preview.md index 4377ce92ec0..e3372093d8a 100644 --- a/docs/examples/1.5.x/server-swift/examples/storage/get-file-preview.md +++ b/docs/examples/1.5.x/server-swift/examples/storage/get-file-preview.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/1.5.x/server-swift/examples/storage/get-file-view.md b/docs/examples/1.5.x/server-swift/examples/storage/get-file-view.md index ff035c5c06f..0c88e15b729 100644 --- a/docs/examples/1.5.x/server-swift/examples/storage/get-file-view.md +++ b/docs/examples/1.5.x/server-swift/examples/storage/get-file-view.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/1.5.x/server-swift/examples/storage/get-file.md b/docs/examples/1.5.x/server-swift/examples/storage/get-file.md index 4ab1605215b..a0c997c40b1 100644 --- a/docs/examples/1.5.x/server-swift/examples/storage/get-file.md +++ b/docs/examples/1.5.x/server-swift/examples/storage/get-file.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/1.5.x/server-swift/examples/storage/list-buckets.md b/docs/examples/1.5.x/server-swift/examples/storage/list-buckets.md index a538679339d..2329b15ad6e 100644 --- a/docs/examples/1.5.x/server-swift/examples/storage/list-buckets.md +++ b/docs/examples/1.5.x/server-swift/examples/storage/list-buckets.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.5.x/server-swift/examples/storage/list-files.md b/docs/examples/1.5.x/server-swift/examples/storage/list-files.md index 18bbc357ca3..546bd1c1ef3 100644 --- a/docs/examples/1.5.x/server-swift/examples/storage/list-files.md +++ b/docs/examples/1.5.x/server-swift/examples/storage/list-files.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/1.5.x/server-swift/examples/storage/update-bucket.md b/docs/examples/1.5.x/server-swift/examples/storage/update-bucket.md index 472a243d9ac..4122d1f062e 100644 --- a/docs/examples/1.5.x/server-swift/examples/storage/update-bucket.md +++ b/docs/examples/1.5.x/server-swift/examples/storage/update-bucket.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/1.5.x/server-swift/examples/storage/update-file.md b/docs/examples/1.5.x/server-swift/examples/storage/update-file.md index 708138a58f3..ca3fc2c293b 100644 --- a/docs/examples/1.5.x/server-swift/examples/storage/update-file.md +++ b/docs/examples/1.5.x/server-swift/examples/storage/update-file.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/1.5.x/server-swift/examples/teams/create-membership.md b/docs/examples/1.5.x/server-swift/examples/teams/create-membership.md index 215fcf25c43..5c86f2db335 100644 --- a/docs/examples/1.5.x/server-swift/examples/teams/create-membership.md +++ b/docs/examples/1.5.x/server-swift/examples/teams/create-membership.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/1.5.x/server-swift/examples/teams/create.md b/docs/examples/1.5.x/server-swift/examples/teams/create.md index 5b46ca3f9a0..2533c279027 100644 --- a/docs/examples/1.5.x/server-swift/examples/teams/create.md +++ b/docs/examples/1.5.x/server-swift/examples/teams/create.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/1.5.x/server-swift/examples/teams/delete-membership.md b/docs/examples/1.5.x/server-swift/examples/teams/delete-membership.md index df1607bf097..e260b01ff84 100644 --- a/docs/examples/1.5.x/server-swift/examples/teams/delete-membership.md +++ b/docs/examples/1.5.x/server-swift/examples/teams/delete-membership.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/1.5.x/server-swift/examples/teams/delete.md b/docs/examples/1.5.x/server-swift/examples/teams/delete.md index 9393066a929..b9fbcbe4466 100644 --- a/docs/examples/1.5.x/server-swift/examples/teams/delete.md +++ b/docs/examples/1.5.x/server-swift/examples/teams/delete.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/1.5.x/server-swift/examples/teams/get-membership.md b/docs/examples/1.5.x/server-swift/examples/teams/get-membership.md index 5a640c33b9e..cce480cc70e 100644 --- a/docs/examples/1.5.x/server-swift/examples/teams/get-membership.md +++ b/docs/examples/1.5.x/server-swift/examples/teams/get-membership.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/1.5.x/server-swift/examples/teams/get-prefs.md b/docs/examples/1.5.x/server-swift/examples/teams/get-prefs.md index 966c06b94da..9ec230df38c 100644 --- a/docs/examples/1.5.x/server-swift/examples/teams/get-prefs.md +++ b/docs/examples/1.5.x/server-swift/examples/teams/get-prefs.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/1.5.x/server-swift/examples/teams/get.md b/docs/examples/1.5.x/server-swift/examples/teams/get.md index 0b0f921bef2..8dce2c137ba 100644 --- a/docs/examples/1.5.x/server-swift/examples/teams/get.md +++ b/docs/examples/1.5.x/server-swift/examples/teams/get.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/1.5.x/server-swift/examples/teams/list-memberships.md b/docs/examples/1.5.x/server-swift/examples/teams/list-memberships.md index 1edb4d7052a..08b3235e518 100644 --- a/docs/examples/1.5.x/server-swift/examples/teams/list-memberships.md +++ b/docs/examples/1.5.x/server-swift/examples/teams/list-memberships.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/1.5.x/server-swift/examples/teams/list.md b/docs/examples/1.5.x/server-swift/examples/teams/list.md index 5c69c524d80..8b6d0a16744 100644 --- a/docs/examples/1.5.x/server-swift/examples/teams/list.md +++ b/docs/examples/1.5.x/server-swift/examples/teams/list.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/1.5.x/server-swift/examples/teams/update-membership-status.md b/docs/examples/1.5.x/server-swift/examples/teams/update-membership-status.md index 1630b8c615a..1ae6d6e9936 100644 --- a/docs/examples/1.5.x/server-swift/examples/teams/update-membership-status.md +++ b/docs/examples/1.5.x/server-swift/examples/teams/update-membership-status.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/1.5.x/server-swift/examples/teams/update-membership.md b/docs/examples/1.5.x/server-swift/examples/teams/update-membership.md index 5948c43c6f6..92b747458ae 100644 --- a/docs/examples/1.5.x/server-swift/examples/teams/update-membership.md +++ b/docs/examples/1.5.x/server-swift/examples/teams/update-membership.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/1.5.x/server-swift/examples/teams/update-name.md b/docs/examples/1.5.x/server-swift/examples/teams/update-name.md index 3425f5d5bda..bc9731bd567 100644 --- a/docs/examples/1.5.x/server-swift/examples/teams/update-name.md +++ b/docs/examples/1.5.x/server-swift/examples/teams/update-name.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/1.5.x/server-swift/examples/teams/update-prefs.md b/docs/examples/1.5.x/server-swift/examples/teams/update-prefs.md index fce81c6e04d..b86e93793e7 100644 --- a/docs/examples/1.5.x/server-swift/examples/teams/update-prefs.md +++ b/docs/examples/1.5.x/server-swift/examples/teams/update-prefs.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/create-argon2user.md b/docs/examples/1.5.x/server-swift/examples/users/create-argon2user.md index f122745de67..6f584e47245 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/create-argon2user.md +++ b/docs/examples/1.5.x/server-swift/examples/users/create-argon2user.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/create-bcrypt-user.md b/docs/examples/1.5.x/server-swift/examples/users/create-bcrypt-user.md index 24f5343607b..cd0960f354f 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.5.x/server-swift/examples/users/create-bcrypt-user.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/create-j-w-t.md b/docs/examples/1.5.x/server-swift/examples/users/create-j-w-t.md new file mode 100644 index 00000000000..77ef4da98f5 --- /dev/null +++ b/docs/examples/1.5.x/server-swift/examples/users/create-j-w-t.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let jwt = try await users.createJWT( + userId: "<USER_ID>", + sessionId: "<SESSION_ID>", // optional + duration: 0 // optional +) + diff --git a/docs/examples/1.5.x/server-swift/examples/users/create-m-d5user.md b/docs/examples/1.5.x/server-swift/examples/users/create-m-d5user.md index 48eadabd158..a305f6a744a 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/create-m-d5user.md +++ b/docs/examples/1.5.x/server-swift/examples/users/create-m-d5user.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.5.x/server-swift/examples/users/create-mfa-recovery-codes.md index fd3b6fe96d0..cb25d43cb1c 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-swift/examples/users/create-mfa-recovery-codes.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/create-p-h-pass-user.md b/docs/examples/1.5.x/server-swift/examples/users/create-p-h-pass-user.md index 491c29f8ae8..5a95af73e41 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.5.x/server-swift/examples/users/create-p-h-pass-user.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/create-s-h-a-user.md b/docs/examples/1.5.x/server-swift/examples/users/create-s-h-a-user.md index b841a0f41bf..70d6f284db6 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.5.x/server-swift/examples/users/create-s-h-a-user.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/create-scrypt-modified-user.md b/docs/examples/1.5.x/server-swift/examples/users/create-scrypt-modified-user.md index 8b1472427d5..62709130e3b 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.5.x/server-swift/examples/users/create-scrypt-modified-user.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/create-scrypt-user.md b/docs/examples/1.5.x/server-swift/examples/users/create-scrypt-user.md index 579336e9678..41a086560da 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/create-scrypt-user.md +++ b/docs/examples/1.5.x/server-swift/examples/users/create-scrypt-user.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/create-session.md b/docs/examples/1.5.x/server-swift/examples/users/create-session.md index 3e506dcc670..764d4d87d69 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/create-session.md +++ b/docs/examples/1.5.x/server-swift/examples/users/create-session.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/create-target.md b/docs/examples/1.5.x/server-swift/examples/users/create-target.md index e52aa113840..f6bc443ea4e 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/create-target.md +++ b/docs/examples/1.5.x/server-swift/examples/users/create-target.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/create-token.md b/docs/examples/1.5.x/server-swift/examples/users/create-token.md index 94d3499b021..0d8c363537a 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/create-token.md +++ b/docs/examples/1.5.x/server-swift/examples/users/create-token.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/create.md b/docs/examples/1.5.x/server-swift/examples/users/create.md index 1393f6a6466..8c07a780b61 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/create.md +++ b/docs/examples/1.5.x/server-swift/examples/users/create.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/delete-authenticator.md b/docs/examples/1.5.x/server-swift/examples/users/delete-authenticator.md index 2b311241b8f..86d44fbcdf3 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/delete-authenticator.md +++ b/docs/examples/1.5.x/server-swift/examples/users/delete-authenticator.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-swift/examples/users/delete-identity.md b/docs/examples/1.5.x/server-swift/examples/users/delete-identity.md index 9fa0d4c7c87..c5bf2b35266 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/delete-identity.md +++ b/docs/examples/1.5.x/server-swift/examples/users/delete-identity.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/delete-mfa-authenticator.md b/docs/examples/1.5.x/server-swift/examples/users/delete-mfa-authenticator.md index f55282af77f..5f1d6a0eebe 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.5.x/server-swift/examples/users/delete-mfa-authenticator.md @@ -3,12 +3,12 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) -let user = try await users.deleteMfaAuthenticator( +let result = try await users.deleteMfaAuthenticator( userId: "<USER_ID>", type: .totp ) diff --git a/docs/examples/1.5.x/server-swift/examples/users/delete-session.md b/docs/examples/1.5.x/server-swift/examples/users/delete-session.md index 6308430e743..3f191a2502a 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/delete-session.md +++ b/docs/examples/1.5.x/server-swift/examples/users/delete-session.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/delete-sessions.md b/docs/examples/1.5.x/server-swift/examples/users/delete-sessions.md index 0aaea4f1c06..6c4e8bfc082 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/delete-sessions.md +++ b/docs/examples/1.5.x/server-swift/examples/users/delete-sessions.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/delete-target.md b/docs/examples/1.5.x/server-swift/examples/users/delete-target.md index 2f9f843d856..274bb60a8d3 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/delete-target.md +++ b/docs/examples/1.5.x/server-swift/examples/users/delete-target.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/delete.md b/docs/examples/1.5.x/server-swift/examples/users/delete.md index 5d26ebc5705..2b28a98532c 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/delete.md +++ b/docs/examples/1.5.x/server-swift/examples/users/delete.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.5.x/server-swift/examples/users/get-mfa-recovery-codes.md index 93300d1217c..dc7f4711349 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-swift/examples/users/get-mfa-recovery-codes.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/get-prefs.md b/docs/examples/1.5.x/server-swift/examples/users/get-prefs.md index fa718a69001..aec033a96d7 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/get-prefs.md +++ b/docs/examples/1.5.x/server-swift/examples/users/get-prefs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/get-target.md b/docs/examples/1.5.x/server-swift/examples/users/get-target.md index 0f4e373d096..d6753814c87 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/get-target.md +++ b/docs/examples/1.5.x/server-swift/examples/users/get-target.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/get.md b/docs/examples/1.5.x/server-swift/examples/users/get.md index 730a7e463bf..095c84c8dc6 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/get.md +++ b/docs/examples/1.5.x/server-swift/examples/users/get.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/list-factors.md b/docs/examples/1.5.x/server-swift/examples/users/list-factors.md index c5a9971a2ab..8374c374625 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/list-factors.md +++ b/docs/examples/1.5.x/server-swift/examples/users/list-factors.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-swift/examples/users/list-identities.md b/docs/examples/1.5.x/server-swift/examples/users/list-identities.md index 7a18c6aada6..b31890275ee 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/list-identities.md +++ b/docs/examples/1.5.x/server-swift/examples/users/list-identities.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/list-logs.md b/docs/examples/1.5.x/server-swift/examples/users/list-logs.md index e6fb9437c62..5e80043d793 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/list-logs.md +++ b/docs/examples/1.5.x/server-swift/examples/users/list-logs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/list-memberships.md b/docs/examples/1.5.x/server-swift/examples/users/list-memberships.md index 9d8607317e8..5ca0152cd79 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/list-memberships.md +++ b/docs/examples/1.5.x/server-swift/examples/users/list-memberships.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/list-mfa-factors.md b/docs/examples/1.5.x/server-swift/examples/users/list-mfa-factors.md index 698df04978f..4cf7d7ce6e6 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/list-mfa-factors.md +++ b/docs/examples/1.5.x/server-swift/examples/users/list-mfa-factors.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/list-providers.md b/docs/examples/1.5.x/server-swift/examples/users/list-providers.md index 23b476a9275..55ad345652a 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/list-providers.md +++ b/docs/examples/1.5.x/server-swift/examples/users/list-providers.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/docs/examples/1.5.x/server-swift/examples/users/list-sessions.md b/docs/examples/1.5.x/server-swift/examples/users/list-sessions.md index 8a76f754751..035716ed168 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/list-sessions.md +++ b/docs/examples/1.5.x/server-swift/examples/users/list-sessions.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/list-targets.md b/docs/examples/1.5.x/server-swift/examples/users/list-targets.md index 6ff1aa4ea64..3ab651c6e70 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/list-targets.md +++ b/docs/examples/1.5.x/server-swift/examples/users/list-targets.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/list.md b/docs/examples/1.5.x/server-swift/examples/users/list.md index de98510ac9c..aaa619e202c 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/list.md +++ b/docs/examples/1.5.x/server-swift/examples/users/list.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/update-email-verification.md b/docs/examples/1.5.x/server-swift/examples/users/update-email-verification.md index 86ed9effe26..cd4b51b00af 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/update-email-verification.md +++ b/docs/examples/1.5.x/server-swift/examples/users/update-email-verification.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/update-email.md b/docs/examples/1.5.x/server-swift/examples/users/update-email.md index 5ac30bbf1e4..3a80ae5c5d3 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/update-email.md +++ b/docs/examples/1.5.x/server-swift/examples/users/update-email.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/update-labels.md b/docs/examples/1.5.x/server-swift/examples/users/update-labels.md index 7180c87710c..5b3000df73a 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/update-labels.md +++ b/docs/examples/1.5.x/server-swift/examples/users/update-labels.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.5.x/server-swift/examples/users/update-mfa-recovery-codes.md index d933d2d12c8..528319c7aa7 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.5.x/server-swift/examples/users/update-mfa-recovery-codes.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/update-mfa.md b/docs/examples/1.5.x/server-swift/examples/users/update-mfa.md index 1cd25a6ad2b..3fd25717689 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/update-mfa.md +++ b/docs/examples/1.5.x/server-swift/examples/users/update-mfa.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/update-name.md b/docs/examples/1.5.x/server-swift/examples/users/update-name.md index 75c801dda6e..bf697be84ee 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/update-name.md +++ b/docs/examples/1.5.x/server-swift/examples/users/update-name.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/update-password.md b/docs/examples/1.5.x/server-swift/examples/users/update-password.md index 9fc74833f36..0f35cefc0a6 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/update-password.md +++ b/docs/examples/1.5.x/server-swift/examples/users/update-password.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/update-phone-verification.md b/docs/examples/1.5.x/server-swift/examples/users/update-phone-verification.md index 80c2f13e468..7f99390ff5f 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/update-phone-verification.md +++ b/docs/examples/1.5.x/server-swift/examples/users/update-phone-verification.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/update-phone.md b/docs/examples/1.5.x/server-swift/examples/users/update-phone.md index bf175e6ad1c..2097c452ff2 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/update-phone.md +++ b/docs/examples/1.5.x/server-swift/examples/users/update-phone.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/update-prefs.md b/docs/examples/1.5.x/server-swift/examples/users/update-prefs.md index 2a675326eac..d4818db4f2c 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/update-prefs.md +++ b/docs/examples/1.5.x/server-swift/examples/users/update-prefs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/update-status.md b/docs/examples/1.5.x/server-swift/examples/users/update-status.md index 3de9ce63bc0..2408d055665 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/update-status.md +++ b/docs/examples/1.5.x/server-swift/examples/users/update-status.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.5.x/server-swift/examples/users/update-target.md b/docs/examples/1.5.x/server-swift/examples/users/update-target.md index c08e6cca2ed..bd3cc7c470f 100644 --- a/docs/examples/1.5.x/server-swift/examples/users/update-target.md +++ b/docs/examples/1.5.x/server-swift/examples/users/update-target.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/1.6.x/client-android/java/account/create-anonymous-session.md b/docs/examples/1.6.x/client-android/java/account/create-anonymous-session.md index 1639cdc1f02..9d805882b85 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/client-android/java/account/create-anonymous-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create-email-password-session.md b/docs/examples/1.6.x/client-android/java/account/create-email-password-session.md index 817bda0123d..428b6fddb62 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-email-password-session.md +++ b/docs/examples/1.6.x/client-android/java/account/create-email-password-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create-email-token.md b/docs/examples/1.6.x/client-android/java/account/create-email-token.md index a4bc83b6013..869f4a89910 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-email-token.md +++ b/docs/examples/1.6.x/client-android/java/account/create-email-token.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create-j-w-t.md b/docs/examples/1.6.x/client-android/java/account/create-j-w-t.md index 9aeb29c77a1..9e3bd287f38 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-j-w-t.md +++ b/docs/examples/1.6.x/client-android/java/account/create-j-w-t.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/client-android/java/account/create-magic-u-r-l-token.md index e57758aca47..6253e00d580 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/client-android/java/account/create-magic-u-r-l-token.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create-mfa-authenticator.md b/docs/examples/1.6.x/client-android/java/account/create-mfa-authenticator.md index b8b06c34f31..54781f2dc8a 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-android/java/account/create-mfa-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticatorType; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create-mfa-challenge.md b/docs/examples/1.6.x/client-android/java/account/create-mfa-challenge.md index d9d9bb67324..87a56fe350f 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/client-android/java/account/create-mfa-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticationFactor; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/client-android/java/account/create-mfa-recovery-codes.md index 6e23ad2a996..ab507342156 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-android/java/account/create-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create-o-auth2session.md b/docs/examples/1.6.x/client-android/java/account/create-o-auth2session.md index 59f5b418e73..4420859ce39 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-o-auth2session.md +++ b/docs/examples/1.6.x/client-android/java/account/create-o-auth2session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.OAuthProvider; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create-o-auth2token.md b/docs/examples/1.6.x/client-android/java/account/create-o-auth2token.md index 610319682c7..e5590c8ceb6 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/client-android/java/account/create-o-auth2token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.OAuthProvider; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create-phone-token.md b/docs/examples/1.6.x/client-android/java/account/create-phone-token.md index a1ad85be754..19d90b34756 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-phone-token.md +++ b/docs/examples/1.6.x/client-android/java/account/create-phone-token.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create-phone-verification.md b/docs/examples/1.6.x/client-android/java/account/create-phone-verification.md index cca9283392c..8c16b6c2682 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-phone-verification.md +++ b/docs/examples/1.6.x/client-android/java/account/create-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create-push-target.md b/docs/examples/1.6.x/client-android/java/account/create-push-target.md index 34e8fcb25d6..d434a5c6f68 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-push-target.md +++ b/docs/examples/1.6.x/client-android/java/account/create-push-target.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create-recovery.md b/docs/examples/1.6.x/client-android/java/account/create-recovery.md index 4d2af8b160a..5592c6eb66d 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-recovery.md +++ b/docs/examples/1.6.x/client-android/java/account/create-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create-session.md b/docs/examples/1.6.x/client-android/java/account/create-session.md index 71d11a541cb..0c59a802b15 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-session.md +++ b/docs/examples/1.6.x/client-android/java/account/create-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create-verification.md b/docs/examples/1.6.x/client-android/java/account/create-verification.md index be4f7c91b9e..e91acc85f99 100644 --- a/docs/examples/1.6.x/client-android/java/account/create-verification.md +++ b/docs/examples/1.6.x/client-android/java/account/create-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/create.md b/docs/examples/1.6.x/client-android/java/account/create.md index e7212486bcb..ad04805ce3a 100644 --- a/docs/examples/1.6.x/client-android/java/account/create.md +++ b/docs/examples/1.6.x/client-android/java/account/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/delete-identity.md b/docs/examples/1.6.x/client-android/java/account/delete-identity.md index 6a62ea2a00b..d556722769e 100644 --- a/docs/examples/1.6.x/client-android/java/account/delete-identity.md +++ b/docs/examples/1.6.x/client-android/java/account/delete-identity.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/client-android/java/account/delete-mfa-authenticator.md index bb6cb09f0ab..4a9693bf8c7 100644 --- a/docs/examples/1.6.x/client-android/java/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-android/java/account/delete-mfa-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticatorType; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/delete-push-target.md b/docs/examples/1.6.x/client-android/java/account/delete-push-target.md index c3208004190..00ab902792f 100644 --- a/docs/examples/1.6.x/client-android/java/account/delete-push-target.md +++ b/docs/examples/1.6.x/client-android/java/account/delete-push-target.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/delete-session.md b/docs/examples/1.6.x/client-android/java/account/delete-session.md index 2efc0f64634..99d2f8e888f 100644 --- a/docs/examples/1.6.x/client-android/java/account/delete-session.md +++ b/docs/examples/1.6.x/client-android/java/account/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/delete-sessions.md b/docs/examples/1.6.x/client-android/java/account/delete-sessions.md index d4c438070e4..e93f3e33ac8 100644 --- a/docs/examples/1.6.x/client-android/java/account/delete-sessions.md +++ b/docs/examples/1.6.x/client-android/java/account/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/client-android/java/account/get-mfa-recovery-codes.md index acf5984f691..8274bb351a7 100644 --- a/docs/examples/1.6.x/client-android/java/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-android/java/account/get-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/get-prefs.md b/docs/examples/1.6.x/client-android/java/account/get-prefs.md index 0fea3fe40a8..5bb11a4a959 100644 --- a/docs/examples/1.6.x/client-android/java/account/get-prefs.md +++ b/docs/examples/1.6.x/client-android/java/account/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/get-session.md b/docs/examples/1.6.x/client-android/java/account/get-session.md index 3ce4ab5177c..288cd3b3ba3 100644 --- a/docs/examples/1.6.x/client-android/java/account/get-session.md +++ b/docs/examples/1.6.x/client-android/java/account/get-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/get.md b/docs/examples/1.6.x/client-android/java/account/get.md index 5c25ed08cd1..6b5eb3b7faf 100644 --- a/docs/examples/1.6.x/client-android/java/account/get.md +++ b/docs/examples/1.6.x/client-android/java/account/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/list-identities.md b/docs/examples/1.6.x/client-android/java/account/list-identities.md index 7f9449dc225..d4a6f9f31da 100644 --- a/docs/examples/1.6.x/client-android/java/account/list-identities.md +++ b/docs/examples/1.6.x/client-android/java/account/list-identities.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/list-logs.md b/docs/examples/1.6.x/client-android/java/account/list-logs.md index 3aa66e2b8d9..951a479f984 100644 --- a/docs/examples/1.6.x/client-android/java/account/list-logs.md +++ b/docs/examples/1.6.x/client-android/java/account/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/list-mfa-factors.md b/docs/examples/1.6.x/client-android/java/account/list-mfa-factors.md index a10cb8d5205..9ea83316206 100644 --- a/docs/examples/1.6.x/client-android/java/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/client-android/java/account/list-mfa-factors.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/list-sessions.md b/docs/examples/1.6.x/client-android/java/account/list-sessions.md index aa8d37b3736..8946d96e7cc 100644 --- a/docs/examples/1.6.x/client-android/java/account/list-sessions.md +++ b/docs/examples/1.6.x/client-android/java/account/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-email.md b/docs/examples/1.6.x/client-android/java/account/update-email.md index 98cf9076c49..ac80e451d01 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-email.md +++ b/docs/examples/1.6.x/client-android/java/account/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-m-f-a.md b/docs/examples/1.6.x/client-android/java/account/update-m-f-a.md index 620a20c2670..b765cda94ad 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-m-f-a.md +++ b/docs/examples/1.6.x/client-android/java/account/update-m-f-a.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/client-android/java/account/update-magic-u-r-l-session.md index 1b79b73b1c7..5893aa6e6b4 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/client-android/java/account/update-magic-u-r-l-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-mfa-authenticator.md b/docs/examples/1.6.x/client-android/java/account/update-mfa-authenticator.md index 74321be38b7..b8016e75f23 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-android/java/account/update-mfa-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticatorType; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-mfa-challenge.md b/docs/examples/1.6.x/client-android/java/account/update-mfa-challenge.md index a92f0070928..c6401504d88 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/client-android/java/account/update-mfa-challenge.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/client-android/java/account/update-mfa-recovery-codes.md index 2aa82b1d440..650ae241285 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-android/java/account/update-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-name.md b/docs/examples/1.6.x/client-android/java/account/update-name.md index 40a5e2ea554..47582c2b307 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-name.md +++ b/docs/examples/1.6.x/client-android/java/account/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-password.md b/docs/examples/1.6.x/client-android/java/account/update-password.md index 355c06de71f..09f572eb318 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-password.md +++ b/docs/examples/1.6.x/client-android/java/account/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-phone-session.md b/docs/examples/1.6.x/client-android/java/account/update-phone-session.md index 042238e397a..2e1b880017b 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-phone-session.md +++ b/docs/examples/1.6.x/client-android/java/account/update-phone-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-phone-verification.md b/docs/examples/1.6.x/client-android/java/account/update-phone-verification.md index ba7b69cb343..f93ae6906f2 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-phone-verification.md +++ b/docs/examples/1.6.x/client-android/java/account/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-phone.md b/docs/examples/1.6.x/client-android/java/account/update-phone.md index b3ce0f6816c..fae9bfaaec9 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-phone.md +++ b/docs/examples/1.6.x/client-android/java/account/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-prefs.md b/docs/examples/1.6.x/client-android/java/account/update-prefs.md index d74606739f9..f1a16c7de01 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-prefs.md +++ b/docs/examples/1.6.x/client-android/java/account/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-push-target.md b/docs/examples/1.6.x/client-android/java/account/update-push-target.md index f9491e06b7a..197a9095a76 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-push-target.md +++ b/docs/examples/1.6.x/client-android/java/account/update-push-target.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-recovery.md b/docs/examples/1.6.x/client-android/java/account/update-recovery.md index e172f12ccfc..953bde4f26a 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-recovery.md +++ b/docs/examples/1.6.x/client-android/java/account/update-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-session.md b/docs/examples/1.6.x/client-android/java/account/update-session.md index b3e8706d2b3..ed82840836f 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-session.md +++ b/docs/examples/1.6.x/client-android/java/account/update-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-status.md b/docs/examples/1.6.x/client-android/java/account/update-status.md index 22166492842..9a283c092c8 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-status.md +++ b/docs/examples/1.6.x/client-android/java/account/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/account/update-verification.md b/docs/examples/1.6.x/client-android/java/account/update-verification.md index 25949432439..caa3869e252 100644 --- a/docs/examples/1.6.x/client-android/java/account/update-verification.md +++ b/docs/examples/1.6.x/client-android/java/account/update-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/client-android/java/avatars/get-browser.md b/docs/examples/1.6.x/client-android/java/avatars/get-browser.md index f7e8651dfa1..4c8579649e9 100644 --- a/docs/examples/1.6.x/client-android/java/avatars/get-browser.md +++ b/docs/examples/1.6.x/client-android/java/avatars/get-browser.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars; import io.appwrite.enums.Browser; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-android/java/avatars/get-credit-card.md b/docs/examples/1.6.x/client-android/java/avatars/get-credit-card.md index 5b1ee0660e1..a8bc30308f7 100644 --- a/docs/examples/1.6.x/client-android/java/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/client-android/java/avatars/get-credit-card.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars; import io.appwrite.enums.CreditCard; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-android/java/avatars/get-favicon.md b/docs/examples/1.6.x/client-android/java/avatars/get-favicon.md index 05bf590d721..70373a607b4 100644 --- a/docs/examples/1.6.x/client-android/java/avatars/get-favicon.md +++ b/docs/examples/1.6.x/client-android/java/avatars/get-favicon.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-android/java/avatars/get-flag.md b/docs/examples/1.6.x/client-android/java/avatars/get-flag.md index 6a2185c543f..61ced3b604d 100644 --- a/docs/examples/1.6.x/client-android/java/avatars/get-flag.md +++ b/docs/examples/1.6.x/client-android/java/avatars/get-flag.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars; import io.appwrite.enums.Flag; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-android/java/avatars/get-image.md b/docs/examples/1.6.x/client-android/java/avatars/get-image.md index 78fbf98f90a..71a90dd1c29 100644 --- a/docs/examples/1.6.x/client-android/java/avatars/get-image.md +++ b/docs/examples/1.6.x/client-android/java/avatars/get-image.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-android/java/avatars/get-initials.md b/docs/examples/1.6.x/client-android/java/avatars/get-initials.md index 621798be3a0..ca16ee7e36d 100644 --- a/docs/examples/1.6.x/client-android/java/avatars/get-initials.md +++ b/docs/examples/1.6.x/client-android/java/avatars/get-initials.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-android/java/avatars/get-q-r.md b/docs/examples/1.6.x/client-android/java/avatars/get-q-r.md index fc8bc4397ef..781acf67417 100644 --- a/docs/examples/1.6.x/client-android/java/avatars/get-q-r.md +++ b/docs/examples/1.6.x/client-android/java/avatars/get-q-r.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Avatars avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-android/java/databases/create-document.md b/docs/examples/1.6.x/client-android/java/databases/create-document.md index 6c7e068be88..4804d751e3e 100644 --- a/docs/examples/1.6.x/client-android/java/databases/create-document.md +++ b/docs/examples/1.6.x/client-android/java/databases/create-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.6.x/client-android/java/databases/delete-document.md b/docs/examples/1.6.x/client-android/java/databases/delete-document.md index 0cbd6b50711..5288e53bed7 100644 --- a/docs/examples/1.6.x/client-android/java/databases/delete-document.md +++ b/docs/examples/1.6.x/client-android/java/databases/delete-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.6.x/client-android/java/databases/get-document.md b/docs/examples/1.6.x/client-android/java/databases/get-document.md index 0918c884505..e7ae2079edc 100644 --- a/docs/examples/1.6.x/client-android/java/databases/get-document.md +++ b/docs/examples/1.6.x/client-android/java/databases/get-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.6.x/client-android/java/databases/list-documents.md b/docs/examples/1.6.x/client-android/java/databases/list-documents.md index 9cc722b0f37..606d67705de 100644 --- a/docs/examples/1.6.x/client-android/java/databases/list-documents.md +++ b/docs/examples/1.6.x/client-android/java/databases/list-documents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.6.x/client-android/java/databases/update-document.md b/docs/examples/1.6.x/client-android/java/databases/update-document.md index ccfb4982c9c..baa827cdf53 100644 --- a/docs/examples/1.6.x/client-android/java/databases/update-document.md +++ b/docs/examples/1.6.x/client-android/java/databases/update-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Databases databases = new Databases(client); diff --git a/docs/examples/1.6.x/client-android/java/functions/create-execution.md b/docs/examples/1.6.x/client-android/java/functions/create-execution.md index 845f02ea70b..c138b0ef864 100644 --- a/docs/examples/1.6.x/client-android/java/functions/create-execution.md +++ b/docs/examples/1.6.x/client-android/java/functions/create-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.6.x/client-android/java/functions/get-deployment-download.md b/docs/examples/1.6.x/client-android/java/functions/get-deployment-download.md deleted file mode 100644 index 200cdf2fc5e..00000000000 --- a/docs/examples/1.6.x/client-android/java/functions/get-deployment-download.md +++ /dev/null @@ -1,23 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Functions; - -Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>"); // Your project ID - -Functions functions = new Functions(client); - -functions.getDeploymentDownload( - "<FUNCTION_ID>", // functionId - "<DEPLOYMENT_ID>", // deploymentId - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.6.x/client-android/java/functions/get-execution.md b/docs/examples/1.6.x/client-android/java/functions/get-execution.md index c53ef0e093f..f3195fa126b 100644 --- a/docs/examples/1.6.x/client-android/java/functions/get-execution.md +++ b/docs/examples/1.6.x/client-android/java/functions/get-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.6.x/client-android/java/functions/get-template.md b/docs/examples/1.6.x/client-android/java/functions/get-template.md deleted file mode 100644 index af9efc7b92f..00000000000 --- a/docs/examples/1.6.x/client-android/java/functions/get-template.md +++ /dev/null @@ -1,22 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Functions; - -Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>"); // Your project ID - -Functions functions = new Functions(client); - -functions.getTemplate( - "<TEMPLATE_ID>", // templateId - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.6.x/client-android/java/functions/list-executions.md b/docs/examples/1.6.x/client-android/java/functions/list-executions.md index b796dc96b31..f23e5fb9afd 100644 --- a/docs/examples/1.6.x/client-android/java/functions/list-executions.md +++ b/docs/examples/1.6.x/client-android/java/functions/list-executions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Functions functions = new Functions(client); diff --git a/docs/examples/1.6.x/client-android/java/functions/list-templates.md b/docs/examples/1.6.x/client-android/java/functions/list-templates.md deleted file mode 100644 index 6c051f3b048..00000000000 --- a/docs/examples/1.6.x/client-android/java/functions/list-templates.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Functions; - -Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>"); // Your project ID - -Functions functions = new Functions(client); - -functions.listTemplates( - listOf(), // runtimes (optional) - listOf(), // useCases (optional) - 1, // limit (optional) - 0, // offset (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.6.x/client-android/java/graphql/mutation.md b/docs/examples/1.6.x/client-android/java/graphql/mutation.md index b79903b711e..25f095e1b17 100644 --- a/docs/examples/1.6.x/client-android/java/graphql/mutation.md +++ b/docs/examples/1.6.x/client-android/java/graphql/mutation.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.6.x/client-android/java/graphql/query.md b/docs/examples/1.6.x/client-android/java/graphql/query.md index 82bad13666a..6b2a04d0b6e 100644 --- a/docs/examples/1.6.x/client-android/java/graphql/query.md +++ b/docs/examples/1.6.x/client-android/java/graphql/query.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Graphql graphql = new Graphql(client); diff --git a/docs/examples/1.6.x/client-android/java/locale/get.md b/docs/examples/1.6.x/client-android/java/locale/get.md index 29b542f41fd..89e1e88b260 100644 --- a/docs/examples/1.6.x/client-android/java/locale/get.md +++ b/docs/examples/1.6.x/client-android/java/locale/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-android/java/locale/list-codes.md b/docs/examples/1.6.x/client-android/java/locale/list-codes.md index d8c9a0bc6b8..85a96fce77e 100644 --- a/docs/examples/1.6.x/client-android/java/locale/list-codes.md +++ b/docs/examples/1.6.x/client-android/java/locale/list-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-android/java/locale/list-continents.md b/docs/examples/1.6.x/client-android/java/locale/list-continents.md index cf43045f6ab..6f4572d572a 100644 --- a/docs/examples/1.6.x/client-android/java/locale/list-continents.md +++ b/docs/examples/1.6.x/client-android/java/locale/list-continents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-android/java/locale/list-countries-e-u.md b/docs/examples/1.6.x/client-android/java/locale/list-countries-e-u.md index b7b56ab8170..51458a929d8 100644 --- a/docs/examples/1.6.x/client-android/java/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/client-android/java/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-android/java/locale/list-countries-phones.md b/docs/examples/1.6.x/client-android/java/locale/list-countries-phones.md index c3598c07390..93438d2130a 100644 --- a/docs/examples/1.6.x/client-android/java/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/client-android/java/locale/list-countries-phones.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-android/java/locale/list-countries.md b/docs/examples/1.6.x/client-android/java/locale/list-countries.md index 91ac0520bed..5cd5525e93a 100644 --- a/docs/examples/1.6.x/client-android/java/locale/list-countries.md +++ b/docs/examples/1.6.x/client-android/java/locale/list-countries.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-android/java/locale/list-currencies.md b/docs/examples/1.6.x/client-android/java/locale/list-currencies.md index 5233004baef..d3ef02c8651 100644 --- a/docs/examples/1.6.x/client-android/java/locale/list-currencies.md +++ b/docs/examples/1.6.x/client-android/java/locale/list-currencies.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-android/java/locale/list-languages.md b/docs/examples/1.6.x/client-android/java/locale/list-languages.md index 0f10563846e..0d724943a92 100644 --- a/docs/examples/1.6.x/client-android/java/locale/list-languages.md +++ b/docs/examples/1.6.x/client-android/java/locale/list-languages.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Locale locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-android/java/messaging/create-subscriber.md b/docs/examples/1.6.x/client-android/java/messaging/create-subscriber.md index e8fa79f772b..5616435ab54 100644 --- a/docs/examples/1.6.x/client-android/java/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/client-android/java/messaging/create-subscriber.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/client-android/java/messaging/delete-subscriber.md b/docs/examples/1.6.x/client-android/java/messaging/delete-subscriber.md index 7e5b3d20175..9adae5e7df5 100644 --- a/docs/examples/1.6.x/client-android/java/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/client-android/java/messaging/delete-subscriber.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Messaging messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/client-android/java/storage/create-file.md b/docs/examples/1.6.x/client-android/java/storage/create-file.md index bc9ebed4f4f..598e6831501 100644 --- a/docs/examples/1.6.x/client-android/java/storage/create-file.md +++ b/docs/examples/1.6.x/client-android/java/storage/create-file.md @@ -4,7 +4,7 @@ import io.appwrite.models.InputFile; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-android/java/storage/delete-file.md b/docs/examples/1.6.x/client-android/java/storage/delete-file.md index eaeb47b669b..5c63ae7cd5a 100644 --- a/docs/examples/1.6.x/client-android/java/storage/delete-file.md +++ b/docs/examples/1.6.x/client-android/java/storage/delete-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-android/java/storage/get-file-download.md b/docs/examples/1.6.x/client-android/java/storage/get-file-download.md index d0fdc41f76a..ce2b846cc0f 100644 --- a/docs/examples/1.6.x/client-android/java/storage/get-file-download.md +++ b/docs/examples/1.6.x/client-android/java/storage/get-file-download.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-android/java/storage/get-file-preview.md b/docs/examples/1.6.x/client-android/java/storage/get-file-preview.md index c935e6fe2b5..1f5e36539a2 100644 --- a/docs/examples/1.6.x/client-android/java/storage/get-file-preview.md +++ b/docs/examples/1.6.x/client-android/java/storage/get-file-preview.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-android/java/storage/get-file-view.md b/docs/examples/1.6.x/client-android/java/storage/get-file-view.md index bbfd04d51a7..cda3545badc 100644 --- a/docs/examples/1.6.x/client-android/java/storage/get-file-view.md +++ b/docs/examples/1.6.x/client-android/java/storage/get-file-view.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-android/java/storage/get-file.md b/docs/examples/1.6.x/client-android/java/storage/get-file.md index a63122f57a8..c9cc00d8f7a 100644 --- a/docs/examples/1.6.x/client-android/java/storage/get-file.md +++ b/docs/examples/1.6.x/client-android/java/storage/get-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-android/java/storage/list-files.md b/docs/examples/1.6.x/client-android/java/storage/list-files.md index dc327fc70a2..a87286c6d6b 100644 --- a/docs/examples/1.6.x/client-android/java/storage/list-files.md +++ b/docs/examples/1.6.x/client-android/java/storage/list-files.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-android/java/storage/update-file.md b/docs/examples/1.6.x/client-android/java/storage/update-file.md index ed81821cbea..14fa77939da 100644 --- a/docs/examples/1.6.x/client-android/java/storage/update-file.md +++ b/docs/examples/1.6.x/client-android/java/storage/update-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Storage storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-android/java/teams/create-membership.md b/docs/examples/1.6.x/client-android/java/teams/create-membership.md index b30f1765c60..bb5293ef639 100644 --- a/docs/examples/1.6.x/client-android/java/teams/create-membership.md +++ b/docs/examples/1.6.x/client-android/java/teams/create-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-android/java/teams/create.md b/docs/examples/1.6.x/client-android/java/teams/create.md index a0d4f07bc9b..ae2fdf32c81 100644 --- a/docs/examples/1.6.x/client-android/java/teams/create.md +++ b/docs/examples/1.6.x/client-android/java/teams/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-android/java/teams/delete-membership.md b/docs/examples/1.6.x/client-android/java/teams/delete-membership.md index 7f9189f55bc..c8bb088cc6d 100644 --- a/docs/examples/1.6.x/client-android/java/teams/delete-membership.md +++ b/docs/examples/1.6.x/client-android/java/teams/delete-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-android/java/teams/delete.md b/docs/examples/1.6.x/client-android/java/teams/delete.md index 2f4e861248f..74f6a4f9973 100644 --- a/docs/examples/1.6.x/client-android/java/teams/delete.md +++ b/docs/examples/1.6.x/client-android/java/teams/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-android/java/teams/get-membership.md b/docs/examples/1.6.x/client-android/java/teams/get-membership.md index 529feb22942..e9dc5786d6e 100644 --- a/docs/examples/1.6.x/client-android/java/teams/get-membership.md +++ b/docs/examples/1.6.x/client-android/java/teams/get-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-android/java/teams/get-prefs.md b/docs/examples/1.6.x/client-android/java/teams/get-prefs.md index 61da757178e..8ba14355a12 100644 --- a/docs/examples/1.6.x/client-android/java/teams/get-prefs.md +++ b/docs/examples/1.6.x/client-android/java/teams/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-android/java/teams/get.md b/docs/examples/1.6.x/client-android/java/teams/get.md index 39fe4d4a0ee..f00057a8222 100644 --- a/docs/examples/1.6.x/client-android/java/teams/get.md +++ b/docs/examples/1.6.x/client-android/java/teams/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-android/java/teams/list-memberships.md b/docs/examples/1.6.x/client-android/java/teams/list-memberships.md index 58430f074cb..216ca40e6dd 100644 --- a/docs/examples/1.6.x/client-android/java/teams/list-memberships.md +++ b/docs/examples/1.6.x/client-android/java/teams/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-android/java/teams/list.md b/docs/examples/1.6.x/client-android/java/teams/list.md index 914509f47d1..b69f21ed43b 100644 --- a/docs/examples/1.6.x/client-android/java/teams/list.md +++ b/docs/examples/1.6.x/client-android/java/teams/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-android/java/teams/update-membership-status.md b/docs/examples/1.6.x/client-android/java/teams/update-membership-status.md index 513461331b1..4b31ed55ecd 100644 --- a/docs/examples/1.6.x/client-android/java/teams/update-membership-status.md +++ b/docs/examples/1.6.x/client-android/java/teams/update-membership-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-android/java/teams/update-membership.md b/docs/examples/1.6.x/client-android/java/teams/update-membership.md index a60c2a0df3e..481be431071 100644 --- a/docs/examples/1.6.x/client-android/java/teams/update-membership.md +++ b/docs/examples/1.6.x/client-android/java/teams/update-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-android/java/teams/update-name.md b/docs/examples/1.6.x/client-android/java/teams/update-name.md index 54f218e411e..207bcc81e33 100644 --- a/docs/examples/1.6.x/client-android/java/teams/update-name.md +++ b/docs/examples/1.6.x/client-android/java/teams/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-android/java/teams/update-prefs.md b/docs/examples/1.6.x/client-android/java/teams/update-prefs.md index eaa161e611b..5a0186ff313 100644 --- a/docs/examples/1.6.x/client-android/java/teams/update-prefs.md +++ b/docs/examples/1.6.x/client-android/java/teams/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Teams teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-anonymous-session.md b/docs/examples/1.6.x/client-android/kotlin/account/create-anonymous-session.md index 50a011ae6b1..d2966a18cdf 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-anonymous-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-email-password-session.md b/docs/examples/1.6.x/client-android/kotlin/account/create-email-password-session.md index 8c447591381..a327cf280eb 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-email-password-session.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-email-password-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-email-token.md b/docs/examples/1.6.x/client-android/kotlin/account/create-email-token.md index 219e7930d78..37c9e1b3803 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-email-token.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-email-token.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-j-w-t.md b/docs/examples/1.6.x/client-android/kotlin/account/create-j-w-t.md index 50014d4cb8e..c87eaf31289 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-j-w-t.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-j-w-t.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/client-android/kotlin/account/create-magic-u-r-l-token.md index 905e942b5d9..76f4c918847 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-magic-u-r-l-token.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-mfa-authenticator.md b/docs/examples/1.6.x/client-android/kotlin/account/create-mfa-authenticator.md index dacf56a5a24..ffb2f2f9bf3 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-mfa-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticatorType val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-mfa-challenge.md b/docs/examples/1.6.x/client-android/kotlin/account/create-mfa-challenge.md index 22c965851de..36b12d3f982 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-mfa-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticationFactor val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/client-android/kotlin/account/create-mfa-recovery-codes.md index 364bc0eb9d4..974c8f25a02 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-o-auth2session.md b/docs/examples/1.6.x/client-android/kotlin/account/create-o-auth2session.md index fc9d8228c9d..61ea634ad71 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-o-auth2session.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-o-auth2session.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.OAuthProvider val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-o-auth2token.md b/docs/examples/1.6.x/client-android/kotlin/account/create-o-auth2token.md index 11a814b1094..cdd2ef34450 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-o-auth2token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.OAuthProvider val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-phone-token.md b/docs/examples/1.6.x/client-android/kotlin/account/create-phone-token.md index 56b53c26881..4eb1a9ac4ef 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-phone-token.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-phone-token.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-phone-verification.md b/docs/examples/1.6.x/client-android/kotlin/account/create-phone-verification.md index 531aead542a..f7594668fa7 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-phone-verification.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-push-target.md b/docs/examples/1.6.x/client-android/kotlin/account/create-push-target.md index 7dd2101a63c..59b252be157 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-push-target.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-push-target.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-recovery.md b/docs/examples/1.6.x/client-android/kotlin/account/create-recovery.md index d03bd323177..7e13138111f 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-recovery.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-session.md b/docs/examples/1.6.x/client-android/kotlin/account/create-session.md index 2b3da6d47bb..ab9e20e7e2e 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-session.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create-verification.md b/docs/examples/1.6.x/client-android/kotlin/account/create-verification.md index 54174be38b4..669b00ba18e 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create-verification.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/create.md b/docs/examples/1.6.x/client-android/kotlin/account/create.md index 2ee3ae4a1ef..16f3a60ded6 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/create.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/delete-identity.md b/docs/examples/1.6.x/client-android/kotlin/account/delete-identity.md index 1e5d2065364..c8d74636856 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/delete-identity.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/delete-identity.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/client-android/kotlin/account/delete-mfa-authenticator.md index 48220b20c57..057e021f6d1 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/delete-mfa-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticatorType val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/delete-push-target.md b/docs/examples/1.6.x/client-android/kotlin/account/delete-push-target.md index e67b180a4f2..8e0b418c902 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/delete-push-target.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/delete-push-target.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/delete-session.md b/docs/examples/1.6.x/client-android/kotlin/account/delete-session.md index 0990989bfd6..6af414be275 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/delete-session.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/delete-sessions.md b/docs/examples/1.6.x/client-android/kotlin/account/delete-sessions.md index 8c464e082bb..f7e6c71c10d 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/delete-sessions.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/client-android/kotlin/account/get-mfa-recovery-codes.md index bd12e834a14..6201658fe3b 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/get-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/get-prefs.md b/docs/examples/1.6.x/client-android/kotlin/account/get-prefs.md index 9227effba72..85dbb18b43f 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/get-prefs.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/get-session.md b/docs/examples/1.6.x/client-android/kotlin/account/get-session.md index 42e61fd4756..4de64a1487c 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/get-session.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/get-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/get.md b/docs/examples/1.6.x/client-android/kotlin/account/get.md index 8c90304cbec..3e85e79ad06 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/get.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/list-identities.md b/docs/examples/1.6.x/client-android/kotlin/account/list-identities.md index 53e388d3d42..5908a44a9c8 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/list-identities.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/list-identities.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/list-logs.md b/docs/examples/1.6.x/client-android/kotlin/account/list-logs.md index 683a94be453..385ccc0116d 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/list-logs.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/list-mfa-factors.md b/docs/examples/1.6.x/client-android/kotlin/account/list-mfa-factors.md index ecfa6c2478a..09119ab65a3 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/list-mfa-factors.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/list-sessions.md b/docs/examples/1.6.x/client-android/kotlin/account/list-sessions.md index 2da413da7b8..573dd865e28 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/list-sessions.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-email.md b/docs/examples/1.6.x/client-android/kotlin/account/update-email.md index 072d6db9cae..0862f112c0c 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-email.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-m-f-a.md b/docs/examples/1.6.x/client-android/kotlin/account/update-m-f-a.md index 3cac098946d..f214e78f441 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-m-f-a.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-m-f-a.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/client-android/kotlin/account/update-magic-u-r-l-session.md index 52d0ad76e1b..2c1a0b0a380 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-magic-u-r-l-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-mfa-authenticator.md b/docs/examples/1.6.x/client-android/kotlin/account/update-mfa-authenticator.md index 321f25b2e8b..987825e589b 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-mfa-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticatorType val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-mfa-challenge.md b/docs/examples/1.6.x/client-android/kotlin/account/update-mfa-challenge.md index 021f51523f5..c7f8139f152 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-mfa-challenge.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/client-android/kotlin/account/update-mfa-recovery-codes.md index d4ea7f5f91e..c0ee3c386f3 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-name.md b/docs/examples/1.6.x/client-android/kotlin/account/update-name.md index 374f84f2ec5..2cb5327ebee 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-name.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-password.md b/docs/examples/1.6.x/client-android/kotlin/account/update-password.md index edf5117168c..140ca8b219e 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-password.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-phone-session.md b/docs/examples/1.6.x/client-android/kotlin/account/update-phone-session.md index 93e080dae91..b3911dd5e00 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-phone-session.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-phone-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-phone-verification.md b/docs/examples/1.6.x/client-android/kotlin/account/update-phone-verification.md index 226b21dcae8..ad0d5d73ebc 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-phone-verification.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-phone.md b/docs/examples/1.6.x/client-android/kotlin/account/update-phone.md index 772c099cd5f..84ff5081847 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-phone.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-prefs.md b/docs/examples/1.6.x/client-android/kotlin/account/update-prefs.md index c5c7a3de3ea..fdfed577ac9 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-prefs.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-push-target.md b/docs/examples/1.6.x/client-android/kotlin/account/update-push-target.md index c6e6f21ce31..5c3816860f1 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-push-target.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-push-target.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-recovery.md b/docs/examples/1.6.x/client-android/kotlin/account/update-recovery.md index b4481148e97..d505d1afb15 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-recovery.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-session.md b/docs/examples/1.6.x/client-android/kotlin/account/update-session.md index 43d84e13c31..6fc9a9f9d2e 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-session.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-status.md b/docs/examples/1.6.x/client-android/kotlin/account/update-status.md index 4f44ce1a83c..b86a25ad4dd 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-status.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/account/update-verification.md b/docs/examples/1.6.x/client-android/kotlin/account/update-verification.md index 3c9c465afb3..028eb7c4ce7 100644 --- a/docs/examples/1.6.x/client-android/kotlin/account/update-verification.md +++ b/docs/examples/1.6.x/client-android/kotlin/account/update-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/avatars/get-browser.md b/docs/examples/1.6.x/client-android/kotlin/avatars/get-browser.md index 34f6f28d2ad..4e2f5e0991a 100644 --- a/docs/examples/1.6.x/client-android/kotlin/avatars/get-browser.md +++ b/docs/examples/1.6.x/client-android/kotlin/avatars/get-browser.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars import io.appwrite.enums.Browser val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/avatars/get-credit-card.md b/docs/examples/1.6.x/client-android/kotlin/avatars/get-credit-card.md index 52eea79f6e2..91aae456605 100644 --- a/docs/examples/1.6.x/client-android/kotlin/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/client-android/kotlin/avatars/get-credit-card.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars import io.appwrite.enums.CreditCard val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/avatars/get-favicon.md b/docs/examples/1.6.x/client-android/kotlin/avatars/get-favicon.md index 5f83bdd0af0..01df8cb54ba 100644 --- a/docs/examples/1.6.x/client-android/kotlin/avatars/get-favicon.md +++ b/docs/examples/1.6.x/client-android/kotlin/avatars/get-favicon.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/avatars/get-flag.md b/docs/examples/1.6.x/client-android/kotlin/avatars/get-flag.md index cfd5d010d17..1d8f5f6305a 100644 --- a/docs/examples/1.6.x/client-android/kotlin/avatars/get-flag.md +++ b/docs/examples/1.6.x/client-android/kotlin/avatars/get-flag.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars import io.appwrite.enums.Flag val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/avatars/get-image.md b/docs/examples/1.6.x/client-android/kotlin/avatars/get-image.md index a9a7c2aa5c6..64166c0a6d3 100644 --- a/docs/examples/1.6.x/client-android/kotlin/avatars/get-image.md +++ b/docs/examples/1.6.x/client-android/kotlin/avatars/get-image.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/avatars/get-initials.md b/docs/examples/1.6.x/client-android/kotlin/avatars/get-initials.md index bd2ae1b9b9f..883da027443 100644 --- a/docs/examples/1.6.x/client-android/kotlin/avatars/get-initials.md +++ b/docs/examples/1.6.x/client-android/kotlin/avatars/get-initials.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/avatars/get-q-r.md b/docs/examples/1.6.x/client-android/kotlin/avatars/get-q-r.md index 9e02a0c6ad7..fa8a38cabb2 100644 --- a/docs/examples/1.6.x/client-android/kotlin/avatars/get-q-r.md +++ b/docs/examples/1.6.x/client-android/kotlin/avatars/get-q-r.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Avatars val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val avatars = Avatars(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/databases/create-document.md b/docs/examples/1.6.x/client-android/kotlin/databases/create-document.md index 2b77405d626..849a636afb2 100644 --- a/docs/examples/1.6.x/client-android/kotlin/databases/create-document.md +++ b/docs/examples/1.6.x/client-android/kotlin/databases/create-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/databases/delete-document.md b/docs/examples/1.6.x/client-android/kotlin/databases/delete-document.md index e3e6de326fc..052bf97f896 100644 --- a/docs/examples/1.6.x/client-android/kotlin/databases/delete-document.md +++ b/docs/examples/1.6.x/client-android/kotlin/databases/delete-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/databases/get-document.md b/docs/examples/1.6.x/client-android/kotlin/databases/get-document.md index 6ed6c8ba62b..157af2b562f 100644 --- a/docs/examples/1.6.x/client-android/kotlin/databases/get-document.md +++ b/docs/examples/1.6.x/client-android/kotlin/databases/get-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/databases/list-documents.md b/docs/examples/1.6.x/client-android/kotlin/databases/list-documents.md index ff419c44a61..1cc785fab1a 100644 --- a/docs/examples/1.6.x/client-android/kotlin/databases/list-documents.md +++ b/docs/examples/1.6.x/client-android/kotlin/databases/list-documents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/databases/update-document.md b/docs/examples/1.6.x/client-android/kotlin/databases/update-document.md index 630e2b6c66e..d61fdea5b15 100644 --- a/docs/examples/1.6.x/client-android/kotlin/databases/update-document.md +++ b/docs/examples/1.6.x/client-android/kotlin/databases/update-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val databases = Databases(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/functions/create-execution.md b/docs/examples/1.6.x/client-android/kotlin/functions/create-execution.md index 937bb4fdaa7..cb7c60bac16 100644 --- a/docs/examples/1.6.x/client-android/kotlin/functions/create-execution.md +++ b/docs/examples/1.6.x/client-android/kotlin/functions/create-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/functions/get-execution.md b/docs/examples/1.6.x/client-android/kotlin/functions/get-execution.md index 60b2e0f6306..267be53cbb8 100644 --- a/docs/examples/1.6.x/client-android/kotlin/functions/get-execution.md +++ b/docs/examples/1.6.x/client-android/kotlin/functions/get-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/functions/get-template.md b/docs/examples/1.6.x/client-android/kotlin/functions/get-template.md deleted file mode 100644 index 4af83bda3e0..00000000000 --- a/docs/examples/1.6.x/client-android/kotlin/functions/get-template.md +++ /dev/null @@ -1,13 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Functions - -val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - -val functions = Functions(client) - -val result = functions.getTemplate( - templateId = "<TEMPLATE_ID>", -) \ No newline at end of file diff --git a/docs/examples/1.6.x/client-android/kotlin/functions/list-executions.md b/docs/examples/1.6.x/client-android/kotlin/functions/list-executions.md index 90b2bf6ff10..a56993fd4d3 100644 --- a/docs/examples/1.6.x/client-android/kotlin/functions/list-executions.md +++ b/docs/examples/1.6.x/client-android/kotlin/functions/list-executions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val functions = Functions(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/functions/list-templates.md b/docs/examples/1.6.x/client-android/kotlin/functions/list-templates.md deleted file mode 100644 index a1a59d94380..00000000000 --- a/docs/examples/1.6.x/client-android/kotlin/functions/list-templates.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Functions - -val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - -val functions = Functions(client) - -val result = functions.listTemplates( - runtimes = listOf(), // (optional) - useCases = listOf(), // (optional) - limit = 1, // (optional) - offset = 0, // (optional) -) \ No newline at end of file diff --git a/docs/examples/1.6.x/client-android/kotlin/graphql/mutation.md b/docs/examples/1.6.x/client-android/kotlin/graphql/mutation.md index e90c9ae301e..a3a762203dc 100644 --- a/docs/examples/1.6.x/client-android/kotlin/graphql/mutation.md +++ b/docs/examples/1.6.x/client-android/kotlin/graphql/mutation.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val graphql = Graphql(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/graphql/query.md b/docs/examples/1.6.x/client-android/kotlin/graphql/query.md index 2ce0cb10838..13f149cbf00 100644 --- a/docs/examples/1.6.x/client-android/kotlin/graphql/query.md +++ b/docs/examples/1.6.x/client-android/kotlin/graphql/query.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val graphql = Graphql(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/locale/get.md b/docs/examples/1.6.x/client-android/kotlin/locale/get.md index f2f235a209e..a116aed349d 100644 --- a/docs/examples/1.6.x/client-android/kotlin/locale/get.md +++ b/docs/examples/1.6.x/client-android/kotlin/locale/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/locale/list-codes.md b/docs/examples/1.6.x/client-android/kotlin/locale/list-codes.md index 895c96df3a8..0b63b06e3eb 100644 --- a/docs/examples/1.6.x/client-android/kotlin/locale/list-codes.md +++ b/docs/examples/1.6.x/client-android/kotlin/locale/list-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/locale/list-continents.md b/docs/examples/1.6.x/client-android/kotlin/locale/list-continents.md index e32034496c6..98acdc9b6a4 100644 --- a/docs/examples/1.6.x/client-android/kotlin/locale/list-continents.md +++ b/docs/examples/1.6.x/client-android/kotlin/locale/list-continents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/locale/list-countries-e-u.md b/docs/examples/1.6.x/client-android/kotlin/locale/list-countries-e-u.md index b9182aa1dec..c01602598b7 100644 --- a/docs/examples/1.6.x/client-android/kotlin/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/client-android/kotlin/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/locale/list-countries-phones.md b/docs/examples/1.6.x/client-android/kotlin/locale/list-countries-phones.md index 961ebd348f6..d95c1c6ff65 100644 --- a/docs/examples/1.6.x/client-android/kotlin/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/client-android/kotlin/locale/list-countries-phones.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/locale/list-countries.md b/docs/examples/1.6.x/client-android/kotlin/locale/list-countries.md index 1ebae69bead..47751611594 100644 --- a/docs/examples/1.6.x/client-android/kotlin/locale/list-countries.md +++ b/docs/examples/1.6.x/client-android/kotlin/locale/list-countries.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/locale/list-currencies.md b/docs/examples/1.6.x/client-android/kotlin/locale/list-currencies.md index 7500aa717f9..6d0a04f808e 100644 --- a/docs/examples/1.6.x/client-android/kotlin/locale/list-currencies.md +++ b/docs/examples/1.6.x/client-android/kotlin/locale/list-currencies.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/locale/list-languages.md b/docs/examples/1.6.x/client-android/kotlin/locale/list-languages.md index 2be0ba59d60..de588aa0773 100644 --- a/docs/examples/1.6.x/client-android/kotlin/locale/list-languages.md +++ b/docs/examples/1.6.x/client-android/kotlin/locale/list-languages.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val locale = Locale(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/messaging/create-subscriber.md b/docs/examples/1.6.x/client-android/kotlin/messaging/create-subscriber.md index db233422bd5..b7e244f0416 100644 --- a/docs/examples/1.6.x/client-android/kotlin/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/client-android/kotlin/messaging/create-subscriber.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val messaging = Messaging(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/messaging/delete-subscriber.md b/docs/examples/1.6.x/client-android/kotlin/messaging/delete-subscriber.md index ab0d479df32..9e102d6faa0 100644 --- a/docs/examples/1.6.x/client-android/kotlin/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/client-android/kotlin/messaging/delete-subscriber.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val messaging = Messaging(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/storage/create-file.md b/docs/examples/1.6.x/client-android/kotlin/storage/create-file.md index d327e724a0c..1c78c51e675 100644 --- a/docs/examples/1.6.x/client-android/kotlin/storage/create-file.md +++ b/docs/examples/1.6.x/client-android/kotlin/storage/create-file.md @@ -4,7 +4,7 @@ import io.appwrite.models.InputFile import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/storage/delete-file.md b/docs/examples/1.6.x/client-android/kotlin/storage/delete-file.md index 60df78e7369..ca40f41b719 100644 --- a/docs/examples/1.6.x/client-android/kotlin/storage/delete-file.md +++ b/docs/examples/1.6.x/client-android/kotlin/storage/delete-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/storage/get-file-download.md b/docs/examples/1.6.x/client-android/kotlin/storage/get-file-download.md index bb975411ba7..b4d33868d2a 100644 --- a/docs/examples/1.6.x/client-android/kotlin/storage/get-file-download.md +++ b/docs/examples/1.6.x/client-android/kotlin/storage/get-file-download.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/storage/get-file-preview.md b/docs/examples/1.6.x/client-android/kotlin/storage/get-file-preview.md index 904f3ec103b..31aa6e2ce77 100644 --- a/docs/examples/1.6.x/client-android/kotlin/storage/get-file-preview.md +++ b/docs/examples/1.6.x/client-android/kotlin/storage/get-file-preview.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/storage/get-file-view.md b/docs/examples/1.6.x/client-android/kotlin/storage/get-file-view.md index 898c1eec425..7a5b31de5b4 100644 --- a/docs/examples/1.6.x/client-android/kotlin/storage/get-file-view.md +++ b/docs/examples/1.6.x/client-android/kotlin/storage/get-file-view.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/storage/get-file.md b/docs/examples/1.6.x/client-android/kotlin/storage/get-file.md index a07095d3754..1e9943059bc 100644 --- a/docs/examples/1.6.x/client-android/kotlin/storage/get-file.md +++ b/docs/examples/1.6.x/client-android/kotlin/storage/get-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/storage/list-files.md b/docs/examples/1.6.x/client-android/kotlin/storage/list-files.md index 640b7050d0e..06f6cda4ebd 100644 --- a/docs/examples/1.6.x/client-android/kotlin/storage/list-files.md +++ b/docs/examples/1.6.x/client-android/kotlin/storage/list-files.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/storage/update-file.md b/docs/examples/1.6.x/client-android/kotlin/storage/update-file.md index f7a20f0d128..116d156eade 100644 --- a/docs/examples/1.6.x/client-android/kotlin/storage/update-file.md +++ b/docs/examples/1.6.x/client-android/kotlin/storage/update-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val storage = Storage(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/teams/create-membership.md b/docs/examples/1.6.x/client-android/kotlin/teams/create-membership.md index 63f3c67d8f9..70eb7ddd190 100644 --- a/docs/examples/1.6.x/client-android/kotlin/teams/create-membership.md +++ b/docs/examples/1.6.x/client-android/kotlin/teams/create-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/teams/create.md b/docs/examples/1.6.x/client-android/kotlin/teams/create.md index f214a3733e7..dfa4df446eb 100644 --- a/docs/examples/1.6.x/client-android/kotlin/teams/create.md +++ b/docs/examples/1.6.x/client-android/kotlin/teams/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/teams/delete-membership.md b/docs/examples/1.6.x/client-android/kotlin/teams/delete-membership.md index f3a54b38db2..adf1119761b 100644 --- a/docs/examples/1.6.x/client-android/kotlin/teams/delete-membership.md +++ b/docs/examples/1.6.x/client-android/kotlin/teams/delete-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/teams/delete.md b/docs/examples/1.6.x/client-android/kotlin/teams/delete.md index bc8e8d0c97c..e144a78e3d3 100644 --- a/docs/examples/1.6.x/client-android/kotlin/teams/delete.md +++ b/docs/examples/1.6.x/client-android/kotlin/teams/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/teams/get-membership.md b/docs/examples/1.6.x/client-android/kotlin/teams/get-membership.md index e5a589e061f..8fb8c54c3b5 100644 --- a/docs/examples/1.6.x/client-android/kotlin/teams/get-membership.md +++ b/docs/examples/1.6.x/client-android/kotlin/teams/get-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/teams/get-prefs.md b/docs/examples/1.6.x/client-android/kotlin/teams/get-prefs.md index af7503a4346..5e892fb49d1 100644 --- a/docs/examples/1.6.x/client-android/kotlin/teams/get-prefs.md +++ b/docs/examples/1.6.x/client-android/kotlin/teams/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/teams/get.md b/docs/examples/1.6.x/client-android/kotlin/teams/get.md index 70759bcb882..dbb487d3d67 100644 --- a/docs/examples/1.6.x/client-android/kotlin/teams/get.md +++ b/docs/examples/1.6.x/client-android/kotlin/teams/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/teams/list-memberships.md b/docs/examples/1.6.x/client-android/kotlin/teams/list-memberships.md index abb140e2ddb..e305403a523 100644 --- a/docs/examples/1.6.x/client-android/kotlin/teams/list-memberships.md +++ b/docs/examples/1.6.x/client-android/kotlin/teams/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/teams/list.md b/docs/examples/1.6.x/client-android/kotlin/teams/list.md index 5d808736caa..984858d26ce 100644 --- a/docs/examples/1.6.x/client-android/kotlin/teams/list.md +++ b/docs/examples/1.6.x/client-android/kotlin/teams/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/teams/update-membership-status.md b/docs/examples/1.6.x/client-android/kotlin/teams/update-membership-status.md index 9ecf4170dea..c3770c7f1e0 100644 --- a/docs/examples/1.6.x/client-android/kotlin/teams/update-membership-status.md +++ b/docs/examples/1.6.x/client-android/kotlin/teams/update-membership-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/teams/update-membership.md b/docs/examples/1.6.x/client-android/kotlin/teams/update-membership.md index 15b2ac08e9b..86216a8692e 100644 --- a/docs/examples/1.6.x/client-android/kotlin/teams/update-membership.md +++ b/docs/examples/1.6.x/client-android/kotlin/teams/update-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/teams/update-name.md b/docs/examples/1.6.x/client-android/kotlin/teams/update-name.md index 0040737a660..abeb6dc7c17 100644 --- a/docs/examples/1.6.x/client-android/kotlin/teams/update-name.md +++ b/docs/examples/1.6.x/client-android/kotlin/teams/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.6.x/client-android/kotlin/teams/update-prefs.md b/docs/examples/1.6.x/client-android/kotlin/teams/update-prefs.md index f70a5eb99ca..d0066a94b3a 100644 --- a/docs/examples/1.6.x/client-android/kotlin/teams/update-prefs.md +++ b/docs/examples/1.6.x/client-android/kotlin/teams/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val teams = Teams(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-anonymous-session.md b/docs/examples/1.6.x/client-apple/examples/account/create-anonymous-session.md index f676bac4da4..22020a16d95 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-anonymous-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-email-password-session.md b/docs/examples/1.6.x/client-apple/examples/account/create-email-password-session.md index 15051827b86..5f541a8a154 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-email-password-session.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-email-password-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-email-token.md b/docs/examples/1.6.x/client-apple/examples/account/create-email-token.md index b9d39ff27f9..cf82afde8ff 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-email-token.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-email-token.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-j-w-t.md b/docs/examples/1.6.x/client-apple/examples/account/create-j-w-t.md index c1c0f22dffc..fbcd50401c6 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-j-w-t.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-j-w-t.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/client-apple/examples/account/create-magic-u-r-l-token.md index 83eb681673b..27bbe4137ea 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-magic-u-r-l-token.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-mfa-authenticator.md b/docs/examples/1.6.x/client-apple/examples/account/create-mfa-authenticator.md index 7b103e0b247..56799e327ec 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-mfa-authenticator.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-mfa-challenge.md b/docs/examples/1.6.x/client-apple/examples/account/create-mfa-challenge.md index 6d262d9c74a..0b5d385999e 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-mfa-challenge.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/client-apple/examples/account/create-mfa-recovery-codes.md index 1390b9de69d..c0ccb39e869 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-o-auth2session.md b/docs/examples/1.6.x/client-apple/examples/account/create-o-auth2session.md index 32da4a28419..756112e7011 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-o-auth2session.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-o-auth2session.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/client-apple/examples/account/create-o-auth2token.md index 7bbfe98f48c..21b54e8c9a0 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-o-auth2token.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-phone-token.md b/docs/examples/1.6.x/client-apple/examples/account/create-phone-token.md index acb7a696bcb..12b2d4b2231 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-phone-token.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-phone-token.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-phone-verification.md b/docs/examples/1.6.x/client-apple/examples/account/create-phone-verification.md index e0c4a21d963..f0eb94b6fcb 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-phone-verification.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-push-target.md b/docs/examples/1.6.x/client-apple/examples/account/create-push-target.md index 75d694bcf6b..ce2d194272a 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-push-target.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-push-target.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-recovery.md b/docs/examples/1.6.x/client-apple/examples/account/create-recovery.md index 65536ee2113..ccfd5ac5194 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-recovery.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-session.md b/docs/examples/1.6.x/client-apple/examples/account/create-session.md index 3ea51195697..2065692a166 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-session.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create-verification.md b/docs/examples/1.6.x/client-apple/examples/account/create-verification.md index 702c3c52828..d3ca74c7c03 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create-verification.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/create.md b/docs/examples/1.6.x/client-apple/examples/account/create.md index cad7e44c449..79b4db64ba6 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/create.md +++ b/docs/examples/1.6.x/client-apple/examples/account/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/delete-identity.md b/docs/examples/1.6.x/client-apple/examples/account/delete-identity.md index 37ca520d4cb..04a3ee5f47d 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/delete-identity.md +++ b/docs/examples/1.6.x/client-apple/examples/account/delete-identity.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/client-apple/examples/account/delete-mfa-authenticator.md index d9fe0ad8ea2..16cbbe3b724 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-apple/examples/account/delete-mfa-authenticator.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/delete-push-target.md b/docs/examples/1.6.x/client-apple/examples/account/delete-push-target.md index 660a9c0376a..a96a1b1d053 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/delete-push-target.md +++ b/docs/examples/1.6.x/client-apple/examples/account/delete-push-target.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/delete-session.md b/docs/examples/1.6.x/client-apple/examples/account/delete-session.md index 59f89a9b5e0..ea353e8723e 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/delete-session.md +++ b/docs/examples/1.6.x/client-apple/examples/account/delete-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/delete-sessions.md b/docs/examples/1.6.x/client-apple/examples/account/delete-sessions.md index bfce736622b..51a86bdcc31 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/delete-sessions.md +++ b/docs/examples/1.6.x/client-apple/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/client-apple/examples/account/get-mfa-recovery-codes.md index 79e3a2c8b33..2f5d6233047 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-apple/examples/account/get-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/get-prefs.md b/docs/examples/1.6.x/client-apple/examples/account/get-prefs.md index 0e7909bd124..65ce5f5908c 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/client-apple/examples/account/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/get-session.md b/docs/examples/1.6.x/client-apple/examples/account/get-session.md index 3ed89fcbf23..bd491ff4d73 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/get-session.md +++ b/docs/examples/1.6.x/client-apple/examples/account/get-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/get.md b/docs/examples/1.6.x/client-apple/examples/account/get.md index 2a0c2a58130..1b1213e1da2 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/get.md +++ b/docs/examples/1.6.x/client-apple/examples/account/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/list-identities.md b/docs/examples/1.6.x/client-apple/examples/account/list-identities.md index 4d8c580a180..1d3a999d4ad 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/list-identities.md +++ b/docs/examples/1.6.x/client-apple/examples/account/list-identities.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/list-logs.md b/docs/examples/1.6.x/client-apple/examples/account/list-logs.md index ecb5617d0b3..2c42307f961 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/list-logs.md +++ b/docs/examples/1.6.x/client-apple/examples/account/list-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/client-apple/examples/account/list-mfa-factors.md index 3af3427b29e..f6d7a6fe75c 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/client-apple/examples/account/list-mfa-factors.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/list-sessions.md b/docs/examples/1.6.x/client-apple/examples/account/list-sessions.md index 8b9e165c488..99f6930cd24 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/client-apple/examples/account/list-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-email.md b/docs/examples/1.6.x/client-apple/examples/account/update-email.md index 4dbd3359a74..037133282bd 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-email.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-email.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-m-f-a.md b/docs/examples/1.6.x/client-apple/examples/account/update-m-f-a.md index eefcd79fda2..fe2b04f9a3e 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-m-f-a.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/client-apple/examples/account/update-magic-u-r-l-session.md index 8e0a26a6ef7..507006b2300 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-magic-u-r-l-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/client-apple/examples/account/update-mfa-authenticator.md index 8ef2b241011..6a42fb9b6de 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-mfa-authenticator.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/client-apple/examples/account/update-mfa-challenge.md index a237537ae31..db9753b777a 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-mfa-challenge.md @@ -1,12 +1,12 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) -let result = try await account.updateMfaChallenge( +let session = try await account.updateMfaChallenge( challengeId: "<CHALLENGE_ID>", otp: "<OTP>" ) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/client-apple/examples/account/update-mfa-recovery-codes.md index fb5ea5a898c..c3b8d412c51 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-name.md b/docs/examples/1.6.x/client-apple/examples/account/update-name.md index 893d96c77e0..7f8abf54fb4 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-name.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-password.md b/docs/examples/1.6.x/client-apple/examples/account/update-password.md index 60737dc5d2f..7fa03caebc4 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-password.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-password.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-phone-session.md b/docs/examples/1.6.x/client-apple/examples/account/update-phone-session.md index 50a88cbe519..f6776d1de19 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-phone-session.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-phone-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-phone-verification.md b/docs/examples/1.6.x/client-apple/examples/account/update-phone-verification.md index 045ba8d9b67..0bf2db1f0ab 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-phone-verification.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-phone.md b/docs/examples/1.6.x/client-apple/examples/account/update-phone.md index b43b975179a..604fc85377d 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-phone.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-phone.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-prefs.md b/docs/examples/1.6.x/client-apple/examples/account/update-prefs.md index ea49c34f049..fea527337b3 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-push-target.md b/docs/examples/1.6.x/client-apple/examples/account/update-push-target.md index 351801e1be3..549c4d6c16e 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-push-target.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-push-target.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-recovery.md b/docs/examples/1.6.x/client-apple/examples/account/update-recovery.md index 1e50a14632d..536da69b8a8 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-recovery.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-session.md b/docs/examples/1.6.x/client-apple/examples/account/update-session.md index 5fe7116cc1e..8999b0a3100 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-session.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-status.md b/docs/examples/1.6.x/client-apple/examples/account/update-status.md index a7f99c34027..892858dfbce 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-status.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/account/update-verification.md b/docs/examples/1.6.x/client-apple/examples/account/update-verification.md index c17a787490c..094e10f33c4 100644 --- a/docs/examples/1.6.x/client-apple/examples/account/update-verification.md +++ b/docs/examples/1.6.x/client-apple/examples/account/update-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/client-apple/examples/avatars/get-browser.md b/docs/examples/1.6.x/client-apple/examples/avatars/get-browser.md index e18a2b2cc9f..8f326a87aa7 100644 --- a/docs/examples/1.6.x/client-apple/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/client-apple/examples/avatars/get-browser.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.6.x/client-apple/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/client-apple/examples/avatars/get-credit-card.md index 94a7bf69c0e..d294d807d58 100644 --- a/docs/examples/1.6.x/client-apple/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/client-apple/examples/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.6.x/client-apple/examples/avatars/get-favicon.md b/docs/examples/1.6.x/client-apple/examples/avatars/get-favicon.md index 95af5f59820..b7dc6830c3f 100644 --- a/docs/examples/1.6.x/client-apple/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/client-apple/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.6.x/client-apple/examples/avatars/get-flag.md b/docs/examples/1.6.x/client-apple/examples/avatars/get-flag.md index b79cf57ae84..710611739c6 100644 --- a/docs/examples/1.6.x/client-apple/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/client-apple/examples/avatars/get-flag.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.6.x/client-apple/examples/avatars/get-image.md b/docs/examples/1.6.x/client-apple/examples/avatars/get-image.md index f01e21bf8d9..0fe71e17658 100644 --- a/docs/examples/1.6.x/client-apple/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/client-apple/examples/avatars/get-image.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.6.x/client-apple/examples/avatars/get-initials.md b/docs/examples/1.6.x/client-apple/examples/avatars/get-initials.md index 8593288a816..2bbfbe6a47d 100644 --- a/docs/examples/1.6.x/client-apple/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/client-apple/examples/avatars/get-initials.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.6.x/client-apple/examples/avatars/get-q-r.md b/docs/examples/1.6.x/client-apple/examples/avatars/get-q-r.md index 370209a842d..3cc650c1b96 100644 --- a/docs/examples/1.6.x/client-apple/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/client-apple/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let avatars = Avatars(client) diff --git a/docs/examples/1.6.x/client-apple/examples/databases/create-document.md b/docs/examples/1.6.x/client-apple/examples/databases/create-document.md index 1dff3625769..51adb64bb31 100644 --- a/docs/examples/1.6.x/client-apple/examples/databases/create-document.md +++ b/docs/examples/1.6.x/client-apple/examples/databases/create-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.6.x/client-apple/examples/databases/delete-document.md b/docs/examples/1.6.x/client-apple/examples/databases/delete-document.md index 80ca2eb0a94..301203dc7f4 100644 --- a/docs/examples/1.6.x/client-apple/examples/databases/delete-document.md +++ b/docs/examples/1.6.x/client-apple/examples/databases/delete-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.6.x/client-apple/examples/databases/get-document.md b/docs/examples/1.6.x/client-apple/examples/databases/get-document.md index fa7aeb9090d..6e4dc55c6df 100644 --- a/docs/examples/1.6.x/client-apple/examples/databases/get-document.md +++ b/docs/examples/1.6.x/client-apple/examples/databases/get-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.6.x/client-apple/examples/databases/list-documents.md b/docs/examples/1.6.x/client-apple/examples/databases/list-documents.md index 6b2cbbca7a3..0d624f3a92b 100644 --- a/docs/examples/1.6.x/client-apple/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/client-apple/examples/databases/list-documents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.6.x/client-apple/examples/databases/update-document.md b/docs/examples/1.6.x/client-apple/examples/databases/update-document.md index 22602720293..af224c8e09e 100644 --- a/docs/examples/1.6.x/client-apple/examples/databases/update-document.md +++ b/docs/examples/1.6.x/client-apple/examples/databases/update-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let databases = Databases(client) diff --git a/docs/examples/1.6.x/client-apple/examples/functions/create-execution.md b/docs/examples/1.6.x/client-apple/examples/functions/create-execution.md index 6d585ea42b1..7470e9ebf6a 100644 --- a/docs/examples/1.6.x/client-apple/examples/functions/create-execution.md +++ b/docs/examples/1.6.x/client-apple/examples/functions/create-execution.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let functions = Functions(client) diff --git a/docs/examples/1.6.x/client-apple/examples/functions/get-execution.md b/docs/examples/1.6.x/client-apple/examples/functions/get-execution.md index dbf12e17cbc..787f297b2c7 100644 --- a/docs/examples/1.6.x/client-apple/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/client-apple/examples/functions/get-execution.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let functions = Functions(client) diff --git a/docs/examples/1.6.x/client-apple/examples/functions/list-executions.md b/docs/examples/1.6.x/client-apple/examples/functions/list-executions.md index 4eb2694f7c4..0e391818867 100644 --- a/docs/examples/1.6.x/client-apple/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/client-apple/examples/functions/list-executions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let functions = Functions(client) diff --git a/docs/examples/1.6.x/client-apple/examples/functions/list-templates.md b/docs/examples/1.6.x/client-apple/examples/functions/list-templates.md deleted file mode 100644 index d0090ab803b..00000000000 --- a/docs/examples/1.6.x/client-apple/examples/functions/list-templates.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - -let functions = Functions(client) - -let templateFunctionList = try await functions.listTemplates( - runtimes: [], // optional - useCases: [], // optional - limit: 1, // optional - offset: 0 // optional -) - diff --git a/docs/examples/1.6.x/client-apple/examples/graphql/mutation.md b/docs/examples/1.6.x/client-apple/examples/graphql/mutation.md index 8e54971f840..6cd2e588f9f 100644 --- a/docs/examples/1.6.x/client-apple/examples/graphql/mutation.md +++ b/docs/examples/1.6.x/client-apple/examples/graphql/mutation.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let graphql = Graphql(client) diff --git a/docs/examples/1.6.x/client-apple/examples/graphql/query.md b/docs/examples/1.6.x/client-apple/examples/graphql/query.md index db93660f1d8..47e4c243fa6 100644 --- a/docs/examples/1.6.x/client-apple/examples/graphql/query.md +++ b/docs/examples/1.6.x/client-apple/examples/graphql/query.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let graphql = Graphql(client) diff --git a/docs/examples/1.6.x/client-apple/examples/locale/get.md b/docs/examples/1.6.x/client-apple/examples/locale/get.md index ec071cd3a60..9c48317a1d4 100644 --- a/docs/examples/1.6.x/client-apple/examples/locale/get.md +++ b/docs/examples/1.6.x/client-apple/examples/locale/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.6.x/client-apple/examples/locale/list-codes.md b/docs/examples/1.6.x/client-apple/examples/locale/list-codes.md index adb35393f42..21d693a7b88 100644 --- a/docs/examples/1.6.x/client-apple/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/client-apple/examples/locale/list-codes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.6.x/client-apple/examples/locale/list-continents.md b/docs/examples/1.6.x/client-apple/examples/locale/list-continents.md index 934b2640513..bd44915a34e 100644 --- a/docs/examples/1.6.x/client-apple/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/client-apple/examples/locale/list-continents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.6.x/client-apple/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/client-apple/examples/locale/list-countries-e-u.md index 393e523847b..2dc24e5a637 100644 --- a/docs/examples/1.6.x/client-apple/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/client-apple/examples/locale/list-countries-e-u.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.6.x/client-apple/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/client-apple/examples/locale/list-countries-phones.md index 840e9043f62..f3ab6b1f6de 100644 --- a/docs/examples/1.6.x/client-apple/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/client-apple/examples/locale/list-countries-phones.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.6.x/client-apple/examples/locale/list-countries.md b/docs/examples/1.6.x/client-apple/examples/locale/list-countries.md index e6adb9e7d31..dadcd3ee261 100644 --- a/docs/examples/1.6.x/client-apple/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/client-apple/examples/locale/list-countries.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.6.x/client-apple/examples/locale/list-currencies.md b/docs/examples/1.6.x/client-apple/examples/locale/list-currencies.md index b34a9715a76..dc20ead45e4 100644 --- a/docs/examples/1.6.x/client-apple/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/client-apple/examples/locale/list-currencies.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.6.x/client-apple/examples/locale/list-languages.md b/docs/examples/1.6.x/client-apple/examples/locale/list-languages.md index db41d39e007..92c1d7b1dc7 100644 --- a/docs/examples/1.6.x/client-apple/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/client-apple/examples/locale/list-languages.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let locale = Locale(client) diff --git a/docs/examples/1.6.x/client-apple/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/client-apple/examples/messaging/create-subscriber.md index 0e3793b7bcb..f85d5e6fb1c 100644 --- a/docs/examples/1.6.x/client-apple/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/client-apple/examples/messaging/create-subscriber.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let messaging = Messaging(client) diff --git a/docs/examples/1.6.x/client-apple/examples/messaging/delete-subscriber.md b/docs/examples/1.6.x/client-apple/examples/messaging/delete-subscriber.md index 3a8b7c40cee..f1cdda95c7a 100644 --- a/docs/examples/1.6.x/client-apple/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/client-apple/examples/messaging/delete-subscriber.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let messaging = Messaging(client) diff --git a/docs/examples/1.6.x/client-apple/examples/storage/create-file.md b/docs/examples/1.6.x/client-apple/examples/storage/create-file.md index 2e5b945198e..2db9b20e1b1 100644 --- a/docs/examples/1.6.x/client-apple/examples/storage/create-file.md +++ b/docs/examples/1.6.x/client-apple/examples/storage/create-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.6.x/client-apple/examples/storage/delete-file.md b/docs/examples/1.6.x/client-apple/examples/storage/delete-file.md index caeb173fc5f..ca721a4a412 100644 --- a/docs/examples/1.6.x/client-apple/examples/storage/delete-file.md +++ b/docs/examples/1.6.x/client-apple/examples/storage/delete-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.6.x/client-apple/examples/storage/get-file-download.md b/docs/examples/1.6.x/client-apple/examples/storage/get-file-download.md index 3d8bf6bfb9e..92ac2a89ff1 100644 --- a/docs/examples/1.6.x/client-apple/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/client-apple/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.6.x/client-apple/examples/storage/get-file-preview.md b/docs/examples/1.6.x/client-apple/examples/storage/get-file-preview.md index 17e42f9065e..d1576356884 100644 --- a/docs/examples/1.6.x/client-apple/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/client-apple/examples/storage/get-file-preview.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.6.x/client-apple/examples/storage/get-file-view.md b/docs/examples/1.6.x/client-apple/examples/storage/get-file-view.md index e62afb77274..14843a7ae08 100644 --- a/docs/examples/1.6.x/client-apple/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/client-apple/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.6.x/client-apple/examples/storage/get-file.md b/docs/examples/1.6.x/client-apple/examples/storage/get-file.md index 367fd39b2ea..2730b4d5283 100644 --- a/docs/examples/1.6.x/client-apple/examples/storage/get-file.md +++ b/docs/examples/1.6.x/client-apple/examples/storage/get-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.6.x/client-apple/examples/storage/list-files.md b/docs/examples/1.6.x/client-apple/examples/storage/list-files.md index 3996ba718cb..48bd0d065f5 100644 --- a/docs/examples/1.6.x/client-apple/examples/storage/list-files.md +++ b/docs/examples/1.6.x/client-apple/examples/storage/list-files.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.6.x/client-apple/examples/storage/update-file.md b/docs/examples/1.6.x/client-apple/examples/storage/update-file.md index 37a3001e950..adef9698451 100644 --- a/docs/examples/1.6.x/client-apple/examples/storage/update-file.md +++ b/docs/examples/1.6.x/client-apple/examples/storage/update-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let storage = Storage(client) diff --git a/docs/examples/1.6.x/client-apple/examples/teams/create-membership.md b/docs/examples/1.6.x/client-apple/examples/teams/create-membership.md index e911b2aa5a5..3c6d093c645 100644 --- a/docs/examples/1.6.x/client-apple/examples/teams/create-membership.md +++ b/docs/examples/1.6.x/client-apple/examples/teams/create-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.6.x/client-apple/examples/teams/create.md b/docs/examples/1.6.x/client-apple/examples/teams/create.md index b355a633c67..b9f5ea40805 100644 --- a/docs/examples/1.6.x/client-apple/examples/teams/create.md +++ b/docs/examples/1.6.x/client-apple/examples/teams/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.6.x/client-apple/examples/teams/delete-membership.md b/docs/examples/1.6.x/client-apple/examples/teams/delete-membership.md index 8252272ec77..7c21410bf39 100644 --- a/docs/examples/1.6.x/client-apple/examples/teams/delete-membership.md +++ b/docs/examples/1.6.x/client-apple/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.6.x/client-apple/examples/teams/delete.md b/docs/examples/1.6.x/client-apple/examples/teams/delete.md index 1caee83031a..1787b4c7498 100644 --- a/docs/examples/1.6.x/client-apple/examples/teams/delete.md +++ b/docs/examples/1.6.x/client-apple/examples/teams/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.6.x/client-apple/examples/teams/get-membership.md b/docs/examples/1.6.x/client-apple/examples/teams/get-membership.md index 62e3a513ef5..837a92dd042 100644 --- a/docs/examples/1.6.x/client-apple/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/client-apple/examples/teams/get-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.6.x/client-apple/examples/teams/get-prefs.md b/docs/examples/1.6.x/client-apple/examples/teams/get-prefs.md index 04ece549173..b5b17a3bc26 100644 --- a/docs/examples/1.6.x/client-apple/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/client-apple/examples/teams/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.6.x/client-apple/examples/teams/get.md b/docs/examples/1.6.x/client-apple/examples/teams/get.md index c5673bdae3b..af358fbb670 100644 --- a/docs/examples/1.6.x/client-apple/examples/teams/get.md +++ b/docs/examples/1.6.x/client-apple/examples/teams/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.6.x/client-apple/examples/teams/list-memberships.md b/docs/examples/1.6.x/client-apple/examples/teams/list-memberships.md index e85b11cecbe..5c8669a3d81 100644 --- a/docs/examples/1.6.x/client-apple/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/client-apple/examples/teams/list-memberships.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.6.x/client-apple/examples/teams/list.md b/docs/examples/1.6.x/client-apple/examples/teams/list.md index c5e7175d30d..be81e9c5aa2 100644 --- a/docs/examples/1.6.x/client-apple/examples/teams/list.md +++ b/docs/examples/1.6.x/client-apple/examples/teams/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.6.x/client-apple/examples/teams/update-membership-status.md b/docs/examples/1.6.x/client-apple/examples/teams/update-membership-status.md index c50ef0e8610..1f3cb39d92a 100644 --- a/docs/examples/1.6.x/client-apple/examples/teams/update-membership-status.md +++ b/docs/examples/1.6.x/client-apple/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.6.x/client-apple/examples/teams/update-membership.md b/docs/examples/1.6.x/client-apple/examples/teams/update-membership.md index c4500a3ff10..eaa61799c28 100644 --- a/docs/examples/1.6.x/client-apple/examples/teams/update-membership.md +++ b/docs/examples/1.6.x/client-apple/examples/teams/update-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.6.x/client-apple/examples/teams/update-name.md b/docs/examples/1.6.x/client-apple/examples/teams/update-name.md index 64e2cab0370..ce5188b9509 100644 --- a/docs/examples/1.6.x/client-apple/examples/teams/update-name.md +++ b/docs/examples/1.6.x/client-apple/examples/teams/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.6.x/client-apple/examples/teams/update-prefs.md b/docs/examples/1.6.x/client-apple/examples/teams/update-prefs.md index a69d48567dc..e20ec2ea18b 100644 --- a/docs/examples/1.6.x/client-apple/examples/teams/update-prefs.md +++ b/docs/examples/1.6.x/client-apple/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let teams = Teams(client) diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-anonymous-session.md b/docs/examples/1.6.x/client-flutter/examples/account/create-anonymous-session.md index 50887f10dea..cdcd98ddb2d 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-anonymous-session.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-email-password-session.md b/docs/examples/1.6.x/client-flutter/examples/account/create-email-password-session.md index 64c0e93ca24..66bc2ab5f4c 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-email-password-session.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-email-password-session.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-email-token.md b/docs/examples/1.6.x/client-flutter/examples/account/create-email-token.md index 140689a9044..26408945023 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-email-token.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-email-token.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-j-w-t.md b/docs/examples/1.6.x/client-flutter/examples/account/create-j-w-t.md index 256f28e0f3f..b9cbc8f5a50 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-j-w-t.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-j-w-t.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/client-flutter/examples/account/create-magic-u-r-l-token.md index cf2d1bd1feb..454a9510229 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-magic-u-r-l-token.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-mfa-authenticator.md b/docs/examples/1.6.x/client-flutter/examples/account/create-mfa-authenticator.md index 2b35cc9ed4f..ca66149654f 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-mfa-authenticator.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-mfa-challenge.md b/docs/examples/1.6.x/client-flutter/examples/account/create-mfa-challenge.md index ad1b8c201f4..6815e5c52f8 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-mfa-challenge.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/client-flutter/examples/account/create-mfa-recovery-codes.md index 22b3b44cafd..274dc598a89 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-o-auth2session.md b/docs/examples/1.6.x/client-flutter/examples/account/create-o-auth2session.md index d00a1c7144d..ab53f4a777e 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-o-auth2session.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-o-auth2session.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/client-flutter/examples/account/create-o-auth2token.md index b1478bf9dff..d6b6c72c7e7 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-o-auth2token.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-phone-token.md b/docs/examples/1.6.x/client-flutter/examples/account/create-phone-token.md index 08dce5f7b27..ff0187f0dc4 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-phone-token.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-phone-token.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-phone-verification.md b/docs/examples/1.6.x/client-flutter/examples/account/create-phone-verification.md index 727cfe50121..11e215a060a 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-phone-verification.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-push-target.md b/docs/examples/1.6.x/client-flutter/examples/account/create-push-target.md index de324b842e2..fd1755e3c56 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-push-target.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-push-target.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-recovery.md b/docs/examples/1.6.x/client-flutter/examples/account/create-recovery.md index 09d0994dd1d..44985beb802 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-recovery.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-recovery.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-session.md b/docs/examples/1.6.x/client-flutter/examples/account/create-session.md index e35cc1978da..e54e68a317d 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-session.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-session.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create-verification.md b/docs/examples/1.6.x/client-flutter/examples/account/create-verification.md index 85142abee90..8f969972494 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create-verification.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create-verification.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/create.md b/docs/examples/1.6.x/client-flutter/examples/account/create.md index 98f6fcbaa2c..ae0d526944b 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/create.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/create.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/delete-identity.md b/docs/examples/1.6.x/client-flutter/examples/account/delete-identity.md index 9846a0c11c2..849fa726a48 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/delete-identity.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/delete-identity.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/client-flutter/examples/account/delete-mfa-authenticator.md index 6d2a21ce896..bf4b0c509b0 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/delete-push-target.md b/docs/examples/1.6.x/client-flutter/examples/account/delete-push-target.md index f6ec230d718..6393d4ed4e0 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/delete-push-target.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/delete-push-target.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/delete-session.md b/docs/examples/1.6.x/client-flutter/examples/account/delete-session.md index 07978e2c114..55abb18c850 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/delete-session.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/delete-session.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/delete-sessions.md b/docs/examples/1.6.x/client-flutter/examples/account/delete-sessions.md index faafcb97bda..c50b611cacd 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/delete-sessions.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/client-flutter/examples/account/get-mfa-recovery-codes.md index 413fb059e6a..f9d50131e5b 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/get-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/get-prefs.md b/docs/examples/1.6.x/client-flutter/examples/account/get-prefs.md index bc7731daaa0..9332da3a638 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/get-prefs.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/get-session.md b/docs/examples/1.6.x/client-flutter/examples/account/get-session.md index 4958fd1c94d..d68afcecd2a 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/get-session.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/get-session.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/get.md b/docs/examples/1.6.x/client-flutter/examples/account/get.md index c38dd7f4fdc..a318617f78d 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/get.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/get.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/list-identities.md b/docs/examples/1.6.x/client-flutter/examples/account/list-identities.md index 183d525b3bb..9d2ad83c179 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/list-identities.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/list-identities.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/list-logs.md b/docs/examples/1.6.x/client-flutter/examples/account/list-logs.md index ec29b9510d1..6d9b120991c 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/list-logs.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/list-logs.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/client-flutter/examples/account/list-mfa-factors.md index bb320225cd3..9f945400ac1 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/list-mfa-factors.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/list-sessions.md b/docs/examples/1.6.x/client-flutter/examples/account/list-sessions.md index 3af2299e04d..fd1d0e080c3 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/list-sessions.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-email.md b/docs/examples/1.6.x/client-flutter/examples/account/update-email.md index b3c7ffe9117..0f3d9982847 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-email.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-email.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-m-f-a.md b/docs/examples/1.6.x/client-flutter/examples/account/update-m-f-a.md index c376c72917d..fc81c565edf 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-m-f-a.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/client-flutter/examples/account/update-magic-u-r-l-session.md index e75aba3ffd7..d0f91eb0a48 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-magic-u-r-l-session.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/client-flutter/examples/account/update-mfa-authenticator.md index d2d974fbfe9..7f026578c52 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-mfa-authenticator.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/client-flutter/examples/account/update-mfa-challenge.md index c8e1af7e909..a938f0af683 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-mfa-challenge.md @@ -1,12 +1,12 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); - result = await account.updateMfaChallenge( +Session result = await account.updateMfaChallenge( challengeId: '<CHALLENGE_ID>', otp: '<OTP>', ); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/client-flutter/examples/account/update-mfa-recovery-codes.md index fd2aaf721b0..37334ef69a7 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-name.md b/docs/examples/1.6.x/client-flutter/examples/account/update-name.md index 77e774c767b..303a12351f2 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-name.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-name.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-password.md b/docs/examples/1.6.x/client-flutter/examples/account/update-password.md index 8d36c1f68da..835d2383cae 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-password.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-password.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-phone-session.md b/docs/examples/1.6.x/client-flutter/examples/account/update-phone-session.md index 64d8d84201c..36801792f6c 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-phone-session.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-phone-session.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-phone-verification.md b/docs/examples/1.6.x/client-flutter/examples/account/update-phone-verification.md index 5c67e1a5c01..f5bbb773d04 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-phone-verification.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-phone.md b/docs/examples/1.6.x/client-flutter/examples/account/update-phone.md index 6c9559db147..6390d142457 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-phone.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-phone.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-prefs.md b/docs/examples/1.6.x/client-flutter/examples/account/update-prefs.md index ca9b709a500..81fa362f898 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-prefs.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-push-target.md b/docs/examples/1.6.x/client-flutter/examples/account/update-push-target.md index a54b1aa30f5..c695ea09840 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-push-target.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-push-target.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-recovery.md b/docs/examples/1.6.x/client-flutter/examples/account/update-recovery.md index 648d25b1b67..5ca0239f476 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-recovery.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-recovery.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-session.md b/docs/examples/1.6.x/client-flutter/examples/account/update-session.md index 2cdf32aae04..4c78ebb187b 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-session.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-session.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-status.md b/docs/examples/1.6.x/client-flutter/examples/account/update-status.md index 0b0fb95ea69..289a3f0a96e 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-status.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-status.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/account/update-verification.md b/docs/examples/1.6.x/client-flutter/examples/account/update-verification.md index 3071a0409ea..15c7ed19288 100644 --- a/docs/examples/1.6.x/client-flutter/examples/account/update-verification.md +++ b/docs/examples/1.6.x/client-flutter/examples/account/update-verification.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/avatars/get-browser.md b/docs/examples/1.6.x/client-flutter/examples/avatars/get-browser.md index 21dae2114e0..0ca83b89aaf 100644 --- a/docs/examples/1.6.x/client-flutter/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/client-flutter/examples/avatars/get-browser.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Avatars avatars = Avatars(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/client-flutter/examples/avatars/get-credit-card.md index a580e3bdaa0..1075e8196aa 100644 --- a/docs/examples/1.6.x/client-flutter/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/client-flutter/examples/avatars/get-credit-card.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Avatars avatars = Avatars(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/avatars/get-favicon.md b/docs/examples/1.6.x/client-flutter/examples/avatars/get-favicon.md index f35f5a71a0e..0df5ed0d2a1 100644 --- a/docs/examples/1.6.x/client-flutter/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/client-flutter/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Avatars avatars = Avatars(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/avatars/get-flag.md b/docs/examples/1.6.x/client-flutter/examples/avatars/get-flag.md index 8f358261241..3aae5bfba77 100644 --- a/docs/examples/1.6.x/client-flutter/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/client-flutter/examples/avatars/get-flag.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Avatars avatars = Avatars(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/avatars/get-image.md b/docs/examples/1.6.x/client-flutter/examples/avatars/get-image.md index 5d8a9865371..5b9d1b58c16 100644 --- a/docs/examples/1.6.x/client-flutter/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/client-flutter/examples/avatars/get-image.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Avatars avatars = Avatars(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/avatars/get-initials.md b/docs/examples/1.6.x/client-flutter/examples/avatars/get-initials.md index 26302d02c38..0c5b62a3099 100644 --- a/docs/examples/1.6.x/client-flutter/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/client-flutter/examples/avatars/get-initials.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Avatars avatars = Avatars(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/avatars/get-q-r.md b/docs/examples/1.6.x/client-flutter/examples/avatars/get-q-r.md index 40f0b5068c2..d9a533c8868 100644 --- a/docs/examples/1.6.x/client-flutter/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/client-flutter/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Avatars avatars = Avatars(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/databases/create-document.md b/docs/examples/1.6.x/client-flutter/examples/databases/create-document.md index 7853329a05f..27efc34580e 100644 --- a/docs/examples/1.6.x/client-flutter/examples/databases/create-document.md +++ b/docs/examples/1.6.x/client-flutter/examples/databases/create-document.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Databases databases = Databases(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/databases/delete-document.md b/docs/examples/1.6.x/client-flutter/examples/databases/delete-document.md index 14cec01c0a7..3354917c203 100644 --- a/docs/examples/1.6.x/client-flutter/examples/databases/delete-document.md +++ b/docs/examples/1.6.x/client-flutter/examples/databases/delete-document.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Databases databases = Databases(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/databases/get-document.md b/docs/examples/1.6.x/client-flutter/examples/databases/get-document.md index 55206357b22..f85c1f9b5a6 100644 --- a/docs/examples/1.6.x/client-flutter/examples/databases/get-document.md +++ b/docs/examples/1.6.x/client-flutter/examples/databases/get-document.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Databases databases = Databases(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/databases/list-documents.md b/docs/examples/1.6.x/client-flutter/examples/databases/list-documents.md index e78a02de6b4..31fec1f5223 100644 --- a/docs/examples/1.6.x/client-flutter/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/client-flutter/examples/databases/list-documents.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Databases databases = Databases(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/databases/update-document.md b/docs/examples/1.6.x/client-flutter/examples/databases/update-document.md index 29ee8781ff4..1f444d875a5 100644 --- a/docs/examples/1.6.x/client-flutter/examples/databases/update-document.md +++ b/docs/examples/1.6.x/client-flutter/examples/databases/update-document.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Databases databases = Databases(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/functions/create-execution.md b/docs/examples/1.6.x/client-flutter/examples/functions/create-execution.md index 94f0ae55819..d2a3d9e00a9 100644 --- a/docs/examples/1.6.x/client-flutter/examples/functions/create-execution.md +++ b/docs/examples/1.6.x/client-flutter/examples/functions/create-execution.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Functions functions = Functions(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/functions/get-deployment-download.md b/docs/examples/1.6.x/client-flutter/examples/functions/get-deployment-download.md deleted file mode 100644 index bb0ee903df9..00000000000 --- a/docs/examples/1.6.x/client-flutter/examples/functions/get-deployment-download.md +++ /dev/null @@ -1,29 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -Functions functions = Functions(client); - -// Downloading file -UInt8List bytes = await functions.getDeploymentDownload( - functionId: '<FUNCTION_ID>', - deploymentId: '<DEPLOYMENT_ID>', -) - -final file = File('path_to_file/filename.ext'); -file.writeAsBytesSync(bytes); - -// Displaying image preview -FutureBuilder( - future: functions.getDeploymentDownload( - functionId:'<FUNCTION_ID>' , - deploymentId:'<DEPLOYMENT_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/1.6.x/client-flutter/examples/functions/get-execution.md b/docs/examples/1.6.x/client-flutter/examples/functions/get-execution.md index b4595146242..714933be32d 100644 --- a/docs/examples/1.6.x/client-flutter/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/client-flutter/examples/functions/get-execution.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Functions functions = Functions(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/functions/get-template.md b/docs/examples/1.6.x/client-flutter/examples/functions/get-template.md deleted file mode 100644 index 560a4d94ed0..00000000000 --- a/docs/examples/1.6.x/client-flutter/examples/functions/get-template.md +++ /dev/null @@ -1,11 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -Functions functions = Functions(client); - -TemplateFunction result = await functions.getTemplate( - templateId: '<TEMPLATE_ID>', -); diff --git a/docs/examples/1.6.x/client-flutter/examples/functions/list-executions.md b/docs/examples/1.6.x/client-flutter/examples/functions/list-executions.md index ba4b4e41d7e..accebe9dd83 100644 --- a/docs/examples/1.6.x/client-flutter/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/client-flutter/examples/functions/list-executions.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Functions functions = Functions(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/functions/list-templates.md b/docs/examples/1.6.x/client-flutter/examples/functions/list-templates.md deleted file mode 100644 index d3d8c7aa4c0..00000000000 --- a/docs/examples/1.6.x/client-flutter/examples/functions/list-templates.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -Functions functions = Functions(client); - -TemplateFunctionList result = await functions.listTemplates( - runtimes: [], // optional - useCases: [], // optional - limit: 1, // optional - offset: 0, // optional -); diff --git a/docs/examples/1.6.x/client-flutter/examples/graphql/mutation.md b/docs/examples/1.6.x/client-flutter/examples/graphql/mutation.md index 1ac9ba0a0d6..60f0c297033 100644 --- a/docs/examples/1.6.x/client-flutter/examples/graphql/mutation.md +++ b/docs/examples/1.6.x/client-flutter/examples/graphql/mutation.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Graphql graphql = Graphql(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/graphql/query.md b/docs/examples/1.6.x/client-flutter/examples/graphql/query.md index 2c06a838ab2..d90c3432e9b 100644 --- a/docs/examples/1.6.x/client-flutter/examples/graphql/query.md +++ b/docs/examples/1.6.x/client-flutter/examples/graphql/query.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Graphql graphql = Graphql(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/locale/get.md b/docs/examples/1.6.x/client-flutter/examples/locale/get.md index 53cfda5c200..b2846990462 100644 --- a/docs/examples/1.6.x/client-flutter/examples/locale/get.md +++ b/docs/examples/1.6.x/client-flutter/examples/locale/get.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/locale/list-codes.md b/docs/examples/1.6.x/client-flutter/examples/locale/list-codes.md index bfd53f97bca..02274715714 100644 --- a/docs/examples/1.6.x/client-flutter/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/client-flutter/examples/locale/list-codes.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/locale/list-continents.md b/docs/examples/1.6.x/client-flutter/examples/locale/list-continents.md index c462c2e46b5..1098bd1d58a 100644 --- a/docs/examples/1.6.x/client-flutter/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/client-flutter/examples/locale/list-continents.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/client-flutter/examples/locale/list-countries-e-u.md index 0f5629b54fb..7d6571f4eef 100644 --- a/docs/examples/1.6.x/client-flutter/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/client-flutter/examples/locale/list-countries-e-u.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/client-flutter/examples/locale/list-countries-phones.md index ee8689a986c..395f240fd7c 100644 --- a/docs/examples/1.6.x/client-flutter/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/client-flutter/examples/locale/list-countries-phones.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/locale/list-countries.md b/docs/examples/1.6.x/client-flutter/examples/locale/list-countries.md index 0c1bae6016e..a322eb20784 100644 --- a/docs/examples/1.6.x/client-flutter/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/client-flutter/examples/locale/list-countries.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/locale/list-currencies.md b/docs/examples/1.6.x/client-flutter/examples/locale/list-currencies.md index a9c53b1264c..8884bf45b2e 100644 --- a/docs/examples/1.6.x/client-flutter/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/client-flutter/examples/locale/list-currencies.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/locale/list-languages.md b/docs/examples/1.6.x/client-flutter/examples/locale/list-languages.md index c5bdd2643b4..0444d94151b 100644 --- a/docs/examples/1.6.x/client-flutter/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/client-flutter/examples/locale/list-languages.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Locale locale = Locale(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/client-flutter/examples/messaging/create-subscriber.md index 1284151b610..2a278a0481d 100644 --- a/docs/examples/1.6.x/client-flutter/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/client-flutter/examples/messaging/create-subscriber.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Messaging messaging = Messaging(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/messaging/delete-subscriber.md b/docs/examples/1.6.x/client-flutter/examples/messaging/delete-subscriber.md index aa66acbf175..02c1f615358 100644 --- a/docs/examples/1.6.x/client-flutter/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/client-flutter/examples/messaging/delete-subscriber.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Messaging messaging = Messaging(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/storage/create-file.md b/docs/examples/1.6.x/client-flutter/examples/storage/create-file.md index 1a0a498b762..661f6b8b1e4 100644 --- a/docs/examples/1.6.x/client-flutter/examples/storage/create-file.md +++ b/docs/examples/1.6.x/client-flutter/examples/storage/create-file.md @@ -2,7 +2,7 @@ import 'dart:io'; import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/storage/delete-file.md b/docs/examples/1.6.x/client-flutter/examples/storage/delete-file.md index 39135824b73..b2c6a78f752 100644 --- a/docs/examples/1.6.x/client-flutter/examples/storage/delete-file.md +++ b/docs/examples/1.6.x/client-flutter/examples/storage/delete-file.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/storage/get-file-download.md b/docs/examples/1.6.x/client-flutter/examples/storage/get-file-download.md index 3346442532a..9048fe469b3 100644 --- a/docs/examples/1.6.x/client-flutter/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/client-flutter/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/storage/get-file-preview.md b/docs/examples/1.6.x/client-flutter/examples/storage/get-file-preview.md index 2bb09976169..3d81e61c921 100644 --- a/docs/examples/1.6.x/client-flutter/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/client-flutter/examples/storage/get-file-preview.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/storage/get-file-view.md b/docs/examples/1.6.x/client-flutter/examples/storage/get-file-view.md index c5f8ea1147b..7d43806c2c8 100644 --- a/docs/examples/1.6.x/client-flutter/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/client-flutter/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/storage/get-file.md b/docs/examples/1.6.x/client-flutter/examples/storage/get-file.md index 83a32190a44..f4b541ffd17 100644 --- a/docs/examples/1.6.x/client-flutter/examples/storage/get-file.md +++ b/docs/examples/1.6.x/client-flutter/examples/storage/get-file.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/storage/list-files.md b/docs/examples/1.6.x/client-flutter/examples/storage/list-files.md index d5f8b0b4d7c..7950005b6a2 100644 --- a/docs/examples/1.6.x/client-flutter/examples/storage/list-files.md +++ b/docs/examples/1.6.x/client-flutter/examples/storage/list-files.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/storage/update-file.md b/docs/examples/1.6.x/client-flutter/examples/storage/update-file.md index c88355a52c7..8e598121c12 100644 --- a/docs/examples/1.6.x/client-flutter/examples/storage/update-file.md +++ b/docs/examples/1.6.x/client-flutter/examples/storage/update-file.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Storage storage = Storage(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/teams/create-membership.md b/docs/examples/1.6.x/client-flutter/examples/teams/create-membership.md index 04eedde662c..80265214084 100644 --- a/docs/examples/1.6.x/client-flutter/examples/teams/create-membership.md +++ b/docs/examples/1.6.x/client-flutter/examples/teams/create-membership.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/teams/create.md b/docs/examples/1.6.x/client-flutter/examples/teams/create.md index 1afcbf1ce57..637e216a041 100644 --- a/docs/examples/1.6.x/client-flutter/examples/teams/create.md +++ b/docs/examples/1.6.x/client-flutter/examples/teams/create.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/teams/delete-membership.md b/docs/examples/1.6.x/client-flutter/examples/teams/delete-membership.md index 83c80a27038..0f1941d88be 100644 --- a/docs/examples/1.6.x/client-flutter/examples/teams/delete-membership.md +++ b/docs/examples/1.6.x/client-flutter/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/teams/delete.md b/docs/examples/1.6.x/client-flutter/examples/teams/delete.md index 5a4d0dba424..74c74c9cf13 100644 --- a/docs/examples/1.6.x/client-flutter/examples/teams/delete.md +++ b/docs/examples/1.6.x/client-flutter/examples/teams/delete.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/teams/get-membership.md b/docs/examples/1.6.x/client-flutter/examples/teams/get-membership.md index 3ae0844c81a..468e02cf32a 100644 --- a/docs/examples/1.6.x/client-flutter/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/client-flutter/examples/teams/get-membership.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/teams/get-prefs.md b/docs/examples/1.6.x/client-flutter/examples/teams/get-prefs.md index 0f93c25a338..a22c78869cc 100644 --- a/docs/examples/1.6.x/client-flutter/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/client-flutter/examples/teams/get-prefs.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/teams/get.md b/docs/examples/1.6.x/client-flutter/examples/teams/get.md index bcf45530eea..5e8c3463eae 100644 --- a/docs/examples/1.6.x/client-flutter/examples/teams/get.md +++ b/docs/examples/1.6.x/client-flutter/examples/teams/get.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/teams/list-memberships.md b/docs/examples/1.6.x/client-flutter/examples/teams/list-memberships.md index 7fc920a2d09..374dd490694 100644 --- a/docs/examples/1.6.x/client-flutter/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/client-flutter/examples/teams/list-memberships.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/teams/list.md b/docs/examples/1.6.x/client-flutter/examples/teams/list.md index 75b29554c09..3aa972fb5ff 100644 --- a/docs/examples/1.6.x/client-flutter/examples/teams/list.md +++ b/docs/examples/1.6.x/client-flutter/examples/teams/list.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/teams/update-membership-status.md b/docs/examples/1.6.x/client-flutter/examples/teams/update-membership-status.md index e08f63bac87..1ce3eacb79f 100644 --- a/docs/examples/1.6.x/client-flutter/examples/teams/update-membership-status.md +++ b/docs/examples/1.6.x/client-flutter/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/teams/update-membership.md b/docs/examples/1.6.x/client-flutter/examples/teams/update-membership.md index 33e6568da1e..bc2bbae75c3 100644 --- a/docs/examples/1.6.x/client-flutter/examples/teams/update-membership.md +++ b/docs/examples/1.6.x/client-flutter/examples/teams/update-membership.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/teams/update-name.md b/docs/examples/1.6.x/client-flutter/examples/teams/update-name.md index 43d1b0c7fca..8f1794587e9 100644 --- a/docs/examples/1.6.x/client-flutter/examples/teams/update-name.md +++ b/docs/examples/1.6.x/client-flutter/examples/teams/update-name.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.6.x/client-flutter/examples/teams/update-prefs.md b/docs/examples/1.6.x/client-flutter/examples/teams/update-prefs.md index 2a446f08004..7b33c8c3130 100644 --- a/docs/examples/1.6.x/client-flutter/examples/teams/update-prefs.md +++ b/docs/examples/1.6.x/client-flutter/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ import 'package:appwrite/appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Teams teams = Teams(client); diff --git a/docs/examples/1.6.x/client-graphql/examples/account/create-push-target.md b/docs/examples/1.6.x/client-graphql/examples/account/create-push-target.md index 8a0fad387c9..63802a782e5 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/create-push-target.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/create-push-target.md @@ -12,5 +12,6 @@ mutation { providerId providerType identifier + expired } } diff --git a/docs/examples/1.6.x/client-graphql/examples/account/create.md b/docs/examples/1.6.x/client-graphql/examples/account/create.md index 3f8e3c3cf7c..0d39394a3d0 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/create.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/create.md @@ -33,6 +33,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/client-graphql/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/client-graphql/examples/account/get-mfa-recovery-codes.md index e2de72b57f8..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/get-mfa-recovery-codes.md @@ -1,5 +0,0 @@ -query { - accountGetMfaRecoveryCodes { - recoveryCodes - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/account/get-prefs.md b/docs/examples/1.6.x/client-graphql/examples/account/get-prefs.md index 6cb48d2b588..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/get-prefs.md @@ -1,5 +0,0 @@ -query { - accountGetPrefs { - data - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/account/get-session.md b/docs/examples/1.6.x/client-graphql/examples/account/get-session.md index 65c824f68bd..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/get-session.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/get-session.md @@ -1,35 +0,0 @@ -query { - accountGetSession( - sessionId: "<SESSION_ID>" - ) { - _id - _createdAt - _updatedAt - userId - expire - provider - providerUid - providerAccessToken - providerAccessTokenExpiry - providerRefreshToken - ip - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - current - factors - secret - mfaUpdatedAt - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/account/get.md b/docs/examples/1.6.x/client-graphql/examples/account/get.md index e4db8f0e414..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/get.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/get.md @@ -1,34 +0,0 @@ -query { - accountGet { - _id - _createdAt - _updatedAt - name - password - hash - hashOptions - registration - status - labels - passwordUpdate - email - phone - emailVerification - phoneVerification - mfa - prefs { - data - } - targets { - _id - _createdAt - _updatedAt - name - userId - providerId - providerType - identifier - } - accessedAt - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/account/list-identities.md b/docs/examples/1.6.x/client-graphql/examples/account/list-identities.md index b7a2a6d39a4..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/list-identities.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/list-identities.md @@ -1,19 +0,0 @@ -query { - accountListIdentities( - queries: [] - ) { - total - identities { - _id - _createdAt - _updatedAt - userId - provider - providerUid - providerEmail - providerAccessToken - providerAccessTokenExpiry - providerRefreshToken - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/account/list-logs.md b/docs/examples/1.6.x/client-graphql/examples/account/list-logs.md index 1e17b2f69f9..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/list-logs.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/list-logs.md @@ -1,30 +0,0 @@ -query { - accountListLogs( - queries: [] - ) { - total - logs { - event - userId - userEmail - userName - mode - ip - time - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/client-graphql/examples/account/list-mfa-factors.md index 2a78b901b33..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/list-mfa-factors.md @@ -1,8 +0,0 @@ -query { - accountListMfaFactors { - totp - phone - email - recoveryCode - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/account/list-sessions.md b/docs/examples/1.6.x/client-graphql/examples/account/list-sessions.md index 6d45f1d4aeb..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/list-sessions.md @@ -1,36 +0,0 @@ -query { - accountListSessions { - total - sessions { - _id - _createdAt - _updatedAt - userId - expire - provider - providerUid - providerAccessToken - providerAccessTokenExpiry - providerRefreshToken - ip - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - current - factors - secret - mfaUpdatedAt - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/account/update-email.md b/docs/examples/1.6.x/client-graphql/examples/account/update-email.md index b207bad4bbb..c879e24a43a 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/update-email.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/update-email.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/client-graphql/examples/account/update-m-f-a.md b/docs/examples/1.6.x/client-graphql/examples/account/update-m-f-a.md index d2cd3d6ae54..787c2e08608 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/update-m-f-a.md @@ -30,6 +30,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/client-graphql/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/client-graphql/examples/account/update-mfa-authenticator.md index c74062c7d4a..9cfe9150be6 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/update-mfa-authenticator.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/client-graphql/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/client-graphql/examples/account/update-mfa-challenge.md index 8237431bcfc..0bcec2157fe 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/update-mfa-challenge.md @@ -3,6 +3,34 @@ mutation { challengeId: "<CHALLENGE_ID>", otp: "<OTP>" ) { - status + _id + _createdAt + _updatedAt + userId + expire + provider + providerUid + providerAccessToken + providerAccessTokenExpiry + providerRefreshToken + ip + osCode + osName + osVersion + clientType + clientCode + clientName + clientVersion + clientEngine + clientEngineVersion + deviceName + deviceBrand + deviceModel + countryCode + countryName + current + factors + secret + mfaUpdatedAt } } diff --git a/docs/examples/1.6.x/client-graphql/examples/account/update-name.md b/docs/examples/1.6.x/client-graphql/examples/account/update-name.md index 850b5760a0a..8ba2c99d9c2 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/update-name.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/update-name.md @@ -30,6 +30,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/client-graphql/examples/account/update-password.md b/docs/examples/1.6.x/client-graphql/examples/account/update-password.md index 5904da08420..f3619a10d28 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/update-password.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/update-password.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/client-graphql/examples/account/update-phone.md b/docs/examples/1.6.x/client-graphql/examples/account/update-phone.md index 408a2033002..adecb711684 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/update-phone.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/update-phone.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/client-graphql/examples/account/update-prefs.md b/docs/examples/1.6.x/client-graphql/examples/account/update-prefs.md index 40db7b43dbd..57280247e40 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/update-prefs.md @@ -30,6 +30,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/client-graphql/examples/account/update-push-target.md b/docs/examples/1.6.x/client-graphql/examples/account/update-push-target.md index 059702dc974..3c402cdf12a 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/update-push-target.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/update-push-target.md @@ -11,5 +11,6 @@ mutation { providerId providerType identifier + expired } } diff --git a/docs/examples/1.6.x/client-graphql/examples/account/update-status.md b/docs/examples/1.6.x/client-graphql/examples/account/update-status.md index aca8c098e71..c17f5568426 100644 --- a/docs/examples/1.6.x/client-graphql/examples/account/update-status.md +++ b/docs/examples/1.6.x/client-graphql/examples/account/update-status.md @@ -28,6 +28,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/client-graphql/examples/avatars/get-browser.md b/docs/examples/1.6.x/client-graphql/examples/avatars/get-browser.md index 817e1e54c25..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/client-graphql/examples/avatars/get-browser.md @@ -1,10 +0,0 @@ -query { - avatarsGetBrowser( - code: "aa", - width: 0, - height: 0, - quality: 0 - ) { - status - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/client-graphql/examples/avatars/get-credit-card.md index e4b5dc18d9c..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/client-graphql/examples/avatars/get-credit-card.md @@ -1,10 +0,0 @@ -query { - avatarsGetCreditCard( - code: "amex", - width: 0, - height: 0, - quality: 0 - ) { - status - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/avatars/get-favicon.md b/docs/examples/1.6.x/client-graphql/examples/avatars/get-favicon.md index bfea71f4983..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/client-graphql/examples/avatars/get-favicon.md @@ -1,7 +0,0 @@ -query { - avatarsGetFavicon( - url: "https://example.com" - ) { - status - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/avatars/get-flag.md b/docs/examples/1.6.x/client-graphql/examples/avatars/get-flag.md index 1502128581d..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/client-graphql/examples/avatars/get-flag.md @@ -1,10 +0,0 @@ -query { - avatarsGetFlag( - code: "af", - width: 0, - height: 0, - quality: 0 - ) { - status - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/avatars/get-image.md b/docs/examples/1.6.x/client-graphql/examples/avatars/get-image.md index 3b9aa104dc5..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/client-graphql/examples/avatars/get-image.md @@ -1,9 +0,0 @@ -query { - avatarsGetImage( - url: "https://example.com", - width: 0, - height: 0 - ) { - status - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/avatars/get-initials.md b/docs/examples/1.6.x/client-graphql/examples/avatars/get-initials.md index 51ae36136be..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/client-graphql/examples/avatars/get-initials.md @@ -1,10 +0,0 @@ -query { - avatarsGetInitials( - name: "<NAME>", - width: 0, - height: 0, - background: "" - ) { - status - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/avatars/get-q-r.md b/docs/examples/1.6.x/client-graphql/examples/avatars/get-q-r.md index a19f2184124..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/client-graphql/examples/avatars/get-q-r.md @@ -1,10 +0,0 @@ -query { - avatarsGetQR( - text: "<TEXT>", - size: 1, - margin: 0, - download: false - ) { - status - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/databases/get-document.md b/docs/examples/1.6.x/client-graphql/examples/databases/get-document.md index 7cff0a18c1f..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/databases/get-document.md +++ b/docs/examples/1.6.x/client-graphql/examples/databases/get-document.md @@ -1,16 +0,0 @@ -query { - databasesGetDocument( - databaseId: "<DATABASE_ID>", - collectionId: "<COLLECTION_ID>", - documentId: "<DOCUMENT_ID>", - queries: [] - ) { - _id - _collectionId - _databaseId - _createdAt - _updatedAt - _permissions - data - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/databases/list-documents.md b/docs/examples/1.6.x/client-graphql/examples/databases/list-documents.md index 077d7c8f128..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/client-graphql/examples/databases/list-documents.md @@ -1,18 +0,0 @@ -query { - databasesListDocuments( - databaseId: "<DATABASE_ID>", - collectionId: "<COLLECTION_ID>", - queries: [] - ) { - total - documents { - _id - _collectionId - _databaseId - _createdAt - _updatedAt - _permissions - data - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/functions/get-execution.md b/docs/examples/1.6.x/client-graphql/examples/functions/get-execution.md index 6ded51a50cc..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/client-graphql/examples/functions/get-execution.md @@ -1,30 +0,0 @@ -query { - functionsGetExecution( - functionId: "<FUNCTION_ID>", - executionId: "<EXECUTION_ID>" - ) { - _id - _createdAt - _updatedAt - _permissions - functionId - trigger - status - requestMethod - requestPath - requestHeaders { - name - value - } - responseStatusCode - responseBody - responseHeaders { - name - value - } - logs - errors - duration - scheduledAt - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/functions/get-template.md b/docs/examples/1.6.x/client-graphql/examples/functions/get-template.md deleted file mode 100644 index 44a466de27a..00000000000 --- a/docs/examples/1.6.x/client-graphql/examples/functions/get-template.md +++ /dev/null @@ -1,35 +0,0 @@ -query { - functionsGetTemplate( - templateId: "<TEMPLATE_ID>" - ) { - icon - id - name - tagline - permissions - events - cron - timeout - useCases - runtimes { - name - commands - entrypoint - providerRootDirectory - } - instructions - vcsProvider - providerRepositoryId - providerOwner - providerVersion - variables { - name - description - value - placeholder - required - type - } - scopes - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/functions/list-executions.md b/docs/examples/1.6.x/client-graphql/examples/functions/list-executions.md index a0c02fa76f2..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/client-graphql/examples/functions/list-executions.md @@ -1,34 +0,0 @@ -query { - functionsListExecutions( - functionId: "<FUNCTION_ID>", - queries: [], - search: "<SEARCH>" - ) { - total - executions { - _id - _createdAt - _updatedAt - _permissions - functionId - trigger - status - requestMethod - requestPath - requestHeaders { - name - value - } - responseStatusCode - responseBody - responseHeaders { - name - value - } - logs - errors - duration - scheduledAt - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/functions/list-templates.md b/docs/examples/1.6.x/client-graphql/examples/functions/list-templates.md deleted file mode 100644 index cb289ddabbe..00000000000 --- a/docs/examples/1.6.x/client-graphql/examples/functions/list-templates.md +++ /dev/null @@ -1,41 +0,0 @@ -query { - functionsListTemplates( - runtimes: [], - useCases: [], - limit: 1, - offset: 0 - ) { - total - templates { - icon - id - name - tagline - permissions - events - cron - timeout - useCases - runtimes { - name - commands - entrypoint - providerRootDirectory - } - instructions - vcsProvider - providerRepositoryId - providerOwner - providerVersion - variables { - name - description - value - placeholder - required - type - } - scopes - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/locale/get.md b/docs/examples/1.6.x/client-graphql/examples/locale/get.md index 2b2bbcc1f16..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/locale/get.md +++ b/docs/examples/1.6.x/client-graphql/examples/locale/get.md @@ -1,11 +0,0 @@ -query { - localeGet { - ip - countryCode - country - continentCode - continent - eu - currency - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/locale/list-codes.md b/docs/examples/1.6.x/client-graphql/examples/locale/list-codes.md index 0164cc37823..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/client-graphql/examples/locale/list-codes.md @@ -1,9 +0,0 @@ -query { - localeListCodes { - total - localeCodes { - code - name - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/locale/list-continents.md b/docs/examples/1.6.x/client-graphql/examples/locale/list-continents.md index 41f672c5658..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/client-graphql/examples/locale/list-continents.md @@ -1,9 +0,0 @@ -query { - localeListContinents { - total - continents { - name - code - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/client-graphql/examples/locale/list-countries-e-u.md index 00cd4652f99..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/client-graphql/examples/locale/list-countries-e-u.md @@ -1,9 +0,0 @@ -query { - localeListCountriesEU { - total - countries { - name - code - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/client-graphql/examples/locale/list-countries-phones.md index 33d2296850b..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/client-graphql/examples/locale/list-countries-phones.md @@ -1,10 +0,0 @@ -query { - localeListCountriesPhones { - total - phones { - code - countryCode - countryName - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/locale/list-countries.md b/docs/examples/1.6.x/client-graphql/examples/locale/list-countries.md index 9312bc94b1b..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/client-graphql/examples/locale/list-countries.md @@ -1,9 +0,0 @@ -query { - localeListCountries { - total - countries { - name - code - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/locale/list-currencies.md b/docs/examples/1.6.x/client-graphql/examples/locale/list-currencies.md index cde3ab488a7..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/client-graphql/examples/locale/list-currencies.md @@ -1,14 +0,0 @@ -query { - localeListCurrencies { - total - currencies { - symbol - name - symbolNative - decimalDigits - rounding - code - namePlural - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/locale/list-languages.md b/docs/examples/1.6.x/client-graphql/examples/locale/list-languages.md index b0d76c522b2..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/client-graphql/examples/locale/list-languages.md @@ -1,10 +0,0 @@ -query { - localeListLanguages { - total - languages { - name - code - nativeName - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/client-graphql/examples/messaging/create-subscriber.md index b2712ebb487..bab53612b79 100644 --- a/docs/examples/1.6.x/client-graphql/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/client-graphql/examples/messaging/create-subscriber.md @@ -17,6 +17,7 @@ mutation { providerId providerType identifier + expired } userId userName diff --git a/docs/examples/1.6.x/client-graphql/examples/storage/get-file-download.md b/docs/examples/1.6.x/client-graphql/examples/storage/get-file-download.md index 8325e8a230e..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/client-graphql/examples/storage/get-file-download.md @@ -1,8 +0,0 @@ -query { - storageGetFileDownload( - bucketId: "<BUCKET_ID>", - fileId: "<FILE_ID>" - ) { - status - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/storage/get-file-preview.md b/docs/examples/1.6.x/client-graphql/examples/storage/get-file-preview.md index df32e883508..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/client-graphql/examples/storage/get-file-preview.md @@ -1,19 +0,0 @@ -query { - storageGetFilePreview( - bucketId: "<BUCKET_ID>", - fileId: "<FILE_ID>", - width: 0, - height: 0, - gravity: "center", - quality: 0, - borderWidth: 0, - borderColor: "", - borderRadius: 0, - opacity: 0, - rotation: -360, - background: "", - output: "jpg" - ) { - status - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/storage/get-file-view.md b/docs/examples/1.6.x/client-graphql/examples/storage/get-file-view.md index 434328a1ec5..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/client-graphql/examples/storage/get-file-view.md @@ -1,8 +0,0 @@ -query { - storageGetFileView( - bucketId: "<BUCKET_ID>", - fileId: "<FILE_ID>" - ) { - status - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/storage/get-file.md b/docs/examples/1.6.x/client-graphql/examples/storage/get-file.md index 60886b0f6f6..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/storage/get-file.md +++ b/docs/examples/1.6.x/client-graphql/examples/storage/get-file.md @@ -1,18 +0,0 @@ -query { - storageGetFile( - bucketId: "<BUCKET_ID>", - fileId: "<FILE_ID>" - ) { - _id - bucketId - _createdAt - _updatedAt - _permissions - name - signature - mimeType - sizeOriginal - chunksTotal - chunksUploaded - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/storage/list-files.md b/docs/examples/1.6.x/client-graphql/examples/storage/list-files.md index 774cc51b972..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/storage/list-files.md +++ b/docs/examples/1.6.x/client-graphql/examples/storage/list-files.md @@ -1,22 +0,0 @@ -query { - storageListFiles( - bucketId: "<BUCKET_ID>", - queries: [], - search: "<SEARCH>" - ) { - total - files { - _id - bucketId - _createdAt - _updatedAt - _permissions - name - signature - mimeType - sizeOriginal - chunksTotal - chunksUploaded - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/teams/get-membership.md b/docs/examples/1.6.x/client-graphql/examples/teams/get-membership.md index c33528609ee..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/client-graphql/examples/teams/get-membership.md @@ -1,20 +0,0 @@ -query { - teamsGetMembership( - teamId: "<TEAM_ID>", - membershipId: "<MEMBERSHIP_ID>" - ) { - _id - _createdAt - _updatedAt - userId - userName - userEmail - teamId - teamName - invited - joined - confirm - mfa - roles - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/teams/get-prefs.md b/docs/examples/1.6.x/client-graphql/examples/teams/get-prefs.md index fe498079cf8..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/client-graphql/examples/teams/get-prefs.md @@ -1,7 +0,0 @@ -query { - teamsGetPrefs( - teamId: "<TEAM_ID>" - ) { - data - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/teams/get.md b/docs/examples/1.6.x/client-graphql/examples/teams/get.md index a3fbb491e0d..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/teams/get.md +++ b/docs/examples/1.6.x/client-graphql/examples/teams/get.md @@ -1,14 +0,0 @@ -query { - teamsGet( - teamId: "<TEAM_ID>" - ) { - _id - _createdAt - _updatedAt - name - total - prefs { - data - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/teams/list-memberships.md b/docs/examples/1.6.x/client-graphql/examples/teams/list-memberships.md index bf7f0d1eede..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/client-graphql/examples/teams/list-memberships.md @@ -1,24 +0,0 @@ -query { - teamsListMemberships( - teamId: "<TEAM_ID>", - queries: [], - search: "<SEARCH>" - ) { - total - memberships { - _id - _createdAt - _updatedAt - userId - userName - userEmail - teamId - teamName - invited - joined - confirm - mfa - roles - } - } -} diff --git a/docs/examples/1.6.x/client-graphql/examples/teams/list.md b/docs/examples/1.6.x/client-graphql/examples/teams/list.md index e7005b53265..e69de29bb2d 100644 --- a/docs/examples/1.6.x/client-graphql/examples/teams/list.md +++ b/docs/examples/1.6.x/client-graphql/examples/teams/list.md @@ -1,18 +0,0 @@ -query { - teamsList( - queries: [], - search: "<SEARCH>" - ) { - total - teams { - _id - _createdAt - _updatedAt - name - total - prefs { - data - } - } - } -} diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-anonymous-session.md b/docs/examples/1.6.x/client-react-native/examples/account/create-anonymous-session.md index 333e19942bd..4baad33e9d0 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-anonymous-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-email-password-session.md b/docs/examples/1.6.x/client-react-native/examples/account/create-email-password-session.md index 0718e393765..217d7873aed 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-email-password-session.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-email-password-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-email-token.md b/docs/examples/1.6.x/client-react-native/examples/account/create-email-token.md index 13d08f0b2f2..b9bdf3bbe27 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-email-token.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-email-token.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-j-w-t.md b/docs/examples/1.6.x/client-react-native/examples/account/create-j-w-t.md index fd060c8c327..217dc787854 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-j-w-t.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-j-w-t.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/client-react-native/examples/account/create-magic-u-r-l-token.md index b627ca6c5fb..413e347aef7 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-magic-u-r-l-token.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-mfa-authenticator.md b/docs/examples/1.6.x/client-react-native/examples/account/create-mfa-authenticator.md index d34d9957b17..ec243490aa9 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-mfa-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-mfa-challenge.md b/docs/examples/1.6.x/client-react-native/examples/account/create-mfa-challenge.md index f5c94903d05..04de25863f5 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-mfa-challenge.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticationFactor } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/client-react-native/examples/account/create-mfa-recovery-codes.md index 66ec3680d05..f256be308b8 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-o-auth2session.md b/docs/examples/1.6.x/client-react-native/examples/account/create-o-auth2session.md index 7dff5734650..84bddb4777b 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-o-auth2session.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-o-auth2session.md @@ -1,7 +1,7 @@ import { Client, Account, OAuthProvider } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/client-react-native/examples/account/create-o-auth2token.md index 85ffb2a2bf4..cd4ee86aa1f 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-o-auth2token.md @@ -1,7 +1,7 @@ import { Client, Account, OAuthProvider } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-phone-token.md b/docs/examples/1.6.x/client-react-native/examples/account/create-phone-token.md index 33988887a27..d03e5ea4bc4 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-phone-token.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-phone-token.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-phone-verification.md b/docs/examples/1.6.x/client-react-native/examples/account/create-phone-verification.md index 39a3313556c..62bcc48113c 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-phone-verification.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-push-target.md b/docs/examples/1.6.x/client-react-native/examples/account/create-push-target.md index da020dae34a..83211ab9f38 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-push-target.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-push-target.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-recovery.md b/docs/examples/1.6.x/client-react-native/examples/account/create-recovery.md index c46c9079537..802af82fb78 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-recovery.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-recovery.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-session.md b/docs/examples/1.6.x/client-react-native/examples/account/create-session.md index 3c85dc8a464..bb3040aef6e 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-session.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create-verification.md b/docs/examples/1.6.x/client-react-native/examples/account/create-verification.md index cce3e1aae09..5fdffcba5cb 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create-verification.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/create.md b/docs/examples/1.6.x/client-react-native/examples/account/create.md index 5db3d7d9f15..eb3d04ac54f 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/create.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/create.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/delete-identity.md b/docs/examples/1.6.x/client-react-native/examples/account/delete-identity.md index c25a5a4417a..df492a528db 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/delete-identity.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/delete-identity.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/client-react-native/examples/account/delete-mfa-authenticator.md index 5be2b161aaa..093ba4d5a2c 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/delete-push-target.md b/docs/examples/1.6.x/client-react-native/examples/account/delete-push-target.md index 34e89ab4a37..a926ede9c69 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/delete-push-target.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/delete-push-target.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/delete-session.md b/docs/examples/1.6.x/client-react-native/examples/account/delete-session.md index 60791284b6d..134a2caa56a 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/delete-session.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/delete-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/delete-sessions.md b/docs/examples/1.6.x/client-react-native/examples/account/delete-sessions.md index 67652f21e85..830eb273a84 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/delete-sessions.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/client-react-native/examples/account/get-mfa-recovery-codes.md index 06f09b8d346..c660a17ab87 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/get-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/get-prefs.md b/docs/examples/1.6.x/client-react-native/examples/account/get-prefs.md index ef4185ca12c..b26a7b09f04 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/get-prefs.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/get-session.md b/docs/examples/1.6.x/client-react-native/examples/account/get-session.md index ca6cfb72aa4..1db05d5c269 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/get-session.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/get-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/get.md b/docs/examples/1.6.x/client-react-native/examples/account/get.md index cd5d50fe284..21d24016010 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/get.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/get.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/list-identities.md b/docs/examples/1.6.x/client-react-native/examples/account/list-identities.md index 6189f80e0fc..239dbbf21f7 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/list-identities.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/list-identities.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/list-logs.md b/docs/examples/1.6.x/client-react-native/examples/account/list-logs.md index 48fe10be13a..9cf441453ce 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/list-logs.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/list-logs.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/client-react-native/examples/account/list-mfa-factors.md index ada7d487626..51b76c90e47 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/list-mfa-factors.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/list-sessions.md b/docs/examples/1.6.x/client-react-native/examples/account/list-sessions.md index cc081d5e3c9..68232be292a 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/list-sessions.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-email.md b/docs/examples/1.6.x/client-react-native/examples/account/update-email.md index 5f879989e3f..4bbe0b03e74 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-email.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-email.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-m-f-a.md b/docs/examples/1.6.x/client-react-native/examples/account/update-m-f-a.md index 30f5f64199b..ebbfc0c8cd4 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-m-f-a.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/client-react-native/examples/account/update-magic-u-r-l-session.md index a5b92765dc0..c5e6b613957 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-magic-u-r-l-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/client-react-native/examples/account/update-mfa-authenticator.md index f3f3276dfd6..07a798e7a6c 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-mfa-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/client-react-native/examples/account/update-mfa-challenge.md index b26d387ad2f..b93e0bf520e 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-mfa-challenge.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/client-react-native/examples/account/update-mfa-recovery-codes.md index 81d27f7c549..2ed9bb02048 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-name.md b/docs/examples/1.6.x/client-react-native/examples/account/update-name.md index 47e5db988b0..adbbcab5bee 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-name.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-name.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-password.md b/docs/examples/1.6.x/client-react-native/examples/account/update-password.md index a37ee4c355f..3bde58e68ae 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-password.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-password.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-phone-session.md b/docs/examples/1.6.x/client-react-native/examples/account/update-phone-session.md index d7098e5155a..c9c82696fce 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-phone-session.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-phone-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-phone-verification.md b/docs/examples/1.6.x/client-react-native/examples/account/update-phone-verification.md index 582061fac5c..0ef7e53e66d 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-phone-verification.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-phone.md b/docs/examples/1.6.x/client-react-native/examples/account/update-phone.md index cc39c5ef0f2..bf8aae2a3d9 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-phone.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-phone.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-prefs.md b/docs/examples/1.6.x/client-react-native/examples/account/update-prefs.md index 4478e02320d..01d4fd68783 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-prefs.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-push-target.md b/docs/examples/1.6.x/client-react-native/examples/account/update-push-target.md index 6871a1016ca..d88e22e04db 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-push-target.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-push-target.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-recovery.md b/docs/examples/1.6.x/client-react-native/examples/account/update-recovery.md index 73184b84b5b..9a5ef04f3ae 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-recovery.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-recovery.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-session.md b/docs/examples/1.6.x/client-react-native/examples/account/update-session.md index 34bc567fb55..0c8a9e5df38 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-session.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-status.md b/docs/examples/1.6.x/client-react-native/examples/account/update-status.md index 0b6ec6f7928..8d3a2b0698f 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-status.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-status.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/account/update-verification.md b/docs/examples/1.6.x/client-react-native/examples/account/update-verification.md index 9d00a4826c6..c956d5fcd6c 100644 --- a/docs/examples/1.6.x/client-react-native/examples/account/update-verification.md +++ b/docs/examples/1.6.x/client-react-native/examples/account/update-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/avatars/get-browser.md b/docs/examples/1.6.x/client-react-native/examples/avatars/get-browser.md index bbcb0df83a5..6bb005e5795 100644 --- a/docs/examples/1.6.x/client-react-native/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/client-react-native/examples/avatars/get-browser.md @@ -1,7 +1,7 @@ import { Client, Avatars, Browser } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/client-react-native/examples/avatars/get-credit-card.md index a97cc6c430d..bdaaf8bfd6f 100644 --- a/docs/examples/1.6.x/client-react-native/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/client-react-native/examples/avatars/get-credit-card.md @@ -1,7 +1,7 @@ import { Client, Avatars, CreditCard } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/avatars/get-favicon.md b/docs/examples/1.6.x/client-react-native/examples/avatars/get-favicon.md index 067aa74000d..ff48c76ffcc 100644 --- a/docs/examples/1.6.x/client-react-native/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/client-react-native/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/avatars/get-flag.md b/docs/examples/1.6.x/client-react-native/examples/avatars/get-flag.md index f2268fcc69c..ac7aaf98b37 100644 --- a/docs/examples/1.6.x/client-react-native/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/client-react-native/examples/avatars/get-flag.md @@ -1,7 +1,7 @@ import { Client, Avatars, Flag } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/avatars/get-image.md b/docs/examples/1.6.x/client-react-native/examples/avatars/get-image.md index 3816e7b4643..006155effd0 100644 --- a/docs/examples/1.6.x/client-react-native/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/client-react-native/examples/avatars/get-image.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/avatars/get-initials.md b/docs/examples/1.6.x/client-react-native/examples/avatars/get-initials.md index b8545b37ca6..a87a6434502 100644 --- a/docs/examples/1.6.x/client-react-native/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/client-react-native/examples/avatars/get-initials.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/avatars/get-q-r.md b/docs/examples/1.6.x/client-react-native/examples/avatars/get-q-r.md index 5c80c6ae2ca..177759d9efe 100644 --- a/docs/examples/1.6.x/client-react-native/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/client-react-native/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/databases/create-document.md b/docs/examples/1.6.x/client-react-native/examples/databases/create-document.md index 58053ca0aa5..1b28231ed31 100644 --- a/docs/examples/1.6.x/client-react-native/examples/databases/create-document.md +++ b/docs/examples/1.6.x/client-react-native/examples/databases/create-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/databases/delete-document.md b/docs/examples/1.6.x/client-react-native/examples/databases/delete-document.md index beeb7b2a720..9136107a3cf 100644 --- a/docs/examples/1.6.x/client-react-native/examples/databases/delete-document.md +++ b/docs/examples/1.6.x/client-react-native/examples/databases/delete-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/databases/get-document.md b/docs/examples/1.6.x/client-react-native/examples/databases/get-document.md index df2333b5cc7..9993e2c941c 100644 --- a/docs/examples/1.6.x/client-react-native/examples/databases/get-document.md +++ b/docs/examples/1.6.x/client-react-native/examples/databases/get-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/databases/list-documents.md b/docs/examples/1.6.x/client-react-native/examples/databases/list-documents.md index 88d94a90895..b2f377e53cb 100644 --- a/docs/examples/1.6.x/client-react-native/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/client-react-native/examples/databases/list-documents.md @@ -1,7 +1,7 @@ import { Client, Databases } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/databases/update-document.md b/docs/examples/1.6.x/client-react-native/examples/databases/update-document.md index 5021c0b0f20..7676ee109b8 100644 --- a/docs/examples/1.6.x/client-react-native/examples/databases/update-document.md +++ b/docs/examples/1.6.x/client-react-native/examples/databases/update-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/functions/create-execution.md b/docs/examples/1.6.x/client-react-native/examples/functions/create-execution.md index 9933beb2774..72c71f77677 100644 --- a/docs/examples/1.6.x/client-react-native/examples/functions/create-execution.md +++ b/docs/examples/1.6.x/client-react-native/examples/functions/create-execution.md @@ -1,7 +1,7 @@ import { Client, Functions, ExecutionMethod } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/functions/get-execution.md b/docs/examples/1.6.x/client-react-native/examples/functions/get-execution.md index 79fffec4b42..848747ea2f2 100644 --- a/docs/examples/1.6.x/client-react-native/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/client-react-native/examples/functions/get-execution.md @@ -1,7 +1,7 @@ import { Client, Functions } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/functions/list-executions.md b/docs/examples/1.6.x/client-react-native/examples/functions/list-executions.md index 0615ecbf57e..6a1f5821d7a 100644 --- a/docs/examples/1.6.x/client-react-native/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/client-react-native/examples/functions/list-executions.md @@ -1,7 +1,7 @@ import { Client, Functions } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/functions/list-templates.md b/docs/examples/1.6.x/client-react-native/examples/functions/list-templates.md deleted file mode 100644 index 3811dd8e40c..00000000000 --- a/docs/examples/1.6.x/client-react-native/examples/functions/list-templates.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Functions } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const functions = new Functions(client); - -const result = await functions.listTemplates( - [], // runtimes (optional) - [], // useCases (optional) - 1, // limit (optional) - 0 // offset (optional) -); - -console.log(result); diff --git a/docs/examples/1.6.x/client-react-native/examples/graphql/mutation.md b/docs/examples/1.6.x/client-react-native/examples/graphql/mutation.md index 2fae4783f15..3292a5dad26 100644 --- a/docs/examples/1.6.x/client-react-native/examples/graphql/mutation.md +++ b/docs/examples/1.6.x/client-react-native/examples/graphql/mutation.md @@ -1,7 +1,7 @@ import { Client, Graphql } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const graphql = new Graphql(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/graphql/query.md b/docs/examples/1.6.x/client-react-native/examples/graphql/query.md index 39d8cb13bb3..a00c517a46e 100644 --- a/docs/examples/1.6.x/client-react-native/examples/graphql/query.md +++ b/docs/examples/1.6.x/client-react-native/examples/graphql/query.md @@ -1,7 +1,7 @@ import { Client, Graphql } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const graphql = new Graphql(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/locale/get.md b/docs/examples/1.6.x/client-react-native/examples/locale/get.md index 0d48cd85cba..34c1672c532 100644 --- a/docs/examples/1.6.x/client-react-native/examples/locale/get.md +++ b/docs/examples/1.6.x/client-react-native/examples/locale/get.md @@ -1,7 +1,7 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/locale/list-codes.md b/docs/examples/1.6.x/client-react-native/examples/locale/list-codes.md index f1466beeb54..29cec5a5cfd 100644 --- a/docs/examples/1.6.x/client-react-native/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/client-react-native/examples/locale/list-codes.md @@ -1,7 +1,7 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/locale/list-continents.md b/docs/examples/1.6.x/client-react-native/examples/locale/list-continents.md index a813a69f177..c98ba19af36 100644 --- a/docs/examples/1.6.x/client-react-native/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/client-react-native/examples/locale/list-continents.md @@ -1,7 +1,7 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/client-react-native/examples/locale/list-countries-e-u.md index 7ba7149edde..7fb71a548d7 100644 --- a/docs/examples/1.6.x/client-react-native/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/client-react-native/examples/locale/list-countries-e-u.md @@ -1,7 +1,7 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/client-react-native/examples/locale/list-countries-phones.md index 6d3093dce29..612debc5ab3 100644 --- a/docs/examples/1.6.x/client-react-native/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/client-react-native/examples/locale/list-countries-phones.md @@ -1,7 +1,7 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/locale/list-countries.md b/docs/examples/1.6.x/client-react-native/examples/locale/list-countries.md index 9ffb09b829c..8b1f636fa6d 100644 --- a/docs/examples/1.6.x/client-react-native/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/client-react-native/examples/locale/list-countries.md @@ -1,7 +1,7 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/locale/list-currencies.md b/docs/examples/1.6.x/client-react-native/examples/locale/list-currencies.md index 06326651d2e..4b96a5fdbc5 100644 --- a/docs/examples/1.6.x/client-react-native/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/client-react-native/examples/locale/list-currencies.md @@ -1,7 +1,7 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/locale/list-languages.md b/docs/examples/1.6.x/client-react-native/examples/locale/list-languages.md index 1ef69e5921e..54166afb1e9 100644 --- a/docs/examples/1.6.x/client-react-native/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/client-react-native/examples/locale/list-languages.md @@ -1,7 +1,7 @@ import { Client, Locale } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/client-react-native/examples/messaging/create-subscriber.md index 153cd2e3aa0..c950e90baee 100644 --- a/docs/examples/1.6.x/client-react-native/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/client-react-native/examples/messaging/create-subscriber.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/messaging/delete-subscriber.md b/docs/examples/1.6.x/client-react-native/examples/messaging/delete-subscriber.md index 6d61172ac40..5004b59cacf 100644 --- a/docs/examples/1.6.x/client-react-native/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/client-react-native/examples/messaging/delete-subscriber.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/storage/create-file.md b/docs/examples/1.6.x/client-react-native/examples/storage/create-file.md index f6e4f472633..efbfd607c14 100644 --- a/docs/examples/1.6.x/client-react-native/examples/storage/create-file.md +++ b/docs/examples/1.6.x/client-react-native/examples/storage/create-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/storage/delete-file.md b/docs/examples/1.6.x/client-react-native/examples/storage/delete-file.md index 55aed16a468..1a436ac8a86 100644 --- a/docs/examples/1.6.x/client-react-native/examples/storage/delete-file.md +++ b/docs/examples/1.6.x/client-react-native/examples/storage/delete-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/storage/get-file-download.md b/docs/examples/1.6.x/client-react-native/examples/storage/get-file-download.md index b4b1374ca1f..c8dcea3d8dd 100644 --- a/docs/examples/1.6.x/client-react-native/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/client-react-native/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ import { Client, Storage } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/storage/get-file-preview.md b/docs/examples/1.6.x/client-react-native/examples/storage/get-file-preview.md index 10d473ae06e..b41236f6199 100644 --- a/docs/examples/1.6.x/client-react-native/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/client-react-native/examples/storage/get-file-preview.md @@ -1,7 +1,7 @@ import { Client, Storage, ImageGravity, ImageFormat } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/storage/get-file-view.md b/docs/examples/1.6.x/client-react-native/examples/storage/get-file-view.md index 1a54452911d..06443a894aa 100644 --- a/docs/examples/1.6.x/client-react-native/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/client-react-native/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ import { Client, Storage } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/storage/get-file.md b/docs/examples/1.6.x/client-react-native/examples/storage/get-file.md index bbbb3fe9fde..6d358adabdf 100644 --- a/docs/examples/1.6.x/client-react-native/examples/storage/get-file.md +++ b/docs/examples/1.6.x/client-react-native/examples/storage/get-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/storage/list-files.md b/docs/examples/1.6.x/client-react-native/examples/storage/list-files.md index 731a1d1ef4e..19099b12883 100644 --- a/docs/examples/1.6.x/client-react-native/examples/storage/list-files.md +++ b/docs/examples/1.6.x/client-react-native/examples/storage/list-files.md @@ -1,7 +1,7 @@ import { Client, Storage } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/storage/update-file.md b/docs/examples/1.6.x/client-react-native/examples/storage/update-file.md index ba8cc6068a7..d4ed68a337d 100644 --- a/docs/examples/1.6.x/client-react-native/examples/storage/update-file.md +++ b/docs/examples/1.6.x/client-react-native/examples/storage/update-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/teams/create-membership.md b/docs/examples/1.6.x/client-react-native/examples/teams/create-membership.md index c4fc557461e..680fdb2ad80 100644 --- a/docs/examples/1.6.x/client-react-native/examples/teams/create-membership.md +++ b/docs/examples/1.6.x/client-react-native/examples/teams/create-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/teams/create.md b/docs/examples/1.6.x/client-react-native/examples/teams/create.md index c252f3df893..51aaee358e4 100644 --- a/docs/examples/1.6.x/client-react-native/examples/teams/create.md +++ b/docs/examples/1.6.x/client-react-native/examples/teams/create.md @@ -1,7 +1,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/teams/delete-membership.md b/docs/examples/1.6.x/client-react-native/examples/teams/delete-membership.md index 683c92d12bd..37bdc7f87f9 100644 --- a/docs/examples/1.6.x/client-react-native/examples/teams/delete-membership.md +++ b/docs/examples/1.6.x/client-react-native/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/teams/delete.md b/docs/examples/1.6.x/client-react-native/examples/teams/delete.md index dfd63fc9178..fe67eaffd18 100644 --- a/docs/examples/1.6.x/client-react-native/examples/teams/delete.md +++ b/docs/examples/1.6.x/client-react-native/examples/teams/delete.md @@ -1,7 +1,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/teams/get-membership.md b/docs/examples/1.6.x/client-react-native/examples/teams/get-membership.md index 4e30d1bda6a..2b253c8b512 100644 --- a/docs/examples/1.6.x/client-react-native/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/client-react-native/examples/teams/get-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/teams/get-prefs.md b/docs/examples/1.6.x/client-react-native/examples/teams/get-prefs.md index 40cffb127ed..943ed1a181e 100644 --- a/docs/examples/1.6.x/client-react-native/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/client-react-native/examples/teams/get-prefs.md @@ -1,7 +1,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/teams/get.md b/docs/examples/1.6.x/client-react-native/examples/teams/get.md index dc2d6cd4d17..9267b57e2f6 100644 --- a/docs/examples/1.6.x/client-react-native/examples/teams/get.md +++ b/docs/examples/1.6.x/client-react-native/examples/teams/get.md @@ -1,7 +1,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/teams/list-memberships.md b/docs/examples/1.6.x/client-react-native/examples/teams/list-memberships.md index 7eabeeeeaba..4444bcd6642 100644 --- a/docs/examples/1.6.x/client-react-native/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/client-react-native/examples/teams/list-memberships.md @@ -1,7 +1,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/teams/list.md b/docs/examples/1.6.x/client-react-native/examples/teams/list.md index 64b9324dce8..779538a70ab 100644 --- a/docs/examples/1.6.x/client-react-native/examples/teams/list.md +++ b/docs/examples/1.6.x/client-react-native/examples/teams/list.md @@ -1,7 +1,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/teams/update-membership-status.md b/docs/examples/1.6.x/client-react-native/examples/teams/update-membership-status.md index 0e42de97464..c8edbf08c74 100644 --- a/docs/examples/1.6.x/client-react-native/examples/teams/update-membership-status.md +++ b/docs/examples/1.6.x/client-react-native/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/teams/update-membership.md b/docs/examples/1.6.x/client-react-native/examples/teams/update-membership.md index e22fc975d94..347cbdd0953 100644 --- a/docs/examples/1.6.x/client-react-native/examples/teams/update-membership.md +++ b/docs/examples/1.6.x/client-react-native/examples/teams/update-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/teams/update-name.md b/docs/examples/1.6.x/client-react-native/examples/teams/update-name.md index 27447af384e..0ab4aa1c843 100644 --- a/docs/examples/1.6.x/client-react-native/examples/teams/update-name.md +++ b/docs/examples/1.6.x/client-react-native/examples/teams/update-name.md @@ -1,7 +1,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-react-native/examples/teams/update-prefs.md b/docs/examples/1.6.x/client-react-native/examples/teams/update-prefs.md index 02be2aca760..fda16a05dbe 100644 --- a/docs/examples/1.6.x/client-react-native/examples/teams/update-prefs.md +++ b/docs/examples/1.6.x/client-react-native/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ import { Client, Teams } from "react-native-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-rest/examples/account/create-o-auth2session.md b/docs/examples/1.6.x/client-rest/examples/account/create-o-auth2session.md index 7b053404136..64a056e2299 100644 --- a/docs/examples/1.6.x/client-rest/examples/account/create-o-auth2session.md +++ b/docs/examples/1.6.x/client-rest/examples/account/create-o-auth2session.md @@ -1,6 +1,4 @@ GET /v1/account/sessions/oauth2/{provider} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> - diff --git a/docs/examples/1.6.x/client-rest/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/client-rest/examples/account/create-o-auth2token.md index bd1c62ad70c..ab5cf7b65a9 100644 --- a/docs/examples/1.6.x/client-rest/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/client-rest/examples/account/create-o-auth2token.md @@ -1,6 +1,4 @@ GET /v1/account/tokens/oauth2/{provider} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> - diff --git a/docs/examples/1.6.x/client-rest/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/client-rest/examples/account/get-mfa-recovery-codes.md index 4ff19b49079..5cbcdd074fa 100644 --- a/docs/examples/1.6.x/client-rest/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-rest/examples/account/get-mfa-recovery-codes.md @@ -1,8 +1,6 @@ GET /v1/account/mfa/recovery-codes HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/account/get-prefs.md b/docs/examples/1.6.x/client-rest/examples/account/get-prefs.md index f6e92458096..b3f7689f9ce 100644 --- a/docs/examples/1.6.x/client-rest/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/client-rest/examples/account/get-prefs.md @@ -1,8 +1,6 @@ GET /v1/account/prefs HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/account/get-session.md b/docs/examples/1.6.x/client-rest/examples/account/get-session.md index 34d0f05dad4..e0ca8b7524f 100644 --- a/docs/examples/1.6.x/client-rest/examples/account/get-session.md +++ b/docs/examples/1.6.x/client-rest/examples/account/get-session.md @@ -1,8 +1,6 @@ GET /v1/account/sessions/{sessionId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/account/get.md b/docs/examples/1.6.x/client-rest/examples/account/get.md index 41ba456acef..af2d7833779 100644 --- a/docs/examples/1.6.x/client-rest/examples/account/get.md +++ b/docs/examples/1.6.x/client-rest/examples/account/get.md @@ -1,8 +1,6 @@ GET /v1/account HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/account/list-identities.md b/docs/examples/1.6.x/client-rest/examples/account/list-identities.md index 28c7ebfb78c..27ffc6e7c3c 100644 --- a/docs/examples/1.6.x/client-rest/examples/account/list-identities.md +++ b/docs/examples/1.6.x/client-rest/examples/account/list-identities.md @@ -1,8 +1,6 @@ GET /v1/account/identities HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/account/list-logs.md b/docs/examples/1.6.x/client-rest/examples/account/list-logs.md index bac50d727e8..ace64fb895f 100644 --- a/docs/examples/1.6.x/client-rest/examples/account/list-logs.md +++ b/docs/examples/1.6.x/client-rest/examples/account/list-logs.md @@ -1,8 +1,6 @@ GET /v1/account/logs HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/client-rest/examples/account/list-mfa-factors.md index 9246740d803..ea2364bebc0 100644 --- a/docs/examples/1.6.x/client-rest/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/client-rest/examples/account/list-mfa-factors.md @@ -1,8 +1,6 @@ GET /v1/account/mfa/factors HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/account/list-sessions.md b/docs/examples/1.6.x/client-rest/examples/account/list-sessions.md index ec11f663800..39fa5035dc9 100644 --- a/docs/examples/1.6.x/client-rest/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/client-rest/examples/account/list-sessions.md @@ -1,8 +1,6 @@ GET /v1/account/sessions HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/avatars/get-browser.md b/docs/examples/1.6.x/client-rest/examples/avatars/get-browser.md index 553168ecf1e..67a8b1dfe22 100644 --- a/docs/examples/1.6.x/client-rest/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/client-rest/examples/avatars/get-browser.md @@ -1,8 +1,6 @@ GET /v1/avatars/browsers/{code} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/client-rest/examples/avatars/get-credit-card.md index daa84cfe156..77b59dac021 100644 --- a/docs/examples/1.6.x/client-rest/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/client-rest/examples/avatars/get-credit-card.md @@ -1,8 +1,6 @@ GET /v1/avatars/credit-cards/{code} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/avatars/get-favicon.md b/docs/examples/1.6.x/client-rest/examples/avatars/get-favicon.md index d4f3a2bc3db..df69a54c536 100644 --- a/docs/examples/1.6.x/client-rest/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/client-rest/examples/avatars/get-favicon.md @@ -1,8 +1,6 @@ GET /v1/avatars/favicon HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/avatars/get-flag.md b/docs/examples/1.6.x/client-rest/examples/avatars/get-flag.md index 83f3f4633a6..48157d94c37 100644 --- a/docs/examples/1.6.x/client-rest/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/client-rest/examples/avatars/get-flag.md @@ -1,8 +1,6 @@ GET /v1/avatars/flags/{code} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/avatars/get-image.md b/docs/examples/1.6.x/client-rest/examples/avatars/get-image.md index 26e32f35f97..438297a4ffe 100644 --- a/docs/examples/1.6.x/client-rest/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/client-rest/examples/avatars/get-image.md @@ -1,8 +1,6 @@ GET /v1/avatars/image HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/avatars/get-initials.md b/docs/examples/1.6.x/client-rest/examples/avatars/get-initials.md index f84f674e751..6bf5d014cab 100644 --- a/docs/examples/1.6.x/client-rest/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/client-rest/examples/avatars/get-initials.md @@ -1,8 +1,6 @@ GET /v1/avatars/initials HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/avatars/get-q-r.md b/docs/examples/1.6.x/client-rest/examples/avatars/get-q-r.md index 51a76004261..e9718c5bc5a 100644 --- a/docs/examples/1.6.x/client-rest/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/client-rest/examples/avatars/get-q-r.md @@ -1,8 +1,6 @@ GET /v1/avatars/qr HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/databases/get-document.md b/docs/examples/1.6.x/client-rest/examples/databases/get-document.md index c89360927c4..98b3c08b165 100644 --- a/docs/examples/1.6.x/client-rest/examples/databases/get-document.md +++ b/docs/examples/1.6.x/client-rest/examples/databases/get-document.md @@ -1,8 +1,6 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/databases/list-documents.md b/docs/examples/1.6.x/client-rest/examples/databases/list-documents.md index 10a67a0da9b..b8bf795ff44 100644 --- a/docs/examples/1.6.x/client-rest/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/client-rest/examples/databases/list-documents.md @@ -1,8 +1,6 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/functions/get-execution.md b/docs/examples/1.6.x/client-rest/examples/functions/get-execution.md index db50365ae3d..af3948fe0ea 100644 --- a/docs/examples/1.6.x/client-rest/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/client-rest/examples/functions/get-execution.md @@ -1,8 +1,6 @@ GET /v1/functions/{functionId}/executions/{executionId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/functions/get-template.md b/docs/examples/1.6.x/client-rest/examples/functions/get-template.md deleted file mode 100644 index d4e1f95cf52..00000000000 --- a/docs/examples/1.6.x/client-rest/examples/functions/get-template.md +++ /dev/null @@ -1,6 +0,0 @@ -GET /v1/functions/templates/{templateId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.6.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> - diff --git a/docs/examples/1.6.x/client-rest/examples/functions/list-executions.md b/docs/examples/1.6.x/client-rest/examples/functions/list-executions.md index ad399fffdc8..306c420fab1 100644 --- a/docs/examples/1.6.x/client-rest/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/client-rest/examples/functions/list-executions.md @@ -1,8 +1,6 @@ GET /v1/functions/{functionId}/executions HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/locale/get.md b/docs/examples/1.6.x/client-rest/examples/locale/get.md index b8a4b1db3da..8449f415f48 100644 --- a/docs/examples/1.6.x/client-rest/examples/locale/get.md +++ b/docs/examples/1.6.x/client-rest/examples/locale/get.md @@ -1,8 +1,6 @@ GET /v1/locale HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/locale/list-codes.md b/docs/examples/1.6.x/client-rest/examples/locale/list-codes.md index 9dfb36c9f4e..3dc84c74485 100644 --- a/docs/examples/1.6.x/client-rest/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/client-rest/examples/locale/list-codes.md @@ -1,8 +1,6 @@ GET /v1/locale/codes HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/locale/list-continents.md b/docs/examples/1.6.x/client-rest/examples/locale/list-continents.md index 819f40ca65b..c0071fac08e 100644 --- a/docs/examples/1.6.x/client-rest/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/client-rest/examples/locale/list-continents.md @@ -1,8 +1,6 @@ GET /v1/locale/continents HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/client-rest/examples/locale/list-countries-e-u.md index 83408788f14..11c4e5fa5a4 100644 --- a/docs/examples/1.6.x/client-rest/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/client-rest/examples/locale/list-countries-e-u.md @@ -1,8 +1,6 @@ GET /v1/locale/countries/eu HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/client-rest/examples/locale/list-countries-phones.md index e841f46ab80..0403bcb3dc1 100644 --- a/docs/examples/1.6.x/client-rest/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/client-rest/examples/locale/list-countries-phones.md @@ -1,8 +1,6 @@ GET /v1/locale/countries/phones HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/locale/list-countries.md b/docs/examples/1.6.x/client-rest/examples/locale/list-countries.md index cbbef63fa1b..860b9ee7860 100644 --- a/docs/examples/1.6.x/client-rest/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/client-rest/examples/locale/list-countries.md @@ -1,8 +1,6 @@ GET /v1/locale/countries HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/locale/list-currencies.md b/docs/examples/1.6.x/client-rest/examples/locale/list-currencies.md index 20cd73e4dd0..7bffe3432d0 100644 --- a/docs/examples/1.6.x/client-rest/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/client-rest/examples/locale/list-currencies.md @@ -1,8 +1,6 @@ GET /v1/locale/currencies HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/locale/list-languages.md b/docs/examples/1.6.x/client-rest/examples/locale/list-languages.md index 67c1b4b5e9d..390b7af66f4 100644 --- a/docs/examples/1.6.x/client-rest/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/client-rest/examples/locale/list-languages.md @@ -1,8 +1,6 @@ GET /v1/locale/languages HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/storage/get-file-download.md b/docs/examples/1.6.x/client-rest/examples/storage/get-file-download.md index 81316189d7d..a4e9392fbd0 100644 --- a/docs/examples/1.6.x/client-rest/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/client-rest/examples/storage/get-file-download.md @@ -1,8 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/download HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/storage/get-file-preview.md b/docs/examples/1.6.x/client-rest/examples/storage/get-file-preview.md index 7658cfe7c33..26dc43cbf9f 100644 --- a/docs/examples/1.6.x/client-rest/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/client-rest/examples/storage/get-file-preview.md @@ -1,8 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/preview HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/storage/get-file-view.md b/docs/examples/1.6.x/client-rest/examples/storage/get-file-view.md index 8800bf311b4..a49ef0648a1 100644 --- a/docs/examples/1.6.x/client-rest/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/client-rest/examples/storage/get-file-view.md @@ -1,8 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/view HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/storage/get-file.md b/docs/examples/1.6.x/client-rest/examples/storage/get-file.md index a2f52e1ec5a..0c987dd2e68 100644 --- a/docs/examples/1.6.x/client-rest/examples/storage/get-file.md +++ b/docs/examples/1.6.x/client-rest/examples/storage/get-file.md @@ -1,8 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/storage/list-files.md b/docs/examples/1.6.x/client-rest/examples/storage/list-files.md index badf55c82d5..88922000575 100644 --- a/docs/examples/1.6.x/client-rest/examples/storage/list-files.md +++ b/docs/examples/1.6.x/client-rest/examples/storage/list-files.md @@ -1,8 +1,6 @@ GET /v1/storage/buckets/{bucketId}/files HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/teams/get-membership.md b/docs/examples/1.6.x/client-rest/examples/teams/get-membership.md index ff5e06e7045..8751ab65b91 100644 --- a/docs/examples/1.6.x/client-rest/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/client-rest/examples/teams/get-membership.md @@ -1,8 +1,6 @@ GET /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/teams/get-prefs.md b/docs/examples/1.6.x/client-rest/examples/teams/get-prefs.md index 8af5263810d..cc3f6c3394b 100644 --- a/docs/examples/1.6.x/client-rest/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/client-rest/examples/teams/get-prefs.md @@ -1,8 +1,6 @@ GET /v1/teams/{teamId}/prefs HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/teams/get.md b/docs/examples/1.6.x/client-rest/examples/teams/get.md index c02aa8432c9..2ff93456859 100644 --- a/docs/examples/1.6.x/client-rest/examples/teams/get.md +++ b/docs/examples/1.6.x/client-rest/examples/teams/get.md @@ -1,8 +1,6 @@ GET /v1/teams/{teamId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/teams/list-memberships.md b/docs/examples/1.6.x/client-rest/examples/teams/list-memberships.md index 25e602c3fbd..85d0e1cd898 100644 --- a/docs/examples/1.6.x/client-rest/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/client-rest/examples/teams/list-memberships.md @@ -1,8 +1,6 @@ GET /v1/teams/{teamId}/memberships HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-rest/examples/teams/list.md b/docs/examples/1.6.x/client-rest/examples/teams/list.md index d1bb709687c..dee3f5b883e 100644 --- a/docs/examples/1.6.x/client-rest/examples/teams/list.md +++ b/docs/examples/1.6.x/client-rest/examples/teams/list.md @@ -1,8 +1,6 @@ GET /v1/teams HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/client-web/examples/account/create-anonymous-session.md b/docs/examples/1.6.x/client-web/examples/account/create-anonymous-session.md index 9a78549a302..42279c03123 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-anonymous-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create-email-password-session.md b/docs/examples/1.6.x/client-web/examples/account/create-email-password-session.md index 517a7c75183..3438ffbe540 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-email-password-session.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-email-password-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create-email-token.md b/docs/examples/1.6.x/client-web/examples/account/create-email-token.md index bcc9316b4e4..e7cab7c360a 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-email-token.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-email-token.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create-j-w-t.md b/docs/examples/1.6.x/client-web/examples/account/create-j-w-t.md index e01d8de36e5..ff17d606610 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-j-w-t.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-j-w-t.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/client-web/examples/account/create-magic-u-r-l-token.md index 155944702a1..ba87bd9a3fe 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-magic-u-r-l-token.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create-mfa-authenticator.md b/docs/examples/1.6.x/client-web/examples/account/create-mfa-authenticator.md index 6551d13f219..510481511dd 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-mfa-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create-mfa-challenge.md b/docs/examples/1.6.x/client-web/examples/account/create-mfa-challenge.md index c620ca20cd9..e9f6f08b480 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-mfa-challenge.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticationFactor } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/client-web/examples/account/create-mfa-recovery-codes.md index 5a3f6f2d8c6..2cc744175e4 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create-o-auth2session.md b/docs/examples/1.6.x/client-web/examples/account/create-o-auth2session.md index 0d797a8eac6..caad309ffde 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-o-auth2session.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-o-auth2session.md @@ -1,7 +1,7 @@ import { Client, Account, OAuthProvider } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/client-web/examples/account/create-o-auth2token.md index a8d7300675e..5f0aab36d8d 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-o-auth2token.md @@ -1,7 +1,7 @@ import { Client, Account, OAuthProvider } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create-phone-token.md b/docs/examples/1.6.x/client-web/examples/account/create-phone-token.md index 01a5d68af46..481e57d3539 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-phone-token.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-phone-token.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create-phone-verification.md b/docs/examples/1.6.x/client-web/examples/account/create-phone-verification.md index 5da89e9bc09..00373a3dd4b 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-phone-verification.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create-push-target.md b/docs/examples/1.6.x/client-web/examples/account/create-push-target.md index abbbf420576..c987e3d2a83 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-push-target.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-push-target.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create-recovery.md b/docs/examples/1.6.x/client-web/examples/account/create-recovery.md index 4d3ec34786e..f0a400d86dd 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-recovery.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-recovery.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create-session.md b/docs/examples/1.6.x/client-web/examples/account/create-session.md index fe43a12c71c..b6d7ef8bbbe 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-session.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create-verification.md b/docs/examples/1.6.x/client-web/examples/account/create-verification.md index 60bb2d270e5..4a3b3144b68 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create-verification.md +++ b/docs/examples/1.6.x/client-web/examples/account/create-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/create.md b/docs/examples/1.6.x/client-web/examples/account/create.md index eb4634faeb1..bf2dbec02ac 100644 --- a/docs/examples/1.6.x/client-web/examples/account/create.md +++ b/docs/examples/1.6.x/client-web/examples/account/create.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/delete-identity.md b/docs/examples/1.6.x/client-web/examples/account/delete-identity.md index 7a6dbae0be5..f34baaaf5ea 100644 --- a/docs/examples/1.6.x/client-web/examples/account/delete-identity.md +++ b/docs/examples/1.6.x/client-web/examples/account/delete-identity.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/client-web/examples/account/delete-mfa-authenticator.md index 44f00653996..d11351442c5 100644 --- a/docs/examples/1.6.x/client-web/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-web/examples/account/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/delete-push-target.md b/docs/examples/1.6.x/client-web/examples/account/delete-push-target.md index 7b8f505196a..79bb06ed5d2 100644 --- a/docs/examples/1.6.x/client-web/examples/account/delete-push-target.md +++ b/docs/examples/1.6.x/client-web/examples/account/delete-push-target.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/delete-session.md b/docs/examples/1.6.x/client-web/examples/account/delete-session.md index 15e91fada04..4d27221d851 100644 --- a/docs/examples/1.6.x/client-web/examples/account/delete-session.md +++ b/docs/examples/1.6.x/client-web/examples/account/delete-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/delete-sessions.md b/docs/examples/1.6.x/client-web/examples/account/delete-sessions.md index 71761b2e77c..c0fdf139245 100644 --- a/docs/examples/1.6.x/client-web/examples/account/delete-sessions.md +++ b/docs/examples/1.6.x/client-web/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/client-web/examples/account/get-mfa-recovery-codes.md index 3a8c308052b..850488b0c88 100644 --- a/docs/examples/1.6.x/client-web/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-web/examples/account/get-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/get-prefs.md b/docs/examples/1.6.x/client-web/examples/account/get-prefs.md index 749df1642fd..f2838328963 100644 --- a/docs/examples/1.6.x/client-web/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/client-web/examples/account/get-prefs.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/get-session.md b/docs/examples/1.6.x/client-web/examples/account/get-session.md index 6e491f5f68e..29af11052e2 100644 --- a/docs/examples/1.6.x/client-web/examples/account/get-session.md +++ b/docs/examples/1.6.x/client-web/examples/account/get-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/get.md b/docs/examples/1.6.x/client-web/examples/account/get.md index 16498a4b395..ea605914cee 100644 --- a/docs/examples/1.6.x/client-web/examples/account/get.md +++ b/docs/examples/1.6.x/client-web/examples/account/get.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/list-identities.md b/docs/examples/1.6.x/client-web/examples/account/list-identities.md index f6febdf192c..54c569b8362 100644 --- a/docs/examples/1.6.x/client-web/examples/account/list-identities.md +++ b/docs/examples/1.6.x/client-web/examples/account/list-identities.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/list-logs.md b/docs/examples/1.6.x/client-web/examples/account/list-logs.md index 02f1abb0b78..17c214f9496 100644 --- a/docs/examples/1.6.x/client-web/examples/account/list-logs.md +++ b/docs/examples/1.6.x/client-web/examples/account/list-logs.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/client-web/examples/account/list-mfa-factors.md index 9a9c0d4cd66..c9fa7da1bcb 100644 --- a/docs/examples/1.6.x/client-web/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/client-web/examples/account/list-mfa-factors.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/list-sessions.md b/docs/examples/1.6.x/client-web/examples/account/list-sessions.md index a42018a00f7..453e6065177 100644 --- a/docs/examples/1.6.x/client-web/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/client-web/examples/account/list-sessions.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-email.md b/docs/examples/1.6.x/client-web/examples/account/update-email.md index e15f23c1c99..9e02fc94169 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-email.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-email.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-m-f-a.md b/docs/examples/1.6.x/client-web/examples/account/update-m-f-a.md index 8ac76070867..58b6a061b10 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-m-f-a.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/client-web/examples/account/update-magic-u-r-l-session.md index 5f268f89835..47501c528f2 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-magic-u-r-l-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/client-web/examples/account/update-mfa-authenticator.md index 34419463039..74eedd8dc74 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-mfa-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/client-web/examples/account/update-mfa-challenge.md index 6c83570d3d7..01a09dd354b 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-mfa-challenge.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/client-web/examples/account/update-mfa-recovery-codes.md index dce2d4e2e0a..24ff10b1e47 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-name.md b/docs/examples/1.6.x/client-web/examples/account/update-name.md index 26258fd0558..d6a6946795d 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-name.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-name.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-password.md b/docs/examples/1.6.x/client-web/examples/account/update-password.md index 84267c06498..575779e35c6 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-password.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-password.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-phone-session.md b/docs/examples/1.6.x/client-web/examples/account/update-phone-session.md index 5ab19851878..092205ec6a9 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-phone-session.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-phone-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-phone-verification.md b/docs/examples/1.6.x/client-web/examples/account/update-phone-verification.md index 91cb79d0631..1b85178e76a 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-phone-verification.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-phone.md b/docs/examples/1.6.x/client-web/examples/account/update-phone.md index 03947e31d5e..0c5ff216d80 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-phone.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-phone.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-prefs.md b/docs/examples/1.6.x/client-web/examples/account/update-prefs.md index 4f3039f3d8f..b9e88eac28f 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-prefs.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-push-target.md b/docs/examples/1.6.x/client-web/examples/account/update-push-target.md index 4803f6ba1e1..3475a22ba95 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-push-target.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-push-target.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-recovery.md b/docs/examples/1.6.x/client-web/examples/account/update-recovery.md index 716efd2b484..328e50ea4fe 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-recovery.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-recovery.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-session.md b/docs/examples/1.6.x/client-web/examples/account/update-session.md index b4370569b94..4ccc8295d95 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-session.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-status.md b/docs/examples/1.6.x/client-web/examples/account/update-status.md index c4b2c0eafb2..932f167033a 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-status.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-status.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/account/update-verification.md b/docs/examples/1.6.x/client-web/examples/account/update-verification.md index f928efdb4ea..6d15aeec2e6 100644 --- a/docs/examples/1.6.x/client-web/examples/account/update-verification.md +++ b/docs/examples/1.6.x/client-web/examples/account/update-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/client-web/examples/avatars/get-browser.md b/docs/examples/1.6.x/client-web/examples/avatars/get-browser.md index 3ead6d6d2bf..f4c342fb037 100644 --- a/docs/examples/1.6.x/client-web/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/client-web/examples/avatars/get-browser.md @@ -1,7 +1,7 @@ import { Client, Avatars, Browser } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-web/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/client-web/examples/avatars/get-credit-card.md index 1391a33f19f..9efd0d62f19 100644 --- a/docs/examples/1.6.x/client-web/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/client-web/examples/avatars/get-credit-card.md @@ -1,7 +1,7 @@ import { Client, Avatars, CreditCard } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-web/examples/avatars/get-favicon.md b/docs/examples/1.6.x/client-web/examples/avatars/get-favicon.md index 4da10c5f30b..85317f13832 100644 --- a/docs/examples/1.6.x/client-web/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/client-web/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-web/examples/avatars/get-flag.md b/docs/examples/1.6.x/client-web/examples/avatars/get-flag.md index 3bfe49d6491..fc78922e245 100644 --- a/docs/examples/1.6.x/client-web/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/client-web/examples/avatars/get-flag.md @@ -1,7 +1,7 @@ import { Client, Avatars, Flag } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-web/examples/avatars/get-image.md b/docs/examples/1.6.x/client-web/examples/avatars/get-image.md index ef639f60799..36f88ecb529 100644 --- a/docs/examples/1.6.x/client-web/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/client-web/examples/avatars/get-image.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-web/examples/avatars/get-initials.md b/docs/examples/1.6.x/client-web/examples/avatars/get-initials.md index 25d23203dd8..321c448807f 100644 --- a/docs/examples/1.6.x/client-web/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/client-web/examples/avatars/get-initials.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-web/examples/avatars/get-q-r.md b/docs/examples/1.6.x/client-web/examples/avatars/get-q-r.md index 83344a0c84e..cbbabbc2c89 100644 --- a/docs/examples/1.6.x/client-web/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/client-web/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/client-web/examples/databases/create-document.md b/docs/examples/1.6.x/client-web/examples/databases/create-document.md index 45448a893c4..916cc92689d 100644 --- a/docs/examples/1.6.x/client-web/examples/databases/create-document.md +++ b/docs/examples/1.6.x/client-web/examples/databases/create-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/client-web/examples/databases/delete-document.md b/docs/examples/1.6.x/client-web/examples/databases/delete-document.md index 623e172a010..c9a1e9f759d 100644 --- a/docs/examples/1.6.x/client-web/examples/databases/delete-document.md +++ b/docs/examples/1.6.x/client-web/examples/databases/delete-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/client-web/examples/databases/get-document.md b/docs/examples/1.6.x/client-web/examples/databases/get-document.md index bdf9089c500..a2836fc6ef6 100644 --- a/docs/examples/1.6.x/client-web/examples/databases/get-document.md +++ b/docs/examples/1.6.x/client-web/examples/databases/get-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/client-web/examples/databases/list-documents.md b/docs/examples/1.6.x/client-web/examples/databases/list-documents.md index 1d5e48a8dbf..d00ac563906 100644 --- a/docs/examples/1.6.x/client-web/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/client-web/examples/databases/list-documents.md @@ -1,7 +1,7 @@ import { Client, Databases } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/client-web/examples/databases/update-document.md b/docs/examples/1.6.x/client-web/examples/databases/update-document.md index b7e4d5b276a..c0e06fce406 100644 --- a/docs/examples/1.6.x/client-web/examples/databases/update-document.md +++ b/docs/examples/1.6.x/client-web/examples/databases/update-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/client-web/examples/functions/create-execution.md b/docs/examples/1.6.x/client-web/examples/functions/create-execution.md index 401874f3751..8f07523b2b0 100644 --- a/docs/examples/1.6.x/client-web/examples/functions/create-execution.md +++ b/docs/examples/1.6.x/client-web/examples/functions/create-execution.md @@ -1,7 +1,7 @@ import { Client, Functions, ExecutionMethod } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/client-web/examples/functions/get-execution.md b/docs/examples/1.6.x/client-web/examples/functions/get-execution.md index 05e2c3c7221..9b88f81f6ce 100644 --- a/docs/examples/1.6.x/client-web/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/client-web/examples/functions/get-execution.md @@ -1,7 +1,7 @@ import { Client, Functions } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/client-web/examples/functions/list-executions.md b/docs/examples/1.6.x/client-web/examples/functions/list-executions.md index 93a70d950c5..1373e314cfb 100644 --- a/docs/examples/1.6.x/client-web/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/client-web/examples/functions/list-executions.md @@ -1,7 +1,7 @@ import { Client, Functions } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/client-web/examples/graphql/mutation.md b/docs/examples/1.6.x/client-web/examples/graphql/mutation.md index b875f0e93ab..0e7466ac13b 100644 --- a/docs/examples/1.6.x/client-web/examples/graphql/mutation.md +++ b/docs/examples/1.6.x/client-web/examples/graphql/mutation.md @@ -1,7 +1,7 @@ import { Client, Graphql } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const graphql = new Graphql(client); diff --git a/docs/examples/1.6.x/client-web/examples/graphql/query.md b/docs/examples/1.6.x/client-web/examples/graphql/query.md index c0f925a3a00..f9cd9b740f7 100644 --- a/docs/examples/1.6.x/client-web/examples/graphql/query.md +++ b/docs/examples/1.6.x/client-web/examples/graphql/query.md @@ -1,7 +1,7 @@ import { Client, Graphql } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const graphql = new Graphql(client); diff --git a/docs/examples/1.6.x/client-web/examples/locale/get.md b/docs/examples/1.6.x/client-web/examples/locale/get.md index f3a46b43fdd..bdd74722f49 100644 --- a/docs/examples/1.6.x/client-web/examples/locale/get.md +++ b/docs/examples/1.6.x/client-web/examples/locale/get.md @@ -1,7 +1,7 @@ import { Client, Locale } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-web/examples/locale/list-codes.md b/docs/examples/1.6.x/client-web/examples/locale/list-codes.md index 36957e9fec7..547bb056c03 100644 --- a/docs/examples/1.6.x/client-web/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/client-web/examples/locale/list-codes.md @@ -1,7 +1,7 @@ import { Client, Locale } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-web/examples/locale/list-continents.md b/docs/examples/1.6.x/client-web/examples/locale/list-continents.md index be3b2fa6473..217ffc116ca 100644 --- a/docs/examples/1.6.x/client-web/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/client-web/examples/locale/list-continents.md @@ -1,7 +1,7 @@ import { Client, Locale } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-web/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/client-web/examples/locale/list-countries-e-u.md index a3af6ae93c9..515a3040ab0 100644 --- a/docs/examples/1.6.x/client-web/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/client-web/examples/locale/list-countries-e-u.md @@ -1,7 +1,7 @@ import { Client, Locale } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-web/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/client-web/examples/locale/list-countries-phones.md index d6845b70db3..72a6a31d08c 100644 --- a/docs/examples/1.6.x/client-web/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/client-web/examples/locale/list-countries-phones.md @@ -1,7 +1,7 @@ import { Client, Locale } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-web/examples/locale/list-countries.md b/docs/examples/1.6.x/client-web/examples/locale/list-countries.md index defdfec006a..a127521f36f 100644 --- a/docs/examples/1.6.x/client-web/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/client-web/examples/locale/list-countries.md @@ -1,7 +1,7 @@ import { Client, Locale } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-web/examples/locale/list-currencies.md b/docs/examples/1.6.x/client-web/examples/locale/list-currencies.md index 7cbf8b81d90..e6ff0e1fcef 100644 --- a/docs/examples/1.6.x/client-web/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/client-web/examples/locale/list-currencies.md @@ -1,7 +1,7 @@ import { Client, Locale } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-web/examples/locale/list-languages.md b/docs/examples/1.6.x/client-web/examples/locale/list-languages.md index 4f3f877332d..03b4e7d2c12 100644 --- a/docs/examples/1.6.x/client-web/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/client-web/examples/locale/list-languages.md @@ -1,7 +1,7 @@ import { Client, Locale } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/client-web/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/client-web/examples/messaging/create-subscriber.md index 1fa1de5d518..254870985d3 100644 --- a/docs/examples/1.6.x/client-web/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/client-web/examples/messaging/create-subscriber.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/client-web/examples/messaging/delete-subscriber.md b/docs/examples/1.6.x/client-web/examples/messaging/delete-subscriber.md index bbed0715c09..3d5d0a4b426 100644 --- a/docs/examples/1.6.x/client-web/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/client-web/examples/messaging/delete-subscriber.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/client-web/examples/storage/create-file.md b/docs/examples/1.6.x/client-web/examples/storage/create-file.md index db2200b86a1..20a42206a20 100644 --- a/docs/examples/1.6.x/client-web/examples/storage/create-file.md +++ b/docs/examples/1.6.x/client-web/examples/storage/create-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-web/examples/storage/delete-file.md b/docs/examples/1.6.x/client-web/examples/storage/delete-file.md index 52cc1d4fa2d..373cdc03fcb 100644 --- a/docs/examples/1.6.x/client-web/examples/storage/delete-file.md +++ b/docs/examples/1.6.x/client-web/examples/storage/delete-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-web/examples/storage/get-file-download.md b/docs/examples/1.6.x/client-web/examples/storage/get-file-download.md index d37541dd063..2cd3cd4feb9 100644 --- a/docs/examples/1.6.x/client-web/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/client-web/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ import { Client, Storage } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-web/examples/storage/get-file-preview.md b/docs/examples/1.6.x/client-web/examples/storage/get-file-preview.md index 629417325be..40ffcffa944 100644 --- a/docs/examples/1.6.x/client-web/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/client-web/examples/storage/get-file-preview.md @@ -1,7 +1,7 @@ import { Client, Storage, ImageGravity, ImageFormat } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-web/examples/storage/get-file-view.md b/docs/examples/1.6.x/client-web/examples/storage/get-file-view.md index 9a58250003e..ced0010f513 100644 --- a/docs/examples/1.6.x/client-web/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/client-web/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ import { Client, Storage } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-web/examples/storage/get-file.md b/docs/examples/1.6.x/client-web/examples/storage/get-file.md index 36c4b45ca60..10bd9fb775b 100644 --- a/docs/examples/1.6.x/client-web/examples/storage/get-file.md +++ b/docs/examples/1.6.x/client-web/examples/storage/get-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-web/examples/storage/list-files.md b/docs/examples/1.6.x/client-web/examples/storage/list-files.md index 731a76e3125..f2c3ccb2b8f 100644 --- a/docs/examples/1.6.x/client-web/examples/storage/list-files.md +++ b/docs/examples/1.6.x/client-web/examples/storage/list-files.md @@ -1,7 +1,7 @@ import { Client, Storage } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-web/examples/storage/update-file.md b/docs/examples/1.6.x/client-web/examples/storage/update-file.md index 75aefc1120a..1432b850993 100644 --- a/docs/examples/1.6.x/client-web/examples/storage/update-file.md +++ b/docs/examples/1.6.x/client-web/examples/storage/update-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/client-web/examples/teams/create-membership.md b/docs/examples/1.6.x/client-web/examples/teams/create-membership.md index 3f585859a99..8802e25af9c 100644 --- a/docs/examples/1.6.x/client-web/examples/teams/create-membership.md +++ b/docs/examples/1.6.x/client-web/examples/teams/create-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-web/examples/teams/create.md b/docs/examples/1.6.x/client-web/examples/teams/create.md index ffa14148786..b23f2201ac7 100644 --- a/docs/examples/1.6.x/client-web/examples/teams/create.md +++ b/docs/examples/1.6.x/client-web/examples/teams/create.md @@ -1,7 +1,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-web/examples/teams/delete-membership.md b/docs/examples/1.6.x/client-web/examples/teams/delete-membership.md index dc871165ee8..2f360c3547d 100644 --- a/docs/examples/1.6.x/client-web/examples/teams/delete-membership.md +++ b/docs/examples/1.6.x/client-web/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-web/examples/teams/delete.md b/docs/examples/1.6.x/client-web/examples/teams/delete.md index 99ce85673fa..5fd7f5d8580 100644 --- a/docs/examples/1.6.x/client-web/examples/teams/delete.md +++ b/docs/examples/1.6.x/client-web/examples/teams/delete.md @@ -1,7 +1,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-web/examples/teams/get-membership.md b/docs/examples/1.6.x/client-web/examples/teams/get-membership.md index d4abeeff736..cd253fd6ef0 100644 --- a/docs/examples/1.6.x/client-web/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/client-web/examples/teams/get-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-web/examples/teams/get-prefs.md b/docs/examples/1.6.x/client-web/examples/teams/get-prefs.md index b5b3d1295f7..a7f346f11fe 100644 --- a/docs/examples/1.6.x/client-web/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/client-web/examples/teams/get-prefs.md @@ -1,7 +1,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-web/examples/teams/get.md b/docs/examples/1.6.x/client-web/examples/teams/get.md index 8306cc59b6d..539bdcf0514 100644 --- a/docs/examples/1.6.x/client-web/examples/teams/get.md +++ b/docs/examples/1.6.x/client-web/examples/teams/get.md @@ -1,7 +1,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-web/examples/teams/list-memberships.md b/docs/examples/1.6.x/client-web/examples/teams/list-memberships.md index b1c068112b4..e8cc39b5d8c 100644 --- a/docs/examples/1.6.x/client-web/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/client-web/examples/teams/list-memberships.md @@ -1,7 +1,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-web/examples/teams/list.md b/docs/examples/1.6.x/client-web/examples/teams/list.md index 0d000e9b35c..4ca13ce8dd9 100644 --- a/docs/examples/1.6.x/client-web/examples/teams/list.md +++ b/docs/examples/1.6.x/client-web/examples/teams/list.md @@ -1,7 +1,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-web/examples/teams/update-membership-status.md b/docs/examples/1.6.x/client-web/examples/teams/update-membership-status.md index dd32bbb6f1b..89cc13cac28 100644 --- a/docs/examples/1.6.x/client-web/examples/teams/update-membership-status.md +++ b/docs/examples/1.6.x/client-web/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-web/examples/teams/update-membership.md b/docs/examples/1.6.x/client-web/examples/teams/update-membership.md index ae7fb9a49cb..fd6fffffcb0 100644 --- a/docs/examples/1.6.x/client-web/examples/teams/update-membership.md +++ b/docs/examples/1.6.x/client-web/examples/teams/update-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-web/examples/teams/update-name.md b/docs/examples/1.6.x/client-web/examples/teams/update-name.md index 553c77de3fb..d91939ff73c 100644 --- a/docs/examples/1.6.x/client-web/examples/teams/update-name.md +++ b/docs/examples/1.6.x/client-web/examples/teams/update-name.md @@ -1,7 +1,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/client-web/examples/teams/update-prefs.md b/docs/examples/1.6.x/client-web/examples/teams/update-prefs.md index 55b273b9961..d7d4c367593 100644 --- a/docs/examples/1.6.x/client-web/examples/teams/update-prefs.md +++ b/docs/examples/1.6.x/client-web/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ import { Client, Teams } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/console-cli/examples/databases/update-boolean-attribute.md b/docs/examples/1.6.x/console-cli/examples/databases/update-boolean-attribute.md index d48c3470fec..f5adb497ece 100644 --- a/docs/examples/1.6.x/console-cli/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.6.x/console-cli/examples/databases/update-boolean-attribute.md @@ -3,4 +3,5 @@ appwrite databases updateBooleanAttribute \ --collectionId <COLLECTION_ID> \ --key '' \ --required false \ - --default false + --default false \ + diff --git a/docs/examples/1.6.x/console-cli/examples/databases/update-datetime-attribute.md b/docs/examples/1.6.x/console-cli/examples/databases/update-datetime-attribute.md index 9fc56373ed7..fe4a4626649 100644 --- a/docs/examples/1.6.x/console-cli/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.6.x/console-cli/examples/databases/update-datetime-attribute.md @@ -3,4 +3,5 @@ appwrite databases updateDatetimeAttribute \ --collectionId <COLLECTION_ID> \ --key '' \ --required false \ - --default '' + --default '' \ + diff --git a/docs/examples/1.6.x/console-cli/examples/databases/update-email-attribute.md b/docs/examples/1.6.x/console-cli/examples/databases/update-email-attribute.md index 9f7bffeb9cf..58510a6f8e5 100644 --- a/docs/examples/1.6.x/console-cli/examples/databases/update-email-attribute.md +++ b/docs/examples/1.6.x/console-cli/examples/databases/update-email-attribute.md @@ -3,4 +3,5 @@ appwrite databases updateEmailAttribute \ --collectionId <COLLECTION_ID> \ --key '' \ --required false \ - --default email@example.com + --default email@example.com \ + diff --git a/docs/examples/1.6.x/console-cli/examples/databases/update-enum-attribute.md b/docs/examples/1.6.x/console-cli/examples/databases/update-enum-attribute.md index bf562a0a824..21d56d3e64a 100644 --- a/docs/examples/1.6.x/console-cli/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.6.x/console-cli/examples/databases/update-enum-attribute.md @@ -4,4 +4,5 @@ appwrite databases updateEnumAttribute \ --key '' \ --elements one two three \ --required false \ - --default <DEFAULT> + --default <DEFAULT> \ + diff --git a/docs/examples/1.6.x/console-cli/examples/databases/update-float-attribute.md b/docs/examples/1.6.x/console-cli/examples/databases/update-float-attribute.md index 097dfd310a2..a9bba3eb5e8 100644 --- a/docs/examples/1.6.x/console-cli/examples/databases/update-float-attribute.md +++ b/docs/examples/1.6.x/console-cli/examples/databases/update-float-attribute.md @@ -3,6 +3,7 @@ appwrite databases updateFloatAttribute \ --collectionId <COLLECTION_ID> \ --key '' \ --required false \ - --min null \ - --max null \ - --default null + --default null \ + + + diff --git a/docs/examples/1.6.x/console-cli/examples/databases/update-integer-attribute.md b/docs/examples/1.6.x/console-cli/examples/databases/update-integer-attribute.md index 6a6b0747a83..660cd4d1480 100644 --- a/docs/examples/1.6.x/console-cli/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.6.x/console-cli/examples/databases/update-integer-attribute.md @@ -3,6 +3,7 @@ appwrite databases updateIntegerAttribute \ --collectionId <COLLECTION_ID> \ --key '' \ --required false \ - --min null \ - --max null \ - --default null + --default null \ + + + diff --git a/docs/examples/1.6.x/console-cli/examples/databases/update-ip-attribute.md b/docs/examples/1.6.x/console-cli/examples/databases/update-ip-attribute.md index 2439b5a8de1..a400eadc1ea 100644 --- a/docs/examples/1.6.x/console-cli/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.6.x/console-cli/examples/databases/update-ip-attribute.md @@ -3,4 +3,5 @@ appwrite databases updateIpAttribute \ --collectionId <COLLECTION_ID> \ --key '' \ --required false \ - --default '' + --default '' \ + diff --git a/docs/examples/1.6.x/console-cli/examples/databases/update-relationship-attribute.md b/docs/examples/1.6.x/console-cli/examples/databases/update-relationship-attribute.md index be03a707363..6e2dbd927d5 100644 --- a/docs/examples/1.6.x/console-cli/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.6.x/console-cli/examples/databases/update-relationship-attribute.md @@ -3,3 +3,4 @@ appwrite databases updateRelationshipAttribute \ --collectionId <COLLECTION_ID> \ --key '' \ + diff --git a/docs/examples/1.6.x/console-cli/examples/databases/update-string-attribute.md b/docs/examples/1.6.x/console-cli/examples/databases/update-string-attribute.md index ebf45253fa8..526ece0b72e 100644 --- a/docs/examples/1.6.x/console-cli/examples/databases/update-string-attribute.md +++ b/docs/examples/1.6.x/console-cli/examples/databases/update-string-attribute.md @@ -3,4 +3,6 @@ appwrite databases updateStringAttribute \ --collectionId <COLLECTION_ID> \ --key '' \ --required false \ - --default <DEFAULT> + --default <DEFAULT> \ + + diff --git a/docs/examples/1.6.x/console-cli/examples/databases/update-url-attribute.md b/docs/examples/1.6.x/console-cli/examples/databases/update-url-attribute.md index aa11a588dbd..e6f401b8ca6 100644 --- a/docs/examples/1.6.x/console-cli/examples/databases/update-url-attribute.md +++ b/docs/examples/1.6.x/console-cli/examples/databases/update-url-attribute.md @@ -3,4 +3,5 @@ appwrite databases updateUrlAttribute \ --collectionId <COLLECTION_ID> \ --key '' \ --required false \ - --default https://example.com + --default https://example.com \ + diff --git a/docs/examples/1.6.x/console-cli/examples/functions/get-specifications.md b/docs/examples/1.6.x/console-cli/examples/functions/get-specifications.md deleted file mode 100644 index 4e612280e7d..00000000000 --- a/docs/examples/1.6.x/console-cli/examples/functions/get-specifications.md +++ /dev/null @@ -1 +0,0 @@ -appwrite functions getSpecifications diff --git a/docs/examples/1.6.x/console-cli/examples/health/get-queue-stats-resources.md b/docs/examples/1.6.x/console-cli/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..9cce9637489 --- /dev/null +++ b/docs/examples/1.6.x/console-cli/examples/health/get-queue-stats-resources.md @@ -0,0 +1,2 @@ +appwrite health getQueueStatsResources \ + diff --git a/docs/examples/1.6.x/console-cli/examples/health/get-queue-stats-usage-dump.md b/docs/examples/1.6.x/console-cli/examples/health/get-queue-stats-usage-dump.md new file mode 100644 index 00000000000..fed2f5fa464 --- /dev/null +++ b/docs/examples/1.6.x/console-cli/examples/health/get-queue-stats-usage-dump.md @@ -0,0 +1,2 @@ +appwrite health getQueueStatsUsageDump \ + diff --git a/docs/examples/1.6.x/console-cli/examples/messaging/create-push.md b/docs/examples/1.6.x/console-cli/examples/messaging/create-push.md index e1873425038..18d8ec5aeca 100644 --- a/docs/examples/1.6.x/console-cli/examples/messaging/create-push.md +++ b/docs/examples/1.6.x/console-cli/examples/messaging/create-push.md @@ -1,7 +1,10 @@ appwrite messaging createPush \ --messageId <MESSAGE_ID> \ - --title <TITLE> \ - --body <BODY> \ + + + + + diff --git a/docs/examples/1.6.x/console-cli/examples/messaging/update-push.md b/docs/examples/1.6.x/console-cli/examples/messaging/update-push.md index 70f215c9351..1f4427cee7d 100644 --- a/docs/examples/1.6.x/console-cli/examples/messaging/update-push.md +++ b/docs/examples/1.6.x/console-cli/examples/messaging/update-push.md @@ -15,3 +15,6 @@ appwrite messaging updatePush \ + + + diff --git a/docs/examples/1.6.x/console-cli/examples/migrations/create-firebase-o-auth-migration.md b/docs/examples/1.6.x/console-cli/examples/migrations/create-firebase-o-auth-migration.md deleted file mode 100644 index 207becba037..00000000000 --- a/docs/examples/1.6.x/console-cli/examples/migrations/create-firebase-o-auth-migration.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite migrations createFirebaseOAuthMigration \ - --resources one two three \ - --projectId <PROJECT_ID> diff --git a/docs/examples/1.6.x/console-cli/examples/migrations/delete-firebase-auth.md b/docs/examples/1.6.x/console-cli/examples/migrations/delete-firebase-auth.md deleted file mode 100644 index d58abd98788..00000000000 --- a/docs/examples/1.6.x/console-cli/examples/migrations/delete-firebase-auth.md +++ /dev/null @@ -1 +0,0 @@ -appwrite migrations deleteFirebaseAuth diff --git a/docs/examples/1.6.x/console-cli/examples/migrations/get-firebase-report-o-auth.md b/docs/examples/1.6.x/console-cli/examples/migrations/get-firebase-report-o-auth.md deleted file mode 100644 index 0bdbf3e435d..00000000000 --- a/docs/examples/1.6.x/console-cli/examples/migrations/get-firebase-report-o-auth.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite migrations getFirebaseReportOAuth \ - --resources one two three \ - --projectId <PROJECT_ID> diff --git a/docs/examples/1.6.x/console-cli/examples/migrations/list-firebase-projects.md b/docs/examples/1.6.x/console-cli/examples/migrations/list-firebase-projects.md deleted file mode 100644 index a0e59713eb9..00000000000 --- a/docs/examples/1.6.x/console-cli/examples/migrations/list-firebase-projects.md +++ /dev/null @@ -1 +0,0 @@ -appwrite migrations listFirebaseProjects diff --git a/docs/examples/1.6.x/console-cli/examples/projects/update-memberships-privacy.md b/docs/examples/1.6.x/console-cli/examples/projects/update-memberships-privacy.md new file mode 100644 index 00000000000..6c811ccfceb --- /dev/null +++ b/docs/examples/1.6.x/console-cli/examples/projects/update-memberships-privacy.md @@ -0,0 +1,5 @@ +appwrite projects updateMembershipsPrivacy \ + --projectId <PROJECT_ID> \ + --userName false \ + --userEmail false \ + --mfa false diff --git a/docs/examples/1.6.x/console-web/examples/account/create-anonymous-session.md b/docs/examples/1.6.x/console-web/examples/account/create-anonymous-session.md index ef433a8fb68..113f882e802 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-anonymous-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create-email-password-session.md b/docs/examples/1.6.x/console-web/examples/account/create-email-password-session.md index 0f51387343a..36a503164b7 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-email-password-session.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-email-password-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create-email-token.md b/docs/examples/1.6.x/console-web/examples/account/create-email-token.md index b55f7c46bc1..9517000af3f 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-email-token.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-email-token.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create-j-w-t.md b/docs/examples/1.6.x/console-web/examples/account/create-j-w-t.md index 4f47136a6b7..9fc0e6da5eb 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-j-w-t.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-j-w-t.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/console-web/examples/account/create-magic-u-r-l-token.md index 68662b8a294..6b1891855ea 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-magic-u-r-l-token.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create-mfa-authenticator.md b/docs/examples/1.6.x/console-web/examples/account/create-mfa-authenticator.md index 97bd528cbf4..923eb1ee3c1 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-mfa-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create-mfa-challenge.md b/docs/examples/1.6.x/console-web/examples/account/create-mfa-challenge.md index ed2cd38628c..fd6af6ec195 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-mfa-challenge.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticationFactor } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/console-web/examples/account/create-mfa-recovery-codes.md index 06f25dd8170..d7c122b79cc 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create-o-auth2session.md b/docs/examples/1.6.x/console-web/examples/account/create-o-auth2session.md index e565dd58408..a11bd9880b9 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-o-auth2session.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-o-auth2session.md @@ -1,7 +1,7 @@ import { Client, Account, OAuthProvider } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/console-web/examples/account/create-o-auth2token.md index 14c0d00af4a..9eb7cfab67e 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-o-auth2token.md @@ -1,7 +1,7 @@ import { Client, Account, OAuthProvider } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create-phone-token.md b/docs/examples/1.6.x/console-web/examples/account/create-phone-token.md index 21fdb81e31a..25216ca73c8 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-phone-token.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-phone-token.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create-phone-verification.md b/docs/examples/1.6.x/console-web/examples/account/create-phone-verification.md index 4d193cbd398..03185e3e915 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-phone-verification.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create-push-target.md b/docs/examples/1.6.x/console-web/examples/account/create-push-target.md index 339b9972c61..ee35566f8a7 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-push-target.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-push-target.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create-recovery.md b/docs/examples/1.6.x/console-web/examples/account/create-recovery.md index b28d4f8b015..c2bb4422fa4 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-recovery.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-recovery.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create-session.md b/docs/examples/1.6.x/console-web/examples/account/create-session.md index 06e12603e1f..1c8d8a44803 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-session.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create-verification.md b/docs/examples/1.6.x/console-web/examples/account/create-verification.md index 555030a79ef..f6eacdce1f3 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create-verification.md +++ b/docs/examples/1.6.x/console-web/examples/account/create-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/create.md b/docs/examples/1.6.x/console-web/examples/account/create.md index 120aceb9d9b..d220aed8d0e 100644 --- a/docs/examples/1.6.x/console-web/examples/account/create.md +++ b/docs/examples/1.6.x/console-web/examples/account/create.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/delete-identity.md b/docs/examples/1.6.x/console-web/examples/account/delete-identity.md index a541e9bd346..6808b32a1d0 100644 --- a/docs/examples/1.6.x/console-web/examples/account/delete-identity.md +++ b/docs/examples/1.6.x/console-web/examples/account/delete-identity.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/console-web/examples/account/delete-mfa-authenticator.md index 64f27fdfacc..54610a810c3 100644 --- a/docs/examples/1.6.x/console-web/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/console-web/examples/account/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/delete-push-target.md b/docs/examples/1.6.x/console-web/examples/account/delete-push-target.md index 017ebd438b1..f530b64dadd 100644 --- a/docs/examples/1.6.x/console-web/examples/account/delete-push-target.md +++ b/docs/examples/1.6.x/console-web/examples/account/delete-push-target.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/delete-session.md b/docs/examples/1.6.x/console-web/examples/account/delete-session.md index 1045e98a825..4eba0515e42 100644 --- a/docs/examples/1.6.x/console-web/examples/account/delete-session.md +++ b/docs/examples/1.6.x/console-web/examples/account/delete-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/delete-sessions.md b/docs/examples/1.6.x/console-web/examples/account/delete-sessions.md index ff8c069503c..b9904d612f0 100644 --- a/docs/examples/1.6.x/console-web/examples/account/delete-sessions.md +++ b/docs/examples/1.6.x/console-web/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/delete.md b/docs/examples/1.6.x/console-web/examples/account/delete.md index 7fa1ef10d1c..2fc730f9f05 100644 --- a/docs/examples/1.6.x/console-web/examples/account/delete.md +++ b/docs/examples/1.6.x/console-web/examples/account/delete.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/console-web/examples/account/get-mfa-recovery-codes.md index 6d47bc3b7cb..bee039c48d0 100644 --- a/docs/examples/1.6.x/console-web/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/console-web/examples/account/get-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/get-prefs.md b/docs/examples/1.6.x/console-web/examples/account/get-prefs.md index 1470b683e58..3a013e6615c 100644 --- a/docs/examples/1.6.x/console-web/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/console-web/examples/account/get-prefs.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/get-session.md b/docs/examples/1.6.x/console-web/examples/account/get-session.md index b7de88646ad..d5da237783a 100644 --- a/docs/examples/1.6.x/console-web/examples/account/get-session.md +++ b/docs/examples/1.6.x/console-web/examples/account/get-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/get.md b/docs/examples/1.6.x/console-web/examples/account/get.md index 68dbf30b40b..35661e483bf 100644 --- a/docs/examples/1.6.x/console-web/examples/account/get.md +++ b/docs/examples/1.6.x/console-web/examples/account/get.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/list-identities.md b/docs/examples/1.6.x/console-web/examples/account/list-identities.md index f67e5817b31..675e902c9f2 100644 --- a/docs/examples/1.6.x/console-web/examples/account/list-identities.md +++ b/docs/examples/1.6.x/console-web/examples/account/list-identities.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/list-logs.md b/docs/examples/1.6.x/console-web/examples/account/list-logs.md index 0532a94e19e..72a0ee12dd8 100644 --- a/docs/examples/1.6.x/console-web/examples/account/list-logs.md +++ b/docs/examples/1.6.x/console-web/examples/account/list-logs.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/console-web/examples/account/list-mfa-factors.md index 3fa9652dbc6..7cbc52ec713 100644 --- a/docs/examples/1.6.x/console-web/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/console-web/examples/account/list-mfa-factors.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/list-sessions.md b/docs/examples/1.6.x/console-web/examples/account/list-sessions.md index 2cc26632635..6a24e372c5a 100644 --- a/docs/examples/1.6.x/console-web/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/console-web/examples/account/list-sessions.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-email.md b/docs/examples/1.6.x/console-web/examples/account/update-email.md index d7b6fb7aca9..df1c7f480aa 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-email.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-email.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-m-f-a.md b/docs/examples/1.6.x/console-web/examples/account/update-m-f-a.md index 3c9dac03262..b813b60bb4a 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-m-f-a.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/console-web/examples/account/update-magic-u-r-l-session.md index 6bafae7723b..e0ecd667408 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-magic-u-r-l-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/console-web/examples/account/update-mfa-authenticator.md index 430bf63cd97..b9606759143 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-mfa-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/console-web/examples/account/update-mfa-challenge.md index c170cc272d5..5314959f252 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-mfa-challenge.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/console-web/examples/account/update-mfa-recovery-codes.md index f61a5a1c1ef..654d9fb0fa9 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-name.md b/docs/examples/1.6.x/console-web/examples/account/update-name.md index b2991305c51..cd36ece1132 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-name.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-name.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-password.md b/docs/examples/1.6.x/console-web/examples/account/update-password.md index 1c6c4ce5d06..863c5f28b3e 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-password.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-password.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-phone-session.md b/docs/examples/1.6.x/console-web/examples/account/update-phone-session.md index a9c75466744..d23c10bbda7 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-phone-session.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-phone-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-phone-verification.md b/docs/examples/1.6.x/console-web/examples/account/update-phone-verification.md index de1f471e888..1a05386a9d4 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-phone-verification.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-phone.md b/docs/examples/1.6.x/console-web/examples/account/update-phone.md index 8c1880b482f..380279d0570 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-phone.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-phone.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-prefs.md b/docs/examples/1.6.x/console-web/examples/account/update-prefs.md index e3581de3414..13d857468df 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-prefs.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-push-target.md b/docs/examples/1.6.x/console-web/examples/account/update-push-target.md index 1cbf9e933ff..566d754db7c 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-push-target.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-push-target.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-recovery.md b/docs/examples/1.6.x/console-web/examples/account/update-recovery.md index 3acc705f001..53d75f95d2d 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-recovery.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-recovery.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-session.md b/docs/examples/1.6.x/console-web/examples/account/update-session.md index 88f51f18f21..207fc026d8c 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-session.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-status.md b/docs/examples/1.6.x/console-web/examples/account/update-status.md index 3ed146cff8d..c1377dc4a60 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-status.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-status.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/account/update-verification.md b/docs/examples/1.6.x/console-web/examples/account/update-verification.md index 42d05ff3ef8..4861ca2b814 100644 --- a/docs/examples/1.6.x/console-web/examples/account/update-verification.md +++ b/docs/examples/1.6.x/console-web/examples/account/update-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/console-web/examples/assistant/chat.md b/docs/examples/1.6.x/console-web/examples/assistant/chat.md index 9c44d5709a1..98032043a5b 100644 --- a/docs/examples/1.6.x/console-web/examples/assistant/chat.md +++ b/docs/examples/1.6.x/console-web/examples/assistant/chat.md @@ -1,7 +1,7 @@ import { Client, Assistant } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const assistant = new Assistant(client); diff --git a/docs/examples/1.6.x/console-web/examples/avatars/get-browser.md b/docs/examples/1.6.x/console-web/examples/avatars/get-browser.md index 3604984b896..fd6c878ba2d 100644 --- a/docs/examples/1.6.x/console-web/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/console-web/examples/avatars/get-browser.md @@ -1,7 +1,7 @@ import { Client, Avatars, Browser } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/console-web/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/console-web/examples/avatars/get-credit-card.md index ec38da8a6b5..96e2d6b5fa4 100644 --- a/docs/examples/1.6.x/console-web/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/console-web/examples/avatars/get-credit-card.md @@ -1,7 +1,7 @@ import { Client, Avatars, CreditCard } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/console-web/examples/avatars/get-favicon.md b/docs/examples/1.6.x/console-web/examples/avatars/get-favicon.md index 87a310aaa34..b23e99a5519 100644 --- a/docs/examples/1.6.x/console-web/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/console-web/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/console-web/examples/avatars/get-flag.md b/docs/examples/1.6.x/console-web/examples/avatars/get-flag.md index dd9e2f60ae0..172d21d29ed 100644 --- a/docs/examples/1.6.x/console-web/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/console-web/examples/avatars/get-flag.md @@ -1,7 +1,7 @@ import { Client, Avatars, Flag } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/console-web/examples/avatars/get-image.md b/docs/examples/1.6.x/console-web/examples/avatars/get-image.md index 8cb6546cf2c..209e1ea8364 100644 --- a/docs/examples/1.6.x/console-web/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/console-web/examples/avatars/get-image.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/console-web/examples/avatars/get-initials.md b/docs/examples/1.6.x/console-web/examples/avatars/get-initials.md index 81cfc5ca3e9..6ec70b2143a 100644 --- a/docs/examples/1.6.x/console-web/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/console-web/examples/avatars/get-initials.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/console-web/examples/avatars/get-q-r.md b/docs/examples/1.6.x/console-web/examples/avatars/get-q-r.md index d685011dc98..a255cdc531e 100644 --- a/docs/examples/1.6.x/console-web/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/console-web/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const avatars = new Avatars(client); diff --git a/docs/examples/1.6.x/console-web/examples/console/variables.md b/docs/examples/1.6.x/console-web/examples/console/variables.md index 0ee1f574831..1dce6c02602 100644 --- a/docs/examples/1.6.x/console-web/examples/console/variables.md +++ b/docs/examples/1.6.x/console-web/examples/console/variables.md @@ -1,7 +1,7 @@ import { Client, Console } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const console = new Console(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/create-boolean-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/create-boolean-attribute.md index ae76596cb2d..5b161c6f518 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/create-boolean-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/create-collection.md b/docs/examples/1.6.x/console-web/examples/databases/create-collection.md index 29e9eeed7de..cd28cf86160 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/create-collection.md +++ b/docs/examples/1.6.x/console-web/examples/databases/create-collection.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/create-datetime-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/create-datetime-attribute.md index 7344660f51a..c431105bdfc 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/create-datetime-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/create-document.md b/docs/examples/1.6.x/console-web/examples/databases/create-document.md index 8f1a69afe1c..1b96d078995 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/create-document.md +++ b/docs/examples/1.6.x/console-web/examples/databases/create-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/create-email-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/create-email-attribute.md index 32a51c506d6..f11c1a96496 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/create-email-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/create-email-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/create-enum-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/create-enum-attribute.md index ab460cde2b0..d180b1b9f2d 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/create-enum-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/create-float-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/create-float-attribute.md index 7019deb0aa2..036d3fc201a 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/create-float-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/create-float-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/create-index.md b/docs/examples/1.6.x/console-web/examples/databases/create-index.md index e8a3470879d..f75857fc985 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/create-index.md +++ b/docs/examples/1.6.x/console-web/examples/databases/create-index.md @@ -1,7 +1,7 @@ import { Client, Databases, IndexType } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/create-integer-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/create-integer-attribute.md index a2cdda2b1cc..25f474d0aad 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/create-integer-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/create-ip-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/create-ip-attribute.md index daf7e4fd113..e8abc80f91e 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/create-ip-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/create-relationship-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/create-relationship-attribute.md index a64548c9632..358a2df5fc6 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/create-relationship-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases, RelationshipType, RelationMutate } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/create-string-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/create-string-attribute.md index 6e9541ed573..ba94b0348b8 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/create-string-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/create-string-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/create-url-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/create-url-attribute.md index dc2dfc3ba0b..da80e392d30 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/create-url-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/create-url-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/create.md b/docs/examples/1.6.x/console-web/examples/databases/create.md index a7f560eef77..6d709ddd561 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/create.md +++ b/docs/examples/1.6.x/console-web/examples/databases/create.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/delete-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/delete-attribute.md index cec93bef6d5..df12b0d2f04 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/delete-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/delete-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/delete-collection.md b/docs/examples/1.6.x/console-web/examples/databases/delete-collection.md index ef2aa905828..f490ae10967 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/delete-collection.md +++ b/docs/examples/1.6.x/console-web/examples/databases/delete-collection.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/delete-document.md b/docs/examples/1.6.x/console-web/examples/databases/delete-document.md index 961bc639343..a56a4f23c51 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/delete-document.md +++ b/docs/examples/1.6.x/console-web/examples/databases/delete-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/delete-index.md b/docs/examples/1.6.x/console-web/examples/databases/delete-index.md index 152a93e0a1d..cdd96a31f03 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/delete-index.md +++ b/docs/examples/1.6.x/console-web/examples/databases/delete-index.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/delete.md b/docs/examples/1.6.x/console-web/examples/databases/delete.md index b6485ad9d94..3bd69657f93 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/delete.md +++ b/docs/examples/1.6.x/console-web/examples/databases/delete.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/get-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/get-attribute.md index 20c555cb9ec..9dac2ad1339 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/get-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/get-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/get-collection-usage.md b/docs/examples/1.6.x/console-web/examples/databases/get-collection-usage.md index 4b14f1fd93b..a2f736377a4 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/get-collection-usage.md +++ b/docs/examples/1.6.x/console-web/examples/databases/get-collection-usage.md @@ -1,7 +1,7 @@ import { Client, Databases, DatabaseUsageRange } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/get-collection.md b/docs/examples/1.6.x/console-web/examples/databases/get-collection.md index 59ab03be1ee..56d29f05cb1 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/get-collection.md +++ b/docs/examples/1.6.x/console-web/examples/databases/get-collection.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/get-database-usage.md b/docs/examples/1.6.x/console-web/examples/databases/get-database-usage.md index c0f15e4e6a3..13038ab755f 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/get-database-usage.md +++ b/docs/examples/1.6.x/console-web/examples/databases/get-database-usage.md @@ -1,7 +1,7 @@ import { Client, Databases, DatabaseUsageRange } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/get-document.md b/docs/examples/1.6.x/console-web/examples/databases/get-document.md index cf16708bfb3..0e90cf785ef 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/get-document.md +++ b/docs/examples/1.6.x/console-web/examples/databases/get-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/get-index.md b/docs/examples/1.6.x/console-web/examples/databases/get-index.md index 85a1c03b1b1..4c8c3794af9 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/get-index.md +++ b/docs/examples/1.6.x/console-web/examples/databases/get-index.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/get-usage.md b/docs/examples/1.6.x/console-web/examples/databases/get-usage.md index 9d926e5ffb3..a0dd3ce9834 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/get-usage.md +++ b/docs/examples/1.6.x/console-web/examples/databases/get-usage.md @@ -1,7 +1,7 @@ import { Client, Databases, DatabaseUsageRange } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/get.md b/docs/examples/1.6.x/console-web/examples/databases/get.md index 8b9e02ed19f..5c72c5639c9 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/get.md +++ b/docs/examples/1.6.x/console-web/examples/databases/get.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/list-attributes.md b/docs/examples/1.6.x/console-web/examples/databases/list-attributes.md index 987e1741f0b..0c2cd4092c9 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/list-attributes.md +++ b/docs/examples/1.6.x/console-web/examples/databases/list-attributes.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/list-collection-logs.md b/docs/examples/1.6.x/console-web/examples/databases/list-collection-logs.md index d01a57ea0d8..b2ef92d6772 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/list-collection-logs.md +++ b/docs/examples/1.6.x/console-web/examples/databases/list-collection-logs.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/list-collections.md b/docs/examples/1.6.x/console-web/examples/databases/list-collections.md index 28450a7bfd1..f9a0511e3ea 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/list-collections.md +++ b/docs/examples/1.6.x/console-web/examples/databases/list-collections.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/list-document-logs.md b/docs/examples/1.6.x/console-web/examples/databases/list-document-logs.md index c1c2b06ede5..ddb789b3f02 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/list-document-logs.md +++ b/docs/examples/1.6.x/console-web/examples/databases/list-document-logs.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/list-documents.md b/docs/examples/1.6.x/console-web/examples/databases/list-documents.md index 27d4d77b90e..3a77c05faa6 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/console-web/examples/databases/list-documents.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/list-indexes.md b/docs/examples/1.6.x/console-web/examples/databases/list-indexes.md index 829f6d7b023..fbbef1a9d88 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/list-indexes.md +++ b/docs/examples/1.6.x/console-web/examples/databases/list-indexes.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/list-logs.md b/docs/examples/1.6.x/console-web/examples/databases/list-logs.md index ec42922d4c6..12ccccf87ef 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/list-logs.md +++ b/docs/examples/1.6.x/console-web/examples/databases/list-logs.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/list.md b/docs/examples/1.6.x/console-web/examples/databases/list.md index d41bdabb7bd..58ec7209a3c 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/list.md +++ b/docs/examples/1.6.x/console-web/examples/databases/list.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/update-boolean-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/update-boolean-attribute.md index 82b4c3ca2d8..95207fd2abd 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/update-boolean-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/update-collection.md b/docs/examples/1.6.x/console-web/examples/databases/update-collection.md index f5e6176811f..ced992baf47 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/update-collection.md +++ b/docs/examples/1.6.x/console-web/examples/databases/update-collection.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/update-datetime-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/update-datetime-attribute.md index 453b2f369dc..7c413ee5323 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/update-datetime-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/update-document.md b/docs/examples/1.6.x/console-web/examples/databases/update-document.md index 635c50722dc..85898ea2a76 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/update-document.md +++ b/docs/examples/1.6.x/console-web/examples/databases/update-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/update-email-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/update-email-attribute.md index 581d7ab48ea..e54dba99bd2 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/update-email-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/update-email-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/update-enum-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/update-enum-attribute.md index 999335a27e4..aa5330af04b 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/update-enum-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/update-float-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/update-float-attribute.md index 8d6d423f653..344ddb8815b 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/update-float-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/update-float-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,9 +11,9 @@ const result = await databases.updateFloatAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - null, // min - null, // max null, // default + null, // min (optional) + null, // max (optional) '' // newKey (optional) ); diff --git a/docs/examples/1.6.x/console-web/examples/databases/update-integer-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/update-integer-attribute.md index 727c016455e..72565bd5f40 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/update-integer-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -11,9 +11,9 @@ const result = await databases.updateIntegerAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - null, // min - null, // max null, // default + null, // min (optional) + null, // max (optional) '' // newKey (optional) ); diff --git a/docs/examples/1.6.x/console-web/examples/databases/update-ip-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/update-ip-attribute.md index f2a018c4b40..ff6dded552a 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/update-ip-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/update-relationship-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/update-relationship-attribute.md index bc5f41cf92e..acce3fd741d 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/update-relationship-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases, RelationMutate } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/update-string-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/update-string-attribute.md index 0ac1497d000..05601bd4a23 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/update-string-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/update-string-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); @@ -12,7 +12,7 @@ const result = await databases.updateStringAttribute( '', // key false, // required '<DEFAULT>', // default - null, // size (optional) + 1, // size (optional) '' // newKey (optional) ); diff --git a/docs/examples/1.6.x/console-web/examples/databases/update-url-attribute.md b/docs/examples/1.6.x/console-web/examples/databases/update-url-attribute.md index e09220304e8..78b4d92a287 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/update-url-attribute.md +++ b/docs/examples/1.6.x/console-web/examples/databases/update-url-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/databases/update.md b/docs/examples/1.6.x/console-web/examples/databases/update.md index a8c2b33ae48..a29475b8163 100644 --- a/docs/examples/1.6.x/console-web/examples/databases/update.md +++ b/docs/examples/1.6.x/console-web/examples/databases/update.md @@ -1,7 +1,7 @@ import { Client, Databases } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const databases = new Databases(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/create-build.md b/docs/examples/1.6.x/console-web/examples/functions/create-build.md index 89c7d0817cd..1b029a3b333 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/create-build.md +++ b/docs/examples/1.6.x/console-web/examples/functions/create-build.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/create-deployment.md b/docs/examples/1.6.x/console-web/examples/functions/create-deployment.md index 75715323561..62309d5e987 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/create-deployment.md +++ b/docs/examples/1.6.x/console-web/examples/functions/create-deployment.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/create-execution.md b/docs/examples/1.6.x/console-web/examples/functions/create-execution.md index dfaf2ef2601..813e1fd0a7d 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/create-execution.md +++ b/docs/examples/1.6.x/console-web/examples/functions/create-execution.md @@ -1,7 +1,7 @@ import { Client, Functions, ExecutionMethod } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/create-variable.md b/docs/examples/1.6.x/console-web/examples/functions/create-variable.md index 60d9a10b294..e8154ef1815 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/create-variable.md +++ b/docs/examples/1.6.x/console-web/examples/functions/create-variable.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/create.md b/docs/examples/1.6.x/console-web/examples/functions/create.md index 63df3bfa03c..c30dfac9a1f 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/create.md +++ b/docs/examples/1.6.x/console-web/examples/functions/create.md @@ -1,7 +1,7 @@ import { Client, Functions, } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/delete-deployment.md b/docs/examples/1.6.x/console-web/examples/functions/delete-deployment.md index 28fd5b29e3b..1bc26feab06 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/delete-deployment.md +++ b/docs/examples/1.6.x/console-web/examples/functions/delete-deployment.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/delete-execution.md b/docs/examples/1.6.x/console-web/examples/functions/delete-execution.md index 2a857d6535d..08164346372 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/delete-execution.md +++ b/docs/examples/1.6.x/console-web/examples/functions/delete-execution.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/delete-variable.md b/docs/examples/1.6.x/console-web/examples/functions/delete-variable.md index 60c4de54cc7..878d15d235e 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/delete-variable.md +++ b/docs/examples/1.6.x/console-web/examples/functions/delete-variable.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/delete.md b/docs/examples/1.6.x/console-web/examples/functions/delete.md index b6dd5ccf3e7..86d616d267e 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/delete.md +++ b/docs/examples/1.6.x/console-web/examples/functions/delete.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/get-deployment-download.md b/docs/examples/1.6.x/console-web/examples/functions/get-deployment-download.md index 34f5b4e45f8..2b171dc7853 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/get-deployment-download.md +++ b/docs/examples/1.6.x/console-web/examples/functions/get-deployment-download.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/get-deployment.md b/docs/examples/1.6.x/console-web/examples/functions/get-deployment.md index 242c77cfe04..75cb11f7419 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/get-deployment.md +++ b/docs/examples/1.6.x/console-web/examples/functions/get-deployment.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/get-execution.md b/docs/examples/1.6.x/console-web/examples/functions/get-execution.md index 6daf1757fdf..58ab917bbd1 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/console-web/examples/functions/get-execution.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/get-function-usage.md b/docs/examples/1.6.x/console-web/examples/functions/get-function-usage.md index cfa6c003b04..dacfd61564a 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/get-function-usage.md +++ b/docs/examples/1.6.x/console-web/examples/functions/get-function-usage.md @@ -1,7 +1,7 @@ import { Client, Functions, FunctionUsageRange } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/get-template.md b/docs/examples/1.6.x/console-web/examples/functions/get-template.md index a230c7aba96..13c95210abe 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/get-template.md +++ b/docs/examples/1.6.x/console-web/examples/functions/get-template.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/get-usage.md b/docs/examples/1.6.x/console-web/examples/functions/get-usage.md index 7fdf2d2f44d..56e97257017 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/get-usage.md +++ b/docs/examples/1.6.x/console-web/examples/functions/get-usage.md @@ -1,7 +1,7 @@ import { Client, Functions, FunctionUsageRange } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/get-variable.md b/docs/examples/1.6.x/console-web/examples/functions/get-variable.md index 14fd5550775..d80b2bccbf2 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/get-variable.md +++ b/docs/examples/1.6.x/console-web/examples/functions/get-variable.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/get.md b/docs/examples/1.6.x/console-web/examples/functions/get.md index 7eb5d29923b..9b852849eb0 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/get.md +++ b/docs/examples/1.6.x/console-web/examples/functions/get.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/list-deployments.md b/docs/examples/1.6.x/console-web/examples/functions/list-deployments.md index 453e92cfaa3..b9f2ec0eafe 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/list-deployments.md +++ b/docs/examples/1.6.x/console-web/examples/functions/list-deployments.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/list-executions.md b/docs/examples/1.6.x/console-web/examples/functions/list-executions.md index 1aad664cda6..d1d5857b606 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/console-web/examples/functions/list-executions.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/list-runtimes.md b/docs/examples/1.6.x/console-web/examples/functions/list-runtimes.md index 36010611f00..cdd1e08cad1 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/list-runtimes.md +++ b/docs/examples/1.6.x/console-web/examples/functions/list-runtimes.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/list-specifications.md b/docs/examples/1.6.x/console-web/examples/functions/list-specifications.md index a3c11f1d835..fe671c54bbe 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/list-specifications.md +++ b/docs/examples/1.6.x/console-web/examples/functions/list-specifications.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/list-templates.md b/docs/examples/1.6.x/console-web/examples/functions/list-templates.md index 3970f8f6699..ab7f84b34d0 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/list-templates.md +++ b/docs/examples/1.6.x/console-web/examples/functions/list-templates.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/list-variables.md b/docs/examples/1.6.x/console-web/examples/functions/list-variables.md index fc659e3e7d3..5651dbd1c55 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/list-variables.md +++ b/docs/examples/1.6.x/console-web/examples/functions/list-variables.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/list.md b/docs/examples/1.6.x/console-web/examples/functions/list.md index 26e4864e95a..462214449d2 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/list.md +++ b/docs/examples/1.6.x/console-web/examples/functions/list.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/update-deployment-build.md b/docs/examples/1.6.x/console-web/examples/functions/update-deployment-build.md index bd11a2a80e2..7ec812a4baa 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/update-deployment-build.md +++ b/docs/examples/1.6.x/console-web/examples/functions/update-deployment-build.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/update-deployment.md b/docs/examples/1.6.x/console-web/examples/functions/update-deployment.md index 3aad019b137..c8e0bc15a44 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/update-deployment.md +++ b/docs/examples/1.6.x/console-web/examples/functions/update-deployment.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/update-variable.md b/docs/examples/1.6.x/console-web/examples/functions/update-variable.md index 5046499cc75..1889b883be9 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/update-variable.md +++ b/docs/examples/1.6.x/console-web/examples/functions/update-variable.md @@ -1,7 +1,7 @@ import { Client, Functions } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/functions/update.md b/docs/examples/1.6.x/console-web/examples/functions/update.md index a8d1709aca9..66d3cd8e8fa 100644 --- a/docs/examples/1.6.x/console-web/examples/functions/update.md +++ b/docs/examples/1.6.x/console-web/examples/functions/update.md @@ -1,7 +1,7 @@ import { Client, Functions, } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const functions = new Functions(client); diff --git a/docs/examples/1.6.x/console-web/examples/graphql/mutation.md b/docs/examples/1.6.x/console-web/examples/graphql/mutation.md index 0b9b76a2fd2..5360139b078 100644 --- a/docs/examples/1.6.x/console-web/examples/graphql/mutation.md +++ b/docs/examples/1.6.x/console-web/examples/graphql/mutation.md @@ -1,7 +1,7 @@ import { Client, Graphql } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const graphql = new Graphql(client); diff --git a/docs/examples/1.6.x/console-web/examples/graphql/query.md b/docs/examples/1.6.x/console-web/examples/graphql/query.md index a708c3904e7..15434872abf 100644 --- a/docs/examples/1.6.x/console-web/examples/graphql/query.md +++ b/docs/examples/1.6.x/console-web/examples/graphql/query.md @@ -1,7 +1,7 @@ import { Client, Graphql } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const graphql = new Graphql(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-antivirus.md b/docs/examples/1.6.x/console-web/examples/health/get-antivirus.md index 3c36cd720e9..30e142a63d2 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-antivirus.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-antivirus.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-cache.md b/docs/examples/1.6.x/console-web/examples/health/get-cache.md index 0bdb8947339..1c0bb182e24 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-cache.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-cache.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-certificate.md b/docs/examples/1.6.x/console-web/examples/health/get-certificate.md index 4bd5c8a6b47..288c0f8732b 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-certificate.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-certificate.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-d-b.md b/docs/examples/1.6.x/console-web/examples/health/get-d-b.md index d18ed28f649..855e73466c8 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-d-b.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-d-b.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-failed-jobs.md b/docs/examples/1.6.x/console-web/examples/health/get-failed-jobs.md index e1e57b1654d..d96a5545aa2 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-failed-jobs.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-failed-jobs.md @@ -1,7 +1,7 @@ import { Client, Health, } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-pub-sub.md b/docs/examples/1.6.x/console-web/examples/health/get-pub-sub.md index 9b398f5b140..0ccce8e4d89 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-pub-sub.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-pub-sub.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-queue-builds.md b/docs/examples/1.6.x/console-web/examples/health/get-queue-builds.md index 0ee109f8dd7..dfbbfd91a61 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-queue-builds.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-queue-builds.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-queue-certificates.md b/docs/examples/1.6.x/console-web/examples/health/get-queue-certificates.md index ce82ab00de9..b0397f4422e 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-queue-certificates.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-queue-certificates.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-queue-databases.md b/docs/examples/1.6.x/console-web/examples/health/get-queue-databases.md index 8a96fcf00ba..1b958a9c75e 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-queue-databases.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-queue-databases.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-queue-deletes.md b/docs/examples/1.6.x/console-web/examples/health/get-queue-deletes.md index 840607e1131..3f34bc22285 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-queue-deletes.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-queue-deletes.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-queue-functions.md b/docs/examples/1.6.x/console-web/examples/health/get-queue-functions.md index 35c612a7af8..2ea37014626 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-queue-functions.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-queue-functions.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-queue-logs.md b/docs/examples/1.6.x/console-web/examples/health/get-queue-logs.md index 9f5d51dc298..73bd18589ad 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-queue-logs.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-queue-logs.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-queue-mails.md b/docs/examples/1.6.x/console-web/examples/health/get-queue-mails.md index 58d694d7b8b..a6d86c04c78 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-queue-mails.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-queue-mails.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-queue-messaging.md b/docs/examples/1.6.x/console-web/examples/health/get-queue-messaging.md index cfecdf9a634..d25979713da 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-queue-messaging.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-queue-messaging.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-queue-migrations.md b/docs/examples/1.6.x/console-web/examples/health/get-queue-migrations.md index 5a8b74e79cd..3619c56028c 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-queue-migrations.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-queue-migrations.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-queue-stats-resources.md b/docs/examples/1.6.x/console-web/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..cf1c3ee5dfb --- /dev/null +++ b/docs/examples/1.6.x/console-web/examples/health/get-queue-stats-resources.md @@ -0,0 +1,13 @@ +import { Client, Health } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const health = new Health(client); + +const result = await health.getQueueStatsResources( + null // threshold (optional) +); + +console.log(result); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-queue-usage-dump.md b/docs/examples/1.6.x/console-web/examples/health/get-queue-usage-dump.md index 4312ace961b..969b6346f70 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-queue-usage-dump.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-queue-usage.md b/docs/examples/1.6.x/console-web/examples/health/get-queue-usage.md index 703574a3ba6..f79fd3b5ad4 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-queue-usage.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-queue-usage.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-queue-webhooks.md b/docs/examples/1.6.x/console-web/examples/health/get-queue-webhooks.md index 1c003864a58..72bcc44c9ad 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-queue-webhooks.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-queue.md b/docs/examples/1.6.x/console-web/examples/health/get-queue.md index cef5e8cc41e..9c13097bb03 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-queue.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-queue.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-storage-local.md b/docs/examples/1.6.x/console-web/examples/health/get-storage-local.md index 82c6b8bebfa..e6bdf62c503 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-storage-local.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-storage-local.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-storage.md b/docs/examples/1.6.x/console-web/examples/health/get-storage.md index a7a377a4246..1d8941490e3 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-storage.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-storage.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get-time.md b/docs/examples/1.6.x/console-web/examples/health/get-time.md index 8e126c0c074..826eaf5a8c8 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get-time.md +++ b/docs/examples/1.6.x/console-web/examples/health/get-time.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/health/get.md b/docs/examples/1.6.x/console-web/examples/health/get.md index 3f2f0fbd85a..b510d8a891b 100644 --- a/docs/examples/1.6.x/console-web/examples/health/get.md +++ b/docs/examples/1.6.x/console-web/examples/health/get.md @@ -1,7 +1,7 @@ import { Client, Health } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const health = new Health(client); diff --git a/docs/examples/1.6.x/console-web/examples/locale/get.md b/docs/examples/1.6.x/console-web/examples/locale/get.md index fc4f1490ac4..4b0331787ee 100644 --- a/docs/examples/1.6.x/console-web/examples/locale/get.md +++ b/docs/examples/1.6.x/console-web/examples/locale/get.md @@ -1,7 +1,7 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/console-web/examples/locale/list-codes.md b/docs/examples/1.6.x/console-web/examples/locale/list-codes.md index 547ff184182..d20399af4ab 100644 --- a/docs/examples/1.6.x/console-web/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/console-web/examples/locale/list-codes.md @@ -1,7 +1,7 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/console-web/examples/locale/list-continents.md b/docs/examples/1.6.x/console-web/examples/locale/list-continents.md index 2c09d6a472d..d769e88f1c4 100644 --- a/docs/examples/1.6.x/console-web/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/console-web/examples/locale/list-continents.md @@ -1,7 +1,7 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/console-web/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/console-web/examples/locale/list-countries-e-u.md index 12769b40f52..ce8746421b0 100644 --- a/docs/examples/1.6.x/console-web/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/console-web/examples/locale/list-countries-e-u.md @@ -1,7 +1,7 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/console-web/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/console-web/examples/locale/list-countries-phones.md index 6bd09be13e9..457867707ce 100644 --- a/docs/examples/1.6.x/console-web/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/console-web/examples/locale/list-countries-phones.md @@ -1,7 +1,7 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/console-web/examples/locale/list-countries.md b/docs/examples/1.6.x/console-web/examples/locale/list-countries.md index e245f18aa74..298e25ee814 100644 --- a/docs/examples/1.6.x/console-web/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/console-web/examples/locale/list-countries.md @@ -1,7 +1,7 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/console-web/examples/locale/list-currencies.md b/docs/examples/1.6.x/console-web/examples/locale/list-currencies.md index 4fabdd6a710..05ff041cbba 100644 --- a/docs/examples/1.6.x/console-web/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/console-web/examples/locale/list-currencies.md @@ -1,7 +1,7 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/console-web/examples/locale/list-languages.md b/docs/examples/1.6.x/console-web/examples/locale/list-languages.md index 3de7d36e2f9..1a2db31b55d 100644 --- a/docs/examples/1.6.x/console-web/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/console-web/examples/locale/list-languages.md @@ -1,7 +1,7 @@ import { Client, Locale } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const locale = new Locale(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/create-apns-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/create-apns-provider.md index 2c9592eacb7..9b238afc9e0 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/create-apns-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/create-email.md b/docs/examples/1.6.x/console-web/examples/messaging/create-email.md index cf9800827c0..108517c89da 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/create-email.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/create-email.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/create-fcm-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/create-fcm-provider.md index e4db7c5b876..9d67e89fd69 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/create-fcm-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/create-mailgun-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/create-mailgun-provider.md index e03a7adc7e9..dc165af859b 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/create-mailgun-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/create-msg91provider.md b/docs/examples/1.6.x/console-web/examples/messaging/create-msg91provider.md index 2576d818e86..cab468a0893 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/create-msg91provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/create-push.md b/docs/examples/1.6.x/console-web/examples/messaging/create-push.md index fe8eac62ab9..79c3a20e83f 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/create-push.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/create-push.md @@ -1,15 +1,15 @@ -import { Client, Messaging } from "@appwrite.io/console"; +import { Client, Messaging, MessagePriority } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); const result = await messaging.createPush( '<MESSAGE_ID>', // messageId - '<TITLE>', // title - '<BODY>', // body + '<TITLE>', // title (optional) + '<BODY>', // body (optional) [], // topics (optional) [], // users (optional) [], // targets (optional) @@ -20,9 +20,12 @@ const result = await messaging.createPush( '<SOUND>', // sound (optional) '<COLOR>', // color (optional) '<TAG>', // tag (optional) - '<BADGE>', // badge (optional) + null, // badge (optional) false, // draft (optional) - '' // scheduledAt (optional) + '', // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + MessagePriority.Normal // priority (optional) ); console.log(result); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/create-sendgrid-provider.md index 309df22c6c1..b93c84b2581 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/create-sendgrid-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/create-sms.md b/docs/examples/1.6.x/console-web/examples/messaging/create-sms.md index 8cdc8ffd428..7146ee4ac95 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/create-sms.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/create-sms.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/create-smtp-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/create-smtp-provider.md index a1363e6ded8..b4bcf14d0b5 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/create-smtp-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging, SmtpEncryption } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/console-web/examples/messaging/create-subscriber.md index 9e6705488d9..b1f72394132 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/create-subscriber.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/create-telesign-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/create-telesign-provider.md index 03928d1cba6..355bc22f859 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/create-telesign-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/create-textmagic-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/create-textmagic-provider.md index f3a4f21a491..d79cffc3161 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/create-textmagic-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/create-topic.md b/docs/examples/1.6.x/console-web/examples/messaging/create-topic.md index 46a7a10f382..274714a63b1 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/create-topic.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/create-topic.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/create-twilio-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/create-twilio-provider.md index 4a1dbef2567..9b8f4407435 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/create-twilio-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/create-vonage-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/create-vonage-provider.md index 97dfed44f31..6e115e8eb90 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/create-vonage-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/delete-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/delete-provider.md index 03626ffd6f9..f71eb65f29c 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/delete-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/delete-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/delete-subscriber.md b/docs/examples/1.6.x/console-web/examples/messaging/delete-subscriber.md index dc10349ebb3..ace96702115 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/delete-subscriber.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/delete-topic.md b/docs/examples/1.6.x/console-web/examples/messaging/delete-topic.md index f009f770af2..8f8e5460d3d 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/delete-topic.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/delete-topic.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/delete.md b/docs/examples/1.6.x/console-web/examples/messaging/delete.md index daf58d29002..17324cca7ed 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/delete.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/delete.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/get-message.md b/docs/examples/1.6.x/console-web/examples/messaging/get-message.md index 3e141f41823..3282adbe57d 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/get-message.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/get-message.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/get-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/get-provider.md index 834241ffb3e..97ac5fd127a 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/get-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/get-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/get-subscriber.md b/docs/examples/1.6.x/console-web/examples/messaging/get-subscriber.md index 22860485dcb..b718558d715 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/get-subscriber.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/get-subscriber.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/get-topic.md b/docs/examples/1.6.x/console-web/examples/messaging/get-topic.md index dd30034a249..802ec1fba43 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/get-topic.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/get-topic.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/list-message-logs.md b/docs/examples/1.6.x/console-web/examples/messaging/list-message-logs.md index 709a433e737..8679b267ce1 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/list-message-logs.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/list-message-logs.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/list-messages.md b/docs/examples/1.6.x/console-web/examples/messaging/list-messages.md index 42cf8874e5e..a537844f813 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/list-messages.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/list-messages.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/list-provider-logs.md b/docs/examples/1.6.x/console-web/examples/messaging/list-provider-logs.md index 228a83e6ca2..2e4acb38cf7 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/list-provider-logs.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/list-providers.md b/docs/examples/1.6.x/console-web/examples/messaging/list-providers.md index e135b4afb70..5c91f01bbc8 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/list-providers.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/list-providers.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/list-subscriber-logs.md b/docs/examples/1.6.x/console-web/examples/messaging/list-subscriber-logs.md index 33f4bdf0b1d..f722c9a9edd 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/list-subscriber-logs.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/list-subscribers.md b/docs/examples/1.6.x/console-web/examples/messaging/list-subscribers.md index 09818406d5e..f120e9d96d2 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/list-subscribers.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/list-subscribers.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/list-targets.md b/docs/examples/1.6.x/console-web/examples/messaging/list-targets.md index 92adc0cf346..89baf87cb00 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/list-targets.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/list-targets.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/list-topic-logs.md b/docs/examples/1.6.x/console-web/examples/messaging/list-topic-logs.md index 2ab33f65333..bc23a09a919 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/list-topic-logs.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/list-topics.md b/docs/examples/1.6.x/console-web/examples/messaging/list-topics.md index 8983f834f7d..d23cca3171e 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/list-topics.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/list-topics.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/update-apns-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/update-apns-provider.md index 4face789204..bc69c3ad1eb 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/update-apns-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/update-email.md b/docs/examples/1.6.x/console-web/examples/messaging/update-email.md index 905ba629c4c..ba9bc7eb486 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/update-email.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/update-email.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/update-fcm-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/update-fcm-provider.md index 0c1b2627dc8..d2e73825613 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/update-fcm-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/update-mailgun-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/update-mailgun-provider.md index 8dbf6b8bc39..cc48ac52f34 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/update-mailgun-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/update-msg91provider.md b/docs/examples/1.6.x/console-web/examples/messaging/update-msg91provider.md index 68db8ffe2d7..c2a6faec24d 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/update-msg91provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/update-push.md b/docs/examples/1.6.x/console-web/examples/messaging/update-push.md index 9fbb2303044..e479dcc4259 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/update-push.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/update-push.md @@ -1,7 +1,7 @@ -import { Client, Messaging } from "@appwrite.io/console"; +import { Client, Messaging, MessagePriority } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); @@ -22,7 +22,10 @@ const result = await messaging.updatePush( '<TAG>', // tag (optional) null, // badge (optional) false, // draft (optional) - '' // scheduledAt (optional) + '', // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + MessagePriority.Normal // priority (optional) ); console.log(result); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/update-sendgrid-provider.md index 5cb6907f059..efe8263718f 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/update-sendgrid-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/update-sms.md b/docs/examples/1.6.x/console-web/examples/messaging/update-sms.md index c26662680a1..2c535a014e5 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/update-sms.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/update-sms.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/update-smtp-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/update-smtp-provider.md index aca32d19020..0274337a7bd 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/update-smtp-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging, SmtpEncryption } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/update-telesign-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/update-telesign-provider.md index fcba0648f50..5d8bc1602d2 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/update-telesign-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/update-textmagic-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/update-textmagic-provider.md index c2f1c2506a8..564ad4fc690 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/update-textmagic-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/update-topic.md b/docs/examples/1.6.x/console-web/examples/messaging/update-topic.md index d5d953511bc..e0edbae7145 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/update-topic.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/update-topic.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/update-twilio-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/update-twilio-provider.md index d6a8d07a4b3..544a52e4fd9 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/update-twilio-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/messaging/update-vonage-provider.md b/docs/examples/1.6.x/console-web/examples/messaging/update-vonage-provider.md index 939cd821d6c..e831c03184c 100644 --- a/docs/examples/1.6.x/console-web/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.6.x/console-web/examples/messaging/update-vonage-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const messaging = new Messaging(client); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/create-appwrite-migration.md b/docs/examples/1.6.x/console-web/examples/migrations/create-appwrite-migration.md index 4e5b463e388..db9a4cd0e00 100644 --- a/docs/examples/1.6.x/console-web/examples/migrations/create-appwrite-migration.md +++ b/docs/examples/1.6.x/console-web/examples/migrations/create-appwrite-migration.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/create-firebase-migration.md b/docs/examples/1.6.x/console-web/examples/migrations/create-firebase-migration.md index 9e59eda642b..20ce3a8b3c4 100644 --- a/docs/examples/1.6.x/console-web/examples/migrations/create-firebase-migration.md +++ b/docs/examples/1.6.x/console-web/examples/migrations/create-firebase-migration.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/create-firebase-o-auth-migration.md b/docs/examples/1.6.x/console-web/examples/migrations/create-firebase-o-auth-migration.md deleted file mode 100644 index bf57d427e9c..00000000000 --- a/docs/examples/1.6.x/console-web/examples/migrations/create-firebase-o-auth-migration.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Migrations } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const migrations = new Migrations(client); - -const result = await migrations.createFirebaseOAuthMigration( - [], // resources - '<PROJECT_ID>' // projectId -); - -console.log(result); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/create-n-host-migration.md b/docs/examples/1.6.x/console-web/examples/migrations/create-n-host-migration.md index 281b584d351..23b22ff3718 100644 --- a/docs/examples/1.6.x/console-web/examples/migrations/create-n-host-migration.md +++ b/docs/examples/1.6.x/console-web/examples/migrations/create-n-host-migration.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/create-supabase-migration.md b/docs/examples/1.6.x/console-web/examples/migrations/create-supabase-migration.md index 290009b498f..18c326ca7e1 100644 --- a/docs/examples/1.6.x/console-web/examples/migrations/create-supabase-migration.md +++ b/docs/examples/1.6.x/console-web/examples/migrations/create-supabase-migration.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/delete-firebase-auth.md b/docs/examples/1.6.x/console-web/examples/migrations/delete-firebase-auth.md deleted file mode 100644 index 8c7683b46a3..00000000000 --- a/docs/examples/1.6.x/console-web/examples/migrations/delete-firebase-auth.md +++ /dev/null @@ -1,11 +0,0 @@ -import { Client, Migrations } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const migrations = new Migrations(client); - -const result = await migrations.deleteFirebaseAuth(); - -console.log(result); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/delete.md b/docs/examples/1.6.x/console-web/examples/migrations/delete.md index d5f68fffaff..bb013ddf279 100644 --- a/docs/examples/1.6.x/console-web/examples/migrations/delete.md +++ b/docs/examples/1.6.x/console-web/examples/migrations/delete.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/get-appwrite-report.md b/docs/examples/1.6.x/console-web/examples/migrations/get-appwrite-report.md index b5de0848bcf..a70b6a45fb6 100644 --- a/docs/examples/1.6.x/console-web/examples/migrations/get-appwrite-report.md +++ b/docs/examples/1.6.x/console-web/examples/migrations/get-appwrite-report.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/get-firebase-report-o-auth.md b/docs/examples/1.6.x/console-web/examples/migrations/get-firebase-report-o-auth.md deleted file mode 100644 index 055ddfba7cc..00000000000 --- a/docs/examples/1.6.x/console-web/examples/migrations/get-firebase-report-o-auth.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Migrations } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const migrations = new Migrations(client); - -const result = await migrations.getFirebaseReportOAuth( - [], // resources - '<PROJECT_ID>' // projectId -); - -console.log(result); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/get-firebase-report.md b/docs/examples/1.6.x/console-web/examples/migrations/get-firebase-report.md index 112dd629d76..bf1c85eeb63 100644 --- a/docs/examples/1.6.x/console-web/examples/migrations/get-firebase-report.md +++ b/docs/examples/1.6.x/console-web/examples/migrations/get-firebase-report.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/get-n-host-report.md b/docs/examples/1.6.x/console-web/examples/migrations/get-n-host-report.md index ec615014f1b..a983088f0d6 100644 --- a/docs/examples/1.6.x/console-web/examples/migrations/get-n-host-report.md +++ b/docs/examples/1.6.x/console-web/examples/migrations/get-n-host-report.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/get-supabase-report.md b/docs/examples/1.6.x/console-web/examples/migrations/get-supabase-report.md index 5f6dd316e75..d6ea7a97122 100644 --- a/docs/examples/1.6.x/console-web/examples/migrations/get-supabase-report.md +++ b/docs/examples/1.6.x/console-web/examples/migrations/get-supabase-report.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/get.md b/docs/examples/1.6.x/console-web/examples/migrations/get.md index 3397c2faa84..e2c67eb884f 100644 --- a/docs/examples/1.6.x/console-web/examples/migrations/get.md +++ b/docs/examples/1.6.x/console-web/examples/migrations/get.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/list-firebase-projects.md b/docs/examples/1.6.x/console-web/examples/migrations/list-firebase-projects.md deleted file mode 100644 index 833c05fe24d..00000000000 --- a/docs/examples/1.6.x/console-web/examples/migrations/list-firebase-projects.md +++ /dev/null @@ -1,11 +0,0 @@ -import { Client, Migrations } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const migrations = new Migrations(client); - -const result = await migrations.listFirebaseProjects(); - -console.log(result); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/list.md b/docs/examples/1.6.x/console-web/examples/migrations/list.md index 05207f4a6ad..a978e1843e1 100644 --- a/docs/examples/1.6.x/console-web/examples/migrations/list.md +++ b/docs/examples/1.6.x/console-web/examples/migrations/list.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.6.x/console-web/examples/migrations/retry.md b/docs/examples/1.6.x/console-web/examples/migrations/retry.md index e70bc0700f2..f489168d7e5 100644 --- a/docs/examples/1.6.x/console-web/examples/migrations/retry.md +++ b/docs/examples/1.6.x/console-web/examples/migrations/retry.md @@ -1,7 +1,7 @@ import { Client, Migrations } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const migrations = new Migrations(client); diff --git a/docs/examples/1.6.x/console-web/examples/project/create-variable.md b/docs/examples/1.6.x/console-web/examples/project/create-variable.md index 5d72427d9fa..5b027511e97 100644 --- a/docs/examples/1.6.x/console-web/examples/project/create-variable.md +++ b/docs/examples/1.6.x/console-web/examples/project/create-variable.md @@ -1,7 +1,7 @@ import { Client, Project } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const project = new Project(client); diff --git a/docs/examples/1.6.x/console-web/examples/project/delete-variable.md b/docs/examples/1.6.x/console-web/examples/project/delete-variable.md index f7a9cf7f3f7..224691691dc 100644 --- a/docs/examples/1.6.x/console-web/examples/project/delete-variable.md +++ b/docs/examples/1.6.x/console-web/examples/project/delete-variable.md @@ -1,7 +1,7 @@ import { Client, Project } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const project = new Project(client); diff --git a/docs/examples/1.6.x/console-web/examples/project/get-usage.md b/docs/examples/1.6.x/console-web/examples/project/get-usage.md index 28d2e32a501..300311dd8f9 100644 --- a/docs/examples/1.6.x/console-web/examples/project/get-usage.md +++ b/docs/examples/1.6.x/console-web/examples/project/get-usage.md @@ -1,7 +1,7 @@ import { Client, Project, ProjectUsageRange } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const project = new Project(client); diff --git a/docs/examples/1.6.x/console-web/examples/project/get-variable.md b/docs/examples/1.6.x/console-web/examples/project/get-variable.md index 8765ccaf17b..bc30baa3252 100644 --- a/docs/examples/1.6.x/console-web/examples/project/get-variable.md +++ b/docs/examples/1.6.x/console-web/examples/project/get-variable.md @@ -1,7 +1,7 @@ import { Client, Project } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const project = new Project(client); diff --git a/docs/examples/1.6.x/console-web/examples/project/list-variables.md b/docs/examples/1.6.x/console-web/examples/project/list-variables.md index fde2ccfaf03..9c17f8514e7 100644 --- a/docs/examples/1.6.x/console-web/examples/project/list-variables.md +++ b/docs/examples/1.6.x/console-web/examples/project/list-variables.md @@ -1,7 +1,7 @@ import { Client, Project } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const project = new Project(client); diff --git a/docs/examples/1.6.x/console-web/examples/project/update-variable.md b/docs/examples/1.6.x/console-web/examples/project/update-variable.md index 7263032bfb4..85dd5787641 100644 --- a/docs/examples/1.6.x/console-web/examples/project/update-variable.md +++ b/docs/examples/1.6.x/console-web/examples/project/update-variable.md @@ -1,7 +1,7 @@ import { Client, Project } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const project = new Project(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/create-j-w-t.md b/docs/examples/1.6.x/console-web/examples/projects/create-j-w-t.md index 2674a12ae18..7175e266ae0 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/create-j-w-t.md +++ b/docs/examples/1.6.x/console-web/examples/projects/create-j-w-t.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/create-key.md b/docs/examples/1.6.x/console-web/examples/projects/create-key.md index 80ab9cc4293..25bcc125ed4 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/create-key.md +++ b/docs/examples/1.6.x/console-web/examples/projects/create-key.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/create-platform.md b/docs/examples/1.6.x/console-web/examples/projects/create-platform.md index 472517a6257..7e23dd6f9e0 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/create-platform.md +++ b/docs/examples/1.6.x/console-web/examples/projects/create-platform.md @@ -1,7 +1,7 @@ import { Client, Projects, PlatformType } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/create-smtp-test.md b/docs/examples/1.6.x/console-web/examples/projects/create-smtp-test.md index 205a60846df..ab0e184432b 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/create-smtp-test.md +++ b/docs/examples/1.6.x/console-web/examples/projects/create-smtp-test.md @@ -1,7 +1,7 @@ import { Client, Projects, SMTPSecure } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/create-webhook.md b/docs/examples/1.6.x/console-web/examples/projects/create-webhook.md index 066b1b78aaa..62fdac56cdd 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/create-webhook.md +++ b/docs/examples/1.6.x/console-web/examples/projects/create-webhook.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/create.md b/docs/examples/1.6.x/console-web/examples/projects/create.md index 8d1eb12cac7..58efd0b75fe 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/create.md +++ b/docs/examples/1.6.x/console-web/examples/projects/create.md @@ -1,7 +1,7 @@ import { Client, Projects, } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/delete-email-template.md b/docs/examples/1.6.x/console-web/examples/projects/delete-email-template.md index 582c7562602..10e3d302aef 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/delete-email-template.md +++ b/docs/examples/1.6.x/console-web/examples/projects/delete-email-template.md @@ -1,7 +1,7 @@ import { Client, Projects, EmailTemplateType, EmailTemplateLocale } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/delete-key.md b/docs/examples/1.6.x/console-web/examples/projects/delete-key.md index 21643859f70..7ea7dc6fdcb 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/delete-key.md +++ b/docs/examples/1.6.x/console-web/examples/projects/delete-key.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/delete-platform.md b/docs/examples/1.6.x/console-web/examples/projects/delete-platform.md index 8a0dd667ac2..5c71747a64d 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/delete-platform.md +++ b/docs/examples/1.6.x/console-web/examples/projects/delete-platform.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/delete-sms-template.md b/docs/examples/1.6.x/console-web/examples/projects/delete-sms-template.md index cee473637e1..eef3cccae9a 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/delete-sms-template.md +++ b/docs/examples/1.6.x/console-web/examples/projects/delete-sms-template.md @@ -1,7 +1,7 @@ import { Client, Projects, SmsTemplateType, SmsTemplateLocale } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/delete-webhook.md b/docs/examples/1.6.x/console-web/examples/projects/delete-webhook.md index 9b8b0ca0b53..24abaafc66e 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/delete-webhook.md +++ b/docs/examples/1.6.x/console-web/examples/projects/delete-webhook.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/delete.md b/docs/examples/1.6.x/console-web/examples/projects/delete.md index 606b4493889..d868616db23 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/delete.md +++ b/docs/examples/1.6.x/console-web/examples/projects/delete.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/get-email-template.md b/docs/examples/1.6.x/console-web/examples/projects/get-email-template.md index 41da628ce2e..1d27c8c6827 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/get-email-template.md +++ b/docs/examples/1.6.x/console-web/examples/projects/get-email-template.md @@ -1,7 +1,7 @@ import { Client, Projects, EmailTemplateType, EmailTemplateLocale } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/get-key.md b/docs/examples/1.6.x/console-web/examples/projects/get-key.md index 8965f7250a2..79359e298b5 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/get-key.md +++ b/docs/examples/1.6.x/console-web/examples/projects/get-key.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/get-platform.md b/docs/examples/1.6.x/console-web/examples/projects/get-platform.md index aa0b0847263..a17bcb122d9 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/get-platform.md +++ b/docs/examples/1.6.x/console-web/examples/projects/get-platform.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/get-sms-template.md b/docs/examples/1.6.x/console-web/examples/projects/get-sms-template.md index 5c424db1608..0badf1cca4e 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/get-sms-template.md +++ b/docs/examples/1.6.x/console-web/examples/projects/get-sms-template.md @@ -1,7 +1,7 @@ import { Client, Projects, SmsTemplateType, SmsTemplateLocale } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/get-webhook.md b/docs/examples/1.6.x/console-web/examples/projects/get-webhook.md index eff61f8e712..6b6530a04ed 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/get-webhook.md +++ b/docs/examples/1.6.x/console-web/examples/projects/get-webhook.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/get.md b/docs/examples/1.6.x/console-web/examples/projects/get.md index eb537bfa3f2..dbec5dd5438 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/get.md +++ b/docs/examples/1.6.x/console-web/examples/projects/get.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/list-keys.md b/docs/examples/1.6.x/console-web/examples/projects/list-keys.md index a381e9f5088..5701133ba4e 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/list-keys.md +++ b/docs/examples/1.6.x/console-web/examples/projects/list-keys.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/list-platforms.md b/docs/examples/1.6.x/console-web/examples/projects/list-platforms.md index d2dbc82a0cd..214092b6b34 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/list-platforms.md +++ b/docs/examples/1.6.x/console-web/examples/projects/list-platforms.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/list-webhooks.md b/docs/examples/1.6.x/console-web/examples/projects/list-webhooks.md index c0e90e92023..11639bfccf3 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/list-webhooks.md +++ b/docs/examples/1.6.x/console-web/examples/projects/list-webhooks.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/list.md b/docs/examples/1.6.x/console-web/examples/projects/list.md index 01d68f4fb09..0ade65189a3 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/list.md +++ b/docs/examples/1.6.x/console-web/examples/projects/list.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-api-status-all.md b/docs/examples/1.6.x/console-web/examples/projects/update-api-status-all.md index 5378a3511eb..a51ed2df2b1 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-api-status-all.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-api-status-all.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-api-status.md b/docs/examples/1.6.x/console-web/examples/projects/update-api-status.md index 63328d4486d..9cc7dfe8abe 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-api-status.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-api-status.md @@ -1,7 +1,7 @@ import { Client, Projects, } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-auth-duration.md b/docs/examples/1.6.x/console-web/examples/projects/update-auth-duration.md index 82738f3798a..d0d8c67b288 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-auth-duration.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-auth-duration.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-auth-limit.md b/docs/examples/1.6.x/console-web/examples/projects/update-auth-limit.md index e76582e0e25..80f73f871f2 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-auth-limit.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-auth-limit.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-auth-password-dictionary.md b/docs/examples/1.6.x/console-web/examples/projects/update-auth-password-dictionary.md index bd76c9b4b93..1e878c22467 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-auth-password-dictionary.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-auth-password-dictionary.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-auth-password-history.md b/docs/examples/1.6.x/console-web/examples/projects/update-auth-password-history.md index 02aa65bbb83..26a3adcfdee 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-auth-password-history.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-auth-password-history.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-auth-sessions-limit.md b/docs/examples/1.6.x/console-web/examples/projects/update-auth-sessions-limit.md index 69efff8cbae..c1b0e14e912 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-auth-sessions-limit.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-auth-sessions-limit.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-auth-status.md b/docs/examples/1.6.x/console-web/examples/projects/update-auth-status.md index fc38aa64879..d4862282a6f 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-auth-status.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-auth-status.md @@ -1,7 +1,7 @@ import { Client, Projects, AuthMethod } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-email-template.md b/docs/examples/1.6.x/console-web/examples/projects/update-email-template.md index 178193b4522..44467c4f8a3 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-email-template.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-email-template.md @@ -1,7 +1,7 @@ import { Client, Projects, EmailTemplateType, EmailTemplateLocale } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-key.md b/docs/examples/1.6.x/console-web/examples/projects/update-key.md index 287133deee7..492a0ac23d4 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-key.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-key.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-memberships-privacy.md b/docs/examples/1.6.x/console-web/examples/projects/update-memberships-privacy.md new file mode 100644 index 00000000000..31adcd38552 --- /dev/null +++ b/docs/examples/1.6.x/console-web/examples/projects/update-memberships-privacy.md @@ -0,0 +1,16 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>'); // Your project ID + +const projects = new Projects(client); + +const result = await projects.updateMembershipsPrivacy( + '<PROJECT_ID>', // projectId + false, // userName + false, // userEmail + false // mfa +); + +console.log(result); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-mock-numbers.md b/docs/examples/1.6.x/console-web/examples/projects/update-mock-numbers.md index c371e721e9f..245a20c19bc 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-mock-numbers.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-mock-numbers.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-o-auth2.md b/docs/examples/1.6.x/console-web/examples/projects/update-o-auth2.md index fc9cd5a31e5..0671ee38bd0 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-o-auth2.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-o-auth2.md @@ -1,7 +1,7 @@ import { Client, Projects, OAuthProvider } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-personal-data-check.md b/docs/examples/1.6.x/console-web/examples/projects/update-personal-data-check.md index be52d712401..fb0fcffc163 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-personal-data-check.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-personal-data-check.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-platform.md b/docs/examples/1.6.x/console-web/examples/projects/update-platform.md index a34d5cccebf..2f9cc0a4fdc 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-platform.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-platform.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-service-status-all.md b/docs/examples/1.6.x/console-web/examples/projects/update-service-status-all.md index 9a64f375a41..672a1491bc7 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-service-status-all.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-service-status-all.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-service-status.md b/docs/examples/1.6.x/console-web/examples/projects/update-service-status.md index e1af528617d..5d2189e3396 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-service-status.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-service-status.md @@ -1,7 +1,7 @@ import { Client, Projects, ApiService } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-session-alerts.md b/docs/examples/1.6.x/console-web/examples/projects/update-session-alerts.md index f718d251216..65aa353b2b3 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-session-alerts.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-session-alerts.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-sms-template.md b/docs/examples/1.6.x/console-web/examples/projects/update-sms-template.md index 97e70017754..cc801a67c51 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-sms-template.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-sms-template.md @@ -1,7 +1,7 @@ import { Client, Projects, SmsTemplateType, SmsTemplateLocale } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-smtp.md b/docs/examples/1.6.x/console-web/examples/projects/update-smtp.md index d2cba5cff12..605ba0f5e36 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-smtp.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-smtp.md @@ -1,7 +1,7 @@ import { Client, Projects, SMTPSecure } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-team.md b/docs/examples/1.6.x/console-web/examples/projects/update-team.md index 71ef96c9fbb..b7c5d934e23 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-team.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-team.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-webhook-signature.md b/docs/examples/1.6.x/console-web/examples/projects/update-webhook-signature.md index 14a277c0e12..593c6c0fce1 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-webhook-signature.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-webhook-signature.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update-webhook.md b/docs/examples/1.6.x/console-web/examples/projects/update-webhook.md index 3b248a8d29f..18d10051e96 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update-webhook.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update-webhook.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/projects/update.md b/docs/examples/1.6.x/console-web/examples/projects/update.md index c5d2961acbe..8b2d2823caa 100644 --- a/docs/examples/1.6.x/console-web/examples/projects/update.md +++ b/docs/examples/1.6.x/console-web/examples/projects/update.md @@ -1,7 +1,7 @@ import { Client, Projects } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const projects = new Projects(client); diff --git a/docs/examples/1.6.x/console-web/examples/proxy/create-rule.md b/docs/examples/1.6.x/console-web/examples/proxy/create-rule.md index e2eecb0f7f9..0fa61ca7570 100644 --- a/docs/examples/1.6.x/console-web/examples/proxy/create-rule.md +++ b/docs/examples/1.6.x/console-web/examples/proxy/create-rule.md @@ -1,7 +1,7 @@ import { Client, Proxy, } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const proxy = new Proxy(client); diff --git a/docs/examples/1.6.x/console-web/examples/proxy/delete-rule.md b/docs/examples/1.6.x/console-web/examples/proxy/delete-rule.md index 4e8cc42375c..783f06d95cc 100644 --- a/docs/examples/1.6.x/console-web/examples/proxy/delete-rule.md +++ b/docs/examples/1.6.x/console-web/examples/proxy/delete-rule.md @@ -1,7 +1,7 @@ import { Client, Proxy } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const proxy = new Proxy(client); diff --git a/docs/examples/1.6.x/console-web/examples/proxy/get-rule.md b/docs/examples/1.6.x/console-web/examples/proxy/get-rule.md index 3e4ae78a1cb..e69c8210cee 100644 --- a/docs/examples/1.6.x/console-web/examples/proxy/get-rule.md +++ b/docs/examples/1.6.x/console-web/examples/proxy/get-rule.md @@ -1,7 +1,7 @@ import { Client, Proxy } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const proxy = new Proxy(client); diff --git a/docs/examples/1.6.x/console-web/examples/proxy/list-rules.md b/docs/examples/1.6.x/console-web/examples/proxy/list-rules.md index 01b5cc0527c..8c071682926 100644 --- a/docs/examples/1.6.x/console-web/examples/proxy/list-rules.md +++ b/docs/examples/1.6.x/console-web/examples/proxy/list-rules.md @@ -1,7 +1,7 @@ import { Client, Proxy } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const proxy = new Proxy(client); diff --git a/docs/examples/1.6.x/console-web/examples/proxy/update-rule-verification.md b/docs/examples/1.6.x/console-web/examples/proxy/update-rule-verification.md index 6ae0a0274e2..349535cec8c 100644 --- a/docs/examples/1.6.x/console-web/examples/proxy/update-rule-verification.md +++ b/docs/examples/1.6.x/console-web/examples/proxy/update-rule-verification.md @@ -1,7 +1,7 @@ import { Client, Proxy } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const proxy = new Proxy(client); diff --git a/docs/examples/1.6.x/console-web/examples/storage/create-bucket.md b/docs/examples/1.6.x/console-web/examples/storage/create-bucket.md index eec0272c589..a01bb0945fd 100644 --- a/docs/examples/1.6.x/console-web/examples/storage/create-bucket.md +++ b/docs/examples/1.6.x/console-web/examples/storage/create-bucket.md @@ -1,7 +1,7 @@ import { Client, Storage, } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/console-web/examples/storage/create-file.md b/docs/examples/1.6.x/console-web/examples/storage/create-file.md index 21c58dcbb0a..8048772389c 100644 --- a/docs/examples/1.6.x/console-web/examples/storage/create-file.md +++ b/docs/examples/1.6.x/console-web/examples/storage/create-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/console-web/examples/storage/delete-bucket.md b/docs/examples/1.6.x/console-web/examples/storage/delete-bucket.md index c20989887d3..20084fd7e3b 100644 --- a/docs/examples/1.6.x/console-web/examples/storage/delete-bucket.md +++ b/docs/examples/1.6.x/console-web/examples/storage/delete-bucket.md @@ -1,7 +1,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/console-web/examples/storage/delete-file.md b/docs/examples/1.6.x/console-web/examples/storage/delete-file.md index 3e2010a0279..41afa9e375a 100644 --- a/docs/examples/1.6.x/console-web/examples/storage/delete-file.md +++ b/docs/examples/1.6.x/console-web/examples/storage/delete-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/console-web/examples/storage/get-bucket-usage.md b/docs/examples/1.6.x/console-web/examples/storage/get-bucket-usage.md index f28d21773a2..1007454c2e0 100644 --- a/docs/examples/1.6.x/console-web/examples/storage/get-bucket-usage.md +++ b/docs/examples/1.6.x/console-web/examples/storage/get-bucket-usage.md @@ -1,7 +1,7 @@ import { Client, Storage, StorageUsageRange } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/console-web/examples/storage/get-bucket.md b/docs/examples/1.6.x/console-web/examples/storage/get-bucket.md index b69202ddd28..ec77dd2bf57 100644 --- a/docs/examples/1.6.x/console-web/examples/storage/get-bucket.md +++ b/docs/examples/1.6.x/console-web/examples/storage/get-bucket.md @@ -1,7 +1,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/console-web/examples/storage/get-file-download.md b/docs/examples/1.6.x/console-web/examples/storage/get-file-download.md index 2376adc4708..8cef65e7dfd 100644 --- a/docs/examples/1.6.x/console-web/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/console-web/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/console-web/examples/storage/get-file-preview.md b/docs/examples/1.6.x/console-web/examples/storage/get-file-preview.md index ee390c5231c..e844be00c64 100644 --- a/docs/examples/1.6.x/console-web/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/console-web/examples/storage/get-file-preview.md @@ -1,7 +1,7 @@ import { Client, Storage, ImageGravity, ImageFormat } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/console-web/examples/storage/get-file-view.md b/docs/examples/1.6.x/console-web/examples/storage/get-file-view.md index 82689b59675..6444fd0ac83 100644 --- a/docs/examples/1.6.x/console-web/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/console-web/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/console-web/examples/storage/get-file.md b/docs/examples/1.6.x/console-web/examples/storage/get-file.md index f4c0aa9c50b..76658edb0ba 100644 --- a/docs/examples/1.6.x/console-web/examples/storage/get-file.md +++ b/docs/examples/1.6.x/console-web/examples/storage/get-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/console-web/examples/storage/get-usage.md b/docs/examples/1.6.x/console-web/examples/storage/get-usage.md index 6090311d54f..b57f8f8b034 100644 --- a/docs/examples/1.6.x/console-web/examples/storage/get-usage.md +++ b/docs/examples/1.6.x/console-web/examples/storage/get-usage.md @@ -1,7 +1,7 @@ import { Client, Storage, StorageUsageRange } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/console-web/examples/storage/list-buckets.md b/docs/examples/1.6.x/console-web/examples/storage/list-buckets.md index eb4c561386c..f82c01a8793 100644 --- a/docs/examples/1.6.x/console-web/examples/storage/list-buckets.md +++ b/docs/examples/1.6.x/console-web/examples/storage/list-buckets.md @@ -1,7 +1,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/console-web/examples/storage/list-files.md b/docs/examples/1.6.x/console-web/examples/storage/list-files.md index e5039136ff3..9076b8997fd 100644 --- a/docs/examples/1.6.x/console-web/examples/storage/list-files.md +++ b/docs/examples/1.6.x/console-web/examples/storage/list-files.md @@ -1,7 +1,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/console-web/examples/storage/update-bucket.md b/docs/examples/1.6.x/console-web/examples/storage/update-bucket.md index 89593957828..d6c125a213d 100644 --- a/docs/examples/1.6.x/console-web/examples/storage/update-bucket.md +++ b/docs/examples/1.6.x/console-web/examples/storage/update-bucket.md @@ -1,7 +1,7 @@ import { Client, Storage, } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/console-web/examples/storage/update-file.md b/docs/examples/1.6.x/console-web/examples/storage/update-file.md index 2d3fedbfcbc..79830f77d23 100644 --- a/docs/examples/1.6.x/console-web/examples/storage/update-file.md +++ b/docs/examples/1.6.x/console-web/examples/storage/update-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const storage = new Storage(client); diff --git a/docs/examples/1.6.x/console-web/examples/teams/create-membership.md b/docs/examples/1.6.x/console-web/examples/teams/create-membership.md index 2ea76b1987d..18f6b0ab4df 100644 --- a/docs/examples/1.6.x/console-web/examples/teams/create-membership.md +++ b/docs/examples/1.6.x/console-web/examples/teams/create-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/console-web/examples/teams/create.md b/docs/examples/1.6.x/console-web/examples/teams/create.md index 40cd4763c1c..a33e71ad5f5 100644 --- a/docs/examples/1.6.x/console-web/examples/teams/create.md +++ b/docs/examples/1.6.x/console-web/examples/teams/create.md @@ -1,7 +1,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/console-web/examples/teams/delete-membership.md b/docs/examples/1.6.x/console-web/examples/teams/delete-membership.md index c7a307da48d..a63ed467496 100644 --- a/docs/examples/1.6.x/console-web/examples/teams/delete-membership.md +++ b/docs/examples/1.6.x/console-web/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/console-web/examples/teams/delete.md b/docs/examples/1.6.x/console-web/examples/teams/delete.md index fe71deed638..e97cc05cc78 100644 --- a/docs/examples/1.6.x/console-web/examples/teams/delete.md +++ b/docs/examples/1.6.x/console-web/examples/teams/delete.md @@ -1,7 +1,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/console-web/examples/teams/get-membership.md b/docs/examples/1.6.x/console-web/examples/teams/get-membership.md index 99e67ea8ffa..bc31ee1470b 100644 --- a/docs/examples/1.6.x/console-web/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/console-web/examples/teams/get-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/console-web/examples/teams/get-prefs.md b/docs/examples/1.6.x/console-web/examples/teams/get-prefs.md index 9b5c724aadd..394848c5c33 100644 --- a/docs/examples/1.6.x/console-web/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/console-web/examples/teams/get-prefs.md @@ -1,7 +1,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/console-web/examples/teams/get.md b/docs/examples/1.6.x/console-web/examples/teams/get.md index d87b58f05c9..8c752a9828e 100644 --- a/docs/examples/1.6.x/console-web/examples/teams/get.md +++ b/docs/examples/1.6.x/console-web/examples/teams/get.md @@ -1,7 +1,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/console-web/examples/teams/list-logs.md b/docs/examples/1.6.x/console-web/examples/teams/list-logs.md index 76ba484ddba..004e627f0df 100644 --- a/docs/examples/1.6.x/console-web/examples/teams/list-logs.md +++ b/docs/examples/1.6.x/console-web/examples/teams/list-logs.md @@ -1,7 +1,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/console-web/examples/teams/list-memberships.md b/docs/examples/1.6.x/console-web/examples/teams/list-memberships.md index 9f1a6f91220..22fb731175d 100644 --- a/docs/examples/1.6.x/console-web/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/console-web/examples/teams/list-memberships.md @@ -1,7 +1,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/console-web/examples/teams/list.md b/docs/examples/1.6.x/console-web/examples/teams/list.md index b738fe925bd..c51dfaf3899 100644 --- a/docs/examples/1.6.x/console-web/examples/teams/list.md +++ b/docs/examples/1.6.x/console-web/examples/teams/list.md @@ -1,7 +1,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/console-web/examples/teams/update-membership-status.md b/docs/examples/1.6.x/console-web/examples/teams/update-membership-status.md index b7fe25d3eea..c8e608278e9 100644 --- a/docs/examples/1.6.x/console-web/examples/teams/update-membership-status.md +++ b/docs/examples/1.6.x/console-web/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/console-web/examples/teams/update-membership.md b/docs/examples/1.6.x/console-web/examples/teams/update-membership.md index 2e6f75941e6..d3e0164a179 100644 --- a/docs/examples/1.6.x/console-web/examples/teams/update-membership.md +++ b/docs/examples/1.6.x/console-web/examples/teams/update-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/console-web/examples/teams/update-name.md b/docs/examples/1.6.x/console-web/examples/teams/update-name.md index c8792637f13..43703d0c982 100644 --- a/docs/examples/1.6.x/console-web/examples/teams/update-name.md +++ b/docs/examples/1.6.x/console-web/examples/teams/update-name.md @@ -1,7 +1,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/console-web/examples/teams/update-prefs.md b/docs/examples/1.6.x/console-web/examples/teams/update-prefs.md index d81c93dccef..e0acff0a30b 100644 --- a/docs/examples/1.6.x/console-web/examples/teams/update-prefs.md +++ b/docs/examples/1.6.x/console-web/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ import { Client, Teams } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const teams = new Teams(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/create-argon2user.md b/docs/examples/1.6.x/console-web/examples/users/create-argon2user.md index b39f688c8e8..c190225d4b6 100644 --- a/docs/examples/1.6.x/console-web/examples/users/create-argon2user.md +++ b/docs/examples/1.6.x/console-web/examples/users/create-argon2user.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/create-bcrypt-user.md b/docs/examples/1.6.x/console-web/examples/users/create-bcrypt-user.md index 874b4e76250..9c51181890b 100644 --- a/docs/examples/1.6.x/console-web/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.6.x/console-web/examples/users/create-bcrypt-user.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/create-j-w-t.md b/docs/examples/1.6.x/console-web/examples/users/create-j-w-t.md index aefc6208001..7d50fbce034 100644 --- a/docs/examples/1.6.x/console-web/examples/users/create-j-w-t.md +++ b/docs/examples/1.6.x/console-web/examples/users/create-j-w-t.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/create-m-d5user.md b/docs/examples/1.6.x/console-web/examples/users/create-m-d5user.md index da6d1065b4f..610f795ab01 100644 --- a/docs/examples/1.6.x/console-web/examples/users/create-m-d5user.md +++ b/docs/examples/1.6.x/console-web/examples/users/create-m-d5user.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.6.x/console-web/examples/users/create-mfa-recovery-codes.md index 6689014cfa6..ea52af9cf83 100644 --- a/docs/examples/1.6.x/console-web/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/console-web/examples/users/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/create-p-h-pass-user.md b/docs/examples/1.6.x/console-web/examples/users/create-p-h-pass-user.md index 235df140592..c9437c5c381 100644 --- a/docs/examples/1.6.x/console-web/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.6.x/console-web/examples/users/create-p-h-pass-user.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/create-s-h-a-user.md b/docs/examples/1.6.x/console-web/examples/users/create-s-h-a-user.md index a13d0342f09..b70f09c133c 100644 --- a/docs/examples/1.6.x/console-web/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.6.x/console-web/examples/users/create-s-h-a-user.md @@ -1,7 +1,7 @@ import { Client, Users, PasswordHash } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/create-scrypt-modified-user.md b/docs/examples/1.6.x/console-web/examples/users/create-scrypt-modified-user.md index e6e1c42c021..c0a0435b67d 100644 --- a/docs/examples/1.6.x/console-web/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.6.x/console-web/examples/users/create-scrypt-modified-user.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/create-scrypt-user.md b/docs/examples/1.6.x/console-web/examples/users/create-scrypt-user.md index c8e9340c50f..f1cb93637ae 100644 --- a/docs/examples/1.6.x/console-web/examples/users/create-scrypt-user.md +++ b/docs/examples/1.6.x/console-web/examples/users/create-scrypt-user.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/create-session.md b/docs/examples/1.6.x/console-web/examples/users/create-session.md index 55704e5af1a..5393c4408dc 100644 --- a/docs/examples/1.6.x/console-web/examples/users/create-session.md +++ b/docs/examples/1.6.x/console-web/examples/users/create-session.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/create-target.md b/docs/examples/1.6.x/console-web/examples/users/create-target.md index 28daa912020..4c8eac9c45d 100644 --- a/docs/examples/1.6.x/console-web/examples/users/create-target.md +++ b/docs/examples/1.6.x/console-web/examples/users/create-target.md @@ -1,7 +1,7 @@ import { Client, Users, MessagingProviderType } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/create-token.md b/docs/examples/1.6.x/console-web/examples/users/create-token.md index 6c91898d2f4..58e8c9f035c 100644 --- a/docs/examples/1.6.x/console-web/examples/users/create-token.md +++ b/docs/examples/1.6.x/console-web/examples/users/create-token.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/create.md b/docs/examples/1.6.x/console-web/examples/users/create.md index 8959c127d43..131ef1290c5 100644 --- a/docs/examples/1.6.x/console-web/examples/users/create.md +++ b/docs/examples/1.6.x/console-web/examples/users/create.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/delete-identity.md b/docs/examples/1.6.x/console-web/examples/users/delete-identity.md index b8ef32e24df..cf7425c8437 100644 --- a/docs/examples/1.6.x/console-web/examples/users/delete-identity.md +++ b/docs/examples/1.6.x/console-web/examples/users/delete-identity.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/delete-mfa-authenticator.md b/docs/examples/1.6.x/console-web/examples/users/delete-mfa-authenticator.md index 586940ecb0c..023686ae269 100644 --- a/docs/examples/1.6.x/console-web/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/console-web/examples/users/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ import { Client, Users, AuthenticatorType } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/delete-session.md b/docs/examples/1.6.x/console-web/examples/users/delete-session.md index 3380f90cc47..ca6880431b1 100644 --- a/docs/examples/1.6.x/console-web/examples/users/delete-session.md +++ b/docs/examples/1.6.x/console-web/examples/users/delete-session.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/delete-sessions.md b/docs/examples/1.6.x/console-web/examples/users/delete-sessions.md index 3b0e153b3f1..1137a8b29b3 100644 --- a/docs/examples/1.6.x/console-web/examples/users/delete-sessions.md +++ b/docs/examples/1.6.x/console-web/examples/users/delete-sessions.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/delete-target.md b/docs/examples/1.6.x/console-web/examples/users/delete-target.md index 1877265f085..386d8a90b56 100644 --- a/docs/examples/1.6.x/console-web/examples/users/delete-target.md +++ b/docs/examples/1.6.x/console-web/examples/users/delete-target.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/delete.md b/docs/examples/1.6.x/console-web/examples/users/delete.md index 60a7e16fb43..1d4b1d0e1ca 100644 --- a/docs/examples/1.6.x/console-web/examples/users/delete.md +++ b/docs/examples/1.6.x/console-web/examples/users/delete.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.6.x/console-web/examples/users/get-mfa-recovery-codes.md index 7b74479420b..02d17649c80 100644 --- a/docs/examples/1.6.x/console-web/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/console-web/examples/users/get-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/get-prefs.md b/docs/examples/1.6.x/console-web/examples/users/get-prefs.md index 882cbd6c95f..b24f2bd3aee 100644 --- a/docs/examples/1.6.x/console-web/examples/users/get-prefs.md +++ b/docs/examples/1.6.x/console-web/examples/users/get-prefs.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/get-target.md b/docs/examples/1.6.x/console-web/examples/users/get-target.md index a6b89622461..cfa7d3d5cda 100644 --- a/docs/examples/1.6.x/console-web/examples/users/get-target.md +++ b/docs/examples/1.6.x/console-web/examples/users/get-target.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/get-usage.md b/docs/examples/1.6.x/console-web/examples/users/get-usage.md index 5b559158b37..bd87faf10f1 100644 --- a/docs/examples/1.6.x/console-web/examples/users/get-usage.md +++ b/docs/examples/1.6.x/console-web/examples/users/get-usage.md @@ -1,7 +1,7 @@ import { Client, Users, UserUsageRange } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/get.md b/docs/examples/1.6.x/console-web/examples/users/get.md index 84f0f33207f..77f5006890a 100644 --- a/docs/examples/1.6.x/console-web/examples/users/get.md +++ b/docs/examples/1.6.x/console-web/examples/users/get.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/list-identities.md b/docs/examples/1.6.x/console-web/examples/users/list-identities.md index 0836749535e..34b92900a7e 100644 --- a/docs/examples/1.6.x/console-web/examples/users/list-identities.md +++ b/docs/examples/1.6.x/console-web/examples/users/list-identities.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/list-logs.md b/docs/examples/1.6.x/console-web/examples/users/list-logs.md index 246cf260ce7..85e6cf50719 100644 --- a/docs/examples/1.6.x/console-web/examples/users/list-logs.md +++ b/docs/examples/1.6.x/console-web/examples/users/list-logs.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/list-memberships.md b/docs/examples/1.6.x/console-web/examples/users/list-memberships.md index 98189427548..cbddc194c59 100644 --- a/docs/examples/1.6.x/console-web/examples/users/list-memberships.md +++ b/docs/examples/1.6.x/console-web/examples/users/list-memberships.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/list-mfa-factors.md b/docs/examples/1.6.x/console-web/examples/users/list-mfa-factors.md index 13d5571554d..fe1dd23594a 100644 --- a/docs/examples/1.6.x/console-web/examples/users/list-mfa-factors.md +++ b/docs/examples/1.6.x/console-web/examples/users/list-mfa-factors.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/list-sessions.md b/docs/examples/1.6.x/console-web/examples/users/list-sessions.md index b99d79b7453..e3d5d6e51de 100644 --- a/docs/examples/1.6.x/console-web/examples/users/list-sessions.md +++ b/docs/examples/1.6.x/console-web/examples/users/list-sessions.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/list-targets.md b/docs/examples/1.6.x/console-web/examples/users/list-targets.md index 3374bf91c7e..58f4079aee0 100644 --- a/docs/examples/1.6.x/console-web/examples/users/list-targets.md +++ b/docs/examples/1.6.x/console-web/examples/users/list-targets.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/list.md b/docs/examples/1.6.x/console-web/examples/users/list.md index 0876ef39508..d2189b9c939 100644 --- a/docs/examples/1.6.x/console-web/examples/users/list.md +++ b/docs/examples/1.6.x/console-web/examples/users/list.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/update-email-verification.md b/docs/examples/1.6.x/console-web/examples/users/update-email-verification.md index 869424d51a7..3fedd4b86f5 100644 --- a/docs/examples/1.6.x/console-web/examples/users/update-email-verification.md +++ b/docs/examples/1.6.x/console-web/examples/users/update-email-verification.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/update-email.md b/docs/examples/1.6.x/console-web/examples/users/update-email.md index 2e47e0106d2..99223767784 100644 --- a/docs/examples/1.6.x/console-web/examples/users/update-email.md +++ b/docs/examples/1.6.x/console-web/examples/users/update-email.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/update-labels.md b/docs/examples/1.6.x/console-web/examples/users/update-labels.md index 5c8cddafafb..4fc268fc3c4 100644 --- a/docs/examples/1.6.x/console-web/examples/users/update-labels.md +++ b/docs/examples/1.6.x/console-web/examples/users/update-labels.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.6.x/console-web/examples/users/update-mfa-recovery-codes.md index 2705a2acd99..041cd9098be 100644 --- a/docs/examples/1.6.x/console-web/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/console-web/examples/users/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/update-mfa.md b/docs/examples/1.6.x/console-web/examples/users/update-mfa.md index 50a8a1d3661..af710ecd488 100644 --- a/docs/examples/1.6.x/console-web/examples/users/update-mfa.md +++ b/docs/examples/1.6.x/console-web/examples/users/update-mfa.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/update-name.md b/docs/examples/1.6.x/console-web/examples/users/update-name.md index e615c4695e1..b57cb33730d 100644 --- a/docs/examples/1.6.x/console-web/examples/users/update-name.md +++ b/docs/examples/1.6.x/console-web/examples/users/update-name.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/update-password.md b/docs/examples/1.6.x/console-web/examples/users/update-password.md index 3e8c33cb5bc..e9c7f9b51d5 100644 --- a/docs/examples/1.6.x/console-web/examples/users/update-password.md +++ b/docs/examples/1.6.x/console-web/examples/users/update-password.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/update-phone-verification.md b/docs/examples/1.6.x/console-web/examples/users/update-phone-verification.md index 87cc8ee1685..a29e38591cb 100644 --- a/docs/examples/1.6.x/console-web/examples/users/update-phone-verification.md +++ b/docs/examples/1.6.x/console-web/examples/users/update-phone-verification.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/update-phone.md b/docs/examples/1.6.x/console-web/examples/users/update-phone.md index 65448535330..a87780161b0 100644 --- a/docs/examples/1.6.x/console-web/examples/users/update-phone.md +++ b/docs/examples/1.6.x/console-web/examples/users/update-phone.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/update-prefs.md b/docs/examples/1.6.x/console-web/examples/users/update-prefs.md index d65a5e736ea..7d9993bbb19 100644 --- a/docs/examples/1.6.x/console-web/examples/users/update-prefs.md +++ b/docs/examples/1.6.x/console-web/examples/users/update-prefs.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/update-status.md b/docs/examples/1.6.x/console-web/examples/users/update-status.md index 4e61a50cf59..5e823e7a48a 100644 --- a/docs/examples/1.6.x/console-web/examples/users/update-status.md +++ b/docs/examples/1.6.x/console-web/examples/users/update-status.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/users/update-target.md b/docs/examples/1.6.x/console-web/examples/users/update-target.md index 2872b9a57f3..ed33fe9bb00 100644 --- a/docs/examples/1.6.x/console-web/examples/users/update-target.md +++ b/docs/examples/1.6.x/console-web/examples/users/update-target.md @@ -1,7 +1,7 @@ import { Client, Users } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const users = new Users(client); diff --git a/docs/examples/1.6.x/console-web/examples/vcs/create-repository-detection.md b/docs/examples/1.6.x/console-web/examples/vcs/create-repository-detection.md index 4f269bf1a77..e9fa0fa4504 100644 --- a/docs/examples/1.6.x/console-web/examples/vcs/create-repository-detection.md +++ b/docs/examples/1.6.x/console-web/examples/vcs/create-repository-detection.md @@ -1,7 +1,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); diff --git a/docs/examples/1.6.x/console-web/examples/vcs/create-repository.md b/docs/examples/1.6.x/console-web/examples/vcs/create-repository.md index d48e174eac6..1d08ac5b09f 100644 --- a/docs/examples/1.6.x/console-web/examples/vcs/create-repository.md +++ b/docs/examples/1.6.x/console-web/examples/vcs/create-repository.md @@ -1,7 +1,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); diff --git a/docs/examples/1.6.x/console-web/examples/vcs/delete-installation.md b/docs/examples/1.6.x/console-web/examples/vcs/delete-installation.md index 0f49408ecb1..3f760c09b66 100644 --- a/docs/examples/1.6.x/console-web/examples/vcs/delete-installation.md +++ b/docs/examples/1.6.x/console-web/examples/vcs/delete-installation.md @@ -1,7 +1,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); diff --git a/docs/examples/1.6.x/console-web/examples/vcs/get-installation.md b/docs/examples/1.6.x/console-web/examples/vcs/get-installation.md index ec4b6d6729f..4230f2bd9a8 100644 --- a/docs/examples/1.6.x/console-web/examples/vcs/get-installation.md +++ b/docs/examples/1.6.x/console-web/examples/vcs/get-installation.md @@ -1,7 +1,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); diff --git a/docs/examples/1.6.x/console-web/examples/vcs/get-repository-contents.md b/docs/examples/1.6.x/console-web/examples/vcs/get-repository-contents.md index 8a2fc294cce..8a04ba1ae45 100644 --- a/docs/examples/1.6.x/console-web/examples/vcs/get-repository-contents.md +++ b/docs/examples/1.6.x/console-web/examples/vcs/get-repository-contents.md @@ -1,7 +1,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); diff --git a/docs/examples/1.6.x/console-web/examples/vcs/get-repository.md b/docs/examples/1.6.x/console-web/examples/vcs/get-repository.md index 2161d0c22bd..516265a0c84 100644 --- a/docs/examples/1.6.x/console-web/examples/vcs/get-repository.md +++ b/docs/examples/1.6.x/console-web/examples/vcs/get-repository.md @@ -1,7 +1,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); diff --git a/docs/examples/1.6.x/console-web/examples/vcs/list-installations.md b/docs/examples/1.6.x/console-web/examples/vcs/list-installations.md index 8213b832591..1ba1e646157 100644 --- a/docs/examples/1.6.x/console-web/examples/vcs/list-installations.md +++ b/docs/examples/1.6.x/console-web/examples/vcs/list-installations.md @@ -1,7 +1,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); diff --git a/docs/examples/1.6.x/console-web/examples/vcs/list-repositories.md b/docs/examples/1.6.x/console-web/examples/vcs/list-repositories.md index e69f9eeb756..533bd8d0fb6 100644 --- a/docs/examples/1.6.x/console-web/examples/vcs/list-repositories.md +++ b/docs/examples/1.6.x/console-web/examples/vcs/list-repositories.md @@ -1,7 +1,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); diff --git a/docs/examples/1.6.x/console-web/examples/vcs/list-repository-branches.md b/docs/examples/1.6.x/console-web/examples/vcs/list-repository-branches.md index 4d3ab499125..ba6b86a053c 100644 --- a/docs/examples/1.6.x/console-web/examples/vcs/list-repository-branches.md +++ b/docs/examples/1.6.x/console-web/examples/vcs/list-repository-branches.md @@ -1,7 +1,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); diff --git a/docs/examples/1.6.x/console-web/examples/vcs/update-external-deployments.md b/docs/examples/1.6.x/console-web/examples/vcs/update-external-deployments.md index 8ad52a64dc0..31425cb8832 100644 --- a/docs/examples/1.6.x/console-web/examples/vcs/update-external-deployments.md +++ b/docs/examples/1.6.x/console-web/examples/vcs/update-external-deployments.md @@ -1,7 +1,7 @@ import { Client, Vcs } from "@appwrite.io/console"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const vcs = new Vcs(client); diff --git a/docs/examples/1.6.x/server-dart/examples/account/create-anonymous-session.md b/docs/examples/1.6.x/server-dart/examples/account/create-anonymous-session.md index 2363017b6e2..7b1cc083048 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/server-dart/examples/account/create-anonymous-session.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/server-dart/examples/account/create-email-password-session.md b/docs/examples/1.6.x/server-dart/examples/account/create-email-password-session.md index bd423de9441..2305367d942 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/create-email-password-session.md +++ b/docs/examples/1.6.x/server-dart/examples/account/create-email-password-session.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/server-dart/examples/account/create-email-token.md b/docs/examples/1.6.x/server-dart/examples/account/create-email-token.md index b57a5f06417..e9696f92bf6 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/create-email-token.md +++ b/docs/examples/1.6.x/server-dart/examples/account/create-email-token.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/server-dart/examples/account/create-j-w-t.md b/docs/examples/1.6.x/server-dart/examples/account/create-j-w-t.md index 205e244917f..4288c71ce15 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/create-j-w-t.md +++ b/docs/examples/1.6.x/server-dart/examples/account/create-j-w-t.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/server-dart/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/server-dart/examples/account/create-magic-u-r-l-token.md index 3c071b825ed..791b9cbd4f7 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/server-dart/examples/account/create-magic-u-r-l-token.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/server-dart/examples/account/create-mfa-authenticator.md b/docs/examples/1.6.x/server-dart/examples/account/create-mfa-authenticator.md index 38ffb3630c9..87797fa645a 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-dart/examples/account/create-mfa-authenticator.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/create-mfa-challenge.md b/docs/examples/1.6.x/server-dart/examples/account/create-mfa-challenge.md index 5578e32fcb6..62f3eaf2c26 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/server-dart/examples/account/create-mfa-challenge.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/server-dart/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-dart/examples/account/create-mfa-recovery-codes.md index d89ccd1d287..5ebe0e9e921 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-dart/examples/account/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/server-dart/examples/account/create-o-auth2token.md index a23fa7231b3..4a26a9fd7fa 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/server-dart/examples/account/create-o-auth2token.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/server-dart/examples/account/create-phone-token.md b/docs/examples/1.6.x/server-dart/examples/account/create-phone-token.md index e59ad503e11..7011b3cf48c 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/create-phone-token.md +++ b/docs/examples/1.6.x/server-dart/examples/account/create-phone-token.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/server-dart/examples/account/create-phone-verification.md b/docs/examples/1.6.x/server-dart/examples/account/create-phone-verification.md index a47ad80f92a..8616834b27d 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/create-phone-verification.md +++ b/docs/examples/1.6.x/server-dart/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/create-recovery.md b/docs/examples/1.6.x/server-dart/examples/account/create-recovery.md index 0479b71c2d7..f56d4227a9f 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/create-recovery.md +++ b/docs/examples/1.6.x/server-dart/examples/account/create-recovery.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/create-session.md b/docs/examples/1.6.x/server-dart/examples/account/create-session.md index 209f5502d5c..1e56fc71bb9 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/create-session.md +++ b/docs/examples/1.6.x/server-dart/examples/account/create-session.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/server-dart/examples/account/create-verification.md b/docs/examples/1.6.x/server-dart/examples/account/create-verification.md index 414a193aa32..150833cd6b2 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/create-verification.md +++ b/docs/examples/1.6.x/server-dart/examples/account/create-verification.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/create.md b/docs/examples/1.6.x/server-dart/examples/account/create.md index 59523e6201d..f0384f46f4f 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/create.md +++ b/docs/examples/1.6.x/server-dart/examples/account/create.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/server-dart/examples/account/delete-identity.md b/docs/examples/1.6.x/server-dart/examples/account/delete-identity.md index a0db3ccc705..124e6adad44 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/delete-identity.md +++ b/docs/examples/1.6.x/server-dart/examples/account/delete-identity.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-dart/examples/account/delete-mfa-authenticator.md index 27a5883ca84..efd5263e22d 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-dart/examples/account/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/delete-session.md b/docs/examples/1.6.x/server-dart/examples/account/delete-session.md index ffbe4160766..d02808bbe9f 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/delete-session.md +++ b/docs/examples/1.6.x/server-dart/examples/account/delete-session.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/delete-sessions.md b/docs/examples/1.6.x/server-dart/examples/account/delete-sessions.md index ae93cf9b590..9406ca39d0d 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/delete-sessions.md +++ b/docs/examples/1.6.x/server-dart/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-dart/examples/account/get-mfa-recovery-codes.md index 2b2018315e2..b073d402386 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-dart/examples/account/get-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/get-prefs.md b/docs/examples/1.6.x/server-dart/examples/account/get-prefs.md index 355075c85c3..94e10db1b6a 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/server-dart/examples/account/get-prefs.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/get-session.md b/docs/examples/1.6.x/server-dart/examples/account/get-session.md index c4b4acedb6d..3a81954bd92 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/get-session.md +++ b/docs/examples/1.6.x/server-dart/examples/account/get-session.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/get.md b/docs/examples/1.6.x/server-dart/examples/account/get.md index 64c923ce0da..76a139a46af 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/get.md +++ b/docs/examples/1.6.x/server-dart/examples/account/get.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/list-identities.md b/docs/examples/1.6.x/server-dart/examples/account/list-identities.md index 289963709bf..a0b67851c2e 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/list-identities.md +++ b/docs/examples/1.6.x/server-dart/examples/account/list-identities.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/list-logs.md b/docs/examples/1.6.x/server-dart/examples/account/list-logs.md index 78f527ca990..d3c50af1d5a 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/list-logs.md +++ b/docs/examples/1.6.x/server-dart/examples/account/list-logs.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/server-dart/examples/account/list-mfa-factors.md index 1140e5c0e05..32b269fbd7e 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-dart/examples/account/list-mfa-factors.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/list-sessions.md b/docs/examples/1.6.x/server-dart/examples/account/list-sessions.md index 0a512d439dd..73cf462af68 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/server-dart/examples/account/list-sessions.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-email.md b/docs/examples/1.6.x/server-dart/examples/account/update-email.md index 91c701f8aff..cf6a56edcc8 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-email.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-email.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-m-f-a.md b/docs/examples/1.6.x/server-dart/examples/account/update-m-f-a.md index f029979ea99..947d862e463 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-m-f-a.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/server-dart/examples/account/update-magic-u-r-l-session.md index e9f24349c16..475e464ff0a 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-magic-u-r-l-session.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/server-dart/examples/account/update-mfa-authenticator.md index 3f5d6997e7d..5a0f98f578e 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-mfa-authenticator.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/server-dart/examples/account/update-mfa-challenge.md index fd64c61cf93..749c4cd6a01 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-mfa-challenge.md @@ -1,13 +1,13 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with Account account = Account(client); - result = await account.updateMfaChallenge( +Session result = await account.updateMfaChallenge( challengeId: '<CHALLENGE_ID>', otp: '<OTP>', ); diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-dart/examples/account/update-mfa-recovery-codes.md index 0ee6e92d61e..7e274f0ead7 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-name.md b/docs/examples/1.6.x/server-dart/examples/account/update-name.md index 4eb46121bc0..82cc3358a10 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-name.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-name.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-password.md b/docs/examples/1.6.x/server-dart/examples/account/update-password.md index d379268e396..27d360ba519 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-password.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-password.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-phone-session.md b/docs/examples/1.6.x/server-dart/examples/account/update-phone-session.md index 0648c637127..046dd0a7016 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-phone-session.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-phone-session.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID Account account = Account(client); diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-phone-verification.md b/docs/examples/1.6.x/server-dart/examples/account/update-phone-verification.md index bb7443dda2d..f4b0c6fe6a1 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-phone-verification.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-phone.md b/docs/examples/1.6.x/server-dart/examples/account/update-phone.md index 996e057b629..d861561b60a 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-phone.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-phone.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-prefs.md b/docs/examples/1.6.x/server-dart/examples/account/update-prefs.md index 1c555085b8f..f4533cbea63 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-prefs.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-recovery.md b/docs/examples/1.6.x/server-dart/examples/account/update-recovery.md index 5c4c0735519..162ad58ac90 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-recovery.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-recovery.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-session.md b/docs/examples/1.6.x/server-dart/examples/account/update-session.md index cb1930c1343..a317a0840a1 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-session.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-session.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-status.md b/docs/examples/1.6.x/server-dart/examples/account/update-status.md index 502522ce9ae..2ee15d603cc 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-status.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-status.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/account/update-verification.md b/docs/examples/1.6.x/server-dart/examples/account/update-verification.md index 1f0d0c1abb9..61904fd3f0d 100644 --- a/docs/examples/1.6.x/server-dart/examples/account/update-verification.md +++ b/docs/examples/1.6.x/server-dart/examples/account/update-verification.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/avatars/get-browser.md b/docs/examples/1.6.x/server-dart/examples/avatars/get-browser.md index ba298590a46..902c719af52 100644 --- a/docs/examples/1.6.x/server-dart/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/server-dart/examples/avatars/get-browser.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/server-dart/examples/avatars/get-credit-card.md index e8495823a2b..b242d271230 100644 --- a/docs/examples/1.6.x/server-dart/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/server-dart/examples/avatars/get-credit-card.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/avatars/get-favicon.md b/docs/examples/1.6.x/server-dart/examples/avatars/get-favicon.md index d6d8c654b91..d4cd8eae837 100644 --- a/docs/examples/1.6.x/server-dart/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/server-dart/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/avatars/get-flag.md b/docs/examples/1.6.x/server-dart/examples/avatars/get-flag.md index cda8d0fdb67..5eaed135ae2 100644 --- a/docs/examples/1.6.x/server-dart/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/server-dart/examples/avatars/get-flag.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/avatars/get-image.md b/docs/examples/1.6.x/server-dart/examples/avatars/get-image.md index da2541f37ef..b6db1858c53 100644 --- a/docs/examples/1.6.x/server-dart/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/server-dart/examples/avatars/get-image.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/avatars/get-initials.md b/docs/examples/1.6.x/server-dart/examples/avatars/get-initials.md index f1261d1c054..7dc0989b4da 100644 --- a/docs/examples/1.6.x/server-dart/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/server-dart/examples/avatars/get-initials.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/avatars/get-q-r.md b/docs/examples/1.6.x/server-dart/examples/avatars/get-q-r.md index 1a9e906ca40..f64fe8a4ffb 100644 --- a/docs/examples/1.6.x/server-dart/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/server-dart/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/databases/create-boolean-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/create-boolean-attribute.md index 65537bab512..13ca992889d 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/create-boolean-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/create-collection.md b/docs/examples/1.6.x/server-dart/examples/databases/create-collection.md index 8b01aaad435..61401761ecc 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/create-collection.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/create-collection.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/create-datetime-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/create-datetime-attribute.md index 6a53b0457f7..25910114237 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/create-datetime-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/create-document.md b/docs/examples/1.6.x/server-dart/examples/databases/create-document.md index 10382e3a786..1d58fc586c6 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/create-document.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/create-document.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/databases/create-documents.md b/docs/examples/1.6.x/server-dart/examples/databases/create-documents.md new file mode 100644 index 00000000000..9faa4ebf6f8 --- /dev/null +++ b/docs/examples/1.6.x/server-dart/examples/databases/create-documents.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +Databases databases = Databases(client); + +DocumentList result = await databases.createDocuments( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + documents: [], +); diff --git a/docs/examples/1.6.x/server-dart/examples/databases/create-email-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/create-email-attribute.md index fe77148e999..216d020260a 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/create-email-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/create-email-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/create-enum-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/create-enum-attribute.md index f0bdb6a67f0..d45ca4476cd 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/create-enum-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/create-float-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/create-float-attribute.md index 29568ca011b..75d47f44adc 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/create-float-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/create-float-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/create-index.md b/docs/examples/1.6.x/server-dart/examples/databases/create-index.md index b7c0c04ba9c..ff847a94935 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/create-index.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/create-index.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/create-integer-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/create-integer-attribute.md index 35b60850663..6511696f922 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/create-integer-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/create-ip-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/create-ip-attribute.md index a7c3116b77a..10ddb47bdf3 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/create-ip-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/create-relationship-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/create-relationship-attribute.md index 37ba8eb775b..dcdf34fcb84 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/create-relationship-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/create-string-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/create-string-attribute.md index 974c7dadfa7..8785ea76474 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/create-string-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/create-string-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/create-url-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/create-url-attribute.md index 034ee47dd91..9088f8dfeb6 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/create-url-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/create-url-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/create.md b/docs/examples/1.6.x/server-dart/examples/databases/create.md index 199b982f311..a2e978bd30f 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/create.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/create.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/delete-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/delete-attribute.md index f0bcf3b0548..f9cbbd42ef9 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/delete-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/delete-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/delete-collection.md b/docs/examples/1.6.x/server-dart/examples/databases/delete-collection.md index b97f27407a5..919e17891b6 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/delete-collection.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/delete-collection.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/delete-document.md b/docs/examples/1.6.x/server-dart/examples/databases/delete-document.md index 89347017518..dd04d899594 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/delete-document.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/delete-document.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/databases/delete-documents.md b/docs/examples/1.6.x/server-dart/examples/databases/delete-documents.md new file mode 100644 index 00000000000..66bd5584c7d --- /dev/null +++ b/docs/examples/1.6.x/server-dart/examples/databases/delete-documents.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +await databases.deleteDocuments( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + queries: [], // (optional) +); diff --git a/docs/examples/1.6.x/server-dart/examples/databases/delete-index.md b/docs/examples/1.6.x/server-dart/examples/databases/delete-index.md index 9f0e92f69e0..f16c84b9a7c 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/delete-index.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/delete-index.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/delete.md b/docs/examples/1.6.x/server-dart/examples/databases/delete.md index 0d4853d652d..5e9042e542d 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/delete.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/delete.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/get-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/get-attribute.md index 33e4a4a6958..8329f8db052 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/get-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/get-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/get-collection.md b/docs/examples/1.6.x/server-dart/examples/databases/get-collection.md index 42dcea3423b..b6784201288 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/get-collection.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/get-collection.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/get-document.md b/docs/examples/1.6.x/server-dart/examples/databases/get-document.md index ecda80ef376..45745186e62 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/get-document.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/get-document.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/databases/get-index.md b/docs/examples/1.6.x/server-dart/examples/databases/get-index.md index 0bbf4f555bf..848257960af 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/get-index.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/get-index.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/get.md b/docs/examples/1.6.x/server-dart/examples/databases/get.md index b2c0a0a2c7c..28d3d2bd14a 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/get.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/get.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/list-attributes.md b/docs/examples/1.6.x/server-dart/examples/databases/list-attributes.md index 4bacaa976a4..64aaf331b84 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/list-attributes.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/list-attributes.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/list-collections.md b/docs/examples/1.6.x/server-dart/examples/databases/list-collections.md index e9bc510793b..69c2a0fe61c 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/list-collections.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/list-collections.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/list-documents.md b/docs/examples/1.6.x/server-dart/examples/databases/list-documents.md index 244d4a7d186..cdecc59e33d 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/list-documents.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/databases/list-indexes.md b/docs/examples/1.6.x/server-dart/examples/databases/list-indexes.md index e9534e78204..38b95d5d5bb 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/list-indexes.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/list-indexes.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/list.md b/docs/examples/1.6.x/server-dart/examples/databases/list.md index 2678ede98fa..2de4e97cf28 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/list.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/list.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/update-boolean-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/update-boolean-attribute.md index 489ce4099ad..46e3ef4ce31 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/update-boolean-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/update-collection.md b/docs/examples/1.6.x/server-dart/examples/databases/update-collection.md index a8d1593c78c..c3c565b231e 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/update-collection.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/update-collection.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/update-datetime-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/update-datetime-attribute.md index 73f61e26d76..ddc8f26a707 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/update-datetime-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/update-document.md b/docs/examples/1.6.x/server-dart/examples/databases/update-document.md index c25b23f2b00..47a1867c109 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/update-document.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/update-document.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/databases/update-documents.md b/docs/examples/1.6.x/server-dart/examples/databases/update-documents.md new file mode 100644 index 00000000000..70b7cbf86d1 --- /dev/null +++ b/docs/examples/1.6.x/server-dart/examples/databases/update-documents.md @@ -0,0 +1,15 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +DocumentList result = await databases.updateDocuments( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + data: {}, // (optional) + queries: [], // (optional) +); diff --git a/docs/examples/1.6.x/server-dart/examples/databases/update-email-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/update-email-attribute.md index 37bcd4d7e78..ee0e09719ee 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/update-email-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/update-email-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/update-enum-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/update-enum-attribute.md index f47078c8919..61ef4d0835c 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/update-enum-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/update-float-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/update-float-attribute.md index 8e023bc457e..36f360eebc5 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/update-float-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/update-float-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -12,8 +12,8 @@ AttributeFloat result = await databases.updateFloatAttribute( collectionId: '<COLLECTION_ID>', key: '', xrequired: false, - min: 0, - max: 0, xdefault: 0, + min: 0, // (optional) + max: 0, // (optional) newKey: '', // (optional) ); diff --git a/docs/examples/1.6.x/server-dart/examples/databases/update-integer-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/update-integer-attribute.md index 1dac743a279..9089cc8bf65 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/update-integer-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -12,8 +12,8 @@ AttributeInteger result = await databases.updateIntegerAttribute( collectionId: '<COLLECTION_ID>', key: '', xrequired: false, - min: 0, - max: 0, xdefault: 0, + min: 0, // (optional) + max: 0, // (optional) newKey: '', // (optional) ); diff --git a/docs/examples/1.6.x/server-dart/examples/databases/update-ip-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/update-ip-attribute.md index dc83bd00438..e698a59e3a4 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/update-ip-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/update-relationship-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/update-relationship-attribute.md index 6d14f52d19d..28aac9643f8 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/update-relationship-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/update-string-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/update-string-attribute.md index c2f3804c664..7674f51c5b9 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/update-string-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/update-string-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -13,6 +13,6 @@ AttributeString result = await databases.updateStringAttribute( key: '', xrequired: false, xdefault: '<DEFAULT>', - size: 0, // (optional) + size: 1, // (optional) newKey: '', // (optional) ); diff --git a/docs/examples/1.6.x/server-dart/examples/databases/update-url-attribute.md b/docs/examples/1.6.x/server-dart/examples/databases/update-url-attribute.md index 20c11fafc52..3aaa01b441c 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/update-url-attribute.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/update-url-attribute.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/update.md b/docs/examples/1.6.x/server-dart/examples/databases/update.md index 0139f280d1b..a46f116389a 100644 --- a/docs/examples/1.6.x/server-dart/examples/databases/update.md +++ b/docs/examples/1.6.x/server-dart/examples/databases/update.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/databases/upsert-documents.md b/docs/examples/1.6.x/server-dart/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..46611b3b1ec --- /dev/null +++ b/docs/examples/1.6.x/server-dart/examples/databases/upsert-documents.md @@ -0,0 +1,14 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Databases databases = Databases(client); + +DocumentList result = await databases.upsertDocuments( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + documents: [], // (optional) +); diff --git a/docs/examples/1.6.x/server-dart/examples/functions/create-build.md b/docs/examples/1.6.x/server-dart/examples/functions/create-build.md index 2835f8239f5..eb7ae5d0de2 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/create-build.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/create-build.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/create-deployment.md b/docs/examples/1.6.x/server-dart/examples/functions/create-deployment.md index 297bdc612af..f459b3dd89b 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/create-deployment.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/create-deployment.md @@ -2,7 +2,7 @@ import 'dart:io'; import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/create-execution.md b/docs/examples/1.6.x/server-dart/examples/functions/create-execution.md index 2bf146e285a..2ae64bce551 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/create-execution.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/create-execution.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/functions/create-variable.md b/docs/examples/1.6.x/server-dart/examples/functions/create-variable.md index 5333f88dfea..b46e5752103 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/create-variable.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/create-variable.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/create.md b/docs/examples/1.6.x/server-dart/examples/functions/create.md index b4283a9953f..93c78a141e7 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/create.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/create.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/delete-deployment.md b/docs/examples/1.6.x/server-dart/examples/functions/delete-deployment.md index e793812468b..8e4167f7565 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/delete-deployment.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/delete-deployment.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/delete-execution.md b/docs/examples/1.6.x/server-dart/examples/functions/delete-execution.md index a69267f6c4a..d077bc93287 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/delete-execution.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/delete-execution.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/delete-variable.md b/docs/examples/1.6.x/server-dart/examples/functions/delete-variable.md index 1a52f9168ab..d4b28328309 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/delete-variable.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/delete-variable.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/delete.md b/docs/examples/1.6.x/server-dart/examples/functions/delete.md index 9ee35f1a5fc..38d360b7641 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/delete.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/delete.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/get-deployment-download.md b/docs/examples/1.6.x/server-dart/examples/functions/get-deployment-download.md index bbf9561ed76..c1add89be18 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/get-deployment-download.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/get-deployment-download.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/get-deployment.md b/docs/examples/1.6.x/server-dart/examples/functions/get-deployment.md index e2438024544..805ca0b6347 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/get-deployment.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/get-deployment.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/get-execution.md b/docs/examples/1.6.x/server-dart/examples/functions/get-execution.md index 3ba1795f7a7..e0026e0c4b9 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/get-execution.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/functions/get-variable.md b/docs/examples/1.6.x/server-dart/examples/functions/get-variable.md index e9ba95912cb..fe61cee587c 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/get-variable.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/get-variable.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/get.md b/docs/examples/1.6.x/server-dart/examples/functions/get.md index e81ac8d1cc7..c92a4f746c6 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/get.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/get.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/list-deployments.md b/docs/examples/1.6.x/server-dart/examples/functions/list-deployments.md index c2db9a76990..d07d2b32f31 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/list-deployments.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/list-deployments.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/list-executions.md b/docs/examples/1.6.x/server-dart/examples/functions/list-executions.md index 573634e7b1d..54f66730042 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/list-executions.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/functions/list-runtimes.md b/docs/examples/1.6.x/server-dart/examples/functions/list-runtimes.md index d2316a9613f..a99f872b7e3 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/list-runtimes.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/list-runtimes.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/list-specifications.md b/docs/examples/1.6.x/server-dart/examples/functions/list-specifications.md index 4a77316978c..bec5d5e6350 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/list-specifications.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/list-specifications.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/list-templates.md b/docs/examples/1.6.x/server-dart/examples/functions/list-templates.md deleted file mode 100644 index 7bef5106ed2..00000000000 --- a/docs/examples/1.6.x/server-dart/examples/functions/list-templates.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -Functions functions = Functions(client); - -TemplateFunctionList result = await functions.listTemplates( - runtimes: [], // (optional) - useCases: [], // (optional) - limit: 1, // (optional) - offset: 0, // (optional) -); diff --git a/docs/examples/1.6.x/server-dart/examples/functions/list-variables.md b/docs/examples/1.6.x/server-dart/examples/functions/list-variables.md index 6c882090b4d..0fa3b002bfe 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/list-variables.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/list-variables.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/list.md b/docs/examples/1.6.x/server-dart/examples/functions/list.md index 96516e7068a..8eaeec0625a 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/list.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/list.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/update-deployment-build.md b/docs/examples/1.6.x/server-dart/examples/functions/update-deployment-build.md index ecd4d37bac6..5b547595fd0 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/update-deployment-build.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/update-deployment-build.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/update-deployment.md b/docs/examples/1.6.x/server-dart/examples/functions/update-deployment.md index 61e4d22e953..59db36b64e5 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/update-deployment.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/update-deployment.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/update-variable.md b/docs/examples/1.6.x/server-dart/examples/functions/update-variable.md index 570d4df3a05..df460fae106 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/update-variable.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/update-variable.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/functions/update.md b/docs/examples/1.6.x/server-dart/examples/functions/update.md index 42aff7b8233..ebe3be8cc63 100644 --- a/docs/examples/1.6.x/server-dart/examples/functions/update.md +++ b/docs/examples/1.6.x/server-dart/examples/functions/update.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/graphql/mutation.md b/docs/examples/1.6.x/server-dart/examples/graphql/mutation.md index 1eed406b60b..a88749851cf 100644 --- a/docs/examples/1.6.x/server-dart/examples/graphql/mutation.md +++ b/docs/examples/1.6.x/server-dart/examples/graphql/mutation.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/graphql/query.md b/docs/examples/1.6.x/server-dart/examples/graphql/query.md index 3e2700cd590..2dca8f2929c 100644 --- a/docs/examples/1.6.x/server-dart/examples/graphql/query.md +++ b/docs/examples/1.6.x/server-dart/examples/graphql/query.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-antivirus.md b/docs/examples/1.6.x/server-dart/examples/health/get-antivirus.md index d492d0e33a7..395d1f84d18 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-antivirus.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-antivirus.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-cache.md b/docs/examples/1.6.x/server-dart/examples/health/get-cache.md index 9a3ccbd06cc..6312e3cbe6a 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-cache.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-cache.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-certificate.md b/docs/examples/1.6.x/server-dart/examples/health/get-certificate.md index 2c1c60b7cb4..eac30a6aef1 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-certificate.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-certificate.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-d-b.md b/docs/examples/1.6.x/server-dart/examples/health/get-d-b.md index 201f787f3f4..25ad9607f58 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-d-b.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-d-b.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-failed-jobs.md b/docs/examples/1.6.x/server-dart/examples/health/get-failed-jobs.md index 324a6420132..6f80718f6b2 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-failed-jobs.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-failed-jobs.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-pub-sub.md b/docs/examples/1.6.x/server-dart/examples/health/get-pub-sub.md index dab221fb4fb..d544fbfc40a 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-pub-sub.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-pub-sub.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-queue-builds.md b/docs/examples/1.6.x/server-dart/examples/health/get-queue-builds.md index 42b3913f1c3..b48623ec181 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-queue-builds.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-queue-builds.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-queue-certificates.md b/docs/examples/1.6.x/server-dart/examples/health/get-queue-certificates.md index bdd2913b518..d72ac97b145 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-queue-certificates.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-queue-certificates.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-queue-databases.md b/docs/examples/1.6.x/server-dart/examples/health/get-queue-databases.md index 66f5822737a..b9d8e8bc663 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-queue-databases.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-queue-databases.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-queue-deletes.md b/docs/examples/1.6.x/server-dart/examples/health/get-queue-deletes.md index 1b3666d6d1d..3074cbb8abd 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-queue-deletes.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-queue-deletes.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-queue-functions.md b/docs/examples/1.6.x/server-dart/examples/health/get-queue-functions.md index 836891002c6..727fd239cc5 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-queue-functions.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-queue-functions.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-queue-logs.md b/docs/examples/1.6.x/server-dart/examples/health/get-queue-logs.md index 074d1a823eb..32d3e3bb7b2 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-queue-logs.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-queue-logs.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-queue-mails.md b/docs/examples/1.6.x/server-dart/examples/health/get-queue-mails.md index 5960e94456c..93ec9938453 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-queue-mails.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-queue-mails.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-queue-messaging.md b/docs/examples/1.6.x/server-dart/examples/health/get-queue-messaging.md index 9b287116bc7..4ffd769d3c0 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-queue-messaging.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-queue-messaging.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-queue-migrations.md b/docs/examples/1.6.x/server-dart/examples/health/get-queue-migrations.md index 80ad6d25773..fab19875e52 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-queue-migrations.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-queue-migrations.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-queue-stats-resources.md b/docs/examples/1.6.x/server-dart/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..89a3d031799 --- /dev/null +++ b/docs/examples/1.6.x/server-dart/examples/health/get-queue-stats-resources.md @@ -0,0 +1,12 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +Health health = Health(client); + +HealthQueue result = await health.getQueueStatsResources( + threshold: 0, // (optional) +); diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-queue-usage-dump.md b/docs/examples/1.6.x/server-dart/examples/health/get-queue-usage-dump.md index 8c01b68c1f3..a5be1c9264c 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-queue-usage-dump.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-queue-usage.md b/docs/examples/1.6.x/server-dart/examples/health/get-queue-usage.md index a8990b1dcb5..473dcd15eed 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-queue-usage.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-queue-usage.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-queue-webhooks.md b/docs/examples/1.6.x/server-dart/examples/health/get-queue-webhooks.md index 10e5787ea79..523c1007f5e 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-queue-webhooks.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-queue.md b/docs/examples/1.6.x/server-dart/examples/health/get-queue.md index c68e15ef76e..3ba7d40c0e6 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-queue.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-queue.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-storage-local.md b/docs/examples/1.6.x/server-dart/examples/health/get-storage-local.md index 34b8f7e3c15..c33cf555f35 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-storage-local.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-storage-local.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-storage.md b/docs/examples/1.6.x/server-dart/examples/health/get-storage.md index d3745bca3c7..cb6c572154e 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-storage.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-storage.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get-time.md b/docs/examples/1.6.x/server-dart/examples/health/get-time.md index 539e0984654..f4439957d93 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get-time.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get-time.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/health/get.md b/docs/examples/1.6.x/server-dart/examples/health/get.md index 6286018d892..31344908487 100644 --- a/docs/examples/1.6.x/server-dart/examples/health/get.md +++ b/docs/examples/1.6.x/server-dart/examples/health/get.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/locale/get.md b/docs/examples/1.6.x/server-dart/examples/locale/get.md index b5b6878b4c5..dec6f068c63 100644 --- a/docs/examples/1.6.x/server-dart/examples/locale/get.md +++ b/docs/examples/1.6.x/server-dart/examples/locale/get.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/locale/list-codes.md b/docs/examples/1.6.x/server-dart/examples/locale/list-codes.md index 0b37c79f51d..9f9eac9f29d 100644 --- a/docs/examples/1.6.x/server-dart/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/server-dart/examples/locale/list-codes.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/locale/list-continents.md b/docs/examples/1.6.x/server-dart/examples/locale/list-continents.md index 9c8fb6d206d..276738eac7a 100644 --- a/docs/examples/1.6.x/server-dart/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/server-dart/examples/locale/list-continents.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/server-dart/examples/locale/list-countries-e-u.md index e114831ebac..59596c624cf 100644 --- a/docs/examples/1.6.x/server-dart/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/server-dart/examples/locale/list-countries-e-u.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/server-dart/examples/locale/list-countries-phones.md index 6f73ed3704b..2a2d32eacac 100644 --- a/docs/examples/1.6.x/server-dart/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/server-dart/examples/locale/list-countries-phones.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/locale/list-countries.md b/docs/examples/1.6.x/server-dart/examples/locale/list-countries.md index 404b9a12a74..6b8343c6b3e 100644 --- a/docs/examples/1.6.x/server-dart/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/server-dart/examples/locale/list-countries.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/locale/list-currencies.md b/docs/examples/1.6.x/server-dart/examples/locale/list-currencies.md index 8e74090bdfa..48247d98fe7 100644 --- a/docs/examples/1.6.x/server-dart/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/server-dart/examples/locale/list-currencies.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/locale/list-languages.md b/docs/examples/1.6.x/server-dart/examples/locale/list-languages.md index 3a2d54b609d..2376f189177 100644 --- a/docs/examples/1.6.x/server-dart/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/server-dart/examples/locale/list-languages.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/create-apns-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/create-apns-provider.md index fc7c30efda3..82c1eb5da64 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/create-apns-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/create-email.md b/docs/examples/1.6.x/server-dart/examples/messaging/create-email.md index de06809fb07..78c695c7ed4 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/create-email.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/create-email.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/create-fcm-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/create-fcm-provider.md index 480a6ed578f..25c2cb8cfa1 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/create-fcm-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/create-mailgun-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/create-mailgun-provider.md index 6617ff8c1d5..10d803d6244 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/create-mailgun-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/create-msg91provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/create-msg91provider.md index 785c55ce4a2..b283b753257 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/create-msg91provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/create-push.md b/docs/examples/1.6.x/server-dart/examples/messaging/create-push.md index c3c7d2ffc5d..58d82c7a0a9 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/create-push.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/create-push.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -9,8 +9,8 @@ Messaging messaging = Messaging(client); Message result = await messaging.createPush( messageId: '<MESSAGE_ID>', - title: '<TITLE>', - body: '<BODY>', + title: '<TITLE>', // (optional) + body: '<BODY>', // (optional) topics: [], // (optional) users: [], // (optional) targets: [], // (optional) @@ -21,7 +21,10 @@ Message result = await messaging.createPush( sound: '<SOUND>', // (optional) color: '<COLOR>', // (optional) tag: '<TAG>', // (optional) - badge: '<BADGE>', // (optional) + badge: 0, // (optional) draft: false, // (optional) scheduledAt: '', // (optional) + contentAvailable: false, // (optional) + critical: false, // (optional) + priority: MessagePriority.normal, // (optional) ); diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/create-sendgrid-provider.md index 2f6d51d2fb0..e759a26094a 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/create-sendgrid-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/create-sms.md b/docs/examples/1.6.x/server-dart/examples/messaging/create-sms.md index 8d31dc630d6..04a715870f0 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/create-sms.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/create-sms.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/create-smtp-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/create-smtp-provider.md index 352369a8bb2..6201987fbb8 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/create-smtp-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/server-dart/examples/messaging/create-subscriber.md index 5fdd4c84044..5fd4859fb9d 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/create-subscriber.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/create-telesign-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/create-telesign-provider.md index 4fef6312787..5417b951dd3 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/create-telesign-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/create-textmagic-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/create-textmagic-provider.md index b7b456de722..4cf6463b6ed 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/create-textmagic-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/create-topic.md b/docs/examples/1.6.x/server-dart/examples/messaging/create-topic.md index 0e83103213d..67e47412a10 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/create-topic.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/create-topic.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/create-twilio-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/create-twilio-provider.md index 1d9e4f44b08..8c3370baa7d 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/create-twilio-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/create-vonage-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/create-vonage-provider.md index 2bbad6591a7..d625f382307 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/create-vonage-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/delete-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/delete-provider.md index 189cdb310a6..361bacc2c3d 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/delete-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/delete-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/delete-subscriber.md b/docs/examples/1.6.x/server-dart/examples/messaging/delete-subscriber.md index 7cfbdae02c6..e4a044c2804 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/delete-subscriber.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/delete-topic.md b/docs/examples/1.6.x/server-dart/examples/messaging/delete-topic.md index a64056fc0f9..59c5592c93c 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/delete-topic.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/delete-topic.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/delete.md b/docs/examples/1.6.x/server-dart/examples/messaging/delete.md index 0cbc89ab229..14b680ae99f 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/delete.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/delete.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/get-message.md b/docs/examples/1.6.x/server-dart/examples/messaging/get-message.md index b95babd1f59..ccc98961e78 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/get-message.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/get-message.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/get-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/get-provider.md index 1ba21b81fbf..a82ef15775d 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/get-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/get-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/get-subscriber.md b/docs/examples/1.6.x/server-dart/examples/messaging/get-subscriber.md index 9a6711ba8db..03f78b7fa4e 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/get-subscriber.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/get-subscriber.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/get-topic.md b/docs/examples/1.6.x/server-dart/examples/messaging/get-topic.md index 2418390f2ff..204f8757935 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/get-topic.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/get-topic.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/list-message-logs.md b/docs/examples/1.6.x/server-dart/examples/messaging/list-message-logs.md index 09c669dd845..1d2b1805b47 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/list-message-logs.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/list-message-logs.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/list-messages.md b/docs/examples/1.6.x/server-dart/examples/messaging/list-messages.md index e58ab7f7878..2c0a142ee8a 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/list-messages.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/list-messages.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/list-provider-logs.md b/docs/examples/1.6.x/server-dart/examples/messaging/list-provider-logs.md index fb8b6296759..9f40a5fa49b 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/list-provider-logs.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/list-providers.md b/docs/examples/1.6.x/server-dart/examples/messaging/list-providers.md index 5ff2ac533f8..df7a8a022c5 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/list-providers.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/list-providers.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/list-subscriber-logs.md b/docs/examples/1.6.x/server-dart/examples/messaging/list-subscriber-logs.md index 8ccbe9c8c88..3a9593ca893 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/list-subscriber-logs.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/list-subscribers.md b/docs/examples/1.6.x/server-dart/examples/messaging/list-subscribers.md index 81db0613d91..19d907cd9ac 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/list-subscribers.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/list-subscribers.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/list-targets.md b/docs/examples/1.6.x/server-dart/examples/messaging/list-targets.md index af02c235df9..5a327773c2c 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/list-targets.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/list-targets.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/list-topic-logs.md b/docs/examples/1.6.x/server-dart/examples/messaging/list-topic-logs.md index afb80a24ba2..0ab02eaa740 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/list-topic-logs.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/list-topics.md b/docs/examples/1.6.x/server-dart/examples/messaging/list-topics.md index 1516056ce1f..c5fdb4901f1 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/list-topics.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/list-topics.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/update-apns-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/update-apns-provider.md index 72eb8744586..edc0a1f769d 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/update-apns-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/update-email.md b/docs/examples/1.6.x/server-dart/examples/messaging/update-email.md index a53209abfd8..b725cee5f0b 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/update-email.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/update-email.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/update-fcm-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/update-fcm-provider.md index 4b2bf6bd19c..1e2d8a8ca27 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/update-fcm-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/update-mailgun-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/update-mailgun-provider.md index 6acc4950d67..c042a6faaab 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/update-mailgun-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/update-msg91provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/update-msg91provider.md index 10a8aa1655a..24290e958f4 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/update-msg91provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/update-push.md b/docs/examples/1.6.x/server-dart/examples/messaging/update-push.md index dcec9b243f1..f7cc117b649 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/update-push.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/update-push.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -24,4 +24,7 @@ Message result = await messaging.updatePush( badge: 0, // (optional) draft: false, // (optional) scheduledAt: '', // (optional) + contentAvailable: false, // (optional) + critical: false, // (optional) + priority: MessagePriority.normal, // (optional) ); diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/update-sendgrid-provider.md index ce00ee26e32..53b8c33df41 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/update-sendgrid-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/update-sms.md b/docs/examples/1.6.x/server-dart/examples/messaging/update-sms.md index 795d03e9eb7..f4356deed33 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/update-sms.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/update-sms.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/update-smtp-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/update-smtp-provider.md index c85e62ee93c..16530c01c88 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/update-smtp-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/update-telesign-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/update-telesign-provider.md index d313321ad0f..4bf76fbcfe9 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/update-telesign-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/update-textmagic-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/update-textmagic-provider.md index dc966eccecf..86bb985778d 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/update-textmagic-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/update-topic.md b/docs/examples/1.6.x/server-dart/examples/messaging/update-topic.md index 8c149c57f1d..5311fd5e9b9 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/update-topic.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/update-topic.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/update-twilio-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/update-twilio-provider.md index a246dd62b9c..8ace97521bb 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/update-twilio-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/messaging/update-vonage-provider.md b/docs/examples/1.6.x/server-dart/examples/messaging/update-vonage-provider.md index d848a648feb..e0d95d1cb40 100644 --- a/docs/examples/1.6.x/server-dart/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.6.x/server-dart/examples/messaging/update-vonage-provider.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/storage/create-bucket.md b/docs/examples/1.6.x/server-dart/examples/storage/create-bucket.md index e9b817f3671..c09a4f2c5d0 100644 --- a/docs/examples/1.6.x/server-dart/examples/storage/create-bucket.md +++ b/docs/examples/1.6.x/server-dart/examples/storage/create-bucket.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/storage/create-file.md b/docs/examples/1.6.x/server-dart/examples/storage/create-file.md index 0e06f4220c6..e631416ecb6 100644 --- a/docs/examples/1.6.x/server-dart/examples/storage/create-file.md +++ b/docs/examples/1.6.x/server-dart/examples/storage/create-file.md @@ -2,7 +2,7 @@ import 'dart:io'; import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/storage/delete-bucket.md b/docs/examples/1.6.x/server-dart/examples/storage/delete-bucket.md index 51fa7aafca2..1eb1b51ca2e 100644 --- a/docs/examples/1.6.x/server-dart/examples/storage/delete-bucket.md +++ b/docs/examples/1.6.x/server-dart/examples/storage/delete-bucket.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/storage/delete-file.md b/docs/examples/1.6.x/server-dart/examples/storage/delete-file.md index 25f74b68bb6..26dd602c7e1 100644 --- a/docs/examples/1.6.x/server-dart/examples/storage/delete-file.md +++ b/docs/examples/1.6.x/server-dart/examples/storage/delete-file.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/storage/get-bucket.md b/docs/examples/1.6.x/server-dart/examples/storage/get-bucket.md index 20dfac75b6a..3464d2233bf 100644 --- a/docs/examples/1.6.x/server-dart/examples/storage/get-bucket.md +++ b/docs/examples/1.6.x/server-dart/examples/storage/get-bucket.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/storage/get-file-download.md b/docs/examples/1.6.x/server-dart/examples/storage/get-file-download.md index ddbc538b8bb..09f06c04fce 100644 --- a/docs/examples/1.6.x/server-dart/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/server-dart/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/storage/get-file-preview.md b/docs/examples/1.6.x/server-dart/examples/storage/get-file-preview.md index 0f9cada9b30..7fd69c56924 100644 --- a/docs/examples/1.6.x/server-dart/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/server-dart/examples/storage/get-file-preview.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/storage/get-file-view.md b/docs/examples/1.6.x/server-dart/examples/storage/get-file-view.md index d9854177e8d..df5d3a20ff5 100644 --- a/docs/examples/1.6.x/server-dart/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/server-dart/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/storage/get-file.md b/docs/examples/1.6.x/server-dart/examples/storage/get-file.md index c79b608c431..f765c62356a 100644 --- a/docs/examples/1.6.x/server-dart/examples/storage/get-file.md +++ b/docs/examples/1.6.x/server-dart/examples/storage/get-file.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/storage/list-buckets.md b/docs/examples/1.6.x/server-dart/examples/storage/list-buckets.md index 7d9afb7ea14..c20dac19688 100644 --- a/docs/examples/1.6.x/server-dart/examples/storage/list-buckets.md +++ b/docs/examples/1.6.x/server-dart/examples/storage/list-buckets.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/storage/list-files.md b/docs/examples/1.6.x/server-dart/examples/storage/list-files.md index 02e52ba44a5..28f85b091a0 100644 --- a/docs/examples/1.6.x/server-dart/examples/storage/list-files.md +++ b/docs/examples/1.6.x/server-dart/examples/storage/list-files.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/storage/update-bucket.md b/docs/examples/1.6.x/server-dart/examples/storage/update-bucket.md index 23bfdb7395f..b4e45e059c8 100644 --- a/docs/examples/1.6.x/server-dart/examples/storage/update-bucket.md +++ b/docs/examples/1.6.x/server-dart/examples/storage/update-bucket.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/storage/update-file.md b/docs/examples/1.6.x/server-dart/examples/storage/update-file.md index d03e60406e0..966883a1f9a 100644 --- a/docs/examples/1.6.x/server-dart/examples/storage/update-file.md +++ b/docs/examples/1.6.x/server-dart/examples/storage/update-file.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/teams/create-membership.md b/docs/examples/1.6.x/server-dart/examples/teams/create-membership.md index 96b037a1c0d..f13a6e69bb5 100644 --- a/docs/examples/1.6.x/server-dart/examples/teams/create-membership.md +++ b/docs/examples/1.6.x/server-dart/examples/teams/create-membership.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/teams/create.md b/docs/examples/1.6.x/server-dart/examples/teams/create.md index f6575bc4408..772f3cfa864 100644 --- a/docs/examples/1.6.x/server-dart/examples/teams/create.md +++ b/docs/examples/1.6.x/server-dart/examples/teams/create.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/teams/delete-membership.md b/docs/examples/1.6.x/server-dart/examples/teams/delete-membership.md index 6f495ef4344..9d99cbbd3db 100644 --- a/docs/examples/1.6.x/server-dart/examples/teams/delete-membership.md +++ b/docs/examples/1.6.x/server-dart/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/teams/delete.md b/docs/examples/1.6.x/server-dart/examples/teams/delete.md index 021368cb054..1c08ab8ed9f 100644 --- a/docs/examples/1.6.x/server-dart/examples/teams/delete.md +++ b/docs/examples/1.6.x/server-dart/examples/teams/delete.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/teams/get-membership.md b/docs/examples/1.6.x/server-dart/examples/teams/get-membership.md index 1d5c3b35505..0bdc63f8d4f 100644 --- a/docs/examples/1.6.x/server-dart/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/server-dart/examples/teams/get-membership.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/teams/get-prefs.md b/docs/examples/1.6.x/server-dart/examples/teams/get-prefs.md index 1e89d0e2770..e2063933207 100644 --- a/docs/examples/1.6.x/server-dart/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/server-dart/examples/teams/get-prefs.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/teams/get.md b/docs/examples/1.6.x/server-dart/examples/teams/get.md index 31d238ab963..bb3bcaf7e21 100644 --- a/docs/examples/1.6.x/server-dart/examples/teams/get.md +++ b/docs/examples/1.6.x/server-dart/examples/teams/get.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/teams/list-memberships.md b/docs/examples/1.6.x/server-dart/examples/teams/list-memberships.md index 1cb91dd477f..3c01dec4c54 100644 --- a/docs/examples/1.6.x/server-dart/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/server-dart/examples/teams/list-memberships.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/teams/list.md b/docs/examples/1.6.x/server-dart/examples/teams/list.md index e4c764c517e..093a139f715 100644 --- a/docs/examples/1.6.x/server-dart/examples/teams/list.md +++ b/docs/examples/1.6.x/server-dart/examples/teams/list.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/teams/update-membership-status.md b/docs/examples/1.6.x/server-dart/examples/teams/update-membership-status.md index 71c343663a9..c947162fa41 100644 --- a/docs/examples/1.6.x/server-dart/examples/teams/update-membership-status.md +++ b/docs/examples/1.6.x/server-dart/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/teams/update-membership.md b/docs/examples/1.6.x/server-dart/examples/teams/update-membership.md index 256c0823fe0..87a4325857d 100644 --- a/docs/examples/1.6.x/server-dart/examples/teams/update-membership.md +++ b/docs/examples/1.6.x/server-dart/examples/teams/update-membership.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/teams/update-name.md b/docs/examples/1.6.x/server-dart/examples/teams/update-name.md index a1727ced110..fe3a9faabfa 100644 --- a/docs/examples/1.6.x/server-dart/examples/teams/update-name.md +++ b/docs/examples/1.6.x/server-dart/examples/teams/update-name.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/teams/update-prefs.md b/docs/examples/1.6.x/server-dart/examples/teams/update-prefs.md index 1b3208b79fc..57518ada43f 100644 --- a/docs/examples/1.6.x/server-dart/examples/teams/update-prefs.md +++ b/docs/examples/1.6.x/server-dart/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dart/examples/users/create-argon2user.md b/docs/examples/1.6.x/server-dart/examples/users/create-argon2user.md index 68dd98841ec..38b0255ea4c 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/create-argon2user.md +++ b/docs/examples/1.6.x/server-dart/examples/users/create-argon2user.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/create-bcrypt-user.md b/docs/examples/1.6.x/server-dart/examples/users/create-bcrypt-user.md index cb000391c67..aa898ba22f8 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.6.x/server-dart/examples/users/create-bcrypt-user.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/create-j-w-t.md b/docs/examples/1.6.x/server-dart/examples/users/create-j-w-t.md index 2a9c67bead5..6e8b7a2bac4 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/create-j-w-t.md +++ b/docs/examples/1.6.x/server-dart/examples/users/create-j-w-t.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/create-m-d5user.md b/docs/examples/1.6.x/server-dart/examples/users/create-m-d5user.md index 4ade88bc7d9..e08edd617f2 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/create-m-d5user.md +++ b/docs/examples/1.6.x/server-dart/examples/users/create-m-d5user.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-dart/examples/users/create-mfa-recovery-codes.md index 598cef49014..c2b9562e4ed 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-dart/examples/users/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/create-p-h-pass-user.md b/docs/examples/1.6.x/server-dart/examples/users/create-p-h-pass-user.md index 1c95cbe2634..9f23baaef2f 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.6.x/server-dart/examples/users/create-p-h-pass-user.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/create-s-h-a-user.md b/docs/examples/1.6.x/server-dart/examples/users/create-s-h-a-user.md index 17122072e4a..628cf3297e8 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.6.x/server-dart/examples/users/create-s-h-a-user.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/create-scrypt-modified-user.md b/docs/examples/1.6.x/server-dart/examples/users/create-scrypt-modified-user.md index 063fc97d844..34bfbf66c41 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.6.x/server-dart/examples/users/create-scrypt-modified-user.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/create-scrypt-user.md b/docs/examples/1.6.x/server-dart/examples/users/create-scrypt-user.md index 03717bd7f09..20cf911a09c 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/create-scrypt-user.md +++ b/docs/examples/1.6.x/server-dart/examples/users/create-scrypt-user.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/create-session.md b/docs/examples/1.6.x/server-dart/examples/users/create-session.md index 013707bcc52..4293e7edf6f 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/create-session.md +++ b/docs/examples/1.6.x/server-dart/examples/users/create-session.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/create-target.md b/docs/examples/1.6.x/server-dart/examples/users/create-target.md index 88c0c19e420..354a8dbb48d 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/create-target.md +++ b/docs/examples/1.6.x/server-dart/examples/users/create-target.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/create-token.md b/docs/examples/1.6.x/server-dart/examples/users/create-token.md index 16040215a3e..ab7acba3dd4 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/create-token.md +++ b/docs/examples/1.6.x/server-dart/examples/users/create-token.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/create.md b/docs/examples/1.6.x/server-dart/examples/users/create.md index a0f0c3fe3de..b4953748e52 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/create.md +++ b/docs/examples/1.6.x/server-dart/examples/users/create.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/delete-identity.md b/docs/examples/1.6.x/server-dart/examples/users/delete-identity.md index 07ba49764e8..7ac2da90005 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/delete-identity.md +++ b/docs/examples/1.6.x/server-dart/examples/users/delete-identity.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-dart/examples/users/delete-mfa-authenticator.md index d48ab6d4f0a..eed7dbd41b1 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-dart/examples/users/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/delete-session.md b/docs/examples/1.6.x/server-dart/examples/users/delete-session.md index a2c985a7e77..68d243e52f8 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/delete-session.md +++ b/docs/examples/1.6.x/server-dart/examples/users/delete-session.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/delete-sessions.md b/docs/examples/1.6.x/server-dart/examples/users/delete-sessions.md index e86e0e29aa4..07c3566a7ca 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/delete-sessions.md +++ b/docs/examples/1.6.x/server-dart/examples/users/delete-sessions.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/delete-target.md b/docs/examples/1.6.x/server-dart/examples/users/delete-target.md index bae674cdcd7..aa27b32d383 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/delete-target.md +++ b/docs/examples/1.6.x/server-dart/examples/users/delete-target.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/delete.md b/docs/examples/1.6.x/server-dart/examples/users/delete.md index dbee4e8cc9b..93819b72d76 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/delete.md +++ b/docs/examples/1.6.x/server-dart/examples/users/delete.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-dart/examples/users/get-mfa-recovery-codes.md index 1e8baf2b9fd..cf66c676100 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-dart/examples/users/get-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/get-prefs.md b/docs/examples/1.6.x/server-dart/examples/users/get-prefs.md index 9fa4c8bd532..146cff68203 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/get-prefs.md +++ b/docs/examples/1.6.x/server-dart/examples/users/get-prefs.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/get-target.md b/docs/examples/1.6.x/server-dart/examples/users/get-target.md index 2a62d94e9b1..9ddaafb55fd 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/get-target.md +++ b/docs/examples/1.6.x/server-dart/examples/users/get-target.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/get.md b/docs/examples/1.6.x/server-dart/examples/users/get.md index 04dfcb6a9b1..a171b79582e 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/get.md +++ b/docs/examples/1.6.x/server-dart/examples/users/get.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/list-identities.md b/docs/examples/1.6.x/server-dart/examples/users/list-identities.md index aa20d3f6012..2c14775e9ac 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/list-identities.md +++ b/docs/examples/1.6.x/server-dart/examples/users/list-identities.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/list-logs.md b/docs/examples/1.6.x/server-dart/examples/users/list-logs.md index 18b34a10dee..5885dcb8745 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/list-logs.md +++ b/docs/examples/1.6.x/server-dart/examples/users/list-logs.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/list-memberships.md b/docs/examples/1.6.x/server-dart/examples/users/list-memberships.md index 495ab938199..22c64b15ebf 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/list-memberships.md +++ b/docs/examples/1.6.x/server-dart/examples/users/list-memberships.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/list-mfa-factors.md b/docs/examples/1.6.x/server-dart/examples/users/list-mfa-factors.md index cca4df00d22..7134ee5dab6 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-dart/examples/users/list-mfa-factors.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/list-sessions.md b/docs/examples/1.6.x/server-dart/examples/users/list-sessions.md index 4e1a47bc472..22a37c05a00 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/list-sessions.md +++ b/docs/examples/1.6.x/server-dart/examples/users/list-sessions.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/list-targets.md b/docs/examples/1.6.x/server-dart/examples/users/list-targets.md index 459d0cd4387..971fbea0e1c 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/list-targets.md +++ b/docs/examples/1.6.x/server-dart/examples/users/list-targets.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/list.md b/docs/examples/1.6.x/server-dart/examples/users/list.md index b909d76ef0c..6d34bb470b1 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/list.md +++ b/docs/examples/1.6.x/server-dart/examples/users/list.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/update-email-verification.md b/docs/examples/1.6.x/server-dart/examples/users/update-email-verification.md index e350eb68f31..9930e30be50 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/update-email-verification.md +++ b/docs/examples/1.6.x/server-dart/examples/users/update-email-verification.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/update-email.md b/docs/examples/1.6.x/server-dart/examples/users/update-email.md index af995fc520f..129a8e2437c 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/update-email.md +++ b/docs/examples/1.6.x/server-dart/examples/users/update-email.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/update-labels.md b/docs/examples/1.6.x/server-dart/examples/users/update-labels.md index 5cd609d2d61..d247bf5e748 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/update-labels.md +++ b/docs/examples/1.6.x/server-dart/examples/users/update-labels.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-dart/examples/users/update-mfa-recovery-codes.md index 3fdfc7c55b5..3b7d81f57c1 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-dart/examples/users/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/update-mfa.md b/docs/examples/1.6.x/server-dart/examples/users/update-mfa.md index e1efba91b4d..f26b1055345 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/update-mfa.md +++ b/docs/examples/1.6.x/server-dart/examples/users/update-mfa.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/update-name.md b/docs/examples/1.6.x/server-dart/examples/users/update-name.md index 2a742bcc510..905cee0e498 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/update-name.md +++ b/docs/examples/1.6.x/server-dart/examples/users/update-name.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/update-password.md b/docs/examples/1.6.x/server-dart/examples/users/update-password.md index 8650291bd13..14e27482ec1 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/update-password.md +++ b/docs/examples/1.6.x/server-dart/examples/users/update-password.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/update-phone-verification.md b/docs/examples/1.6.x/server-dart/examples/users/update-phone-verification.md index cb8efa4a702..b57aafab1f0 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/update-phone-verification.md +++ b/docs/examples/1.6.x/server-dart/examples/users/update-phone-verification.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/update-phone.md b/docs/examples/1.6.x/server-dart/examples/users/update-phone.md index 5334986f38e..aa891d2351c 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/update-phone.md +++ b/docs/examples/1.6.x/server-dart/examples/users/update-phone.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/update-prefs.md b/docs/examples/1.6.x/server-dart/examples/users/update-prefs.md index 2a1f0572a8a..87fc2968f58 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/update-prefs.md +++ b/docs/examples/1.6.x/server-dart/examples/users/update-prefs.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/update-status.md b/docs/examples/1.6.x/server-dart/examples/users/update-status.md index 2948e6e6c32..4d8dca03ada 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/update-status.md +++ b/docs/examples/1.6.x/server-dart/examples/users/update-status.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dart/examples/users/update-target.md b/docs/examples/1.6.x/server-dart/examples/users/update-target.md index c3e907175b2..f66f0b7475a 100644 --- a/docs/examples/1.6.x/server-dart/examples/users/update-target.md +++ b/docs/examples/1.6.x/server-dart/examples/users/update-target.md @@ -1,7 +1,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/account/create-anonymous-session.md b/docs/examples/1.6.x/server-deno/examples/account/create-anonymous-session.md index f71baa9d5d9..62ad345304e 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/server-deno/examples/account/create-anonymous-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/server-deno/examples/account/create-email-password-session.md b/docs/examples/1.6.x/server-deno/examples/account/create-email-password-session.md index ad62b8883e8..d08a92d2c38 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/create-email-password-session.md +++ b/docs/examples/1.6.x/server-deno/examples/account/create-email-password-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/server-deno/examples/account/create-email-token.md b/docs/examples/1.6.x/server-deno/examples/account/create-email-token.md index 2e33d2bc335..384a3fbbea3 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/create-email-token.md +++ b/docs/examples/1.6.x/server-deno/examples/account/create-email-token.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/server-deno/examples/account/create-j-w-t.md b/docs/examples/1.6.x/server-deno/examples/account/create-j-w-t.md index 15197d099a2..a0a7f722ccf 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/create-j-w-t.md +++ b/docs/examples/1.6.x/server-deno/examples/account/create-j-w-t.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/server-deno/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/server-deno/examples/account/create-magic-u-r-l-token.md index 57697d4039f..29e552a8194 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/server-deno/examples/account/create-magic-u-r-l-token.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/server-deno/examples/account/create-mfa-authenticator.md b/docs/examples/1.6.x/server-deno/examples/account/create-mfa-authenticator.md index be345dc1598..52c193a848f 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-deno/examples/account/create-mfa-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/create-mfa-challenge.md b/docs/examples/1.6.x/server-deno/examples/account/create-mfa-challenge.md index 877c20392c2..296e36dec47 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/server-deno/examples/account/create-mfa-challenge.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticationFactor } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/server-deno/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-deno/examples/account/create-mfa-recovery-codes.md index 18ce21a076b..cfd9aa2ba8c 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-deno/examples/account/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/server-deno/examples/account/create-o-auth2token.md index 037da38d685..24e43a9d9c9 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/server-deno/examples/account/create-o-auth2token.md @@ -1,7 +1,7 @@ import { Client, Account, OAuthProvider } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/server-deno/examples/account/create-phone-token.md b/docs/examples/1.6.x/server-deno/examples/account/create-phone-token.md index 800f0210a11..77e4adcb9c1 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/create-phone-token.md +++ b/docs/examples/1.6.x/server-deno/examples/account/create-phone-token.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/server-deno/examples/account/create-phone-verification.md b/docs/examples/1.6.x/server-deno/examples/account/create-phone-verification.md index 5a9c87b7f62..8f01304f5bf 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/create-phone-verification.md +++ b/docs/examples/1.6.x/server-deno/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/create-recovery.md b/docs/examples/1.6.x/server-deno/examples/account/create-recovery.md index e32600111bf..a3d92d866e1 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/create-recovery.md +++ b/docs/examples/1.6.x/server-deno/examples/account/create-recovery.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/create-session.md b/docs/examples/1.6.x/server-deno/examples/account/create-session.md index a34d3e37d97..888493a21ac 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/create-session.md +++ b/docs/examples/1.6.x/server-deno/examples/account/create-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/server-deno/examples/account/create-verification.md b/docs/examples/1.6.x/server-deno/examples/account/create-verification.md index fd11e13b33a..438feee807d 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/create-verification.md +++ b/docs/examples/1.6.x/server-deno/examples/account/create-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/create.md b/docs/examples/1.6.x/server-deno/examples/account/create.md index 9f1b16b7b9e..c410a0f7c7e 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/create.md +++ b/docs/examples/1.6.x/server-deno/examples/account/create.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/server-deno/examples/account/delete-identity.md b/docs/examples/1.6.x/server-deno/examples/account/delete-identity.md index 30b14688918..359c7a3cfa6 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/delete-identity.md +++ b/docs/examples/1.6.x/server-deno/examples/account/delete-identity.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-deno/examples/account/delete-mfa-authenticator.md index 7247155e2bf..f4b164b43d8 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-deno/examples/account/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/delete-session.md b/docs/examples/1.6.x/server-deno/examples/account/delete-session.md index 5fd77c155ab..a0b7d196870 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/delete-session.md +++ b/docs/examples/1.6.x/server-deno/examples/account/delete-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/delete-sessions.md b/docs/examples/1.6.x/server-deno/examples/account/delete-sessions.md index 6d676cf8f80..864c50535bd 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/delete-sessions.md +++ b/docs/examples/1.6.x/server-deno/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-deno/examples/account/get-mfa-recovery-codes.md index 5861c1b561b..73fc143978e 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-deno/examples/account/get-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/get-prefs.md b/docs/examples/1.6.x/server-deno/examples/account/get-prefs.md index 685aa63ca60..4479df71f7b 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/server-deno/examples/account/get-prefs.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/get-session.md b/docs/examples/1.6.x/server-deno/examples/account/get-session.md index 91242d45652..c380b72ed5f 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/get-session.md +++ b/docs/examples/1.6.x/server-deno/examples/account/get-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/get.md b/docs/examples/1.6.x/server-deno/examples/account/get.md index 59f91ca8468..5abdc95ec7c 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/get.md +++ b/docs/examples/1.6.x/server-deno/examples/account/get.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/list-identities.md b/docs/examples/1.6.x/server-deno/examples/account/list-identities.md index 501042160da..1c612f97375 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/list-identities.md +++ b/docs/examples/1.6.x/server-deno/examples/account/list-identities.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/list-logs.md b/docs/examples/1.6.x/server-deno/examples/account/list-logs.md index 230c3f46a62..28ab351f5a2 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/list-logs.md +++ b/docs/examples/1.6.x/server-deno/examples/account/list-logs.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/server-deno/examples/account/list-mfa-factors.md index bf9d6b40e43..35fb7497dee 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-deno/examples/account/list-mfa-factors.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/list-sessions.md b/docs/examples/1.6.x/server-deno/examples/account/list-sessions.md index 927ccfc67c1..e34da16995d 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/server-deno/examples/account/list-sessions.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-email.md b/docs/examples/1.6.x/server-deno/examples/account/update-email.md index 9136450824c..0753cff9fd1 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-email.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-email.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-m-f-a.md b/docs/examples/1.6.x/server-deno/examples/account/update-m-f-a.md index db315e54685..24611aa43a6 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-m-f-a.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/server-deno/examples/account/update-magic-u-r-l-session.md index 99243ec118b..a83c1d91a46 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-magic-u-r-l-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/server-deno/examples/account/update-mfa-authenticator.md index 5c437194feb..6b95818e06c 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-mfa-authenticator.md @@ -1,7 +1,7 @@ import { Client, Account, AuthenticatorType } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/server-deno/examples/account/update-mfa-challenge.md index 4e0638ea42d..61a7b44fd0c 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-mfa-challenge.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-deno/examples/account/update-mfa-recovery-codes.md index 3d604f6efde..2030e1c5510 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-name.md b/docs/examples/1.6.x/server-deno/examples/account/update-name.md index 7e0e0122d0b..a02591b3b53 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-name.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-name.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-password.md b/docs/examples/1.6.x/server-deno/examples/account/update-password.md index 6d546291d87..088bea88acf 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-password.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-password.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-phone-session.md b/docs/examples/1.6.x/server-deno/examples/account/update-phone-session.md index 1d9104829eb..4710a451a8a 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-phone-session.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-phone-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new Account(client); diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-phone-verification.md b/docs/examples/1.6.x/server-deno/examples/account/update-phone-verification.md index 9737de02ac2..3b150c8c4a1 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-phone-verification.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-phone.md b/docs/examples/1.6.x/server-deno/examples/account/update-phone.md index 8b1bc7c7f06..9c1923c2174 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-phone.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-phone.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-prefs.md b/docs/examples/1.6.x/server-deno/examples/account/update-prefs.md index 58582c6bcab..4b37a64fe79 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-prefs.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-recovery.md b/docs/examples/1.6.x/server-deno/examples/account/update-recovery.md index 1b64a3beaf4..5d0d80f9568 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-recovery.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-recovery.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-session.md b/docs/examples/1.6.x/server-deno/examples/account/update-session.md index 93dd40fcc50..cb36b9491e0 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-session.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-session.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-status.md b/docs/examples/1.6.x/server-deno/examples/account/update-status.md index 60a3d51f0dc..0c70c88b515 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-status.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-status.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/account/update-verification.md b/docs/examples/1.6.x/server-deno/examples/account/update-verification.md index 208988894f4..96370858cda 100644 --- a/docs/examples/1.6.x/server-deno/examples/account/update-verification.md +++ b/docs/examples/1.6.x/server-deno/examples/account/update-verification.md @@ -1,7 +1,7 @@ import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/avatars/get-browser.md b/docs/examples/1.6.x/server-deno/examples/avatars/get-browser.md index c8e72644345..f0a355a460f 100644 --- a/docs/examples/1.6.x/server-deno/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/server-deno/examples/avatars/get-browser.md @@ -1,7 +1,7 @@ import { Client, Avatars, Browser } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/server-deno/examples/avatars/get-credit-card.md index 8e1b3dba624..040b06c59e9 100644 --- a/docs/examples/1.6.x/server-deno/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/server-deno/examples/avatars/get-credit-card.md @@ -1,7 +1,7 @@ import { Client, Avatars, CreditCard } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/avatars/get-favicon.md b/docs/examples/1.6.x/server-deno/examples/avatars/get-favicon.md index 5f50687f915..cca313a9a2b 100644 --- a/docs/examples/1.6.x/server-deno/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/server-deno/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/avatars/get-flag.md b/docs/examples/1.6.x/server-deno/examples/avatars/get-flag.md index daa488e443a..937724f118f 100644 --- a/docs/examples/1.6.x/server-deno/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/server-deno/examples/avatars/get-flag.md @@ -1,7 +1,7 @@ import { Client, Avatars, Flag } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/avatars/get-image.md b/docs/examples/1.6.x/server-deno/examples/avatars/get-image.md index fc72b74cf7d..2960daba8d1 100644 --- a/docs/examples/1.6.x/server-deno/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/server-deno/examples/avatars/get-image.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/avatars/get-initials.md b/docs/examples/1.6.x/server-deno/examples/avatars/get-initials.md index d6d8dc8c7ce..10eb2d80b8f 100644 --- a/docs/examples/1.6.x/server-deno/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/server-deno/examples/avatars/get-initials.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/avatars/get-q-r.md b/docs/examples/1.6.x/server-deno/examples/avatars/get-q-r.md index bfa7833b508..d9ccc0dbca5 100644 --- a/docs/examples/1.6.x/server-deno/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/server-deno/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ import { Client, Avatars } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/databases/create-boolean-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/create-boolean-attribute.md index 232efa137f4..b216c2ead3a 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/create-boolean-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/create-collection.md b/docs/examples/1.6.x/server-deno/examples/databases/create-collection.md index 8ae3e6acdbc..c7e8026758e 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/create-collection.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/create-collection.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/create-datetime-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/create-datetime-attribute.md index 10017f2162d..664da19de27 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/create-datetime-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/create-document.md b/docs/examples/1.6.x/server-deno/examples/databases/create-document.md index f0f54b79ec5..be8a1bdac95 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/create-document.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/create-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/databases/create-documents.md b/docs/examples/1.6.x/server-deno/examples/databases/create-documents.md new file mode 100644 index 00000000000..17c00e67859 --- /dev/null +++ b/docs/examples/1.6.x/server-deno/examples/databases/create-documents.md @@ -0,0 +1,14 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const databases = new Databases(client); + +const response = await databases.createDocuments( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + [] // documents +); diff --git a/docs/examples/1.6.x/server-deno/examples/databases/create-email-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/create-email-attribute.md index 979c5137242..6c667ed38af 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/create-email-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/create-email-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/create-enum-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/create-enum-attribute.md index 163a9e49bd8..6fdd2773c87 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/create-enum-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/create-float-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/create-float-attribute.md index 3b0e4193985..c5991d49f63 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/create-float-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/create-float-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/create-index.md b/docs/examples/1.6.x/server-deno/examples/databases/create-index.md index 8b7d9c676f9..69e694bbbaa 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/create-index.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/create-index.md @@ -1,7 +1,7 @@ import { Client, Databases, IndexType } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/create-integer-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/create-integer-attribute.md index 1a2e394d512..4a306cd50df 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/create-integer-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/create-ip-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/create-ip-attribute.md index e0acc270163..c043b252071 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/create-ip-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/create-relationship-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/create-relationship-attribute.md index 83b3e5833b9..d96ee59a4d0 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/create-relationship-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases, RelationshipType, RelationMutate } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/create-string-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/create-string-attribute.md index d35b8a791f0..5f8e9555411 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/create-string-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/create-string-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/create-url-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/create-url-attribute.md index 9127e3acd06..4639f75f5ba 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/create-url-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/create-url-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/create.md b/docs/examples/1.6.x/server-deno/examples/databases/create.md index a4252aa7c86..86795eb7506 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/create.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/create.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/delete-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/delete-attribute.md index 142ae5af138..f7ad6b105a7 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/delete-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/delete-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/delete-collection.md b/docs/examples/1.6.x/server-deno/examples/databases/delete-collection.md index 3d72fa038aa..828d48a7bcc 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/delete-collection.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/delete-collection.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/delete-document.md b/docs/examples/1.6.x/server-deno/examples/databases/delete-document.md index ade8151b807..47d5df49f15 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/delete-document.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/delete-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/databases/delete-documents.md b/docs/examples/1.6.x/server-deno/examples/databases/delete-documents.md new file mode 100644 index 00000000000..4768ed426bd --- /dev/null +++ b/docs/examples/1.6.x/server-deno/examples/databases/delete-documents.md @@ -0,0 +1,14 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.deleteDocuments( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + [] // queries (optional) +); diff --git a/docs/examples/1.6.x/server-deno/examples/databases/delete-index.md b/docs/examples/1.6.x/server-deno/examples/databases/delete-index.md index 5bca23adf5e..eee1613a870 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/delete-index.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/delete-index.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/delete.md b/docs/examples/1.6.x/server-deno/examples/databases/delete.md index c729b9791ce..39b3f5395e5 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/delete.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/delete.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/get-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/get-attribute.md index a8300ea2a08..f2b801b5f1c 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/get-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/get-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/get-collection.md b/docs/examples/1.6.x/server-deno/examples/databases/get-collection.md index b5213943e6e..b94f4fd5ffb 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/get-collection.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/get-collection.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/get-document.md b/docs/examples/1.6.x/server-deno/examples/databases/get-document.md index 1e5669ac964..5cb02c4de3c 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/get-document.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/get-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/databases/get-index.md b/docs/examples/1.6.x/server-deno/examples/databases/get-index.md index bfd74021fa1..6c3a3dec1ad 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/get-index.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/get-index.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/get.md b/docs/examples/1.6.x/server-deno/examples/databases/get.md index 386fbfedc6f..403e467e048 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/get.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/get.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/list-attributes.md b/docs/examples/1.6.x/server-deno/examples/databases/list-attributes.md index bedab6c9f62..2171ffe4ada 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/list-attributes.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/list-attributes.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/list-collections.md b/docs/examples/1.6.x/server-deno/examples/databases/list-collections.md index 9b4f76c57af..408ea2d601e 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/list-collections.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/list-collections.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/list-documents.md b/docs/examples/1.6.x/server-deno/examples/databases/list-documents.md index 0aa7b3f0b39..528e9795174 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/list-documents.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/databases/list-indexes.md b/docs/examples/1.6.x/server-deno/examples/databases/list-indexes.md index 58222cbb553..88af3b7f28b 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/list-indexes.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/list-indexes.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/list.md b/docs/examples/1.6.x/server-deno/examples/databases/list.md index 8c8374e7ee2..dcae151617b 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/list.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/list.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/update-boolean-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/update-boolean-attribute.md index dc107667aae..fe1b80073a3 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/update-boolean-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/update-collection.md b/docs/examples/1.6.x/server-deno/examples/databases/update-collection.md index 88a34932678..47f1c027837 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/update-collection.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/update-collection.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/update-datetime-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/update-datetime-attribute.md index 7de5a2c8471..ad18d938658 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/update-datetime-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/update-document.md b/docs/examples/1.6.x/server-deno/examples/databases/update-document.md index fe9947e7454..31cce5ed1c5 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/update-document.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/update-document.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/databases/update-documents.md b/docs/examples/1.6.x/server-deno/examples/databases/update-documents.md new file mode 100644 index 00000000000..1eef7794fb6 --- /dev/null +++ b/docs/examples/1.6.x/server-deno/examples/databases/update-documents.md @@ -0,0 +1,15 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.updateDocuments( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + {}, // data (optional) + [] // queries (optional) +); diff --git a/docs/examples/1.6.x/server-deno/examples/databases/update-email-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/update-email-attribute.md index 41df1826512..116fadc6c76 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/update-email-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/update-email-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/update-enum-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/update-enum-attribute.md index 6c0f9127b0b..663e44b530a 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/update-enum-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/update-float-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/update-float-attribute.md index fef0c8c6b4e..d9eab5aac55 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/update-float-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/update-float-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -12,8 +12,8 @@ const response = await databases.updateFloatAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - null, // min - null, // max null, // default + null, // min (optional) + null, // max (optional) '' // newKey (optional) ); diff --git a/docs/examples/1.6.x/server-deno/examples/databases/update-integer-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/update-integer-attribute.md index 18db8ddc0d8..369b49d574b 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/update-integer-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -12,8 +12,8 @@ const response = await databases.updateIntegerAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - null, // min - null, // max null, // default + null, // min (optional) + null, // max (optional) '' // newKey (optional) ); diff --git a/docs/examples/1.6.x/server-deno/examples/databases/update-ip-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/update-ip-attribute.md index 9348cfa0b4a..049a5279937 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/update-ip-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/update-relationship-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/update-relationship-attribute.md index 3d0bfdd9162..7fae26b535a 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/update-relationship-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases, RelationMutate } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/update-string-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/update-string-attribute.md index 6603c377cbd..ec91d3367e5 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/update-string-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/update-string-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -13,6 +13,6 @@ const response = await databases.updateStringAttribute( '', // key false, // required '<DEFAULT>', // default - null, // size (optional) + 1, // size (optional) '' // newKey (optional) ); diff --git a/docs/examples/1.6.x/server-deno/examples/databases/update-url-attribute.md b/docs/examples/1.6.x/server-deno/examples/databases/update-url-attribute.md index f1027d84b69..32f44b7eaf6 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/update-url-attribute.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/update-url-attribute.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/update.md b/docs/examples/1.6.x/server-deno/examples/databases/update.md index 2e19221d1a9..b87ad82ec0a 100644 --- a/docs/examples/1.6.x/server-deno/examples/databases/update.md +++ b/docs/examples/1.6.x/server-deno/examples/databases/update.md @@ -1,7 +1,7 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/databases/upsert-documents.md b/docs/examples/1.6.x/server-deno/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..c0ee477875a --- /dev/null +++ b/docs/examples/1.6.x/server-deno/examples/databases/upsert-documents.md @@ -0,0 +1,14 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.upsertDocuments( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + [] // documents (optional) +); diff --git a/docs/examples/1.6.x/server-deno/examples/functions/create-build.md b/docs/examples/1.6.x/server-deno/examples/functions/create-build.md index c68fb256e06..16384c19780 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/create-build.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/create-build.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/create-deployment.md b/docs/examples/1.6.x/server-deno/examples/functions/create-deployment.md index 5b976e65396..a134a382fa5 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/create-deployment.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/create-deployment.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/create-execution.md b/docs/examples/1.6.x/server-deno/examples/functions/create-execution.md index c794d72231d..bec6a17db24 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/create-execution.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/create-execution.md @@ -1,7 +1,7 @@ import { Client, Functions, ExecutionMethod } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/functions/create-variable.md b/docs/examples/1.6.x/server-deno/examples/functions/create-variable.md index 472a7982071..383512c8a69 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/create-variable.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/create-variable.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/create.md b/docs/examples/1.6.x/server-deno/examples/functions/create.md index 2bb31f7d0c1..b05189943e5 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/create.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/create.md @@ -1,7 +1,7 @@ import { Client, Functions, } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/delete-deployment.md b/docs/examples/1.6.x/server-deno/examples/functions/delete-deployment.md index b640055473a..179bbaf3034 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/delete-deployment.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/delete-deployment.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/delete-execution.md b/docs/examples/1.6.x/server-deno/examples/functions/delete-execution.md index 1785a0ed9ee..4ab7c377852 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/delete-execution.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/delete-execution.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/delete-variable.md b/docs/examples/1.6.x/server-deno/examples/functions/delete-variable.md index c4786ffe21d..39a9428ed37 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/delete-variable.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/delete-variable.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/delete.md b/docs/examples/1.6.x/server-deno/examples/functions/delete.md index 7155610689f..94d58c33dd8 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/delete.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/delete.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/get-deployment-download.md b/docs/examples/1.6.x/server-deno/examples/functions/get-deployment-download.md index c619208b501..05fdfa608fa 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/get-deployment-download.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/get-deployment-download.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/get-deployment.md b/docs/examples/1.6.x/server-deno/examples/functions/get-deployment.md index 50e4cc50c06..339b99d4f19 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/get-deployment.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/get-deployment.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/get-execution.md b/docs/examples/1.6.x/server-deno/examples/functions/get-execution.md index af68d743605..adeff0256aa 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/get-execution.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/functions/get-variable.md b/docs/examples/1.6.x/server-deno/examples/functions/get-variable.md index 2352321bff4..cbbdd2f8475 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/get-variable.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/get-variable.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/get.md b/docs/examples/1.6.x/server-deno/examples/functions/get.md index f90767de19d..8fec17ed15a 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/get.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/get.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/list-deployments.md b/docs/examples/1.6.x/server-deno/examples/functions/list-deployments.md index 2f4c345de22..849fe232b89 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/list-deployments.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/list-deployments.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/list-executions.md b/docs/examples/1.6.x/server-deno/examples/functions/list-executions.md index b8ce31703e6..4efe6c74759 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/list-executions.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/functions/list-runtimes.md b/docs/examples/1.6.x/server-deno/examples/functions/list-runtimes.md index f78dfd03e73..a45afe4aa7b 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/list-runtimes.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/list-runtimes.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/list-specifications.md b/docs/examples/1.6.x/server-deno/examples/functions/list-specifications.md index 5dff4354ee4..3bf0d08e7ca 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/list-specifications.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/list-specifications.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/list-templates.md b/docs/examples/1.6.x/server-deno/examples/functions/list-templates.md deleted file mode 100644 index 06203e404b0..00000000000 --- a/docs/examples/1.6.x/server-deno/examples/functions/list-templates.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const functions = new Functions(client); - -const response = await functions.listTemplates( - [], // runtimes (optional) - [], // useCases (optional) - 1, // limit (optional) - 0 // offset (optional) -); diff --git a/docs/examples/1.6.x/server-deno/examples/functions/list-variables.md b/docs/examples/1.6.x/server-deno/examples/functions/list-variables.md index 991292aac1c..173d5aa9ef3 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/list-variables.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/list-variables.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/list.md b/docs/examples/1.6.x/server-deno/examples/functions/list.md index 6d1e09ba525..ecc43d1a7c0 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/list.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/list.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/update-deployment-build.md b/docs/examples/1.6.x/server-deno/examples/functions/update-deployment-build.md index 65ea3a97e6e..16614de37ad 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/update-deployment-build.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/update-deployment-build.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/update-deployment.md b/docs/examples/1.6.x/server-deno/examples/functions/update-deployment.md index 87af2f34bfd..c29551ea33b 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/update-deployment.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/update-deployment.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/update-variable.md b/docs/examples/1.6.x/server-deno/examples/functions/update-variable.md index 5213a92ee82..bda189bdd47 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/update-variable.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/update-variable.md @@ -1,7 +1,7 @@ import { Client, Functions } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/functions/update.md b/docs/examples/1.6.x/server-deno/examples/functions/update.md index ab275257dbe..399af058417 100644 --- a/docs/examples/1.6.x/server-deno/examples/functions/update.md +++ b/docs/examples/1.6.x/server-deno/examples/functions/update.md @@ -1,7 +1,7 @@ import { Client, Functions, } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/graphql/mutation.md b/docs/examples/1.6.x/server-deno/examples/graphql/mutation.md index 68c06aa4e41..200120f1e85 100644 --- a/docs/examples/1.6.x/server-deno/examples/graphql/mutation.md +++ b/docs/examples/1.6.x/server-deno/examples/graphql/mutation.md @@ -1,7 +1,7 @@ import { Client, Graphql } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/graphql/query.md b/docs/examples/1.6.x/server-deno/examples/graphql/query.md index 480c481f9cc..bb0116278cf 100644 --- a/docs/examples/1.6.x/server-deno/examples/graphql/query.md +++ b/docs/examples/1.6.x/server-deno/examples/graphql/query.md @@ -1,7 +1,7 @@ import { Client, Graphql } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-antivirus.md b/docs/examples/1.6.x/server-deno/examples/health/get-antivirus.md index ccf2968dd84..d8dcc1fe3a5 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-antivirus.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-antivirus.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-cache.md b/docs/examples/1.6.x/server-deno/examples/health/get-cache.md index 2811f017a7c..e138b50b264 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-cache.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-cache.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-certificate.md b/docs/examples/1.6.x/server-deno/examples/health/get-certificate.md index 5bde913750c..828e53dd7bb 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-certificate.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-certificate.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-d-b.md b/docs/examples/1.6.x/server-deno/examples/health/get-d-b.md index 598c163b447..bded9eb81be 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-d-b.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-d-b.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-failed-jobs.md b/docs/examples/1.6.x/server-deno/examples/health/get-failed-jobs.md index dd44711e5e1..5e40f762e44 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-failed-jobs.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-failed-jobs.md @@ -1,7 +1,7 @@ import { Client, Health, } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-pub-sub.md b/docs/examples/1.6.x/server-deno/examples/health/get-pub-sub.md index 9ecda7d32ac..ecc05a3e21b 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-pub-sub.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-pub-sub.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-queue-builds.md b/docs/examples/1.6.x/server-deno/examples/health/get-queue-builds.md index 3b05fe66c3f..f6b9388bb36 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-queue-builds.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-queue-builds.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-queue-certificates.md b/docs/examples/1.6.x/server-deno/examples/health/get-queue-certificates.md index 73139a0806c..e783fa52b3a 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-queue-certificates.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-queue-certificates.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-queue-databases.md b/docs/examples/1.6.x/server-deno/examples/health/get-queue-databases.md index 9130cb8c349..e33c7a29293 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-queue-databases.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-queue-databases.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-queue-deletes.md b/docs/examples/1.6.x/server-deno/examples/health/get-queue-deletes.md index 967e27d4a75..ea7da5b587e 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-queue-deletes.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-queue-deletes.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-queue-functions.md b/docs/examples/1.6.x/server-deno/examples/health/get-queue-functions.md index a621d140a1c..e075a65602f 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-queue-functions.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-queue-functions.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-queue-logs.md b/docs/examples/1.6.x/server-deno/examples/health/get-queue-logs.md index 7443b04fc49..eb7ffb028a0 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-queue-logs.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-queue-logs.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-queue-mails.md b/docs/examples/1.6.x/server-deno/examples/health/get-queue-mails.md index f794deb8add..d9f61bc088d 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-queue-mails.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-queue-mails.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-queue-messaging.md b/docs/examples/1.6.x/server-deno/examples/health/get-queue-messaging.md index f04652e5978..8bc76398d9f 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-queue-messaging.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-queue-messaging.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-queue-migrations.md b/docs/examples/1.6.x/server-deno/examples/health/get-queue-migrations.md index 5b3ba573511..e6f7bf543c3 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-queue-migrations.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-queue-migrations.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-queue-stats-resources.md b/docs/examples/1.6.x/server-deno/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..ecc7ebd322e --- /dev/null +++ b/docs/examples/1.6.x/server-deno/examples/health/get-queue-stats-resources.md @@ -0,0 +1,12 @@ +import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new Health(client); + +const response = await health.getQueueStatsResources( + null // threshold (optional) +); diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-queue-usage-dump.md b/docs/examples/1.6.x/server-deno/examples/health/get-queue-usage-dump.md index 5103b031af0..5efbc616246 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-queue-usage-dump.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-queue-usage.md b/docs/examples/1.6.x/server-deno/examples/health/get-queue-usage.md index 54dc92f7fd2..46aa4db5be2 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-queue-usage.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-queue-usage.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-queue-webhooks.md b/docs/examples/1.6.x/server-deno/examples/health/get-queue-webhooks.md index b1c8b54665a..75a1c1f8336 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-queue-webhooks.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-queue.md b/docs/examples/1.6.x/server-deno/examples/health/get-queue.md index 078993c5b81..fe4962d3512 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-queue.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-queue.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-storage-local.md b/docs/examples/1.6.x/server-deno/examples/health/get-storage-local.md index afffff6e1d2..0e64e1a6dd2 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-storage-local.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-storage-local.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-storage.md b/docs/examples/1.6.x/server-deno/examples/health/get-storage.md index c7fe4358c9b..698e33b9998 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-storage.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-storage.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get-time.md b/docs/examples/1.6.x/server-deno/examples/health/get-time.md index 658ce30624f..1bb1ae0e560 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get-time.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get-time.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/health/get.md b/docs/examples/1.6.x/server-deno/examples/health/get.md index 4483f9595ed..87d7ea53969 100644 --- a/docs/examples/1.6.x/server-deno/examples/health/get.md +++ b/docs/examples/1.6.x/server-deno/examples/health/get.md @@ -1,7 +1,7 @@ import { Client, Health } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/locale/get.md b/docs/examples/1.6.x/server-deno/examples/locale/get.md index 5d52acb3863..960ee6f4f3f 100644 --- a/docs/examples/1.6.x/server-deno/examples/locale/get.md +++ b/docs/examples/1.6.x/server-deno/examples/locale/get.md @@ -1,7 +1,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/locale/list-codes.md b/docs/examples/1.6.x/server-deno/examples/locale/list-codes.md index bed3b4cd814..8f91c212dfd 100644 --- a/docs/examples/1.6.x/server-deno/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/server-deno/examples/locale/list-codes.md @@ -1,7 +1,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/locale/list-continents.md b/docs/examples/1.6.x/server-deno/examples/locale/list-continents.md index 61b53851cd2..55b208c7418 100644 --- a/docs/examples/1.6.x/server-deno/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/server-deno/examples/locale/list-continents.md @@ -1,7 +1,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/server-deno/examples/locale/list-countries-e-u.md index 231c2f7f8b0..b4fbfa0e370 100644 --- a/docs/examples/1.6.x/server-deno/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/server-deno/examples/locale/list-countries-e-u.md @@ -1,7 +1,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/server-deno/examples/locale/list-countries-phones.md index 34be4cb8da5..19ac0a06cfe 100644 --- a/docs/examples/1.6.x/server-deno/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/server-deno/examples/locale/list-countries-phones.md @@ -1,7 +1,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/locale/list-countries.md b/docs/examples/1.6.x/server-deno/examples/locale/list-countries.md index dfa085b0a19..67ba0fedd7e 100644 --- a/docs/examples/1.6.x/server-deno/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/server-deno/examples/locale/list-countries.md @@ -1,7 +1,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/locale/list-currencies.md b/docs/examples/1.6.x/server-deno/examples/locale/list-currencies.md index 0c809286899..986f09d237a 100644 --- a/docs/examples/1.6.x/server-deno/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/server-deno/examples/locale/list-currencies.md @@ -1,7 +1,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/locale/list-languages.md b/docs/examples/1.6.x/server-deno/examples/locale/list-languages.md index 8625649350b..91b4a857b92 100644 --- a/docs/examples/1.6.x/server-deno/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/server-deno/examples/locale/list-languages.md @@ -1,7 +1,7 @@ import { Client, Locale } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/create-apns-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/create-apns-provider.md index 8b890925649..e2c33feff8a 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/create-apns-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/create-email.md b/docs/examples/1.6.x/server-deno/examples/messaging/create-email.md index 552e9e3ed42..8db2879f9c2 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/create-email.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/create-email.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/create-fcm-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/create-fcm-provider.md index bd9f0756c8f..3f443d6bf5f 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/create-fcm-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/create-mailgun-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/create-mailgun-provider.md index 3192bb2567b..32f7c94f211 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/create-mailgun-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/create-msg91provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/create-msg91provider.md index bd6b0304ad3..57e94188b96 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/create-msg91provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/create-push.md b/docs/examples/1.6.x/server-deno/examples/messaging/create-push.md index 005cca1b77c..7523c2978f8 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/create-push.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/create-push.md @@ -1,7 +1,7 @@ -import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; +import { Client, Messaging, MessagePriority } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -9,8 +9,8 @@ const messaging = new Messaging(client); const response = await messaging.createPush( '<MESSAGE_ID>', // messageId - '<TITLE>', // title - '<BODY>', // body + '<TITLE>', // title (optional) + '<BODY>', // body (optional) [], // topics (optional) [], // users (optional) [], // targets (optional) @@ -21,7 +21,10 @@ const response = await messaging.createPush( '<SOUND>', // sound (optional) '<COLOR>', // color (optional) '<TAG>', // tag (optional) - '<BADGE>', // badge (optional) + null, // badge (optional) false, // draft (optional) - '' // scheduledAt (optional) + '', // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + MessagePriority.Normal // priority (optional) ); diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/create-sendgrid-provider.md index c6d4e2a8ee4..15fe7b8c7b0 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/create-sendgrid-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/create-sms.md b/docs/examples/1.6.x/server-deno/examples/messaging/create-sms.md index c316ea5ac14..264203a8be5 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/create-sms.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/create-sms.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/create-smtp-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/create-smtp-provider.md index c1fb9ece507..2d6d33c62a9 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/create-smtp-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging, SmtpEncryption } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/server-deno/examples/messaging/create-subscriber.md index 26d7a97175e..8be79f3f9ee 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/create-subscriber.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/create-telesign-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/create-telesign-provider.md index 391483a8af0..2bb95c4e2d7 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/create-telesign-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/create-textmagic-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/create-textmagic-provider.md index 934372f82f5..46574936646 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/create-textmagic-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/create-topic.md b/docs/examples/1.6.x/server-deno/examples/messaging/create-topic.md index 75d1103e5ed..c2ca3a4ed21 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/create-topic.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/create-topic.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/create-twilio-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/create-twilio-provider.md index ee17992c719..aa7bbf6a186 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/create-twilio-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/create-vonage-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/create-vonage-provider.md index 3e8dd36ec7a..5fe734fb0c9 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/create-vonage-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/delete-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/delete-provider.md index 8ade1615f3d..7bc99ef3b52 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/delete-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/delete-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/delete-subscriber.md b/docs/examples/1.6.x/server-deno/examples/messaging/delete-subscriber.md index 1df31754608..147456887da 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/delete-subscriber.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/delete-topic.md b/docs/examples/1.6.x/server-deno/examples/messaging/delete-topic.md index fb50be8d5e7..aa1359cf281 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/delete-topic.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/delete-topic.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/delete.md b/docs/examples/1.6.x/server-deno/examples/messaging/delete.md index edd34565976..0442da1e8b0 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/delete.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/delete.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/get-message.md b/docs/examples/1.6.x/server-deno/examples/messaging/get-message.md index 42d46131aa4..9565a611aed 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/get-message.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/get-message.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/get-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/get-provider.md index fe444769344..8e5d4264186 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/get-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/get-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/get-subscriber.md b/docs/examples/1.6.x/server-deno/examples/messaging/get-subscriber.md index abfc167056b..e9377a532fa 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/get-subscriber.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/get-subscriber.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/get-topic.md b/docs/examples/1.6.x/server-deno/examples/messaging/get-topic.md index 0e104881162..35f1853adaf 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/get-topic.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/get-topic.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/list-message-logs.md b/docs/examples/1.6.x/server-deno/examples/messaging/list-message-logs.md index b9424fa7cc2..f39a90037a9 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/list-message-logs.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/list-message-logs.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/list-messages.md b/docs/examples/1.6.x/server-deno/examples/messaging/list-messages.md index 159d61b5853..50b1a10f4b5 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/list-messages.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/list-messages.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/list-provider-logs.md b/docs/examples/1.6.x/server-deno/examples/messaging/list-provider-logs.md index af33244a7d5..c4b20a83069 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/list-provider-logs.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/list-providers.md b/docs/examples/1.6.x/server-deno/examples/messaging/list-providers.md index 8aa51c4474f..7c877c25ded 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/list-providers.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/list-providers.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/list-subscriber-logs.md b/docs/examples/1.6.x/server-deno/examples/messaging/list-subscriber-logs.md index 036b69af0a7..0d14f857771 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/list-subscriber-logs.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/list-subscribers.md b/docs/examples/1.6.x/server-deno/examples/messaging/list-subscribers.md index bc820a4283b..384bb8fe4f3 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/list-subscribers.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/list-subscribers.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/list-targets.md b/docs/examples/1.6.x/server-deno/examples/messaging/list-targets.md index f2e7d470587..5ce20822362 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/list-targets.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/list-targets.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/list-topic-logs.md b/docs/examples/1.6.x/server-deno/examples/messaging/list-topic-logs.md index bb57ea99ea3..d2c771d480e 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/list-topic-logs.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/list-topics.md b/docs/examples/1.6.x/server-deno/examples/messaging/list-topics.md index 4933b229fe4..1d0ec43066a 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/list-topics.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/list-topics.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/update-apns-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/update-apns-provider.md index 1786ad44bae..71bd038edb4 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/update-apns-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/update-email.md b/docs/examples/1.6.x/server-deno/examples/messaging/update-email.md index 534bc3f2f30..c8b05582503 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/update-email.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/update-email.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/update-fcm-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/update-fcm-provider.md index f9d1533d5f6..eb71dddd1a5 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/update-fcm-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/update-mailgun-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/update-mailgun-provider.md index 7de8939ff5a..f80d6a4b1d4 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/update-mailgun-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/update-msg91provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/update-msg91provider.md index 5cbb3d9a740..36943f2fa0a 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/update-msg91provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/update-push.md b/docs/examples/1.6.x/server-deno/examples/messaging/update-push.md index 9c66ab6ab7e..c7f068604b4 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/update-push.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/update-push.md @@ -1,7 +1,7 @@ -import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; +import { Client, Messaging, MessagePriority } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -23,5 +23,8 @@ const response = await messaging.updatePush( '<TAG>', // tag (optional) null, // badge (optional) false, // draft (optional) - '' // scheduledAt (optional) + '', // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + MessagePriority.Normal // priority (optional) ); diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/update-sendgrid-provider.md index 66dffb18f9d..0ec96db2f80 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/update-sendgrid-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/update-sms.md b/docs/examples/1.6.x/server-deno/examples/messaging/update-sms.md index a027f1dda9c..9c1dc4a5dc2 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/update-sms.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/update-sms.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/update-smtp-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/update-smtp-provider.md index 6eb90cebbd1..9d59bb36462 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/update-smtp-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging, SmtpEncryption } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/update-telesign-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/update-telesign-provider.md index cc8448f5b25..052d394f053 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/update-telesign-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/update-textmagic-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/update-textmagic-provider.md index fa12103524f..2163792f83b 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/update-textmagic-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/update-topic.md b/docs/examples/1.6.x/server-deno/examples/messaging/update-topic.md index 1b60af0f377..5f7f77901b1 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/update-topic.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/update-topic.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/update-twilio-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/update-twilio-provider.md index e63a54cc116..5abdd65a9cd 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/update-twilio-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/messaging/update-vonage-provider.md b/docs/examples/1.6.x/server-deno/examples/messaging/update-vonage-provider.md index c4c68b290c8..c8fa90d9ab1 100644 --- a/docs/examples/1.6.x/server-deno/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.6.x/server-deno/examples/messaging/update-vonage-provider.md @@ -1,7 +1,7 @@ import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/storage/create-bucket.md b/docs/examples/1.6.x/server-deno/examples/storage/create-bucket.md index 095f390e835..e7d3e9006a0 100644 --- a/docs/examples/1.6.x/server-deno/examples/storage/create-bucket.md +++ b/docs/examples/1.6.x/server-deno/examples/storage/create-bucket.md @@ -1,7 +1,7 @@ import { Client, Storage, } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/storage/create-file.md b/docs/examples/1.6.x/server-deno/examples/storage/create-file.md index 9a420bb65c7..d8912c6c1e3 100644 --- a/docs/examples/1.6.x/server-deno/examples/storage/create-file.md +++ b/docs/examples/1.6.x/server-deno/examples/storage/create-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/storage/delete-bucket.md b/docs/examples/1.6.x/server-deno/examples/storage/delete-bucket.md index eafb60eb772..f0d71467d46 100644 --- a/docs/examples/1.6.x/server-deno/examples/storage/delete-bucket.md +++ b/docs/examples/1.6.x/server-deno/examples/storage/delete-bucket.md @@ -1,7 +1,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/storage/delete-file.md b/docs/examples/1.6.x/server-deno/examples/storage/delete-file.md index 554dbeb4cde..2a1f95ed183 100644 --- a/docs/examples/1.6.x/server-deno/examples/storage/delete-file.md +++ b/docs/examples/1.6.x/server-deno/examples/storage/delete-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/storage/get-bucket.md b/docs/examples/1.6.x/server-deno/examples/storage/get-bucket.md index 1e0107edb8f..a695021b72e 100644 --- a/docs/examples/1.6.x/server-deno/examples/storage/get-bucket.md +++ b/docs/examples/1.6.x/server-deno/examples/storage/get-bucket.md @@ -1,7 +1,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/storage/get-file-download.md b/docs/examples/1.6.x/server-deno/examples/storage/get-file-download.md index b3612f297db..8319e64f094 100644 --- a/docs/examples/1.6.x/server-deno/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/server-deno/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/storage/get-file-preview.md b/docs/examples/1.6.x/server-deno/examples/storage/get-file-preview.md index d1a91c25aac..ed87c3549e1 100644 --- a/docs/examples/1.6.x/server-deno/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/server-deno/examples/storage/get-file-preview.md @@ -1,7 +1,7 @@ import { Client, Storage, ImageGravity, ImageFormat } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/storage/get-file-view.md b/docs/examples/1.6.x/server-deno/examples/storage/get-file-view.md index 14e28a07b7a..b18cffcd016 100644 --- a/docs/examples/1.6.x/server-deno/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/server-deno/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/storage/get-file.md b/docs/examples/1.6.x/server-deno/examples/storage/get-file.md index 0ad049a0414..5479dc569d5 100644 --- a/docs/examples/1.6.x/server-deno/examples/storage/get-file.md +++ b/docs/examples/1.6.x/server-deno/examples/storage/get-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/storage/list-buckets.md b/docs/examples/1.6.x/server-deno/examples/storage/list-buckets.md index 667f65f87d7..9286bd488cc 100644 --- a/docs/examples/1.6.x/server-deno/examples/storage/list-buckets.md +++ b/docs/examples/1.6.x/server-deno/examples/storage/list-buckets.md @@ -1,7 +1,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/storage/list-files.md b/docs/examples/1.6.x/server-deno/examples/storage/list-files.md index 7d18165f336..316875cf51b 100644 --- a/docs/examples/1.6.x/server-deno/examples/storage/list-files.md +++ b/docs/examples/1.6.x/server-deno/examples/storage/list-files.md @@ -1,7 +1,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/storage/update-bucket.md b/docs/examples/1.6.x/server-deno/examples/storage/update-bucket.md index 7af2c1a6a54..1e70f16ef3d 100644 --- a/docs/examples/1.6.x/server-deno/examples/storage/update-bucket.md +++ b/docs/examples/1.6.x/server-deno/examples/storage/update-bucket.md @@ -1,7 +1,7 @@ import { Client, Storage, } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/storage/update-file.md b/docs/examples/1.6.x/server-deno/examples/storage/update-file.md index 153ce08071e..683b0b73043 100644 --- a/docs/examples/1.6.x/server-deno/examples/storage/update-file.md +++ b/docs/examples/1.6.x/server-deno/examples/storage/update-file.md @@ -1,7 +1,7 @@ import { Client, Storage } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/teams/create-membership.md b/docs/examples/1.6.x/server-deno/examples/teams/create-membership.md index 69465f5efa4..d8e855f8520 100644 --- a/docs/examples/1.6.x/server-deno/examples/teams/create-membership.md +++ b/docs/examples/1.6.x/server-deno/examples/teams/create-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/teams/create.md b/docs/examples/1.6.x/server-deno/examples/teams/create.md index abcc0fd6aa9..495f26e006e 100644 --- a/docs/examples/1.6.x/server-deno/examples/teams/create.md +++ b/docs/examples/1.6.x/server-deno/examples/teams/create.md @@ -1,7 +1,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/teams/delete-membership.md b/docs/examples/1.6.x/server-deno/examples/teams/delete-membership.md index a2a4807922a..a5b03875d5a 100644 --- a/docs/examples/1.6.x/server-deno/examples/teams/delete-membership.md +++ b/docs/examples/1.6.x/server-deno/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/teams/delete.md b/docs/examples/1.6.x/server-deno/examples/teams/delete.md index 05d35f0cbf8..556fbb5ea5c 100644 --- a/docs/examples/1.6.x/server-deno/examples/teams/delete.md +++ b/docs/examples/1.6.x/server-deno/examples/teams/delete.md @@ -1,7 +1,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/teams/get-membership.md b/docs/examples/1.6.x/server-deno/examples/teams/get-membership.md index 9f9722ebde5..75283bffc76 100644 --- a/docs/examples/1.6.x/server-deno/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/server-deno/examples/teams/get-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/teams/get-prefs.md b/docs/examples/1.6.x/server-deno/examples/teams/get-prefs.md index d741911586c..442d8b139a0 100644 --- a/docs/examples/1.6.x/server-deno/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/server-deno/examples/teams/get-prefs.md @@ -1,7 +1,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/teams/get.md b/docs/examples/1.6.x/server-deno/examples/teams/get.md index f5d7c12a86d..2e5803ca7b1 100644 --- a/docs/examples/1.6.x/server-deno/examples/teams/get.md +++ b/docs/examples/1.6.x/server-deno/examples/teams/get.md @@ -1,7 +1,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/teams/list-memberships.md b/docs/examples/1.6.x/server-deno/examples/teams/list-memberships.md index 01988a7d17f..0b7e6638e6f 100644 --- a/docs/examples/1.6.x/server-deno/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/server-deno/examples/teams/list-memberships.md @@ -1,7 +1,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/teams/list.md b/docs/examples/1.6.x/server-deno/examples/teams/list.md index dd295a013a1..6c08b5c80ac 100644 --- a/docs/examples/1.6.x/server-deno/examples/teams/list.md +++ b/docs/examples/1.6.x/server-deno/examples/teams/list.md @@ -1,7 +1,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/teams/update-membership-status.md b/docs/examples/1.6.x/server-deno/examples/teams/update-membership-status.md index 349ae6d12d1..48fc9cd8be5 100644 --- a/docs/examples/1.6.x/server-deno/examples/teams/update-membership-status.md +++ b/docs/examples/1.6.x/server-deno/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/teams/update-membership.md b/docs/examples/1.6.x/server-deno/examples/teams/update-membership.md index 0f03ecb8dd7..be8651d724a 100644 --- a/docs/examples/1.6.x/server-deno/examples/teams/update-membership.md +++ b/docs/examples/1.6.x/server-deno/examples/teams/update-membership.md @@ -1,7 +1,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/teams/update-name.md b/docs/examples/1.6.x/server-deno/examples/teams/update-name.md index 4e678ea881f..6e2144b897e 100644 --- a/docs/examples/1.6.x/server-deno/examples/teams/update-name.md +++ b/docs/examples/1.6.x/server-deno/examples/teams/update-name.md @@ -1,7 +1,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/teams/update-prefs.md b/docs/examples/1.6.x/server-deno/examples/teams/update-prefs.md index 9d11a5dd38a..dea8a368c4f 100644 --- a/docs/examples/1.6.x/server-deno/examples/teams/update-prefs.md +++ b/docs/examples/1.6.x/server-deno/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ import { Client, Teams } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-deno/examples/users/create-argon2user.md b/docs/examples/1.6.x/server-deno/examples/users/create-argon2user.md index 1dec8dc5c1e..7a6e0fb1440 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/create-argon2user.md +++ b/docs/examples/1.6.x/server-deno/examples/users/create-argon2user.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/create-bcrypt-user.md b/docs/examples/1.6.x/server-deno/examples/users/create-bcrypt-user.md index a57d1aeaa88..ddfb7f3b129 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.6.x/server-deno/examples/users/create-bcrypt-user.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/create-j-w-t.md b/docs/examples/1.6.x/server-deno/examples/users/create-j-w-t.md index bc5205d0066..4c433aebdd7 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/create-j-w-t.md +++ b/docs/examples/1.6.x/server-deno/examples/users/create-j-w-t.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/create-m-d5user.md b/docs/examples/1.6.x/server-deno/examples/users/create-m-d5user.md index 095d19f758b..8cc63cedbde 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/create-m-d5user.md +++ b/docs/examples/1.6.x/server-deno/examples/users/create-m-d5user.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-deno/examples/users/create-mfa-recovery-codes.md index da3741a14ab..98ba71a845a 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-deno/examples/users/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/create-p-h-pass-user.md b/docs/examples/1.6.x/server-deno/examples/users/create-p-h-pass-user.md index d3ada293783..750b2990746 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.6.x/server-deno/examples/users/create-p-h-pass-user.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/create-s-h-a-user.md b/docs/examples/1.6.x/server-deno/examples/users/create-s-h-a-user.md index 0d63f1b29c2..e243a1d6ee4 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.6.x/server-deno/examples/users/create-s-h-a-user.md @@ -1,7 +1,7 @@ import { Client, Users, PasswordHash } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/create-scrypt-modified-user.md b/docs/examples/1.6.x/server-deno/examples/users/create-scrypt-modified-user.md index 0ee061e743e..0d6a65b8b49 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.6.x/server-deno/examples/users/create-scrypt-modified-user.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/create-scrypt-user.md b/docs/examples/1.6.x/server-deno/examples/users/create-scrypt-user.md index fcf42316134..87f2dbb09e1 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/create-scrypt-user.md +++ b/docs/examples/1.6.x/server-deno/examples/users/create-scrypt-user.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/create-session.md b/docs/examples/1.6.x/server-deno/examples/users/create-session.md index 07c1623a614..37d6948942f 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/create-session.md +++ b/docs/examples/1.6.x/server-deno/examples/users/create-session.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/create-target.md b/docs/examples/1.6.x/server-deno/examples/users/create-target.md index 82a44f938a9..a36072a5de8 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/create-target.md +++ b/docs/examples/1.6.x/server-deno/examples/users/create-target.md @@ -1,7 +1,7 @@ import { Client, Users, MessagingProviderType } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/create-token.md b/docs/examples/1.6.x/server-deno/examples/users/create-token.md index aa15668a799..91885e15f37 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/create-token.md +++ b/docs/examples/1.6.x/server-deno/examples/users/create-token.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/create.md b/docs/examples/1.6.x/server-deno/examples/users/create.md index cd7c5b19bd4..e0eb5856d13 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/create.md +++ b/docs/examples/1.6.x/server-deno/examples/users/create.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/delete-identity.md b/docs/examples/1.6.x/server-deno/examples/users/delete-identity.md index 3a4280cf165..7aea6546451 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/delete-identity.md +++ b/docs/examples/1.6.x/server-deno/examples/users/delete-identity.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-deno/examples/users/delete-mfa-authenticator.md index 92078bbb15e..2d7595005e5 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-deno/examples/users/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ import { Client, Users, AuthenticatorType } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/delete-session.md b/docs/examples/1.6.x/server-deno/examples/users/delete-session.md index 0f9c12b57c1..0ce82fe50f1 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/delete-session.md +++ b/docs/examples/1.6.x/server-deno/examples/users/delete-session.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/delete-sessions.md b/docs/examples/1.6.x/server-deno/examples/users/delete-sessions.md index 94e2f84133a..f80300b2054 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/delete-sessions.md +++ b/docs/examples/1.6.x/server-deno/examples/users/delete-sessions.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/delete-target.md b/docs/examples/1.6.x/server-deno/examples/users/delete-target.md index ee6a280ab34..9080a962e60 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/delete-target.md +++ b/docs/examples/1.6.x/server-deno/examples/users/delete-target.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/delete.md b/docs/examples/1.6.x/server-deno/examples/users/delete.md index 3c43d5a72c3..7ac1bf1d3ae 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/delete.md +++ b/docs/examples/1.6.x/server-deno/examples/users/delete.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-deno/examples/users/get-mfa-recovery-codes.md index e63ae70917b..f78c0bf1b0c 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-deno/examples/users/get-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/get-prefs.md b/docs/examples/1.6.x/server-deno/examples/users/get-prefs.md index ef38e96f0e3..ef1be1e18bd 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/get-prefs.md +++ b/docs/examples/1.6.x/server-deno/examples/users/get-prefs.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/get-target.md b/docs/examples/1.6.x/server-deno/examples/users/get-target.md index e3d8568cc4b..301ee6e7ed0 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/get-target.md +++ b/docs/examples/1.6.x/server-deno/examples/users/get-target.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/get.md b/docs/examples/1.6.x/server-deno/examples/users/get.md index d5c2155e49f..8e41ed63509 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/get.md +++ b/docs/examples/1.6.x/server-deno/examples/users/get.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/list-identities.md b/docs/examples/1.6.x/server-deno/examples/users/list-identities.md index c12a37eb511..6ac439547b3 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/list-identities.md +++ b/docs/examples/1.6.x/server-deno/examples/users/list-identities.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/list-logs.md b/docs/examples/1.6.x/server-deno/examples/users/list-logs.md index 4fc2e6091da..983ffba299d 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/list-logs.md +++ b/docs/examples/1.6.x/server-deno/examples/users/list-logs.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/list-memberships.md b/docs/examples/1.6.x/server-deno/examples/users/list-memberships.md index 55ca2593cbe..7a55a2120b3 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/list-memberships.md +++ b/docs/examples/1.6.x/server-deno/examples/users/list-memberships.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/list-mfa-factors.md b/docs/examples/1.6.x/server-deno/examples/users/list-mfa-factors.md index 7d368b3d374..34b65afac3e 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-deno/examples/users/list-mfa-factors.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/list-sessions.md b/docs/examples/1.6.x/server-deno/examples/users/list-sessions.md index c425ded1e09..314f277d7ac 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/list-sessions.md +++ b/docs/examples/1.6.x/server-deno/examples/users/list-sessions.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/list-targets.md b/docs/examples/1.6.x/server-deno/examples/users/list-targets.md index e9a26ff6b08..9ed2dda4ce9 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/list-targets.md +++ b/docs/examples/1.6.x/server-deno/examples/users/list-targets.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/list.md b/docs/examples/1.6.x/server-deno/examples/users/list.md index d4d9da33fa8..488fbdc09c5 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/list.md +++ b/docs/examples/1.6.x/server-deno/examples/users/list.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/update-email-verification.md b/docs/examples/1.6.x/server-deno/examples/users/update-email-verification.md index 76f6e443418..3243f21c6f0 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/update-email-verification.md +++ b/docs/examples/1.6.x/server-deno/examples/users/update-email-verification.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/update-email.md b/docs/examples/1.6.x/server-deno/examples/users/update-email.md index 80b727bfa27..f609cab4634 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/update-email.md +++ b/docs/examples/1.6.x/server-deno/examples/users/update-email.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/update-labels.md b/docs/examples/1.6.x/server-deno/examples/users/update-labels.md index c41955caa1a..5a232981790 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/update-labels.md +++ b/docs/examples/1.6.x/server-deno/examples/users/update-labels.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-deno/examples/users/update-mfa-recovery-codes.md index 201ffba616c..a74577e9cc6 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-deno/examples/users/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/update-mfa.md b/docs/examples/1.6.x/server-deno/examples/users/update-mfa.md index 3f061ef366a..717f8d6ab75 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/update-mfa.md +++ b/docs/examples/1.6.x/server-deno/examples/users/update-mfa.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/update-name.md b/docs/examples/1.6.x/server-deno/examples/users/update-name.md index df53c0ffb9e..35fc853e3f3 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/update-name.md +++ b/docs/examples/1.6.x/server-deno/examples/users/update-name.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/update-password.md b/docs/examples/1.6.x/server-deno/examples/users/update-password.md index 451604f20b6..8366b5c4c2e 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/update-password.md +++ b/docs/examples/1.6.x/server-deno/examples/users/update-password.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/update-phone-verification.md b/docs/examples/1.6.x/server-deno/examples/users/update-phone-verification.md index 4f97a18c48f..088fd1eb574 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/update-phone-verification.md +++ b/docs/examples/1.6.x/server-deno/examples/users/update-phone-verification.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/update-phone.md b/docs/examples/1.6.x/server-deno/examples/users/update-phone.md index d0ae0d7a088..a8e47a62b82 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/update-phone.md +++ b/docs/examples/1.6.x/server-deno/examples/users/update-phone.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/update-prefs.md b/docs/examples/1.6.x/server-deno/examples/users/update-prefs.md index 81a329400c2..cb8919a98fb 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/update-prefs.md +++ b/docs/examples/1.6.x/server-deno/examples/users/update-prefs.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/update-status.md b/docs/examples/1.6.x/server-deno/examples/users/update-status.md index 5b1c9892d76..1c672a4d253 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/update-status.md +++ b/docs/examples/1.6.x/server-deno/examples/users/update-status.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-deno/examples/users/update-target.md b/docs/examples/1.6.x/server-deno/examples/users/update-target.md index 8a816c8df0e..4524748c551 100644 --- a/docs/examples/1.6.x/server-deno/examples/users/update-target.md +++ b/docs/examples/1.6.x/server-deno/examples/users/update-target.md @@ -1,7 +1,7 @@ import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/create-anonymous-session.md b/docs/examples/1.6.x/server-dotnet/examples/account/create-anonymous-session.md index 4ee42ff9118..fc807aa4e58 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/create-anonymous-session.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/create-email-password-session.md b/docs/examples/1.6.x/server-dotnet/examples/account/create-email-password-session.md index 4b2331223fe..abf5a413176 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/create-email-password-session.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/create-email-password-session.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/create-email-token.md b/docs/examples/1.6.x/server-dotnet/examples/account/create-email-token.md index 954848e6378..69862feed0d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/create-email-token.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/create-email-token.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/create-j-w-t.md b/docs/examples/1.6.x/server-dotnet/examples/account/create-j-w-t.md index 200b025191a..423cbed2b3c 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/create-j-w-t.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/create-j-w-t.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/server-dotnet/examples/account/create-magic-u-r-l-token.md index 1a435de405b..21bcef6bed1 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/create-magic-u-r-l-token.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/create-mfa-authenticator.md b/docs/examples/1.6.x/server-dotnet/examples/account/create-mfa-authenticator.md index 284f44e24ec..bc54970469b 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/create-mfa-authenticator.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/create-mfa-challenge.md b/docs/examples/1.6.x/server-dotnet/examples/account/create-mfa-challenge.md index 5a9ac58d15c..734133f2bdd 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/create-mfa-challenge.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-dotnet/examples/account/create-mfa-recovery-codes.md index 647e11a5272..1922a45c0a7 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/create-mfa-recovery-codes.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/server-dotnet/examples/account/create-o-auth2token.md index 2936426d336..5b405449b14 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/create-o-auth2token.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/create-phone-token.md b/docs/examples/1.6.x/server-dotnet/examples/account/create-phone-token.md index 131f7c2e477..0d17f5eceec 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/create-phone-token.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/create-phone-token.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/create-phone-verification.md b/docs/examples/1.6.x/server-dotnet/examples/account/create-phone-verification.md index c422790e11f..185fc46e0d9 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/create-phone-verification.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/create-phone-verification.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/create-recovery.md b/docs/examples/1.6.x/server-dotnet/examples/account/create-recovery.md index f50a065cd1b..c2e3571d56c 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/create-recovery.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/create-recovery.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/create-session.md b/docs/examples/1.6.x/server-dotnet/examples/account/create-session.md index 0c0bfae941c..2da46ce62be 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/create-session.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/create-session.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/create-verification.md b/docs/examples/1.6.x/server-dotnet/examples/account/create-verification.md index 64f54f7c0ee..92222ea88a8 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/create-verification.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/create-verification.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/create.md b/docs/examples/1.6.x/server-dotnet/examples/account/create.md index 5deeb885141..83c1d542515 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/create.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/create.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/delete-identity.md b/docs/examples/1.6.x/server-dotnet/examples/account/delete-identity.md index c70eed79313..9b084800d4a 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/delete-identity.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/delete-identity.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-dotnet/examples/account/delete-mfa-authenticator.md index dd36da1a349..2b27cb6ad8c 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/delete-mfa-authenticator.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/delete-session.md b/docs/examples/1.6.x/server-dotnet/examples/account/delete-session.md index 3be113d517a..0bca7c172aa 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/delete-session.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/delete-session.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/delete-sessions.md b/docs/examples/1.6.x/server-dotnet/examples/account/delete-sessions.md index 5d7aecc2005..5b0e7b5cba4 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/delete-sessions.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/delete-sessions.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-dotnet/examples/account/get-mfa-recovery-codes.md index c798ad3a483..cc39db191da 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/get-mfa-recovery-codes.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/get-prefs.md b/docs/examples/1.6.x/server-dotnet/examples/account/get-prefs.md index 0c5ee40a357..b0fce89a3fb 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/get-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/get-session.md b/docs/examples/1.6.x/server-dotnet/examples/account/get-session.md index 82bff873880..9aa7abaee02 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/get-session.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/get-session.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/get.md b/docs/examples/1.6.x/server-dotnet/examples/account/get.md index c87f4dda16c..eecb890b301 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/get.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/get.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/list-identities.md b/docs/examples/1.6.x/server-dotnet/examples/account/list-identities.md index 6d94a157449..661fab9f4ea 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/list-identities.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/list-identities.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/list-logs.md b/docs/examples/1.6.x/server-dotnet/examples/account/list-logs.md index f4c20fa38b8..8e5eadf961d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/list-logs.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/list-logs.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/server-dotnet/examples/account/list-mfa-factors.md index f6ef37882a7..291534920f4 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/list-mfa-factors.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/list-sessions.md b/docs/examples/1.6.x/server-dotnet/examples/account/list-sessions.md index e6d634b1201..6304383cb39 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/list-sessions.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-email.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-email.md index c7934f8d192..06e2a2a9dfc 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-email.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-email.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-m-f-a.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-m-f-a.md index 7cee1ad712d..b9405e7e2cc 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-m-f-a.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-magic-u-r-l-session.md index 5ecf64f74f4..a8d8312e182 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-magic-u-r-l-session.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-mfa-authenticator.md index ac8ce0631fa..051653d19a9 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-mfa-authenticator.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-mfa-challenge.md index edf863a36ea..d2735058399 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-mfa-challenge.md @@ -3,13 +3,13 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with Account account = new Account(client); - result = await account.UpdateMfaChallenge( +Session result = await account.UpdateMfaChallenge( challengeId: "<CHALLENGE_ID>", otp: "<OTP>" ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-mfa-recovery-codes.md index 1e031e9c196..7daaf932134 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-mfa-recovery-codes.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-name.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-name.md index e84fb9a96e2..6088226fc85 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-name.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-name.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-password.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-password.md index e0524a6f732..f24c703a9a8 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-password.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-password.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-phone-session.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-phone-session.md index 5004730502c..2f8b091999a 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-phone-session.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-phone-session.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-phone-verification.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-phone-verification.md index b6b310401bb..a100c0f2e2c 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-phone-verification.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-phone-verification.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-phone.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-phone.md index dab96b6f6b9..224001dd6e7 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-phone.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-phone.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-prefs.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-prefs.md index 82d892d8a36..0b348a9c74c 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-recovery.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-recovery.md index efcea1ee106..188462229b1 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-recovery.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-recovery.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-session.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-session.md index 9d7eddc6d6b..a98644c032d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-session.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-session.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-status.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-status.md index 9c9fc01c407..d9c5b41d723 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-status.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-status.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/account/update-verification.md b/docs/examples/1.6.x/server-dotnet/examples/account/update-verification.md index d8cc8adedf3..b9dd1ded402 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/account/update-verification.md +++ b/docs/examples/1.6.x/server-dotnet/examples/account/update-verification.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/avatars/get-browser.md b/docs/examples/1.6.x/server-dotnet/examples/avatars/get-browser.md index 0fc9ac7316a..888f97e2882 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/server-dotnet/examples/avatars/get-browser.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/server-dotnet/examples/avatars/get-credit-card.md index 3dc07cfc434..01ee3e533ef 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/server-dotnet/examples/avatars/get-credit-card.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/avatars/get-favicon.md b/docs/examples/1.6.x/server-dotnet/examples/avatars/get-favicon.md index f7a3d9fed69..345d8567170 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/server-dotnet/examples/avatars/get-favicon.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/avatars/get-flag.md b/docs/examples/1.6.x/server-dotnet/examples/avatars/get-flag.md index 734d7d75176..a4890b962ec 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/server-dotnet/examples/avatars/get-flag.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/avatars/get-image.md b/docs/examples/1.6.x/server-dotnet/examples/avatars/get-image.md index 942bffb258d..4a67e585179 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/server-dotnet/examples/avatars/get-image.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/avatars/get-initials.md b/docs/examples/1.6.x/server-dotnet/examples/avatars/get-initials.md index 5b47eea4744..55427ff622c 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/server-dotnet/examples/avatars/get-initials.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/avatars/get-q-r.md b/docs/examples/1.6.x/server-dotnet/examples/avatars/get-q-r.md index b90ed074d11..4591b7d99c9 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/server-dotnet/examples/avatars/get-q-r.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/create-boolean-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/create-boolean-attribute.md index 0f113b05825..88076485215 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/create-boolean-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/create-collection.md b/docs/examples/1.6.x/server-dotnet/examples/databases/create-collection.md index 6b03dacd35e..75a1c5c3119 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/create-collection.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/create-collection.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/create-datetime-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/create-datetime-attribute.md index fac8f1b9836..7be723379e6 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/create-datetime-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/create-document.md b/docs/examples/1.6.x/server-dotnet/examples/databases/create-document.md index 438928d2dc4..52254e0c259 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/create-document.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/create-document.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/create-documents.md b/docs/examples/1.6.x/server-dotnet/examples/databases/create-documents.md new file mode 100644 index 00000000000..8bfc420c4c9 --- /dev/null +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/create-documents.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetSession(""); // The user session to authenticate with + +Databases databases = new Databases(client); + +DocumentList result = await databases.CreateDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documents: new List<object>() +); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/create-email-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/create-email-attribute.md index 640e8ee09aa..df00119ff95 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/create-email-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/create-email-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/create-enum-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/create-enum-attribute.md index 3b0a78764f8..d85e8a72a95 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/create-enum-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/create-float-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/create-float-attribute.md index 620c451d789..bc03fac7aec 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/create-float-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/create-float-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/create-index.md b/docs/examples/1.6.x/server-dotnet/examples/databases/create-index.md index a7363f4c67e..b132cd2f022 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/create-index.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/create-index.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/create-integer-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/create-integer-attribute.md index 3676c662f9a..c8e7c13355e 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/create-integer-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/create-ip-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/create-ip-attribute.md index faad215f262..f95c257089a 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/create-ip-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/create-relationship-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/create-relationship-attribute.md index eb10afce645..b0f4d1194fa 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/create-relationship-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/create-string-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/create-string-attribute.md index 9d6aa904e55..6cba31ff365 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/create-string-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/create-string-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/create-url-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/create-url-attribute.md index 9dd1913251d..dce1ac496a5 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/create-url-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/create-url-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/create.md b/docs/examples/1.6.x/server-dotnet/examples/databases/create.md index ea33e15992a..9b66c15cefc 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/create.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/create.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/delete-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/delete-attribute.md index 9e4658999f3..46eb44b4b8c 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/delete-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/delete-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/delete-collection.md b/docs/examples/1.6.x/server-dotnet/examples/databases/delete-collection.md index bd9ced02a51..e05717dc6c9 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/delete-collection.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/delete-collection.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/delete-document.md b/docs/examples/1.6.x/server-dotnet/examples/databases/delete-document.md index 1c03debad5b..221b80e2540 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/delete-document.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/delete-document.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/delete-documents.md b/docs/examples/1.6.x/server-dotnet/examples/databases/delete-documents.md new file mode 100644 index 00000000000..a9bc9c277b6 --- /dev/null +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/delete-documents.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +await databases.DeleteDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + queries: new List<string>() // optional +); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/delete-index.md b/docs/examples/1.6.x/server-dotnet/examples/databases/delete-index.md index 21457ad19f5..02dcf5c66a5 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/delete-index.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/delete-index.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/delete.md b/docs/examples/1.6.x/server-dotnet/examples/databases/delete.md index ddc1497c608..a877eabc021 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/delete.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/delete.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/get-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/get-attribute.md index 5eaa11ee0a6..d9e02e36b6b 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/get-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/get-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/get-collection.md b/docs/examples/1.6.x/server-dotnet/examples/databases/get-collection.md index 055d5473c6a..79fe685cbc7 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/get-collection.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/get-collection.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/get-document.md b/docs/examples/1.6.x/server-dotnet/examples/databases/get-document.md index 51d05832f08..d7e9b68807b 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/get-document.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/get-document.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/get-index.md b/docs/examples/1.6.x/server-dotnet/examples/databases/get-index.md index 4cf44b66e20..02f7b812c88 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/get-index.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/get-index.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/get.md b/docs/examples/1.6.x/server-dotnet/examples/databases/get.md index c9278acd478..174d74c4f08 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/get.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/get.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/list-attributes.md b/docs/examples/1.6.x/server-dotnet/examples/databases/list-attributes.md index 516e3a3efa4..d2ac6c3afdc 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/list-attributes.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/list-attributes.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/list-collections.md b/docs/examples/1.6.x/server-dotnet/examples/databases/list-collections.md index 1665b449d27..5dacb62e976 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/list-collections.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/list-collections.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/list-documents.md b/docs/examples/1.6.x/server-dotnet/examples/databases/list-documents.md index 7471d96a649..f59e4576bd2 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/list-documents.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/list-indexes.md b/docs/examples/1.6.x/server-dotnet/examples/databases/list-indexes.md index f567ce9c8e7..e6adab1f2d2 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/list-indexes.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/list-indexes.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/list.md b/docs/examples/1.6.x/server-dotnet/examples/databases/list.md index 9972bda9347..d2b552b27c2 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/list.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/list.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/update-boolean-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/update-boolean-attribute.md index 7c435f51cec..aa2ed498d23 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/update-boolean-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/update-collection.md b/docs/examples/1.6.x/server-dotnet/examples/databases/update-collection.md index 2860ba69746..7885ad39696 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/update-collection.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/update-collection.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/update-datetime-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/update-datetime-attribute.md index a8208202c87..e6b60c87530 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/update-datetime-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/update-document.md b/docs/examples/1.6.x/server-dotnet/examples/databases/update-document.md index ce0aa580340..3121c15e08c 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/update-document.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/update-document.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/update-documents.md b/docs/examples/1.6.x/server-dotnet/examples/databases/update-documents.md new file mode 100644 index 00000000000..63ded21ac99 --- /dev/null +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/update-documents.md @@ -0,0 +1,17 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +DocumentList result = await databases.UpdateDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + data: [object], // optional + queries: new List<string>() // optional +); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/update-email-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/update-email-attribute.md index f7dde2ac2f2..8d36a43780e 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/update-email-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/update-email-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/update-enum-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/update-enum-attribute.md index 6abd3a607c0..e3ca9fe124f 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/update-enum-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/update-float-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/update-float-attribute.md index 2e5e7dde6be..46328d26f54 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/update-float-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/update-float-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key @@ -14,8 +14,8 @@ AttributeFloat result = await databases.UpdateFloatAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - min: 0, - max: 0, default: 0, + min: 0, // optional + max: 0, // optional newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/update-integer-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/update-integer-attribute.md index da074ba7d5c..91ff1897c7b 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/update-integer-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key @@ -14,8 +14,8 @@ AttributeInteger result = await databases.UpdateIntegerAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - min: 0, - max: 0, default: 0, + min: 0, // optional + max: 0, // optional newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/update-ip-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/update-ip-attribute.md index 0be862b0048..dfcb5d214ac 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/update-ip-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/update-relationship-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/update-relationship-attribute.md index b49f72ccf86..5b6dd714672 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/update-relationship-attribute.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/update-string-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/update-string-attribute.md index e915d23f518..918fdc0e3ff 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/update-string-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/update-string-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key @@ -15,6 +15,6 @@ AttributeString result = await databases.UpdateStringAttribute( key: "", required: false, default: "<DEFAULT>", - size: 0, // optional + size: 1, // optional newKey: "" // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/update-url-attribute.md b/docs/examples/1.6.x/server-dotnet/examples/databases/update-url-attribute.md index 30a9a6298a4..8766a3f2f74 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/update-url-attribute.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/update-url-attribute.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/update.md b/docs/examples/1.6.x/server-dotnet/examples/databases/update.md index 1e55d8eccad..d4dd28aa2bf 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/databases/update.md +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/update.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/databases/upsert-documents.md b/docs/examples/1.6.x/server-dotnet/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..d9db60ce2df --- /dev/null +++ b/docs/examples/1.6.x/server-dotnet/examples/databases/upsert-documents.md @@ -0,0 +1,16 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +DocumentList result = await databases.UpsertDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documents: new List<object>() // optional +); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/create-build.md b/docs/examples/1.6.x/server-dotnet/examples/functions/create-build.md index fa53854b3c6..cc8797168ce 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/create-build.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/create-build.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/create-deployment.md b/docs/examples/1.6.x/server-dotnet/examples/functions/create-deployment.md index 7c3d4d887c6..26c6ff4c42e 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/create-deployment.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/create-deployment.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/create-execution.md b/docs/examples/1.6.x/server-dotnet/examples/functions/create-execution.md index abe5454c83a..c8fd5595e9f 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/create-execution.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/create-execution.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/create-variable.md b/docs/examples/1.6.x/server-dotnet/examples/functions/create-variable.md index 2775c5b459b..18fd6e98414 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/create-variable.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/create-variable.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/create.md b/docs/examples/1.6.x/server-dotnet/examples/functions/create.md index 0ea11a8b9f4..3263271f17d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/create.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/create.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/delete-deployment.md b/docs/examples/1.6.x/server-dotnet/examples/functions/delete-deployment.md index 387383ed2b6..33c537ad0d2 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/delete-deployment.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/delete-deployment.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/delete-execution.md b/docs/examples/1.6.x/server-dotnet/examples/functions/delete-execution.md index 18bd347b705..5d5ab8dee27 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/delete-execution.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/delete-execution.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/delete-variable.md b/docs/examples/1.6.x/server-dotnet/examples/functions/delete-variable.md index 9be23cdcbed..263c3f6420e 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/delete-variable.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/delete-variable.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/delete.md b/docs/examples/1.6.x/server-dotnet/examples/functions/delete.md index 7666b624079..ed780ac15a4 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/delete.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/delete.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/get-deployment-download.md b/docs/examples/1.6.x/server-dotnet/examples/functions/get-deployment-download.md index b67351e70ca..be145577c24 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/get-deployment-download.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/get-deployment-download.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/get-deployment.md b/docs/examples/1.6.x/server-dotnet/examples/functions/get-deployment.md index 0fb27cc6232..5fe31a2f6ec 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/get-deployment.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/get-deployment.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/get-execution.md b/docs/examples/1.6.x/server-dotnet/examples/functions/get-execution.md index 27b8f4d6207..8581b968af5 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/get-execution.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/get-variable.md b/docs/examples/1.6.x/server-dotnet/examples/functions/get-variable.md index 2c897dd6489..57ba9933894 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/get-variable.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/get-variable.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/get.md b/docs/examples/1.6.x/server-dotnet/examples/functions/get.md index e1fdefd7fb1..baba5d0b4a6 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/get.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/get.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/list-deployments.md b/docs/examples/1.6.x/server-dotnet/examples/functions/list-deployments.md index d78eb6a2490..093befcf612 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/list-deployments.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/list-deployments.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/list-executions.md b/docs/examples/1.6.x/server-dotnet/examples/functions/list-executions.md index fe2b1d98acd..5c410e33b74 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/list-executions.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/list-runtimes.md b/docs/examples/1.6.x/server-dotnet/examples/functions/list-runtimes.md index 68f34291be8..c2386716701 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/list-runtimes.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/list-runtimes.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/list-specifications.md b/docs/examples/1.6.x/server-dotnet/examples/functions/list-specifications.md index 21f3b1320e0..2d868d1343e 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/list-specifications.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/list-specifications.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/list-templates.md b/docs/examples/1.6.x/server-dotnet/examples/functions/list-templates.md deleted file mode 100644 index f76bd5fa9cf..00000000000 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/list-templates.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>"); // Your project ID - -Functions functions = new Functions(client); - -TemplateFunctionList result = await functions.ListTemplates( - runtimes: new List<string>(), // optional - useCases: new List<string>(), // optional - limit: 1, // optional - offset: 0 // optional -); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/list-variables.md b/docs/examples/1.6.x/server-dotnet/examples/functions/list-variables.md index 77f429ded09..4c85da8995b 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/list-variables.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/list-variables.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/list.md b/docs/examples/1.6.x/server-dotnet/examples/functions/list.md index a6c5511f8ad..750642d498b 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/list.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/list.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/update-deployment-build.md b/docs/examples/1.6.x/server-dotnet/examples/functions/update-deployment-build.md index 3d33b61714d..93dcfa1e0b4 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/update-deployment-build.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/update-deployment-build.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/update-deployment.md b/docs/examples/1.6.x/server-dotnet/examples/functions/update-deployment.md index 348d01eb2bd..71f0a2b8160 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/update-deployment.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/update-deployment.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/update-variable.md b/docs/examples/1.6.x/server-dotnet/examples/functions/update-variable.md index fceb7587d75..1cf321352cd 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/update-variable.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/update-variable.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/functions/update.md b/docs/examples/1.6.x/server-dotnet/examples/functions/update.md index b94f5f3ebc7..7160795f77b 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/functions/update.md +++ b/docs/examples/1.6.x/server-dotnet/examples/functions/update.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/graphql/mutation.md b/docs/examples/1.6.x/server-dotnet/examples/graphql/mutation.md index 5fb0f9a1908..b153e34d515 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/graphql/mutation.md +++ b/docs/examples/1.6.x/server-dotnet/examples/graphql/mutation.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/graphql/query.md b/docs/examples/1.6.x/server-dotnet/examples/graphql/query.md index e1f6f859db2..61345d76656 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/graphql/query.md +++ b/docs/examples/1.6.x/server-dotnet/examples/graphql/query.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-antivirus.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-antivirus.md index 674e0e70f20..115c0e5c7b6 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-antivirus.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-antivirus.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-cache.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-cache.md index d61e2207945..0c5ec37c2b4 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-cache.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-cache.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-certificate.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-certificate.md index de536fd9ddb..457b70128a5 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-certificate.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-certificate.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-d-b.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-d-b.md index 8c1bf763ca0..7ae8b148549 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-d-b.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-d-b.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-failed-jobs.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-failed-jobs.md index 871abf0bc05..4d434798316 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-failed-jobs.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-failed-jobs.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-pub-sub.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-pub-sub.md index 7fe20cdcf85..4ffdd7e5316 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-pub-sub.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-pub-sub.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-builds.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-builds.md index 65596b49cfa..5d522f03f24 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-builds.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-builds.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-certificates.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-certificates.md index 06e629d12c4..c7e186e5ee7 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-certificates.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-certificates.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-databases.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-databases.md index 80733ec20d2..1db6fb518c2 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-databases.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-databases.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-deletes.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-deletes.md index 7e280a1b62b..487cee34112 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-deletes.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-deletes.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-functions.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-functions.md index 8efd075b45e..949e3766a7a 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-functions.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-functions.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-logs.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-logs.md index 2a6767dd74a..58ad1ac2fe1 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-logs.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-logs.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-mails.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-mails.md index 2be751cf009..2c1008c7b13 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-mails.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-mails.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-messaging.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-messaging.md index 5681495382b..4116f19b1fc 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-messaging.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-messaging.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-migrations.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-migrations.md index f3677243106..5a0c7a03377 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-migrations.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-migrations.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-stats-resources.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..4002cca1581 --- /dev/null +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-stats-resources.md @@ -0,0 +1,14 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("<YOUR_PROJECT_ID>") // Your project ID + .SetKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +HealthQueue result = await health.GetQueueStatsResources( + threshold: 0 // optional +); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-usage-dump.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-usage-dump.md index 78c3a924b16..51233fb2ec0 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-usage-dump.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-usage.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-usage.md index 14ca7580015..546e9a07de6 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-usage.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-usage.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-webhooks.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-webhooks.md index 6dbbe052350..1fc8d4d63c9 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue-webhooks.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue.md index 55f49c67358..43f472d21a2 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-queue.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-queue.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-storage-local.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-storage-local.md index 80e4f7574a5..3e8539794ab 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-storage-local.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-storage-local.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-storage.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-storage.md index 4643825b96c..42d4aba45b8 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-storage.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-storage.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get-time.md b/docs/examples/1.6.x/server-dotnet/examples/health/get-time.md index 0b5d9b8a5d2..959060113b0 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get-time.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get-time.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/health/get.md b/docs/examples/1.6.x/server-dotnet/examples/health/get.md index 16ac413bc41..a926fe71e53 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/health/get.md +++ b/docs/examples/1.6.x/server-dotnet/examples/health/get.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/locale/get.md b/docs/examples/1.6.x/server-dotnet/examples/locale/get.md index 4ef0232eaa8..48b97018014 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/locale/get.md +++ b/docs/examples/1.6.x/server-dotnet/examples/locale/get.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/locale/list-codes.md b/docs/examples/1.6.x/server-dotnet/examples/locale/list-codes.md index eea75da7d51..0df7696da5d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/server-dotnet/examples/locale/list-codes.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/locale/list-continents.md b/docs/examples/1.6.x/server-dotnet/examples/locale/list-continents.md index 4148a3068da..7cf74caec3b 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/server-dotnet/examples/locale/list-continents.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/server-dotnet/examples/locale/list-countries-e-u.md index 4c86505bc73..106e140ee43 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/server-dotnet/examples/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/server-dotnet/examples/locale/list-countries-phones.md index 0277e032d18..38fbe24ff31 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/server-dotnet/examples/locale/list-countries-phones.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/locale/list-countries.md b/docs/examples/1.6.x/server-dotnet/examples/locale/list-countries.md index f85c5283542..5e5d9f407fe 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/server-dotnet/examples/locale/list-countries.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/locale/list-currencies.md b/docs/examples/1.6.x/server-dotnet/examples/locale/list-currencies.md index 384a5f4e12f..e51a1388139 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/server-dotnet/examples/locale/list-currencies.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/locale/list-languages.md b/docs/examples/1.6.x/server-dotnet/examples/locale/list-languages.md index 50f9dea6a9e..62aa15d1d9a 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/server-dotnet/examples/locale/list-languages.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-apns-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-apns-provider.md index b4b358dad25..9cc37a17e0e 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-apns-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-email.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-email.md index 1ce8b2cd407..51c6db4ddb3 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-email.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-email.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-fcm-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-fcm-provider.md index 7558191115c..15fdace2d3c 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-fcm-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-mailgun-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-mailgun-provider.md index 311ad7f948d..1bacbab8d54 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-mailgun-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-msg91provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-msg91provider.md index 596e63d635c..a0b73727095 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-msg91provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-push.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-push.md index f83a0ed8df7..1d2dbec1f21 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-push.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-push.md @@ -1,9 +1,10 @@ using Appwrite; +using Appwrite.Enums; using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key @@ -11,8 +12,8 @@ Messaging messaging = new Messaging(client); Message result = await messaging.CreatePush( messageId: "<MESSAGE_ID>", - title: "<TITLE>", - body: "<BODY>", + title: "<TITLE>", // optional + body: "<BODY>", // optional topics: new List<string>(), // optional users: new List<string>(), // optional targets: new List<string>(), // optional @@ -23,7 +24,10 @@ Message result = await messaging.CreatePush( sound: "<SOUND>", // optional color: "<COLOR>", // optional tag: "<TAG>", // optional - badge: "<BADGE>", // optional + badge: 0, // optional draft: false, // optional - scheduledAt: "" // optional + scheduledAt: "", // optional + contentAvailable: false, // optional + critical: false, // optional + priority: MessagePriority.Normal // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-sendgrid-provider.md index 64de3805dd7..8464c47ae11 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-sendgrid-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-sms.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-sms.md index 3ef5cb925e9..06e9e69e656 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-sms.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-sms.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-smtp-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-smtp-provider.md index fdbd4ea5c3f..16b091f98e0 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-smtp-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-subscriber.md index f188a4fefa7..8b37d31e68d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-subscriber.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetJWT("<YOUR_JWT>"); // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-telesign-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-telesign-provider.md index 8476f08866c..37e1bd1df91 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-telesign-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-textmagic-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-textmagic-provider.md index 98fbf86c238..7dc0a6b26fa 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-textmagic-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-topic.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-topic.md index 4e28defc50f..51eab0fd116 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-topic.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-topic.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-twilio-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-twilio-provider.md index 7902da1a34e..0deba742ff7 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-twilio-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-vonage-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-vonage-provider.md index 4dfe73175f7..8f4855aab42 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/create-vonage-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/delete-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/delete-provider.md index 767323047e0..a1ca2a14509 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/delete-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/delete-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/delete-subscriber.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/delete-subscriber.md index 54b41887736..9424535c9f7 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/delete-subscriber.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetJWT("<YOUR_JWT>"); // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/delete-topic.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/delete-topic.md index 22226992c75..0b4819a219e 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/delete-topic.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/delete-topic.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/delete.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/delete.md index d0b2a243a28..ff041e853ab 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/delete.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/delete.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/get-message.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/get-message.md index 19597387580..0dad3668f81 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/get-message.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/get-message.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/get-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/get-provider.md index bc413b1ca11..fac5a07da5c 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/get-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/get-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/get-subscriber.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/get-subscriber.md index 9a158961b1c..516aa682c86 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/get-subscriber.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/get-subscriber.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/get-topic.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/get-topic.md index 43b7bcb55d9..3a662b3111d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/get-topic.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/get-topic.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-message-logs.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-message-logs.md index 2d1a5fe9b78..49d35131271 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-message-logs.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-message-logs.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-messages.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-messages.md index 5004c7d0c45..4c17128e72c 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-messages.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-messages.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-provider-logs.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-provider-logs.md index 47b55acc266..928c14845a2 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-provider-logs.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-providers.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-providers.md index 2a1b4426e8b..6cf5757fb68 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-providers.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-providers.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-subscriber-logs.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-subscriber-logs.md index 5dd1cf01b8a..815f1325d4f 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-subscriber-logs.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-subscribers.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-subscribers.md index ca83034be08..b522be327c9 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-subscribers.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-subscribers.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-targets.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-targets.md index 9889e1f7260..a8e8de567e4 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-targets.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-targets.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-topic-logs.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-topic-logs.md index b986a8babe4..093db0ff2c1 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-topic-logs.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-topics.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-topics.md index 37842ad45ad..cc88afab694 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/list-topics.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/list-topics.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-apns-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-apns-provider.md index 6750f3b7865..f06e134d025 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-apns-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-email.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-email.md index 6fbb686d83e..90d1555d8f0 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-email.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-email.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-fcm-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-fcm-provider.md index 9208e930e4b..0006fedf54d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-fcm-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-mailgun-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-mailgun-provider.md index 6dd80b63498..512cb0586ba 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-mailgun-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-msg91provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-msg91provider.md index ca9c7e4e8b9..51355c5836a 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-msg91provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-push.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-push.md index 0de09d570a0..37da215e826 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-push.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-push.md @@ -1,9 +1,10 @@ using Appwrite; +using Appwrite.Enums; using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key @@ -25,5 +26,8 @@ Message result = await messaging.UpdatePush( tag: "<TAG>", // optional badge: 0, // optional draft: false, // optional - scheduledAt: "" // optional + scheduledAt: "", // optional + contentAvailable: false, // optional + critical: false, // optional + priority: MessagePriority.Normal // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-sendgrid-provider.md index 94f5d5af2b6..d718a7158b0 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-sendgrid-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-sms.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-sms.md index df2252a98b0..475d29923d3 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-sms.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-sms.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-smtp-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-smtp-provider.md index a8560554209..4e7ab6dfebc 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-smtp-provider.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-telesign-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-telesign-provider.md index b44d068084d..d4f1c5e0150 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-telesign-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-textmagic-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-textmagic-provider.md index 6fe2f2d6941..3529f9b99c0 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-textmagic-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-topic.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-topic.md index b4a3e8ed79d..11943f70e24 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-topic.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-topic.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-twilio-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-twilio-provider.md index 73078bd7a17..66fc7e27a3a 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-twilio-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-vonage-provider.md b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-vonage-provider.md index 94bc3f400fe..03addd3de67 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.6.x/server-dotnet/examples/messaging/update-vonage-provider.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/storage/create-bucket.md b/docs/examples/1.6.x/server-dotnet/examples/storage/create-bucket.md index 0a2953775b1..0cc317d9a61 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/storage/create-bucket.md +++ b/docs/examples/1.6.x/server-dotnet/examples/storage/create-bucket.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/storage/create-file.md b/docs/examples/1.6.x/server-dotnet/examples/storage/create-file.md index 1fc110269f9..a4cedb82148 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/storage/create-file.md +++ b/docs/examples/1.6.x/server-dotnet/examples/storage/create-file.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/storage/delete-bucket.md b/docs/examples/1.6.x/server-dotnet/examples/storage/delete-bucket.md index d7cd28a911c..22aa2acf193 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/storage/delete-bucket.md +++ b/docs/examples/1.6.x/server-dotnet/examples/storage/delete-bucket.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/storage/delete-file.md b/docs/examples/1.6.x/server-dotnet/examples/storage/delete-file.md index 859f81e79d5..a8cc310aa57 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/storage/delete-file.md +++ b/docs/examples/1.6.x/server-dotnet/examples/storage/delete-file.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/storage/get-bucket.md b/docs/examples/1.6.x/server-dotnet/examples/storage/get-bucket.md index ea7c78c001f..a6f74ebdae3 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/storage/get-bucket.md +++ b/docs/examples/1.6.x/server-dotnet/examples/storage/get-bucket.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/storage/get-file-download.md b/docs/examples/1.6.x/server-dotnet/examples/storage/get-file-download.md index 8bb19126a8d..5f27e48c169 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/server-dotnet/examples/storage/get-file-download.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/storage/get-file-preview.md b/docs/examples/1.6.x/server-dotnet/examples/storage/get-file-preview.md index 877e913eee3..a48a84eafca 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/server-dotnet/examples/storage/get-file-preview.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/storage/get-file-view.md b/docs/examples/1.6.x/server-dotnet/examples/storage/get-file-view.md index e0824051029..f8ad1b0bc15 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/server-dotnet/examples/storage/get-file-view.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/storage/get-file.md b/docs/examples/1.6.x/server-dotnet/examples/storage/get-file.md index 314998b73ad..e4c05c1e6bb 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/storage/get-file.md +++ b/docs/examples/1.6.x/server-dotnet/examples/storage/get-file.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/storage/list-buckets.md b/docs/examples/1.6.x/server-dotnet/examples/storage/list-buckets.md index 8b59250dd96..8e397729e6a 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/storage/list-buckets.md +++ b/docs/examples/1.6.x/server-dotnet/examples/storage/list-buckets.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/storage/list-files.md b/docs/examples/1.6.x/server-dotnet/examples/storage/list-files.md index cd3b52c45cc..2751da52449 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/storage/list-files.md +++ b/docs/examples/1.6.x/server-dotnet/examples/storage/list-files.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/storage/update-bucket.md b/docs/examples/1.6.x/server-dotnet/examples/storage/update-bucket.md index 1bd2f4f0912..2a439ba2af4 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/storage/update-bucket.md +++ b/docs/examples/1.6.x/server-dotnet/examples/storage/update-bucket.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/storage/update-file.md b/docs/examples/1.6.x/server-dotnet/examples/storage/update-file.md index d256e21b4f8..3f6ea608d71 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/storage/update-file.md +++ b/docs/examples/1.6.x/server-dotnet/examples/storage/update-file.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/teams/create-membership.md b/docs/examples/1.6.x/server-dotnet/examples/teams/create-membership.md index dd768c2335e..f3f5682cbf6 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/teams/create-membership.md +++ b/docs/examples/1.6.x/server-dotnet/examples/teams/create-membership.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/teams/create.md b/docs/examples/1.6.x/server-dotnet/examples/teams/create.md index 5b5c8014b4d..07b102d70a5 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/teams/create.md +++ b/docs/examples/1.6.x/server-dotnet/examples/teams/create.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/teams/delete-membership.md b/docs/examples/1.6.x/server-dotnet/examples/teams/delete-membership.md index 93f60402d79..01a58aaa11d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/teams/delete-membership.md +++ b/docs/examples/1.6.x/server-dotnet/examples/teams/delete-membership.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/teams/delete.md b/docs/examples/1.6.x/server-dotnet/examples/teams/delete.md index 1c69bf0ea82..ee525f23c99 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/teams/delete.md +++ b/docs/examples/1.6.x/server-dotnet/examples/teams/delete.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/teams/get-membership.md b/docs/examples/1.6.x/server-dotnet/examples/teams/get-membership.md index bb91bc9e892..cb9109df141 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/server-dotnet/examples/teams/get-membership.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/teams/get-prefs.md b/docs/examples/1.6.x/server-dotnet/examples/teams/get-prefs.md index 4e6012df169..f95d73af77c 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/server-dotnet/examples/teams/get-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/teams/get.md b/docs/examples/1.6.x/server-dotnet/examples/teams/get.md index c221122e7e1..339b33f657d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/teams/get.md +++ b/docs/examples/1.6.x/server-dotnet/examples/teams/get.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/teams/list-memberships.md b/docs/examples/1.6.x/server-dotnet/examples/teams/list-memberships.md index d44f12b41c3..6072158100d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/server-dotnet/examples/teams/list-memberships.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/teams/list.md b/docs/examples/1.6.x/server-dotnet/examples/teams/list.md index 9c1a0fee657..b1ca72b82ea 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/teams/list.md +++ b/docs/examples/1.6.x/server-dotnet/examples/teams/list.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/teams/update-membership-status.md b/docs/examples/1.6.x/server-dotnet/examples/teams/update-membership-status.md index 151f17566eb..87609aa32ea 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/teams/update-membership-status.md +++ b/docs/examples/1.6.x/server-dotnet/examples/teams/update-membership-status.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/teams/update-membership.md b/docs/examples/1.6.x/server-dotnet/examples/teams/update-membership.md index 1d9faebbf91..3583b4d0a96 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/teams/update-membership.md +++ b/docs/examples/1.6.x/server-dotnet/examples/teams/update-membership.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/teams/update-name.md b/docs/examples/1.6.x/server-dotnet/examples/teams/update-name.md index b3db0576af9..9a3fb1316a6 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/teams/update-name.md +++ b/docs/examples/1.6.x/server-dotnet/examples/teams/update-name.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/teams/update-prefs.md b/docs/examples/1.6.x/server-dotnet/examples/teams/update-prefs.md index 84b9b11ca83..55ff96e9e8b 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/teams/update-prefs.md +++ b/docs/examples/1.6.x/server-dotnet/examples/teams/update-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/create-argon2user.md b/docs/examples/1.6.x/server-dotnet/examples/users/create-argon2user.md index 7ee4d1d89d6..db6dd6486a1 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/create-argon2user.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/create-argon2user.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/create-bcrypt-user.md b/docs/examples/1.6.x/server-dotnet/examples/users/create-bcrypt-user.md index 9ff609d5f40..bf8bf3dedd5 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/create-bcrypt-user.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/create-j-w-t.md b/docs/examples/1.6.x/server-dotnet/examples/users/create-j-w-t.md index 2997767f795..a7c57ad6429 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/create-j-w-t.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/create-j-w-t.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/create-m-d5user.md b/docs/examples/1.6.x/server-dotnet/examples/users/create-m-d5user.md index 7294c805eda..7b7d0e7760c 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/create-m-d5user.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/create-m-d5user.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-dotnet/examples/users/create-mfa-recovery-codes.md index bbc41a66a19..9b43dc02afa 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/create-mfa-recovery-codes.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/create-p-h-pass-user.md b/docs/examples/1.6.x/server-dotnet/examples/users/create-p-h-pass-user.md index 3db0dc707d3..9f5521ef2fe 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/create-p-h-pass-user.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/create-s-h-a-user.md b/docs/examples/1.6.x/server-dotnet/examples/users/create-s-h-a-user.md index 873e666cdc6..0821bf46e9d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/create-s-h-a-user.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/create-scrypt-modified-user.md b/docs/examples/1.6.x/server-dotnet/examples/users/create-scrypt-modified-user.md index 7af9f2ab8bc..3af99e88c21 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/create-scrypt-modified-user.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/create-scrypt-user.md b/docs/examples/1.6.x/server-dotnet/examples/users/create-scrypt-user.md index 14ee42e4891..79085f72065 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/create-scrypt-user.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/create-scrypt-user.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/create-session.md b/docs/examples/1.6.x/server-dotnet/examples/users/create-session.md index f624ff8554c..a021c2551fd 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/create-session.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/create-session.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/create-target.md b/docs/examples/1.6.x/server-dotnet/examples/users/create-target.md index 80717ae19bf..44ba48ac012 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/create-target.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/create-target.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/create-token.md b/docs/examples/1.6.x/server-dotnet/examples/users/create-token.md index ce96abc50cb..0e9cf43fd75 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/create-token.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/create-token.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/create.md b/docs/examples/1.6.x/server-dotnet/examples/users/create.md index 04e25c32730..3cf1d3af290 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/create.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/create.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/delete-identity.md b/docs/examples/1.6.x/server-dotnet/examples/users/delete-identity.md index 9579eba7a2d..d2bac6b7973 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/delete-identity.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/delete-identity.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-dotnet/examples/users/delete-mfa-authenticator.md index c3d081bf56b..bb33dbf9e4b 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/delete-mfa-authenticator.md @@ -4,7 +4,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/delete-session.md b/docs/examples/1.6.x/server-dotnet/examples/users/delete-session.md index ff46be8ad23..d9d36d20b4d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/delete-session.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/delete-session.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/delete-sessions.md b/docs/examples/1.6.x/server-dotnet/examples/users/delete-sessions.md index 5b9f5e1aa9a..7011e426bb5 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/delete-sessions.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/delete-sessions.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/delete-target.md b/docs/examples/1.6.x/server-dotnet/examples/users/delete-target.md index 482b229912d..ad900afa5ad 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/delete-target.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/delete-target.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/delete.md b/docs/examples/1.6.x/server-dotnet/examples/users/delete.md index 670b98cbd16..00ed23cf5f9 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/delete.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/delete.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-dotnet/examples/users/get-mfa-recovery-codes.md index a69c58da2a4..213c3473a85 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/get-mfa-recovery-codes.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/get-prefs.md b/docs/examples/1.6.x/server-dotnet/examples/users/get-prefs.md index ec25c4160f0..36888651d9d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/get-prefs.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/get-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/get-target.md b/docs/examples/1.6.x/server-dotnet/examples/users/get-target.md index 10a6955e49f..2bbf4d614cd 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/get-target.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/get-target.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/get.md b/docs/examples/1.6.x/server-dotnet/examples/users/get.md index 7dc7eebdaa8..25971baddc2 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/get.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/get.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/list-identities.md b/docs/examples/1.6.x/server-dotnet/examples/users/list-identities.md index 36a9b5f7703..996edfba710 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/list-identities.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/list-identities.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/list-logs.md b/docs/examples/1.6.x/server-dotnet/examples/users/list-logs.md index 303839792b0..822d16fe64e 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/list-logs.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/list-logs.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/list-memberships.md b/docs/examples/1.6.x/server-dotnet/examples/users/list-memberships.md index 5c833de3667..ac899287707 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/list-memberships.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/list-memberships.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/list-mfa-factors.md b/docs/examples/1.6.x/server-dotnet/examples/users/list-mfa-factors.md index 31e1ee3d555..54f68ae516b 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/list-mfa-factors.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/list-sessions.md b/docs/examples/1.6.x/server-dotnet/examples/users/list-sessions.md index a5c07505297..97f92f3b077 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/list-sessions.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/list-sessions.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/list-targets.md b/docs/examples/1.6.x/server-dotnet/examples/users/list-targets.md index ded2ade2b69..aa59ce2983f 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/list-targets.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/list-targets.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/list.md b/docs/examples/1.6.x/server-dotnet/examples/users/list.md index 74bce0bb1a7..aae7ae27b32 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/list.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/list.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/update-email-verification.md b/docs/examples/1.6.x/server-dotnet/examples/users/update-email-verification.md index 025d4f0a213..8add2d4d6ba 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/update-email-verification.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/update-email-verification.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/update-email.md b/docs/examples/1.6.x/server-dotnet/examples/users/update-email.md index 250290539f8..d0d737cb80e 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/update-email.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/update-email.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/update-labels.md b/docs/examples/1.6.x/server-dotnet/examples/users/update-labels.md index 865556db2f0..6637ad0438a 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/update-labels.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/update-labels.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-dotnet/examples/users/update-mfa-recovery-codes.md index cb4f68eb040..35be70777a1 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/update-mfa-recovery-codes.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/update-mfa.md b/docs/examples/1.6.x/server-dotnet/examples/users/update-mfa.md index bd881528c83..d009df1759d 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/update-mfa.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/update-mfa.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/update-name.md b/docs/examples/1.6.x/server-dotnet/examples/users/update-name.md index 492a45ed688..ffa90f96570 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/update-name.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/update-name.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/update-password.md b/docs/examples/1.6.x/server-dotnet/examples/users/update-password.md index aa6e621180a..6dc30d5bcf7 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/update-password.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/update-password.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/update-phone-verification.md b/docs/examples/1.6.x/server-dotnet/examples/users/update-phone-verification.md index 13ded37df6b..ba5ca253ee5 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/update-phone-verification.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/update-phone-verification.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/update-phone.md b/docs/examples/1.6.x/server-dotnet/examples/users/update-phone.md index 50708008ba6..e633740e941 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/update-phone.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/update-phone.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/update-prefs.md b/docs/examples/1.6.x/server-dotnet/examples/users/update-prefs.md index 8015f738482..421a4c2314f 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/update-prefs.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/update-prefs.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/update-status.md b/docs/examples/1.6.x/server-dotnet/examples/users/update-status.md index f476bc58236..3037d8dd0c0 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/update-status.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/update-status.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-dotnet/examples/users/update-target.md b/docs/examples/1.6.x/server-dotnet/examples/users/update-target.md index 9fe888c7e3b..9863af19d86 100644 --- a/docs/examples/1.6.x/server-dotnet/examples/users/update-target.md +++ b/docs/examples/1.6.x/server-dotnet/examples/users/update-target.md @@ -3,7 +3,7 @@ using Appwrite.Models; using Appwrite.Services; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/account/create-anonymous-session.md b/docs/examples/1.6.x/server-go/examples/account/create-anonymous-session.md index bdf9c1b8e83..a6b5b6a2cf2 100644 --- a/docs/examples/1.6.x/server-go/examples/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/server-go/examples/account/create-anonymous-session.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID service := account.NewAccount(client) diff --git a/docs/examples/1.6.x/server-go/examples/account/create-email-password-session.md b/docs/examples/1.6.x/server-go/examples/account/create-email-password-session.md index b6573084a99..d876edc7ac2 100644 --- a/docs/examples/1.6.x/server-go/examples/account/create-email-password-session.md +++ b/docs/examples/1.6.x/server-go/examples/account/create-email-password-session.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID service := account.NewAccount(client) diff --git a/docs/examples/1.6.x/server-go/examples/account/create-email-token.md b/docs/examples/1.6.x/server-go/examples/account/create-email-token.md index b9aae640a0f..aa832e7bf50 100644 --- a/docs/examples/1.6.x/server-go/examples/account/create-email-token.md +++ b/docs/examples/1.6.x/server-go/examples/account/create-email-token.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID service := account.NewAccount(client) diff --git a/docs/examples/1.6.x/server-go/examples/account/create-j-w-t.md b/docs/examples/1.6.x/server-go/examples/account/create-j-w-t.md index fa4d41b315e..fad35ab5190 100644 --- a/docs/examples/1.6.x/server-go/examples/account/create-j-w-t.md +++ b/docs/examples/1.6.x/server-go/examples/account/create-j-w-t.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID service := account.NewAccount(client) diff --git a/docs/examples/1.6.x/server-go/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/server-go/examples/account/create-magic-u-r-l-token.md index cd1d07e5e05..1e2090fd8eb 100644 --- a/docs/examples/1.6.x/server-go/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/server-go/examples/account/create-magic-u-r-l-token.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID service := account.NewAccount(client) diff --git a/docs/examples/1.6.x/server-go/examples/account/create-mfa-authenticator.md b/docs/examples/1.6.x/server-go/examples/account/create-mfa-authenticator.md index 150e4d18d62..8d425404b58 100644 --- a/docs/examples/1.6.x/server-go/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-go/examples/account/create-mfa-authenticator.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/account/create-mfa-challenge.md b/docs/examples/1.6.x/server-go/examples/account/create-mfa-challenge.md index 93e122f8b3f..3ac4a3babf4 100644 --- a/docs/examples/1.6.x/server-go/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/server-go/examples/account/create-mfa-challenge.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID service := account.NewAccount(client) diff --git a/docs/examples/1.6.x/server-go/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-go/examples/account/create-mfa-recovery-codes.md index 005b9603d88..063a804f6e4 100644 --- a/docs/examples/1.6.x/server-go/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-go/examples/account/create-mfa-recovery-codes.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/server-go/examples/account/create-o-auth2token.md index 6cc11b004bd..f3b6997fffa 100644 --- a/docs/examples/1.6.x/server-go/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/server-go/examples/account/create-o-auth2token.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID service := account.NewAccount(client) diff --git a/docs/examples/1.6.x/server-go/examples/account/create-phone-token.md b/docs/examples/1.6.x/server-go/examples/account/create-phone-token.md index eff0aa2ae0e..c9e80de622b 100644 --- a/docs/examples/1.6.x/server-go/examples/account/create-phone-token.md +++ b/docs/examples/1.6.x/server-go/examples/account/create-phone-token.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID service := account.NewAccount(client) diff --git a/docs/examples/1.6.x/server-go/examples/account/create-phone-verification.md b/docs/examples/1.6.x/server-go/examples/account/create-phone-verification.md index fff450710d9..c7a6bf4bf54 100644 --- a/docs/examples/1.6.x/server-go/examples/account/create-phone-verification.md +++ b/docs/examples/1.6.x/server-go/examples/account/create-phone-verification.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/account/create-recovery.md b/docs/examples/1.6.x/server-go/examples/account/create-recovery.md index 6fc0115b033..9d55755c379 100644 --- a/docs/examples/1.6.x/server-go/examples/account/create-recovery.md +++ b/docs/examples/1.6.x/server-go/examples/account/create-recovery.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/account/create-session.md b/docs/examples/1.6.x/server-go/examples/account/create-session.md index c525401b5ff..f93502a31f1 100644 --- a/docs/examples/1.6.x/server-go/examples/account/create-session.md +++ b/docs/examples/1.6.x/server-go/examples/account/create-session.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID service := account.NewAccount(client) diff --git a/docs/examples/1.6.x/server-go/examples/account/create-verification.md b/docs/examples/1.6.x/server-go/examples/account/create-verification.md index 9e2cecc6f9c..afb98c7ec0a 100644 --- a/docs/examples/1.6.x/server-go/examples/account/create-verification.md +++ b/docs/examples/1.6.x/server-go/examples/account/create-verification.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/account/create.md b/docs/examples/1.6.x/server-go/examples/account/create.md index 9cc27a5f1da..b834d47d0f8 100644 --- a/docs/examples/1.6.x/server-go/examples/account/create.md +++ b/docs/examples/1.6.x/server-go/examples/account/create.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID service := account.NewAccount(client) diff --git a/docs/examples/1.6.x/server-go/examples/account/delete-identity.md b/docs/examples/1.6.x/server-go/examples/account/delete-identity.md index 939a3efa01c..30d25346021 100644 --- a/docs/examples/1.6.x/server-go/examples/account/delete-identity.md +++ b/docs/examples/1.6.x/server-go/examples/account/delete-identity.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-go/examples/account/delete-mfa-authenticator.md index 664628b44ed..7f3edec33dc 100644 --- a/docs/examples/1.6.x/server-go/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-go/examples/account/delete-mfa-authenticator.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/account/delete-session.md b/docs/examples/1.6.x/server-go/examples/account/delete-session.md index c153451efec..398604ecdd0 100644 --- a/docs/examples/1.6.x/server-go/examples/account/delete-session.md +++ b/docs/examples/1.6.x/server-go/examples/account/delete-session.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/account/delete-sessions.md b/docs/examples/1.6.x/server-go/examples/account/delete-sessions.md index 3c782b93ddf..97eda5899aa 100644 --- a/docs/examples/1.6.x/server-go/examples/account/delete-sessions.md +++ b/docs/examples/1.6.x/server-go/examples/account/delete-sessions.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-go/examples/account/get-mfa-recovery-codes.md index d6abf99553f..0dd93bb765e 100644 --- a/docs/examples/1.6.x/server-go/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-go/examples/account/get-mfa-recovery-codes.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/account/get-prefs.md b/docs/examples/1.6.x/server-go/examples/account/get-prefs.md index 555e99d04d6..b7985acbd79 100644 --- a/docs/examples/1.6.x/server-go/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/server-go/examples/account/get-prefs.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/account/get-session.md b/docs/examples/1.6.x/server-go/examples/account/get-session.md index b9958823bbd..d6d1ffe05fd 100644 --- a/docs/examples/1.6.x/server-go/examples/account/get-session.md +++ b/docs/examples/1.6.x/server-go/examples/account/get-session.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/account/get.md b/docs/examples/1.6.x/server-go/examples/account/get.md index 47e52e895f9..7e08024930a 100644 --- a/docs/examples/1.6.x/server-go/examples/account/get.md +++ b/docs/examples/1.6.x/server-go/examples/account/get.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/account/list-identities.md b/docs/examples/1.6.x/server-go/examples/account/list-identities.md index 01b398018f5..7a7f4bc09fc 100644 --- a/docs/examples/1.6.x/server-go/examples/account/list-identities.md +++ b/docs/examples/1.6.x/server-go/examples/account/list-identities.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/account/list-logs.md b/docs/examples/1.6.x/server-go/examples/account/list-logs.md index 9cbdaa35694..eec9ed33e01 100644 --- a/docs/examples/1.6.x/server-go/examples/account/list-logs.md +++ b/docs/examples/1.6.x/server-go/examples/account/list-logs.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/server-go/examples/account/list-mfa-factors.md index 8e028c96153..4dca59fff61 100644 --- a/docs/examples/1.6.x/server-go/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-go/examples/account/list-mfa-factors.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/account/list-sessions.md b/docs/examples/1.6.x/server-go/examples/account/list-sessions.md index 12454750d1c..9f8a5f47998 100644 --- a/docs/examples/1.6.x/server-go/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/server-go/examples/account/list-sessions.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/account/update-email.md b/docs/examples/1.6.x/server-go/examples/account/update-email.md index 16c31efe88f..11f98265b67 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-email.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-email.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/account/update-m-f-a.md b/docs/examples/1.6.x/server-go/examples/account/update-m-f-a.md index f06eb959c19..d3df3d46389 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-m-f-a.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/server-go/examples/account/update-magic-u-r-l-session.md index aaf8d697720..fdc9d45c049 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-magic-u-r-l-session.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID service := account.NewAccount(client) diff --git a/docs/examples/1.6.x/server-go/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/server-go/examples/account/update-mfa-authenticator.md index 350dcfaf64f..fb225574d43 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-mfa-authenticator.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/server-go/examples/account/update-mfa-challenge.md index 2c367fbc96c..1e95a60d34b 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-mfa-challenge.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-go/examples/account/update-mfa-recovery-codes.md index c04f169fa88..08feede2610 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-mfa-recovery-codes.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/account/update-name.md b/docs/examples/1.6.x/server-go/examples/account/update-name.md index 31baf1f1dae..8424a269460 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-name.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-name.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/account/update-password.md b/docs/examples/1.6.x/server-go/examples/account/update-password.md index 770d748ccf5..561ff0a6672 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-password.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-password.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/account/update-phone-session.md b/docs/examples/1.6.x/server-go/examples/account/update-phone-session.md index 4fb1e2ac69e..433043e439b 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-phone-session.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-phone-session.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID service := account.NewAccount(client) diff --git a/docs/examples/1.6.x/server-go/examples/account/update-phone-verification.md b/docs/examples/1.6.x/server-go/examples/account/update-phone-verification.md index 0e3af857546..46602a8be82 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-phone-verification.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-phone-verification.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/account/update-phone.md b/docs/examples/1.6.x/server-go/examples/account/update-phone.md index 3c39ab28997..d753cb21d3f 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-phone.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-phone.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/account/update-prefs.md b/docs/examples/1.6.x/server-go/examples/account/update-prefs.md index 822c6fdfbb2..0319de200a6 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-prefs.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/account/update-recovery.md b/docs/examples/1.6.x/server-go/examples/account/update-recovery.md index 0450f9a03c8..f40414e5e85 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-recovery.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-recovery.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/account/update-session.md b/docs/examples/1.6.x/server-go/examples/account/update-session.md index cc03ef1acdf..8e1725a71c8 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-session.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-session.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/account/update-status.md b/docs/examples/1.6.x/server-go/examples/account/update-status.md index 2e1f4f2e2ba..a9a0e239b05 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-status.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-status.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/account/update-verification.md b/docs/examples/1.6.x/server-go/examples/account/update-verification.md index 4e245c6bd63..2fd356dcf82 100644 --- a/docs/examples/1.6.x/server-go/examples/account/update-verification.md +++ b/docs/examples/1.6.x/server-go/examples/account/update-verification.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/avatars/get-browser.md b/docs/examples/1.6.x/server-go/examples/avatars/get-browser.md index 41e6d3a64ac..31f16ec7be3 100644 --- a/docs/examples/1.6.x/server-go/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/server-go/examples/avatars/get-browser.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/server-go/examples/avatars/get-credit-card.md index 29fa7c17155..51d3f589dbb 100644 --- a/docs/examples/1.6.x/server-go/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/server-go/examples/avatars/get-credit-card.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/avatars/get-favicon.md b/docs/examples/1.6.x/server-go/examples/avatars/get-favicon.md index 52d71201335..bdea40db2f1 100644 --- a/docs/examples/1.6.x/server-go/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/server-go/examples/avatars/get-favicon.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/avatars/get-flag.md b/docs/examples/1.6.x/server-go/examples/avatars/get-flag.md index 2024a671c76..74e11ef43ad 100644 --- a/docs/examples/1.6.x/server-go/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/server-go/examples/avatars/get-flag.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/avatars/get-image.md b/docs/examples/1.6.x/server-go/examples/avatars/get-image.md index cbcb8c7b805..a751abb9274 100644 --- a/docs/examples/1.6.x/server-go/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/server-go/examples/avatars/get-image.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/avatars/get-initials.md b/docs/examples/1.6.x/server-go/examples/avatars/get-initials.md index 83c2f212da7..21fa9282aeb 100644 --- a/docs/examples/1.6.x/server-go/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/server-go/examples/avatars/get-initials.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/avatars/get-q-r.md b/docs/examples/1.6.x/server-go/examples/avatars/get-q-r.md index 172e2720168..8eeea5f6bf8 100644 --- a/docs/examples/1.6.x/server-go/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/server-go/examples/avatars/get-q-r.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/databases/create-boolean-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/create-boolean-attribute.md index e0a0a4255d8..73e118e3b7b 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/create-boolean-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/create-collection.md b/docs/examples/1.6.x/server-go/examples/databases/create-collection.md index 8b42c00dc17..815b21d6cb2 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/create-collection.md +++ b/docs/examples/1.6.x/server-go/examples/databases/create-collection.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/create-datetime-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/create-datetime-attribute.md index f8dc80f7fd1..edf716911dd 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/create-datetime-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/create-document.md b/docs/examples/1.6.x/server-go/examples/databases/create-document.md index 19bcdba0a4c..142c55cffcb 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/create-document.md +++ b/docs/examples/1.6.x/server-go/examples/databases/create-document.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/databases/create-documents.md b/docs/examples/1.6.x/server-go/examples/databases/create-documents.md new file mode 100644 index 00000000000..0617f126870 --- /dev/null +++ b/docs/examples/1.6.x/server-go/examples/databases/create-documents.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetSession("") // The user session to authenticate with + + service := databases.NewDatabases(client) + response, error := service.CreateDocuments( + "<DATABASE_ID>", + "<COLLECTION_ID>", + []interface{}{}, + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.6.x/server-go/examples/databases/create-email-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/create-email-attribute.md index c79d5f28cad..f564b4033a0 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/create-email-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/create-email-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/create-enum-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/create-enum-attribute.md index ade770e80e2..0827d31e1a7 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/create-enum-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/create-float-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/create-float-attribute.md index fc873a21f0a..a262e1d3f39 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/create-float-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/create-float-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/create-index.md b/docs/examples/1.6.x/server-go/examples/databases/create-index.md index 417a5ffbe9e..3544bd9f581 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/create-index.md +++ b/docs/examples/1.6.x/server-go/examples/databases/create-index.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/create-integer-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/create-integer-attribute.md index 3ab7505e51b..daa54f9ec69 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/create-integer-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/create-ip-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/create-ip-attribute.md index 5f80658c777..4c5c9c37c2e 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/create-ip-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/create-relationship-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/create-relationship-attribute.md index 2e9431901cf..e10aee8ddde 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/create-relationship-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/create-string-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/create-string-attribute.md index 07fc841f747..e4bd63ce352 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/create-string-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/create-string-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/create-url-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/create-url-attribute.md index a4525afc012..9d8b2e13f8b 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/create-url-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/create-url-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/create.md b/docs/examples/1.6.x/server-go/examples/databases/create.md index 3303b897224..80f9f92c294 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/create.md +++ b/docs/examples/1.6.x/server-go/examples/databases/create.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/delete-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/delete-attribute.md index 6d4f2c89d7d..746dae5d0b2 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/delete-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/delete-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/delete-collection.md b/docs/examples/1.6.x/server-go/examples/databases/delete-collection.md index 33b6cce1c8a..abf6a7ae200 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/delete-collection.md +++ b/docs/examples/1.6.x/server-go/examples/databases/delete-collection.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/delete-document.md b/docs/examples/1.6.x/server-go/examples/databases/delete-document.md index e1d98e79c22..e8131a73f58 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/delete-document.md +++ b/docs/examples/1.6.x/server-go/examples/databases/delete-document.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/databases/delete-documents.md b/docs/examples/1.6.x/server-go/examples/databases/delete-documents.md new file mode 100644 index 00000000000..6527cee6779 --- /dev/null +++ b/docs/examples/1.6.x/server-go/examples/databases/delete-documents.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.DeleteDocuments( + "<DATABASE_ID>", + "<COLLECTION_ID>", + databases.WithDeleteDocumentsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.6.x/server-go/examples/databases/delete-index.md b/docs/examples/1.6.x/server-go/examples/databases/delete-index.md index 540afeac4a2..38e6bc94d0b 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/delete-index.md +++ b/docs/examples/1.6.x/server-go/examples/databases/delete-index.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/delete.md b/docs/examples/1.6.x/server-go/examples/databases/delete.md index 76139289cec..0e7fb0a0582 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/delete.md +++ b/docs/examples/1.6.x/server-go/examples/databases/delete.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/get-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/get-attribute.md index b819b75820d..64ba82e65c4 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/get-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/get-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/get-collection.md b/docs/examples/1.6.x/server-go/examples/databases/get-collection.md index 9b9cd41aa33..ee166a4ff97 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/get-collection.md +++ b/docs/examples/1.6.x/server-go/examples/databases/get-collection.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/get-document.md b/docs/examples/1.6.x/server-go/examples/databases/get-document.md index d1e2d7b3776..657a3dcab36 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/get-document.md +++ b/docs/examples/1.6.x/server-go/examples/databases/get-document.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/databases/get-index.md b/docs/examples/1.6.x/server-go/examples/databases/get-index.md index 6c7f35113fa..efc9c1f9504 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/get-index.md +++ b/docs/examples/1.6.x/server-go/examples/databases/get-index.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/get.md b/docs/examples/1.6.x/server-go/examples/databases/get.md index 8e1e002258d..b6d337111ba 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/get.md +++ b/docs/examples/1.6.x/server-go/examples/databases/get.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/list-attributes.md b/docs/examples/1.6.x/server-go/examples/databases/list-attributes.md index 8d127abbe61..8095b75d196 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/list-attributes.md +++ b/docs/examples/1.6.x/server-go/examples/databases/list-attributes.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/list-collections.md b/docs/examples/1.6.x/server-go/examples/databases/list-collections.md index cd76783838c..2303c98bde2 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/list-collections.md +++ b/docs/examples/1.6.x/server-go/examples/databases/list-collections.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/list-documents.md b/docs/examples/1.6.x/server-go/examples/databases/list-documents.md index 237b6d17f78..952a1b2b489 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/server-go/examples/databases/list-documents.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/databases/list-indexes.md b/docs/examples/1.6.x/server-go/examples/databases/list-indexes.md index d0792e8dbff..8593dd71b77 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/list-indexes.md +++ b/docs/examples/1.6.x/server-go/examples/databases/list-indexes.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/list.md b/docs/examples/1.6.x/server-go/examples/databases/list.md index 3548af44841..798e33b6ea8 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/list.md +++ b/docs/examples/1.6.x/server-go/examples/databases/list.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/update-boolean-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/update-boolean-attribute.md index b5386f01113..770617635d4 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/update-boolean-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/update-collection.md b/docs/examples/1.6.x/server-go/examples/databases/update-collection.md index 2e9c9200227..1f80eaa255e 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/update-collection.md +++ b/docs/examples/1.6.x/server-go/examples/databases/update-collection.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/update-datetime-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/update-datetime-attribute.md index 53a66e8cfe8..252334b20f9 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/update-datetime-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/update-document.md b/docs/examples/1.6.x/server-go/examples/databases/update-document.md index c9345686078..5ec0e189e9e 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/update-document.md +++ b/docs/examples/1.6.x/server-go/examples/databases/update-document.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/databases/update-documents.md b/docs/examples/1.6.x/server-go/examples/databases/update-documents.md new file mode 100644 index 00000000000..e6545906912 --- /dev/null +++ b/docs/examples/1.6.x/server-go/examples/databases/update-documents.md @@ -0,0 +1,29 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.UpdateDocuments( + "<DATABASE_ID>", + "<COLLECTION_ID>", + databases.WithUpdateDocumentsData(map[string]interface{}{}), + databases.WithUpdateDocumentsQueries([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.6.x/server-go/examples/databases/update-email-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/update-email-attribute.md index 0dd72beb4b0..c2e0cf9552a 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/update-email-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/update-email-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/update-enum-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/update-enum-attribute.md index aec51772ee4..fb993f37ccd 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/update-enum-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/update-float-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/update-float-attribute.md index f7b40a299df..814da25bdeb 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/update-float-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/update-float-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key @@ -20,8 +20,8 @@ func main() { "", false, 0, - 0, - 0, + databases.WithUpdateFloatAttributeMin(0), + databases.WithUpdateFloatAttributeMax(0), databases.WithUpdateFloatAttributeNewKey(""), ) diff --git a/docs/examples/1.6.x/server-go/examples/databases/update-integer-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/update-integer-attribute.md index 705d92c8aaf..961374e3db4 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/update-integer-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key @@ -20,8 +20,8 @@ func main() { "", false, 0, - 0, - 0, + databases.WithUpdateIntegerAttributeMin(0), + databases.WithUpdateIntegerAttributeMax(0), databases.WithUpdateIntegerAttributeNewKey(""), ) diff --git a/docs/examples/1.6.x/server-go/examples/databases/update-ip-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/update-ip-attribute.md index b47672c530e..4895feb54d6 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/update-ip-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/update-relationship-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/update-relationship-attribute.md index 7deadc7c152..6df9de20157 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/update-relationship-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/update-string-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/update-string-attribute.md index d662060f095..0469527d04b 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/update-string-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/update-string-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key @@ -20,7 +20,7 @@ func main() { "", false, "<DEFAULT>", - databases.WithUpdateStringAttributeSize(0), + databases.WithUpdateStringAttributeSize(1), databases.WithUpdateStringAttributeNewKey(""), ) diff --git a/docs/examples/1.6.x/server-go/examples/databases/update-url-attribute.md b/docs/examples/1.6.x/server-go/examples/databases/update-url-attribute.md index 98dc66fa99c..53e2a482ef6 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/update-url-attribute.md +++ b/docs/examples/1.6.x/server-go/examples/databases/update-url-attribute.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/update.md b/docs/examples/1.6.x/server-go/examples/databases/update.md index af9e20ba28a..8f5c6896a61 100644 --- a/docs/examples/1.6.x/server-go/examples/databases/update.md +++ b/docs/examples/1.6.x/server-go/examples/databases/update.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/databases/upsert-documents.md b/docs/examples/1.6.x/server-go/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..a8399f79c07 --- /dev/null +++ b/docs/examples/1.6.x/server-go/examples/databases/upsert-documents.md @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := databases.NewDatabases(client) + response, error := service.UpsertDocuments( + "<DATABASE_ID>", + "<COLLECTION_ID>", + databases.WithUpsertDocumentsDocuments([]interface{}{}), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.6.x/server-go/examples/functions/create-build.md b/docs/examples/1.6.x/server-go/examples/functions/create-build.md index 33e645bb028..a0dfeb672ff 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/create-build.md +++ b/docs/examples/1.6.x/server-go/examples/functions/create-build.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/functions/create-deployment.md b/docs/examples/1.6.x/server-go/examples/functions/create-deployment.md index c6ec69ca4a3..afcfeb31736 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/create-deployment.md +++ b/docs/examples/1.6.x/server-go/examples/functions/create-deployment.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/functions/create-execution.md b/docs/examples/1.6.x/server-go/examples/functions/create-execution.md index 4924e2338c7..356e8513761 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/create-execution.md +++ b/docs/examples/1.6.x/server-go/examples/functions/create-execution.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/functions/create-variable.md b/docs/examples/1.6.x/server-go/examples/functions/create-variable.md index 9d50f0e0ec5..411c480e8f7 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/create-variable.md +++ b/docs/examples/1.6.x/server-go/examples/functions/create-variable.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/functions/create.md b/docs/examples/1.6.x/server-go/examples/functions/create.md index 01cd0f0402c..396a0049e54 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/create.md +++ b/docs/examples/1.6.x/server-go/examples/functions/create.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/functions/delete-deployment.md b/docs/examples/1.6.x/server-go/examples/functions/delete-deployment.md index 3e189ea1c6e..cf088e82c88 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/delete-deployment.md +++ b/docs/examples/1.6.x/server-go/examples/functions/delete-deployment.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/functions/delete-execution.md b/docs/examples/1.6.x/server-go/examples/functions/delete-execution.md index 184f6234c79..e863e3ba573 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/delete-execution.md +++ b/docs/examples/1.6.x/server-go/examples/functions/delete-execution.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/functions/delete-variable.md b/docs/examples/1.6.x/server-go/examples/functions/delete-variable.md index da9cb443da4..7cb66a04ceb 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/delete-variable.md +++ b/docs/examples/1.6.x/server-go/examples/functions/delete-variable.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/functions/delete.md b/docs/examples/1.6.x/server-go/examples/functions/delete.md index c19495f32b8..ec006f20794 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/delete.md +++ b/docs/examples/1.6.x/server-go/examples/functions/delete.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/functions/get-deployment-download.md b/docs/examples/1.6.x/server-go/examples/functions/get-deployment-download.md index 16b29f5b910..cf903f04893 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/get-deployment-download.md +++ b/docs/examples/1.6.x/server-go/examples/functions/get-deployment-download.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/functions/get-deployment.md b/docs/examples/1.6.x/server-go/examples/functions/get-deployment.md index 879f5b3e461..6b6824500a9 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/get-deployment.md +++ b/docs/examples/1.6.x/server-go/examples/functions/get-deployment.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/functions/get-execution.md b/docs/examples/1.6.x/server-go/examples/functions/get-execution.md index 7ec459b7e12..627c95b5a7d 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/server-go/examples/functions/get-execution.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/functions/get-variable.md b/docs/examples/1.6.x/server-go/examples/functions/get-variable.md index f949ba5111c..003baf4011b 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/get-variable.md +++ b/docs/examples/1.6.x/server-go/examples/functions/get-variable.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/functions/get.md b/docs/examples/1.6.x/server-go/examples/functions/get.md index 3e31a307884..a18d0526dea 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/get.md +++ b/docs/examples/1.6.x/server-go/examples/functions/get.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/functions/list-deployments.md b/docs/examples/1.6.x/server-go/examples/functions/list-deployments.md index 9549636b8d9..b137c3047c4 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/list-deployments.md +++ b/docs/examples/1.6.x/server-go/examples/functions/list-deployments.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/functions/list-executions.md b/docs/examples/1.6.x/server-go/examples/functions/list-executions.md index 2a6291c6f34..2f63153b68d 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/server-go/examples/functions/list-executions.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/functions/list-runtimes.md b/docs/examples/1.6.x/server-go/examples/functions/list-runtimes.md index d5124b2d687..76e4414df28 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/list-runtimes.md +++ b/docs/examples/1.6.x/server-go/examples/functions/list-runtimes.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/functions/list-specifications.md b/docs/examples/1.6.x/server-go/examples/functions/list-specifications.md index 5fb03bb8d50..c1abea5d170 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/list-specifications.md +++ b/docs/examples/1.6.x/server-go/examples/functions/list-specifications.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/functions/list-variables.md b/docs/examples/1.6.x/server-go/examples/functions/list-variables.md index 374c64ae546..e27df96670a 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/list-variables.md +++ b/docs/examples/1.6.x/server-go/examples/functions/list-variables.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/functions/list.md b/docs/examples/1.6.x/server-go/examples/functions/list.md index 124126fc918..36a55d72b28 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/list.md +++ b/docs/examples/1.6.x/server-go/examples/functions/list.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/functions/update-deployment-build.md b/docs/examples/1.6.x/server-go/examples/functions/update-deployment-build.md index 92af3ee31fb..2c4266fb064 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/update-deployment-build.md +++ b/docs/examples/1.6.x/server-go/examples/functions/update-deployment-build.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/functions/update-deployment.md b/docs/examples/1.6.x/server-go/examples/functions/update-deployment.md index da08d0d8c69..0b63770a12b 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/update-deployment.md +++ b/docs/examples/1.6.x/server-go/examples/functions/update-deployment.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/functions/update-variable.md b/docs/examples/1.6.x/server-go/examples/functions/update-variable.md index fce59eb7140..4063706ff8e 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/update-variable.md +++ b/docs/examples/1.6.x/server-go/examples/functions/update-variable.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/functions/update.md b/docs/examples/1.6.x/server-go/examples/functions/update.md index c29bf748ba2..318ba4dfd0e 100644 --- a/docs/examples/1.6.x/server-go/examples/functions/update.md +++ b/docs/examples/1.6.x/server-go/examples/functions/update.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/graphql/mutation.md b/docs/examples/1.6.x/server-go/examples/graphql/mutation.md index e011bc8016f..092e817c939 100644 --- a/docs/examples/1.6.x/server-go/examples/graphql/mutation.md +++ b/docs/examples/1.6.x/server-go/examples/graphql/mutation.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/graphql/query.md b/docs/examples/1.6.x/server-go/examples/graphql/query.md index 6dec430cd7a..511d6c452ea 100644 --- a/docs/examples/1.6.x/server-go/examples/graphql/query.md +++ b/docs/examples/1.6.x/server-go/examples/graphql/query.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/health/get-antivirus.md b/docs/examples/1.6.x/server-go/examples/health/get-antivirus.md index 2ed5b0dd5a0..1640c01c0eb 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-antivirus.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-antivirus.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/health/get-cache.md b/docs/examples/1.6.x/server-go/examples/health/get-cache.md index 4e6b8de6ced..976d51fbe74 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-cache.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-cache.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/health/get-certificate.md b/docs/examples/1.6.x/server-go/examples/health/get-certificate.md index d251fff351b..44d1d1bb929 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-certificate.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-certificate.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/health/get-d-b.md b/docs/examples/1.6.x/server-go/examples/health/get-d-b.md index a6fbda00520..8f681a04c19 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-d-b.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-d-b.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/health/get-failed-jobs.md b/docs/examples/1.6.x/server-go/examples/health/get-failed-jobs.md index 6e89dd400d5..814b8850e83 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-failed-jobs.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-failed-jobs.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/health/get-pub-sub.md b/docs/examples/1.6.x/server-go/examples/health/get-pub-sub.md index 5ab0d90ef63..6a3d67e838a 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-pub-sub.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-pub-sub.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/health/get-queue-builds.md b/docs/examples/1.6.x/server-go/examples/health/get-queue-builds.md index bd68bdf8b41..ebd1a2f3d84 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-queue-builds.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-queue-builds.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/health/get-queue-certificates.md b/docs/examples/1.6.x/server-go/examples/health/get-queue-certificates.md index 1e43f62b980..473d953c157 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-queue-certificates.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-queue-certificates.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/health/get-queue-databases.md b/docs/examples/1.6.x/server-go/examples/health/get-queue-databases.md index d0fb2fb1149..83eb8584a54 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-queue-databases.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-queue-databases.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/health/get-queue-deletes.md b/docs/examples/1.6.x/server-go/examples/health/get-queue-deletes.md index d4f76f57f22..e491446f94c 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-queue-deletes.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-queue-deletes.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/health/get-queue-functions.md b/docs/examples/1.6.x/server-go/examples/health/get-queue-functions.md index 75bc0cb3c14..c7cf45a3557 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-queue-functions.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-queue-functions.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/health/get-queue-logs.md b/docs/examples/1.6.x/server-go/examples/health/get-queue-logs.md index 686e42c84e6..b369c24277c 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-queue-logs.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-queue-logs.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/health/get-queue-mails.md b/docs/examples/1.6.x/server-go/examples/health/get-queue-mails.md index 32433a1f79e..cc944d0cadf 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-queue-mails.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-queue-mails.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/health/get-queue-messaging.md b/docs/examples/1.6.x/server-go/examples/health/get-queue-messaging.md index 56c50010fcc..65c6c34610f 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-queue-messaging.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-queue-messaging.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/health/get-queue-migrations.md b/docs/examples/1.6.x/server-go/examples/health/get-queue-migrations.md index dba9bd18096..d0c3bd2573b 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-queue-migrations.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-queue-migrations.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/health/get-queue-stats-resources.md b/docs/examples/1.6.x/server-go/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..5ed004c7cf7 --- /dev/null +++ b/docs/examples/1.6.x/server-go/examples/health/get-queue-stats-resources.md @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/health" +) + +func main() { + client := client.NewClient() + + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + client.SetProject("<YOUR_PROJECT_ID>") // Your project ID + client.SetKey("<YOUR_API_KEY>") // Your secret API key + + service := health.NewHealth(client) + response, error := service.GetQueueStatsResources( + health.WithGetQueueStatsResourcesThreshold(0), + ) + + if error != nil { + panic(error) + } + + fmt.Println(response) +} diff --git a/docs/examples/1.6.x/server-go/examples/health/get-queue-usage-dump.md b/docs/examples/1.6.x/server-go/examples/health/get-queue-usage-dump.md index f7ad9bd80f8..9e5731e6a3c 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-queue-usage-dump.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/health/get-queue-usage.md b/docs/examples/1.6.x/server-go/examples/health/get-queue-usage.md index f4315e37fb3..5202371d1ef 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-queue-usage.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-queue-usage.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/health/get-queue-webhooks.md b/docs/examples/1.6.x/server-go/examples/health/get-queue-webhooks.md index 70f3b9888c5..4782aef9aca 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-queue-webhooks.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/health/get-queue.md b/docs/examples/1.6.x/server-go/examples/health/get-queue.md index 9797a93be21..5fbda1d9cef 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-queue.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-queue.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/health/get-storage-local.md b/docs/examples/1.6.x/server-go/examples/health/get-storage-local.md index 1bebff56d45..e58b944497a 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-storage-local.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-storage-local.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/health/get-storage.md b/docs/examples/1.6.x/server-go/examples/health/get-storage.md index 8ac0f7fb361..73ae964d514 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-storage.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-storage.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/health/get-time.md b/docs/examples/1.6.x/server-go/examples/health/get-time.md index 447954b76b7..43c0ca46a4d 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get-time.md +++ b/docs/examples/1.6.x/server-go/examples/health/get-time.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/health/get.md b/docs/examples/1.6.x/server-go/examples/health/get.md index 35022c7302d..c9730f70dd4 100644 --- a/docs/examples/1.6.x/server-go/examples/health/get.md +++ b/docs/examples/1.6.x/server-go/examples/health/get.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/locale/get.md b/docs/examples/1.6.x/server-go/examples/locale/get.md index 233ee953dd0..055889b6ce7 100644 --- a/docs/examples/1.6.x/server-go/examples/locale/get.md +++ b/docs/examples/1.6.x/server-go/examples/locale/get.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/locale/list-codes.md b/docs/examples/1.6.x/server-go/examples/locale/list-codes.md index d3d049b1fd6..a69a05d6cd7 100644 --- a/docs/examples/1.6.x/server-go/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/server-go/examples/locale/list-codes.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/locale/list-continents.md b/docs/examples/1.6.x/server-go/examples/locale/list-continents.md index ba80f2549bf..0430fdbe994 100644 --- a/docs/examples/1.6.x/server-go/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/server-go/examples/locale/list-continents.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/server-go/examples/locale/list-countries-e-u.md index 1fbc22c1e5b..92bd24d1f8f 100644 --- a/docs/examples/1.6.x/server-go/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/server-go/examples/locale/list-countries-e-u.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/server-go/examples/locale/list-countries-phones.md index 72b7d96a19d..1615834103a 100644 --- a/docs/examples/1.6.x/server-go/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/server-go/examples/locale/list-countries-phones.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/locale/list-countries.md b/docs/examples/1.6.x/server-go/examples/locale/list-countries.md index 894ae4c15bb..25bbbd15382 100644 --- a/docs/examples/1.6.x/server-go/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/server-go/examples/locale/list-countries.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/locale/list-currencies.md b/docs/examples/1.6.x/server-go/examples/locale/list-currencies.md index 4335a934895..e4bde5d9d98 100644 --- a/docs/examples/1.6.x/server-go/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/server-go/examples/locale/list-currencies.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/locale/list-languages.md b/docs/examples/1.6.x/server-go/examples/locale/list-languages.md index 789d5701029..acce3181beb 100644 --- a/docs/examples/1.6.x/server-go/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/server-go/examples/locale/list-languages.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/messaging/create-apns-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/create-apns-provider.md index feabfae8461..620219e07db 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/create-apns-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/create-email.md b/docs/examples/1.6.x/server-go/examples/messaging/create-email.md index 87d386452f2..3da6c88cf4d 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/create-email.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/create-email.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/create-fcm-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/create-fcm-provider.md index 54223961974..c70c340eb5f 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/create-fcm-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/create-mailgun-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/create-mailgun-provider.md index 2b26246fba1..e265218ef49 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/create-mailgun-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/create-msg91provider.md b/docs/examples/1.6.x/server-go/examples/messaging/create-msg91provider.md index e2d74128623..53660cbfa03 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/create-msg91provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/create-push.md b/docs/examples/1.6.x/server-go/examples/messaging/create-push.md index 090e0cbca27..214d6ae0ed1 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/create-push.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/create-push.md @@ -9,15 +9,15 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key service := messaging.NewMessaging(client) response, error := service.CreatePush( "<MESSAGE_ID>", - "<TITLE>", - "<BODY>", + messaging.WithCreatePushTitle("<TITLE>"), + messaging.WithCreatePushBody("<BODY>"), messaging.WithCreatePushTopics([]interface{}{}), messaging.WithCreatePushUsers([]interface{}{}), messaging.WithCreatePushTargets([]interface{}{}), @@ -28,9 +28,12 @@ func main() { messaging.WithCreatePushSound("<SOUND>"), messaging.WithCreatePushColor("<COLOR>"), messaging.WithCreatePushTag("<TAG>"), - messaging.WithCreatePushBadge("<BADGE>"), + messaging.WithCreatePushBadge(0), messaging.WithCreatePushDraft(false), messaging.WithCreatePushScheduledAt(""), + messaging.WithCreatePushContentAvailable(false), + messaging.WithCreatePushCritical(false), + messaging.WithCreatePushPriority("normal"), ) if error != nil { diff --git a/docs/examples/1.6.x/server-go/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/create-sendgrid-provider.md index 1f70761a7d3..69375a23ca8 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/create-sendgrid-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/create-sms.md b/docs/examples/1.6.x/server-go/examples/messaging/create-sms.md index 74583d236d4..95c7738969c 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/create-sms.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/create-sms.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/create-smtp-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/create-smtp-provider.md index 136e274ed74..4c88b4ef7ab 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/create-smtp-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/server-go/examples/messaging/create-subscriber.md index 38f8418accc..c4faa8544a8 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/create-subscriber.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetJWT("<YOUR_JWT>") // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-go/examples/messaging/create-telesign-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/create-telesign-provider.md index 7de661031b8..11dd8c9bc6c 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/create-telesign-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/create-textmagic-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/create-textmagic-provider.md index c58bbe7569c..a0365492402 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/create-textmagic-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/create-topic.md b/docs/examples/1.6.x/server-go/examples/messaging/create-topic.md index d435d5e4a09..0453089fbc6 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/create-topic.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/create-topic.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/create-twilio-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/create-twilio-provider.md index 73c3656ec68..cd8a993a6cc 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/create-twilio-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/create-vonage-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/create-vonage-provider.md index 37568abc686..e17e8d885bb 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/create-vonage-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/delete-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/delete-provider.md index 304293d7805..2c5b77d622e 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/delete-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/delete-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/delete-subscriber.md b/docs/examples/1.6.x/server-go/examples/messaging/delete-subscriber.md index 1e918d95876..fec03f53f74 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/delete-subscriber.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetJWT("<YOUR_JWT>") // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-go/examples/messaging/delete-topic.md b/docs/examples/1.6.x/server-go/examples/messaging/delete-topic.md index 36c13a4a552..3a9787b6ce4 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/delete-topic.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/delete-topic.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/delete.md b/docs/examples/1.6.x/server-go/examples/messaging/delete.md index ce4b8a2e73c..4d5accd22fb 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/delete.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/delete.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/get-message.md b/docs/examples/1.6.x/server-go/examples/messaging/get-message.md index d0d2d21d277..d6db3188c81 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/get-message.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/get-message.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/get-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/get-provider.md index 9796d60fd36..ff2bab3acfa 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/get-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/get-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/get-subscriber.md b/docs/examples/1.6.x/server-go/examples/messaging/get-subscriber.md index c0c39a928c6..47fccf23cd9 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/get-subscriber.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/get-subscriber.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/get-topic.md b/docs/examples/1.6.x/server-go/examples/messaging/get-topic.md index 8c8f4613daa..a332f55ba44 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/get-topic.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/get-topic.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/list-message-logs.md b/docs/examples/1.6.x/server-go/examples/messaging/list-message-logs.md index 6d82a61ee23..b4a5528b41f 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/list-message-logs.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/list-message-logs.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/list-messages.md b/docs/examples/1.6.x/server-go/examples/messaging/list-messages.md index 047ff9bd1fd..f1ca97d3fe5 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/list-messages.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/list-messages.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/list-provider-logs.md b/docs/examples/1.6.x/server-go/examples/messaging/list-provider-logs.md index 89449d193a1..945dbcfd4eb 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/list-provider-logs.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/list-providers.md b/docs/examples/1.6.x/server-go/examples/messaging/list-providers.md index b8ae055baeb..57c09a20611 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/list-providers.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/list-providers.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/list-subscriber-logs.md b/docs/examples/1.6.x/server-go/examples/messaging/list-subscriber-logs.md index 679039ec919..cb2f050dd9c 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/list-subscriber-logs.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/list-subscribers.md b/docs/examples/1.6.x/server-go/examples/messaging/list-subscribers.md index 7da3d67bc70..045777d8c45 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/list-subscribers.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/list-subscribers.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/list-targets.md b/docs/examples/1.6.x/server-go/examples/messaging/list-targets.md index 448e3f58a41..9cc65e0d1c6 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/list-targets.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/list-targets.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/list-topic-logs.md b/docs/examples/1.6.x/server-go/examples/messaging/list-topic-logs.md index 49316663b3b..2e928dbfc76 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/list-topic-logs.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/list-topics.md b/docs/examples/1.6.x/server-go/examples/messaging/list-topics.md index 39478d30f30..69574ae02fe 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/list-topics.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/list-topics.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/update-apns-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/update-apns-provider.md index bd331bca3c7..aac3e39c6ec 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/update-apns-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/update-email.md b/docs/examples/1.6.x/server-go/examples/messaging/update-email.md index 86c7ee0601c..f1e9f081d22 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/update-email.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/update-email.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/update-fcm-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/update-fcm-provider.md index c6bd3ba4857..55e4b90363c 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/update-fcm-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/update-mailgun-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/update-mailgun-provider.md index 00789d2f6db..5bb229f3486 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/update-mailgun-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/update-msg91provider.md b/docs/examples/1.6.x/server-go/examples/messaging/update-msg91provider.md index 0bda860823c..d19c5002624 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/update-msg91provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/update-push.md b/docs/examples/1.6.x/server-go/examples/messaging/update-push.md index af1b6095cdc..856b95dc1bb 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/update-push.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/update-push.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key @@ -31,6 +31,9 @@ func main() { messaging.WithUpdatePushBadge(0), messaging.WithUpdatePushDraft(false), messaging.WithUpdatePushScheduledAt(""), + messaging.WithUpdatePushContentAvailable(false), + messaging.WithUpdatePushCritical(false), + messaging.WithUpdatePushPriority("normal"), ) if error != nil { diff --git a/docs/examples/1.6.x/server-go/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/update-sendgrid-provider.md index e7205716ccb..5742b448743 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/update-sendgrid-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/update-sms.md b/docs/examples/1.6.x/server-go/examples/messaging/update-sms.md index 2f74b58422b..09b3456d388 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/update-sms.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/update-sms.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/update-smtp-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/update-smtp-provider.md index 5c0ecedf944..b99f86e1230 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/update-smtp-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/update-telesign-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/update-telesign-provider.md index c30c288caa1..5fb99a68ec9 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/update-telesign-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/update-textmagic-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/update-textmagic-provider.md index baaed6020d2..24e619cc7f4 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/update-textmagic-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/update-topic.md b/docs/examples/1.6.x/server-go/examples/messaging/update-topic.md index 4f5b003e3bc..ab8902b4b2f 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/update-topic.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/update-topic.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/update-twilio-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/update-twilio-provider.md index 1763a5f02df..316a2516d16 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/update-twilio-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/messaging/update-vonage-provider.md b/docs/examples/1.6.x/server-go/examples/messaging/update-vonage-provider.md index ea1d6fe3936..d17452140a3 100644 --- a/docs/examples/1.6.x/server-go/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.6.x/server-go/examples/messaging/update-vonage-provider.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/storage/create-bucket.md b/docs/examples/1.6.x/server-go/examples/storage/create-bucket.md index 9ab1965854a..39dc1d06d96 100644 --- a/docs/examples/1.6.x/server-go/examples/storage/create-bucket.md +++ b/docs/examples/1.6.x/server-go/examples/storage/create-bucket.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/storage/create-file.md b/docs/examples/1.6.x/server-go/examples/storage/create-file.md index e561e22e3e8..1ca815c92ec 100644 --- a/docs/examples/1.6.x/server-go/examples/storage/create-file.md +++ b/docs/examples/1.6.x/server-go/examples/storage/create-file.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/storage/delete-bucket.md b/docs/examples/1.6.x/server-go/examples/storage/delete-bucket.md index 227ae84109f..37a3f69b256 100644 --- a/docs/examples/1.6.x/server-go/examples/storage/delete-bucket.md +++ b/docs/examples/1.6.x/server-go/examples/storage/delete-bucket.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/storage/delete-file.md b/docs/examples/1.6.x/server-go/examples/storage/delete-file.md index d67861b0b20..522aacae728 100644 --- a/docs/examples/1.6.x/server-go/examples/storage/delete-file.md +++ b/docs/examples/1.6.x/server-go/examples/storage/delete-file.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/storage/get-bucket.md b/docs/examples/1.6.x/server-go/examples/storage/get-bucket.md index 3aa33b40c06..b76ac37d25b 100644 --- a/docs/examples/1.6.x/server-go/examples/storage/get-bucket.md +++ b/docs/examples/1.6.x/server-go/examples/storage/get-bucket.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/storage/get-file-download.md b/docs/examples/1.6.x/server-go/examples/storage/get-file-download.md index aa9185cadd9..b8c8202460f 100644 --- a/docs/examples/1.6.x/server-go/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/server-go/examples/storage/get-file-download.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/storage/get-file-preview.md b/docs/examples/1.6.x/server-go/examples/storage/get-file-preview.md index 2210c4559e9..ffa1ad4a4a2 100644 --- a/docs/examples/1.6.x/server-go/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/server-go/examples/storage/get-file-preview.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/storage/get-file-view.md b/docs/examples/1.6.x/server-go/examples/storage/get-file-view.md index e4a3ece23c2..f8685f42d53 100644 --- a/docs/examples/1.6.x/server-go/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/server-go/examples/storage/get-file-view.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/storage/get-file.md b/docs/examples/1.6.x/server-go/examples/storage/get-file.md index 4dfc7df8294..824c86f0542 100644 --- a/docs/examples/1.6.x/server-go/examples/storage/get-file.md +++ b/docs/examples/1.6.x/server-go/examples/storage/get-file.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/storage/list-buckets.md b/docs/examples/1.6.x/server-go/examples/storage/list-buckets.md index 571d46376e9..00dd8d657b7 100644 --- a/docs/examples/1.6.x/server-go/examples/storage/list-buckets.md +++ b/docs/examples/1.6.x/server-go/examples/storage/list-buckets.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/storage/list-files.md b/docs/examples/1.6.x/server-go/examples/storage/list-files.md index 13f4549a9a0..a84dfac6fdb 100644 --- a/docs/examples/1.6.x/server-go/examples/storage/list-files.md +++ b/docs/examples/1.6.x/server-go/examples/storage/list-files.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/storage/update-bucket.md b/docs/examples/1.6.x/server-go/examples/storage/update-bucket.md index 6c7f9463c90..58efff687bd 100644 --- a/docs/examples/1.6.x/server-go/examples/storage/update-bucket.md +++ b/docs/examples/1.6.x/server-go/examples/storage/update-bucket.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/storage/update-file.md b/docs/examples/1.6.x/server-go/examples/storage/update-file.md index 820e6d4f230..f1705138e98 100644 --- a/docs/examples/1.6.x/server-go/examples/storage/update-file.md +++ b/docs/examples/1.6.x/server-go/examples/storage/update-file.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/teams/create-membership.md b/docs/examples/1.6.x/server-go/examples/teams/create-membership.md index 186520d47a8..90c3d82348e 100644 --- a/docs/examples/1.6.x/server-go/examples/teams/create-membership.md +++ b/docs/examples/1.6.x/server-go/examples/teams/create-membership.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/teams/create.md b/docs/examples/1.6.x/server-go/examples/teams/create.md index b429e396a66..1898936941f 100644 --- a/docs/examples/1.6.x/server-go/examples/teams/create.md +++ b/docs/examples/1.6.x/server-go/examples/teams/create.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/teams/delete-membership.md b/docs/examples/1.6.x/server-go/examples/teams/delete-membership.md index 536aa91f93a..78810817a93 100644 --- a/docs/examples/1.6.x/server-go/examples/teams/delete-membership.md +++ b/docs/examples/1.6.x/server-go/examples/teams/delete-membership.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/teams/delete.md b/docs/examples/1.6.x/server-go/examples/teams/delete.md index 8e1c5d48934..fb4771605d3 100644 --- a/docs/examples/1.6.x/server-go/examples/teams/delete.md +++ b/docs/examples/1.6.x/server-go/examples/teams/delete.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/teams/get-membership.md b/docs/examples/1.6.x/server-go/examples/teams/get-membership.md index 3bc8650dd9b..c61b9c57c33 100644 --- a/docs/examples/1.6.x/server-go/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/server-go/examples/teams/get-membership.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/teams/get-prefs.md b/docs/examples/1.6.x/server-go/examples/teams/get-prefs.md index bb2ff1c7780..c237cd144ac 100644 --- a/docs/examples/1.6.x/server-go/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/server-go/examples/teams/get-prefs.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/teams/get.md b/docs/examples/1.6.x/server-go/examples/teams/get.md index 69b00075a90..c29e9fa7864 100644 --- a/docs/examples/1.6.x/server-go/examples/teams/get.md +++ b/docs/examples/1.6.x/server-go/examples/teams/get.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/teams/list-memberships.md b/docs/examples/1.6.x/server-go/examples/teams/list-memberships.md index 45a6267e989..1e8fb45ca7e 100644 --- a/docs/examples/1.6.x/server-go/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/server-go/examples/teams/list-memberships.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/teams/list.md b/docs/examples/1.6.x/server-go/examples/teams/list.md index 96c5f8ab747..c4b109f1f3e 100644 --- a/docs/examples/1.6.x/server-go/examples/teams/list.md +++ b/docs/examples/1.6.x/server-go/examples/teams/list.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/teams/update-membership-status.md b/docs/examples/1.6.x/server-go/examples/teams/update-membership-status.md index accc79ebce0..fbec3b8e845 100644 --- a/docs/examples/1.6.x/server-go/examples/teams/update-membership-status.md +++ b/docs/examples/1.6.x/server-go/examples/teams/update-membership-status.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/teams/update-membership.md b/docs/examples/1.6.x/server-go/examples/teams/update-membership.md index 9f18528938d..1b478a19137 100644 --- a/docs/examples/1.6.x/server-go/examples/teams/update-membership.md +++ b/docs/examples/1.6.x/server-go/examples/teams/update-membership.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/teams/update-name.md b/docs/examples/1.6.x/server-go/examples/teams/update-name.md index 05459deb4a3..a7b5da7c201 100644 --- a/docs/examples/1.6.x/server-go/examples/teams/update-name.md +++ b/docs/examples/1.6.x/server-go/examples/teams/update-name.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/teams/update-prefs.md b/docs/examples/1.6.x/server-go/examples/teams/update-prefs.md index 314cf6c6852..6d395add217 100644 --- a/docs/examples/1.6.x/server-go/examples/teams/update-prefs.md +++ b/docs/examples/1.6.x/server-go/examples/teams/update-prefs.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-go/examples/users/create-argon2user.md b/docs/examples/1.6.x/server-go/examples/users/create-argon2user.md index 87226b8033b..44eaafbcd4c 100644 --- a/docs/examples/1.6.x/server-go/examples/users/create-argon2user.md +++ b/docs/examples/1.6.x/server-go/examples/users/create-argon2user.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/create-bcrypt-user.md b/docs/examples/1.6.x/server-go/examples/users/create-bcrypt-user.md index 89e979d1b87..d818598c707 100644 --- a/docs/examples/1.6.x/server-go/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.6.x/server-go/examples/users/create-bcrypt-user.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/create-j-w-t.md b/docs/examples/1.6.x/server-go/examples/users/create-j-w-t.md index 37d1a5d0eba..dc1e51b1956 100644 --- a/docs/examples/1.6.x/server-go/examples/users/create-j-w-t.md +++ b/docs/examples/1.6.x/server-go/examples/users/create-j-w-t.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/create-m-d5user.md b/docs/examples/1.6.x/server-go/examples/users/create-m-d5user.md index d2c87b4d147..1dba39c5fd6 100644 --- a/docs/examples/1.6.x/server-go/examples/users/create-m-d5user.md +++ b/docs/examples/1.6.x/server-go/examples/users/create-m-d5user.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-go/examples/users/create-mfa-recovery-codes.md index 6757a627215..3078f0993ba 100644 --- a/docs/examples/1.6.x/server-go/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-go/examples/users/create-mfa-recovery-codes.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/create-p-h-pass-user.md b/docs/examples/1.6.x/server-go/examples/users/create-p-h-pass-user.md index f8a9f4007d4..c0380bd9f31 100644 --- a/docs/examples/1.6.x/server-go/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.6.x/server-go/examples/users/create-p-h-pass-user.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/create-s-h-a-user.md b/docs/examples/1.6.x/server-go/examples/users/create-s-h-a-user.md index b8e348c8844..93aa77e853c 100644 --- a/docs/examples/1.6.x/server-go/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.6.x/server-go/examples/users/create-s-h-a-user.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/create-scrypt-modified-user.md b/docs/examples/1.6.x/server-go/examples/users/create-scrypt-modified-user.md index 935ecc12cc7..cd48f6c83fa 100644 --- a/docs/examples/1.6.x/server-go/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.6.x/server-go/examples/users/create-scrypt-modified-user.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/create-scrypt-user.md b/docs/examples/1.6.x/server-go/examples/users/create-scrypt-user.md index 8320412796c..65d70e986fd 100644 --- a/docs/examples/1.6.x/server-go/examples/users/create-scrypt-user.md +++ b/docs/examples/1.6.x/server-go/examples/users/create-scrypt-user.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/create-session.md b/docs/examples/1.6.x/server-go/examples/users/create-session.md index b246b8feb7a..92304e647db 100644 --- a/docs/examples/1.6.x/server-go/examples/users/create-session.md +++ b/docs/examples/1.6.x/server-go/examples/users/create-session.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/create-target.md b/docs/examples/1.6.x/server-go/examples/users/create-target.md index d4802c19980..db42e2c3914 100644 --- a/docs/examples/1.6.x/server-go/examples/users/create-target.md +++ b/docs/examples/1.6.x/server-go/examples/users/create-target.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/create-token.md b/docs/examples/1.6.x/server-go/examples/users/create-token.md index ea9b5a1e8b3..6181a8d9d40 100644 --- a/docs/examples/1.6.x/server-go/examples/users/create-token.md +++ b/docs/examples/1.6.x/server-go/examples/users/create-token.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/create.md b/docs/examples/1.6.x/server-go/examples/users/create.md index f1b8f25d616..0ab673bc73e 100644 --- a/docs/examples/1.6.x/server-go/examples/users/create.md +++ b/docs/examples/1.6.x/server-go/examples/users/create.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/delete-identity.md b/docs/examples/1.6.x/server-go/examples/users/delete-identity.md index af33140a4fd..1095a1763a3 100644 --- a/docs/examples/1.6.x/server-go/examples/users/delete-identity.md +++ b/docs/examples/1.6.x/server-go/examples/users/delete-identity.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-go/examples/users/delete-mfa-authenticator.md index eb8f23b6a30..d61c5db0c83 100644 --- a/docs/examples/1.6.x/server-go/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-go/examples/users/delete-mfa-authenticator.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/delete-session.md b/docs/examples/1.6.x/server-go/examples/users/delete-session.md index b29c8b0d709..2a0de4c2710 100644 --- a/docs/examples/1.6.x/server-go/examples/users/delete-session.md +++ b/docs/examples/1.6.x/server-go/examples/users/delete-session.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/delete-sessions.md b/docs/examples/1.6.x/server-go/examples/users/delete-sessions.md index 9fc4e8012a2..ea15501819d 100644 --- a/docs/examples/1.6.x/server-go/examples/users/delete-sessions.md +++ b/docs/examples/1.6.x/server-go/examples/users/delete-sessions.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/delete-target.md b/docs/examples/1.6.x/server-go/examples/users/delete-target.md index 73443c5a1d9..d4cd4e51a82 100644 --- a/docs/examples/1.6.x/server-go/examples/users/delete-target.md +++ b/docs/examples/1.6.x/server-go/examples/users/delete-target.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/delete.md b/docs/examples/1.6.x/server-go/examples/users/delete.md index 4e4e0468919..2c359e3ab0b 100644 --- a/docs/examples/1.6.x/server-go/examples/users/delete.md +++ b/docs/examples/1.6.x/server-go/examples/users/delete.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-go/examples/users/get-mfa-recovery-codes.md index 6e70217d0d9..485075546f1 100644 --- a/docs/examples/1.6.x/server-go/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-go/examples/users/get-mfa-recovery-codes.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/get-prefs.md b/docs/examples/1.6.x/server-go/examples/users/get-prefs.md index 8c05fddc5f6..0dba2723887 100644 --- a/docs/examples/1.6.x/server-go/examples/users/get-prefs.md +++ b/docs/examples/1.6.x/server-go/examples/users/get-prefs.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/get-target.md b/docs/examples/1.6.x/server-go/examples/users/get-target.md index 761d008b374..b1291d7490e 100644 --- a/docs/examples/1.6.x/server-go/examples/users/get-target.md +++ b/docs/examples/1.6.x/server-go/examples/users/get-target.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/get.md b/docs/examples/1.6.x/server-go/examples/users/get.md index 44852bb9721..c6aae29d5d9 100644 --- a/docs/examples/1.6.x/server-go/examples/users/get.md +++ b/docs/examples/1.6.x/server-go/examples/users/get.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/list-identities.md b/docs/examples/1.6.x/server-go/examples/users/list-identities.md index a4cbbbd1eeb..063b9100fb2 100644 --- a/docs/examples/1.6.x/server-go/examples/users/list-identities.md +++ b/docs/examples/1.6.x/server-go/examples/users/list-identities.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/list-logs.md b/docs/examples/1.6.x/server-go/examples/users/list-logs.md index a713ee3ba29..674668b965d 100644 --- a/docs/examples/1.6.x/server-go/examples/users/list-logs.md +++ b/docs/examples/1.6.x/server-go/examples/users/list-logs.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/list-memberships.md b/docs/examples/1.6.x/server-go/examples/users/list-memberships.md index 5770fd8c7e3..95cc841f169 100644 --- a/docs/examples/1.6.x/server-go/examples/users/list-memberships.md +++ b/docs/examples/1.6.x/server-go/examples/users/list-memberships.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/list-mfa-factors.md b/docs/examples/1.6.x/server-go/examples/users/list-mfa-factors.md index d89e0f3f967..1c39b87a66d 100644 --- a/docs/examples/1.6.x/server-go/examples/users/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-go/examples/users/list-mfa-factors.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/list-sessions.md b/docs/examples/1.6.x/server-go/examples/users/list-sessions.md index a58d0532df5..835c23b1bce 100644 --- a/docs/examples/1.6.x/server-go/examples/users/list-sessions.md +++ b/docs/examples/1.6.x/server-go/examples/users/list-sessions.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/list-targets.md b/docs/examples/1.6.x/server-go/examples/users/list-targets.md index 45f967b4245..84c2c312a9a 100644 --- a/docs/examples/1.6.x/server-go/examples/users/list-targets.md +++ b/docs/examples/1.6.x/server-go/examples/users/list-targets.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/list.md b/docs/examples/1.6.x/server-go/examples/users/list.md index b84ee0e3b73..247ad4c2e72 100644 --- a/docs/examples/1.6.x/server-go/examples/users/list.md +++ b/docs/examples/1.6.x/server-go/examples/users/list.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/update-email-verification.md b/docs/examples/1.6.x/server-go/examples/users/update-email-verification.md index af4c066543b..70f5a107574 100644 --- a/docs/examples/1.6.x/server-go/examples/users/update-email-verification.md +++ b/docs/examples/1.6.x/server-go/examples/users/update-email-verification.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/update-email.md b/docs/examples/1.6.x/server-go/examples/users/update-email.md index ea18cc68637..697783b9677 100644 --- a/docs/examples/1.6.x/server-go/examples/users/update-email.md +++ b/docs/examples/1.6.x/server-go/examples/users/update-email.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/update-labels.md b/docs/examples/1.6.x/server-go/examples/users/update-labels.md index 63bbe1255b5..a65d2ead9d1 100644 --- a/docs/examples/1.6.x/server-go/examples/users/update-labels.md +++ b/docs/examples/1.6.x/server-go/examples/users/update-labels.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-go/examples/users/update-mfa-recovery-codes.md index 408721b2ec7..eb47e2ee09e 100644 --- a/docs/examples/1.6.x/server-go/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-go/examples/users/update-mfa-recovery-codes.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/update-mfa.md b/docs/examples/1.6.x/server-go/examples/users/update-mfa.md index 9da9d05fd07..756863799f8 100644 --- a/docs/examples/1.6.x/server-go/examples/users/update-mfa.md +++ b/docs/examples/1.6.x/server-go/examples/users/update-mfa.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/update-name.md b/docs/examples/1.6.x/server-go/examples/users/update-name.md index 7d5a2553ea9..8ef173c2e3e 100644 --- a/docs/examples/1.6.x/server-go/examples/users/update-name.md +++ b/docs/examples/1.6.x/server-go/examples/users/update-name.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/update-password.md b/docs/examples/1.6.x/server-go/examples/users/update-password.md index 64f5766c9b7..2f9efac65fb 100644 --- a/docs/examples/1.6.x/server-go/examples/users/update-password.md +++ b/docs/examples/1.6.x/server-go/examples/users/update-password.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/update-phone-verification.md b/docs/examples/1.6.x/server-go/examples/users/update-phone-verification.md index 409cdf3c18c..c94fbd861ef 100644 --- a/docs/examples/1.6.x/server-go/examples/users/update-phone-verification.md +++ b/docs/examples/1.6.x/server-go/examples/users/update-phone-verification.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/update-phone.md b/docs/examples/1.6.x/server-go/examples/users/update-phone.md index 0440906d1ec..77d20162f92 100644 --- a/docs/examples/1.6.x/server-go/examples/users/update-phone.md +++ b/docs/examples/1.6.x/server-go/examples/users/update-phone.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/update-prefs.md b/docs/examples/1.6.x/server-go/examples/users/update-prefs.md index 184235d2dd2..f7889a6337d 100644 --- a/docs/examples/1.6.x/server-go/examples/users/update-prefs.md +++ b/docs/examples/1.6.x/server-go/examples/users/update-prefs.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/update-status.md b/docs/examples/1.6.x/server-go/examples/users/update-status.md index a081d0bff43..2349e4e0c98 100644 --- a/docs/examples/1.6.x/server-go/examples/users/update-status.md +++ b/docs/examples/1.6.x/server-go/examples/users/update-status.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-go/examples/users/update-target.md b/docs/examples/1.6.x/server-go/examples/users/update-target.md index a06c395cab1..f8028b44834 100644 --- a/docs/examples/1.6.x/server-go/examples/users/update-target.md +++ b/docs/examples/1.6.x/server-go/examples/users/update-target.md @@ -9,7 +9,7 @@ import ( func main() { client := client.NewClient() - client.SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint client.SetProject("<YOUR_PROJECT_ID>") // Your project ID client.SetKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-graphql/examples/account/create.md b/docs/examples/1.6.x/server-graphql/examples/account/create.md index 3f8e3c3cf7c..0d39394a3d0 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/create.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/create.md @@ -33,6 +33,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-graphql/examples/account/get-mfa-recovery-codes.md index e2de72b57f8..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/get-mfa-recovery-codes.md @@ -1,5 +0,0 @@ -query { - accountGetMfaRecoveryCodes { - recoveryCodes - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/account/get-prefs.md b/docs/examples/1.6.x/server-graphql/examples/account/get-prefs.md index 6cb48d2b588..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/get-prefs.md @@ -1,5 +0,0 @@ -query { - accountGetPrefs { - data - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/account/get-session.md b/docs/examples/1.6.x/server-graphql/examples/account/get-session.md index 65c824f68bd..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/get-session.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/get-session.md @@ -1,35 +0,0 @@ -query { - accountGetSession( - sessionId: "<SESSION_ID>" - ) { - _id - _createdAt - _updatedAt - userId - expire - provider - providerUid - providerAccessToken - providerAccessTokenExpiry - providerRefreshToken - ip - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - current - factors - secret - mfaUpdatedAt - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/account/get.md b/docs/examples/1.6.x/server-graphql/examples/account/get.md index e4db8f0e414..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/get.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/get.md @@ -1,34 +0,0 @@ -query { - accountGet { - _id - _createdAt - _updatedAt - name - password - hash - hashOptions - registration - status - labels - passwordUpdate - email - phone - emailVerification - phoneVerification - mfa - prefs { - data - } - targets { - _id - _createdAt - _updatedAt - name - userId - providerId - providerType - identifier - } - accessedAt - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/account/list-identities.md b/docs/examples/1.6.x/server-graphql/examples/account/list-identities.md index b7a2a6d39a4..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/list-identities.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/list-identities.md @@ -1,19 +0,0 @@ -query { - accountListIdentities( - queries: [] - ) { - total - identities { - _id - _createdAt - _updatedAt - userId - provider - providerUid - providerEmail - providerAccessToken - providerAccessTokenExpiry - providerRefreshToken - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/account/list-logs.md b/docs/examples/1.6.x/server-graphql/examples/account/list-logs.md index 1e17b2f69f9..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/list-logs.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/list-logs.md @@ -1,30 +0,0 @@ -query { - accountListLogs( - queries: [] - ) { - total - logs { - event - userId - userEmail - userName - mode - ip - time - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/server-graphql/examples/account/list-mfa-factors.md index 2a78b901b33..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/list-mfa-factors.md @@ -1,8 +0,0 @@ -query { - accountListMfaFactors { - totp - phone - email - recoveryCode - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/account/list-sessions.md b/docs/examples/1.6.x/server-graphql/examples/account/list-sessions.md index 6d45f1d4aeb..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/list-sessions.md @@ -1,36 +0,0 @@ -query { - accountListSessions { - total - sessions { - _id - _createdAt - _updatedAt - userId - expire - provider - providerUid - providerAccessToken - providerAccessTokenExpiry - providerRefreshToken - ip - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - current - factors - secret - mfaUpdatedAt - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/account/update-email.md b/docs/examples/1.6.x/server-graphql/examples/account/update-email.md index b207bad4bbb..c879e24a43a 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/update-email.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/update-email.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/account/update-m-f-a.md b/docs/examples/1.6.x/server-graphql/examples/account/update-m-f-a.md index d2cd3d6ae54..787c2e08608 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/update-m-f-a.md @@ -30,6 +30,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/server-graphql/examples/account/update-mfa-authenticator.md index c74062c7d4a..9cfe9150be6 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/update-mfa-authenticator.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/server-graphql/examples/account/update-mfa-challenge.md index 8237431bcfc..0bcec2157fe 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/update-mfa-challenge.md @@ -3,6 +3,34 @@ mutation { challengeId: "<CHALLENGE_ID>", otp: "<OTP>" ) { - status + _id + _createdAt + _updatedAt + userId + expire + provider + providerUid + providerAccessToken + providerAccessTokenExpiry + providerRefreshToken + ip + osCode + osName + osVersion + clientType + clientCode + clientName + clientVersion + clientEngine + clientEngineVersion + deviceName + deviceBrand + deviceModel + countryCode + countryName + current + factors + secret + mfaUpdatedAt } } diff --git a/docs/examples/1.6.x/server-graphql/examples/account/update-name.md b/docs/examples/1.6.x/server-graphql/examples/account/update-name.md index 850b5760a0a..8ba2c99d9c2 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/update-name.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/update-name.md @@ -30,6 +30,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/account/update-password.md b/docs/examples/1.6.x/server-graphql/examples/account/update-password.md index 5904da08420..f3619a10d28 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/update-password.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/update-password.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/account/update-phone.md b/docs/examples/1.6.x/server-graphql/examples/account/update-phone.md index 408a2033002..adecb711684 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/update-phone.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/update-phone.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/account/update-prefs.md b/docs/examples/1.6.x/server-graphql/examples/account/update-prefs.md index 40db7b43dbd..57280247e40 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/update-prefs.md @@ -30,6 +30,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/account/update-status.md b/docs/examples/1.6.x/server-graphql/examples/account/update-status.md index aca8c098e71..c17f5568426 100644 --- a/docs/examples/1.6.x/server-graphql/examples/account/update-status.md +++ b/docs/examples/1.6.x/server-graphql/examples/account/update-status.md @@ -28,6 +28,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/avatars/get-browser.md b/docs/examples/1.6.x/server-graphql/examples/avatars/get-browser.md index 817e1e54c25..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/server-graphql/examples/avatars/get-browser.md @@ -1,10 +0,0 @@ -query { - avatarsGetBrowser( - code: "aa", - width: 0, - height: 0, - quality: 0 - ) { - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/server-graphql/examples/avatars/get-credit-card.md index e4b5dc18d9c..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/server-graphql/examples/avatars/get-credit-card.md @@ -1,10 +0,0 @@ -query { - avatarsGetCreditCard( - code: "amex", - width: 0, - height: 0, - quality: 0 - ) { - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/avatars/get-favicon.md b/docs/examples/1.6.x/server-graphql/examples/avatars/get-favicon.md index bfea71f4983..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/server-graphql/examples/avatars/get-favicon.md @@ -1,7 +0,0 @@ -query { - avatarsGetFavicon( - url: "https://example.com" - ) { - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/avatars/get-flag.md b/docs/examples/1.6.x/server-graphql/examples/avatars/get-flag.md index 1502128581d..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/server-graphql/examples/avatars/get-flag.md @@ -1,10 +0,0 @@ -query { - avatarsGetFlag( - code: "af", - width: 0, - height: 0, - quality: 0 - ) { - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/avatars/get-image.md b/docs/examples/1.6.x/server-graphql/examples/avatars/get-image.md index 3b9aa104dc5..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/server-graphql/examples/avatars/get-image.md @@ -1,9 +0,0 @@ -query { - avatarsGetImage( - url: "https://example.com", - width: 0, - height: 0 - ) { - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/avatars/get-initials.md b/docs/examples/1.6.x/server-graphql/examples/avatars/get-initials.md index 51ae36136be..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/server-graphql/examples/avatars/get-initials.md @@ -1,10 +0,0 @@ -query { - avatarsGetInitials( - name: "<NAME>", - width: 0, - height: 0, - background: "" - ) { - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/avatars/get-q-r.md b/docs/examples/1.6.x/server-graphql/examples/avatars/get-q-r.md index a19f2184124..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/server-graphql/examples/avatars/get-q-r.md @@ -1,10 +0,0 @@ -query { - avatarsGetQR( - text: "<TEXT>", - size: 1, - margin: 0, - download: false - ) { - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/create-boolean-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/create-boolean-attribute.md index 6e969a587ec..aa0bfa832e4 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/create-boolean-attribute.md @@ -13,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt default } } diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/create-collection.md b/docs/examples/1.6.x/server-graphql/examples/databases/create-collection.md index 05175cc1e78..51eb51f4101 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/create-collection.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/create-collection.md @@ -23,6 +23,8 @@ mutation { error attributes orders + _createdAt + _updatedAt } } } diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/create-datetime-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/create-datetime-attribute.md index fcd5cb37a20..47601df0d8e 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/create-datetime-attribute.md @@ -13,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/create-documents.md b/docs/examples/1.6.x/server-graphql/examples/databases/create-documents.md new file mode 100644 index 00000000000..3e3a50f3abf --- /dev/null +++ b/docs/examples/1.6.x/server-graphql/examples/databases/create-documents.md @@ -0,0 +1,18 @@ +mutation { + databasesCreateDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documents: [] + ) { + total + documents { + _id + _collectionId + _databaseId + _createdAt + _updatedAt + _permissions + data + } + } +} diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/create-email-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/create-email-attribute.md index 1f23a23ba7b..e5845ccd47c 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/create-email-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/create-email-attribute.md @@ -13,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/create-enum-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/create-enum-attribute.md index 410a7983b45..d13c080e4ac 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/create-enum-attribute.md @@ -14,6 +14,8 @@ mutation { error required array + _createdAt + _updatedAt elements format default diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/create-float-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/create-float-attribute.md index ae6f9f72d61..2a270c3aff8 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/create-float-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/create-float-attribute.md @@ -15,6 +15,8 @@ mutation { error required array + _createdAt + _updatedAt min max default diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/create-index.md b/docs/examples/1.6.x/server-graphql/examples/databases/create-index.md index efc92a798c2..2875a9b4b7d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/create-index.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/create-index.md @@ -13,5 +13,7 @@ mutation { error attributes orders + _createdAt + _updatedAt } } diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/create-integer-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/create-integer-attribute.md index 1dc43f6b0d0..8c79706817a 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/create-integer-attribute.md @@ -15,6 +15,8 @@ mutation { error required array + _createdAt + _updatedAt min max default diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/create-ip-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/create-ip-attribute.md index b2fd7215a0a..0f4ad9e1396 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/create-ip-attribute.md @@ -13,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/create-relationship-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/create-relationship-attribute.md index ddca20b83aa..f66b87d6afc 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/create-relationship-attribute.md @@ -15,6 +15,8 @@ mutation { error required array + _createdAt + _updatedAt relatedCollection relationType twoWay diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/create-string-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/create-string-attribute.md index 3c290712e9b..62d97d69623 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/create-string-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/create-string-attribute.md @@ -15,6 +15,8 @@ mutation { error required array + _createdAt + _updatedAt size default } diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/create-url-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/create-url-attribute.md index d2a39756c94..89ad873e52b 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/create-url-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/create-url-attribute.md @@ -13,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/delete-documents.md b/docs/examples/1.6.x/server-graphql/examples/databases/delete-documents.md new file mode 100644 index 00000000000..ad5826f22ad --- /dev/null +++ b/docs/examples/1.6.x/server-graphql/examples/databases/delete-documents.md @@ -0,0 +1,18 @@ +mutation { + databasesDeleteDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + queries: [] + ) { + total + documents { + _id + _collectionId + _databaseId + _createdAt + _updatedAt + _permissions + data + } + } +} diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/get-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/get-attribute.md index 873d03b708c..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/get-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/get-attribute.md @@ -1,9 +0,0 @@ -query { - databasesGetAttribute( - databaseId: "<DATABASE_ID>", - collectionId: "<COLLECTION_ID>", - key: "" - ) { - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/get-collection.md b/docs/examples/1.6.x/server-graphql/examples/databases/get-collection.md index f76b71b6bab..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/get-collection.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/get-collection.md @@ -1,24 +0,0 @@ -query { - databasesGetCollection( - databaseId: "<DATABASE_ID>", - collectionId: "<COLLECTION_ID>" - ) { - _id - _createdAt - _updatedAt - _permissions - databaseId - name - enabled - documentSecurity - attributes - indexes { - key - type - status - error - attributes - orders - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/get-document.md b/docs/examples/1.6.x/server-graphql/examples/databases/get-document.md index 7cff0a18c1f..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/get-document.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/get-document.md @@ -1,16 +0,0 @@ -query { - databasesGetDocument( - databaseId: "<DATABASE_ID>", - collectionId: "<COLLECTION_ID>", - documentId: "<DOCUMENT_ID>", - queries: [] - ) { - _id - _collectionId - _databaseId - _createdAt - _updatedAt - _permissions - data - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/get-index.md b/docs/examples/1.6.x/server-graphql/examples/databases/get-index.md index de3c44ebe08..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/get-index.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/get-index.md @@ -1,14 +0,0 @@ -query { - databasesGetIndex( - databaseId: "<DATABASE_ID>", - collectionId: "<COLLECTION_ID>", - key: "" - ) { - key - type - status - error - attributes - orders - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/get.md b/docs/examples/1.6.x/server-graphql/examples/databases/get.md index 74c4fe56198..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/get.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/get.md @@ -1,11 +0,0 @@ -query { - databasesGet( - databaseId: "<DATABASE_ID>" - ) { - _id - name - _createdAt - _updatedAt - enabled - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/list-attributes.md b/docs/examples/1.6.x/server-graphql/examples/databases/list-attributes.md index 660c0945a7e..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/list-attributes.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/list-attributes.md @@ -1,10 +0,0 @@ -query { - databasesListAttributes( - databaseId: "<DATABASE_ID>", - collectionId: "<COLLECTION_ID>", - queries: [] - ) { - total - attributes - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/list-collections.md b/docs/examples/1.6.x/server-graphql/examples/databases/list-collections.md index b821b6c4cf2..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/list-collections.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/list-collections.md @@ -1,28 +0,0 @@ -query { - databasesListCollections( - databaseId: "<DATABASE_ID>", - queries: [], - search: "<SEARCH>" - ) { - total - collections { - _id - _createdAt - _updatedAt - _permissions - databaseId - name - enabled - documentSecurity - attributes - indexes { - key - type - status - error - attributes - orders - } - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/list-documents.md b/docs/examples/1.6.x/server-graphql/examples/databases/list-documents.md index 077d7c8f128..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/list-documents.md @@ -1,18 +0,0 @@ -query { - databasesListDocuments( - databaseId: "<DATABASE_ID>", - collectionId: "<COLLECTION_ID>", - queries: [] - ) { - total - documents { - _id - _collectionId - _databaseId - _createdAt - _updatedAt - _permissions - data - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/list-indexes.md b/docs/examples/1.6.x/server-graphql/examples/databases/list-indexes.md index e1c11b6c038..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/list-indexes.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/list-indexes.md @@ -1,17 +0,0 @@ -query { - databasesListIndexes( - databaseId: "<DATABASE_ID>", - collectionId: "<COLLECTION_ID>", - queries: [] - ) { - total - indexes { - key - type - status - error - attributes - orders - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/list.md b/docs/examples/1.6.x/server-graphql/examples/databases/list.md index 1adf3d3b484..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/list.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/list.md @@ -1,15 +0,0 @@ -query { - databasesList( - queries: [], - search: "<SEARCH>" - ) { - total - databases { - _id - name - _createdAt - _updatedAt - enabled - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/update-boolean-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/update-boolean-attribute.md index e92b41a14ea..d508e62139d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/update-boolean-attribute.md @@ -13,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt default } } diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/update-collection.md b/docs/examples/1.6.x/server-graphql/examples/databases/update-collection.md index fc78bb8efc1..e918c058b88 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/update-collection.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/update-collection.md @@ -23,6 +23,8 @@ mutation { error attributes orders + _createdAt + _updatedAt } } } diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/update-datetime-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/update-datetime-attribute.md index 46d9bbb728c..a21b910edc9 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/update-datetime-attribute.md @@ -13,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/update-documents.md b/docs/examples/1.6.x/server-graphql/examples/databases/update-documents.md new file mode 100644 index 00000000000..c05acb16a0e --- /dev/null +++ b/docs/examples/1.6.x/server-graphql/examples/databases/update-documents.md @@ -0,0 +1,19 @@ +mutation { + databasesUpdateDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + data: "{}", + queries: [] + ) { + total + documents { + _id + _collectionId + _databaseId + _createdAt + _updatedAt + _permissions + data + } + } +} diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/update-email-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/update-email-attribute.md index e05d3651625..6c83d80e162 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/update-email-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/update-email-attribute.md @@ -13,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/update-enum-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/update-enum-attribute.md index 619cbf817ca..378e32f9b87 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/update-enum-attribute.md @@ -14,6 +14,8 @@ mutation { error required array + _createdAt + _updatedAt elements format default diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/update-float-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/update-float-attribute.md index 7641745a35c..c70232e7491 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/update-float-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/update-float-attribute.md @@ -4,9 +4,9 @@ mutation { collectionId: "<COLLECTION_ID>", key: "", required: false, + default: 0, min: 0, max: 0, - default: 0, newKey: "" ) { key @@ -15,6 +15,8 @@ mutation { error required array + _createdAt + _updatedAt min max default diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/update-integer-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/update-integer-attribute.md index 11b7a660145..b24af5f2605 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/update-integer-attribute.md @@ -4,9 +4,9 @@ mutation { collectionId: "<COLLECTION_ID>", key: "", required: false, + default: 0, min: 0, max: 0, - default: 0, newKey: "" ) { key @@ -15,6 +15,8 @@ mutation { error required array + _createdAt + _updatedAt min max default diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/update-ip-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/update-ip-attribute.md index 649fa881b5c..7a262242005 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/update-ip-attribute.md @@ -13,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/update-relationship-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/update-relationship-attribute.md index 88ba2f9636e..6694540d93f 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/update-relationship-attribute.md @@ -12,6 +12,8 @@ mutation { error required array + _createdAt + _updatedAt relatedCollection relationType twoWay diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/update-string-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/update-string-attribute.md index 4d88462efb3..afafb307f5b 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/update-string-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/update-string-attribute.md @@ -5,7 +5,7 @@ mutation { key: "", required: false, default: "<DEFAULT>", - size: 0, + size: 1, newKey: "" ) { key @@ -14,6 +14,8 @@ mutation { error required array + _createdAt + _updatedAt size default } diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/update-url-attribute.md b/docs/examples/1.6.x/server-graphql/examples/databases/update-url-attribute.md index 06838a9ed49..f9f14a04f61 100644 --- a/docs/examples/1.6.x/server-graphql/examples/databases/update-url-attribute.md +++ b/docs/examples/1.6.x/server-graphql/examples/databases/update-url-attribute.md @@ -13,6 +13,8 @@ mutation { error required array + _createdAt + _updatedAt format default } diff --git a/docs/examples/1.6.x/server-graphql/examples/databases/upsert-documents.md b/docs/examples/1.6.x/server-graphql/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..d6e7bba9a3b --- /dev/null +++ b/docs/examples/1.6.x/server-graphql/examples/databases/upsert-documents.md @@ -0,0 +1,18 @@ +mutation { + databasesUpsertDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documents: [] + ) { + total + documents { + _id + _collectionId + _databaseId + _createdAt + _updatedAt + _permissions + data + } + } +} diff --git a/docs/examples/1.6.x/server-graphql/examples/functions/download-deployment.md b/docs/examples/1.6.x/server-graphql/examples/functions/download-deployment.md deleted file mode 100644 index f791338765d..00000000000 --- a/docs/examples/1.6.x/server-graphql/examples/functions/download-deployment.md +++ /dev/null @@ -1,8 +0,0 @@ -query { - functionsDownloadDeployment( - functionId: "<FUNCTION_ID>", - deploymentId: "<DEPLOYMENT_ID>" - ) { - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/functions/get-deployment-download.md b/docs/examples/1.6.x/server-graphql/examples/functions/get-deployment-download.md index 396047bb94a..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/functions/get-deployment-download.md +++ b/docs/examples/1.6.x/server-graphql/examples/functions/get-deployment-download.md @@ -1,8 +0,0 @@ -query { - functionsGetDeploymentDownload( - functionId: "<FUNCTION_ID>", - deploymentId: "<DEPLOYMENT_ID>" - ) { - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/functions/get-deployment.md b/docs/examples/1.6.x/server-graphql/examples/functions/get-deployment.md index 1f47561dd59..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/functions/get-deployment.md +++ b/docs/examples/1.6.x/server-graphql/examples/functions/get-deployment.md @@ -1,31 +0,0 @@ -query { - functionsGetDeployment( - functionId: "<FUNCTION_ID>", - deploymentId: "<DEPLOYMENT_ID>" - ) { - _id - _createdAt - _updatedAt - type - resourceId - resourceType - entrypoint - size - buildSize - buildId - activate - status - buildLogs - buildTime - providerRepositoryName - providerRepositoryOwner - providerRepositoryUrl - providerBranch - providerCommitHash - providerCommitAuthorUrl - providerCommitAuthor - providerCommitMessage - providerCommitUrl - providerBranchUrl - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/functions/get-execution.md b/docs/examples/1.6.x/server-graphql/examples/functions/get-execution.md index 6ded51a50cc..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/server-graphql/examples/functions/get-execution.md @@ -1,30 +0,0 @@ -query { - functionsGetExecution( - functionId: "<FUNCTION_ID>", - executionId: "<EXECUTION_ID>" - ) { - _id - _createdAt - _updatedAt - _permissions - functionId - trigger - status - requestMethod - requestPath - requestHeaders { - name - value - } - responseStatusCode - responseBody - responseHeaders { - name - value - } - logs - errors - duration - scheduledAt - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/functions/get-template.md b/docs/examples/1.6.x/server-graphql/examples/functions/get-template.md deleted file mode 100644 index 44a466de27a..00000000000 --- a/docs/examples/1.6.x/server-graphql/examples/functions/get-template.md +++ /dev/null @@ -1,35 +0,0 @@ -query { - functionsGetTemplate( - templateId: "<TEMPLATE_ID>" - ) { - icon - id - name - tagline - permissions - events - cron - timeout - useCases - runtimes { - name - commands - entrypoint - providerRootDirectory - } - instructions - vcsProvider - providerRepositoryId - providerOwner - providerVersion - variables { - name - description - value - placeholder - required - type - } - scopes - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/functions/get-variable.md b/docs/examples/1.6.x/server-graphql/examples/functions/get-variable.md index cd683f0dbd3..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/functions/get-variable.md +++ b/docs/examples/1.6.x/server-graphql/examples/functions/get-variable.md @@ -1,14 +0,0 @@ -query { - functionsGetVariable( - functionId: "<FUNCTION_ID>", - variableId: "<VARIABLE_ID>" - ) { - _id - _createdAt - _updatedAt - key - value - resourceType - resourceId - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/functions/get.md b/docs/examples/1.6.x/server-graphql/examples/functions/get.md index 016a942bce2..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/functions/get.md +++ b/docs/examples/1.6.x/server-graphql/examples/functions/get.md @@ -1,38 +0,0 @@ -query { - functionsGet( - functionId: "<FUNCTION_ID>" - ) { - _id - _createdAt - _updatedAt - execute - name - enabled - live - logging - runtime - deployment - scopes - vars { - _id - _createdAt - _updatedAt - key - value - resourceType - resourceId - } - events - schedule - timeout - entrypoint - commands - version - installationId - providerRepositoryId - providerBranch - providerRootDirectory - providerSilentMode - specification - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/functions/list-deployments.md b/docs/examples/1.6.x/server-graphql/examples/functions/list-deployments.md index 57b50fc98f1..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/functions/list-deployments.md +++ b/docs/examples/1.6.x/server-graphql/examples/functions/list-deployments.md @@ -1,35 +0,0 @@ -query { - functionsListDeployments( - functionId: "<FUNCTION_ID>", - queries: [], - search: "<SEARCH>" - ) { - total - deployments { - _id - _createdAt - _updatedAt - type - resourceId - resourceType - entrypoint - size - buildSize - buildId - activate - status - buildLogs - buildTime - providerRepositoryName - providerRepositoryOwner - providerRepositoryUrl - providerBranch - providerCommitHash - providerCommitAuthorUrl - providerCommitAuthor - providerCommitMessage - providerCommitUrl - providerBranchUrl - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/functions/list-executions.md b/docs/examples/1.6.x/server-graphql/examples/functions/list-executions.md index a0c02fa76f2..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/server-graphql/examples/functions/list-executions.md @@ -1,34 +0,0 @@ -query { - functionsListExecutions( - functionId: "<FUNCTION_ID>", - queries: [], - search: "<SEARCH>" - ) { - total - executions { - _id - _createdAt - _updatedAt - _permissions - functionId - trigger - status - requestMethod - requestPath - requestHeaders { - name - value - } - responseStatusCode - responseBody - responseHeaders { - name - value - } - logs - errors - duration - scheduledAt - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/functions/list-runtimes.md b/docs/examples/1.6.x/server-graphql/examples/functions/list-runtimes.md index 445ff9dd082..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/functions/list-runtimes.md +++ b/docs/examples/1.6.x/server-graphql/examples/functions/list-runtimes.md @@ -1,15 +0,0 @@ -query { - functionsListRuntimes { - total - runtimes { - _id - key - name - version - base - image - logo - supports - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/functions/list-specifications.md b/docs/examples/1.6.x/server-graphql/examples/functions/list-specifications.md index a86b6ea4948..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/functions/list-specifications.md +++ b/docs/examples/1.6.x/server-graphql/examples/functions/list-specifications.md @@ -1,11 +0,0 @@ -query { - functionsListSpecifications { - total - specifications { - memory - cpus - enabled - slug - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/functions/list-templates.md b/docs/examples/1.6.x/server-graphql/examples/functions/list-templates.md deleted file mode 100644 index cb289ddabbe..00000000000 --- a/docs/examples/1.6.x/server-graphql/examples/functions/list-templates.md +++ /dev/null @@ -1,41 +0,0 @@ -query { - functionsListTemplates( - runtimes: [], - useCases: [], - limit: 1, - offset: 0 - ) { - total - templates { - icon - id - name - tagline - permissions - events - cron - timeout - useCases - runtimes { - name - commands - entrypoint - providerRootDirectory - } - instructions - vcsProvider - providerRepositoryId - providerOwner - providerVersion - variables { - name - description - value - placeholder - required - type - } - scopes - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/functions/list-variables.md b/docs/examples/1.6.x/server-graphql/examples/functions/list-variables.md index 583107bd2e0..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/functions/list-variables.md +++ b/docs/examples/1.6.x/server-graphql/examples/functions/list-variables.md @@ -1,16 +0,0 @@ -query { - functionsListVariables( - functionId: "<FUNCTION_ID>" - ) { - total - variables { - _id - _createdAt - _updatedAt - key - value - resourceType - resourceId - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/functions/list.md b/docs/examples/1.6.x/server-graphql/examples/functions/list.md index 25341ed0ddd..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/functions/list.md +++ b/docs/examples/1.6.x/server-graphql/examples/functions/list.md @@ -1,42 +0,0 @@ -query { - functionsList( - queries: [], - search: "<SEARCH>" - ) { - total - functions { - _id - _createdAt - _updatedAt - execute - name - enabled - live - logging - runtime - deployment - scopes - vars { - _id - _createdAt - _updatedAt - key - value - resourceType - resourceId - } - events - schedule - timeout - entrypoint - commands - version - installationId - providerRepositoryId - providerBranch - providerRootDirectory - providerSilentMode - specification - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-antivirus.md b/docs/examples/1.6.x/server-graphql/examples/health/get-antivirus.md index 3634dc11c1d..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-antivirus.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-antivirus.md @@ -1,6 +0,0 @@ -query { - healthGetAntivirus { - version - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-cache.md b/docs/examples/1.6.x/server-graphql/examples/health/get-cache.md index 3db40762573..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-cache.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-cache.md @@ -1,7 +0,0 @@ -query { - healthGetCache { - name - ping - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-certificate.md b/docs/examples/1.6.x/server-graphql/examples/health/get-certificate.md index 91356f85121..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-certificate.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-certificate.md @@ -1,12 +0,0 @@ -query { - healthGetCertificate( - domain: "" - ) { - name - subjectSN - issuerOrganisation - validFrom - validTo - signatureTypeSN - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-d-b.md b/docs/examples/1.6.x/server-graphql/examples/health/get-d-b.md index 16e67c674e9..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-d-b.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-d-b.md @@ -1,7 +0,0 @@ -query { - healthGetDB { - name - ping - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-failed-jobs.md b/docs/examples/1.6.x/server-graphql/examples/health/get-failed-jobs.md index ca17166a897..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-failed-jobs.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-failed-jobs.md @@ -1,8 +0,0 @@ -query { - healthGetFailedJobs( - name: "v1-database", - threshold: 0 - ) { - size - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-pub-sub.md b/docs/examples/1.6.x/server-graphql/examples/health/get-pub-sub.md index cec6469b31b..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-pub-sub.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-pub-sub.md @@ -1,7 +0,0 @@ -query { - healthGetPubSub { - name - ping - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-builds.md b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-builds.md index 26fb7f89fad..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-builds.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-builds.md @@ -1,7 +0,0 @@ -query { - healthGetQueueBuilds( - threshold: 0 - ) { - size - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-certificates.md b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-certificates.md index 8073528cc6c..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-certificates.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-certificates.md @@ -1,7 +0,0 @@ -query { - healthGetQueueCertificates( - threshold: 0 - ) { - size - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-databases.md b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-databases.md index 3e776239039..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-databases.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-databases.md @@ -1,8 +0,0 @@ -query { - healthGetQueueDatabases( - name: "<NAME>", - threshold: 0 - ) { - size - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-deletes.md b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-deletes.md index 8e7dedcf543..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-deletes.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-deletes.md @@ -1,7 +0,0 @@ -query { - healthGetQueueDeletes( - threshold: 0 - ) { - size - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-functions.md b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-functions.md index a827c9a1438..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-functions.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-functions.md @@ -1,7 +0,0 @@ -query { - healthGetQueueFunctions( - threshold: 0 - ) { - size - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-logs.md b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-logs.md index 96c93304bd1..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-logs.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-logs.md @@ -1,7 +0,0 @@ -query { - healthGetQueueLogs( - threshold: 0 - ) { - size - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-mails.md b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-mails.md index a30747567ba..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-mails.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-mails.md @@ -1,7 +0,0 @@ -query { - healthGetQueueMails( - threshold: 0 - ) { - size - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-messaging.md b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-messaging.md index 9209550b119..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-messaging.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-messaging.md @@ -1,7 +0,0 @@ -query { - healthGetQueueMessaging( - threshold: 0 - ) { - size - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-migrations.md b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-migrations.md index 99fd99134d9..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-migrations.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-migrations.md @@ -1,7 +0,0 @@ -query { - healthGetQueueMigrations( - threshold: 0 - ) { - size - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-stats-resources.md b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-usage.md b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-usage.md index 2d9f7cb14b6..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-usage.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-usage.md @@ -1,7 +0,0 @@ -query { - healthGetQueueUsage( - threshold: 0 - ) { - size - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-webhooks.md b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-webhooks.md index 3e95e2fc0dd..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-queue-webhooks.md @@ -1,7 +0,0 @@ -query { - healthGetQueueWebhooks( - threshold: 0 - ) { - size - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-storage-local.md b/docs/examples/1.6.x/server-graphql/examples/health/get-storage-local.md index 953af346ae3..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-storage-local.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-storage-local.md @@ -1,7 +0,0 @@ -query { - healthGetStorageLocal { - name - ping - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-storage.md b/docs/examples/1.6.x/server-graphql/examples/health/get-storage.md index d7161df205a..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-storage.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-storage.md @@ -1,7 +0,0 @@ -query { - healthGetStorage { - name - ping - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get-time.md b/docs/examples/1.6.x/server-graphql/examples/health/get-time.md index 0def76b9adc..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get-time.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get-time.md @@ -1,7 +0,0 @@ -query { - healthGetTime { - remoteTime - localTime - diff - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/health/get.md b/docs/examples/1.6.x/server-graphql/examples/health/get.md index 8481d3625ae..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/health/get.md +++ b/docs/examples/1.6.x/server-graphql/examples/health/get.md @@ -1,7 +0,0 @@ -query { - healthGet { - name - ping - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/locale/get.md b/docs/examples/1.6.x/server-graphql/examples/locale/get.md index 2b2bbcc1f16..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/locale/get.md +++ b/docs/examples/1.6.x/server-graphql/examples/locale/get.md @@ -1,11 +0,0 @@ -query { - localeGet { - ip - countryCode - country - continentCode - continent - eu - currency - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/locale/list-codes.md b/docs/examples/1.6.x/server-graphql/examples/locale/list-codes.md index 0164cc37823..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/server-graphql/examples/locale/list-codes.md @@ -1,9 +0,0 @@ -query { - localeListCodes { - total - localeCodes { - code - name - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/locale/list-continents.md b/docs/examples/1.6.x/server-graphql/examples/locale/list-continents.md index 41f672c5658..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/server-graphql/examples/locale/list-continents.md @@ -1,9 +0,0 @@ -query { - localeListContinents { - total - continents { - name - code - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/server-graphql/examples/locale/list-countries-e-u.md index 00cd4652f99..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/server-graphql/examples/locale/list-countries-e-u.md @@ -1,9 +0,0 @@ -query { - localeListCountriesEU { - total - countries { - name - code - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/server-graphql/examples/locale/list-countries-phones.md index 33d2296850b..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/server-graphql/examples/locale/list-countries-phones.md @@ -1,10 +0,0 @@ -query { - localeListCountriesPhones { - total - phones { - code - countryCode - countryName - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/locale/list-countries.md b/docs/examples/1.6.x/server-graphql/examples/locale/list-countries.md index 9312bc94b1b..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/server-graphql/examples/locale/list-countries.md @@ -1,9 +0,0 @@ -query { - localeListCountries { - total - countries { - name - code - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/locale/list-currencies.md b/docs/examples/1.6.x/server-graphql/examples/locale/list-currencies.md index cde3ab488a7..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/server-graphql/examples/locale/list-currencies.md @@ -1,14 +0,0 @@ -query { - localeListCurrencies { - total - currencies { - symbol - name - symbolNative - decimalDigits - rounding - code - namePlural - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/locale/list-languages.md b/docs/examples/1.6.x/server-graphql/examples/locale/list-languages.md index b0d76c522b2..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/server-graphql/examples/locale/list-languages.md @@ -1,10 +0,0 @@ -query { - localeListLanguages { - total - languages { - name - code - nativeName - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/create-push.md b/docs/examples/1.6.x/server-graphql/examples/messaging/create-push.md index 3084c97635f..92264d1b675 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/create-push.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/create-push.md @@ -13,9 +13,12 @@ mutation { sound: "<SOUND>", color: "<COLOR>", tag: "<TAG>", - badge: "<BADGE>", + badge: 0, draft: false, - scheduledAt: "" + scheduledAt: "", + contentAvailable: false, + critical: false, + priority: "normal" ) { _id _createdAt diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/server-graphql/examples/messaging/create-subscriber.md index b2712ebb487..bab53612b79 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/create-subscriber.md @@ -17,6 +17,7 @@ mutation { providerId providerType identifier + expired } userId userName diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/get-message.md b/docs/examples/1.6.x/server-graphql/examples/messaging/get-message.md index a6824cd9116..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/get-message.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/get-message.md @@ -1,19 +0,0 @@ -query { - messagingGetMessage( - messageId: "<MESSAGE_ID>" - ) { - _id - _createdAt - _updatedAt - providerType - topics - users - targets - scheduledAt - deliveredAt - deliveryErrors - deliveredTotal - data - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/get-provider.md b/docs/examples/1.6.x/server-graphql/examples/messaging/get-provider.md index 03fb039be2c..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/get-provider.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/get-provider.md @@ -1,15 +0,0 @@ -query { - messagingGetProvider( - providerId: "<PROVIDER_ID>" - ) { - _id - _createdAt - _updatedAt - name - provider - enabled - type - credentials - options - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/get-subscriber.md b/docs/examples/1.6.x/server-graphql/examples/messaging/get-subscriber.md index 54096dd70a4..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/get-subscriber.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/get-subscriber.md @@ -1,25 +0,0 @@ -query { - messagingGetSubscriber( - topicId: "<TOPIC_ID>", - subscriberId: "<SUBSCRIBER_ID>" - ) { - _id - _createdAt - _updatedAt - targetId - target { - _id - _createdAt - _updatedAt - name - userId - providerId - providerType - identifier - } - userId - userName - topicId - providerType - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/get-topic.md b/docs/examples/1.6.x/server-graphql/examples/messaging/get-topic.md index 7f0dd01ee6f..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/get-topic.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/get-topic.md @@ -1,14 +0,0 @@ -query { - messagingGetTopic( - topicId: "<TOPIC_ID>" - ) { - _id - _createdAt - _updatedAt - name - emailTotal - smsTotal - pushTotal - subscribe - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/list-message-logs.md b/docs/examples/1.6.x/server-graphql/examples/messaging/list-message-logs.md index b1e32d8e998..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/list-message-logs.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/list-message-logs.md @@ -1,31 +0,0 @@ -query { - messagingListMessageLogs( - messageId: "<MESSAGE_ID>", - queries: [] - ) { - total - logs { - event - userId - userEmail - userName - mode - ip - time - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/list-messages.md b/docs/examples/1.6.x/server-graphql/examples/messaging/list-messages.md index 7cdf05c7d83..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/list-messages.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/list-messages.md @@ -1,23 +0,0 @@ -query { - messagingListMessages( - queries: [], - search: "<SEARCH>" - ) { - total - messages { - _id - _createdAt - _updatedAt - providerType - topics - users - targets - scheduledAt - deliveredAt - deliveryErrors - deliveredTotal - data - status - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/list-provider-logs.md b/docs/examples/1.6.x/server-graphql/examples/messaging/list-provider-logs.md index 69df6fa06d5..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/list-provider-logs.md @@ -1,31 +0,0 @@ -query { - messagingListProviderLogs( - providerId: "<PROVIDER_ID>", - queries: [] - ) { - total - logs { - event - userId - userEmail - userName - mode - ip - time - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/list-providers.md b/docs/examples/1.6.x/server-graphql/examples/messaging/list-providers.md index d7ae7b16bab..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/list-providers.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/list-providers.md @@ -1,19 +0,0 @@ -query { - messagingListProviders( - queries: [], - search: "<SEARCH>" - ) { - total - providers { - _id - _createdAt - _updatedAt - name - provider - enabled - type - credentials - options - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/list-subscriber-logs.md b/docs/examples/1.6.x/server-graphql/examples/messaging/list-subscriber-logs.md index 23e117a07dc..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/list-subscriber-logs.md @@ -1,31 +0,0 @@ -query { - messagingListSubscriberLogs( - subscriberId: "<SUBSCRIBER_ID>", - queries: [] - ) { - total - logs { - event - userId - userEmail - userName - mode - ip - time - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/list-subscribers.md b/docs/examples/1.6.x/server-graphql/examples/messaging/list-subscribers.md index 5c48ae34bb8..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/list-subscribers.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/list-subscribers.md @@ -1,29 +0,0 @@ -query { - messagingListSubscribers( - topicId: "<TOPIC_ID>", - queries: [], - search: "<SEARCH>" - ) { - total - subscribers { - _id - _createdAt - _updatedAt - targetId - target { - _id - _createdAt - _updatedAt - name - userId - providerId - providerType - identifier - } - userId - userName - topicId - providerType - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/list-targets.md b/docs/examples/1.6.x/server-graphql/examples/messaging/list-targets.md index 8e356dce5fe..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/list-targets.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/list-targets.md @@ -1,18 +0,0 @@ -query { - messagingListTargets( - messageId: "<MESSAGE_ID>", - queries: [] - ) { - total - targets { - _id - _createdAt - _updatedAt - name - userId - providerId - providerType - identifier - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/list-topic-logs.md b/docs/examples/1.6.x/server-graphql/examples/messaging/list-topic-logs.md index 0b0a5f9a4b1..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/list-topic-logs.md @@ -1,31 +0,0 @@ -query { - messagingListTopicLogs( - topicId: "<TOPIC_ID>", - queries: [] - ) { - total - logs { - event - userId - userEmail - userName - mode - ip - time - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/list-topics.md b/docs/examples/1.6.x/server-graphql/examples/messaging/list-topics.md index 4b36c925112..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/list-topics.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/list-topics.md @@ -1,18 +0,0 @@ -query { - messagingListTopics( - queries: [], - search: "<SEARCH>" - ) { - total - topics { - _id - _createdAt - _updatedAt - name - emailTotal - smsTotal - pushTotal - subscribe - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/messaging/update-push.md b/docs/examples/1.6.x/server-graphql/examples/messaging/update-push.md index 9039792573a..8ee2f576107 100644 --- a/docs/examples/1.6.x/server-graphql/examples/messaging/update-push.md +++ b/docs/examples/1.6.x/server-graphql/examples/messaging/update-push.md @@ -15,7 +15,10 @@ mutation { tag: "<TAG>", badge: 0, draft: false, - scheduledAt: "" + scheduledAt: "", + contentAvailable: false, + critical: false, + priority: "normal" ) { _id _createdAt diff --git a/docs/examples/1.6.x/server-graphql/examples/storage/get-bucket.md b/docs/examples/1.6.x/server-graphql/examples/storage/get-bucket.md index 4ce0f626abe..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/storage/get-bucket.md +++ b/docs/examples/1.6.x/server-graphql/examples/storage/get-bucket.md @@ -1,18 +0,0 @@ -query { - storageGetBucket( - bucketId: "<BUCKET_ID>" - ) { - _id - _createdAt - _updatedAt - _permissions - fileSecurity - name - enabled - maximumFileSize - allowedFileExtensions - compression - encryption - antivirus - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/storage/get-file-download.md b/docs/examples/1.6.x/server-graphql/examples/storage/get-file-download.md index 8325e8a230e..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/server-graphql/examples/storage/get-file-download.md @@ -1,8 +0,0 @@ -query { - storageGetFileDownload( - bucketId: "<BUCKET_ID>", - fileId: "<FILE_ID>" - ) { - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/storage/get-file-preview.md b/docs/examples/1.6.x/server-graphql/examples/storage/get-file-preview.md index df32e883508..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/server-graphql/examples/storage/get-file-preview.md @@ -1,19 +0,0 @@ -query { - storageGetFilePreview( - bucketId: "<BUCKET_ID>", - fileId: "<FILE_ID>", - width: 0, - height: 0, - gravity: "center", - quality: 0, - borderWidth: 0, - borderColor: "", - borderRadius: 0, - opacity: 0, - rotation: -360, - background: "", - output: "jpg" - ) { - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/storage/get-file-view.md b/docs/examples/1.6.x/server-graphql/examples/storage/get-file-view.md index 434328a1ec5..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/server-graphql/examples/storage/get-file-view.md @@ -1,8 +0,0 @@ -query { - storageGetFileView( - bucketId: "<BUCKET_ID>", - fileId: "<FILE_ID>" - ) { - status - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/storage/get-file.md b/docs/examples/1.6.x/server-graphql/examples/storage/get-file.md index 60886b0f6f6..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/storage/get-file.md +++ b/docs/examples/1.6.x/server-graphql/examples/storage/get-file.md @@ -1,18 +0,0 @@ -query { - storageGetFile( - bucketId: "<BUCKET_ID>", - fileId: "<FILE_ID>" - ) { - _id - bucketId - _createdAt - _updatedAt - _permissions - name - signature - mimeType - sizeOriginal - chunksTotal - chunksUploaded - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/storage/list-buckets.md b/docs/examples/1.6.x/server-graphql/examples/storage/list-buckets.md index e4d636ccde4..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/storage/list-buckets.md +++ b/docs/examples/1.6.x/server-graphql/examples/storage/list-buckets.md @@ -1,22 +0,0 @@ -query { - storageListBuckets( - queries: [], - search: "<SEARCH>" - ) { - total - buckets { - _id - _createdAt - _updatedAt - _permissions - fileSecurity - name - enabled - maximumFileSize - allowedFileExtensions - compression - encryption - antivirus - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/storage/list-files.md b/docs/examples/1.6.x/server-graphql/examples/storage/list-files.md index 774cc51b972..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/storage/list-files.md +++ b/docs/examples/1.6.x/server-graphql/examples/storage/list-files.md @@ -1,22 +0,0 @@ -query { - storageListFiles( - bucketId: "<BUCKET_ID>", - queries: [], - search: "<SEARCH>" - ) { - total - files { - _id - bucketId - _createdAt - _updatedAt - _permissions - name - signature - mimeType - sizeOriginal - chunksTotal - chunksUploaded - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/teams/get-membership.md b/docs/examples/1.6.x/server-graphql/examples/teams/get-membership.md index c33528609ee..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/server-graphql/examples/teams/get-membership.md @@ -1,20 +0,0 @@ -query { - teamsGetMembership( - teamId: "<TEAM_ID>", - membershipId: "<MEMBERSHIP_ID>" - ) { - _id - _createdAt - _updatedAt - userId - userName - userEmail - teamId - teamName - invited - joined - confirm - mfa - roles - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/teams/get-prefs.md b/docs/examples/1.6.x/server-graphql/examples/teams/get-prefs.md index fe498079cf8..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/server-graphql/examples/teams/get-prefs.md @@ -1,7 +0,0 @@ -query { - teamsGetPrefs( - teamId: "<TEAM_ID>" - ) { - data - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/teams/get.md b/docs/examples/1.6.x/server-graphql/examples/teams/get.md index a3fbb491e0d..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/teams/get.md +++ b/docs/examples/1.6.x/server-graphql/examples/teams/get.md @@ -1,14 +0,0 @@ -query { - teamsGet( - teamId: "<TEAM_ID>" - ) { - _id - _createdAt - _updatedAt - name - total - prefs { - data - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/teams/list-memberships.md b/docs/examples/1.6.x/server-graphql/examples/teams/list-memberships.md index bf7f0d1eede..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/server-graphql/examples/teams/list-memberships.md @@ -1,24 +0,0 @@ -query { - teamsListMemberships( - teamId: "<TEAM_ID>", - queries: [], - search: "<SEARCH>" - ) { - total - memberships { - _id - _createdAt - _updatedAt - userId - userName - userEmail - teamId - teamName - invited - joined - confirm - mfa - roles - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/teams/list.md b/docs/examples/1.6.x/server-graphql/examples/teams/list.md index e7005b53265..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/teams/list.md +++ b/docs/examples/1.6.x/server-graphql/examples/teams/list.md @@ -1,18 +0,0 @@ -query { - teamsList( - queries: [], - search: "<SEARCH>" - ) { - total - teams { - _id - _createdAt - _updatedAt - name - total - prefs { - data - } - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/users/create-argon2user.md b/docs/examples/1.6.x/server-graphql/examples/users/create-argon2user.md index 464dc754c9a..7f99622e524 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/create-argon2user.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/create-argon2user.md @@ -33,6 +33,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/create-bcrypt-user.md b/docs/examples/1.6.x/server-graphql/examples/users/create-bcrypt-user.md index 4d4bb091945..26659176ebf 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/create-bcrypt-user.md @@ -33,6 +33,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/create-m-d5user.md b/docs/examples/1.6.x/server-graphql/examples/users/create-m-d5user.md index e8e833e6de4..7e642b8233e 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/create-m-d5user.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/create-m-d5user.md @@ -33,6 +33,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/create-p-h-pass-user.md b/docs/examples/1.6.x/server-graphql/examples/users/create-p-h-pass-user.md index 53960e7890a..4c06b007a24 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/create-p-h-pass-user.md @@ -33,6 +33,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/create-s-h-a-user.md b/docs/examples/1.6.x/server-graphql/examples/users/create-s-h-a-user.md index 17e287f8b32..f99da2752da 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/create-s-h-a-user.md @@ -34,6 +34,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/create-scrypt-modified-user.md b/docs/examples/1.6.x/server-graphql/examples/users/create-scrypt-modified-user.md index 6d51fb29ba6..624ffcdd386 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/create-scrypt-modified-user.md @@ -36,6 +36,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/create-scrypt-user.md b/docs/examples/1.6.x/server-graphql/examples/users/create-scrypt-user.md index 0d4bac1db8b..68a5f4c75f7 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/create-scrypt-user.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/create-scrypt-user.md @@ -38,6 +38,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/create-target.md b/docs/examples/1.6.x/server-graphql/examples/users/create-target.md index a3a0696deca..7068c21aba1 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/create-target.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/create-target.md @@ -15,5 +15,6 @@ mutation { providerId providerType identifier + expired } } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/create.md b/docs/examples/1.6.x/server-graphql/examples/users/create.md index 826a5168efd..465da804322 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/create.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/create.md @@ -34,6 +34,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-graphql/examples/users/delete-mfa-authenticator.md index 227c340c68d..43f73404f0a 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/delete-mfa-authenticator.md @@ -3,35 +3,6 @@ mutation { userId: "<USER_ID>", type: "totp" ) { - _id - _createdAt - _updatedAt - name - password - hash - hashOptions - registration status - labels - passwordUpdate - email - phone - emailVerification - phoneVerification - mfa - prefs { - data - } - targets { - _id - _createdAt - _updatedAt - name - userId - providerId - providerType - identifier - } - accessedAt } } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-graphql/examples/users/get-mfa-recovery-codes.md index c4ca9f79b46..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/get-mfa-recovery-codes.md @@ -1,7 +0,0 @@ -query { - usersGetMfaRecoveryCodes( - userId: "<USER_ID>" - ) { - recoveryCodes - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/users/get-prefs.md b/docs/examples/1.6.x/server-graphql/examples/users/get-prefs.md index fe08758d995..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/get-prefs.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/get-prefs.md @@ -1,7 +0,0 @@ -query { - usersGetPrefs( - userId: "<USER_ID>" - ) { - data - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/users/get-target.md b/docs/examples/1.6.x/server-graphql/examples/users/get-target.md index e4ba1a04a1d..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/get-target.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/get-target.md @@ -1,15 +0,0 @@ -query { - usersGetTarget( - userId: "<USER_ID>", - targetId: "<TARGET_ID>" - ) { - _id - _createdAt - _updatedAt - name - userId - providerId - providerType - identifier - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/users/get.md b/docs/examples/1.6.x/server-graphql/examples/users/get.md index f94a5818eda..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/get.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/get.md @@ -1,36 +0,0 @@ -query { - usersGet( - userId: "<USER_ID>" - ) { - _id - _createdAt - _updatedAt - name - password - hash - hashOptions - registration - status - labels - passwordUpdate - email - phone - emailVerification - phoneVerification - mfa - prefs { - data - } - targets { - _id - _createdAt - _updatedAt - name - userId - providerId - providerType - identifier - } - accessedAt - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/users/list-identities.md b/docs/examples/1.6.x/server-graphql/examples/users/list-identities.md index 38ab302f384..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/list-identities.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/list-identities.md @@ -1,20 +0,0 @@ -query { - usersListIdentities( - queries: [], - search: "<SEARCH>" - ) { - total - identities { - _id - _createdAt - _updatedAt - userId - provider - providerUid - providerEmail - providerAccessToken - providerAccessTokenExpiry - providerRefreshToken - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/users/list-logs.md b/docs/examples/1.6.x/server-graphql/examples/users/list-logs.md index 8594e87b223..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/list-logs.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/list-logs.md @@ -1,31 +0,0 @@ -query { - usersListLogs( - userId: "<USER_ID>", - queries: [] - ) { - total - logs { - event - userId - userEmail - userName - mode - ip - time - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/users/list-memberships.md b/docs/examples/1.6.x/server-graphql/examples/users/list-memberships.md index cf64f61f106..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/list-memberships.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/list-memberships.md @@ -1,22 +0,0 @@ -query { - usersListMemberships( - userId: "<USER_ID>" - ) { - total - memberships { - _id - _createdAt - _updatedAt - userId - userName - userEmail - teamId - teamName - invited - joined - confirm - mfa - roles - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/users/list-mfa-factors.md b/docs/examples/1.6.x/server-graphql/examples/users/list-mfa-factors.md index 12c910835a1..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/list-mfa-factors.md @@ -1,10 +0,0 @@ -query { - usersListMfaFactors( - userId: "<USER_ID>" - ) { - totp - phone - email - recoveryCode - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/users/list-sessions.md b/docs/examples/1.6.x/server-graphql/examples/users/list-sessions.md index 1a09c9ffe08..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/list-sessions.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/list-sessions.md @@ -1,38 +0,0 @@ -query { - usersListSessions( - userId: "<USER_ID>" - ) { - total - sessions { - _id - _createdAt - _updatedAt - userId - expire - provider - providerUid - providerAccessToken - providerAccessTokenExpiry - providerRefreshToken - ip - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - current - factors - secret - mfaUpdatedAt - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/users/list-targets.md b/docs/examples/1.6.x/server-graphql/examples/users/list-targets.md index 05e796f1673..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/list-targets.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/list-targets.md @@ -1,18 +0,0 @@ -query { - usersListTargets( - userId: "<USER_ID>", - queries: [] - ) { - total - targets { - _id - _createdAt - _updatedAt - name - userId - providerId - providerType - identifier - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/users/list.md b/docs/examples/1.6.x/server-graphql/examples/users/list.md index e2326dd1a2f..e69de29bb2d 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/list.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/list.md @@ -1,40 +0,0 @@ -query { - usersList( - queries: [], - search: "<SEARCH>" - ) { - total - users { - _id - _createdAt - _updatedAt - name - password - hash - hashOptions - registration - status - labels - passwordUpdate - email - phone - emailVerification - phoneVerification - mfa - prefs { - data - } - targets { - _id - _createdAt - _updatedAt - name - userId - providerId - providerType - identifier - } - accessedAt - } - } -} diff --git a/docs/examples/1.6.x/server-graphql/examples/users/update-email-verification.md b/docs/examples/1.6.x/server-graphql/examples/users/update-email-verification.md index 6bb27818545..cda7278ac0b 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/update-email-verification.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/update-email-verification.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/update-email.md b/docs/examples/1.6.x/server-graphql/examples/users/update-email.md index 046937ac048..408a74972b4 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/update-email.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/update-email.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/update-labels.md b/docs/examples/1.6.x/server-graphql/examples/users/update-labels.md index 93da33d805a..cb3c5b64830 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/update-labels.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/update-labels.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/update-mfa.md b/docs/examples/1.6.x/server-graphql/examples/users/update-mfa.md index 9219aa1aea7..ac09ea19a4f 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/update-mfa.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/update-mfa.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/update-name.md b/docs/examples/1.6.x/server-graphql/examples/users/update-name.md index 01a53ce479c..ec7e3dc27cc 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/update-name.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/update-name.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/update-password.md b/docs/examples/1.6.x/server-graphql/examples/users/update-password.md index c95637c4ceb..95ef74c83dd 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/update-password.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/update-password.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/update-phone-verification.md b/docs/examples/1.6.x/server-graphql/examples/users/update-phone-verification.md index 58343ae365f..c6afa54ba4a 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/update-phone-verification.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/update-phone-verification.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/update-phone.md b/docs/examples/1.6.x/server-graphql/examples/users/update-phone.md index dbcb076c659..d3fc7d5f378 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/update-phone.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/update-phone.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/update-status.md b/docs/examples/1.6.x/server-graphql/examples/users/update-status.md index ad05bc75fff..2499c1c2588 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/update-status.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/update-status.md @@ -31,6 +31,7 @@ mutation { providerId providerType identifier + expired } accessedAt } diff --git a/docs/examples/1.6.x/server-graphql/examples/users/update-target.md b/docs/examples/1.6.x/server-graphql/examples/users/update-target.md index fe3444ede7d..1f7cc1147a5 100644 --- a/docs/examples/1.6.x/server-graphql/examples/users/update-target.md +++ b/docs/examples/1.6.x/server-graphql/examples/users/update-target.md @@ -14,5 +14,6 @@ mutation { providerId providerType identifier + expired } } diff --git a/docs/examples/1.6.x/server-kotlin/java/account/create-anonymous-session.md b/docs/examples/1.6.x/server-kotlin/java/account/create-anonymous-session.md index 0ba9c6967c7..d65c20a600e 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/create-anonymous-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-kotlin/java/account/create-email-password-session.md b/docs/examples/1.6.x/server-kotlin/java/account/create-email-password-session.md index 75fa73fb002..633931089fe 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/create-email-password-session.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/create-email-password-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-kotlin/java/account/create-email-token.md b/docs/examples/1.6.x/server-kotlin/java/account/create-email-token.md index eff6d4310c5..7a6a0d7fea5 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/create-email-token.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/create-email-token.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-kotlin/java/account/create-j-w-t.md b/docs/examples/1.6.x/server-kotlin/java/account/create-j-w-t.md index 285d1e04bb1..3756edee257 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/create-j-w-t.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/create-j-w-t.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-kotlin/java/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/server-kotlin/java/account/create-magic-u-r-l-token.md index 3f9bda200b9..df021f9568e 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/create-magic-u-r-l-token.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-kotlin/java/account/create-mfa-authenticator.md b/docs/examples/1.6.x/server-kotlin/java/account/create-mfa-authenticator.md index eb127bd4585..ee37e487947 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/create-mfa-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticatorType; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/create-mfa-challenge.md b/docs/examples/1.6.x/server-kotlin/java/account/create-mfa-challenge.md index e5fcbe95769..4a07e26e49f 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/create-mfa-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticationFactor; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-kotlin/java/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-kotlin/java/account/create-mfa-recovery-codes.md index b64fb7dda63..eb76cdca9bd 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/create-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/create-o-auth2token.md b/docs/examples/1.6.x/server-kotlin/java/account/create-o-auth2token.md index 47873c5af70..5b325f5c61c 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/create-o-auth2token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.OAuthProvider; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-kotlin/java/account/create-phone-token.md b/docs/examples/1.6.x/server-kotlin/java/account/create-phone-token.md index 1f7c05c3614..14fb8126878 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/create-phone-token.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/create-phone-token.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-kotlin/java/account/create-phone-verification.md b/docs/examples/1.6.x/server-kotlin/java/account/create-phone-verification.md index 07937ab2570..9e49c62880a 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/create-phone-verification.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/create-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/create-recovery.md b/docs/examples/1.6.x/server-kotlin/java/account/create-recovery.md index d74106bbb79..f529ea4cb71 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/create-recovery.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/create-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/create-session.md b/docs/examples/1.6.x/server-kotlin/java/account/create-session.md index 861af3da091..5bcdf990596 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/create-session.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/create-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-kotlin/java/account/create-verification.md b/docs/examples/1.6.x/server-kotlin/java/account/create-verification.md index 4479cc69156..65c8e8be497 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/create-verification.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/create-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/create.md b/docs/examples/1.6.x/server-kotlin/java/account/create.md index 3bcfe1dff6e..d24bfb85925 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/create.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-kotlin/java/account/delete-identity.md b/docs/examples/1.6.x/server-kotlin/java/account/delete-identity.md index 5eec2424d85..0d6f860a636 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/delete-identity.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/delete-identity.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-kotlin/java/account/delete-mfa-authenticator.md index 7f3b6b9558b..06835f66807 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/delete-mfa-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticatorType; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/delete-session.md b/docs/examples/1.6.x/server-kotlin/java/account/delete-session.md index 687df8193bc..fd27d746b1b 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/delete-session.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/delete-sessions.md b/docs/examples/1.6.x/server-kotlin/java/account/delete-sessions.md index 0bfa1f23f5c..11076e72d2d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/delete-sessions.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-kotlin/java/account/get-mfa-recovery-codes.md index f99634d71e4..c818c3ea74b 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/get-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/get-prefs.md b/docs/examples/1.6.x/server-kotlin/java/account/get-prefs.md index 46d41816c71..6614f92aaa5 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/get-prefs.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/get-session.md b/docs/examples/1.6.x/server-kotlin/java/account/get-session.md index 6d07a85b4a6..3f30d902562 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/get-session.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/get-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/get.md b/docs/examples/1.6.x/server-kotlin/java/account/get.md index 6d0eb40cf2e..70e2dfb97fd 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/get.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/list-identities.md b/docs/examples/1.6.x/server-kotlin/java/account/list-identities.md index 8977a23b20e..ceb4b3099a4 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/list-identities.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/list-identities.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/list-logs.md b/docs/examples/1.6.x/server-kotlin/java/account/list-logs.md index e26cab9ad42..de22fcec6ac 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/list-logs.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/list-mfa-factors.md b/docs/examples/1.6.x/server-kotlin/java/account/list-mfa-factors.md index 74f3e53444c..d9f90a4127b 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/list-mfa-factors.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/list-sessions.md b/docs/examples/1.6.x/server-kotlin/java/account/list-sessions.md index 6b01d445b24..557832df822 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/list-sessions.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-email.md b/docs/examples/1.6.x/server-kotlin/java/account/update-email.md index 391e5311ed8..8529ba6a26e 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-email.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-m-f-a.md b/docs/examples/1.6.x/server-kotlin/java/account/update-m-f-a.md index 58ac56bed81..d1b60c54739 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-m-f-a.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-m-f-a.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/server-kotlin/java/account/update-magic-u-r-l-session.md index 62fe856fe0c..b4735f49eab 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-magic-u-r-l-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-mfa-authenticator.md b/docs/examples/1.6.x/server-kotlin/java/account/update-mfa-authenticator.md index b492d8c4a32..947c85a2446 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-mfa-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account; import io.appwrite.enums.AuthenticatorType; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-mfa-challenge.md b/docs/examples/1.6.x/server-kotlin/java/account/update-mfa-challenge.md index 74ca4815d78..b9b0ae9db5b 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-mfa-challenge.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-kotlin/java/account/update-mfa-recovery-codes.md index 8f38ad83454..4b3e52700bf 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-name.md b/docs/examples/1.6.x/server-kotlin/java/account/update-name.md index 1ce2abfa122..749fe268afe 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-name.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-password.md b/docs/examples/1.6.x/server-kotlin/java/account/update-password.md index 437e825be54..8eaa08b4604 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-password.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-phone-session.md b/docs/examples/1.6.x/server-kotlin/java/account/update-phone-session.md index c401de4c65d..cbfdca58ec8 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-phone-session.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-phone-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>"); // Your project ID Account account = new Account(client); diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-phone-verification.md b/docs/examples/1.6.x/server-kotlin/java/account/update-phone-verification.md index ddf786a2dea..998826544a9 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-phone-verification.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-phone.md b/docs/examples/1.6.x/server-kotlin/java/account/update-phone.md index 6a47fd10994..d54aa9cfb2a 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-phone.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-prefs.md b/docs/examples/1.6.x/server-kotlin/java/account/update-prefs.md index 8c10ede3bd5..0e900d0a664 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-prefs.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-recovery.md b/docs/examples/1.6.x/server-kotlin/java/account/update-recovery.md index be4301c516f..8ab16e18cec 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-recovery.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-session.md b/docs/examples/1.6.x/server-kotlin/java/account/update-session.md index 96e35069a91..8233c054f5d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-session.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-status.md b/docs/examples/1.6.x/server-kotlin/java/account/update-status.md index 7c42f35ba61..d5f4f794760 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-status.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/account/update-verification.md b/docs/examples/1.6.x/server-kotlin/java/account/update-verification.md index ed8a40bc830..dafe6db4573 100644 --- a/docs/examples/1.6.x/server-kotlin/java/account/update-verification.md +++ b/docs/examples/1.6.x/server-kotlin/java/account/update-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Account; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/avatars/get-browser.md b/docs/examples/1.6.x/server-kotlin/java/avatars/get-browser.md index 4cd18b69586..c87d5e9100c 100644 --- a/docs/examples/1.6.x/server-kotlin/java/avatars/get-browser.md +++ b/docs/examples/1.6.x/server-kotlin/java/avatars/get-browser.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars; import io.appwrite.enums.Browser; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/avatars/get-credit-card.md b/docs/examples/1.6.x/server-kotlin/java/avatars/get-credit-card.md index eadbf5de9aa..ddb53a67ec2 100644 --- a/docs/examples/1.6.x/server-kotlin/java/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/server-kotlin/java/avatars/get-credit-card.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars; import io.appwrite.enums.CreditCard; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/avatars/get-favicon.md b/docs/examples/1.6.x/server-kotlin/java/avatars/get-favicon.md index 9f519412aa7..f4e89cfadc6 100644 --- a/docs/examples/1.6.x/server-kotlin/java/avatars/get-favicon.md +++ b/docs/examples/1.6.x/server-kotlin/java/avatars/get-favicon.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/avatars/get-flag.md b/docs/examples/1.6.x/server-kotlin/java/avatars/get-flag.md index 1b7f423ad87..aadf4267c9f 100644 --- a/docs/examples/1.6.x/server-kotlin/java/avatars/get-flag.md +++ b/docs/examples/1.6.x/server-kotlin/java/avatars/get-flag.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars; import io.appwrite.enums.Flag; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/avatars/get-image.md b/docs/examples/1.6.x/server-kotlin/java/avatars/get-image.md index af5f217e77d..afad760c385 100644 --- a/docs/examples/1.6.x/server-kotlin/java/avatars/get-image.md +++ b/docs/examples/1.6.x/server-kotlin/java/avatars/get-image.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/avatars/get-initials.md b/docs/examples/1.6.x/server-kotlin/java/avatars/get-initials.md index 4b00f730330..171b636f02b 100644 --- a/docs/examples/1.6.x/server-kotlin/java/avatars/get-initials.md +++ b/docs/examples/1.6.x/server-kotlin/java/avatars/get-initials.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/avatars/get-q-r.md b/docs/examples/1.6.x/server-kotlin/java/avatars/get-q-r.md index 903e2b0d1df..113fd1fceb5 100644 --- a/docs/examples/1.6.x/server-kotlin/java/avatars/get-q-r.md +++ b/docs/examples/1.6.x/server-kotlin/java/avatars/get-q-r.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Avatars; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/create-boolean-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/create-boolean-attribute.md index d959a65a9c6..7585471443d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/create-boolean-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/create-boolean-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/create-collection.md b/docs/examples/1.6.x/server-kotlin/java/databases/create-collection.md index 9a17b263911..8ec51e698ab 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/create-collection.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/create-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/create-datetime-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/create-datetime-attribute.md index b35d4894e42..d95e048b090 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/create-datetime-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/create-datetime-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/create-document.md b/docs/examples/1.6.x/server-kotlin/java/databases/create-document.md index e05d1fe5de1..5231be33d66 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/create-document.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/create-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/create-documents.md b/docs/examples/1.6.x/server-kotlin/java/databases/create-documents.md new file mode 100644 index 00000000000..c788fa7017c --- /dev/null +++ b/docs/examples/1.6.x/server-kotlin/java/databases/create-documents.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession(""); // The user session to authenticate with + +Databases databases = new Databases(client); + +databases.createDocuments( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + listOf(), // documents + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/create-email-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/create-email-attribute.md index 5a42e97c865..b2ecc99a170 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/create-email-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/create-email-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/create-enum-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/create-enum-attribute.md index 59cbd46dc4f..44202086b0c 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/create-enum-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/create-enum-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/create-float-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/create-float-attribute.md index cdbdbb24d39..2263cdb5c62 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/create-float-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/create-float-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/create-index.md b/docs/examples/1.6.x/server-kotlin/java/databases/create-index.md index a3f09d43794..f3faec7fdda 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/create-index.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/create-index.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases; import io.appwrite.enums.IndexType; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/create-integer-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/create-integer-attribute.md index 37e7f37352b..b084e7c9742 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/create-integer-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/create-integer-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/create-ip-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/create-ip-attribute.md index bdb009374c0..ba62dba1d7e 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/create-ip-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/create-ip-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/create-relationship-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/create-relationship-attribute.md index f3d0f51f3d6..a67f4526478 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/create-relationship-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/create-relationship-attribute.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases; import io.appwrite.enums.RelationshipType; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/create-string-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/create-string-attribute.md index 7d9d8d48f03..3286c7aa01b 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/create-string-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/create-string-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/create-url-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/create-url-attribute.md index 57ed89d8146..d445d67e333 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/create-url-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/create-url-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/create.md b/docs/examples/1.6.x/server-kotlin/java/databases/create.md index 5b665108877..31cd37e1693 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/create.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/delete-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/delete-attribute.md index 8f9d2f0e240..236d492adb2 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/delete-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/delete-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/delete-collection.md b/docs/examples/1.6.x/server-kotlin/java/databases/delete-collection.md index 334e7adffb2..5da2a3d684d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/delete-collection.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/delete-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/delete-document.md b/docs/examples/1.6.x/server-kotlin/java/databases/delete-document.md index a42b3f14b01..f6e6209f36b 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/delete-document.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/delete-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/delete-documents.md b/docs/examples/1.6.x/server-kotlin/java/databases/delete-documents.md new file mode 100644 index 00000000000..e8394b1ff96 --- /dev/null +++ b/docs/examples/1.6.x/server-kotlin/java/databases/delete-documents.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.deleteDocuments( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/delete-index.md b/docs/examples/1.6.x/server-kotlin/java/databases/delete-index.md index 725045eb151..6f684357793 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/delete-index.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/delete-index.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/delete.md b/docs/examples/1.6.x/server-kotlin/java/databases/delete.md index 41fb72bb7f5..b0824913835 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/delete.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/get-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/get-attribute.md index 1b29312a678..672f0b062e2 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/get-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/get-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/get-collection.md b/docs/examples/1.6.x/server-kotlin/java/databases/get-collection.md index 41bbb234b0f..59401be370b 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/get-collection.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/get-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/get-document.md b/docs/examples/1.6.x/server-kotlin/java/databases/get-document.md index 870642bb2c8..2719073a7d3 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/get-document.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/get-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/get-index.md b/docs/examples/1.6.x/server-kotlin/java/databases/get-index.md index eb33b87f6d6..61cfe84ee46 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/get-index.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/get-index.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/get.md b/docs/examples/1.6.x/server-kotlin/java/databases/get.md index b276da4eabd..b0e3742149f 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/get.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/list-attributes.md b/docs/examples/1.6.x/server-kotlin/java/databases/list-attributes.md index 417fe6e5e47..9681831a35a 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/list-attributes.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/list-attributes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/list-collections.md b/docs/examples/1.6.x/server-kotlin/java/databases/list-collections.md index e12e1580d37..32534474e1e 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/list-collections.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/list-collections.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/list-documents.md b/docs/examples/1.6.x/server-kotlin/java/databases/list-documents.md index 4fab62aeaff..36982c0eb08 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/list-documents.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/list-documents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/list-indexes.md b/docs/examples/1.6.x/server-kotlin/java/databases/list-indexes.md index c26626531d2..8c912bb36ca 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/list-indexes.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/list-indexes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/list.md b/docs/examples/1.6.x/server-kotlin/java/databases/list.md index d014a70c7cc..758b9f75fe1 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/list.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/update-boolean-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/update-boolean-attribute.md index 01a8ba13d36..3c958510277 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/update-boolean-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/update-boolean-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/update-collection.md b/docs/examples/1.6.x/server-kotlin/java/databases/update-collection.md index 533d7a762b4..6805c1149d7 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/update-collection.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/update-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/update-datetime-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/update-datetime-attribute.md index 00b35689d36..3f451b83f21 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/update-datetime-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/update-datetime-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/update-document.md b/docs/examples/1.6.x/server-kotlin/java/databases/update-document.md index 43c9600c58b..f7b05c96018 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/update-document.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/update-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/update-documents.md b/docs/examples/1.6.x/server-kotlin/java/databases/update-documents.md new file mode 100644 index 00000000000..b4138b41d22 --- /dev/null +++ b/docs/examples/1.6.x/server-kotlin/java/databases/update-documents.md @@ -0,0 +1,26 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.updateDocuments( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + mapOf( "a" to "b" ), // data (optional) + listOf(), // queries (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/update-email-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/update-email-attribute.md index b9313701892..1ff12217ba3 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/update-email-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/update-email-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/update-enum-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/update-enum-attribute.md index febf784f96d..89606806d95 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/update-enum-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/update-enum-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/update-float-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/update-float-attribute.md index 071bd48df08..0076987f856 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/update-float-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/update-float-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key @@ -14,9 +14,9 @@ databases.updateFloatAttribute( "<COLLECTION_ID>", // collectionId "", // key false, // required - 0, // min - 0, // max 0, // default + 0, // min (optional) + 0, // max (optional) "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/update-integer-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/update-integer-attribute.md index b6c1e449ba3..c39af22b362 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/update-integer-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/update-integer-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key @@ -14,9 +14,9 @@ databases.updateIntegerAttribute( "<COLLECTION_ID>", // collectionId "", // key false, // required - 0, // min - 0, // max 0, // default + 0, // min (optional) + 0, // max (optional) "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/update-ip-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/update-ip-attribute.md index 72b85cf531d..44b4da2abc4 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/update-ip-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/update-ip-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/update-relationship-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/update-relationship-attribute.md index 73e21218b12..8af20e91a90 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/update-relationship-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/update-relationship-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/update-string-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/update-string-attribute.md index 75be9e01f82..1f156f3dbbe 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/update-string-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/update-string-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key @@ -15,7 +15,7 @@ databases.updateStringAttribute( "", // key false, // required "<DEFAULT>", // default - 0, // size (optional) + 1, // size (optional) "", // newKey (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/update-url-attribute.md b/docs/examples/1.6.x/server-kotlin/java/databases/update-url-attribute.md index dcfbf3065da..959054ab489 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/update-url-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/update-url-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/update.md b/docs/examples/1.6.x/server-kotlin/java/databases/update.md index f1e6dd3972d..9928dae6f63 100644 --- a/docs/examples/1.6.x/server-kotlin/java/databases/update.md +++ b/docs/examples/1.6.x/server-kotlin/java/databases/update.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/databases/upsert-documents.md b/docs/examples/1.6.x/server-kotlin/java/databases/upsert-documents.md new file mode 100644 index 00000000000..e2f2a46337c --- /dev/null +++ b/docs/examples/1.6.x/server-kotlin/java/databases/upsert-documents.md @@ -0,0 +1,25 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Databases databases = new Databases(client); + +databases.upsertDocuments( + "<DATABASE_ID>", // databaseId + "<COLLECTION_ID>", // collectionId + listOf(), // documents (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/create-build.md b/docs/examples/1.6.x/server-kotlin/java/functions/create-build.md index ad55df1fcbf..a3f6cc5423a 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/create-build.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/create-build.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/create-deployment.md b/docs/examples/1.6.x/server-kotlin/java/functions/create-deployment.md index 920998e6019..6e435f41fa2 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/create-deployment.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/create-deployment.md @@ -4,7 +4,7 @@ import io.appwrite.models.InputFile; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/create-execution.md b/docs/examples/1.6.x/server-kotlin/java/functions/create-execution.md index 62c0634b60f..82d48fa55be 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/create-execution.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/create-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/create-variable.md b/docs/examples/1.6.x/server-kotlin/java/functions/create-variable.md index a1d6c7b82f6..df2bb8ed3cc 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/create-variable.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/create-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/create.md b/docs/examples/1.6.x/server-kotlin/java/functions/create.md index db0cc56b6bf..7137e40359b 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/create.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/create.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions; import io.appwrite.enums.Runtime; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/delete-deployment.md b/docs/examples/1.6.x/server-kotlin/java/functions/delete-deployment.md index f115bcc1916..1a6279ff3f9 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/delete-deployment.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/delete-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/delete-execution.md b/docs/examples/1.6.x/server-kotlin/java/functions/delete-execution.md index 68c11bd4366..68f81e8ee48 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/delete-execution.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/delete-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/delete-variable.md b/docs/examples/1.6.x/server-kotlin/java/functions/delete-variable.md index ca4d4f4440d..c881bdc8001 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/delete-variable.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/delete-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/delete.md b/docs/examples/1.6.x/server-kotlin/java/functions/delete.md index 94c7da516fa..255fc002fa0 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/delete.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/get-deployment-download.md b/docs/examples/1.6.x/server-kotlin/java/functions/get-deployment-download.md index 719d662f7f7..e2a07485077 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/get-deployment-download.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/get-deployment-download.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/get-deployment.md b/docs/examples/1.6.x/server-kotlin/java/functions/get-deployment.md index f039beed2d9..b3000272b4d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/get-deployment.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/get-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/get-execution.md b/docs/examples/1.6.x/server-kotlin/java/functions/get-execution.md index 253ff54bd8c..76e302fa821 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/get-execution.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/get-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/get-variable.md b/docs/examples/1.6.x/server-kotlin/java/functions/get-variable.md index 3d01fa49426..d54882b293d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/get-variable.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/get-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/get.md b/docs/examples/1.6.x/server-kotlin/java/functions/get.md index c22ccca5c62..aa55b93e071 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/get.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/list-deployments.md b/docs/examples/1.6.x/server-kotlin/java/functions/list-deployments.md index 9a1f1ef35db..16a10ca4a2c 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/list-deployments.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/list-deployments.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/list-executions.md b/docs/examples/1.6.x/server-kotlin/java/functions/list-executions.md index f2faa02138b..7a2ff91d680 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/list-executions.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/list-executions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/list-runtimes.md b/docs/examples/1.6.x/server-kotlin/java/functions/list-runtimes.md index 156e81feb24..304a90d0da3 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/list-runtimes.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/list-runtimes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/list-specifications.md b/docs/examples/1.6.x/server-kotlin/java/functions/list-specifications.md index 47d941c557e..e6c9c091d76 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/list-specifications.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/list-specifications.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/list-variables.md b/docs/examples/1.6.x/server-kotlin/java/functions/list-variables.md index 1e1e0e7c8bb..98c9ff45274 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/list-variables.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/list-variables.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/list.md b/docs/examples/1.6.x/server-kotlin/java/functions/list.md index 1c501fd1450..a9a320660d9 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/list.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/update-deployment-build.md b/docs/examples/1.6.x/server-kotlin/java/functions/update-deployment-build.md index 62b684fd8bf..5fc416bc40f 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/update-deployment-build.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/update-deployment-build.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/update-deployment.md b/docs/examples/1.6.x/server-kotlin/java/functions/update-deployment.md index 8d285019080..b83e001c2b4 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/update-deployment.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/update-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/update-variable.md b/docs/examples/1.6.x/server-kotlin/java/functions/update-variable.md index 4e0576ef103..d2bf6db692d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/update-variable.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/update-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/functions/update.md b/docs/examples/1.6.x/server-kotlin/java/functions/update.md index c63dfb47ef2..5956c57b730 100644 --- a/docs/examples/1.6.x/server-kotlin/java/functions/update.md +++ b/docs/examples/1.6.x/server-kotlin/java/functions/update.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/graphql/mutation.md b/docs/examples/1.6.x/server-kotlin/java/graphql/mutation.md index a929468eba7..778892457b0 100644 --- a/docs/examples/1.6.x/server-kotlin/java/graphql/mutation.md +++ b/docs/examples/1.6.x/server-kotlin/java/graphql/mutation.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/graphql/query.md b/docs/examples/1.6.x/server-kotlin/java/graphql/query.md index 8182ea74009..e109d523f85 100644 --- a/docs/examples/1.6.x/server-kotlin/java/graphql/query.md +++ b/docs/examples/1.6.x/server-kotlin/java/graphql/query.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Graphql; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-antivirus.md b/docs/examples/1.6.x/server-kotlin/java/health/get-antivirus.md index 6c1eb155ced..ca3abf71005 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-antivirus.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-antivirus.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-cache.md b/docs/examples/1.6.x/server-kotlin/java/health/get-cache.md index 62880c9e809..24a584c04b4 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-cache.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-cache.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-certificate.md b/docs/examples/1.6.x/server-kotlin/java/health/get-certificate.md index 2a60a4c5b79..f4cb5a4e1eb 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-certificate.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-certificate.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-d-b.md b/docs/examples/1.6.x/server-kotlin/java/health/get-d-b.md index 703989fa1e3..c7a7bef9032 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-d-b.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-d-b.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-failed-jobs.md b/docs/examples/1.6.x/server-kotlin/java/health/get-failed-jobs.md index 25f53b83374..d2b81bd0bfa 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-failed-jobs.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-failed-jobs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Health; import io.appwrite.enums.Name; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-pub-sub.md b/docs/examples/1.6.x/server-kotlin/java/health/get-pub-sub.md index 116da6f15d3..70210c42967 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-pub-sub.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-pub-sub.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-builds.md b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-builds.md index a80a7452066..2ca5d7f4e4d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-builds.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-builds.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-certificates.md b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-certificates.md index ee0d48efe44..519817ae460 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-certificates.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-certificates.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-databases.md b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-databases.md index 7f34b19083a..2f175668eba 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-databases.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-databases.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-deletes.md b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-deletes.md index 23ed2aff0fb..e65aa9a528f 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-deletes.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-deletes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-functions.md b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-functions.md index 2fcfb8b60cd..720f114acb7 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-functions.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-functions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-logs.md b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-logs.md index bcf6da214f4..09b0de4e63f 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-logs.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-mails.md b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-mails.md index 7580db6b2c8..b1ae357aefc 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-mails.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-mails.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-messaging.md b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-messaging.md index 7b927d00b21..61c0b8cad7e 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-messaging.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-messaging.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-migrations.md b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-migrations.md index c1a9fadd197..0e7d669e7f1 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-migrations.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-migrations.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-stats-resources.md b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..e2f8062fcc6 --- /dev/null +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-stats-resources.md @@ -0,0 +1,23 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Health; + +Client client = new Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>"); // Your secret API key + +Health health = new Health(client); + +health.getQueueStatsResources( + 0, // threshold (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-usage-dump.md b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-usage-dump.md index 59bd4069603..88bbbd339ff 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-usage-dump.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-usage-dump.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-usage.md b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-usage.md index 360567a5533..bfda61a544e 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-usage.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-usage.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-webhooks.md b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-webhooks.md index 180c0cc87a2..d9aed66db64 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-queue-webhooks.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-queue-webhooks.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-queue.md b/docs/examples/1.6.x/server-kotlin/java/health/get-queue.md index 55937b7dea9..0f36cf098d4 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-queue.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-queue.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-storage-local.md b/docs/examples/1.6.x/server-kotlin/java/health/get-storage-local.md index 99c7513fda3..65367cc2524 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-storage-local.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-storage-local.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-storage.md b/docs/examples/1.6.x/server-kotlin/java/health/get-storage.md index 9bd63ca5c92..3a0f0f8ed3d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-storage.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-storage.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get-time.md b/docs/examples/1.6.x/server-kotlin/java/health/get-time.md index 89ec655ea3b..f0ba668ab8e 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get-time.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get-time.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/health/get.md b/docs/examples/1.6.x/server-kotlin/java/health/get.md index e81254e8781..87a7c0a32d7 100644 --- a/docs/examples/1.6.x/server-kotlin/java/health/get.md +++ b/docs/examples/1.6.x/server-kotlin/java/health/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Health; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/locale/get.md b/docs/examples/1.6.x/server-kotlin/java/locale/get.md index 8063ce161a2..2d5e0ac06d0 100644 --- a/docs/examples/1.6.x/server-kotlin/java/locale/get.md +++ b/docs/examples/1.6.x/server-kotlin/java/locale/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/locale/list-codes.md b/docs/examples/1.6.x/server-kotlin/java/locale/list-codes.md index 4bc244a0c91..9f07d1dbf19 100644 --- a/docs/examples/1.6.x/server-kotlin/java/locale/list-codes.md +++ b/docs/examples/1.6.x/server-kotlin/java/locale/list-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/locale/list-continents.md b/docs/examples/1.6.x/server-kotlin/java/locale/list-continents.md index 03b912200fb..5d9e4b0fdb5 100644 --- a/docs/examples/1.6.x/server-kotlin/java/locale/list-continents.md +++ b/docs/examples/1.6.x/server-kotlin/java/locale/list-continents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/locale/list-countries-e-u.md b/docs/examples/1.6.x/server-kotlin/java/locale/list-countries-e-u.md index 9a6ee54a716..232a0ef8cf7 100644 --- a/docs/examples/1.6.x/server-kotlin/java/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/server-kotlin/java/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/locale/list-countries-phones.md b/docs/examples/1.6.x/server-kotlin/java/locale/list-countries-phones.md index cfab3be5db4..a4739a5b930 100644 --- a/docs/examples/1.6.x/server-kotlin/java/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/server-kotlin/java/locale/list-countries-phones.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/locale/list-countries.md b/docs/examples/1.6.x/server-kotlin/java/locale/list-countries.md index 079a8397095..5b8f250f3c7 100644 --- a/docs/examples/1.6.x/server-kotlin/java/locale/list-countries.md +++ b/docs/examples/1.6.x/server-kotlin/java/locale/list-countries.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/locale/list-currencies.md b/docs/examples/1.6.x/server-kotlin/java/locale/list-currencies.md index bab723f5be4..adf1d787c11 100644 --- a/docs/examples/1.6.x/server-kotlin/java/locale/list-currencies.md +++ b/docs/examples/1.6.x/server-kotlin/java/locale/list-currencies.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/locale/list-languages.md b/docs/examples/1.6.x/server-kotlin/java/locale/list-languages.md index b0435b7835e..c92ea525f7b 100644 --- a/docs/examples/1.6.x/server-kotlin/java/locale/list-languages.md +++ b/docs/examples/1.6.x/server-kotlin/java/locale/list-languages.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Locale; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/create-apns-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/create-apns-provider.md index 5dde983120a..0f6618079f2 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/create-apns-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/create-apns-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/create-email.md b/docs/examples/1.6.x/server-kotlin/java/messaging/create-email.md index 753a89b695a..d6ab5ee1bfd 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/create-email.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/create-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/create-fcm-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/create-fcm-provider.md index 1078514b6ba..636a1bdd39a 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/create-fcm-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/create-fcm-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/create-mailgun-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/create-mailgun-provider.md index 4b2a7bdd3cd..272f9d2356d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/create-mailgun-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/create-mailgun-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/create-msg91provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/create-msg91provider.md index 6cc120c37c5..21005293eab 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/create-msg91provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/create-msg91provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/create-push.md b/docs/examples/1.6.x/server-kotlin/java/messaging/create-push.md index 934f1faaa80..277ab9655cc 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/create-push.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/create-push.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key @@ -11,8 +11,8 @@ Messaging messaging = new Messaging(client); messaging.createPush( "<MESSAGE_ID>", // messageId - "<TITLE>", // title - "<BODY>", // body + "<TITLE>", // title (optional) + "<BODY>", // body (optional) listOf(), // topics (optional) listOf(), // users (optional) listOf(), // targets (optional) @@ -23,9 +23,12 @@ messaging.createPush( "<SOUND>", // sound (optional) "<COLOR>", // color (optional) "<TAG>", // tag (optional) - "<BADGE>", // badge (optional) + 0, // badge (optional) false, // draft (optional) "", // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + MessagePriority.NORMAL, // priority (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/create-sendgrid-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/create-sendgrid-provider.md index 20e12749b2b..84c5bf42f9c 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/create-sendgrid-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/create-sms.md b/docs/examples/1.6.x/server-kotlin/java/messaging/create-sms.md index 60e1749f321..9e3e3bdf5d1 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/create-sms.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/create-sms.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/create-smtp-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/create-smtp-provider.md index 3f69f610360..ebd153c29c9 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/create-smtp-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/create-smtp-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/create-subscriber.md b/docs/examples/1.6.x/server-kotlin/java/messaging/create-subscriber.md index 77ef2d59ff1..1ccb8fe60c7 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/create-subscriber.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setJWT("<YOUR_JWT>"); // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/create-telesign-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/create-telesign-provider.md index f66081490b5..6b644994193 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/create-telesign-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/create-telesign-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/create-textmagic-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/create-textmagic-provider.md index cda11d5bada..477d7d8c4b5 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/create-textmagic-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/create-textmagic-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/create-topic.md b/docs/examples/1.6.x/server-kotlin/java/messaging/create-topic.md index 8fa74d8ede2..63a24b467d5 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/create-topic.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/create-topic.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/create-twilio-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/create-twilio-provider.md index a122837691d..8d1b4da9703 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/create-twilio-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/create-twilio-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/create-vonage-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/create-vonage-provider.md index 808ca0c1022..db1e476db23 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/create-vonage-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/create-vonage-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/delete-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/delete-provider.md index e1337dc02fa..b0fa837feb7 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/delete-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/delete-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/delete-subscriber.md b/docs/examples/1.6.x/server-kotlin/java/messaging/delete-subscriber.md index c80fc72eb08..a3635b9db75 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/delete-subscriber.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setJWT("<YOUR_JWT>"); // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/delete-topic.md b/docs/examples/1.6.x/server-kotlin/java/messaging/delete-topic.md index 9c51144bfc2..7b598b25f4b 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/delete-topic.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/delete-topic.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/delete.md b/docs/examples/1.6.x/server-kotlin/java/messaging/delete.md index f90336a2ce3..1395a392455 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/delete.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/get-message.md b/docs/examples/1.6.x/server-kotlin/java/messaging/get-message.md index 5e940cff106..3860ff23470 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/get-message.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/get-message.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/get-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/get-provider.md index 74ece13b1b1..9717b90b7d0 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/get-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/get-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/get-subscriber.md b/docs/examples/1.6.x/server-kotlin/java/messaging/get-subscriber.md index 2e6beaac533..641a494b5c7 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/get-subscriber.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/get-subscriber.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/get-topic.md b/docs/examples/1.6.x/server-kotlin/java/messaging/get-topic.md index adf64bbec58..c9f2eff74b6 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/get-topic.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/get-topic.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/list-message-logs.md b/docs/examples/1.6.x/server-kotlin/java/messaging/list-message-logs.md index 70bb49ae859..0f94e46cd11 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/list-message-logs.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/list-message-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/list-messages.md b/docs/examples/1.6.x/server-kotlin/java/messaging/list-messages.md index 847ce73f5c7..006ba7c27f0 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/list-messages.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/list-messages.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/list-provider-logs.md b/docs/examples/1.6.x/server-kotlin/java/messaging/list-provider-logs.md index be1aba0eebc..5f77f2d03d5 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/list-provider-logs.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/list-provider-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/list-providers.md b/docs/examples/1.6.x/server-kotlin/java/messaging/list-providers.md index feda90082ac..b069dda04c3 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/list-providers.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/list-providers.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/list-subscriber-logs.md b/docs/examples/1.6.x/server-kotlin/java/messaging/list-subscriber-logs.md index 30250e46880..b10e446a667 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/list-subscriber-logs.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/list-subscriber-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/list-subscribers.md b/docs/examples/1.6.x/server-kotlin/java/messaging/list-subscribers.md index d00d4925a0f..52ca5b0d010 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/list-subscribers.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/list-subscribers.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/list-targets.md b/docs/examples/1.6.x/server-kotlin/java/messaging/list-targets.md index f1eeac02df0..5b9f40e8739 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/list-targets.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/list-targets.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/list-topic-logs.md b/docs/examples/1.6.x/server-kotlin/java/messaging/list-topic-logs.md index c7edc92992c..b2e9444419f 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/list-topic-logs.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/list-topic-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/list-topics.md b/docs/examples/1.6.x/server-kotlin/java/messaging/list-topics.md index 278d0d49089..e6408a60e1e 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/list-topics.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/list-topics.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/update-apns-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/update-apns-provider.md index b9ac1a93f29..737a142495a 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/update-apns-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/update-apns-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/update-email.md b/docs/examples/1.6.x/server-kotlin/java/messaging/update-email.md index a5d98201f15..56e9767861b 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/update-email.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/update-fcm-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/update-fcm-provider.md index 956900d7b8f..68c56ef18ef 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/update-fcm-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/update-fcm-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/update-mailgun-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/update-mailgun-provider.md index 8512de159c7..5547ae85758 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/update-mailgun-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/update-mailgun-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/update-msg91provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/update-msg91provider.md index 74de7d25e29..d8e485629bc 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/update-msg91provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/update-msg91provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/update-push.md b/docs/examples/1.6.x/server-kotlin/java/messaging/update-push.md index ef04203c37b..b7038de6a40 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/update-push.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/update-push.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key @@ -26,6 +26,9 @@ messaging.updatePush( 0, // badge (optional) false, // draft (optional) "", // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + MessagePriority.NORMAL, // priority (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/update-sendgrid-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/update-sendgrid-provider.md index 79c89c0fc75..14a4e99f5be 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/update-sendgrid-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/update-sms.md b/docs/examples/1.6.x/server-kotlin/java/messaging/update-sms.md index bfca7d32df6..c55cfdfddba 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/update-sms.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/update-sms.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/update-smtp-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/update-smtp-provider.md index e3083816c92..3f39661024a 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/update-smtp-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/update-smtp-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/update-telesign-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/update-telesign-provider.md index 6ffb534a3cd..8181bf1c82c 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/update-telesign-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/update-telesign-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/update-textmagic-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/update-textmagic-provider.md index d80b5ae5c74..bc156b7a31e 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/update-textmagic-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/update-textmagic-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/update-topic.md b/docs/examples/1.6.x/server-kotlin/java/messaging/update-topic.md index 1013fbac572..be9c44dc234 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/update-topic.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/update-topic.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/update-twilio-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/update-twilio-provider.md index 65fb0fcb7e7..ed58ee9a24d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/update-twilio-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/update-twilio-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/messaging/update-vonage-provider.md b/docs/examples/1.6.x/server-kotlin/java/messaging/update-vonage-provider.md index 6548d1758bf..d5bfe3610c9 100644 --- a/docs/examples/1.6.x/server-kotlin/java/messaging/update-vonage-provider.md +++ b/docs/examples/1.6.x/server-kotlin/java/messaging/update-vonage-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/storage/create-bucket.md b/docs/examples/1.6.x/server-kotlin/java/storage/create-bucket.md index ccb9961b019..a3a33084206 100644 --- a/docs/examples/1.6.x/server-kotlin/java/storage/create-bucket.md +++ b/docs/examples/1.6.x/server-kotlin/java/storage/create-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/storage/create-file.md b/docs/examples/1.6.x/server-kotlin/java/storage/create-file.md index 92907fc4d93..583f8569a53 100644 --- a/docs/examples/1.6.x/server-kotlin/java/storage/create-file.md +++ b/docs/examples/1.6.x/server-kotlin/java/storage/create-file.md @@ -4,7 +4,7 @@ import io.appwrite.models.InputFile; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/storage/delete-bucket.md b/docs/examples/1.6.x/server-kotlin/java/storage/delete-bucket.md index 8c46ba9303a..eb77754f924 100644 --- a/docs/examples/1.6.x/server-kotlin/java/storage/delete-bucket.md +++ b/docs/examples/1.6.x/server-kotlin/java/storage/delete-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/storage/delete-file.md b/docs/examples/1.6.x/server-kotlin/java/storage/delete-file.md index 01d423d13a3..8976fd198f0 100644 --- a/docs/examples/1.6.x/server-kotlin/java/storage/delete-file.md +++ b/docs/examples/1.6.x/server-kotlin/java/storage/delete-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/storage/get-bucket.md b/docs/examples/1.6.x/server-kotlin/java/storage/get-bucket.md index 63c847f1717..a099f33dd81 100644 --- a/docs/examples/1.6.x/server-kotlin/java/storage/get-bucket.md +++ b/docs/examples/1.6.x/server-kotlin/java/storage/get-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/storage/get-file-download.md b/docs/examples/1.6.x/server-kotlin/java/storage/get-file-download.md index 32bff0b051d..d0399f94e28 100644 --- a/docs/examples/1.6.x/server-kotlin/java/storage/get-file-download.md +++ b/docs/examples/1.6.x/server-kotlin/java/storage/get-file-download.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/storage/get-file-preview.md b/docs/examples/1.6.x/server-kotlin/java/storage/get-file-preview.md index 650ea4dff50..dd7c09d33b2 100644 --- a/docs/examples/1.6.x/server-kotlin/java/storage/get-file-preview.md +++ b/docs/examples/1.6.x/server-kotlin/java/storage/get-file-preview.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/storage/get-file-view.md b/docs/examples/1.6.x/server-kotlin/java/storage/get-file-view.md index 5a81ebaca0b..1de4ae0317b 100644 --- a/docs/examples/1.6.x/server-kotlin/java/storage/get-file-view.md +++ b/docs/examples/1.6.x/server-kotlin/java/storage/get-file-view.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/storage/get-file.md b/docs/examples/1.6.x/server-kotlin/java/storage/get-file.md index 004dc01f387..7a04c80e9ea 100644 --- a/docs/examples/1.6.x/server-kotlin/java/storage/get-file.md +++ b/docs/examples/1.6.x/server-kotlin/java/storage/get-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/storage/list-buckets.md b/docs/examples/1.6.x/server-kotlin/java/storage/list-buckets.md index 8ab56e32533..9d85957803d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/storage/list-buckets.md +++ b/docs/examples/1.6.x/server-kotlin/java/storage/list-buckets.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/storage/list-files.md b/docs/examples/1.6.x/server-kotlin/java/storage/list-files.md index 6fbd2c3aa41..f002754813e 100644 --- a/docs/examples/1.6.x/server-kotlin/java/storage/list-files.md +++ b/docs/examples/1.6.x/server-kotlin/java/storage/list-files.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/storage/update-bucket.md b/docs/examples/1.6.x/server-kotlin/java/storage/update-bucket.md index 342174ead5d..2d80e2648cd 100644 --- a/docs/examples/1.6.x/server-kotlin/java/storage/update-bucket.md +++ b/docs/examples/1.6.x/server-kotlin/java/storage/update-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/storage/update-file.md b/docs/examples/1.6.x/server-kotlin/java/storage/update-file.md index 3578bcd6256..7f325f91fb4 100644 --- a/docs/examples/1.6.x/server-kotlin/java/storage/update-file.md +++ b/docs/examples/1.6.x/server-kotlin/java/storage/update-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/teams/create-membership.md b/docs/examples/1.6.x/server-kotlin/java/teams/create-membership.md index f7a4ecb66b9..89e9d96ef62 100644 --- a/docs/examples/1.6.x/server-kotlin/java/teams/create-membership.md +++ b/docs/examples/1.6.x/server-kotlin/java/teams/create-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/teams/create.md b/docs/examples/1.6.x/server-kotlin/java/teams/create.md index e8fb127b3ef..28cc3dada1d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/teams/create.md +++ b/docs/examples/1.6.x/server-kotlin/java/teams/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/teams/delete-membership.md b/docs/examples/1.6.x/server-kotlin/java/teams/delete-membership.md index 0fe1e170cf9..3b414be028f 100644 --- a/docs/examples/1.6.x/server-kotlin/java/teams/delete-membership.md +++ b/docs/examples/1.6.x/server-kotlin/java/teams/delete-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/teams/delete.md b/docs/examples/1.6.x/server-kotlin/java/teams/delete.md index 74f5a7c26d5..07f5c12e4cf 100644 --- a/docs/examples/1.6.x/server-kotlin/java/teams/delete.md +++ b/docs/examples/1.6.x/server-kotlin/java/teams/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/teams/get-membership.md b/docs/examples/1.6.x/server-kotlin/java/teams/get-membership.md index d013d913b2e..e7c1571af6f 100644 --- a/docs/examples/1.6.x/server-kotlin/java/teams/get-membership.md +++ b/docs/examples/1.6.x/server-kotlin/java/teams/get-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/teams/get-prefs.md b/docs/examples/1.6.x/server-kotlin/java/teams/get-prefs.md index 27cd6f9a8b6..6d308148015 100644 --- a/docs/examples/1.6.x/server-kotlin/java/teams/get-prefs.md +++ b/docs/examples/1.6.x/server-kotlin/java/teams/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/teams/get.md b/docs/examples/1.6.x/server-kotlin/java/teams/get.md index 0416602ae72..a479e9aff20 100644 --- a/docs/examples/1.6.x/server-kotlin/java/teams/get.md +++ b/docs/examples/1.6.x/server-kotlin/java/teams/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/teams/list-memberships.md b/docs/examples/1.6.x/server-kotlin/java/teams/list-memberships.md index 0260673a093..96944820083 100644 --- a/docs/examples/1.6.x/server-kotlin/java/teams/list-memberships.md +++ b/docs/examples/1.6.x/server-kotlin/java/teams/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/teams/list.md b/docs/examples/1.6.x/server-kotlin/java/teams/list.md index a4e85acc5c6..d0855ba8417 100644 --- a/docs/examples/1.6.x/server-kotlin/java/teams/list.md +++ b/docs/examples/1.6.x/server-kotlin/java/teams/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/teams/update-membership-status.md b/docs/examples/1.6.x/server-kotlin/java/teams/update-membership-status.md index 8ca3398e6ec..461cf4cbc37 100644 --- a/docs/examples/1.6.x/server-kotlin/java/teams/update-membership-status.md +++ b/docs/examples/1.6.x/server-kotlin/java/teams/update-membership-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/teams/update-membership.md b/docs/examples/1.6.x/server-kotlin/java/teams/update-membership.md index 60be82cbf04..d4816c57f1f 100644 --- a/docs/examples/1.6.x/server-kotlin/java/teams/update-membership.md +++ b/docs/examples/1.6.x/server-kotlin/java/teams/update-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/teams/update-name.md b/docs/examples/1.6.x/server-kotlin/java/teams/update-name.md index 8db6f04d91c..f2f1b02d93c 100644 --- a/docs/examples/1.6.x/server-kotlin/java/teams/update-name.md +++ b/docs/examples/1.6.x/server-kotlin/java/teams/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/teams/update-prefs.md b/docs/examples/1.6.x/server-kotlin/java/teams/update-prefs.md index 91f1492e727..2ef05222df8 100644 --- a/docs/examples/1.6.x/server-kotlin/java/teams/update-prefs.md +++ b/docs/examples/1.6.x/server-kotlin/java/teams/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Teams; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession(""); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/java/users/create-argon2user.md b/docs/examples/1.6.x/server-kotlin/java/users/create-argon2user.md index 01275263dbc..c78f236cec6 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/create-argon2user.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/create-argon2user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/create-bcrypt-user.md b/docs/examples/1.6.x/server-kotlin/java/users/create-bcrypt-user.md index c98939bf025..7b85f960548 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/create-bcrypt-user.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/create-bcrypt-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/create-j-w-t.md b/docs/examples/1.6.x/server-kotlin/java/users/create-j-w-t.md index c4538b730d9..2b4d7e9c50e 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/create-j-w-t.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/create-j-w-t.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/create-m-d5user.md b/docs/examples/1.6.x/server-kotlin/java/users/create-m-d5user.md index 0456a775764..666e10792ef 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/create-m-d5user.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/create-m-d5user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-kotlin/java/users/create-mfa-recovery-codes.md index f9dfbe8fafd..62afec2a1fb 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/create-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/create-p-h-pass-user.md b/docs/examples/1.6.x/server-kotlin/java/users/create-p-h-pass-user.md index e97767887c5..048ba39ccab 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/create-p-h-pass-user.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/create-p-h-pass-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/create-s-h-a-user.md b/docs/examples/1.6.x/server-kotlin/java/users/create-s-h-a-user.md index 6a3869ce473..ad729071c2d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/create-s-h-a-user.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/create-s-h-a-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/create-scrypt-modified-user.md b/docs/examples/1.6.x/server-kotlin/java/users/create-scrypt-modified-user.md index 28d5881f7da..77a7d5fdb39 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/create-scrypt-modified-user.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/create-scrypt-modified-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/create-scrypt-user.md b/docs/examples/1.6.x/server-kotlin/java/users/create-scrypt-user.md index 43e1ad8db95..0e81237ecfb 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/create-scrypt-user.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/create-scrypt-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/create-session.md b/docs/examples/1.6.x/server-kotlin/java/users/create-session.md index bc7dfb02992..8d9ce03d8ea 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/create-session.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/create-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/create-target.md b/docs/examples/1.6.x/server-kotlin/java/users/create-target.md index 6bad1ce682f..6681b170da2 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/create-target.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/create-target.md @@ -4,7 +4,7 @@ import io.appwrite.services.Users; import io.appwrite.enums.MessagingProviderType; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/create-token.md b/docs/examples/1.6.x/server-kotlin/java/users/create-token.md index 9389e0eaef5..330b344b15d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/create-token.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/create-token.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/create.md b/docs/examples/1.6.x/server-kotlin/java/users/create.md index 98891295704..95a72bf7e0a 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/create.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/delete-identity.md b/docs/examples/1.6.x/server-kotlin/java/users/delete-identity.md index 063a91da894..40c410db47d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/delete-identity.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/delete-identity.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-kotlin/java/users/delete-mfa-authenticator.md index cd5d9ab00da..7ed33d6d826 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/delete-mfa-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Users; import io.appwrite.enums.AuthenticatorType; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/delete-session.md b/docs/examples/1.6.x/server-kotlin/java/users/delete-session.md index 4ed2713d257..0e0a52baf80 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/delete-session.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/delete-sessions.md b/docs/examples/1.6.x/server-kotlin/java/users/delete-sessions.md index f0da6e09ce6..6a3bbbf46fc 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/delete-sessions.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/delete-target.md b/docs/examples/1.6.x/server-kotlin/java/users/delete-target.md index ddd04602073..e38ee1d57dd 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/delete-target.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/delete-target.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/delete.md b/docs/examples/1.6.x/server-kotlin/java/users/delete.md index 6a256f87e90..d207f9af4bb 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/delete.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-kotlin/java/users/get-mfa-recovery-codes.md index be33d2095e9..940dafee903 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/get-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/get-prefs.md b/docs/examples/1.6.x/server-kotlin/java/users/get-prefs.md index 3e36f166039..9ff3e4b3089 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/get-prefs.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/get-target.md b/docs/examples/1.6.x/server-kotlin/java/users/get-target.md index 2ee5b4a965b..05c802835d4 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/get-target.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/get-target.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/get.md b/docs/examples/1.6.x/server-kotlin/java/users/get.md index 8c34ebacaf3..d8cd707c9c0 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/get.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/list-identities.md b/docs/examples/1.6.x/server-kotlin/java/users/list-identities.md index 169b41440df..e0fc9d122af 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/list-identities.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/list-identities.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/list-logs.md b/docs/examples/1.6.x/server-kotlin/java/users/list-logs.md index f3d2701609a..86c94ee3a4e 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/list-logs.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/list-memberships.md b/docs/examples/1.6.x/server-kotlin/java/users/list-memberships.md index 4f3cfd82bec..dc03be2ef33 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/list-memberships.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/list-mfa-factors.md b/docs/examples/1.6.x/server-kotlin/java/users/list-mfa-factors.md index 4d51ece94b6..a377214d19b 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/list-mfa-factors.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/list-sessions.md b/docs/examples/1.6.x/server-kotlin/java/users/list-sessions.md index a1d3a3a7d96..7e13cb31c90 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/list-sessions.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/list-targets.md b/docs/examples/1.6.x/server-kotlin/java/users/list-targets.md index ab0457725a4..efa754273f4 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/list-targets.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/list-targets.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/list.md b/docs/examples/1.6.x/server-kotlin/java/users/list.md index a854ba0a791..d587eaf46b9 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/list.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/update-email-verification.md b/docs/examples/1.6.x/server-kotlin/java/users/update-email-verification.md index 7423f774848..a79c87b4d64 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/update-email-verification.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/update-email-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/update-email.md b/docs/examples/1.6.x/server-kotlin/java/users/update-email.md index 23e3977db1d..24cdb00dff1 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/update-email.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/update-labels.md b/docs/examples/1.6.x/server-kotlin/java/users/update-labels.md index acc3d1b0248..379200a56b3 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/update-labels.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/update-labels.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-kotlin/java/users/update-mfa-recovery-codes.md index eb560e72e09..439561012fa 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/update-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/update-mfa.md b/docs/examples/1.6.x/server-kotlin/java/users/update-mfa.md index e1fc96f8afd..76a198f513e 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/update-mfa.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/update-mfa.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/update-name.md b/docs/examples/1.6.x/server-kotlin/java/users/update-name.md index e8bfe567cb6..b4f889cb6d4 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/update-name.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/update-password.md b/docs/examples/1.6.x/server-kotlin/java/users/update-password.md index bdf31a7771b..94e24da45d6 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/update-password.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/update-phone-verification.md b/docs/examples/1.6.x/server-kotlin/java/users/update-phone-verification.md index ce2377be9b5..4a1d5a29003 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/update-phone-verification.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/update-phone.md b/docs/examples/1.6.x/server-kotlin/java/users/update-phone.md index e0a0a4976fa..49477fad434 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/update-phone.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/update-prefs.md b/docs/examples/1.6.x/server-kotlin/java/users/update-prefs.md index 1d1cc7c5ba5..c5a9677a20d 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/update-prefs.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/update-status.md b/docs/examples/1.6.x/server-kotlin/java/users/update-status.md index e757ece454f..6e875b982f8 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/update-status.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/java/users/update-target.md b/docs/examples/1.6.x/server-kotlin/java/users/update-target.md index 23ca8d0187f..67b90bfbacd 100644 --- a/docs/examples/1.6.x/server-kotlin/java/users/update-target.md +++ b/docs/examples/1.6.x/server-kotlin/java/users/update-target.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Users; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>"); // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-anonymous-session.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-anonymous-session.md index 932b8a75073..0ddc3835dca 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-anonymous-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-email-password-session.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-email-password-session.md index cc3b8cb3fac..9c7af95e131 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-email-password-session.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-email-password-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-email-token.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-email-token.md index b56e48909fb..84acd78a9c2 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-email-token.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-email-token.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-j-w-t.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-j-w-t.md index a0208cb9117..4c04aa1215f 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-j-w-t.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-j-w-t.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-magic-u-r-l-token.md index ba66695f15c..c1d8cba2cb2 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-magic-u-r-l-token.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-mfa-authenticator.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-mfa-authenticator.md index 0afd790727b..803579da035 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-mfa-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticatorType val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-mfa-challenge.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-mfa-challenge.md index 921e791154c..a3fbe25d755 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-mfa-challenge.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticationFactor val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-mfa-recovery-codes.md index 270fedaf7a0..c21a382fcc2 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-o-auth2token.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-o-auth2token.md index 62d176d6b81..1a8c1188b09 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-o-auth2token.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.OAuthProvider val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-phone-token.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-phone-token.md index b9633e78110..be03e0659f0 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-phone-token.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-phone-token.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-phone-verification.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-phone-verification.md index 038d72e6f43..3ae45b39826 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-phone-verification.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-recovery.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-recovery.md index 27c6af55fd1..949219cfcaf 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-recovery.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-session.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-session.md index 5e6c47cc1bf..5afb219ff0b 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-session.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-verification.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-verification.md index 0d42f8a919f..f3441c9bdd4 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/create-verification.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/create-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/create.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/create.md index 19d7c12b5bc..80640ba8303 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/create.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-identity.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-identity.md index f6ede24729d..f9a5ce0a129 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-identity.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-identity.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-mfa-authenticator.md index ffa853f3f65..2068077f46c 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-mfa-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticatorType val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-session.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-session.md index 47b80d77a5b..31096ccc653 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-session.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-sessions.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-sessions.md index b2571de0212..dc29fb8aac0 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-sessions.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/get-mfa-recovery-codes.md index 5335a0d0042..027c2112304 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/get-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/get-prefs.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/get-prefs.md index 3705645a028..299abbd929b 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/get-prefs.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/get-session.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/get-session.md index 78478e1eb78..e40297e60ca 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/get-session.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/get-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/get.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/get.md index 84f9bc3fe89..f65f4fd618f 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/get.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/list-identities.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/list-identities.md index f947de3da49..32eb86cb436 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/list-identities.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/list-identities.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/list-logs.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/list-logs.md index ba926ae06e0..345b2f1f06c 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/list-logs.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/list-mfa-factors.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/list-mfa-factors.md index ee07a486c90..ce47dcd752b 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/list-mfa-factors.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/list-sessions.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/list-sessions.md index 7f23ad30179..899260cd5b2 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/list-sessions.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-email.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-email.md index c10c25e4ba5..6ebe5e7ec9e 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-email.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-m-f-a.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-m-f-a.md index 516f14d5cd5..e12e8e00e27 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-m-f-a.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-m-f-a.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-magic-u-r-l-session.md index 99b65ebbc93..d4fe7f4861c 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-magic-u-r-l-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-mfa-authenticator.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-mfa-authenticator.md index 482dfb360db..521d133f6fd 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-mfa-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Account import io.appwrite.enums.AuthenticatorType val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-mfa-challenge.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-mfa-challenge.md index 2a9a1a463d0..6b978b765ec 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-mfa-challenge.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-mfa-recovery-codes.md index ebc6d718c9b..31da824bbf4 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-name.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-name.md index 13f90197f08..ecb7a2bd2f1 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-name.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-password.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-password.md index fbb67963d68..159aa79aef5 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-password.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-phone-session.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-phone-session.md index 1f6aa40ddec..1bcc4c09556 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-phone-session.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-phone-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID val account = Account(client) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-phone-verification.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-phone-verification.md index 87cd3ffeb76..36a2d9c73bb 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-phone-verification.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-phone.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-phone.md index 1a2600c4f0f..1ee4cbd39b8 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-phone.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-prefs.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-prefs.md index 32d083b6b9f..dafee7c0e51 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-prefs.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-recovery.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-recovery.md index 8626e979841..e56381365d1 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-recovery.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-recovery.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-session.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-session.md index 5f83a2bb916..ab3730af0e0 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-session.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-status.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-status.md index aa94adec109..021f6143c08 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-status.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-verification.md b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-verification.md index 2f8cc25cef3..64020934100 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/account/update-verification.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/account/update-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-browser.md b/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-browser.md index 0e29e1146d1..e9b95c9422e 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-browser.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-browser.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars import io.appwrite.enums.Browser val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-credit-card.md b/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-credit-card.md index 9929e764404..8554dbd00ea 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-credit-card.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars import io.appwrite.enums.CreditCard val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-favicon.md b/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-favicon.md index 8cf4af26fe4..d1f5d9bfe6b 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-favicon.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-favicon.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Avatars val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-flag.md b/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-flag.md index 73f3fefbdcb..011a7296b2e 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-flag.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-flag.md @@ -4,7 +4,7 @@ import io.appwrite.services.Avatars import io.appwrite.enums.Flag val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-image.md b/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-image.md index 1369000a46e..98b9c07e7fe 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-image.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-image.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Avatars val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-initials.md b/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-initials.md index 95499241a15..2aa165ccf8a 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-initials.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-initials.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Avatars val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-q-r.md b/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-q-r.md index cea667bc933..abcf488cbb0 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-q-r.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/avatars/get-q-r.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Avatars val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-boolean-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-boolean-attribute.md index 64ac210006e..b80bd9497a2 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-boolean-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-boolean-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-collection.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-collection.md index 03ca6a4b748..de9679f5597 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-collection.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-datetime-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-datetime-attribute.md index d9e0771c9d2..2d730562a95 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-datetime-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-datetime-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-document.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-document.md index 873e2edd48a..695fdbdfaac 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-document.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-documents.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-documents.md new file mode 100644 index 00000000000..d9af7b000cb --- /dev/null +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-documents.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +val databases = Databases(client) + +val response = databases.createDocuments( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + documents = listOf() +) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-email-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-email-attribute.md index 5e5091be6bd..2a5a9c2a60d 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-email-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-email-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-enum-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-enum-attribute.md index 733fbadf449..d9decdeba9e 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-enum-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-enum-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-float-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-float-attribute.md index 04e9bfa17ce..5ca86a66af3 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-float-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-float-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-index.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-index.md index 6dab46fec9a..7ada0f743b5 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-index.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-index.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases import io.appwrite.enums.IndexType val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-integer-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-integer-attribute.md index 6c483bbac61..748d01a849d 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-integer-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-integer-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-ip-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-ip-attribute.md index 76dd82dcb9d..bfc610517a6 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-ip-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-ip-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-relationship-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-relationship-attribute.md index 4797b94c910..1bf610321a6 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-relationship-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-relationship-attribute.md @@ -4,7 +4,7 @@ import io.appwrite.services.Databases import io.appwrite.enums.RelationshipType val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-string-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-string-attribute.md index 06781f236c0..333cb76763b 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-string-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-string-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-url-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-url-attribute.md index 33cadc7933d..06057d46839 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-url-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create-url-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create.md index c17246f776f..04c64801d2a 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/create.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-attribute.md index 8fed2d841c2..9a25155957d 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-collection.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-collection.md index 2c85947f379..c46ca086b92 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-collection.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-document.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-document.md index e920841a93a..a9eea6b648a 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-document.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-documents.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-documents.md new file mode 100644 index 00000000000..c4caa63aae9 --- /dev/null +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-documents.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.deleteDocuments( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + queries = listOf() // optional +) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-index.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-index.md index 8655b6bc678..37c75dcfe5b 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-index.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete-index.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete.md index 13c56605807..07225698e22 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-attribute.md index 6a7ceb22103..a59facd7dbf 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-collection.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-collection.md index 79980c5db71..7f6e578db19 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-collection.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-document.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-document.md index 508e0dae37c..d21a19869b2 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-document.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-index.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-index.md index 3935c38ba6f..39ac7af9fbe 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-index.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/get-index.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/get.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/get.md index bb6b17cd193..6ebb0c109c7 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/get.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-attributes.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-attributes.md index b3f26a2e383..5ddb0a6feab 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-attributes.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-attributes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-collections.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-collections.md index 9bdfa6e4d0f..5340903927d 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-collections.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-collections.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-documents.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-documents.md index 90cef399a2d..ed9cb3165dd 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-documents.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-documents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-indexes.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-indexes.md index 6dd29ba2062..2ab2e6a1b21 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-indexes.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/list-indexes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/list.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/list.md index f7f332b91fd..cd61a0e714f 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/list.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-boolean-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-boolean-attribute.md index ebffab74f26..4c9fd91d83e 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-boolean-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-boolean-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-collection.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-collection.md index 7ceef8423b0..bd42ba07f47 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-collection.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-collection.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-datetime-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-datetime-attribute.md index 676c779bc96..082ae1c05ae 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-datetime-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-datetime-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-document.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-document.md index 1737be1d3d7..4dd0349823e 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-document.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-document.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-documents.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-documents.md new file mode 100644 index 00000000000..9d6c2b5ea8f --- /dev/null +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-documents.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.updateDocuments( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + data = mapOf( "a" to "b" ), // optional + queries = listOf() // optional +) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-email-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-email-attribute.md index 2f1cbd25276..026bd6447fc 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-email-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-email-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-enum-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-enum-attribute.md index 7c0c92fad6b..e68a29c20a9 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-enum-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-enum-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-float-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-float-attribute.md index 47015308311..58b110743e2 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-float-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-float-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -14,8 +14,8 @@ val response = databases.updateFloatAttribute( collectionId = "<COLLECTION_ID>", key = "", required = false, - min = 0, - max = 0, default = 0, + min = 0, // optional + max = 0, // optional newKey = "" // optional ) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-integer-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-integer-attribute.md index e5742a5830a..a00dcf95a0f 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-integer-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-integer-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -14,8 +14,8 @@ val response = databases.updateIntegerAttribute( collectionId = "<COLLECTION_ID>", key = "", required = false, - min = 0, - max = 0, default = 0, + min = 0, // optional + max = 0, // optional newKey = "" // optional ) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-ip-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-ip-attribute.md index bfc0cddce0e..505e5ea18d3 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-ip-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-ip-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-relationship-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-relationship-attribute.md index ab121951406..001dd1a391f 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-relationship-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-relationship-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-string-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-string-attribute.md index a37d4566ee0..364a6b5b7fa 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-string-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-string-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -15,6 +15,6 @@ val response = databases.updateStringAttribute( key = "", required = false, default = "<DEFAULT>", - size = 0, // optional + size = 1, // optional newKey = "" // optional ) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-url-attribute.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-url-attribute.md index 78351133db0..a628cc57f89 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-url-attribute.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update-url-attribute.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update.md index 7da795cb725..05f832738a6 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/databases/update.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/update.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/databases/upsert-documents.md b/docs/examples/1.6.x/server-kotlin/kotlin/databases/upsert-documents.md new file mode 100644 index 00000000000..7459b384a17 --- /dev/null +++ b/docs/examples/1.6.x/server-kotlin/kotlin/databases/upsert-documents.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val databases = Databases(client) + +val response = databases.upsertDocuments( + databaseId = "<DATABASE_ID>", + collectionId = "<COLLECTION_ID>", + documents = listOf() // optional +) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-build.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-build.md index 6d20586e940..f835d93860a 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-build.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-build.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-deployment.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-deployment.md index aba8f0c5f73..ddc6e8b2073 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-deployment.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-deployment.md @@ -4,7 +4,7 @@ import io.appwrite.models.InputFile import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-execution.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-execution.md index 42267458e0e..94bfa2310cd 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-execution.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-variable.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-variable.md index e5d33b4f1a5..5dff26f80e6 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-variable.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/create-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/create.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/create.md index d94bdf63787..72788784182 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/create.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/create.md @@ -4,7 +4,7 @@ import io.appwrite.services.Functions import io.appwrite.enums.Runtime val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete-deployment.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete-deployment.md index 9e4e4762f1f..937fc961da4 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete-deployment.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete-execution.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete-execution.md index eb1f59eda7c..95994f822ab 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete-execution.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete-variable.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete-variable.md index 912e7699b6c..e1793675c94 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete-variable.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete.md index 97f0b0082fb..96517447677 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-deployment-download.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-deployment-download.md index 13dec6ade24..5e9558e9fae 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-deployment-download.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-deployment-download.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-deployment.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-deployment.md index e844328f58c..eba4abb6df4 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-deployment.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-execution.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-execution.md index 5f981bfc4f1..480dbb76bad 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-execution.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-execution.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-variable.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-variable.md index 8d6ee38cf21..95359ef8fc7 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-variable.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/get-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/get.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/get.md index f56d8b9eaaa..162fa224977 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/get.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-deployments.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-deployments.md index cf7deffa736..9318442afa2 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-deployments.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-deployments.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-executions.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-executions.md index 8f4546cb624..9f85f67f33d 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-executions.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-executions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-runtimes.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-runtimes.md index a464156a1c0..5b3673b84db 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-runtimes.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-runtimes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-specifications.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-specifications.md index 8d86aa6cae5..0b2fb46a4be 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-specifications.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-specifications.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-variables.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-variables.md index 4876517279c..7f576e89573 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-variables.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/list-variables.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/list.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/list.md index 9a585017da5..b10fdff53ac 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/list.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/update-deployment-build.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/update-deployment-build.md index 6adb07a7817..839bbe6ff68 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/update-deployment-build.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/update-deployment-build.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/update-deployment.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/update-deployment.md index fb95b08abc2..cf020d697cf 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/update-deployment.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/update-deployment.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/update-variable.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/update-variable.md index db9438c667a..ed6e4fffce0 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/update-variable.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/update-variable.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/functions/update.md b/docs/examples/1.6.x/server-kotlin/kotlin/functions/update.md index d36c7610180..7f0b33ebd7a 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/functions/update.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/functions/update.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Functions val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/graphql/mutation.md b/docs/examples/1.6.x/server-kotlin/kotlin/graphql/mutation.md index d4d2fd2dc26..98081ab06b2 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/graphql/mutation.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/graphql/mutation.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Graphql val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/graphql/query.md b/docs/examples/1.6.x/server-kotlin/kotlin/graphql/query.md index 79457c1e144..dec8dd350cb 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/graphql/query.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/graphql/query.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Graphql val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-antivirus.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-antivirus.md index c84072504b9..869b4c48044 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-antivirus.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-antivirus.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-cache.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-cache.md index 20ddb89ad3b..8b72ec414f9 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-cache.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-cache.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-certificate.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-certificate.md index 714a2709a90..74bf6187040 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-certificate.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-certificate.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-d-b.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-d-b.md index c707be39110..a55a1146f4f 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-d-b.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-d-b.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-failed-jobs.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-failed-jobs.md index 5c5497a4c06..027df127cc7 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-failed-jobs.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-failed-jobs.md @@ -4,7 +4,7 @@ import io.appwrite.services.Health import io.appwrite.enums.Name val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-pub-sub.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-pub-sub.md index 8a69bc7be69..53c38202329 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-pub-sub.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-pub-sub.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-builds.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-builds.md index 4d0cb3a0e6d..371aad90f8f 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-builds.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-builds.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-certificates.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-certificates.md index 1b07df680e8..5c6adeecb53 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-certificates.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-certificates.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-databases.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-databases.md index fb1dce69f80..3a3405830d2 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-databases.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-databases.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-deletes.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-deletes.md index d3f11862424..5d0b8a33814 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-deletes.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-deletes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-functions.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-functions.md index 2a045955cba..7a42b61ba51 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-functions.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-functions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-logs.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-logs.md index 6467a390ad6..151025bfb64 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-logs.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-mails.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-mails.md index 143dc409aec..f5a905dd735 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-mails.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-mails.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-messaging.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-messaging.md index e85e4258327..4a837928ebc 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-messaging.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-messaging.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-migrations.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-migrations.md index f287e78d4a1..853d294ed12 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-migrations.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-migrations.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-stats-resources.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..6a76f528e27 --- /dev/null +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-stats-resources.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Health + +val client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +val health = Health(client) + +val response = health.getQueueStatsResources( + threshold = 0 // optional +) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-usage-dump.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-usage-dump.md index a1b1a30b3ce..4a39357b6cd 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-usage-dump.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-usage-dump.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-usage.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-usage.md index fcfcf108e13..e344b9eddc9 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-usage.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-usage.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-webhooks.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-webhooks.md index 6452f1a76e9..f5ffc58d8d0 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-webhooks.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue-webhooks.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue.md index d24e8c43e38..671a7565027 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-queue.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-storage-local.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-storage-local.md index b2c9987353f..32a21aea0a3 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-storage-local.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-storage-local.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-storage.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-storage.md index 7038ee2b5a1..8af609aad90 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-storage.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-storage.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-time.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-time.md index 7c50ae424b2..8054ed7c697 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get-time.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get-time.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/health/get.md b/docs/examples/1.6.x/server-kotlin/kotlin/health/get.md index c53445ff991..0845320bb5e 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/health/get.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/health/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Health val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/locale/get.md b/docs/examples/1.6.x/server-kotlin/kotlin/locale/get.md index b8dc768a0df..6840259c27a 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/locale/get.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/locale/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-codes.md b/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-codes.md index 784e688f4d1..fd0c4e413e7 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-codes.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-continents.md b/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-continents.md index 6cad16e4a92..699d599f569 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-continents.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-continents.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-countries-e-u.md b/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-countries-e-u.md index cfec468dd5c..13e86f30641 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-countries-phones.md b/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-countries-phones.md index 06585ad248d..b660ccf4332 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-countries-phones.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-countries.md b/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-countries.md index 7789bbeff50..3457ceb4c52 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-countries.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-countries.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-currencies.md b/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-currencies.md index 6c7f7097d3b..80b2cc7e52a 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-currencies.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-currencies.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-languages.md b/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-languages.md index a20096e3352..b36c1389a53 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-languages.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/locale/list-languages.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Locale val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-apns-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-apns-provider.md index 8a58fe8672c..a19cbe2725a 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-apns-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-apns-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-email.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-email.md index 02b0651b681..f0f41e9e531 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-email.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-fcm-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-fcm-provider.md index 779596cd78f..c1a077ca5c3 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-fcm-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-fcm-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-mailgun-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-mailgun-provider.md index a73a27ff08e..d205171dfe4 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-mailgun-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-mailgun-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-msg91provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-msg91provider.md index 31eb606e288..5ea3d223e90 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-msg91provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-msg91provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-push.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-push.md index 6a95f63992d..5b07f5355bd 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-push.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-push.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -11,8 +11,8 @@ val messaging = Messaging(client) val response = messaging.createPush( messageId = "<MESSAGE_ID>", - title = "<TITLE>", - body = "<BODY>", + title = "<TITLE>", // optional + body = "<BODY>", // optional topics = listOf(), // optional users = listOf(), // optional targets = listOf(), // optional @@ -23,7 +23,10 @@ val response = messaging.createPush( sound = "<SOUND>", // optional color = "<COLOR>", // optional tag = "<TAG>", // optional - badge = "<BADGE>", // optional + badge = 0, // optional draft = false, // optional - scheduledAt = "" // optional + scheduledAt = "", // optional + contentAvailable = false, // optional + critical = false, // optional + priority = "normal" // optional ) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-sendgrid-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-sendgrid-provider.md index 34f61c9889b..e96a052d5a7 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-sendgrid-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-sms.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-sms.md index 6fbcffb09eb..49185290c34 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-sms.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-sms.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-smtp-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-smtp-provider.md index 17643dc6a54..ae3b6678e4e 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-smtp-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-smtp-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-subscriber.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-subscriber.md index 805cd583279..44e3a72a1d5 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-subscriber.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setJWT("<YOUR_JWT>") // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-telesign-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-telesign-provider.md index 1d44fcab2a7..cddd6d801a0 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-telesign-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-telesign-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-textmagic-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-textmagic-provider.md index d88b9bb9d0e..12eb62d957e 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-textmagic-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-textmagic-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-topic.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-topic.md index 6a6b9bd4b27..570be33e41c 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-topic.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-topic.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-twilio-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-twilio-provider.md index 3df99e97dac..c05b835d521 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-twilio-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-twilio-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-vonage-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-vonage-provider.md index 59e5d149fe3..7e049d8313b 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-vonage-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/create-vonage-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete-provider.md index 3ecd64deab2..4989da8cd30 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete-subscriber.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete-subscriber.md index 4a7c18faf99..0f99f251a31 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete-subscriber.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setJWT("<YOUR_JWT>") // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete-topic.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete-topic.md index 4859c0a621c..8a52c9f9a58 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete-topic.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete-topic.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete.md index 0b925ca8a0e..7e4ec51c93a 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-message.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-message.md index 01db389b24c..710d356113a 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-message.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-message.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-provider.md index 53e5cf32d56..c678d4d984c 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-subscriber.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-subscriber.md index 036f17f757d..59b335a2e6c 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-subscriber.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-subscriber.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-topic.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-topic.md index 09d36884f3b..c189898e95b 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-topic.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/get-topic.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-message-logs.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-message-logs.md index 30489041338..e1463f8911e 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-message-logs.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-message-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-messages.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-messages.md index e9e509e4c9b..618f8c493ee 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-messages.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-messages.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-provider-logs.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-provider-logs.md index e0a52cb402d..ab0a9f12602 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-provider-logs.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-provider-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-providers.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-providers.md index 66439e2a4c6..34c70a9c86a 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-providers.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-providers.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-subscriber-logs.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-subscriber-logs.md index 5472d5f46ff..8a82af8f703 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-subscriber-logs.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-subscriber-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-subscribers.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-subscribers.md index a95e8543289..acf5249900c 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-subscribers.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-subscribers.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-targets.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-targets.md index a99e8226d18..ad500f0e382 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-targets.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-targets.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-topic-logs.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-topic-logs.md index 7b7d2f03840..683b4180325 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-topic-logs.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-topic-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-topics.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-topics.md index 4550f1e6589..125c6ffb822 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-topics.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/list-topics.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-apns-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-apns-provider.md index 83a60830b14..d0d5a07848a 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-apns-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-apns-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-email.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-email.md index 29baf1896d5..cd74bb4290d 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-email.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-fcm-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-fcm-provider.md index 4d8534c2c47..477e7188d89 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-fcm-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-fcm-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-mailgun-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-mailgun-provider.md index 9caff421c84..4bec8d2a44d 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-mailgun-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-mailgun-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-msg91provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-msg91provider.md index 1a6a0b49ad9..3abaca75bb5 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-msg91provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-msg91provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-push.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-push.md index d91694e1bcd..710a37e5184 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-push.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-push.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -25,5 +25,8 @@ val response = messaging.updatePush( tag = "<TAG>", // optional badge = 0, // optional draft = false, // optional - scheduledAt = "" // optional + scheduledAt = "", // optional + contentAvailable = false, // optional + critical = false, // optional + priority = "normal" // optional ) diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-sendgrid-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-sendgrid-provider.md index 353cbd01801..962aa694e61 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-sendgrid-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-sms.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-sms.md index 7f008e8dbe6..3d08b8a16c3 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-sms.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-sms.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-smtp-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-smtp-provider.md index 465d76b4da4..cb745865ec0 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-smtp-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-smtp-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-telesign-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-telesign-provider.md index 9a4d93e9c33..83fb11a8568 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-telesign-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-telesign-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-textmagic-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-textmagic-provider.md index 14e8ac51029..1e2ee1e2c8f 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-textmagic-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-textmagic-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-topic.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-topic.md index 68e894973dc..0991fd0ee46 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-topic.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-topic.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-twilio-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-twilio-provider.md index 2c7a5e8cf9e..1c86f9e853e 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-twilio-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-twilio-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-vonage-provider.md b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-vonage-provider.md index 4d432f73108..bf0ee2b75cd 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-vonage-provider.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/messaging/update-vonage-provider.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/storage/create-bucket.md b/docs/examples/1.6.x/server-kotlin/kotlin/storage/create-bucket.md index 0c0119e556a..0bca8278728 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/storage/create-bucket.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/storage/create-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/storage/create-file.md b/docs/examples/1.6.x/server-kotlin/kotlin/storage/create-file.md index a2203ff6862..b22b32a6653 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/storage/create-file.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/storage/create-file.md @@ -4,7 +4,7 @@ import io.appwrite.models.InputFile import io.appwrite.services.Storage val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/storage/delete-bucket.md b/docs/examples/1.6.x/server-kotlin/kotlin/storage/delete-bucket.md index 22981035d1a..4a0904ec636 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/storage/delete-bucket.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/storage/delete-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/storage/delete-file.md b/docs/examples/1.6.x/server-kotlin/kotlin/storage/delete-file.md index 5b17c5c8b00..cf5e285db35 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/storage/delete-file.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/storage/delete-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-bucket.md b/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-bucket.md index 604ec05a26b..e2a6a8f527c 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-bucket.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file-download.md b/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file-download.md index 46b02e77302..f3422f958df 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file-download.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file-download.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file-preview.md b/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file-preview.md index 88be42f6f58..8c37ce832eb 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file-preview.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file-preview.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file-view.md b/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file-view.md index b4ad81fcecd..cf8cde33c4c 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file-view.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file-view.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file.md b/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file.md index a6d2d3d85d7..a807177dcec 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/storage/get-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/storage/list-buckets.md b/docs/examples/1.6.x/server-kotlin/kotlin/storage/list-buckets.md index 4b22970641e..a8a066dc9f8 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/storage/list-buckets.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/storage/list-buckets.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/storage/list-files.md b/docs/examples/1.6.x/server-kotlin/kotlin/storage/list-files.md index e7c3d664388..cb9a7767757 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/storage/list-files.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/storage/list-files.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/storage/update-bucket.md b/docs/examples/1.6.x/server-kotlin/kotlin/storage/update-bucket.md index 4040dfb4f9d..d475a6e5ed3 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/storage/update-bucket.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/storage/update-bucket.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/storage/update-file.md b/docs/examples/1.6.x/server-kotlin/kotlin/storage/update-file.md index 96d4b08f9ac..e82ea8125cc 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/storage/update-file.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/storage/update-file.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Storage val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/teams/create-membership.md b/docs/examples/1.6.x/server-kotlin/kotlin/teams/create-membership.md index 250502ecc96..33eb16568ec 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/teams/create-membership.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/teams/create-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/teams/create.md b/docs/examples/1.6.x/server-kotlin/kotlin/teams/create.md index b66029f08ea..6ec7e533d2d 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/teams/create.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/teams/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/teams/delete-membership.md b/docs/examples/1.6.x/server-kotlin/kotlin/teams/delete-membership.md index 0dff54515ff..48c924f37b4 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/teams/delete-membership.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/teams/delete-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/teams/delete.md b/docs/examples/1.6.x/server-kotlin/kotlin/teams/delete.md index 9a75b2ae72b..4b70ff2f188 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/teams/delete.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/teams/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/teams/get-membership.md b/docs/examples/1.6.x/server-kotlin/kotlin/teams/get-membership.md index 77c6ae5d1a9..a636c217dab 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/teams/get-membership.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/teams/get-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/teams/get-prefs.md b/docs/examples/1.6.x/server-kotlin/kotlin/teams/get-prefs.md index 2700c893ae9..2b73432d6c0 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/teams/get-prefs.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/teams/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/teams/get.md b/docs/examples/1.6.x/server-kotlin/kotlin/teams/get.md index a7be374a46e..72b667776f6 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/teams/get.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/teams/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/teams/list-memberships.md b/docs/examples/1.6.x/server-kotlin/kotlin/teams/list-memberships.md index 916252dd617..287087394e2 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/teams/list-memberships.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/teams/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/teams/list.md b/docs/examples/1.6.x/server-kotlin/kotlin/teams/list.md index 5af95dbfc7f..ee3e3e43b4c 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/teams/list.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/teams/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-membership-status.md b/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-membership-status.md index 75c4a73731b..b7a0d51ec51 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-membership-status.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-membership-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-membership.md b/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-membership.md index 556e0a3394d..7a4377fb4de 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-membership.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-membership.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-name.md b/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-name.md index 8e6a2a237c1..2f13d7c4608 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-name.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-prefs.md b/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-prefs.md index c9153d359a3..62c7f01ca5d 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-prefs.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/teams/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Teams val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-argon2user.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-argon2user.md index a01f6d54c3c..27008a0415e 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-argon2user.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-argon2user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-bcrypt-user.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-bcrypt-user.md index b4758e4aba5..c7231307cfc 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-bcrypt-user.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-bcrypt-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-j-w-t.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-j-w-t.md index 137847d13b1..a556a901c53 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-j-w-t.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-j-w-t.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-m-d5user.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-m-d5user.md index f9d7cb2f120..27b985920c9 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-m-d5user.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-m-d5user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-mfa-recovery-codes.md index b3a3950f545..2d1dbf0a1df 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-p-h-pass-user.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-p-h-pass-user.md index 87d74aac8bb..5441e49e6c2 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-p-h-pass-user.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-p-h-pass-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-s-h-a-user.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-s-h-a-user.md index 0be03bf8a00..17a157b2cd1 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-s-h-a-user.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-s-h-a-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md index f651d3fc586..814883cae56 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-scrypt-modified-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-scrypt-user.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-scrypt-user.md index 2502312f55b..619525a7992 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-scrypt-user.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-scrypt-user.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-session.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-session.md index 4b0e5dc277b..a67e6051213 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-session.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-target.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-target.md index 4a7856bd61c..139c6ff0499 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-target.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-target.md @@ -4,7 +4,7 @@ import io.appwrite.services.Users import io.appwrite.enums.MessagingProviderType val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-token.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-token.md index bd8f76d9be2..43492f47473 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/create-token.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/create-token.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/create.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/create.md index b5bcee929fc..27ae85ae6eb 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/create.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/create.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-identity.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-identity.md index 2c0bfae3bcf..37b4ed2e71d 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-identity.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-identity.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-mfa-authenticator.md index 60989d4c6a7..22085b2f725 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-mfa-authenticator.md @@ -4,7 +4,7 @@ import io.appwrite.services.Users import io.appwrite.enums.AuthenticatorType val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-session.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-session.md index 0127fa3183f..e9e3c7c55e6 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-session.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-session.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-sessions.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-sessions.md index 26d7c703d9a..6288e1bc049 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-sessions.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-target.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-target.md index 6be6652c32b..f93be0677a2 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-target.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/delete-target.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/delete.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/delete.md index e250c44b7a7..b938ac70d18 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/delete.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/delete.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/get-mfa-recovery-codes.md index 5860b4cca68..e0c45dc2581 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/get-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/get-prefs.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/get-prefs.md index 76545377081..927a4a43a19 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/get-prefs.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/get-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/get-target.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/get-target.md index be8bbe81cab..556349c6844 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/get-target.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/get-target.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/get.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/get.md index 829843065ba..70f0ee9d5fa 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/get.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/get.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/list-identities.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/list-identities.md index 05156dbe935..1ac0e5b887f 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/list-identities.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/list-identities.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/list-logs.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/list-logs.md index 8868d0d30bd..a263293a7a6 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/list-logs.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/list-logs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/list-memberships.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/list-memberships.md index 5a3d2ead352..528b69c5e8e 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/list-memberships.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/list-memberships.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/list-mfa-factors.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/list-mfa-factors.md index 25d9a4a1127..4eb6721ce51 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/list-mfa-factors.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/list-sessions.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/list-sessions.md index c14ebd7b829..4ff34dd53ed 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/list-sessions.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/list-sessions.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/list-targets.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/list-targets.md index d017592a863..0824acfd9e5 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/list-targets.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/list-targets.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/list.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/list.md index e86ac0de468..23dd217a6cc 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/list.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/list.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-email-verification.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-email-verification.md index 3f5f2937e5c..ebf2232f3e3 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-email-verification.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-email-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-email.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-email.md index b7a06443380..a617705dbb2 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-email.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-email.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-labels.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-labels.md index ecc29480a8d..86f536f7281 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-labels.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-labels.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-mfa-recovery-codes.md index b8fa2c503a5..74602c0f7e9 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-mfa-recovery-codes.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-mfa.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-mfa.md index a169f3df781..0148d582b8f 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-mfa.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-mfa.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-name.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-name.md index 32d164df29a..fedfce36bdc 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-name.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-name.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-password.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-password.md index 152226767c8..4a0ad576e18 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-password.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-password.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-phone-verification.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-phone-verification.md index bc8f4c626fd..6520ef4c956 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-phone-verification.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-phone-verification.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-phone.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-phone.md index f00a15d0151..7261f95db53 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-phone.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-phone.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-prefs.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-prefs.md index cc8dcf6e742..451f4ff4c6d 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-prefs.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-prefs.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-status.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-status.md index e546ba5705a..a69ae30dbcd 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-status.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-status.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-target.md b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-target.md index 1827c6a95b5..a18fc63bcbf 100644 --- a/docs/examples/1.6.x/server-kotlin/kotlin/users/update-target.md +++ b/docs/examples/1.6.x/server-kotlin/kotlin/users/update-target.md @@ -3,7 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/create-anonymous-session.md b/docs/examples/1.6.x/server-nodejs/examples/account/create-anonymous-session.md index 90a916143da..d8590b03cb8 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/create-anonymous-session.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/create-email-password-session.md b/docs/examples/1.6.x/server-nodejs/examples/account/create-email-password-session.md index 34aabddad7a..6c940f54355 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/create-email-password-session.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/create-email-password-session.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/create-email-token.md b/docs/examples/1.6.x/server-nodejs/examples/account/create-email-token.md index 0f218a2bc02..b6be71d45c9 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/create-email-token.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/create-email-token.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/create-j-w-t.md b/docs/examples/1.6.x/server-nodejs/examples/account/create-j-w-t.md index 673e1e077a5..2273646635f 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/create-j-w-t.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/create-j-w-t.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/server-nodejs/examples/account/create-magic-u-r-l-token.md index cb6ef36732f..6dbdc3d9fb6 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/create-magic-u-r-l-token.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/create-mfa-authenticator.md b/docs/examples/1.6.x/server-nodejs/examples/account/create-mfa-authenticator.md index 0305e029917..e52658b5339 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/create-mfa-authenticator.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/create-mfa-challenge.md b/docs/examples/1.6.x/server-nodejs/examples/account/create-mfa-challenge.md index 301d83d0405..79d5e89eeda 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/create-mfa-challenge.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-nodejs/examples/account/create-mfa-recovery-codes.md index c653ae55b20..42b3c8c6f53 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/server-nodejs/examples/account/create-o-auth2token.md index 7538a9d01ac..adae095105d 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/create-o-auth2token.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/create-phone-token.md b/docs/examples/1.6.x/server-nodejs/examples/account/create-phone-token.md index 04d5bc08c2b..aca0bd2d8a5 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/create-phone-token.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/create-phone-token.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/create-phone-verification.md b/docs/examples/1.6.x/server-nodejs/examples/account/create-phone-verification.md index 15dcf8a15f2..f7c87f0675b 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/create-phone-verification.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/create-recovery.md b/docs/examples/1.6.x/server-nodejs/examples/account/create-recovery.md index ed83848e7ea..660942affb6 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/create-recovery.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/create-recovery.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/create-session.md b/docs/examples/1.6.x/server-nodejs/examples/account/create-session.md index 8b2751b1a5f..8c6b910089d 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/create-session.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/create-session.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/create-verification.md b/docs/examples/1.6.x/server-nodejs/examples/account/create-verification.md index 14456ef69ff..1f1db27e8ae 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/create-verification.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/create-verification.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/create.md b/docs/examples/1.6.x/server-nodejs/examples/account/create.md index 860e341a470..85e3d2fccaa 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/create.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/create.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/delete-identity.md b/docs/examples/1.6.x/server-nodejs/examples/account/delete-identity.md index 071133465ea..0424ab247e4 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/delete-identity.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/delete-identity.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-nodejs/examples/account/delete-mfa-authenticator.md index 1cf8154acd8..5979c3a6d7e 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/delete-session.md b/docs/examples/1.6.x/server-nodejs/examples/account/delete-session.md index d29810f2674..4276ccad245 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/delete-session.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/delete-session.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/delete-sessions.md b/docs/examples/1.6.x/server-nodejs/examples/account/delete-sessions.md index 496bd4a5f69..884c0e0ebce 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/delete-sessions.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-nodejs/examples/account/get-mfa-recovery-codes.md index 2bada1bafa9..27f902424ed 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/get-mfa-recovery-codes.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/get-prefs.md b/docs/examples/1.6.x/server-nodejs/examples/account/get-prefs.md index 9ed003c69ae..d0d7d31aaf5 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/get-prefs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/get-session.md b/docs/examples/1.6.x/server-nodejs/examples/account/get-session.md index aeaaa149336..63b6f0893a4 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/get-session.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/get-session.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/get.md b/docs/examples/1.6.x/server-nodejs/examples/account/get.md index b1fc61f1ee9..6ebb605ae8e 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/get.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/get.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/list-identities.md b/docs/examples/1.6.x/server-nodejs/examples/account/list-identities.md index 642034d796a..c49894c8c0b 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/list-identities.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/list-identities.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/list-logs.md b/docs/examples/1.6.x/server-nodejs/examples/account/list-logs.md index 08dcf812f40..4260a72e30e 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/list-logs.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/list-logs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/server-nodejs/examples/account/list-mfa-factors.md index e2c9683ee69..a993e31aa81 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/list-mfa-factors.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/list-sessions.md b/docs/examples/1.6.x/server-nodejs/examples/account/list-sessions.md index a8b423f95dd..33fb527415c 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/list-sessions.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-email.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-email.md index 4c0c6c23fb5..6111f0e52a6 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-email.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-email.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-m-f-a.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-m-f-a.md index 30c36230ac0..58629cda3bd 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-m-f-a.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-magic-u-r-l-session.md index 56d2b02f049..3e059d88d96 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-magic-u-r-l-session.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-mfa-authenticator.md index c8f1773daf3..7b24dc87121 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-mfa-authenticator.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-mfa-challenge.md index bdb1a538afe..4d309991298 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-mfa-challenge.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-mfa-recovery-codes.md index 16a3d3cca16..9db82175c96 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-name.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-name.md index df510029d31..f47d215288b 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-name.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-name.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-password.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-password.md index 76021bcb89a..aa9d67aede3 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-password.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-password.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-phone-session.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-phone-session.md index 40fccba90e3..c208714a373 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-phone-session.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-phone-session.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID const account = new sdk.Account(client); diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-phone-verification.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-phone-verification.md index 93f35a8d3e4..116d171c92a 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-phone-verification.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-phone.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-phone.md index 11982b7c816..c6c02fde9ab 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-phone.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-phone.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-prefs.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-prefs.md index 6f2700358d1..ee8b0426938 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-prefs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-recovery.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-recovery.md index 09bfc64d427..bd4a87c3a90 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-recovery.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-recovery.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-session.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-session.md index 64ec68ebd9d..be80c857504 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-session.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-session.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-status.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-status.md index cf65e828651..1b70af53780 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-status.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-status.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/account/update-verification.md b/docs/examples/1.6.x/server-nodejs/examples/account/update-verification.md index cc3678ec213..0abb562a95c 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/account/update-verification.md +++ b/docs/examples/1.6.x/server-nodejs/examples/account/update-verification.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/avatars/get-browser.md b/docs/examples/1.6.x/server-nodejs/examples/avatars/get-browser.md index ad6d0d4b686..3bcd70d0f26 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/server-nodejs/examples/avatars/get-browser.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/server-nodejs/examples/avatars/get-credit-card.md index 5ffcc344b1b..a60c2da86e6 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/server-nodejs/examples/avatars/get-credit-card.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/avatars/get-favicon.md b/docs/examples/1.6.x/server-nodejs/examples/avatars/get-favicon.md index 09804035435..6056354e9e5 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/server-nodejs/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/avatars/get-flag.md b/docs/examples/1.6.x/server-nodejs/examples/avatars/get-flag.md index 53b912f5a87..df0164d2805 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/server-nodejs/examples/avatars/get-flag.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/avatars/get-image.md b/docs/examples/1.6.x/server-nodejs/examples/avatars/get-image.md index 5a72fe3bcc3..7dac2423ba4 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/server-nodejs/examples/avatars/get-image.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/avatars/get-initials.md b/docs/examples/1.6.x/server-nodejs/examples/avatars/get-initials.md index b9d41fc27a1..2cd45bfac8b 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/server-nodejs/examples/avatars/get-initials.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/avatars/get-q-r.md b/docs/examples/1.6.x/server-nodejs/examples/avatars/get-q-r.md index 0a2723561c3..cfd649ea33c 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/server-nodejs/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/create-boolean-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/create-boolean-attribute.md index 7a04ed02fce..b6239698a50 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/create-boolean-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/create-collection.md b/docs/examples/1.6.x/server-nodejs/examples/databases/create-collection.md index 7119a4e500b..fc5c798385f 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/create-collection.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/create-collection.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/create-datetime-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/create-datetime-attribute.md index ba40de8b43e..4c7328ce4bb 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/create-datetime-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/create-document.md b/docs/examples/1.6.x/server-nodejs/examples/databases/create-document.md index 3e1c76945ba..a2e77b9241f 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/create-document.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/create-document.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/create-documents.md b/docs/examples/1.6.x/server-nodejs/examples/databases/create-documents.md new file mode 100644 index 00000000000..cc8fd01a603 --- /dev/null +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/create-documents.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setSession(''); // The user session to authenticate with + +const databases = new sdk.Databases(client); + +const result = await databases.createDocuments( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + [] // documents +); diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/create-email-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/create-email-attribute.md index 6f2da81f39b..47b27508cdd 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/create-email-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/create-email-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/create-enum-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/create-enum-attribute.md index 9439f8f5df8..61c1d77f2c3 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/create-enum-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/create-float-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/create-float-attribute.md index 7ed62239229..3e605001e6a 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/create-float-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/create-float-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/create-index.md b/docs/examples/1.6.x/server-nodejs/examples/databases/create-index.md index 73cdf3912e3..bd616222a62 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/create-index.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/create-index.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/create-integer-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/create-integer-attribute.md index 479b9d87549..ce62624001d 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/create-integer-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/create-ip-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/create-ip-attribute.md index c88087f9441..e3bbffe2273 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/create-ip-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/create-relationship-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/create-relationship-attribute.md index 7be4bae6a23..bb77bc00c39 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/create-relationship-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/create-string-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/create-string-attribute.md index 03905f4e86f..94793e86db6 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/create-string-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/create-string-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/create-url-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/create-url-attribute.md index 741249bb00d..6b6b1daaa08 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/create-url-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/create-url-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/create.md b/docs/examples/1.6.x/server-nodejs/examples/databases/create.md index 792bbf1c901..c1fd4eca43f 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/create.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/create.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/delete-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/delete-attribute.md index b8b2d47a65c..8291fc095e5 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/delete-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/delete-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/delete-collection.md b/docs/examples/1.6.x/server-nodejs/examples/databases/delete-collection.md index bb72b9eb84b..9551c558fbc 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/delete-collection.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/delete-collection.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/delete-document.md b/docs/examples/1.6.x/server-nodejs/examples/databases/delete-document.md index 05183b5e042..526f00eb3a1 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/delete-document.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/delete-document.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/delete-documents.md b/docs/examples/1.6.x/server-nodejs/examples/databases/delete-documents.md new file mode 100644 index 00000000000..01814e50528 --- /dev/null +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/delete-documents.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.deleteDocuments( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + [] // queries (optional) +); diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/delete-index.md b/docs/examples/1.6.x/server-nodejs/examples/databases/delete-index.md index 0f50d7d2f6f..90353ea44e2 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/delete-index.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/delete-index.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/delete.md b/docs/examples/1.6.x/server-nodejs/examples/databases/delete.md index 79ca89ddba1..65179d2b2a1 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/delete.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/delete.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/get-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/get-attribute.md index 86dccff42bc..8757265edb4 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/get-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/get-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/get-collection.md b/docs/examples/1.6.x/server-nodejs/examples/databases/get-collection.md index f107c149c66..79c5674985e 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/get-collection.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/get-collection.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/get-document.md b/docs/examples/1.6.x/server-nodejs/examples/databases/get-document.md index edd2cb210f4..eee515bf366 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/get-document.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/get-document.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/get-index.md b/docs/examples/1.6.x/server-nodejs/examples/databases/get-index.md index 3c1039cd1ed..a4b3a45eb86 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/get-index.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/get-index.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/get.md b/docs/examples/1.6.x/server-nodejs/examples/databases/get.md index ca5dd328e1e..a8e80846739 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/get.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/get.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/list-attributes.md b/docs/examples/1.6.x/server-nodejs/examples/databases/list-attributes.md index fb0264f8a11..e7b48fb9f06 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/list-attributes.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/list-attributes.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/list-collections.md b/docs/examples/1.6.x/server-nodejs/examples/databases/list-collections.md index e5f725d1f80..bc31eadf9b9 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/list-collections.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/list-collections.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/list-documents.md b/docs/examples/1.6.x/server-nodejs/examples/databases/list-documents.md index 346fba0abdb..d2514850d80 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/list-documents.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/list-indexes.md b/docs/examples/1.6.x/server-nodejs/examples/databases/list-indexes.md index 7acfc918ef1..86c6c26ec68 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/list-indexes.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/list-indexes.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/list.md b/docs/examples/1.6.x/server-nodejs/examples/databases/list.md index f887719cbd3..06fe6a8462c 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/list.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/list.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/update-boolean-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/update-boolean-attribute.md index e6329b66749..d0d551c3fdd 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/update-boolean-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/update-collection.md b/docs/examples/1.6.x/server-nodejs/examples/databases/update-collection.md index b9bbeb8c45e..2618fc735e2 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/update-collection.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/update-collection.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/update-datetime-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/update-datetime-attribute.md index ef69c7e4b5b..d2378f93caf 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/update-datetime-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/update-document.md b/docs/examples/1.6.x/server-nodejs/examples/databases/update-document.md index 2e087ca7d06..96468037e78 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/update-document.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/update-document.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/update-documents.md b/docs/examples/1.6.x/server-nodejs/examples/databases/update-documents.md new file mode 100644 index 00000000000..62b2271bae0 --- /dev/null +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/update-documents.md @@ -0,0 +1,15 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.updateDocuments( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + {}, // data (optional) + [] // queries (optional) +); diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/update-email-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/update-email-attribute.md index 1fe9e572d42..8b7afbebb54 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/update-email-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/update-email-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/update-enum-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/update-enum-attribute.md index ec9e3bd2cb0..f328132519e 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/update-enum-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/update-float-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/update-float-attribute.md index 6833f876e7e..abb93c28faf 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/update-float-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/update-float-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -12,8 +12,8 @@ const result = await databases.updateFloatAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - null, // min - null, // max null, // default + null, // min (optional) + null, // max (optional) '' // newKey (optional) ); diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/update-integer-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/update-integer-attribute.md index d6d16f52a86..e126f31fd86 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/update-integer-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -12,8 +12,8 @@ const result = await databases.updateIntegerAttribute( '<COLLECTION_ID>', // collectionId '', // key false, // required - null, // min - null, // max null, // default + null, // min (optional) + null, // max (optional) '' // newKey (optional) ); diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/update-ip-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/update-ip-attribute.md index 019b4f2dbf4..1c8ac79dd80 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/update-ip-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/update-relationship-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/update-relationship-attribute.md index 2668380b504..1a7a26cc92d 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/update-relationship-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/update-string-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/update-string-attribute.md index f379fdc0cf9..0e0656ef10d 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/update-string-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/update-string-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -13,6 +13,6 @@ const result = await databases.updateStringAttribute( '', // key false, // required '<DEFAULT>', // default - null, // size (optional) + 1, // size (optional) '' // newKey (optional) ); diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/update-url-attribute.md b/docs/examples/1.6.x/server-nodejs/examples/databases/update-url-attribute.md index 36d10953996..4a2aca0fe98 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/update-url-attribute.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/update-url-attribute.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/update.md b/docs/examples/1.6.x/server-nodejs/examples/databases/update.md index 4b24cdddf90..9c69bfd2cee 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/databases/update.md +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/update.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/databases/upsert-documents.md b/docs/examples/1.6.x/server-nodejs/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..5b4795627d4 --- /dev/null +++ b/docs/examples/1.6.x/server-nodejs/examples/databases/upsert-documents.md @@ -0,0 +1,14 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.upsertDocuments( + '<DATABASE_ID>', // databaseId + '<COLLECTION_ID>', // collectionId + [] // documents (optional) +); diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/create-build.md b/docs/examples/1.6.x/server-nodejs/examples/functions/create-build.md index c026a960c63..c9434c070c1 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/create-build.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/create-build.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/create-deployment.md b/docs/examples/1.6.x/server-nodejs/examples/functions/create-deployment.md index 1928e4c5a93..5ede9549073 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/create-deployment.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/create-deployment.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const fs = require('fs'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/create-execution.md b/docs/examples/1.6.x/server-nodejs/examples/functions/create-execution.md index 4eec409ef09..3c89030ca61 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/create-execution.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/create-execution.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/create-variable.md b/docs/examples/1.6.x/server-nodejs/examples/functions/create-variable.md index 60a93666b89..7146591b714 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/create-variable.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/create-variable.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/create.md b/docs/examples/1.6.x/server-nodejs/examples/functions/create.md index cb4464825c4..90b4300e0ac 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/create.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/create.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/delete-deployment.md b/docs/examples/1.6.x/server-nodejs/examples/functions/delete-deployment.md index a9038bc6eac..f6768ec7397 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/delete-deployment.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/delete-deployment.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/delete-execution.md b/docs/examples/1.6.x/server-nodejs/examples/functions/delete-execution.md index 28b5e415b97..c3e77a68600 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/delete-execution.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/delete-execution.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/delete-variable.md b/docs/examples/1.6.x/server-nodejs/examples/functions/delete-variable.md index f3cf0186d00..7840b1d562d 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/delete-variable.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/delete-variable.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/delete.md b/docs/examples/1.6.x/server-nodejs/examples/functions/delete.md index 43acc4b130b..a2e0a23a2bf 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/delete.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/delete.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/get-deployment-download.md b/docs/examples/1.6.x/server-nodejs/examples/functions/get-deployment-download.md index a15215dd3a0..cde26a43f66 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/get-deployment-download.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/get-deployment-download.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/get-deployment.md b/docs/examples/1.6.x/server-nodejs/examples/functions/get-deployment.md index 1c10a92d4ad..6a55534af4a 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/get-deployment.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/get-deployment.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/get-execution.md b/docs/examples/1.6.x/server-nodejs/examples/functions/get-execution.md index 7be4378c4e0..b9fed557991 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/get-execution.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/get-variable.md b/docs/examples/1.6.x/server-nodejs/examples/functions/get-variable.md index 64150e0f552..3b6135f7dcc 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/get-variable.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/get-variable.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/get.md b/docs/examples/1.6.x/server-nodejs/examples/functions/get.md index 26807e7908c..b88609252e3 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/get.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/get.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/list-deployments.md b/docs/examples/1.6.x/server-nodejs/examples/functions/list-deployments.md index 67c3c3c5ad7..731d1c46cfc 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/list-deployments.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/list-deployments.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/list-executions.md b/docs/examples/1.6.x/server-nodejs/examples/functions/list-executions.md index 26aa02e16e8..81e2379f768 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/list-executions.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/list-runtimes.md b/docs/examples/1.6.x/server-nodejs/examples/functions/list-runtimes.md index 729cce7c2b3..a0f83b2273a 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/list-runtimes.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/list-runtimes.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/list-specifications.md b/docs/examples/1.6.x/server-nodejs/examples/functions/list-specifications.md index 4942bc39187..f918c44053c 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/list-specifications.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/list-specifications.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/list-templates.md b/docs/examples/1.6.x/server-nodejs/examples/functions/list-templates.md deleted file mode 100644 index 6f896cac97d..00000000000 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/list-templates.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const functions = new sdk.Functions(client); - -const result = await functions.listTemplates( - [], // runtimes (optional) - [], // useCases (optional) - 1, // limit (optional) - 0 // offset (optional) -); diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/list-variables.md b/docs/examples/1.6.x/server-nodejs/examples/functions/list-variables.md index f213d0ceef1..4220918fa62 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/list-variables.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/list-variables.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/list.md b/docs/examples/1.6.x/server-nodejs/examples/functions/list.md index ba7365f936a..af5082c25e8 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/list.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/list.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/update-deployment-build.md b/docs/examples/1.6.x/server-nodejs/examples/functions/update-deployment-build.md index b492af8254a..7b5594c0daa 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/update-deployment-build.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/update-deployment-build.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/update-deployment.md b/docs/examples/1.6.x/server-nodejs/examples/functions/update-deployment.md index 82543900df7..e27bad4df52 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/update-deployment.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/update-deployment.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/update-variable.md b/docs/examples/1.6.x/server-nodejs/examples/functions/update-variable.md index 657b0bd10ec..e24ff882149 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/update-variable.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/update-variable.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/functions/update.md b/docs/examples/1.6.x/server-nodejs/examples/functions/update.md index b82dc35f368..b6de177cffa 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/functions/update.md +++ b/docs/examples/1.6.x/server-nodejs/examples/functions/update.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/graphql/mutation.md b/docs/examples/1.6.x/server-nodejs/examples/graphql/mutation.md index 64b2393426e..8031a5285a4 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/graphql/mutation.md +++ b/docs/examples/1.6.x/server-nodejs/examples/graphql/mutation.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/graphql/query.md b/docs/examples/1.6.x/server-nodejs/examples/graphql/query.md index 24a6e56e67b..15456754cbb 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/graphql/query.md +++ b/docs/examples/1.6.x/server-nodejs/examples/graphql/query.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-antivirus.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-antivirus.md index fc98ff937c8..9efa2d803c0 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-antivirus.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-antivirus.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-cache.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-cache.md index 9289cad7e44..014340123d4 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-cache.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-cache.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-certificate.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-certificate.md index 637f30bd211..ec9129344c8 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-certificate.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-certificate.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-d-b.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-d-b.md index 6cca907ba35..0d86d08d1c5 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-d-b.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-d-b.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-failed-jobs.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-failed-jobs.md index 2ce2dfb6eb1..d88b7f2bfd1 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-failed-jobs.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-failed-jobs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-pub-sub.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-pub-sub.md index 36dc5ba39e9..b5b97374d5b 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-pub-sub.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-pub-sub.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-builds.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-builds.md index ef09f92d929..929f9769fbb 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-builds.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-builds.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-certificates.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-certificates.md index 1095c398201..33e71ecac69 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-certificates.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-certificates.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-databases.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-databases.md index fcd113aaa3d..ca409c1ba52 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-databases.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-databases.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-deletes.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-deletes.md index 6a6f5175d7e..9f2d6f8cf50 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-deletes.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-deletes.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-functions.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-functions.md index 05cd6e63dc9..0392db1079c 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-functions.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-functions.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-logs.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-logs.md index e0a75b8de01..a71ff133978 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-logs.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-logs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-mails.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-mails.md index 253e9ba004d..8c45c1a1943 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-mails.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-mails.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-messaging.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-messaging.md index 3db1f6f5aee..46160a0e885 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-messaging.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-messaging.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-migrations.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-migrations.md index a2034495376..5f8d262e301 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-migrations.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-migrations.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-stats-resources.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..1b16e6d5b8f --- /dev/null +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-stats-resources.md @@ -0,0 +1,12 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('<YOUR_PROJECT_ID>') // Your project ID + .setKey('<YOUR_API_KEY>'); // Your secret API key + +const health = new sdk.Health(client); + +const result = await health.getQueueStatsResources( + null // threshold (optional) +); diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-usage-dump.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-usage-dump.md index 412015c678d..b26b6c330b9 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-usage-dump.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-usage.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-usage.md index 919d0973e25..2a20620cd26 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-usage.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-usage.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-webhooks.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-webhooks.md index 54b6ba4dd2a..acc2098365d 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue-webhooks.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue.md index b63d2f1afcd..0cbda6383f5 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-queue.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-queue.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-storage-local.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-storage-local.md index d04610df9b6..0ea8e0e27f4 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-storage-local.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-storage-local.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-storage.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-storage.md index cd6d494d846..d199800559c 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-storage.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-storage.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get-time.md b/docs/examples/1.6.x/server-nodejs/examples/health/get-time.md index 71caa3ff8a5..cd4f42e33e4 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get-time.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get-time.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/health/get.md b/docs/examples/1.6.x/server-nodejs/examples/health/get.md index d92cb944aca..e10c4e28f52 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/health/get.md +++ b/docs/examples/1.6.x/server-nodejs/examples/health/get.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/locale/get.md b/docs/examples/1.6.x/server-nodejs/examples/locale/get.md index eb7353d3a8f..d57eb8f241a 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/locale/get.md +++ b/docs/examples/1.6.x/server-nodejs/examples/locale/get.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/locale/list-codes.md b/docs/examples/1.6.x/server-nodejs/examples/locale/list-codes.md index c95a8522389..280d14ae6ed 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/server-nodejs/examples/locale/list-codes.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/locale/list-continents.md b/docs/examples/1.6.x/server-nodejs/examples/locale/list-continents.md index ffce38e71eb..d04d6d6a476 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/server-nodejs/examples/locale/list-continents.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/server-nodejs/examples/locale/list-countries-e-u.md index 3bd63b33a6f..6e41074b613 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/server-nodejs/examples/locale/list-countries-e-u.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/server-nodejs/examples/locale/list-countries-phones.md index be39d0f87cf..9621e9cbfca 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/server-nodejs/examples/locale/list-countries-phones.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/locale/list-countries.md b/docs/examples/1.6.x/server-nodejs/examples/locale/list-countries.md index 5496a1f747d..a81b1581f39 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/server-nodejs/examples/locale/list-countries.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/locale/list-currencies.md b/docs/examples/1.6.x/server-nodejs/examples/locale/list-currencies.md index ff67f9f78e5..a585fd33ae6 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/server-nodejs/examples/locale/list-currencies.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/locale/list-languages.md b/docs/examples/1.6.x/server-nodejs/examples/locale/list-languages.md index d6753d33544..aea0fadf896 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/server-nodejs/examples/locale/list-languages.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-apns-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-apns-provider.md index fedbc556e32..a28309023a9 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-apns-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-email.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-email.md index 35ac684b93e..b4b1f6622aa 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-email.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-email.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-fcm-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-fcm-provider.md index 80ffa5839a1..a8af6ba12cc 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-fcm-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-mailgun-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-mailgun-provider.md index 2b5f657182e..ee49f64f7c7 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-mailgun-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-msg91provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-msg91provider.md index c8dcb38592c..e7075dc3b8d 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-msg91provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-push.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-push.md index 54103e11f79..bd89f761fb5 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-push.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-push.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -9,8 +9,8 @@ const messaging = new sdk.Messaging(client); const result = await messaging.createPush( '<MESSAGE_ID>', // messageId - '<TITLE>', // title - '<BODY>', // body + '<TITLE>', // title (optional) + '<BODY>', // body (optional) [], // topics (optional) [], // users (optional) [], // targets (optional) @@ -21,7 +21,10 @@ const result = await messaging.createPush( '<SOUND>', // sound (optional) '<COLOR>', // color (optional) '<TAG>', // tag (optional) - '<BADGE>', // badge (optional) + null, // badge (optional) false, // draft (optional) - '' // scheduledAt (optional) + '', // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + sdk.MessagePriority.Normal // priority (optional) ); diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-sendgrid-provider.md index 65d4f4026af..8cde02e80c3 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-sendgrid-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-sms.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-sms.md index 75dce904f27..226f47c8d48 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-sms.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-sms.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-smtp-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-smtp-provider.md index 9c69f276711..50a8d202c5e 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-smtp-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-subscriber.md index e5d2a9774c0..9874d072b89 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-subscriber.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-telesign-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-telesign-provider.md index 544be15a2c6..b8771721632 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-telesign-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-textmagic-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-textmagic-provider.md index ef41b803af8..b40d5ee4e75 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-textmagic-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-topic.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-topic.md index 22fe4121ceb..35c93eadca0 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-topic.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-topic.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-twilio-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-twilio-provider.md index 908f09ed1d7..4dcb9a841d2 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-twilio-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-vonage-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-vonage-provider.md index 78270b7f841..493cd2b6602 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/create-vonage-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/delete-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/delete-provider.md index fd664515fe4..23b474f787d 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/delete-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/delete-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/delete-subscriber.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/delete-subscriber.md index aec3a7ed5df..1f5e21af933 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/delete-subscriber.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setJWT('<YOUR_JWT>'); // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/delete-topic.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/delete-topic.md index 7b4a360e8c4..af39f73491c 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/delete-topic.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/delete-topic.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/delete.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/delete.md index d4f8bfcc6d1..fd49104a496 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/delete.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/delete.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/get-message.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/get-message.md index 7b466226854..f83ab51c231 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/get-message.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/get-message.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/get-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/get-provider.md index 796bcbc768c..2f52698bfc9 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/get-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/get-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/get-subscriber.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/get-subscriber.md index 3930e54bcbe..5132f1772a5 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/get-subscriber.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/get-subscriber.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/get-topic.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/get-topic.md index 68fda14e940..98e38383d4e 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/get-topic.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/get-topic.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-message-logs.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-message-logs.md index 01b941b652b..56e1288af7b 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-message-logs.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-message-logs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-messages.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-messages.md index 4c0ee7a3072..db0785ece85 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-messages.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-messages.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-provider-logs.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-provider-logs.md index 625fedb2b93..6cb2a01df48 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-provider-logs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-providers.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-providers.md index 4d3a63b93e8..aefb41d15ab 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-providers.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-providers.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-subscriber-logs.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-subscriber-logs.md index 61077f299d5..8d46a085787 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-subscriber-logs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-subscribers.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-subscribers.md index 85b91ca5fae..167b48e978e 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-subscribers.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-subscribers.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-targets.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-targets.md index cafdf9bab1a..971285d87cc 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-targets.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-targets.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-topic-logs.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-topic-logs.md index fe0a09487eb..39e82954d1f 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-topic-logs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-topics.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-topics.md index 5d0419a7a56..6fd94bba42e 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/list-topics.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/list-topics.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-apns-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-apns-provider.md index 23d806e0138..e782b8c3f7b 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-apns-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-email.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-email.md index a6798eeb6c5..2ea2941efd7 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-email.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-email.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-fcm-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-fcm-provider.md index 3d343993aae..9184f283d08 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-fcm-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-mailgun-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-mailgun-provider.md index 5bcc4d1ae47..a1ac18fd602 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-mailgun-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-msg91provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-msg91provider.md index 02f091f3d75..c66b91f8c0c 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-msg91provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-push.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-push.md index ec87ecf7cfc..db52bee3734 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-push.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-push.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key @@ -23,5 +23,8 @@ const result = await messaging.updatePush( '<TAG>', // tag (optional) null, // badge (optional) false, // draft (optional) - '' // scheduledAt (optional) + '', // scheduledAt (optional) + false, // contentAvailable (optional) + false, // critical (optional) + sdk.MessagePriority.Normal // priority (optional) ); diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-sendgrid-provider.md index 22a5fe59643..8420a2fac29 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-sendgrid-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-sms.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-sms.md index 03c266be58b..98ee6feb236 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-sms.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-sms.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-smtp-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-smtp-provider.md index 35b744347bb..0bbe4cd2cbd 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-smtp-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-telesign-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-telesign-provider.md index dd668f82c5c..2f23a3b11f0 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-telesign-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-textmagic-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-textmagic-provider.md index d90c95d845b..6fb6c82e8f0 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-textmagic-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-topic.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-topic.md index 08690a195e1..63309700779 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-topic.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-topic.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-twilio-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-twilio-provider.md index c6d2b8c0777..e4667f56ae2 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-twilio-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-vonage-provider.md b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-vonage-provider.md index ba9f1029509..b95398b4ea5 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.6.x/server-nodejs/examples/messaging/update-vonage-provider.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/storage/create-bucket.md b/docs/examples/1.6.x/server-nodejs/examples/storage/create-bucket.md index 91a5126e901..fc318f169d5 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/storage/create-bucket.md +++ b/docs/examples/1.6.x/server-nodejs/examples/storage/create-bucket.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/storage/create-file.md b/docs/examples/1.6.x/server-nodejs/examples/storage/create-file.md index 067307cc5d8..b84d9ac6535 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/storage/create-file.md +++ b/docs/examples/1.6.x/server-nodejs/examples/storage/create-file.md @@ -2,7 +2,7 @@ const sdk = require('node-appwrite'); const fs = require('fs'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/storage/delete-bucket.md b/docs/examples/1.6.x/server-nodejs/examples/storage/delete-bucket.md index 606ffba7197..c2067efda2b 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/storage/delete-bucket.md +++ b/docs/examples/1.6.x/server-nodejs/examples/storage/delete-bucket.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/storage/delete-file.md b/docs/examples/1.6.x/server-nodejs/examples/storage/delete-file.md index c5b9df92960..4d2e7128cd8 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/storage/delete-file.md +++ b/docs/examples/1.6.x/server-nodejs/examples/storage/delete-file.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/storage/get-bucket.md b/docs/examples/1.6.x/server-nodejs/examples/storage/get-bucket.md index 711753d4095..c8a0b1c55df 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/storage/get-bucket.md +++ b/docs/examples/1.6.x/server-nodejs/examples/storage/get-bucket.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/storage/get-file-download.md b/docs/examples/1.6.x/server-nodejs/examples/storage/get-file-download.md index cbd4c1615c3..051f51c842b 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/server-nodejs/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/storage/get-file-preview.md b/docs/examples/1.6.x/server-nodejs/examples/storage/get-file-preview.md index be7b974be83..45da053c504 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/server-nodejs/examples/storage/get-file-preview.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/storage/get-file-view.md b/docs/examples/1.6.x/server-nodejs/examples/storage/get-file-view.md index f5722d06cd5..fd06b3088ba 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/server-nodejs/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/storage/get-file.md b/docs/examples/1.6.x/server-nodejs/examples/storage/get-file.md index 61b14e6bbac..1a6b500013a 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/storage/get-file.md +++ b/docs/examples/1.6.x/server-nodejs/examples/storage/get-file.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/storage/list-buckets.md b/docs/examples/1.6.x/server-nodejs/examples/storage/list-buckets.md index ce012c450e3..3c4d4b14f74 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/storage/list-buckets.md +++ b/docs/examples/1.6.x/server-nodejs/examples/storage/list-buckets.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/storage/list-files.md b/docs/examples/1.6.x/server-nodejs/examples/storage/list-files.md index a9dbaa8f80b..fb595efc05b 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/storage/list-files.md +++ b/docs/examples/1.6.x/server-nodejs/examples/storage/list-files.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/storage/update-bucket.md b/docs/examples/1.6.x/server-nodejs/examples/storage/update-bucket.md index 31e131675fa..24e4872d8de 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/storage/update-bucket.md +++ b/docs/examples/1.6.x/server-nodejs/examples/storage/update-bucket.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/storage/update-file.md b/docs/examples/1.6.x/server-nodejs/examples/storage/update-file.md index c60b2e4a8bf..7eed687cf51 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/storage/update-file.md +++ b/docs/examples/1.6.x/server-nodejs/examples/storage/update-file.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/teams/create-membership.md b/docs/examples/1.6.x/server-nodejs/examples/teams/create-membership.md index 46066241578..7994423be04 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/teams/create-membership.md +++ b/docs/examples/1.6.x/server-nodejs/examples/teams/create-membership.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/teams/create.md b/docs/examples/1.6.x/server-nodejs/examples/teams/create.md index cecf4f60241..94de494bf0a 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/teams/create.md +++ b/docs/examples/1.6.x/server-nodejs/examples/teams/create.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/teams/delete-membership.md b/docs/examples/1.6.x/server-nodejs/examples/teams/delete-membership.md index 933cd7ccf8c..5264af7f134 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/teams/delete-membership.md +++ b/docs/examples/1.6.x/server-nodejs/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/teams/delete.md b/docs/examples/1.6.x/server-nodejs/examples/teams/delete.md index 50963b3e1df..151bfb3f70d 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/teams/delete.md +++ b/docs/examples/1.6.x/server-nodejs/examples/teams/delete.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/teams/get-membership.md b/docs/examples/1.6.x/server-nodejs/examples/teams/get-membership.md index b638adeb125..a8e9fc73112 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/server-nodejs/examples/teams/get-membership.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/teams/get-prefs.md b/docs/examples/1.6.x/server-nodejs/examples/teams/get-prefs.md index 68f19a41173..18afdaa67ba 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/server-nodejs/examples/teams/get-prefs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/teams/get.md b/docs/examples/1.6.x/server-nodejs/examples/teams/get.md index 38ee6e4c41b..8afc800aa96 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/teams/get.md +++ b/docs/examples/1.6.x/server-nodejs/examples/teams/get.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/teams/list-memberships.md b/docs/examples/1.6.x/server-nodejs/examples/teams/list-memberships.md index c66ec7d601a..4fead97b8f0 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/server-nodejs/examples/teams/list-memberships.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/teams/list.md b/docs/examples/1.6.x/server-nodejs/examples/teams/list.md index d50527bf127..17fe5852244 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/teams/list.md +++ b/docs/examples/1.6.x/server-nodejs/examples/teams/list.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/teams/update-membership-status.md b/docs/examples/1.6.x/server-nodejs/examples/teams/update-membership-status.md index 80660e94f9b..74fd9580fe3 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/teams/update-membership-status.md +++ b/docs/examples/1.6.x/server-nodejs/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/teams/update-membership.md b/docs/examples/1.6.x/server-nodejs/examples/teams/update-membership.md index 068cc55bca2..649630ded9b 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/teams/update-membership.md +++ b/docs/examples/1.6.x/server-nodejs/examples/teams/update-membership.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/teams/update-name.md b/docs/examples/1.6.x/server-nodejs/examples/teams/update-name.md index 217412020fe..571f7ce399e 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/teams/update-name.md +++ b/docs/examples/1.6.x/server-nodejs/examples/teams/update-name.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/teams/update-prefs.md b/docs/examples/1.6.x/server-nodejs/examples/teams/update-prefs.md index 9d6a6f5f87d..b054694df5d 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/teams/update-prefs.md +++ b/docs/examples/1.6.x/server-nodejs/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/create-argon2user.md b/docs/examples/1.6.x/server-nodejs/examples/users/create-argon2user.md index e96a797d052..dce3646a48e 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/create-argon2user.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/create-argon2user.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/create-bcrypt-user.md b/docs/examples/1.6.x/server-nodejs/examples/users/create-bcrypt-user.md index be14d217a03..d010676d299 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/create-bcrypt-user.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/create-j-w-t.md b/docs/examples/1.6.x/server-nodejs/examples/users/create-j-w-t.md index e615b1ee5b0..a2c9b590561 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/create-j-w-t.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/create-j-w-t.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/create-m-d5user.md b/docs/examples/1.6.x/server-nodejs/examples/users/create-m-d5user.md index 77a7d70885d..954374c37d3 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/create-m-d5user.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/create-m-d5user.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-nodejs/examples/users/create-mfa-recovery-codes.md index 42945293c12..8b2ed93b237 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/create-p-h-pass-user.md b/docs/examples/1.6.x/server-nodejs/examples/users/create-p-h-pass-user.md index a5784d7ded5..eca31fe659e 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/create-p-h-pass-user.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/create-s-h-a-user.md b/docs/examples/1.6.x/server-nodejs/examples/users/create-s-h-a-user.md index a72e373040b..e7d8588fca7 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/create-s-h-a-user.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/create-scrypt-modified-user.md b/docs/examples/1.6.x/server-nodejs/examples/users/create-scrypt-modified-user.md index b27fe318aaa..831107b5694 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/create-scrypt-modified-user.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/create-scrypt-user.md b/docs/examples/1.6.x/server-nodejs/examples/users/create-scrypt-user.md index 60b61be49f6..2c2da7e0554 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/create-scrypt-user.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/create-scrypt-user.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/create-session.md b/docs/examples/1.6.x/server-nodejs/examples/users/create-session.md index 2672905ef78..9d8cc03ba0f 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/create-session.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/create-session.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/create-target.md b/docs/examples/1.6.x/server-nodejs/examples/users/create-target.md index 099b00379bc..7b9e6b03472 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/create-target.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/create-target.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/create-token.md b/docs/examples/1.6.x/server-nodejs/examples/users/create-token.md index a399313104f..de7d866e8c3 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/create-token.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/create-token.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/create.md b/docs/examples/1.6.x/server-nodejs/examples/users/create.md index e8fb4cd9270..025c15ada10 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/create.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/create.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/delete-identity.md b/docs/examples/1.6.x/server-nodejs/examples/users/delete-identity.md index 46f5203da1f..4c92f27d253 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/delete-identity.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/delete-identity.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-nodejs/examples/users/delete-mfa-authenticator.md index 1f00e963ea1..456242e22da 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/delete-mfa-authenticator.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/delete-session.md b/docs/examples/1.6.x/server-nodejs/examples/users/delete-session.md index 168f4948bce..3f08370f3b5 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/delete-session.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/delete-session.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/delete-sessions.md b/docs/examples/1.6.x/server-nodejs/examples/users/delete-sessions.md index 4c320fc4a7c..48714a0db1b 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/delete-sessions.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/delete-sessions.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/delete-target.md b/docs/examples/1.6.x/server-nodejs/examples/users/delete-target.md index 6505a8bb49c..ba7e6afd9ce 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/delete-target.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/delete-target.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/delete.md b/docs/examples/1.6.x/server-nodejs/examples/users/delete.md index 4d6c9963e75..8fdd9e90b8a 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/delete.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/delete.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-nodejs/examples/users/get-mfa-recovery-codes.md index 3e97065fa1d..233c3375eca 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/get-mfa-recovery-codes.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/get-prefs.md b/docs/examples/1.6.x/server-nodejs/examples/users/get-prefs.md index fda205b04d0..61933872e4b 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/get-prefs.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/get-prefs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/get-target.md b/docs/examples/1.6.x/server-nodejs/examples/users/get-target.md index 1d93a1b1623..00dc1f118b1 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/get-target.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/get-target.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/get.md b/docs/examples/1.6.x/server-nodejs/examples/users/get.md index 9d361573253..640aa6315c5 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/get.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/get.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/list-identities.md b/docs/examples/1.6.x/server-nodejs/examples/users/list-identities.md index 0ba1345397e..819b1688efe 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/list-identities.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/list-identities.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/list-logs.md b/docs/examples/1.6.x/server-nodejs/examples/users/list-logs.md index 5636e021b93..c1155d55e25 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/list-logs.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/list-logs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/list-memberships.md b/docs/examples/1.6.x/server-nodejs/examples/users/list-memberships.md index bc4ce5e8b75..080688a9f68 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/list-memberships.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/list-memberships.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/list-mfa-factors.md b/docs/examples/1.6.x/server-nodejs/examples/users/list-mfa-factors.md index 6396a694e50..8bffa288343 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/list-mfa-factors.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/list-sessions.md b/docs/examples/1.6.x/server-nodejs/examples/users/list-sessions.md index de4aa3d424e..51ba0814c49 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/list-sessions.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/list-sessions.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/list-targets.md b/docs/examples/1.6.x/server-nodejs/examples/users/list-targets.md index 2d2a6d26c4e..d991dcca73a 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/list-targets.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/list-targets.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/list.md b/docs/examples/1.6.x/server-nodejs/examples/users/list.md index 664d32c625e..2bf765bea29 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/list.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/list.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/update-email-verification.md b/docs/examples/1.6.x/server-nodejs/examples/users/update-email-verification.md index 560ca3e870b..9dac2d0e548 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/update-email-verification.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/update-email-verification.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/update-email.md b/docs/examples/1.6.x/server-nodejs/examples/users/update-email.md index eef17615ee2..0a8b1aa7af4 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/update-email.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/update-email.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/update-labels.md b/docs/examples/1.6.x/server-nodejs/examples/users/update-labels.md index ec27094275a..db9e8778adc 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/update-labels.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/update-labels.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-nodejs/examples/users/update-mfa-recovery-codes.md index 56ef9b20222..9d470853703 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/update-mfa.md b/docs/examples/1.6.x/server-nodejs/examples/users/update-mfa.md index 7c7944429a0..b4acc79938f 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/update-mfa.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/update-mfa.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/update-name.md b/docs/examples/1.6.x/server-nodejs/examples/users/update-name.md index 5478a78bb06..581e57b7556 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/update-name.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/update-name.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/update-password.md b/docs/examples/1.6.x/server-nodejs/examples/users/update-password.md index 856e3a8576a..f4af49d67e1 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/update-password.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/update-password.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/update-phone-verification.md b/docs/examples/1.6.x/server-nodejs/examples/users/update-phone-verification.md index 654e7833d00..ecbe7591dff 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/update-phone-verification.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/update-phone-verification.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/update-phone.md b/docs/examples/1.6.x/server-nodejs/examples/users/update-phone.md index 8cc4af0513e..45e5a6582aa 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/update-phone.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/update-phone.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/update-prefs.md b/docs/examples/1.6.x/server-nodejs/examples/users/update-prefs.md index f80dae11786..bb7eff8d6bd 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/update-prefs.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/update-prefs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/update-status.md b/docs/examples/1.6.x/server-nodejs/examples/users/update-status.md index 04a18a26365..57f64ce9426 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/update-status.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/update-status.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-nodejs/examples/users/update-target.md b/docs/examples/1.6.x/server-nodejs/examples/users/update-target.md index 3322867dba9..c6e4d9a1b00 100644 --- a/docs/examples/1.6.x/server-nodejs/examples/users/update-target.md +++ b/docs/examples/1.6.x/server-nodejs/examples/users/update-target.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/account/create-anonymous-session.md b/docs/examples/1.6.x/server-php/examples/account/create-anonymous-session.md index 4cf953855c7..b3e811e18d9 100644 --- a/docs/examples/1.6.x/server-php/examples/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/server-php/examples/account/create-anonymous-session.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.6.x/server-php/examples/account/create-email-password-session.md b/docs/examples/1.6.x/server-php/examples/account/create-email-password-session.md index b0e4d75c900..827b1292c54 100644 --- a/docs/examples/1.6.x/server-php/examples/account/create-email-password-session.md +++ b/docs/examples/1.6.x/server-php/examples/account/create-email-password-session.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.6.x/server-php/examples/account/create-email-token.md b/docs/examples/1.6.x/server-php/examples/account/create-email-token.md index afa9bc90940..b2c553291b0 100644 --- a/docs/examples/1.6.x/server-php/examples/account/create-email-token.md +++ b/docs/examples/1.6.x/server-php/examples/account/create-email-token.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.6.x/server-php/examples/account/create-j-w-t.md b/docs/examples/1.6.x/server-php/examples/account/create-j-w-t.md index 2658a66f2e6..3dc486502db 100644 --- a/docs/examples/1.6.x/server-php/examples/account/create-j-w-t.md +++ b/docs/examples/1.6.x/server-php/examples/account/create-j-w-t.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.6.x/server-php/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/server-php/examples/account/create-magic-u-r-l-token.md index 1ac0087c57e..639b1997569 100644 --- a/docs/examples/1.6.x/server-php/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/server-php/examples/account/create-magic-u-r-l-token.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.6.x/server-php/examples/account/create-mfa-authenticator.md b/docs/examples/1.6.x/server-php/examples/account/create-mfa-authenticator.md index 7833852043b..da3b4634e0c 100644 --- a/docs/examples/1.6.x/server-php/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-php/examples/account/create-mfa-authenticator.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; use Appwrite\Enums\AuthenticatorType; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/create-mfa-challenge.md b/docs/examples/1.6.x/server-php/examples/account/create-mfa-challenge.md index a58d674d301..faa679fdf1d 100644 --- a/docs/examples/1.6.x/server-php/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/server-php/examples/account/create-mfa-challenge.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; use Appwrite\Enums\AuthenticationFactor; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.6.x/server-php/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-php/examples/account/create-mfa-recovery-codes.md index d82a97ab0a7..223c95be973 100644 --- a/docs/examples/1.6.x/server-php/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-php/examples/account/create-mfa-recovery-codes.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/server-php/examples/account/create-o-auth2token.md index 21b9ef1313d..1f91db79fd9 100644 --- a/docs/examples/1.6.x/server-php/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/server-php/examples/account/create-o-auth2token.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; use Appwrite\Enums\OAuthProvider; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.6.x/server-php/examples/account/create-phone-token.md b/docs/examples/1.6.x/server-php/examples/account/create-phone-token.md index 72462ff1752..93c185479ed 100644 --- a/docs/examples/1.6.x/server-php/examples/account/create-phone-token.md +++ b/docs/examples/1.6.x/server-php/examples/account/create-phone-token.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.6.x/server-php/examples/account/create-phone-verification.md b/docs/examples/1.6.x/server-php/examples/account/create-phone-verification.md index cb81da53af3..a152667313d 100644 --- a/docs/examples/1.6.x/server-php/examples/account/create-phone-verification.md +++ b/docs/examples/1.6.x/server-php/examples/account/create-phone-verification.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/create-recovery.md b/docs/examples/1.6.x/server-php/examples/account/create-recovery.md index a924379cd49..c15e41d545c 100644 --- a/docs/examples/1.6.x/server-php/examples/account/create-recovery.md +++ b/docs/examples/1.6.x/server-php/examples/account/create-recovery.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/create-session.md b/docs/examples/1.6.x/server-php/examples/account/create-session.md index aa089ae586a..2ff630a2c27 100644 --- a/docs/examples/1.6.x/server-php/examples/account/create-session.md +++ b/docs/examples/1.6.x/server-php/examples/account/create-session.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.6.x/server-php/examples/account/create-verification.md b/docs/examples/1.6.x/server-php/examples/account/create-verification.md index 99929f1a2a7..4628175fab8 100644 --- a/docs/examples/1.6.x/server-php/examples/account/create-verification.md +++ b/docs/examples/1.6.x/server-php/examples/account/create-verification.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/create.md b/docs/examples/1.6.x/server-php/examples/account/create.md index 2b25cde4575..f92155b6ab5 100644 --- a/docs/examples/1.6.x/server-php/examples/account/create.md +++ b/docs/examples/1.6.x/server-php/examples/account/create.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.6.x/server-php/examples/account/delete-identity.md b/docs/examples/1.6.x/server-php/examples/account/delete-identity.md index 31e5f429468..fd66d3ae24b 100644 --- a/docs/examples/1.6.x/server-php/examples/account/delete-identity.md +++ b/docs/examples/1.6.x/server-php/examples/account/delete-identity.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-php/examples/account/delete-mfa-authenticator.md index 5367409d4a6..42806f8358f 100644 --- a/docs/examples/1.6.x/server-php/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-php/examples/account/delete-mfa-authenticator.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; use Appwrite\Enums\AuthenticatorType; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/delete-session.md b/docs/examples/1.6.x/server-php/examples/account/delete-session.md index d44aca87fa7..9233ae14e8a 100644 --- a/docs/examples/1.6.x/server-php/examples/account/delete-session.md +++ b/docs/examples/1.6.x/server-php/examples/account/delete-session.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/delete-sessions.md b/docs/examples/1.6.x/server-php/examples/account/delete-sessions.md index bf9e5c1fdcf..557fd6d3aae 100644 --- a/docs/examples/1.6.x/server-php/examples/account/delete-sessions.md +++ b/docs/examples/1.6.x/server-php/examples/account/delete-sessions.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-php/examples/account/get-mfa-recovery-codes.md index 43c3f06b375..bafd6d85207 100644 --- a/docs/examples/1.6.x/server-php/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-php/examples/account/get-mfa-recovery-codes.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/get-prefs.md b/docs/examples/1.6.x/server-php/examples/account/get-prefs.md index 808699ab445..c7077affe08 100644 --- a/docs/examples/1.6.x/server-php/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/server-php/examples/account/get-prefs.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/get-session.md b/docs/examples/1.6.x/server-php/examples/account/get-session.md index dfd1c23339e..be2671348ec 100644 --- a/docs/examples/1.6.x/server-php/examples/account/get-session.md +++ b/docs/examples/1.6.x/server-php/examples/account/get-session.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/get.md b/docs/examples/1.6.x/server-php/examples/account/get.md index 427632d2d0a..30cb7b2af58 100644 --- a/docs/examples/1.6.x/server-php/examples/account/get.md +++ b/docs/examples/1.6.x/server-php/examples/account/get.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/list-identities.md b/docs/examples/1.6.x/server-php/examples/account/list-identities.md index d9289212770..a7d0a85c660 100644 --- a/docs/examples/1.6.x/server-php/examples/account/list-identities.md +++ b/docs/examples/1.6.x/server-php/examples/account/list-identities.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/list-logs.md b/docs/examples/1.6.x/server-php/examples/account/list-logs.md index 72199a2d957..cc7a173d2e0 100644 --- a/docs/examples/1.6.x/server-php/examples/account/list-logs.md +++ b/docs/examples/1.6.x/server-php/examples/account/list-logs.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/server-php/examples/account/list-mfa-factors.md index d670b97c8ab..6756573cdb4 100644 --- a/docs/examples/1.6.x/server-php/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-php/examples/account/list-mfa-factors.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/list-sessions.md b/docs/examples/1.6.x/server-php/examples/account/list-sessions.md index bbc1b788abd..7f9749f7be6 100644 --- a/docs/examples/1.6.x/server-php/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/server-php/examples/account/list-sessions.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/update-email.md b/docs/examples/1.6.x/server-php/examples/account/update-email.md index c5fd462047b..c7c0d485eae 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-email.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-email.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/update-m-f-a.md b/docs/examples/1.6.x/server-php/examples/account/update-m-f-a.md index 9489b96a150..a1978e63ac3 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-m-f-a.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/server-php/examples/account/update-magic-u-r-l-session.md index e80adf9a865..fc42cbe6d1d 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-magic-u-r-l-session.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.6.x/server-php/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/server-php/examples/account/update-mfa-authenticator.md index d3c36a3a9ff..6a09d95a101 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-mfa-authenticator.md @@ -5,7 +5,7 @@ use Appwrite\Services\Account; use Appwrite\Enums\AuthenticatorType; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/server-php/examples/account/update-mfa-challenge.md index dcc5dcdf514..03ace31144b 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-mfa-challenge.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-php/examples/account/update-mfa-recovery-codes.md index cf6204a3003..c7ec6cb2b27 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-mfa-recovery-codes.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/update-name.md b/docs/examples/1.6.x/server-php/examples/account/update-name.md index a55a0767916..2603b6e68b4 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-name.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-name.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/update-password.md b/docs/examples/1.6.x/server-php/examples/account/update-password.md index 9ef275701c6..c5101381e4e 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-password.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-password.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/update-phone-session.md b/docs/examples/1.6.x/server-php/examples/account/update-phone-session.md index 973d29d04c2..12d71c2fcd1 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-phone-session.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-phone-session.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>'); // Your project ID $account = new Account($client); diff --git a/docs/examples/1.6.x/server-php/examples/account/update-phone-verification.md b/docs/examples/1.6.x/server-php/examples/account/update-phone-verification.md index a1164474c08..df59922996d 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-phone-verification.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-phone-verification.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/update-phone.md b/docs/examples/1.6.x/server-php/examples/account/update-phone.md index be489f7d640..853cb62fce4 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-phone.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-phone.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/update-prefs.md b/docs/examples/1.6.x/server-php/examples/account/update-prefs.md index 0d47ee89573..698da0fd8a5 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-prefs.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/update-recovery.md b/docs/examples/1.6.x/server-php/examples/account/update-recovery.md index 523a61779e8..63518b00297 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-recovery.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-recovery.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/update-session.md b/docs/examples/1.6.x/server-php/examples/account/update-session.md index 3eebb12c3c9..11cb4c7d980 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-session.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-session.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/update-status.md b/docs/examples/1.6.x/server-php/examples/account/update-status.md index d343c95f2a0..7c8075e5c7e 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-status.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-status.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/account/update-verification.md b/docs/examples/1.6.x/server-php/examples/account/update-verification.md index a03e87fd96e..60ec0b3196a 100644 --- a/docs/examples/1.6.x/server-php/examples/account/update-verification.md +++ b/docs/examples/1.6.x/server-php/examples/account/update-verification.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/avatars/get-browser.md b/docs/examples/1.6.x/server-php/examples/avatars/get-browser.md index d7e7e76e857..c65c31dae31 100644 --- a/docs/examples/1.6.x/server-php/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/server-php/examples/avatars/get-browser.md @@ -5,7 +5,7 @@ use Appwrite\Services\Avatars; use Appwrite\Enums\Browser; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/server-php/examples/avatars/get-credit-card.md index 55e2516f31d..1f19ee2797c 100644 --- a/docs/examples/1.6.x/server-php/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/server-php/examples/avatars/get-credit-card.md @@ -5,7 +5,7 @@ use Appwrite\Services\Avatars; use Appwrite\Enums\CreditCard; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/avatars/get-favicon.md b/docs/examples/1.6.x/server-php/examples/avatars/get-favicon.md index 5f5c5d7d5bf..1e671864c84 100644 --- a/docs/examples/1.6.x/server-php/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/server-php/examples/avatars/get-favicon.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Avatars; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/avatars/get-flag.md b/docs/examples/1.6.x/server-php/examples/avatars/get-flag.md index 2e5e4b648c8..8ffb39c30e4 100644 --- a/docs/examples/1.6.x/server-php/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/server-php/examples/avatars/get-flag.md @@ -5,7 +5,7 @@ use Appwrite\Services\Avatars; use Appwrite\Enums\Flag; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/avatars/get-image.md b/docs/examples/1.6.x/server-php/examples/avatars/get-image.md index 0ab77fea0d7..e1555453ec1 100644 --- a/docs/examples/1.6.x/server-php/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/server-php/examples/avatars/get-image.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Avatars; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/avatars/get-initials.md b/docs/examples/1.6.x/server-php/examples/avatars/get-initials.md index 2bd0bbeb398..d84e23a157b 100644 --- a/docs/examples/1.6.x/server-php/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/server-php/examples/avatars/get-initials.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Avatars; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/avatars/get-q-r.md b/docs/examples/1.6.x/server-php/examples/avatars/get-q-r.md index 05f8128c911..0d5936af6b7 100644 --- a/docs/examples/1.6.x/server-php/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/server-php/examples/avatars/get-q-r.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Avatars; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/databases/create-boolean-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/create-boolean-attribute.md index 823dd033452..805d0221949 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/create-boolean-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/create-collection.md b/docs/examples/1.6.x/server-php/examples/databases/create-collection.md index ae886b9f7d8..700d97177ba 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/create-collection.md +++ b/docs/examples/1.6.x/server-php/examples/databases/create-collection.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/create-datetime-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/create-datetime-attribute.md index fb3ce709cea..dd2fcecc80e 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/create-datetime-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/create-document.md b/docs/examples/1.6.x/server-php/examples/databases/create-document.md index f68ea8104dc..bf1ee3f62ae 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/create-document.md +++ b/docs/examples/1.6.x/server-php/examples/databases/create-document.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/databases/create-documents.md b/docs/examples/1.6.x/server-php/examples/databases/create-documents.md new file mode 100644 index 00000000000..0ca02bfa03b --- /dev/null +++ b/docs/examples/1.6.x/server-php/examples/databases/create-documents.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setSession(''); // The user session to authenticate with + +$databases = new Databases($client); + +$result = $databases->createDocuments( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + documents: [] +); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/databases/create-email-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/create-email-attribute.md index b2f7770f4e0..1274a4b9e1f 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/create-email-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/create-email-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/create-enum-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/create-enum-attribute.md index de2553ce82f..9abf2dfa1b6 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/create-enum-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/create-float-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/create-float-attribute.md index ad534aa4bef..e6eecb52980 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/create-float-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/create-float-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/create-index.md b/docs/examples/1.6.x/server-php/examples/databases/create-index.md index 7f95d3f8185..1d01f09ccaa 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/create-index.md +++ b/docs/examples/1.6.x/server-php/examples/databases/create-index.md @@ -5,7 +5,7 @@ use Appwrite\Services\Databases; use Appwrite\Enums\IndexType; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/create-integer-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/create-integer-attribute.md index fb481188e76..1dbeefa5476 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/create-integer-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/create-ip-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/create-ip-attribute.md index d40e23729e8..f42717caa46 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/create-ip-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/create-relationship-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/create-relationship-attribute.md index 4b353f1897f..caccd360318 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/create-relationship-attribute.md @@ -5,7 +5,7 @@ use Appwrite\Services\Databases; use Appwrite\Enums\RelationshipType; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/create-string-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/create-string-attribute.md index a04dfba7e01..5a4f72b6c83 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/create-string-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/create-string-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/create-url-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/create-url-attribute.md index bfa8af0058c..6b9bc800e59 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/create-url-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/create-url-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/create.md b/docs/examples/1.6.x/server-php/examples/databases/create.md index 3b9881a60ac..73c618874a2 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/create.md +++ b/docs/examples/1.6.x/server-php/examples/databases/create.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/delete-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/delete-attribute.md index 2db4c762113..71b71626555 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/delete-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/delete-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/delete-collection.md b/docs/examples/1.6.x/server-php/examples/databases/delete-collection.md index 4af5130647f..4e98dfdb4e0 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/delete-collection.md +++ b/docs/examples/1.6.x/server-php/examples/databases/delete-collection.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/delete-document.md b/docs/examples/1.6.x/server-php/examples/databases/delete-document.md index 05a3abbc68b..def7f24569f 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/delete-document.md +++ b/docs/examples/1.6.x/server-php/examples/databases/delete-document.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/databases/delete-documents.md b/docs/examples/1.6.x/server-php/examples/databases/delete-documents.md new file mode 100644 index 00000000000..3552d85317e --- /dev/null +++ b/docs/examples/1.6.x/server-php/examples/databases/delete-documents.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->deleteDocuments( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/databases/delete-index.md b/docs/examples/1.6.x/server-php/examples/databases/delete-index.md index 67cda1205f7..79e476b6d04 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/delete-index.md +++ b/docs/examples/1.6.x/server-php/examples/databases/delete-index.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/delete.md b/docs/examples/1.6.x/server-php/examples/databases/delete.md index 2480a7c825b..c796b7c4063 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/delete.md +++ b/docs/examples/1.6.x/server-php/examples/databases/delete.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/get-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/get-attribute.md index a9dad4bc407..ba82db4065d 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/get-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/get-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/get-collection.md b/docs/examples/1.6.x/server-php/examples/databases/get-collection.md index deeddec4ad7..ecddab053de 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/get-collection.md +++ b/docs/examples/1.6.x/server-php/examples/databases/get-collection.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/get-document.md b/docs/examples/1.6.x/server-php/examples/databases/get-document.md index 851e2d57479..a3204c50a74 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/get-document.md +++ b/docs/examples/1.6.x/server-php/examples/databases/get-document.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/databases/get-index.md b/docs/examples/1.6.x/server-php/examples/databases/get-index.md index a6e60f599dd..e9c63076715 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/get-index.md +++ b/docs/examples/1.6.x/server-php/examples/databases/get-index.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/get.md b/docs/examples/1.6.x/server-php/examples/databases/get.md index 7234b2369f4..9aa6395587f 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/get.md +++ b/docs/examples/1.6.x/server-php/examples/databases/get.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/list-attributes.md b/docs/examples/1.6.x/server-php/examples/databases/list-attributes.md index fb53eae371e..3105fc419c5 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/list-attributes.md +++ b/docs/examples/1.6.x/server-php/examples/databases/list-attributes.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/list-collections.md b/docs/examples/1.6.x/server-php/examples/databases/list-collections.md index 941e4a6e577..533b26a0554 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/list-collections.md +++ b/docs/examples/1.6.x/server-php/examples/databases/list-collections.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/list-documents.md b/docs/examples/1.6.x/server-php/examples/databases/list-documents.md index 6ccddf60932..07183ac8bf6 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/server-php/examples/databases/list-documents.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/databases/list-indexes.md b/docs/examples/1.6.x/server-php/examples/databases/list-indexes.md index b3935fc10ad..65b45dae807 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/list-indexes.md +++ b/docs/examples/1.6.x/server-php/examples/databases/list-indexes.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/list.md b/docs/examples/1.6.x/server-php/examples/databases/list.md index d5d078f8ece..6bba74da59b 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/list.md +++ b/docs/examples/1.6.x/server-php/examples/databases/list.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/update-boolean-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/update-boolean-attribute.md index 133fbb8b47f..2e4bee72fe1 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/update-boolean-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/update-collection.md b/docs/examples/1.6.x/server-php/examples/databases/update-collection.md index 790bb2b9c80..dd030c07923 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/update-collection.md +++ b/docs/examples/1.6.x/server-php/examples/databases/update-collection.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/update-datetime-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/update-datetime-attribute.md index 4773e54537d..b1a03ec0280 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/update-datetime-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/update-document.md b/docs/examples/1.6.x/server-php/examples/databases/update-document.md index a1b70187111..f1c8a346808 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/update-document.md +++ b/docs/examples/1.6.x/server-php/examples/databases/update-document.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/databases/update-documents.md b/docs/examples/1.6.x/server-php/examples/databases/update-documents.md new file mode 100644 index 00000000000..51b4e18bc26 --- /dev/null +++ b/docs/examples/1.6.x/server-php/examples/databases/update-documents.md @@ -0,0 +1,18 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->updateDocuments( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + data: [], // optional + queries: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/databases/update-email-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/update-email-attribute.md index 9c1bdb48bdf..dc9865f81a0 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/update-email-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/update-email-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/update-enum-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/update-enum-attribute.md index 88229bc999d..f7cd0b7b836 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/update-enum-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/update-float-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/update-float-attribute.md index 7beac26ea21..51f6ec92399 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/update-float-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/update-float-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key @@ -15,8 +15,8 @@ $result = $databases->updateFloatAttribute( collectionId: '<COLLECTION_ID>', key: '', required: false, - min: null, - max: null, default: null, + min: null, // optional + max: null, // optional newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/databases/update-integer-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/update-integer-attribute.md index e92385d2bf9..bdbd96ca120 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/update-integer-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key @@ -15,8 +15,8 @@ $result = $databases->updateIntegerAttribute( collectionId: '<COLLECTION_ID>', key: '', required: false, - min: null, - max: null, default: null, + min: null, // optional + max: null, // optional newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/databases/update-ip-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/update-ip-attribute.md index e88e75c2b61..130cd0cc9fd 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/update-ip-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/update-relationship-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/update-relationship-attribute.md index 0afaea27b55..01783cf3bfb 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/update-relationship-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/update-string-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/update-string-attribute.md index 9e821e4436c..e0c8f992eae 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/update-string-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/update-string-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key @@ -16,6 +16,6 @@ $result = $databases->updateStringAttribute( key: '', required: false, default: '<DEFAULT>', - size: null, // optional + size: 1, // optional newKey: '' // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/databases/update-url-attribute.md b/docs/examples/1.6.x/server-php/examples/databases/update-url-attribute.md index 1825e558455..c2004638945 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/update-url-attribute.md +++ b/docs/examples/1.6.x/server-php/examples/databases/update-url-attribute.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/update.md b/docs/examples/1.6.x/server-php/examples/databases/update.md index d9bf5e97382..9b0b0789caf 100644 --- a/docs/examples/1.6.x/server-php/examples/databases/update.md +++ b/docs/examples/1.6.x/server-php/examples/databases/update.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/databases/upsert-documents.md b/docs/examples/1.6.x/server-php/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..7b9459e8f42 --- /dev/null +++ b/docs/examples/1.6.x/server-php/examples/databases/upsert-documents.md @@ -0,0 +1,17 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Databases; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->upsertDocuments( + databaseId: '<DATABASE_ID>', + collectionId: '<COLLECTION_ID>', + documents: [] // optional +); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/functions/create-build.md b/docs/examples/1.6.x/server-php/examples/functions/create-build.md index 429653c3c57..1b081ea6052 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/create-build.md +++ b/docs/examples/1.6.x/server-php/examples/functions/create-build.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/create-deployment.md b/docs/examples/1.6.x/server-php/examples/functions/create-deployment.md index 90f4c7ed18e..7e48b89ca71 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/create-deployment.md +++ b/docs/examples/1.6.x/server-php/examples/functions/create-deployment.md @@ -5,7 +5,7 @@ use Appwrite\InputFile; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/create-execution.md b/docs/examples/1.6.x/server-php/examples/functions/create-execution.md index 4c62b9afc0a..9aeb976cf3c 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/create-execution.md +++ b/docs/examples/1.6.x/server-php/examples/functions/create-execution.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/functions/create-variable.md b/docs/examples/1.6.x/server-php/examples/functions/create-variable.md index fc1ee4afeb1..ecc1f1df8b7 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/create-variable.md +++ b/docs/examples/1.6.x/server-php/examples/functions/create-variable.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/create.md b/docs/examples/1.6.x/server-php/examples/functions/create.md index 6b16c59cbdd..5e2f71e5e3f 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/create.md +++ b/docs/examples/1.6.x/server-php/examples/functions/create.md @@ -5,7 +5,7 @@ use Appwrite\Services\Functions; use Appwrite\Enums\; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/delete-deployment.md b/docs/examples/1.6.x/server-php/examples/functions/delete-deployment.md index 23439f21076..20285d76109 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/delete-deployment.md +++ b/docs/examples/1.6.x/server-php/examples/functions/delete-deployment.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/delete-execution.md b/docs/examples/1.6.x/server-php/examples/functions/delete-execution.md index 4fbef181757..e55a8b18922 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/delete-execution.md +++ b/docs/examples/1.6.x/server-php/examples/functions/delete-execution.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/delete-variable.md b/docs/examples/1.6.x/server-php/examples/functions/delete-variable.md index 344506b9e26..e1fb391d79f 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/delete-variable.md +++ b/docs/examples/1.6.x/server-php/examples/functions/delete-variable.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/delete.md b/docs/examples/1.6.x/server-php/examples/functions/delete.md index 6596754991c..9f87f5c9f01 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/delete.md +++ b/docs/examples/1.6.x/server-php/examples/functions/delete.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/get-deployment-download.md b/docs/examples/1.6.x/server-php/examples/functions/get-deployment-download.md index 4103ec81e9e..ec25652b891 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/get-deployment-download.md +++ b/docs/examples/1.6.x/server-php/examples/functions/get-deployment-download.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/get-deployment.md b/docs/examples/1.6.x/server-php/examples/functions/get-deployment.md index 73d70816cff..945933b2ade 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/get-deployment.md +++ b/docs/examples/1.6.x/server-php/examples/functions/get-deployment.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/get-execution.md b/docs/examples/1.6.x/server-php/examples/functions/get-execution.md index 9bb8d6af7a9..7dfeeed0c0d 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/server-php/examples/functions/get-execution.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/functions/get-variable.md b/docs/examples/1.6.x/server-php/examples/functions/get-variable.md index cdb5ce9c45e..4c8d3d6b535 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/get-variable.md +++ b/docs/examples/1.6.x/server-php/examples/functions/get-variable.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/get.md b/docs/examples/1.6.x/server-php/examples/functions/get.md index d249ce7266e..ca2160f6c9b 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/get.md +++ b/docs/examples/1.6.x/server-php/examples/functions/get.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/list-deployments.md b/docs/examples/1.6.x/server-php/examples/functions/list-deployments.md index 9046c1880a3..7bbaa0ed3eb 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/list-deployments.md +++ b/docs/examples/1.6.x/server-php/examples/functions/list-deployments.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/list-executions.md b/docs/examples/1.6.x/server-php/examples/functions/list-executions.md index 05e60a0cb9b..2ff953b7290 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/server-php/examples/functions/list-executions.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/functions/list-runtimes.md b/docs/examples/1.6.x/server-php/examples/functions/list-runtimes.md index 1d2297846a2..6c77c42678c 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/list-runtimes.md +++ b/docs/examples/1.6.x/server-php/examples/functions/list-runtimes.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/list-specifications.md b/docs/examples/1.6.x/server-php/examples/functions/list-specifications.md index e68a4b0a8bb..eec5c33c9df 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/list-specifications.md +++ b/docs/examples/1.6.x/server-php/examples/functions/list-specifications.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/list-templates.md b/docs/examples/1.6.x/server-php/examples/functions/list-templates.md deleted file mode 100644 index a6619033068..00000000000 --- a/docs/examples/1.6.x/server-php/examples/functions/list-templates.md +++ /dev/null @@ -1,17 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Functions; - -$client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>'); // Your project ID - -$functions = new Functions($client); - -$result = $functions->listTemplates( - runtimes: [], // optional - useCases: [], // optional - limit: 1, // optional - offset: 0 // optional -); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/functions/list-variables.md b/docs/examples/1.6.x/server-php/examples/functions/list-variables.md index b9687a4ef80..f85e85490c9 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/list-variables.md +++ b/docs/examples/1.6.x/server-php/examples/functions/list-variables.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/list.md b/docs/examples/1.6.x/server-php/examples/functions/list.md index 22aa3cf9064..de914afc58c 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/list.md +++ b/docs/examples/1.6.x/server-php/examples/functions/list.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/update-deployment-build.md b/docs/examples/1.6.x/server-php/examples/functions/update-deployment-build.md index 98f2a3aaceb..44722f9eab8 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/update-deployment-build.md +++ b/docs/examples/1.6.x/server-php/examples/functions/update-deployment-build.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/update-deployment.md b/docs/examples/1.6.x/server-php/examples/functions/update-deployment.md index 9c6ad6dc8f2..1dd25e51ca0 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/update-deployment.md +++ b/docs/examples/1.6.x/server-php/examples/functions/update-deployment.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/update-variable.md b/docs/examples/1.6.x/server-php/examples/functions/update-variable.md index b1b50081617..10cfb583661 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/update-variable.md +++ b/docs/examples/1.6.x/server-php/examples/functions/update-variable.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/functions/update.md b/docs/examples/1.6.x/server-php/examples/functions/update.md index 8f84ca85ebe..ea8d863ae52 100644 --- a/docs/examples/1.6.x/server-php/examples/functions/update.md +++ b/docs/examples/1.6.x/server-php/examples/functions/update.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Functions; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/graphql/mutation.md b/docs/examples/1.6.x/server-php/examples/graphql/mutation.md index 1a0da4a405c..c349bc2dbde 100644 --- a/docs/examples/1.6.x/server-php/examples/graphql/mutation.md +++ b/docs/examples/1.6.x/server-php/examples/graphql/mutation.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Graphql; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/graphql/query.md b/docs/examples/1.6.x/server-php/examples/graphql/query.md index eea9e8fc60b..e6e277c27b3 100644 --- a/docs/examples/1.6.x/server-php/examples/graphql/query.md +++ b/docs/examples/1.6.x/server-php/examples/graphql/query.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Graphql; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-antivirus.md b/docs/examples/1.6.x/server-php/examples/health/get-antivirus.md index 1f0dd2feeb7..47210646dfa 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-antivirus.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-antivirus.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-cache.md b/docs/examples/1.6.x/server-php/examples/health/get-cache.md index 4755d69f1da..2e81dae328b 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-cache.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-cache.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-certificate.md b/docs/examples/1.6.x/server-php/examples/health/get-certificate.md index 1f0cda448db..408581beac8 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-certificate.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-certificate.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-d-b.md b/docs/examples/1.6.x/server-php/examples/health/get-d-b.md index fec1daa8ee7..cfec70e6044 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-d-b.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-d-b.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-failed-jobs.md b/docs/examples/1.6.x/server-php/examples/health/get-failed-jobs.md index 8e331bcbfe7..02959db3b5f 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-failed-jobs.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-failed-jobs.md @@ -5,7 +5,7 @@ use Appwrite\Services\Health; use Appwrite\Enums\; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-pub-sub.md b/docs/examples/1.6.x/server-php/examples/health/get-pub-sub.md index fb266b132d0..1c346caab62 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-pub-sub.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-pub-sub.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-queue-builds.md b/docs/examples/1.6.x/server-php/examples/health/get-queue-builds.md index 7886dfb21e0..8c1f77433b0 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-queue-builds.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-queue-builds.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-queue-certificates.md b/docs/examples/1.6.x/server-php/examples/health/get-queue-certificates.md index b00611e3540..92fb79a98ce 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-queue-certificates.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-queue-certificates.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-queue-databases.md b/docs/examples/1.6.x/server-php/examples/health/get-queue-databases.md index 81e8442f0de..745b4694349 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-queue-databases.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-queue-databases.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-queue-deletes.md b/docs/examples/1.6.x/server-php/examples/health/get-queue-deletes.md index fe51b072c81..d3952685c4d 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-queue-deletes.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-queue-deletes.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-queue-functions.md b/docs/examples/1.6.x/server-php/examples/health/get-queue-functions.md index e6ee6880769..1a5bea2b4cf 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-queue-functions.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-queue-functions.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-queue-logs.md b/docs/examples/1.6.x/server-php/examples/health/get-queue-logs.md index 4c9b0cd81ce..cf5e3b9d832 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-queue-logs.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-queue-logs.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-queue-mails.md b/docs/examples/1.6.x/server-php/examples/health/get-queue-mails.md index 02d4ed2663f..132dfa68aa0 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-queue-mails.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-queue-mails.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-queue-messaging.md b/docs/examples/1.6.x/server-php/examples/health/get-queue-messaging.md index ec69788353d..fd5fdb1ede2 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-queue-messaging.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-queue-messaging.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-queue-migrations.md b/docs/examples/1.6.x/server-php/examples/health/get-queue-migrations.md index f52f78a0a8f..68110189e54 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-queue-migrations.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-queue-migrations.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-queue-stats-resources.md b/docs/examples/1.6.x/server-php/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..d0bd6c054e8 --- /dev/null +++ b/docs/examples/1.6.x/server-php/examples/health/get-queue-stats-resources.md @@ -0,0 +1,15 @@ +<?php + +use Appwrite\Client; +use Appwrite\Services\Health; + +$client = (new Client()) + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('<YOUR_PROJECT_ID>') // Your project ID + ->setKey('<YOUR_API_KEY>'); // Your secret API key + +$health = new Health($client); + +$result = $health->getQueueStatsResources( + threshold: null // optional +); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/health/get-queue-usage-dump.md b/docs/examples/1.6.x/server-php/examples/health/get-queue-usage-dump.md index 9b477f27f5b..0827f4cc79a 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-queue-usage-dump.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-queue-usage.md b/docs/examples/1.6.x/server-php/examples/health/get-queue-usage.md index 018e8acf0a5..627a85c845e 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-queue-usage.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-queue-usage.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-queue-webhooks.md b/docs/examples/1.6.x/server-php/examples/health/get-queue-webhooks.md index 7e7af127c12..d6ccd7cd83a 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-queue-webhooks.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-queue.md b/docs/examples/1.6.x/server-php/examples/health/get-queue.md index ef34100a036..23eece124ac 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-queue.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-queue.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-storage-local.md b/docs/examples/1.6.x/server-php/examples/health/get-storage-local.md index 0c26902ee7d..041d24954cb 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-storage-local.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-storage-local.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-storage.md b/docs/examples/1.6.x/server-php/examples/health/get-storage.md index abfc5bbd1bc..377416ed133 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-storage.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-storage.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get-time.md b/docs/examples/1.6.x/server-php/examples/health/get-time.md index 4577be3294d..aa2699349d6 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get-time.md +++ b/docs/examples/1.6.x/server-php/examples/health/get-time.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/health/get.md b/docs/examples/1.6.x/server-php/examples/health/get.md index 514d0837568..fec3e3f4852 100644 --- a/docs/examples/1.6.x/server-php/examples/health/get.md +++ b/docs/examples/1.6.x/server-php/examples/health/get.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Health; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/locale/get.md b/docs/examples/1.6.x/server-php/examples/locale/get.md index 82247d4a689..ef4c0432dd2 100644 --- a/docs/examples/1.6.x/server-php/examples/locale/get.md +++ b/docs/examples/1.6.x/server-php/examples/locale/get.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Locale; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/locale/list-codes.md b/docs/examples/1.6.x/server-php/examples/locale/list-codes.md index a88c2b64766..273fad08399 100644 --- a/docs/examples/1.6.x/server-php/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/server-php/examples/locale/list-codes.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Locale; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/locale/list-continents.md b/docs/examples/1.6.x/server-php/examples/locale/list-continents.md index e861eced56a..e8c7ca46df7 100644 --- a/docs/examples/1.6.x/server-php/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/server-php/examples/locale/list-continents.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Locale; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/server-php/examples/locale/list-countries-e-u.md index 2b8bf7ee020..c5dd1d2ad6f 100644 --- a/docs/examples/1.6.x/server-php/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/server-php/examples/locale/list-countries-e-u.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Locale; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/server-php/examples/locale/list-countries-phones.md index fba9ff8ec25..7585c1071e7 100644 --- a/docs/examples/1.6.x/server-php/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/server-php/examples/locale/list-countries-phones.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Locale; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/locale/list-countries.md b/docs/examples/1.6.x/server-php/examples/locale/list-countries.md index 60801b4dc5b..63a2e0b5f7d 100644 --- a/docs/examples/1.6.x/server-php/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/server-php/examples/locale/list-countries.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Locale; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/locale/list-currencies.md b/docs/examples/1.6.x/server-php/examples/locale/list-currencies.md index 5fb1667e591..d385018e7dc 100644 --- a/docs/examples/1.6.x/server-php/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/server-php/examples/locale/list-currencies.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Locale; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/locale/list-languages.md b/docs/examples/1.6.x/server-php/examples/locale/list-languages.md index aec67ca74a4..f0ca4d4f043 100644 --- a/docs/examples/1.6.x/server-php/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/server-php/examples/locale/list-languages.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Locale; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/messaging/create-apns-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/create-apns-provider.md index bdc5d7fcc7a..da13d172313 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/create-apns-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/create-email.md b/docs/examples/1.6.x/server-php/examples/messaging/create-email.md index fe51bf16273..9de24873bfc 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/create-email.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/create-email.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/create-fcm-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/create-fcm-provider.md index 7252fde72e4..baf72a1df40 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/create-fcm-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/create-mailgun-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/create-mailgun-provider.md index 72f3360f26b..6c62ee88376 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/create-mailgun-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/create-msg91provider.md b/docs/examples/1.6.x/server-php/examples/messaging/create-msg91provider.md index bb7a79aea14..1eb954a2c67 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/create-msg91provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/create-push.md b/docs/examples/1.6.x/server-php/examples/messaging/create-push.md index 7838576df01..46aeeb3b8b8 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/create-push.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/create-push.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key @@ -12,8 +12,8 @@ $messaging = new Messaging($client); $result = $messaging->createPush( messageId: '<MESSAGE_ID>', - title: '<TITLE>', - body: '<BODY>', + title: '<TITLE>', // optional + body: '<BODY>', // optional topics: [], // optional users: [], // optional targets: [], // optional @@ -24,7 +24,10 @@ $result = $messaging->createPush( sound: '<SOUND>', // optional color: '<COLOR>', // optional tag: '<TAG>', // optional - badge: '<BADGE>', // optional + badge: null, // optional draft: false, // optional - scheduledAt: '' // optional + scheduledAt: '', // optional + contentAvailable: false, // optional + critical: false, // optional + priority: MessagePriority::NORMAL() // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/create-sendgrid-provider.md index 53381f67c38..892d856305d 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/create-sendgrid-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/create-sms.md b/docs/examples/1.6.x/server-php/examples/messaging/create-sms.md index 8c0cb79dbfe..1e2d9ac765e 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/create-sms.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/create-sms.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/create-smtp-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/create-smtp-provider.md index fd771fa2acb..4dcfb3a0880 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/create-smtp-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/server-php/examples/messaging/create-subscriber.md index c0324ab382e..3516fa3d6a3 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/create-subscriber.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setJWT('<YOUR_JWT>'); // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-php/examples/messaging/create-telesign-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/create-telesign-provider.md index 89e17a1bca8..9006918029d 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/create-telesign-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/create-textmagic-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/create-textmagic-provider.md index 0e0c8681ea0..5215d526423 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/create-textmagic-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/create-topic.md b/docs/examples/1.6.x/server-php/examples/messaging/create-topic.md index 79e3d2635d4..e94141cc73e 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/create-topic.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/create-topic.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/create-twilio-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/create-twilio-provider.md index f370df244e6..c3568286400 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/create-twilio-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/create-vonage-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/create-vonage-provider.md index 4663b05c3ec..adeacbc45e1 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/create-vonage-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/delete-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/delete-provider.md index a3d8d474fc6..f37d18b4fdd 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/delete-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/delete-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/delete-subscriber.md b/docs/examples/1.6.x/server-php/examples/messaging/delete-subscriber.md index a5f7eb79eb0..f7a84259202 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/delete-subscriber.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setJWT('<YOUR_JWT>'); // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-php/examples/messaging/delete-topic.md b/docs/examples/1.6.x/server-php/examples/messaging/delete-topic.md index 7333a8de8d6..2ec899b1d65 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/delete-topic.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/delete-topic.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/delete.md b/docs/examples/1.6.x/server-php/examples/messaging/delete.md index b9b33808663..5781838bdce 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/delete.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/delete.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/get-message.md b/docs/examples/1.6.x/server-php/examples/messaging/get-message.md index c6ff233e6e0..cf922219c77 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/get-message.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/get-message.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/get-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/get-provider.md index 1d29307aec4..d19f5c65e52 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/get-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/get-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/get-subscriber.md b/docs/examples/1.6.x/server-php/examples/messaging/get-subscriber.md index 503e7010cb0..e2a0d7ef35f 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/get-subscriber.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/get-subscriber.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/get-topic.md b/docs/examples/1.6.x/server-php/examples/messaging/get-topic.md index 3277168bec9..fc06cbbc95c 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/get-topic.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/get-topic.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/list-message-logs.md b/docs/examples/1.6.x/server-php/examples/messaging/list-message-logs.md index 283b2a7794c..03231375f80 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/list-message-logs.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/list-message-logs.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/list-messages.md b/docs/examples/1.6.x/server-php/examples/messaging/list-messages.md index a4190e644b0..965fe08fc7c 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/list-messages.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/list-messages.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/list-provider-logs.md b/docs/examples/1.6.x/server-php/examples/messaging/list-provider-logs.md index bf80f20477b..761bb966d64 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/list-provider-logs.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/list-providers.md b/docs/examples/1.6.x/server-php/examples/messaging/list-providers.md index 1dc0e3cb985..614e9c58f1c 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/list-providers.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/list-providers.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/list-subscriber-logs.md b/docs/examples/1.6.x/server-php/examples/messaging/list-subscriber-logs.md index c0c88d69354..c710575a467 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/list-subscriber-logs.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/list-subscribers.md b/docs/examples/1.6.x/server-php/examples/messaging/list-subscribers.md index 7597ad89ce6..d2625cd5550 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/list-subscribers.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/list-subscribers.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/list-targets.md b/docs/examples/1.6.x/server-php/examples/messaging/list-targets.md index 1825a088389..1112d28003d 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/list-targets.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/list-targets.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/list-topic-logs.md b/docs/examples/1.6.x/server-php/examples/messaging/list-topic-logs.md index 1ab8c363d62..3bbb35a006c 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/list-topic-logs.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/list-topics.md b/docs/examples/1.6.x/server-php/examples/messaging/list-topics.md index cfcba97a212..debb363133a 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/list-topics.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/list-topics.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/update-apns-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/update-apns-provider.md index d7177551d50..724453b9b1b 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/update-apns-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/update-email.md b/docs/examples/1.6.x/server-php/examples/messaging/update-email.md index d3b65692c1b..dd0f645af66 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/update-email.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/update-email.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/update-fcm-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/update-fcm-provider.md index 9a80b44ff2d..36672f4b65f 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/update-fcm-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/update-mailgun-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/update-mailgun-provider.md index 7891cb5bb03..c99ebc7d73b 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/update-mailgun-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/update-msg91provider.md b/docs/examples/1.6.x/server-php/examples/messaging/update-msg91provider.md index 98f4f13a59f..f6f557cce48 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/update-msg91provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/update-push.md b/docs/examples/1.6.x/server-php/examples/messaging/update-push.md index 09a4d960421..e1df0b91322 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/update-push.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/update-push.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key @@ -26,5 +26,8 @@ $result = $messaging->updatePush( tag: '<TAG>', // optional badge: null, // optional draft: false, // optional - scheduledAt: '' // optional + scheduledAt: '', // optional + contentAvailable: false, // optional + critical: false, // optional + priority: MessagePriority::NORMAL() // optional ); \ No newline at end of file diff --git a/docs/examples/1.6.x/server-php/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/update-sendgrid-provider.md index 2820e2e20ec..b8473c16a3f 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/update-sendgrid-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/update-sms.md b/docs/examples/1.6.x/server-php/examples/messaging/update-sms.md index a342b7a0672..730da4178a3 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/update-sms.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/update-sms.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/update-smtp-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/update-smtp-provider.md index 66dde3ea01f..a16a630283a 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/update-smtp-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/update-telesign-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/update-telesign-provider.md index 3c1b760dd1d..29a54bfaed3 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/update-telesign-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/update-textmagic-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/update-textmagic-provider.md index 3328ac714de..e6a1ed1a1e1 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/update-textmagic-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/update-topic.md b/docs/examples/1.6.x/server-php/examples/messaging/update-topic.md index 5669e5f7541..b1f9a32ec52 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/update-topic.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/update-topic.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/update-twilio-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/update-twilio-provider.md index 07b7a2eafe1..def821adc4a 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/update-twilio-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/messaging/update-vonage-provider.md b/docs/examples/1.6.x/server-php/examples/messaging/update-vonage-provider.md index ba7f5305e52..0841e284eb7 100644 --- a/docs/examples/1.6.x/server-php/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.6.x/server-php/examples/messaging/update-vonage-provider.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/storage/create-bucket.md b/docs/examples/1.6.x/server-php/examples/storage/create-bucket.md index 0c8ef0fefe9..cd17ffedac0 100644 --- a/docs/examples/1.6.x/server-php/examples/storage/create-bucket.md +++ b/docs/examples/1.6.x/server-php/examples/storage/create-bucket.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Storage; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/storage/create-file.md b/docs/examples/1.6.x/server-php/examples/storage/create-file.md index a9485465632..2d133059841 100644 --- a/docs/examples/1.6.x/server-php/examples/storage/create-file.md +++ b/docs/examples/1.6.x/server-php/examples/storage/create-file.md @@ -5,7 +5,7 @@ use Appwrite\InputFile; use Appwrite\Services\Storage; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/storage/delete-bucket.md b/docs/examples/1.6.x/server-php/examples/storage/delete-bucket.md index 784331887e5..50adf35b6b5 100644 --- a/docs/examples/1.6.x/server-php/examples/storage/delete-bucket.md +++ b/docs/examples/1.6.x/server-php/examples/storage/delete-bucket.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Storage; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/storage/delete-file.md b/docs/examples/1.6.x/server-php/examples/storage/delete-file.md index 4274c25a45a..d4c45eb66a5 100644 --- a/docs/examples/1.6.x/server-php/examples/storage/delete-file.md +++ b/docs/examples/1.6.x/server-php/examples/storage/delete-file.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Storage; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/storage/get-bucket.md b/docs/examples/1.6.x/server-php/examples/storage/get-bucket.md index 85a5b75f621..e62c43d2d36 100644 --- a/docs/examples/1.6.x/server-php/examples/storage/get-bucket.md +++ b/docs/examples/1.6.x/server-php/examples/storage/get-bucket.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Storage; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/storage/get-file-download.md b/docs/examples/1.6.x/server-php/examples/storage/get-file-download.md index 72be0f68413..8831f0da9f1 100644 --- a/docs/examples/1.6.x/server-php/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/server-php/examples/storage/get-file-download.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Storage; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/storage/get-file-preview.md b/docs/examples/1.6.x/server-php/examples/storage/get-file-preview.md index aef4f4a63f9..0c9db136b8f 100644 --- a/docs/examples/1.6.x/server-php/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/server-php/examples/storage/get-file-preview.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Storage; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/storage/get-file-view.md b/docs/examples/1.6.x/server-php/examples/storage/get-file-view.md index 782e49bd214..95a32bd3c2f 100644 --- a/docs/examples/1.6.x/server-php/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/server-php/examples/storage/get-file-view.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Storage; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/storage/get-file.md b/docs/examples/1.6.x/server-php/examples/storage/get-file.md index 80196a5199e..6964144801a 100644 --- a/docs/examples/1.6.x/server-php/examples/storage/get-file.md +++ b/docs/examples/1.6.x/server-php/examples/storage/get-file.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Storage; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/storage/list-buckets.md b/docs/examples/1.6.x/server-php/examples/storage/list-buckets.md index a53eb913c9b..a4538c6f3ab 100644 --- a/docs/examples/1.6.x/server-php/examples/storage/list-buckets.md +++ b/docs/examples/1.6.x/server-php/examples/storage/list-buckets.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Storage; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/storage/list-files.md b/docs/examples/1.6.x/server-php/examples/storage/list-files.md index 767fe86c300..ede0e7c9795 100644 --- a/docs/examples/1.6.x/server-php/examples/storage/list-files.md +++ b/docs/examples/1.6.x/server-php/examples/storage/list-files.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Storage; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/storage/update-bucket.md b/docs/examples/1.6.x/server-php/examples/storage/update-bucket.md index e4a0f5df351..1517e366219 100644 --- a/docs/examples/1.6.x/server-php/examples/storage/update-bucket.md +++ b/docs/examples/1.6.x/server-php/examples/storage/update-bucket.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Storage; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/storage/update-file.md b/docs/examples/1.6.x/server-php/examples/storage/update-file.md index 506593f427e..7b467acfe3f 100644 --- a/docs/examples/1.6.x/server-php/examples/storage/update-file.md +++ b/docs/examples/1.6.x/server-php/examples/storage/update-file.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Storage; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/teams/create-membership.md b/docs/examples/1.6.x/server-php/examples/teams/create-membership.md index 51b1795a011..285368f9ddc 100644 --- a/docs/examples/1.6.x/server-php/examples/teams/create-membership.md +++ b/docs/examples/1.6.x/server-php/examples/teams/create-membership.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Teams; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/teams/create.md b/docs/examples/1.6.x/server-php/examples/teams/create.md index 3cc6b19be9e..643fa0eb110 100644 --- a/docs/examples/1.6.x/server-php/examples/teams/create.md +++ b/docs/examples/1.6.x/server-php/examples/teams/create.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Teams; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/teams/delete-membership.md b/docs/examples/1.6.x/server-php/examples/teams/delete-membership.md index 04f4056fcd0..579b790c556 100644 --- a/docs/examples/1.6.x/server-php/examples/teams/delete-membership.md +++ b/docs/examples/1.6.x/server-php/examples/teams/delete-membership.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Teams; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/teams/delete.md b/docs/examples/1.6.x/server-php/examples/teams/delete.md index 734464538f5..9db4e7e9a7c 100644 --- a/docs/examples/1.6.x/server-php/examples/teams/delete.md +++ b/docs/examples/1.6.x/server-php/examples/teams/delete.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Teams; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/teams/get-membership.md b/docs/examples/1.6.x/server-php/examples/teams/get-membership.md index 5f4bd63a642..bd6cbe8b42c 100644 --- a/docs/examples/1.6.x/server-php/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/server-php/examples/teams/get-membership.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Teams; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/teams/get-prefs.md b/docs/examples/1.6.x/server-php/examples/teams/get-prefs.md index 27f6e06973a..fbade4fc2fb 100644 --- a/docs/examples/1.6.x/server-php/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/server-php/examples/teams/get-prefs.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Teams; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/teams/get.md b/docs/examples/1.6.x/server-php/examples/teams/get.md index f1ce1348d84..0dafa8a5d38 100644 --- a/docs/examples/1.6.x/server-php/examples/teams/get.md +++ b/docs/examples/1.6.x/server-php/examples/teams/get.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Teams; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/teams/list-memberships.md b/docs/examples/1.6.x/server-php/examples/teams/list-memberships.md index 9d0c988ce62..817ea7fefc3 100644 --- a/docs/examples/1.6.x/server-php/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/server-php/examples/teams/list-memberships.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Teams; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/teams/list.md b/docs/examples/1.6.x/server-php/examples/teams/list.md index 7ab8f81b275..99d9895fe5f 100644 --- a/docs/examples/1.6.x/server-php/examples/teams/list.md +++ b/docs/examples/1.6.x/server-php/examples/teams/list.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Teams; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/teams/update-membership-status.md b/docs/examples/1.6.x/server-php/examples/teams/update-membership-status.md index 6179020df24..5dbfd4cb0f8 100644 --- a/docs/examples/1.6.x/server-php/examples/teams/update-membership-status.md +++ b/docs/examples/1.6.x/server-php/examples/teams/update-membership-status.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Teams; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/teams/update-membership.md b/docs/examples/1.6.x/server-php/examples/teams/update-membership.md index 3b6cafa5f57..10f135b01ff 100644 --- a/docs/examples/1.6.x/server-php/examples/teams/update-membership.md +++ b/docs/examples/1.6.x/server-php/examples/teams/update-membership.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Teams; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/teams/update-name.md b/docs/examples/1.6.x/server-php/examples/teams/update-name.md index 62768a9fb83..bc13d924e41 100644 --- a/docs/examples/1.6.x/server-php/examples/teams/update-name.md +++ b/docs/examples/1.6.x/server-php/examples/teams/update-name.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Teams; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/teams/update-prefs.md b/docs/examples/1.6.x/server-php/examples/teams/update-prefs.md index ec52ac07dfc..bd8d9de32f4 100644 --- a/docs/examples/1.6.x/server-php/examples/teams/update-prefs.md +++ b/docs/examples/1.6.x/server-php/examples/teams/update-prefs.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Teams; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setSession(''); // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-php/examples/users/create-argon2user.md b/docs/examples/1.6.x/server-php/examples/users/create-argon2user.md index a482b5dd578..a9166ef3b01 100644 --- a/docs/examples/1.6.x/server-php/examples/users/create-argon2user.md +++ b/docs/examples/1.6.x/server-php/examples/users/create-argon2user.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/create-bcrypt-user.md b/docs/examples/1.6.x/server-php/examples/users/create-bcrypt-user.md index af71dcdc73b..c9fd81e43a3 100644 --- a/docs/examples/1.6.x/server-php/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.6.x/server-php/examples/users/create-bcrypt-user.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/create-j-w-t.md b/docs/examples/1.6.x/server-php/examples/users/create-j-w-t.md index 994cdc3bb39..1c1c6d40bdb 100644 --- a/docs/examples/1.6.x/server-php/examples/users/create-j-w-t.md +++ b/docs/examples/1.6.x/server-php/examples/users/create-j-w-t.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/create-m-d5user.md b/docs/examples/1.6.x/server-php/examples/users/create-m-d5user.md index 13bb884aa74..696cbbeb57d 100644 --- a/docs/examples/1.6.x/server-php/examples/users/create-m-d5user.md +++ b/docs/examples/1.6.x/server-php/examples/users/create-m-d5user.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-php/examples/users/create-mfa-recovery-codes.md index faec2341069..372fb1bc6a3 100644 --- a/docs/examples/1.6.x/server-php/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-php/examples/users/create-mfa-recovery-codes.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/create-p-h-pass-user.md b/docs/examples/1.6.x/server-php/examples/users/create-p-h-pass-user.md index da0889df702..d56c4651f6e 100644 --- a/docs/examples/1.6.x/server-php/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.6.x/server-php/examples/users/create-p-h-pass-user.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/create-s-h-a-user.md b/docs/examples/1.6.x/server-php/examples/users/create-s-h-a-user.md index ecb9af7f318..0b9a27ed8eb 100644 --- a/docs/examples/1.6.x/server-php/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.6.x/server-php/examples/users/create-s-h-a-user.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/create-scrypt-modified-user.md b/docs/examples/1.6.x/server-php/examples/users/create-scrypt-modified-user.md index d1c99065e1e..f579efb5f2e 100644 --- a/docs/examples/1.6.x/server-php/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.6.x/server-php/examples/users/create-scrypt-modified-user.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/create-scrypt-user.md b/docs/examples/1.6.x/server-php/examples/users/create-scrypt-user.md index 3c833b098eb..b406b9404a8 100644 --- a/docs/examples/1.6.x/server-php/examples/users/create-scrypt-user.md +++ b/docs/examples/1.6.x/server-php/examples/users/create-scrypt-user.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/create-session.md b/docs/examples/1.6.x/server-php/examples/users/create-session.md index 498e161c67e..1589315f92e 100644 --- a/docs/examples/1.6.x/server-php/examples/users/create-session.md +++ b/docs/examples/1.6.x/server-php/examples/users/create-session.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/create-target.md b/docs/examples/1.6.x/server-php/examples/users/create-target.md index 999cae1394c..57946a440ff 100644 --- a/docs/examples/1.6.x/server-php/examples/users/create-target.md +++ b/docs/examples/1.6.x/server-php/examples/users/create-target.md @@ -5,7 +5,7 @@ use Appwrite\Services\Users; use Appwrite\Enums\MessagingProviderType; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/create-token.md b/docs/examples/1.6.x/server-php/examples/users/create-token.md index 9d8e1635a7a..1b92f5171d8 100644 --- a/docs/examples/1.6.x/server-php/examples/users/create-token.md +++ b/docs/examples/1.6.x/server-php/examples/users/create-token.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/create.md b/docs/examples/1.6.x/server-php/examples/users/create.md index 16549ae0927..595f24fbce3 100644 --- a/docs/examples/1.6.x/server-php/examples/users/create.md +++ b/docs/examples/1.6.x/server-php/examples/users/create.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/delete-identity.md b/docs/examples/1.6.x/server-php/examples/users/delete-identity.md index 9ca15569ced..26b71eead23 100644 --- a/docs/examples/1.6.x/server-php/examples/users/delete-identity.md +++ b/docs/examples/1.6.x/server-php/examples/users/delete-identity.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-php/examples/users/delete-mfa-authenticator.md index 94a9e04b593..8ef12795895 100644 --- a/docs/examples/1.6.x/server-php/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-php/examples/users/delete-mfa-authenticator.md @@ -5,7 +5,7 @@ use Appwrite\Services\Users; use Appwrite\Enums\AuthenticatorType; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/delete-session.md b/docs/examples/1.6.x/server-php/examples/users/delete-session.md index e711a923196..493cf53d2f8 100644 --- a/docs/examples/1.6.x/server-php/examples/users/delete-session.md +++ b/docs/examples/1.6.x/server-php/examples/users/delete-session.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/delete-sessions.md b/docs/examples/1.6.x/server-php/examples/users/delete-sessions.md index 3b46021a815..cd6d11e1d7a 100644 --- a/docs/examples/1.6.x/server-php/examples/users/delete-sessions.md +++ b/docs/examples/1.6.x/server-php/examples/users/delete-sessions.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/delete-target.md b/docs/examples/1.6.x/server-php/examples/users/delete-target.md index 6b9975d748f..0d85d3e4dfa 100644 --- a/docs/examples/1.6.x/server-php/examples/users/delete-target.md +++ b/docs/examples/1.6.x/server-php/examples/users/delete-target.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/delete.md b/docs/examples/1.6.x/server-php/examples/users/delete.md index f1dbbf3d93f..883156ecd69 100644 --- a/docs/examples/1.6.x/server-php/examples/users/delete.md +++ b/docs/examples/1.6.x/server-php/examples/users/delete.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-php/examples/users/get-mfa-recovery-codes.md index b0e3a759bd2..db090fb245b 100644 --- a/docs/examples/1.6.x/server-php/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-php/examples/users/get-mfa-recovery-codes.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/get-prefs.md b/docs/examples/1.6.x/server-php/examples/users/get-prefs.md index 59589f74fff..5e99e14b523 100644 --- a/docs/examples/1.6.x/server-php/examples/users/get-prefs.md +++ b/docs/examples/1.6.x/server-php/examples/users/get-prefs.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/get-target.md b/docs/examples/1.6.x/server-php/examples/users/get-target.md index ba146a30042..31baf3c852c 100644 --- a/docs/examples/1.6.x/server-php/examples/users/get-target.md +++ b/docs/examples/1.6.x/server-php/examples/users/get-target.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/get.md b/docs/examples/1.6.x/server-php/examples/users/get.md index 4ff399b6226..0ce39ae6e52 100644 --- a/docs/examples/1.6.x/server-php/examples/users/get.md +++ b/docs/examples/1.6.x/server-php/examples/users/get.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/list-identities.md b/docs/examples/1.6.x/server-php/examples/users/list-identities.md index 53ba78d8b23..fd15b7b51a4 100644 --- a/docs/examples/1.6.x/server-php/examples/users/list-identities.md +++ b/docs/examples/1.6.x/server-php/examples/users/list-identities.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/list-logs.md b/docs/examples/1.6.x/server-php/examples/users/list-logs.md index 434dbafc111..7aea2dc59a7 100644 --- a/docs/examples/1.6.x/server-php/examples/users/list-logs.md +++ b/docs/examples/1.6.x/server-php/examples/users/list-logs.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/list-memberships.md b/docs/examples/1.6.x/server-php/examples/users/list-memberships.md index addc6b75d0c..13ec2211e63 100644 --- a/docs/examples/1.6.x/server-php/examples/users/list-memberships.md +++ b/docs/examples/1.6.x/server-php/examples/users/list-memberships.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/list-mfa-factors.md b/docs/examples/1.6.x/server-php/examples/users/list-mfa-factors.md index 0d137aaf5e5..6a0088c9bd7 100644 --- a/docs/examples/1.6.x/server-php/examples/users/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-php/examples/users/list-mfa-factors.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/list-sessions.md b/docs/examples/1.6.x/server-php/examples/users/list-sessions.md index 5dcac1f5a4e..bdbd0e5e51e 100644 --- a/docs/examples/1.6.x/server-php/examples/users/list-sessions.md +++ b/docs/examples/1.6.x/server-php/examples/users/list-sessions.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/list-targets.md b/docs/examples/1.6.x/server-php/examples/users/list-targets.md index a91ac5e8cbf..005d51a5318 100644 --- a/docs/examples/1.6.x/server-php/examples/users/list-targets.md +++ b/docs/examples/1.6.x/server-php/examples/users/list-targets.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/list.md b/docs/examples/1.6.x/server-php/examples/users/list.md index 9b8d1d5f2c8..04217363f01 100644 --- a/docs/examples/1.6.x/server-php/examples/users/list.md +++ b/docs/examples/1.6.x/server-php/examples/users/list.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/update-email-verification.md b/docs/examples/1.6.x/server-php/examples/users/update-email-verification.md index e74e88735ea..636f1d2404d 100644 --- a/docs/examples/1.6.x/server-php/examples/users/update-email-verification.md +++ b/docs/examples/1.6.x/server-php/examples/users/update-email-verification.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/update-email.md b/docs/examples/1.6.x/server-php/examples/users/update-email.md index fc40fac0278..21ec88b3348 100644 --- a/docs/examples/1.6.x/server-php/examples/users/update-email.md +++ b/docs/examples/1.6.x/server-php/examples/users/update-email.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/update-labels.md b/docs/examples/1.6.x/server-php/examples/users/update-labels.md index 45fe23b7c9e..7d4ae5de503 100644 --- a/docs/examples/1.6.x/server-php/examples/users/update-labels.md +++ b/docs/examples/1.6.x/server-php/examples/users/update-labels.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-php/examples/users/update-mfa-recovery-codes.md index 369c248f11e..75214de880a 100644 --- a/docs/examples/1.6.x/server-php/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-php/examples/users/update-mfa-recovery-codes.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/update-mfa.md b/docs/examples/1.6.x/server-php/examples/users/update-mfa.md index 5df7aa265db..3eda496f1fd 100644 --- a/docs/examples/1.6.x/server-php/examples/users/update-mfa.md +++ b/docs/examples/1.6.x/server-php/examples/users/update-mfa.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/update-name.md b/docs/examples/1.6.x/server-php/examples/users/update-name.md index 7050d19bcfd..09bb07cdd7b 100644 --- a/docs/examples/1.6.x/server-php/examples/users/update-name.md +++ b/docs/examples/1.6.x/server-php/examples/users/update-name.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/update-password.md b/docs/examples/1.6.x/server-php/examples/users/update-password.md index 8dcb57b6a4a..6d58605d5c8 100644 --- a/docs/examples/1.6.x/server-php/examples/users/update-password.md +++ b/docs/examples/1.6.x/server-php/examples/users/update-password.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/update-phone-verification.md b/docs/examples/1.6.x/server-php/examples/users/update-phone-verification.md index 12e44dade1e..019fb3f1484 100644 --- a/docs/examples/1.6.x/server-php/examples/users/update-phone-verification.md +++ b/docs/examples/1.6.x/server-php/examples/users/update-phone-verification.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/update-phone.md b/docs/examples/1.6.x/server-php/examples/users/update-phone.md index 95c31156ee9..13bd41bfa8d 100644 --- a/docs/examples/1.6.x/server-php/examples/users/update-phone.md +++ b/docs/examples/1.6.x/server-php/examples/users/update-phone.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/update-prefs.md b/docs/examples/1.6.x/server-php/examples/users/update-prefs.md index 2ffd93875bb..94912392711 100644 --- a/docs/examples/1.6.x/server-php/examples/users/update-prefs.md +++ b/docs/examples/1.6.x/server-php/examples/users/update-prefs.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/update-status.md b/docs/examples/1.6.x/server-php/examples/users/update-status.md index 28a05320cee..f29dc95e2fd 100644 --- a/docs/examples/1.6.x/server-php/examples/users/update-status.md +++ b/docs/examples/1.6.x/server-php/examples/users/update-status.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-php/examples/users/update-target.md b/docs/examples/1.6.x/server-php/examples/users/update-target.md index a1b654d9018..00ad27b9a74 100644 --- a/docs/examples/1.6.x/server-php/examples/users/update-target.md +++ b/docs/examples/1.6.x/server-php/examples/users/update-target.md @@ -4,7 +4,7 @@ use Appwrite\Client; use Appwrite\Services\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint ->setProject('<YOUR_PROJECT_ID>') // Your project ID ->setKey('<YOUR_API_KEY>'); // Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/account/create-anonymous-session.md b/docs/examples/1.6.x/server-python/examples/account/create-anonymous-session.md index 36ed47de012..c3b7a87d270 100644 --- a/docs/examples/1.6.x/server-python/examples/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/server-python/examples/account/create-anonymous-session.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.6.x/server-python/examples/account/create-email-password-session.md b/docs/examples/1.6.x/server-python/examples/account/create-email-password-session.md index b85cc3d3654..e831821a6cc 100644 --- a/docs/examples/1.6.x/server-python/examples/account/create-email-password-session.md +++ b/docs/examples/1.6.x/server-python/examples/account/create-email-password-session.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.6.x/server-python/examples/account/create-email-token.md b/docs/examples/1.6.x/server-python/examples/account/create-email-token.md index 4c18324ef3a..7ff4f6b8a9f 100644 --- a/docs/examples/1.6.x/server-python/examples/account/create-email-token.md +++ b/docs/examples/1.6.x/server-python/examples/account/create-email-token.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.6.x/server-python/examples/account/create-j-w-t.md b/docs/examples/1.6.x/server-python/examples/account/create-j-w-t.md index 2121514562f..172f45f9965 100644 --- a/docs/examples/1.6.x/server-python/examples/account/create-j-w-t.md +++ b/docs/examples/1.6.x/server-python/examples/account/create-j-w-t.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.6.x/server-python/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/server-python/examples/account/create-magic-u-r-l-token.md index c0154182e64..14e76ed4d30 100644 --- a/docs/examples/1.6.x/server-python/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/server-python/examples/account/create-magic-u-r-l-token.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.6.x/server-python/examples/account/create-mfa-authenticator.md b/docs/examples/1.6.x/server-python/examples/account/create-mfa-authenticator.md index 16a8e2ebae7..70cee1d60c6 100644 --- a/docs/examples/1.6.x/server-python/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-python/examples/account/create-mfa-authenticator.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account from appwrite.enums import AuthenticatorType client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/create-mfa-challenge.md b/docs/examples/1.6.x/server-python/examples/account/create-mfa-challenge.md index 017fdd28cc4..abd746c605e 100644 --- a/docs/examples/1.6.x/server-python/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/server-python/examples/account/create-mfa-challenge.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account from appwrite.enums import AuthenticationFactor client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.6.x/server-python/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-python/examples/account/create-mfa-recovery-codes.md index 452b47f72fa..69aaa6091fb 100644 --- a/docs/examples/1.6.x/server-python/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-python/examples/account/create-mfa-recovery-codes.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/server-python/examples/account/create-o-auth2token.md index 0cc89df2161..2dc171bb314 100644 --- a/docs/examples/1.6.x/server-python/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/server-python/examples/account/create-o-auth2token.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account from appwrite.enums import OAuthProvider client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.6.x/server-python/examples/account/create-phone-token.md b/docs/examples/1.6.x/server-python/examples/account/create-phone-token.md index 30c80df6be8..06c2b204145 100644 --- a/docs/examples/1.6.x/server-python/examples/account/create-phone-token.md +++ b/docs/examples/1.6.x/server-python/examples/account/create-phone-token.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.6.x/server-python/examples/account/create-phone-verification.md b/docs/examples/1.6.x/server-python/examples/account/create-phone-verification.md index fd0a2620aa1..c130646bee8 100644 --- a/docs/examples/1.6.x/server-python/examples/account/create-phone-verification.md +++ b/docs/examples/1.6.x/server-python/examples/account/create-phone-verification.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/create-recovery.md b/docs/examples/1.6.x/server-python/examples/account/create-recovery.md index e9613cd9476..51c17772459 100644 --- a/docs/examples/1.6.x/server-python/examples/account/create-recovery.md +++ b/docs/examples/1.6.x/server-python/examples/account/create-recovery.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/create-session.md b/docs/examples/1.6.x/server-python/examples/account/create-session.md index d129e1000c2..1048dfedb2c 100644 --- a/docs/examples/1.6.x/server-python/examples/account/create-session.md +++ b/docs/examples/1.6.x/server-python/examples/account/create-session.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.6.x/server-python/examples/account/create-verification.md b/docs/examples/1.6.x/server-python/examples/account/create-verification.md index 5ff238f674a..d66fc2cd7d9 100644 --- a/docs/examples/1.6.x/server-python/examples/account/create-verification.md +++ b/docs/examples/1.6.x/server-python/examples/account/create-verification.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/create.md b/docs/examples/1.6.x/server-python/examples/account/create.md index 33b6f3fe234..7eda5a37fef 100644 --- a/docs/examples/1.6.x/server-python/examples/account/create.md +++ b/docs/examples/1.6.x/server-python/examples/account/create.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.6.x/server-python/examples/account/delete-identity.md b/docs/examples/1.6.x/server-python/examples/account/delete-identity.md index ef572894434..0c894fa6934 100644 --- a/docs/examples/1.6.x/server-python/examples/account/delete-identity.md +++ b/docs/examples/1.6.x/server-python/examples/account/delete-identity.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-python/examples/account/delete-mfa-authenticator.md index 0fbe8c7475b..83709c7aff4 100644 --- a/docs/examples/1.6.x/server-python/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-python/examples/account/delete-mfa-authenticator.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account from appwrite.enums import AuthenticatorType client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/delete-session.md b/docs/examples/1.6.x/server-python/examples/account/delete-session.md index fa0049c6e42..5967d7026a5 100644 --- a/docs/examples/1.6.x/server-python/examples/account/delete-session.md +++ b/docs/examples/1.6.x/server-python/examples/account/delete-session.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/delete-sessions.md b/docs/examples/1.6.x/server-python/examples/account/delete-sessions.md index 6ebe286c894..5061f84c5d1 100644 --- a/docs/examples/1.6.x/server-python/examples/account/delete-sessions.md +++ b/docs/examples/1.6.x/server-python/examples/account/delete-sessions.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-python/examples/account/get-mfa-recovery-codes.md index ec705952b2d..c8fe494d0ff 100644 --- a/docs/examples/1.6.x/server-python/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-python/examples/account/get-mfa-recovery-codes.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/get-prefs.md b/docs/examples/1.6.x/server-python/examples/account/get-prefs.md index 67d07417334..d577b4b2745 100644 --- a/docs/examples/1.6.x/server-python/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/server-python/examples/account/get-prefs.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/get-session.md b/docs/examples/1.6.x/server-python/examples/account/get-session.md index f7ae72d69ef..3e2937b913e 100644 --- a/docs/examples/1.6.x/server-python/examples/account/get-session.md +++ b/docs/examples/1.6.x/server-python/examples/account/get-session.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/get.md b/docs/examples/1.6.x/server-python/examples/account/get.md index 9ded8e96cb3..542622851c9 100644 --- a/docs/examples/1.6.x/server-python/examples/account/get.md +++ b/docs/examples/1.6.x/server-python/examples/account/get.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/list-identities.md b/docs/examples/1.6.x/server-python/examples/account/list-identities.md index c51da2cb67a..aeb23be747c 100644 --- a/docs/examples/1.6.x/server-python/examples/account/list-identities.md +++ b/docs/examples/1.6.x/server-python/examples/account/list-identities.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/list-logs.md b/docs/examples/1.6.x/server-python/examples/account/list-logs.md index 750f97716ac..67d193d1868 100644 --- a/docs/examples/1.6.x/server-python/examples/account/list-logs.md +++ b/docs/examples/1.6.x/server-python/examples/account/list-logs.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/server-python/examples/account/list-mfa-factors.md index 2220475b9f3..72a392465a2 100644 --- a/docs/examples/1.6.x/server-python/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-python/examples/account/list-mfa-factors.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/list-sessions.md b/docs/examples/1.6.x/server-python/examples/account/list-sessions.md index b3427c09ce7..c553a7bce21 100644 --- a/docs/examples/1.6.x/server-python/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/server-python/examples/account/list-sessions.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/update-email.md b/docs/examples/1.6.x/server-python/examples/account/update-email.md index b0a2a160020..14de4fd41e3 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-email.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-email.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/update-m-f-a.md b/docs/examples/1.6.x/server-python/examples/account/update-m-f-a.md index 561e7cc431b..7083d096422 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-m-f-a.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/server-python/examples/account/update-magic-u-r-l-session.md index f6b69b03cc0..01460830306 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-magic-u-r-l-session.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.6.x/server-python/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/server-python/examples/account/update-mfa-authenticator.md index 42b91f1d46e..d53607fe10c 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-mfa-authenticator.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.account import Account from appwrite.enums import AuthenticatorType client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/server-python/examples/account/update-mfa-challenge.md index 5964df42f81..cfc58c58a2d 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-mfa-challenge.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-python/examples/account/update-mfa-recovery-codes.md index 4f0b1362a04..51718eb03af 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-mfa-recovery-codes.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/update-name.md b/docs/examples/1.6.x/server-python/examples/account/update-name.md index d0027a84002..534a94e8bb1 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-name.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-name.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/update-password.md b/docs/examples/1.6.x/server-python/examples/account/update-password.md index 888349e2073..3c072e32d79 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-password.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-password.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/update-phone-session.md b/docs/examples/1.6.x/server-python/examples/account/update-phone-session.md index 404d2b458c5..52e77233a6c 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-phone-session.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-phone-session.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account(client) diff --git a/docs/examples/1.6.x/server-python/examples/account/update-phone-verification.md b/docs/examples/1.6.x/server-python/examples/account/update-phone-verification.md index 41ceb4bc053..bcc57dee719 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-phone-verification.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-phone-verification.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/update-phone.md b/docs/examples/1.6.x/server-python/examples/account/update-phone.md index b7414e613e8..a2cb7d3c831 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-phone.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-phone.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/update-prefs.md b/docs/examples/1.6.x/server-python/examples/account/update-prefs.md index f69dc12b33b..e2ac7a28c1c 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-prefs.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/update-recovery.md b/docs/examples/1.6.x/server-python/examples/account/update-recovery.md index a3314134e6a..ed140abc0fb 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-recovery.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-recovery.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/update-session.md b/docs/examples/1.6.x/server-python/examples/account/update-session.md index 3768326e982..abee773edcb 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-session.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-session.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/update-status.md b/docs/examples/1.6.x/server-python/examples/account/update-status.md index 4f9add80f7d..a5272f09ded 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-status.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-status.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/account/update-verification.md b/docs/examples/1.6.x/server-python/examples/account/update-verification.md index 35faf53cb84..fbc7af5302f 100644 --- a/docs/examples/1.6.x/server-python/examples/account/update-verification.md +++ b/docs/examples/1.6.x/server-python/examples/account/update-verification.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.account import Account client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/avatars/get-browser.md b/docs/examples/1.6.x/server-python/examples/avatars/get-browser.md index 91dde3bbb88..c7ae77f082e 100644 --- a/docs/examples/1.6.x/server-python/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/server-python/examples/avatars/get-browser.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.avatars import Avatars from appwrite.enums import Browser client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/server-python/examples/avatars/get-credit-card.md index cec2f61a205..160636de7ef 100644 --- a/docs/examples/1.6.x/server-python/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/server-python/examples/avatars/get-credit-card.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.avatars import Avatars from appwrite.enums import CreditCard client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/avatars/get-favicon.md b/docs/examples/1.6.x/server-python/examples/avatars/get-favicon.md index 4aa0177a262..f034ea41f33 100644 --- a/docs/examples/1.6.x/server-python/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/server-python/examples/avatars/get-favicon.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.avatars import Avatars client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/avatars/get-flag.md b/docs/examples/1.6.x/server-python/examples/avatars/get-flag.md index 6b12dac6be2..844dbb6a250 100644 --- a/docs/examples/1.6.x/server-python/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/server-python/examples/avatars/get-flag.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.avatars import Avatars from appwrite.enums import Flag client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/avatars/get-image.md b/docs/examples/1.6.x/server-python/examples/avatars/get-image.md index 202955c2fce..9272c4d8fb4 100644 --- a/docs/examples/1.6.x/server-python/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/server-python/examples/avatars/get-image.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.avatars import Avatars client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/avatars/get-initials.md b/docs/examples/1.6.x/server-python/examples/avatars/get-initials.md index 233da1b131c..2729ff51332 100644 --- a/docs/examples/1.6.x/server-python/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/server-python/examples/avatars/get-initials.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.avatars import Avatars client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/avatars/get-q-r.md b/docs/examples/1.6.x/server-python/examples/avatars/get-q-r.md index 12963947d26..3fb76a7f7cc 100644 --- a/docs/examples/1.6.x/server-python/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/server-python/examples/avatars/get-q-r.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.avatars import Avatars client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/databases/create-boolean-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/create-boolean-attribute.md index 183a2b64870..f12f446d30c 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/create-boolean-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/create-collection.md b/docs/examples/1.6.x/server-python/examples/databases/create-collection.md index fd9e3a6c0c0..596d4a93833 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/create-collection.md +++ b/docs/examples/1.6.x/server-python/examples/databases/create-collection.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/create-datetime-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/create-datetime-attribute.md index 7435742e1c9..8fd59e694fa 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/create-datetime-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/create-document.md b/docs/examples/1.6.x/server-python/examples/databases/create-document.md index bd3993f162f..1eaf0246f33 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/create-document.md +++ b/docs/examples/1.6.x/server-python/examples/databases/create-document.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/databases/create-documents.md b/docs/examples/1.6.x/server-python/examples/databases/create-documents.md new file mode 100644 index 00000000000..1178a0f7357 --- /dev/null +++ b/docs/examples/1.6.x/server-python/examples/databases/create-documents.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_session('') # The user session to authenticate with + +databases = Databases(client) + +result = databases.create_documents( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + documents = [] +) diff --git a/docs/examples/1.6.x/server-python/examples/databases/create-email-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/create-email-attribute.md index f4b427e294c..230567aa469 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/create-email-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/create-email-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/create-enum-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/create-enum-attribute.md index dce63558dab..de1ceb9f1f8 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/create-enum-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/create-float-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/create-float-attribute.md index a658bd8f4c2..53305c8d4e8 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/create-float-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/create-float-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/create-index.md b/docs/examples/1.6.x/server-python/examples/databases/create-index.md index 015b762bbcc..fe78b5e1520 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/create-index.md +++ b/docs/examples/1.6.x/server-python/examples/databases/create-index.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.databases import Databases from appwrite.enums import IndexType client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/create-integer-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/create-integer-attribute.md index 9f409e484e6..92e8b0f86aa 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/create-integer-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/create-ip-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/create-ip-attribute.md index ab4d357447a..a7f424b22c8 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/create-ip-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/create-relationship-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/create-relationship-attribute.md index 76b5db1c45d..6c8f4dc5bbe 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/create-relationship-attribute.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.databases import Databases from appwrite.enums import RelationshipType client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/create-string-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/create-string-attribute.md index d6f7f946278..dc434cccaff 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/create-string-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/create-string-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/create-url-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/create-url-attribute.md index 3b105d80e82..af375733dd3 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/create-url-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/create-url-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/create.md b/docs/examples/1.6.x/server-python/examples/databases/create.md index a4ddc92cc6f..0492203e4c1 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/create.md +++ b/docs/examples/1.6.x/server-python/examples/databases/create.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/delete-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/delete-attribute.md index 7f490b23507..e1c4eecd01e 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/delete-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/delete-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/delete-collection.md b/docs/examples/1.6.x/server-python/examples/databases/delete-collection.md index c3083a51bc6..02f1e1c536b 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/delete-collection.md +++ b/docs/examples/1.6.x/server-python/examples/databases/delete-collection.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/delete-document.md b/docs/examples/1.6.x/server-python/examples/databases/delete-document.md index c3e296aef22..57f8b3bd9d1 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/delete-document.md +++ b/docs/examples/1.6.x/server-python/examples/databases/delete-document.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/databases/delete-documents.md b/docs/examples/1.6.x/server-python/examples/databases/delete-documents.md new file mode 100644 index 00000000000..a315f0c200b --- /dev/null +++ b/docs/examples/1.6.x/server-python/examples/databases/delete-documents.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.delete_documents( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + queries = [] # optional +) diff --git a/docs/examples/1.6.x/server-python/examples/databases/delete-index.md b/docs/examples/1.6.x/server-python/examples/databases/delete-index.md index d5a12c140e7..006006421d2 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/delete-index.md +++ b/docs/examples/1.6.x/server-python/examples/databases/delete-index.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/delete.md b/docs/examples/1.6.x/server-python/examples/databases/delete.md index 41d5f18f8af..be64e8c6282 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/delete.md +++ b/docs/examples/1.6.x/server-python/examples/databases/delete.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/get-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/get-attribute.md index e505fe9a38c..dcdb0a6ea9b 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/get-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/get-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/get-collection.md b/docs/examples/1.6.x/server-python/examples/databases/get-collection.md index 7be57ea193d..0833b4fd7e8 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/get-collection.md +++ b/docs/examples/1.6.x/server-python/examples/databases/get-collection.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/get-document.md b/docs/examples/1.6.x/server-python/examples/databases/get-document.md index 83faadec384..aff5008fa0d 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/get-document.md +++ b/docs/examples/1.6.x/server-python/examples/databases/get-document.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/databases/get-index.md b/docs/examples/1.6.x/server-python/examples/databases/get-index.md index 6038868b41c..69716830728 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/get-index.md +++ b/docs/examples/1.6.x/server-python/examples/databases/get-index.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/get.md b/docs/examples/1.6.x/server-python/examples/databases/get.md index 8fe2358be7f..c8191a37778 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/get.md +++ b/docs/examples/1.6.x/server-python/examples/databases/get.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/list-attributes.md b/docs/examples/1.6.x/server-python/examples/databases/list-attributes.md index a29aefa0154..c97a5ced646 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/list-attributes.md +++ b/docs/examples/1.6.x/server-python/examples/databases/list-attributes.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/list-collections.md b/docs/examples/1.6.x/server-python/examples/databases/list-collections.md index 0e613321c23..17d0a3d8782 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/list-collections.md +++ b/docs/examples/1.6.x/server-python/examples/databases/list-collections.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/list-documents.md b/docs/examples/1.6.x/server-python/examples/databases/list-documents.md index dee130e65f9..8b450cd0206 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/server-python/examples/databases/list-documents.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/databases/list-indexes.md b/docs/examples/1.6.x/server-python/examples/databases/list-indexes.md index 40578a14de1..1457151a4e0 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/list-indexes.md +++ b/docs/examples/1.6.x/server-python/examples/databases/list-indexes.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/list.md b/docs/examples/1.6.x/server-python/examples/databases/list.md index aa934b2b126..58336c9f896 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/list.md +++ b/docs/examples/1.6.x/server-python/examples/databases/list.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/update-boolean-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/update-boolean-attribute.md index 553d94b109e..a0f72a49fb6 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/update-boolean-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/update-collection.md b/docs/examples/1.6.x/server-python/examples/databases/update-collection.md index 3432b6bf183..2e5be50581e 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/update-collection.md +++ b/docs/examples/1.6.x/server-python/examples/databases/update-collection.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/update-datetime-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/update-datetime-attribute.md index f9056d2c396..29bc6be4d18 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/update-datetime-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/update-document.md b/docs/examples/1.6.x/server-python/examples/databases/update-document.md index 07bba7678c3..9ef65279342 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/update-document.md +++ b/docs/examples/1.6.x/server-python/examples/databases/update-document.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/databases/update-documents.md b/docs/examples/1.6.x/server-python/examples/databases/update-documents.md new file mode 100644 index 00000000000..5a50d1a9124 --- /dev/null +++ b/docs/examples/1.6.x/server-python/examples/databases/update-documents.md @@ -0,0 +1,16 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.update_documents( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + data = {}, # optional + queries = [] # optional +) diff --git a/docs/examples/1.6.x/server-python/examples/databases/update-email-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/update-email-attribute.md index 45a8d0d9bc0..c833789a37b 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/update-email-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/update-email-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/update-enum-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/update-enum-attribute.md index c07f3754d8b..6186a72a663 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/update-enum-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/update-float-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/update-float-attribute.md index fa1767e8931..68cb7d79294 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/update-float-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/update-float-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key @@ -12,8 +13,8 @@ result = databases.update_float_attribute( collection_id = '<COLLECTION_ID>', key = '', required = False, - min = None, - max = None, default = None, + min = None, # optional + max = None, # optional new_key = '' # optional ) diff --git a/docs/examples/1.6.x/server-python/examples/databases/update-integer-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/update-integer-attribute.md index 0db97070ed4..05c6bfe9158 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/update-integer-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key @@ -12,8 +13,8 @@ result = databases.update_integer_attribute( collection_id = '<COLLECTION_ID>', key = '', required = False, - min = None, - max = None, default = None, + min = None, # optional + max = None, # optional new_key = '' # optional ) diff --git a/docs/examples/1.6.x/server-python/examples/databases/update-ip-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/update-ip-attribute.md index 135dbd82ea3..550d3af6417 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/update-ip-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/update-relationship-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/update-relationship-attribute.md index bc528f17dde..3b6c8e93e98 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/update-relationship-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/update-string-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/update-string-attribute.md index bbe7ddb19fb..5b66fb015ce 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/update-string-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/update-string-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key @@ -13,6 +14,6 @@ result = databases.update_string_attribute( key = '', required = False, default = '<DEFAULT>', - size = None, # optional + size = 1, # optional new_key = '' # optional ) diff --git a/docs/examples/1.6.x/server-python/examples/databases/update-url-attribute.md b/docs/examples/1.6.x/server-python/examples/databases/update-url-attribute.md index 8e3a28de1fd..4a6202760f2 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/update-url-attribute.md +++ b/docs/examples/1.6.x/server-python/examples/databases/update-url-attribute.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/update.md b/docs/examples/1.6.x/server-python/examples/databases/update.md index 765f28a3fc7..35d2c0cc408 100644 --- a/docs/examples/1.6.x/server-python/examples/databases/update.md +++ b/docs/examples/1.6.x/server-python/examples/databases/update.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.databases import Databases client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/databases/upsert-documents.md b/docs/examples/1.6.x/server-python/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..99720649d6a --- /dev/null +++ b/docs/examples/1.6.x/server-python/examples/databases/upsert-documents.md @@ -0,0 +1,15 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases(client) + +result = databases.upsert_documents( + database_id = '<DATABASE_ID>', + collection_id = '<COLLECTION_ID>', + documents = [] # optional +) diff --git a/docs/examples/1.6.x/server-python/examples/functions/create-build.md b/docs/examples/1.6.x/server-python/examples/functions/create-build.md index c4eb9d0a20e..3d784b0e7c2 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/create-build.md +++ b/docs/examples/1.6.x/server-python/examples/functions/create-build.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/create-deployment.md b/docs/examples/1.6.x/server-python/examples/functions/create-deployment.md index da9b559b2fc..07740057299 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/create-deployment.md +++ b/docs/examples/1.6.x/server-python/examples/functions/create-deployment.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.functions import Functions from appwrite.input_file import InputFile client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/create-execution.md b/docs/examples/1.6.x/server-python/examples/functions/create-execution.md index e1decb97558..b41c7e376c3 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/create-execution.md +++ b/docs/examples/1.6.x/server-python/examples/functions/create-execution.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/functions/create-variable.md b/docs/examples/1.6.x/server-python/examples/functions/create-variable.md index cd73e30c036..84c286f560f 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/create-variable.md +++ b/docs/examples/1.6.x/server-python/examples/functions/create-variable.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/create.md b/docs/examples/1.6.x/server-python/examples/functions/create.md index a65b87dd4c8..68d6e99c6e1 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/create.md +++ b/docs/examples/1.6.x/server-python/examples/functions/create.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.functions import Functions from appwrite.enums import client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/delete-deployment.md b/docs/examples/1.6.x/server-python/examples/functions/delete-deployment.md index 780ce9d7c88..f874b2d2706 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/delete-deployment.md +++ b/docs/examples/1.6.x/server-python/examples/functions/delete-deployment.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/delete-execution.md b/docs/examples/1.6.x/server-python/examples/functions/delete-execution.md index 7c3ea09a0f7..df7ce7cb5b5 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/delete-execution.md +++ b/docs/examples/1.6.x/server-python/examples/functions/delete-execution.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/delete-variable.md b/docs/examples/1.6.x/server-python/examples/functions/delete-variable.md index 646a0f325bf..a6e3dc853ce 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/delete-variable.md +++ b/docs/examples/1.6.x/server-python/examples/functions/delete-variable.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/delete.md b/docs/examples/1.6.x/server-python/examples/functions/delete.md index 2950ed02358..ed2fef76c72 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/delete.md +++ b/docs/examples/1.6.x/server-python/examples/functions/delete.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/get-deployment-download.md b/docs/examples/1.6.x/server-python/examples/functions/get-deployment-download.md index 490d9521dfb..8cc16faec13 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/get-deployment-download.md +++ b/docs/examples/1.6.x/server-python/examples/functions/get-deployment-download.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/get-deployment.md b/docs/examples/1.6.x/server-python/examples/functions/get-deployment.md index 8846888f0f4..59a1374e0fc 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/get-deployment.md +++ b/docs/examples/1.6.x/server-python/examples/functions/get-deployment.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/get-execution.md b/docs/examples/1.6.x/server-python/examples/functions/get-execution.md index f3dfc0f4ee0..a299f35195b 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/server-python/examples/functions/get-execution.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/functions/get-variable.md b/docs/examples/1.6.x/server-python/examples/functions/get-variable.md index fd903f30456..629948e9091 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/get-variable.md +++ b/docs/examples/1.6.x/server-python/examples/functions/get-variable.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/get.md b/docs/examples/1.6.x/server-python/examples/functions/get.md index cb765e42a11..eeab5a556b1 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/get.md +++ b/docs/examples/1.6.x/server-python/examples/functions/get.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/list-deployments.md b/docs/examples/1.6.x/server-python/examples/functions/list-deployments.md index f776345f115..4eb92f60dff 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/list-deployments.md +++ b/docs/examples/1.6.x/server-python/examples/functions/list-deployments.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/list-executions.md b/docs/examples/1.6.x/server-python/examples/functions/list-executions.md index 0012bafc8fe..e83f7271fab 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/server-python/examples/functions/list-executions.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/functions/list-runtimes.md b/docs/examples/1.6.x/server-python/examples/functions/list-runtimes.md index edad1a9178c..9c89a36f0c8 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/list-runtimes.md +++ b/docs/examples/1.6.x/server-python/examples/functions/list-runtimes.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/list-specifications.md b/docs/examples/1.6.x/server-python/examples/functions/list-specifications.md index a9c7417654e..d7d0036d354 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/list-specifications.md +++ b/docs/examples/1.6.x/server-python/examples/functions/list-specifications.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/list-variables.md b/docs/examples/1.6.x/server-python/examples/functions/list-variables.md index 188c17bb6a4..ebc19c5ba44 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/list-variables.md +++ b/docs/examples/1.6.x/server-python/examples/functions/list-variables.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/list.md b/docs/examples/1.6.x/server-python/examples/functions/list.md index 5b315e18cc2..b1d696d25a8 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/list.md +++ b/docs/examples/1.6.x/server-python/examples/functions/list.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/update-deployment-build.md b/docs/examples/1.6.x/server-python/examples/functions/update-deployment-build.md index a8d93b8416c..ef2b8a6d047 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/update-deployment-build.md +++ b/docs/examples/1.6.x/server-python/examples/functions/update-deployment-build.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/update-deployment.md b/docs/examples/1.6.x/server-python/examples/functions/update-deployment.md index 9fce3847158..6b96434a461 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/update-deployment.md +++ b/docs/examples/1.6.x/server-python/examples/functions/update-deployment.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/update-variable.md b/docs/examples/1.6.x/server-python/examples/functions/update-variable.md index 238fc91effe..e333ec1193a 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/update-variable.md +++ b/docs/examples/1.6.x/server-python/examples/functions/update-variable.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/functions/update.md b/docs/examples/1.6.x/server-python/examples/functions/update.md index 5f2a70baaac..64ee39b29d6 100644 --- a/docs/examples/1.6.x/server-python/examples/functions/update.md +++ b/docs/examples/1.6.x/server-python/examples/functions/update.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.functions import Functions client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/graphql/mutation.md b/docs/examples/1.6.x/server-python/examples/graphql/mutation.md index 0ec3d3eefc8..189892a4adb 100644 --- a/docs/examples/1.6.x/server-python/examples/graphql/mutation.md +++ b/docs/examples/1.6.x/server-python/examples/graphql/mutation.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.graphql import Graphql client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/graphql/query.md b/docs/examples/1.6.x/server-python/examples/graphql/query.md index 95709fd694e..585a5029b5a 100644 --- a/docs/examples/1.6.x/server-python/examples/graphql/query.md +++ b/docs/examples/1.6.x/server-python/examples/graphql/query.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.graphql import Graphql client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-antivirus.md b/docs/examples/1.6.x/server-python/examples/health/get-antivirus.md index ff93ceac760..2b621472eeb 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-antivirus.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-antivirus.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-cache.md b/docs/examples/1.6.x/server-python/examples/health/get-cache.md index fa2a6daa5c2..595c4bf0a5f 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-cache.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-cache.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-certificate.md b/docs/examples/1.6.x/server-python/examples/health/get-certificate.md index 2a73583361c..5b3e2c0ad31 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-certificate.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-certificate.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-d-b.md b/docs/examples/1.6.x/server-python/examples/health/get-d-b.md index 18e39682461..47c7bd8efb5 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-d-b.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-d-b.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-failed-jobs.md b/docs/examples/1.6.x/server-python/examples/health/get-failed-jobs.md index ce33c8c9bd6..5362a2d02ad 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-failed-jobs.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-failed-jobs.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.health import Health from appwrite.enums import client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-pub-sub.md b/docs/examples/1.6.x/server-python/examples/health/get-pub-sub.md index db66c7f676b..e5115d06b8d 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-pub-sub.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-pub-sub.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-queue-builds.md b/docs/examples/1.6.x/server-python/examples/health/get-queue-builds.md index 9daed589f85..18ed8e30237 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-queue-builds.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-queue-builds.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-queue-certificates.md b/docs/examples/1.6.x/server-python/examples/health/get-queue-certificates.md index a7d35bc9f4d..b0a29e2d5b0 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-queue-certificates.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-queue-certificates.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-queue-databases.md b/docs/examples/1.6.x/server-python/examples/health/get-queue-databases.md index 50f8943fa6f..491d1f7c35c 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-queue-databases.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-queue-databases.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-queue-deletes.md b/docs/examples/1.6.x/server-python/examples/health/get-queue-deletes.md index b6e6a4d4a42..fa860c6111a 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-queue-deletes.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-queue-deletes.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-queue-functions.md b/docs/examples/1.6.x/server-python/examples/health/get-queue-functions.md index 5868b3cd688..d4ca9388d95 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-queue-functions.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-queue-functions.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-queue-logs.md b/docs/examples/1.6.x/server-python/examples/health/get-queue-logs.md index 254fe233316..1479f03634c 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-queue-logs.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-queue-logs.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-queue-mails.md b/docs/examples/1.6.x/server-python/examples/health/get-queue-mails.md index c6ab409c9b8..6835efeaa46 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-queue-mails.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-queue-mails.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-queue-messaging.md b/docs/examples/1.6.x/server-python/examples/health/get-queue-messaging.md index 10079138663..34cbad2f311 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-queue-messaging.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-queue-messaging.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-queue-migrations.md b/docs/examples/1.6.x/server-python/examples/health/get-queue-migrations.md index db59028f377..019db4e8119 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-queue-migrations.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-queue-migrations.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-queue-stats-resources.md b/docs/examples/1.6.x/server-python/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..92aebc3c915 --- /dev/null +++ b/docs/examples/1.6.x/server-python/examples/health/get-queue-stats-resources.md @@ -0,0 +1,13 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('<YOUR_PROJECT_ID>') # Your project ID +client.set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health(client) + +result = health.get_queue_stats_resources( + threshold = None # optional +) diff --git a/docs/examples/1.6.x/server-python/examples/health/get-queue-usage-dump.md b/docs/examples/1.6.x/server-python/examples/health/get-queue-usage-dump.md index cc31b4f5af9..e5e27a7912a 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-queue-usage-dump.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-queue-usage.md b/docs/examples/1.6.x/server-python/examples/health/get-queue-usage.md index 67d9e64c142..266ca828b1d 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-queue-usage.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-queue-usage.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-queue-webhooks.md b/docs/examples/1.6.x/server-python/examples/health/get-queue-webhooks.md index 918846738d9..df5e2d56db0 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-queue-webhooks.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-queue.md b/docs/examples/1.6.x/server-python/examples/health/get-queue.md index 61e5a40caae..3cafb9be95a 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-queue.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-queue.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-storage-local.md b/docs/examples/1.6.x/server-python/examples/health/get-storage-local.md index 276c3058f94..7d2ea44f454 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-storage-local.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-storage-local.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-storage.md b/docs/examples/1.6.x/server-python/examples/health/get-storage.md index b2de63b72fb..821d9f39867 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-storage.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-storage.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get-time.md b/docs/examples/1.6.x/server-python/examples/health/get-time.md index 40893057cb3..907e96499b5 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get-time.md +++ b/docs/examples/1.6.x/server-python/examples/health/get-time.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/health/get.md b/docs/examples/1.6.x/server-python/examples/health/get.md index f41e0e3a9b0..c544fcc9b66 100644 --- a/docs/examples/1.6.x/server-python/examples/health/get.md +++ b/docs/examples/1.6.x/server-python/examples/health/get.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.health import Health client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/locale/get.md b/docs/examples/1.6.x/server-python/examples/locale/get.md index fc048ddcc94..6f2a877b0cf 100644 --- a/docs/examples/1.6.x/server-python/examples/locale/get.md +++ b/docs/examples/1.6.x/server-python/examples/locale/get.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/locale/list-codes.md b/docs/examples/1.6.x/server-python/examples/locale/list-codes.md index d516538cb9c..5f3e501fe13 100644 --- a/docs/examples/1.6.x/server-python/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/server-python/examples/locale/list-codes.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/locale/list-continents.md b/docs/examples/1.6.x/server-python/examples/locale/list-continents.md index f6d84955275..0aead81734c 100644 --- a/docs/examples/1.6.x/server-python/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/server-python/examples/locale/list-continents.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/server-python/examples/locale/list-countries-e-u.md index 8bdac2e5e36..f88e331f430 100644 --- a/docs/examples/1.6.x/server-python/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/server-python/examples/locale/list-countries-e-u.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/server-python/examples/locale/list-countries-phones.md index 516d822b596..b1fdc1ae517 100644 --- a/docs/examples/1.6.x/server-python/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/server-python/examples/locale/list-countries-phones.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/locale/list-countries.md b/docs/examples/1.6.x/server-python/examples/locale/list-countries.md index 8fcbe1aeb94..0c5b23cdd15 100644 --- a/docs/examples/1.6.x/server-python/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/server-python/examples/locale/list-countries.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/locale/list-currencies.md b/docs/examples/1.6.x/server-python/examples/locale/list-currencies.md index 4708498efbe..20009d65690 100644 --- a/docs/examples/1.6.x/server-python/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/server-python/examples/locale/list-currencies.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/locale/list-languages.md b/docs/examples/1.6.x/server-python/examples/locale/list-languages.md index 9583cd8b3fe..1962a8399e1 100644 --- a/docs/examples/1.6.x/server-python/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/server-python/examples/locale/list-languages.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.locale import Locale client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/messaging/create-apns-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/create-apns-provider.md index 022209d1e67..b57fa00f238 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/create-apns-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/create-email.md b/docs/examples/1.6.x/server-python/examples/messaging/create-email.md index 38005a37364..8b4c9d267ea 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/create-email.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/create-email.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/create-fcm-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/create-fcm-provider.md index 84c38eae98d..9c40eb78289 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/create-fcm-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/create-mailgun-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/create-mailgun-provider.md index fa94da96c94..6703f6fdccb 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/create-mailgun-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/create-msg91provider.md b/docs/examples/1.6.x/server-python/examples/messaging/create-msg91provider.md index 0cffc4e491f..9315dcdd30d 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/create-msg91provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/create-push.md b/docs/examples/1.6.x/server-python/examples/messaging/create-push.md index ffed825a3d0..8671b56a399 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/create-push.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/create-push.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key @@ -9,8 +10,8 @@ messaging = Messaging(client) result = messaging.create_push( message_id = '<MESSAGE_ID>', - title = '<TITLE>', - body = '<BODY>', + title = '<TITLE>', # optional + body = '<BODY>', # optional topics = [], # optional users = [], # optional targets = [], # optional @@ -21,7 +22,10 @@ result = messaging.create_push( sound = '<SOUND>', # optional color = '<COLOR>', # optional tag = '<TAG>', # optional - badge = '<BADGE>', # optional + badge = None, # optional draft = False, # optional - scheduled_at = '' # optional + scheduled_at = '', # optional + content_available = False, # optional + critical = False, # optional + priority = MessagePriority.NORMAL # optional ) diff --git a/docs/examples/1.6.x/server-python/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/create-sendgrid-provider.md index 6e9b812736a..46ff54f1665 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/create-sendgrid-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/create-sms.md b/docs/examples/1.6.x/server-python/examples/messaging/create-sms.md index c3e7fe70bf5..d1c7b495b26 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/create-sms.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/create-sms.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/create-smtp-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/create-smtp-provider.md index 24108d251fd..99914f07796 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/create-smtp-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/server-python/examples/messaging/create-subscriber.md index 81b0c5f468c..bc0c892b485 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/create-subscriber.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_jwt('<YOUR_JWT>') # Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-python/examples/messaging/create-telesign-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/create-telesign-provider.md index b06033c5c57..aff09fe8520 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/create-telesign-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/create-textmagic-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/create-textmagic-provider.md index 6dc1030cd37..46ded71cdd2 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/create-textmagic-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/create-topic.md b/docs/examples/1.6.x/server-python/examples/messaging/create-topic.md index b0184b53b4b..c1cb465e9b7 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/create-topic.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/create-topic.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/create-twilio-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/create-twilio-provider.md index c73e9419459..4438563abff 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/create-twilio-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/create-vonage-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/create-vonage-provider.md index cfee0ad7a45..6ffded5b53a 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/create-vonage-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/delete-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/delete-provider.md index 4d2bd6d015c..649e504c19a 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/delete-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/delete-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/delete-subscriber.md b/docs/examples/1.6.x/server-python/examples/messaging/delete-subscriber.md index 5d404d1875e..c012a9ac975 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/delete-subscriber.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_jwt('<YOUR_JWT>') # Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-python/examples/messaging/delete-topic.md b/docs/examples/1.6.x/server-python/examples/messaging/delete-topic.md index b270b2a7084..76f9093a5f9 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/delete-topic.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/delete-topic.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/delete.md b/docs/examples/1.6.x/server-python/examples/messaging/delete.md index c62c8c0d215..0153ac90cb6 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/delete.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/delete.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/get-message.md b/docs/examples/1.6.x/server-python/examples/messaging/get-message.md index 4b4ef392035..3fadcff7d3a 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/get-message.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/get-message.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/get-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/get-provider.md index fdf94f03048..58e62280531 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/get-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/get-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/get-subscriber.md b/docs/examples/1.6.x/server-python/examples/messaging/get-subscriber.md index 7f8284f8748..ca997f21f02 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/get-subscriber.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/get-subscriber.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/get-topic.md b/docs/examples/1.6.x/server-python/examples/messaging/get-topic.md index 57c465b8839..c238a98afe2 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/get-topic.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/get-topic.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/list-message-logs.md b/docs/examples/1.6.x/server-python/examples/messaging/list-message-logs.md index 752e449806f..f28c3e506ff 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/list-message-logs.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/list-message-logs.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/list-messages.md b/docs/examples/1.6.x/server-python/examples/messaging/list-messages.md index 7219f0948e6..211649d5fb9 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/list-messages.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/list-messages.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/list-provider-logs.md b/docs/examples/1.6.x/server-python/examples/messaging/list-provider-logs.md index 148814c46d7..da87e5939b5 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/list-provider-logs.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/list-providers.md b/docs/examples/1.6.x/server-python/examples/messaging/list-providers.md index 3e896954e43..03e5c4ebbcd 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/list-providers.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/list-providers.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/list-subscriber-logs.md b/docs/examples/1.6.x/server-python/examples/messaging/list-subscriber-logs.md index 7efaeadedf2..df8ec72911c 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/list-subscriber-logs.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/list-subscribers.md b/docs/examples/1.6.x/server-python/examples/messaging/list-subscribers.md index fe2442d8065..f949b408e50 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/list-subscribers.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/list-subscribers.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/list-targets.md b/docs/examples/1.6.x/server-python/examples/messaging/list-targets.md index 062257154c2..786ee42b198 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/list-targets.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/list-targets.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/list-topic-logs.md b/docs/examples/1.6.x/server-python/examples/messaging/list-topic-logs.md index de72a76a271..f8a3995295b 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/list-topic-logs.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/list-topics.md b/docs/examples/1.6.x/server-python/examples/messaging/list-topics.md index 13797089659..1c2cefc9cdd 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/list-topics.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/list-topics.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/update-apns-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/update-apns-provider.md index 2bfd3edfc12..f695b61b8ca 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/update-apns-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/update-email.md b/docs/examples/1.6.x/server-python/examples/messaging/update-email.md index 6cff0ae6d8c..5731d5f29ad 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/update-email.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/update-email.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/update-fcm-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/update-fcm-provider.md index 7ca9f381e63..0119d71b4f8 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/update-fcm-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/update-mailgun-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/update-mailgun-provider.md index a89338df92c..039475ffdce 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/update-mailgun-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/update-msg91provider.md b/docs/examples/1.6.x/server-python/examples/messaging/update-msg91provider.md index 4c619500508..c5bd0579125 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/update-msg91provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/update-push.md b/docs/examples/1.6.x/server-python/examples/messaging/update-push.md index 3c3965c3bd6..e3bb02e71fa 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/update-push.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/update-push.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key @@ -23,5 +24,8 @@ result = messaging.update_push( tag = '<TAG>', # optional badge = None, # optional draft = False, # optional - scheduled_at = '' # optional + scheduled_at = '', # optional + content_available = False, # optional + critical = False, # optional + priority = MessagePriority.NORMAL # optional ) diff --git a/docs/examples/1.6.x/server-python/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/update-sendgrid-provider.md index 8b67b7a44f3..fc0a44d6cd8 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/update-sendgrid-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/update-sms.md b/docs/examples/1.6.x/server-python/examples/messaging/update-sms.md index aadbd9aee83..2eec4e215b9 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/update-sms.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/update-sms.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/update-smtp-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/update-smtp-provider.md index 74232e983f0..80019aad405 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/update-smtp-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/update-telesign-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/update-telesign-provider.md index 264928178b4..193a26f8301 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/update-telesign-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/update-textmagic-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/update-textmagic-provider.md index bbe4a93a507..159f95490eb 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/update-textmagic-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/update-topic.md b/docs/examples/1.6.x/server-python/examples/messaging/update-topic.md index ee4d00411ec..721f1606426 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/update-topic.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/update-topic.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/update-twilio-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/update-twilio-provider.md index 52eed3bb7ba..b80c55b300b 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/update-twilio-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/messaging/update-vonage-provider.md b/docs/examples/1.6.x/server-python/examples/messaging/update-vonage-provider.md index 7cb1594a81c..b25f416cef5 100644 --- a/docs/examples/1.6.x/server-python/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.6.x/server-python/examples/messaging/update-vonage-provider.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/storage/create-bucket.md b/docs/examples/1.6.x/server-python/examples/storage/create-bucket.md index c6e9e33e027..9672782b5c4 100644 --- a/docs/examples/1.6.x/server-python/examples/storage/create-bucket.md +++ b/docs/examples/1.6.x/server-python/examples/storage/create-bucket.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/storage/create-file.md b/docs/examples/1.6.x/server-python/examples/storage/create-file.md index d275070bacb..6e57284b85d 100644 --- a/docs/examples/1.6.x/server-python/examples/storage/create-file.md +++ b/docs/examples/1.6.x/server-python/examples/storage/create-file.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.storage import Storage from appwrite.input_file import InputFile client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/storage/delete-bucket.md b/docs/examples/1.6.x/server-python/examples/storage/delete-bucket.md index 77d72eb9158..dd8e8ebc434 100644 --- a/docs/examples/1.6.x/server-python/examples/storage/delete-bucket.md +++ b/docs/examples/1.6.x/server-python/examples/storage/delete-bucket.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/storage/delete-file.md b/docs/examples/1.6.x/server-python/examples/storage/delete-file.md index 775065dc388..17bc251e50e 100644 --- a/docs/examples/1.6.x/server-python/examples/storage/delete-file.md +++ b/docs/examples/1.6.x/server-python/examples/storage/delete-file.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/storage/get-bucket.md b/docs/examples/1.6.x/server-python/examples/storage/get-bucket.md index adb78e8b923..e5eeb4c097f 100644 --- a/docs/examples/1.6.x/server-python/examples/storage/get-bucket.md +++ b/docs/examples/1.6.x/server-python/examples/storage/get-bucket.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/storage/get-file-download.md b/docs/examples/1.6.x/server-python/examples/storage/get-file-download.md index b419ea0164b..d21db6304a6 100644 --- a/docs/examples/1.6.x/server-python/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/server-python/examples/storage/get-file-download.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/storage/get-file-preview.md b/docs/examples/1.6.x/server-python/examples/storage/get-file-preview.md index 2e3b2acdc6a..20939b20b49 100644 --- a/docs/examples/1.6.x/server-python/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/server-python/examples/storage/get-file-preview.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/storage/get-file-view.md b/docs/examples/1.6.x/server-python/examples/storage/get-file-view.md index 9ce04e2a49c..bf70d136e26 100644 --- a/docs/examples/1.6.x/server-python/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/server-python/examples/storage/get-file-view.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/storage/get-file.md b/docs/examples/1.6.x/server-python/examples/storage/get-file.md index 9f04ef4740f..461543e3fdf 100644 --- a/docs/examples/1.6.x/server-python/examples/storage/get-file.md +++ b/docs/examples/1.6.x/server-python/examples/storage/get-file.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/storage/list-buckets.md b/docs/examples/1.6.x/server-python/examples/storage/list-buckets.md index 84eab54286e..51a1ae68365 100644 --- a/docs/examples/1.6.x/server-python/examples/storage/list-buckets.md +++ b/docs/examples/1.6.x/server-python/examples/storage/list-buckets.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/storage/list-files.md b/docs/examples/1.6.x/server-python/examples/storage/list-files.md index 8a2aa6d9a3d..4034bd477da 100644 --- a/docs/examples/1.6.x/server-python/examples/storage/list-files.md +++ b/docs/examples/1.6.x/server-python/examples/storage/list-files.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/storage/update-bucket.md b/docs/examples/1.6.x/server-python/examples/storage/update-bucket.md index 4eea2a9ccb9..f2e741a5aa4 100644 --- a/docs/examples/1.6.x/server-python/examples/storage/update-bucket.md +++ b/docs/examples/1.6.x/server-python/examples/storage/update-bucket.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/storage/update-file.md b/docs/examples/1.6.x/server-python/examples/storage/update-file.md index 0137af58496..cf1e5779bbb 100644 --- a/docs/examples/1.6.x/server-python/examples/storage/update-file.md +++ b/docs/examples/1.6.x/server-python/examples/storage/update-file.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.storage import Storage client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/teams/create-membership.md b/docs/examples/1.6.x/server-python/examples/teams/create-membership.md index 484629550dd..cb3bf731951 100644 --- a/docs/examples/1.6.x/server-python/examples/teams/create-membership.md +++ b/docs/examples/1.6.x/server-python/examples/teams/create-membership.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/teams/create.md b/docs/examples/1.6.x/server-python/examples/teams/create.md index 544ee3a706b..f623151b272 100644 --- a/docs/examples/1.6.x/server-python/examples/teams/create.md +++ b/docs/examples/1.6.x/server-python/examples/teams/create.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/teams/delete-membership.md b/docs/examples/1.6.x/server-python/examples/teams/delete-membership.md index 7f0cbd4ed6f..6fb218266f3 100644 --- a/docs/examples/1.6.x/server-python/examples/teams/delete-membership.md +++ b/docs/examples/1.6.x/server-python/examples/teams/delete-membership.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/teams/delete.md b/docs/examples/1.6.x/server-python/examples/teams/delete.md index fc8415238e5..056114bfad5 100644 --- a/docs/examples/1.6.x/server-python/examples/teams/delete.md +++ b/docs/examples/1.6.x/server-python/examples/teams/delete.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/teams/get-membership.md b/docs/examples/1.6.x/server-python/examples/teams/get-membership.md index 6075cc70d16..3c028a5c7e5 100644 --- a/docs/examples/1.6.x/server-python/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/server-python/examples/teams/get-membership.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/teams/get-prefs.md b/docs/examples/1.6.x/server-python/examples/teams/get-prefs.md index d740e69e3bf..8d645897c68 100644 --- a/docs/examples/1.6.x/server-python/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/server-python/examples/teams/get-prefs.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/teams/get.md b/docs/examples/1.6.x/server-python/examples/teams/get.md index 6d44b80ee37..55f172eadda 100644 --- a/docs/examples/1.6.x/server-python/examples/teams/get.md +++ b/docs/examples/1.6.x/server-python/examples/teams/get.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/teams/list-memberships.md b/docs/examples/1.6.x/server-python/examples/teams/list-memberships.md index f7a072a6d8b..6e6f15a284a 100644 --- a/docs/examples/1.6.x/server-python/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/server-python/examples/teams/list-memberships.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/teams/list.md b/docs/examples/1.6.x/server-python/examples/teams/list.md index afb5de1241e..bf91a507448 100644 --- a/docs/examples/1.6.x/server-python/examples/teams/list.md +++ b/docs/examples/1.6.x/server-python/examples/teams/list.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/teams/update-membership-status.md b/docs/examples/1.6.x/server-python/examples/teams/update-membership-status.md index ee6d2110818..9c08421579b 100644 --- a/docs/examples/1.6.x/server-python/examples/teams/update-membership-status.md +++ b/docs/examples/1.6.x/server-python/examples/teams/update-membership-status.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/teams/update-membership.md b/docs/examples/1.6.x/server-python/examples/teams/update-membership.md index 672615026ee..db20c5aaaef 100644 --- a/docs/examples/1.6.x/server-python/examples/teams/update-membership.md +++ b/docs/examples/1.6.x/server-python/examples/teams/update-membership.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/teams/update-name.md b/docs/examples/1.6.x/server-python/examples/teams/update-name.md index 693654d3d73..160b4969321 100644 --- a/docs/examples/1.6.x/server-python/examples/teams/update-name.md +++ b/docs/examples/1.6.x/server-python/examples/teams/update-name.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/teams/update-prefs.md b/docs/examples/1.6.x/server-python/examples/teams/update-prefs.md index 46616011d61..e82da1b64f1 100644 --- a/docs/examples/1.6.x/server-python/examples/teams/update-prefs.md +++ b/docs/examples/1.6.x/server-python/examples/teams/update-prefs.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.teams import Teams client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-python/examples/users/create-argon2user.md b/docs/examples/1.6.x/server-python/examples/users/create-argon2user.md index 575aa42b30a..5e95cc26ace 100644 --- a/docs/examples/1.6.x/server-python/examples/users/create-argon2user.md +++ b/docs/examples/1.6.x/server-python/examples/users/create-argon2user.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/create-bcrypt-user.md b/docs/examples/1.6.x/server-python/examples/users/create-bcrypt-user.md index f6cd2fe5914..d3d9e21586c 100644 --- a/docs/examples/1.6.x/server-python/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.6.x/server-python/examples/users/create-bcrypt-user.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/create-j-w-t.md b/docs/examples/1.6.x/server-python/examples/users/create-j-w-t.md index a758d4e0896..bed6c483e03 100644 --- a/docs/examples/1.6.x/server-python/examples/users/create-j-w-t.md +++ b/docs/examples/1.6.x/server-python/examples/users/create-j-w-t.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/create-m-d5user.md b/docs/examples/1.6.x/server-python/examples/users/create-m-d5user.md index cabf8759380..b1cbb53f23f 100644 --- a/docs/examples/1.6.x/server-python/examples/users/create-m-d5user.md +++ b/docs/examples/1.6.x/server-python/examples/users/create-m-d5user.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-python/examples/users/create-mfa-recovery-codes.md index 606878f1e98..64a87c05ff2 100644 --- a/docs/examples/1.6.x/server-python/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-python/examples/users/create-mfa-recovery-codes.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/create-p-h-pass-user.md b/docs/examples/1.6.x/server-python/examples/users/create-p-h-pass-user.md index 0d8f9907ac4..33f65f44d9e 100644 --- a/docs/examples/1.6.x/server-python/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.6.x/server-python/examples/users/create-p-h-pass-user.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/create-s-h-a-user.md b/docs/examples/1.6.x/server-python/examples/users/create-s-h-a-user.md index b0ae799b640..5b4c8f831ac 100644 --- a/docs/examples/1.6.x/server-python/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.6.x/server-python/examples/users/create-s-h-a-user.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/create-scrypt-modified-user.md b/docs/examples/1.6.x/server-python/examples/users/create-scrypt-modified-user.md index d7d17c4de0b..9d644ce4caa 100644 --- a/docs/examples/1.6.x/server-python/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.6.x/server-python/examples/users/create-scrypt-modified-user.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/create-scrypt-user.md b/docs/examples/1.6.x/server-python/examples/users/create-scrypt-user.md index 507fb1f8929..f442ab9d3e2 100644 --- a/docs/examples/1.6.x/server-python/examples/users/create-scrypt-user.md +++ b/docs/examples/1.6.x/server-python/examples/users/create-scrypt-user.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/create-session.md b/docs/examples/1.6.x/server-python/examples/users/create-session.md index a2ba12a580a..7e4c49fc950 100644 --- a/docs/examples/1.6.x/server-python/examples/users/create-session.md +++ b/docs/examples/1.6.x/server-python/examples/users/create-session.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/create-target.md b/docs/examples/1.6.x/server-python/examples/users/create-target.md index 9ad8364ea39..dfa64ac7571 100644 --- a/docs/examples/1.6.x/server-python/examples/users/create-target.md +++ b/docs/examples/1.6.x/server-python/examples/users/create-target.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.users import Users from appwrite.enums import MessagingProviderType client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/create-token.md b/docs/examples/1.6.x/server-python/examples/users/create-token.md index e2ef2f69698..b40658c3129 100644 --- a/docs/examples/1.6.x/server-python/examples/users/create-token.md +++ b/docs/examples/1.6.x/server-python/examples/users/create-token.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/create.md b/docs/examples/1.6.x/server-python/examples/users/create.md index c3e7fd55587..4c51a3fffbb 100644 --- a/docs/examples/1.6.x/server-python/examples/users/create.md +++ b/docs/examples/1.6.x/server-python/examples/users/create.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/delete-identity.md b/docs/examples/1.6.x/server-python/examples/users/delete-identity.md index 4c78038d11d..412fbd393a5 100644 --- a/docs/examples/1.6.x/server-python/examples/users/delete-identity.md +++ b/docs/examples/1.6.x/server-python/examples/users/delete-identity.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-python/examples/users/delete-mfa-authenticator.md index c7101d119f0..64724983444 100644 --- a/docs/examples/1.6.x/server-python/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-python/examples/users/delete-mfa-authenticator.md @@ -1,8 +1,9 @@ from appwrite.client import Client +from appwrite.services.users import Users from appwrite.enums import AuthenticatorType client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/delete-session.md b/docs/examples/1.6.x/server-python/examples/users/delete-session.md index c0fabdb19c1..815a96ed377 100644 --- a/docs/examples/1.6.x/server-python/examples/users/delete-session.md +++ b/docs/examples/1.6.x/server-python/examples/users/delete-session.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/delete-sessions.md b/docs/examples/1.6.x/server-python/examples/users/delete-sessions.md index 328a9eeb2fc..2dde88f4713 100644 --- a/docs/examples/1.6.x/server-python/examples/users/delete-sessions.md +++ b/docs/examples/1.6.x/server-python/examples/users/delete-sessions.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/delete-target.md b/docs/examples/1.6.x/server-python/examples/users/delete-target.md index 5c2d9df8d84..287f5a26cf5 100644 --- a/docs/examples/1.6.x/server-python/examples/users/delete-target.md +++ b/docs/examples/1.6.x/server-python/examples/users/delete-target.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/delete.md b/docs/examples/1.6.x/server-python/examples/users/delete.md index de8b35b5134..7032b0f81e2 100644 --- a/docs/examples/1.6.x/server-python/examples/users/delete.md +++ b/docs/examples/1.6.x/server-python/examples/users/delete.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-python/examples/users/get-mfa-recovery-codes.md index b37739ccae3..bca43b08ec4 100644 --- a/docs/examples/1.6.x/server-python/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-python/examples/users/get-mfa-recovery-codes.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/get-prefs.md b/docs/examples/1.6.x/server-python/examples/users/get-prefs.md index 23109a9696d..ec9d363f8d1 100644 --- a/docs/examples/1.6.x/server-python/examples/users/get-prefs.md +++ b/docs/examples/1.6.x/server-python/examples/users/get-prefs.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/get-target.md b/docs/examples/1.6.x/server-python/examples/users/get-target.md index d494460c5e3..3b80b1ff7f8 100644 --- a/docs/examples/1.6.x/server-python/examples/users/get-target.md +++ b/docs/examples/1.6.x/server-python/examples/users/get-target.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/get.md b/docs/examples/1.6.x/server-python/examples/users/get.md index d7dda455169..267086a3df1 100644 --- a/docs/examples/1.6.x/server-python/examples/users/get.md +++ b/docs/examples/1.6.x/server-python/examples/users/get.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/list-identities.md b/docs/examples/1.6.x/server-python/examples/users/list-identities.md index 7764d742680..0fc7811a3fa 100644 --- a/docs/examples/1.6.x/server-python/examples/users/list-identities.md +++ b/docs/examples/1.6.x/server-python/examples/users/list-identities.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/list-logs.md b/docs/examples/1.6.x/server-python/examples/users/list-logs.md index d1c6b0abb7f..6cbbe498cb6 100644 --- a/docs/examples/1.6.x/server-python/examples/users/list-logs.md +++ b/docs/examples/1.6.x/server-python/examples/users/list-logs.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/list-memberships.md b/docs/examples/1.6.x/server-python/examples/users/list-memberships.md index 27db71f0c72..9e3b0053eaf 100644 --- a/docs/examples/1.6.x/server-python/examples/users/list-memberships.md +++ b/docs/examples/1.6.x/server-python/examples/users/list-memberships.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/list-mfa-factors.md b/docs/examples/1.6.x/server-python/examples/users/list-mfa-factors.md index 39aed0c173c..a2b59895e8c 100644 --- a/docs/examples/1.6.x/server-python/examples/users/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-python/examples/users/list-mfa-factors.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/list-sessions.md b/docs/examples/1.6.x/server-python/examples/users/list-sessions.md index fd091b96831..77b04c935ea 100644 --- a/docs/examples/1.6.x/server-python/examples/users/list-sessions.md +++ b/docs/examples/1.6.x/server-python/examples/users/list-sessions.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/list-targets.md b/docs/examples/1.6.x/server-python/examples/users/list-targets.md index b5b67b96e37..14107fa296f 100644 --- a/docs/examples/1.6.x/server-python/examples/users/list-targets.md +++ b/docs/examples/1.6.x/server-python/examples/users/list-targets.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/list.md b/docs/examples/1.6.x/server-python/examples/users/list.md index b191f8ae739..778f33935d7 100644 --- a/docs/examples/1.6.x/server-python/examples/users/list.md +++ b/docs/examples/1.6.x/server-python/examples/users/list.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/update-email-verification.md b/docs/examples/1.6.x/server-python/examples/users/update-email-verification.md index 72ddf7a9bdc..2605861416b 100644 --- a/docs/examples/1.6.x/server-python/examples/users/update-email-verification.md +++ b/docs/examples/1.6.x/server-python/examples/users/update-email-verification.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/update-email.md b/docs/examples/1.6.x/server-python/examples/users/update-email.md index c977d95250d..c4a468e2345 100644 --- a/docs/examples/1.6.x/server-python/examples/users/update-email.md +++ b/docs/examples/1.6.x/server-python/examples/users/update-email.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/update-labels.md b/docs/examples/1.6.x/server-python/examples/users/update-labels.md index 04c39993051..b9af53a50e3 100644 --- a/docs/examples/1.6.x/server-python/examples/users/update-labels.md +++ b/docs/examples/1.6.x/server-python/examples/users/update-labels.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-python/examples/users/update-mfa-recovery-codes.md index ca3b96aa8bb..c0990e1ef78 100644 --- a/docs/examples/1.6.x/server-python/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-python/examples/users/update-mfa-recovery-codes.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/update-mfa.md b/docs/examples/1.6.x/server-python/examples/users/update-mfa.md index e145f9b2594..9b357011850 100644 --- a/docs/examples/1.6.x/server-python/examples/users/update-mfa.md +++ b/docs/examples/1.6.x/server-python/examples/users/update-mfa.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/update-name.md b/docs/examples/1.6.x/server-python/examples/users/update-name.md index d546b952977..1e328b4c489 100644 --- a/docs/examples/1.6.x/server-python/examples/users/update-name.md +++ b/docs/examples/1.6.x/server-python/examples/users/update-name.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/update-password.md b/docs/examples/1.6.x/server-python/examples/users/update-password.md index 0c7e7bf030f..d104184cadf 100644 --- a/docs/examples/1.6.x/server-python/examples/users/update-password.md +++ b/docs/examples/1.6.x/server-python/examples/users/update-password.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/update-phone-verification.md b/docs/examples/1.6.x/server-python/examples/users/update-phone-verification.md index b13c4fba33b..1d2656c3f18 100644 --- a/docs/examples/1.6.x/server-python/examples/users/update-phone-verification.md +++ b/docs/examples/1.6.x/server-python/examples/users/update-phone-verification.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/update-phone.md b/docs/examples/1.6.x/server-python/examples/users/update-phone.md index ecb01728e8d..14826bb54cd 100644 --- a/docs/examples/1.6.x/server-python/examples/users/update-phone.md +++ b/docs/examples/1.6.x/server-python/examples/users/update-phone.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/update-prefs.md b/docs/examples/1.6.x/server-python/examples/users/update-prefs.md index ca6999c950f..76903b76112 100644 --- a/docs/examples/1.6.x/server-python/examples/users/update-prefs.md +++ b/docs/examples/1.6.x/server-python/examples/users/update-prefs.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/update-status.md b/docs/examples/1.6.x/server-python/examples/users/update-status.md index ebec495c33b..49c0516ee47 100644 --- a/docs/examples/1.6.x/server-python/examples/users/update-status.md +++ b/docs/examples/1.6.x/server-python/examples/users/update-status.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-python/examples/users/update-target.md b/docs/examples/1.6.x/server-python/examples/users/update-target.md index f9bdfb43efc..119c5fab889 100644 --- a/docs/examples/1.6.x/server-python/examples/users/update-target.md +++ b/docs/examples/1.6.x/server-python/examples/users/update-target.md @@ -1,7 +1,8 @@ from appwrite.client import Client +from appwrite.services.users import Users client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint +client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint client.set_project('<YOUR_PROJECT_ID>') # Your project ID client.set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-rest/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/server-rest/examples/account/create-o-auth2token.md index bd1c62ad70c..ab5cf7b65a9 100644 --- a/docs/examples/1.6.x/server-rest/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/server-rest/examples/account/create-o-auth2token.md @@ -1,6 +1,4 @@ GET /v1/account/tokens/oauth2/{provider} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> - diff --git a/docs/examples/1.6.x/server-rest/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-rest/examples/account/get-mfa-recovery-codes.md index 4ff19b49079..5cbcdd074fa 100644 --- a/docs/examples/1.6.x/server-rest/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-rest/examples/account/get-mfa-recovery-codes.md @@ -1,8 +1,6 @@ GET /v1/account/mfa/recovery-codes HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/account/get-prefs.md b/docs/examples/1.6.x/server-rest/examples/account/get-prefs.md index f6e92458096..b3f7689f9ce 100644 --- a/docs/examples/1.6.x/server-rest/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/server-rest/examples/account/get-prefs.md @@ -1,8 +1,6 @@ GET /v1/account/prefs HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/account/get-session.md b/docs/examples/1.6.x/server-rest/examples/account/get-session.md index 34d0f05dad4..e0ca8b7524f 100644 --- a/docs/examples/1.6.x/server-rest/examples/account/get-session.md +++ b/docs/examples/1.6.x/server-rest/examples/account/get-session.md @@ -1,8 +1,6 @@ GET /v1/account/sessions/{sessionId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/account/get.md b/docs/examples/1.6.x/server-rest/examples/account/get.md index 41ba456acef..af2d7833779 100644 --- a/docs/examples/1.6.x/server-rest/examples/account/get.md +++ b/docs/examples/1.6.x/server-rest/examples/account/get.md @@ -1,8 +1,6 @@ GET /v1/account HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/account/list-identities.md b/docs/examples/1.6.x/server-rest/examples/account/list-identities.md index 28c7ebfb78c..27ffc6e7c3c 100644 --- a/docs/examples/1.6.x/server-rest/examples/account/list-identities.md +++ b/docs/examples/1.6.x/server-rest/examples/account/list-identities.md @@ -1,8 +1,6 @@ GET /v1/account/identities HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/account/list-logs.md b/docs/examples/1.6.x/server-rest/examples/account/list-logs.md index bac50d727e8..ace64fb895f 100644 --- a/docs/examples/1.6.x/server-rest/examples/account/list-logs.md +++ b/docs/examples/1.6.x/server-rest/examples/account/list-logs.md @@ -1,8 +1,6 @@ GET /v1/account/logs HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/server-rest/examples/account/list-mfa-factors.md index 9246740d803..ea2364bebc0 100644 --- a/docs/examples/1.6.x/server-rest/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-rest/examples/account/list-mfa-factors.md @@ -1,8 +1,6 @@ GET /v1/account/mfa/factors HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/account/list-sessions.md b/docs/examples/1.6.x/server-rest/examples/account/list-sessions.md index ec11f663800..39fa5035dc9 100644 --- a/docs/examples/1.6.x/server-rest/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/server-rest/examples/account/list-sessions.md @@ -1,8 +1,6 @@ GET /v1/account/sessions HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/avatars/get-browser.md b/docs/examples/1.6.x/server-rest/examples/avatars/get-browser.md index 06991b14727..d4520a05dc1 100644 --- a/docs/examples/1.6.x/server-rest/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/server-rest/examples/avatars/get-browser.md @@ -1,9 +1,7 @@ GET /v1/avatars/browsers/{code} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/server-rest/examples/avatars/get-credit-card.md index 37a0113b7a2..327b38a206d 100644 --- a/docs/examples/1.6.x/server-rest/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/server-rest/examples/avatars/get-credit-card.md @@ -1,9 +1,7 @@ GET /v1/avatars/credit-cards/{code} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/avatars/get-favicon.md b/docs/examples/1.6.x/server-rest/examples/avatars/get-favicon.md index ec2471d3357..0114daaf18d 100644 --- a/docs/examples/1.6.x/server-rest/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/server-rest/examples/avatars/get-favicon.md @@ -1,9 +1,7 @@ GET /v1/avatars/favicon HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/avatars/get-flag.md b/docs/examples/1.6.x/server-rest/examples/avatars/get-flag.md index f8d1a4221ed..02c6d5e30f2 100644 --- a/docs/examples/1.6.x/server-rest/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/server-rest/examples/avatars/get-flag.md @@ -1,9 +1,7 @@ GET /v1/avatars/flags/{code} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/avatars/get-image.md b/docs/examples/1.6.x/server-rest/examples/avatars/get-image.md index d73bf5ea9b8..810f5087dd3 100644 --- a/docs/examples/1.6.x/server-rest/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/server-rest/examples/avatars/get-image.md @@ -1,9 +1,7 @@ GET /v1/avatars/image HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/avatars/get-initials.md b/docs/examples/1.6.x/server-rest/examples/avatars/get-initials.md index 799f399cd54..1e5fd759baa 100644 --- a/docs/examples/1.6.x/server-rest/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/server-rest/examples/avatars/get-initials.md @@ -1,9 +1,7 @@ GET /v1/avatars/initials HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/avatars/get-q-r.md b/docs/examples/1.6.x/server-rest/examples/avatars/get-q-r.md index cdf8f0d6ce0..e0a87fe825d 100644 --- a/docs/examples/1.6.x/server-rest/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/server-rest/examples/avatars/get-q-r.md @@ -1,9 +1,7 @@ GET /v1/avatars/qr HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/databases/create-documents.md b/docs/examples/1.6.x/server-rest/examples/databases/create-documents.md new file mode 100644 index 00000000000..892510cf6f4 --- /dev/null +++ b/docs/examples/1.6.x/server-rest/examples/databases/create-documents.md @@ -0,0 +1,12 @@ +POST /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Session: +X-Appwrite-Key: <YOUR_API_KEY> +X-Appwrite-JWT: <YOUR_JWT> + +{ + "documents": [] +} diff --git a/docs/examples/1.6.x/server-rest/examples/databases/delete-documents.md b/docs/examples/1.6.x/server-rest/examples/databases/delete-documents.md new file mode 100644 index 00000000000..daf782fd2cf --- /dev/null +++ b/docs/examples/1.6.x/server-rest/examples/databases/delete-documents.md @@ -0,0 +1,10 @@ +DELETE /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "queries": [] +} diff --git a/docs/examples/1.6.x/server-rest/examples/databases/get-attribute.md b/docs/examples/1.6.x/server-rest/examples/databases/get-attribute.md index 7bee7eada87..adff49f1cad 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/get-attribute.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/get-attribute.md @@ -1,7 +1,5 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/attributes/{key} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/databases/get-collection.md b/docs/examples/1.6.x/server-rest/examples/databases/get-collection.md index 6d9d732dbb8..dc7fb0dd3bf 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/get-collection.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/get-collection.md @@ -1,7 +1,5 @@ GET /v1/databases/{databaseId}/collections/{collectionId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/databases/get-document.md b/docs/examples/1.6.x/server-rest/examples/databases/get-document.md index 184a2560cbd..d9456475cf6 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/get-document.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/get-document.md @@ -1,9 +1,7 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/databases/get-index.md b/docs/examples/1.6.x/server-rest/examples/databases/get-index.md index 66803277048..d271f142656 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/get-index.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/get-index.md @@ -1,7 +1,5 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/indexes/{key} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/databases/get.md b/docs/examples/1.6.x/server-rest/examples/databases/get.md index fc9c7e80ae5..20fb7b42d15 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/get.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/get.md @@ -1,7 +1,5 @@ GET /v1/databases/{databaseId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/databases/list-attributes.md b/docs/examples/1.6.x/server-rest/examples/databases/list-attributes.md index de5dcb91f2d..e3b5206faa2 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/list-attributes.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/list-attributes.md @@ -1,7 +1,5 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/attributes HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/databases/list-collections.md b/docs/examples/1.6.x/server-rest/examples/databases/list-collections.md index 6a3f6ef3038..703c1b27e15 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/list-collections.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/list-collections.md @@ -1,7 +1,5 @@ GET /v1/databases/{databaseId}/collections HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/databases/list-documents.md b/docs/examples/1.6.x/server-rest/examples/databases/list-documents.md index 7c9202e71ac..d65976b09af 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/list-documents.md @@ -1,9 +1,7 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/databases/list-indexes.md b/docs/examples/1.6.x/server-rest/examples/databases/list-indexes.md index 7334ba03228..5fc839d1519 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/list-indexes.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/list-indexes.md @@ -1,7 +1,5 @@ GET /v1/databases/{databaseId}/collections/{collectionId}/indexes HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/databases/list.md b/docs/examples/1.6.x/server-rest/examples/databases/list.md index 90e88fd34e6..1381b1a94f0 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/list.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/list.md @@ -1,7 +1,5 @@ GET /v1/databases HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/databases/update-documents.md b/docs/examples/1.6.x/server-rest/examples/databases/update-documents.md new file mode 100644 index 00000000000..71fdbf9c639 --- /dev/null +++ b/docs/examples/1.6.x/server-rest/examples/databases/update-documents.md @@ -0,0 +1,11 @@ +PATCH /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "data": {}, + "queries": [] +} diff --git a/docs/examples/1.6.x/server-rest/examples/databases/update-string-attribute.md b/docs/examples/1.6.x/server-rest/examples/databases/update-string-attribute.md index 197ea2767d3..71a5302e1a7 100644 --- a/docs/examples/1.6.x/server-rest/examples/databases/update-string-attribute.md +++ b/docs/examples/1.6.x/server-rest/examples/databases/update-string-attribute.md @@ -8,6 +8,6 @@ X-Appwrite-Key: <YOUR_API_KEY> { "required": false, "default": "<DEFAULT>", - "size": 0, + "size": 1, "newKey": } diff --git a/docs/examples/1.6.x/server-rest/examples/databases/upsert-documents.md b/docs/examples/1.6.x/server-rest/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..c374b430439 --- /dev/null +++ b/docs/examples/1.6.x/server-rest/examples/databases/upsert-documents.md @@ -0,0 +1,10 @@ +PUT /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.6.0 +X-Appwrite-Project: <YOUR_PROJECT_ID> +X-Appwrite-Key: <YOUR_API_KEY> + +{ + "documents": [] +} diff --git a/docs/examples/1.6.x/server-rest/examples/functions/download-deployment.md b/docs/examples/1.6.x/server-rest/examples/functions/download-deployment.md deleted file mode 100644 index ccd37283c9a..00000000000 --- a/docs/examples/1.6.x/server-rest/examples/functions/download-deployment.md +++ /dev/null @@ -1,7 +0,0 @@ -GET /v1/functions/{functionId}/deployments/{deploymentId}/download HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.5.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/functions/get-deployment-download.md b/docs/examples/1.6.x/server-rest/examples/functions/get-deployment-download.md index 4c5c3f2a34a..099d18e8992 100644 --- a/docs/examples/1.6.x/server-rest/examples/functions/get-deployment-download.md +++ b/docs/examples/1.6.x/server-rest/examples/functions/get-deployment-download.md @@ -1,8 +1,6 @@ GET /v1/functions/{functionId}/deployments/{deploymentId}/download HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/functions/get-deployment.md b/docs/examples/1.6.x/server-rest/examples/functions/get-deployment.md index 130618b10bc..46dad098be7 100644 --- a/docs/examples/1.6.x/server-rest/examples/functions/get-deployment.md +++ b/docs/examples/1.6.x/server-rest/examples/functions/get-deployment.md @@ -1,7 +1,5 @@ GET /v1/functions/{functionId}/deployments/{deploymentId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/functions/get-execution.md b/docs/examples/1.6.x/server-rest/examples/functions/get-execution.md index 6d4de2b447d..e5bd7d878d0 100644 --- a/docs/examples/1.6.x/server-rest/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/server-rest/examples/functions/get-execution.md @@ -1,9 +1,7 @@ GET /v1/functions/{functionId}/executions/{executionId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/functions/get-template.md b/docs/examples/1.6.x/server-rest/examples/functions/get-template.md deleted file mode 100644 index d4e1f95cf52..00000000000 --- a/docs/examples/1.6.x/server-rest/examples/functions/get-template.md +++ /dev/null @@ -1,6 +0,0 @@ -GET /v1/functions/templates/{templateId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.6.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> - diff --git a/docs/examples/1.6.x/server-rest/examples/functions/get-variable.md b/docs/examples/1.6.x/server-rest/examples/functions/get-variable.md index 8260b4e74ee..dcd65e60c74 100644 --- a/docs/examples/1.6.x/server-rest/examples/functions/get-variable.md +++ b/docs/examples/1.6.x/server-rest/examples/functions/get-variable.md @@ -1,7 +1,5 @@ GET /v1/functions/{functionId}/variables/{variableId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/functions/get.md b/docs/examples/1.6.x/server-rest/examples/functions/get.md index af1de30e3ee..5a2e4a3b1ee 100644 --- a/docs/examples/1.6.x/server-rest/examples/functions/get.md +++ b/docs/examples/1.6.x/server-rest/examples/functions/get.md @@ -1,7 +1,5 @@ GET /v1/functions/{functionId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/functions/list-deployments.md b/docs/examples/1.6.x/server-rest/examples/functions/list-deployments.md index 531afed1270..eb95020fafc 100644 --- a/docs/examples/1.6.x/server-rest/examples/functions/list-deployments.md +++ b/docs/examples/1.6.x/server-rest/examples/functions/list-deployments.md @@ -1,7 +1,5 @@ GET /v1/functions/{functionId}/deployments HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/functions/list-executions.md b/docs/examples/1.6.x/server-rest/examples/functions/list-executions.md index 36fa78beda9..a693d5fa0c2 100644 --- a/docs/examples/1.6.x/server-rest/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/server-rest/examples/functions/list-executions.md @@ -1,9 +1,7 @@ GET /v1/functions/{functionId}/executions HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/functions/list-runtimes.md b/docs/examples/1.6.x/server-rest/examples/functions/list-runtimes.md index b519e728017..1b2e4783931 100644 --- a/docs/examples/1.6.x/server-rest/examples/functions/list-runtimes.md +++ b/docs/examples/1.6.x/server-rest/examples/functions/list-runtimes.md @@ -1,7 +1,5 @@ GET /v1/functions/runtimes HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/functions/list-specifications.md b/docs/examples/1.6.x/server-rest/examples/functions/list-specifications.md index 16dc73924a4..7d0e360b22e 100644 --- a/docs/examples/1.6.x/server-rest/examples/functions/list-specifications.md +++ b/docs/examples/1.6.x/server-rest/examples/functions/list-specifications.md @@ -1,7 +1,5 @@ GET /v1/functions/specifications HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/functions/list-templates.md b/docs/examples/1.6.x/server-rest/examples/functions/list-templates.md deleted file mode 100644 index b671bedebfc..00000000000 --- a/docs/examples/1.6.x/server-rest/examples/functions/list-templates.md +++ /dev/null @@ -1,6 +0,0 @@ -GET /v1/functions/templates HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.6.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> - diff --git a/docs/examples/1.6.x/server-rest/examples/functions/list-variables.md b/docs/examples/1.6.x/server-rest/examples/functions/list-variables.md index 3fae1b93d94..c9c45f4abe7 100644 --- a/docs/examples/1.6.x/server-rest/examples/functions/list-variables.md +++ b/docs/examples/1.6.x/server-rest/examples/functions/list-variables.md @@ -1,7 +1,5 @@ GET /v1/functions/{functionId}/variables HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/functions/list.md b/docs/examples/1.6.x/server-rest/examples/functions/list.md index f2e29bc2510..86e289b430e 100644 --- a/docs/examples/1.6.x/server-rest/examples/functions/list.md +++ b/docs/examples/1.6.x/server-rest/examples/functions/list.md @@ -1,7 +1,5 @@ GET /v1/functions HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-antivirus.md b/docs/examples/1.6.x/server-rest/examples/health/get-antivirus.md index 580aa42206e..1b58ac8a994 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-antivirus.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-antivirus.md @@ -1,7 +1,5 @@ GET /v1/health/anti-virus HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-cache.md b/docs/examples/1.6.x/server-rest/examples/health/get-cache.md index 321cbd1c6f1..c0201133e59 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-cache.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-cache.md @@ -1,7 +1,5 @@ GET /v1/health/cache HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-certificate.md b/docs/examples/1.6.x/server-rest/examples/health/get-certificate.md index 650686521c7..1cb20a8feed 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-certificate.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-certificate.md @@ -1,7 +1,5 @@ GET /v1/health/certificate HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-d-b.md b/docs/examples/1.6.x/server-rest/examples/health/get-d-b.md index 92f3399d1d2..0f079ec4cb8 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-d-b.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-d-b.md @@ -1,7 +1,5 @@ GET /v1/health/db HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-failed-jobs.md b/docs/examples/1.6.x/server-rest/examples/health/get-failed-jobs.md index 09bce30cabf..77cf41e6f06 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-failed-jobs.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-failed-jobs.md @@ -1,7 +1,5 @@ GET /v1/health/queue/failed/{name} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-pub-sub.md b/docs/examples/1.6.x/server-rest/examples/health/get-pub-sub.md index 6c01e4ea4b9..ae99d2a1043 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-pub-sub.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-pub-sub.md @@ -1,7 +1,5 @@ GET /v1/health/pubsub HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-queue-builds.md b/docs/examples/1.6.x/server-rest/examples/health/get-queue-builds.md index 6b2dc650b35..622a013dcac 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-queue-builds.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-queue-builds.md @@ -1,7 +1,5 @@ GET /v1/health/queue/builds HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-queue-certificates.md b/docs/examples/1.6.x/server-rest/examples/health/get-queue-certificates.md index f5df6532b3b..dfdffd9f66c 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-queue-certificates.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-queue-certificates.md @@ -1,7 +1,5 @@ GET /v1/health/queue/certificates HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-queue-databases.md b/docs/examples/1.6.x/server-rest/examples/health/get-queue-databases.md index dff44fc0372..9bb9484aed0 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-queue-databases.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-queue-databases.md @@ -1,7 +1,5 @@ GET /v1/health/queue/databases HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-queue-deletes.md b/docs/examples/1.6.x/server-rest/examples/health/get-queue-deletes.md index 3bf2cd34feb..070a27e8029 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-queue-deletes.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-queue-deletes.md @@ -1,7 +1,5 @@ GET /v1/health/queue/deletes HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-queue-functions.md b/docs/examples/1.6.x/server-rest/examples/health/get-queue-functions.md index 81eb8cf68ea..e6f17d08391 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-queue-functions.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-queue-functions.md @@ -1,7 +1,5 @@ GET /v1/health/queue/functions HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-queue-logs.md b/docs/examples/1.6.x/server-rest/examples/health/get-queue-logs.md index 398444a9c10..34a0fa166ce 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-queue-logs.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-queue-logs.md @@ -1,7 +1,5 @@ GET /v1/health/queue/logs HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-queue-mails.md b/docs/examples/1.6.x/server-rest/examples/health/get-queue-mails.md index 7fb0a9b595e..06349376599 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-queue-mails.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-queue-mails.md @@ -1,7 +1,5 @@ GET /v1/health/queue/mails HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-queue-messaging.md b/docs/examples/1.6.x/server-rest/examples/health/get-queue-messaging.md index 8af59a9e870..d0f8adbb826 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-queue-messaging.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-queue-messaging.md @@ -1,7 +1,5 @@ GET /v1/health/queue/messaging HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-queue-migrations.md b/docs/examples/1.6.x/server-rest/examples/health/get-queue-migrations.md index 1ec49bae1f7..ae4d4a0a0b1 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-queue-migrations.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-queue-migrations.md @@ -1,7 +1,5 @@ GET /v1/health/queue/migrations HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/client-rest/examples/functions/list-templates.md b/docs/examples/1.6.x/server-rest/examples/health/get-queue-stats-resources.md similarity index 55% rename from docs/examples/1.6.x/client-rest/examples/functions/list-templates.md rename to docs/examples/1.6.x/server-rest/examples/health/get-queue-stats-resources.md index b671bedebfc..8230f90035d 100644 --- a/docs/examples/1.6.x/client-rest/examples/functions/list-templates.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-queue-stats-resources.md @@ -1,6 +1,5 @@ -GET /v1/functions/templates HTTP/1.1 +GET /v1/health/queue/stats-resources HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> - +X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-queue-usage.md b/docs/examples/1.6.x/server-rest/examples/health/get-queue-usage.md index 22bff6dc29f..8f9fceb1371 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-queue-usage.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-queue-usage.md @@ -1,7 +1,5 @@ -GET /v1/health/queue/usage HTTP/1.1 +GET /v1/health/queue/stats-usage HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-queue-webhooks.md b/docs/examples/1.6.x/server-rest/examples/health/get-queue-webhooks.md index e144bdd982b..98781885246 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-queue-webhooks.md @@ -1,7 +1,5 @@ GET /v1/health/queue/webhooks HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-storage-local.md b/docs/examples/1.6.x/server-rest/examples/health/get-storage-local.md index 63841a454ed..dcb6cd7c79b 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-storage-local.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-storage-local.md @@ -1,7 +1,5 @@ GET /v1/health/storage/local HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-storage.md b/docs/examples/1.6.x/server-rest/examples/health/get-storage.md index b37bce1ac24..1f0d81c78ba 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-storage.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-storage.md @@ -1,7 +1,5 @@ GET /v1/health/storage HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get-time.md b/docs/examples/1.6.x/server-rest/examples/health/get-time.md index e40b12ee56c..6a041633e69 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get-time.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get-time.md @@ -1,7 +1,5 @@ GET /v1/health/time HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/health/get.md b/docs/examples/1.6.x/server-rest/examples/health/get.md index 5176969cca1..7277c65076e 100644 --- a/docs/examples/1.6.x/server-rest/examples/health/get.md +++ b/docs/examples/1.6.x/server-rest/examples/health/get.md @@ -1,7 +1,5 @@ GET /v1/health HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/locale/get.md b/docs/examples/1.6.x/server-rest/examples/locale/get.md index 496f2605fc4..81fa1182f15 100644 --- a/docs/examples/1.6.x/server-rest/examples/locale/get.md +++ b/docs/examples/1.6.x/server-rest/examples/locale/get.md @@ -1,9 +1,7 @@ GET /v1/locale HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/locale/list-codes.md b/docs/examples/1.6.x/server-rest/examples/locale/list-codes.md index a66e6cf9222..59ff34bc361 100644 --- a/docs/examples/1.6.x/server-rest/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/server-rest/examples/locale/list-codes.md @@ -1,9 +1,7 @@ GET /v1/locale/codes HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/locale/list-continents.md b/docs/examples/1.6.x/server-rest/examples/locale/list-continents.md index 171fa44458a..3344f0c0477 100644 --- a/docs/examples/1.6.x/server-rest/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/server-rest/examples/locale/list-continents.md @@ -1,9 +1,7 @@ GET /v1/locale/continents HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/server-rest/examples/locale/list-countries-e-u.md index 37a1808f793..5d983c78308 100644 --- a/docs/examples/1.6.x/server-rest/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/server-rest/examples/locale/list-countries-e-u.md @@ -1,9 +1,7 @@ GET /v1/locale/countries/eu HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/server-rest/examples/locale/list-countries-phones.md index 1fcf6e96244..68b2e397517 100644 --- a/docs/examples/1.6.x/server-rest/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/server-rest/examples/locale/list-countries-phones.md @@ -1,9 +1,7 @@ GET /v1/locale/countries/phones HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/locale/list-countries.md b/docs/examples/1.6.x/server-rest/examples/locale/list-countries.md index 1177ea41afe..e3c8e94c12c 100644 --- a/docs/examples/1.6.x/server-rest/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/server-rest/examples/locale/list-countries.md @@ -1,9 +1,7 @@ GET /v1/locale/countries HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/locale/list-currencies.md b/docs/examples/1.6.x/server-rest/examples/locale/list-currencies.md index 26af678b04e..4cba4cf3864 100644 --- a/docs/examples/1.6.x/server-rest/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/server-rest/examples/locale/list-currencies.md @@ -1,9 +1,7 @@ GET /v1/locale/currencies HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/locale/list-languages.md b/docs/examples/1.6.x/server-rest/examples/locale/list-languages.md index ac2a85591df..f4cc4493325 100644 --- a/docs/examples/1.6.x/server-rest/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/server-rest/examples/locale/list-languages.md @@ -1,9 +1,7 @@ GET /v1/locale/languages HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/messaging/create-push.md b/docs/examples/1.6.x/server-rest/examples/messaging/create-push.md index 1c7550950b1..cf5256d9215 100644 --- a/docs/examples/1.6.x/server-rest/examples/messaging/create-push.md +++ b/docs/examples/1.6.x/server-rest/examples/messaging/create-push.md @@ -19,7 +19,10 @@ X-Appwrite-Key: <YOUR_API_KEY> "sound": "<SOUND>", "color": "<COLOR>", "tag": "<TAG>", - "badge": "<BADGE>", + "badge": 0, "draft": false, - "scheduledAt": + "scheduledAt": , + "contentAvailable": false, + "critical": false, + "priority": "normal" } diff --git a/docs/examples/1.6.x/server-rest/examples/messaging/get-message.md b/docs/examples/1.6.x/server-rest/examples/messaging/get-message.md index 1458946ccc7..f23222f0071 100644 --- a/docs/examples/1.6.x/server-rest/examples/messaging/get-message.md +++ b/docs/examples/1.6.x/server-rest/examples/messaging/get-message.md @@ -1,7 +1,5 @@ GET /v1/messaging/messages/{messageId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/messaging/get-provider.md b/docs/examples/1.6.x/server-rest/examples/messaging/get-provider.md index f605d363d53..21ed22bbef4 100644 --- a/docs/examples/1.6.x/server-rest/examples/messaging/get-provider.md +++ b/docs/examples/1.6.x/server-rest/examples/messaging/get-provider.md @@ -1,7 +1,5 @@ GET /v1/messaging/providers/{providerId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/messaging/get-subscriber.md b/docs/examples/1.6.x/server-rest/examples/messaging/get-subscriber.md index e5301debd39..0f7796a1339 100644 --- a/docs/examples/1.6.x/server-rest/examples/messaging/get-subscriber.md +++ b/docs/examples/1.6.x/server-rest/examples/messaging/get-subscriber.md @@ -1,7 +1,5 @@ GET /v1/messaging/topics/{topicId}/subscribers/{subscriberId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/messaging/get-topic.md b/docs/examples/1.6.x/server-rest/examples/messaging/get-topic.md index 50a545e5d52..f9b2d9fe10a 100644 --- a/docs/examples/1.6.x/server-rest/examples/messaging/get-topic.md +++ b/docs/examples/1.6.x/server-rest/examples/messaging/get-topic.md @@ -1,7 +1,5 @@ GET /v1/messaging/topics/{topicId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/messaging/list-message-logs.md b/docs/examples/1.6.x/server-rest/examples/messaging/list-message-logs.md index 9376f807c1f..a5f8565ed2d 100644 --- a/docs/examples/1.6.x/server-rest/examples/messaging/list-message-logs.md +++ b/docs/examples/1.6.x/server-rest/examples/messaging/list-message-logs.md @@ -1,7 +1,5 @@ GET /v1/messaging/messages/{messageId}/logs HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/messaging/list-messages.md b/docs/examples/1.6.x/server-rest/examples/messaging/list-messages.md index 9588c3f9cc8..369f1ed61d0 100644 --- a/docs/examples/1.6.x/server-rest/examples/messaging/list-messages.md +++ b/docs/examples/1.6.x/server-rest/examples/messaging/list-messages.md @@ -1,7 +1,5 @@ GET /v1/messaging/messages HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/messaging/list-provider-logs.md b/docs/examples/1.6.x/server-rest/examples/messaging/list-provider-logs.md index 9e9ca029176..2461a6b18f4 100644 --- a/docs/examples/1.6.x/server-rest/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.6.x/server-rest/examples/messaging/list-provider-logs.md @@ -1,7 +1,5 @@ GET /v1/messaging/providers/{providerId}/logs HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/messaging/list-providers.md b/docs/examples/1.6.x/server-rest/examples/messaging/list-providers.md index a540123cc9d..57f40f047f8 100644 --- a/docs/examples/1.6.x/server-rest/examples/messaging/list-providers.md +++ b/docs/examples/1.6.x/server-rest/examples/messaging/list-providers.md @@ -1,7 +1,5 @@ GET /v1/messaging/providers HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/messaging/list-subscriber-logs.md b/docs/examples/1.6.x/server-rest/examples/messaging/list-subscriber-logs.md index 7bd09d054e7..ffd94007808 100644 --- a/docs/examples/1.6.x/server-rest/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.6.x/server-rest/examples/messaging/list-subscriber-logs.md @@ -1,7 +1,5 @@ GET /v1/messaging/subscribers/{subscriberId}/logs HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/messaging/list-subscribers.md b/docs/examples/1.6.x/server-rest/examples/messaging/list-subscribers.md index 6ce6230ea2f..79f84b11ff6 100644 --- a/docs/examples/1.6.x/server-rest/examples/messaging/list-subscribers.md +++ b/docs/examples/1.6.x/server-rest/examples/messaging/list-subscribers.md @@ -1,7 +1,5 @@ GET /v1/messaging/topics/{topicId}/subscribers HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/messaging/list-targets.md b/docs/examples/1.6.x/server-rest/examples/messaging/list-targets.md index c97bd2cd171..3bc58ada2d0 100644 --- a/docs/examples/1.6.x/server-rest/examples/messaging/list-targets.md +++ b/docs/examples/1.6.x/server-rest/examples/messaging/list-targets.md @@ -1,7 +1,5 @@ GET /v1/messaging/messages/{messageId}/targets HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/messaging/list-topic-logs.md b/docs/examples/1.6.x/server-rest/examples/messaging/list-topic-logs.md index 2fbb01e3bdc..c26603b0c0a 100644 --- a/docs/examples/1.6.x/server-rest/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.6.x/server-rest/examples/messaging/list-topic-logs.md @@ -1,7 +1,5 @@ GET /v1/messaging/topics/{topicId}/logs HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/messaging/list-topics.md b/docs/examples/1.6.x/server-rest/examples/messaging/list-topics.md index 053d290d679..0c633badff1 100644 --- a/docs/examples/1.6.x/server-rest/examples/messaging/list-topics.md +++ b/docs/examples/1.6.x/server-rest/examples/messaging/list-topics.md @@ -1,7 +1,5 @@ GET /v1/messaging/topics HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/messaging/update-push.md b/docs/examples/1.6.x/server-rest/examples/messaging/update-push.md index 7a0338c74b4..2159bc8aa29 100644 --- a/docs/examples/1.6.x/server-rest/examples/messaging/update-push.md +++ b/docs/examples/1.6.x/server-rest/examples/messaging/update-push.md @@ -20,5 +20,8 @@ X-Appwrite-Key: <YOUR_API_KEY> "tag": "<TAG>", "badge": 0, "draft": false, - "scheduledAt": + "scheduledAt": , + "contentAvailable": false, + "critical": false, + "priority": "normal" } diff --git a/docs/examples/1.6.x/server-rest/examples/storage/get-bucket.md b/docs/examples/1.6.x/server-rest/examples/storage/get-bucket.md index 8d47b56cd5c..d43931a53b7 100644 --- a/docs/examples/1.6.x/server-rest/examples/storage/get-bucket.md +++ b/docs/examples/1.6.x/server-rest/examples/storage/get-bucket.md @@ -1,7 +1,5 @@ GET /v1/storage/buckets/{bucketId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/storage/get-file-download.md b/docs/examples/1.6.x/server-rest/examples/storage/get-file-download.md index 25c7ad23a01..ec58a2a93fc 100644 --- a/docs/examples/1.6.x/server-rest/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/server-rest/examples/storage/get-file-download.md @@ -1,9 +1,7 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/download HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/storage/get-file-preview.md b/docs/examples/1.6.x/server-rest/examples/storage/get-file-preview.md index 922f6eedf39..f4703730ad9 100644 --- a/docs/examples/1.6.x/server-rest/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/server-rest/examples/storage/get-file-preview.md @@ -1,9 +1,7 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/preview HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/storage/get-file-view.md b/docs/examples/1.6.x/server-rest/examples/storage/get-file-view.md index 41154613a40..fee30719b3b 100644 --- a/docs/examples/1.6.x/server-rest/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/server-rest/examples/storage/get-file-view.md @@ -1,9 +1,7 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId}/view HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/storage/get-file.md b/docs/examples/1.6.x/server-rest/examples/storage/get-file.md index 041ba840990..ff477aa2db7 100644 --- a/docs/examples/1.6.x/server-rest/examples/storage/get-file.md +++ b/docs/examples/1.6.x/server-rest/examples/storage/get-file.md @@ -1,9 +1,7 @@ GET /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/storage/list-buckets.md b/docs/examples/1.6.x/server-rest/examples/storage/list-buckets.md index 9ae348b905a..b92d639db65 100644 --- a/docs/examples/1.6.x/server-rest/examples/storage/list-buckets.md +++ b/docs/examples/1.6.x/server-rest/examples/storage/list-buckets.md @@ -1,7 +1,5 @@ GET /v1/storage/buckets HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/storage/list-files.md b/docs/examples/1.6.x/server-rest/examples/storage/list-files.md index 1b5a80de5d9..f464b524d38 100644 --- a/docs/examples/1.6.x/server-rest/examples/storage/list-files.md +++ b/docs/examples/1.6.x/server-rest/examples/storage/list-files.md @@ -1,9 +1,7 @@ GET /v1/storage/buckets/{bucketId}/files HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/teams/get-membership.md b/docs/examples/1.6.x/server-rest/examples/teams/get-membership.md index 0b0d71d3386..de5503aa97b 100644 --- a/docs/examples/1.6.x/server-rest/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/server-rest/examples/teams/get-membership.md @@ -1,9 +1,7 @@ GET /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/teams/get-prefs.md b/docs/examples/1.6.x/server-rest/examples/teams/get-prefs.md index 8af5263810d..cc3f6c3394b 100644 --- a/docs/examples/1.6.x/server-rest/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/server-rest/examples/teams/get-prefs.md @@ -1,8 +1,6 @@ GET /v1/teams/{teamId}/prefs HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/teams/get.md b/docs/examples/1.6.x/server-rest/examples/teams/get.md index b926719f555..fe6391f0caf 100644 --- a/docs/examples/1.6.x/server-rest/examples/teams/get.md +++ b/docs/examples/1.6.x/server-rest/examples/teams/get.md @@ -1,9 +1,7 @@ GET /v1/teams/{teamId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/teams/list-memberships.md b/docs/examples/1.6.x/server-rest/examples/teams/list-memberships.md index c5142bc8a4a..d11943f58ff 100644 --- a/docs/examples/1.6.x/server-rest/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/server-rest/examples/teams/list-memberships.md @@ -1,9 +1,7 @@ GET /v1/teams/{teamId}/memberships HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/teams/list.md b/docs/examples/1.6.x/server-rest/examples/teams/list.md index 4d322d6d4f7..7ff9f48e124 100644 --- a/docs/examples/1.6.x/server-rest/examples/teams/list.md +++ b/docs/examples/1.6.x/server-rest/examples/teams/list.md @@ -1,9 +1,7 @@ GET /v1/teams HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Session: X-Appwrite-Key: <YOUR_API_KEY> X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.6.x/server-rest/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-rest/examples/users/get-mfa-recovery-codes.md index da744ce23dc..d3820ba2fa9 100644 --- a/docs/examples/1.6.x/server-rest/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-rest/examples/users/get-mfa-recovery-codes.md @@ -1,7 +1,5 @@ GET /v1/users/{userId}/mfa/recovery-codes HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/users/get-prefs.md b/docs/examples/1.6.x/server-rest/examples/users/get-prefs.md index acf09a82f8a..bcaba932627 100644 --- a/docs/examples/1.6.x/server-rest/examples/users/get-prefs.md +++ b/docs/examples/1.6.x/server-rest/examples/users/get-prefs.md @@ -1,7 +1,5 @@ GET /v1/users/{userId}/prefs HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/users/get-target.md b/docs/examples/1.6.x/server-rest/examples/users/get-target.md index 657cef16d4e..c26d3fc61b0 100644 --- a/docs/examples/1.6.x/server-rest/examples/users/get-target.md +++ b/docs/examples/1.6.x/server-rest/examples/users/get-target.md @@ -1,7 +1,5 @@ GET /v1/users/{userId}/targets/{targetId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/users/get.md b/docs/examples/1.6.x/server-rest/examples/users/get.md index 4000161e8e1..77f6ca2d77d 100644 --- a/docs/examples/1.6.x/server-rest/examples/users/get.md +++ b/docs/examples/1.6.x/server-rest/examples/users/get.md @@ -1,7 +1,5 @@ GET /v1/users/{userId} HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/users/list-identities.md b/docs/examples/1.6.x/server-rest/examples/users/list-identities.md index 617e7de1226..26b3dfdefae 100644 --- a/docs/examples/1.6.x/server-rest/examples/users/list-identities.md +++ b/docs/examples/1.6.x/server-rest/examples/users/list-identities.md @@ -1,7 +1,5 @@ GET /v1/users/identities HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/users/list-logs.md b/docs/examples/1.6.x/server-rest/examples/users/list-logs.md index 0588e609e18..28b67072799 100644 --- a/docs/examples/1.6.x/server-rest/examples/users/list-logs.md +++ b/docs/examples/1.6.x/server-rest/examples/users/list-logs.md @@ -1,7 +1,5 @@ GET /v1/users/{userId}/logs HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/users/list-memberships.md b/docs/examples/1.6.x/server-rest/examples/users/list-memberships.md index 1937004e586..e5526448d92 100644 --- a/docs/examples/1.6.x/server-rest/examples/users/list-memberships.md +++ b/docs/examples/1.6.x/server-rest/examples/users/list-memberships.md @@ -1,7 +1,5 @@ GET /v1/users/{userId}/memberships HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/users/list-mfa-factors.md b/docs/examples/1.6.x/server-rest/examples/users/list-mfa-factors.md index 64570341b20..586e0daa754 100644 --- a/docs/examples/1.6.x/server-rest/examples/users/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-rest/examples/users/list-mfa-factors.md @@ -1,7 +1,5 @@ GET /v1/users/{userId}/mfa/factors HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/users/list-sessions.md b/docs/examples/1.6.x/server-rest/examples/users/list-sessions.md index b6b80f15bb2..49a81c19d5a 100644 --- a/docs/examples/1.6.x/server-rest/examples/users/list-sessions.md +++ b/docs/examples/1.6.x/server-rest/examples/users/list-sessions.md @@ -1,7 +1,5 @@ GET /v1/users/{userId}/sessions HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/users/list-targets.md b/docs/examples/1.6.x/server-rest/examples/users/list-targets.md index 6c48a184f63..4ffa874b991 100644 --- a/docs/examples/1.6.x/server-rest/examples/users/list-targets.md +++ b/docs/examples/1.6.x/server-rest/examples/users/list-targets.md @@ -1,7 +1,5 @@ GET /v1/users/{userId}/targets HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-rest/examples/users/list.md b/docs/examples/1.6.x/server-rest/examples/users/list.md index 0a5c3185914..7e66ccc3652 100644 --- a/docs/examples/1.6.x/server-rest/examples/users/list.md +++ b/docs/examples/1.6.x/server-rest/examples/users/list.md @@ -1,7 +1,5 @@ GET /v1/users HTTP/1.1 Host: cloud.appwrite.io -Content-Type: application/json X-Appwrite-Response-Format: 1.6.0 X-Appwrite-Project: <YOUR_PROJECT_ID> X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.6.x/server-ruby/examples/account/create-anonymous-session.md b/docs/examples/1.6.x/server-ruby/examples/account/create-anonymous-session.md index a54d5f00575..bcb25d66f57 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/create-anonymous-session.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.6.x/server-ruby/examples/account/create-email-password-session.md b/docs/examples/1.6.x/server-ruby/examples/account/create-email-password-session.md index 08d34230a0e..be5fc1c07ab 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/create-email-password-session.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/create-email-password-session.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.6.x/server-ruby/examples/account/create-email-token.md b/docs/examples/1.6.x/server-ruby/examples/account/create-email-token.md index 1e85706cf2e..d75e310a36c 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/create-email-token.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/create-email-token.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.6.x/server-ruby/examples/account/create-j-w-t.md b/docs/examples/1.6.x/server-ruby/examples/account/create-j-w-t.md index 8ad2db14ca6..8e5b6b78c8d 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/create-j-w-t.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/create-j-w-t.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.6.x/server-ruby/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/server-ruby/examples/account/create-magic-u-r-l-token.md index 253b26309ef..9537d1fb3d9 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/create-magic-u-r-l-token.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.6.x/server-ruby/examples/account/create-mfa-authenticator.md b/docs/examples/1.6.x/server-ruby/examples/account/create-mfa-authenticator.md index 38ad5492d95..a3cc71cd8a3 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/create-mfa-authenticator.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/create-mfa-challenge.md b/docs/examples/1.6.x/server-ruby/examples/account/create-mfa-challenge.md index b5fa72f78b0..ba34779ad25 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/create-mfa-challenge.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.6.x/server-ruby/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-ruby/examples/account/create-mfa-recovery-codes.md index 9c64fdf47aa..db91cf533d1 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/create-mfa-recovery-codes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/server-ruby/examples/account/create-o-auth2token.md index be8169e58d5..52bc5d61942 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/create-o-auth2token.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.6.x/server-ruby/examples/account/create-phone-token.md b/docs/examples/1.6.x/server-ruby/examples/account/create-phone-token.md index 70e8be2ca97..81bedd0ce98 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/create-phone-token.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/create-phone-token.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.6.x/server-ruby/examples/account/create-phone-verification.md b/docs/examples/1.6.x/server-ruby/examples/account/create-phone-verification.md index 0f5685bf20f..a7dec8f34e6 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/create-phone-verification.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/create-phone-verification.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/create-recovery.md b/docs/examples/1.6.x/server-ruby/examples/account/create-recovery.md index 15f0f93a987..e344bafc759 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/create-recovery.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/create-recovery.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/create-session.md b/docs/examples/1.6.x/server-ruby/examples/account/create-session.md index 27c265549ee..4b8ce216bc9 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/create-session.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/create-session.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.6.x/server-ruby/examples/account/create-verification.md b/docs/examples/1.6.x/server-ruby/examples/account/create-verification.md index 216d88c02c4..2eba7c776d1 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/create-verification.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/create-verification.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/create.md b/docs/examples/1.6.x/server-ruby/examples/account/create.md index e27f488f6b5..84228b83511 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/create.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/create.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.6.x/server-ruby/examples/account/delete-identity.md b/docs/examples/1.6.x/server-ruby/examples/account/delete-identity.md index a38eccd0805..e8f8e838148 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/delete-identity.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/delete-identity.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-ruby/examples/account/delete-mfa-authenticator.md index 9b4f352badc..832ff6ae132 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/delete-mfa-authenticator.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/delete-session.md b/docs/examples/1.6.x/server-ruby/examples/account/delete-session.md index 4781eecdc6a..7496cafe3ac 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/delete-session.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/delete-session.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/delete-sessions.md b/docs/examples/1.6.x/server-ruby/examples/account/delete-sessions.md index 776938e2dc8..ca5d9224830 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/delete-sessions.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/delete-sessions.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-ruby/examples/account/get-mfa-recovery-codes.md index 207e5219d69..26ffa9d61d7 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/get-mfa-recovery-codes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/get-prefs.md b/docs/examples/1.6.x/server-ruby/examples/account/get-prefs.md index 0a1ca1c1c90..664454cf2fc 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/get-prefs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/get-session.md b/docs/examples/1.6.x/server-ruby/examples/account/get-session.md index 32a162e60d5..c433b22e461 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/get-session.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/get-session.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/get.md b/docs/examples/1.6.x/server-ruby/examples/account/get.md index 5174ab71777..f33050345de 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/get.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/get.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/list-identities.md b/docs/examples/1.6.x/server-ruby/examples/account/list-identities.md index 91b513b9c0a..696e02dd5a2 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/list-identities.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/list-identities.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/list-logs.md b/docs/examples/1.6.x/server-ruby/examples/account/list-logs.md index b11dc1a4aba..1f3366a2ede 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/list-logs.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/list-logs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/server-ruby/examples/account/list-mfa-factors.md index 48050f2235a..460ac87ac1a 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/list-mfa-factors.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/list-sessions.md b/docs/examples/1.6.x/server-ruby/examples/account/list-sessions.md index 65d50483bb1..b5968c498f2 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/list-sessions.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-email.md b/docs/examples/1.6.x/server-ruby/examples/account/update-email.md index 69e49847cb2..24b43edebd8 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-email.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-email.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-m-f-a.md b/docs/examples/1.6.x/server-ruby/examples/account/update-m-f-a.md index bf5d7458757..b1b50f32fd3 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-m-f-a.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/server-ruby/examples/account/update-magic-u-r-l-session.md index 7e72263f97c..c96820f1830 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-magic-u-r-l-session.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/server-ruby/examples/account/update-mfa-authenticator.md index ba6389d0436..5ff2adcbdcb 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-mfa-authenticator.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/server-ruby/examples/account/update-mfa-challenge.md index ab0d4d31ef6..2f4b61d5810 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-mfa-challenge.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-ruby/examples/account/update-mfa-recovery-codes.md index 5724025f636..ad1f2e5f0e0 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-mfa-recovery-codes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-name.md b/docs/examples/1.6.x/server-ruby/examples/account/update-name.md index e071dd96fdd..ef8a5cbb4f3 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-name.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-name.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-password.md b/docs/examples/1.6.x/server-ruby/examples/account/update-password.md index 8dd0da6bdd5..4b8705359be 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-password.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-password.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-phone-session.md b/docs/examples/1.6.x/server-ruby/examples/account/update-phone-session.md index 90776cededa..b81c485c8c0 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-phone-session.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-phone-session.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID account = Account.new(client) diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-phone-verification.md b/docs/examples/1.6.x/server-ruby/examples/account/update-phone-verification.md index b41bb42fad7..8dcf316e491 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-phone-verification.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-phone-verification.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-phone.md b/docs/examples/1.6.x/server-ruby/examples/account/update-phone.md index b562355f0e2..ea758a8d8da 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-phone.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-phone.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-prefs.md b/docs/examples/1.6.x/server-ruby/examples/account/update-prefs.md index 5dc92d1242b..ecfe4f49881 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-prefs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-recovery.md b/docs/examples/1.6.x/server-ruby/examples/account/update-recovery.md index 06372cb86a5..42c483771c8 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-recovery.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-recovery.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-session.md b/docs/examples/1.6.x/server-ruby/examples/account/update-session.md index b1181e0c87a..34e00eec250 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-session.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-session.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-status.md b/docs/examples/1.6.x/server-ruby/examples/account/update-status.md index f69f527dfa3..5c543b790c5 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-status.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-status.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/account/update-verification.md b/docs/examples/1.6.x/server-ruby/examples/account/update-verification.md index 5a0cff80a2d..9866ade95c9 100644 --- a/docs/examples/1.6.x/server-ruby/examples/account/update-verification.md +++ b/docs/examples/1.6.x/server-ruby/examples/account/update-verification.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/avatars/get-browser.md b/docs/examples/1.6.x/server-ruby/examples/avatars/get-browser.md index f48a05a06e5..4afdf779a4d 100644 --- a/docs/examples/1.6.x/server-ruby/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/server-ruby/examples/avatars/get-browser.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/server-ruby/examples/avatars/get-credit-card.md index 99b3c626461..a324f6db75e 100644 --- a/docs/examples/1.6.x/server-ruby/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/server-ruby/examples/avatars/get-credit-card.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/avatars/get-favicon.md b/docs/examples/1.6.x/server-ruby/examples/avatars/get-favicon.md index 470512868b3..7c8bd4347f8 100644 --- a/docs/examples/1.6.x/server-ruby/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/server-ruby/examples/avatars/get-favicon.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/avatars/get-flag.md b/docs/examples/1.6.x/server-ruby/examples/avatars/get-flag.md index cd162a5f9e2..f648a285d12 100644 --- a/docs/examples/1.6.x/server-ruby/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/server-ruby/examples/avatars/get-flag.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/avatars/get-image.md b/docs/examples/1.6.x/server-ruby/examples/avatars/get-image.md index bc38de19c9f..f46fad0c445 100644 --- a/docs/examples/1.6.x/server-ruby/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/server-ruby/examples/avatars/get-image.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/avatars/get-initials.md b/docs/examples/1.6.x/server-ruby/examples/avatars/get-initials.md index 9d79e8eac73..85e5a6a422f 100644 --- a/docs/examples/1.6.x/server-ruby/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/server-ruby/examples/avatars/get-initials.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/avatars/get-q-r.md b/docs/examples/1.6.x/server-ruby/examples/avatars/get-q-r.md index f5228664fa5..9c6e34686cd 100644 --- a/docs/examples/1.6.x/server-ruby/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/server-ruby/examples/avatars/get-q-r.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/create-boolean-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/create-boolean-attribute.md index 35449c28f8d..158ea056236 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/create-boolean-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/create-collection.md b/docs/examples/1.6.x/server-ruby/examples/databases/create-collection.md index 8d564a38e6e..c22b34813eb 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/create-collection.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/create-collection.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/create-datetime-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/create-datetime-attribute.md index 594f36eda9c..af12b7965bc 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/create-datetime-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/create-document.md b/docs/examples/1.6.x/server-ruby/examples/databases/create-document.md index 30ef93f61af..e6831084a1e 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/create-document.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/create-document.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/create-documents.md b/docs/examples/1.6.x/server-ruby/examples/databases/create-documents.md new file mode 100644 index 00000000000..98eadab57d5 --- /dev/null +++ b/docs/examples/1.6.x/server-ruby/examples/databases/create-documents.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_session('') # The user session to authenticate with + +databases = Databases.new(client) + +result = databases.create_documents( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + documents: [] +) diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/create-email-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/create-email-attribute.md index d7456a1d5aa..7f36f6b0769 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/create-email-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/create-email-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/create-enum-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/create-enum-attribute.md index 86212795f2c..c8e390a1a92 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/create-enum-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/create-float-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/create-float-attribute.md index 3b61bf56e6b..fa77f899026 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/create-float-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/create-float-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/create-index.md b/docs/examples/1.6.x/server-ruby/examples/databases/create-index.md index 865ce932cc5..e75478dea21 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/create-index.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/create-index.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/create-integer-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/create-integer-attribute.md index 88832bdf74f..a6895021368 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/create-integer-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/create-ip-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/create-ip-attribute.md index 88167e1f539..7abeee94036 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/create-ip-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/create-relationship-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/create-relationship-attribute.md index d80f19c8f80..b056f3bbb2a 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/create-relationship-attribute.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/create-string-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/create-string-attribute.md index 05f96cfb804..d94af0f22f8 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/create-string-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/create-string-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/create-url-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/create-url-attribute.md index 9f216d91254..3ffd7321a1e 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/create-url-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/create-url-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/create.md b/docs/examples/1.6.x/server-ruby/examples/databases/create.md index 3846e50a84d..62675e6ba77 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/create.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/create.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/delete-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/delete-attribute.md index a352a73a19d..816b31e43f8 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/delete-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/delete-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/delete-collection.md b/docs/examples/1.6.x/server-ruby/examples/databases/delete-collection.md index 1c0b961d2dd..28dd8d773c4 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/delete-collection.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/delete-collection.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/delete-document.md b/docs/examples/1.6.x/server-ruby/examples/databases/delete-document.md index 5195ea4efe7..2102d2695ba 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/delete-document.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/delete-document.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/delete-documents.md b/docs/examples/1.6.x/server-ruby/examples/databases/delete-documents.md new file mode 100644 index 00000000000..d0f10d0b41b --- /dev/null +++ b/docs/examples/1.6.x/server-ruby/examples/databases/delete-documents.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.delete_documents( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + queries: [] # optional +) diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/delete-index.md b/docs/examples/1.6.x/server-ruby/examples/databases/delete-index.md index e91770c3388..b5d9231508c 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/delete-index.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/delete-index.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/delete.md b/docs/examples/1.6.x/server-ruby/examples/databases/delete.md index dbd5b559d78..802f5d6bd45 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/delete.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/delete.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/get-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/get-attribute.md index 94ed06a5080..1558de656aa 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/get-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/get-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/get-collection.md b/docs/examples/1.6.x/server-ruby/examples/databases/get-collection.md index ff66336b85f..89ae0e32ac1 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/get-collection.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/get-collection.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/get-document.md b/docs/examples/1.6.x/server-ruby/examples/databases/get-document.md index bd0e4ec030b..f43a1a29241 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/get-document.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/get-document.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/get-index.md b/docs/examples/1.6.x/server-ruby/examples/databases/get-index.md index 3042e1496f6..cd5fca3d602 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/get-index.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/get-index.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/get.md b/docs/examples/1.6.x/server-ruby/examples/databases/get.md index cd8b777cce8..c042cd7c4e3 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/get.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/get.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/list-attributes.md b/docs/examples/1.6.x/server-ruby/examples/databases/list-attributes.md index 2a500a69e23..f1ec0dedcdf 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/list-attributes.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/list-attributes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/list-collections.md b/docs/examples/1.6.x/server-ruby/examples/databases/list-collections.md index bac8095c1c2..26f3d355529 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/list-collections.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/list-collections.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/list-documents.md b/docs/examples/1.6.x/server-ruby/examples/databases/list-documents.md index 891e5345c8e..6617198d3fe 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/list-documents.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/list-indexes.md b/docs/examples/1.6.x/server-ruby/examples/databases/list-indexes.md index 7f86bb77b1b..f98c62a4442 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/list-indexes.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/list-indexes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/list.md b/docs/examples/1.6.x/server-ruby/examples/databases/list.md index 14c6fd16440..2e093f73b1e 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/list.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/list.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/update-boolean-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/update-boolean-attribute.md index 854848617bc..72f0eac0886 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/update-boolean-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/update-collection.md b/docs/examples/1.6.x/server-ruby/examples/databases/update-collection.md index 9a1c73cb102..d42a651cbb8 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/update-collection.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/update-collection.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/update-datetime-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/update-datetime-attribute.md index a7c8b32e9f0..b726283323f 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/update-datetime-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/update-document.md b/docs/examples/1.6.x/server-ruby/examples/databases/update-document.md index dce09af140a..485eb0485a6 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/update-document.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/update-document.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/update-documents.md b/docs/examples/1.6.x/server-ruby/examples/databases/update-documents.md new file mode 100644 index 00000000000..2f6907294fc --- /dev/null +++ b/docs/examples/1.6.x/server-ruby/examples/databases/update-documents.md @@ -0,0 +1,17 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.update_documents( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + data: {}, # optional + queries: [] # optional +) diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/update-email-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/update-email-attribute.md index 9845f4bf4da..3324e398600 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/update-email-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/update-email-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/update-enum-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/update-enum-attribute.md index 6bc28c3759d..72a05154670 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/update-enum-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/update-float-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/update-float-attribute.md index 4116d49e979..738e6de36a5 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/update-float-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/update-float-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key @@ -14,8 +14,8 @@ result = databases.update_float_attribute( collection_id: '<COLLECTION_ID>', key: '', required: false, - min: null, - max: null, default: null, + min: null, # optional + max: null, # optional new_key: '' # optional ) diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/update-integer-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/update-integer-attribute.md index 7bb8a19b766..dece44544fd 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/update-integer-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key @@ -14,8 +14,8 @@ result = databases.update_integer_attribute( collection_id: '<COLLECTION_ID>', key: '', required: false, - min: null, - max: null, default: null, + min: null, # optional + max: null, # optional new_key: '' # optional ) diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/update-ip-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/update-ip-attribute.md index b53719edd86..deceb732e49 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/update-ip-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/update-relationship-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/update-relationship-attribute.md index 2b9d72a93a4..679edb823eb 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/update-relationship-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/update-string-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/update-string-attribute.md index 3b3c5eb6441..66f458e8003 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/update-string-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/update-string-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key @@ -15,6 +15,6 @@ result = databases.update_string_attribute( key: '', required: false, default: '<DEFAULT>', - size: null, # optional + size: 1, # optional new_key: '' # optional ) diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/update-url-attribute.md b/docs/examples/1.6.x/server-ruby/examples/databases/update-url-attribute.md index 4367107e950..cbf417b6bf9 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/update-url-attribute.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/update-url-attribute.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/update.md b/docs/examples/1.6.x/server-ruby/examples/databases/update.md index eb5e42c3996..e5c02a11f16 100644 --- a/docs/examples/1.6.x/server-ruby/examples/databases/update.md +++ b/docs/examples/1.6.x/server-ruby/examples/databases/update.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/databases/upsert-documents.md b/docs/examples/1.6.x/server-ruby/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..353e38fe2be --- /dev/null +++ b/docs/examples/1.6.x/server-ruby/examples/databases/upsert-documents.md @@ -0,0 +1,16 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +databases = Databases.new(client) + +result = databases.upsert_documents( + database_id: '<DATABASE_ID>', + collection_id: '<COLLECTION_ID>', + documents: [] # optional +) diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/create-build.md b/docs/examples/1.6.x/server-ruby/examples/functions/create-build.md index 031bf03d6be..ef6151ca446 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/create-build.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/create-build.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/create-deployment.md b/docs/examples/1.6.x/server-ruby/examples/functions/create-deployment.md index 8c0b3a58d81..0ff3db31e9c 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/create-deployment.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/create-deployment.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/create-execution.md b/docs/examples/1.6.x/server-ruby/examples/functions/create-execution.md index bda612c813f..b64b1d5c575 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/create-execution.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/create-execution.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/create-variable.md b/docs/examples/1.6.x/server-ruby/examples/functions/create-variable.md index 10fa86e4ccf..8094b7d0648 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/create-variable.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/create-variable.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/create.md b/docs/examples/1.6.x/server-ruby/examples/functions/create.md index 9c0bf2911b0..100491da133 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/create.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/create.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/delete-deployment.md b/docs/examples/1.6.x/server-ruby/examples/functions/delete-deployment.md index 642bf23b903..192172cf9cc 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/delete-deployment.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/delete-deployment.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/delete-execution.md b/docs/examples/1.6.x/server-ruby/examples/functions/delete-execution.md index bb91baa338a..4172aade32d 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/delete-execution.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/delete-execution.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/delete-variable.md b/docs/examples/1.6.x/server-ruby/examples/functions/delete-variable.md index c36a58359ee..ffbe69f106c 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/delete-variable.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/delete-variable.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/delete.md b/docs/examples/1.6.x/server-ruby/examples/functions/delete.md index 787692accc5..e5c59e39c09 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/delete.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/delete.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/get-deployment-download.md b/docs/examples/1.6.x/server-ruby/examples/functions/get-deployment-download.md index 01db87c7541..57cacc6dbfc 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/get-deployment-download.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/get-deployment-download.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/get-deployment.md b/docs/examples/1.6.x/server-ruby/examples/functions/get-deployment.md index b6baee49104..1651ae12853 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/get-deployment.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/get-deployment.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/get-execution.md b/docs/examples/1.6.x/server-ruby/examples/functions/get-execution.md index 6b19e4e65b6..7ab910e785a 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/get-execution.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/get-variable.md b/docs/examples/1.6.x/server-ruby/examples/functions/get-variable.md index 30d6a0009df..5022cf84d6d 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/get-variable.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/get-variable.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/get.md b/docs/examples/1.6.x/server-ruby/examples/functions/get.md index c2d63deb77a..5cfd1350284 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/get.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/get.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/list-deployments.md b/docs/examples/1.6.x/server-ruby/examples/functions/list-deployments.md index 7db9d45c01d..3df3dd3ee81 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/list-deployments.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/list-deployments.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/list-executions.md b/docs/examples/1.6.x/server-ruby/examples/functions/list-executions.md index 159c78dbde0..df63053a21c 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/list-executions.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/list-runtimes.md b/docs/examples/1.6.x/server-ruby/examples/functions/list-runtimes.md index 938fcf75526..1b6d25ee6d7 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/list-runtimes.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/list-runtimes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/list-specifications.md b/docs/examples/1.6.x/server-ruby/examples/functions/list-specifications.md index 2ccd05e3fd2..2c9cf7c4709 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/list-specifications.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/list-specifications.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/list-variables.md b/docs/examples/1.6.x/server-ruby/examples/functions/list-variables.md index 6159bf102bc..dd3fc4f2ae5 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/list-variables.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/list-variables.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/list.md b/docs/examples/1.6.x/server-ruby/examples/functions/list.md index a49034d0514..0cab1c34d79 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/list.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/list.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/update-deployment-build.md b/docs/examples/1.6.x/server-ruby/examples/functions/update-deployment-build.md index 5164aebd6ef..b8611f26378 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/update-deployment-build.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/update-deployment-build.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/update-deployment.md b/docs/examples/1.6.x/server-ruby/examples/functions/update-deployment.md index 862e86d2a66..c4608853537 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/update-deployment.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/update-deployment.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/update-variable.md b/docs/examples/1.6.x/server-ruby/examples/functions/update-variable.md index 6ac47f80dc7..f0b6002e9b2 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/update-variable.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/update-variable.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/functions/update.md b/docs/examples/1.6.x/server-ruby/examples/functions/update.md index 8f5cafdb551..45b6e32ab31 100644 --- a/docs/examples/1.6.x/server-ruby/examples/functions/update.md +++ b/docs/examples/1.6.x/server-ruby/examples/functions/update.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/graphql/mutation.md b/docs/examples/1.6.x/server-ruby/examples/graphql/mutation.md index 7daf975ea66..08ca6f30d2d 100644 --- a/docs/examples/1.6.x/server-ruby/examples/graphql/mutation.md +++ b/docs/examples/1.6.x/server-ruby/examples/graphql/mutation.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/graphql/query.md b/docs/examples/1.6.x/server-ruby/examples/graphql/query.md index 0825bdea46a..05e69506a17 100644 --- a/docs/examples/1.6.x/server-ruby/examples/graphql/query.md +++ b/docs/examples/1.6.x/server-ruby/examples/graphql/query.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-antivirus.md b/docs/examples/1.6.x/server-ruby/examples/health/get-antivirus.md index 51125076569..5f8d06056d5 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-antivirus.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-antivirus.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-cache.md b/docs/examples/1.6.x/server-ruby/examples/health/get-cache.md index 5493b757be1..01bd46cd0bb 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-cache.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-cache.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-certificate.md b/docs/examples/1.6.x/server-ruby/examples/health/get-certificate.md index dcfcb6afb7e..64699d42d06 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-certificate.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-certificate.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-d-b.md b/docs/examples/1.6.x/server-ruby/examples/health/get-d-b.md index a707a14ada3..d9668339c5d 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-d-b.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-d-b.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-failed-jobs.md b/docs/examples/1.6.x/server-ruby/examples/health/get-failed-jobs.md index da41856b403..73e1983e3a3 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-failed-jobs.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-failed-jobs.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-pub-sub.md b/docs/examples/1.6.x/server-ruby/examples/health/get-pub-sub.md index 4d86e06ea23..86e9c409ed7 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-pub-sub.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-pub-sub.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-builds.md b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-builds.md index bb002f8b393..9f876982ef0 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-builds.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-builds.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-certificates.md b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-certificates.md index 59572f94f3b..d10c2feb398 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-certificates.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-certificates.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-databases.md b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-databases.md index e09233bc343..37024d8144e 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-databases.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-databases.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-deletes.md b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-deletes.md index 184c13421c8..2508be22ba1 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-deletes.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-deletes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-functions.md b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-functions.md index b44b7b8983c..e5b56474bc8 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-functions.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-functions.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-logs.md b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-logs.md index dd3f8759c36..cb35ac333b7 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-logs.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-logs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-mails.md b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-mails.md index ce7c40587b1..36cfec3d875 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-mails.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-mails.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-messaging.md b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-messaging.md index 842da5bdd0c..d317f2a74c9 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-messaging.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-messaging.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-migrations.md b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-migrations.md index 3349291ff83..3c68c865dc2 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-migrations.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-migrations.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-stats-resources.md b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..7024bac3070 --- /dev/null +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-stats-resources.md @@ -0,0 +1,14 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('<YOUR_PROJECT_ID>') # Your project ID + .set_key('<YOUR_API_KEY>') # Your secret API key + +health = Health.new(client) + +result = health.get_queue_stats_resources( + threshold: null # optional +) diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-usage-dump.md b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-usage-dump.md index f8bf30b0146..96088c25c72 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-usage-dump.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-usage.md b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-usage.md index b1d17042e76..b687bd87896 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-usage.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-usage.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-webhooks.md b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-webhooks.md index 982e244bbbd..28f28ea78aa 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-queue-webhooks.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-queue.md b/docs/examples/1.6.x/server-ruby/examples/health/get-queue.md index 936082a447c..6e39da598e4 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-queue.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-queue.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-storage-local.md b/docs/examples/1.6.x/server-ruby/examples/health/get-storage-local.md index 8a04f77b9bf..a122de50eee 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-storage-local.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-storage-local.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-storage.md b/docs/examples/1.6.x/server-ruby/examples/health/get-storage.md index 6a5dfa97e4c..ee778643ec0 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-storage.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-storage.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get-time.md b/docs/examples/1.6.x/server-ruby/examples/health/get-time.md index 9e95c2332e1..9d345557a38 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get-time.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get-time.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/health/get.md b/docs/examples/1.6.x/server-ruby/examples/health/get.md index 5c82e66ce21..4bbf0c0eb0e 100644 --- a/docs/examples/1.6.x/server-ruby/examples/health/get.md +++ b/docs/examples/1.6.x/server-ruby/examples/health/get.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/locale/get.md b/docs/examples/1.6.x/server-ruby/examples/locale/get.md index d3a982d0431..264da0e1879 100644 --- a/docs/examples/1.6.x/server-ruby/examples/locale/get.md +++ b/docs/examples/1.6.x/server-ruby/examples/locale/get.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/locale/list-codes.md b/docs/examples/1.6.x/server-ruby/examples/locale/list-codes.md index 74a41b95245..27632669f03 100644 --- a/docs/examples/1.6.x/server-ruby/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/server-ruby/examples/locale/list-codes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/locale/list-continents.md b/docs/examples/1.6.x/server-ruby/examples/locale/list-continents.md index 312936104ca..b78f130201e 100644 --- a/docs/examples/1.6.x/server-ruby/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/server-ruby/examples/locale/list-continents.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/server-ruby/examples/locale/list-countries-e-u.md index 9b19151d110..8498f2bdda7 100644 --- a/docs/examples/1.6.x/server-ruby/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/server-ruby/examples/locale/list-countries-e-u.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/server-ruby/examples/locale/list-countries-phones.md index c011734ae1c..8fa087e9204 100644 --- a/docs/examples/1.6.x/server-ruby/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/server-ruby/examples/locale/list-countries-phones.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/locale/list-countries.md b/docs/examples/1.6.x/server-ruby/examples/locale/list-countries.md index 4884f6a6810..a635a4e0b36 100644 --- a/docs/examples/1.6.x/server-ruby/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/server-ruby/examples/locale/list-countries.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/locale/list-currencies.md b/docs/examples/1.6.x/server-ruby/examples/locale/list-currencies.md index 3dcfb703dba..60e9d94df99 100644 --- a/docs/examples/1.6.x/server-ruby/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/server-ruby/examples/locale/list-currencies.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/locale/list-languages.md b/docs/examples/1.6.x/server-ruby/examples/locale/list-languages.md index 3d9a2dbc9c2..e5b9df1945e 100644 --- a/docs/examples/1.6.x/server-ruby/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/server-ruby/examples/locale/list-languages.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/create-apns-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/create-apns-provider.md index 88988f6e438..a2803408470 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/create-apns-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/create-email.md b/docs/examples/1.6.x/server-ruby/examples/messaging/create-email.md index c64cf5f2842..573a5b83d49 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/create-email.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/create-email.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/create-fcm-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/create-fcm-provider.md index 1c23df81f7f..a1e8b67b518 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/create-fcm-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/create-mailgun-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/create-mailgun-provider.md index 3c8a574d6e4..aa5b7f18999 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/create-mailgun-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/create-msg91provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/create-msg91provider.md index 7037f00d0e3..35a192f1483 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/create-msg91provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/create-push.md b/docs/examples/1.6.x/server-ruby/examples/messaging/create-push.md index 1c6700db436..5c58fa542b1 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/create-push.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/create-push.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key @@ -11,8 +11,8 @@ messaging = Messaging.new(client) result = messaging.create_push( message_id: '<MESSAGE_ID>', - title: '<TITLE>', - body: '<BODY>', + title: '<TITLE>', # optional + body: '<BODY>', # optional topics: [], # optional users: [], # optional targets: [], # optional @@ -23,7 +23,10 @@ result = messaging.create_push( sound: '<SOUND>', # optional color: '<COLOR>', # optional tag: '<TAG>', # optional - badge: '<BADGE>', # optional + badge: null, # optional draft: false, # optional - scheduled_at: '' # optional + scheduled_at: '', # optional + content_available: false, # optional + critical: false, # optional + priority: MessagePriority::NORMAL # optional ) diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/create-sendgrid-provider.md index e9c31548d46..eae3ad3ecec 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/create-sendgrid-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/create-sms.md b/docs/examples/1.6.x/server-ruby/examples/messaging/create-sms.md index 58a96aa4772..901ec40c052 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/create-sms.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/create-sms.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/create-smtp-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/create-smtp-provider.md index cbdaaaf8b53..b062e574b4e 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/create-smtp-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/server-ruby/examples/messaging/create-subscriber.md index 973349084f9..1f6fa437363 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/create-subscriber.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_jwt('<YOUR_JWT>') # Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/create-telesign-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/create-telesign-provider.md index 40c60a793c4..b26d9d2784f 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/create-telesign-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/create-textmagic-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/create-textmagic-provider.md index 804f0b2c86a..4fd1a3683ec 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/create-textmagic-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/create-topic.md b/docs/examples/1.6.x/server-ruby/examples/messaging/create-topic.md index f1f29c99624..da2cf5e57bd 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/create-topic.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/create-topic.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/create-twilio-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/create-twilio-provider.md index 1350b8535a0..a945602646d 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/create-twilio-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/create-vonage-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/create-vonage-provider.md index c1c83a4b0b9..5a5f6eb72b2 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/create-vonage-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/delete-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/delete-provider.md index 86c9ae1473c..3c19e1ba0f9 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/delete-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/delete-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/delete-subscriber.md b/docs/examples/1.6.x/server-ruby/examples/messaging/delete-subscriber.md index 5606269d53e..a82e5e94c25 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/delete-subscriber.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_jwt('<YOUR_JWT>') # Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/delete-topic.md b/docs/examples/1.6.x/server-ruby/examples/messaging/delete-topic.md index d8506621945..cb58ee5c6ce 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/delete-topic.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/delete-topic.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/delete.md b/docs/examples/1.6.x/server-ruby/examples/messaging/delete.md index 1155406f819..e3db26127de 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/delete.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/delete.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/get-message.md b/docs/examples/1.6.x/server-ruby/examples/messaging/get-message.md index 8b7ffad012b..f5449a0be44 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/get-message.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/get-message.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/get-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/get-provider.md index 3da5beb468e..ddb28da4de2 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/get-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/get-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/get-subscriber.md b/docs/examples/1.6.x/server-ruby/examples/messaging/get-subscriber.md index 278aba08d2d..3c7d05334ea 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/get-subscriber.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/get-subscriber.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/get-topic.md b/docs/examples/1.6.x/server-ruby/examples/messaging/get-topic.md index ec58550f235..9ff732fc265 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/get-topic.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/get-topic.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/list-message-logs.md b/docs/examples/1.6.x/server-ruby/examples/messaging/list-message-logs.md index 7db1381d84b..f20d6fb491c 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/list-message-logs.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/list-message-logs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/list-messages.md b/docs/examples/1.6.x/server-ruby/examples/messaging/list-messages.md index 07fc3fcc9bd..ffc5dcdbc6f 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/list-messages.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/list-messages.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/list-provider-logs.md b/docs/examples/1.6.x/server-ruby/examples/messaging/list-provider-logs.md index fda60b669ac..af3751a18f6 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/list-provider-logs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/list-providers.md b/docs/examples/1.6.x/server-ruby/examples/messaging/list-providers.md index 43f4a213f5b..a857f0562ff 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/list-providers.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/list-providers.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/list-subscriber-logs.md b/docs/examples/1.6.x/server-ruby/examples/messaging/list-subscriber-logs.md index 5be2900cb65..06550e70678 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/list-subscriber-logs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/list-subscribers.md b/docs/examples/1.6.x/server-ruby/examples/messaging/list-subscribers.md index 6583f9300e2..07ebc99babc 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/list-subscribers.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/list-subscribers.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/list-targets.md b/docs/examples/1.6.x/server-ruby/examples/messaging/list-targets.md index 7354fc54b66..0407255d860 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/list-targets.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/list-targets.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/list-topic-logs.md b/docs/examples/1.6.x/server-ruby/examples/messaging/list-topic-logs.md index fb1f0e21b3a..9b53c47f826 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/list-topic-logs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/list-topics.md b/docs/examples/1.6.x/server-ruby/examples/messaging/list-topics.md index c00b8f1731f..5e7b6740cca 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/list-topics.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/list-topics.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/update-apns-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/update-apns-provider.md index e1748e6d88f..b19704aaed9 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/update-apns-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/update-email.md b/docs/examples/1.6.x/server-ruby/examples/messaging/update-email.md index baae0f9462c..aa3593292fb 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/update-email.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/update-email.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/update-fcm-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/update-fcm-provider.md index 463e028d5ae..44ea0d28deb 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/update-fcm-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/update-mailgun-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/update-mailgun-provider.md index 38f741749bc..a2e53190d7d 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/update-mailgun-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/update-msg91provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/update-msg91provider.md index b58c04f4946..0e88382850e 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/update-msg91provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/update-push.md b/docs/examples/1.6.x/server-ruby/examples/messaging/update-push.md index 54f6368eeec..42a5104ccbd 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/update-push.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/update-push.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key @@ -25,5 +25,8 @@ result = messaging.update_push( tag: '<TAG>', # optional badge: null, # optional draft: false, # optional - scheduled_at: '' # optional + scheduled_at: '', # optional + content_available: false, # optional + critical: false, # optional + priority: MessagePriority::NORMAL # optional ) diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/update-sendgrid-provider.md index afa2c172f72..99f1a9c7f15 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/update-sendgrid-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/update-sms.md b/docs/examples/1.6.x/server-ruby/examples/messaging/update-sms.md index 31adae7aa2f..b31480c1a0f 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/update-sms.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/update-sms.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/update-smtp-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/update-smtp-provider.md index 00c6d57c0ec..bbaebf3c32d 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/update-smtp-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/update-telesign-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/update-telesign-provider.md index 1d530f07b65..4f1bf6ff5ba 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/update-telesign-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/update-textmagic-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/update-textmagic-provider.md index e4e7a42d705..c8cd2f0daf5 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/update-textmagic-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/update-topic.md b/docs/examples/1.6.x/server-ruby/examples/messaging/update-topic.md index c944fb4ab6c..d20d945385e 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/update-topic.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/update-topic.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/update-twilio-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/update-twilio-provider.md index 8203054f59d..0f6a6761e11 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/update-twilio-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/messaging/update-vonage-provider.md b/docs/examples/1.6.x/server-ruby/examples/messaging/update-vonage-provider.md index 01d7fe12de7..e75bfbd98ee 100644 --- a/docs/examples/1.6.x/server-ruby/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.6.x/server-ruby/examples/messaging/update-vonage-provider.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/storage/create-bucket.md b/docs/examples/1.6.x/server-ruby/examples/storage/create-bucket.md index a6bb22cc5af..643431ed2c4 100644 --- a/docs/examples/1.6.x/server-ruby/examples/storage/create-bucket.md +++ b/docs/examples/1.6.x/server-ruby/examples/storage/create-bucket.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/storage/create-file.md b/docs/examples/1.6.x/server-ruby/examples/storage/create-file.md index c6f3e266a99..99e07c33f47 100644 --- a/docs/examples/1.6.x/server-ruby/examples/storage/create-file.md +++ b/docs/examples/1.6.x/server-ruby/examples/storage/create-file.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/storage/delete-bucket.md b/docs/examples/1.6.x/server-ruby/examples/storage/delete-bucket.md index 37d504cdc3f..dda3264e666 100644 --- a/docs/examples/1.6.x/server-ruby/examples/storage/delete-bucket.md +++ b/docs/examples/1.6.x/server-ruby/examples/storage/delete-bucket.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/storage/delete-file.md b/docs/examples/1.6.x/server-ruby/examples/storage/delete-file.md index 74bd8df8a85..eef058857c1 100644 --- a/docs/examples/1.6.x/server-ruby/examples/storage/delete-file.md +++ b/docs/examples/1.6.x/server-ruby/examples/storage/delete-file.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/storage/get-bucket.md b/docs/examples/1.6.x/server-ruby/examples/storage/get-bucket.md index 158fc300b0f..7c8580dcaf0 100644 --- a/docs/examples/1.6.x/server-ruby/examples/storage/get-bucket.md +++ b/docs/examples/1.6.x/server-ruby/examples/storage/get-bucket.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/storage/get-file-download.md b/docs/examples/1.6.x/server-ruby/examples/storage/get-file-download.md index 86efd7c609e..0747fdf04bf 100644 --- a/docs/examples/1.6.x/server-ruby/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/server-ruby/examples/storage/get-file-download.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/storage/get-file-preview.md b/docs/examples/1.6.x/server-ruby/examples/storage/get-file-preview.md index 2babfbd856d..38a68a8c8b4 100644 --- a/docs/examples/1.6.x/server-ruby/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/server-ruby/examples/storage/get-file-preview.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/storage/get-file-view.md b/docs/examples/1.6.x/server-ruby/examples/storage/get-file-view.md index b6b0c560bb9..4c31305ecd7 100644 --- a/docs/examples/1.6.x/server-ruby/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/server-ruby/examples/storage/get-file-view.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/storage/get-file.md b/docs/examples/1.6.x/server-ruby/examples/storage/get-file.md index 76bcca44832..b816bdba02e 100644 --- a/docs/examples/1.6.x/server-ruby/examples/storage/get-file.md +++ b/docs/examples/1.6.x/server-ruby/examples/storage/get-file.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/storage/list-buckets.md b/docs/examples/1.6.x/server-ruby/examples/storage/list-buckets.md index 73cf40ed4fd..dfee831b691 100644 --- a/docs/examples/1.6.x/server-ruby/examples/storage/list-buckets.md +++ b/docs/examples/1.6.x/server-ruby/examples/storage/list-buckets.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/storage/list-files.md b/docs/examples/1.6.x/server-ruby/examples/storage/list-files.md index 0ce09d8c150..078ff55e41a 100644 --- a/docs/examples/1.6.x/server-ruby/examples/storage/list-files.md +++ b/docs/examples/1.6.x/server-ruby/examples/storage/list-files.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/storage/update-bucket.md b/docs/examples/1.6.x/server-ruby/examples/storage/update-bucket.md index 3db084deff5..09b915eb5fb 100644 --- a/docs/examples/1.6.x/server-ruby/examples/storage/update-bucket.md +++ b/docs/examples/1.6.x/server-ruby/examples/storage/update-bucket.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/storage/update-file.md b/docs/examples/1.6.x/server-ruby/examples/storage/update-file.md index ed50e9c9081..a454499d9d1 100644 --- a/docs/examples/1.6.x/server-ruby/examples/storage/update-file.md +++ b/docs/examples/1.6.x/server-ruby/examples/storage/update-file.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/teams/create-membership.md b/docs/examples/1.6.x/server-ruby/examples/teams/create-membership.md index 1990223142f..6c0faba77d8 100644 --- a/docs/examples/1.6.x/server-ruby/examples/teams/create-membership.md +++ b/docs/examples/1.6.x/server-ruby/examples/teams/create-membership.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/teams/create.md b/docs/examples/1.6.x/server-ruby/examples/teams/create.md index e462cf42778..ba71a1dfc4e 100644 --- a/docs/examples/1.6.x/server-ruby/examples/teams/create.md +++ b/docs/examples/1.6.x/server-ruby/examples/teams/create.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/teams/delete-membership.md b/docs/examples/1.6.x/server-ruby/examples/teams/delete-membership.md index 4dc3397592d..5d815a8ca35 100644 --- a/docs/examples/1.6.x/server-ruby/examples/teams/delete-membership.md +++ b/docs/examples/1.6.x/server-ruby/examples/teams/delete-membership.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/teams/delete.md b/docs/examples/1.6.x/server-ruby/examples/teams/delete.md index f4879ba422b..c9f7c400e90 100644 --- a/docs/examples/1.6.x/server-ruby/examples/teams/delete.md +++ b/docs/examples/1.6.x/server-ruby/examples/teams/delete.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/teams/get-membership.md b/docs/examples/1.6.x/server-ruby/examples/teams/get-membership.md index ed60299e2c2..41a2c7bfb49 100644 --- a/docs/examples/1.6.x/server-ruby/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/server-ruby/examples/teams/get-membership.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/teams/get-prefs.md b/docs/examples/1.6.x/server-ruby/examples/teams/get-prefs.md index 1708412d562..e6b2cfadceb 100644 --- a/docs/examples/1.6.x/server-ruby/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/server-ruby/examples/teams/get-prefs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/teams/get.md b/docs/examples/1.6.x/server-ruby/examples/teams/get.md index 5d5a274b558..af51193cd37 100644 --- a/docs/examples/1.6.x/server-ruby/examples/teams/get.md +++ b/docs/examples/1.6.x/server-ruby/examples/teams/get.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/teams/list-memberships.md b/docs/examples/1.6.x/server-ruby/examples/teams/list-memberships.md index ac22269e3c0..db48f0cfc6a 100644 --- a/docs/examples/1.6.x/server-ruby/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/server-ruby/examples/teams/list-memberships.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/teams/list.md b/docs/examples/1.6.x/server-ruby/examples/teams/list.md index 50b49f8b45f..9e96391975a 100644 --- a/docs/examples/1.6.x/server-ruby/examples/teams/list.md +++ b/docs/examples/1.6.x/server-ruby/examples/teams/list.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/teams/update-membership-status.md b/docs/examples/1.6.x/server-ruby/examples/teams/update-membership-status.md index bb22ef03e70..40d82b86f17 100644 --- a/docs/examples/1.6.x/server-ruby/examples/teams/update-membership-status.md +++ b/docs/examples/1.6.x/server-ruby/examples/teams/update-membership-status.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/teams/update-membership.md b/docs/examples/1.6.x/server-ruby/examples/teams/update-membership.md index 7f92ff053cf..92b69b17734 100644 --- a/docs/examples/1.6.x/server-ruby/examples/teams/update-membership.md +++ b/docs/examples/1.6.x/server-ruby/examples/teams/update-membership.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/teams/update-name.md b/docs/examples/1.6.x/server-ruby/examples/teams/update-name.md index 267e5f29636..74f785c4ca8 100644 --- a/docs/examples/1.6.x/server-ruby/examples/teams/update-name.md +++ b/docs/examples/1.6.x/server-ruby/examples/teams/update-name.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/teams/update-prefs.md b/docs/examples/1.6.x/server-ruby/examples/teams/update-prefs.md index 337db7f22f1..03426aa3b95 100644 --- a/docs/examples/1.6.x/server-ruby/examples/teams/update-prefs.md +++ b/docs/examples/1.6.x/server-ruby/examples/teams/update-prefs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_session('') # The user session to authenticate with diff --git a/docs/examples/1.6.x/server-ruby/examples/users/create-argon2user.md b/docs/examples/1.6.x/server-ruby/examples/users/create-argon2user.md index 8b633daaa8c..8da9e0b1ffd 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/create-argon2user.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/create-argon2user.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/create-bcrypt-user.md b/docs/examples/1.6.x/server-ruby/examples/users/create-bcrypt-user.md index d76f653d276..7c2b852d691 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/create-bcrypt-user.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/create-j-w-t.md b/docs/examples/1.6.x/server-ruby/examples/users/create-j-w-t.md index a30a2b6bf04..57f7f1d32f3 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/create-j-w-t.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/create-j-w-t.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/create-m-d5user.md b/docs/examples/1.6.x/server-ruby/examples/users/create-m-d5user.md index 80ca9f59cba..63fb68742ef 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/create-m-d5user.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/create-m-d5user.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-ruby/examples/users/create-mfa-recovery-codes.md index 64fc8d5c58c..0cdea46af3d 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/create-mfa-recovery-codes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/create-p-h-pass-user.md b/docs/examples/1.6.x/server-ruby/examples/users/create-p-h-pass-user.md index 2fa6081cea9..7cd898a6fc6 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/create-p-h-pass-user.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/create-s-h-a-user.md b/docs/examples/1.6.x/server-ruby/examples/users/create-s-h-a-user.md index 39c17743fd5..f3951d9c806 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/create-s-h-a-user.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/create-scrypt-modified-user.md b/docs/examples/1.6.x/server-ruby/examples/users/create-scrypt-modified-user.md index 2a0ac89ebed..d84c2eed488 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/create-scrypt-modified-user.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/create-scrypt-user.md b/docs/examples/1.6.x/server-ruby/examples/users/create-scrypt-user.md index 38c250e5520..53aa253d2a2 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/create-scrypt-user.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/create-scrypt-user.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/create-session.md b/docs/examples/1.6.x/server-ruby/examples/users/create-session.md index ece2f429af7..32d2b5f2ad8 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/create-session.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/create-session.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/create-target.md b/docs/examples/1.6.x/server-ruby/examples/users/create-target.md index 5e5d9433310..3e87868df6f 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/create-target.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/create-target.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/create-token.md b/docs/examples/1.6.x/server-ruby/examples/users/create-token.md index 318294b9899..85e5f448ca8 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/create-token.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/create-token.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/create.md b/docs/examples/1.6.x/server-ruby/examples/users/create.md index aa742f60ffb..4f57adeb877 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/create.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/create.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/delete-identity.md b/docs/examples/1.6.x/server-ruby/examples/users/delete-identity.md index 3c2e7a55b91..d2482dfae1e 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/delete-identity.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/delete-identity.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-ruby/examples/users/delete-mfa-authenticator.md index 9bed8637c2a..50fcb0fa0d9 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/delete-mfa-authenticator.md @@ -4,7 +4,7 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/delete-session.md b/docs/examples/1.6.x/server-ruby/examples/users/delete-session.md index 4ac5f2795c9..9b14cc4fa34 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/delete-session.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/delete-session.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/delete-sessions.md b/docs/examples/1.6.x/server-ruby/examples/users/delete-sessions.md index b83a4224f2c..23fd5057637 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/delete-sessions.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/delete-sessions.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/delete-target.md b/docs/examples/1.6.x/server-ruby/examples/users/delete-target.md index 0e016cf70cf..f1564024dbd 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/delete-target.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/delete-target.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/delete.md b/docs/examples/1.6.x/server-ruby/examples/users/delete.md index 0aea69334ef..db7f2ee6f8b 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/delete.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/delete.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-ruby/examples/users/get-mfa-recovery-codes.md index f12a2879ee2..f984517d26f 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/get-mfa-recovery-codes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/get-prefs.md b/docs/examples/1.6.x/server-ruby/examples/users/get-prefs.md index afcb56f42db..0118b39897e 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/get-prefs.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/get-prefs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/get-target.md b/docs/examples/1.6.x/server-ruby/examples/users/get-target.md index b2e268e8163..10ce49b2294 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/get-target.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/get-target.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/get.md b/docs/examples/1.6.x/server-ruby/examples/users/get.md index 86ec849c7c8..95865b7e6c5 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/get.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/get.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/list-identities.md b/docs/examples/1.6.x/server-ruby/examples/users/list-identities.md index 2d4aa2f7eec..78c8cf50981 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/list-identities.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/list-identities.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/list-logs.md b/docs/examples/1.6.x/server-ruby/examples/users/list-logs.md index a13cec1b536..686434869c1 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/list-logs.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/list-logs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/list-memberships.md b/docs/examples/1.6.x/server-ruby/examples/users/list-memberships.md index 8706af14051..d36c380cec8 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/list-memberships.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/list-memberships.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/list-mfa-factors.md b/docs/examples/1.6.x/server-ruby/examples/users/list-mfa-factors.md index ab98651311e..ca1e2b2b964 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/list-mfa-factors.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/list-sessions.md b/docs/examples/1.6.x/server-ruby/examples/users/list-sessions.md index 17faa167019..311420531f3 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/list-sessions.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/list-sessions.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/list-targets.md b/docs/examples/1.6.x/server-ruby/examples/users/list-targets.md index 9b849e4fcc2..aae99417940 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/list-targets.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/list-targets.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/list.md b/docs/examples/1.6.x/server-ruby/examples/users/list.md index 40d1e839445..b490b650997 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/list.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/list.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/update-email-verification.md b/docs/examples/1.6.x/server-ruby/examples/users/update-email-verification.md index 439fa330d40..07f85f0318b 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/update-email-verification.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/update-email-verification.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/update-email.md b/docs/examples/1.6.x/server-ruby/examples/users/update-email.md index d93141f3c97..b36aac59d14 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/update-email.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/update-email.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/update-labels.md b/docs/examples/1.6.x/server-ruby/examples/users/update-labels.md index 2789e8fea99..a62d34b2e25 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/update-labels.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/update-labels.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-ruby/examples/users/update-mfa-recovery-codes.md index 1fc497c22ec..aaf5ba16c0a 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/update-mfa-recovery-codes.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/update-mfa.md b/docs/examples/1.6.x/server-ruby/examples/users/update-mfa.md index 9bafee47efc..3ebfb961162 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/update-mfa.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/update-mfa.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/update-name.md b/docs/examples/1.6.x/server-ruby/examples/users/update-name.md index 7645c165971..e7ade96e326 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/update-name.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/update-name.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/update-password.md b/docs/examples/1.6.x/server-ruby/examples/users/update-password.md index 40e03eea9c5..47c1f1ef492 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/update-password.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/update-password.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/update-phone-verification.md b/docs/examples/1.6.x/server-ruby/examples/users/update-phone-verification.md index 88082ee0342..6af7fcb638c 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/update-phone-verification.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/update-phone-verification.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/update-phone.md b/docs/examples/1.6.x/server-ruby/examples/users/update-phone.md index b08daa83860..bd26547daaf 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/update-phone.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/update-phone.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/update-prefs.md b/docs/examples/1.6.x/server-ruby/examples/users/update-prefs.md index 9871ff5b625..fbdccd7d236 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/update-prefs.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/update-prefs.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/update-status.md b/docs/examples/1.6.x/server-ruby/examples/users/update-status.md index a5d9544cbfc..d73982c149b 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/update-status.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/update-status.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-ruby/examples/users/update-target.md b/docs/examples/1.6.x/server-ruby/examples/users/update-target.md index 6acc913642b..dbcd1bd2f40 100644 --- a/docs/examples/1.6.x/server-ruby/examples/users/update-target.md +++ b/docs/examples/1.6.x/server-ruby/examples/users/update-target.md @@ -3,7 +3,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint + .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint .set_project('<YOUR_PROJECT_ID>') # Your project ID .set_key('<YOUR_API_KEY>') # Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/account/create-anonymous-session.md b/docs/examples/1.6.x/server-swift/examples/account/create-anonymous-session.md index f676bac4da4..22020a16d95 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/create-anonymous-session.md +++ b/docs/examples/1.6.x/server-swift/examples/account/create-anonymous-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/server-swift/examples/account/create-email-password-session.md b/docs/examples/1.6.x/server-swift/examples/account/create-email-password-session.md index 15051827b86..5f541a8a154 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/create-email-password-session.md +++ b/docs/examples/1.6.x/server-swift/examples/account/create-email-password-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/server-swift/examples/account/create-email-token.md b/docs/examples/1.6.x/server-swift/examples/account/create-email-token.md index b9d39ff27f9..cf82afde8ff 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/create-email-token.md +++ b/docs/examples/1.6.x/server-swift/examples/account/create-email-token.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/server-swift/examples/account/create-j-w-t.md b/docs/examples/1.6.x/server-swift/examples/account/create-j-w-t.md index c1c0f22dffc..fbcd50401c6 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/create-j-w-t.md +++ b/docs/examples/1.6.x/server-swift/examples/account/create-j-w-t.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/server-swift/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.6.x/server-swift/examples/account/create-magic-u-r-l-token.md index 83eb681673b..27bbe4137ea 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.6.x/server-swift/examples/account/create-magic-u-r-l-token.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/server-swift/examples/account/create-mfa-authenticator.md b/docs/examples/1.6.x/server-swift/examples/account/create-mfa-authenticator.md index 70294e99a22..4dd91d84dd4 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-swift/examples/account/create-mfa-authenticator.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/create-mfa-challenge.md b/docs/examples/1.6.x/server-swift/examples/account/create-mfa-challenge.md index 6d262d9c74a..0b5d385999e 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.6.x/server-swift/examples/account/create-mfa-challenge.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/server-swift/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-swift/examples/account/create-mfa-recovery-codes.md index 8480f417792..a73e4f60244 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-swift/examples/account/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/create-o-auth2token.md b/docs/examples/1.6.x/server-swift/examples/account/create-o-auth2token.md index 7bbfe98f48c..21b54e8c9a0 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/create-o-auth2token.md +++ b/docs/examples/1.6.x/server-swift/examples/account/create-o-auth2token.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/server-swift/examples/account/create-phone-token.md b/docs/examples/1.6.x/server-swift/examples/account/create-phone-token.md index acb7a696bcb..12b2d4b2231 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/create-phone-token.md +++ b/docs/examples/1.6.x/server-swift/examples/account/create-phone-token.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/server-swift/examples/account/create-phone-verification.md b/docs/examples/1.6.x/server-swift/examples/account/create-phone-verification.md index 8bab0b760f3..cba06376481 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/create-phone-verification.md +++ b/docs/examples/1.6.x/server-swift/examples/account/create-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/create-recovery.md b/docs/examples/1.6.x/server-swift/examples/account/create-recovery.md index f110d5b84d2..d89f679e0c7 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/create-recovery.md +++ b/docs/examples/1.6.x/server-swift/examples/account/create-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/create-session.md b/docs/examples/1.6.x/server-swift/examples/account/create-session.md index 3ea51195697..2065692a166 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/create-session.md +++ b/docs/examples/1.6.x/server-swift/examples/account/create-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/server-swift/examples/account/create-verification.md b/docs/examples/1.6.x/server-swift/examples/account/create-verification.md index 305adcab30b..71e9bdd32b2 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/create-verification.md +++ b/docs/examples/1.6.x/server-swift/examples/account/create-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/create.md b/docs/examples/1.6.x/server-swift/examples/account/create.md index cad7e44c449..79b4db64ba6 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/create.md +++ b/docs/examples/1.6.x/server-swift/examples/account/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/server-swift/examples/account/delete-identity.md b/docs/examples/1.6.x/server-swift/examples/account/delete-identity.md index e0322503f80..f0f14b37d2d 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/delete-identity.md +++ b/docs/examples/1.6.x/server-swift/examples/account/delete-identity.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-swift/examples/account/delete-mfa-authenticator.md index 9aa02ff4caa..e4209a25504 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-swift/examples/account/delete-mfa-authenticator.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/delete-session.md b/docs/examples/1.6.x/server-swift/examples/account/delete-session.md index 9c685bc5514..24696201164 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/delete-session.md +++ b/docs/examples/1.6.x/server-swift/examples/account/delete-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/delete-sessions.md b/docs/examples/1.6.x/server-swift/examples/account/delete-sessions.md index 59710f1a771..da8ac6dfe85 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/delete-sessions.md +++ b/docs/examples/1.6.x/server-swift/examples/account/delete-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-swift/examples/account/get-mfa-recovery-codes.md index 34743be6d30..69455f4acd8 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-swift/examples/account/get-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/get-prefs.md b/docs/examples/1.6.x/server-swift/examples/account/get-prefs.md index 08d9ab5b4ac..6551df92e63 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/get-prefs.md +++ b/docs/examples/1.6.x/server-swift/examples/account/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/get-session.md b/docs/examples/1.6.x/server-swift/examples/account/get-session.md index 37747add26f..63efb3f0980 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/get-session.md +++ b/docs/examples/1.6.x/server-swift/examples/account/get-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/get.md b/docs/examples/1.6.x/server-swift/examples/account/get.md index 91ed56ab7c2..833901b5b4d 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/get.md +++ b/docs/examples/1.6.x/server-swift/examples/account/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/list-identities.md b/docs/examples/1.6.x/server-swift/examples/account/list-identities.md index 96c6fd9dc27..c7ecff9962e 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/list-identities.md +++ b/docs/examples/1.6.x/server-swift/examples/account/list-identities.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/list-logs.md b/docs/examples/1.6.x/server-swift/examples/account/list-logs.md index 1a93da0d0eb..84c33277623 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/list-logs.md +++ b/docs/examples/1.6.x/server-swift/examples/account/list-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/list-mfa-factors.md b/docs/examples/1.6.x/server-swift/examples/account/list-mfa-factors.md index 72c2f5affef..a63d4d0f824 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-swift/examples/account/list-mfa-factors.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/list-sessions.md b/docs/examples/1.6.x/server-swift/examples/account/list-sessions.md index 67bb1070918..49691b3a9e1 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/list-sessions.md +++ b/docs/examples/1.6.x/server-swift/examples/account/list-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-email.md b/docs/examples/1.6.x/server-swift/examples/account/update-email.md index d8126b5cf86..48cce5055d9 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-email.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-email.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-m-f-a.md b/docs/examples/1.6.x/server-swift/examples/account/update-m-f-a.md index 4a471a4a358..ac486fceb65 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-m-f-a.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-m-f-a.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.6.x/server-swift/examples/account/update-magic-u-r-l-session.md index 8e0a26a6ef7..507006b2300 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-magic-u-r-l-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-mfa-authenticator.md b/docs/examples/1.6.x/server-swift/examples/account/update-mfa-authenticator.md index 30e2705318b..fedbc954af9 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-mfa-authenticator.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-mfa-challenge.md b/docs/examples/1.6.x/server-swift/examples/account/update-mfa-challenge.md index eed3bfade7e..4edb1fbbc37 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-mfa-challenge.md @@ -1,13 +1,13 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) -let result = try await account.updateMfaChallenge( +let session = try await account.updateMfaChallenge( challengeId: "<CHALLENGE_ID>", otp: "<OTP>" ) diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-swift/examples/account/update-mfa-recovery-codes.md index 2be8f6fbf6a..d0a2b8c6865 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-name.md b/docs/examples/1.6.x/server-swift/examples/account/update-name.md index 419b30a0098..2c676d87145 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-name.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-password.md b/docs/examples/1.6.x/server-swift/examples/account/update-password.md index 8358ede14f6..62fe48e6e95 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-password.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-password.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-phone-session.md b/docs/examples/1.6.x/server-swift/examples/account/update-phone-session.md index 50a88cbe519..f6776d1de19 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-phone-session.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-phone-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-phone-verification.md b/docs/examples/1.6.x/server-swift/examples/account/update-phone-verification.md index 13b0baca639..a983e79c3c1 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-phone-verification.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-phone.md b/docs/examples/1.6.x/server-swift/examples/account/update-phone.md index 496ddd9d0ee..6dd87a0ce5d 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-phone.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-phone.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-prefs.md b/docs/examples/1.6.x/server-swift/examples/account/update-prefs.md index 846764b4e5f..53bf623469f 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-prefs.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-recovery.md b/docs/examples/1.6.x/server-swift/examples/account/update-recovery.md index 82e86839d82..d655edfe593 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-recovery.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-recovery.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-session.md b/docs/examples/1.6.x/server-swift/examples/account/update-session.md index 866ea03047a..f2f4f7b737d 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-session.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-status.md b/docs/examples/1.6.x/server-swift/examples/account/update-status.md index d63ceed7243..88e30cfb095 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-status.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/account/update-verification.md b/docs/examples/1.6.x/server-swift/examples/account/update-verification.md index 5bae6777440..61bc18cc489 100644 --- a/docs/examples/1.6.x/server-swift/examples/account/update-verification.md +++ b/docs/examples/1.6.x/server-swift/examples/account/update-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/avatars/get-browser.md b/docs/examples/1.6.x/server-swift/examples/avatars/get-browser.md index e2a79f953f5..7db84f1ba2a 100644 --- a/docs/examples/1.6.x/server-swift/examples/avatars/get-browser.md +++ b/docs/examples/1.6.x/server-swift/examples/avatars/get-browser.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/avatars/get-credit-card.md b/docs/examples/1.6.x/server-swift/examples/avatars/get-credit-card.md index 741d3410604..aa9bafd2c3e 100644 --- a/docs/examples/1.6.x/server-swift/examples/avatars/get-credit-card.md +++ b/docs/examples/1.6.x/server-swift/examples/avatars/get-credit-card.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/avatars/get-favicon.md b/docs/examples/1.6.x/server-swift/examples/avatars/get-favicon.md index 0ee7ba17669..73f54fe5d34 100644 --- a/docs/examples/1.6.x/server-swift/examples/avatars/get-favicon.md +++ b/docs/examples/1.6.x/server-swift/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/avatars/get-flag.md b/docs/examples/1.6.x/server-swift/examples/avatars/get-flag.md index 2bdd9577ee0..c276572ce93 100644 --- a/docs/examples/1.6.x/server-swift/examples/avatars/get-flag.md +++ b/docs/examples/1.6.x/server-swift/examples/avatars/get-flag.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/avatars/get-image.md b/docs/examples/1.6.x/server-swift/examples/avatars/get-image.md index fecadf7cf7e..5455ad18f53 100644 --- a/docs/examples/1.6.x/server-swift/examples/avatars/get-image.md +++ b/docs/examples/1.6.x/server-swift/examples/avatars/get-image.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/avatars/get-initials.md b/docs/examples/1.6.x/server-swift/examples/avatars/get-initials.md index d5e09050f26..63dfa5e5ab5 100644 --- a/docs/examples/1.6.x/server-swift/examples/avatars/get-initials.md +++ b/docs/examples/1.6.x/server-swift/examples/avatars/get-initials.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/avatars/get-q-r.md b/docs/examples/1.6.x/server-swift/examples/avatars/get-q-r.md index 56f4b9c7d79..ae4cc910ab0 100644 --- a/docs/examples/1.6.x/server-swift/examples/avatars/get-q-r.md +++ b/docs/examples/1.6.x/server-swift/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/databases/create-boolean-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/create-boolean-attribute.md index 0776be6ead8..4530c385caf 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/create-boolean-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/create-collection.md b/docs/examples/1.6.x/server-swift/examples/databases/create-collection.md index 79c2d59861e..c3335b48cbc 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/create-collection.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/create-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/create-datetime-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/create-datetime-attribute.md index b4f51d8f0c9..d14d0b5cabf 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/create-datetime-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/create-document.md b/docs/examples/1.6.x/server-swift/examples/databases/create-document.md index 5f480a5ee45..daeaf144e11 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/create-document.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/create-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/databases/create-documents.md b/docs/examples/1.6.x/server-swift/examples/databases/create-documents.md new file mode 100644 index 00000000000..f7c076eaea4 --- /dev/null +++ b/docs/examples/1.6.x/server-swift/examples/databases/create-documents.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setSession("") // The user session to authenticate with + +let databases = Databases(client) + +let documentList = try await databases.createDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documents: [] +) + diff --git a/docs/examples/1.6.x/server-swift/examples/databases/create-email-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/create-email-attribute.md index 7c44f4d62ef..9bd30b38c96 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/create-email-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/create-email-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/create-enum-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/create-enum-attribute.md index b1d680824c1..08023f652b9 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/create-enum-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/create-float-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/create-float-attribute.md index 780e53b7752..b5126c6a50e 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/create-float-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/create-float-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/create-index.md b/docs/examples/1.6.x/server-swift/examples/databases/create-index.md index bd1d26dc323..11cbc179827 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/create-index.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/create-index.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/create-integer-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/create-integer-attribute.md index 03fea65bc65..20c29cd5696 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/create-integer-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/create-ip-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/create-ip-attribute.md index 4e601a37c8e..09605ba5220 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/create-ip-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/create-relationship-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/create-relationship-attribute.md index c85b4779984..8e6c3eb84b0 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/create-relationship-attribute.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/create-string-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/create-string-attribute.md index 6a7ae27c6eb..80c321ecdb0 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/create-string-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/create-string-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/create-url-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/create-url-attribute.md index 6d59fed9584..efd2acbc085 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/create-url-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/create-url-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/create.md b/docs/examples/1.6.x/server-swift/examples/databases/create.md index 82689d1b52d..b0362bb3e84 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/create.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/delete-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/delete-attribute.md index 7fb7c3a02e2..99485559811 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/delete-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/delete-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/delete-collection.md b/docs/examples/1.6.x/server-swift/examples/databases/delete-collection.md index 781e97c27d0..d61f0e658db 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/delete-collection.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/delete-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/delete-document.md b/docs/examples/1.6.x/server-swift/examples/databases/delete-document.md index f934d5b29c2..1db59709ab2 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/delete-document.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/delete-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/databases/delete-documents.md b/docs/examples/1.6.x/server-swift/examples/databases/delete-documents.md new file mode 100644 index 00000000000..d5321f2b26f --- /dev/null +++ b/docs/examples/1.6.x/server-swift/examples/databases/delete-documents.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let documentList = try await databases.deleteDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + queries: [] // optional +) + diff --git a/docs/examples/1.6.x/server-swift/examples/databases/delete-index.md b/docs/examples/1.6.x/server-swift/examples/databases/delete-index.md index f819d921b69..ecd09f7ce66 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/delete-index.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/delete-index.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/delete.md b/docs/examples/1.6.x/server-swift/examples/databases/delete.md index 8cb3f882128..40567e4288d 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/delete.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/get-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/get-attribute.md index f22fd9280af..30cd0c88326 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/get-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/get-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/get-collection.md b/docs/examples/1.6.x/server-swift/examples/databases/get-collection.md index 81b0bf21bac..96c1fa0f940 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/get-collection.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/get-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/get-document.md b/docs/examples/1.6.x/server-swift/examples/databases/get-document.md index 206fddd3e6b..c92856a731d 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/get-document.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/get-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/databases/get-index.md b/docs/examples/1.6.x/server-swift/examples/databases/get-index.md index b2c1b30902e..cd59074dc83 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/get-index.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/get-index.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/get.md b/docs/examples/1.6.x/server-swift/examples/databases/get.md index 37c15982cbb..875929bed08 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/get.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/list-attributes.md b/docs/examples/1.6.x/server-swift/examples/databases/list-attributes.md index 356b13be0fd..b375c8771b8 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/list-attributes.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/list-attributes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/list-collections.md b/docs/examples/1.6.x/server-swift/examples/databases/list-collections.md index 03db34f8d56..10481d985ca 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/list-collections.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/list-collections.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/list-documents.md b/docs/examples/1.6.x/server-swift/examples/databases/list-documents.md index 11dc91d2ae5..2cac9330b37 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/list-documents.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/list-documents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/databases/list-indexes.md b/docs/examples/1.6.x/server-swift/examples/databases/list-indexes.md index 2f37a0b30d8..691f74b0765 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/list-indexes.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/list-indexes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/list.md b/docs/examples/1.6.x/server-swift/examples/databases/list.md index e27367659a0..f8a2313acc8 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/list.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/update-boolean-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/update-boolean-attribute.md index e40da1a1e16..0d925056c2b 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/update-boolean-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/update-collection.md b/docs/examples/1.6.x/server-swift/examples/databases/update-collection.md index 741d3c60160..91099901095 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/update-collection.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/update-collection.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/update-datetime-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/update-datetime-attribute.md index a7728d24c54..906b374946e 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/update-datetime-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/update-document.md b/docs/examples/1.6.x/server-swift/examples/databases/update-document.md index 67cfb960ea7..7d452db284d 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/update-document.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/update-document.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/databases/update-documents.md b/docs/examples/1.6.x/server-swift/examples/databases/update-documents.md new file mode 100644 index 00000000000..0e934b1424b --- /dev/null +++ b/docs/examples/1.6.x/server-swift/examples/databases/update-documents.md @@ -0,0 +1,16 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let documentList = try await databases.updateDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + data: [:], // optional + queries: [] // optional +) + diff --git a/docs/examples/1.6.x/server-swift/examples/databases/update-email-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/update-email-attribute.md index 137ca78afe7..b485712ada5 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/update-email-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/update-email-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/update-enum-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/update-enum-attribute.md index bf7df6f7143..997b940c1b1 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/update-enum-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/update-float-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/update-float-attribute.md index 54a6065bcd0..5f3e8da4dab 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/update-float-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/update-float-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -12,9 +12,9 @@ let attributeFloat = try await databases.updateFloatAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - min: 0, - max: 0, default: 0, + min: 0, // optional + max: 0, // optional newKey: "" // optional ) diff --git a/docs/examples/1.6.x/server-swift/examples/databases/update-integer-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/update-integer-attribute.md index 0a8d545ec97..edc0a12c8c6 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/update-integer-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -12,9 +12,9 @@ let attributeInteger = try await databases.updateIntegerAttribute( collectionId: "<COLLECTION_ID>", key: "", required: false, - min: 0, - max: 0, default: 0, + min: 0, // optional + max: 0, // optional newKey: "" // optional ) diff --git a/docs/examples/1.6.x/server-swift/examples/databases/update-ip-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/update-ip-attribute.md index 2b4109665a1..e08835747c0 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/update-ip-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/update-relationship-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/update-relationship-attribute.md index 8faa5ae17ff..0fb06d77960 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/update-relationship-attribute.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/update-string-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/update-string-attribute.md index 5fafd5e72e0..1eb3315dcab 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/update-string-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/update-string-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -13,7 +13,7 @@ let attributeString = try await databases.updateStringAttribute( key: "", required: false, default: "<DEFAULT>", - size: 0, // optional + size: 1, // optional newKey: "" // optional ) diff --git a/docs/examples/1.6.x/server-swift/examples/databases/update-url-attribute.md b/docs/examples/1.6.x/server-swift/examples/databases/update-url-attribute.md index b442a6add44..cd18f963686 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/update-url-attribute.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/update-url-attribute.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/update.md b/docs/examples/1.6.x/server-swift/examples/databases/update.md index a03a74b4ff5..07f506257b1 100644 --- a/docs/examples/1.6.x/server-swift/examples/databases/update.md +++ b/docs/examples/1.6.x/server-swift/examples/databases/update.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/databases/upsert-documents.md b/docs/examples/1.6.x/server-swift/examples/databases/upsert-documents.md new file mode 100644 index 00000000000..353cc5c5024 --- /dev/null +++ b/docs/examples/1.6.x/server-swift/examples/databases/upsert-documents.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let databases = Databases(client) + +let documentList = try await databases.upsertDocuments( + databaseId: "<DATABASE_ID>", + collectionId: "<COLLECTION_ID>", + documents: [] // optional +) + diff --git a/docs/examples/1.6.x/server-swift/examples/functions/create-build.md b/docs/examples/1.6.x/server-swift/examples/functions/create-build.md index f67ac99bc17..22d3c4307b7 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/create-build.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/create-build.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/create-deployment.md b/docs/examples/1.6.x/server-swift/examples/functions/create-deployment.md index bcd10ae042a..de3d14d2424 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/create-deployment.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/create-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/create-execution.md b/docs/examples/1.6.x/server-swift/examples/functions/create-execution.md index 560f1a977f4..aae7a0f52f5 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/create-execution.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/create-execution.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/functions/create-variable.md b/docs/examples/1.6.x/server-swift/examples/functions/create-variable.md index 3af32209755..83ec4dbdd90 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/create-variable.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/create-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/create.md b/docs/examples/1.6.x/server-swift/examples/functions/create.md index fb614b5a4ec..aa77cc4741f 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/create.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/create.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/delete-deployment.md b/docs/examples/1.6.x/server-swift/examples/functions/delete-deployment.md index cf9315e9af1..dec7b1db8f5 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/delete-deployment.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/delete-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/delete-execution.md b/docs/examples/1.6.x/server-swift/examples/functions/delete-execution.md index f6e13cd4bb4..e51b7dcd5c4 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/delete-execution.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/delete-execution.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/delete-variable.md b/docs/examples/1.6.x/server-swift/examples/functions/delete-variable.md index 7d09f110488..ea0ebab079a 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/delete-variable.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/delete-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/delete.md b/docs/examples/1.6.x/server-swift/examples/functions/delete.md index ff1d0490909..76bb48cddf4 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/delete.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/get-deployment-download.md b/docs/examples/1.6.x/server-swift/examples/functions/get-deployment-download.md index 6d08d9bb7f0..383a1873805 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/get-deployment-download.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/get-deployment-download.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/get-deployment.md b/docs/examples/1.6.x/server-swift/examples/functions/get-deployment.md index 438b667e105..56ed2e85128 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/get-deployment.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/get-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/get-execution.md b/docs/examples/1.6.x/server-swift/examples/functions/get-execution.md index 0aa9d66af62..6d24ee9390e 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/get-execution.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/get-execution.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/functions/get-variable.md b/docs/examples/1.6.x/server-swift/examples/functions/get-variable.md index 0832b41e887..da20d680076 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/get-variable.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/get-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/get.md b/docs/examples/1.6.x/server-swift/examples/functions/get.md index aa434c03e34..98babdb04d3 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/get.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/list-deployments.md b/docs/examples/1.6.x/server-swift/examples/functions/list-deployments.md index 5f005f02fae..599f301ca88 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/list-deployments.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/list-deployments.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/list-executions.md b/docs/examples/1.6.x/server-swift/examples/functions/list-executions.md index 2c28d542745..512c890fc51 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/list-executions.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/list-executions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/functions/list-runtimes.md b/docs/examples/1.6.x/server-swift/examples/functions/list-runtimes.md index bad50b172c6..c4a3f31174c 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/list-runtimes.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/list-runtimes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/list-specifications.md b/docs/examples/1.6.x/server-swift/examples/functions/list-specifications.md index 0c9da2df0b2..1f5914ba91f 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/list-specifications.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/list-specifications.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/list-templates.md b/docs/examples/1.6.x/server-swift/examples/functions/list-templates.md deleted file mode 100644 index d0090ab803b..00000000000 --- a/docs/examples/1.6.x/server-swift/examples/functions/list-templates.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - -let functions = Functions(client) - -let templateFunctionList = try await functions.listTemplates( - runtimes: [], // optional - useCases: [], // optional - limit: 1, // optional - offset: 0 // optional -) - diff --git a/docs/examples/1.6.x/server-swift/examples/functions/list-variables.md b/docs/examples/1.6.x/server-swift/examples/functions/list-variables.md index 67030b93d1d..0343e547721 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/list-variables.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/list-variables.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/list.md b/docs/examples/1.6.x/server-swift/examples/functions/list.md index f6ed013a564..370b6bddfd2 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/list.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/update-deployment-build.md b/docs/examples/1.6.x/server-swift/examples/functions/update-deployment-build.md index 9003a02df3f..8f48cac855f 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/update-deployment-build.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/update-deployment-build.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/update-deployment.md b/docs/examples/1.6.x/server-swift/examples/functions/update-deployment.md index 9ae6ec4f51e..313ccc4b5ee 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/update-deployment.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/update-deployment.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/update-variable.md b/docs/examples/1.6.x/server-swift/examples/functions/update-variable.md index 67169852a7c..86eaf58593d 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/update-variable.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/update-variable.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/functions/update.md b/docs/examples/1.6.x/server-swift/examples/functions/update.md index dcc4ed637e8..ebb2828bc8f 100644 --- a/docs/examples/1.6.x/server-swift/examples/functions/update.md +++ b/docs/examples/1.6.x/server-swift/examples/functions/update.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/graphql/mutation.md b/docs/examples/1.6.x/server-swift/examples/graphql/mutation.md index 6d4f7475370..ad338588946 100644 --- a/docs/examples/1.6.x/server-swift/examples/graphql/mutation.md +++ b/docs/examples/1.6.x/server-swift/examples/graphql/mutation.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/graphql/query.md b/docs/examples/1.6.x/server-swift/examples/graphql/query.md index 4a10f57cbcb..f087c888a35 100644 --- a/docs/examples/1.6.x/server-swift/examples/graphql/query.md +++ b/docs/examples/1.6.x/server-swift/examples/graphql/query.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-antivirus.md b/docs/examples/1.6.x/server-swift/examples/health/get-antivirus.md index d45b7190eb7..5fc335f8fc5 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-antivirus.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-antivirus.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-cache.md b/docs/examples/1.6.x/server-swift/examples/health/get-cache.md index 4d493c40ad7..a1c514b60e7 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-cache.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-cache.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-certificate.md b/docs/examples/1.6.x/server-swift/examples/health/get-certificate.md index 1d2d453d73e..6adf4d60523 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-certificate.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-certificate.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-d-b.md b/docs/examples/1.6.x/server-swift/examples/health/get-d-b.md index c7b5127d59f..a6aeb12e44c 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-d-b.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-d-b.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-failed-jobs.md b/docs/examples/1.6.x/server-swift/examples/health/get-failed-jobs.md index 5120c072a6c..c508106bfa4 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-failed-jobs.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-failed-jobs.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-pub-sub.md b/docs/examples/1.6.x/server-swift/examples/health/get-pub-sub.md index 561fc6b7a97..9a7766c94a5 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-pub-sub.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-pub-sub.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-queue-builds.md b/docs/examples/1.6.x/server-swift/examples/health/get-queue-builds.md index 81b4fb2523a..8db346ccbee 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-queue-builds.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-queue-builds.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-queue-certificates.md b/docs/examples/1.6.x/server-swift/examples/health/get-queue-certificates.md index cecb88ae675..4814f29d870 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-queue-certificates.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-queue-certificates.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-queue-databases.md b/docs/examples/1.6.x/server-swift/examples/health/get-queue-databases.md index b3fefc8b050..3acda3ddd74 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-queue-databases.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-queue-databases.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-queue-deletes.md b/docs/examples/1.6.x/server-swift/examples/health/get-queue-deletes.md index 0d90387c6df..8be397f53f8 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-queue-deletes.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-queue-deletes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-queue-functions.md b/docs/examples/1.6.x/server-swift/examples/health/get-queue-functions.md index 961cc6221d7..aa420409d2c 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-queue-functions.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-queue-functions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-queue-logs.md b/docs/examples/1.6.x/server-swift/examples/health/get-queue-logs.md index 34d26efd758..dc989a510f3 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-queue-logs.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-queue-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-queue-mails.md b/docs/examples/1.6.x/server-swift/examples/health/get-queue-mails.md index f48a96d7c8a..2106b2f233a 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-queue-mails.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-queue-mails.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-queue-messaging.md b/docs/examples/1.6.x/server-swift/examples/health/get-queue-messaging.md index 7a171bd7339..11cb16c5e3c 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-queue-messaging.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-queue-messaging.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-queue-migrations.md b/docs/examples/1.6.x/server-swift/examples/health/get-queue-migrations.md index f36eb129a60..a0a4588b545 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-queue-migrations.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-queue-migrations.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-queue-stats-resources.md b/docs/examples/1.6.x/server-swift/examples/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..4eb6ba7de37 --- /dev/null +++ b/docs/examples/1.6.x/server-swift/examples/health/get-queue-stats-resources.md @@ -0,0 +1,13 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let health = Health(client) + +let healthQueue = try await health.getQueueStatsResources( + threshold: 0 // optional +) + diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-queue-usage-dump.md b/docs/examples/1.6.x/server-swift/examples/health/get-queue-usage-dump.md index df4c043e16e..e4ad03ce0a4 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-queue-usage-dump.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-queue-usage-dump.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-queue-usage.md b/docs/examples/1.6.x/server-swift/examples/health/get-queue-usage.md index b3bc88ed881..bfaeab0b36d 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-queue-usage.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-queue-usage.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-queue-webhooks.md b/docs/examples/1.6.x/server-swift/examples/health/get-queue-webhooks.md index 25ed30f4426..c315406627d 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-queue-webhooks.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-queue.md b/docs/examples/1.6.x/server-swift/examples/health/get-queue.md index b7da587aed1..9e95237c9f0 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-queue.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-queue.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-storage-local.md b/docs/examples/1.6.x/server-swift/examples/health/get-storage-local.md index 4e8518362c1..9e23c09b6d2 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-storage-local.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-storage-local.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-storage.md b/docs/examples/1.6.x/server-swift/examples/health/get-storage.md index fbe116fccef..513ebac944a 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-storage.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-storage.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get-time.md b/docs/examples/1.6.x/server-swift/examples/health/get-time.md index 02cca3f21bc..6624b40b227 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get-time.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get-time.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/health/get.md b/docs/examples/1.6.x/server-swift/examples/health/get.md index 140b304461e..ef1ffaab6cd 100644 --- a/docs/examples/1.6.x/server-swift/examples/health/get.md +++ b/docs/examples/1.6.x/server-swift/examples/health/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/locale/get.md b/docs/examples/1.6.x/server-swift/examples/locale/get.md index 94121fd0b28..e22f3157c79 100644 --- a/docs/examples/1.6.x/server-swift/examples/locale/get.md +++ b/docs/examples/1.6.x/server-swift/examples/locale/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/locale/list-codes.md b/docs/examples/1.6.x/server-swift/examples/locale/list-codes.md index 1f41799b204..b31448a1193 100644 --- a/docs/examples/1.6.x/server-swift/examples/locale/list-codes.md +++ b/docs/examples/1.6.x/server-swift/examples/locale/list-codes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/locale/list-continents.md b/docs/examples/1.6.x/server-swift/examples/locale/list-continents.md index f46f3c034bd..c75abf8a4d7 100644 --- a/docs/examples/1.6.x/server-swift/examples/locale/list-continents.md +++ b/docs/examples/1.6.x/server-swift/examples/locale/list-continents.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/locale/list-countries-e-u.md b/docs/examples/1.6.x/server-swift/examples/locale/list-countries-e-u.md index ee57e01a8e1..e09f3db4f72 100644 --- a/docs/examples/1.6.x/server-swift/examples/locale/list-countries-e-u.md +++ b/docs/examples/1.6.x/server-swift/examples/locale/list-countries-e-u.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/locale/list-countries-phones.md b/docs/examples/1.6.x/server-swift/examples/locale/list-countries-phones.md index 9263de68e5b..de360c44087 100644 --- a/docs/examples/1.6.x/server-swift/examples/locale/list-countries-phones.md +++ b/docs/examples/1.6.x/server-swift/examples/locale/list-countries-phones.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/locale/list-countries.md b/docs/examples/1.6.x/server-swift/examples/locale/list-countries.md index d793492f719..b214f9899b2 100644 --- a/docs/examples/1.6.x/server-swift/examples/locale/list-countries.md +++ b/docs/examples/1.6.x/server-swift/examples/locale/list-countries.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/locale/list-currencies.md b/docs/examples/1.6.x/server-swift/examples/locale/list-currencies.md index eb0ddf7f5e1..a47cae696be 100644 --- a/docs/examples/1.6.x/server-swift/examples/locale/list-currencies.md +++ b/docs/examples/1.6.x/server-swift/examples/locale/list-currencies.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/locale/list-languages.md b/docs/examples/1.6.x/server-swift/examples/locale/list-languages.md index 19a70b23a4e..40db7e5fe6e 100644 --- a/docs/examples/1.6.x/server-swift/examples/locale/list-languages.md +++ b/docs/examples/1.6.x/server-swift/examples/locale/list-languages.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/create-apns-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/create-apns-provider.md index 9bbb4da7a1d..5e20018fef9 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/create-apns-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/create-email.md b/docs/examples/1.6.x/server-swift/examples/messaging/create-email.md index 655daeaad4c..a1b47742289 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/create-email.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/create-email.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/create-fcm-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/create-fcm-provider.md index b127946cf84..0071e477f10 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/create-fcm-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/create-mailgun-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/create-mailgun-provider.md index 63fd5a127fb..aca295d1bdf 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/create-mailgun-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/create-msg91provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/create-msg91provider.md index 57cd54be154..01503c10cb8 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/create-msg91provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/create-push.md b/docs/examples/1.6.x/server-swift/examples/messaging/create-push.md index dbc7bf0ca6a..498eccb51a4 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/create-push.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/create-push.md @@ -1,7 +1,8 @@ import Appwrite +import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -9,8 +10,8 @@ let messaging = Messaging(client) let message = try await messaging.createPush( messageId: "<MESSAGE_ID>", - title: "<TITLE>", - body: "<BODY>", + title: "<TITLE>", // optional + body: "<BODY>", // optional topics: [], // optional users: [], // optional targets: [], // optional @@ -21,8 +22,11 @@ let message = try await messaging.createPush( sound: "<SOUND>", // optional color: "<COLOR>", // optional tag: "<TAG>", // optional - badge: "<BADGE>", // optional + badge: 0, // optional draft: false, // optional - scheduledAt: "" // optional + scheduledAt: "", // optional + contentAvailable: false, // optional + critical: false, // optional + priority: .normal // optional ) diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/create-sendgrid-provider.md index e8b70b629f8..5275f6cdb7e 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/create-sendgrid-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/create-sms.md b/docs/examples/1.6.x/server-swift/examples/messaging/create-sms.md index 22ca198e461..4f579312a92 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/create-sms.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/create-sms.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/create-smtp-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/create-smtp-provider.md index 5eff6413e1e..18d25df7383 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/create-smtp-provider.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/create-subscriber.md b/docs/examples/1.6.x/server-swift/examples/messaging/create-subscriber.md index 087ec0e31e1..cb231624849 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/create-subscriber.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/create-subscriber.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setJWT("<YOUR_JWT>") // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/create-telesign-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/create-telesign-provider.md index b9beb151f6f..a787134992a 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/create-telesign-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/create-textmagic-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/create-textmagic-provider.md index f1802d9f296..9b12a7d8cbc 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/create-textmagic-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/create-topic.md b/docs/examples/1.6.x/server-swift/examples/messaging/create-topic.md index 14f222907b4..9429c45554a 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/create-topic.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/create-topic.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/create-twilio-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/create-twilio-provider.md index f0f0d6e0875..7421290e05d 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/create-twilio-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/create-vonage-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/create-vonage-provider.md index 4e683dfc9d1..b6a30143910 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/create-vonage-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/delete-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/delete-provider.md index 3652609bec1..94da565e1fe 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/delete-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/delete-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/delete-subscriber.md b/docs/examples/1.6.x/server-swift/examples/messaging/delete-subscriber.md index b083fc4e1ac..b0aa96602f1 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/delete-subscriber.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setJWT("<YOUR_JWT>") // Your secret JSON Web Token diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/delete-topic.md b/docs/examples/1.6.x/server-swift/examples/messaging/delete-topic.md index 1de412682d3..6676adf94e5 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/delete-topic.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/delete-topic.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/delete.md b/docs/examples/1.6.x/server-swift/examples/messaging/delete.md index 2e407808af3..fca66c7f431 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/delete.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/get-message.md b/docs/examples/1.6.x/server-swift/examples/messaging/get-message.md index 5db5f7d5084..b1bbf9d5f01 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/get-message.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/get-message.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/get-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/get-provider.md index b5a81562883..6ff8545bd0a 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/get-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/get-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/get-subscriber.md b/docs/examples/1.6.x/server-swift/examples/messaging/get-subscriber.md index ac4d2898716..55538e073d7 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/get-subscriber.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/get-subscriber.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/get-topic.md b/docs/examples/1.6.x/server-swift/examples/messaging/get-topic.md index 3d883714588..0d2035bd9d8 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/get-topic.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/get-topic.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/list-message-logs.md b/docs/examples/1.6.x/server-swift/examples/messaging/list-message-logs.md index c58ef450d25..b7efe6fa9f8 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/list-message-logs.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/list-message-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/list-messages.md b/docs/examples/1.6.x/server-swift/examples/messaging/list-messages.md index bfa9222239c..73832f7daed 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/list-messages.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/list-messages.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/list-provider-logs.md b/docs/examples/1.6.x/server-swift/examples/messaging/list-provider-logs.md index 55f0d1f2541..0633e15b62b 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/list-provider-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/list-providers.md b/docs/examples/1.6.x/server-swift/examples/messaging/list-providers.md index fbb5803538e..c24af425a6f 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/list-providers.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/list-providers.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/list-subscriber-logs.md b/docs/examples/1.6.x/server-swift/examples/messaging/list-subscriber-logs.md index a83cb6053db..eab170d7cb6 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/list-subscriber-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/list-subscribers.md b/docs/examples/1.6.x/server-swift/examples/messaging/list-subscribers.md index ded4fdf9757..a29bcefaf1f 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/list-subscribers.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/list-subscribers.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/list-targets.md b/docs/examples/1.6.x/server-swift/examples/messaging/list-targets.md index 00219f15f6f..974ae4f7b5c 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/list-targets.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/list-targets.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/list-topic-logs.md b/docs/examples/1.6.x/server-swift/examples/messaging/list-topic-logs.md index 68f121c9efe..e6f32ad2322 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/list-topic-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/list-topics.md b/docs/examples/1.6.x/server-swift/examples/messaging/list-topics.md index 617b13c70d6..13106e940c9 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/list-topics.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/list-topics.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/update-apns-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/update-apns-provider.md index 012e91e7bf2..03afe5555b6 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/update-apns-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/update-email.md b/docs/examples/1.6.x/server-swift/examples/messaging/update-email.md index e9251641806..1404fb8f772 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/update-email.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/update-email.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/update-fcm-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/update-fcm-provider.md index 60a0ce46e2f..c4548f65490 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/update-fcm-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/update-mailgun-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/update-mailgun-provider.md index bc385267ecd..8ed28aa40ef 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/update-mailgun-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/update-msg91provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/update-msg91provider.md index 3818b7a9c1c..e4a441c561a 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/update-msg91provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/update-push.md b/docs/examples/1.6.x/server-swift/examples/messaging/update-push.md index 40ce34bf666..e443161aa97 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/update-push.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/update-push.md @@ -1,7 +1,8 @@ import Appwrite +import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key @@ -23,6 +24,9 @@ let message = try await messaging.updatePush( tag: "<TAG>", // optional badge: 0, // optional draft: false, // optional - scheduledAt: "" // optional + scheduledAt: "", // optional + contentAvailable: false, // optional + critical: false, // optional + priority: .normal // optional ) diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/update-sendgrid-provider.md index af950c7db05..d363342af8f 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/update-sendgrid-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/update-sms.md b/docs/examples/1.6.x/server-swift/examples/messaging/update-sms.md index 8f4476783ec..46b225fce05 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/update-sms.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/update-sms.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/update-smtp-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/update-smtp-provider.md index 95db5056cfc..7ef8f2e7600 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/update-smtp-provider.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/update-telesign-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/update-telesign-provider.md index 0d3279c98b1..4475128b716 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/update-telesign-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/update-textmagic-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/update-textmagic-provider.md index 738d27d7c11..e412faab656 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/update-textmagic-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/update-topic.md b/docs/examples/1.6.x/server-swift/examples/messaging/update-topic.md index ad5edd1f904..796f581f075 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/update-topic.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/update-topic.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/update-twilio-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/update-twilio-provider.md index 6320665e616..7b4592b048e 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/update-twilio-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/messaging/update-vonage-provider.md b/docs/examples/1.6.x/server-swift/examples/messaging/update-vonage-provider.md index ffdbe95d3de..ba10ce2309b 100644 --- a/docs/examples/1.6.x/server-swift/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.6.x/server-swift/examples/messaging/update-vonage-provider.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/storage/create-bucket.md b/docs/examples/1.6.x/server-swift/examples/storage/create-bucket.md index 4ebbdf84153..a664e14f5f0 100644 --- a/docs/examples/1.6.x/server-swift/examples/storage/create-bucket.md +++ b/docs/examples/1.6.x/server-swift/examples/storage/create-bucket.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/storage/create-file.md b/docs/examples/1.6.x/server-swift/examples/storage/create-file.md index 0716cf7d237..540c869fabf 100644 --- a/docs/examples/1.6.x/server-swift/examples/storage/create-file.md +++ b/docs/examples/1.6.x/server-swift/examples/storage/create-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/storage/delete-bucket.md b/docs/examples/1.6.x/server-swift/examples/storage/delete-bucket.md index 56c7d3ed6d9..2f4916dba23 100644 --- a/docs/examples/1.6.x/server-swift/examples/storage/delete-bucket.md +++ b/docs/examples/1.6.x/server-swift/examples/storage/delete-bucket.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/storage/delete-file.md b/docs/examples/1.6.x/server-swift/examples/storage/delete-file.md index 35dca5e706d..7ac1b194e6f 100644 --- a/docs/examples/1.6.x/server-swift/examples/storage/delete-file.md +++ b/docs/examples/1.6.x/server-swift/examples/storage/delete-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/storage/get-bucket.md b/docs/examples/1.6.x/server-swift/examples/storage/get-bucket.md index e33af5cc3b3..296a27bf850 100644 --- a/docs/examples/1.6.x/server-swift/examples/storage/get-bucket.md +++ b/docs/examples/1.6.x/server-swift/examples/storage/get-bucket.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/storage/get-file-download.md b/docs/examples/1.6.x/server-swift/examples/storage/get-file-download.md index 40607d08ddd..5893cefad1e 100644 --- a/docs/examples/1.6.x/server-swift/examples/storage/get-file-download.md +++ b/docs/examples/1.6.x/server-swift/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/storage/get-file-preview.md b/docs/examples/1.6.x/server-swift/examples/storage/get-file-preview.md index e3372093d8a..874e5675e44 100644 --- a/docs/examples/1.6.x/server-swift/examples/storage/get-file-preview.md +++ b/docs/examples/1.6.x/server-swift/examples/storage/get-file-preview.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/storage/get-file-view.md b/docs/examples/1.6.x/server-swift/examples/storage/get-file-view.md index 0c88e15b729..4cf7e7d996a 100644 --- a/docs/examples/1.6.x/server-swift/examples/storage/get-file-view.md +++ b/docs/examples/1.6.x/server-swift/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/storage/get-file.md b/docs/examples/1.6.x/server-swift/examples/storage/get-file.md index a0c997c40b1..033a643a831 100644 --- a/docs/examples/1.6.x/server-swift/examples/storage/get-file.md +++ b/docs/examples/1.6.x/server-swift/examples/storage/get-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/storage/list-buckets.md b/docs/examples/1.6.x/server-swift/examples/storage/list-buckets.md index 2329b15ad6e..957d266e9a7 100644 --- a/docs/examples/1.6.x/server-swift/examples/storage/list-buckets.md +++ b/docs/examples/1.6.x/server-swift/examples/storage/list-buckets.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/storage/list-files.md b/docs/examples/1.6.x/server-swift/examples/storage/list-files.md index 546bd1c1ef3..103d3c328c2 100644 --- a/docs/examples/1.6.x/server-swift/examples/storage/list-files.md +++ b/docs/examples/1.6.x/server-swift/examples/storage/list-files.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/storage/update-bucket.md b/docs/examples/1.6.x/server-swift/examples/storage/update-bucket.md index 4122d1f062e..de3b5bf0e5e 100644 --- a/docs/examples/1.6.x/server-swift/examples/storage/update-bucket.md +++ b/docs/examples/1.6.x/server-swift/examples/storage/update-bucket.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/storage/update-file.md b/docs/examples/1.6.x/server-swift/examples/storage/update-file.md index ca3fc2c293b..d4d7484bd31 100644 --- a/docs/examples/1.6.x/server-swift/examples/storage/update-file.md +++ b/docs/examples/1.6.x/server-swift/examples/storage/update-file.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/teams/create-membership.md b/docs/examples/1.6.x/server-swift/examples/teams/create-membership.md index 5c86f2db335..9010372175f 100644 --- a/docs/examples/1.6.x/server-swift/examples/teams/create-membership.md +++ b/docs/examples/1.6.x/server-swift/examples/teams/create-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/teams/create.md b/docs/examples/1.6.x/server-swift/examples/teams/create.md index 2533c279027..71f3d708748 100644 --- a/docs/examples/1.6.x/server-swift/examples/teams/create.md +++ b/docs/examples/1.6.x/server-swift/examples/teams/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/teams/delete-membership.md b/docs/examples/1.6.x/server-swift/examples/teams/delete-membership.md index e260b01ff84..dbdbc96ff94 100644 --- a/docs/examples/1.6.x/server-swift/examples/teams/delete-membership.md +++ b/docs/examples/1.6.x/server-swift/examples/teams/delete-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/teams/delete.md b/docs/examples/1.6.x/server-swift/examples/teams/delete.md index b9fbcbe4466..ee9daaa55b3 100644 --- a/docs/examples/1.6.x/server-swift/examples/teams/delete.md +++ b/docs/examples/1.6.x/server-swift/examples/teams/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/teams/get-membership.md b/docs/examples/1.6.x/server-swift/examples/teams/get-membership.md index cce480cc70e..ab7b29eb3a5 100644 --- a/docs/examples/1.6.x/server-swift/examples/teams/get-membership.md +++ b/docs/examples/1.6.x/server-swift/examples/teams/get-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/teams/get-prefs.md b/docs/examples/1.6.x/server-swift/examples/teams/get-prefs.md index 9ec230df38c..ae3e9f2875b 100644 --- a/docs/examples/1.6.x/server-swift/examples/teams/get-prefs.md +++ b/docs/examples/1.6.x/server-swift/examples/teams/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/teams/get.md b/docs/examples/1.6.x/server-swift/examples/teams/get.md index 8dce2c137ba..cd4b75567a8 100644 --- a/docs/examples/1.6.x/server-swift/examples/teams/get.md +++ b/docs/examples/1.6.x/server-swift/examples/teams/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/teams/list-memberships.md b/docs/examples/1.6.x/server-swift/examples/teams/list-memberships.md index 08b3235e518..0670d91ab24 100644 --- a/docs/examples/1.6.x/server-swift/examples/teams/list-memberships.md +++ b/docs/examples/1.6.x/server-swift/examples/teams/list-memberships.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/teams/list.md b/docs/examples/1.6.x/server-swift/examples/teams/list.md index 8b6d0a16744..b5130cbf898 100644 --- a/docs/examples/1.6.x/server-swift/examples/teams/list.md +++ b/docs/examples/1.6.x/server-swift/examples/teams/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/teams/update-membership-status.md b/docs/examples/1.6.x/server-swift/examples/teams/update-membership-status.md index 1ae6d6e9936..69fca1de74b 100644 --- a/docs/examples/1.6.x/server-swift/examples/teams/update-membership-status.md +++ b/docs/examples/1.6.x/server-swift/examples/teams/update-membership-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/teams/update-membership.md b/docs/examples/1.6.x/server-swift/examples/teams/update-membership.md index 92b747458ae..47f28e74fd8 100644 --- a/docs/examples/1.6.x/server-swift/examples/teams/update-membership.md +++ b/docs/examples/1.6.x/server-swift/examples/teams/update-membership.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/teams/update-name.md b/docs/examples/1.6.x/server-swift/examples/teams/update-name.md index bc9731bd567..56f5ab60dbf 100644 --- a/docs/examples/1.6.x/server-swift/examples/teams/update-name.md +++ b/docs/examples/1.6.x/server-swift/examples/teams/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/teams/update-prefs.md b/docs/examples/1.6.x/server-swift/examples/teams/update-prefs.md index b86e93793e7..b8bb200b654 100644 --- a/docs/examples/1.6.x/server-swift/examples/teams/update-prefs.md +++ b/docs/examples/1.6.x/server-swift/examples/teams/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with diff --git a/docs/examples/1.6.x/server-swift/examples/users/create-argon2user.md b/docs/examples/1.6.x/server-swift/examples/users/create-argon2user.md index 6f584e47245..9b7477001d5 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/create-argon2user.md +++ b/docs/examples/1.6.x/server-swift/examples/users/create-argon2user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/create-bcrypt-user.md b/docs/examples/1.6.x/server-swift/examples/users/create-bcrypt-user.md index cd0960f354f..ad5a81fe342 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.6.x/server-swift/examples/users/create-bcrypt-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/create-j-w-t.md b/docs/examples/1.6.x/server-swift/examples/users/create-j-w-t.md index 77ef4da98f5..d61adfb9a70 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/create-j-w-t.md +++ b/docs/examples/1.6.x/server-swift/examples/users/create-j-w-t.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/create-m-d5user.md b/docs/examples/1.6.x/server-swift/examples/users/create-m-d5user.md index a305f6a744a..ffe7180c5e8 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/create-m-d5user.md +++ b/docs/examples/1.6.x/server-swift/examples/users/create-m-d5user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.6.x/server-swift/examples/users/create-mfa-recovery-codes.md index cb25d43cb1c..577a533fcb4 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-swift/examples/users/create-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/create-p-h-pass-user.md b/docs/examples/1.6.x/server-swift/examples/users/create-p-h-pass-user.md index 5a95af73e41..e1d8d3f3ef1 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.6.x/server-swift/examples/users/create-p-h-pass-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/create-s-h-a-user.md b/docs/examples/1.6.x/server-swift/examples/users/create-s-h-a-user.md index 70d6f284db6..ac42f2fe9d5 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.6.x/server-swift/examples/users/create-s-h-a-user.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/create-scrypt-modified-user.md b/docs/examples/1.6.x/server-swift/examples/users/create-scrypt-modified-user.md index 62709130e3b..d6c67f6f3df 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.6.x/server-swift/examples/users/create-scrypt-modified-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/create-scrypt-user.md b/docs/examples/1.6.x/server-swift/examples/users/create-scrypt-user.md index 41a086560da..16452c46064 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/create-scrypt-user.md +++ b/docs/examples/1.6.x/server-swift/examples/users/create-scrypt-user.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/create-session.md b/docs/examples/1.6.x/server-swift/examples/users/create-session.md index 764d4d87d69..cf6f67bd911 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/create-session.md +++ b/docs/examples/1.6.x/server-swift/examples/users/create-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/create-target.md b/docs/examples/1.6.x/server-swift/examples/users/create-target.md index f6bc443ea4e..e736afcf311 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/create-target.md +++ b/docs/examples/1.6.x/server-swift/examples/users/create-target.md @@ -2,7 +2,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/create-token.md b/docs/examples/1.6.x/server-swift/examples/users/create-token.md index 0d8c363537a..ca1767e1786 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/create-token.md +++ b/docs/examples/1.6.x/server-swift/examples/users/create-token.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/create.md b/docs/examples/1.6.x/server-swift/examples/users/create.md index 8c07a780b61..98b886005ba 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/create.md +++ b/docs/examples/1.6.x/server-swift/examples/users/create.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/delete-identity.md b/docs/examples/1.6.x/server-swift/examples/users/delete-identity.md index c5bf2b35266..bb3d812457e 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/delete-identity.md +++ b/docs/examples/1.6.x/server-swift/examples/users/delete-identity.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/delete-mfa-authenticator.md b/docs/examples/1.6.x/server-swift/examples/users/delete-mfa-authenticator.md index 902d0c904cd..da2b8e091a4 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.6.x/server-swift/examples/users/delete-mfa-authenticator.md @@ -2,13 +2,13 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) -let user = try await users.deleteMfaAuthenticator( +let result = try await users.deleteMfaAuthenticator( userId: "<USER_ID>", type: .totp ) diff --git a/docs/examples/1.6.x/server-swift/examples/users/delete-session.md b/docs/examples/1.6.x/server-swift/examples/users/delete-session.md index 3f191a2502a..c664e4f2baf 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/delete-session.md +++ b/docs/examples/1.6.x/server-swift/examples/users/delete-session.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/delete-sessions.md b/docs/examples/1.6.x/server-swift/examples/users/delete-sessions.md index 6c4e8bfc082..92ab9d77487 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/delete-sessions.md +++ b/docs/examples/1.6.x/server-swift/examples/users/delete-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/delete-target.md b/docs/examples/1.6.x/server-swift/examples/users/delete-target.md index 274bb60a8d3..1cce56657a9 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/delete-target.md +++ b/docs/examples/1.6.x/server-swift/examples/users/delete-target.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/delete.md b/docs/examples/1.6.x/server-swift/examples/users/delete.md index 2b28a98532c..8dfe648d6e4 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/delete.md +++ b/docs/examples/1.6.x/server-swift/examples/users/delete.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.6.x/server-swift/examples/users/get-mfa-recovery-codes.md index dc7f4711349..1ae285142f2 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-swift/examples/users/get-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/get-prefs.md b/docs/examples/1.6.x/server-swift/examples/users/get-prefs.md index aec033a96d7..c4ae61d9dd3 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/get-prefs.md +++ b/docs/examples/1.6.x/server-swift/examples/users/get-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/get-target.md b/docs/examples/1.6.x/server-swift/examples/users/get-target.md index d6753814c87..100c56398d6 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/get-target.md +++ b/docs/examples/1.6.x/server-swift/examples/users/get-target.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/get.md b/docs/examples/1.6.x/server-swift/examples/users/get.md index 095c84c8dc6..563042b8ef1 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/get.md +++ b/docs/examples/1.6.x/server-swift/examples/users/get.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/list-identities.md b/docs/examples/1.6.x/server-swift/examples/users/list-identities.md index b31890275ee..8cbe8a71f48 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/list-identities.md +++ b/docs/examples/1.6.x/server-swift/examples/users/list-identities.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/list-logs.md b/docs/examples/1.6.x/server-swift/examples/users/list-logs.md index 5e80043d793..80d9199c3e3 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/list-logs.md +++ b/docs/examples/1.6.x/server-swift/examples/users/list-logs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/list-memberships.md b/docs/examples/1.6.x/server-swift/examples/users/list-memberships.md index 5ca0152cd79..6f9999e2d97 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/list-memberships.md +++ b/docs/examples/1.6.x/server-swift/examples/users/list-memberships.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/list-mfa-factors.md b/docs/examples/1.6.x/server-swift/examples/users/list-mfa-factors.md index 4cf7d7ce6e6..a5b5e38e125 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/list-mfa-factors.md +++ b/docs/examples/1.6.x/server-swift/examples/users/list-mfa-factors.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/list-sessions.md b/docs/examples/1.6.x/server-swift/examples/users/list-sessions.md index 035716ed168..e0278279a4e 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/list-sessions.md +++ b/docs/examples/1.6.x/server-swift/examples/users/list-sessions.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/list-targets.md b/docs/examples/1.6.x/server-swift/examples/users/list-targets.md index 3ab651c6e70..b069781f701 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/list-targets.md +++ b/docs/examples/1.6.x/server-swift/examples/users/list-targets.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/list.md b/docs/examples/1.6.x/server-swift/examples/users/list.md index aaa619e202c..45ccf239613 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/list.md +++ b/docs/examples/1.6.x/server-swift/examples/users/list.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/update-email-verification.md b/docs/examples/1.6.x/server-swift/examples/users/update-email-verification.md index cd4b51b00af..e0de947fa26 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/update-email-verification.md +++ b/docs/examples/1.6.x/server-swift/examples/users/update-email-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/update-email.md b/docs/examples/1.6.x/server-swift/examples/users/update-email.md index 3a80ae5c5d3..4d3c1c2db21 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/update-email.md +++ b/docs/examples/1.6.x/server-swift/examples/users/update-email.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/update-labels.md b/docs/examples/1.6.x/server-swift/examples/users/update-labels.md index 5b3000df73a..8916996b1f5 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/update-labels.md +++ b/docs/examples/1.6.x/server-swift/examples/users/update-labels.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.6.x/server-swift/examples/users/update-mfa-recovery-codes.md index 528319c7aa7..a6169a782c2 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.6.x/server-swift/examples/users/update-mfa-recovery-codes.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/update-mfa.md b/docs/examples/1.6.x/server-swift/examples/users/update-mfa.md index 3fd25717689..ad010f36b88 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/update-mfa.md +++ b/docs/examples/1.6.x/server-swift/examples/users/update-mfa.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/update-name.md b/docs/examples/1.6.x/server-swift/examples/users/update-name.md index bf697be84ee..3735b706d8b 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/update-name.md +++ b/docs/examples/1.6.x/server-swift/examples/users/update-name.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/update-password.md b/docs/examples/1.6.x/server-swift/examples/users/update-password.md index 0f35cefc0a6..3a5b804478e 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/update-password.md +++ b/docs/examples/1.6.x/server-swift/examples/users/update-password.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/update-phone-verification.md b/docs/examples/1.6.x/server-swift/examples/users/update-phone-verification.md index 7f99390ff5f..fffd768f5d9 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/update-phone-verification.md +++ b/docs/examples/1.6.x/server-swift/examples/users/update-phone-verification.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/update-phone.md b/docs/examples/1.6.x/server-swift/examples/users/update-phone.md index 2097c452ff2..8411ad22a27 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/update-phone.md +++ b/docs/examples/1.6.x/server-swift/examples/users/update-phone.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/update-prefs.md b/docs/examples/1.6.x/server-swift/examples/users/update-prefs.md index d4818db4f2c..c71b712df39 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/update-prefs.md +++ b/docs/examples/1.6.x/server-swift/examples/users/update-prefs.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/update-status.md b/docs/examples/1.6.x/server-swift/examples/users/update-status.md index 2408d055665..43ecea44f61 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/update-status.md +++ b/docs/examples/1.6.x/server-swift/examples/users/update-status.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/examples/1.6.x/server-swift/examples/users/update-target.md b/docs/examples/1.6.x/server-swift/examples/users/update-target.md index bd3cc7c470f..579f0d282e4 100644 --- a/docs/examples/1.6.x/server-swift/examples/users/update-target.md +++ b/docs/examples/1.6.x/server-swift/examples/users/update-target.md @@ -1,7 +1,7 @@ import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key diff --git a/docs/references/account/create-push-target.md b/docs/references/account/create-push-target.md new file mode 100644 index 00000000000..c54f1806388 --- /dev/null +++ b/docs/references/account/create-push-target.md @@ -0,0 +1 @@ +Use this endpoint to register a device for push notifications. Provide a target ID (custom or generated using ID.unique()), a device identifier (usually a device token), and optionally specify which provider should send notifications to this target. The target is automatically linked to the current session and includes device information like brand and model. \ No newline at end of file diff --git a/docs/references/account/create-token-magic-url.md b/docs/references/account/create-token-magic-url.md index 6ebe4154b83..99ad6dba5e3 100644 --- a/docs/references/account/create-token-magic-url.md +++ b/docs/references/account/create-token-magic-url.md @@ -1,3 +1,3 @@ -Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. 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 [POST /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) 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. +Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. 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 [POST /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) endpoint to complete the login process. The link sent to the user's email address is valid for 1 hour. A user is limited to 10 active sessions at a time by default. [Learn more about session limits](https://appwrite.io/docs/authentication-security#limits). diff --git a/docs/references/account/delete-push-target.md b/docs/references/account/delete-push-target.md new file mode 100644 index 00000000000..5909a37b277 --- /dev/null +++ b/docs/references/account/delete-push-target.md @@ -0,0 +1 @@ +Delete a push notification target for the currently logged in user. After deletion, the device will no longer receive push notifications. The target must exist and belong to the current user. \ No newline at end of file diff --git a/docs/references/account/update-push-target.md b/docs/references/account/update-push-target.md new file mode 100644 index 00000000000..997ffaafea8 --- /dev/null +++ b/docs/references/account/update-push-target.md @@ -0,0 +1 @@ +Update the currently logged in user's push notification target. You can modify the target's identifier (device token) and provider ID (token, email, phone etc.). The target must exist and belong to the current user. If you change the provider ID, notifications will be sent through the new messaging provider instead. \ No newline at end of file diff --git a/docs/references/assistant/chat.md b/docs/references/assistant/chat.md new file mode 100644 index 00000000000..5297d1c195f --- /dev/null +++ b/docs/references/assistant/chat.md @@ -0,0 +1 @@ +Send a prompt to the AI assistant and receive a response. This endpoint allows you to interact with Appwrite's AI assistant by sending questions or prompts and receiving helpful responses in real-time through a server-sent events stream. \ No newline at end of file diff --git a/docs/references/databases/create-documents.md b/docs/references/databases/create-documents.md new file mode 100644 index 00000000000..a02d7c8bf1b --- /dev/null +++ b/docs/references/databases/create-documents.md @@ -0,0 +1 @@ +Create new Documents. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console. \ No newline at end of file diff --git a/docs/references/databases/delete-documents.md b/docs/references/databases/delete-documents.md new file mode 100644 index 00000000000..a7b05503de9 --- /dev/null +++ b/docs/references/databases/delete-documents.md @@ -0,0 +1 @@ +Bulk delete documents using queries, if no queries are passed then all documents are deleted. \ No newline at end of file diff --git a/docs/references/databases/get-collection-usage.md b/docs/references/databases/get-collection-usage.md new file mode 100644 index 00000000000..48682a075f5 --- /dev/null +++ b/docs/references/databases/get-collection-usage.md @@ -0,0 +1 @@ +Get usage metrics and statistics for a collection. Returning the total number of documents. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days. \ No newline at end of file diff --git a/docs/references/databases/get-database-usage.md b/docs/references/databases/get-database-usage.md new file mode 100644 index 00000000000..2c2628a464c --- /dev/null +++ b/docs/references/databases/get-database-usage.md @@ -0,0 +1 @@ +Get usage metrics and statistics for a database. You can view the total number of collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days. \ No newline at end of file diff --git a/docs/references/databases/get-usage.md b/docs/references/databases/get-usage.md new file mode 100644 index 00000000000..d41f8704c80 --- /dev/null +++ b/docs/references/databases/get-usage.md @@ -0,0 +1 @@ +Get usage metrics and statistics for all databases in the project. You can view the total number of databases, collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days. \ No newline at end of file diff --git a/docs/references/databases/update-documents.md b/docs/references/databases/update-documents.md new file mode 100644 index 00000000000..5f560c6435c --- /dev/null +++ b/docs/references/databases/update-documents.md @@ -0,0 +1 @@ +Update all documents that match your queries, if no queries are submitted then all documents are updated. You can pass only specific fields to be updated. \ No newline at end of file diff --git a/docs/references/databases/upsert-document.md b/docs/references/databases/upsert-document.md new file mode 100644 index 00000000000..a67694cfa6f --- /dev/null +++ b/docs/references/databases/upsert-document.md @@ -0,0 +1 @@ +Create or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console. \ No newline at end of file diff --git a/docs/references/databases/upsert-documents.md b/docs/references/databases/upsert-documents.md new file mode 100644 index 00000000000..f46254bd7b6 --- /dev/null +++ b/docs/references/databases/upsert-documents.md @@ -0,0 +1 @@ +Create or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console. diff --git a/docs/references/functions/create-build.md b/docs/references/functions/create-build.md new file mode 100644 index 00000000000..7a8ac750e83 --- /dev/null +++ b/docs/references/functions/create-build.md @@ -0,0 +1 @@ +Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build. \ No newline at end of file diff --git a/docs/references/functions/get-function-usage.md b/docs/references/functions/get-function-usage.md new file mode 100644 index 00000000000..4498abb05ba --- /dev/null +++ b/docs/references/functions/get-function-usage.md @@ -0,0 +1 @@ +Get usage metrics and statistics for a for a specific function. View statistics including total deployments, builds, executions, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days. \ No newline at end of file diff --git a/docs/references/functions/get-functions-usage.md b/docs/references/functions/get-functions-usage.md new file mode 100644 index 00000000000..14427d335d3 --- /dev/null +++ b/docs/references/functions/get-functions-usage.md @@ -0,0 +1 @@ +Get usage metrics and statistics for a for all functions. View statistics including total functions, deployments, builds, executions, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days. \ No newline at end of file diff --git a/docs/references/functions/update-deployment-build.md b/docs/references/functions/update-deployment-build.md new file mode 100644 index 00000000000..d047990adf1 --- /dev/null +++ b/docs/references/functions/update-deployment-build.md @@ -0,0 +1 @@ +Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn't started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status 'ready') or failed. The response includes the final build status and details. \ No newline at end of file diff --git a/docs/references/health/get-queue-stats-resources.md b/docs/references/health/get-queue-stats-resources.md new file mode 100644 index 00000000000..52213274670 --- /dev/null +++ b/docs/references/health/get-queue-stats-resources.md @@ -0,0 +1 @@ +Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue. \ No newline at end of file diff --git a/docs/references/health/get-queue-usage-dump.md b/docs/references/health/get-queue-stats-usage-dump.md similarity index 100% rename from docs/references/health/get-queue-usage-dump.md rename to docs/references/health/get-queue-stats-usage-dump.md diff --git a/docs/references/health/get-queue-usage.md b/docs/references/health/get-queue-stats-usage.md similarity index 100% rename from docs/references/health/get-queue-usage.md rename to docs/references/health/get-queue-stats-usage.md diff --git a/docs/references/messaging/update-email.md b/docs/references/messaging/update-email.md index 89f01d7a116..1f0d4b61a49 100644 --- a/docs/references/messaging/update-email.md +++ b/docs/references/messaging/update-email.md @@ -1 +1 @@ -Update an email message by its unique ID. +Update an email message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated. diff --git a/docs/references/messaging/update-push.md b/docs/references/messaging/update-push.md index dd200a97291..e84187116d1 100644 --- a/docs/references/messaging/update-push.md +++ b/docs/references/messaging/update-push.md @@ -1 +1 @@ -Update a push notification by its unique ID. +Update a push notification by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated. diff --git a/docs/references/messaging/update-sms.md b/docs/references/messaging/update-sms.md index 2f9b57a7a71..5a1cb3d67fd 100644 --- a/docs/references/messaging/update-sms.md +++ b/docs/references/messaging/update-sms.md @@ -1 +1 @@ -Update an SMS message by its unique ID. +Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated. diff --git a/docs/references/migrations/delete-migration.md b/docs/references/migrations/delete-migration.md new file mode 100644 index 00000000000..9d361ac6939 --- /dev/null +++ b/docs/references/migrations/delete-migration.md @@ -0,0 +1 @@ +Delete a migration by its unique ID. This endpoint allows you to remove a migration from your project's migration history. \ No newline at end of file diff --git a/docs/references/migrations/get-migration.md b/docs/references/migrations/get-migration.md new file mode 100644 index 00000000000..710bef68638 --- /dev/null +++ b/docs/references/migrations/get-migration.md @@ -0,0 +1 @@ +Get a migration by its unique ID. This endpoint returns detailed information about a specific migration including its current status, progress, and any errors that occurred during the migration process. \ No newline at end of file diff --git a/docs/references/migrations/list-migrations.md b/docs/references/migrations/list-migrations.md new file mode 100644 index 00000000000..b1acb3f7b35 --- /dev/null +++ b/docs/references/migrations/list-migrations.md @@ -0,0 +1 @@ +List all migrations in the current project. This endpoint returns a list of all migrations including their status, progress, and any errors that occurred during the migration process. \ No newline at end of file diff --git a/docs/references/migrations/migration-appwrite-report.md b/docs/references/migrations/migration-appwrite-report.md new file mode 100644 index 00000000000..69d556f5f3c --- /dev/null +++ b/docs/references/migrations/migration-appwrite-report.md @@ -0,0 +1 @@ +Generate a report of the data in an Appwrite project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated. \ No newline at end of file diff --git a/docs/references/migrations/migration-appwrite.md b/docs/references/migrations/migration-appwrite.md new file mode 100644 index 00000000000..12ee7423871 --- /dev/null +++ b/docs/references/migrations/migration-appwrite.md @@ -0,0 +1 @@ +Migrate data from another Appwrite project to your current project. This endpoint allows you to migrate resources like databases, collections, documents, users, and files from an existing Appwrite project. \ No newline at end of file diff --git a/docs/references/migrations/migration-firebase-report.md b/docs/references/migrations/migration-firebase-report.md new file mode 100644 index 00000000000..af27587331c --- /dev/null +++ b/docs/references/migrations/migration-firebase-report.md @@ -0,0 +1 @@ +Generate a report of the data in a Firebase project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated. \ No newline at end of file diff --git a/docs/references/migrations/migration-firebase.md b/docs/references/migrations/migration-firebase.md new file mode 100644 index 00000000000..3a7f620a7c7 --- /dev/null +++ b/docs/references/migrations/migration-firebase.md @@ -0,0 +1 @@ +Migrate data from a Firebase project to your Appwrite project. This endpoint allows you to migrate resources like authentication and other supported services from a Firebase project. \ No newline at end of file diff --git a/docs/references/migrations/migration-nhost-report.md b/docs/references/migrations/migration-nhost-report.md new file mode 100644 index 00000000000..895da514645 --- /dev/null +++ b/docs/references/migrations/migration-nhost-report.md @@ -0,0 +1 @@ +Generate a detailed report of the data in an NHost project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated. \ No newline at end of file diff --git a/docs/references/migrations/migration-nhost.md b/docs/references/migrations/migration-nhost.md new file mode 100644 index 00000000000..b7a727dd2b4 --- /dev/null +++ b/docs/references/migrations/migration-nhost.md @@ -0,0 +1 @@ +Migrate data from an NHost project to your Appwrite project. This endpoint allows you to migrate resources like authentication, databases, and other supported services from an NHost project. \ No newline at end of file diff --git a/docs/references/migrations/migration-supabase-report.md b/docs/references/migrations/migration-supabase-report.md new file mode 100644 index 00000000000..d9636b5f1da --- /dev/null +++ b/docs/references/migrations/migration-supabase-report.md @@ -0,0 +1 @@ +Generate a report of the data in a Supabase project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated. \ No newline at end of file diff --git a/docs/references/migrations/migration-supabase.md b/docs/references/migrations/migration-supabase.md new file mode 100644 index 00000000000..34bbb1eecee --- /dev/null +++ b/docs/references/migrations/migration-supabase.md @@ -0,0 +1 @@ +Migrate data from a Supabase project to your Appwrite project. This endpoint allows you to migrate resources like authentication, databases, and other supported services from a Supabase project. \ No newline at end of file diff --git a/docs/references/migrations/retry-migration.md b/docs/references/migrations/retry-migration.md new file mode 100644 index 00000000000..49b80ad6d42 --- /dev/null +++ b/docs/references/migrations/retry-migration.md @@ -0,0 +1 @@ +Retry a failed migration. This endpoint allows you to retry a migration that has previously failed. \ No newline at end of file diff --git a/docs/references/project/get-usage.md b/docs/references/project/get-usage.md new file mode 100644 index 00000000000..d6802c5588f --- /dev/null +++ b/docs/references/project/get-usage.md @@ -0,0 +1 @@ +Get comprehensive usage statistics for your project. View metrics including network requests, bandwidth, storage, function executions, database usage, and user activity. Specify a time range with startDate and endDate, and optionally set the data granularity with period (1h or 1d). The response includes both total counts and detailed breakdowns by resource, along with historical data over the specified period. \ No newline at end of file diff --git a/docs/references/projects/create-jwt.md b/docs/references/projects/create-jwt.md new file mode 100644 index 00000000000..9a6f8ebf6ba --- /dev/null +++ b/docs/references/projects/create-jwt.md @@ -0,0 +1 @@ +Create a new JWT token. This token can be used to authenticate users with custom scopes and expiration time. \ No newline at end of file diff --git a/docs/references/projects/create-key.md b/docs/references/projects/create-key.md new file mode 100644 index 00000000000..d6633d936d2 --- /dev/null +++ b/docs/references/projects/create-key.md @@ -0,0 +1 @@ +Create a new API key. It's recommended to have multiple API keys with strict scopes for separate functions within your project. \ No newline at end of file diff --git a/docs/references/projects/create-platform.md b/docs/references/projects/create-platform.md new file mode 100644 index 00000000000..b5d8be0ff9e --- /dev/null +++ b/docs/references/projects/create-platform.md @@ -0,0 +1 @@ +Create a new platform for your project. Use this endpoint to register a new platform where your users will run your application which will interact with the Appwrite API. \ No newline at end of file diff --git a/docs/references/projects/create-smtp-test.md b/docs/references/projects/create-smtp-test.md new file mode 100644 index 00000000000..63cea9d21f6 --- /dev/null +++ b/docs/references/projects/create-smtp-test.md @@ -0,0 +1 @@ +Send a test email to verify SMTP configuration. \ No newline at end of file diff --git a/docs/references/projects/create-webhook.md b/docs/references/projects/create-webhook.md new file mode 100644 index 00000000000..cd0e93332ba --- /dev/null +++ b/docs/references/projects/create-webhook.md @@ -0,0 +1 @@ +Create a new webhook. Use this endpoint to configure a URL that will receive events from Appwrite when specific events occur. \ No newline at end of file diff --git a/docs/references/projects/create.md b/docs/references/projects/create.md new file mode 100644 index 00000000000..d502c269ef4 --- /dev/null +++ b/docs/references/projects/create.md @@ -0,0 +1 @@ +Create a new project. You can create a maximum of 100 projects per account. \ No newline at end of file diff --git a/docs/references/projects/delete-email-template.md b/docs/references/projects/delete-email-template.md new file mode 100644 index 00000000000..332b1d61176 --- /dev/null +++ b/docs/references/projects/delete-email-template.md @@ -0,0 +1 @@ +Reset a custom email template to its default value. This endpoint removes any custom content and restores the template to its original state. \ No newline at end of file diff --git a/docs/references/projects/delete-key.md b/docs/references/projects/delete-key.md new file mode 100644 index 00000000000..9f3774b419b --- /dev/null +++ b/docs/references/projects/delete-key.md @@ -0,0 +1 @@ +Delete a key by its unique ID. Once deleted, the key can no longer be used to authenticate API calls. \ No newline at end of file diff --git a/docs/references/projects/delete-platform.md b/docs/references/projects/delete-platform.md new file mode 100644 index 00000000000..7d538cac26d --- /dev/null +++ b/docs/references/projects/delete-platform.md @@ -0,0 +1 @@ +Delete a platform by its unique ID. This endpoint removes the platform and all its configurations from the project. \ No newline at end of file diff --git a/docs/references/projects/delete-sms-template.md b/docs/references/projects/delete-sms-template.md new file mode 100644 index 00000000000..c5a7e6cac9c --- /dev/null +++ b/docs/references/projects/delete-sms-template.md @@ -0,0 +1 @@ +Reset a custom SMS template to its default value. This endpoint removes any custom message and restores the template to its original state. \ No newline at end of file diff --git a/docs/references/projects/delete-webhook.md b/docs/references/projects/delete-webhook.md new file mode 100644 index 00000000000..74fee2bceca --- /dev/null +++ b/docs/references/projects/delete-webhook.md @@ -0,0 +1 @@ +Delete a webhook by its unique ID. Once deleted, the webhook will no longer receive project events. \ No newline at end of file diff --git a/docs/references/projects/delete.md b/docs/references/projects/delete.md new file mode 100644 index 00000000000..4a8070c082d --- /dev/null +++ b/docs/references/projects/delete.md @@ -0,0 +1 @@ +Delete a project by its unique ID. \ No newline at end of file diff --git a/docs/references/projects/get-email-template.md b/docs/references/projects/get-email-template.md new file mode 100644 index 00000000000..6119a0a183e --- /dev/null +++ b/docs/references/projects/get-email-template.md @@ -0,0 +1 @@ +Get a custom email template for the specified locale and type. This endpoint returns the template content, subject, and other configuration details. \ No newline at end of file diff --git a/docs/references/projects/get-key.md b/docs/references/projects/get-key.md new file mode 100644 index 00000000000..bd6351f420d --- /dev/null +++ b/docs/references/projects/get-key.md @@ -0,0 +1 @@ +Get a key by its unique ID. This endpoint returns details about a specific API key in your project including it's scopes. \ No newline at end of file diff --git a/docs/references/projects/get-platform.md b/docs/references/projects/get-platform.md new file mode 100644 index 00000000000..87129b829de --- /dev/null +++ b/docs/references/projects/get-platform.md @@ -0,0 +1 @@ +Get a platform by its unique ID. This endpoint returns the platform's details, including its name, type, and key configurations. \ No newline at end of file diff --git a/docs/references/projects/get-sms-template.md b/docs/references/projects/get-sms-template.md new file mode 100644 index 00000000000..6ef1d930295 --- /dev/null +++ b/docs/references/projects/get-sms-template.md @@ -0,0 +1 @@ +Get a custom SMS template for the specified locale and type returning it's contents. \ No newline at end of file diff --git a/docs/references/projects/get-webhook.md b/docs/references/projects/get-webhook.md new file mode 100644 index 00000000000..559c73c7486 --- /dev/null +++ b/docs/references/projects/get-webhook.md @@ -0,0 +1 @@ +Get a webhook by its unique ID. This endpoint returns details about a specific webhook configured for a project. \ No newline at end of file diff --git a/docs/references/projects/get.md b/docs/references/projects/get.md new file mode 100644 index 00000000000..b7a1165adc0 --- /dev/null +++ b/docs/references/projects/get.md @@ -0,0 +1 @@ +Get a project by its unique ID. This endpoint allows you to retrieve the project's details, including its name, description, team, region, and other metadata. \ No newline at end of file diff --git a/docs/references/projects/list-keys.md b/docs/references/projects/list-keys.md new file mode 100644 index 00000000000..a7b701b0d7f --- /dev/null +++ b/docs/references/projects/list-keys.md @@ -0,0 +1 @@ +Get a list of all API keys from the current project. \ No newline at end of file diff --git a/docs/references/projects/list-platforms.md b/docs/references/projects/list-platforms.md new file mode 100644 index 00000000000..ed9ade08526 --- /dev/null +++ b/docs/references/projects/list-platforms.md @@ -0,0 +1 @@ +Get a list of all platforms in the project. This endpoint returns an array of all platforms and their configurations. \ No newline at end of file diff --git a/docs/references/projects/list-webhooks.md b/docs/references/projects/list-webhooks.md new file mode 100644 index 00000000000..bbbf4c73765 --- /dev/null +++ b/docs/references/projects/list-webhooks.md @@ -0,0 +1 @@ +Get a list of all webhooks belonging to the project. You can use the query params to filter your results. \ No newline at end of file diff --git a/docs/references/projects/list.md b/docs/references/projects/list.md new file mode 100644 index 00000000000..576a4b79ae0 --- /dev/null +++ b/docs/references/projects/list.md @@ -0,0 +1 @@ +Get a list of all projects. You can use the query params to filter your results. \ No newline at end of file diff --git a/docs/references/projects/update-api-status-all.md b/docs/references/projects/update-api-status-all.md new file mode 100644 index 00000000000..654070759fa --- /dev/null +++ b/docs/references/projects/update-api-status-all.md @@ -0,0 +1 @@ +Update the status of all API types. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime all at once. \ No newline at end of file diff --git a/docs/references/projects/update-api-status.md b/docs/references/projects/update-api-status.md new file mode 100644 index 00000000000..af10a0d4f42 --- /dev/null +++ b/docs/references/projects/update-api-status.md @@ -0,0 +1 @@ +Update the status of a specific API type. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime. \ No newline at end of file diff --git a/docs/references/projects/update-auth-duration.md b/docs/references/projects/update-auth-duration.md new file mode 100644 index 00000000000..bdc75fa6f0a --- /dev/null +++ b/docs/references/projects/update-auth-duration.md @@ -0,0 +1 @@ +Update how long sessions created within a project should stay active for. \ No newline at end of file diff --git a/docs/references/projects/update-auth-limit.md b/docs/references/projects/update-auth-limit.md new file mode 100644 index 00000000000..c8faa3fe37e --- /dev/null +++ b/docs/references/projects/update-auth-limit.md @@ -0,0 +1 @@ +Update the maximum number of users allowed in this project. Set to 0 for unlimited users. \ No newline at end of file diff --git a/docs/references/projects/update-auth-password-dictionary.md b/docs/references/projects/update-auth-password-dictionary.md new file mode 100644 index 00000000000..1d47d30bb57 --- /dev/null +++ b/docs/references/projects/update-auth-password-dictionary.md @@ -0,0 +1 @@ +Enable or disable checking user passwords against common passwords dictionary. This helps ensure users don't use common and insecure passwords. \ No newline at end of file diff --git a/docs/references/projects/update-auth-password-history.md b/docs/references/projects/update-auth-password-history.md new file mode 100644 index 00000000000..3a892915d5f --- /dev/null +++ b/docs/references/projects/update-auth-password-history.md @@ -0,0 +1 @@ +Update the authentication password history requirement. Use this endpoint to require new passwords to be different than the last X amount of previously used ones. \ No newline at end of file diff --git a/docs/references/projects/update-auth-sessions-limit.md b/docs/references/projects/update-auth-sessions-limit.md new file mode 100644 index 00000000000..7d5fdffae7a --- /dev/null +++ b/docs/references/projects/update-auth-sessions-limit.md @@ -0,0 +1 @@ +Update the maximum number of sessions allowed per user within the project, if the limit is hit the oldest session will be deleted to make room for new sessions. \ No newline at end of file diff --git a/docs/references/projects/update-auth-status.md b/docs/references/projects/update-auth-status.md new file mode 100644 index 00000000000..5d39ec29c4d --- /dev/null +++ b/docs/references/projects/update-auth-status.md @@ -0,0 +1 @@ +Update the status of a specific authentication method. Use this endpoint to enable or disable different authentication methods such as email, magic urls or sms in your project. \ No newline at end of file diff --git a/docs/references/projects/update-email-template.md b/docs/references/projects/update-email-template.md new file mode 100644 index 00000000000..d2bf124541d --- /dev/null +++ b/docs/references/projects/update-email-template.md @@ -0,0 +1 @@ +Update a custom email template for the specified locale and type. Use this endpoint to modify the content of your email templates. \ No newline at end of file diff --git a/docs/references/projects/update-key.md b/docs/references/projects/update-key.md new file mode 100644 index 00000000000..4934a514972 --- /dev/null +++ b/docs/references/projects/update-key.md @@ -0,0 +1 @@ +Update a key by its unique ID. Use this endpoint to update the name, scopes, or expiration time of an API key. \ No newline at end of file diff --git a/docs/references/projects/update-memberships-privacy.md b/docs/references/projects/update-memberships-privacy.md new file mode 100644 index 00000000000..a1affc1166c --- /dev/null +++ b/docs/references/projects/update-memberships-privacy.md @@ -0,0 +1 @@ +Update project membership privacy settings. Use this endpoint to control what user information is visible to other team members, such as user name, email, and MFA status. \ No newline at end of file diff --git a/docs/references/projects/update-mock-numbers.md b/docs/references/projects/update-mock-numbers.md new file mode 100644 index 00000000000..7fa92455c16 --- /dev/null +++ b/docs/references/projects/update-mock-numbers.md @@ -0,0 +1 @@ +Update the list of mock phone numbers for testing. Use these numbers to bypass SMS verification in development. \ No newline at end of file diff --git a/docs/references/projects/update-oauth2.md b/docs/references/projects/update-oauth2.md new file mode 100644 index 00000000000..2285135991b --- /dev/null +++ b/docs/references/projects/update-oauth2.md @@ -0,0 +1 @@ +Update the OAuth2 provider configurations. Use this endpoint to set up or update the OAuth2 provider credentials or enable/disable providers. \ No newline at end of file diff --git a/docs/references/projects/update-personal-data-check.md b/docs/references/projects/update-personal-data-check.md new file mode 100644 index 00000000000..42847fdbfc5 --- /dev/null +++ b/docs/references/projects/update-personal-data-check.md @@ -0,0 +1 @@ +Enable or disable checking user passwords against their personal data. This helps prevent users from using personal information in their passwords. \ No newline at end of file diff --git a/docs/references/projects/update-platform.md b/docs/references/projects/update-platform.md new file mode 100644 index 00000000000..d04b07bafd3 --- /dev/null +++ b/docs/references/projects/update-platform.md @@ -0,0 +1 @@ +Update a platform by its unique ID. Use this endpoint to update the platform's name, key, platform store ID, or hostname. \ No newline at end of file diff --git a/docs/references/projects/update-service-status-all.md b/docs/references/projects/update-service-status-all.md new file mode 100644 index 00000000000..f05e7d8c5c2 --- /dev/null +++ b/docs/references/projects/update-service-status-all.md @@ -0,0 +1 @@ +Update the status of all services. Use this endpoint to enable or disable all optional services at once. \ No newline at end of file diff --git a/docs/references/projects/update-service-status.md b/docs/references/projects/update-service-status.md new file mode 100644 index 00000000000..9d3b0743a86 --- /dev/null +++ b/docs/references/projects/update-service-status.md @@ -0,0 +1 @@ +Update the status of a specific service. Use this endpoint to enable or disable a service in your project. \ No newline at end of file diff --git a/docs/references/projects/update-session-alerts.md b/docs/references/projects/update-session-alerts.md new file mode 100644 index 00000000000..36859e0c1ed --- /dev/null +++ b/docs/references/projects/update-session-alerts.md @@ -0,0 +1 @@ +Enable or disable session email alerts. When enabled, users will receive email notifications when new sessions are created. \ No newline at end of file diff --git a/docs/references/projects/update-sms-template.md b/docs/references/projects/update-sms-template.md new file mode 100644 index 00000000000..3e67f613b76 --- /dev/null +++ b/docs/references/projects/update-sms-template.md @@ -0,0 +1 @@ +Update a custom SMS template for the specified locale and type. Use this endpoint to modify the content of your SMS templates. \ No newline at end of file diff --git a/docs/references/projects/update-smtp.md b/docs/references/projects/update-smtp.md new file mode 100644 index 00000000000..7d898e1ed1c --- /dev/null +++ b/docs/references/projects/update-smtp.md @@ -0,0 +1 @@ +Update the SMTP configuration for your project. Use this endpoint to configure your project's SMTP provider with your custom settings for sending transactional emails. \ No newline at end of file diff --git a/docs/references/projects/update-team.md b/docs/references/projects/update-team.md new file mode 100644 index 00000000000..fb02eda88c4 --- /dev/null +++ b/docs/references/projects/update-team.md @@ -0,0 +1 @@ +Update the team ID of a project allowing for it to be transferred to another team. \ No newline at end of file diff --git a/docs/references/projects/update-webhook-signature.md b/docs/references/projects/update-webhook-signature.md new file mode 100644 index 00000000000..8525a057770 --- /dev/null +++ b/docs/references/projects/update-webhook-signature.md @@ -0,0 +1 @@ +Update the webhook signature key. This endpoint can be used to regenerate the signature key used to sign and validate payload deliveries for a specific webhook. \ No newline at end of file diff --git a/docs/references/projects/update-webhook.md b/docs/references/projects/update-webhook.md new file mode 100644 index 00000000000..745e4aebe16 --- /dev/null +++ b/docs/references/projects/update-webhook.md @@ -0,0 +1 @@ +Update a webhook by its unique ID. Use this endpoint to update the URL, events, or status of an existing webhook. \ No newline at end of file diff --git a/docs/references/projects/update.md b/docs/references/projects/update.md new file mode 100644 index 00000000000..60c072c477c --- /dev/null +++ b/docs/references/projects/update.md @@ -0,0 +1 @@ +Update a project by its unique ID. \ No newline at end of file diff --git a/docs/references/proxy/update-rule-verification.md b/docs/references/proxy/update-rule-verification.md new file mode 100644 index 00000000000..c06994bc598 --- /dev/null +++ b/docs/references/proxy/update-rule-verification.md @@ -0,0 +1 @@ +Retry getting verification process of a proxy rule. This endpoint triggers domain verification by checking DNS records (CNAME) against the configured target domain. If verification is successful, a TLS certificate will be automatically provisioned for the domain. \ No newline at end of file diff --git a/docs/references/storage/get-bucket-usage.md b/docs/references/storage/get-bucket-usage.md new file mode 100644 index 00000000000..98e98678317 --- /dev/null +++ b/docs/references/storage/get-bucket-usage.md @@ -0,0 +1 @@ +Get usage metrics and statistics a specific bucket in the project. You can view the total number of files, storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days. diff --git a/docs/references/storage/get-usage.md b/docs/references/storage/get-usage.md new file mode 100644 index 00000000000..697c6800011 --- /dev/null +++ b/docs/references/storage/get-usage.md @@ -0,0 +1 @@ +Get usage metrics and statistics for all buckets in the project. You can view the total number of buckets, files, storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days. diff --git a/docs/references/teams/get-team-member.md b/docs/references/teams/get-team-member.md index fab52c1a750..91bf44c73ba 100644 --- a/docs/references/teams/get-team-member.md +++ b/docs/references/teams/get-team-member.md @@ -1 +1 @@ -Get a team member by the membership unique id. All team members have read access for this resource. \ No newline at end of file +Get a team member by the membership unique id. All team members have read access for this resource. Hide sensitive attributes from the response by toggling membership privacy in the Console. \ No newline at end of file diff --git a/docs/references/teams/list-team-members.md b/docs/references/teams/list-team-members.md index d7dd04977fe..540a665d98a 100644 --- a/docs/references/teams/list-team-members.md +++ b/docs/references/teams/list-team-members.md @@ -1 +1 @@ -Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint. \ No newline at end of file +Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint. Hide sensitive attributes from the response by toggling membership privacy in the Console. \ No newline at end of file diff --git a/docs/references/users/get-usage.md b/docs/references/users/get-usage.md new file mode 100644 index 00000000000..2a9379c847a --- /dev/null +++ b/docs/references/users/get-usage.md @@ -0,0 +1 @@ +Get usage metrics and statistics for all users in the project. You can view the total number of users and sessions. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days. diff --git a/docs/references/vcs/create-github-installation.md b/docs/references/vcs/create-github-installation.md new file mode 100644 index 00000000000..60873faf6dc --- /dev/null +++ b/docs/references/vcs/create-github-installation.md @@ -0,0 +1 @@ +Begin Appwrite's GitHub's app installation to set up version control integration. This endpoint responds with a redirect URL to the GitHub App's installation page. The GitHub App must be configured in your environment for this endpoint to work. \ No newline at end of file diff --git a/docs/references/vcs/create-repository-detection.md b/docs/references/vcs/create-repository-detection.md new file mode 100644 index 00000000000..d031cdc746f --- /dev/null +++ b/docs/references/vcs/create-repository-detection.md @@ -0,0 +1 @@ +Analyze a GitHub repository to automatically detect the programming language and runtime environment. This endpoint scans the repository's files and language statistics to determine the appropriate runtime settings for your function. The GitHub installation must be properly configured and the repository must be accessible through your installation for this endpoint to work. \ No newline at end of file diff --git a/docs/references/vcs/create-repository.md b/docs/references/vcs/create-repository.md new file mode 100644 index 00000000000..771265bd01a --- /dev/null +++ b/docs/references/vcs/create-repository.md @@ -0,0 +1 @@ +Create a new GitHub repository through your installation. This endpoint allows you to create either a public or private repository by specifying a name and visibility setting. The repository will be created under your GitHub user account or organization, depending on your installation type. The GitHub installation must be properly configured and have the necessary permissions for repository creation. \ No newline at end of file diff --git a/docs/references/vcs/delete-installation.md b/docs/references/vcs/delete-installation.md new file mode 100644 index 00000000000..1f07de364d5 --- /dev/null +++ b/docs/references/vcs/delete-installation.md @@ -0,0 +1 @@ +Delete a VCS installation by its unique ID. This endpoint removes the installation and all its associated repositories from the project. \ No newline at end of file diff --git a/docs/references/vcs/get-installation.md b/docs/references/vcs/get-installation.md new file mode 100644 index 00000000000..0679d9a0e99 --- /dev/null +++ b/docs/references/vcs/get-installation.md @@ -0,0 +1 @@ +Get a VCS installation by its unique ID. This endpoint returns the installation's details including its provider, organization, and configuration. \ No newline at end of file diff --git a/docs/references/vcs/get-repository-contents.md b/docs/references/vcs/get-repository-contents.md new file mode 100644 index 00000000000..ab5ef7f8da1 --- /dev/null +++ b/docs/references/vcs/get-repository-contents.md @@ -0,0 +1 @@ +Get a list of files and directories from a GitHub repository connected to your project. This endpoint returns the contents of a specified repository path, including file names, sizes, and whether each item is a file or directory. The GitHub installation must be properly configured and the repository must be accessible through your installation for this endpoint to work. diff --git a/docs/references/vcs/get-repository.md b/docs/references/vcs/get-repository.md new file mode 100644 index 00000000000..ee57861114e --- /dev/null +++ b/docs/references/vcs/get-repository.md @@ -0,0 +1 @@ +Get detailed information about a specific GitHub repository from your installation. This endpoint returns repository details including its ID, name, visibility status, organization, and latest push date. The GitHub installation must be properly configured and have access to the requested repository for this endpoint to work. \ No newline at end of file diff --git a/docs/references/vcs/list-installations.md b/docs/references/vcs/list-installations.md new file mode 100644 index 00000000000..e77daf7db05 --- /dev/null +++ b/docs/references/vcs/list-installations.md @@ -0,0 +1 @@ +List all VCS installations configured for the current project. This endpoint returns a list of installations including their provider, organization, and other configuration details. diff --git a/docs/references/vcs/list-repositories.md b/docs/references/vcs/list-repositories.md new file mode 100644 index 00000000000..f486e9b5847 --- /dev/null +++ b/docs/references/vcs/list-repositories.md @@ -0,0 +1 @@ +Get a list of GitHub repositories available through your installation. This endpoint returns repositories with their basic information, detected runtime environments, and latest push dates. You can optionally filter repositories using a search term. Each repository's runtime is automatically detected based on its contents and language statistics. The GitHub installation must be properly configured for this endpoint to work. \ No newline at end of file diff --git a/docs/references/vcs/list-repository-branches.md b/docs/references/vcs/list-repository-branches.md new file mode 100644 index 00000000000..eea1795a3ec --- /dev/null +++ b/docs/references/vcs/list-repository-branches.md @@ -0,0 +1 @@ +Get a list of all branches from a GitHub repository in your installation. This endpoint returns the names of all branches in the repository and their total count. The GitHub installation must be properly configured and have access to the requested repository for this endpoint to work. diff --git a/docs/references/vcs/update-external-deployments.md b/docs/references/vcs/update-external-deployments.md new file mode 100644 index 00000000000..22d95da9a7d --- /dev/null +++ b/docs/references/vcs/update-external-deployments.md @@ -0,0 +1 @@ +Authorize and create deployments for a GitHub pull request in your project. This endpoint allows external contributions by creating deployments from pull requests, enabling preview environments for code review. The pull request must be open and not previously authorized. The GitHub installation must be properly configured and have access to both the repository and pull request for this endpoint to work. \ No newline at end of file diff --git a/docs/sdks/cli/GETTING_STARTED.md b/docs/sdks/cli/GETTING_STARTED.md index 564fb4d5f99..1cadb1bbda6 100644 --- a/docs/sdks/cli/GETTING_STARTED.md +++ b/docs/sdks/cli/GETTING_STARTED.md @@ -59,7 +59,7 @@ My Awesome Function You can now deploy this function using ```sh -$ appwrite deploy function +$ appwrite push function ? Which functions would you like to deploy? My Awesome Function (61d1a4c81dfcd95bc834) ℹ Info Deploying function My Awesome Function ( 61d1a4c81dfcd95bc834 ) @@ -73,7 +73,7 @@ Your function has now been deployed on your Appwrite server! As soon as the buil Similarly, you can deploy all your collections to your Appwrite server using ```sh -appwrite deploy collections +appwrite push collections ``` > ### Note @@ -98,7 +98,7 @@ $ appwrite users list To create a document you can use the following command ```sh -$ appwrite database createDocument --collectionId <ID> --documentId 'unique()' --data '{ "Name": "Iron Man" }' --permissions 'read("any")' 'read("team:abc")' +$ appwrite databases create-document --database-id <DATABASE_ID> --collection-id <COLLECTION_ID> --document-id "unique()" --data '{"name": "Walter O Brein"}' --permissions 'read("any")' 'read("team:abc")' ``` ### Some Gotchas @@ -140,4 +140,4 @@ The Appwrite CLI can also work in a CI environment. The initialisation of the CL ```sh appwrite client --endpoint http://localhost/v1 --projectId <PROJECT_ID> --key <API KEY> -``` \ No newline at end of file +``` diff --git a/docs/sdks/dart/CHANGELOG.md b/docs/sdks/dart/CHANGELOG.md index a46f1dcf0fc..c41413b9ec7 100644 --- a/docs/sdks/dart/CHANGELOG.md +++ b/docs/sdks/dart/CHANGELOG.md @@ -1,3 +1,15 @@ +## 14.0.0 + +* Breaking changes: + * Changed the typing of `AppwriteException`'s response parameter from a `dynamic` object to an optional string (`?String`). + +## 13.0.0 + +* Fixed realtime pong response. +* Fixed issues with `chunkedUpload` method. +* Fixed type mismatch bug where `List<dynamic>` was incorrectly causing runtime type errors. +* Updated return type of `updateMfaChallenge()` from raw data to properly typed `models.Session` object. + ## 12.0.0 * Support for Appwrite 1.6 diff --git a/docs/sdks/dotnet/GETTING_STARTED.md b/docs/sdks/dotnet/GETTING_STARTED.md index ae1f692e0c3..5a2343dc92d 100644 --- a/docs/sdks/dotnet/GETTING_STARTED.md +++ b/docs/sdks/dotnet/GETTING_STARTED.md @@ -9,7 +9,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndpoint("http://cloud.appwrite.io/v1") + .SetEndpoint("http://<REGION>.cloud.appwrite.io/v1") .SetProject("5ff3379a01d25") // Your project ID .SetKey("cd868db89"); // Your secret API key diff --git a/docs/sdks/flutter/CHANGELOG.md b/docs/sdks/flutter/CHANGELOG.md index abb8967f84e..357b9ff0653 100644 --- a/docs/sdks/flutter/CHANGELOG.md +++ b/docs/sdks/flutter/CHANGELOG.md @@ -1,3 +1,25 @@ +## 15.0.2 + +* Avoid setting empty `User-Agent` header and only encode it when present. +* Update doc examples to use new multi-region endpoint: `https://<REGION>.cloud.appwrite.io/v1`. + +## 15.0.1 + +* Removed `Content-Type` header from GET and HEAD requests. +* Add validation for setting endpoint in `setEndpoint` and `setEndPointRealtime` methods. +* Include Figma in list of available OAuth providers. + +## 15.0.0 + +* Encode `User-Agent` header to fix invalid HTTP header field value error. +* Breaking changes: + * Changed the typing of `AppwriteException`'s response parameter from a `dynamic` object to an optional string (`?String`). + +## 14.0.0 + +* Fixed realtime pong response. +* Fixed issues with `chunkedUpload` method. + ## 13.0.0 * Fixed realtime reconnection issues diff --git a/docs/sdks/react-native/CHANGELOG.md b/docs/sdks/react-native/CHANGELOG.md index 21fbe5456cc..f720e11ac6a 100644 --- a/docs/sdks/react-native/CHANGELOG.md +++ b/docs/sdks/react-native/CHANGELOG.md @@ -1 +1,6 @@ -# Change log \ No newline at end of file +# Change log + +## 0.7.4 + +* Upgrade dependencies to resolve PlatformConstants error with Expo 53 +* Update doc examples to use new multi-region endpoint \ No newline at end of file diff --git a/docs/tutorials/add-oauth2-provider.md b/docs/tutorials/add-oauth2-provider.md index ab33f70cb2a..da5f514919c 100644 --- a/docs/tutorials/add-oauth2-provider.md +++ b/docs/tutorials/add-oauth2-provider.md @@ -175,9 +175,9 @@ Please mention in your documentation what resources or API docs you used to impl ## 3. Test your provider -After you finished adding your new provider to Appwrite, you should be able to see it in your Appwrite console. Navigate to 'Project > Users > Providers' and check your new provider's settings form. +After you finish adding your new provider to Appwrite, you should be able to see it in your Appwrite console. Navigate to 'Project > Users > Providers' and check your new provider's settings form. -> To start Appwrite console from the source code, you can simply run `docker compose up -d'. +> To start the Appwrite console from the source code, you can simply run `docker compose up -d'. Add credentials and check both a successful and a failed login (where the user denies integration on the provider page). diff --git a/docs/tutorials/add-route.md b/docs/tutorials/add-route.md index ac6fd40bdb8..53926f7002d 100644 --- a/docs/tutorials/add-route.md +++ b/docs/tutorials/add-route.md @@ -85,13 +85,19 @@ App::post('/v1/account/create') ```php App::post('/v1/account/jwt') - ->label('sdk.auth', [APP_AUTH_TYPE_SESSION]) - ->label('sdk.namespace', 'account') - ->label('sdk.method', 'createJWT') - ->label('sdk.description', '/docs/references/account/create-jwt.md') - ->label('sdk.response.code', Response::STATUS_CODE_CREATED) - ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) - ->label('sdk.response.model', Response::MODEL_JWT) + ->label('sdk', new Method( + namespace: 'account', + name: 'createJWT', + description: '/docs/references/account/create-jwt.md', + auth: [], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_CREATED, + model: Response::MODEL_JWT, + ) + ], + responseType: ResponseType::JSON, + )) ``` #### Cache diff --git a/phpunit.xml b/phpunit.xml index 90ebd4225fc..598b7309083 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -6,7 +6,7 @@ convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" - stopOnFailure="false" + stopOnFailure="true" > <extensions> <extension class="Appwrite\Tests\TestHook" /> @@ -33,6 +33,7 @@ <directory>./tests/e2e/Services/Storage</directory> <directory>./tests/e2e/Services/Webhooks</directory> <directory>./tests/e2e/Services/Messaging</directory> + <directory>./tests/e2e/Services/Migrations</directory> <file>./tests/e2e/Services/Functions/FunctionsBase.php</file> <file>./tests/e2e/Services/Functions/FunctionsCustomServerTest.php</file> <file>./tests/e2e/Services/Functions/FunctionsCustomClientTest.php</file> diff --git a/public/images/integrations/aws-logo.svg b/public/images/integrations/aws-logo.svg new file mode 100644 index 00000000000..3ab41cde073 --- /dev/null +++ b/public/images/integrations/aws-logo.svg @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Generator: Adobe Illustrator 19.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> +<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" + viewBox="0 0 304 182" style="enable-background:new 0 0 304 182;" xml:space="preserve"> +<style type="text/css"> + .st0{fill:#252F3E;} + .st1{fill-rule:evenodd;clip-rule:evenodd;fill:#FF9900;} +</style> + <g> + <path class="st0" d="M86.4,66.4c0,3.7,0.4,6.7,1.1,8.9c0.8,2.2,1.8,4.6,3.2,7.2c0.5,0.8,0.7,1.6,0.7,2.3c0,1-0.6,2-1.9,3l-6.3,4.2 + c-0.9,0.6-1.8,0.9-2.6,0.9c-1,0-2-0.5-3-1.4C76.2,90,75,88.4,74,86.8c-1-1.7-2-3.6-3.1-5.9c-7.8,9.2-17.6,13.8-29.4,13.8 + c-8.4,0-15.1-2.4-20-7.2c-4.9-4.8-7.4-11.2-7.4-19.2c0-8.5,3-15.4,9.1-20.6c6.1-5.2,14.2-7.8,24.5-7.8c3.4,0,6.9,0.3,10.6,0.8 + c3.7,0.5,7.5,1.3,11.5,2.2v-7.3c0-7.6-1.6-12.9-4.7-16c-3.2-3.1-8.6-4.6-16.3-4.6c-3.5,0-7.1,0.4-10.8,1.3c-3.7,0.9-7.3,2-10.8,3.4 + c-1.6,0.7-2.8,1.1-3.5,1.3c-0.7,0.2-1.2,0.3-1.6,0.3c-1.4,0-2.1-1-2.1-3.1v-4.9c0-1.6,0.2-2.8,0.7-3.5c0.5-0.7,1.4-1.4,2.8-2.1 + c3.5-1.8,7.7-3.3,12.6-4.5c4.9-1.3,10.1-1.9,15.6-1.9c11.9,0,20.6,2.7,26.2,8.1c5.5,5.4,8.3,13.6,8.3,24.6V66.4z M45.8,81.6 + c3.3,0,6.7-0.6,10.3-1.8c3.6-1.2,6.8-3.4,9.5-6.4c1.6-1.9,2.8-4,3.4-6.4c0.6-2.4,1-5.3,1-8.7v-4.2c-2.9-0.7-6-1.3-9.2-1.7 + c-3.2-0.4-6.3-0.6-9.4-0.6c-6.7,0-11.6,1.3-14.9,4c-3.3,2.7-4.9,6.5-4.9,11.5c0,4.7,1.2,8.2,3.7,10.6 + C37.7,80.4,41.2,81.6,45.8,81.6z M126.1,92.4c-1.8,0-3-0.3-3.8-1c-0.8-0.6-1.5-2-2.1-3.9L96.7,10.2c-0.6-2-0.9-3.3-0.9-4 + c0-1.6,0.8-2.5,2.4-2.5h9.8c1.9,0,3.2,0.3,3.9,1c0.8,0.6,1.4,2,2,3.9l16.8,66.2l15.6-66.2c0.5-2,1.1-3.3,1.9-3.9c0.8-0.6,2.2-1,4-1 + h8c1.9,0,3.2,0.3,4,1c0.8,0.6,1.5,2,1.9,3.9l15.8,67l17.3-67c0.6-2,1.3-3.3,2-3.9c0.8-0.6,2.1-1,3.9-1h9.3c1.6,0,2.5,0.8,2.5,2.5 + c0,0.5-0.1,1-0.2,1.6c-0.1,0.6-0.3,1.4-0.7,2.5l-24.1,77.3c-0.6,2-1.3,3.3-2.1,3.9c-0.8,0.6-2.1,1-3.8,1h-8.6c-1.9,0-3.2-0.3-4-1 + c-0.8-0.7-1.5-2-1.9-4L156,23l-15.4,64.4c-0.5,2-1.1,3.3-1.9,4c-0.8,0.7-2.2,1-4,1H126.1z M254.6,95.1c-5.2,0-10.4-0.6-15.4-1.8 + c-5-1.2-8.9-2.5-11.5-4c-1.6-0.9-2.7-1.9-3.1-2.8c-0.4-0.9-0.6-1.9-0.6-2.8v-5.1c0-2.1,0.8-3.1,2.3-3.1c0.6,0,1.2,0.1,1.8,0.3 + c0.6,0.2,1.5,0.6,2.5,1c3.4,1.5,7.1,2.7,11,3.5c4,0.8,7.9,1.2,11.9,1.2c6.3,0,11.2-1.1,14.6-3.3c3.4-2.2,5.2-5.4,5.2-9.5 + c0-2.8-0.9-5.1-2.7-7c-1.8-1.9-5.2-3.6-10.1-5.2L246,52c-7.3-2.3-12.7-5.7-16-10.2c-3.3-4.4-5-9.3-5-14.5c0-4.2,0.9-7.9,2.7-11.1 + c1.8-3.2,4.2-6,7.2-8.2c3-2.3,6.4-4,10.4-5.2c4-1.2,8.2-1.7,12.6-1.7c2.2,0,4.5,0.1,6.7,0.4c2.3,0.3,4.4,0.7,6.5,1.1 + c2,0.5,3.9,1,5.7,1.6c1.8,0.6,3.2,1.2,4.2,1.8c1.4,0.8,2.4,1.6,3,2.5c0.6,0.8,0.9,1.9,0.9,3.3v4.7c0,2.1-0.8,3.2-2.3,3.2 + c-0.8,0-2.1-0.4-3.8-1.2c-5.7-2.6-12.1-3.9-19.2-3.9c-5.7,0-10.2,0.9-13.3,2.8c-3.1,1.9-4.7,4.8-4.7,8.9c0,2.8,1,5.2,3,7.1 + c2,1.9,5.7,3.8,11,5.5l14.2,4.5c7.2,2.3,12.4,5.5,15.5,9.6c3.1,4.1,4.6,8.8,4.6,14c0,4.3-0.9,8.2-2.6,11.6 + c-1.8,3.4-4.2,6.4-7.3,8.8c-3.1,2.5-6.8,4.3-11.1,5.6C264.4,94.4,259.7,95.1,254.6,95.1z"/> + <g> + <path class="st1" d="M273.5,143.7c-32.9,24.3-80.7,37.2-121.8,37.2c-57.6,0-109.5-21.3-148.7-56.7c-3.1-2.8-0.3-6.6,3.4-4.4 + c42.4,24.6,94.7,39.5,148.8,39.5c36.5,0,76.6-7.6,113.5-23.2C274.2,133.6,278.9,139.7,273.5,143.7z"/> + <path class="st1" d="M287.2,128.1c-4.2-5.4-27.8-2.6-38.5-1.3c-3.2,0.4-3.7-2.4-0.8-4.5c18.8-13.2,49.7-9.4,53.3-5 + c3.6,4.5-1,35.4-18.6,50.2c-2.7,2.3-5.3,1.1-4.1-1.9C282.5,155.7,291.4,133.4,287.2,128.1z"/> + </g> +</g> +</svg> diff --git a/src/Appwrite/Auth/Auth.php b/src/Appwrite/Auth/Auth.php index 1e8109622e0..8555d5cb004 100644 --- a/src/Appwrite/Auth/Auth.php +++ b/src/Appwrite/Auth/Auth.php @@ -43,6 +43,13 @@ class Auth public const USER_ROLE_APPS = 'apps'; public const USER_ROLE_SYSTEM = 'system'; + /** + * Activity associated with user or the app. + */ + public const ACTIVITY_TYPE_APP = 'app'; + public const ACTIVITY_TYPE_USER = 'user'; + public const ACTIVITY_TYPE_GUEST = 'guest'; + /** * Token Types. */ diff --git a/src/Appwrite/Auth/Key.php b/src/Appwrite/Auth/Key.php new file mode 100644 index 00000000000..1c40b35f54e --- /dev/null +++ b/src/Appwrite/Auth/Key.php @@ -0,0 +1,158 @@ +<?php + +namespace Appwrite\Auth; + +use Ahc\Jwt\JWT; +use Ahc\Jwt\JWTException; +use Appwrite\Extend\Exception; +use Utopia\Config\Config; +use Utopia\Database\DateTime; +use Utopia\Database\Document; +use Utopia\System\System; + +class Key +{ + public function __construct( + protected string $projectId, + protected string $type, + protected string $role, + protected array $scopes, + protected string $name, + protected bool $expired = false, + protected array $disabledMetrics = [], + ) { + } + + public function getProjectId(): string + { + return $this->projectId; + } + + public function getType(): string + { + return $this->type; + } + + public function getRole(): string + { + return $this->role; + } + + public function getScopes(): array + { + return $this->scopes; + } + + public function getName(): string + { + return $this->name; + } + + public function isExpired(): bool + { + return $this->expired; + } + + public function getDisabledMetrics(): array + { + return $this->disabledMetrics; + } + + /** + * Decode the given secret key into a Key object, containing the project ID, type, role, scopes, and name. + * Can be a stored API key or a dynamic key (JWT). + * + * @param Document $project + * @param string $key + * @return Key + * @throws Exception + */ + public static function decode( + Document $project, + string $key + ): Key { + if (\str_contains($key, '_')) { + [$type, $secret] = \explode('_', $key, 2); + } else { + $type = API_KEY_STANDARD; + $secret = $key; + } + + $role = Auth::USER_ROLE_APPS; + $roles = Config::getParam('roles', []); + $scopes = $roles[Auth::USER_ROLE_APPS]['scopes'] ?? []; + $expired = false; + + $guestKey = new Key( + $project->getId(), + $type, + Auth::USER_ROLE_GUESTS, + $roles[Auth::USER_ROLE_GUESTS]['scopes'] ?? [], + 'UNKNOWN' + ); + + switch ($type) { + case API_KEY_DYNAMIC: + $jwtObj = new JWT( + key: System::getEnv('_APP_OPENSSL_KEY_V1'), + algo: 'HS256', + maxAge: 86400, + leeway: 0 + ); + + try { + $payload = $jwtObj->decode($secret); + } catch (JWTException) { + $expired = true; + } + + $name = $payload['name'] ?? 'Dynamic Key'; + $projectId = $payload['projectId'] ?? ''; + $disabledMetrics = $payload['disabledMetrics'] ?? []; + $scopes = \array_merge($payload['scopes'] ?? [], $scopes); + + if ($projectId !== $project->getId()) { + return $guestKey; + } + + return new Key( + $projectId, + $type, + $role, + $scopes, + $name, + $expired, + $disabledMetrics + ); + case API_KEY_STANDARD: + $key = $project->find( + key: 'secret', + find: $key, + subject: 'keys' + ); + + if (!$key) { + return $guestKey; + } + + $expire = $key->getAttribute('expire'); + if (!empty($expire) && $expire < DateTime::formatTz(DateTime::now())) { + $expired = true; + } + + $name = $key->getAttribute('name', 'UNKNOWN'); + $scopes = \array_merge($key->getAttribute('scopes', []), $scopes); + + return new Key( + $project->getId(), + $type, + $role, + $scopes, + $name, + $expired + ); + default: + return $guestKey; + } + } +} diff --git a/src/Appwrite/Auth/OAuth2.php b/src/Appwrite/Auth/OAuth2.php index f7dc1d50a18..9358c89547a 100644 --- a/src/Appwrite/Auth/OAuth2.php +++ b/src/Appwrite/Auth/OAuth2.php @@ -196,9 +196,9 @@ protected function request(string $method, string $url = '', array $headers = [] if (!empty($payload)) { \curl_setopt($ch, CURLOPT_POSTFIELDS, $payload); + $headers[] = 'Content-length: ' . \strlen($payload); } - $headers[] = 'Content-length: ' . \strlen($payload); \curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); // Send the request & save response to $response diff --git a/src/Appwrite/Auth/OAuth2/Amazon.php b/src/Appwrite/Auth/OAuth2/Amazon.php index d1d2cb5a386..2fa3f4cfe92 100644 --- a/src/Appwrite/Auth/OAuth2/Amazon.php +++ b/src/Appwrite/Auth/OAuth2/Amazon.php @@ -43,7 +43,7 @@ public function getName(): string */ public function parseState(string $state) { - return \json_decode(\html_entity_decode($state), true); + return \json_decode(\urldecode(\html_entity_decode($state)), true); } @@ -56,7 +56,7 @@ public function getLoginURL(): string 'response_type' => 'code', 'client_id' => $this->appID, 'scope' => \implode(' ', $this->getScopes()), - 'state' => \json_encode($this->state), + 'state' => \urlencode(\json_encode($this->state)), 'redirect_uri' => $this->callback ]); } diff --git a/src/Appwrite/Auth/OAuth2/Figma.php b/src/Appwrite/Auth/OAuth2/Figma.php new file mode 100644 index 00000000000..b5e53cbed4d --- /dev/null +++ b/src/Appwrite/Auth/OAuth2/Figma.php @@ -0,0 +1,178 @@ +<?php + +namespace Appwrite\Auth\OAuth2; + +use Appwrite\Auth\OAuth2; + +// Reference Material +// https://www.figma.com/developers/api#oauth2 +// https://www.figma.com/developers/api#authentication + +class Figma extends OAuth2 +{ + /** + * @var array + */ + protected array $user = []; + + /** + * @var array + */ + protected array $tokens = []; + + /** + * @var array + */ + protected array $scopes = [ + 'current_user:read' + ]; + + /** + * @return string + */ + public function getName(): string + { + return 'figma'; + } + + /** + * @return string + */ + public function getLoginURL(): string + { + return 'https://www.figma.com/oauth?' . \http_build_query([ + 'response_type' => 'code', + 'client_id' => $this->appID, + 'redirect_uri' => $this->callback, + 'scope' => \implode(' ', $this->getScopes()), + 'state' => \json_encode($this->state) + ]); + } + + /** + * @param string $code + * + * @return array + */ + protected function getTokens(string $code): array + { + if (empty($this->tokens)) { + $headers = [ + 'Content-Type: application/x-www-form-urlencoded', + 'Authorization: Basic ' . \base64_encode($this->appID . ':' . $this->appSecret) + ]; + $this->tokens = \json_decode($this->request( + 'POST', + 'https://api.figma.com/v1/oauth/token', + $headers, + \http_build_query([ + 'redirect_uri' => $this->callback, + 'code' => $code, + 'grant_type' => 'authorization_code' + ]) + ), true); + } + + return $this->tokens; + } + + /** + * @param string $refreshToken + * + * @return array + */ + public function refreshTokens(string $refreshToken): array + { + $headers = [ + 'Content-Type: application/x-www-form-urlencoded', + 'Authorization: Basic ' . \base64_encode($this->appID . ':' . $this->appSecret) + ]; + $this->tokens = \json_decode($this->request( + 'POST', + 'https://api.figma.com/v1/oauth/refresh', + $headers, + \http_build_query([ + 'refresh_token' => $refreshToken + ]) + ), true); + + if (empty($this->tokens['refresh_token'])) { + $this->tokens['refresh_token'] = $refreshToken; + } + + return $this->tokens; + } + + /** + * @param string $accessToken + * + * @return string + */ + public function getUserID(string $accessToken): string + { + $user = $this->getUser($accessToken); + + return $user['id'] ?? ''; + } + + /** + * @param string $accessToken + * + * @return string + */ + public function getUserEmail(string $accessToken): string + { + $user = $this->getUser($accessToken); + + return $user['email'] ?? ''; + } + + /** + * Check if the OAuth email is verified + * + * Figma requires email verification during signup, + * so if we have an email, it's verified + * + * @param string $accessToken + * + * @return bool + */ + public function isEmailVerified(string $accessToken): bool + { + $email = $this->getUserEmail($accessToken); + + return !empty($email); + } + + /** + * @param string $accessToken + * + * @return string + */ + public function getUserName(string $accessToken): string + { + $user = $this->getUser($accessToken); + + return $user['handle'] ?? ''; + } + + /** + * @param string $accessToken + * + * @return array + */ + protected function getUser(string $accessToken): array + { + if (empty($this->user)) { + $headers = ['Authorization: Bearer ' . $accessToken]; + $user = $this->request( + 'GET', + 'https://api.figma.com/v1/me', + $headers + ); + $this->user = \json_decode($user, true); + } + + return $this->user; + } +} diff --git a/src/Appwrite/Auth/OAuth2/Firebase.php b/src/Appwrite/Auth/OAuth2/Firebase.php deleted file mode 100644 index 0e2859e32cc..00000000000 --- a/src/Appwrite/Auth/OAuth2/Firebase.php +++ /dev/null @@ -1,389 +0,0 @@ -<?php - -namespace Appwrite\Auth\OAuth2; - -use Appwrite\Auth\OAuth2; - -class Firebase extends OAuth2 -{ - /** - * @var array - */ - protected array $user = []; - - /** - * @var array - */ - protected array $tokens = []; - - /** - * @var array - */ - protected array $scopes = [ - 'https://www.googleapis.com/auth/firebase', - 'https://www.googleapis.com/auth/datastore', - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/identitytoolkit', - 'https://www.googleapis.com/auth/userinfo.profile' - ]; - - /** - * @var array - */ - protected array $iamPermissions = [ - // Database - 'datastore.databases.get', - 'datastore.databases.list', - 'datastore.entities.get', - 'datastore.entities.list', - 'datastore.indexes.get', - 'datastore.indexes.list', - // Generic Firebase permissions - 'firebase.projects.get', - - // Auth - 'firebaseauth.configs.get', - 'firebaseauth.configs.getHashConfig', - 'firebaseauth.configs.getSecret', - 'firebaseauth.users.get', - 'identitytoolkit.tenants.get', - 'identitytoolkit.tenants.list', - - // IAM Assignment - 'iam.serviceAccounts.list', - - // Storage - 'storage.buckets.get', - 'storage.buckets.list', - 'storage.objects.get', - 'storage.objects.list' - ]; - - /** - * @return string - */ - public function getName(): string - { - return 'firebase'; - } - - /** - * @return string - */ - public function getLoginURL(): string - { - return 'https://accounts.google.com/o/oauth2/v2/auth?' . \http_build_query([ - 'access_type' => 'offline', - 'client_id' => $this->appID, - 'redirect_uri' => $this->callback, - 'scope' => \implode(' ', $this->getScopes()), - 'state' => \json_encode($this->state), - 'response_type' => 'code', - 'prompt' => 'consent', - ]); - } - - /** - * @param string $code - * - * @return array - */ - protected function getTokens(string $code): array - { - if (empty($this->tokens)) { - $response = $this->request( - 'POST', - 'https://oauth2.googleapis.com/token', - [], - \http_build_query([ - 'client_id' => $this->appID, - 'redirect_uri' => $this->callback, - 'client_secret' => $this->appSecret, - 'code' => $code, - 'grant_type' => 'authorization_code' - ]) - ); - - $this->tokens = \json_decode($response, true); - } - - return $this->tokens; - } - - /** - * @param string $refreshToken - * - * @return array - */ - public function refreshTokens(string $refreshToken): array - { - $response = $this->request( - 'POST', - 'https://oauth2.googleapis.com/token', - [], - \http_build_query([ - 'client_id' => $this->appID, - 'client_secret' => $this->appSecret, - 'grant_type' => 'refresh_token', - 'refresh_token' => $refreshToken - ]) - ); - - $output = []; - \parse_str($response, $output); - $this->tokens = $output; - - if (empty($this->tokens['refresh_token'])) { - $this->tokens['refresh_token'] = $refreshToken; - } - - return $this->tokens; - } - - - /** - * @param string $accessToken - * - * @return string - */ - public function getUserID(string $accessToken): string - { - $user = $this->getUser($accessToken); - - return $user['id'] ?? ''; - } - - /** - * @param string $accessToken - * - * @return string - */ - public function getUserEmail(string $accessToken): string - { - $user = $this->getUser($accessToken); - - return $user['email'] ?? ''; - } - - - /** - * Check if the OAuth email is verified - * - * @link https://docs.github.com/en/rest/users/emails#list-email-addresses-for-the-authenticated-user - * - * @param string $accessToken - * - * @return bool - */ - public function isEmailVerified(string $accessToken): bool - { - $user = $this->getUser($accessToken); - - if ($user['verified'] ?? false) { - return true; - } - - return false; - } - - /** - * @param string $accessToken - * - * @return string - */ - public function getUserName(string $accessToken): string - { - $user = $this->getUser($accessToken); - - return $user['name'] ?? ''; - } - - /** - * @param string $accessToken - * - * @return array - */ - protected function getUser(string $accessToken) - { - if (empty($this->user)) { - $response = $this->request( - 'GET', - 'https://www.googleapis.com/oauth2/v1/userinfo?access_token=' . \urlencode($accessToken), - [], - ); - - $this->user = \json_decode($response, true); - } - - return $this->user; - } - - public function getProjects(string $accessToken): array - { - $projects = $this->request('GET', 'https://firebase.googleapis.com/v1beta1/projects', ['Authorization: Bearer ' . \urlencode($accessToken)]); - - $projects = \json_decode($projects, true); - - return $projects['results']; - } - - /* - Be careful with the setIAMPolicy method, it will overwrite all existing policies - **/ - public function assignIAMRole(string $accessToken, string $email, string $projectId, array $role) - { - // Get IAM Roles - $iamRoles = $this->request('POST', 'https://cloudresourcemanager.googleapis.com/v1/projects/' . $projectId . ':getIamPolicy', [ - 'Authorization: Bearer ' . \urlencode($accessToken), - 'Content-Type: application/json' - ]); - - $iamRoles = \json_decode($iamRoles, true); - - $iamRoles['bindings'][] = [ - 'role' => $role['name'], - 'members' => [ - 'serviceAccount:' . $email - ] - ]; - - // Set IAM Roles - $this->request('POST', 'https://cloudresourcemanager.googleapis.com/v1/projects/' . $projectId . ':setIamPolicy', [ - 'Authorization: Bearer ' . \urlencode($accessToken), - 'Content-Type: application/json' - ], \json_encode([ - 'policy' => $iamRoles - ])); - } - - private function generateRandomString($length = 10): string - { - $characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; - $charactersLength = strlen($characters); - $randomString = ''; - for ($i = 0; $i < $length; $i++) { - $randomString .= $characters[random_int(0, $charactersLength - 1)]; - } - return $randomString; - } - - private function createCustomRole(string $accessToken, string $projectId): array - { - // Check if role already exists - try { - $role = $this->request('GET', 'https://iam.googleapis.com/v1/projects/' . $projectId . '/roles/appwriteMigrations', [ - 'Content-Type: application/json', - 'Authorization: Bearer ' . \urlencode($accessToken), - ]); - - $role = \json_decode($role, true); - - return $role; - } catch (\Throwable $e) { - if ($e->getCode() !== 404) { - throw $e; - } - } - - // Create role if doesn't exist or isn't correct - $role = $this->request( - 'POST', - 'https://iam.googleapis.com/v1/projects/' . $projectId . '/roles/', - [ - 'Content-Type: application/json', - 'Authorization: Bearer ' . \urlencode($accessToken), - ], - \json_encode( - [ - 'roleId' => 'appwriteMigrations', - 'role' => [ - 'title' => 'Appwrite Migrations', - 'description' => 'A helper role for Appwrite Migrations', - 'includedPermissions' => $this->iamPermissions, - 'stage' => 'GA' - ] - ] - ) - ); - - return json_decode($role, true); - } - - public function createServiceAccount(string $accessToken, string $projectId): array - { - // Create Service Account - $uid = $this->generateRandomString(); - - $response = $this->request( - 'POST', - 'https://iam.googleapis.com/v1/projects/' . $projectId . '/serviceAccounts', - [ - 'Authorization: Bearer ' . \urlencode($accessToken), - 'Content-Type: application/json' - ], - \json_encode([ - 'accountId' => 'appwrite-' . $uid, - 'serviceAccount' => [ - 'displayName' => 'Appwrite Migrations ' . $uid - ] - ]) - ); - - $response = json_decode($response, true); - - // Create and assign IAM Roles - $role = $this->createCustomRole($accessToken, $projectId); - - \sleep(1); // Wait for IAM to propagate changes. - - $this->assignIAMRole($accessToken, $response['email'], $projectId, $role); - - // Create Service Account Key - $responseKey = $this->request( - 'POST', - 'https://iam.googleapis.com/v1/projects/' . $projectId . '/serviceAccounts/' . $response['email'] . '/keys', - [ - 'Authorization: Bearer ' . \urlencode($accessToken), - 'Content-Type: application/json' - ] - ); - - $responseKey = json_decode($responseKey, true); - - return json_decode(base64_decode($responseKey['privateKeyData']), true); - } - - public function cleanupServiceAccounts(string $accessToken, string $projectId) - { - // List Service Accounts - $response = $this->request( - 'GET', - 'https://iam.googleapis.com/v1/projects/' . $projectId . '/serviceAccounts', - [ - 'Authorization: Bearer ' . \urlencode($accessToken), - 'Content-Type: application/json' - ] - ); - - $response = json_decode($response, true); - - if (empty($response['accounts'])) { - return false; - } - - foreach ($response['accounts'] as $account) { - if (strpos($account['email'], 'appwrite-') !== false) { - $this->request( - 'DELETE', - 'https://iam.googleapis.com/v1/projects/' . $projectId . '/serviceAccounts/' . $account['email'], - [ - 'Authorization: Bearer ' . \urlencode($accessToken), - 'Content-Type: application/json' - ] - ); - } - } - - return true; - } -} diff --git a/src/Appwrite/Auth/OAuth2/Slack.php b/src/Appwrite/Auth/OAuth2/Slack.php index 8898f4d1f74..9c87e45ed65 100644 --- a/src/Appwrite/Auth/OAuth2/Slack.php +++ b/src/Appwrite/Auth/OAuth2/Slack.php @@ -20,10 +20,9 @@ class Slack extends OAuth2 * @var array */ protected array $scopes = [ - 'identity.avatar', - 'identity.basic', - 'identity.email', - 'identity.team' + 'openid', + 'email', + 'profile' ]; /** @@ -35,14 +34,15 @@ public function getName(): string } /** + * @link https://api.slack.com/authentication/oauth-v2 + * * @return string */ public function getLoginURL(): string { - // https://api.slack.com/docs/oauth#step_1_-_sending_users_to_authorize_and_or_install - return 'https://slack.com/oauth/authorize?' . \http_build_query([ + return 'https://slack.com/oauth/v2/authorize?' . \http_build_query([ 'client_id' => $this->appID, - 'scope' => \implode(' ', $this->getScopes()), + 'user_scope' => \implode(' ', $this->getScopes()), 'redirect_uri' => $this->callback, 'state' => \json_encode($this->state) ]); @@ -56,16 +56,15 @@ public function getLoginURL(): string protected function getTokens(string $code): array { if (empty($this->tokens)) { - // https://api.slack.com/docs/oauth#step_3_-_exchanging_a_verification_code_for_an_access_token $this->tokens = \json_decode($this->request( 'GET', - 'https://slack.com/api/oauth.access?' . \http_build_query([ + 'https://slack.com/api/oauth.v2.access?' . \http_build_query([ 'client_id' => $this->appID, 'client_secret' => $this->appSecret, 'code' => $code, 'redirect_uri' => $this->callback ]) - ), true); + ), true)['authed_user'] ?? []; } return $this->tokens; @@ -80,13 +79,13 @@ public function refreshTokens(string $refreshToken): array { $this->tokens = \json_decode($this->request( 'GET', - 'https://slack.com/api/oauth.access?' . \http_build_query([ + 'https://slack.com/api/oauth.v2.access?' . \http_build_query([ 'client_id' => $this->appID, 'client_secret' => $this->appSecret, 'refresh_token' => $refreshToken, 'grant_type' => 'refresh_token' ]) - ), true); + ), true)['authed_user'] ?? []; if (empty($this->tokens['refresh_token'])) { $this->tokens['refresh_token'] = $refreshToken; @@ -161,9 +160,9 @@ protected function getUser(string $accessToken): array if (empty($this->user)) { $user = $this->request( 'GET', - 'https://slack.com/api/users.identity?token=' . \urlencode($accessToken) + 'https://slack.com/api/users.identity', + ['Authorization: Bearer ' . \urlencode($accessToken)] ); - $this->user = \json_decode($user, true); } diff --git a/src/Appwrite/Auth/Validator/Phone.php b/src/Appwrite/Auth/Validator/Phone.php index 26aa6872788..e74a78d2654 100644 --- a/src/Appwrite/Auth/Validator/Phone.php +++ b/src/Appwrite/Auth/Validator/Phone.php @@ -2,6 +2,8 @@ namespace Appwrite\Auth\Validator; +use libphonenumber\NumberParseException; +use libphonenumber\PhoneNumberUtil; use Utopia\Validator; /** @@ -12,10 +14,12 @@ class Phone extends Validator { protected bool $allowEmpty; + protected PhoneNumberUtil $helper; public function __construct(bool $allowEmpty = false) { $this->allowEmpty = $allowEmpty; + $this->helper = PhoneNumberUtil::getInstance(); } /** @@ -47,6 +51,12 @@ public function isValid($value): bool return true; } + try { + $this->helper->parse($value); + } catch (NumberParseException $e) { + return false; + } + return !!\preg_match('/^\+[1-9]\d{6,14}$/', $value); } diff --git a/src/Appwrite/Certificates/Adapter.php b/src/Appwrite/Certificates/Adapter.php new file mode 100644 index 00000000000..711e4c09b90 --- /dev/null +++ b/src/Appwrite/Certificates/Adapter.php @@ -0,0 +1,14 @@ +<?php + +namespace Appwrite\Certificates; + +use Utopia\Logger\Log; + +interface Adapter +{ + public function issueCertificate(string $certName, string $domain): ?string; + + public function isRenewRequired(string $domain, Log $log): bool; + + public function deleteCertificate(string $domain): void; +} diff --git a/src/Appwrite/Certificates/LetsEncrypt.php b/src/Appwrite/Certificates/LetsEncrypt.php new file mode 100644 index 00000000000..3896eab0225 --- /dev/null +++ b/src/Appwrite/Certificates/LetsEncrypt.php @@ -0,0 +1,125 @@ +<?php + +namespace Appwrite\Certificates; + +use Exception; +use Utopia\App; +use Utopia\CLI\Console; +use Utopia\Database\DateTime; +use Utopia\Logger\Log; + +class LetsEncrypt implements Adapter +{ + private string $email; + + public function __construct(string $email) + { + $this->email = $email; + } + + + public function issueCertificate(string $certName, string $domain): ?string + { + $stdout = ''; + $stderr = ''; + + $staging = (App::isProduction()) ? '' : ' --dry-run'; + $exit = Console::execute( + "certbot certonly -v --webroot --noninteractive --agree-tos{$staging}" + . " --email " . $this->email + . " --cert-name " . $certName + . " -w " . APP_STORAGE_CERTIFICATES + . " -d {$domain}", + '', + $stdout, + $stderr + ); + + // Unexpected error, usually 5XX, API limits, ... + if ($exit !== 0) { + throw new Exception('Failed to issue a certificate with message: ' . $stderr); + } + + // Prepare folder in storage for domain + $path = APP_STORAGE_CERTIFICATES . '/' . $domain; + if (!\is_readable($path)) { + if (!\mkdir($path, 0755, true)) { + throw new Exception('Failed to create path for certificate.'); + } + } + + // Move generated files + if (!@\rename('/etc/letsencrypt/live/' . $certName . '/cert.pem', APP_STORAGE_CERTIFICATES . '/' . $domain . '/cert.pem')) { + throw new Exception('Failed to rename certificate cert.pem. Let\'s Encrypt log: ' . $stderr . ' ; ' . $stdout); + } + + if (!@\rename('/etc/letsencrypt/live/' . $certName . '/chain.pem', APP_STORAGE_CERTIFICATES . '/' . $domain . '/chain.pem')) { + throw new Exception('Failed to rename certificate chain.pem. Let\'s Encrypt log: ' . $stderr . ' ; ' . $stdout); + } + + if (!@\rename('/etc/letsencrypt/live/' . $certName . '/fullchain.pem', APP_STORAGE_CERTIFICATES . '/' . $domain . '/fullchain.pem')) { + throw new Exception('Failed to rename certificate fullchain.pem. Let\'s Encrypt log: ' . $stderr . ' ; ' . $stdout); + } + + if (!@\rename('/etc/letsencrypt/live/' . $certName . '/privkey.pem', APP_STORAGE_CERTIFICATES . '/' . $domain . '/privkey.pem')) { + throw new Exception('Failed to rename certificate privkey.pem. Let\'s Encrypt log: ' . $stderr . ' ; ' . $stdout); + } + + $config = \implode(PHP_EOL, [ + "tls:", + " certificates:", + " - certFile: /storage/certificates/{$domain}/fullchain.pem", + " keyFile: /storage/certificates/{$domain}/privkey.pem" + ]); + + // Save configuration into Traefik using our new cert files + if (!\file_put_contents(APP_STORAGE_CONFIG . '/' . $domain . '.yml', $config)) { + throw new Exception('Failed to save Traefik configuration.'); + } + + $certPath = APP_STORAGE_CERTIFICATES . '/' . $domain . '/cert.pem'; + $certData = openssl_x509_parse(file_get_contents($certPath)); + $validTo = $certData['validTo_time_t'] ?? null; + $dt = (new \DateTime())->setTimestamp($validTo); + return DateTime::addSeconds($dt, -60 * 60 * 24 * 30); + } + + public function isRenewRequired(string $domain, Log $log): bool + { + $certPath = APP_STORAGE_CERTIFICATES . '/' . $domain . '/cert.pem'; + if (\file_exists($certPath)) { + $certData = openssl_x509_parse(file_get_contents($certPath)); + $validTo = $certData['validTo_time_t'] ?? 0; + + if (empty($validTo)) { + $log->addTag('certificateDomain', $domain); + throw new Exception('Unable to read certificate file (cert.pem).'); + } + + // LetsEncrypt allows renewal 30 days before expiry + $expiryInAdvance = (60 * 60 * 24 * 30); + if ($validTo - $expiryInAdvance > \time()) { + $log->addTag('certificateDomain', $domain); + $log->addExtra('certificateData', \is_array($certData) ? \json_encode($certData) : \strval($certData)); + return false; + } + } + + return true; + } + + public function deleteCertificate(string $domain): void + { + $directory = APP_STORAGE_CERTIFICATES . '/' . $domain; + $checkTraversal = realpath($directory) === $directory; + + if ($checkTraversal && is_dir($directory)) { + // Delete files, so Traefik is aware of change + array_map('unlink', glob($directory . '/*.*')); + rmdir($directory); + Console::info("Deleted certificate files for {$domain}"); + } else { + Console::info("No certificate files found for {$domain}"); + } + } +} diff --git a/src/Appwrite/Deletes/Identities.php b/src/Appwrite/Deletes/Identities.php new file mode 100644 index 00000000000..09dac185a14 --- /dev/null +++ b/src/Appwrite/Deletes/Identities.php @@ -0,0 +1,22 @@ +<?php + +namespace Appwrite\Deletes; + +use Utopia\Database\Database; +use Utopia\Database\Query; + +class Identities +{ + public static function delete(Database $database, Query $query): void + { + $database->deleteDocuments( + 'identities', + [ + $query, + Query::orderAsc() + ], + Database::DELETE_BATCH_SIZE + ); + } + +} diff --git a/src/Appwrite/Deletes/Targets.php b/src/Appwrite/Deletes/Targets.php new file mode 100644 index 00000000000..95e744ddf15 --- /dev/null +++ b/src/Appwrite/Deletes/Targets.php @@ -0,0 +1,56 @@ +<?php + +namespace Appwrite\Deletes; + +use Appwrite\Extend\Exception; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Query; + +class Targets +{ + public static function delete(Database $database, Query $query): void + { + $database->deleteDocuments( + 'targets', + [ + $query, + Query::orderAsc() + ], + Database::DELETE_BATCH_SIZE, + fn (Document $target) => self::deleteSubscribers($database, $target) + ); + } + + public static function deleteSubscribers(Database $database, Document $target): void + { + $database->deleteDocuments( + 'subscribers', + [ + Query::equal('targetInternalId', [$target->getInternalId()]), + Query::orderAsc(), + ], + Database::DELETE_BATCH_SIZE, + function (Document $subscriber) use ($database, $target) { + $topicId = $subscriber->getAttribute('topicId'); + $topicInternalId = $subscriber->getAttribute('topicInternalId'); + $topic = $database->getDocument('topics', $topicId); + if (!$topic->isEmpty() && $topic->getInternalId() === $topicInternalId) { + $totalAttribute = match ($target->getAttribute('providerType')) { + MESSAGE_TYPE_EMAIL => 'emailTotal', + MESSAGE_TYPE_SMS => 'smsTotal', + MESSAGE_TYPE_PUSH => 'pushTotal', + default => throw new Exception('Invalid target provider type'), + }; + $database->decreaseDocumentAttribute( + 'topics', + $topicId, + $totalAttribute, + min: 0 + ); + } + } + ); + } + +} diff --git a/src/Appwrite/Event/Audit.php b/src/Appwrite/Event/Audit.php index 4b02849970d..dd48093dc57 100644 --- a/src/Appwrite/Event/Audit.php +++ b/src/Appwrite/Event/Audit.php @@ -2,8 +2,7 @@ namespace Appwrite\Event; -use Utopia\Queue\Client; -use Utopia\Queue\Connection; +use Utopia\Queue\Publisher; class Audit extends Event { @@ -11,10 +10,13 @@ class Audit extends Event protected string $mode = ''; protected string $userAgent = ''; protected string $ip = ''; + protected string $hostname = ''; - public function __construct(protected Connection $connection) + protected bool $critical = false; + + public function __construct(protected Publisher $publisher) { - parent::__construct($connection); + parent::__construct($publisher); $this ->setQueue(Event::AUDITS_QUEUE_NAME) @@ -114,16 +116,37 @@ public function getIP(): string } /** - * Executes the event and sends it to the audit worker. + * Set the hostname. + * + * @param string $hostname * - * @return string|bool - * @throws \InvalidArgumentException + * @return self */ - public function trigger(): string|bool + public function setHostname(string $hostname): self { - $client = new Client($this->queue, $this->connection); + $this->hostname = $hostname; - return $client->enqueue([ + return $this; + } + + /** + * Get the hostname. + * + * @return string + */ + public function getHostname(): string + { + return $this->hostname; + } + + /** + * Prepare payload for queue. + * + * @return array + */ + protected function preparePayload(): array + { + return [ 'project' => $this->project, 'user' => $this->user, 'payload' => $this->payload, @@ -132,6 +155,7 @@ public function trigger(): string|bool 'ip' => $this->ip, 'userAgent' => $this->userAgent, 'event' => $this->event, - ]); + 'hostname' => $this->hostname + ]; } } diff --git a/src/Appwrite/Event/Build.php b/src/Appwrite/Event/Build.php index b8cb62a6f8c..9ea163174f0 100644 --- a/src/Appwrite/Event/Build.php +++ b/src/Appwrite/Event/Build.php @@ -3,8 +3,7 @@ namespace Appwrite\Event; use Utopia\Database\Document; -use Utopia\Queue\Client; -use Utopia\Queue\Connection; +use Utopia\Queue\Publisher; class Build extends Event { @@ -13,9 +12,9 @@ class Build extends Event protected ?Document $deployment = null; protected ?Document $template = null; - public function __construct(protected Connection $connection) + public function __construct(protected Publisher $publisher) { - parent::__construct($connection); + parent::__construct($publisher); $this ->setQueue(Event::BUILDS_QUEUE_NAME) @@ -105,22 +104,19 @@ public function getType(): string } /** - * Executes the function event and sends it to the functions worker. + * Prepare payload for queue. * - * @return string|bool - * @throws \InvalidArgumentException + * @return array */ - public function trigger(): string|bool + protected function preparePayload(): array { - $client = new Client($this->queue, $this->connection); - - return $client->enqueue([ + return [ 'project' => $this->project, 'resource' => $this->resource, 'deployment' => $this->deployment, 'type' => $this->type, 'template' => $this->template - ]); + ]; } /** diff --git a/src/Appwrite/Event/Certificate.php b/src/Appwrite/Event/Certificate.php index 85058c96fe9..827472ae374 100644 --- a/src/Appwrite/Event/Certificate.php +++ b/src/Appwrite/Event/Certificate.php @@ -3,17 +3,16 @@ namespace Appwrite\Event; use Utopia\Database\Document; -use Utopia\Queue\Client; -use Utopia\Queue\Connection; +use Utopia\Queue\Publisher; class Certificate extends Event { protected bool $skipRenewCheck = false; protected ?Document $domain = null; - public function __construct(protected Connection $connection) + public function __construct(protected Publisher $publisher) { - parent::__construct($connection); + parent::__construct($publisher); $this ->setQueue(Event::CERTIFICATES_QUEUE_NAME) @@ -67,19 +66,16 @@ public function getSkipRenewCheck(): bool } /** - * Executes the event and sends it to the certificates worker. + * Prepare the payload for the event * - * @return string|bool - * @throws \InvalidArgumentException + * @return array */ - public function trigger(): string|bool + protected function preparePayload(): array { - $client = new Client($this->queue, $this->connection); - - return $client->enqueue([ + return [ 'project' => $this->project, 'domain' => $this->domain, 'skipRenewCheck' => $this->skipRenewCheck - ]); + ]; } } diff --git a/src/Appwrite/Event/Database.php b/src/Appwrite/Event/Database.php index f9eb7d9a7d8..d2f70dddf28 100644 --- a/src/Appwrite/Event/Database.php +++ b/src/Appwrite/Event/Database.php @@ -4,8 +4,7 @@ use Utopia\Database\Document; use Utopia\DSN\DSN; -use Utopia\Queue\Client; -use Utopia\Queue\Connection; +use Utopia\Queue\Publisher; class Database extends Event { @@ -14,9 +13,9 @@ class Database extends Event protected ?Document $collection = null; protected ?Document $document = null; - public function __construct(protected Connection $connection) + public function __construct(protected Publisher $publisher) { - parent::__construct($connection); + parent::__construct($publisher); $this->setClass(Event::DATABASE_CLASS_NAME); } @@ -100,13 +99,7 @@ public function getDocument(): ?Document return $this->document; } - /** - * Executes the event and send it to the database worker. - * - * @return string|bool - * @throws \InvalidArgumentException - */ - public function trigger(): string|bool + public function getQueue(): string { try { $dsn = new DSN($this->getProject()->getAttribute('database')); @@ -115,23 +108,25 @@ public function trigger(): string|bool $dsn = new DSN('mysql://' . $this->getProject()->getAttribute('database')); } - $this->setQueue($dsn->getHost()); - - $client = new Client($this->queue, $this->connection); + $this->queue = $dsn->getHost(); + return $this->queue; + } - try { - $result = $client->enqueue([ - 'project' => $this->project, - 'user' => $this->user, - 'type' => $this->type, - 'collection' => $this->collection, - 'document' => $this->document, - 'database' => $this->database, - 'events' => Event::generateEvents($this->getEvent(), $this->getParams()) - ]); - return $result; - } catch (\Throwable $th) { - return false; - } + /** + * Prepare the payload for the event + * + * @return array + */ + protected function preparePayload(): array + { + return [ + 'project' => $this->project, + 'user' => $this->user, + 'type' => $this->type, + 'collection' => $this->collection, + 'document' => $this->document, + 'database' => $this->database, + 'events' => Event::generateEvents($this->getEvent(), $this->getParams()) + ]; } } diff --git a/src/Appwrite/Event/Delete.php b/src/Appwrite/Event/Delete.php index 064fbcefa95..450be306d71 100644 --- a/src/Appwrite/Event/Delete.php +++ b/src/Appwrite/Event/Delete.php @@ -3,8 +3,7 @@ namespace Appwrite\Event; use Utopia\Database\Document; -use Utopia\Queue\Client; -use Utopia\Queue\Connection; +use Utopia\Queue\Publisher; class Delete extends Event { @@ -16,9 +15,9 @@ class Delete extends Event protected ?string $hourlyUsageRetentionDatetime = null; - public function __construct(protected Connection $connection) + public function __construct(protected Publisher $publisher) { - parent::__construct($connection); + parent::__construct($publisher); $this ->setQueue(Event::DELETE_QUEUE_NAME) @@ -131,18 +130,14 @@ public function getDocument(): ?Document return $this->document; } - /** - * Executes this event and sends it to the deletes worker. + * Prepare the payload for the event * - * @return string|bool - * @throws \InvalidArgumentException + * @return array */ - public function trigger(): string|bool + protected function preparePayload(): array { - $client = new Client($this->queue, $this->connection); - - return $client->enqueue([ + return [ 'project' => $this->project, 'type' => $this->type, 'document' => $this->document, @@ -150,6 +145,6 @@ public function trigger(): string|bool 'resourceType' => $this->resourceType, 'datetime' => $this->datetime, 'hourlyUsageRetentionDatetime' => $this->hourlyUsageRetentionDatetime - ]); + ]; } } diff --git a/src/Appwrite/Event/Event.php b/src/Appwrite/Event/Event.php index 43eda511dfa..2c735ef2d42 100644 --- a/src/Appwrite/Event/Event.php +++ b/src/Appwrite/Event/Event.php @@ -4,8 +4,8 @@ use InvalidArgumentException; use Utopia\Database\Document; -use Utopia\Queue\Client; -use Utopia\Queue\Connection; +use Utopia\Queue\Publisher; +use Utopia\Queue\Queue; class Event { @@ -24,11 +24,11 @@ class Event public const FUNCTIONS_QUEUE_NAME = 'v1-functions'; public const FUNCTIONS_CLASS_NAME = 'FunctionsV1'; - public const USAGE_QUEUE_NAME = 'v1-usage'; - public const USAGE_CLASS_NAME = 'UsageV1'; + public const STATS_RESOURCES_QUEUE_NAME = 'v1-stats-resources'; + public const STATS_RESOURCES_CLASS_NAME = 'StatsResourcesV1'; - public const USAGE_DUMP_QUEUE_NAME = 'v1-usage-dump'; - public const USAGE_DUMP_CLASS_NAME = 'UsageDumpV1'; + public const STATS_USAGE_QUEUE_NAME = 'v1-stats-usage'; + public const STATS_USAGE_CLASS_NAME = 'StatsUsageV1'; public const WEBHOOK_QUEUE_NAME = 'v1-webhooks'; public const WEBHOOK_CLASS_NAME = 'WebhooksV1'; @@ -57,14 +57,35 @@ class Event protected ?string $userId = null; protected bool $paused = false; + /** @var bool Non-critical events will not throw an exception when enqueuing of the event fails. */ + protected bool $critical = true; + /** - * @param Connection $connection + * @param Publisher $publisher * @return void */ - public function __construct(protected Connection $connection) + public function __construct(protected Publisher $publisher) { } + /** + * Set paused state for this event. + */ + public function setPaused(bool $paused): self + { + $this->paused = $paused; + + return $this; + } + + /** + * Get paused state for this event. + */ + public function getPaused(): bool + { + return $this->paused; + } + /** * Set queue used for this event. * @@ -119,7 +140,6 @@ public function getEvent(): string public function setProject(Document $project): self { $this->project = $project; - return $this; } @@ -204,19 +224,6 @@ public function getPayload(): array return $this->payload; } - public function getRealtimePayload(): array - { - $payload = []; - - foreach ($this->payload as $key => $value) { - if (!isset($this->sensitive[$key])) { - $payload[$key] = $value; - } - } - - return $payload; - } - /** * Set context for this event. * @@ -279,13 +286,6 @@ public function setParam(string $key, mixed $value): self return $this; } - public function setParamSensitive(string $key): self - { - $this->sensitive[$key] = true; - - return $this; - } - /** * Get param of event. * @@ -307,6 +307,27 @@ public function getParams(): array return $this->params; } + /** + * Get trimmed values for sensitive/large payload fields. + * Override this method in child classes to add more fields to trim. + * + * @return array + */ + protected function trimPayload(): array + { + $trimmed = []; + + if ($this->project) { + $trimmed['project'] = new Document([ + '$id' => $this->project->getId(), + '$internalId' => $this->project->getInternalId(), + 'database' => $this->project->getAttribute('database') + ]); + } + + return $trimmed; + } + /** * Execute Event. * @@ -315,20 +336,42 @@ public function getParams(): array */ public function trigger(): string|bool { + if ($this->paused) { return false; } - $client = new Client($this->queue, $this->connection); + /** The getter is required since events like Databases need to override the queue name depending on the project */ + $queue = new Queue($this->getQueue()); + + // Merge the base payload with any trimmed values + $payload = array_merge($this->preparePayload(), $this->trimPayload()); + + try { + return $this->publisher->enqueue($queue, $payload); + } catch (\Throwable $th) { + if ($this->critical) { + throw $th; + } + return false; + } + } - return $client->enqueue([ + /** + * Prepare payload for queue. Can be overridden by child classes to customize payload. + * + * @return array + */ + protected function preparePayload(): array + { + return [ 'project' => $this->project, 'user' => $this->user, 'userId' => $this->userId, 'payload' => $this->payload, 'context' => $this->context, 'events' => Event::generateEvents($this->getEvent(), $this->getParams()) - ]); + ]; } /** @@ -530,20 +573,21 @@ public static function generateEvents(string $pattern, array $params = []): arra } /** - * Get the value of paused - */ - public function isPaused(): bool - { - return $this->paused; - } - - /** - * Set the value of paused + * Generate a function event from a base event + * + * @param Event $event + * + * @return self + * */ - public function setPaused(bool $paused): self + public function from(Event $event): self { - $this->paused = $paused; - + $this->project = $event->getProject(); + $this->user = $event->getUser(); + $this->payload = $event->getPayload(); + $this->event = $event->getEvent(); + $this->params = $event->getParams(); + $this->context = $event->context; return $this; } } diff --git a/src/Appwrite/Event/Func.php b/src/Appwrite/Event/Func.php index 0cbaf17b600..ae316c84e50 100644 --- a/src/Appwrite/Event/Func.php +++ b/src/Appwrite/Event/Func.php @@ -3,11 +3,12 @@ namespace Appwrite\Event; use Utopia\Database\Document; -use Utopia\Queue\Client; -use Utopia\Queue\Connection; +use Utopia\Queue\Publisher; class Func extends Event { + public const TYPE_ASYNC_WRITE = 'async_write'; + protected string $jwt = ''; protected string $type = ''; protected string $body = ''; @@ -18,9 +19,9 @@ class Func extends Event protected ?Document $function = null; protected ?Document $execution = null; - public function __construct(protected Connection $connection) + public function __construct(protected Publisher $publisher) { - parent::__construct($connection); + parent::__construct($publisher); $this ->setQueue(Event::FUNCTIONS_QUEUE_NAME) @@ -171,13 +172,13 @@ public function setHeaders(array $headers): self } /** - * Returns set custom data for the function event. + * Returns set JWT for the function event. * * @return string */ - public function getData(): string + public function getJWT(): string { - return $this->data; + return $this->jwt; } /** @@ -189,37 +190,19 @@ public function getData(): string public function setJWT(string $jwt): self { $this->jwt = $jwt; - return $this; } /** - * Returns set JWT for the function event. + * Prepare payload for the function event. * - * @return string + * @return array */ - public function getJWT(): string + protected function preparePayload(): array { - return $this->jwt; - } - - /** - * Executes the function event and sends it to the functions worker. - * - * @return string|bool - * @throws \InvalidArgumentException - */ - public function trigger(): string|bool - { - if ($this->paused) { - return false; - } - - $client = new Client($this->queue, $this->connection); - $events = $this->getEvent() ? Event::generateEvents($this->getEvent(), $this->getParams()) : null; - return $client->enqueue([ + return [ 'project' => $this->project, 'user' => $this->user, 'userId' => $this->userId, @@ -234,24 +217,6 @@ public function trigger(): string|bool 'path' => $this->path, 'headers' => $this->headers, 'method' => $this->method, - ]); - } - - /** - * Generate a function event from a base event - * - * @param Event $event - * - * @return self - * - */ - public function from(Event $event): self - { - $this->project = $event->getProject(); - $this->user = $event->getUser(); - $this->payload = $event->getPayload(); - $this->event = $event->getEvent(); - $this->params = $event->getParams(); - return $this; + ]; } } diff --git a/src/Appwrite/Event/Mail.php b/src/Appwrite/Event/Mail.php index 9bdbf6044d2..87312182ea6 100644 --- a/src/Appwrite/Event/Mail.php +++ b/src/Appwrite/Event/Mail.php @@ -2,8 +2,7 @@ namespace Appwrite\Event; -use Utopia\Queue\Client; -use Utopia\Queue\Connection; +use Utopia\Queue\Publisher; class Mail extends Event { @@ -16,9 +15,9 @@ class Mail extends Event protected string $bodyTemplate = ''; protected array $attachment = []; - public function __construct(protected Connection $connection) + public function __construct(protected Publisher $publisher) { - parent::__construct($connection); + parent::__construct($publisher); $this ->setQueue(Event::MAILS_QUEUE_NAME) @@ -397,16 +396,13 @@ public function reset(): self } /** - * Executes the event and sends it to the mails worker. + * Prepare the payload for the event * - * @return string|bool - * @throws \InvalidArgumentException + * @return array */ - public function trigger(): string|bool + protected function preparePayload(): array { - $client = new Client($this->queue, $this->connection); - - return $client->enqueue([ + return [ 'project' => $this->project, 'recipient' => $this->recipient, 'name' => $this->name, @@ -417,6 +413,6 @@ public function trigger(): string|bool 'variables' => $this->variables, 'attachment' => $this->attachment, 'events' => Event::generateEvents($this->getEvent(), $this->getParams()) - ]); + ]; } } diff --git a/src/Appwrite/Event/Messaging.php b/src/Appwrite/Event/Messaging.php index f97ff02d21f..3ddbac10401 100644 --- a/src/Appwrite/Event/Messaging.php +++ b/src/Appwrite/Event/Messaging.php @@ -3,8 +3,7 @@ namespace Appwrite\Event; use Utopia\Database\Document; -use Utopia\Queue\Client; -use Utopia\Queue\Connection; +use Utopia\Queue\Publisher; class Messaging extends Event { @@ -15,9 +14,9 @@ class Messaging extends Event protected ?string $scheduledAt = null; protected ?string $providerType = null; - public function __construct(protected Connection $connection) + public function __construct(protected Publisher $publisher) { - parent::__construct($connection); + parent::__construct($publisher); $this ->setQueue(Event::MESSAGING_QUEUE_NAME) @@ -27,7 +26,7 @@ public function __construct(protected Connection $connection) /** * Sets type for the build event. * - * @param string $type Can be `MESSAGE_TYPE_INTERNAL` or `MESSAGE_TYPE_EXTERNAL`. + * @param string $type Can be `MESSAGE_SEND_TYPE_INTERNAL` or `MESSAGE_SEND_TYPE_EXTERNAL`. * @return self */ public function setType(string $type): self @@ -176,15 +175,13 @@ public function setProject(Document $project): self } /** - * Executes the event and sends it to the messaging worker. - * @return string|bool - * @throws \InvalidArgumentException + * Prepare the payload for the event + * + * @return array */ - public function trigger(): string | bool + protected function preparePayload(): array { - $client = new Client($this->queue, $this->connection); - - return $client->enqueue([ + return [ 'type' => $this->type, 'project' => $this->project, 'user' => $this->user, @@ -192,6 +189,6 @@ public function trigger(): string | bool 'message' => $this->message, 'recipients' => $this->recipients, 'providerType' => $this->providerType, - ]); + ]; } } diff --git a/src/Appwrite/Event/Migration.php b/src/Appwrite/Event/Migration.php index 478291829b9..bbb8d77c73b 100644 --- a/src/Appwrite/Event/Migration.php +++ b/src/Appwrite/Event/Migration.php @@ -3,17 +3,16 @@ namespace Appwrite\Event; use Utopia\Database\Document; -use Utopia\Queue\Client; -use Utopia\Queue\Connection; +use Utopia\Queue\Publisher; class Migration extends Event { protected string $type = ''; protected ?Document $migration = null; - public function __construct(protected Connection $connection) + public function __construct(protected Publisher $publisher) { - parent::__construct($connection); + parent::__construct($publisher); $this ->setQueue(Event::MIGRATIONS_QUEUE_NAME) @@ -68,20 +67,16 @@ public function getType(): string } /** - * Executes the migration event and sends it to the migrations worker. + * Prepare the payload for the migration event. * - * @return string|bool - * @throws \InvalidArgumentException + * @return array */ - public function trigger(): string|bool + protected function preparePayload(): array { - - $client = new Client($this->queue, $this->connection); - - return $client->enqueue([ + return [ 'project' => $this->project, 'user' => $this->user, - 'migration' => $this->migration - ]); + 'migration' => $this->migration, + ]; } } diff --git a/src/Appwrite/Event/Realtime.php b/src/Appwrite/Event/Realtime.php new file mode 100644 index 00000000000..b77df580f84 --- /dev/null +++ b/src/Appwrite/Event/Realtime.php @@ -0,0 +1,112 @@ +<?php + +namespace Appwrite\Event; + +use Appwrite\Messaging\Adapter; +use Appwrite\Messaging\Adapter\Realtime as RealtimeAdapter; +use Utopia\Database\Document; +use Utopia\Database\Exception; + +class Realtime extends Event +{ + protected array $subscribers = []; + + private Adapter $realtime; + + protected bool $critical = false; + + public function __construct() + { + $this->realtime = new Adapter\Realtime(); + } + + /** + * Get Realtime payload for this event. + * + * @return array + */ + public function getRealtimePayload(): array + { + $payload = []; + + foreach ($this->payload as $key => $value) { + if (!isset($this->sensitive[$key])) { + $payload[$key] = $value; + } + } + + return $payload; + } + + /** + * Set subscribers for this realtime event. + * + * @param array $subscribers + * @return array + */ + public function setSubscribers(array $subscribers): self + { + $this->subscribers = $subscribers; + return $this; + } + + /** + * Get subscribers for this realtime event. + * + * @return array + */ + public function getSubscribers(): array + { + return $this->subscribers; + } + + /** + * Execute Event. + * + * @return string|bool + * @throws Exception + */ + public function trigger(): string|bool + { + if ($this->paused || empty($this->event)) { + return false; + } + + $allEvents = Event::generateEvents($this->getEvent(), $this->getParams()); + $payload = new Document($this->getPayload()); + + $db = $this->getContext('database'); + $collection = $this->getContext('collection'); + $bucket = $this->getContext('bucket'); + + $target = RealtimeAdapter::fromPayload( + // Pass first, most verbose event pattern + event: $allEvents[0], + payload: $payload, + project: $this->getProject(), + database: $db, + collection: $collection, + bucket: $bucket, + ); + + $projectIds = !empty($this->getSubscribers()) + ? $this->getSubscribers() + : [$target['projectId'] ?? $this->getProject()->getId()]; + + foreach ($projectIds as $projectId) { + $this->realtime->send( + projectId: $projectId, + payload: $this->getRealtimePayload(), + events: $allEvents, + channels: $target['channels'], + roles: $target['roles'], + options: [ + 'permissionsChanged' => $target['permissionsChanged'], + 'userId' => $this->getParam('userId') + ] + ); + } + + return true; + } +} diff --git a/src/Appwrite/Event/StatsResources.php b/src/Appwrite/Event/StatsResources.php new file mode 100644 index 00000000000..c4f7ac16906 --- /dev/null +++ b/src/Appwrite/Event/StatsResources.php @@ -0,0 +1,31 @@ +<?php + +namespace Appwrite\Event; + +use Utopia\Queue\Publisher; + +class StatsResources extends Event +{ + protected bool $critical = false; + + public function __construct(protected Publisher $publisher) + { + parent::__construct($publisher); + + $this + ->setQueue(Event::STATS_RESOURCES_QUEUE_NAME) + ->setClass(Event::STATS_RESOURCES_CLASS_NAME); + } + + /** + * Prepare the payload for the usage event. + * + * @return array + */ + protected function preparePayload(): array + { + return [ + 'project' => $this->project + ]; + } +} diff --git a/src/Appwrite/Event/StatsUsage.php b/src/Appwrite/Event/StatsUsage.php new file mode 100644 index 00000000000..f6b1d695f43 --- /dev/null +++ b/src/Appwrite/Event/StatsUsage.php @@ -0,0 +1,88 @@ +<?php + +namespace Appwrite\Event; + +use Utopia\Database\Document; +use Utopia\Queue\Publisher; + +class StatsUsage extends Event +{ + protected array $metrics = []; + protected array $reduce = []; + protected array $disabled = []; + + protected bool $critical = false; + + public function __construct(protected Publisher $publisher) + { + parent::__construct($publisher); + + $this + ->setQueue(Event::STATS_USAGE_QUEUE_NAME) + ->setClass(Event::STATS_USAGE_CLASS_NAME); + } + + /** + * Add reduce. + * + * @param Document $document + * @return self + */ + public function addReduce(Document $document): self + { + $this->reduce[] = $document; + + return $this; + } + + /** + * Add metric. + * + * @param string $key + * @param int $value + * @return self + */ + public function addMetric(string $key, int $value): self + { + $this->metrics[] = [ + 'key' => $key, + 'value' => $value, + ]; + + return $this; + } + + /** + * Set disabled metrics. + * + * @param string $key + * @return self + */ + public function disableMetric(string $key): self + { + $this->disabled[] = $key; + + return $this; + } + + /** + * Prepare the payload for the event + * + * @return array + */ + protected function preparePayload(): array + { + return [ + 'project' => $this->getProject(), + 'reduce' => $this->reduce, + 'metrics' => \array_filter($this->metrics, function ($metric) { + foreach ($this->disabled as $disabledMetric) { + if (\str_ends_with($metric['key'], $disabledMetric)) { + return false; + } + } + return true; + }), + ]; + } +} diff --git a/src/Appwrite/Event/Usage.php b/src/Appwrite/Event/Usage.php deleted file mode 100644 index 4426f4ab1bf..00000000000 --- a/src/Appwrite/Event/Usage.php +++ /dev/null @@ -1,67 +0,0 @@ -<?php - -namespace Appwrite\Event; - -use Utopia\Database\Document; -use Utopia\Queue\Client; -use Utopia\Queue\Connection; - -class Usage extends Event -{ - protected array $metrics = []; - protected array $reduce = []; - - public function __construct(protected Connection $connection) - { - parent::__construct($connection); - - $this - ->setQueue(Event::USAGE_QUEUE_NAME) - ->setClass(Event::USAGE_CLASS_NAME); - } - - /** - * Add reduce. - * - * @param Document $document - * @return self - */ - public function addReduce(Document $document): self - { - $this->reduce[] = $document; - - return $this; - } - - /** - * Add metric. - * - * @param string $key - * @param int $value - * @return self - */ - public function addMetric(string $key, int $value): self - { - $this->metrics[] = [ - 'key' => $key, - 'value' => $value, - ]; - - return $this; - } - - /** - * Sends metrics to the usage worker. - * - * @return string|bool - */ - public function trigger(): string|bool - { - $client = new Client($this->queue, $this->connection); - return $client->enqueue([ - 'project' => $this->getProject(), - 'reduce' => $this->reduce, - 'metrics' => $this->metrics, - ]); - } -} diff --git a/src/Appwrite/Event/UsageDump.php b/src/Appwrite/Event/UsageDump.php deleted file mode 100644 index 8f879088496..00000000000 --- a/src/Appwrite/Event/UsageDump.php +++ /dev/null @@ -1,47 +0,0 @@ -<?php - -namespace Appwrite\Event; - -use Utopia\Queue\Client; -use Utopia\Queue\Connection; - -class UsageDump extends Event -{ - protected array $stats; - - public function __construct(protected Connection $connection) - { - parent::__construct($connection); - - $this - ->setQueue(Event::USAGE_DUMP_QUEUE_NAME) - ->setClass(Event::USAGE_DUMP_CLASS_NAME); - } - - /** - * Add Stats. - * - * @param array $stats - * @return self - */ - public function setStats(array $stats): self - { - $this->stats = $stats; - - return $this; - } - - /** - * Sends metrics to the usage worker. - * - * @return string|bool - */ - public function trigger(): string|bool - { - $client = new Client($this->queue, $this->connection); - - return $client->enqueue([ - 'stats' => $this->stats, - ]); - } -} diff --git a/src/Appwrite/Event/Webhook.php b/src/Appwrite/Event/Webhook.php new file mode 100644 index 00000000000..5cc65758ee4 --- /dev/null +++ b/src/Appwrite/Event/Webhook.php @@ -0,0 +1,31 @@ +<?php + +namespace Appwrite\Event; + +use Utopia\Queue\Publisher; + +class Webhook extends Event +{ + public function __construct(protected Publisher $publisher) + { + parent::__construct($publisher); + + $this + ->setQueue(Event::WEBHOOK_QUEUE_NAME) + ->setClass(Event::WEBHOOK_CLASS_NAME); + } + + /** + * Trim the payload for the webhook event. + * + * @return array + */ + public function trimPayload(): array + { + $trimmed = parent::trimPayload(); + if (isset($this->context)) { + $trimmed['context'] = []; + } + return $trimmed; + } +} diff --git a/src/Appwrite/Extend/Exception.php b/src/Appwrite/Extend/Exception.php index d25332126ce..2db5a840bc0 100644 --- a/src/Appwrite/Extend/Exception.php +++ b/src/Appwrite/Extend/Exception.php @@ -39,6 +39,7 @@ class Exception extends \Exception public const GENERAL_UNKNOWN = 'general_unknown'; public const GENERAL_MOCK = 'general_mock'; public const GENERAL_ACCESS_FORBIDDEN = 'general_access_forbidden'; + public const GENERAL_RESOURCE_BLOCKED = 'general_resource_blocked'; public const GENERAL_UNKNOWN_ORIGIN = 'general_unknown_origin'; public const GENERAL_API_DISABLED = 'general_api_disabled'; public const GENERAL_SERVICE_DISABLED = 'general_service_disabled'; @@ -111,7 +112,6 @@ class Exception extends \Exception /** Teams */ public const TEAM_NOT_FOUND = 'team_not_found'; - public const TEAM_INVITE_ALREADY_EXISTS = 'team_invite_already_exists'; public const TEAM_INVITE_NOT_FOUND = 'team_invite_not_found'; public const TEAM_INVALID_SECRET = 'team_invalid_secret'; public const TEAM_MEMBERSHIP_MISMATCH = 'team_membership_mismatch'; @@ -175,6 +175,7 @@ class Exception extends \Exception public const DATABASE_NOT_FOUND = 'database_not_found'; public const DATABASE_ALREADY_EXISTS = 'database_already_exists'; public const DATABASE_TIMEOUT = 'database_timeout'; + public const DATABASE_QUERY_ORDER_NULL = 'database_query_order_null'; /** Collections */ public const COLLECTION_NOT_FOUND = 'collection_not_found'; @@ -210,6 +211,7 @@ class Exception extends \Exception public const INDEX_LIMIT_EXCEEDED = 'index_limit_exceeded'; public const INDEX_ALREADY_EXISTS = 'index_already_exists'; public const INDEX_INVALID = 'index_invalid'; + public const INDEX_DEPENDENCY = 'index_dependency'; /** Projects */ public const PROJECT_NOT_FOUND = 'project_not_found'; diff --git a/src/Appwrite/Functions/Validator/RuntimeSpecification.php b/src/Appwrite/Functions/Validator/RuntimeSpecification.php index 22311838f67..b9185d832a6 100644 --- a/src/Appwrite/Functions/Validator/RuntimeSpecification.php +++ b/src/Appwrite/Functions/Validator/RuntimeSpecification.php @@ -34,7 +34,7 @@ public function getAllowedSpecifications(): array $allowedSpecifications = []; foreach ($this->specifications as $size => $values) { - if ($values['cpus'] <= $this->maxCpus && $values['memory'] <= $this->maxMemory) { + if ((empty($this->maxCpus) || $values['cpus'] <= $this->maxCpus) && (empty($this->maxMemory) || $values['memory'] <= $this->maxMemory)) { if (!empty($this->plan) && array_key_exists('runtimeSpecifications', $this->plan)) { if (!\in_array($size, $this->plan['runtimeSpecifications'])) { continue; diff --git a/src/Appwrite/GraphQL/Schema.php b/src/Appwrite/GraphQL/Schema.php index 833ea9d0323..a0d93de45c6 100644 --- a/src/Appwrite/GraphQL/Schema.php +++ b/src/Appwrite/GraphQL/Schema.php @@ -98,27 +98,36 @@ protected static function api(App $utopia, callable $complexity): array foreach ($routes as $route) { /** @var Route $route */ - $namespace = $route->getLabel('sdk.namespace', ''); - $method = $route->getLabel('sdk.method', ''); - $name = $namespace . \ucfirst($method); + /** @var \Appwrite\SDK\Method $sdk */ + $sdk = $route->getLabel('sdk', false); - if (empty($name)) { + if (empty($sdk)) { continue; } - foreach (Mapper::route($utopia, $route, $complexity) as $field) { - switch ($route->getMethod()) { - case 'GET': - $queries[$name] = $field; - break; - case 'POST': - case 'PUT': - case 'PATCH': - case 'DELETE': - $mutations[$name] = $field; - break; - default: - throw new \Exception("Unsupported method: {$route->getMethod()}"); + if (!\is_array($sdk)) { + $sdk = [$sdk]; + } + + foreach ($sdk as $method) { + $namespace = $method->getNamespace(); + $methodName = $method->getMethodName(); + $name = $namespace . \ucfirst($methodName); + + foreach (Mapper::route($utopia, $route, $method, $complexity) as $field) { + switch ($route->getMethod()) { + case 'GET': + $queries[$name] = $field; + break; + case 'POST': + case 'PUT': + case 'PATCH': + case 'DELETE': + $mutations[$name] = $field; + break; + default: + throw new \Exception("Unsupported method: {$route->getMethod()}"); + } } } } diff --git a/src/Appwrite/GraphQL/Types/Mapper.php b/src/Appwrite/GraphQL/Types/Mapper.php index 36b246b28b4..3c7915bc96e 100644 --- a/src/Appwrite/GraphQL/Types/Mapper.php +++ b/src/Appwrite/GraphQL/Types/Mapper.php @@ -4,6 +4,7 @@ use Appwrite\GraphQL\Resolvers; use Appwrite\GraphQL\Types; +use Appwrite\SDK\Method; use Exception; use GraphQL\Type\Definition\ObjectType; use GraphQL\Type\Definition\Type; @@ -50,6 +51,7 @@ public static function init(array $models): void $defaults = [ 'boolean' => Type::boolean(), 'string' => Type::string(), + 'payload' => Type::string(), 'integer' => Type::int(), 'double' => Type::float(), 'datetime' => Type::string(), @@ -77,6 +79,7 @@ public static function args(string $key): array public static function route( App $utopia, Route $route, + Method $method, callable $complexity ): iterable { foreach (self::$blacklist as $blacklist) { @@ -85,10 +88,27 @@ public static function route( } } - $names = $route->getLabel('sdk.response.model', 'none'); - $models = \is_array($names) - ? \array_map(static fn ($m) => static::$models[$m], $names) - : [static::$models[$names]]; + $responses = $method->getResponses() ?? []; + + // If responses is an array, map each response to its model + if (\is_array($responses)) { + $models = []; + foreach ($responses as $response) { + $modelName = $response->getModel(); + + if (\is_array($modelName)) { + foreach ($modelName as $name) { + $models[] = static::$models[$name]; + } + } else { + $models[] = static::$models[$modelName]; + } + } + } else { + // If single response, get its model and wrap in array + $modelName = $responses->getModel(); + $models = [static::$models[$modelName]]; + } foreach ($models as $model) { $type = Mapper::model(\ucfirst($model->getType())); @@ -97,13 +117,31 @@ public static function route( $list = false; foreach ($route->getParams() as $name => $parameter) { + $sdkParameters = $method->getParameters(); + + if (!empty($sdkParameters)) { + $sdkMethodParameters = []; + foreach ($sdkParameters as $sdkParameter) { + $sdkMethodParameters[$sdkParameter->getName()] = $sdkParameter; + } + + if (!\array_key_exists($name, $sdkMethodParameters)) { + continue; + } + + $optional = $sdkMethodParameters[$name]->getOptional(); + } else { + $optional = $parameter['optional']; + } + if ($name === 'queries') { $list = true; } + $parameterType = Mapper::param( $utopia, $parameter['validator'], - !$parameter['optional'], + !$optional, $parameter['injections'] ); $params[$name] = [ diff --git a/src/Appwrite/Messaging/Adapter.php b/src/Appwrite/Messaging/Adapter.php index 27dd7f68eb4..40169bd1a94 100644 --- a/src/Appwrite/Messaging/Adapter.php +++ b/src/Appwrite/Messaging/Adapter.php @@ -6,5 +6,5 @@ abstract class Adapter { abstract public function subscribe(string $projectId, mixed $identifier, array $roles, array $channels): void; abstract public function unsubscribe(mixed $identifier): void; - abstract public static function send(string $projectId, array $payload, array $events, array $channels, array $roles, array $options): void; + abstract public function send(string $projectId, array $payload, array $events, array $channels, array $roles, array $options): void; } diff --git a/src/Appwrite/Messaging/Adapter/Realtime.php b/src/Appwrite/Messaging/Adapter/Realtime.php index 55d8db2924a..be263aa6550 100644 --- a/src/Appwrite/Messaging/Adapter/Realtime.php +++ b/src/Appwrite/Messaging/Adapter/Realtime.php @@ -2,14 +2,14 @@ namespace Appwrite\Messaging\Adapter; -use Appwrite\Messaging\Adapter; +use Appwrite\Messaging\Adapter as MessagingAdapter; +use Appwrite\PubSub\Adapter\Pool as PubSubPool; use Utopia\Database\DateTime; use Utopia\Database\Document; use Utopia\Database\Helpers\ID; use Utopia\Database\Helpers\Role; -use Utopia\System\System; -class Realtime extends Adapter +class Realtime extends MessagingAdapter { /** * Connection Tree @@ -36,6 +36,14 @@ class Realtime extends Adapter */ public array $subscriptions = []; + private PubSubPool $pubSubPool; + + public function __construct() + { + global $register; + $this->pubSubPool = new PubSubPool($register->get('pools')->get('pubsub')); + } + /** * Adds a subscription. * @@ -124,13 +132,14 @@ public function hasSubscriber(string $projectId, string $role, string $channel = * Sends an event to the Realtime Server * @param string $projectId * @param array $payload - * @param string $event + * @param array $events * @param array $channels * @param array $roles * @param array $options * @return void + * @throws \Exception */ - public static function send(string $projectId, array $payload, array $events, array $channels, array $roles, array $options = []): void + public function send(string $projectId, array $payload, array $events, array $channels, array $roles, array $options = []): void { if (empty($channels) || empty($roles) || empty($projectId)) { return; @@ -139,9 +148,7 @@ public static function send(string $projectId, array $payload, array $events, ar $permissionsChanged = array_key_exists('permissionsChanged', $options) && $options['permissionsChanged']; $userId = array_key_exists('userId', $options) ? $options['userId'] : null; - $redis = new \Redis(); //TODO: make this part of the constructor - $redis->connect(System::getEnv('_APP_REDIS_HOST', ''), System::getEnv('_APP_REDIS_PORT', '')); - $redis->publish('realtime', json_encode([ + $this->pubSubPool->publish('realtime', json_encode([ 'project' => $projectId, 'roles' => $roles, 'permissionsChanged' => $permissionsChanged, @@ -167,8 +174,9 @@ public static function send(string $projectId, array $payload, array $events, ar * - 1,121.328 ms (±0.84%) | 1,000,000 Connections / 10,000,000 Subscriptions * * @param array $event + * @return int[]|string[] */ - public function getSubscribers(array $event) + public function getSubscribers(array $event): array { $receivers = []; @@ -222,7 +230,7 @@ public static function convertChannels(array $channels, string $userId): array foreach ($channels as $key => $value) { switch (true) { - case strpos($key, 'account.') === 0: + case \str_starts_with($key, 'account.'): unset($channels[$key]); break; @@ -243,7 +251,11 @@ public static function convertChannels(array $channels, string $userId): array * @param string $event * @param Document $payload * @param Document|null $project + * @param Document|null $database + * @param Document|null $collection + * @param Document|null $bucket * @return array + * @throws \Exception */ public static function fromPayload(string $event, Document $payload, Document $project = null, Document $database = null, Document $collection = null, Document $bucket = null): array { @@ -260,8 +272,16 @@ public static function fromPayload(string $event, Document $payload, Document $p $channels[] = 'account.' . $parts[1]; $roles = [Role::user(ID::custom($parts[1]))->toString()]; break; + case 'migrations': case 'rules': $channels[] = 'console'; + $channels[] = 'projects.' . $project->getId(); + $projectId = 'console'; + $roles = [Role::team($project->getAttribute('teamId'))->toString()]; + break; + case 'projects': + $channels[] = 'console'; + $channels[] = 'projects.' . $parts[1]; $projectId = 'console'; $roles = [Role::team($project->getAttribute('teamId'))->toString()]; break; @@ -280,6 +300,7 @@ public static function fromPayload(string $event, Document $payload, Document $p case 'databases': if (in_array($parts[4] ?? [], ['attributes', 'indexes'])) { $channels[] = 'console'; + $channels[] = 'projects.' . $project->getId(); $projectId = 'console'; $roles = [Role::team($project->getAttribute('teamId'))->toString()]; } elseif (($parts[4] ?? '') === 'documents') { @@ -319,6 +340,7 @@ public static function fromPayload(string $event, Document $payload, Document $p if ($parts[2] === 'executions') { if (!empty($payload->getRead())) { $channels[] = 'console'; + $channels[] = 'projects.' . $project->getId(); $channels[] = 'executions'; $channels[] = 'executions.' . $payload->getId(); $channels[] = 'functions.' . $payload->getAttribute('functionId'); @@ -326,15 +348,11 @@ public static function fromPayload(string $event, Document $payload, Document $p } } elseif ($parts[2] === 'deployments') { $channels[] = 'console'; + $channels[] = 'projects.' . $project->getId(); $projectId = 'console'; $roles = [Role::team($project->getAttribute('teamId'))->toString()]; } - break; - case 'migrations': - $channels[] = 'console'; - $projectId = 'console'; - $roles = [Role::team($project->getAttribute('teamId'))->toString()]; break; } diff --git a/src/Appwrite/Migration/Migration.php b/src/Appwrite/Migration/Migration.php index cee1b2d2635..1e3625b5a39 100644 --- a/src/Appwrite/Migration/Migration.php +++ b/src/Appwrite/Migration/Migration.php @@ -9,6 +9,7 @@ use Utopia\Database\Database; use Utopia\Database\Document; use Utopia\Database\Helpers\ID; +use Utopia\Database\PDO; use Utopia\Database\Query; use Utopia\Database\Validator\Authorization; use Utopia\System\System; @@ -38,9 +39,9 @@ abstract class Migration protected Database $consoleDB; /** - * @var \PDO + * @var PDO */ - protected \PDO $pdo; + protected PDO $pdo; /** * @var array @@ -91,6 +92,8 @@ abstract class Migration '1.5.10' => 'V20', '1.5.11' => 'V20', '1.6.0' => 'V21', + '1.6.1' => 'V21', + '1.6.2' => 'V21', ]; /** @@ -144,10 +147,10 @@ public function setProject(Document $project, Database $projectDB, Database $con /** * Set PDO for Migration. * - * @param \PDO $pdo + * @param PDO $pdo * @return \Appwrite\Migration\Migration */ - public function setPDO(\PDO $pdo): self + public function setPDO(PDO $pdo): self { $this->pdo = $pdo; @@ -372,6 +375,10 @@ public function createIndexFromCollection(Database $database, string $collection default => 'projects', }; + if ($from === 'files') { + $collectionType = 'buckets'; + } + $collection = $this->collections[$collectionType][$from] ?? null; if (is_null($collection)) { diff --git a/src/Appwrite/Migration/Version/V19.php b/src/Appwrite/Migration/Version/V19.php index 18234ebdc44..4415003bfd5 100644 --- a/src/Appwrite/Migration/Version/V19.php +++ b/src/Appwrite/Migration/Version/V19.php @@ -10,7 +10,6 @@ use Utopia\Database\Document; use Utopia\Database\Exception; use Utopia\Database\Query; -use Utopia\System\System; class V19 extends Migration { @@ -731,7 +730,7 @@ protected function fixDocument(Document $document): Document if (empty($document->getAttribute('scheduleId', null))) { $schedule = $this->consoleDB->createDocument('schedules', new Document([ - 'region' => System::getEnv('_APP_REGION', 'default'), // Todo replace with projects region + 'region' => $project->getAttribute('region'), 'resourceType' => 'function', 'resourceId' => $document->getId(), 'resourceInternalId' => $document->getInternalId(), diff --git a/src/Appwrite/Migration/Version/V21.php b/src/Appwrite/Migration/Version/V21.php index 51e8a18b9d9..c072c81a34d 100644 --- a/src/Appwrite/Migration/Version/V21.php +++ b/src/Appwrite/Migration/Version/V21.php @@ -74,6 +74,27 @@ private function migrateCollections(): void Console::warning("'accessedAt' from {$id}: {$th->getMessage()}"); } break; + case 'rules': + $attributesToCreate = ['owner', 'region']; + foreach ($attributesToCreate as $attribute) { + // Create attribute + try { + $this->createAttributeFromCollection($this->projectDB, $id, $attribute); + } catch (Throwable $th) { + Console::warning("'$attribute' from {$id}: {$th->getMessage()}"); + } + } + + $indexesToCreate = ['_key_owner', '_key_region']; + foreach ($indexesToCreate as $index) { + // Create index + try { + $this->createIndexFromCollection($this->projectDB, $id, $index); + } catch (Throwable $th) { + Console::warning("'$index' from {$id}: {$th->getMessage()}"); + } + } + break; case 'platforms': // Increase 'type' length to 255 try { @@ -82,6 +103,25 @@ private function migrateCollections(): void Console::warning("'type' from {$id}: {$th->getMessage()}"); } break; + case 'installations': + $attributesToCreate = ['personalAccessToken', 'personalAccessTokenExpiry', 'personalRefreshToken']; + foreach ($attributesToCreate as $attribute) { + // Create attribute + try { + $this->createAttributeFromCollection($this->projectDB, $id, $attribute); + } catch (Throwable $th) { + Console::warning("'$attribute' from {$id}: {$th->getMessage()}"); + } + } + break; + case 'migrations': + // Create destination attribute + try { + $this->createAttributeFromCollection($this->projectDB, $id, 'destination'); + } catch (Throwable $th) { + Console::warning("'destination' from {$id}: {$th->getMessage()}"); + } + break; case 'schedules': // Create data attribute try { @@ -91,7 +131,14 @@ private function migrateCollections(): void } break; - + case 'databases': + // Create originalId attribute + try { + $this->createAttributeFromCollection($this->projectDB, $id, 'originalId'); + } catch (Throwable $th) { + Console::warning("'originalId' from {$id}: {$th->getMessage()}"); + } + break; case 'functions': // Create scopes attribute try { @@ -182,11 +229,15 @@ protected function fixDocument(Document $document): Document $document->setAttribute('accessedAt', DateTime::now()); break; case 'functions': - // Add scopes attribute - $document->setAttribute('scopes', []); + // Set scopes attribute + if (empty($document->getAttribute('scopes', []))) { + $document->setAttribute('scopes', []); + } - // Add size attribute - $document->setAttribute('specification', APP_FUNCTION_SPECIFICATION_DEFAULT); + // Set specification attribute + if (empty($document->getAttribute('specification'))) { + $document->setAttribute('specification', APP_FUNCTION_SPECIFICATION_DEFAULT); + } } return $document; @@ -202,11 +253,30 @@ private function migrateBuckets(): void foreach ($this->documentsIterator('buckets') as $bucket) { $bucketId = 'bucket_' . $bucket['$internalId']; + Console::log("Migrating Bucket {$bucketId} {$bucket->getId()} ({$bucket->getAttribute('name')})"); + try { $this->projectDB->updateAttribute($bucketId, 'metadata', size: 65534); + } catch (\Throwable $th) { + Console::warning("'metadata' from {$bucketId}: {$th->getMessage()}"); + } + + try { + $this->createAttributeFromCollection($this->projectDB, $bucketId, 'transformedAt', 'files'); + } catch (\Throwable $th) { + Console::warning("'transformedAt' from {$bucketId}: {$th->getMessage()}"); + } + + try { + $this->createIndexFromCollection($this->projectDB, $bucketId, '_key_transformedAt', 'files'); + } catch (\Throwable $th) { + Console::warning("'_key_transformedAt' from {$bucketId}: {$th->getMessage()}"); + } + + try { $this->projectDB->purgeCachedCollection($bucketId); } catch (\Throwable $th) { - Console::warning("'bucketId' from {$bucketId}: {$th->getMessage()}"); + Console::warning("purging {$bucketId}: {$th->getMessage()}"); } } } diff --git a/src/Appwrite/Platform/Action.php b/src/Appwrite/Platform/Action.php new file mode 100644 index 00000000000..72c41582ea5 --- /dev/null +++ b/src/Appwrite/Platform/Action.php @@ -0,0 +1,90 @@ +<?php + +namespace Appwrite\Platform; + +use Swoole\Coroutine as Co; +use Utopia\Database\Database; +use Utopia\Database\Query; +use Utopia\Platform\Action as UtopiaAction; + +class Action extends UtopiaAction +{ + /** + * Log Error Callback + * + * @var callable + */ + protected mixed $logError; + + /** + * Foreach Document + * Call provided callback for each document in the collection + * + * @param string $projectId + * @param string $collection + * @param array $queries + * @param callable $callback + * + * @return void + */ + protected function foreachDocument(Database $database, string $collection, array $queries = [], callable $callback = null, int $limit = 1000, bool $concurrent = false): void + { + $results = []; + $sum = $limit; + $latestDocument = null; + + while ($sum === $limit) { + $newQueries = $queries; + try { + if ($latestDocument !== null) { + array_unshift($newQueries, Query::cursorAfter($latestDocument)); + } + $newQueries[] = Query::limit($limit); + $database->disableValidation(); + $results = $database->find($collection, $newQueries); + $database->enableValidation(); + } catch (\Exception $e) { + if (!empty($this->logError)) { + call_user_func_array($this->logError, [$e, "CLI", "fetch_documents_namespace_{$database->getNamespace()}_collection{$collection}"]); + } + } + + if (empty($results)) { + return; + } + + $sum = count($results); + + if ($concurrent) { + $callables = []; + $errors = []; + + foreach ($results as $document) { + if (is_callable($callback)) { + $callables[] = Co\go(function () use ($document, $callback, &$errors) { + try { + $callback($document); + } catch (\Throwable $error) { + $errors[] = $error; + } + }); + } + } + + Co::join($callables); + + if (!empty($errors)) { + throw new \Error("Errors found in concurrent foreachDocument: " . \json_encode($errors)); + } + } else { + foreach ($results as $document) { + if (is_callable($callback)) { + $callback($document); + } + } + } + + $latestDocument = $results[array_key_last($results)]; + } + } +} diff --git a/src/Appwrite/Platform/Services/Tasks.php b/src/Appwrite/Platform/Services/Tasks.php index 7a0d5b60ac8..6a6cb3237a4 100644 --- a/src/Appwrite/Platform/Services/Tasks.php +++ b/src/Appwrite/Platform/Services/Tasks.php @@ -6,7 +6,6 @@ use Appwrite\Platform\Tasks\Install; use Appwrite\Platform\Tasks\Maintenance; use Appwrite\Platform\Tasks\Migrate; -use Appwrite\Platform\Tasks\QueueCount; use Appwrite\Platform\Tasks\QueueRetry; use Appwrite\Platform\Tasks\ScheduleExecutions; use Appwrite\Platform\Tasks\ScheduleFunctions; @@ -14,6 +13,7 @@ use Appwrite\Platform\Tasks\SDKs; use Appwrite\Platform\Tasks\Specs; use Appwrite\Platform\Tasks\SSL; +use Appwrite\Platform\Tasks\StatsResources; use Appwrite\Platform\Tasks\Upgrade; use Appwrite\Platform\Tasks\Vars; use Appwrite\Platform\Tasks\Version; @@ -29,7 +29,6 @@ public function __construct() ->addAction(Install::getName(), new Install()) ->addAction(Maintenance::getName(), new Maintenance()) ->addAction(Migrate::getName(), new Migrate()) - ->addAction(QueueCount::getName(), new QueueCount()) ->addAction(QueueRetry::getName(), new QueueRetry()) ->addAction(SDKs::getName(), new SDKs()) ->addAction(SSL::getName(), new SSL()) @@ -40,6 +39,7 @@ public function __construct() ->addAction(Upgrade::getName(), new Upgrade()) ->addAction(Vars::getName(), new Vars()) ->addAction(Version::getName(), new Version()) + ->addAction(StatsResources::getName(), new StatsResources()) ; } } diff --git a/src/Appwrite/Platform/Services/Workers.php b/src/Appwrite/Platform/Services/Workers.php index 0e79f4257cc..eb544c140e2 100644 --- a/src/Appwrite/Platform/Services/Workers.php +++ b/src/Appwrite/Platform/Services/Workers.php @@ -11,8 +11,8 @@ use Appwrite\Platform\Workers\Mails; use Appwrite\Platform\Workers\Messaging; use Appwrite\Platform\Workers\Migrations; -use Appwrite\Platform\Workers\Usage; -use Appwrite\Platform\Workers\UsageDump; +use Appwrite\Platform\Workers\StatsResources; +use Appwrite\Platform\Workers\StatsUsage; use Appwrite\Platform\Workers\Webhooks; use Utopia\Platform\Service; @@ -31,10 +31,9 @@ public function __construct() ->addAction(Mails::getName(), new Mails()) ->addAction(Messaging::getName(), new Messaging()) ->addAction(Webhooks::getName(), new Webhooks()) - ->addAction(UsageDump::getName(), new UsageDump()) - ->addAction(Usage::getName(), new Usage()) + ->addAction(StatsUsage::getName(), new StatsUsage()) ->addAction(Migrations::getName(), new Migrations()) - + ->addAction(StatsResources::getName(), new StatsResources()) ; } } diff --git a/src/Appwrite/Platform/Tasks/Doctor.php b/src/Appwrite/Platform/Tasks/Doctor.php index 82d1ca2d593..5263133eba6 100644 --- a/src/Appwrite/Platform/Tasks/Doctor.php +++ b/src/Appwrite/Platform/Tasks/Doctor.php @@ -3,13 +3,19 @@ namespace Appwrite\Platform\Tasks; use Appwrite\ClamAV\Network; +use Appwrite\PubSub\Adapter\Pool as PubSubPool; +use PHPMailer\PHPMailer\PHPMailer; use Utopia\App; +use Utopia\Cache\Adapter\Pool as CachePool; use Utopia\CLI\Console; use Utopia\Config\Config; +use Utopia\Database\Adapter\Pool as DatabasePool; use Utopia\Domains\Domain; use Utopia\DSN\DSN; use Utopia\Logger\Logger; use Utopia\Platform\Action; +use Utopia\Pools\Group; +use Utopia\Queue\Broker\Pool as BrokerPool; use Utopia\Registry\Registry; use Utopia\Storage\Device\Local; use Utopia\Storage\Storage; @@ -75,9 +81,9 @@ public function action(Registry $register): void Console::log('🟢 Abuse protection is enabled'); } - $authWhitelistRoot = System::getEnv('_APP_CONSOLE_WHITELIST_ROOT', null); - $authWhitelistEmails = System::getEnv('_APP_CONSOLE_WHITELIST_EMAILS', null); - $authWhitelistIPs = System::getEnv('_APP_CONSOLE_WHITELIST_IPS', null); + $authWhitelistRoot = System::getEnv('_APP_CONSOLE_WHITELIST_ROOT'); + $authWhitelistEmails = System::getEnv('_APP_CONSOLE_WHITELIST_EMAILS'); + $authWhitelistIPs = System::getEnv('_APP_CONSOLE_WHITELIST_IPS'); if ( empty($authWhitelistRoot) @@ -113,19 +119,16 @@ public function action(Registry $register): void } else { Console::log('🟢 Logging adapter is enabled (' . $providerName . ')'); } - } catch (\Throwable $th) { + } catch (\Throwable) { Console::log('🔴 Logging adapter is misconfigured'); } \usleep(200 * 1000); // Sleep for 0.2 seconds - try { - Console::log("\n" . '[Connectivity]'); - } catch (\Throwable $th) { - //throw $th; - } + Console::log("\n" . '[Connectivity]'); - $pools = $register->get('pools'); /** @var \Utopia\Pools\Group $pools */ + /** @var Group $pools */ + $pools = $register->get('pools'); $configs = [ 'Console.DB' => Config::getParam('pools-console'), @@ -135,20 +138,22 @@ public function action(Registry $register): void foreach ($configs as $key => $config) { foreach ($config as $database) { try { - $adapter = $pools->get($database)->pop()->getResource(); + $adapter = new DatabasePool($pools->get($database)); if ($adapter->ping()) { Console::success('🟢 ' . str_pad("{$key}({$database})", 50, '.') . 'connected'); } else { Console::error('🔴 ' . str_pad("{$key}({$database})", 47, '.') . 'disconnected'); } - } catch (\Throwable $th) { + } catch (\Throwable) { Console::error('🔴 ' . str_pad("{$key}.({$database})", 47, '.') . 'disconnected'); } } } - $pools = $register->get('pools'); /** @var \Utopia\Pools\Group $pools */ + /** @var Group $pools */ + $pools = $register->get('pools'); + $configs = [ 'Cache' => Config::getParam('pools-cache'), 'Queue' => Config::getParam('pools-queue'), @@ -158,14 +163,18 @@ public function action(Registry $register): void foreach ($configs as $key => $config) { foreach ($config as $pool) { try { - $adapter = $pools->get($pool)->pop()->getResource(); + $adapter = match($key) { + 'Cache' => new CachePool($pools->get($pool)), + 'Queue' => new BrokerPool($pools->get($pool)), + 'PubSub' => new PubSubPool($pools->get($pool)), + }; if ($adapter->ping()) { Console::success('🟢 ' . str_pad("{$key}({$pool})", 50, '.') . 'connected'); } else { Console::error('🔴 ' . str_pad("{$key}({$pool})", 47, '.') . 'disconnected'); } - } catch (\Throwable $th) { + } catch (\Throwable) { Console::error('🔴 ' . str_pad("{$key}({$pool})", 47, '.') . 'disconnected'); } } @@ -183,13 +192,14 @@ public function action(Registry $register): void } else { Console::error('🔴 ' . str_pad("Antivirus", 47, '.') . 'disconnected'); } - } catch (\Throwable $th) { + } catch (\Throwable) { Console::error('🔴 ' . str_pad("Antivirus", 47, '.') . 'disconnected'); } } try { - $mail = $register->get('smtp'); /* @var $mail \PHPMailer\PHPMailer\PHPMailer */ + /* @var PHPMailer $mail */ + $mail = $register->get('smtp'); $mail->addAddress('demo@example.com', 'Example.com'); $mail->Subject = 'Test SMTP Connection'; @@ -198,7 +208,7 @@ public function action(Registry $register): void $mail->send(); Console::success('🟢 ' . str_pad("SMTP", 50, '.') . 'connected'); - } catch (\Throwable $th) { + } catch (\Throwable) { Console::error('🔴 ' . str_pad("SMTP", 47, '.') . 'disconnected'); } @@ -272,7 +282,7 @@ public function action(Registry $register): void Console::error('Failed to check for a newer version' . "\n"); } } - } catch (\Throwable $th) { + } catch (\Throwable) { Console::error('Failed to check for a newer version' . "\n"); } } diff --git a/src/Appwrite/Platform/Tasks/Maintenance.php b/src/Appwrite/Platform/Tasks/Maintenance.php index 1da8a58ebef..bb815e50bd0 100644 --- a/src/Appwrite/Platform/Tasks/Maintenance.php +++ b/src/Appwrite/Platform/Tasks/Maintenance.php @@ -23,103 +23,73 @@ public function __construct() { $this ->desc('Schedules maintenance tasks and publishes them to our queues') - ->inject('dbForConsole') + ->inject('dbForPlatform') + ->inject('console') ->inject('queueForCertificates') ->inject('queueForDeletes') - ->callback(fn (Database $dbForConsole, Certificate $queueForCertificates, Delete $queueForDeletes) => $this->action($dbForConsole, $queueForCertificates, $queueForDeletes)); + ->callback(fn (Database $dbForPlatform, Document $console, Certificate $queueForCertificates, Delete $queueForDeletes) => $this->action($dbForPlatform, $console, $queueForCertificates, $queueForDeletes)); } - public function action(Database $dbForConsole, Certificate $queueForCertificates, Delete $queueForDeletes): void + public function action(Database $dbForPlatform, Document $console, Certificate $queueForCertificates, Delete $queueForDeletes): void { Console::title('Maintenance V1'); Console::success(APP_NAME . ' maintenance process v1 has started'); - // # of days in seconds (1 day = 86400s) - $interval = (int) System::getEnv('_APP_MAINTENANCE_INTERVAL', '86400'); - $delay = (int) System::getEnv('_APP_MAINTENANCE_DELAY', '0'); + $interval = (int) System::getEnv('_APP_MAINTENANCE_INTERVAL', '86400'); // 1 day $usageStatsRetentionHourly = (int) System::getEnv('_APP_MAINTENANCE_RETENTION_USAGE_HOURLY', '8640000'); //100 days $cacheRetention = (int) System::getEnv('_APP_MAINTENANCE_RETENTION_CACHE', '2592000'); // 30 days $schedulesDeletionRetention = (int) System::getEnv('_APP_MAINTENANCE_RETENTION_SCHEDULES', '86400'); // 1 Day + $jobInitTime = System::getEnv('_APP_MAINTENANCE_START_TIME', '00:00'); // (hour:minutes) + + $now = new \DateTime(); + $now->setTimezone(new \DateTimeZone(date_default_timezone_get())); + $next = new \DateTime($now->format("Y-m-d $jobInitTime")); + $next->setTimezone(new \DateTimeZone(date_default_timezone_get())); + $delay = $next->getTimestamp() - $now->getTimestamp(); + + /** + * If time passed for the target day. + */ + if ($delay <= 0) { + $next->add(\DateInterval::createFromDateString('1 days')); + $delay = $next->getTimestamp() - $now->getTimestamp(); + } + + Console::info('Setting loop start time to ' . $next->format("Y-m-d H:i:s.v") . '. Delaying for ' . $delay . ' seconds.'); - Console::loop(function () use ($interval, $cacheRetention, $schedulesDeletionRetention, $usageStatsRetentionHourly, $dbForConsole, $queueForDeletes, $queueForCertificates) { + Console::loop(function () use ($interval, $cacheRetention, $schedulesDeletionRetention, $usageStatsRetentionHourly, $dbForPlatform, $console, $queueForDeletes, $queueForCertificates) { $time = DateTime::now(); Console::info("[{$time}] Notifying workers with maintenance tasks every {$interval} seconds"); - $this->foreachProject($dbForConsole, function (Document $project) use ($queueForDeletes, $usageStatsRetentionHourly) { - $queueForDeletes->setProject($project); - - $this->notifyDeleteTargets($queueForDeletes); - $this->notifyDeleteExecutionLogs($queueForDeletes); - $this->notifyDeleteAbuseLogs($queueForDeletes); - $this->notifyDeleteAuditLogs($queueForDeletes); - $this->notifyDeleteUsageStats($usageStatsRetentionHourly, $queueForDeletes); - $this->notifyDeleteExpiredSessions($queueForDeletes); - }); + $dbForPlatform->foreach( + 'projects', + function (Document $project) use ($queueForDeletes, $usageStatsRetentionHourly) { + $queueForDeletes + ->setType(DELETE_TYPE_MAINTENANCE) + ->setProject($project) + ->setUsageRetentionHourlyDateTime(DateTime::addSeconds(new \DateTime(), -1 * $usageStatsRetentionHourly)) + ->trigger(); + }, + [ + Query::equal('region', [System::getEnv('_APP_REGION', 'default')]), + Query::limit(100), + ] + ); + + $queueForDeletes + ->setType(DELETE_TYPE_MAINTENANCE) + ->setProject($console) + ->setUsageRetentionHourlyDateTime(DateTime::addSeconds(new \DateTime(), -1 * $usageStatsRetentionHourly)) + ->trigger(); $this->notifyDeleteConnections($queueForDeletes); - $this->renewCertificates($dbForConsole, $queueForCertificates); + $this->renewCertificates($dbForPlatform, $queueForCertificates); $this->notifyDeleteCache($cacheRetention, $queueForDeletes); $this->notifyDeleteSchedules($schedulesDeletionRetention, $queueForDeletes); }, $interval, $delay); } - protected function foreachProject(Database $dbForConsole, callable $callback): void - { - // TODO: @Meldiron name of this method no longer matches. It does not delete, and it gives whole document - $count = 0; - $chunk = 0; - $limit = 50; - $sum = $limit; - $executionStart = \microtime(true); - - while ($sum === $limit) { - $projects = $dbForConsole->find('projects', [Query::limit($limit), Query::offset($chunk * $limit)]); - - $chunk++; - - /** @var string[] $projectIds */ - $sum = count($projects); - - foreach ($projects as $project) { - $callback($project); - $count++; - } - } - - $executionEnd = \microtime(true); - Console::info("Found {$count} projects " . ($executionEnd - $executionStart) . " seconds"); - } - - private function notifyDeleteExecutionLogs(Delete $queueForDeletes): void - { - $queueForDeletes - ->setType(DELETE_TYPE_EXECUTIONS) - ->trigger(); - } - - private function notifyDeleteAbuseLogs(Delete $queueForDeletes): void - { - $queueForDeletes - ->setType(DELETE_TYPE_ABUSE) - ->trigger(); - } - - private function notifyDeleteAuditLogs(Delete $queueForDeletes): void - { - $queueForDeletes - ->setType(DELETE_TYPE_AUDIT) - ->trigger(); - } - - private function notifyDeleteUsageStats(int $usageStatsRetentionHourly, Delete $queueForDeletes): void - { - $queueForDeletes - ->setType(DELETE_TYPE_USAGE) - ->setUsageRetentionHourlyDateTime(DateTime::addSeconds(new \DateTime(), -1 * $usageStatsRetentionHourly)) - ->trigger(); - } - private function notifyDeleteConnections(Delete $queueForDeletes): void { $queueForDeletes @@ -128,19 +98,13 @@ private function notifyDeleteConnections(Delete $queueForDeletes): void ->trigger(); } - private function notifyDeleteExpiredSessions(Delete $queueForDeletes): void - { - $queueForDeletes - ->setType(DELETE_TYPE_SESSIONS) - ->trigger(); - } - - private function renewCertificates(Database $dbForConsole, Certificate $queueForCertificate): void + private function renewCertificates(Database $dbForPlatform, Certificate $queueForCertificate): void { $time = DateTime::now(); - $certificates = $dbForConsole->find('certificates', [ + $certificates = $dbForPlatform->find('certificates', [ Query::lessThan('attempts', 5), // Maximum 5 attempts + Query::isNotNull('renewDate'), Query::lessThanEqual('renewDate', $time), // includes 60 days cooldown (we have 30 days to renew) Query::limit(200), // Limit 200 comes from LetsEncrypt (300 orders per 3 hours, keeping some for new domains) ]); @@ -176,11 +140,4 @@ private function notifyDeleteSchedules($interval, Delete $queueForDeletes): void ->setDatetime(DateTime::addSeconds(new \DateTime(), -1 * $interval)) ->trigger(); } - - private function notifyDeleteTargets(Delete $queueForDeletes): void - { - $queueForDeletes - ->setType(DELETE_TYPE_EXPIRED_TARGETS) - ->trigger(); - } } diff --git a/src/Appwrite/Platform/Tasks/Migrate.php b/src/Appwrite/Platform/Tasks/Migrate.php index dcba59bb1dc..e495ce1d3f2 100644 --- a/src/Appwrite/Platform/Tasks/Migrate.php +++ b/src/Appwrite/Platform/Tasks/Migrate.php @@ -30,14 +30,10 @@ public function __construct() ->desc('Migrate Appwrite to new version') /** @TODO APP_VERSION_STABLE needs to be defined */ ->param('version', APP_VERSION_STABLE, new Text(8), 'Version to migrate to.', true) - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('getProjectDB') ->inject('register') - ->callback(function ($version, $dbForConsole, $getProjectDB, Registry $register) { - \Co\run(function () use ($version, $dbForConsole, $getProjectDB, $register) { - $this->action($version, $dbForConsole, $getProjectDB, $register); - }); - }); + ->callback($this->action(...)); } private function clearProjectsCache(Document $project) @@ -58,7 +54,7 @@ private function clearProjectsCache(Document $project) } } - public function action(string $version, Database $dbForConsole, callable $getProjectDB, Registry $register) + public function action(string $version, Database $dbForPlatform, callable $getProjectDB, Registry $register) { Authorization::disable(); if (!array_key_exists($version, Migration::$versions)) { @@ -93,10 +89,10 @@ public function action(string $version, Database $dbForConsole, callable $getPro $count = 0; try { - $totalProjects = $dbForConsole->count('projects') + 1; + $totalProjects = $dbForPlatform->count('projects') + 1; } catch (\Throwable $th) { - $dbForConsole->setNamespace('_console'); - $totalProjects = $dbForConsole->count('projects') + 1; + $dbForPlatform->setNamespace('_console'); + $totalProjects = $dbForPlatform->count('projects') + 1; } $class = 'Appwrite\\Migration\\Version\\' . Migration::$versions[$version]; @@ -120,7 +116,7 @@ public function action(string $version, Database $dbForConsole, callable $getPro $projectDB = $getProjectDB($project); $projectDB->disableValidation(); $migration - ->setProject($project, $projectDB, $dbForConsole) + ->setProject($project, $projectDB, $dbForPlatform) ->setPDO($register->get('db', true)) ->execute(); } catch (\Throwable $th) { @@ -132,7 +128,7 @@ public function action(string $version, Database $dbForConsole, callable $getPro } $sum = \count($projects); - $projects = $dbForConsole->find('projects', [Query::limit($limit), Query::offset($offset)]); + $projects = $dbForPlatform->find('projects', [Query::limit($limit), Query::offset($offset)]); $offset = $offset + $limit; $count = $count + $sum; diff --git a/src/Appwrite/Platform/Tasks/QueueCount.php b/src/Appwrite/Platform/Tasks/QueueCount.php deleted file mode 100644 index b02165c1d20..00000000000 --- a/src/Appwrite/Platform/Tasks/QueueCount.php +++ /dev/null @@ -1,57 +0,0 @@ -<?php - -namespace Appwrite\Platform\Tasks; - -use Utopia\CLI\Console; -use Utopia\Platform\Action; -use Utopia\Queue\Client; -use Utopia\Queue\Connection; -use Utopia\Validator\Text; -use Utopia\Validator\WhiteList; - -class QueueCount extends Action -{ - public static function getName(): string - { - return 'queue-count'; - } - - - public function __construct() - { - $this - ->desc('Return the number of from a specific queue identified by the name parameter with a specific type') - ->param('name', '', new Text(100), 'Queue name') - ->param('type', '', new WhiteList([ - 'success', - 'failed', - 'processing', - ]), 'Queue type') - ->inject('queue') - ->callback(fn ($name, $type, $queue) => $this->action($name, $type, $queue)); - } - - /** - * @param string $name The name of the queue to count the jobs from - * @param string $type The type of jobs to count - * @param Connection $queue - */ - public function action(string $name, string $type, Connection $queue): void - { - if (!$name) { - Console::error('Missing required parameter $name'); - return; - } - - $queueClient = new Client($name, $queue); - - $count = match ($type) { - 'success' => $queueClient->countSuccessfulJobs(), - 'failed' => $queueClient->countFailedJobs(), - 'processing' => $queueClient->countProcessingJobs(), - default => 0 - }; - - Console::log("Queue: '{$name}' has {$count} {$type} jobs."); - } -} diff --git a/src/Appwrite/Platform/Tasks/QueueRetry.php b/src/Appwrite/Platform/Tasks/QueueRetry.php index b6139dc177a..9fe4aed7992 100644 --- a/src/Appwrite/Platform/Tasks/QueueRetry.php +++ b/src/Appwrite/Platform/Tasks/QueueRetry.php @@ -4,8 +4,8 @@ use Utopia\CLI\Console; use Utopia\Platform\Action; -use Utopia\Queue\Client; -use Utopia\Queue\Connection; +use Utopia\Queue\Publisher; +use Utopia\Queue\Queue; use Utopia\Validator\Text; use Utopia\Validator\Wildcard; @@ -23,33 +23,24 @@ public function __construct() ->desc('Retry failed jobs from a specific queue identified by the name parameter') ->param('name', '', new Text(100), 'Queue name') ->param('limit', 0, new Wildcard(), 'jobs limit', true) - ->inject('queue') - ->callback(fn ($name, $limit, $queue) => $this->action($name, $limit, $queue)); + ->inject('publisher') + ->callback(fn ($name, $limit, $publisher) => $this->action($name, $limit, $publisher)); } /** * @param string $name The name of the queue to retry jobs from * @param mixed $limit - * @param Connection $queue + * @param Publisher $publisher */ - public function action(string $name, mixed $limit, Connection $queue): void + public function action(string $name, mixed $limit, Publisher $publisher): void { - if (!$name) { Console::error('Missing required parameter $name'); return; } $limit = (int)$limit; - $queueClient = new Client($name, $queue); - - if ($queueClient->countFailedJobs() === 0) { - Console::error('No failed jobs found.'); - return; - } - Console::log('Retrying failed jobs...'); - - $queueClient->retry($limit); + $publisher->retry(new Queue($name), $limit); } } diff --git a/src/Appwrite/Platform/Tasks/SDKs.php b/src/Appwrite/Platform/Tasks/SDKs.php index 65d2f7717c9..126dcd7fb49 100644 --- a/src/Appwrite/Platform/Tasks/SDKs.php +++ b/src/Appwrite/Platform/Tasks/SDKs.php @@ -25,6 +25,9 @@ use Utopia\CLI\Console; use Utopia\Config\Config; use Utopia\Platform\Action; +use Utopia\Validator\Nullable; +use Utopia\Validator\Text; +use Utopia\Validator\WhiteList; class SDKs extends Action { @@ -37,23 +40,35 @@ public function __construct() { $this ->desc('Generate Appwrite SDKs') - ->callback(fn () => $this->action()); + ->param('platform', null, new Nullable(new Text(256)), 'Selected Platform', optional: true) + ->param('sdk', null, new Nullable(new Text(256)), 'Selected SDK', optional: true) + ->param('version', null, new Nullable(new Text(256)), 'Selected SDK', optional: true) + ->param('git', null, new Nullable(new WhiteList(['yes', 'no'])), 'Should we use git push?', optional: true) + ->param('production', null, new Nullable(new WhiteList(['yes', 'no'])), 'Should we push to production?', optional: true) + ->param('message', null, new Nullable(new Text(256)), 'Commit Message', optional: true) + ->callback([$this, 'action']); } - public function action(): void + public function action(?string $selectedPlatform, ?string $selectedSDK, ?string $version, ?string $git, ?string $production, ?string $message): void { - $platforms = Config::getParam('platforms'); - $selectedPlatform = Console::confirm('Choose Platform ("' . APP_PLATFORM_CLIENT . '", "' . APP_PLATFORM_SERVER . '", "' . APP_PLATFORM_CONSOLE . '" or "*" for all):'); - $selectedSDK = \strtolower(Console::confirm('Choose SDK ("*" for all):')); - $version = Console::confirm('Choose an Appwrite version'); - $git = (Console::confirm('Should we use git push? (yes/no)') == 'yes'); - $production = ($git) ? (Console::confirm('Type "Appwrite" to push code to production git repos') == 'Appwrite') : false; - $message = ($git) ? Console::confirm('Please enter your commit message:') : ''; + $selectedPlatform ??= Console::confirm('Choose Platform ("' . APP_PLATFORM_CLIENT . '", "' . APP_PLATFORM_SERVER . '", "' . APP_PLATFORM_CONSOLE . '" or "*" for all):'); + $selectedSDK ??= \strtolower(Console::confirm('Choose SDK ("*" for all):')); + $version ??= Console::confirm('Choose an Appwrite version'); + + $git ??= Console::confirm('Should we use git push? (yes/no)'); + $git = $git === 'yes'; + + if ($git) { + $production ??= Console::confirm('Type "Appwrite" to push code to production git repos'); + $production = $production === 'Appwrite'; + $message ??= 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', '1.0.x', '1.1.x', '1.2.x', '1.3.x', '1.4.x', '1.5.x', '1.6.x', 'latest'])) { throw new \Exception('Unknown version given'); } + $platforms = Config::getParam('platforms'); foreach ($platforms as $key => $platform) { if ($selectedPlatform !== $key && $selectedPlatform !== '*') { continue; @@ -260,9 +275,13 @@ public function action(): void \exec('rm -rf ' . $target . ' && \ mkdir -p ' . $target . ' && \ cd ' . $target . ' && \ - git init --initial-branch=' . $gitBranch . ' && \ + git init && \ git remote add origin ' . $gitUrl . ' && \ - git fetch origin ' . $gitBranch . ' && \ + git fetch origin && \ + git checkout main || git checkout -b main && \ + git pull origin main && \ + git checkout ' . $gitBranch . ' || git checkout -b ' . $gitBranch . ' && \ + git fetch origin ' . $gitBranch . ' || git push -u origin ' . $gitBranch . ' && \ git pull origin ' . $gitBranch . ' && \ rm -rf ' . $target . '/* && \ cp -r ' . $result . '/. ' . $target . '/ && \ diff --git a/src/Appwrite/Platform/Tasks/ScheduleBase.php b/src/Appwrite/Platform/Tasks/ScheduleBase.php index e013220aa4d..ea0476fc332 100644 --- a/src/Appwrite/Platform/Tasks/ScheduleBase.php +++ b/src/Appwrite/Platform/Tasks/ScheduleBase.php @@ -9,11 +9,14 @@ use Utopia\Database\Document; use Utopia\Database\Exception; use Utopia\Database\Query; +use Utopia\Database\Validator\Authorization; use Utopia\Platform\Action; use Utopia\Pools\Group; +use Utopia\Queue\Broker\Pool as BrokerPool; use Utopia\System\System; - -use function Swoole\Coroutine\run; +use Utopia\Telemetry\Adapter as Telemetry; +use Utopia\Telemetry\Gauge; +use Utopia\Telemetry\Histogram; abstract class ScheduleBase extends Action { @@ -22,13 +25,17 @@ abstract class ScheduleBase extends Action protected array $schedules = []; + protected BrokerPool $publisher; + + private ?Histogram $collectSchedulesTelemetryDuration = null; + private ?Gauge $collectSchedulesTelemetryCount = null; + private ?Gauge $scheduleTelemetryCount = null; + private ?Histogram $enqueueDelayTelemetry = null; + abstract public static function getName(): string; abstract public static function getSupportedResource(): string; - - abstract protected function enqueueResources( - Group $pools, - Database $dbForConsole - ); + abstract public static function getCollectionId(): string; + abstract protected function enqueueResources(Group $pools, Database $dbForPlatform, callable $getProjectDB): void; public function __construct() { @@ -37,9 +44,21 @@ public function __construct() $this ->desc("Execute {$type}s scheduled in Appwrite") ->inject('pools') - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('getProjectDB') - ->callback(fn (Group $pools, Database $dbForConsole, callable $getProjectDB) => $this->action($pools, $dbForConsole, $getProjectDB)); + ->inject('telemetry') + ->callback($this->action(...)); + } + + protected function updateProjectAccess(Document $project, Database $dbForPlatform): void + { + if (!$project->isEmpty() && $project->getId() !== 'console') { + $accessedAt = $project->getAttribute('accessedAt', ''); + if (DateTime::formatTz(DateTime::addSeconds(new \DateTime(), -APP_PROJECT_ACCESS)) > $accessedAt) { + $project->setAttribute('accessedAt', DateTime::now()); + Authorization::skip(fn () => $dbForPlatform->updateDocument('projects', $project->getId(), $project)); + } + } } /** @@ -47,11 +66,48 @@ public function __construct() * 2. Create timer that sync all changes from 'schedules' collection to local copy. Only reading changes thanks to 'resourceUpdatedAt' attribute * 3. Create timer that prepares coroutines for soon-to-execute schedules. When it's ready, coroutine sleeps until exact time before sending request to worker. */ - public function action(Group $pools, Database $dbForConsole, callable $getProjectDB): void + public function action(Group $pools, Database $dbForPlatform, callable $getProjectDB, Telemetry $telemetry): void { Console::title(\ucfirst(static::getSupportedResource()) . ' scheduler V1'); Console::success(APP_NAME . ' ' . \ucfirst(static::getSupportedResource()) . ' scheduler v1 has started'); + $this->publisher = new BrokerPool($pools->get('publisher')); + $this->scheduleTelemetryCount = $telemetry->createGauge('task.schedule.count'); + $this->collectSchedulesTelemetryDuration = $telemetry->createHistogram('task.schedule.collect_schedules.duration', 's'); + $this->collectSchedulesTelemetryCount = $telemetry->createGauge('task.schedule.collect_schedules.count'); + $this->enqueueDelayTelemetry = $telemetry->createHistogram('task.schedule.enqueue_delay', 's'); + + // start with "0" to load all active documents. + $lastSyncUpdate = "0"; + $this->collectSchedules($dbForPlatform, $getProjectDB, $lastSyncUpdate); + + Console::success("Starting timers at " . DateTime::now()); + /** + * The timer synchronize $schedules copy with database collection. + */ + Timer::tick(static::UPDATE_TIMER * 1000, function () use ($dbForPlatform, $getProjectDB, &$lastSyncUpdate) { + $time = DateTime::now(); + Console::log("Sync tick: Running at $time"); + $this->collectSchedules($dbForPlatform, $getProjectDB, $lastSyncUpdate); + }); + + while (true) { + try { + go(fn () => $this->enqueueResources($pools, $dbForPlatform, $getProjectDB)); + $this->scheduleTelemetryCount->record(count($this->schedules), ['resourceType' => static::getSupportedResource()]); + sleep(static::ENQUEUE_TIMER); + } catch (\Throwable $th) { + Console::error('Failed to enqueue resources: ' . $th->getMessage()); + } + + } + } + + private function collectSchedules(Database $dbForPlatform, callable $getProjectDB, string &$lastSyncUpdate): void + { + // If we haven't synced yet, load all active schedules + $initialLoad = $lastSyncUpdate === "0"; + /** * Extract only necessary attributes to lower memory used. * @@ -59,17 +115,11 @@ public function action(Group $pools, Database $dbForConsole, callable $getProjec * @throws Exception * @var Document $schedule */ - $getSchedule = function (Document $schedule) use ($dbForConsole, $getProjectDB): array { - $project = $dbForConsole->getDocument('projects', $schedule->getAttribute('projectId')); - - $collectionId = match ($schedule->getAttribute('resourceType')) { - 'function' => 'functions', - 'message' => 'messages', - 'execution' => 'executions' - }; + $getSchedule = function (Document $schedule) use ($dbForPlatform, $getProjectDB): array { + $project = $dbForPlatform->getDocument('projects', $schedule->getAttribute('projectId')); $resource = $getProjectDB($project)->getDocument( - $collectionId, + static::getCollectionId(), $schedule->getAttribute('resourceId') ); @@ -85,12 +135,12 @@ public function action(Group $pools, Database $dbForConsole, callable $getProjec ]; }; - $lastSyncUpdate = DateTime::now(); + $loadStart = microtime(true); + $time = DateTime::now(); $limit = 10_000; $sum = $limit; $total = 0; - $loadStart = \microtime(true); $latestDocument = null; while ($sum === $limit) { @@ -100,103 +150,64 @@ public function action(Group $pools, Database $dbForConsole, callable $getProjec $paginationQueries[] = Query::cursorAfter($latestDocument); } - $results = $dbForConsole->find('schedules', \array_merge($paginationQueries, [ - Query::equal('region', [System::getEnv('_APP_REGION', 'default')]), - Query::equal('resourceType', [static::getSupportedResource()]), - Query::equal('active', [true]), - ])); - - $sum = \count($results); - $total = $total + $sum; - - foreach ($results as $document) { - try { - $this->schedules[$document->getInternalId()] = $getSchedule($document); - } catch (\Throwable $th) { - $collectionId = match ($document->getAttribute('resourceType')) { - 'function' => 'functions', - 'message' => 'messages', - 'execution' => 'executions' - }; - - Console::error("Failed to load schedule for project {$document['projectId']} {$collectionId} {$document['resourceId']}"); - Console::error($th->getMessage()); - } + // Temporarly accepting both 'fra' and 'default' + // When all migrated, only use _APP_REGION with 'default' as default value + $regions = [System::getEnv('_APP_REGION', 'default')]; + if (!in_array('default', $regions)) { + $regions[] = 'default'; } - $latestDocument = \end($results); - } - - $pools->reclaim(); - - Console::success("{$total} resources were loaded in " . (\microtime(true) - $loadStart) . " seconds"); - - Console::success("Starting timers at " . DateTime::now()); - - run(function () use ($dbForConsole, &$lastSyncUpdate, $getSchedule, $pools) { - /** - * The timer synchronize $schedules copy with database collection. - */ - Timer::tick(static::UPDATE_TIMER * 1000, function () use ($dbForConsole, &$lastSyncUpdate, $getSchedule, $pools) { - $time = DateTime::now(); - $timerStart = \microtime(true); + $paginationQueries = [ + ...$paginationQueries, + Query::equal('region', $regions), + Query::equal('resourceType', [static::getSupportedResource()]), + ]; - $limit = 1000; - $sum = $limit; - $total = 0; - $latestDocument = null; + if ($initialLoad) { + $paginationQueries[] = Query::equal('active', [true]); + } else { + $paginationQueries[] = Query::greaterThanEqual('resourceUpdatedAt', $lastSyncUpdate); + } - Console::log("Sync tick: Running at $time"); + $results = $dbForPlatform->find('schedules', $paginationQueries); - while ($sum === $limit) { - $paginationQueries = [Query::limit($limit)]; + $sum = count($results); + $total = $total + $sum; - if ($latestDocument) { - $paginationQueries[] = Query::cursorAfter($latestDocument); + foreach ($results as $document) { + $localDocument = $this->schedules[$document->getInternalId()] ?? null; + + if ($localDocument !== null) { + if (!$document['active']) { + Console::info("Removing: {$document['resourceType']}::{$document['resourceId']}"); + unset($this->schedules[$document->getInternalId()]); + } elseif (strtotime($localDocument['resourceUpdatedAt']) !== strtotime($document['resourceUpdatedAt'])) { + Console::info("Updating: {$document['resourceType']}::{$document['resourceId']}"); + $this->schedules[$document->getInternalId()] = $getSchedule($document); } - - $results = $dbForConsole->find('schedules', \array_merge($paginationQueries, [ - Query::equal('region', [System::getEnv('_APP_REGION', 'default')]), - Query::equal('resourceType', [static::getSupportedResource()]), - Query::greaterThanEqual('resourceUpdatedAt', $lastSyncUpdate), - ])); - - $sum = count($results); - $total = $total + $sum; - - foreach ($results as $document) { - $localDocument = $schedules[$document['resourceId']] ?? null; - - // Check if resource has been updated since last sync - $org = $localDocument !== null ? \strtotime($localDocument['resourceUpdatedAt']) : null; - $new = \strtotime($document['resourceUpdatedAt']); - - if (!$document['active']) { - Console::info("Removing: {$document['resourceId']}"); - unset($this->schedules[$document->getInternalId()]); - } elseif ($new !== $org) { - Console::info("Updating: {$document['resourceId']}"); - $this->schedules[$document->getInternalId()] = $getSchedule($document); - } + } else { + try { + $this->schedules[$document->getInternalId()] = $getSchedule($document); + } catch (\Throwable $th) { + $collectionId = static::getCollectionId(); + Console::error("Failed to load schedule for project {$document['projectId']} {$collectionId} {$document['resourceId']}"); + Console::error($th->getMessage()); } - - $latestDocument = \end($results); } + } - $lastSyncUpdate = $time; - $timerEnd = \microtime(true); - - $pools->reclaim(); - - Console::log("Sync tick: {$total} schedules were updated in " . ($timerEnd - $timerStart) . " seconds"); - }); + $latestDocument = \end($results); + } - Timer::tick( - static::ENQUEUE_TIMER * 1000, - fn () => $this->enqueueResources($pools, $dbForConsole) - ); + $lastSyncUpdate = $time; + $duration = microtime(true) - $loadStart; + $this->collectSchedulesTelemetryDuration->record($duration, ['initial' => $initialLoad, 'resourceType' => static::getSupportedResource()]); + $this->collectSchedulesTelemetryCount->record($total, ['initial' => $initialLoad, 'resourceType' => static::getSupportedResource()]); + Console::success("{$total} resources were loaded in " . $duration . " seconds"); + } - $this->enqueueResources($pools, $dbForConsole); - }); + protected function recordEnqueueDelay(\DateTime $expectedExecutionSchedule): void + { + $this->enqueueDelayTelemetry->record(time() - $expectedExecutionSchedule->getTimestamp(), ['resourceType' => static::getSupportedResource()]); } } diff --git a/src/Appwrite/Platform/Tasks/ScheduleExecutions.php b/src/Appwrite/Platform/Tasks/ScheduleExecutions.php index 682d796585e..99c84e829af 100644 --- a/src/Appwrite/Platform/Tasks/ScheduleExecutions.php +++ b/src/Appwrite/Platform/Tasks/ScheduleExecutions.php @@ -22,16 +22,19 @@ public static function getSupportedResource(): string return 'execution'; } - protected function enqueueResources(Group $pools, Database $dbForConsole): void + public static function getCollectionId(): string { - $queue = $pools->get('queue')->pop(); - $connection = $queue->getResource(); - $queueForFunctions = new Func($connection); + return 'executions'; + } + + protected function enqueueResources(Group $pools, Database $dbForPlatform, callable $getProjectDB): void + { + $queueForFunctions = new Func($this->publisher); $intervalEnd = (new \DateTime())->modify('+' . self::ENQUEUE_TIMER . ' seconds'); foreach ($this->schedules as $schedule) { if (!$schedule['active']) { - $dbForConsole->deleteDocument( + $dbForPlatform->deleteDocument( 'schedules', $schedule['$id'], ); @@ -45,14 +48,16 @@ protected function enqueueResources(Group $pools, Database $dbForConsole): void continue; } - $data = $dbForConsole->getDocument( + $data = $dbForPlatform->getDocument( 'schedules', $schedule['$id'], )->getAttribute('data', []); $delay = $scheduledAt->getTimestamp() - (new \DateTime())->getTimestamp(); - \go(function () use ($queueForFunctions, $schedule, $delay, $data) { + $this->updateProjectAccess($schedule['project'], $dbForPlatform); + + \go(function () use ($queueForFunctions, $schedule, $scheduledAt, $delay, $data) { Co::sleep($delay); $queueForFunctions->setType('schedule') @@ -67,16 +72,16 @@ protected function enqueueResources(Group $pools, Database $dbForConsole): void ->setProject($schedule['project']) ->setUserId($data['userId'] ?? '') ->trigger(); + + $this->recordEnqueueDelay($scheduledAt); }); - $dbForConsole->deleteDocument( + $dbForPlatform->deleteDocument( 'schedules', $schedule['$id'], ); unset($this->schedules[$schedule['$internalId']]); } - - $queue->reclaim(); } } diff --git a/src/Appwrite/Platform/Tasks/ScheduleFunctions.php b/src/Appwrite/Platform/Tasks/ScheduleFunctions.php index e2c278714f3..7812b278328 100644 --- a/src/Appwrite/Platform/Tasks/ScheduleFunctions.php +++ b/src/Appwrite/Platform/Tasks/ScheduleFunctions.php @@ -26,7 +26,12 @@ public static function getSupportedResource(): string return 'function'; } - protected function enqueueResources(Group $pools, Database $dbForConsole): void + public static function getCollectionId(): string + { + return 'functions'; + } + + protected function enqueueResources(Group $pools, Database $dbForPlatform, callable $getProjectDB): void { $timerStart = \microtime(true); $time = DateTime::now(); @@ -41,7 +46,13 @@ protected function enqueueResources(Group $pools, Database $dbForConsole): void $delayedExecutions = []; // Group executions with same delay to share one coroutine foreach ($this->schedules as $key => $schedule) { - $cron = new CronExpression($schedule['schedule']); + try { + $cron = new CronExpression($schedule['schedule']); + } catch (\InvalidArgumentException) { + // ignore invalid cron expressions + continue; + } + $nextDate = $cron->getNextRunDate(); $next = DateTime::format($nextDate); @@ -61,17 +72,15 @@ protected function enqueueResources(Group $pools, Database $dbForConsole): void $delayedExecutions[$delay] = []; } - $delayedExecutions[$delay][] = $key; + $delayedExecutions[$delay][] = ['key' => $key, 'nextDate' => $nextDate]; } - foreach ($delayedExecutions as $delay => $scheduleKeys) { - \go(function () use ($delay, $scheduleKeys, $pools) { + foreach ($delayedExecutions as $delay => $schedules) { + \go(function () use ($delay, $schedules, $dbForPlatform) { \sleep($delay); // in seconds - $queue = $pools->get('queue')->pop(); - $connection = $queue->getResource(); - - foreach ($scheduleKeys as $scheduleKey) { + foreach ($schedules as $delayConfig) { + $scheduleKey = $delayConfig['key']; // Ensure schedule was not deleted if (!\array_key_exists($scheduleKey, $this->schedules)) { return; @@ -79,7 +88,9 @@ protected function enqueueResources(Group $pools, Database $dbForConsole): void $schedule = $this->schedules[$scheduleKey]; - $queueForFunctions = new Func($connection); + $this->updateProjectAccess($schedule['project'], $dbForPlatform); + + $queueForFunctions = new Func($this->publisher); $queueForFunctions ->setType('schedule') @@ -88,9 +99,9 @@ protected function enqueueResources(Group $pools, Database $dbForConsole): void ->setPath('/') ->setProject($schedule['project']) ->trigger(); - } - $queue->reclaim(); + $this->recordEnqueueDelay($delayConfig['nextDate']); + } }); } diff --git a/src/Appwrite/Platform/Tasks/ScheduleMessages.php b/src/Appwrite/Platform/Tasks/ScheduleMessages.php index 167f1282edc..d23e3de575a 100644 --- a/src/Appwrite/Platform/Tasks/ScheduleMessages.php +++ b/src/Appwrite/Platform/Tasks/ScheduleMessages.php @@ -21,7 +21,12 @@ public static function getSupportedResource(): string return 'message'; } - protected function enqueueResources(Group $pools, Database $dbForConsole): void + public static function getCollectionId(): string + { + return 'messages'; + } + + protected function enqueueResources(Group $pools, Database $dbForPlatform, callable $getProjectDB): void { foreach ($this->schedules as $schedule) { if (!$schedule['active']) { @@ -35,10 +40,10 @@ protected function enqueueResources(Group $pools, Database $dbForConsole): void continue; } - \go(function () use ($schedule, $pools, $dbForConsole) { - $queue = $pools->get('queue')->pop(); - $connection = $queue->getResource(); - $queueForMessaging = new Messaging($connection); + \go(function () use ($schedule, $scheduledAt, $dbForPlatform) { + $queueForMessaging = new Messaging($this->publisher); + + $this->updateProjectAccess($schedule['project'], $dbForPlatform); $queueForMessaging ->setType(MESSAGE_SEND_TYPE_EXTERNAL) @@ -46,13 +51,12 @@ protected function enqueueResources(Group $pools, Database $dbForConsole): void ->setProject($schedule['project']) ->trigger(); - $dbForConsole->deleteDocument( + $dbForPlatform->deleteDocument( 'schedules', $schedule['$id'], ); - $queue->reclaim(); - + $this->recordEnqueueDelay($scheduledAt); unset($this->schedules[$schedule['$internalId']]); }); } diff --git a/src/Appwrite/Platform/Tasks/Specs.php b/src/Appwrite/Platform/Tasks/Specs.php index e171f2f4054..76c9db079ac 100644 --- a/src/Appwrite/Platform/Tasks/Specs.php +++ b/src/Appwrite/Platform/Tasks/Specs.php @@ -2,12 +2,16 @@ namespace Appwrite\Platform\Tasks; -use Appwrite\Specification\Format\OpenAPI3; -use Appwrite\Specification\Format\Swagger2; -use Appwrite\Specification\Specification; -use Appwrite\Utopia\Response; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\Specification\Format\OpenAPI3; +use Appwrite\SDK\Specification\Format\Swagger2; +use Appwrite\SDK\Specification\Specification; +use Appwrite\Utopia\Request as AppwriteRequest; +use Appwrite\Utopia\Response as AppwriteResponse; use Exception; -use Swoole\Http\Response as HttpResponse; +use Swoole\Http\Request as SwooleRequest; +use Swoole\Http\Response as SwooleResponse; use Utopia\App; use Utopia\Cache\Adapter\None; use Utopia\Cache\Cache; @@ -16,8 +20,8 @@ use Utopia\Database\Adapter\MySQL; use Utopia\Database\Database; use Utopia\Platform\Action; -use Utopia\Registry\Registry; -use Utopia\Request; +use Utopia\Request as UtopiaRequest; +use Utopia\Response as UtopiaResponse; use Utopia\System\System; use Utopia\Validator\Text; use Utopia\Validator\WhiteList; @@ -29,26 +33,35 @@ public static function getName(): string return 'specs'; } + public function getRequest(): UtopiaRequest + { + return new AppwriteRequest(new SwooleRequest()); + } + + public function getResponse(): UtopiaResponse + { + return new AppwriteResponse(new SwooleResponse()); + } + public function __construct() { $this ->desc('Generate Appwrite API specifications') ->param('version', 'latest', new Text(16), 'Spec version', true) ->param('mode', 'normal', new WhiteList(['normal', 'mocks']), 'Spec Mode', true) - ->inject('register') - ->callback(fn (string $version, string $mode, Registry $register) => $this->action($version, $mode, $register)); + ->callback($this->action(...)); } - public function action(string $version, string $mode, Registry $register): void + public function action(string $version, string $mode): void { $appRoutes = App::getRoutes(); - $response = new Response(new HttpResponse()); + $response = $this->getResponse(); $mocks = ($mode === 'mocks'); // Mock dependencies - App::setResource('request', fn () => new Request()); + App::setResource('request', fn () => $this->getRequest()); App::setResource('response', fn () => $response); - App::setResource('dbForConsole', fn () => new Database(new MySQL(''), new Cache(new None()))); + App::setResource('dbForPlatform', fn () => new Database(new MySQL(''), new Cache(new None()))); App::setResource('dbForProject', fn () => new Database(new MySQL(''), new Cache(new None()))); $platforms = [ @@ -169,58 +182,69 @@ public function action(string $version, string $mode, Registry $register): void foreach ($appRoutes as $key => $method) { foreach ($method as $route) { - $hide = $route->getLabel('sdk.hide', false); - if ($hide === true || (\is_array($hide) && \in_array($platform, $hide))) { + $sdks = $route->getLabel('sdk', false); + + if (empty($sdks)) { continue; } - /** @var \Utopia\Route $route */ - $routeSecurity = $route->getLabel('sdk.auth', []); - $sdkPlatforms = []; - - foreach ($routeSecurity as $value) { - switch ($value) { - case APP_AUTH_TYPE_SESSION: - $sdkPlatforms[] = APP_PLATFORM_CLIENT; - break; - case APP_AUTH_TYPE_KEY: - $sdkPlatforms[] = APP_PLATFORM_SERVER; - break; - case APP_AUTH_TYPE_JWT: - $sdkPlatforms[] = APP_PLATFORM_SERVER; - break; - case APP_AUTH_TYPE_ADMIN: - $sdkPlatforms[] = APP_PLATFORM_CONSOLE; - break; - } + if (!\is_array($sdks)) { + $sdks = [$sdks]; } - if (empty($routeSecurity)) { - $sdkPlatforms[] = APP_PLATFORM_SERVER; - $sdkPlatforms[] = APP_PLATFORM_CLIENT; - } + foreach ($sdks as $sdk) { + /** @var Method $sdk */ - if (!$route->getLabel('docs', true)) { - continue; - } + $hide = $sdk->isHidden(); + if ($hide === true || (\is_array($hide) && \in_array($platform, $hide))) { + continue; + } - if ($route->getLabel('sdk.mock', false) && !$mocks) { - continue; - } + $routeSecurity = $sdk->getAuth(); + $sdkPlatforms = []; + + foreach ($routeSecurity as $value) { + switch ($value) { + case AuthType::SESSION: + $sdkPlatforms[] = APP_PLATFORM_CLIENT; + break; + case AuthType::JWT: + case AuthType::KEY: + $sdkPlatforms[] = APP_PLATFORM_SERVER; + break; + case AuthType::ADMIN: + $sdkPlatforms[] = APP_PLATFORM_CONSOLE; + break; + } + } - if (!$route->getLabel('sdk.mock', false) && $mocks) { - continue; - } + if (empty($routeSecurity)) { + $sdkPlatforms[] = APP_PLATFORM_SERVER; + $sdkPlatforms[] = APP_PLATFORM_CLIENT; + } - if (empty($route->getLabel('sdk.namespace', null))) { - continue; - } + if (!$route->getLabel('docs', true)) { + continue; + } - if ($platform !== APP_PLATFORM_CONSOLE && !\in_array($platforms[$platform], $sdkPlatforms)) { - continue; - } + if ($route->getLabel('mock', false) && !$mocks) { + continue; + } - $routes[] = $route; + if (!$route->getLabel('mock', false) && $mocks) { + continue; + } + + if (empty($sdk->getNamespace())) { + continue; + } + + if ($platform !== APP_PLATFORM_CONSOLE && !\in_array($platforms[$platform], $sdkPlatforms)) { + continue; + } + + $routes[] = $route; + } } } @@ -237,7 +261,6 @@ public function action(string $version, string $mode, Registry $register): void $services[] = [ 'name' => $service['key'] ?? '', 'description' => $service['subtitle'] ?? '', - 'x-globalAttributes' => $service['globalAttributes'] ?? [], ]; } @@ -249,7 +272,15 @@ public function action(string $version, string $mode, Registry $register): void } } - $arguments = [new App('UTC'), $services, $routes, $models, $keys[$platform], $authCounts[$platform] ?? 0]; + $arguments = [ + new App('UTC'), + $services, + $routes, + $models, + $keys[$platform], + $authCounts[$platform] ?? 0 + ]; + foreach (['swagger2', 'open-api3'] as $format) { $formatInstance = match ($format) { 'swagger2' => new Swagger2(...$arguments), @@ -265,6 +296,7 @@ public function action(string $version, string $mode, Registry $register): void ->setParam('name', APP_NAME) ->setParam('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)') ->setParam('endpoint', 'https://cloud.appwrite.io/v1') + ->setParam('endpoint.docs', 'https://<REGION>.cloud.appwrite.io/v1') ->setParam('version', APP_VERSION_STABLE) ->setParam('terms', $endpoint . '/policy/terms') ->setParam('support.email', $email) diff --git a/src/Appwrite/Platform/Tasks/StatsResources.php b/src/Appwrite/Platform/Tasks/StatsResources.php new file mode 100644 index 00000000000..ca2a6860fff --- /dev/null +++ b/src/Appwrite/Platform/Tasks/StatsResources.php @@ -0,0 +1,82 @@ +<?php + +namespace Appwrite\Platform\Tasks; + +use Appwrite\Event\StatsResources as EventStatsResources; +use Appwrite\Platform\Action; +use Utopia\CLI\Console; +use Utopia\Database\Database; +use Utopia\Database\DateTime; +use Utopia\Database\Query; +use Utopia\Database\Validator\Authorization; +use Utopia\System\System; + +/** + * Usage count + * + * Runs every hour, schedules project + * for aggregating resource count + */ +class StatsResources extends Action +{ + /** + * Log Error Callback + * + * @var callable + */ + protected mixed $logError; + + /** + * Console DB + * + * @var Database + */ + protected Database $dbForPlatform; + + public static function getName() + { + return 'stats-resources'; + } + + public function __construct() + { + $this + ->desc('Schedules projects for usage count') + ->inject('dbForPlatform') + ->inject('logError') + ->inject('queueForStatsResources') + ->callback([$this, 'action']); + } + + public function action(Database $dbForPlatform, callable $logError, EventStatsResources $queue): void + { + $this->logError = $logError; + $this->dbForPlatform = $dbForPlatform; + + Console::title("Stats resources V1"); + + Console::success('Stats resources: started'); + + $interval = (int) System::getEnv('_APP_STATS_RESOURCES_INTERVAL', '3600'); + Console::loop(function () use ($queue) { + Authorization::disable(); + Authorization::setDefaultStatus(false); + + $last24Hours = (new \DateTime())->sub(\DateInterval::createFromDateString('24 hours')); + /** + * For each project that were accessed in last 24 hours + */ + $this->foreachDocument($this->dbForPlatform, 'projects', [ + Query::greaterThanEqual('accessedAt', DateTime::format($last24Hours)), + Query::equal('region', [System::getEnv('_APP_REGION', 'default')]) + ], function ($project) use ($queue) { + $queue + ->setProject($project) + ->trigger(); + Console::success('project: ' . $project->getId() . '(' . $project->getInternalId() . ')' . ' queued'); + }); + }, $interval); + + Console::log("Stats resources: exited"); + } +} diff --git a/src/Appwrite/Platform/Workers/Audits.php b/src/Appwrite/Platform/Workers/Audits.php index 86ca59d3fd4..76309145b8a 100644 --- a/src/Appwrite/Platform/Workers/Audits.php +++ b/src/Appwrite/Platform/Workers/Audits.php @@ -2,18 +2,36 @@ namespace Appwrite\Platform\Workers; +use Appwrite\Auth\Auth; use Exception; use Throwable; use Utopia\Audit\Audit; -use Utopia\Database\Database; +use Utopia\CLI\Console; use Utopia\Database\Document; use Utopia\Database\Exception\Authorization; use Utopia\Database\Exception\Structure; use Utopia\Platform\Action; use Utopia\Queue\Message; +use Utopia\System\System; class Audits extends Action { + protected const BATCH_SIZE_DEVELOPMENT = 1; // smaller batch size for development + protected const BATCH_SIZE_PRODUCTION = 5_000; + protected const BATCH_AGGREGATION_INTERVAL = 60; // in seconds + + private int $lastTriggeredTime = 0; + + private array $logs = []; + + + protected function getBatchSize(): int + { + return System::getEnv('_APP_ENV', 'development') === 'development' + ? self::BATCH_SIZE_DEVELOPMENT + : self::BATCH_SIZE_PRODUCTION; + } + public static function getName(): string { return 'audits'; @@ -27,31 +45,40 @@ public function __construct() $this ->desc('Audits worker') ->inject('message') - ->inject('dbForProject') - ->callback(fn ($message, $dbForProject) => $this->action($message, $dbForProject)); + ->inject('getProjectDB') + ->inject('project') + ->callback([$this, 'action']); + + $this->lastTriggeredTime = time(); } /** * @param Message $message - * @param Database $dbForProject + * @param callable $getProjectDB + * @param Document $project * @return void * @throws Throwable * @throws \Utopia\Database\Exception * @throws Authorization * @throws Structure */ - public function action(Message $message, Database $dbForProject): void + public function action(Message $message, callable $getProjectDB, Document $project): void { - $payload = $message->getPayload() ?? []; if (empty($payload)) { throw new Exception('Missing payload'); } + Console::info('Aggregating audit logs'); + $event = $payload['event'] ?? ''; - $auditPayload = $payload['payload'] ?? ''; + + $auditPayload = ''; + if ($project->getId() === 'console') { + $auditPayload = $payload['payload'] ?? ''; + } $mode = $payload['mode'] ?? ''; $resource = $payload['resource'] ?? ''; $userAgent = $payload['userAgent'] ?? ''; @@ -60,23 +87,65 @@ public function action(Message $message, Database $dbForProject): void $userName = $user->getAttribute('name', ''); $userEmail = $user->getAttribute('email', ''); + $userType = $user->getAttribute('type', Auth::ACTIVITY_TYPE_USER); - $audit = new Audit($dbForProject); - $audit->log( - userId: $user->getInternalId(), - // Pass first, most verbose event pattern - event: $event, - resource: $resource, - userAgent: $userAgent, - ip: $ip, - location: '', - data: [ + // Create event data + $eventData = [ + 'userId' => $user->getInternalId(), + 'event' => $event, + 'resource' => $resource, + 'userAgent' => $userAgent, + 'ip' => $ip, + 'location' => '', + 'data' => [ 'userId' => $user->getId(), 'userName' => $userName, 'userEmail' => $userEmail, + 'userType' => $userType, 'mode' => $mode, 'data' => $auditPayload, - ] - ); + ], + 'timestamp' => date("Y-m-d H:i:s", $message->getTimestamp()), + ]; + + if (isset($this->logs[$project->getInternalId()])) { + $this->logs[$project->getInternalId()]['logs'][] = $eventData; + } else { + $this->logs[$project->getInternalId()] = [ + 'project' => new Document([ + '$id' => $project->getId(), + '$internalId' => $project->getInternalId(), + 'database' => $project->getAttribute('database'), + ]), + 'logs' => [$eventData] + ]; + } + + // Check if we should process the batch by checking both for the batch size and the elapsed time + $batchSize = $this->getBatchSize(); + $shouldProcessBatch = \count($this->logs) >= $batchSize; + if (!$shouldProcessBatch && \count($this->logs) > 0) { + $shouldProcessBatch = (\time() - $this->lastTriggeredTime) >= self::BATCH_AGGREGATION_INTERVAL; + } + + if ($shouldProcessBatch) { + try { + foreach ($this->logs as $internalId => $projectLogs) { + $dbForProject = $getProjectDB($projectLogs['project']); + + Console::log('Processing batch with ' . count($projectLogs['logs']) . ' events'); + $audit = new Audit($dbForProject); + + $audit->logBatch($projectLogs['logs']); + Console::success('Audit logs processed successfully'); + + unset($this->logs[$internalId]); + } + } catch (Throwable $e) { + Console::error('Error processing audit logs: ' . $e->getMessage()); + } finally { + $this->lastTriggeredTime = time(); + } + } } } diff --git a/src/Appwrite/Platform/Workers/Builds.php b/src/Appwrite/Platform/Workers/Builds.php index 5dd2f7f8869..59d9abacb8a 100644 --- a/src/Appwrite/Platform/Workers/Builds.php +++ b/src/Appwrite/Platform/Workers/Builds.php @@ -5,8 +5,9 @@ use Ahc\Jwt\JWT; use Appwrite\Event\Event; use Appwrite\Event\Func; -use Appwrite\Event\Usage; -use Appwrite\Messaging\Adapter\Realtime; +use Appwrite\Event\Realtime; +use Appwrite\Event\StatsUsage; +use Appwrite\Event\Webhook; use Appwrite\Utopia\Response\Model\Deployment; use Appwrite\Vcs\Comment; use Exception; @@ -45,32 +46,43 @@ public function __construct() { $this ->desc('Builds worker') + ->groups(['builds']) ->inject('message') - ->inject('dbForConsole') + ->inject('project') + ->inject('dbForPlatform') ->inject('queueForEvents') + ->inject('queueForWebhooks') ->inject('queueForFunctions') - ->inject('queueForUsage') + ->inject('queueForRealtime') + ->inject('queueForStatsUsage') ->inject('cache') ->inject('dbForProject') ->inject('deviceForFunctions') + ->inject('isResourceBlocked') ->inject('log') - ->callback(fn ($message, Database $dbForConsole, Event $queueForEvents, Func $queueForFunctions, Usage $usage, Cache $cache, Database $dbForProject, Device $deviceForFunctions, Log $log) => $this->action($message, $dbForConsole, $queueForEvents, $queueForFunctions, $usage, $cache, $dbForProject, $deviceForFunctions, $log)); + ->inject('executor') + ->callback(fn ($message, Document $project, Database $dbForPlatform, Event $queueForEvents, Webhook $queueForWebhooks, Func $queueForFunctions, Realtime $queueForRealtime, StatsUsage $usage, Cache $cache, Database $dbForProject, Device $deviceForFunctions, callable $isResourceBlocked, Log $log, Executor $executor) => + $this->action($message, $project, $dbForPlatform, $queueForEvents, $queueForWebhooks, $queueForFunctions, $queueForRealtime, $usage, $cache, $dbForProject, $deviceForFunctions, $isResourceBlocked, $log, $executor)); } /** * @param Message $message - * @param Database $dbForConsole + * @param Document $project + * @param Database $dbForPlatform * @param Event $queueForEvents + * @param Webhook $queueForWebhooks * @param Func $queueForFunctions - * @param Usage $queueForUsage + * @param Realtime $queueForRealtime + * @param StatsUsage $queueForStatsUsage * @param Cache $cache * @param Database $dbForProject * @param Device $deviceForFunctions * @param Log $log + * @param Executor $executor * @return void * @throws \Utopia\Database\Exception */ - public function action(Message $message, Database $dbForConsole, Event $queueForEvents, Func $queueForFunctions, Usage $queueForUsage, Cache $cache, Database $dbForProject, Device $deviceForFunctions, Log $log): void + public function action(Message $message, Document $project, Database $dbForPlatform, Event $queueForEvents, Webhook $queueForWebhooks, Func $queueForFunctions, Realtime $queueForRealtime, StatsUsage $queueForStatsUsage, Cache $cache, Database $dbForProject, Device $deviceForFunctions, callable $isResourceBlocked, Log $log, Executor $executor): void { $payload = $message->getPayload() ?? []; @@ -79,7 +91,6 @@ public function action(Message $message, Database $dbForConsole, Event $queueFor } $type = $payload['type'] ?? ''; - $project = new Document($payload['project'] ?? []); $resource = new Document($payload['resource'] ?? []); $deployment = new Document($payload['deployment'] ?? []); $template = new Document($payload['template'] ?? []); @@ -92,7 +103,7 @@ public function action(Message $message, Database $dbForConsole, Event $queueFor case BUILD_TYPE_RETRY: Console::info('Creating build for deployment: ' . $deployment->getId()); $github = new GitHub($cache); - $this->buildDeployment($deviceForFunctions, $queueForFunctions, $queueForEvents, $queueForUsage, $dbForConsole, $dbForProject, $github, $project, $resource, $deployment, $template, $log); + $this->buildDeployment($deviceForFunctions, $queueForWebhooks, $queueForFunctions, $queueForRealtime, $queueForEvents, $queueForStatsUsage, $dbForPlatform, $dbForProject, $github, $project, $resource, $deployment, $template, $isResourceBlocked, $log, $executor); break; default: @@ -102,10 +113,12 @@ public function action(Message $message, Database $dbForConsole, Event $queueFor /** * @param Device $deviceForFunctions + * @param Webhook $queueForWebhooks * @param Func $queueForFunctions + * @param Realtime $queueForRealtime * @param Event $queueForEvents - * @param Usage $queueForUsage - * @param Database $dbForConsole + * @param StatsUsage $queueForStatsUsage + * @param Database $dbForPlatform * @param Database $dbForProject * @param GitHub $github * @param Document $project @@ -113,20 +126,23 @@ public function action(Message $message, Database $dbForConsole, Event $queueFor * @param Document $deployment * @param Document $template * @param Log $log + * @param Executor $executor * @return void * @throws \Utopia\Database\Exception * @throws Exception */ - protected function buildDeployment(Device $deviceForFunctions, Func $queueForFunctions, Event $queueForEvents, Usage $queueForUsage, Database $dbForConsole, Database $dbForProject, GitHub $github, Document $project, Document $function, Document $deployment, Document $template, Log $log): void + protected function buildDeployment(Device $deviceForFunctions, Webhook $queueForWebhooks, Func $queueForFunctions, Realtime $queueForRealtime, Event $queueForEvents, StatsUsage $queueForStatsUsage, Database $dbForPlatform, Database $dbForProject, GitHub $github, Document $project, Document $function, Document $deployment, Document $template, callable $isResourceBlocked, Log $log, Executor $executor): void { - $executor = new Executor(System::getEnv('_APP_EXECUTOR_HOST')); - $functionId = $function->getId(); $log->addTag('functionId', $function->getId()); $function = $dbForProject->getDocument('functions', $functionId); if ($function->isEmpty()) { - throw new \Exception('Function not found', 404); + throw new \Exception('Function not found'); + } + + if ($isResourceBlocked($project, RESOURCE_TYPE_FUNCTIONS, $functionId)) { + throw new \Exception('Function blocked'); } $deploymentId = $deployment->getId(); @@ -134,15 +150,15 @@ protected function buildDeployment(Device $deviceForFunctions, Func $queueForFun $deployment = $dbForProject->getDocument('deployments', $deploymentId); if ($deployment->isEmpty()) { - throw new \Exception('Deployment not found', 404); + throw new \Exception('Deployment not found'); } if (empty($deployment->getAttribute('entrypoint', ''))) { - throw new \Exception('Entrypoint for your Appwrite Function is missing. Please specify it when making deployment or update the entrypoint under your function\'s "Settings" > "Configuration" > "Entrypoint".', 500); + throw new \Exception('Entrypoint for your Appwrite Function is missing. Please specify it when making deployment or update the entrypoint under your function\'s "Settings" > "Configuration" > "Entrypoint".'); } $version = $function->getAttribute('version', 'v2'); - $spec = Config::getParam('runtime-specifications')[$function->getAttribute('specifications', APP_FUNCTION_SPECIFICATION_DEFAULT)]; + $spec = Config::getParam('runtime-specifications')[$function->getAttribute('specification', APP_FUNCTION_SPECIFICATION_DEFAULT)]; $runtimes = Config::getParam($version === 'v2' ? 'runtimes-v2' : 'runtimes', []); $key = $function->getAttribute('runtime'); $runtime = $runtimes[$key] ?? null; @@ -151,10 +167,7 @@ protected function buildDeployment(Device $deviceForFunctions, Func $queueForFun } // Realtime preparation - $allEvents = Event::generateEvents('functions.[functionId].deployments.[deploymentId].update', [ - 'functionId' => $function->getId(), - 'deploymentId' => $deployment->getId() - ]); + $event = "functions.[functionId].deployments.[deploymentId].update"; $startTime = DateTime::now(); $durationStart = \microtime(true); @@ -199,7 +212,7 @@ protected function buildDeployment(Device $deviceForFunctions, Func $queueForFun $repositoryName = ''; if ($isVcsEnabled) { - $installation = $dbForConsole->getDocument('installations', $installationId); + $installation = $dbForPlatform->getDocument('installations', $installationId); $providerInstallationId = $installation->getAttribute('providerInstallationId'); $privateKey = System::getEnv('_APP_VCS_GITHUB_PRIVATE_KEY'); $githubAppId = System::getEnv('_APP_VCS_GITHUB_APP_ID'); @@ -209,8 +222,7 @@ protected function buildDeployment(Device $deviceForFunctions, Func $queueForFun try { if ($isNewBuild && !$isVcsEnabled) { - // Non-vcs+Template - + // Non-VCS + Template $templateRepositoryName = $template->getAttribute('repositoryName', ''); $templateOwnerName = $template->getAttribute('ownerName', ''); $templateVersion = $template->getAttribute('version', ''); @@ -233,6 +245,8 @@ protected function buildDeployment(Device $deviceForFunctions, Func $queueForFun throw new \Exception('Unable to clone code repository: ' . $stderr); } + Console::execute('find ' . \escapeshellarg($tmpTemplateDirectory) . ' -type d -name ".git" -exec rm -rf {} +', '', $stdout, $stderr); + // Ensure directories Console::execute('mkdir -p ' . \escapeshellarg($tmpTemplateDirectory . '/' . $templateRootDirectory), '', $stdout, $stderr); @@ -367,21 +381,16 @@ protected function buildDeployment(Device $deviceForFunctions, Func $queueForFun $deployment = $dbForProject->updateDocument('deployments', $deployment->getId(), $deployment); /** - * Send realtime Event + * Trigger Realtime Event */ - $target = Realtime::fromPayload( - // Pass first, most verbose event pattern - event: $allEvents[0], - payload: $build, - project: $project - ); - Realtime::send( - projectId: 'console', - payload: $build->getArrayCopy(), - events: $allEvents, - channels: $target['channels'], - roles: $target['roles'] - ); + $queueForRealtime + ->setProject($project) + ->setSubscribers(['console']) + ->setEvent($event) + ->setParam('functionId', $function->getId()) + ->setParam('deploymentId', $deployment->getId()) + ->setPayload($build->getArrayCopy()) + ->trigger(); } $tmpPath = '/tmp/builds/' . $buildId; @@ -398,6 +407,8 @@ protected function buildDeployment(Device $deviceForFunctions, Func $queueForFun throw new \Exception('Repository directory size should be less than ' . number_format($functionsSizeLimit / 1048576, 2) . ' MBs.'); } + Console::execute('find ' . \escapeshellarg($tmpDirectory) . ' -type d -name ".git" -exec rm -rf {} +', '', $stdout, $stderr); + $tarParamDirectory = '/tmp/builds/' . $buildId . '/code' . (empty($rootDirectory) ? '' : '/' . $rootDirectory); Console::execute('tar --exclude code.tar.gz -czf ' . \escapeshellarg($tmpPathFile) . ' -C ' . \escapeshellcmd($tarParamDirectory) . ' .', '', $stdout, $stderr); // TODO: Replace escapeshellcmd with escapeshellarg if we find a way that doesnt break syntax @@ -415,7 +426,7 @@ protected function buildDeployment(Device $deviceForFunctions, Func $queueForFun $directorySize = $deviceForFunctions->getFileSize($source); $deployment = $dbForProject->updateDocument('deployments', $deployment->getId(), $deployment->setAttribute('path', $source)->setAttribute('size', $directorySize)); - $this->runGitAction('processing', $github, $providerCommitHash, $owner, $repositoryName, $project, $function, $deployment->getId(), $dbForProject, $dbForConsole); + $this->runGitAction('processing', $github, $providerCommitHash, $owner, $repositoryName, $project, $function, $deployment->getId(), $dbForProject, $dbForPlatform); } /** Request the executor to build the code... */ @@ -423,43 +434,37 @@ protected function buildDeployment(Device $deviceForFunctions, Func $queueForFun $build = $dbForProject->updateDocument('builds', $buildId, $build); if ($isVcsEnabled) { - $this->runGitAction('building', $github, $providerCommitHash, $owner, $repositoryName, $project, $function, $deployment->getId(), $dbForProject, $dbForConsole); + $this->runGitAction('building', $github, $providerCommitHash, $owner, $repositoryName, $project, $function, $deployment->getId(), $dbForProject, $dbForPlatform); } - /** Trigger Webhook */ $deploymentModel = new Deployment(); $deploymentUpdate = $queueForEvents - ->setQueue(Event::WEBHOOK_QUEUE_NAME) - ->setClass(Event::WEBHOOK_CLASS_NAME) ->setProject($project) ->setEvent('functions.[functionId].deployments.[deploymentId].update') ->setParam('functionId', $function->getId()) ->setParam('deploymentId', $deployment->getId()) ->setPayload($deployment->getArrayCopy(array_keys($deploymentModel->getRules()))); - $deploymentUpdate->trigger(); + /** Trigger Webhook */ + $queueForWebhooks + ->from($deploymentUpdate) + ->trigger(); /** Trigger Functions */ $queueForFunctions ->from($deploymentUpdate) ->trigger(); - /** Trigger Realtime */ - $target = Realtime::fromPayload( - // Pass first, most verbose event pattern - event: $allEvents[0], - payload: $build, - project: $project - ); - - Realtime::send( - projectId: 'console', - payload: $build->getArrayCopy(), - events: $allEvents, - channels: $target['channels'], - roles: $target['roles'] - ); + /** Trigger Realtime Event */ + $queueForRealtime + ->setProject($project) + ->setSubscribers(['console']) + ->setEvent($event) + ->setParam('functionId', $function->getId()) + ->setParam('deploymentId', $deployment->getId()) + ->setPayload($build->getArrayCopy()) + ->trigger(); $vars = []; @@ -552,12 +557,12 @@ protected function buildDeployment(Device $deviceForFunctions, Func $queueForFun $err = $error; } }), - Co\go(function () use ($executor, $project, $deployment, &$response, &$build, $dbForProject, $allEvents, &$err, &$isCanceled) { + Co\go(function () use ($executor, $project, $function, $deployment, &$response, &$build, $dbForProject, $event, &$err, $queueForRealtime, &$isCanceled) { try { $executor->getLogs( deploymentId: $deployment->getId(), projectId: $project->getId(), - callback: function ($logs) use (&$response, &$err, &$build, $dbForProject, $allEvents, $project, &$isCanceled) { + callback: function ($logs) use (&$response, &$err, &$build, $dbForProject, $event, $project, $function, $deployment, $queueForRealtime, &$isCanceled) { if ($isCanceled) { return; } @@ -567,7 +572,7 @@ protected function buildDeployment(Device $deviceForFunctions, Func $queueForFun $build = $dbForProject->getDocument('builds', $build->getId()); if ($build->isEmpty()) { - throw new \Exception('Build not found', 404); + throw new \Exception('Build not found'); } if ($build->getAttribute('status') === 'canceled') { @@ -582,21 +587,16 @@ protected function buildDeployment(Device $deviceForFunctions, Func $queueForFun $build = $dbForProject->updateDocument('builds', $build->getId(), $build); /** - * Send realtime Event + * Trigger Realtime Event */ - $target = Realtime::fromPayload( - // Pass first, most verbose event pattern - event: $allEvents[0], - payload: $build, - project: $project - ); - Realtime::send( - projectId: 'console', - payload: $build->getArrayCopy(), - events: $allEvents, - channels: $target['channels'], - roles: $target['roles'] - ); + $queueForRealtime + ->setProject($project) + ->setSubscribers(['console']) + ->setEvent($event) + ->setParam('functionId', $function->getId()) + ->setParam('deploymentId', $deployment->getId()) + ->setPayload($build->getArrayCopy()) + ->trigger(); } } ); @@ -637,7 +637,7 @@ protected function buildDeployment(Device $deviceForFunctions, Func $queueForFun $build = $dbForProject->updateDocument('builds', $buildId, $build); if ($isVcsEnabled) { - $this->runGitAction('ready', $github, $providerCommitHash, $owner, $repositoryName, $project, $function, $deployment->getId(), $dbForProject, $dbForConsole); + $this->runGitAction('ready', $github, $providerCommitHash, $owner, $repositoryName, $project, $function, $deployment->getId(), $dbForProject, $dbForPlatform); } Console::success("Build id: $buildId created"); @@ -658,12 +658,12 @@ protected function buildDeployment(Device $deviceForFunctions, Func $queueForFun /** Update function schedule */ // Inform scheduler if function is still active - $schedule = $dbForConsole->getDocument('schedules', $function->getAttribute('scheduleId')); + $schedule = $dbForPlatform->getDocument('schedules', $function->getAttribute('scheduleId')); $schedule ->setAttribute('resourceUpdatedAt', DateTime::now()) ->setAttribute('schedule', $function->getAttribute('schedule')) ->setAttribute('active', !empty($function->getAttribute('schedule')) && !empty($function->getAttribute('deployment'))); - Authorization::skip(fn () => $dbForConsole->updateDocument('schedules', $schedule->getId(), $schedule)); + Authorization::skip(fn () => $dbForPlatform->updateDocument('schedules', $schedule->getId(), $schedule)); } catch (\Throwable $th) { if ($dbForProject->getDocument('builds', $buildId)->getAttribute('status') === 'canceled') { Console::info('Build has been canceled'); @@ -680,42 +680,37 @@ protected function buildDeployment(Device $deviceForFunctions, Func $queueForFun $build = $dbForProject->updateDocument('builds', $buildId, $build); if ($isVcsEnabled) { - $this->runGitAction('failed', $github, $providerCommitHash, $owner, $repositoryName, $project, $function, $deployment->getId(), $dbForProject, $dbForConsole); + $this->runGitAction('failed', $github, $providerCommitHash, $owner, $repositoryName, $project, $function, $deployment->getId(), $dbForProject, $dbForPlatform); } } finally { /** - * Send realtime Event + * Trigger Realtime Event */ - $target = Realtime::fromPayload( - // Pass first, most verbose event pattern - event: $allEvents[0], - payload: $build, - project: $project - ); - Realtime::send( - projectId: 'console', - payload: $build->getArrayCopy(), - events: $allEvents, - channels: $target['channels'], - roles: $target['roles'] - ); + $queueForRealtime + ->setProject($project) + ->setSubscribers(['console']) + ->setEvent($event) + ->setParam('functionId', $function->getId()) + ->setParam('deploymentId', $deployment->getId()) + ->setPayload($build->getArrayCopy()) + ->trigger(); /** Trigger usage queue */ if ($build->getAttribute('status') === 'ready') { - $queueForUsage + $queueForStatsUsage ->addMetric(METRIC_BUILDS_SUCCESS, 1) // per project ->addMetric(METRIC_BUILDS_COMPUTE_SUCCESS, (int)$build->getAttribute('duration', 0) * 1000) ->addMetric(str_replace('{functionInternalId}', $function->getInternalId(), METRIC_FUNCTION_ID_BUILDS_SUCCESS), 1) // per function ->addMetric(str_replace('{functionInternalId}', $function->getInternalId(), METRIC_FUNCTION_ID_BUILDS_COMPUTE_SUCCESS), (int)$build->getAttribute('duration', 0) * 1000); } elseif ($build->getAttribute('status') === 'failed') { - $queueForUsage + $queueForStatsUsage ->addMetric(METRIC_BUILDS_FAILED, 1) // per project ->addMetric(METRIC_BUILDS_COMPUTE_FAILED, (int)$build->getAttribute('duration', 0) * 1000) ->addMetric(str_replace('{functionInternalId}', $function->getInternalId(), METRIC_FUNCTION_ID_BUILDS_FAILED), 1) // per function ->addMetric(str_replace('{functionInternalId}', $function->getInternalId(), METRIC_FUNCTION_ID_BUILDS_COMPUTE_FAILED), (int)$build->getAttribute('duration', 0) * 1000); } - $queueForUsage + $queueForStatsUsage ->addMetric(METRIC_BUILDS, 1) // per project ->addMetric(METRIC_BUILDS_STORAGE, $build->getAttribute('size', 0)) ->addMetric(METRIC_BUILDS_COMPUTE, (int)$build->getAttribute('duration', 0) * 1000) @@ -739,7 +734,7 @@ protected function buildDeployment(Device $deviceForFunctions, Func $queueForFun * @param Document $function * @param string $deploymentId * @param Database $dbForProject - * @param Database $dbForConsole + * @param Database $dbForPlatform * @return void * @throws Structure * @throws \Utopia\Database\Exception @@ -747,7 +742,7 @@ protected function buildDeployment(Device $deviceForFunctions, Func $queueForFun * @throws Conflict * @throws Restricted */ - protected function runGitAction(string $status, GitHub $github, string $providerCommitHash, string $owner, string $repositoryName, Document $project, Document $function, string $deploymentId, Database $dbForProject, Database $dbForConsole): void + protected function runGitAction(string $status, GitHub $github, string $providerCommitHash, string $owner, string $repositoryName, Document $project, Document $function, string $deploymentId, Database $dbForProject, Database $dbForPlatform): void { if ($function->getAttribute('providerSilentMode', false) === true) { return; @@ -792,7 +787,7 @@ protected function runGitAction(string $status, GitHub $github, string $provider $retries++; try { - $dbForConsole->createDocument('vcsCommentLocks', new Document([ + $dbForPlatform->createDocument('vcsCommentLocks', new Document([ '$id' => $commentId ])); break; @@ -812,7 +807,7 @@ protected function runGitAction(string $status, GitHub $github, string $provider $comment->addBuild($project, $function, $status, $deployment->getId(), ['type' => 'logs']); $github->updateComment($owner, $repositoryName, $commentId, $comment->generateComment()); } finally { - $dbForConsole->deleteDocument('vcsCommentLocks', $commentId); + $dbForPlatform->deleteDocument('vcsCommentLocks', $commentId); } } } diff --git a/src/Appwrite/Platform/Workers/Certificates.php b/src/Appwrite/Platform/Workers/Certificates.php index 58dc1dd28a3..093e6fda5a8 100644 --- a/src/Appwrite/Platform/Workers/Certificates.php +++ b/src/Appwrite/Platform/Workers/Certificates.php @@ -2,16 +2,17 @@ namespace Appwrite\Platform\Workers; +use Appwrite\Certificates\Adapter as CertificatesAdapter; use Appwrite\Event\Event; use Appwrite\Event\Func; use Appwrite\Event\Mail; -use Appwrite\Messaging\Adapter\Realtime; +use Appwrite\Event\Realtime; +use Appwrite\Event\Webhook; use Appwrite\Network\Validator\CNAME; use Appwrite\Template\Template; use Appwrite\Utopia\Response\Model\Rule; use Exception; use Throwable; -use Utopia\App; use Utopia\CLI\Console; use Utopia\Database\Database; use Utopia\Database\DateTime; @@ -43,26 +44,35 @@ public function __construct() $this ->desc('Certificates worker') ->inject('message') - ->inject('dbForConsole') + ->inject('dbForPlatform') ->inject('queueForMails') ->inject('queueForEvents') + ->inject('queueForWebhooks') ->inject('queueForFunctions') + ->inject('queueForRealtime') ->inject('log') - ->callback(fn (Message $message, Database $dbForConsole, Mail $queueForMails, Event $queueForEvents, Func $queueForFunctions, Log $log) => $this->action($message, $dbForConsole, $queueForMails, $queueForEvents, $queueForFunctions, $log)); + ->inject('certificates') + ->callback( + fn (Message $message, Database $dbForPlatform, Mail $queueForMails, Event $queueForEvents, Webhook $queueForWebhooks, Func $queueForFunctions, Realtime $queueForRealtime, Log $log, CertificatesAdapter $certificates) => + $this->action($message, $dbForPlatform, $queueForMails, $queueForEvents, $queueForWebhooks, $queueForFunctions, $queueForRealtime, $log, $certificates) + ); } /** * @param Message $message - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param Mail $queueForMails * @param Event $queueForEvents + * @param Webhook $queueForWebhooks * @param Func $queueForFunctions + * @param Realtime $queueForRealtime * @param Log $log + * @param CertificatesAdapter $certificates * @return void * @throws Throwable * @throws \Utopia\Database\Exception */ - public function action(Message $message, Database $dbForConsole, Mail $queueForMails, Event $queueForEvents, Func $queueForFunctions, Log $log): void + public function action(Message $message, Database $dbForPlatform, Mail $queueForMails, Event $queueForEvents, Webhook $queueForWebhooks, Func $queueForFunctions, Realtime $queueForRealtime, Log $log, CertificatesAdapter $certificates): void { $payload = $message->getPayload() ?? []; @@ -76,33 +86,34 @@ public function action(Message $message, Database $dbForConsole, Mail $queueForM $log->addTag('domain', $domain->get()); - $this->execute($domain, $dbForConsole, $queueForMails, $queueForEvents, $queueForFunctions, $log, $skipRenewCheck); + $this->execute($domain, $dbForPlatform, $queueForMails, $queueForEvents, $queueForWebhooks, $queueForFunctions, $queueForRealtime, $log, $certificates, $skipRenewCheck); } /** * @param Domain $domain - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param Mail $queueForMails * @param Event $queueForEvents * @param Func $queueForFunctions + * @param Realtime $queueForRealtime + * @param CertificatesAdapter $certificates * @param bool $skipRenewCheck * @return void * @throws Throwable * @throws \Utopia\Database\Exception */ - private function execute(Domain $domain, Database $dbForConsole, Mail $queueForMails, Event $queueForEvents, Func $queueForFunctions, Log $log, bool $skipRenewCheck = false): void + private function execute(Domain $domain, Database $dbForPlatform, Mail $queueForMails, Event $queueForEvents, Webhook $queueForWebhooks, Func $queueForFunctions, Realtime $queueForRealtime, Log $log, CertificatesAdapter $certificates, bool $skipRenewCheck = false): void { /** * 1. Read arguments and validate domain * 2. Get main domain * 3. Validate CNAME DNS if parameter is not main domain (meaning it's custom domain) - * 4. Validate security email. Cannot be empty, required by LetsEncrypt - * 5. Validate renew date with certificate file, unless requested to skip by parameter - * 6. Issue a certificate using certbot CLI - * 7. Update 'log' attribute on certificate document with Certbot message - * 8. Create storage folder for certificate, if not ready already - * 9. Move certificates from Certbot location to our Storage - * 10. Create/Update our Storage with new Traefik config with new certificate paths + * 4. Validate renew date with certificate file, unless requested to skip by parameter + * 5. Issue a certificate using certbot CLI + * 6. Update 'log' attribute on certificate document with Certbot message + * 7. Create storage folder for certificate, if not ready already + * 8. Move certificates from Certbot location to our Storage + * 9. Create/Update our Storage with new Traefik config with new certificate paths * 11. Read certificate file and update 'renewDate' on certificate document * 12. Update 'issueDate' and 'attempts' on certificate * @@ -119,14 +130,14 @@ private function execute(Domain $domain, Database $dbForConsole, Mail $queueForM * 2. Save document to database * 3. Update all domains documents with current certificate ID * - * Note: Renewals are checked and scheduled from maintenence worker + * Note: Renewals are checked and scheduled from maintenance worker */ // Get current certificate - $certificate = $dbForConsole->findOne('certificates', [Query::equal('domain', [$domain->get()])]); + $certificate = $dbForPlatform->findOne('certificates', [Query::equal('domain', [$domain->get()])]); // If we don't have certificate for domain yet, let's create new document. At the end we save it - if (!$certificate) { + if ($certificate->isEmpty()) { $certificate = new Document(); $certificate->setAttribute('domain', $domain->get()); } @@ -134,40 +145,28 @@ private function execute(Domain $domain, Database $dbForConsole, Mail $queueForM $success = false; try { - // Email for alerts is required by LetsEncrypt - $email = System::getEnv('_APP_EMAIL_CERTIFICATES', System::getEnv('_APP_SYSTEM_SECURITY_EMAIL_ADDRESS')); - if (empty($email)) { - throw new Exception('You must set a valid security email address (_APP_EMAIL_CERTIFICATES) to issue an SSL certificate.'); - } - // Validate domain and DNS records. Skip if job is forced if (!$skipRenewCheck) { $mainDomain = $this->getMainDomain(); $isMainDomain = !isset($mainDomain) || $domain->get() === $mainDomain; $this->validateDomain($domain, $isMainDomain, $log); - } - // If certificate exists already, double-check expiry date. Skip if job is forced - if (!$skipRenewCheck && !$this->isRenewRequired($domain->get(), $log)) { - throw new Exception('Renew isn\'t required.'); + // If certificate exists already, double-check expiry date. Skip if job is forced + if (!$certificates->isRenewRequired($domain->get(), $log)) { + Console::info("Skipping, renew isn't required"); + return; + } } - // Prepare folder name for certbot. Using this helps prevent miss-match in LetsEncrypt configuration when renewing certificate - $folder = ID::unique(); - - // Generate certificate files using Let's Encrypt - $letsEncryptData = $this->issueCertificate($folder, $domain->get(), $email); + // Prepare unique cert name. Using this helps prevent miss-match in configuration when renewing certificates. + $certName = ID::unique(); + $renewDate = $certificates->issueCertificate($certName, $domain->get()); // Command succeeded, store all data into document - $logs = 'Certificate successfully generated.'; - $certificate->setAttribute('logs', \mb_strcut($logs, 0, 1000000));// Limit to 1MB - - - // Give certificates to Traefik - $this->applyCertificateFiles($folder, $domain->get(), $letsEncryptData); + $certificate->setAttribute('logs', 'Certificate successfully generated.'); // Update certificate info stored in database - $certificate->setAttribute('renewDate', $this->getRenewDate($domain->get())); + $certificate->setAttribute('renewDate', $renewDate); $certificate->setAttribute('attempts', 0); $certificate->setAttribute('issueDate', DateTime::now()); $success = true; @@ -181,7 +180,7 @@ private function execute(Domain $domain, Database $dbForConsole, Mail $queueForM $attempts = $certificate->getAttribute('attempts', 0) + 1; $certificate->setAttribute('attempts', $attempts); - // Store cuttent time as renew date to ensure another attempt in next maintenance cycle + // Store current time as renew date to ensure another attempt in next maintenance cycle. $certificate->setAttribute('renewDate', DateTime::now()); // Send email to security email @@ -193,7 +192,7 @@ private function execute(Domain $domain, Database $dbForConsole, Mail $queueForM $certificate->setAttribute('updated', DateTime::now()); // Save all changes we made to certificate document into database - $this->saveCertificateDocument($domain->get(), $certificate, $success, $dbForConsole, $queueForEvents, $queueForFunctions); + $this->saveCertificateDocument($domain->get(), $certificate, $success, $dbForPlatform, $queueForEvents, $queueForWebhooks, $queueForFunctions, $queueForRealtime); } } @@ -203,30 +202,31 @@ private function execute(Domain $domain, Database $dbForConsole, Mail $queueForM * @param string $domain Domain name that certificate is for * @param Document $certificate Certificate document that we need to save * @param bool $success - * @param Database $dbForConsole Database connection for console + * @param Database $dbForPlatform Database connection for console * @param Event $queueForEvents * @param Func $queueForFunctions + * @param Realtime $queueForRealtime * @return void * @throws \Utopia\Database\Exception * @throws Authorization * @throws Conflict * @throws Structure */ - private function saveCertificateDocument(string $domain, Document $certificate, bool $success, Database $dbForConsole, Event $queueForEvents, Func $queueForFunctions): void + private function saveCertificateDocument(string $domain, Document $certificate, bool $success, Database $dbForPlatform, Event $queueForEvents, Webhook $queueForWebhooks, Func $queueForFunctions, Realtime $queueForRealtime): void { // Check if update or insert required - $certificateDocument = $dbForConsole->findOne('certificates', [Query::equal('domain', [$domain])]); - if (!empty($certificateDocument) && !$certificateDocument->isEmpty()) { + $certificateDocument = $dbForPlatform->findOne('certificates', [Query::equal('domain', [$domain])]); + if (!$certificateDocument->isEmpty()) { // Merge new data with current data $certificate = new Document(\array_merge($certificateDocument->getArrayCopy(), $certificate->getArrayCopy())); - $certificate = $dbForConsole->updateDocument('certificates', $certificate->getId(), $certificate); + $certificate = $dbForPlatform->updateDocument('certificates', $certificate->getId(), $certificate); } else { $certificate->removeAttribute('$internalId'); - $certificate = $dbForConsole->createDocument('certificates', $certificate); + $certificate = $dbForPlatform->createDocument('certificates', $certificate); } $certificateId = $certificate->getId(); - $this->updateDomainDocuments($certificateId, $domain, $success, $dbForConsole, $queueForEvents, $queueForFunctions); + $this->updateDomainDocuments($certificateId, $domain, $success, $dbForPlatform, $queueForEvents, $queueForWebhooks, $queueForFunctions, $queueForRealtime); } /** @@ -245,8 +245,8 @@ private function getMainDomain(): ?string } /** - * Internal domain validation functionality to prevent unnecessary attempts failed from Let's Encrypt side. We check: - * - Domain needs to be public and valid (prevents NFT domains that are not supported by Let's Encrypt) + * Internal domain validation functionality to prevent unnecessary attempts. We check: + * - Domain needs to be public and valid (prevents NFT domains that are not supported) * - Domain must have proper DNS record * * @param Domain $domain Domain which we validate @@ -292,136 +292,6 @@ private function validateDomain(Domain $domain, bool $isMainDomain, Log $log): v } } - /** - * Reads expiry date of certificate from file and decides if renewal is required or not. - * - * @param string $domain Domain for which we check certificate file - * @return bool True, if certificate needs to be renewed - * @throws Exception - */ - private function isRenewRequired(string $domain, Log $log): bool - { - $certPath = APP_STORAGE_CERTIFICATES . '/' . $domain . '/cert.pem'; - if (\file_exists($certPath)) { - $validTo = null; - - $certData = openssl_x509_parse(file_get_contents($certPath)); - $validTo = $certData['validTo_time_t'] ?? 0; - - if (empty($validTo)) { - $log->addTag('certificateDomain', $domain); - throw new Exception('Unable to read certificate file (cert.pem).'); - } - - // LetsEncrypt allows renewal 30 days before expiry - $expiryInAdvance = (60 * 60 * 24 * 30); - if ($validTo - $expiryInAdvance > \time()) { - $log->addTag('certificateDomain', $domain); - $log->addExtra('certificateData', \is_array($certData) ? \json_encode($certData) : \strval($certData)); - return false; - } - } - - return true; - } - - /** - * LetsEncrypt communication to issue certificate (using certbot CLI) - * - * @param string $folder Folder into which certificates should be generated - * @param string $domain Domain to generate certificate for - * @return array Named array with keys 'stdout' and 'stderr', both string - * @throws Exception - */ - private function issueCertificate(string $folder, string $domain, string $email): array - { - $stdout = ''; - $stderr = ''; - - $staging = (App::isProduction()) ? '' : ' --dry-run'; - $exit = Console::execute("certbot certonly -v --webroot --noninteractive --agree-tos{$staging}" - . " --email " . $email - . " --cert-name " . $folder - . " -w " . APP_STORAGE_CERTIFICATES - . " -d {$domain}", '', $stdout, $stderr); - - // Unexpected error, usually 5XX, API limits, ... - if ($exit !== 0) { - throw new Exception('Failed to issue a certificate with message: ' . $stderr); - } - - return [ - 'stdout' => $stdout, - 'stderr' => $stderr - ]; - } - - /** - * Read new renew date from certificate file generated by Let's Encrypt - * - * @param string $domain Domain which certificate was generated for - * @return string - * @throws \Utopia\Database\Exception - */ - private function getRenewDate(string $domain): string - { - $certPath = APP_STORAGE_CERTIFICATES . '/' . $domain . '/cert.pem'; - $certData = openssl_x509_parse(file_get_contents($certPath)); - $validTo = $certData['validTo_time_t'] ?? null; - $dt = (new \DateTime())->setTimestamp($validTo); - return DateTime::addSeconds($dt, -60 * 60 * 24 * 30); // -30 days - } - - /** - * Method to take files from Let's Encrypt, and put it into Traefik. - * - * @param string $domain Domain which certificate was generated for - * @param string $folder Folder in which certificates were generated - * @param array $letsEncryptData Let's Encrypt logs to use for additional info when throwing error - * @return void - * @throws Exception - */ - private function applyCertificateFiles(string $folder, string $domain, array $letsEncryptData): void - { - - // Prepare folder in storage for domain - $path = APP_STORAGE_CERTIFICATES . '/' . $domain; - if (!\is_readable($path)) { - if (!\mkdir($path, 0755, true)) { - throw new Exception('Failed to create path for certificate.'); - } - } - - // Move generated files - if (!@\rename('/etc/letsencrypt/live/' . $folder . '/cert.pem', APP_STORAGE_CERTIFICATES . '/' . $domain . '/cert.pem')) { - throw new Exception('Failed to rename certificate cert.pem. Let\'s Encrypt log: ' . $letsEncryptData['stderr'] . ' ; ' . $letsEncryptData['stdout']); - } - - if (!@\rename('/etc/letsencrypt/live/' . $folder . '/chain.pem', APP_STORAGE_CERTIFICATES . '/' . $domain . '/chain.pem')) { - throw new Exception('Failed to rename certificate chain.pem. Let\'s Encrypt log: ' . $letsEncryptData['stderr'] . ' ; ' . $letsEncryptData['stdout']); - } - - if (!@\rename('/etc/letsencrypt/live/' . $folder . '/fullchain.pem', APP_STORAGE_CERTIFICATES . '/' . $domain . '/fullchain.pem')) { - throw new Exception('Failed to rename certificate fullchain.pem. Let\'s Encrypt log: ' . $letsEncryptData['stderr'] . ' ; ' . $letsEncryptData['stdout']); - } - - if (!@\rename('/etc/letsencrypt/live/' . $folder . '/privkey.pem', APP_STORAGE_CERTIFICATES . '/' . $domain . '/privkey.pem')) { - throw new Exception('Failed to rename certificate privkey.pem. Let\'s Encrypt log: ' . $letsEncryptData['stderr'] . ' ; ' . $letsEncryptData['stdout']); - } - - $config = \implode(PHP_EOL, [ - "tls:", - " certificates:", - " - certFile: /storage/certificates/{$domain}/fullchain.pem", - " keyFile: /storage/certificates/{$domain}/privkey.pem" - ]); - - // Save configuration into Traefik using our new cert files - if (!\file_put_contents(APP_STORAGE_CONFIG . '/' . $domain . '.yml', $config)) { - throw new Exception('Failed to save Traefik configuration.'); - } - } - /** * Method to make sure information about error is delivered to admnistrator. * @@ -475,17 +345,21 @@ private function notifyError(string $domain, string $errorMessage, int $attempt, * * @return void */ - private function updateDomainDocuments(string $certificateId, string $domain, bool $success, Database $dbForConsole, Event $queueForEvents, Func $queueForFunctions): void + private function updateDomainDocuments(string $certificateId, string $domain, bool $success, Database $dbForPlatform, Event $queueForEvents, Webhook $queueForWebhooks, Func $queueForFunctions, Realtime $queueForRealtime): void { + // TODO: @christyjacob remove once we migrate the rules in 1.7.x + if (System::getEnv('_APP_RULES_FORMAT') === 'md5') { + $rule = $dbForPlatform->getDocument('rules', md5($domain)); + } else { + $rule = $dbForPlatform->findOne('rules', [ + Query::equal('domain', [$domain]), + ]); + } - $rule = $dbForConsole->findOne('rules', [ - Query::equal('domain', [$domain]), - ]); - - if ($rule !== false && !$rule->isEmpty()) { + if (!$rule->isEmpty()) { $rule->setAttribute('certificateId', $certificateId); $rule->setAttribute('status', $success ? 'verified' : 'unverified'); - $dbForConsole->updateDocument('rules', $rule->getId(), $rule); + $dbForPlatform->updateDocument('rules', $rule->getId(), $rule); $projectId = $rule->getAttribute('projectId'); @@ -494,50 +368,34 @@ private function updateDomainDocuments(string $certificateId, string $domain, bo return; } - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); + + if ($project->isEmpty()) { + return; + } - /** Trigger Webhook */ $ruleModel = new Rule(); $queueForEvents ->setProject($project) ->setEvent('rules.[ruleId].update') ->setParam('ruleId', $rule->getId()) - ->setPayload($rule->getArrayCopy(array_keys($ruleModel->getRules()))) - ->trigger(); + ->setPayload($rule->getArrayCopy(array_keys($ruleModel->getRules()))); + /** Trigger Webhook */ + $queueForWebhooks + ->from($queueForEvents) + ->trigger(); /** Trigger Functions */ $queueForFunctions - ->setProject($project) - ->setEvent('rules.[ruleId].update') - ->setParam('ruleId', $rule->getId()) - ->setPayload($rule->getArrayCopy(array_keys($ruleModel->getRules()))) + ->from($queueForEvents) ->trigger(); - /** Trigger realtime event */ - $allEvents = Event::generateEvents('rules.[ruleId].update', [ - 'ruleId' => $rule->getId(), - ]); - $target = Realtime::fromPayload( - // Pass first, most verbose event pattern - event: $allEvents[0], - payload: $rule, - project: $project - ); - Realtime::send( - projectId: 'console', - payload: $rule->getArrayCopy(), - events: $allEvents, - channels: $target['channels'], - roles: $target['roles'] - ); - Realtime::send( - projectId: $project->getId(), - payload: $rule->getArrayCopy(), - events: $allEvents, - channels: $target['channels'], - roles: $target['roles'] - ); + /** Trigger Realtime Events */ + $queueForRealtime + ->from($queueForEvents) + ->setSubscribers(['console', $projectId]) + ->trigger(); } } } diff --git a/src/Appwrite/Platform/Workers/Databases.php b/src/Appwrite/Platform/Workers/Databases.php index 56f5f012e80..1b3311b756b 100644 --- a/src/Appwrite/Platform/Workers/Databases.php +++ b/src/Appwrite/Platform/Workers/Databases.php @@ -2,16 +2,15 @@ namespace Appwrite\Platform\Workers; -use Appwrite\Event\Event; -use Appwrite\Messaging\Adapter\Realtime; +use Appwrite\Event\Realtime; use Exception; -use Utopia\Audit\Audit; use Utopia\CLI\Console; use Utopia\Database\Database; use Utopia\Database\Document; use Utopia\Database\Exception as DatabaseException; use Utopia\Database\Exception\Authorization; use Utopia\Database\Exception\Conflict; +use Utopia\Database\Exception\NotFound; use Utopia\Database\Exception\Restricted; use Utopia\Database\Exception\Structure; use Utopia\Database\Query; @@ -34,30 +33,33 @@ public function __construct() $this ->desc('Databases worker') ->inject('message') - ->inject('dbForConsole') + ->inject('project') + ->inject('dbForPlatform') ->inject('dbForProject') + ->inject('queueForRealtime') ->inject('log') - ->callback(fn (Message $message, Database $dbForConsole, Database $dbForProject, Log $log) => $this->action($message, $dbForConsole, $dbForProject, $log)); + ->callback(fn (Message $message, Document $project, Database $dbForPlatform, Database $dbForProject, Realtime $queueForRealtime, Log $log) => $this->action($message, $project, $dbForPlatform, $dbForProject, $queueForRealtime, $log)); } /** * @param Message $message - * @param Database $dbForConsole + * @param Document $project + * @param Database $dbForPlatform * @param Database $dbForProject + * @param Realtime $queueForRealtime * @param Log $log * @return void * @throws \Exception */ - public function action(Message $message, Database $dbForConsole, Database $dbForProject, Log $log): void + public function action(Message $message, Document $project, Database $dbForPlatform, Database $dbForProject, Realtime $queueForRealtime, Log $log): void { $payload = $message->getPayload() ?? []; if (empty($payload)) { - throw new \Exception('Missing payload'); + throw new Exception('Missing payload'); } $type = $payload['type']; - $project = new Document($payload['project']); $collection = new Document($payload['collection'] ?? []); $document = new Document($payload['document'] ?? []); $database = new Document($payload['database'] ?? []); @@ -74,11 +76,11 @@ public function action(Message $message, Database $dbForConsole, Database $dbFor match (\strval($type)) { DATABASE_TYPE_DELETE_DATABASE => $this->deleteDatabase($database, $project, $dbForProject), DATABASE_TYPE_DELETE_COLLECTION => $this->deleteCollection($database, $collection, $project, $dbForProject), - DATABASE_TYPE_CREATE_ATTRIBUTE => $this->createAttribute($database, $collection, $document, $project, $dbForConsole, $dbForProject), - DATABASE_TYPE_DELETE_ATTRIBUTE => $this->deleteAttribute($database, $collection, $document, $project, $dbForConsole, $dbForProject), - DATABASE_TYPE_CREATE_INDEX => $this->createIndex($database, $collection, $document, $project, $dbForConsole, $dbForProject), - DATABASE_TYPE_DELETE_INDEX => $this->deleteIndex($database, $collection, $document, $project, $dbForConsole, $dbForProject), - default => throw new \Exception('No database operation for type: ' . \strval($type)), + DATABASE_TYPE_CREATE_ATTRIBUTE => $this->createAttribute($database, $collection, $document, $project, $dbForPlatform, $dbForProject, $queueForRealtime), + DATABASE_TYPE_DELETE_ATTRIBUTE => $this->deleteAttribute($database, $collection, $document, $project, $dbForPlatform, $dbForProject, $queueForRealtime), + DATABASE_TYPE_CREATE_INDEX => $this->createIndex($database, $collection, $document, $project, $dbForPlatform, $dbForProject, $queueForRealtime), + DATABASE_TYPE_DELETE_INDEX => $this->deleteIndex($database, $collection, $document, $project, $dbForPlatform, $dbForProject, $queueForRealtime), + default => throw new Exception('No database operation for type: ' . \strval($type)), }; } @@ -87,14 +89,16 @@ public function action(Message $message, Database $dbForConsole, Database $dbFor * @param Document $collection * @param Document $attribute * @param Document $project - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param Database $dbForProject + * @param Realtime $queueForRealtime * @return void * @throws Authorization * @throws Conflict * @throws \Exception + * @throws \Throwable */ - private function createAttribute(Document $database, Document $collection, Document $attribute, Document $project, Database $dbForConsole, Database $dbForProject): void + private function createAttribute(Document $database, Document $collection, Document $attribute, Document $project, Database $dbForPlatform, Database $dbForProject, Realtime $queueForRealtime): void { if ($collection->isEmpty()) { throw new Exception('Missing collection'); @@ -104,12 +108,7 @@ private function createAttribute(Document $database, Document $collection, Docum } $projectId = $project->getId(); - - $events = Event::generateEvents('databases.[databaseId].collections.[collectionId].attributes.[attributeId].update', [ - 'databaseId' => $database->getId(), - 'collectionId' => $collection->getId(), - 'attributeId' => $attribute->getId() - ]); + $event = "databases.[databaseId].collections.[collectionId].attributes.[attributeId].update"; /** * TODO @christyjacob4 verify if this is still the case * Fetch attribute from the database, since with Resque float values are loosing informations. @@ -133,8 +132,10 @@ private function createAttribute(Document $database, Document $collection, Docum $formatOptions = $attribute->getAttribute('formatOptions', []); $filters = $attribute->getAttribute('filters', []); $options = $attribute->getAttribute('options', []); - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); + $relatedAttribute = new Document(); + $relatedCollection = new Document(); try { switch ($type) { @@ -165,18 +166,17 @@ private function createAttribute(Document $database, Document $collection, Docum break; default: if (!$dbForProject->createAttribute('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), $key, $type, $size, $required, $default, $signed, $array, $format, $formatOptions, $filters)) { - throw new \Exception('Failed to create Attribute'); + throw new Exception('Failed to create Attribute'); } } $dbForProject->updateDocument('attributes', $attribute->getId(), $attribute->setAttribute('status', 'available')); } catch (\Throwable $e) { - // TODO: Send non DatabaseExceptions to Sentry Console::error($e->getMessage()); if ($e instanceof DatabaseException) { $attribute->setAttribute('error', $e->getMessage()); - if (isset($relatedAttribute)) { + if (! $relatedAttribute->isEmpty()) { $relatedAttribute->setAttribute('error', $e->getMessage()); } } @@ -187,22 +187,24 @@ private function createAttribute(Document $database, Document $collection, Docum $attribute->setAttribute('status', 'failed') ); - if (isset($relatedAttribute)) { + if (! $relatedAttribute->isEmpty()) { $dbForProject->updateDocument( 'attributes', $relatedAttribute->getId(), $relatedAttribute->setAttribute('status', 'failed') ); } + + throw $e; } finally { - $this->trigger($database, $collection, $attribute, $project, $projectId, $events); - } + $this->trigger($database, $collection, $project, $event, $queueForRealtime, $attribute); - if ($type === Database::VAR_RELATIONSHIP && $options['twoWay']) { - $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $relatedCollection->getId()); - } + if (! $relatedCollection->isEmpty()) { + $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $relatedCollection->getId()); + } - $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $collectionId); + $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $collectionId); + } } /** @@ -210,14 +212,16 @@ private function createAttribute(Document $database, Document $collection, Docum * @param Document $collection * @param Document $attribute * @param Document $project - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param Database $dbForProject + * @param Realtime $queueForRealtime * @return void * @throws Authorization * @throws Conflict * @throws \Exception + * @throws \Throwable **/ - private function deleteAttribute(Document $database, Document $collection, Document $attribute, Document $project, Database $dbForConsole, Database $dbForProject): void + private function deleteAttribute(Document $database, Document $collection, Document $attribute, Document $project, Database $dbForPlatform, Database $dbForProject, Realtime $queueForRealtime): void { if ($collection->isEmpty()) { throw new Exception('Missing collection'); @@ -227,17 +231,11 @@ private function deleteAttribute(Document $database, Document $collection, Docum } $projectId = $project->getId(); - - $events = Event::generateEvents('databases.[databaseId].collections.[collectionId].attributes.[attributeId].delete', [ - 'databaseId' => $database->getId(), - 'collectionId' => $collection->getId(), - 'attributeId' => $attribute->getId() - ]); + $event = 'databases.[databaseId].collections.[collectionId].attributes.[attributeId].delete'; $collectionId = $collection->getId(); $key = $attribute->getAttribute('key', ''); - $status = $attribute->getAttribute('status', ''); $type = $attribute->getAttribute('type', ''); - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); $options = $attribute->getAttribute('options', []); $relatedAttribute = new Document(); $relatedCollection = new Document(); @@ -249,7 +247,7 @@ private function deleteAttribute(Document $database, Document $collection, Docum // - stuck: attribute was available but cannot be removed try { - if ($status !== 'failed') { + try { if ($type === Database::VAR_RELATIONSHIP) { if ($options['twoWay']) { $relatedCollection = $dbForProject->getDocument('database_' . $database->getInternalId(), $options['relatedCollection']); @@ -266,96 +264,105 @@ private function deleteAttribute(Document $database, Document $collection, Docum } elseif (!$dbForProject->deleteAttribute('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), $key)) { throw new DatabaseException('Failed to delete Attribute'); } - } - $dbForProject->deleteDocument('attributes', $attribute->getId()); + $dbForProject->deleteDocument('attributes', $attribute->getId()); - if (!$relatedAttribute->isEmpty()) { - $dbForProject->deleteDocument('attributes', $relatedAttribute->getId()); - } - } catch (\Throwable $e) { - // TODO: Send non DatabaseExceptions to Sentry - Console::error($e->getMessage()); + if (!$relatedAttribute->isEmpty()) { + $dbForProject->deleteDocument('attributes', $relatedAttribute->getId()); + } + + } catch (NotFound $e) { + Console::error($e->getMessage()); + + $dbForProject->deleteDocument('attributes', $attribute->getId()); - if ($e instanceof DatabaseException) { - $attribute->setAttribute('error', $e->getMessage()); if (!$relatedAttribute->isEmpty()) { - $relatedAttribute->setAttribute('error', $e->getMessage()); + $dbForProject->deleteDocument('attributes', $relatedAttribute->getId()); + } + + } catch (\Throwable $e) { + Console::error($e->getMessage()); + + if ($e instanceof DatabaseException) { + $attribute->setAttribute('error', $e->getMessage()); + if (!$relatedAttribute->isEmpty()) { + $relatedAttribute->setAttribute('error', $e->getMessage()); + } } - } - $dbForProject->updateDocument( - 'attributes', - $attribute->getId(), - $attribute->setAttribute('status', 'stuck') - ); - if (!$relatedAttribute->isEmpty()) { $dbForProject->updateDocument( 'attributes', - $relatedAttribute->getId(), - $relatedAttribute->setAttribute('status', 'stuck') + $attribute->getId(), + $attribute->setAttribute('status', 'stuck') ); + if (!$relatedAttribute->isEmpty()) { + $dbForProject->updateDocument( + 'attributes', + $relatedAttribute->getId(), + $relatedAttribute->setAttribute('status', 'stuck') + ); + } + + throw $e; + } finally { + $this->trigger($database, $collection, $project, $event, $queueForRealtime, $attribute); } - } finally { - $this->trigger($database, $collection, $attribute, $project, $projectId, $events); - } - // The underlying database removes/rebuilds indexes when attribute is removed - // Update indexes table with changes - /** @var Document[] $indexes */ - $indexes = $collection->getAttribute('indexes', []); - - foreach ($indexes as $index) { - /** @var string[] $attributes */ - $attributes = $index->getAttribute('attributes'); - $lengths = $index->getAttribute('lengths'); - $orders = $index->getAttribute('orders'); - - $found = \array_search($key, $attributes); - - if ($found !== false) { - // If found, remove entry from attributes, lengths, and orders - // array_values wraps array_diff to reindex array keys - // when found attribute is removed from array - $attributes = \array_values(\array_diff($attributes, [$attributes[$found]])); - $lengths = \array_values(\array_diff($lengths, isset($lengths[$found]) ? [$lengths[$found]] : [])); - $orders = \array_values(\array_diff($orders, isset($orders[$found]) ? [$orders[$found]] : [])); - - if (empty($attributes)) { - $dbForProject->deleteDocument('indexes', $index->getId()); - } else { - $index - ->setAttribute('attributes', $attributes, Document::SET_TYPE_ASSIGN) - ->setAttribute('lengths', $lengths, Document::SET_TYPE_ASSIGN) - ->setAttribute('orders', $orders, Document::SET_TYPE_ASSIGN); - - // Check if an index exists with the same attributes and orders - $exists = false; - foreach ($indexes as $existing) { - if ( - $existing->getAttribute('key') !== $index->getAttribute('key') // Ignore itself - && $existing->getAttribute('attributes') === $index->getAttribute('attributes') - && $existing->getAttribute('orders') === $index->getAttribute('orders') - ) { - $exists = true; - break; + // The underlying database removes/rebuilds indexes when attribute is removed + // Update indexes table with changes + /** @var Document[] $indexes */ + $indexes = $collection->getAttribute('indexes', []); + + foreach ($indexes as $index) { + /** @var string[] $attributes */ + $attributes = $index->getAttribute('attributes'); + $lengths = $index->getAttribute('lengths'); + $orders = $index->getAttribute('orders'); + + $found = \array_search($key, $attributes); + + if ($found !== false) { + // If found, remove entry from attributes, lengths, and orders + // array_values wraps array_diff to reindex array keys + // when found attribute is removed from array + $attributes = \array_values(\array_diff($attributes, [$attributes[$found]])); + $lengths = \array_values(\array_diff($lengths, isset($lengths[$found]) ? [$lengths[$found]] : [])); + $orders = \array_values(\array_diff($orders, isset($orders[$found]) ? [$orders[$found]] : [])); + + if (empty($attributes)) { + $dbForProject->deleteDocument('indexes', $index->getId()); + } else { + $index + ->setAttribute('attributes', $attributes, Document::SET_TYPE_ASSIGN) + ->setAttribute('lengths', $lengths, Document::SET_TYPE_ASSIGN) + ->setAttribute('orders', $orders, Document::SET_TYPE_ASSIGN); + + // Check if an index exists with the same attributes and orders + $exists = false; + foreach ($indexes as $existing) { + if ( + $existing->getAttribute('key') !== $index->getAttribute('key') // Ignore itself + && $existing->getAttribute('attributes') === $index->getAttribute('attributes') + && $existing->getAttribute('orders') === $index->getAttribute('orders') + ) { + $exists = true; + break; + } } - } - if ($exists) { // Delete the duplicate if created, else update in db - $this->deleteIndex($database, $collection, $index, $project, $dbForConsole, $dbForProject); - } else { - $dbForProject->updateDocument('indexes', $index->getId(), $index); + if ($exists) { // Delete the duplicate if created, else update in db + $this->deleteIndex($database, $collection, $index, $project, $dbForPlatform, $dbForProject, $queueForRealtime); + } else { + $dbForProject->updateDocument('indexes', $index->getId(), $index); + } } } } - } - - $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $collectionId); - $dbForProject->purgeCachedCollection('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId()); + } finally { + $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $collectionId); - if (!$relatedCollection->isEmpty() && !$relatedAttribute->isEmpty()) { - $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $relatedCollection->getId()); - $dbForProject->purgeCachedCollection('database_' . $database->getInternalId() . '_collection_' . $relatedCollection->getInternalId()); + if (! $relatedCollection->isEmpty()) { + $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $relatedCollection->getId()); + } } } @@ -364,15 +371,17 @@ private function deleteAttribute(Document $database, Document $collection, Docum * @param Document $collection * @param Document $index * @param Document $project - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param Database $dbForProject + * @param Realtime $queueForRealtime * @return void * @throws Authorization * @throws Conflict * @throws Structure * @throws DatabaseException + * @throws \Throwable */ - private function createIndex(Document $database, Document $collection, Document $index, Document $project, Database $dbForConsole, Database $dbForProject): void + private function createIndex(Document $database, Document $collection, Document $index, Document $project, Database $dbForPlatform, Database $dbForProject, Realtime $queueForRealtime): void { if ($collection->isEmpty()) { throw new Exception('Missing collection'); @@ -382,19 +391,14 @@ private function createIndex(Document $database, Document $collection, Document } $projectId = $project->getId(); - - $events = Event::generateEvents('databases.[databaseId].collections.[collectionId].indexes.[indexId].update', [ - 'databaseId' => $database->getId(), - 'collectionId' => $collection->getId(), - 'indexId' => $index->getId() - ]); + $event = 'databases.[databaseId].collections.[collectionId].indexes.[indexId].update'; $collectionId = $collection->getId(); $key = $index->getAttribute('key', ''); $type = $index->getAttribute('type', ''); $attributes = $index->getAttribute('attributes', []); $lengths = $index->getAttribute('lengths', []); $orders = $index->getAttribute('orders', []); - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); try { if (!$dbForProject->createIndex('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), $key, $type, $attributes, $lengths, $orders)) { @@ -402,9 +406,7 @@ private function createIndex(Document $database, Document $collection, Document } $dbForProject->updateDocument('indexes', $index->getId(), $index->setAttribute('status', 'available')); } catch (\Throwable $e) { - // TODO: Send non DatabaseExceptions to Sentry Console::error($e->getMessage()); - if ($e instanceof DatabaseException) { $index->setAttribute('error', $e->getMessage()); } @@ -413,11 +415,12 @@ private function createIndex(Document $database, Document $collection, Document $index->getId(), $index->setAttribute('status', 'failed') ); + + throw $e; } finally { - $this->trigger($database, $collection, $index, $project, $projectId, $events); + $this->trigger($database, $collection, $project, $event, $queueForRealtime, null, $index); + $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $collectionId); } - - $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $collectionId); } /** @@ -425,15 +428,17 @@ private function createIndex(Document $database, Document $collection, Document * @param Document $collection * @param Document $index * @param Document $project - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param Database $dbForProject + * @param Realtime $queueForRealtime * @return void * @throws Authorization * @throws Conflict * @throws Structure * @throws DatabaseException + * @throws \Throwable */ - private function deleteIndex(Document $database, Document $collection, Document $index, Document $project, Database $dbForConsole, Database $dbForProject): void + private function deleteIndex(Document $database, Document $collection, Document $index, Document $project, Database $dbForPlatform, Database $dbForProject, Realtime $queueForRealtime): void { if ($collection->isEmpty()) { throw new Exception('Missing collection'); @@ -443,15 +448,10 @@ private function deleteIndex(Document $database, Document $collection, Document } $projectId = $project->getId(); - - $events = Event::generateEvents('databases.[databaseId].collections.[collectionId].indexes.[indexId].delete', [ - 'databaseId' => $database->getId(), - 'collectionId' => $collection->getId(), - 'indexId' => $index->getId() - ]); + $event = 'databases.[databaseId].collections.[collectionId].indexes.[indexId].delete'; $key = $index->getAttribute('key'); $status = $index->getAttribute('status', ''); - $project = $dbForConsole->getDocument('projects', $projectId); + $project = $dbForPlatform->getDocument('projects', $projectId); try { if ($status !== 'failed' && !$dbForProject->deleteIndex('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), $key)) { @@ -460,7 +460,6 @@ private function deleteIndex(Document $database, Document $collection, Document $dbForProject->deleteDocument('indexes', $index->getId()); $index->setAttribute('status', 'deleted'); } catch (\Throwable $e) { - // TODO: Send non DatabaseExceptions to Sentry Console::error($e->getMessage()); if ($e instanceof DatabaseException) { @@ -471,11 +470,13 @@ private function deleteIndex(Document $database, Document $collection, Document $index->getId(), $index->setAttribute('status', 'stuck') ); + + throw $e; + } finally { - $this->trigger($database, $collection, $index, $project, $projectId, $events); + $this->trigger($database, $collection, $project, $event, $queueForRealtime, null, $index); + $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $collection->getId()); } - - $dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $collection->getId()); } /** @@ -492,8 +493,6 @@ protected function deleteDatabase(Document $database, Document $project, $dbForP }); $dbForProject->deleteCollection('database_' . $database->getInternalId()); - - $this->deleteAuditLogsByResource('database/' . $database->getId(), $project, $dbForProject); } /** @@ -517,9 +516,10 @@ protected function deleteCollection(Document $database, Document $collection, Do $collectionId = $collection->getId(); $collectionInternalId = $collection->getInternalId(); - $databaseId = $database->getId(); $databaseInternalId = $database->getInternalId(); + $dbForProject->deleteCollection('database_' . $databaseInternalId . '_collection_' . $collection->getInternalId()); + /** * Related collections relating to current collection */ @@ -538,8 +538,6 @@ function ($attribute) use ($dbForProject, $databaseInternalId) { } ); - $dbForProject->deleteCollection('database_' . $databaseInternalId . '_collection_' . $collection->getInternalId()); - $this->deleteByGroup('attributes', [ Query::equal('databaseInternalId', [$databaseInternalId]), Query::equal('collectionInternalId', [$collectionInternalId]) @@ -549,94 +547,74 @@ function ($attribute) use ($dbForProject, $databaseInternalId) { Query::equal('databaseInternalId', [$databaseInternalId]), Query::equal('collectionInternalId', [$collectionInternalId]) ], $dbForProject); - - $this->deleteAuditLogsByResource('database/' . $databaseId . '/collection/' . $collectionId, $project, $dbForProject); } - /** - * @param string $resource - * @param Document $project - * @param Database $dbForProject - * @return void - * @throws Exception - */ - protected function deleteAuditLogsByResource(string $resource, Document $project, Database $dbForProject): void - { - $this->deleteByGroup(Audit::COLLECTION, [ - Query::equal('resource', [$resource]) - ], $dbForProject); - } /** - * @param string $collection collectionID + * @param string $collectionId * @param array $queries * @param Database $database * @param callable|null $callback * @return void * @throws Exception */ - protected function deleteByGroup(string $collection, array $queries, Database $database, callable $callback = null): void + protected function deleteByGroup(string $collectionId, array $queries, Database $database, callable $callback = null): void { - $count = 0; - $chunk = 0; - $limit = 50; - $sum = $limit; - - $executionStart = \microtime(true); - - while ($sum === $limit) { - $chunk++; + $start = \microtime(true); - $results = $database->find($collection, \array_merge([Query::limit($limit)], $queries)); - - $sum = count($results); - - Console::info('Deleting chunk #' . $chunk . '. Found ' . $sum . ' documents'); - - foreach ($results as $document) { - if ($database->deleteDocument($document->getCollection(), $document->getId())) { - Console::success('Deleted document "' . $document->getId() . '" successfully'); - - if (\is_callable($callback)) { - $callback($document); - } - } else { - Console::warning('Failed to delete document: ' . $document->getId()); - } - $count++; - } + try { + $count = $database->deleteDocuments( + $collectionId, + $queries, + Database::DELETE_BATCH_SIZE, + $callback + ); + } catch (\Throwable $th) { + $tenant = $database->getSharedTables() ? 'Tenant:'.$database->getTenant() : ''; + Console::error("Failed to delete documents for collection:{$database->getNamespace()}_{$collectionId} {$tenant} :{$th->getMessage()}"); + return; } - $executionEnd = \microtime(true); - - Console::info("Deleted {$count} document by group in " . ($executionEnd - $executionStart) . " seconds"); + $end = \microtime(true); + Console::info("Deleted {$count} documents by group in " . ($end - $start) . " seconds"); } + /** + * @param Document $database + * @param Document $collection + * @param Document $project + * @param Realtime $queueForRealtime + * @param Document|null $attribute + * @param Document|null $index + * @return void + */ protected function trigger( Document $database, Document $collection, - Document $attribute, Document $project, - string $projectId, - array $events + string $event, + Realtime $queueForRealtime, + Document|null $attribute = null, + Document|null $index = null, ): void { - $target = Realtime::fromPayload( - // Pass first, most verbose event pattern - event: $events[0], - payload: $attribute, - project: $project, - ); - Realtime::send( - projectId: 'console', - payload: $attribute->getArrayCopy(), - events: $events, - channels: $target['channels'], - roles: $target['roles'], - options: [ - 'projectId' => $projectId, - 'databaseId' => $database->getId(), - 'collectionId' => $collection->getId() - ] - ); + $queueForRealtime + ->setProject($project) + ->setSubscribers(['console']) + ->setEvent($event) + ->setParam('databaseId', $database->getId()) + ->setParam('collectionId', $collection->getId()); + + if ($attribute !== null && !empty($attribute)) { + $queueForRealtime + ->setParam('attributeId', $attribute->getId()) + ->setPayload($attribute->getArrayCopy()); + } + if ($index !== null && !empty($index)) { + $queueForRealtime + ->setParam('indexId', $index->getId()) + ->setPayload($index->getArrayCopy()); + } + + $queueForRealtime->trigger(); } } diff --git a/src/Appwrite/Platform/Workers/Deletes.php b/src/Appwrite/Platform/Workers/Deletes.php index c70d9ca11b2..606686c168e 100644 --- a/src/Appwrite/Platform/Workers/Deletes.php +++ b/src/Appwrite/Platform/Workers/Deletes.php @@ -3,11 +3,13 @@ namespace Appwrite\Platform\Workers; use Appwrite\Auth\Auth; +use Appwrite\Certificates\Adapter as CertificatesAdapter; +use Appwrite\Deletes\Identities; +use Appwrite\Deletes\Targets; use Appwrite\Extend\Exception; use Executor\Executor; use Throwable; -use Utopia\Abuse\Abuse; -use Utopia\Abuse\Adapters\Database\TimeLimit; +use Utopia\Abuse\Adapters\TimeLimit\Database as AbuseDatabase; use Utopia\Audit\Audit; use Utopia\Cache\Adapter\Filesystem; use Utopia\Cache\Cache; @@ -31,6 +33,8 @@ class Deletes extends Action { + protected array $selects = ['$internalId', '$id', '$collection', '$permissions', '$updatedAt']; + public static function getName(): string { return 'deletes'; @@ -44,24 +48,27 @@ public function __construct() $this ->desc('Deletes worker') ->inject('message') - ->inject('dbForConsole') + ->inject('project') + ->inject('dbForPlatform') ->inject('getProjectDB') + ->inject('getLogsDB') ->inject('deviceForFiles') ->inject('deviceForFunctions') ->inject('deviceForBuilds') ->inject('deviceForCache') - ->inject('abuseRetention') + ->inject('certificates') + ->inject('executor') ->inject('executionRetention') ->inject('auditRetention') ->inject('log') - ->callback(fn ($message, $dbForConsole, callable $getProjectDB, Device $deviceForFiles, Device $deviceForFunctions, Device $deviceForBuilds, Device $deviceForCache, string $abuseRetention, string $executionRetention, string $auditRetention, Log $log) => $this->action($message, $dbForConsole, $getProjectDB, $deviceForFiles, $deviceForFunctions, $deviceForBuilds, $deviceForCache, $abuseRetention, $executionRetention, $auditRetention, $log)); + ->callback($this->action(...)); } /** * @throws Exception * @throws Throwable */ - public function action(Message $message, Database $dbForConsole, callable $getProjectDB, Device $deviceForFiles, Device $deviceForFunctions, Device $deviceForBuilds, Device $deviceForCache, string $abuseRetention, string $executionRetention, string $auditRetention, Log $log): void + public function action(Message $message, Document $project, Database $dbForPlatform, callable $getProjectDB, callable $getLogsDB, Device $deviceForFiles, Device $deviceForFunctions, Device $deviceForBuilds, Device $deviceForCache, CertificatesAdapter $certificates, Executor $executor, string $executionRetention, string $auditRetention, Log $log): void { $payload = $message->getPayload() ?? []; @@ -75,7 +82,6 @@ public function action(Message $message, Database $dbForConsole, callable $getPr $resource = $payload['resource'] ?? null; $resourceType = $payload['resourceType'] ?? null; $document = new Document($payload['document'] ?? []); - $project = new Document($payload['project'] ?? []); $log->addTag('projectId', $project->getId()); $log->addTag('type', $type); @@ -84,13 +90,13 @@ public function action(Message $message, Database $dbForConsole, callable $getPr case DELETE_TYPE_DOCUMENT: switch ($document->getCollection()) { case DELETE_TYPE_PROJECTS: - $this->deleteProject($dbForConsole, $getProjectDB, $deviceForFiles, $deviceForFunctions, $deviceForBuilds, $deviceForCache, $document); + $this->deleteProject($dbForPlatform, $getProjectDB, $deviceForFiles, $deviceForFunctions, $deviceForBuilds, $deviceForCache, $certificates, $document); break; case DELETE_TYPE_FUNCTIONS: - $this->deleteFunction($dbForConsole, $getProjectDB, $deviceForFunctions, $deviceForBuilds, $document, $project); + $this->deleteFunction($dbForPlatform, $getProjectDB, $deviceForFunctions, $deviceForBuilds, $certificates, $document, $project, $executor); break; case DELETE_TYPE_DEPLOYMENTS: - $this->deleteDeployment($getProjectDB, $deviceForFunctions, $deviceForBuilds, $document, $project); + $this->deleteDeployment($getProjectDB, $deviceForFunctions, $deviceForBuilds, $document, $project, $executor); break; case DELETE_TYPE_USERS: $this->deleteUser($getProjectDB, $document, $project); @@ -99,10 +105,10 @@ public function action(Message $message, Database $dbForConsole, callable $getPr $this->deleteBucket($getProjectDB, $deviceForFiles, $document, $project); break; case DELETE_TYPE_INSTALLATIONS: - $this->deleteInstallation($dbForConsole, $getProjectDB, $document, $project); + $this->deleteInstallation($dbForPlatform, $getProjectDB, $document, $project); break; case DELETE_TYPE_RULES: - $this->deleteRule($dbForConsole, $document); + $this->deleteRule($dbForPlatform, $document, $certificates); break; default: Console::error('No lazy delete operation available for document of type: ' . $document->getCollection()); @@ -110,7 +116,7 @@ public function action(Message $message, Database $dbForConsole, callable $getPr } break; case DELETE_TYPE_TEAM_PROJECTS: - $this->deleteProjectsByTeam($dbForConsole, $getProjectDB, $document); + $this->deleteProjectsByTeam($dbForPlatform, $getProjectDB, $certificates, $document); break; case DELETE_TYPE_EXECUTIONS: $this->deleteExecutionLogs($project, $getProjectDB, $executionRetention); @@ -119,22 +125,15 @@ public function action(Message $message, Database $dbForConsole, callable $getPr if (!$project->isEmpty()) { $this->deleteAuditLogs($project, $getProjectDB, $auditRetention); } - - if (!$document->isEmpty()) { - $this->deleteAuditLogsByResource($getProjectDB, 'document/' . $document->getId(), $project); - } - break; - case DELETE_TYPE_ABUSE: - $this->deleteAbuseLogs($project, $getProjectDB, $abuseRetention); break; case DELETE_TYPE_REALTIME: - $this->deleteRealtimeUsage($dbForConsole, $datetime); + $this->deleteRealtimeUsage($dbForPlatform, $datetime); break; case DELETE_TYPE_SESSIONS: $this->deleteExpiredSessions($project, $getProjectDB); break; case DELETE_TYPE_USAGE: - $this->deleteUsageStats($project, $getProjectDB, $hourlyUsageRetentionDatetime); + $this->deleteUsageStats($project, $getProjectDB, $getLogsDB, $hourlyUsageRetentionDatetime); break; case DELETE_TYPE_CACHE_BY_RESOURCE: $this->deleteCacheByResource($project, $getProjectDB, $resource, $resourceType); @@ -143,13 +142,13 @@ public function action(Message $message, Database $dbForConsole, callable $getPr $this->deleteCacheByDate($project, $getProjectDB, $datetime); break; case DELETE_TYPE_SCHEDULES: - $this->deleteSchedules($dbForConsole, $getProjectDB, $datetime); + $this->deleteSchedules($dbForPlatform, $getProjectDB, $datetime); break; case DELETE_TYPE_TOPIC: $this->deleteTopic($project, $getProjectDB, $document); break; case DELETE_TYPE_TARGET: - $this->deleteTargetSubscribers($project, $getProjectDB, $document); + Targets::deleteSubscribers($getProjectDB($project), $document); break; case DELETE_TYPE_EXPIRED_TARGETS: $this->deleteExpiredTargets($project, $getProjectDB); @@ -157,13 +156,20 @@ public function action(Message $message, Database $dbForConsole, callable $getPr case DELETE_TYPE_SESSION_TARGETS: $this->deleteSessionTargets($project, $getProjectDB, $document); break; + case DELETE_TYPE_MAINTENANCE: + $this->deleteExpiredTargets($project, $getProjectDB); + $this->deleteExecutionLogs($project, $getProjectDB, $executionRetention); + $this->deleteAuditLogs($project, $getProjectDB, $auditRetention); + $this->deleteUsageStats($project, $getProjectDB, $getLogsDB, $hourlyUsageRetentionDatetime); + $this->deleteExpiredSessions($project, $getProjectDB); + break; default: throw new \Exception('No delete operation for type: ' . \strval($type)); } } /** - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param callable $getProjectDB * @param string $datetime * @param Document|null $document @@ -174,34 +180,47 @@ public function action(Message $message, Database $dbForConsole, callable $getPr * @throws Structure * @throws DatabaseException */ - private function deleteSchedules(Database $dbForConsole, callable $getProjectDB, string $datetime): void + private function deleteSchedules(Database $dbForPlatform, callable $getProjectDB, string $datetime): void { + // Temporarly accepting both 'fra' and 'default' + // When all migrated, only use _APP_REGION with 'default' as default value + $regions = [System::getEnv('_APP_REGION', 'default')]; + if (!in_array('default', $regions)) { + $regions[] = 'default'; + } + $this->listByGroup( 'schedules', [ - Query::equal('region', [System::getEnv('_APP_REGION', 'default')]), + Query::equal('region', $regions), Query::lessThanEqual('resourceUpdatedAt', $datetime), Query::equal('active', [false]), ], - $dbForConsole, - function (Document $document) use ($dbForConsole, $getProjectDB) { - $project = $dbForConsole->getDocument('projects', $document->getAttribute('projectId')); + $dbForPlatform, + function (Document $document) use ($dbForPlatform, $getProjectDB) { + $project = $dbForPlatform->getDocument('projects', $document->getAttribute('projectId')); if ($project->isEmpty()) { - $dbForConsole->deleteDocument('schedules', $document->getId()); + $dbForPlatform->deleteDocument('schedules', $document->getId()); Console::success('Deleted schedule for deleted project ' . $document->getAttribute('projectId')); return; } $collectionId = match ($document->getAttribute('resourceType')) { 'function' => 'functions', + 'execution' => 'executions', 'message' => 'messages' }; - $resource = $getProjectDB($project)->getDocument( - $collectionId, - $document->getAttribute('resourceId') - ); + try { + $resource = $getProjectDB($project)->getDocument( + $collectionId, + $document->getAttribute('resourceId') + ); + } catch (Throwable $e) { + Console::error('Failed to get resource for schedule ' . $document->getId() . ' ' . $e->getMessage()); + return; + } $delete = true; @@ -209,10 +228,13 @@ function (Document $document) use ($dbForConsole, $getProjectDB) { case 'function': $delete = $resource->isEmpty(); break; + case 'execution': + $delete = false; + break; } if ($delete) { - $dbForConsole->deleteDocument('schedules', $document->getId()); + $dbForPlatform->deleteDocument('schedules', $document->getId()); Console::success('Deleting schedule for ' . $document->getAttribute('resourceType') . ' ' . $document->getAttribute('resourceId')); } } @@ -235,52 +257,13 @@ private function deleteTopic(Document $project, callable $getProjectDB, Document $this->deleteByGroup( 'subscribers', [ - Query::equal('topicInternalId', [$topic->getInternalId()]) + Query::equal('topicInternalId', [$topic->getInternalId()]), + Query::orderAsc(), ], $getProjectDB($project) ); } - /** - * @param Document $project - * @param callable $getProjectDB - * @param Document $target - * @throws Exception - */ - private function deleteTargetSubscribers(Document $project, callable $getProjectDB, Document $target): void - { - /** @var Database */ - $dbForProject = $getProjectDB($project); - - // Delete subscribers and decrement topic counts - $this->deleteByGroup( - 'subscribers', - [ - Query::equal('targetInternalId', [$target->getInternalId()]) - ], - $dbForProject, - function (Document $subscriber) use ($dbForProject, $target) { - $topicId = $subscriber->getAttribute('topicId'); - $topicInternalId = $subscriber->getAttribute('topicInternalId'); - $topic = $dbForProject->getDocument('topics', $topicId); - if (!$topic->isEmpty() && $topic->getInternalId() === $topicInternalId) { - $totalAttribute = match ($target->getAttribute('providerType')) { - MESSAGE_TYPE_EMAIL => 'emailTotal', - MESSAGE_TYPE_SMS => 'smsTotal', - MESSAGE_TYPE_PUSH => 'pushTotal', - default => throw new Exception('Invalid target provider type'), - }; - $dbForProject->decreaseDocumentAttribute( - 'topics', - $topicId, - $totalAttribute, - min: 0 - ); - } - } - ); - } - /** * @param Document $project * @param callable $getProjectDB @@ -290,30 +273,12 @@ function (Document $subscriber) use ($dbForProject, $target) { */ private function deleteExpiredTargets(Document $project, callable $getProjectDB): void { - $this->deleteByGroup( - 'targets', - [ - Query::equal('expired', [true]) - ], - $getProjectDB($project), - function (Document $target) use ($getProjectDB, $project) { - $this->deleteTargetSubscribers($project, $getProjectDB, $target); - } - ); + Targets::delete($getProjectDB($project), Query::equal('expired', [true])); } private function deleteSessionTargets(Document $project, callable $getProjectDB, Document $session): void { - $this->deleteByGroup( - 'targets', - [ - Query::equal('sessionInternalId', [$session->getInternalId()]) - ], - $getProjectDB($project), - function (Document $target) use ($getProjectDB, $project) { - $this->deleteTargetSubscribers($project, $getProjectDB, $target); - } - ); + Targets::delete($getProjectDB($project), Query::equal('sessionInternalId', [$session->getInternalId()])); } /** @@ -334,14 +299,20 @@ private function deleteCacheByResource(Document $project, callable $getProjectDB new Filesystem(APP_STORAGE_CACHE . DIRECTORY_SEPARATOR . 'app-' . $projectId) ); - $query[] = Query::equal('resource', [$resource]); + $queries = [ + Query::equal('resource', [$resource]) + ]; + if (!empty($resourceType)) { - $query[] = Query::equal('resourceType', [$resourceType]); + $queries[] = Query::equal('resourceType', [$resourceType]); } + $queries[] = Query::select($this->selects); + $queries[] = Query::orderAsc(); + $this->deleteByGroup( 'cache', - $query, + $queries, $dbForProject, function (Document $document) use ($cache, $projectId) { $path = APP_STORAGE_CACHE . DIRECTORY_SEPARATOR . 'app-' . $projectId . DIRECTORY_SEPARATOR . $document->getId(); @@ -372,13 +343,16 @@ private function deleteCacheByDate(Document $project, callable $getProjectDB, st new Filesystem(APP_STORAGE_CACHE . DIRECTORY_SEPARATOR . 'app-' . $projectId) ); - $query = [ + $queries = [ + Query::select([...$this->selects, 'accessedAt']), Query::lessThan('accessedAt', $datetime), + Query::orderDesc('accessedAt'), + Query::orderDesc(), ]; $this->deleteByGroup( 'cache', - $query, + $queries, $dbForProject, function (Document $document) use ($cache, $projectId) { $path = APP_STORAGE_CACHE . DIRECTORY_SEPARATOR . 'app-' . $projectId . DIRECTORY_SEPARATOR . $document->getId(); @@ -393,20 +367,41 @@ function (Document $document) use ($cache, $projectId) { } /** - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param callable $getProjectDB * @param string $hourlyUsageRetentionDatetime * @return void * @throws Exception */ - private function deleteUsageStats(Document $project, callable $getProjectDB, string $hourlyUsageRetentionDatetime): void + private function deleteUsageStats(Document $project, callable $getProjectDB, callable $getLogsDB, string $hourlyUsageRetentionDatetime): void { + /** @var Database $dbForProject*/ $dbForProject = $getProjectDB($project); - // Delete Usage stats + + $selects = [...$this->selects, 'time']; + + // Delete Usage stats from projectDB $this->deleteByGroup('stats', [ - Query::lessThan('time', $hourlyUsageRetentionDatetime), + Query::select($selects), Query::equal('period', ['1h']), + Query::lessThan('time', $hourlyUsageRetentionDatetime), + Query::orderDesc('time'), + Query::orderDesc(), ], $dbForProject); + + if ($project->getId() !== 'console') { + /** @var Database $dbForLogs*/ + $dbForLogs = call_user_func($getLogsDB, $project); + + // Delete Usage stats from logsDB + $this->deleteByGroup('stats', [ + Query::select($selects), + Query::equal('period', ['1h']), + Query::lessThan('time', $hourlyUsageRetentionDatetime), + Query::orderDesc('time'), + Query::orderDesc(), + ], $dbForLogs); + } } /** @@ -425,7 +420,8 @@ public function deleteMemberships(callable $getProjectDB, Document $document, Do $this->deleteByGroup( 'memberships', [ - Query::equal('teamInternalId', [$teamInternalId]) + Query::equal('teamInternalId', [$teamInternalId]), + Query::orderAsc() ], $dbForProject, function (Document $membership) use ($dbForProject) { @@ -436,21 +432,22 @@ function (Document $membership) use ($dbForProject) { } /** - * @param Database $dbForConsole - * @param Document $document - * @return void - * @throws Authorization - * @throws DatabaseException - * @throws Conflict - * @throws Restricted - * @throws Structure - * @throws Exception - */ - private function deleteProjectsByTeam(Database $dbForConsole, callable $getProjectDB, Document $document): void + * @param Database $dbForPlatform + * @param Document $document + * @return void + * @throws Authorization + * @throws DatabaseException + * @throws Conflict + * @throws Restricted + * @throws Structure + * @throws Exception + */ + protected function deleteProjectsByTeam(Database $dbForPlatform, callable $getProjectDB, CertificatesAdapter $certificates, Document $document): void { - $projects = $dbForConsole->find('projects', [ - Query::equal('teamInternalId', [$document->getInternalId()]) + $projects = $dbForPlatform->find('projects', [ + Query::equal('teamInternalId', [$document->getInternalId()]), + Query::equal('region', [System::getEnv('_APP_REGION', 'default')]) ]); foreach ($projects as $project) { @@ -459,13 +456,13 @@ private function deleteProjectsByTeam(Database $dbForConsole, callable $getProje $deviceForBuilds = getDevice(APP_STORAGE_BUILDS . '/app-' . $project->getId()); $deviceForCache = getDevice(APP_STORAGE_CACHE . '/app-' . $project->getId()); - $this->deleteProject($dbForConsole, $getProjectDB, $deviceForFiles, $deviceForFunctions, $deviceForBuilds, $deviceForCache, $project); - $dbForConsole->deleteDocument('projects', $project->getId()); + $this->deleteProject($dbForPlatform, $getProjectDB, $deviceForFiles, $deviceForFunctions, $deviceForBuilds, $deviceForCache, $certificates, $project); + $dbForPlatform->deleteDocument('projects', $project->getId()); } } /** - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param callable $getProjectDB * @param Device $deviceForFiles * @param Device $deviceForFunctions @@ -477,9 +474,10 @@ private function deleteProjectsByTeam(Database $dbForConsole, callable $getProje * @throws Authorization * @throws DatabaseException */ - private function deleteProject(Database $dbForConsole, callable $getProjectDB, Device $deviceForFiles, Device $deviceForFunctions, Device $deviceForBuilds, Device $deviceForCache, Document $document): void + private function deleteProject(Database $dbForPlatform, callable $getProjectDB, Device $deviceForFiles, Device $deviceForFunctions, Device $deviceForBuilds, Device $deviceForCache, CertificatesAdapter $certificates, Document $document): void { $projectInternalId = $document->getInternalId(); + $projectId = $document->getId(); try { $dsn = new DSN($document->getAttribute('database', 'console')); @@ -493,75 +491,111 @@ private function deleteProject(Database $dbForConsole, callable $getProjectDB, D $projectCollectionIds = [ ...\array_keys(Config::getParam('collections', [])['projects']), Audit::COLLECTION, - TimeLimit::COLLECTION, + AbuseDatabase::COLLECTION, ]; - $limit = \count($projectCollectionIds) + 25; + $sharedTables = \explode(',', System::getEnv('_APP_DATABASE_SHARED_TABLES', '')); + $sharedTablesV1 = \explode(',', System::getEnv('_APP_DATABASE_SHARED_TABLES_V1', '')); - while (true) { - $collections = $dbForProject->listCollections($limit); + $projectTables = !\in_array($dsn->getHost(), $sharedTables); + $sharedTablesV1 = \in_array($dsn->getHost(), $sharedTablesV1); + $sharedTablesV2 = !$projectTables && !$sharedTablesV1; - foreach ($collections as $collection) { - if ($dsn->getHost() !== System::getEnv('_APP_DATABASE_SHARED_TABLES', '') || !\in_array($collection->getId(), $projectCollectionIds)) { + /** + * @var $dbForProject Database + */ + $dbForProject->foreach(Database::METADATA, function (Document $collection) use ($dbForProject, $projectTables, $projectCollectionIds) { + try { + if ($projectTables || !\in_array($collection->getId(), $projectCollectionIds)) { $dbForProject->deleteCollection($collection->getId()); } else { - $this->deleteByGroup($collection->getId(), [], database: $dbForProject); - } - } - - if ($dsn->getHost() === System::getEnv('_APP_DATABASE_SHARED_TABLES', '')) { - $collectionsIds = \array_map(fn ($collection) => $collection->getId(), $collections); - - if (empty(\array_diff($collectionsIds, $projectCollectionIds))) { - break; + $this->deleteByGroup( + $collection->getId(), + [ + Query::orderAsc() + ], + database: $dbForProject + ); } - } elseif (empty($collections)) { - break; + } catch (Throwable $e) { + Console::error('Error deleting '.$collection->getId().' '.$e->getMessage()); } - } + }); // Delete Platforms $this->deleteByGroup('platforms', [ - Query::equal('projectInternalId', [$projectInternalId]) - ], $dbForConsole); + Query::equal('projectInternalId', [$projectInternalId]), + Query::orderAsc() + ], $dbForPlatform); // Delete project and function rules $this->deleteByGroup('rules', [ - Query::equal('projectInternalId', [$projectInternalId]) - ], $dbForConsole, function (Document $document) use ($dbForConsole) { - $this->deleteRule($dbForConsole, $document); + Query::equal('projectInternalId', [$projectInternalId]), + Query::orderAsc() + ], $dbForPlatform, function (Document $document) use ($dbForPlatform, $certificates) { + $this->deleteRule($dbForPlatform, $document, $certificates); }); // Delete Keys $this->deleteByGroup('keys', [ - Query::equal('projectInternalId', [$projectInternalId]) - ], $dbForConsole); + Query::equal('projectInternalId', [$projectInternalId]), + Query::orderAsc() + ], $dbForPlatform); // Delete Webhooks $this->deleteByGroup('webhooks', [ - Query::equal('projectInternalId', [$projectInternalId]) - ], $dbForConsole); + Query::equal('projectInternalId', [$projectInternalId]), + Query::orderAsc() + ], $dbForPlatform); // Delete VCS Installations $this->deleteByGroup('installations', [ - Query::equal('projectInternalId', [$projectInternalId]) - ], $dbForConsole); + Query::equal('projectInternalId', [$projectInternalId]), + Query::orderAsc() + ], $dbForPlatform); // Delete VCS Repositories $this->deleteByGroup('repositories', [ Query::equal('projectInternalId', [$projectInternalId]), - ], $dbForConsole); + Query::orderAsc() + ], $dbForPlatform); // Delete VCS comments $this->deleteByGroup('vcsComments', [ Query::equal('projectInternalId', [$projectInternalId]), - ], $dbForConsole); + Query::orderAsc() + ], $dbForPlatform); + + // Delete Schedules + $this->deleteByGroup('schedules', [ + Query::equal('projectId', [$projectId]), + Query::orderAsc() + ], $dbForPlatform); // Delete metadata table - if ($dsn->getHost() !== System::getEnv('_APP_DATABASE_SHARED_TABLES', '')) { - $dbForProject->deleteCollection('_metadata'); - } else { - $this->deleteByGroup('_metadata', [], $dbForProject); + if ($projectTables) { + $dbForProject->deleteCollection(Database::METADATA); + } elseif ($sharedTablesV1) { + $this->deleteByGroup( + Database::METADATA, + [ + Query::orderAsc() + ], + $dbForProject + ); + } elseif ($sharedTablesV2) { + $queries = \array_map( + fn ($id) => Query::notEqual('$id', $id), + $projectCollectionIds + ); + + $queries[] = Query::orderAsc(); + + $this->deleteByGroup( + Database::METADATA, + $queries, + $dbForProject + ); } // Delete all storage directories @@ -586,14 +620,16 @@ private function deleteUser(callable $getProjectDB, Document $document, Document // Delete all sessions of this user from the sessions table and update the sessions field of the user record $this->deleteByGroup('sessions', [ - Query::equal('userInternalId', [$userInternalId]) + Query::equal('userInternalId', [$userInternalId]), + Query::orderAsc() ], $dbForProject); $dbForProject->purgeCachedDocument('users', $userId); // Delete Memberships and decrement team membership counts $this->deleteByGroup('memberships', [ - Query::equal('userInternalId', [$userInternalId]) + Query::equal('userInternalId', [$userInternalId]), + Query::orderAsc() ], $dbForProject, function (Document $document) use ($dbForProject) { if ($document->getAttribute('confirm')) { // Count only confirmed members $teamId = $document->getAttribute('teamId'); @@ -606,29 +642,19 @@ private function deleteUser(callable $getProjectDB, Document $document, Document // Delete tokens $this->deleteByGroup('tokens', [ - Query::equal('userInternalId', [$userInternalId]) + Query::equal('userInternalId', [$userInternalId]), + Query::orderAsc() ], $dbForProject); // Delete identities - $this->deleteByGroup('identities', [ - Query::equal('userInternalId', [$userInternalId]) - ], $dbForProject); + Identities::delete($dbForProject, Query::equal('userInternalId', [$userInternalId])); // Delete targets - $this->deleteByGroup( - 'targets', - [ - Query::equal('userInternalId', [$userInternalId]) - ], - $dbForProject, - function (Document $target) use ($getProjectDB, $project) { - $this->deleteTargetSubscribers($project, $getProjectDB, $target); - } - ); + Targets::delete($dbForProject, Query::equal('userInternalId', [$userInternalId])); } /** - * @param database $dbForConsole + * @param database $dbForPlatform * @param callable $getProjectDB * @param string $datetime * @return void @@ -637,14 +663,18 @@ function (Document $target) use ($getProjectDB, $project) { private function deleteExecutionLogs(Document $project, callable $getProjectDB, string $datetime): void { $dbForProject = $getProjectDB($project); + // Delete Executions $this->deleteByGroup('executions', [ - Query::lessThan('$createdAt', $datetime) + Query::select([...$this->selects, '$createdAt']), + Query::lessThan('$createdAt', $datetime), + Query::orderDesc('$createdAt'), + Query::orderDesc(), ], $dbForProject); } /** - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param callable $getProjectDB * @return void * @throws Exception|Throwable @@ -657,49 +687,33 @@ private function deleteExpiredSessions(Document $project, callable $getProjectDB // Delete Sessions $this->deleteByGroup('sessions', [ - Query::lessThan('$createdAt', $expired) + Query::select([...$this->selects, '$createdAt']), + Query::lessThan('$createdAt', $expired), + Query::orderDesc('$createdAt'), + Query::orderDesc(), ], $dbForProject); } /** - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param string $datetime * @return void * @throws Exception */ - private function deleteRealtimeUsage(Database $dbForConsole, string $datetime): void + private function deleteRealtimeUsage(Database $dbForPlatform, string $datetime): void { // Delete Dead Realtime Logs $this->deleteByGroup('realtime', [ - Query::lessThan('timestamp', $datetime) - ], $dbForConsole); + Query::lessThan('timestamp', $datetime), + Query::orderDesc('timestamp'), + Query::orderAsc(), + ], $dbForPlatform); } /** - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param callable $getProjectDB - * @param string $datetime - * @return void - * @throws Exception - */ - private function deleteAbuseLogs(Document $project, callable $getProjectDB, string $abuseRetention): void - { - $projectId = $project->getId(); - $dbForProject = $getProjectDB($project); - $timeLimit = new TimeLimit("", 0, 1, $dbForProject); - $abuse = new Abuse($timeLimit); - - try { - $abuse->cleanup($abuseRetention); - } catch (DatabaseException $e) { - Console::error('Failed to delete abuse logs for project ' . $projectId . ': ' . $e->getMessage()); - } - } - - /** - * @param Database $dbForConsole - * @param callable $getProjectDB - * @param string $datetime + * @param string $auditRetention * @return void * @throws Exception */ @@ -707,41 +721,30 @@ private function deleteAuditLogs(Document $project, callable $getProjectDB, stri { $projectId = $project->getId(); $dbForProject = $getProjectDB($project); - $audit = new Audit($dbForProject); try { - $audit->cleanup($auditRetention); + $this->deleteByGroup(Audit::COLLECTION, [ + Query::select([...$this->selects, 'time']), + Query::lessThan('time', $auditRetention), + Query::orderDesc('time'), + Query::orderAsc(), + ], $dbForProject); } catch (DatabaseException $e) { Console::error('Failed to delete audit logs for project ' . $projectId . ': ' . $e->getMessage()); } } - /** - * @param callable $getProjectDB - * @param string $resource - * @param Document $project - * @return void - * @throws Exception - */ - private function deleteAuditLogsByResource(callable $getProjectDB, string $resource, Document $project): void - { - $dbForProject = $getProjectDB($project); - - $this->deleteByGroup(Audit::COLLECTION, [ - Query::equal('resource', [$resource]) - ], $dbForProject); - } - /** * @param callable $getProjectDB * @param Device $deviceForFunctions * @param Device $deviceForBuilds * @param Document $document function document * @param Document $project + * @param Executor $executor * @return void * @throws Exception */ - private function deleteFunction(Database $dbForConsole, callable $getProjectDB, Device $deviceForFunctions, Device $deviceForBuilds, Document $document, Document $project): void + private function deleteFunction(Database $dbForPlatform, callable $getProjectDB, Device $deviceForFunctions, Device $deviceForBuilds, CertificatesAdapter $certificates, Document $document, Document $project, Executor $executor): void { $projectId = $project->getId(); $dbForProject = $getProjectDB($project); @@ -753,11 +756,12 @@ private function deleteFunction(Database $dbForConsole, callable $getProjectDB, */ Console::info("Deleting rules for function " . $functionId); $this->deleteByGroup('rules', [ - Query::equal('resourceType', ['function']), + Query::equal('projectInternalId', [$project->getInternalId()]), Query::equal('resourceInternalId', [$functionInternalId]), - Query::equal('projectInternalId', [$project->getInternalId()]) - ], $dbForConsole, function (Document $document) use ($project, $dbForConsole) { - $this->deleteRule($dbForConsole, $document); + Query::equal('resourceType', ['function']), + Query::orderAsc() + ], $dbForPlatform, function (Document $document) use ($project, $dbForPlatform, $certificates) { + $this->deleteRule($dbForPlatform, $document, $certificates); }); /** @@ -765,8 +769,9 @@ private function deleteFunction(Database $dbForConsole, callable $getProjectDB, */ Console::info("Deleting variables for function " . $functionId); $this->deleteByGroup('variables', [ + Query::equal('resourceInternalId', [$functionInternalId]), Query::equal('resourceType', ['function']), - Query::equal('resourceInternalId', [$functionInternalId]) + Query::orderAsc() ], $dbForProject); /** @@ -776,7 +781,8 @@ private function deleteFunction(Database $dbForConsole, callable $getProjectDB, $deploymentInternalIds = []; $this->deleteByGroup('deployments', [ - Query::equal('resourceInternalId', [$functionInternalId]) + Query::equal('resourceInternalId', [$functionInternalId]), + Query::orderAsc() ], $dbForProject, function (Document $document) use ($deviceForFunctions, &$deploymentInternalIds) { $deploymentInternalIds[] = $document->getInternalId(); $this->deleteDeploymentFiles($deviceForFunctions, $document); @@ -789,7 +795,8 @@ private function deleteFunction(Database $dbForConsole, callable $getProjectDB, foreach ($deploymentInternalIds as $deploymentInternalId) { $this->deleteByGroup('builds', [ - Query::equal('deploymentInternalId', [$deploymentInternalId]) + Query::equal('deploymentInternalId', [$deploymentInternalId]), + Query::orderAsc() ], $dbForProject, function (Document $document) use ($deviceForBuilds) { $this->deleteBuildFiles($deviceForBuilds, $document); }); @@ -800,7 +807,9 @@ private function deleteFunction(Database $dbForConsole, callable $getProjectDB, */ Console::info("Deleting executions for function " . $functionId); $this->deleteByGroup('executions', [ - Query::equal('functionInternalId', [$functionInternalId]) + Query::select($this->selects), + Query::equal('functionInternalId', [$functionInternalId]), + Query::orderAsc() ], $dbForProject); /** @@ -811,20 +820,23 @@ private function deleteFunction(Database $dbForConsole, callable $getProjectDB, Query::equal('projectInternalId', [$project->getInternalId()]), Query::equal('resourceInternalId', [$functionInternalId]), Query::equal('resourceType', ['function']), - ], $dbForConsole, function (Document $document) use ($dbForConsole) { + Query::orderAsc() + ], $dbForPlatform, function (Document $document) use ($dbForPlatform) { $providerRepositoryId = $document->getAttribute('providerRepositoryId', ''); $projectInternalId = $document->getAttribute('projectInternalId', ''); + $this->deleteByGroup('vcsComments', [ Query::equal('providerRepositoryId', [$providerRepositoryId]), Query::equal('projectInternalId', [$projectInternalId]), - ], $dbForConsole); + Query::orderAsc() + ], $dbForPlatform); }); /** * Request executor to delete all deployment containers */ Console::info("Requesting executor to delete all deployment containers for function " . $functionId); - $this->deleteRuntimes($getProjectDB, $document, $project); + $this->deleteRuntimes($getProjectDB, $document, $project, $executor); } /** @@ -850,7 +862,7 @@ private function deleteDeploymentFiles(Device $device, Document $deployment): vo } else { Console::error('Failed to delete deployment files: ' . $deploymentPath); } - } catch (\Throwable $th) { + } catch (Throwable $th) { Console::error('Failed to delete deployment files: ' . $deploymentPath); Console::error('[Error] Type: ' . get_class($th)); Console::error('[Error] Message: ' . $th->getMessage()); @@ -880,7 +892,7 @@ private function deleteBuildFiles(Device $device, Document $build): void } else { Console::error('Failed to delete build files: ' . $buildPath); } - } catch (\Throwable $th) { + } catch (Throwable $th) { Console::error('Failed to delete deployment files: ' . $buildPath); Console::error('[Error] Type: ' . get_class($th)); Console::error('[Error] Message: ' . $th->getMessage()); @@ -895,10 +907,11 @@ private function deleteBuildFiles(Device $device, Document $build): void * @param Device $deviceForBuilds * @param Document $document * @param Document $project + * @param Executor $executor * @return void * @throws Exception */ - private function deleteDeployment(callable $getProjectDB, Device $deviceForFunctions, Device $deviceForBuilds, Document $document, Document $project): void + private function deleteDeployment(callable $getProjectDB, Device $deviceForFunctions, Device $deviceForBuilds, Document $document, Document $project, Executor $executor): void { $projectId = $project->getId(); $dbForProject = $getProjectDB($project); @@ -916,7 +929,8 @@ private function deleteDeployment(callable $getProjectDB, Device $deviceForFunct Console::info("Deleting builds for deployment " . $deploymentId); $this->deleteByGroup('builds', [ - Query::equal('deploymentInternalId', [$deploymentInternalId]) + Query::equal('deploymentInternalId', [$deploymentInternalId]), + Query::orderAsc() ], $dbForProject, function (Document $document) use ($deviceForBuilds) { $this->deleteBuildFiles($deviceForBuilds, $document); }); @@ -925,68 +939,43 @@ private function deleteDeployment(callable $getProjectDB, Device $deviceForFunct * Request executor to delete all deployment containers */ Console::info("Requesting executor to delete deployment container for deployment " . $deploymentId); - $this->deleteRuntimes($getProjectDB, $document, $project); - } - - /** - * @param Document $document to be deleted - * @param Database $database to delete it from - * @param callable|null $callback to perform after document is deleted - * @return void - */ - private function deleteById(Document $document, Database $database, callable $callback = null): void - { - if ($database->deleteDocument($document->getCollection(), $document->getId())) { - Console::success('Deleted document "' . $document->getId() . '" successfully'); - - if (is_callable($callback)) { - $callback($document); - } - } else { - Console::error('Failed to delete document: ' . $document->getId()); - } + $this->deleteRuntimes($getProjectDB, $document, $project, $executor); } /** * @param string $collection collectionID * @param array $queries * @param Database $database - * @param callable|null $callback + * @param ?callable $callback * @return void - * @throws Exception + * @throws DatabaseException */ - private function deleteByGroup(string $collection, array $queries, Database $database, callable $callback = null): void - { - $count = 0; - $chunk = 0; - $limit = 50; - $sum = $limit; - - $executionStart = \microtime(true); + protected function deleteByGroup( + string $collection, + array $queries, + Database $database, + ?callable $callback = null + ): void { + $start = \microtime(true); - while ($sum === $limit) { - $chunk++; - - try { - $results = $database->find($collection, [Query::limit($limit), ...$queries]); - } catch (DatabaseException $e) { - Console::error('Failed to find documents for collection ' . $collection . ': ' . $e->getMessage()); - return; - } - - $sum = count($results); - - Console::info('Deleting chunk #' . $chunk . '. Found ' . $sum . ' documents'); - - foreach ($results as $document) { - $this->deleteById($document, $database, $callback); - $count++; - } + /** + * deleteDocuments uses a cursor, we need to add a unique order by field or use default + */ + try { + $count = $database->deleteDocuments( + $collection, + $queries, + Database::DELETE_BATCH_SIZE, + $callback + ); + } catch (Throwable $th) { + $tenant = $database->getSharedTables() ? 'Tenant:'.$database->getTenant() : ''; + Console::error("Failed to delete documents for collection:{$database->getNamespace()}_{$collection} {$tenant} :{$th->getMessage()}"); + return; } - $executionEnd = \microtime(true); - - Console::info("Deleted {$count} document by group in " . ($executionEnd - $executionStart) . " seconds"); + $end = \microtime(true); + Console::info("Deleted {$count} documents by group in " . ($end - $start) . " seconds"); } /** @@ -997,28 +986,26 @@ private function deleteByGroup(string $collection, array $queries, Database $dat * @return void * @throws Exception */ - private function listByGroup(string $collection, array $queries, Database $database, callable $callback = null): void + protected function listByGroup(string $collection, array $queries, Database $database, callable $callback = null): void { $count = 0; - $chunk = 0; - $limit = 50; - $results = []; + $limit = 1000; $sum = $limit; $cursor = null; - $executionStart = \microtime(true); + $start = \microtime(true); while ($sum === $limit) { - $chunk++; - $mergedQueries = \array_merge([Query::limit($limit)], $queries); - if ($cursor instanceof Document) { - $mergedQueries[] = Query::cursorAfter($cursor); + $queries = \array_merge([Query::limit($limit)], $queries); + + if ($cursor !== null) { + $queries[] = Query::cursorAfter($cursor); } - $results = $database->find($collection, $mergedQueries); + $results = $database->find($collection, $queries); - $sum = count($results); + $sum = \count($results); if ($sum > 0) { $cursor = $results[$sum - 1]; @@ -1033,35 +1020,24 @@ private function listByGroup(string $collection, array $queries, Database $datab } } - $executionEnd = \microtime(true); + $end = \microtime(true); - Console::info("Listed {$count} document by group in " . ($executionEnd - $executionStart) . " seconds"); + Console::info("Listed {$count} documents by group in " . ($end - $start) . " seconds"); } /** - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param Document $document rule document * @return void */ - private function deleteRule(Database $dbForConsole, Document $document): void + private function deleteRule(Database $dbForPlatform, Document $document, CertificatesAdapter $certificates): void { - $domain = $document->getAttribute('domain'); - $directory = APP_STORAGE_CERTIFICATES . '/' . $domain; - $checkTraversal = realpath($directory) === $directory; - - if ($checkTraversal && is_dir($directory)) { - // Delete files, so Traefik is aware of change - array_map('unlink', glob($directory . '/*.*')); - rmdir($directory); - Console::info("Deleted certificate files for {$domain}"); - } else { - Console::info("No certificate files found for {$domain}"); - } + $certificates->deleteCertificate($domain); // Delete certificate document, so Appwrite is aware of change if (isset($document['certificateId'])) { - $dbForConsole->deleteDocument('certificates', $document['certificateId']); + $dbForPlatform->deleteDocument('certificates', $document['certificateId']); } } @@ -1082,21 +1058,21 @@ private function deleteBucket(callable $getProjectDB, Device $deviceForFiles, Do } /** - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param callable $getProjectDB * @param Document $document * @param Document $project * @return void * @throws Exception */ - private function deleteInstallation(Database $dbForConsole, callable $getProjectDB, Document $document, Document $project): void + private function deleteInstallation(Database $dbForPlatform, callable $getProjectDB, Document $document, Document $project): void { $dbForProject = $getProjectDB($project); $this->listByGroup('functions', [ Query::equal('installationInternalId', [$document->getInternalId()]) - ], $dbForProject, function ($function) use ($dbForProject, $dbForConsole) { - $dbForConsole->deleteDocument('repositories', $function->getAttribute('repositoryId')); + ], $dbForProject, function ($function) use ($dbForProject, $dbForPlatform) { + $dbForPlatform->deleteDocument('repositories', $function->getAttribute('repositoryId')); $function = $function ->setAttribute('installationId', '') @@ -1115,13 +1091,12 @@ private function deleteInstallation(Database $dbForConsole, callable $getProject * @param callable $getProjectDB * @param ?Document $function * @param Document $project + * @param Executor $executor * @return void * @throws Exception */ - private function deleteRuntimes(callable $getProjectDB, ?Document $function, Document $project): void + private function deleteRuntimes(callable $getProjectDB, ?Document $function, Document $project, Executor $executor): void { - $executor = new Executor(System::getEnv('_APP_EXECUTOR_HOST')); - $deleteByFunction = function (Document $function) use ($getProjectDB, $project, $executor) { $this->listByGroup( 'deployments', diff --git a/src/Appwrite/Platform/Workers/Functions.php b/src/Appwrite/Platform/Workers/Functions.php index e60f67416d1..4e1794c0852 100644 --- a/src/Appwrite/Platform/Workers/Functions.php +++ b/src/Appwrite/Platform/Workers/Functions.php @@ -5,8 +5,9 @@ use Ahc\Jwt\JWT; use Appwrite\Event\Event; use Appwrite\Event\Func; -use Appwrite\Event\Usage; -use Appwrite\Messaging\Adapter\Realtime; +use Appwrite\Event\Realtime; +use Appwrite\Event\StatsUsage; +use Appwrite\Event\Webhook; use Appwrite\Utopia\Response\Model\Execution; use Exception; use Executor\Executor; @@ -41,29 +42,21 @@ public function __construct() $this ->desc('Functions worker') ->groups(['functions']) + ->inject('project') ->inject('message') ->inject('dbForProject') + ->inject('queueForWebhooks') ->inject('queueForFunctions') + ->inject('queueForRealtime') ->inject('queueForEvents') - ->inject('queueForUsage') + ->inject('queueForStatsUsage') ->inject('log') - ->callback(fn (Message $message, Database $dbForProject, Func $queueForFunctions, Event $queueForEvents, Usage $queueForUsage, Log $log) => $this->action($message, $dbForProject, $queueForFunctions, $queueForEvents, $queueForUsage, $log)); + ->inject('executor') + ->inject('isResourceBlocked') + ->callback(fn (Document $project, Message $message, Database $dbForProject, Webhook $queueForWebhooks, Func $queueForFunctions, Realtime $queueForRealtime, Event $queueForEvents, StatsUsage $queueForStatsUsage, Log $log, Executor $executor, callable $isResourceBlocked) => $this->action($project, $message, $dbForProject, $queueForWebhooks, $queueForFunctions, $queueForRealtime, $queueForEvents, $queueForStatsUsage, $log, $executor, $isResourceBlocked)); } - /** - * @param Message $message - * @param Database $dbForProject - * @param Func $queueForFunctions - * @param Event $queueForEvents - * @param Usage $queueForUsage - * @param Log $log - * @return void - * @throws Authorization - * @throws Structure - * @throws \Utopia\Database\Exception - * @throws Conflict - */ - public function action(Message $message, Database $dbForProject, Func $queueForFunctions, Event $queueForEvents, Usage $queueForUsage, Log $log): void + public function action(Document $project, Message $message, Database $dbForProject, Webhook $queueForWebhooks, Func $queueForFunctions, Realtime $queueForRealtime, Event $queueForEvents, StatsUsage $queueForStatsUsage, Log $log, Executor $executor, callable $isResourceBlocked): void { $payload = $message->getPayload() ?? []; @@ -72,10 +65,17 @@ public function action(Message $message, Database $dbForProject, Func $queueForF } $type = $payload['type'] ?? ''; + + // Short-term solution to offhand write operation from API container + if ($type === Func::TYPE_ASYNC_WRITE) { + $execution = new Document($payload['execution'] ?? []); + $dbForProject->createDocument('executions', $execution); + return; + } + $events = $payload['events'] ?? []; $data = $payload['body'] ?? ''; $eventData = $payload['payload'] ?? ''; - $project = new Document($payload['project'] ?? []); $function = new Document($payload['function'] ?? []); $functionId = $payload['functionId'] ?? ''; $user = new Document($payload['user'] ?? []); @@ -113,7 +113,6 @@ public function action(Message $message, Database $dbForProject, Func $queueForF $limit = 30; $sum = 30; $offset = 0; - /** @var Document[] $functions */ while ($sum >= $limit) { $functions = $dbForProject->find('functions', [ Query::limit($limit), @@ -130,16 +129,25 @@ public function action(Message $message, Database $dbForProject, Func $queueForF if (!array_intersect($events, $function->getAttribute('events', []))) { continue; } + + if ($isResourceBlocked($project, RESOURCE_TYPE_FUNCTIONS, $function->getId())) { + Console::log('Function ' . $function->getId() . ' is blocked, skipping execution.'); + continue; + } + Console::success('Iterating function: ' . $function->getAttribute('name')); $this->execute( log: $log, dbForProject: $dbForProject, + queueForWebhooks: $queueForWebhooks, queueForFunctions: $queueForFunctions, - queueForUsage: $queueForUsage, + queueForRealtime: $queueForRealtime, + queueForStatsUsage: $queueForStatsUsage, queueForEvents: $queueForEvents, project: $project, function: $function, + executor: $executor, trigger: 'event', path: '/', method: 'POST', @@ -160,6 +168,11 @@ function: $function, return; } + if ($isResourceBlocked($project, RESOURCE_TYPE_FUNCTIONS, $function->getId())) { + Console::log('Function ' . $function->getId() . ' is blocked, skipping execution.'); + return; + } + /** * Handle Schedule and HTTP execution. */ @@ -170,11 +183,14 @@ function: $function, $this->execute( log: $log, dbForProject: $dbForProject, + queueForWebhooks: $queueForWebhooks, queueForFunctions: $queueForFunctions, - queueForUsage: $queueForUsage, + queueForRealtime: $queueForRealtime, + queueForStatsUsage: $queueForStatsUsage, queueForEvents: $queueForEvents, project: $project, function: $function, + executor: $executor, trigger: 'http', path: $path, method: $method, @@ -192,11 +208,14 @@ function: $function, $this->execute( log: $log, dbForProject: $dbForProject, + queueForWebhooks: $queueForWebhooks, queueForFunctions: $queueForFunctions, - queueForUsage: $queueForUsage, + queueForRealtime: $queueForRealtime, + queueForStatsUsage: $queueForStatsUsage, queueForEvents: $queueForEvents, project: $project, function: $function, + executor: $executor, trigger: 'schedule', path: $path, method: $method, @@ -278,10 +297,12 @@ private function fail( * @param Log $log * @param Database $dbForProject * @param Func $queueForFunctions - * @param Usage $queueForUsage + * @param Realtime $queueForRealtime + * @param StatsUsage $queueForStatsUsage * @param Event $queueForEvents * @param Document $project * @param Document $function + * @param Executor $executor * @param string $trigger * @param string $path * @param string $method @@ -301,11 +322,14 @@ private function fail( private function execute( Log $log, Database $dbForProject, + Webhook $queueForWebhooks, Func $queueForFunctions, - Usage $queueForUsage, + Realtime $queueForRealtime, + StatsUsage $queueForStatsUsage, Event $queueForEvents, Document $project, Document $function, + Executor $executor, string $trigger, string $path, string $method, @@ -496,7 +520,6 @@ private function execute( try { $version = $function->getAttribute('version', 'v2'); $command = $runtime['startCommand']; - $executor = new Executor(System::getEnv('_APP_EXECUTOR_HOST')); $command = $version === 'v2' ? '' : 'cp /tmp/code.tar.gz /mnt/code/code.tar.gz && nohup helpers/start.sh "' . $command . '"'; $executionResponse = $executor->createExecution( projectId: $project->getId(), @@ -546,7 +569,7 @@ private function execute( $errorCode = $th->getCode(); } finally { /** Trigger usage queue */ - $queueForUsage + $queueForStatsUsage ->setProject($project) ->addMetric(METRIC_EXECUTIONS, 1) ->addMetric(str_replace('{functionInternalId}', $function->getInternalId(), METRIC_FUNCTION_ID_EXECUTIONS), 1) @@ -558,20 +581,20 @@ private function execute( ; } - $execution = $dbForProject->updateDocument('executions', $executionId, $execution); - /** Trigger Webhook */ $executionModel = new Execution(); $queueForEvents - ->setQueue(Event::WEBHOOK_QUEUE_NAME) - ->setClass(Event::WEBHOOK_CLASS_NAME) ->setProject($project) ->setUser($user) ->setEvent('functions.[functionId].executions.[executionId].update') ->setParam('functionId', $function->getId()) ->setParam('executionId', $execution->getId()) - ->setPayload($execution->getArrayCopy(array_keys($executionModel->getRules()))) + ->setPayload($execution->getArrayCopy(array_keys($executionModel->getRules()))); + + /** Trigger Webhook */ + $queueForWebhooks + ->from($queueForEvents) ->trigger(); /** Trigger Functions */ @@ -579,30 +602,11 @@ private function execute( ->from($queueForEvents) ->trigger(); - /** Trigger realtime event */ - $allEvents = Event::generateEvents('functions.[functionId].executions.[executionId].update', [ - 'functionId' => $function->getId(), - 'executionId' => $execution->getId() - ]); - $target = Realtime::fromPayload( - // Pass first, most verbose event pattern - event: $allEvents[0], - payload: $execution - ); - Realtime::send( - projectId: 'console', - payload: $execution->getArrayCopy(), - events: $allEvents, - channels: $target['channels'], - roles: $target['roles'] - ); - Realtime::send( - projectId: $project->getId(), - payload: $execution->getArrayCopy(), - events: $allEvents, - channels: $target['channels'], - roles: $target['roles'] - ); + /** Trigger Realtime Events */ + $queueForRealtime + ->from($queueForEvents) + ->setSubscribers(['console', $project->getId()]) + ->trigger(); if (!empty($error)) { throw new Exception($error, $errorCode); diff --git a/src/Appwrite/Platform/Workers/Messaging.php b/src/Appwrite/Platform/Workers/Messaging.php index b0f05522fa3..c9eca2a1e07 100644 --- a/src/Appwrite/Platform/Workers/Messaging.php +++ b/src/Appwrite/Platform/Workers/Messaging.php @@ -2,7 +2,7 @@ namespace Appwrite\Platform\Workers; -use Appwrite\Event\Usage; +use Appwrite\Event\StatsUsage; use Appwrite\Messaging\Status as MessageStatus; use Swoole\Runtime; use Utopia\CLI\Console; @@ -22,6 +22,9 @@ use Utopia\Messaging\Adapter\Push as PushAdapter; use Utopia\Messaging\Adapter\Push\FCM; use Utopia\Messaging\Adapter\SMS as SMSAdapter; +use Utopia\Messaging\Adapter\SMS\Fast2SMS; +use Utopia\Messaging\Adapter\SMS\GEOSMS; +use Utopia\Messaging\Adapter\SMS\Inforu; use Utopia\Messaging\Adapter\SMS\Mock; use Utopia\Messaging\Adapter\SMS\Msg91; use Utopia\Messaging\Adapter\SMS\Telesign; @@ -32,6 +35,7 @@ use Utopia\Messaging\Messages\Email\Attachment; use Utopia\Messaging\Messages\Push; use Utopia\Messaging\Messages\SMS; +use Utopia\Messaging\Priority; use Utopia\Platform\Action; use Utopia\Queue\Message; use Utopia\Storage\Device; @@ -45,6 +49,8 @@ class Messaging extends Action { private ?Local $localDevice = null; + private ?SMSAdapter $adapter = null; + public static function getName(): string { return 'messaging'; @@ -55,31 +61,37 @@ public static function getName(): string */ public function __construct() { + + $this->adapter = $this->createInternalSMSAdapter(); + $this ->desc('Messaging worker') ->inject('message') + ->inject('project') ->inject('log') ->inject('dbForProject') ->inject('deviceForFiles') - ->inject('queueForUsage') - ->callback(fn (Message $message, Log $log, Database $dbForProject, Device $deviceForFiles, Usage $queueForUsage) => $this->action($message, $log, $dbForProject, $deviceForFiles, $queueForUsage)); + ->inject('queueForStatsUsage') + ->callback(fn (Message $message, Document $project, Log $log, Database $dbForProject, Device $deviceForFiles, StatsUsage $queueForStatsUsage) => $this->action($message, $project, $log, $dbForProject, $deviceForFiles, $queueForStatsUsage)); } /** * @param Message $message + * @param Document $project * @param Log $log * @param Database $dbForProject * @param Device $deviceForFiles - * @param Usage $queueForUsage + * @param StatsUsage $queueForStatsUsage * @return void * @throws \Exception */ public function action( Message $message, + Document $project, Log $log, Database $dbForProject, Device $deviceForFiles, - Usage $queueForUsage + StatsUsage $queueForStatsUsage ): void { Runtime::setHookFlags(SWOOLE_HOOK_ALL ^ SWOOLE_HOOK_TCP); $payload = $message->getPayload() ?? []; @@ -89,19 +101,18 @@ public function action( } $type = $payload['type'] ?? ''; - $project = new Document($payload['project'] ?? []); switch ($type) { case MESSAGE_SEND_TYPE_INTERNAL: $message = new Document($payload['message'] ?? []); $recipients = $payload['recipients'] ?? []; - $this->sendInternalSMSMessage($message, $project, $recipients, $queueForUsage, $log); + $this->sendInternalSMSMessage($message, $project, $recipients, $log); break; case MESSAGE_SEND_TYPE_EXTERNAL: $message = $dbForProject->getDocument('messages', $payload['messageId']); - $this->sendExternalMessage($dbForProject, $message, $deviceForFiles, $project, $queueForUsage); + $this->sendExternalMessage($dbForProject, $message, $deviceForFiles, $project, $queueForStatsUsage); break; default: throw new \Exception('Unknown message type: ' . $type); @@ -113,7 +124,7 @@ private function sendExternalMessage( Document $message, Device $deviceForFiles, Document $project, - Usage $queueForUsage + StatsUsage $queueForStatsUsage ): void { $topicIds = $message->getAttribute('topics', []); $targetIds = $message->getAttribute('targets', []); @@ -178,7 +189,7 @@ private function sendExternalMessage( Query::equal('type', [$providerType]), ]); - if ($default === false || $default->isEmpty()) { + if ($default->isEmpty()) { $dbForProject->updateDocument('messages', $message->getId(), $message->setAttributes([ 'status' => MessageStatus::FAILED, 'deliveryErrors' => ['No enabled provider found.'] @@ -219,8 +230,8 @@ private function sendExternalMessage( /** * @var array<array> $results */ - $results = batch(\array_map(function ($providerId) use ($identifiers, &$providers, $default, $message, $dbForProject, $deviceForFiles, $project, $queueForUsage) { - return function () use ($providerId, $identifiers, &$providers, $default, $message, $dbForProject, $deviceForFiles, $project, $queueForUsage) { + $results = batch(\array_map(function ($providerId) use ($identifiers, &$providers, $default, $message, $dbForProject, $deviceForFiles, $project, $queueForStatsUsage) { + return function () use ($providerId, $identifiers, &$providers, $default, $message, $dbForProject, $deviceForFiles, $project, $queueForStatsUsage) { if (\array_key_exists($providerId, $providers)) { $provider = $providers[$providerId]; } else { @@ -247,8 +258,8 @@ private function sendExternalMessage( $adapter->getMaxMessagesPerRequest() ); - return batch(\array_map(function ($batch) use ($message, $provider, $adapter, $dbForProject, $deviceForFiles, $project, $queueForUsage) { - return function () use ($batch, $message, $provider, $adapter, $dbForProject, $deviceForFiles, $project, $queueForUsage) { + return batch(\array_map(function ($batch) use ($message, $provider, $adapter, $dbForProject, $deviceForFiles, $project, $queueForStatsUsage) { + return function () use ($batch, $message, $provider, $adapter, $dbForProject, $deviceForFiles, $project, $queueForStatsUsage) { $deliveredTotal = 0; $deliveryErrors = []; $messageData = clone $message; @@ -275,7 +286,7 @@ private function sendExternalMessage( Query::equal('identifier', [$result['recipient']]) ]); - if ($target instanceof Document && !$target->isEmpty()) { + if (!$target->isEmpty()) { $dbForProject->updateDocument( 'targets', $target->getId(), @@ -287,8 +298,8 @@ private function sendExternalMessage( } catch (\Throwable $e) { $deliveryErrors[] = 'Failed sending to targets with error: ' . $e->getMessage(); } finally { - $errorTotal = count($deliveryErrors); - $queueForUsage + $errorTotal = \count($deliveryErrors); + $queueForStatsUsage ->setProject($project) ->addMetric(METRIC_MESSAGES, ($deliveredTotal + $errorTotal)) ->addMetric(METRIC_MESSAGES_SENT, $deliveredTotal) @@ -333,7 +344,6 @@ private function sendExternalMessage( $message->setAttribute('status', MessageStatus::SENT); } - $message->removeAttribute('to'); foreach ($providers as $provider) { @@ -377,123 +387,79 @@ private function sendExternalMessage( } } - private function sendInternalSMSMessage(Document $message, Document $project, array $recipients, Usage $queueForUsage, Log $log): void + private function sendInternalSMSMessage(Document $message, Document $project, array $recipients, Log $log): void { - if (empty(System::getEnv('_APP_SMS_PROVIDER')) || empty(System::getEnv('_APP_SMS_FROM'))) { - throw new \Exception('Skipped SMS processing. Missing "_APP_SMS_PROVIDER" or "_APP_SMS_FROM" environment variables.'); + if ($this->adapter === null) { + Console::warning('Skipped SMS processing. SMS adapter is not set.'); + return; } if ($project->isEmpty()) { throw new \Exception('Project not set in payload'); } - Console::log('Project: ' . $project->getId()); - + Console::log('Processing project: ' . $project->getId()); $denyList = System::getEnv('_APP_SMS_PROJECTS_DENY_LIST', ''); $denyList = explode(',', $denyList); - if (\in_array($project->getId(), $denyList)) { Console::error('Project is in the deny list. Skipping...'); return; } - $smsDSN = new DSN(System::getEnv('_APP_SMS_PROVIDER')); - $host = $smsDSN->getHost(); - $password = $smsDSN->getPassword(); - $user = $smsDSN->getUser(); - - $log->addTag('type', $host); - - $from = System::getEnv('_APP_SMS_FROM'); - - $provider = new Document([ - '$id' => ID::unique(), - 'provider' => $host, - 'type' => MESSAGE_TYPE_SMS, - 'name' => 'Internal SMS', - 'enabled' => true, - 'credentials' => match ($host) { - 'twilio' => [ - 'accountSid' => $user, - 'authToken' => $password, - // Twilio Messaging Service SIDs always start with MG - // https://www.twilio.com/docs/messaging/services - 'messagingServiceSid' => \str_starts_with($from, 'MG') ? $from : null - ], - 'textmagic' => [ - 'username' => $user, - 'apiKey' => $password - ], - 'telesign' => [ - 'customerId' => $user, - 'apiKey' => $password - ], - 'msg91' => [ - 'senderId' => $user, - 'authKey' => $password, - 'templateId' => $smsDSN->getParam('templateId', $from), - ], - 'vonage' => [ - 'apiKey' => $user, - 'apiSecret' => $password - ], - default => null - }, - 'options' => match ($host) { - 'twilio' => [ - 'from' => \str_starts_with($from, 'MG') ? null : $from - ], - default => [ - 'from' => $from - ] - } - ]); - - $adapter = $this->getSmsAdapter($provider); - - $batches = \array_chunk( + $from = System::getEnv('_APP_SMS_FROM', ''); + $sms = new SMS( $recipients, - $adapter->getMaxMessagesPerRequest() + $message->getAttribute('data')['content'], + $from ); - batch(\array_map(function ($batch) use ($message, $provider, $adapter, $project, $queueForUsage) { - return function () use ($batch, $message, $provider, $adapter, $project, $queueForUsage) { - $message->setAttribute('to', $batch); - - $data = $this->buildSmsMessage($message, $provider); - - try { - $adapter->send($data); - - $countryCode = $adapter->getCountryCode($message['to'][0] ?? ''); - if (!empty($countryCode)) { - $queueForUsage - ->addMetric(str_replace('{countryCode}', $countryCode, METRIC_AUTH_METHOD_PHONE_COUNTRY_CODE), 1); - } - $queueForUsage - ->addMetric(METRIC_AUTH_METHOD_PHONE, 1) - ->setProject($project) - ->trigger(); - } catch (\Throwable $th) { - throw new \Exception('Failed sending to targets with error: ' . $th->getMessage()); - } - }; - }, $batches)); + try { + $result = $this->adapter->send($sms); + } catch (\Throwable $th) { + throw new \Exception('Failed sending to targets with error: ' . $th->getMessage()); + } } - private function getSmsAdapter(Document $provider): ?SMSAdapter { $credentials = $provider->getAttribute('credentials'); return match ($provider->getAttribute('provider')) { 'mock' => new Mock('username', 'password'), - 'twilio' => new Twilio($credentials['accountSid'], $credentials['authToken'], null, isset($credentials['messagingServiceSid']) ? $credentials['messagingServiceSid'] : null), - 'textmagic' => new TextMagic($credentials['username'], $credentials['apiKey']), - 'telesign' => new Telesign($credentials['customerId'], $credentials['apiKey']), - 'msg91' => new Msg91($credentials['senderId'], $credentials['authKey'], $credentials['templateId']), - 'vonage' => new Vonage($credentials['apiKey'], $credentials['apiSecret']), + 'twilio' => new Twilio( + $credentials['accountSid'] ?? '', + $credentials['authToken'] ?? '', + null, + $credentials['messagingServiceSid'] ?? null + ), + 'textmagic' => new TextMagic( + $credentials['username'] ?? '', + $credentials['apiKey'] ?? '' + ), + 'telesign' => new Telesign( + $credentials['customerId'] ?? '', + $credentials['apiKey'] ?? '' + ), + 'msg91' => new Msg91( + $credentials['senderId'] ?? '', + $credentials['authKey'] ?? '', + $credentials['templateId'] ?? '' + ), + 'vonage' => new Vonage( + $credentials['apiKey'] ?? '', + $credentials['apiSecret'] ?? '' + ), + 'fast2sms' => new Fast2SMS( + $credentials['apiKey'] ?? '', + $credentials['senderId'] ?? '', + $credentials['messageId'] ?? '', + $credentials['useDLT'] ?? true + ), + 'inforu' => new Inforu( + $credentials['senderId'] ?? '', + $credentials['apiKey'] ?? '', + ), default => null }; } @@ -506,11 +472,11 @@ private function getPushAdapter(Document $provider): ?PushAdapter return match ($provider->getAttribute('provider')) { 'mock' => new Mock('username', 'password'), 'apns' => new APNS( - $credentials['authKey'], - $credentials['authKeyId'], - $credentials['teamId'], - $credentials['bundleId'], - $options['sandbox'] + $credentials['authKey'] ?? '', + $credentials['authKeyId'] ?? '', + $credentials['teamId'] ?? '', + $credentials['bundleId'] ?? '', + $options['sandbox'] ?? false ), 'fcm' => new FCM(\json_encode($credentials['serviceAccountJSON'])), default => null @@ -521,24 +487,25 @@ private function getEmailAdapter(Document $provider): ?EmailAdapter { $credentials = $provider->getAttribute('credentials', []); $options = $provider->getAttribute('options', []); + $apiKey = $credentials['apiKey'] ?? ''; return match ($provider->getAttribute('provider')) { 'mock' => new Mock('username', 'password'), 'smtp' => new SMTP( - $credentials['host'], - $credentials['port'], - $credentials['username'], - $credentials['password'], - $options['encryption'], - $options['autoTLS'], - $options['mailer'], + $credentials['host'] ?? '', + $credentials['port'] ?? 25, + $credentials['username'] ?? '', + $credentials['password'] ?? '', + $options['encryption'] ?? '', + $options['autoTLS'] ?? false, + $options['mailer'] ?? '', ), 'mailgun' => new Mailgun( - $credentials['apiKey'], - $credentials['domain'], - $credentials['isEuRegion'] + $apiKey, + $credentials['domain'] ?? '', + $credentials['isEuRegion'] ?? false ), - 'sendgrid' => new Sendgrid($credentials['apiKey']), + 'sendgrid' => new Sendgrid($apiKey), default => null }; } @@ -657,8 +624,8 @@ private function buildSmsMessage(Document $message, Document $provider): SMS private function buildPushMessage(Document $message): Push { $to = $message['to']; - $title = $message['data']['title']; - $body = $message['data']['body']; + $title = $message['data']['title'] ?? null; + $body = $message['data']['body'] ?? null; $data = $message['data']['data'] ?? null; $action = $message['data']['action'] ?? null; $image = $message['data']['image']['url'] ?? null; @@ -667,6 +634,21 @@ private function buildPushMessage(Document $message): Push $color = $message['data']['color'] ?? null; $tag = $message['data']['tag'] ?? null; $badge = $message['data']['badge'] ?? null; + $contentAvailable = $message['data']['contentAvailable'] ?? null; + $critical = $message['data']['critical'] ?? null; + $priority = $message['data']['priority'] ?? null; + + if ($title === '') { + $title = null; + } + if ($body === '') { + $body = null; + } + if ($priority !== null) { + $priority = $priority === 'high' + ? Priority::HIGH + : Priority::NORMAL; + } return new Push( $to, @@ -679,7 +661,10 @@ private function buildPushMessage(Document $message): Push $icon, $color, $tag, - $badge + $badge, + $contentAvailable, + $critical, + $priority ); } @@ -691,4 +676,131 @@ private function getLocalDevice($project): Local return $this->localDevice; } + + private function createInternalSMSAdapter(): ?SMSAdapter + { + if (empty(System::getEnv('_APP_SMS_PROVIDER')) || empty(System::getEnv('_APP_SMS_FROM'))) { + Console::warning('Skipped SMS processing. Missing "_APP_SMS_PROVIDER" or "_APP_SMS_FROM" environment variables.'); + return null; + } + + $providers = System::getEnv('_APP_SMS_PROVIDER', ''); + + $dsns = []; + if (!empty($providers)) { + $providers = explode(',', $providers); + foreach ($providers as $provider) { + $dsns[] = new DSN($provider); + } + } + + if (count($dsns) === 1) { + $provider = $this->createProviderFromDSN($dsns[0]); + $adapter = $this->getSmsAdapter($provider); + return $adapter; + } + + $defaultDSN = null; + $localDSNs = []; + + /** @var DSN $dsn */ + foreach ($dsns as $dsn) { + if ($dsn->getParam('local', '') === 'default') { + $defaultDSN = $dsn; + } else { + $localDSNs[] = $dsn; + } + } + + if ($defaultDSN === null) { + throw new \Exception('No default SMS provider found'); + } + + $defaultProvider = $this->createProviderFromDSN($defaultDSN); + $adapter = $this->getSmsAdapter($defaultProvider); + $geosms = new GEOSMS($adapter); + + /** @var DSN $localDSN */ + foreach ($localDSNs as $localDSN) { + try { + $provider = $this->createProviderFromDSN($localDSN); + $adapter = $this->getSmsAdapter($provider); + } catch (\Exception) { + Console::warning('Unable to create adapter: ' . $localDSN->getHost()); + continue; + } + + $callingCode = $localDSN->getParam('local', ''); + if (empty($callingCode)) { + Console::warning('Unable to register adapter: ' . $localDSN->getHost() . '. Missing `local` parameter.'); + continue; + } + + $geosms->setLocal($callingCode, $adapter); + } + return $geosms; + } + + private function createProviderFromDSN(DSN $dsn): Document + { + $host = $dsn->getHost(); + $password = $dsn->getPassword(); + $user = $dsn->getUser(); + $from = System::getEnv('_APP_SMS_FROM'); + + $provider = new Document([ + '$id' => ID::unique(), + 'provider' => $host, + 'type' => MESSAGE_TYPE_SMS, + 'name' => 'Internal SMS', + 'enabled' => true, + 'credentials' => match ($host) { + 'twilio' => [ + 'accountSid' => $user, + 'authToken' => $password, + // Twilio Messaging Service SIDs always start with MG + // https://www.twilio.com/docs/messaging/services + 'messagingServiceSid' => \str_starts_with($from, 'MG') ? $from : null + ], + 'textmagic' => [ + 'username' => $user, + 'apiKey' => $password + ], + 'telesign' => [ + 'customerId' => $user, + 'apiKey' => $password + ], + 'msg91' => [ + 'senderId' => $user, + 'authKey' => $password, + 'templateId' => $dsn->getParam('templateId', $from), + ], + 'vonage' => [ + 'apiKey' => $user, + 'apiSecret' => $password + ], + 'fast2sms' => [ + 'senderId' => $user, + 'apiKey' => $password, + 'messageId' => $dsn->getParam('messageId'), + 'useDLT' => $dsn->getParam('useDLT'), + ], + 'inforu' => [ + 'senderId' => $user, + 'apiKey' => $password, + ], + default => null + }, + 'options' => match ($host) { + 'twilio' => [ + 'from' => \str_starts_with($from, 'MG') ? null : $from + ], + default => [ + 'from' => $from + ] + } + ]); + + return $provider; + } } diff --git a/src/Appwrite/Platform/Workers/Migrations.php b/src/Appwrite/Platform/Workers/Migrations.php index 8ab5ebac465..d3428753691 100644 --- a/src/Appwrite/Platform/Workers/Migrations.php +++ b/src/Appwrite/Platform/Workers/Migrations.php @@ -2,36 +2,49 @@ namespace Appwrite\Platform\Workers; -use Appwrite\Event\Event; -use Appwrite\Messaging\Adapter\Realtime; -use Appwrite\Permission; -use Appwrite\Role; +use Ahc\Jwt\JWT; +use Appwrite\Event\Realtime; use Exception; use Utopia\CLI\Console; +use Utopia\Config\Config; use Utopia\Database\Database; use Utopia\Database\Document; use Utopia\Database\Exception\Authorization; use Utopia\Database\Exception\Conflict; use Utopia\Database\Exception\Restricted; use Utopia\Database\Exception\Structure; -use Utopia\Database\Helpers\ID; -use Utopia\Logger\Log; -use Utopia\Logger\Log\Breadcrumb; -use Utopia\Migration\Destinations\Appwrite as DestinationsAppwrite; +use Utopia\Migration\Destination; +use Utopia\Migration\Destinations\Appwrite as DestinationAppwrite; use Utopia\Migration\Exception as MigrationException; use Utopia\Migration\Source; -use Utopia\Migration\Sources\Appwrite; +use Utopia\Migration\Sources\Appwrite as SourceAppwrite; use Utopia\Migration\Sources\Firebase; use Utopia\Migration\Sources\NHost; use Utopia\Migration\Sources\Supabase; use Utopia\Migration\Transfer; use Utopia\Platform\Action; use Utopia\Queue\Message; +use Utopia\System\System; class Migrations extends Action { - private ?Database $dbForProject = null; - private ?Database $dbForConsole = null; + protected Database $dbForProject; + + protected Database $dbForPlatform; + + protected Document $project; + + /** + * Cached for performance. + * + * @var array<string, int> + */ + protected array $sourceReport = []; + + /** + * @var callable + */ + protected $logError; public static function getName(): string { @@ -46,21 +59,18 @@ public function __construct() $this ->desc('Migrations worker') ->inject('message') + ->inject('project') ->inject('dbForProject') - ->inject('dbForConsole') - ->inject('log') - ->callback(fn (Message $message, Database $dbForProject, Database $dbForConsole, Log $log) => $this->action($message, $dbForProject, $dbForConsole, $log)); + ->inject('dbForPlatform') + ->inject('logError') + ->inject('queueForRealtime') + ->callback(fn (Message $message, Document $project, Database $dbForProject, Database $dbForPlatform, callable $logError, Realtime $queueForRealtime) => $this->action($message, $project, $dbForProject, $dbForPlatform, $logError, $queueForRealtime)); } /** - * @param Message $message - * @param Database $dbForProject - * @param Database $dbForConsole - * @param Log $log - * @return void * @throws Exception */ - public function action(Message $message, Database $dbForProject, Database $dbForConsole, Log $log): void + public function action(Message $message, Document $project, Database $dbForProject, Database $dbForPlatform, callable $logError, Realtime $queueForRealtime): void { $payload = $message->getPayload() ?? []; @@ -69,7 +79,6 @@ public function action(Message $message, Database $dbForProject, Database $dbFor } $events = $payload['events'] ?? []; - $project = new Document($payload['project'] ?? []); $migration = new Document($payload['migration'] ?? []); if ($project->getId() === 'console') { @@ -77,7 +86,9 @@ public function action(Message $message, Database $dbForProject, Database $dbFor } $this->dbForProject = $dbForProject; - $this->dbForConsole = $dbForConsole; + $this->dbForPlatform = $dbForPlatform; + $this->project = $project; + $this->logError = $logError; /** * Handle Event execution. @@ -86,21 +97,18 @@ public function action(Message $message, Database $dbForProject, Database $dbFor return; } - $log->addTag('migrationId', $migration->getId()); - $log->addTag('projectId', $project->getId()); - - $this->processMigration($project, $migration, $log); + $this->processMigration($migration, $queueForRealtime); } /** - * @param string $source - * @param array $credentials - * @return Source * @throws Exception */ - protected function processSource(string $source, array $credentials): Source + protected function processSource(Document $migration): Source { - return match ($source) { + $source = $migration->getAttribute('source'); + $credentials = $migration->getAttribute('credentials'); + + $migrationSource = match ($source) { Firebase::getName() => new Firebase( json_decode($credentials['serviceAccount'], true), ), @@ -122,156 +130,131 @@ protected function processSource(string $source, array $credentials): Source $credentials['password'], $credentials['port'], ), - Appwrite::getName() => new Appwrite($credentials['projectId'], str_starts_with($credentials['endpoint'], 'http://localhost/v1') ? 'http://appwrite/v1' : $credentials['endpoint'], $credentials['apiKey']), + SourceAppwrite::getName() => new SourceAppwrite( + $credentials['projectId'], + $credentials['endpoint'] === 'http://localhost/v1' ? 'http://appwrite/v1' : $credentials['endpoint'], + $credentials['apiKey'], + ), default => throw new \Exception('Invalid source type'), }; + + $this->sourceReport = $migrationSource->report(); + + return $migrationSource; } /** - * @throws Authorization - * @throws Structure - * @throws Conflict - * @throws \Utopia\Database\Exception * @throws Exception */ - protected function updateMigrationDocument(Document $migration, Document $project): Document + protected function processDestination(Document $migration, string $apiKey): Destination { - /** Trigger Realtime */ - $allEvents = Event::generateEvents('migrations.[migrationId].update', [ - 'migrationId' => $migration->getId(), - ]); - - $target = Realtime::fromPayload( - event: $allEvents[0], - payload: $migration, - project: $project - ); - - Realtime::send( - projectId: 'console', - payload: $migration->getArrayCopy(), - events: $allEvents, - channels: $target['channels'], - roles: $target['roles'], - ); - - Realtime::send( - projectId: $project->getId(), - payload: $migration->getArrayCopy(), - events: $allEvents, - channels: $target['channels'], - roles: $target['roles'], - ); + $destination = $migration->getAttribute('destination'); - return $this->dbForProject->updateDocument('migrations', $migration->getId(), $migration); + return match ($destination) { + DestinationAppwrite::getName() => new DestinationAppwrite( + $this->project->getId(), + 'http://appwrite/v1', + $apiKey, + $this->dbForProject, + Config::getParam('collections', [])['databases']['collections'], + ), + default => throw new \Exception('Invalid destination type'), + }; } /** - * @param Document $apiKey - * @return void - * @throws \Utopia\Database\Exception * @throws Authorization - * @throws Conflict - * @throws Restricted * @throws Structure + * @throws Conflict + * @throws \Utopia\Database\Exception + * @throws Exception */ - protected function removeAPIKey(Document $apiKey): void + protected function updateMigrationDocument(Document $migration, Document $project, Realtime $queueForRealtime): Document { - $this->dbForConsole->deleteDocument('keys', $apiKey->getId()); + /** Trigger Realtime Events */ + $queueForRealtime + ->setProject($project) + ->setSubscribers(['console', $project->getId()]) + ->setEvent('migrations.[migrationId].update') + ->setParam('migrationId', $migration->getId()) + ->setPayload($migration->getArrayCopy()) + ->trigger(); + + return $this->dbForProject->updateDocument('migrations', $migration->getId(), $migration); } /** - * @param Document $project - * @return Document - * @throws Authorization - * @throws Structure - * @throws \Utopia\Database\Exception * @throws Exception */ - protected function generateAPIKey(Document $project): Document + protected function generateAPIKey(Document $project): string { - $generatedSecret = bin2hex(\random_bytes(128)); - - $key = new Document([ - '$id' => ID::unique(), - '$permissions' => [ - Permission::read(Role::any()), - Permission::update(Role::any()), - Permission::delete(Role::any()), - ], - 'projectInternalId' => $project->getInternalId(), + $jwt = new JWT(System::getEnv('_APP_OPENSSL_KEY_V1'), 'HS256', 86400, 0); + + $apiKey = $jwt->encode([ 'projectId' => $project->getId(), - 'name' => 'Transfer API Key', + 'disabledMetrics' => [ + METRIC_DATABASES_OPERATIONS_READS, + METRIC_DATABASES_OPERATIONS_WRITES, + METRIC_NETWORK_REQUESTS, + METRIC_NETWORK_INBOUND, + METRIC_NETWORK_OUTBOUND, + ], 'scopes' => [ 'users.read', 'users.write', 'teams.read', 'teams.write', - 'databases.read', - 'databases.write', - 'collections.read', - 'collections.write', - 'documents.read', - 'documents.write', 'buckets.read', 'buckets.write', 'files.read', 'files.write', 'functions.read', 'functions.write', + 'databases.read', + 'collections.read', + 'documents.read', ], - 'expire' => null, - 'sdks' => [], - 'accessedAt' => null, - 'secret' => $generatedSecret, ]); - $this->dbForConsole->createDocument('keys', $key); - $this->dbForConsole->purgeCachedDocument('projects', $project->getId()); - - return $key; + return API_KEY_DYNAMIC . '_' . $apiKey; } /** - * @param Document $project - * @param Document $migration - * @param Log $log - * @return void * @throws Authorization * @throws Conflict * @throws Restricted * @throws Structure * @throws \Utopia\Database\Exception + * @throws Exception */ - protected function processMigration(Document $project, Document $migration, Log $log): void + protected function processMigration(Document $migration, Realtime $queueForRealtime): void { - /** - * @var Document $migrationDocument - * @var Transfer $transfer - */ - $migrationDocument = null; - $transfer = null; - $projectDocument = $this->dbForConsole->getDocument('projects', $project->getId()); + $project = $this->project; + $projectDocument = $this->dbForPlatform->getDocument('projects', $project->getId()); $tempAPIKey = $this->generateAPIKey($projectDocument); + $transfer = $source = $destination = null; + try { - $migrationDocument = $this->dbForProject->getDocument('migrations', $migration->getId()); - $migrationDocument->setAttribute('stage', 'processing'); - $migrationDocument->setAttribute('status', 'processing'); - $log->addBreadcrumb(new Breadcrumb("debug", "migration", "Migration hit stage 'processing'", \microtime(true))); - $this->updateMigrationDocument($migrationDocument, $projectDocument); + if ( + $migration->getAttribute('source') === SourceAppwrite::getName() && + empty($migration->getAttribute('credentials', [])) + ) { + $credentials = $migration->getAttribute('credentials', []); - $log->addTag('type', $migrationDocument->getAttribute('source')); + $credentials['projectId'] = $credentials['projectId'] ?? $projectDocument->getId(); + $credentials['endpoint'] = $credentials['endpoint'] ?? 'http://appwrite/v1'; + $credentials['apiKey'] = $credentials['apiKey'] ?? $tempAPIKey; - $source = $this->processSource($migrationDocument->getAttribute('source'), $migrationDocument->getAttribute('credentials')); + $migration->setAttribute('credentials', $credentials); + } - $source->report(); + $migration->setAttribute('stage', 'processing'); + $migration->setAttribute('status', 'processing'); + $this->updateMigrationDocument($migration, $projectDocument, $queueForRealtime); - $destination = new DestinationsAppwrite( - $projectDocument->getId(), - 'http://appwrite/v1', - $tempAPIKey['secret'], - ); + $source = $this->processSource($migration); + $destination = $this->processDestination($migration, $tempAPIKey); $transfer = new Transfer( $source, @@ -279,53 +262,71 @@ protected function processMigration(Document $project, Document $migration, Log ); /** Start Transfer */ - $migrationDocument->setAttribute('stage', 'migrating'); - $log->addBreadcrumb(new Breadcrumb("debug", "migration", "Migration hit stage 'migrating'", \microtime(true))); - $this->updateMigrationDocument($migrationDocument, $projectDocument); - $transfer->run($migrationDocument->getAttribute('resources'), function () use ($migrationDocument, $transfer, $projectDocument) { - $migrationDocument->setAttribute('resourceData', json_encode($transfer->getCache())); - $migrationDocument->setAttribute('statusCounters', json_encode($transfer->getStatusCounters())); + $migration->setAttribute('stage', 'migrating'); + $this->updateMigrationDocument($migration, $projectDocument, $queueForRealtime); + + $transfer->run( + $migration->getAttribute('resources'), + function () use ($migration, $transfer, $projectDocument, $queueForRealtime) { + $migration->setAttribute('resourceData', json_encode($transfer->getCache())); + $migration->setAttribute('statusCounters', json_encode($transfer->getStatusCounters())); + $this->updateMigrationDocument($migration, $projectDocument, $queueForRealtime); + }, + $migration->getAttribute('resourceId'), + $migration->getAttribute('resourceType') + ); - $this->updateMigrationDocument($migrationDocument, $projectDocument); - }); + $destination->shutDown(); + $source->shutDown(); $sourceErrors = $source->getErrors(); $destinationErrors = $destination->getErrors(); - if (!empty($sourceErrors) || !empty($destinationErrors)) { - $migrationDocument->setAttribute('status', 'failed'); - $migrationDocument->setAttribute('stage', 'finished'); - $log->addBreadcrumb(new Breadcrumb("debug", "migration", "Migration hit stage 'finished' and failed", \microtime(true))); + if (! empty($sourceErrors) || ! empty($destinationErrors)) { + $migration->setAttribute('status', 'failed'); + $migration->setAttribute('stage', 'finished'); $errorMessages = []; foreach ($sourceErrors as $error) { - /** @var MigrationException $error */ - $errorMessages[] = "Error occurred while fetching '{$error->getResourceGroup()}:{$error->getResourceId()}' from source with message: '{$error->getMessage()}'"; + $message = "Error occurred while fetching '{$error->getResourceName()}:{$error->getResourceId()}' from source with message: '{$error->getMessage()}'"; + if ($error->getPrevious()) { + $message .= " Message: ".$error->getPrevious()->getMessage() . " File: ".$error->getPrevious()->getFile() . " Line: ".$error->getPrevious()->getLine(); + } + + $errorMessages[] = $message; } foreach ($destinationErrors as $error) { + $message = "Error occurred while pushing '{$error->getResourceName()}:{$error->getResourceId()}' to destination with message: '{$error->getMessage()}'"; + + if ($error->getPrevious()) { + $message .= " Message: ".$error->getPrevious()->getMessage() . " File: ".$error->getPrevious()->getFile() . " Line: ".$error->getPrevious()->getLine(); + } + /** @var MigrationException $error */ - $errorMessages[] = "Error occurred while pushing '{$error->getResourceGroup()}:{$error->getResourceId()}' to destination with message: '{$error->getMessage()}'"; + $errorMessages[] = $message; } - $migrationDocument->setAttribute('errors', $errorMessages); - $log->addExtra('migrationErrors', json_encode($errorMessages)); - $this->updateMigrationDocument($migrationDocument, $projectDocument); + $migration->setAttribute('errors', $errorMessages); + $this->updateMigrationDocument($migration, $projectDocument, $queueForRealtime); return; } - $migrationDocument->setAttribute('status', 'completed'); - $migrationDocument->setAttribute('stage', 'finished'); - $log->addBreadcrumb(new Breadcrumb("debug", "migration", "Migration hit stage 'finished' and succeeded", \microtime(true))); + $migration->setAttribute('status', 'completed'); + $migration->setAttribute('stage', 'finished'); } catch (\Throwable $th) { Console::error($th->getMessage()); + Console::error($th->getTraceAsString()); - if ($migrationDocument) { - Console::error($th->getMessage()); - Console::error($th->getTraceAsString()); - $migrationDocument->setAttribute('status', 'failed'); - $migrationDocument->setAttribute('stage', 'finished'); - $migrationDocument->setAttribute('errors', [$th->getMessage()]); + if (! $migration->isEmpty()) { + $migration->setAttribute('status', 'failed'); + $migration->setAttribute('stage', 'finished'); + + call_user_func($this->logError, $th, 'appwrite-worker', 'appwrite-queue-'.self::getName(), [ + 'migrationId' => $migration->getId(), + 'source' => $migration->getAttribute('source') ?? '', + 'destination' => $migration->getAttribute('destination') ?? '', + ]); return; } @@ -337,27 +338,56 @@ protected function processMigration(Document $project, Document $migration, Log $errorMessages = []; foreach ($sourceErrors as $error) { /** @var MigrationException $error */ - $errorMessages[] = "Error occurred while fetching '{$error->getResourceGroup()}:{$error->getResourceId()}' from source with message '{$error->getMessage()}'"; + $errorMessages[] = "Error occurred while fetching '{$error->getResourceName()}:{$error->getResourceId()}' from source with message '{$error->getMessage()}'"; } foreach ($destinationErrors as $error) { /** @var MigrationException $error */ - $errorMessages[] = "Error occurred while pushing '{$error->getResourceGroup()}:{$error->getResourceId()}' to destination with message '{$error->getMessage()}'"; + $errorMessages[] = "Error occurred while pushing '{$error->getResourceName()}:{$error->getResourceId()}' to destination with message '{$error->getMessage()}'"; } - $migrationDocument->setAttribute('errors', $errorMessages); - $log->addTag('migrationErrors', json_encode($errorMessages)); + $migration->setAttribute('errors', $errorMessages); } } finally { - if ($tempAPIKey) { - $this->removeAPIKey($tempAPIKey); - } - if ($migrationDocument) { - $this->updateMigrationDocument($migrationDocument, $projectDocument); + $this->updateMigrationDocument($migration, $projectDocument, $queueForRealtime); + + if ($migration->getAttribute('status', '') === 'failed') { + Console::error('Migration('.$migration->getInternalId().':'.$migration->getId().') failed, Project('.$this->project->getInternalId().':'.$this->project->getId().')'); + + if ($destination) { + $destination->error(); + + foreach ($destination->getErrors() as $error) { + /** @var MigrationException $error */ + call_user_func($this->logError, $error, 'appwrite-worker', 'appwrite-queue-' . self::getName(), [ + 'migrationId' => $migration->getId(), + 'source' => $migration->getAttribute('source') ?? '', + 'destination' => $migration->getAttribute('destination') ?? '', + 'resourceName' => $error->getResourceName(), + 'resourceGroup' => $error->getResourceGroup() + ]); + } + } - if ($migrationDocument->getAttribute('status', '') == 'failed') { - throw new Exception("Migration failed"); + if ($source) { + $source->error(); + + foreach ($source->getErrors() as $error) { + /** @var MigrationException $error */ + call_user_func($this->logError, $error, 'appwrite-worker', 'appwrite-queue-' . self::getName(), [ + 'migrationId' => $migration->getId(), + 'source' => $migration->getAttribute('source') ?? '', + 'destination' => $migration->getAttribute('destination') ?? '', + 'resourceName' => $error->getResourceName(), + 'resourceGroup' => $error->getResourceGroup() + ]); + } } } + + if ($migration->getAttribute('status', '') === 'completed') { + $destination?->success(); + $source?->success(); + } } } } diff --git a/src/Appwrite/Platform/Workers/StatsResources.php b/src/Appwrite/Platform/Workers/StatsResources.php new file mode 100644 index 00000000000..0144020d38b --- /dev/null +++ b/src/Appwrite/Platform/Workers/StatsResources.php @@ -0,0 +1,377 @@ +<?php + +namespace Appwrite\Platform\Workers; + +use Appwrite\Platform\Action; +use Exception; +use Throwable; +use Utopia\CLI\Console; +use Utopia\Database\Database; +use Utopia\Database\Document; +use Utopia\Database\Query; +use Utopia\Queue\Message; + +class StatsResources extends Action +{ + /** + * Date format for different periods + */ + protected array $periods = [ + '1h' => 'Y-m-d H:00', + '1d' => 'Y-m-d 00:00', + 'inf' => '0000-00-00 00:00' + ]; + + /** + * @var array $documents + * + * Array of documents to batch write + * + */ + protected array $documents = []; + + public static function getName(): string + { + return 'stats-resources'; + } + + + /** + * @throws Exception + */ + public function __construct() + { + $this + ->desc('Stats resources worker') + ->inject('message') + ->inject('project') + ->inject('getProjectDB') + ->inject('getLogsDB') + ->inject('dbForPlatform') + ->inject('logError') + ->callback([$this, 'action']); + } + + /** + * @param Message $message + * @param Document $project + * @param callable $getProjectDB + * @return void + * @throws \Utopia\Database\Exception + * @throws Exception + */ + public function action(Message $message, Document $project, callable $getProjectDB, callable $getLogsDB, Database $dbForPlatform, callable $logError): void + { + $this->logError = $logError; + + $payload = $message->getPayload() ?? []; + if (empty($payload)) { + throw new Exception('Missing payload'); + } + + if (empty($project->getAttribute('database'))) { + return; + } + + // Reset documents for each job + $this->documents = []; + + $startTime = microtime(true); + $this->countForProject($dbForPlatform, $getLogsDB, $getProjectDB, $project); + $endTime = microtime(true); + $executionTime = $endTime - $startTime; + Console::info('Project: ' . $project->getId() . '(' . $project->getInternalId() . ') aggregated in ' . $executionTime .' seconds'); + } + + protected function countForProject(Database $dbForPlatform, callable $getLogsDB, callable $getProjectDB, Document $project): void + { + Console::info('Begining count for: ' . $project->getId()); + + $dbForLogs = null; + $dbForProject = null; + try { + /** @var \Utopia\Database\Database $dbForLogs */ + $dbForLogs = call_user_func($getLogsDB, $project); + /** @var \Utopia\Database\Database $dbForProject */ + $dbForProject = call_user_func($getProjectDB, $project); + } catch (Throwable $th) { + Console::error('Unable to get database'); + Console::error($th->getMessage()); + return; + } + + try { + + $region = $project->getAttribute('region'); + + $platforms = $dbForPlatform->count('platforms', [ + Query::equal('projectInternalId', [$project->getInternalId()]) + ]); + $webhooks = $dbForPlatform->count('webhooks', [ + Query::equal('projectInternalId', [$project->getInternalId()]) + ]); + $keys = $dbForPlatform->count('keys', [ + Query::equal('projectInternalId', [$project->getInternalId()]) + ]); + + $domains = $dbForPlatform->count('rules', [ + Query::equal('projectInternalId', [$project->getInternalId()]), + Query::equal('owner', ['']), + ]); + + + $databases = $dbForProject->count('databases'); + $buckets = $dbForProject->count('buckets'); + $users = $dbForProject->count('users'); + + $last30Days = (new \DateTime())->sub(\DateInterval::createFromDateString('30 days'))->format('Y-m-d 00:00:00'); + $usersMAU = $dbForProject->count('users', [ + Query::greaterThanEqual('accessedAt', $last30Days) + ]); + $last24Hours = (new \DateTime())->sub(\DateInterval::createFromDateString('24 hours'))->format('Y-m-d h:m:00'); + $usersDAU = $dbForProject->count('users', [ + Query::greaterThanEqual('accessedAt', $last24Hours) + ]); + $last7Days = (new \DateTime())->sub(\DateInterval::createFromDateString('7 days'))->format('Y-m-d 00:00:00'); + $usersWAU = $dbForProject->count('users', [ + Query::greaterThanEqual('accessedAt', $last7Days) + ]); + $teams = $dbForProject->count('teams'); + $functions = $dbForProject->count('functions'); + + $messages = $dbForProject->count('messages'); + $providers = $dbForProject->count('providers'); + $topics = $dbForProject->count('topics'); + $targets = $dbForProject->count('targets'); + $emailTargets = $dbForProject->count('targets', [ + Query::equal('providerType', [MESSAGE_TYPE_EMAIL]) + ]); + $pushTargets = $dbForProject->count('targets', [ + Query::equal('providerType', [MESSAGE_TYPE_PUSH]) + ]); + $smsTargets = $dbForProject->count('targets', [ + Query::equal('providerType', [MESSAGE_TYPE_SMS]) + ]); + + $metrics = [ + METRIC_DATABASES => $databases, + METRIC_BUCKETS => $buckets, + METRIC_USERS => $users, + METRIC_FUNCTIONS => $functions, + METRIC_TEAMS => $teams, + METRIC_MESSAGES => $messages, + METRIC_MAU => $usersMAU, + METRIC_DAU => $usersDAU, + METRIC_WAU => $usersWAU, + METRIC_WEBHOOKS => $webhooks, + METRIC_PLATFORMS => $platforms, + METRIC_PROVIDERS => $providers, + METRIC_TOPICS => $topics, + METRIC_KEYS => $keys, + METRIC_DOMAINS => $domains, + METRIC_TARGETS => $targets, + str_replace('{providerType}', MESSAGE_TYPE_EMAIL, METRIC_PROVIDER_TYPE_TARGETS) => $emailTargets, + str_replace('{providerType}', MESSAGE_TYPE_PUSH, METRIC_PROVIDER_TYPE_TARGETS) => $pushTargets, + str_replace('{providerType}', MESSAGE_TYPE_SMS, METRIC_PROVIDER_TYPE_TARGETS) => $smsTargets, + ]; + + foreach ($metrics as $metric => $value) { + $this->createStatsDocuments($region, $metric, $value); + } + + try { + $this->countForBuckets($dbForProject, $dbForLogs, $region); + } catch (Throwable $th) { + call_user_func_array($this->logError, [$th, "StatsResources", "count_for_buckets_{$project->getId()}"]); + } + + try { + $this->countImageTransformations($dbForProject, $dbForLogs, $region); + } catch (Throwable $th) { + call_user_func_array($this->logError, [$th, "StatsResources", "count_for_buckets_{$project->getId()}"]); + } + + try { + $this->countForDatabase($dbForProject, $region); + } catch (Throwable $th) { + call_user_func_array($this->logError, [$th, "StatsResources", "count_for_database_{$project->getId()}"]); + } + + try { + $this->countForFunctions($dbForProject, $dbForLogs, $region); + } catch (Throwable $th) { + call_user_func_array($this->logError, [$th, "StatsResources", "count_for_functions_{$project->getId()}"]); + } + + $this->writeDocuments($dbForLogs, $project); + } catch (Throwable $th) { + call_user_func_array($this->logError, [$th, "StatsResources", "count_for_project_{$project->getId()}"]); + } + + Console::info('End of count for: ' . $project->getId()); + } + + protected function countForBuckets(Database $dbForProject, Database $dbForLogs, string $region) + { + $totalFiles = 0; + $totalStorage = 0; + $this->foreachDocument($dbForProject, 'buckets', [], function ($bucket) use ($dbForProject, $dbForLogs, $region, &$totalFiles, &$totalStorage) { + $files = $dbForProject->count('bucket_' . $bucket->getInternalId()); + + $metric = str_replace('{bucketInternalId}', $bucket->getInternalId(), METRIC_BUCKET_ID_FILES); + $this->createStatsDocuments($region, $metric, $files); + + $storage = $dbForProject->sum('bucket_' . $bucket->getInternalId(), 'sizeActual'); + $metric = str_replace('{bucketInternalId}', $bucket->getInternalId(), METRIC_BUCKET_ID_FILES_STORAGE); + $this->createStatsDocuments($region, $metric, $storage); + + $totalStorage += $storage; + $totalFiles += $files; + }); + + $this->createStatsDocuments($region, METRIC_FILES, $totalFiles); + $this->createStatsDocuments($region, METRIC_FILES_STORAGE, $totalStorage); + } + + /** + * Need separate function to count per period data + */ + protected function countImageTransformations(Database $dbForProject, Database $dbForLogs, string $region) + { + $totalImageTransformations = 0; + $last30Days = (new \DateTime())->sub(\DateInterval::createFromDateString('30 days'))->format('Y-m-d 00:00:00'); + $this->foreachDocument($dbForProject, 'buckets', [], function ($bucket) use ($dbForProject, $last30Days, $region, &$totalImageTransformations) { + $imageTransformations = $dbForProject->count('bucket_' . $bucket->getInternalId(), [ + Query::greaterThanEqual('transformedAt', $last30Days), + ]); + $metric = str_replace('{bucketInternalId}', $bucket->getInternalId(), METRIC_BUCKET_ID_FILES_IMAGES_TRANSFORMED); + $this->createStatsDocuments($region, $metric, $imageTransformations); + $totalImageTransformations += $imageTransformations; + }); + + $this->createStatsDocuments($region, METRIC_FILES_IMAGES_TRANSFORMED, $totalImageTransformations); + } + + protected function countForDatabase(Database $dbForProject, string $region) + { + $totalCollections = 0; + $totalDocuments = 0; + + $totalDatabaseStorage = 0; + + $this->foreachDocument($dbForProject, 'databases', [], function ($database) use ($dbForProject, $region, &$totalCollections, &$totalDocuments, &$totalDatabaseStorage) { + $collections = $dbForProject->count('database_' . $database->getInternalId()); + + $metric = str_replace('{databaseInternalId}', $database->getInternalId(), METRIC_DATABASE_ID_COLLECTIONS); + $this->createStatsDocuments($region, $metric, $collections); + + [$documents, $storage] = $this->countForCollections($dbForProject, $database, $region); + + $totalDatabaseStorage += $storage; + $totalDocuments += $documents; + $totalCollections += $collections; + }); + + $this->createStatsDocuments($region, METRIC_COLLECTIONS, $totalCollections); + $this->createStatsDocuments($region, METRIC_DOCUMENTS, $totalDocuments); + $this->createStatsDocuments($region, METRIC_DATABASES_STORAGE, $totalDatabaseStorage); + } + protected function countForCollections(Database $dbForProject, Document $database, string $region): array + { + $databaseDocuments = 0; + $databaseStorage = 0; + $this->foreachDocument($dbForProject, 'database_' . $database->getInternalId(), [], function ($collection) use ($dbForProject, $database, $region, &$databaseStorage, &$databaseDocuments) { + $documents = $dbForProject->count('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId()); + $metric = str_replace(['{databaseInternalId}', '{collectionInternalId}'], [$database->getInternalId(), $collection->getInternalId()], METRIC_DATABASE_ID_COLLECTION_ID_DOCUMENTS); + $this->createStatsDocuments($region, $metric, $documents); + $databaseDocuments += $documents; + + $collectionStorage = $dbForProject->getSizeOfCollection('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId()); + $metric = str_replace(['{databaseInternalId}', '{collectionInternalId}'], [$database->getInternalId(), $collection->getInternalId()], METRIC_DATABASE_ID_COLLECTION_ID_STORAGE); + $this->createStatsDocuments($region, $metric, $collectionStorage); + $databaseStorage += $collectionStorage; + + }); + + $metric = str_replace(['{databaseInternalId}'], [$database->getInternalId()], METRIC_DATABASE_ID_DOCUMENTS); + $this->createStatsDocuments($region, $metric, $databaseDocuments); + + $metric = str_replace(['{databaseInternalId}'], [$database->getInternalId()], METRIC_DATABASE_ID_STORAGE); + $this->createStatsDocuments($region, $metric, $databaseStorage); + + return [$databaseDocuments, $databaseStorage]; + } + + protected function countForFunctions(Database $dbForProject, Database $dbForLogs, string $region) + { + $deploymentsStorage = $dbForProject->sum('deployments', 'size'); + $buildsStorage = $dbForProject->sum('builds', 'size'); + $this->createStatsDocuments($region, METRIC_DEPLOYMENTS_STORAGE, $deploymentsStorage); + $this->createStatsDocuments($region, METRIC_BUILDS_STORAGE, $buildsStorage); + + $deployments = $dbForProject->count('deployments'); + $builds = $dbForProject->count('builds'); + $this->createStatsDocuments($region, METRIC_DEPLOYMENTS, $deployments); + $this->createStatsDocuments($region, METRIC_BUILDS, $builds); + + + $this->foreachDocument($dbForProject, 'functions', [], function (Document $function) use ($dbForProject, $dbForLogs, $region) { + $functionDeploymentsStorage = $dbForProject->sum('deployments', 'size', [ + Query::equal('resourceInternalId', [$function->getInternalId()]), + Query::equal('resourceType', [RESOURCE_TYPE_FUNCTIONS]), + ]); + $this->createStatsDocuments($region, str_replace(['{resourceType}','{resourceInternalId}'], [RESOURCE_TYPE_FUNCTIONS,$function->getInternalId()], METRIC_RESOURCE_TYPE_ID_DEPLOYMENTS_STORAGE), $functionDeploymentsStorage); + + $functionDeployments = $dbForProject->count('deployments', [ + Query::equal('resourceInternalId', [$function->getInternalId()]), + Query::equal('resourceType', [RESOURCE_TYPE_FUNCTIONS]), + ]); + $this->createStatsDocuments($region, str_replace(['{resourceType}','{resourceInternalId}'], [RESOURCE_TYPE_FUNCTIONS,$function->getInternalId()], METRIC_RESOURCE_TYPE_ID_DEPLOYMENTS), $functionDeployments); + + /** + * As deployments and builds have 1-1 relationship, + * the count for one should match the other + */ + $this->createStatsDocuments($region, str_replace(['{resourceType}','{resourceInternalId}'], [RESOURCE_TYPE_FUNCTIONS,$function->getInternalId()], METRIC_RESOURCE_TYPE_ID_BUILDS), $functionDeployments); + + $functionBuildsStorage = 0; + + $this->foreachDocument($dbForProject, 'deployments', [ + Query::equal('resourceInternalId', [$function->getInternalId()]), + Query::equal('resourceType', [RESOURCE_TYPE_FUNCTIONS]), + ], function (Document $deployment) use ($dbForProject, &$functionBuildsStorage): void { + $build = $dbForProject->getDocument('builds', $deployment->getAttribute('buildId', '')); + $functionBuildsStorage += $build->getAttribute('size', 0); + }); + + $this->createStatsDocuments($region, str_replace(['{resourceType}','{resourceInternalId}'], [RESOURCE_TYPE_FUNCTIONS,$function->getInternalId()], METRIC_RESOURCE_TYPE_ID_BUILDS_STORAGE), $functionBuildsStorage); + }); + } + + protected function createStatsDocuments(string $region, string $metric, int $value) + { + foreach ($this->periods as $period => $format) { + $time = 'inf' === $period ? null : \date($format, \time()); + $id = \md5("{$time}_{$period}_{$metric}"); + + $this->documents[] = new Document([ + '$id' => $id, + 'metric' => $metric, + 'period' => $period, + 'region' => $region, + 'value' => $value, + 'time' => $time, + ]); + } + } + + protected function writeDocuments(Database $dbForLogs, Document $project): void + { + $dbForLogs->createOrUpdateDocuments( + 'stats', + $this->documents + ); + $this->documents = []; + Console::success('Stats written to logs db for project: ' . $project->getId() . '(' . $project->getInternalId() . ')'); + } +} diff --git a/src/Appwrite/Platform/Workers/Usage.php b/src/Appwrite/Platform/Workers/StatsUsage.php similarity index 57% rename from src/Appwrite/Platform/Workers/Usage.php rename to src/Appwrite/Platform/Workers/StatsUsage.php index 034e558d5d1..60fab5d2eae 100644 --- a/src/Appwrite/Platform/Workers/Usage.php +++ b/src/Appwrite/Platform/Workers/StatsUsage.php @@ -2,28 +2,111 @@ namespace Appwrite\Platform\Workers; -use Appwrite\Event\UsageDump; use Exception; +use Throwable; use Utopia\CLI\Console; +use Utopia\Database\Database; use Utopia\Database\DateTime; use Utopia\Database\Document; use Utopia\Platform\Action; use Utopia\Queue\Message; +use Utopia\Registry\Registry; use Utopia\System\System; -class Usage extends Action +class StatsUsage extends Action { + /** + * In memory per project metrics calculation + */ private array $stats = []; private int $lastTriggeredTime = 0; private int $keys = 0; private const INFINITY_PERIOD = '_inf_'; - private const KEYS_THRESHOLD = 10000; + private const BATCH_SIZE_DEVELOPMENT = 1; + private const BATCH_SIZE_PRODUCTION = 10_000; + + /** + * Stats for batch write separated per project + * @var array + */ + private array $projects = []; + + /** + * Array of stat documents to batch write to logsDB + * @var array + */ + private array $statDocuments = []; + + protected Registry $register; + + /** + * Metrics to skip writing to logsDB + * As these metrics are calculated separately + * by logs DB + * @var array + */ + protected array $skipBaseMetrics = [ + METRIC_DATABASES => true, + METRIC_BUCKETS => true, + METRIC_USERS => true, + METRIC_FUNCTIONS => true, + METRIC_TEAMS => true, + METRIC_MESSAGES => true, + METRIC_MAU => true, + METRIC_WEBHOOKS => true, + METRIC_PLATFORMS => true, + METRIC_PROVIDERS => true, + METRIC_TOPICS => true, + METRIC_KEYS => true, + METRIC_FILES => true, + METRIC_FILES_STORAGE => true, + METRIC_DEPLOYMENTS_STORAGE => true, + METRIC_BUILDS_STORAGE => true, + METRIC_DEPLOYMENTS => true, + METRIC_BUILDS => true, + METRIC_COLLECTIONS => true, + METRIC_DOCUMENTS => true, + METRIC_DATABASES_STORAGE => true, + ]; + + /** + * Skip metrics associated with parent IDs + * these need to be checked individually with `str_ends_with` + */ + protected array $skipParentIdMetrics = [ + '.files', + '.files.storage', + '.collections', + '.documents', + '.deployments', + '.deployments.storage', + '.builds', + '.builds.storage', + '.databases.storage' + ]; + + /** + * @var callable(): Database + */ + protected mixed $getLogsDB; + + protected array $periods = [ + '1h' => 'Y-m-d H:00', + '1d' => 'Y-m-d 00:00', + 'inf' => '0000-00-00 00:00' + ]; public static function getName(): string { - return 'usage'; + return 'stats-usage'; } + private function getBatchSize(): int + { + return System::getEnv('_APP_ENV', 'development') === 'development' + ? self::BATCH_SIZE_DEVELOPMENT + : self::BATCH_SIZE_PRODUCTION; + } /** * @throws Exception */ @@ -31,27 +114,29 @@ public function __construct() { $this - ->desc('Usage worker') - ->inject('message') - ->inject('getProjectDB') - ->inject('queueForUsageDump') - ->callback(function (Message $message, callable $getProjectDB, UsageDump $queueForUsageDump) { - $this->action($message, $getProjectDB, $queueForUsageDump); - }); + ->desc('Stats usage worker') + ->inject('message') + ->inject('getProjectDB') + ->inject('getLogsDB') + ->inject('register') + ->callback([$this, 'action']); $this->lastTriggeredTime = time(); } /** * @param Message $message - * @param callable $getProjectDB - * @param UsageDump $queueForUsageDump + * @param callable(): Database $getProjectDB + * @param callable(): Database $getLogsDB + * @param Registry $register * @return void * @throws \Utopia\Database\Exception * @throws Exception */ - public function action(Message $message, callable $getProjectDB, UsageDump $queueForUsageDump): void + public function action(Message $message, callable $getProjectDB, callable $getLogsDB, Registry $register): void { + $this->getLogsDB = $getLogsDB; + $this->register = $register; $payload = $message->getPayload() ?? []; if (empty($payload)) { throw new Exception('Missing payload'); @@ -88,14 +173,12 @@ public function action(Message $message, callable $getProjectDB, UsageDump $queu // If keys crossed threshold or X time passed since the last send and there are some keys in the array ($this->stats) if ( - $this->keys >= self::KEYS_THRESHOLD || + $this->keys >= $this->getBatchSize() || (time() - $this->lastTriggeredTime > $aggregationInterval && $this->keys > 0) ) { Console::warning('[' . DateTime::now() . '] Aggregated ' . $this->keys . ' keys'); - $queueForUsageDump - ->setStats($this->stats) - ->trigger(); + $this->commitToDB($getProjectDB); $this->stats = []; $this->keys = 0; @@ -109,7 +192,7 @@ public function action(Message $message, callable $getProjectDB, UsageDump $queu * @param Document $project * @param Document $document * @param array $metrics - * @param callable $getProjectDB + * @param callable(): Database $getProjectDB * @return void */ private function reduce(Document $project, Document $document, array &$metrics, callable $getProjectDB): void @@ -184,12 +267,8 @@ private function reduce(Document $project, Document $document, array &$metrics, $deployments = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace(['{resourceType}', '{resourceInternalId}'], ['functions', $document->getInternalId()], METRIC_FUNCTION_ID_DEPLOYMENTS))); $deploymentsStorage = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace(['{resourceType}', '{resourceInternalId}'], ['functions', $document->getInternalId()], METRIC_FUNCTION_ID_DEPLOYMENTS_STORAGE))); $builds = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace('{functionInternalId}', $document->getInternalId(), METRIC_FUNCTION_ID_BUILDS))); - $buildsSuccess = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace('{functionInternalId}', $document->getInternalId(), METRIC_FUNCTION_ID_BUILDS_SUCCESS))); - $buildsFailed = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace('{functionInternalId}', $document->getInternalId(), METRIC_FUNCTION_ID_BUILDS_FAILED))); $buildsStorage = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace('{functionInternalId}', $document->getInternalId(), METRIC_FUNCTION_ID_BUILDS_STORAGE))); $buildsCompute = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace('{functionInternalId}', $document->getInternalId(), METRIC_FUNCTION_ID_BUILDS_COMPUTE))); - $buildsComputeSuccess = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace('{functionInternalId}', $document->getInternalId(), METRIC_FUNCTION_ID_BUILDS_COMPUTE_SUCCESS))); - $buildsComputeFailed = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace('{functionInternalId}', $document->getInternalId(), METRIC_FUNCTION_ID_BUILDS_COMPUTE_FAILED))); $executions = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace('{functionInternalId}', $document->getInternalId(), METRIC_FUNCTION_ID_EXECUTIONS))); $executionsCompute = $dbForProject->getDocument('stats', md5(self::INFINITY_PERIOD . str_replace('{functionInternalId}', $document->getInternalId(), METRIC_FUNCTION_ID_EXECUTIONS_COMPUTE))); @@ -214,20 +293,6 @@ private function reduce(Document $project, Document $document, array &$metrics, ]; } - if (!empty($buildsSuccess['value'])) { - $metrics[] = [ - 'key' => METRIC_BUILDS_SUCCESS, - 'value' => ($buildsSuccess['value'] * -1), - ]; - } - - if (!empty($buildsFailed['value'])) { - $metrics[] = [ - 'key' => METRIC_BUILDS_FAILED, - 'value' => ($buildsFailed['value'] * -1), - ]; - } - if (!empty($buildsStorage['value'])) { $metrics[] = [ 'key' => METRIC_BUILDS_STORAGE, @@ -242,20 +307,6 @@ private function reduce(Document $project, Document $document, array &$metrics, ]; } - if (!empty($buildsComputeSuccess['value'])) { - $metrics[] = [ - 'key' => METRIC_BUILDS_COMPUTE_SUCCESS, - 'value' => ($buildsComputeSuccess['value'] * -1), - ]; - } - - if (!empty($buildsComputeFailed['value'])) { - $metrics[] = [ - 'key' => METRIC_BUILDS_COMPUTE_FAILED, - 'value' => ($buildsComputeFailed['value'] * -1), - ]; - } - if (!empty($executions['value'])) { $metrics[] = [ 'key' => METRIC_EXECUTIONS, @@ -273,8 +324,126 @@ private function reduce(Document $project, Document $document, array &$metrics, default: break; } - } catch (\Throwable $e) { - console::error("[reducer] " . " {DateTime::now()} " . " {$project->getInternalId()} " . " {$e->getMessage()}"); + } catch (Throwable $e) { + Console::error("[reducer] " . " {DateTime::now()} " . " {$project->getInternalId()} " . " {$e->getMessage()}"); + } + } + + /** + * Commit stats to DB + * @param callable(): Database $getProjectDB + * @return void + */ + public function commitToDb(callable $getProjectDB): void + { + foreach ($this->stats as $stats) { + $project = $stats['project'] ?? new Document([]); + $numberOfKeys = !empty($stats['keys']) ? count($stats['keys']) : 0; + $receivedAt = $stats['receivedAt'] ?? null; + if ($numberOfKeys === 0) { + continue; + } + + Console::log('['.DateTime::now().'] Id: '.$project->getId(). ' InternalId: '.$project->getInternalId(). ' Db: '.$project->getAttribute('database').' ReceivedAt: '.$receivedAt. ' Keys: '.$numberOfKeys); + + try { + foreach ($stats['keys'] ?? [] as $key => $value) { + if ($value == 0) { + continue; + } + + foreach ($this->periods as $period => $format) { + $time = null; + + if ($period !== 'inf') { + $time = !empty($receivedAt) ? (new \DateTime($receivedAt))->format($format) : date($format, time()); + } + $id = \md5("{$time}_{$period}_{$key}"); + + $document = new Document([ + '$id' => $id, + 'period' => $period, + 'time' => $time, + 'metric' => $key, + 'value' => $value, + 'region' => System::getEnv('_APP_REGION', 'default'), + ]); + + + $this->projects[$project->getInternalId()]['project'] = new Document([ + '$id' => $project->getId(), + '$internalId' => $project->getInternalId(), + 'database' => $project->getAttribute('database'), + ]); + $this->projects[$project->getInternalId()]['stats'][] = $document; + + $this->prepareForLogsDB($project, $document); + } + } + } catch (Exception $e) { + Console::error('[' . DateTime::now() . '] project [' . $project->getInternalId() . '] database [' . $project['database'] . '] ' . ' ' . $e->getMessage()); + } + } + + foreach ($this->projects as $internalId => $projectStats) { + if (empty($internalId)) { + continue; + } + try { + $dbForProject = $getProjectDB($projectStats['project']); + Console::log('Processing batch with ' . count($projectStats['stats']) . ' stats'); + $dbForProject->createOrUpdateDocumentsWithIncrease('stats', 'value', $projectStats['stats']); + Console::success('Batch successfully written to DB'); + + unset($this->projects[$internalId]); + } catch (Throwable $e) { + Console::error('Error processing stats: ' . $e->getMessage()); + } + } + + $this->writeToLogsDB(); + + } + + protected function prepareForLogsDB(Document $project, Document $stat): void + { + if (System::getEnv('_APP_STATS_USAGE_DUAL_WRITING', 'disabled') === 'disabled') { + return; + } + if (array_key_exists($stat->getAttribute('metric'), $this->skipBaseMetrics)) { + return; + } + foreach ($this->skipParentIdMetrics as $skipMetric) { + if (str_ends_with($stat->getAttribute('metric'), $skipMetric)) { + return; + } + } + $documentClone = clone $stat; + $documentClone->setAttribute('$tenant', (int) $project->getInternalId()); + $this->statDocuments[] = $documentClone; + } + + protected function writeToLogsDB(): void + { + if (System::getEnv('_APP_STATS_USAGE_DUAL_WRITING', 'disabled') === 'disabled') { + Console::log('Dual Writing is disabled. Skipping...'); + return; + } + + $dbForLogs = ($this->getLogsDB)() + ->setTenant(null) + ->setTenantPerDocument(true); + + try { + Console::log('Processing batch with ' . count($this->statDocuments) . ' stats'); + $dbForLogs->createOrUpdateDocumentsWithIncrease( + 'stats', + 'value', + $this->statDocuments + ); + Console::success('Usage logs pushed to Logs DB'); + } catch (Throwable $th) { + Console::error($th->getMessage()); } } } diff --git a/src/Appwrite/Platform/Workers/StatsUsageDump.php b/src/Appwrite/Platform/Workers/StatsUsageDump.php new file mode 100644 index 00000000000..77ec3f13e60 --- /dev/null +++ b/src/Appwrite/Platform/Workers/StatsUsageDump.php @@ -0,0 +1,206 @@ +<?php + +namespace Appwrite\Platform\Workers; + +use Appwrite\Extend\Exception; +use Utopia\CLI\Console; +use Utopia\Database\DateTime; +use Utopia\Database\Document; +use Utopia\Platform\Action; +use Utopia\Queue\Message; +use Utopia\Registry\Registry; +use Utopia\System\System; + +/** + * TODO remove later + */ +class StatsUsageDump extends Action +{ + public const METRIC_COLLECTION_LEVEL_STORAGE = 4; + public const METRIC_DATABASE_LEVEL_STORAGE = 3; + public const METRIC_PROJECT_LEVEL_STORAGE = 2; + protected array $stats = []; + + protected Registry $register; + + /** + * Metrics to skip writing to logsDB + * As these metrics are calculated separately + * by logs DB + * @var array + */ + protected array $skipBaseMetrics = [ + METRIC_DATABASES => true, + METRIC_BUCKETS => true, + METRIC_USERS => true, + METRIC_FUNCTIONS => true, + METRIC_TEAMS => true, + METRIC_MESSAGES => true, + METRIC_MAU => true, + METRIC_WEBHOOKS => true, + METRIC_PLATFORMS => true, + METRIC_PROVIDERS => true, + METRIC_TOPICS => true, + METRIC_KEYS => true, + METRIC_FILES => true, + METRIC_FILES_STORAGE => true, + METRIC_DEPLOYMENTS_STORAGE => true, + METRIC_BUILDS_STORAGE => true, + METRIC_DEPLOYMENTS => true, + METRIC_BUILDS => true, + METRIC_COLLECTIONS => true, + METRIC_DOCUMENTS => true, + METRIC_DATABASES_STORAGE => true, + ]; + + /** + * Skip metrics associated with parent IDs + * these need to be checked individually with `str_ends_with` + */ + protected array $skipParentIdMetrics = [ + '.files', + '.files.storage', + '.collections', + '.documents', + '.deployments', + '.deployments.storage', + '.builds', + '.builds.storage', + '.databases.storage' + ]; + + /** + * @var callable(Document): Database + */ + protected $getLogsDB; + + protected array $periods = [ + '1h' => 'Y-m-d H:00', + '1d' => 'Y-m-d 00:00', + 'inf' => '0000-00-00 00:00' + ]; + + public static function getName(): string + { + return 'stats-usage-dump'; + } + + /** + * @throws \Exception + */ + public function __construct() + { + $this + ->inject('message') + ->inject('getProjectDB') + ->inject('getLogsDB') + ->inject('register') + ->callback([$this, 'action']); + } + + /** + * @param Message $message + * @param callable $getProjectDB + * @param callable $getLogsDB + * @param Registry $register + * @return void + * @throws Exception + * @throws \Throwable + * @throws \Utopia\Database\Exception + */ + public function action(Message $message, callable $getProjectDB, callable $getLogsDB, Registry $register): void + { + $this->getLogsDB = $getLogsDB; + $this->register = $register; + $payload = $message->getPayload() ?? []; + if (empty($payload)) { + throw new Exception('Missing payload'); + } + + foreach ($payload['stats'] ?? [] as $stats) { + $project = new Document($stats['project'] ?? []); + + $numberOfKeys = !empty($stats['keys']) ? count($stats['keys']) : 0; + $receivedAt = $stats['receivedAt'] ?? null; + if ($numberOfKeys === 0) { + continue; + } + + Console::log('['.DateTime::now().'] Id: '.$project->getId(). ' InternalId: '.$project->getInternalId(). ' Db: '.$project->getAttribute('database').' ReceivedAt: '.$receivedAt. ' Keys: '.$numberOfKeys); + + try { + /** @var Database $dbForProject */ + $dbForProject = $getProjectDB($project); + foreach ($stats['keys'] ?? [] as $key => $value) { + if ($value == 0) { + continue; + } + + if (str_contains($key, METRIC_DATABASES_STORAGE)) { + continue; + } + + foreach ($this->periods as $period => $format) { + $time = null; + + if ($period !== 'inf') { + $time = !empty($receivedAt) ? (new \DateTime($receivedAt))->format($format) : date($format, time()); + } + $id = \md5("{$time}_{$period}_{$key}"); + + $document = new Document([ + '$id' => $id, + 'period' => $period, + 'time' => $time, + 'metric' => $key, + 'value' => $value, + 'region' => System::getEnv('_APP_REGION', 'default'), + ]); + + $documentClone = clone $document; + + $dbForProject->createOrUpdateDocumentsWithIncrease( + 'stats', + 'value', + [$document] + ); + + $this->writeToLogsDB($project, $documentClone); + } + } + } catch (\Exception $e) { + Console::error('[' . DateTime::now() . '] project [' . $project->getInternalId() . '] database [' . $project['database'] . '] ' . ' ' . $e->getMessage()); + } + } + } + + protected function writeToLogsDB(Document $project, Document $document): void + { + if (System::getEnv('_APP_STATS_USAGE_DUAL_WRITING', 'disabled') === 'disabled') { + Console::log('Dual Writing is disabled. Skipping...'); + return; + } + + if (array_key_exists($document->getAttribute('metric'), $this->skipBaseMetrics)) { + return; + } + foreach ($this->skipParentIdMetrics as $skipMetric) { + if (str_ends_with($document->getAttribute('metric'), $skipMetric)) { + return; + } + } + + $dbForLogs = ($this->getLogsDB)($project); + + try { + $dbForLogs->createOrUpdateDocumentsWithIncrease( + 'stats', + 'value', + [$document] + ); + Console::success('Usage logs pushed to Logs DB'); + } catch (\Throwable $th) { + Console::error($th->getMessage()); + } + } +} diff --git a/src/Appwrite/Platform/Workers/UsageDump.php b/src/Appwrite/Platform/Workers/UsageDump.php deleted file mode 100644 index b7097dbb048..00000000000 --- a/src/Appwrite/Platform/Workers/UsageDump.php +++ /dev/null @@ -1,110 +0,0 @@ -<?php - -namespace Appwrite\Platform\Workers; - -use Appwrite\Extend\Exception; -use Utopia\CLI\Console; -use Utopia\Database\DateTime; -use Utopia\Database\Document; -use Utopia\Database\Exception\Duplicate; -use Utopia\Platform\Action; -use Utopia\Queue\Message; -use Utopia\System\System; - -class UsageDump extends Action -{ - protected array $stats = []; - protected array $periods = [ - '1h' => 'Y-m-d H:00', - '1d' => 'Y-m-d 00:00', - 'inf' => '0000-00-00 00:00' - ]; - - public static function getName(): string - { - return 'usage-dump'; - } - - /** - * @throws \Exception - */ - public function __construct() - { - $this - ->inject('message') - ->inject('getProjectDB') - ->callback(function (Message $message, callable $getProjectDB) { - $this->action($message, $getProjectDB); - }); - } - - /** - * @param Message $message - * @param callable $getProjectDB - * @return void - * @throws Exception - * @throws \Utopia\Database\Exception - */ - public function action(Message $message, callable $getProjectDB): void - { - $payload = $message->getPayload() ?? []; - if (empty($payload)) { - throw new Exception('Missing payload'); - } - - // TODO: rename both usage workers @shimonewman - foreach ($payload['stats'] ?? [] as $stats) { - $project = new Document($stats['project'] ?? []); - $numberOfKeys = !empty($stats['keys']) ? count($stats['keys']) : 0; - $receivedAt = $stats['receivedAt'] ?? 'NONE'; - if ($numberOfKeys === 0) { - continue; - } - - console::log('[' . DateTime::now() . '] ProjectId [' . $project->getInternalId() . '] ReceivedAt [' . $receivedAt . '] ' . $numberOfKeys . ' keys'); - - try { - $dbForProject = $getProjectDB($project); - foreach ($stats['keys'] ?? [] as $key => $value) { - if ($value == 0) { - continue; - } - - foreach ($this->periods as $period => $format) { - $time = 'inf' === $period ? null : date($format, time()); - $id = \md5("{$time}_{$period}_{$key}"); - - try { - $dbForProject->createDocument('stats', new Document([ - '$id' => $id, - 'period' => $period, - 'time' => $time, - 'metric' => $key, - 'value' => $value, - 'region' => System::getEnv('_APP_REGION', 'default'), - ])); - } catch (Duplicate $th) { - if ($value < 0) { - $dbForProject->decreaseDocumentAttribute( - 'stats', - $id, - 'value', - abs($value) - ); - } else { - $dbForProject->increaseDocumentAttribute( - 'stats', - $id, - 'value', - $value - ); - } - } - } - } - } catch (\Exception $e) { - console::error('[' . DateTime::now() . '] project [' . $project->getInternalId() . '] database [' . $project['database'] . '] ' . ' ' . $e->getMessage()); - } - } - } -} diff --git a/src/Appwrite/Platform/Workers/Webhooks.php b/src/Appwrite/Platform/Workers/Webhooks.php index 88ca7871f29..44e8bd31184 100644 --- a/src/Appwrite/Platform/Workers/Webhooks.php +++ b/src/Appwrite/Platform/Workers/Webhooks.php @@ -3,6 +3,7 @@ namespace Appwrite\Platform\Workers; use Appwrite\Event\Mail; +use Appwrite\Event\StatsUsage; use Appwrite\Template\Template; use Exception; use Utopia\Database\Database; @@ -31,39 +32,43 @@ public function __construct() $this ->desc('Webhooks worker') ->inject('message') - ->inject('dbForConsole') + ->inject('project') + ->inject('dbForPlatform') ->inject('queueForMails') + ->inject('queueForStatsUsage') ->inject('log') - ->callback(fn (Message $message, Database $dbForConsole, Mail $queueForMails, Log $log) => $this->action($message, $dbForConsole, $queueForMails, $log)); + ->callback(fn (Message $message, Document $project, Database $dbForPlatform, Mail $queueForMails, StatsUsage $queueForStatsUsage, Log $log) => $this->action($message, $project, $dbForPlatform, $queueForMails, $queueForStatsUsage, $log)); } /** * @param Message $message - * @param Database $dbForConsole + * @param Document $project + * @param Database $dbForPlatform * @param Mail $queueForMails * @param Log $log * @return void * @throws Exception */ - public function action(Message $message, Database $dbForConsole, Mail $queueForMails, Log $log): void + public function action(Message $message, Document $project, Database $dbForPlatform, Mail $queueForMails, StatsUsage $queueForStatsUsage, Log $log): void { $this->errors = []; $payload = $message->getPayload() ?? []; + + if (empty($payload)) { throw new Exception('Missing payload'); } $events = $payload['events']; $webhookPayload = json_encode($payload['payload']); - $project = new Document($payload['project']); $user = new Document($payload['user'] ?? []); $log->addTag('projectId', $project->getId()); foreach ($project->getAttribute('webhooks', []) as $webhook) { if (array_intersect($webhook->getAttribute('events', []), $events)) { - $this->execute($events, $webhookPayload, $webhook, $user, $project, $dbForConsole, $queueForMails); + $this->execute($events, $webhookPayload, $webhook, $user, $project, $dbForPlatform, $queueForMails, $queueForStatsUsage); } } @@ -78,11 +83,11 @@ public function action(Message $message, Database $dbForConsole, Mail $queueForM * @param Document $webhook * @param Document $user * @param Document $project - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param Mail $queueForMails * @return void */ - private function execute(array $events, string $payload, Document $webhook, Document $user, Document $project, Database $dbForConsole, Mail $queueForMails): void + private function execute(array $events, string $payload, Document $webhook, Document $user, Document $project, Database $dbForPlatform, Mail $queueForMails, StatsUsage $queueForStatsUsage): void { if ($webhook->getAttribute('enabled') !== true) { return; @@ -138,8 +143,8 @@ private function execute(array $events, string $payload, Document $webhook, Docu \curl_close($ch); if (!empty($curlError) || $statusCode >= 400) { - $dbForConsole->increaseDocumentAttribute('webhooks', $webhook->getId(), 'attempts', 1); - $webhook = $dbForConsole->getDocument('webhooks', $webhook->getId()); + $dbForPlatform->increaseDocumentAttribute('webhooks', $webhook->getId(), 'attempts', 1); + $webhook = $dbForPlatform->getDocument('webhooks', $webhook->getId()); $attempts = $webhook->getAttribute('attempts'); $logs = ''; @@ -158,18 +163,32 @@ private function execute(array $events, string $payload, Document $webhook, Docu if ($attempts >= \intval(System::getEnv('_APP_WEBHOOK_MAX_FAILED_ATTEMPTS', '10'))) { $webhook->setAttribute('enabled', false); - $this->sendEmailAlert($attempts, $statusCode, $webhook, $project, $dbForConsole, $queueForMails); + $this->sendEmailAlert($attempts, $statusCode, $webhook, $project, $dbForPlatform, $queueForMails); } - $dbForConsole->updateDocument('webhooks', $webhook->getId(), $webhook); - $dbForConsole->purgeCachedDocument('projects', $project->getId()); + $dbForPlatform->updateDocument('webhooks', $webhook->getId(), $webhook); + $dbForPlatform->purgeCachedDocument('projects', $project->getId()); $this->errors[] = $logs; + $queueForStatsUsage + ->addMetric(METRIC_WEBHOOKS_FAILED, 1) + ->addMetric(str_replace('{webhookInternalId}', $webhook->getInternalId(), METRIC_WEBHOOK_ID_FAILED), 1) + ; + + } else { $webhook->setAttribute('attempts', 0); // Reset attempts on success - $dbForConsole->updateDocument('webhooks', $webhook->getId(), $webhook); - $dbForConsole->purgeCachedDocument('projects', $project->getId()); + $dbForPlatform->updateDocument('webhooks', $webhook->getId(), $webhook); + $dbForPlatform->purgeCachedDocument('projects', $project->getId()); + $queueForStatsUsage + ->addMetric(METRIC_WEBHOOKS_SENT, 1) + ->addMetric(str_replace('{webhookInternalId}', $webhook->getInternalId(), METRIC_WEBHOOK_ID_SENT), 1) + ; } + + $queueForStatsUsage + ->setProject($project) + ->trigger(); } /** @@ -177,20 +196,20 @@ private function execute(array $events, string $payload, Document $webhook, Docu * @param mixed $statusCode * @param Document $webhook * @param Document $project - * @param Database $dbForConsole + * @param Database $dbForPlatform * @param Mail $queueForMails * @return void */ - public function sendEmailAlert(int $attempts, mixed $statusCode, Document $webhook, Document $project, Database $dbForConsole, Mail $queueForMails): void + public function sendEmailAlert(int $attempts, mixed $statusCode, Document $webhook, Document $project, Database $dbForPlatform, Mail $queueForMails): void { - $memberships = $dbForConsole->find('memberships', [ + $memberships = $dbForPlatform->find('memberships', [ Query::equal('teamInternalId', [$project->getAttribute('teamInternalId')]), Query::limit(APP_LIMIT_SUBQUERY) ]); $userIds = array_column(\array_map(fn ($membership) => $membership->getArrayCopy(), $memberships), 'userId'); - $users = $dbForConsole->find('users', [ + $users = $dbForPlatform->find('users', [ Query::equal('$id', $userIds), ]); diff --git a/src/Appwrite/PubSub/Adapter.php b/src/Appwrite/PubSub/Adapter.php new file mode 100644 index 00000000000..e5ddbe5e62e --- /dev/null +++ b/src/Appwrite/PubSub/Adapter.php @@ -0,0 +1,13 @@ +<?php + +namespace Appwrite\PubSub; + +interface Adapter +{ + public function ping($message = null): bool; + + public function subscribe($channels, $callback); + + public function publish($channel, $message); + +} diff --git a/src/Appwrite/PubSub/Adapter/Pool.php b/src/Appwrite/PubSub/Adapter/Pool.php new file mode 100644 index 00000000000..a498118dae0 --- /dev/null +++ b/src/Appwrite/PubSub/Adapter/Pool.php @@ -0,0 +1,46 @@ +<?php + +namespace Appwrite\PubSub\Adapter; + +use Appwrite\PubSub\Adapter; +use Utopia\Database\Exception as DatabaseException; +use Utopia\Pools\Pool as UtopiaPool; + +class Pool implements Adapter +{ + public function __construct(private UtopiaPool $pool) + { + } + + public function ping($message = null): bool + { + return $this->delegate(__FUNCTION__, \func_get_args()); + } + + public function subscribe($channels, $callback): void + { + $this->delegate(__FUNCTION__, \func_get_args()); + } + + public function publish($channel, $message): void + { + $this->delegate(__FUNCTION__, \func_get_args()); + } + + /** + * Forward method calls to the internal adapter instance via the pool. + * + * Required because __call() can't be used to implement abstract methods. + * + * @param string $method + * @param array<mixed> $args + * @return mixed + * @throws DatabaseException + */ + public function delegate(string $method, array $args): mixed + { + return $this->pool->use(function (Adapter $adapter) use ($method, $args) { + return $adapter->{$method}(...$args); + }); + } +} diff --git a/src/Appwrite/PubSub/Adapter/Redis.php b/src/Appwrite/PubSub/Adapter/Redis.php new file mode 100644 index 00000000000..187eb9cd950 --- /dev/null +++ b/src/Appwrite/PubSub/Adapter/Redis.php @@ -0,0 +1,31 @@ +<?php + +namespace Appwrite\PubSub\Adapter; + +use Appwrite\PubSub\Adapter; + +class Redis implements Adapter +{ + private \Redis $client; + + public function __construct(\Redis $client) + { + $this->client = $client; + + } + + public function ping($message = null): bool + { + return $this->client->ping($message); + } + + public function subscribe($channels, $callback) + { + return $this->client->subscribe($channels, $callback); + } + + public function publish($channel, $message) + { + return $this->client->publish($channel, $message); + } +} diff --git a/src/Appwrite/SDK/AuthType.php b/src/Appwrite/SDK/AuthType.php new file mode 100644 index 00000000000..307b3cf35e2 --- /dev/null +++ b/src/Appwrite/SDK/AuthType.php @@ -0,0 +1,11 @@ +<?php + +namespace Appwrite\SDK; + +enum AuthType: string +{ + case JWT = APP_AUTH_TYPE_JWT; + case KEY = APP_AUTH_TYPE_KEY; + case SESSION = APP_AUTH_TYPE_SESSION; + case ADMIN = APP_AUTH_TYPE_ADMIN; +} diff --git a/src/Appwrite/SDK/ContentType.php b/src/Appwrite/SDK/ContentType.php new file mode 100644 index 00000000000..174c889815b --- /dev/null +++ b/src/Appwrite/SDK/ContentType.php @@ -0,0 +1,15 @@ +<?php + +namespace Appwrite\SDK; + +enum ContentType: string +{ + case NONE = ''; + case JSON = 'application/json'; + case IMAGE = 'image/*'; + case IMAGE_PNG = 'image/png'; + case MULTIPART = 'multipart/form-data'; + case HTML = 'text/html'; + case TEXT = 'text/plain'; + case ANY = '*/*'; +} diff --git a/src/Appwrite/SDK/Method.php b/src/Appwrite/SDK/Method.php new file mode 100644 index 00000000000..c1ca7c148c6 --- /dev/null +++ b/src/Appwrite/SDK/Method.php @@ -0,0 +1,293 @@ +<?php + +namespace Appwrite\SDK; + +use Appwrite\SDK\Response as SDKResponse; +use Appwrite\Utopia\Response; +use Swoole\Http\Response as HttpResponse; + +class Method +{ + public static array $processed = []; + + public static array $errors = []; + + /** + * Initialise a new SDK method + * + * @param string $namespace + * @param ?string $group + * @param string $name + * @param string $description + * @param array<AuthType> $auth + * @param array<SDKResponse> $responses + * @param ContentType $contentType + * @param MethodType|null $type + * @param bool $deprecated + * @param array|bool $hide + * @param bool $packaging + * @param ContentType $requestType + * @param array<Parameter> $parameters + * @param array $additionalParameters + */ + public function __construct( + protected string $namespace, + protected ?string $group, + protected string $name, + protected string $description, + protected array $auth, + protected array $responses, + protected ContentType $contentType = ContentType::JSON, + protected ?MethodType $type = null, + protected bool $deprecated = false, + protected array|bool $hide = false, + protected bool $packaging = false, + protected ContentType $requestType = ContentType::JSON, + protected array $parameters = [], + protected array $additionalParameters = [] + ) { + $this->validateMethod($name, $namespace); + $this->validateAuthTypes($auth); + $this->validateDesc($description); + + foreach ($responses as $response) { + $this->validateResponseModel($response->getModel()); + $this->validateNoContent($response); + } + } + + protected function getRouteName(): string + { + return $this->namespace . '.' . $this->name; + } + + protected function validateMethod(string $name, string $namespace): void + { + if (\in_array($this->getRouteName(), self::$processed)) { + self::$errors[] = "Error with {$this->getRouteName()} method: Method already exists in namespace {$namespace}"; + } + + self::$processed[] = $this->getRouteName(); + } + + protected function validateAuthTypes(array $authTypes): void + { + foreach ($authTypes as $authType) { + if (!($authType instanceof AuthType)) { + self::$errors[] = "Error with {$this->getRouteName()} method: Invalid auth type"; + } + } + } + + protected function validateDesc(string $desc): void + { + if (empty($desc)) { + self::$errors[] = "Error with {$this->getRouteName()} method: Description label is empty"; + return; + } + + $descPath = $this->getDescriptionFilePath(); + + if (empty($descPath)) { + self::$errors[] = "Error with {$this->getRouteName()} method: Description file not found at {$desc}"; + return; + } + } + + protected function validateResponseModel(string|array $responseModel): void + { + $response = new Response(new HttpResponse()); + + if (!\is_array($responseModel)) { + $responseModel = [$responseModel]; + } + + foreach ($responseModel as $model) { + try { + $response->getModel($model); + } catch (\Exception $e) { + self::$errors[] = "Error with {$this->getRouteName()} method: Invalid response model, make sure the model has been defined in Response.php"; + } + } + } + + protected function validateNoContent(SDKResponse $response): void + { + if ($response->getCode() === 204) { + if ($response->getModel() !== Response::MODEL_NONE) { + self::$errors[] = "Error with {$this->getRouteName()} method: Response code 204 must have response model 'none'"; + } + } + } + + public function getNamespace(): string + { + return $this->namespace; + } + + public function getGroup(): ?string + { + return $this->group; + } + + public function getMethodName(): string + { + return $this->name; + } + + public function getDescription(): string + { + return $this->description; + } + + /** + * This method returns the absolute path to the description file returning null if the file does not exist. + * + * @return string|null + */ + public function getDescriptionFilePath(): ?string + { + return \realpath(__DIR__ . '/../../../' . $this->getDescription()) ?: null; + } + + public function getAuth(): array + { + return $this->auth; + } + + /** + * @return array<SDKResponse> + */ + public function getResponses(): array + { + return $this->responses; + } + + public function getContentType(): ContentType + { + return $this->contentType; + } + + public function getType(): ?MethodType + { + return $this->type; + } + + public function isDeprecated(): bool + { + return $this->deprecated; + } + + public function isHidden(): bool|array + { + return $this->hide ?? false; + } + + public function isPackaging(): bool + { + return $this->packaging; + } + + public function getRequestType(): ContentType + { + return $this->requestType; + } + + /** + * @return array<Parameter> + */ + public function getParameters(): array + { + return $this->parameters; + } + + public function getAdditionalParameters(): array + { + return $this->additionalParameters; + } + + public function setNamespace(string $namespace): self + { + $this->namespace = $namespace; + return $this; + } + + public function setMethodName(string $name): self + { + $this->name = $name; + return $this; + } + + public function setDescription(string $description): self + { + $this->description = $description; + return $this; + } + + public function setAuth(array $auth): self + { + $this->validateAuthTypes($auth); + $this->auth = $auth; + return $this; + } + + /** + * @param array<SDKResponse> $responses + */ + public function setResponses(array $responses): self + { + foreach ($responses as $response) { + $this->validateResponseModel($response->getModel()); + $this->validateNoContent($response); + } + $this->responses = $responses; + return $this; + } + + public function setContentType(ContentType $contentType): self + { + $this->contentType = $contentType; + return $this; + } + + public function setType(?MethodType $type): self + { + $this->type = $type; + return $this; + } + + public function setDeprecated(bool $deprecated): self + { + $this->deprecated = $deprecated; + return $this; + } + + public function setHide(bool|array $hide): self + { + $this->hide = $hide; + return $this; + } + + public function setPackaging(bool $packaging): self + { + $this->packaging = $packaging; + return $this; + } + + public function setRequestType(ContentType $requestType): self + { + $this->requestType = $requestType; + return $this; + } + + public function setParameters(array $parameters): self + { + $this->parameters = $parameters; + return $this; + } + + public static function getErrors(): array + { + return self::$errors; + } +} diff --git a/src/Appwrite/SDK/MethodType.php b/src/Appwrite/SDK/MethodType.php new file mode 100644 index 00000000000..2b1f7867798 --- /dev/null +++ b/src/Appwrite/SDK/MethodType.php @@ -0,0 +1,11 @@ +<?php + +namespace Appwrite\SDK; + +enum MethodType: string +{ + case WEBAUTH = 'webAuth'; + case LOCATION = 'location'; + case GRAPHQL = 'graphql'; + case UPLOAD = 'upload'; +} diff --git a/src/Appwrite/SDK/Parameter.php b/src/Appwrite/SDK/Parameter.php new file mode 100644 index 00000000000..ca675825895 --- /dev/null +++ b/src/Appwrite/SDK/Parameter.php @@ -0,0 +1,79 @@ +<?php + +namespace Appwrite\SDK; + +use Utopia\Validator; + +class Parameter +{ + /** + * @param string $name + * @param string $description + * @param mixed|null $default + * @param Validator|callable|null $validator + * @param bool $optional + */ + public function __construct( + protected string $name, + protected string $description = '', + protected mixed $default = null, + protected mixed $validator = null, + protected bool $optional = false, + ) { + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): static + { + $this->description = $description; + return $this; + } + + public function getDefault(): mixed + { + return $this->default; + } + + public function setDefault(mixed $default): static + { + $this->default = $default; + return $this; + } + + public function getValidator(): mixed + { + return $this->validator; + } + + public function setValidator(mixed $validator): static + { + $this->validator = $validator; + return $this; + } + + public function getOptional(): bool + { + return $this->optional; + } + + public function setOptional(bool $optional): static + { + $this->optional = $optional; + return $this; + } +} diff --git a/src/Appwrite/SDK/Response.php b/src/Appwrite/SDK/Response.php new file mode 100644 index 00000000000..e87813024b0 --- /dev/null +++ b/src/Appwrite/SDK/Response.php @@ -0,0 +1,27 @@ +<?php + +namespace Appwrite\SDK; + +class Response +{ + /** + * @param int $code + * @param string|array $model + * @param string $description + */ + public function __construct( + private int $code, + private string|array $model + ) { + } + + public function getCode(): int + { + return $this->code; + } + + public function getModel(): string|array + { + return $this->model; + } +} diff --git a/src/Appwrite/Specification/Format.php b/src/Appwrite/SDK/Specification/Format.php similarity index 93% rename from src/Appwrite/Specification/Format.php rename to src/Appwrite/SDK/Specification/Format.php index 30ce6470e10..c9c0acc5146 100644 --- a/src/Appwrite/Specification/Format.php +++ b/src/Appwrite/SDK/Specification/Format.php @@ -1,6 +1,6 @@ <?php -namespace Appwrite\Specification; +namespace Appwrite\SDK\Specification; use Appwrite\Utopia\Response\Model; use Utopia\App; @@ -12,12 +12,12 @@ abstract class Format protected App $app; /** - * @var Route[] + * @var array<Route> */ protected array $routes; /** - * @var Model[] + * @var array<Model> */ protected array $models; @@ -215,6 +215,8 @@ protected function getEnumName(string $service, string $method, string $param): switch ($param) { case 'status': return 'MessageStatus'; + case 'priority': + return 'MessagePriority'; } break; case 'createSmtpProvider': @@ -413,4 +415,24 @@ public function getEnumKeys(string $service, string $method, string $param): arr } return $values; } + + protected function getNestedModels(Model $model, array &$usedModels): void + { + foreach ($model->getRules() as $rule) { + if (!in_array($model->getType(), $usedModels)) { + continue; + } + $types = (array)$rule['type']; + foreach ($types as $ruleType) { + if (!in_array($ruleType, ['string', 'integer', 'boolean', 'json', 'float'])) { + $usedModels[] = $ruleType; + foreach ($this->models as $m) { + if ($m->getType() === $ruleType) { + $this->getNestedModels($m, $usedModels); + } + } + } + } + } + } } diff --git a/src/Appwrite/Specification/Format/OpenAPI3.php b/src/Appwrite/SDK/Specification/Format/OpenAPI3.php similarity index 77% rename from src/Appwrite/Specification/Format/OpenAPI3.php rename to src/Appwrite/SDK/Specification/Format/OpenAPI3.php index 3074d59b7cf..36c1e74c859 100644 --- a/src/Appwrite/Specification/Format/OpenAPI3.php +++ b/src/Appwrite/SDK/Specification/Format/OpenAPI3.php @@ -1,8 +1,12 @@ <?php -namespace Appwrite\Specification\Format; +namespace Appwrite\SDK\Specification\Format; -use Appwrite\Specification\Format; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\MethodType; +use Appwrite\SDK\Response; +use Appwrite\SDK\Specification\Format; use Appwrite\Template\Template; use Appwrite\Utopia\Response\Model; use Utopia\Database\Helpers\Permission; @@ -20,41 +24,6 @@ public function getName(): string return 'Open API 3'; } - protected function getNestedModels(Model $model, array &$usedModels): void - { - foreach ($model->getRules() as $rule) { - if (!in_array($model->getType(), $usedModels)) { - continue; - } - - if (\is_array($rule['type'])) { - foreach ($rule['type'] as $ruleType) { - if (!in_array($ruleType, ['string', 'integer', 'boolean', 'json', 'float', 'double'])) { - $usedModels[] = $ruleType; - - foreach ($this->models as $m) { - if ($m->getType() === $ruleType) { - $this->getNestedModels($m, $usedModels); - continue; - } - } - } - } - } else { - if (!in_array($rule['type'], ['string', 'integer', 'boolean', 'json', 'float', 'double'])) { - $usedModels[] = $rule['type']; - - foreach ($this->models as $m) { - if ($m->getType() === $rule['type']) { - $this->getNestedModels($m, $usedModels); - continue; - } - } - } - } - } - } - public function parse(): array { /** @@ -82,6 +51,9 @@ public function parse(): array [ 'url' => $this->getParam('endpoint', ''), ], + [ + 'url' => $this->getParam('endpoint.docs', ''), + ], ], 'paths' => [], 'tags' => $this->services, @@ -120,28 +92,45 @@ public function parse(): array foreach ($this->routes as $route) { $url = \str_replace('/v1', '', $route->getPath()); $scope = $route->getLabel('scope', ''); - $consumes = [$route->getLabel('sdk.request.type', 'application/json')]; + $sdk = $route->getLabel('sdk', false); + + if (empty($sdk)) { + continue; + } + + $additionalMethods = null; + if (\is_array($sdk)) { + $additionalMethods = $sdk; + $sdk = $sdk[0]; + } + + /** + * @var Method $sdk + */ + $consumes = [$sdk->getRequestType()->value]; - $method = $route->getLabel('sdk.method', \uniqid()); - $desc = (!empty($route->getLabel('sdk.description', ''))) ? \realpath(__DIR__ . '/../../../../' . $route->getLabel('sdk.description', '')) : null; - $produces = $route->getLabel('sdk.response.type', null); - $model = $route->getLabel('sdk.response.model', 'none'); - $routeSecurity = $route->getLabel('sdk.auth', []); + $method = $sdk->getMethodName() ?? \uniqid(); + + if (!empty($method) && \is_array($method)) { + $method = \array_keys($method)[0]; + } + + $desc = $sdk->getDescriptionFilePath(); + $produces = ($sdk->getContentType())->value; + $routeSecurity = $sdk->getAuth() ?? []; $sdkPlatforms = []; foreach ($routeSecurity as $value) { switch ($value) { - case APP_AUTH_TYPE_SESSION: + case AuthType::SESSION: $sdkPlatforms[] = APP_PLATFORM_CLIENT; break; - case APP_AUTH_TYPE_KEY: - $sdkPlatforms[] = APP_PLATFORM_SERVER; - break; - case APP_AUTH_TYPE_JWT: + case AuthType::JWT: + case AuthType::KEY: $sdkPlatforms[] = APP_PLATFORM_SERVER; break; - case APP_AUTH_TYPE_ADMIN: + case AuthType::ADMIN: $sdkPlatforms[] = APP_PLATFORM_CONSOLE; break; } @@ -152,102 +141,149 @@ public function parse(): array $sdkPlatforms[] = APP_PLATFORM_CLIENT; } + $namespace = $sdk->getNamespace() ?? 'default'; + $temp = [ 'summary' => $route->getDesc(), - 'operationId' => $route->getLabel('sdk.namespace', 'default') . ucfirst($method), - 'tags' => [$route->getLabel('sdk.namespace', 'default')], + 'operationId' => $namespace . ucfirst($method), + 'tags' => [$namespace], 'description' => ($desc) ? \file_get_contents($desc) : '', 'responses' => [], 'x-appwrite' => [ // Appwrite related metadata 'method' => $method, + 'group' => $sdk->getGroup(), 'weight' => $route->getOrder(), 'cookies' => $route->getLabel('sdk.cookies', false), - 'type' => $route->getLabel('sdk.methodType', ''), - 'deprecated' => $route->getLabel('sdk.deprecated', false), - 'demo' => Template::fromCamelCaseToDash($route->getLabel('sdk.namespace', 'default')) . '/' . Template::fromCamelCaseToDash($method) . '.md', - 'edit' => 'https://github.com/appwrite/appwrite/edit/master' . $route->getLabel('sdk.description', ''), + 'type' => $sdk->getType()->value ?? '', + 'deprecated' => $sdk->isDeprecated(), + 'demo' => Template::fromCamelCaseToDash($namespace) . '/' . Template::fromCamelCaseToDash($method) . '.md', + 'edit' => 'https://github.com/appwrite/appwrite/edit/master' . $sdk->getDescription() ?? '', 'rate-limit' => $route->getLabel('abuse-limit', 0), 'rate-time' => $route->getLabel('abuse-time', 3600), 'rate-key' => $route->getLabel('abuse-key', 'url:{url},ip:{ip}'), 'scope' => $route->getLabel('scope', ''), 'platforms' => $sdkPlatforms, - 'packaging' => $route->getLabel('sdk.packaging', false), - 'offline-model' => $route->getLabel('sdk.offline.model', ''), - 'offline-key' => $route->getLabel('sdk.offline.key', ''), - 'offline-response-key' => $route->getLabel('sdk.offline.response.key', '$id'), + 'packaging' => $sdk->isPackaging() ], ]; - foreach ($this->models as $value) { - if (\is_array($model)) { - $model = \array_map(fn ($m) => $m === $value->getType() ? $value : $m, $model); - } else { - if ($value->getType() === $model) { - $model = $value; - break; + + if (!empty($additionalMethods)) { + $temp['x-appwrite']['methods'] = []; + foreach ($additionalMethods as $method) { + /** @var Method $method */ + $desc = $method->getDescriptionFilePath(); + $additionalMethod = [ + 'name' => $method->getMethodName(), + 'parameters' => [], + 'required' => [], + 'responses' => [], + 'description' => ($desc) ? \file_get_contents($desc) : '', + ]; + + foreach ($method->getParameters() as $parameter) { + $additionalMethod['parameters'][] = $parameter->getName(); + + if (!$parameter->getOptional()) { + $additionalMethod['required'][] = $parameter->getName(); + } + } + + foreach ($method->getResponses() as $response) { + if (\is_array($response->getModel())) { + $additionalMethod['responses'][] = [ + 'code' => $response->getCode(), + 'model' => \array_map(fn ($m) => '#/components/schemas/' . $m, $response->getModel()) + ]; + } else { + $additionalMethod['responses'][] = [ + 'code' => $response->getCode(), + 'model' => '#/components/schemas/' . $response->getModel() + ]; + } } + + $temp['x-appwrite']['methods'][] = $additionalMethod; } } - if (!(\is_array($model)) && $model->isNone()) { - $temp['responses'][(string)$route->getLabel('sdk.response.code', '500')] = [ - 'description' => in_array($produces, [ - 'image/*', - 'image/jpeg', - 'image/gif', - 'image/png', - 'image/webp', - 'image/svg-x', - 'image/x-icon', - 'image/bmp', - ]) ? 'Image' : 'File', - ]; - } else { - if (\is_array($model)) { - $modelDescription = \join(', or ', \array_map(fn ($m) => $m->getName(), $model)); - - // model has multiple possible responses, we will use oneOf - foreach ($model as $m) { - $usedModels[] = $m->getType(); + // Handle response models + foreach ($sdk->getResponses() as $response) { + /** @var Response $response */ + $model = $response->getModel(); + + foreach ($this->models as $value) { + if (\is_array($model)) { + $model = \array_map(fn ($m) => $m === $value->getType() ? $value : $m, $model); + } else { + if ($value->getType() === $model) { + $model = $value; + break; + } } + } - $temp['responses'][(string)$route->getLabel('sdk.response.code', '500')] = [ - 'description' => $modelDescription, - 'content' => [ - $produces => [ - 'schema' => [ - 'oneOf' => \array_map(fn ($m) => ['$ref' => '#/components/schemas/' . $m->getType()], $model) - ], - ], - ], + if (!(\is_array($model)) && $model->isNone()) { + $temp['responses'][(string)$response->getCode() ?? '500'] = [ + 'description' => in_array($produces, [ + 'image/*', + 'image/jpeg', + 'image/gif', + 'image/png', + 'image/webp', + 'image/svg-x', + 'image/x-icon', + 'image/bmp', + ]) ? 'Image' : 'File', ]; } else { - // Response definition using one type - $usedModels[] = $model->getType(); - $temp['responses'][(string)$route->getLabel('sdk.response.code', '500')] = [ - 'description' => $model->getName(), - 'content' => [ - $produces => [ - 'schema' => [ - '$ref' => '#/components/schemas/' . $model->getType(), + if (\is_array($model)) { + $modelDescription = \join(', or ', \array_map(fn ($m) => $m->getName(), $model)); + + // model has multiple possible responses, we will use oneOf + foreach ($model as $m) { + $usedModels[] = $m->getType(); + } + + $temp['responses'][(string)$response->getCode() ?? '500'] = [ + 'description' => $modelDescription, + 'content' => [ + $produces => [ + 'schema' => [ + 'oneOf' => \array_map(fn ($m) => ['$ref' => '#/components/schemas/' . $m->getType()], $model) + ], ], ], - ], - ]; + ]; + } else { + // Response definition using one type + $usedModels[] = $model->getType(); + $temp['responses'][(string)$response->getCode() ?? '500'] = [ + 'description' => $model->getName(), + 'content' => [ + $produces => [ + 'schema' => [ + '$ref' => '#/components/schemas/' . $model->getType(), + ], + ], + ], + ]; + } } - } - if ($route->getLabel('sdk.response.code', 500) === 204) { - $temp['responses'][(string)$route->getLabel('sdk.response.code', '500')]['description'] = 'No content'; - unset($temp['responses'][(string)$route->getLabel('sdk.response.code', '500')]['schema']); + if (($response->getCode() ?? 500) === 204) { + $temp['responses'][(string)$response->getCode() ?? '500']['description'] = 'No content'; + unset($temp['responses'][(string)$response->getCode() ?? '500']['schema']); + } } - if ((!empty($scope))) { // && 'public' != $scope + if ((!empty($scope))) { $securities = ['Project' => []]; - foreach ($route->getLabel('sdk.auth', []) as $security) { - if (array_key_exists($security, $this->keys)) { - $securities[$security] = []; + foreach ($sdk->getAuth() as $security) { + /** @var AuthType $security */ + if (array_key_exists($security->value, $this->keys)) { + $securities[$security->value] = []; } } @@ -298,7 +334,7 @@ public function parse(): array $node['schema']['x-example'] = false; break; case 'Appwrite\Utopia\Database\Validator\CustomId': - if ($route->getLabel('sdk.methodType', '') === 'upload') { + if ($sdk->getType() === MethodType::UPLOAD) { $node['schema']['x-upload-id'] = true; } $node['schema']['type'] = $validator->getType(); @@ -422,7 +458,7 @@ public function parse(): array $allowed = true; foreach ($this->enumBlacklist as $blacklist) { if ( - $blacklist['namespace'] == $route->getLabel('sdk.namespace', '') + $blacklist['namespace'] == $sdk->getNamespace() && $blacklist['method'] == $method && $blacklist['parameter'] == $name ) { @@ -433,8 +469,8 @@ public function parse(): array if ($allowed) { $node['schema']['enum'] = $validator->getList(); - $node['schema']['x-enum-name'] = $this->getEnumName($route->getLabel('sdk.namespace', ''), $method, $name); - $node['schema']['x-enum-keys'] = $this->getEnumKeys($route->getLabel('sdk.namespace', ''), $method, $name); + $node['schema']['x-enum-name'] = $this->getEnumName($sdk->getNamespace() ?? '', $method, $name); + $node['schema']['x-enum-keys'] = $this->getEnumKeys($sdk->getNamespace() ?? '', $method, $name); } if ($validator->getType() === 'integer') { $node['format'] = 'int32'; @@ -549,6 +585,7 @@ public function parse(): array switch ($rule['type']) { case 'string': case 'datetime': + case 'payload': $type = 'string'; break; diff --git a/src/Appwrite/Specification/Format/Swagger2.php b/src/Appwrite/SDK/Specification/Format/Swagger2.php similarity index 72% rename from src/Appwrite/Specification/Format/Swagger2.php rename to src/Appwrite/SDK/Specification/Format/Swagger2.php index 2eab7807b31..e5b7906b3fc 100644 --- a/src/Appwrite/Specification/Format/Swagger2.php +++ b/src/Appwrite/SDK/Specification/Format/Swagger2.php @@ -1,16 +1,22 @@ <?php -namespace Appwrite\Specification\Format; +namespace Appwrite\SDK\Specification\Format; -use Appwrite\Specification\Format; +use Appwrite\SDK\AuthType; +use Appwrite\SDK\Method; +use Appwrite\SDK\MethodType; +use Appwrite\SDK\Response; +use Appwrite\SDK\Specification\Format; use Appwrite\Template\Template; use Appwrite\Utopia\Response\Model; use Utopia\Database\Helpers\Permission; use Utopia\Database\Helpers\Role; +use Utopia\Route; use Utopia\Validator; use Utopia\Validator\ArrayList; use Utopia\Validator\Nullable; use Utopia\Validator\Range; +use Utopia\Validator\WhiteList; class Swagger2 extends Format { @@ -19,41 +25,6 @@ public function getName(): string return 'Swagger 2'; } - protected function getNestedModels(Model $model, array &$usedModels): void - { - foreach ($model->getRules() as $rule) { - if (!in_array($model->getType(), $usedModels)) { - continue; - } - - if (\is_array($rule['type'])) { - foreach ($rule['type'] as $ruleType) { - if (!in_array($ruleType, ['string', 'integer', 'boolean', 'json', 'float'])) { - $usedModels[] = $ruleType; - - foreach ($this->models as $m) { - if ($m->getType() === $ruleType) { - $this->getNestedModels($m, $usedModels); - continue; - } - } - } - } - } else { - if (!in_array($rule['type'], ['string', 'integer', 'boolean', 'json', 'float'])) { - $usedModels[] = $rule['type']; - - foreach ($this->models as $m) { - if ($m->getType() === $rule['type']) { - $this->getNestedModels($m, $usedModels); - continue; - } - } - } - } - } - } - public function parse(): array { /* @@ -78,6 +49,7 @@ public function parse(): array ], ], 'host' => \parse_url($this->getParam('endpoint', ''), PHP_URL_HOST), + 'x-host-docs' => \parse_url($this->getParam('endpoint.docs', ''), PHP_URL_HOST), 'basePath' => \parse_url($this->getParam('endpoint', ''), PHP_URL_PATH), 'schemes' => [\parse_url($this->getParam('endpoint', ''), PHP_URL_SCHEME)], 'consumes' => ['application/json', 'multipart/form-data'], @@ -115,30 +87,50 @@ public function parse(): array $usedModels = []; foreach ($this->routes as $route) { - /** @var \Utopia\Route $route */ + /** @var Route $route */ $url = \str_replace('/v1', '', $route->getPath()); + $scope = $route->getLabel('scope', ''); - $consumes = [$route->getLabel('sdk.request.type', 'application/json')]; - $method = $route->getLabel('sdk.method', \uniqid()); - $desc = (!empty($route->getLabel('sdk.description', ''))) ? \realpath(__DIR__ . '/../../../../' . $route->getLabel('sdk.description', '')) : null; - $produces = $route->getLabel('sdk.response.type', null); - $model = $route->getLabel('sdk.response.model', 'none'); - $routeSecurity = $route->getLabel('sdk.auth', []); + /** @var Method $sdk */ + $sdk = $route->getLabel('sdk', false); + + if (empty($sdk)) { + continue; + } + + $additionalMethods = null; + if (\is_array($sdk)) { + $additionalMethods = $sdk; + $sdk = $sdk[0]; + } + + $consumes = []; + if (strtoupper($route->getMethod()) !== 'GET' && strtoupper($route->getMethod()) !== 'HEAD') { + $consumes = [$sdk->getRequestType()->value]; + } + + $method = $sdk->getMethodName() ?? \uniqid(); + + if (!empty($method) && is_array($method)) { + $method = array_keys($method)[0]; + } + + $desc = $sdk->getDescriptionFilePath(); + $produces = ($sdk->getContentType())->value; + $routeSecurity = $sdk->getAuth() ?? []; $sdkPlatforms = []; foreach ($routeSecurity as $value) { switch ($value) { - case APP_AUTH_TYPE_SESSION: + case AuthType::SESSION: $sdkPlatforms[] = APP_PLATFORM_CLIENT; break; - case APP_AUTH_TYPE_KEY: + case AuthType::JWT: + case AuthType::KEY: $sdkPlatforms[] = APP_PLATFORM_SERVER; break; - case APP_AUTH_TYPE_JWT: - $sdkPlatforms[] = APP_PLATFORM_SERVER; - break; - case APP_AUTH_TYPE_ADMIN: + case AuthType::ADMIN: $sdkPlatforms[] = APP_PLATFORM_CONSOLE; break; } @@ -149,31 +141,31 @@ public function parse(): array $sdkPlatforms[] = APP_PLATFORM_CLIENT; } + $namespace = $sdk->getNamespace() ?? 'default'; + $temp = [ 'summary' => $route->getDesc(), - 'operationId' => $route->getLabel('sdk.namespace', 'default') . ucfirst($method), + 'operationId' => $namespace . ucfirst($method), 'consumes' => [], 'produces' => [], - 'tags' => [$route->getLabel('sdk.namespace', 'default')], + 'tags' => [$namespace], 'description' => ($desc) ? \file_get_contents($desc) : '', 'responses' => [], 'x-appwrite' => [ // Appwrite related metadata 'method' => $method, + 'group' => $sdk->getGroup(), 'weight' => $route->getOrder(), 'cookies' => $route->getLabel('sdk.cookies', false), - 'type' => $route->getLabel('sdk.methodType', ''), - 'deprecated' => $route->getLabel('sdk.deprecated', false), - 'demo' => Template::fromCamelCaseToDash($route->getLabel('sdk.namespace', 'default')) . '/' . Template::fromCamelCaseToDash($method) . '.md', - 'edit' => 'https://github.com/appwrite/appwrite/edit/master' . $route->getLabel('sdk.description', ''), + 'type' => $sdk->getType()->value ?? '', + 'deprecated' => $sdk->isDeprecated(), + 'demo' => Template::fromCamelCaseToDash($namespace) . '/' . Template::fromCamelCaseToDash($method) . '.md', + 'edit' => 'https://github.com/appwrite/appwrite/edit/master' . $sdk->getDescription() ?? '', 'rate-limit' => $route->getLabel('abuse-limit', 0), 'rate-time' => $route->getLabel('abuse-time', 3600), 'rate-key' => $route->getLabel('abuse-key', 'url:{url},ip:{ip}'), 'scope' => $route->getLabel('scope', ''), 'platforms' => $sdkPlatforms, - 'packaging' => $route->getLabel('sdk.packaging', false), - 'offline-model' => $route->getLabel('sdk.offline.model', ''), - 'offline-key' => $route->getLabel('sdk.offline.key', ''), - 'offline-response-key' => $route->getLabel('sdk.offline.response.key', '$id'), + 'packaging' => $sdk->isPackaging() ], ]; @@ -181,71 +173,119 @@ public function parse(): array $temp['produces'][] = $produces; } - foreach ($this->models as $value) { - if (\is_array($model)) { - $model = \array_map(fn ($m) => $m === $value->getType() ? $value : $m, $model); - } else { - if ($value->getType() === $model) { - $model = $value; - break; + if (!empty($additionalMethods)) { + $temp['x-appwrite']['methods'] = []; + foreach ($additionalMethods as $method) { + /** @var Method $method */ + $desc = $method->getDescriptionFilePath(); + + $additionalMethod = [ + 'name' => $method->getMethodName(), + 'parameters' => [], + 'required' => [], + 'responses' => [], + 'description' => ($desc) ? \file_get_contents($desc) : '', + ]; + + foreach ($method->getParameters() as $parameter) { + $additionalMethod['parameters'][] = $parameter->getName(); + + if (!$parameter->getOptional()) { + $additionalMethod['required'][] = $parameter->getName(); + } + } + + foreach ($method->getResponses() as $response) { + /** @var Response $response */ + if (\is_array($response->getModel())) { + $additionalMethod['responses'][] = [ + 'code' => $response->getCode(), + 'model' => \array_map(fn ($m) => '#/definitions/' . $m, $response->getModel()) + ]; + } else { + $additionalMethod['responses'][] = [ + 'code' => $response->getCode(), + 'model' => '#/definitions/' . $response->getModel() + ]; + } } + + $temp['x-appwrite']['methods'][] = $additionalMethod; } } - if (!(\is_array($model)) && $model->isNone()) { - $temp['responses'][(string)$route->getLabel('sdk.response.code', '500')] = [ - 'description' => in_array($produces, [ - 'image/*', - 'image/jpeg', - 'image/gif', - 'image/png', - 'image/webp', - 'image/svg-x', - 'image/x-icon', - 'image/bmp', - ]) ? 'Image' : 'File', - 'schema' => [ - 'type' => 'file' - ], - ]; - } else { - if (\is_array($model)) { - $modelDescription = \join(', or ', \array_map(fn ($m) => $m->getName(), $model)); - // model has multiple possible responses, we will use oneOf - foreach ($model as $m) { - $usedModels[] = $m->getType(); + // Handle Responses + foreach ($sdk->getResponses() as $response) { + /** @var Response $response */ + $model = $response->getModel(); + + foreach ($this->models as $value) { + if (\is_array($model)) { + $model = \array_map(fn ($m) => $m === $value->getType() ? $value : $m, $model); + } else { + if ($value->getType() === $model) { + $model = $value; + break; + } } - $temp['responses'][(string)$route->getLabel('sdk.response.code', '500')] = [ - 'description' => $modelDescription, + } + + if (!(\is_array($model)) && $model->isNone()) { + $temp['responses'][(string)$response->getCode() ?? '500'] = [ + 'description' => in_array($produces, [ + 'image/*', + 'image/jpeg', + 'image/gif', + 'image/png', + 'image/webp', + 'image/svg-x', + 'image/x-icon', + 'image/bmp', + ]) ? 'Image' : 'File', 'schema' => [ - 'x-oneOf' => \array_map(function ($m) { - return ['$ref' => '#/definitions/' . $m->getType()]; - }, $model) + 'type' => 'file' ], ]; } else { - // Response definition using one type - $usedModels[] = $model->getType(); - $temp['responses'][(string)$route->getLabel('sdk.response.code', '500')] = [ - 'description' => $model->getName(), - 'schema' => [ - '$ref' => '#/definitions/' . $model->getType(), - ], - ]; + if (\is_array($model)) { + $modelDescription = \join(', or ', \array_map(fn ($m) => $m->getName(), $model)); + // model has multiple possible responses, we will use oneOf + foreach ($model as $m) { + $usedModels[] = $m->getType(); + } + $temp['responses'][(string)$response->getCode() ?? '500'] = [ + 'description' => $modelDescription, + 'schema' => [ + 'x-oneOf' => \array_map(function ($m) { + return ['$ref' => '#/definitions/' . $m->getType()]; + }, $model) + ], + ]; + } else { + // Response definition using one type + $usedModels[] = $model->getType(); + $temp['responses'][(string)$response->getCode() ?? '500'] = [ + 'description' => $model->getName(), + 'schema' => [ + '$ref' => '#/definitions/' . $model->getType(), + ], + ]; + } } - } - if (in_array($route->getLabel('sdk.response.code', 500), [204, 301, 302, 308], true)) { - $temp['responses'][(string)$route->getLabel('sdk.response.code', '500')]['description'] = 'No content'; - unset($temp['responses'][(string)$route->getLabel('sdk.response.code', '500')]['schema']); + if (in_array($response->getCode() ?? 500, [204, 301, 302, 308], true)) { + $temp['responses'][(string)$response->getCode() ?? '500']['description'] = 'No content'; + unset($temp['responses'][(string)$response->getCode() ?? '500']['schema']); + } } if ((!empty($scope))) { // && 'public' != $scope $securities = ['Project' => []]; - foreach ($route->getLabel('sdk.auth', []) as $security) { - if (array_key_exists($security, $this->keys)) { - $securities[$security] = []; + foreach ($sdk->getAuth() as $security) { + /** @var \Appwrite\SDK\AuthType $security */ + if (array_key_exists($security->value, $this->keys)) { + $securities[$security->value] = []; } } @@ -266,12 +306,14 @@ public function parse(): array $parameters = \array_merge( $route->getParams(), - $route->getLabel('sdk.parameters', []), + $sdk->getAdditionalParameters() ?? [], ); foreach ($parameters as $name => $param) { // Set params /** @var Validator $validator */ - $validator = (\is_callable($param['validator'])) ? call_user_func_array($param['validator'], $this->app->getResources($param['injections'])) : $param['validator']; + $validator = (\is_callable($param['validator'])) + ? ($param['validator'])(...$this->app->getResources($param['injections'])) + : $param['validator']; $node = [ 'name' => $name, @@ -286,13 +328,26 @@ public function parse(): array $validator = $validator->getValidator(); } - $validatorClass = (!empty($validator)) ? \get_class($validator) : ''; - if ($validatorClass === 'Utopia\Validator\AnyOf') { + $class = !empty($validator) + ? \get_class($validator) + : ''; + + $base = !empty($class) + ? \get_parent_class($class) + : ''; + + switch ($base) { + case 'Appwrite\Utopia\Database\Validator\Queries\Base': + $class = $base; + break; + } + + if ($class === 'Utopia\Validator\AnyOf') { $validator = $param['validator']->getValidators()[0]; - $validatorClass = \get_class($validator); + $class = \get_class($validator); } - switch ($validatorClass) { + switch ($class) { case 'Utopia\Validator\Text': case 'Utopia\Database\Validator\UID': $node['type'] = $validator->getType(); @@ -303,7 +358,7 @@ public function parse(): array $node['x-example'] = false; break; case 'Appwrite\Utopia\Database\Validator\CustomId': - if ($route->getLabel('sdk.methodType', '') === 'upload') { + if ($sdk->getType() === MethodType::UPLOAD) { $node['x-upload-id'] = true; } $node['type'] = $validator->getType(); @@ -348,29 +403,7 @@ public function parse(): array $consumes = ['multipart/form-data']; $node['type'] = 'payload'; break; - case 'Appwrite\Utopia\Database\Validator\Queries\Attributes': - case 'Appwrite\Utopia\Database\Validator\Queries\Buckets': - case 'Appwrite\Utopia\Database\Validator\Queries\Collections': - case 'Appwrite\Utopia\Database\Validator\Queries\Databases': - case 'Appwrite\Utopia\Database\Validator\Queries\Deployments': - case 'Appwrite\Utopia\Database\Validator\Queries\Executions': - case 'Appwrite\Utopia\Database\Validator\Queries\Files': - case 'Appwrite\Utopia\Database\Validator\Queries\Functions': - case 'Appwrite\Utopia\Database\Validator\Queries\Identities': - case 'Appwrite\Utopia\Database\Validator\Queries\Indexes': - case 'Appwrite\Utopia\Database\Validator\Queries\Installations': - case 'Appwrite\Utopia\Database\Validator\Queries\Memberships': - case 'Appwrite\Utopia\Database\Validator\Queries\Messages': - case 'Appwrite\Utopia\Database\Validator\Queries\Migrations': - case 'Appwrite\Utopia\Database\Validator\Queries\Projects': - case 'Appwrite\Utopia\Database\Validator\Queries\Providers': - case 'Appwrite\Utopia\Database\Validator\Queries\Rules': - case 'Appwrite\Utopia\Database\Validator\Queries\Subscribers': - case 'Appwrite\Utopia\Database\Validator\Queries\Targets': - case 'Appwrite\Utopia\Database\Validator\Queries\Teams': - case 'Appwrite\Utopia\Database\Validator\Queries\Topics': - case 'Appwrite\Utopia\Database\Validator\Queries\Users': - case 'Appwrite\Utopia\Database\Validator\Queries\Variables': + case 'Appwrite\Utopia\Database\Validator\Queries\Base': case 'Utopia\Database\Validator\Queries': case 'Utopia\Database\Validator\Queries\Document': case 'Utopia\Database\Validator\Queries\Documents': @@ -425,14 +458,14 @@ public function parse(): array $node['type'] = $validator->getType(); break; case 'Utopia\Validator\WhiteList': - /** @var \Utopia\Validator\WhiteList $validator */ + /** @var WhiteList $validator */ $node['type'] = $validator->getType(); $node['x-example'] = $validator->getList()[0]; //Iterate the blackList. If it matches with the current one, then it is blackListed $allowed = true; foreach ($this->enumBlacklist as $blacklist) { - if ($blacklist['namespace'] == $route->getLabel('sdk.namespace', '') && $blacklist['method'] == $method && $blacklist['parameter'] == $name) { + if ($blacklist['namespace'] == $namespace && $blacklist['method'] == $method && $blacklist['parameter'] == $name) { $allowed = false; break; } @@ -440,8 +473,8 @@ public function parse(): array if ($allowed && $validator->getType() === 'string') { $node['enum'] = $validator->getList(); - $node['x-enum-name'] = $this->getEnumName($route->getLabel('sdk.namespace', ''), $method, $name); - $node['x-enum-keys'] = $this->getEnumKeys($route->getLabel('sdk.namespace', ''), $method, $name); + $node['x-enum-name'] = $this->getEnumName($namespace, $method, $name); + $node['x-enum-keys'] = $this->getEnumKeys($namespace, $method, $name); } if ($validator->getType() === 'integer') { @@ -585,6 +618,10 @@ public function parse(): array $type = 'boolean'; break; + case 'payload': + $type = 'payload'; + break; + default: $type = 'object'; $rule['type'] = ($rule['type']) ?: 'none'; diff --git a/src/Appwrite/Specification/Specification.php b/src/Appwrite/SDK/Specification/Specification.php similarity index 93% rename from src/Appwrite/Specification/Specification.php rename to src/Appwrite/SDK/Specification/Specification.php index 73ef34a8b88..951af08bdf5 100644 --- a/src/Appwrite/Specification/Specification.php +++ b/src/Appwrite/SDK/Specification/Specification.php @@ -1,6 +1,6 @@ <?php -namespace Appwrite\Specification; +namespace Appwrite\SDK\Specification; class Specification { diff --git a/src/Appwrite/Utopia/Database/Validator/Queries/Base.php b/src/Appwrite/Utopia/Database/Validator/Queries/Base.php index a3555c08ddb..e8eafba5a04 100644 --- a/src/Appwrite/Utopia/Database/Validator/Queries/Base.php +++ b/src/Appwrite/Utopia/Database/Validator/Queries/Base.php @@ -24,7 +24,15 @@ class Base extends Queries public function __construct(string $collection, array $allowedAttributes) { $config = Config::getParam('collections', []); - $collections = array_merge($config['projects'], $config['buckets'], $config['databases'], $config['console']); + + $collections = array_merge( + $config['projects'], + $config['buckets'], + $config['databases'], + $config['console'], + $config['logs'] + ); + $collection = $collections[$collection]; // array for constant lookup time $allowedAttributesLookup = []; @@ -35,6 +43,7 @@ public function __construct(string $collection, array $allowedAttributes) $attributes = []; foreach ($collection['attributes'] as $attribute) { $key = $attribute['$id']; + if (!isset($allowedAttributesLookup[$key])) { continue; } @@ -62,12 +71,18 @@ public function __construct(string $collection, array $allowedAttributes) 'array' => false, ]); + $internalId = new Document([ + 'key' => '$internalId', + 'type' => Database::VAR_STRING, + 'array' => false, + ]); + $validators = [ new Limit(), new Offset(), new Cursor(), - new Filter($attributes), - new Order($attributes), + new Filter($attributes, APP_DATABASE_QUERY_MAX_VALUES), + new Order([...$attributes, $internalId]), ]; parent::__construct($validators); diff --git a/src/Appwrite/Utopia/Database/Validator/Queries/Migrations.php b/src/Appwrite/Utopia/Database/Validator/Queries/Migrations.php index 6b9e9e6d321..436a95534ba 100644 --- a/src/Appwrite/Utopia/Database/Validator/Queries/Migrations.php +++ b/src/Appwrite/Utopia/Database/Validator/Queries/Migrations.php @@ -8,6 +8,7 @@ class Migrations extends Base 'status', 'stage', 'source', + 'destination', 'resources', 'statusCounters', 'resourceData', diff --git a/src/Appwrite/Utopia/Request.php b/src/Appwrite/Utopia/Request.php index 3f0a196d5e6..558f0cdf097 100644 --- a/src/Appwrite/Utopia/Request.php +++ b/src/Appwrite/Utopia/Request.php @@ -2,8 +2,11 @@ namespace Appwrite\Utopia; +use Appwrite\Auth\Auth; +use Appwrite\SDK\Method; use Appwrite\Utopia\Request\Filter; use Swoole\Http\Request as SwooleRequest; +use Utopia\Database\Validator\Authorization; use Utopia\Route; use Utopia\Swoole\Request as UtopiaRequest; @@ -27,13 +30,49 @@ public function getParams(): array { $parameters = parent::getParams(); - if ($this->hasFilters() && self::hasRoute()) { - $method = self::getRoute()->getLabel('sdk.method', 'unknown'); - $endpointIdentifier = self::getRoute()->getLabel('sdk.namespace', 'unknown') . '.' . $method; + if (!$this->hasFilters() || !self::hasRoute()) { + return $parameters; + } + + $methods = self::getRoute()->getLabel('sdk', null); + + if (empty($methods)) { + return $parameters; + } + if (!\is_array($methods)) { + $id = $methods->getNamespace() . '.' . $methods->getMethodName(); foreach ($this->getFilters() as $filter) { - $parameters = $filter->parse($parameters, $endpointIdentifier); + $parameters = $filter->parse($parameters, $id); } + return $parameters; + } + + $matched = null; + foreach ($methods as $method) { + /** @var Method|null $method */ + if ($method === null) { + continue; + } + + // Find the method that matches the parameters passed + $methodParamNames = \array_map(fn ($param) => $param->getName(), $method->getParameters()); + $invalidParams = \array_diff(\array_keys($parameters), $methodParamNames); + + // No params defined, or all params are valid + if (empty($methodParamNames) || empty($invalidParams)) { + $matched = $method; + break; + } + } + + $id = $matched !== null + ? $matched->getNamespace() . '.' . $matched->getMethodName() + : 'unknown.unknown'; + + // Apply filters + foreach ($this->getFilters() as $filter) { + $parameters = $filter->parse($parameters, $id); } return $parameters; @@ -122,7 +161,11 @@ public static function hasRoute(): bool */ public function getHeaders(): array { - $headers = $this->generateHeaders(); + try { + $headers = $this->generateHeaders(); + } catch (\Throwable) { + $headers = []; + } if (empty($this->swoole->cookie)) { return $headers; @@ -154,4 +197,40 @@ public function getHeader(string $key, string $default = ''): string $headers = $this->getHeaders(); return $headers[$key] ?? $default; } + + /** + * Get User Agent + * + * Method for getting User Agent. Preferring forwarded agent for privileged users; otherwise returns default. + * + * @param string $default + * @return string + */ + public function getUserAgent(string $default = ''): string + { + $forwardedUserAgent = $this->getHeader('x-forwarded-user-agent'); + if (!empty($forwardedUserAgent)) { + $roles = Authorization::getRoles(); + $isAppUser = Auth::isAppUser($roles); + + if ($isAppUser) { + return $forwardedUserAgent; + } + } + + return UtopiaRequest::getUserAgent($default); + } + + /** + * Creates a unique stable cache identifier for this GET request. + * Stable-sorts query params, use `serialize` to ensure key&value are part of cache keys. + * + * @return string + */ + public function cacheIdentifier(): string + { + $params = $this->getParams(); + ksort($params); + return md5($this->getURI() . '*' . serialize($params) . '*' . APP_CACHE_BUSTER); + } } diff --git a/src/Appwrite/Utopia/Response.php b/src/Appwrite/Utopia/Response.php index a2c07d34b09..1498f51bf67 100644 --- a/src/Appwrite/Utopia/Response.php +++ b/src/Appwrite/Utopia/Response.php @@ -2,6 +2,7 @@ namespace Appwrite\Utopia; +use Appwrite\Auth\Auth; use Appwrite\Utopia\Fetch\BodyMultipart; use Appwrite\Utopia\Response\Filter; use Appwrite\Utopia\Response\Model; @@ -113,6 +114,7 @@ use Swoole\Http\Response as SwooleHTTPResponse; // Keep last use Utopia\Database\Document; +use Utopia\Database\Validator\Authorization; use Utopia\Swoole\Response as SwooleResponse; /** @@ -325,6 +327,11 @@ class Response extends SwooleResponse */ protected array $payload = []; + /** + * @var bool + */ + protected static bool $showSensitive = false; + /** * Response constructor. * @@ -625,6 +632,11 @@ public function output(Document $document, string $model): array } } + if (!$data->isSet($key) && !$rule['required']) { // set output key null if data key is not set and required is false + $output[$key] = null; + continue; + } + if ($rule['array']) { if (!is_array($data[$key])) { throw new Exception($key . ' must be an array of type ' . $rule['type']); @@ -663,6 +675,16 @@ public function output(Document $document, string $model): array } } + if ($rule['sensitive']) { + $roles = Authorization::getRoles(); + $isPrivilegedUser = Auth::isPrivilegedUser($roles); + $isAppUser = Auth::isAppUser($roles); + + if ((!$isPrivilegedUser && !$isAppUser) && !self::$showSensitive) { + $data->setAttribute($key, ''); + } + } + $output[$key] = $data[$key]; } @@ -818,4 +840,20 @@ public function setHeader(string $key, string $value): void { $this->sendHeader($key, $value); } + + /** + * Static wrapper to show sensitive data in response + * + * @param callable The callback to show sensitive information for + * @return array + */ + public static function showSensitive(callable $callback): array + { + try { + self::$showSensitive = true; + return $callback(); + } finally { + self::$showSensitive = false; + } + } } diff --git a/src/Appwrite/Utopia/Response/Model.php b/src/Appwrite/Utopia/Response/Model.php index 8a0bb78cba7..32de9fa0356 100644 --- a/src/Appwrite/Utopia/Response/Model.php +++ b/src/Appwrite/Utopia/Response/Model.php @@ -14,6 +14,7 @@ abstract class Model public const TYPE_DATETIME = 'datetime'; public const TYPE_DATETIME_EXAMPLE = '2020-10-15T06:38:00.000+00:00'; public const TYPE_RELATIONSHIP = 'relationship'; + public const TYPE_PAYLOAD = 'payload'; /** * @var bool @@ -89,7 +90,8 @@ protected function addRule(string $key, array $options): self 'required' => true, 'array' => false, 'description' => '', - 'example' => '' + 'example' => '', + 'sensitive' => false ], $options); return $this; diff --git a/src/Appwrite/Utopia/Response/Model/Attribute.php b/src/Appwrite/Utopia/Response/Model/Attribute.php index 9f9ceca3176..8c43f8d21c6 100644 --- a/src/Appwrite/Utopia/Response/Model/Attribute.php +++ b/src/Appwrite/Utopia/Response/Model/Attribute.php @@ -47,7 +47,18 @@ public function __construct() 'required' => false, 'example' => false, ]) - ; + ->addRule('$createdAt', [ + 'type' => self::TYPE_DATETIME, + 'description' => 'Attribute creation date in ISO 8601 format.', + 'default' => '', + 'example' => self::TYPE_DATETIME_EXAMPLE, + ]) + ->addRule('$updatedAt', [ + 'type' => self::TYPE_DATETIME, + 'description' => 'Attribute update date in ISO 8601 format.', + 'default' => '', + 'example' => self::TYPE_DATETIME_EXAMPLE, + ]); } public array $conditions = []; diff --git a/src/Appwrite/Utopia/Response/Model/Execution.php b/src/Appwrite/Utopia/Response/Model/Execution.php index 90fbdc9689c..c5842bb42c0 100644 --- a/src/Appwrite/Utopia/Response/Model/Execution.php +++ b/src/Appwrite/Utopia/Response/Model/Execution.php @@ -84,7 +84,6 @@ public function __construct() 'type' => self::TYPE_STRING, 'description' => 'HTTP response body. This will return empty unless execution is created as synchronous.', 'default' => '', - 'example' => 'Developers are awesome.', ]) ->addRule('responseHeaders', [ 'type' => Response::MODEL_HEADERS, @@ -98,12 +97,14 @@ public function __construct() 'description' => 'Function logs. Includes the last 4,000 characters. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.', 'default' => '', 'example' => '', + 'sensitive' => true, ]) ->addRule('errors', [ 'type' => self::TYPE_STRING, 'description' => 'Function errors. Includes the last 4,000 characters. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.', 'default' => '', 'example' => '', + 'sensitive' => true, ]) ->addRule('duration', [ 'type' => self::TYPE_FLOAT, diff --git a/src/Appwrite/Utopia/Response/Model/Func.php b/src/Appwrite/Utopia/Response/Model/Func.php index f4ff214d0bd..ab2d7ba051e 100644 --- a/src/Appwrite/Utopia/Response/Model/Func.php +++ b/src/Appwrite/Utopia/Response/Model/Func.php @@ -94,7 +94,7 @@ public function __construct() ]) ->addRule('schedule', [ 'type' => self::TYPE_STRING, - 'description' => 'Function execution schedult in CRON format.', + 'description' => 'Function execution schedule in CRON format.', 'default' => '', 'example' => '5 4 * * *', ]) diff --git a/src/Appwrite/Utopia/Response/Model/Index.php b/src/Appwrite/Utopia/Response/Model/Index.php index 3d3d1a3b526..fcd978b5bed 100644 --- a/src/Appwrite/Utopia/Response/Model/Index.php +++ b/src/Appwrite/Utopia/Response/Model/Index.php @@ -41,6 +41,13 @@ public function __construct() 'example' => [], 'array' => true, ]) + ->addRule('lengths', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Index attributes length.', + 'default' => [], + 'example' => [], + 'array' => true, + ]) ->addRule('orders', [ 'type' => self::TYPE_STRING, 'description' => 'Index orders.', @@ -49,13 +56,22 @@ public function __construct() 'array' => true, 'required' => false, ]) - ; + ->addRule('$createdAt', [ + 'type' => self::TYPE_DATETIME, + 'description' => 'Index creation date in ISO 8601 format.', + 'default' => '', + 'example' => self::TYPE_DATETIME_EXAMPLE, + ]) + ->addRule('$updatedAt', [ + 'type' => self::TYPE_DATETIME, + 'description' => 'Index update date in ISO 8601 format.', + 'default' => '', + 'example' => self::TYPE_DATETIME_EXAMPLE, + ]); } /** * Get Name - * - * @return string */ public function getName(): string { @@ -64,8 +80,6 @@ public function getName(): string /** * Get Collection - * - * @return string */ public function getType(): string { diff --git a/src/Appwrite/Utopia/Response/Model/Membership.php b/src/Appwrite/Utopia/Response/Model/Membership.php index 64283bd4a88..46153842bc5 100644 --- a/src/Appwrite/Utopia/Response/Model/Membership.php +++ b/src/Appwrite/Utopia/Response/Model/Membership.php @@ -36,13 +36,13 @@ public function __construct() ]) ->addRule('userName', [ 'type' => self::TYPE_STRING, - 'description' => 'User name.', + 'description' => 'User name. Hide this attribute by toggling membership privacy in the Console.', 'default' => '', 'example' => 'John Doe', ]) ->addRule('userEmail', [ 'type' => self::TYPE_STRING, - 'description' => 'User email address.', + 'description' => 'User email address. Hide this attribute by toggling membership privacy in the Console.', 'default' => '', 'example' => 'john@appwrite.io', ]) @@ -78,7 +78,7 @@ public function __construct() ]) ->addRule('mfa', [ 'type' => self::TYPE_BOOLEAN, - 'description' => 'Multi factor authentication status, true if the user has MFA enabled or false otherwise.', + 'description' => 'Multi factor authentication status, true if the user has MFA enabled or false otherwise. Hide this attribute by toggling membership privacy in the Console.', 'default' => false, 'example' => false, ]) diff --git a/src/Appwrite/Utopia/Response/Model/MetricBreakdown.php b/src/Appwrite/Utopia/Response/Model/MetricBreakdown.php index 29d56215322..ba46afcb77a 100644 --- a/src/Appwrite/Utopia/Response/Model/MetricBreakdown.php +++ b/src/Appwrite/Utopia/Response/Model/MetricBreakdown.php @@ -15,6 +15,7 @@ public function __construct() 'description' => 'Resource ID.', 'default' => '', 'example' => '5e5ea5c16897e', + 'required' => false, ]) ->addRule('name', [ 'type' => self::TYPE_STRING, @@ -27,6 +28,13 @@ public function __construct() 'description' => 'The value of this metric at the timestamp.', 'default' => 0, 'example' => 1, + ]) + ->addRule('estimate', [ + 'type' => self::TYPE_FLOAT, + 'description' => 'The estimated value of this metric at the end of the period.', + 'default' => 0, + 'example' => 1, + 'required' => false, ]); } diff --git a/src/Appwrite/Utopia/Response/Model/Migration.php b/src/Appwrite/Utopia/Response/Model/Migration.php index 5a54eef3ad5..f70dc37027a 100644 --- a/src/Appwrite/Utopia/Response/Model/Migration.php +++ b/src/Appwrite/Utopia/Response/Model/Migration.php @@ -18,7 +18,7 @@ public function __construct() ]) ->addRule('$createdAt', [ 'type' => self::TYPE_DATETIME, - 'description' => 'Variable creation date in ISO 8601 format.', + 'description' => 'Migration creation date in ISO 8601 format.', 'default' => '', 'example' => self::TYPE_DATETIME_EXAMPLE, ]) @@ -46,9 +46,15 @@ public function __construct() 'default' => '', 'example' => 'Appwrite', ]) + ->addRule('destination', [ + 'type' => self::TYPE_STRING, + 'description' => 'A string containing the type of destination of the migration.', + 'default' => 'Appwrite', + 'example' => 'Appwrite', + ]) ->addRule('resources', [ 'type' => self::TYPE_STRING, - 'description' => 'Resources to migration.', + 'description' => 'Resources to migrate.', 'default' => [], 'example' => ['user'], 'array' => true diff --git a/src/Appwrite/Utopia/Response/Model/Project.php b/src/Appwrite/Utopia/Response/Model/Project.php index 80214aaa73a..fbbe0625315 100644 --- a/src/Appwrite/Utopia/Response/Model/Project.php +++ b/src/Appwrite/Utopia/Response/Model/Project.php @@ -151,6 +151,24 @@ public function __construct() 'default' => false, 'example' => true, ]) + ->addRule('authMembershipsUserName', [ + 'type' => self::TYPE_BOOLEAN, + 'description' => 'Whether or not to show user names in the teams membership response.', + 'default' => false, + 'example' => true, + ]) + ->addRule('authMembershipsUserEmail', [ + 'type' => self::TYPE_BOOLEAN, + 'description' => 'Whether or not to show user emails in the teams membership response.', + 'default' => false, + 'example' => true, + ]) + ->addRule('authMembershipsMfa', [ + 'type' => self::TYPE_BOOLEAN, + 'description' => 'Whether or not to show user MFA status in the teams membership response.', + 'default' => false, + 'example' => true, + ]) ->addRule('oAuthProviders', [ 'type' => Response::MODEL_AUTH_PROVIDER, 'description' => 'List of Auth Providers.', @@ -234,6 +252,18 @@ public function __construct() 'default' => '', 'example' => 'tls', ]) + ->addRule('pingCount', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Number of times the ping was received for this project.', + 'default' => 0, + 'example' => 1, + ]) + ->addRule('pingedAt', [ + 'type' => self::TYPE_DATETIME, + 'description' => 'Last ping datetime in ISO 8601 format.', + 'default' => '', + 'example' => self::TYPE_DATETIME_EXAMPLE, + ]) ; $services = Config::getParam('services', []); @@ -293,9 +323,9 @@ public function getType(): string } /** - * Get Collection + * Filter document structure * - * @return string + * @return Document */ public function filter(Document $document): Document { @@ -336,6 +366,9 @@ public function filter(Document $document): Document $document->setAttribute('authPersonalDataCheck', $authValues['personalDataCheck'] ?? false); $document->setAttribute('authMockNumbers', $authValues['mockNumbers'] ?? []); $document->setAttribute('authSessionAlerts', $authValues['sessionAlerts'] ?? false); + $document->setAttribute('authMembershipsUserName', $authValues['membershipsUserName'] ?? true); + $document->setAttribute('authMembershipsUserEmail', $authValues['membershipsUserEmail'] ?? true); + $document->setAttribute('authMembershipsMfa', $authValues['membershipsMfa'] ?? true); foreach ($auth as $index => $method) { $key = $method['key']; diff --git a/src/Appwrite/Utopia/Response/Model/Session.php b/src/Appwrite/Utopia/Response/Model/Session.php index 43331d754f3..7173919a65a 100644 --- a/src/Appwrite/Utopia/Response/Model/Session.php +++ b/src/Appwrite/Utopia/Response/Model/Session.php @@ -178,6 +178,7 @@ public function __construct() 'description' => 'Secret used to authenticate the user. Only included if the request was made with an API key', 'default' => '', 'example' => '5e5bb8c16897e', + 'sensitive' => true, ]) ->addRule('mfaUpdatedAt', [ 'type' => self::TYPE_DATETIME, diff --git a/src/Appwrite/Utopia/Response/Model/Target.php b/src/Appwrite/Utopia/Response/Model/Target.php index d180b6c4c41..530749e006c 100644 --- a/src/Appwrite/Utopia/Response/Model/Target.php +++ b/src/Appwrite/Utopia/Response/Model/Target.php @@ -32,7 +32,7 @@ public function __construct() 'type' => self::TYPE_STRING, 'description' => 'Target Name.', 'default' => '', - 'example' => 'Aegon apple token', + 'example' => 'Apple iPhone 12', ]) ->addRule('userId', [ 'type' => self::TYPE_STRING, @@ -58,6 +58,12 @@ public function __construct() 'description' => 'The target identifier.', 'default' => '', 'example' => 'token', + ]) + ->addRule('expired', [ + 'type' => self::TYPE_BOOLEAN, + 'description' => 'Is the target expired.', + 'default' => false, + 'example' => false, ]); } diff --git a/src/Appwrite/Utopia/Response/Model/Token.php b/src/Appwrite/Utopia/Response/Model/Token.php index fa041fabed1..8313cc41a4d 100644 --- a/src/Appwrite/Utopia/Response/Model/Token.php +++ b/src/Appwrite/Utopia/Response/Model/Token.php @@ -33,6 +33,7 @@ public function __construct() '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.', 'default' => '', 'example' => '', + 'sensitive' => true, ]) ->addRule('expire', [ 'type' => self::TYPE_DATETIME, diff --git a/src/Appwrite/Utopia/Response/Model/UsageBuckets.php b/src/Appwrite/Utopia/Response/Model/UsageBuckets.php index 2f528ac9d14..ee624a29ad8 100644 --- a/src/Appwrite/Utopia/Response/Model/UsageBuckets.php +++ b/src/Appwrite/Utopia/Response/Model/UsageBuckets.php @@ -42,6 +42,19 @@ public function __construct() 'example' => [], 'array' => true ]) + ->addRule('imageTransformations', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'Aggregated number of files transformations per period.', + 'default' => [], + 'example' => [], + 'array' => true + ]) + ->addRule('imageTransformationsTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total aggregated number of files transformations.', + 'default' => 0, + 'example' => 0, + ]) ; } diff --git a/src/Appwrite/Utopia/Response/Model/UsageDatabase.php b/src/Appwrite/Utopia/Response/Model/UsageDatabase.php index d4733f2568a..a0fe421f5f0 100644 --- a/src/Appwrite/Utopia/Response/Model/UsageDatabase.php +++ b/src/Appwrite/Utopia/Response/Model/UsageDatabase.php @@ -28,6 +28,24 @@ public function __construct() 'default' => 0, 'example' => 0, ]) + ->addRule('storageTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total aggregated number of total storage used in bytes.', + 'default' => 0, + 'example' => 0, + ]) + ->addRule('databaseReadsTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total number of databases reads.', + 'default' => 0, + 'example' => 0, + ]) + ->addRule('databaseWritesTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total number of databases writes.', + 'default' => 0, + 'example' => 0, + ]) ->addRule('collections', [ 'type' => Response::MODEL_METRIC, 'description' => 'Aggregated number of collections per period.', @@ -42,6 +60,27 @@ public function __construct() 'example' => [], 'array' => true ]) + ->addRule('storage', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'Aggregated storage used in bytes per period.', + 'default' => [], + 'example' => [], + 'array' => true + ]) + ->addRule('databaseReads', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'An array of aggregated number of database reads.', + 'default' => [], + 'example' => [], + 'array' => true + ]) + ->addRule('databaseWrites', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'An array of aggregated number of database writes.', + 'default' => [], + 'example' => [], + 'array' => true + ]) ; } diff --git a/src/Appwrite/Utopia/Response/Model/UsageDatabases.php b/src/Appwrite/Utopia/Response/Model/UsageDatabases.php index f775f9489d8..4e053e5223a 100644 --- a/src/Appwrite/Utopia/Response/Model/UsageDatabases.php +++ b/src/Appwrite/Utopia/Response/Model/UsageDatabases.php @@ -34,6 +34,24 @@ public function __construct() 'default' => 0, 'example' => 0, ]) + ->addRule('storageTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total aggregated number of total databases storage in bytes.', + 'default' => 0, + 'example' => 0, + ]) + ->addRule('databasesReadsTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total number of databases reads.', + 'default' => 0, + 'example' => 0, + ]) + ->addRule('databasesWritesTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total number of databases writes.', + 'default' => 0, + 'example' => 0, + ]) ->addRule('databases', [ 'type' => Response::MODEL_METRIC, 'description' => 'Aggregated number of databases per period.', @@ -55,6 +73,27 @@ public function __construct() 'example' => [], 'array' => true ]) + ->addRule('storage', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'An array of the aggregated number of databases storage in bytes per period.', + 'default' => [], + 'example' => [], + 'array' => true + ]) + ->addRule('databasesReads', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'An array of aggregated number of database reads.', + 'default' => [], + 'example' => [], + 'array' => true + ]) + ->addRule('databasesWrites', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'An array of aggregated number of database writes.', + 'default' => [], + 'example' => [], + 'array' => true + ]) ; } diff --git a/src/Appwrite/Utopia/Response/Model/UsageProject.php b/src/Appwrite/Utopia/Response/Model/UsageProject.php index 2703691238e..395b19b7cdb 100644 --- a/src/Appwrite/Utopia/Response/Model/UsageProject.php +++ b/src/Appwrite/Utopia/Response/Model/UsageProject.php @@ -28,6 +28,12 @@ public function __construct() 'default' => 0, 'example' => 0, ]) + ->addRule('databasesStorageTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total aggregated sum of databases storage size (in bytes).', + 'default' => 0, + 'example' => 0, + ]) ->addRule('usersTotal', [ 'type' => self::TYPE_INTEGER, 'description' => 'Total aggregated number of users.', @@ -76,6 +82,18 @@ public function __construct() 'default' => 0, 'example' => 0, ]) + ->addRule('databasesReadsTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total number of databases reads.', + 'default' => 0, + 'example' => 0, + ]) + ->addRule('databasesWritesTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total number of databases writes.', + 'default' => 0, + 'example' => 0, + ]) ->addRule('requests', [ 'type' => Response::MODEL_METRIC, 'description' => 'Aggregated number of requests per period.', @@ -118,6 +136,13 @@ public function __construct() 'example' => [], 'array' => true ]) + ->addRule('databasesStorageBreakdown', [ + 'type' => Response::MODEL_METRIC_BREAKDOWN, + 'description' => 'An array of the aggregated breakdown of storage usage by databases.', + 'default' => [], + 'example' => [], + 'array' => true + ]) ->addRule('executionsMbSecondsBreakdown', [ 'type' => Response::MODEL_METRIC_BREAKDOWN, 'description' => 'Aggregated breakdown in totals of execution mbSeconds by functions.', @@ -139,6 +164,52 @@ public function __construct() 'example' => [], 'array' => true ]) + ->addRule('authPhoneTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total aggregated number of phone auth.', + 'default' => 0, + 'example' => 0, + ]) + ->addRule('authPhoneEstimate', [ + 'type' => self::TYPE_FLOAT, + 'description' => 'Estimated total aggregated cost of phone auth.', + 'default' => 0, + 'example' => 0, + ]) + ->addRule('authPhoneCountryBreakdown', [ + 'type' => Response::MODEL_METRIC_BREAKDOWN, + 'description' => 'Aggregated breakdown in totals of phone auth by country.', + 'default' => [], + 'example' => [], + 'array' => true + ]) + ->addRule('databasesReads', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'An array of aggregated number of database reads.', + 'default' => [], + 'example' => [], + 'array' => true + ]) + ->addRule('databasesWrites', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'An array of aggregated number of database writes.', + 'default' => [], + 'example' => [], + 'array' => true + ]) + ->addRule('imageTransformations', [ + 'type' => Response::MODEL_METRIC, + 'description' => 'An array of aggregated number of image transformations.', + 'default' => [], + 'example' => [], + 'array' => true + ]) + ->addRule('imageTransformationsTotal', [ + 'type' => self::TYPE_INTEGER, + 'description' => 'Total aggregated number of image transformations.', + 'default' => 0, + 'example' => 0, + ]) ; } diff --git a/src/Executor/Executor.php b/src/Executor/Executor.php index c230cfb6640..6bc2fe7aabb 100644 --- a/src/Executor/Executor.php +++ b/src/Executor/Executor.php @@ -21,17 +21,19 @@ class Executor private bool $selfSigned = false; - private string $endpoint; + /** + * @var callable(string, string): string $endpoint + */ + private $endpointSelector; protected array $headers; - public function __construct(string $endpoint) + /** + * @param callable(string, string): string $endpointSelector + */ + public function __construct(callable $endpointSelector) { - if (!filter_var($endpoint, FILTER_VALIDATE_URL)) { - throw new Exception('Unsupported endpoint'); - } - - $this->endpoint = $endpoint; + $this->endpointSelector = $endpointSelector; $this->headers = [ 'content-type' => 'application/json', 'authorization' => 'Bearer ' . System::getEnv('_APP_EXECUTOR_SECRET', ''), @@ -92,7 +94,8 @@ public function createRuntime( 'timeout' => $timeout, ]; - $response = $this->call(self::METHOD_POST, $route, [ 'x-opr-runtime-id' => $runtimeId ], $params, true, $timeout); + $endpoint = $this->selectEndpoint($projectId, $deploymentId); + $response = $this->call($endpoint, self::METHOD_POST, $route, [ 'x-opr-runtime-id' => $runtimeId ], $params, true, $timeout); $status = $response['headers']['status-code']; if ($status >= 400) { @@ -123,7 +126,8 @@ public function getLogs( 'timeout' => $timeout ]; - $this->call(self::METHOD_GET, $route, [ 'x-opr-runtime-id' => $runtimeId ], $params, true, $timeout, $callback); + $endpoint = $this->selectEndpoint($projectId, $deploymentId); + $this->call($endpoint, self::METHOD_GET, $route, [ 'x-opr-runtime-id' => $runtimeId ], $params, true, $timeout, $callback); } /** @@ -139,7 +143,8 @@ public function deleteRuntime(string $projectId, string $deploymentId) $runtimeId = "$projectId-$deploymentId"; $route = "/runtimes/$runtimeId"; - $response = $this->call(self::METHOD_DELETE, $route, [ + $endpoint = $this->selectEndpoint($projectId, $deploymentId); + $response = $this->call($endpoint, self::METHOD_DELETE, $route, [ 'x-opr-addressing-method' => 'broadcast' ], [], true, 30); @@ -227,7 +232,8 @@ public function createExecution( $requestTimeout = $timeout + 15; } - $response = $this->call(self::METHOD_POST, $route, [ 'x-opr-runtime-id' => $runtimeId, 'content-type' => 'multipart/form-data', 'accept' => 'multipart/form-data' ], $params, true, $requestTimeout); + $endpoint = $this->selectEndpoint($projectId, $deploymentId); + $response = $this->call($endpoint, self::METHOD_POST, $route, [ 'x-opr-runtime-id' => $runtimeId, 'content-type' => 'multipart/form-data', 'accept' => 'multipart/form-data' ], $params, true, $requestTimeout); $status = $response['headers']['status-code']; if ($status >= 400) { @@ -235,7 +241,11 @@ public function createExecution( throw new \Exception($message, $status); } - $response['body']['headers'] = \json_decode($response['body']['headers'] ?? '{}', true); + $headers = $response['body']['headers'] ?? []; + if (is_string($headers)) { + $headers = \json_decode($headers, true); + } + $response['body']['headers'] = $headers; $response['body']['statusCode'] = \intval($response['body']['statusCode'] ?? 500); $response['body']['duration'] = \floatval($response['body']['duration'] ?? 0); $response['body']['startTime'] = \floatval($response['body']['startTime'] ?? \microtime(true)); @@ -256,10 +266,10 @@ public function createExecution( * @return array|string * @throws Exception */ - public function call(string $method, string $path = '', array $headers = [], array $params = [], bool $decode = true, int $timeout = 15, callable $callback = null) + private function call(string $endpoint, string $method, string $path = '', array $headers = [], array $params = [], bool $decode = true, int $timeout = 15, callable $callback = null) { $headers = array_merge($this->headers, $headers); - $ch = curl_init($this->endpoint . $path . (($method == self::METHOD_GET && !empty($params)) ? '?' . http_build_query($params) : '')); + $ch = curl_init($endpoint . $path . (($method == self::METHOD_GET && !empty($params)) ? '?' . http_build_query($params) : '')); $responseHeaders = []; $responseStatus = -1; $responseType = ''; @@ -422,4 +432,9 @@ protected function flatten(array $data, string $prefix = ''): array return $output; } + + private function selectEndpoint(string $projectId, string $deploymentId): string + { + return call_user_func($this->endpointSelector, $projectId, $deploymentId); + } } diff --git a/tests/benchmarks/bulk-operations/LargeDocumentCreation.js b/tests/benchmarks/bulk-operations/LargeDocumentCreation.js new file mode 100644 index 00000000000..c903ed2dba0 --- /dev/null +++ b/tests/benchmarks/bulk-operations/LargeDocumentCreation.js @@ -0,0 +1,127 @@ +import { check, sleep } from "k6"; +import http from "k6/http"; +import { provisionProject, provisionDatabase, cleanup, unique } from "./utils.js"; + +const millionRecords = 1_000_000; +const batchSize = 10_000; +const numBatches = millionRecords / batchSize; + +export function setup() { + const resources = provisionProject({ + endpoint: 'http://localhost/v1', + email: 'test@test.com', + password: 'password123', + name: 'Test User', + projectName: 'Large Document Creation Test' + }); + + const { databaseId, collectionId } = provisionDatabase({ + endpoint: 'http://localhost/v1', + apiHeaders: resources.apiHeaders + }); + + // Wait to ensure that provisioning is complete + sleep(5); + + // Create an index for the collection + const index = { + key: "name", + type: "fulltext", + orders: ["ASC"], + attributes: ["name", "email"] + }; + + const indexRes = http.post(`http://localhost/v1/databases/${databaseId}/collections/${collectionId}/indexes`, + JSON.stringify(index), { + headers: resources.apiHeaders + }); + + console.log(indexRes.status); + + check(indexRes, { + "status is 202": (r) => r.status === 202, + }); + + console.log(`----- Inserting ${millionRecords} documents in ${numBatches} batches of ${batchSize} -----`); + + const timeStart = new Date(); + + const requests = []; + for (let i = 0; i < numBatches; i++) { + const docs = Array.from({ length: batchSize }, () => ({ + $id: unique(), + name: "bulk_document", + age: Math.floor(Math.random() * 100), + email: `${unique()}@test.com`, + height: Math.random() * 100 + })); + requests.push({ + method: "POST", + url: `http://localhost/v1/databases/${databaseId}/collections/${collectionId}/documents`, + body: JSON.stringify({ documents: docs }), + params: { + headers: resources.apiHeaders, + timeout: '300s' + } + }); + } + + const responses = http.batch(requests); + responses.forEach((res, index) => { + if (res.status !== 201) { + throw new Error(`Batch ${index + 1} failed with status ${res.status}`); + } + }); + + const timeEnd = new Date(); + const timeTaken = timeEnd - timeStart; + console.log(`Created 1 million documents in ${timeTaken} milliseconds`); + + return { + databaseId, + collectionId, + apiHeaders: resources.apiHeaders, + resources + }; +} + +export default function (data) { + const docs = Array.from({ length: 10000 }, () => ({ + $id: unique(), + name: "performance_document", + age: Math.floor(Math.random() * 100), + email: `${unique()}@test.com`, + height: Math.random() * 100 + })); + + const payload = JSON.stringify({ documents: docs }); + const res = http.post( + `http://localhost/v1/databases/${data.databaseId}/collections/${data.collectionId}/documents`, + payload, + { + headers: data.apiHeaders, + timeout: '300s' + } + ); + + check(res, { + "status is 201": (r) => r.status === 201 + }); + + sleep(1); +} + +export function teardown(data) { + cleanup(data.resources); +} + +export const options = { + scenarios: { + large_document_creation: { + executor: 'per-vu-iterations', + vus: 1, + iterations: 20, + exec: 'default' + } + } +}; \ No newline at end of file diff --git a/tests/benchmarks/bulk-operations/documentCreation.js b/tests/benchmarks/bulk-operations/documentCreation.js new file mode 100644 index 00000000000..730b6bb5413 --- /dev/null +++ b/tests/benchmarks/bulk-operations/documentCreation.js @@ -0,0 +1,82 @@ +import { check, sleep } from "k6"; +import http from "k6/http"; +import { provisionProject, provisionDatabase, cleanup, unique } from "./utils.js"; + +const amount = 10_000; + +export function setup() { + const resources = provisionProject({ + endpoint: 'http://localhost/v1', + email: 'test@test.com', + password: 'password123', + name: 'Test User', + projectName: 'Bulk Operations Test' + }); + + const { databaseId, collectionId } = provisionDatabase({ + endpoint: 'http://localhost/v1', + apiHeaders: resources.apiHeaders + }); + + sleep(3); // Await Attributes to be provisioned + + console.log(`----- Amount of documents: ${amount} -----`); + + return { + databaseId, + collectionId, + apiHeaders: resources.apiHeaders, + resources + }; +} + +export function teardown(data) { + cleanup(data.resources); +} + +let documents = Array(amount).fill({ + $id: "unique()", + name: "asd", +}); + +documents = documents.map((document) => { + return { + ...document, + age: Math.floor(Math.random() * 100), + email: `${unique()}@test.com`, + height: Math.random() * 100, + }; +}); + +export default function (data) { + const payload = JSON.stringify({ + documents, + }); + + const res = http.post( + `http://localhost/v1/databases/${data.databaseId}/collections/${data.collectionId}/documents`, + payload, + { + headers: data.apiHeaders + } + ); + + check(res, { + "status is 201": (r) => r.status === 201, + }); + + return { + resources: data.resources + }; +} + +export const options = { + scenarios: { + bulk_create: { + executor: 'per-vu-iterations', + vus: 1, + iterations: 20, + exec: 'default' + } + } +}; diff --git a/tests/benchmarks/bulk-operations/noisyNeighbor.js b/tests/benchmarks/bulk-operations/noisyNeighbor.js new file mode 100644 index 00000000000..4bfec4e564b --- /dev/null +++ b/tests/benchmarks/bulk-operations/noisyNeighbor.js @@ -0,0 +1,144 @@ +import { check, sleep } from "k6"; +import http from "k6/http"; +import { Trend } from "k6/metrics"; +import { provisionProject, provisionDatabase, cleanup, unique } from "./utils.js"; + +// Custom Trend metric for light response time tracking +export const lightResponseTime = new Trend("light_response_time", true); + +const BULK_AMOUNT = 100_000; // Heavy operation amount +const LIGHT_AMOUNT = 10; // Light operation amount + +export function setup() { + // Set up two separate projects - one for bulk operations (noisy neighbor) and one for light operations + const heavyResources = provisionProject({ + endpoint: 'http://localhost/v1', + email: 'heavy@test.com', + password: 'password123', + name: 'Heavy User', + projectName: 'Noisy Neighbor - Heavy' + }); + + const lightResources = provisionProject({ + endpoint: 'http://localhost/v1', + email: 'light@test.com', + password: 'password123', + name: 'Light User', + projectName: 'Noisy Neighbor - Light' + }); + + // Set up databases for both projects + const heavy = provisionDatabase({ + endpoint: 'http://localhost/v1', + apiHeaders: heavyResources.apiHeaders + }); + + const light = provisionDatabase({ + endpoint: 'http://localhost/v1', + apiHeaders: lightResources.apiHeaders + }); + + sleep(3); // Await Attributes to be provisioned + + console.log(`----- Heavy operations: ${BULK_AMOUNT} documents | Light operations: ${LIGHT_AMOUNT} document -----`); + + return { + heavy: { + databaseId: heavy.databaseId, + collectionId: heavy.collectionId, + apiHeaders: heavyResources.apiHeaders, + resources: heavyResources + }, + light: { + databaseId: light.databaseId, + collectionId: light.collectionId, + apiHeaders: lightResources.apiHeaders, + resources: lightResources + } + }; +} + +export function teardown(data) { + cleanup(data.heavy.resources); + cleanup(data.light.resources); +} + +// Create document payloads +function createDocuments(amount) { + let documents = Array(amount).fill({ + $id: "unique()", + name: "test", + }); + + return documents.map((document) => ({ + ...document, + age: Math.floor(Math.random() * 100), + email: `${unique()}@test.com`, + height: Math.random() * 100, + })); +} + +// Heavy operation function +export function heavy(data) { + const documents = createDocuments(BULK_AMOUNT); + const payload = JSON.stringify({ documents }); + + const res = http.post( + `http://localhost/v1/databases/${data.heavy.databaseId}/collections/${data.heavy.collectionId}/documents`, + payload, + { + headers: data.heavy.apiHeaders + } + ); + + check(res, { + "heavy operation status is 201": (r) => r.status === 201, + }); +} + +// Light operation function +export function light(data) { + const documents = createDocuments(LIGHT_AMOUNT); + const payload = JSON.stringify({ documents }); + + const startTime = new Date(); + const res = http.post( + `http://localhost/v1/databases/${data.light.databaseId}/collections/${data.light.collectionId}/documents`, + payload, + { + headers: data.light.apiHeaders + } + ); + const duration = new Date() - startTime; + + // Record the light operation response time using the custom Trend metric + lightResponseTime.add(duration); + + check(res, { + "light operation status is 201": (r) => r.status === 201, + }); +} + +export const options = { + scenarios: { + // Heavy bulk operations running continuously + heavy_load: { + executor: 'constant-vus', + vus: 5, + duration: '30s', + exec: 'heavy' + }, + // Light operations to measure impact + light_operations: { + executor: 'constant-arrival-rate', + rate: 5, + timeUnit: '1s', + duration: '30s', + preAllocatedVUs: 10, + exec: 'light' + } + }, + thresholds: { + http_req_duration: ['p(95)<2000'], // 95% of requests should complete within 2s + } +}; \ No newline at end of file diff --git a/tests/benchmarks/bulk-operations/utils.js b/tests/benchmarks/bulk-operations/utils.js new file mode 100644 index 00000000000..dc8dcac5698 --- /dev/null +++ b/tests/benchmarks/bulk-operations/utils.js @@ -0,0 +1,336 @@ +import http from 'k6/http'; +import { check } from 'k6'; + +/** + * @typedef {Object} AuthHeaders + * @property {string} 'Content-Type' - Content type header + * @property {string} 'Cookie' - Session cookie + * @property {string} 'X-Appwrite-Project' - Project ID header + */ + +/** + * @typedef {Object} ApiHeaders + * @property {string} 'Content-Type' - Content type header + * @property {string} 'X-Appwrite-Project' - Project ID header + * @property {string} 'X-Appwrite-Key' - API key header + */ + +/** + * @typedef {Object} ProvisionedResources + * @property {string} userId - The ID of the created user + * @property {string} teamId - The ID of the created team + * @property {string} projectId - The ID of the created project + * @property {string} cookies - Session cookies for authentication + * @property {AuthHeaders} headers - Headers for cookie-based authentication + * @property {string} apiKey - The API key secret + * @property {ApiHeaders} apiHeaders - Headers for API key authentication + */ + +function assert(response, checkName, condition) { + const result = check(response, { + [checkName]: condition + }); + if (!result) { + console.error(`Assertion failed: ${checkName}`); + console.error(`Response status: ${response.status}`); + console.error(`Response body: ${response.body}`); + throw new Error(`Assertion failed: ${checkName}`); + } +} + +/** + * Provisions an Appwrite project setup including: + * - Account creation + * - Session creation + * - Team creation + * - Project creation + * - API Key creation + * + * @param {Object} config Configuration object + * @param {string} config.endpoint Base endpoint URL (e.g., 'http://localhost:80/v1') + * @param {string} config.email Email for account creation + * @param {string} config.password Password for account creation + * @param {string} config.name Name for account creation + * @param {string} config.projectName Name for the project + * @returns {ProvisionedResources} Object containing all created resource IDs and session information + */ +export function provisionProject(config) { + const { + endpoint, + email, + password, + name, + projectName, + } = config; + + // Step 1: Create Account + const accountResponse = http.post(`${endpoint}/account`, JSON.stringify({ + userId: 'unique()', + email, + password, + name + }), { + headers: { + 'Content-Type': 'application/json', + } + }); + + assert(accountResponse, 'account created successfully', (r) => r.status === 201 || r.status === 409); + + const userId = accountResponse.json('$id'); + + // Step 2: Create Session + const sessionResponse = http.post(`${endpoint}/account/sessions/email`, JSON.stringify({ + email, + password + }), { + headers: { + 'Content-Type': 'application/json', + } + }); + + assert(sessionResponse, 'session created successfully', (r) => r.status === 201); + + // Keep manual control of the cookies to allow for simultaneous requests + const jar = http.cookieJar(); + jar.clear(`${endpoint}`); + + // Extract cookies for subsequent requests + const cookies = sessionResponse.headers['Set-Cookie']; + + // Common headers for authenticated requests + const authHeaders = { + 'Content-Type': 'application/json', + 'Cookie': cookies + }; + + // Step 3: Create Team + const teamResponse = http.post(`${endpoint}/teams`, JSON.stringify({ + teamId: 'unique()', + name: `${projectName} Team` + }), { + headers: authHeaders + }); + + assert(teamResponse, 'team created successfully', (r) => r.status === 201); + + const teamId = teamResponse.json('$id'); + + // Step 4: Create Project + const projectResponse = http.post(`${endpoint}/projects`, JSON.stringify({ + projectId: 'unique()', + name: projectName, + teamId: teamId + }), { + headers: authHeaders + }); + + assert(projectResponse, 'project created successfully', (r) => r.status === 201); + + const projectId = projectResponse.json('$id'); + + // Step 5: Create API Key + const apiKeyResponse = http.post(`${endpoint}/projects/${projectId}/keys`, JSON.stringify({ + name: 'Test API Key', + scopes: SCOPES, // All permissions + }), { + headers: authHeaders + }); + + assert(apiKeyResponse, 'api key created successfully', (r) => r.status === 201); + + const apiKey = apiKeyResponse.json('secret'); + + // Create a new headers object for API key authentication + const apiHeaders = { + 'Content-Type': 'application/json', + 'X-Appwrite-Project': projectId, + 'X-Appwrite-Key': apiKey + }; + + // Return all created resources and session info + return { + endpoint, + userId, + teamId, + projectId, + cookies, + headers: authHeaders, + apiKey, + apiHeaders + }; +} + +/** + * Example usage: + * + * const config = { + * endpoint: 'http://localhost:80/v1', + * email: 'test@example.com', + * password: 'complex-password', + * name: 'Test User', + * projectName: 'Test Project' + * }; + * + * const resources = provisionProject(config); + */ + +const SCOPES = [ + "sessions.write", + "users.read", + "users.write", + "teams.read", + "teams.write", + "databases.read", + "databases.write", + "collections.read", + "collections.write", + "attributes.read", + "attributes.write", + "indexes.read", + "indexes.write", + "documents.read", + "documents.write", + "files.read", + "files.write", + "buckets.read", + "buckets.write", + "functions.read", + "functions.write", + "execution.read", + "execution.write", + "targets.read", + "targets.write", + "providers.read", + "providers.write", + "messages.read", + "messages.write", + "topics.read", + "topics.write", + "subscribers.read", + "subscribers.write", + "locale.read", + "avatars.read", + "health.read", + "migrations.read", + "migrations.write" +] + +export function provisionDatabase(config) { + const { + endpoint, + apiHeaders + } = config; + + // Create database + const databaseResponse = http.post( + `${endpoint}/databases`, + JSON.stringify({ + databaseId: 'unique()', + name: 'Bulk Test DB' + }), + { headers: apiHeaders } + ); + + assert(databaseResponse, 'database created successfully', (r) => r.status === 201); + + const databaseId = databaseResponse.json('$id'); + + // Create collection + const collectionResponse = http.post( + `${endpoint}/databases/${databaseId}/collections`, + JSON.stringify({ + collectionId: 'unique()', + name: 'Bulk Test Collection', + permissions: ['read("any")', 'write("any")'], + documentSecurity: false + }), + { headers: apiHeaders } + ); + + assert(collectionResponse, 'collection created successfully', (r) => r.status === 201); + + const collectionId = collectionResponse.json('$id'); + + // Create name attribute + const nameAttributeResponse = http.post( + `${endpoint}/databases/${databaseId}/collections/${collectionId}/attributes/string`, + JSON.stringify({ + key: 'name', + size: 100, + required: false, + default: null, + array: false, + encrypt: false + }), + { headers: apiHeaders } + ); + + assert(nameAttributeResponse, 'name attribute created successfully', (r) => r.status === 202); + + // Create age attribute + const ageAttributeResponse = http.post( + `${endpoint}/databases/${databaseId}/collections/${collectionId}/attributes/integer`, + JSON.stringify({ + key: 'age', + required: false, + }), + { headers: apiHeaders } + ); + + assert(ageAttributeResponse, 'age attribute created successfully', (r) => r.status === 202); + + // Create email attribute + const emailAttributeResponse = http.post( + `${endpoint}/databases/${databaseId}/collections/${collectionId}/attributes/email`, + JSON.stringify({ + key: 'email', + required: false, + }), + { headers: apiHeaders } + ); + + assert(emailAttributeResponse, 'email attribute created successfully', (r) => r.status === 202); + + // Create height attribute + const heightAttributeResponse = http.post( + `${endpoint}/databases/${databaseId}/collections/${collectionId}/attributes/float`, + JSON.stringify({ + key: 'height', + required: false, + }), + { headers: apiHeaders } + ); + + assert(heightAttributeResponse, 'height attribute created successfully', (r) => r.status === 202); + + return { + databaseId, + collectionId + }; +} + +export function cleanup(config) { + const { + endpoint, + teamId, + headers + } = config; + + // Delete Organization + const organizationResponse = http.del( + `${endpoint}/teams/${teamId}`, + null, + { + headers + } + ); + + assert(organizationResponse, 'organization deleted successfully', (r) => r.status === 204); +} + +export function unique() { + const timestamp = Date.now().toString(36); + const randomPart = Math.random().toString(36).substring(2, 15); + return `${timestamp}-${randomPart}`; +} \ No newline at end of file diff --git a/tests/e2e/Client.php b/tests/e2e/Client.php index 0774f1c6fde..dc80808b14b 100644 --- a/tests/e2e/Client.php +++ b/tests/e2e/Client.php @@ -179,9 +179,14 @@ public function call(string $method, string $path = '', array $headers = [], mix default => http_build_query($params), }; - foreach ($headers as $i => $header) { - $headers[] = $i . ':' . $header; - unset($headers[$i]); + $formattedHeaders = []; + foreach ($headers as $key => $value) { + if (strtolower($key) === 'accept-encoding') { + curl_setopt($ch, CURLOPT_ENCODING, $value); + continue; + } else { + $formattedHeaders[] = $key . ': ' . $value; + } } curl_setopt($ch, CURLOPT_PATH_AS_IS, 1); @@ -189,7 +194,7 @@ public function call(string $method, string $path = '', array $headers = [], mix curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36'); - curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); + curl_setopt($ch, CURLOPT_HTTPHEADER, $formattedHeaders); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0); curl_setopt($ch, CURLOPT_TIMEOUT, 15); curl_setopt($ch, CURLOPT_HEADERFUNCTION, function ($curl, $header) use (&$responseHeaders, &$cookies) { @@ -220,7 +225,6 @@ public function call(string $method, string $path = '', array $headers = [], mix curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); } - $responseBody = curl_exec($ch); $responseType = $responseHeaders['content-type'] ?? ''; $responseStatus = curl_getinfo($ch, CURLINFO_HTTP_CODE); diff --git a/tests/e2e/General/CompressionTest.php b/tests/e2e/General/CompressionTest.php new file mode 100644 index 00000000000..9affacfe0a3 --- /dev/null +++ b/tests/e2e/General/CompressionTest.php @@ -0,0 +1,137 @@ +<?php + +namespace Tests\E2E\General; + +use Appwrite\ID; +use Appwrite\Permission; +use Appwrite\Role; +use CURLFile; +use Tests\E2E\Client; +use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\Scope; +use Tests\E2E\Scopes\SideServer; + +class CompressionTest extends Scope +{ + use ProjectCustom; + use SideServer; + + public function testSmallResponse() + { + // with header + $response = $this->client->call(Client::METHOD_GET, '/ping', [ + 'accept-encoding' => 'gzip', + 'x-appwrite-project' => $this->getProject()['$id'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals('Pong!', $response['body']); + $this->assertLessThan(1024, strlen($response['body'])); + $this->assertArrayNotHasKey('content-encoding', $response['headers']); + + // without header + $response = $this->client->call(Client::METHOD_GET, '/ping', [ + 'x-appwrite-project' => $this->getProject()['$id'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals('Pong!', $response['body']); + $this->assertLessThan(1024, strlen($response['body'])); + $this->assertArrayNotHasKey('content-encoding', $response['headers']); + } + + public function testLargeResponse() + { + // create an anonymous user + $response = $this->client->call(Client::METHOD_POST, '/users', array_merge([ + 'x-appwrite-project' => $this->getProject()['$id'], + 'content-type' => 'application/json', + ], $this->getHeaders()), [ + 'userId' => ID::unique(), + 'email' => 'test@localhost.test', + 'password' => 'password', + 'name' => 'User Name', + ]); + $this->assertEquals(201, $response['headers']['status-code']); + $userId = $response['body']['$id']; + + // set prefs with 2000 bytes of data + $prefs = ["longValue" => str_repeat('a', 2000)]; + + $response = $this->client->call(Client::METHOD_PATCH, '/users/' . $userId . '/prefs', array_merge([ + 'x-appwrite-project' => $this->getProject()['$id'], + 'content-type' => 'application/json', + ], $this->getHeaders()), [ + 'prefs' => $prefs, + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + + // get prefs with compression + $response = $this->client->call(Client::METHOD_GET, '/users/' . $userId . '/prefs', array_merge([ + 'x-appwrite-project' => $this->getProject()['$id'], + 'accept-encoding' => 'gzip', + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertArrayHasKey('content-encoding', $response['headers'], 'Content encoding should be gzip, headers received: ' . json_encode($response['headers'], JSON_PRETTY_PRINT)); + $this->assertLessThan(2000, intval($response['headers']['content-length'])); + + // get prefs without compression + $response = $this->client->call(Client::METHOD_GET, '/users/' . $userId . '/prefs', array_merge([ + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertGreaterThanOrEqual(2000, intval($response['headers']['content-length'])); + $this->assertArrayNotHasKey('content-encoding', $response['headers']); + } + + public function testImageResponse() + { + // create bucket + $bucket = $this->client->call(Client::METHOD_POST, '/storage/buckets', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'bucketId' => ID::unique(), + 'name' => 'Test Bucket', + 'fileSecurity' => true, + ]); + $bucketId = $bucket['body']['$id']; + $this->assertEquals(201, $bucket['headers']['status-code']); + + // upload image + $file = $this->client->call(Client::METHOD_POST, '/storage/buckets/' . $bucketId . '/files', array_merge([ + 'content-type' => 'multipart/form-data', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'fileId' => ID::unique(), + 'file' => new CURLFile(realpath(__DIR__ . '/../../resources/logo.png'), 'image/png', 'logo.png'), + 'permissions' => [ + Permission::read(Role::any()), + Permission::update(Role::any()), + Permission::delete(Role::any()), + ], + ]); + $fileId = $file['body']['$id']; + + // get image with header + $response = $this->client->call(Client::METHOD_GET, '/storage/buckets/' . $bucketId . '/files/' . $fileId, array_merge([ + 'content-type' => 'application/json', + 'accept-encoding' => 'gzip', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertArrayNotHasKey('content-encoding', $response['headers']); + // get image without + $response = $this->client->call(Client::METHOD_GET, '/storage/buckets/' . $bucketId . '/files/' . $fileId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertArrayNotHasKey('content-encoding', $response['headers']); + } +} diff --git a/tests/e2e/General/HTTPTest.php b/tests/e2e/General/HTTPTest.php index 08819663654..fe600cd0f8d 100644 --- a/tests/e2e/General/HTTPTest.php +++ b/tests/e2e/General/HTTPTest.php @@ -133,7 +133,7 @@ public function testSpecs() $this->assertEquals(200, $response['headers']['status-code']); // looks like recent change in the validator - $this->assertTrue(empty($response['body']['schemaValidationMessages'])); + $this->assertEmpty($response['body']['schemaValidationMessages'], 'Schema validation failed for ' . $file . ': ' . json_encode($response['body']['schemaValidationMessages'], JSON_PRETTY_PRINT)); } } diff --git a/tests/e2e/General/PingTest.php b/tests/e2e/General/PingTest.php new file mode 100644 index 00000000000..e41bac67369 --- /dev/null +++ b/tests/e2e/General/PingTest.php @@ -0,0 +1,55 @@ +<?php + +namespace Tests\E2E\General; + +use Tests\E2E\Client; +use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\Scope; +use Tests\E2E\Scopes\SideClient; + +class PingTest extends Scope +{ + use ProjectCustom; + use SideClient; + + public function testPing() + { + /** + * Test for SUCCESS + */ + // Without user session + $response = $this->client->call(Client::METHOD_GET, '/ping', [ + 'x-appwrite-project' => $this->getProject()['$id'], + ]); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals('Pong!', $response['body']); + + // With user session + $response = $this->client->call(Client::METHOD_GET, '/ping', array_merge([ + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals('Pong!', $response['body']); + + // With API key + $response = $this->client->call(Client::METHOD_GET, '/ping', [ + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals('Pong!', $response['body']); + + /** + * Test for FAILURE + */ + // Fake project ID + $response = $this->client->call(Client::METHOD_GET, '/ping', \array_merge([ + 'x-appwrite-project' => 'fake-project-id', + ], $this->getHeaders())); + + $this->assertEquals(404, $response['headers']['status-code']); + $this->assertNotContains('Pong!', $response['body']); + } +} diff --git a/tests/e2e/General/UsageTest.php b/tests/e2e/General/UsageTest.php index d3623acffcc..4473cab30c0 100644 --- a/tests/e2e/General/UsageTest.php +++ b/tests/e2e/General/UsageTest.php @@ -6,7 +6,6 @@ use Appwrite\Tests\Retry; use CURLFile; use DateTime; -use PHPUnit\Framework\ExpectationFailedException; use Tests\E2E\Client; use Tests\E2E\Scopes\ProjectCustom; use Tests\E2E\Scopes\Scope; @@ -23,7 +22,7 @@ class UsageTest extends Scope use SideServer; use FunctionsBase; - private const WAIT = 35; + private const WAIT = 5; private const CREATE = 20; protected string $projectId; @@ -52,6 +51,13 @@ protected function validateDates(array $metrics): void } } + public static function getYesterday(): string + { + $date = new DateTime(); + $date->modify('-1 day'); + return $date->format(self::$formatTz); + } + public static function getToday(): string { $date = new DateTime(); @@ -127,8 +133,6 @@ public function testPrepareUsersStats(): array #[Retry(count: 1)] public function testUsersStats(array $data): array { - sleep(self::WAIT); - $requestsTotal = $data['requestsTotal']; $response = $this->client->call( @@ -143,7 +147,7 @@ public function testUsersStats(array $data): array ); $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals(20, count($response['body'])); + $this->assertGreaterThanOrEqual(31, count($response['body'])); $this->validateDates($response['body']['network']); $this->validateDates($response['body']['requests']); $this->validateDates($response['body']['users']); @@ -302,7 +306,7 @@ public function testPrepareStorageStats(array $data): array /** * @depends testPrepareStorageStats */ - #[Retry(count: 1)] + #[Retry(count: 10)] public function testStorageStats(array $data): array { $bucketId = $data['bucketId']; @@ -311,8 +315,6 @@ public function testStorageStats(array $data): array $storageTotal = $data['storageTotal']; $filesTotal = $data['filesTotal']; - sleep(self::WAIT); - $response = $this->client->call( Client::METHOD_GET, '/project/usage', @@ -324,7 +326,7 @@ public function testStorageStats(array $data): array ] ); - $this->assertEquals(20, count($response['body'])); + $this->assertGreaterThanOrEqual(31, count($response['body'])); $this->assertEquals(1, count($response['body']['requests'])); $this->assertEquals($requestsTotal, $response['body']['requests'][array_key_last($response['body']['requests'])]['value']); $this->validateDates($response['body']['requests']); @@ -467,10 +469,10 @@ public function testPrepareDatabaseStats(array $data): array $this->assertEquals('name', $response['body']['key']); - $requestsTotal += 1; - sleep(self::WAIT); + $requestsTotal += 1; + for ($i = 0; $i < self::CREATE; $i++) { $name = uniqid() . ' collection'; @@ -545,7 +547,7 @@ public function testDatabaseStats(array $data): array ] ); - $this->assertEquals(20, count($response['body'])); + $this->assertGreaterThanOrEqual(31, count($response['body'])); $this->assertEquals(1, count($response['body']['requests'])); $this->assertEquals(1, count($response['body']['network'])); $this->assertEquals($requestsTotal, $response['body']['requests'][array_key_last($response['body']['requests'])]['value']); @@ -590,7 +592,6 @@ public function testDatabaseStats(array $data): array return $data; } - /** @depends testDatabaseStats */ public function testPrepareFunctionsStats(array $data): array { @@ -629,9 +630,6 @@ public function testPrepareFunctionsStats(array $data): array $this->assertEquals(201, $response['headers']['status-code']); $this->assertNotEmpty($response['body']['$id']); - $code = realpath(__DIR__ . '/../../resources/functions') . "/php/code.tar.gz"; - $this->packageCode('php'); - $response = $this->client->call( Client::METHOD_POST, '/functions/' . $functionId . '/deployments', @@ -641,8 +639,8 @@ public function testPrepareFunctionsStats(array $data): array ], $this->getHeaders()), [ 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', \basename($code)), - 'activate' => true + 'code' => $this->packageFunction('php'), + 'activate' => true, ] ); @@ -680,7 +678,7 @@ public function testPrepareFunctionsStats(array $data): array 'x-appwrite-project' => $this->getProject()['$id'] ], $this->getHeaders()), [ - 'async' => false, + 'async' => 'false', ] ); @@ -704,7 +702,7 @@ public function testPrepareFunctionsStats(array $data): array 'x-appwrite-project' => $this->getProject()['$id'] ], $this->getHeaders()), [ - 'async' => false, + 'async' => 'false', ] ); @@ -769,8 +767,6 @@ public function testFunctionsStats(array $data): array $executionTime = $data['executionTime']; $executions = $data['executions']; - sleep(self::WAIT); - $response = $this->client->call( Client::METHOD_GET, '/functions/' . $functionId . '/usage?range=30d', @@ -894,52 +890,40 @@ public function testCustomDomainsFunctionStats(array $data): void $this->assertEquals(200, $response['headers']['status-code']); - sleep(self::WAIT + 20); $tries = 0; - while (true) { - try { - // Compare new values with old values - $response = $this->client->call( - Client::METHOD_GET, - '/functions/' . $functionId . '/usage?range=30d', - $this->getConsoleHeaders() - ); + $this->assertEventually(function () use ($functionId, $functionsMetrics, $projectMetrics) { + // Compare new values with old values + $response = $this->client->call( + Client::METHOD_GET, + '/functions/' . $functionId . '/usage?range=30d', + $this->getConsoleHeaders() + ); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals(19, count($response['body'])); - $this->assertEquals('30d', $response['body']['range']); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(19, count($response['body'])); + $this->assertEquals('30d', $response['body']['range']); - // Check if the new values are greater than the old values - $this->assertEquals($functionsMetrics['executionsTotal'] + 1, $response['body']['executionsTotal']); - $this->assertGreaterThan($functionsMetrics['executionsTimeTotal'], $response['body']['executionsTimeTotal']); - $this->assertGreaterThan($functionsMetrics['executionsMbSecondsTotal'], $response['body']['executionsMbSecondsTotal']); + // Check if the new values are greater than the old values + $this->assertEquals($functionsMetrics['executionsTotal'] + 1, $response['body']['executionsTotal']); + $this->assertGreaterThan($functionsMetrics['executionsTimeTotal'], $response['body']['executionsTimeTotal']); + $this->assertGreaterThan($functionsMetrics['executionsMbSecondsTotal'], $response['body']['executionsMbSecondsTotal']); - $response = $this->client->call( - Client::METHOD_GET, - '/project/usage', - $this->getConsoleHeaders(), - [ - 'period' => '1h', - 'startDate' => self::getToday(), - 'endDate' => self::getTomorrow(), - ] - ); + $response = $this->client->call( + Client::METHOD_GET, + '/project/usage', + $this->getConsoleHeaders(), + [ + 'period' => '1h', + 'startDate' => self::getToday(), + 'endDate' => self::getTomorrow(), + ] + ); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals($projectMetrics['executionsTotal'] + 1, $response['body']['executionsTotal']); - $this->assertGreaterThan($projectMetrics['executionsMbSecondsTotal'], $response['body']['executionsMbSecondsTotal']); - - break; - } catch (ExpectationFailedException $th) { - if ($tries >= 5) { - throw $th; - } else { - $tries++; - sleep(5); - } - } - } + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals($projectMetrics['executionsTotal'] + 1, $response['body']['executionsTotal']); + $this->assertGreaterThan($projectMetrics['executionsMbSecondsTotal'], $response['body']['executionsMbSecondsTotal']); + }); } public function tearDown(): void diff --git a/tests/e2e/Scopes/ProjectCustom.php b/tests/e2e/Scopes/ProjectCustom.php index ad2c93790cc..533fccd87db 100644 --- a/tests/e2e/Scopes/ProjectCustom.php +++ b/tests/e2e/Scopes/ProjectCustom.php @@ -4,6 +4,7 @@ use Tests\E2E\Client; use Utopia\Database\Helpers\ID; +use Utopia\System\System; trait ProjectCustom { @@ -42,7 +43,7 @@ public function getProject(bool $fresh = false): array 'x-appwrite-project' => 'console', ], [ 'projectId' => ID::unique(), - 'region' => 'default', + 'region' => System::getEnv('_APP_REGION', 'default'), 'name' => 'Demo Project', 'teamId' => $team['body']['$id'], 'description' => 'Demo Project Description', @@ -94,6 +95,8 @@ public function getProject(bool $fresh = false): array 'topics.read', 'subscribers.write', 'subscribers.read', + 'migrations.write', + 'migrations.read' ], ]); diff --git a/tests/e2e/Services/Account/AccountCustomClientTest.php b/tests/e2e/Services/Account/AccountCustomClientTest.php index 244f84b1618..daa5bcbff87 100644 --- a/tests/e2e/Services/Account/AccountCustomClientTest.php +++ b/tests/e2e/Services/Account/AccountCustomClientTest.php @@ -277,6 +277,7 @@ public function testGetAccountLogs($data): array { sleep(5); $session = $data['session'] ?? ''; + /** * Test for SUCCESS */ @@ -2307,6 +2308,60 @@ public function testCreateSession(array $data): array $this->assertNotEmpty($response['body']['$id']); $this->assertNotEmpty($response['body']['expire']); $this->assertEmpty($response['body']['secret']); + $this->assertEquals('browser', $response['body']['clientType']); + $this->assertEquals('CH', $response['body']['clientCode']); + $this->assertEquals('Chrome', $response['body']['clientName']); + + // Forwarded User Agent with API Key + $response = $this->client->call(Client::METHOD_POST, '/users/' . $data['id'] . '/tokens', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'expire' => 60 + ]); + + $userId = $response['body']['userId']; + $secret = $response['body']['secret']; + + $response = $this->client->call(Client::METHOD_POST, '/account/sessions/token', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + 'x-forwarded-user-agent' => 'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36' + ], [ + 'userId' => $userId, + 'secret' => $secret + ]); + + $this->assertEquals('browser', $response['body']['clientType']); + $this->assertEquals('CM', actual: $response['body']['clientCode']); + $this->assertEquals('Chrome Mobile', $response['body']['clientName']); + + // Forwarded User Agent without API Key + $response = $this->client->call(Client::METHOD_POST, '/users/' . $data['id'] . '/tokens', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'expire' => 60 + ]); + + $userId = $response['body']['userId']; + $secret = $response['body']['secret']; + + $response = $this->client->call(Client::METHOD_POST, '/account/sessions/token', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-forwarded-user-agent' => 'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36' + ], [ + 'userId' => $userId, + 'secret' => $secret + ]); + + $this->assertEquals('browser', $response['body']['clientType']); + $this->assertEquals('CH', $response['body']['clientCode']); + $this->assertEquals('Chrome', $response['body']['clientName']); /** * Test for FAILURE @@ -2364,6 +2419,33 @@ public function testPhoneVerification(array $data): array $message = $smsRequest['data']['message']; $token = substr($message, 0, 6); + /** + * Test for FAILURE + */ + + // disable phone sessions + $response = $this->client->call(Client::METHOD_PATCH, '/projects/' . $this->getProject()['$id'] . '/auth/phone', array_merge([ + 'origin' => 'http://localhost', + 'content-type' => 'application/json', + 'x-appwrite-project' => 'console', + 'cookie' => 'a_session_console=' . $this->getRoot()['session'], + ]), [ + 'status' => false, + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(false, $response['body']['authPhone']); + + $response = $this->client->call(Client::METHOD_POST, '/account/verification/phone', array_merge([ + 'origin' => 'http://localhost', + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'cookie' => 'a_session_' . $this->getProject()['$id'] . '=' . $session, + ])); + + $this->assertEquals(501, $response['headers']['status-code']); + $this->assertEquals("Phone authentication is disabled for this project", $response['body']['message']); + return \array_merge($data, [ 'token' => \substr($smsRequest['data']['message'], 0, 6) ]); @@ -2695,4 +2777,45 @@ public function testUpdateAccountPasswordWithMagicUrl($data): array return $data; } + + public function testCreatePushTarget(): void + { + $response = $this->client->call(Client::METHOD_POST, '/account/targets/push', \array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'] + ], $this->getHeaders()), [ + 'targetId' => ID::unique(), + 'identifier' => 'test-identifier', + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']['$id']); + $this->assertEquals('test-identifier', $response['body']['identifier']); + } + + public function testUpdatePushTarget(): void + { + $response = $this->client->call(Client::METHOD_POST, '/account/targets/push', \array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'targetId' => ID::unique(), + 'identifier' => 'test-identifier-2', + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']['$id']); + $this->assertEquals('test-identifier-2', $response['body']['identifier']); + + $response = $this->client->call(Client::METHOD_PUT, '/account/targets/'. $response['body']['$id'] .'/push', \array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'identifier' => 'test-identifier-updated', + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals('test-identifier-updated', $response['body']['identifier']); + $this->assertEquals(false, $response['body']['expired']); + } } diff --git a/tests/e2e/Services/Databases/DatabasesBase.php b/tests/e2e/Services/Databases/DatabasesBase.php index 04f2dbd8c8a..7c0060ecaa0 100644 --- a/tests/e2e/Services/Databases/DatabasesBase.php +++ b/tests/e2e/Services/Databases/DatabasesBase.php @@ -12,7 +12,6 @@ use Utopia\Database\Helpers\Role; use Utopia\Database\Query; use Utopia\Database\Validator\Datetime as DatetimeValidator; -use Utopia\Validator\JSON; trait DatabasesBase { @@ -90,6 +89,12 @@ public function testCreateCollection(array $data): array */ public function testConsoleProject(array $data) { + if ($this->getSide() === 'server') { + // Server side can't get past the invalid key check anyway + $this->expectNotToPerformAssertions(); + return; + } + $response = $this->client->call( Client::METHOD_GET, '/databases/console/collections/' . $data['moviesId'] . '/documents', @@ -399,6 +404,73 @@ public function testListAttributes(array $data): void $this->assertEquals(400, $response['headers']['status-code']); } + /** + * @depends testCreateDatabase + */ + public function testPatchAttribute(array $data): void + { + $databaseId = $data['databaseId']; + + $collection = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'patch', + 'documentSecurity' => true, + 'permissions' => [ + Permission::create(Role::user($this->getUser()['$id'])), + ], + ]); + + $this->assertEquals(201, $collection['headers']['status-code']); + $this->assertEquals($collection['body']['name'], 'patch'); + + $attribute = $this->client->call(Client::METHOD_POST, '/databases/'.$databaseId.'/collections/'.$collection['body']['$id'].'/attributes/string', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'title', + 'required' => true, + 'size' => 100, + ]); + $this->assertEquals(202, $attribute['headers']['status-code']); + $this->assertEquals($attribute['body']['size'], 100); + + sleep(1); + + $index = $this->client->call(Client::METHOD_POST, '/databases/'.$databaseId.'/collections/'.$collection['body']['$id'].'/indexes', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'titleIndex', + 'type' => 'key', + 'attributes' => ['title'], + ]); + $this->assertEquals(202, $index['headers']['status-code']); + + sleep(1); + + /** + * Update attribute size to exceed Index maximum length + */ + $attribute = $this->client->call(Client::METHOD_PATCH, '/databases/'.$databaseId.'/collections/'.$collection['body']['$id'].'/attributes/string/'.$attribute['body']['key'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]), [ + 'size' => 1000, + 'required' => true, + 'default' => null, + ]); + + $this->assertEquals(400, $attribute['headers']['status-code']); + $this->assertStringContainsString('Index length is longer than the maximum: 76', $attribute['body']['message']); + } + public function testUpdateAttributeEnum(): void { $database = $this->client->call(Client::METHOD_POST, '/databases', [ @@ -1300,7 +1372,7 @@ public function testCreateIndexes(array $data): array ]); $this->assertEquals(400, $unknown['headers']['status-code']); - $this->assertEquals('Unknown attribute: Unknown', $unknown['body']['message']); + $this->assertEquals('Unknown attribute: Unknown. Verify the attribute name or create the attribute.', $unknown['body']['message']); $index1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/indexes', array_merge([ 'content-type' => 'application/json', @@ -1349,9 +1421,102 @@ public function testCreateIndexes(array $data): array return $data; } + /** - * @depends testCreateIndexes - */ + * @depends testCreateAttributes + */ + public function testGetIndexByKeyWithLengths(array $data): void + { + $databaseId = $data['databaseId']; + $collectionId = $data['moviesId']; + + // Test case for valid lengths + $create = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$collectionId}/indexes", [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'key' => 'lengthTestIndex', + 'type' => 'key', + 'attributes' => ['title','description'], + 'lengths' => [128,200] + ]); + $this->assertEquals(202, $create['headers']['status-code']); + + // Fetch index and check correct lengths + $index = $this->client->call(Client::METHOD_GET, "/databases/{$databaseId}/collections/{$collectionId}/indexes/lengthTestIndex", [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]); + $this->assertEquals(200, $index['headers']['status-code']); + $this->assertEquals('lengthTestIndex', $index['body']['key']); + $this->assertEquals([128, 200], $index['body']['lengths']); + + // Test case for lengths array overriding + // set a length for an array attribute, it should get overriden with Database::ARRAY_INDEX_LENGTH + $create = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$collectionId}/indexes", [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'key' => 'lengthOverrideTestIndex', + 'type' => 'key', + 'attributes' => ['actors'], + 'lengths' => [120] + ]); + $this->assertEquals(202, $create['headers']['status-code']); + + $index = $this->client->call(Client::METHOD_GET, "/databases/{$databaseId}/collections/{$collectionId}/indexes/lengthOverrideTestIndex", [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]); + $this->assertEquals([Database::ARRAY_INDEX_LENGTH], $index['body']['lengths']); + + // Test case for count of lengths greater than attributes (should throw 400) + $create = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$collectionId}/indexes", [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'key' => 'lengthCountExceededIndex', + 'type' => 'key', + 'attributes' => ['title'], + 'lengths' => [128, 128] + ]); + $this->assertEquals(400, $create['headers']['status-code']); + + // Test case for lengths exceeding total of 768 + $create = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$collectionId}/indexes", [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'key' => 'lengthTooLargeIndex', + 'type' => 'key', + 'attributes' => ['title','description','tagline','actors'], + 'lengths' => [256,256,256,20] + ]); + + $this->assertEquals(400, $create['headers']['status-code']); + + // Test case for negative length values + $create = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$collectionId}/indexes", [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'key' => 'negativeLengthIndex', + 'type' => 'key', + 'attributes' => ['title'], + 'lengths' => [-1] + ]); + $this->assertEquals(400, $create['headers']['status-code']); + } + /** + * @depends testCreateIndexes + */ public function testListIndexes(array $data): void { $databaseId = $data['databaseId']; @@ -1514,13 +1679,309 @@ public function testCreateDocument(array $data): array $this->assertEquals(400, $document4['headers']['status-code']); - // Delete document 4 with incomplete path - $this->assertEquals(404, $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents/', array_merge([ + return $data; + } + + /** + * @depends testCreateIndexes + */ + public function testUpsertDocument(array $data): void + { + $databaseId = $data['databaseId']; + $documentId = ID::unique(); + $document = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents/' . $documentId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()))['headers']['status-code']); + ], $this->getHeaders()), [ + 'data' => [ + 'title' => 'Thor: Ragnarok', + 'releaseYear' => 2000 + ], + 'permissions' => [ + Permission::read(Role::users()), + Permission::update(Role::users()), + Permission::delete(Role::users()), + ], + ]); - return $data; + $this->assertEquals(200, $document['headers']['status-code']); + $this->assertCount(3, $document['body']['$permissions']); + $document = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents/' . $documentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals('Thor: Ragnarok', $document['body']['title']); + + $document = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents/' . $documentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'title' => 'Thor: Love and Thunder', + 'releaseYear' => 2000 + ], + 'permissions' => [ + Permission::read(Role::users()), + Permission::update(Role::users()), + Permission::delete(Role::users()), + ], + ]); + + $this->assertEquals(200, $document['headers']['status-code']); + $this->assertEquals('Thor: Love and Thunder', $document['body']['title']); + + $document = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents/' . $documentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals('Thor: Love and Thunder', $document['body']['title']); + + // removing permission to read and delete + $document = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents/' . $documentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'title' => 'Thor: Love and Thunder', + 'releaseYear' => 2000 + ], + 'permissions' => [ + Permission::update(Role::users()) + ], + ]); + // shouldn't be able to read as no read permission + $document = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents/' . $documentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + switch ($this->getSide()) { + case 'client': + $this->assertEquals(404, $document['headers']['status-code']); + break; + case 'server': + $this->assertEquals(200, $document['headers']['status-code']); + break; + } + // shouldn't be able to delete as no delete permission + $document = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents/' . $documentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + // simulating for the client + // the document should not be allowed to be deleted as needed downward + if ($this->getSide() === 'client') { + $this->assertEquals(401, $document['headers']['status-code']); + } + // giving the delete permission + $document = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents/' . $documentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'title' => 'Thor: Love and Thunder', + 'releaseYear' => 2000 + ], + 'permissions' => [ + Permission::read(Role::users()), + Permission::update(Role::users()), + Permission::delete(Role::users()) + ], + ]); + $document = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents/' . $documentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + $this->assertEquals(204, $document['headers']['status-code']); + + // relationship behaviour + $person = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => 'person-upsert', + 'name' => 'person', + 'permissions' => [ + Permission::read(Role::users()), + Permission::update(Role::users()), + Permission::delete(Role::users()), + Permission::create(Role::users()), + ], + 'documentSecurity' => true, + ]); + + $this->assertEquals(201, $person['headers']['status-code']); + + $library = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => 'library-upsert', + 'name' => 'library', + 'permissions' => [ + Permission::read(Role::users()), + Permission::update(Role::users()), + Permission::create(Role::users()), + Permission::delete(Role::users()), + ], + 'documentSecurity' => true, + ]); + + $this->assertEquals(201, $library['headers']['status-code']); + + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $person['body']['$id'] . '/attributes/string', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'fullName', + 'size' => 255, + 'required' => false, + ]); + + sleep(1); // Wait for worker + + $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $person['body']['$id'] . '/attributes/relationship', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'relatedCollectionId' => 'library-upsert', + 'type' => Database::RELATION_ONE_TO_ONE, + 'key' => 'library', + 'twoWay' => true, + 'onDelete' => Database::RELATION_MUTATE_CASCADE, + ]); + + sleep(1); // Wait for worker + + $libraryName = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $library['body']['$id'] . '/attributes/string', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'libraryName', + 'size' => 255, + 'required' => true, + ]); + + sleep(1); // Wait for worker + + $this->assertEquals(202, $libraryName['headers']['status-code']); + + // upserting values + $documentId = ID::unique(); + $person1 = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/collections/' . $person['body']['$id'] . '/documents/'.$documentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'library' => [ + '$id' => 'library1', + '$permissions' => [ + Permission::read(Role::users()), + Permission::update(Role::users()), + Permission::delete(Role::users()), + ], + 'libraryName' => 'Library 1', + ], + ], + 'permissions' => [ + Permission::read(Role::users()), + Permission::update(Role::users()), + Permission::delete(Role::users()), + ] + ]); + + $this->assertEquals('Library 1', $person1['body']['library']['libraryName']); + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $person['body']['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::select(['fullName', 'library.*'])->toString(), + Query::equal('library', ['library1'])->toString(), + ], + ]); + + $this->assertEquals(1, $documents['body']['total']); + $this->assertEquals('Library 1', $documents['body']['documents'][0]['library']['libraryName']); + + + $person1 = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/collections/' . $person['body']['$id'] . '/documents/'.$documentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'library' => [ + '$id' => 'library1', + '$permissions' => [ + Permission::read(Role::users()), + Permission::update(Role::users()), + Permission::delete(Role::users()), + ], + 'libraryName' => 'Library 2', + ], + ], + 'permissions' => [ + Permission::read(Role::users()), + Permission::update(Role::users()), + Permission::delete(Role::users()), + ] + ]); + + // data should get updated + $this->assertEquals('Library 2', $person1['body']['library']['libraryName']); + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $person['body']['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::select(['fullName', 'library.*'])->toString(), + Query::equal('library', ['library1'])->toString(), + ], + ]); + + $this->assertEquals(1, $documents['body']['total']); + $this->assertEquals('Library 2', $documents['body']['documents'][0]['library']['libraryName']); + + + // data should get added + $person1 = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/collections/' . $person['body']['$id'] . '/documents/'.ID::unique(), array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'library' => [ + '$id' => 'library2', + '$permissions' => [ + Permission::read(Role::users()), + Permission::update(Role::users()), + Permission::delete(Role::users()), + ], + 'libraryName' => 'Library 2', + ], + ], + 'permissions' => [ + Permission::read(Role::users()), + Permission::update(Role::users()), + Permission::delete(Role::users()), + ] + ]); + + $this->assertEquals('Library 2', $person1['body']['library']['libraryName']); + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $person['body']['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::select(['fullName', 'library.*'])->toString() + ], + ]); + $this->assertEquals(2, $documents['body']['total']); } /** @@ -1568,9 +2029,54 @@ public function testListDocuments(array $data): array $this->assertEquals(2019, $documents['body']['documents'][0]['releaseYear']); $this->assertCount(3, $documents['body']['documents']); + // changing description attribute to be null by default instead of empty string + $patchNull = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/attributes/string/description', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'default' => null, + 'required' => false, + ]); + // creating a dummy doc with null description + $document1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documentId' => ID::unique(), + 'data' => [ + 'title' => 'Dummy', + 'releaseYear' => 1944, + 'birthDay' => '1975-06-12 14:12:55+02:00', + 'actors' => [ + 'Dummy', + ], + ] + ]); + + $this->assertEquals(201, $document1['headers']['status-code']); + // fetching docs with cursor after the dummy doc with order attr description which is null + $documentsPaginated = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::orderAsc('dummy')->toString(), + Query::cursorAfter(new Document(['$id' => $document1['body']['$id']]))->toString() + ], + ]); + // should throw 400 as the order attr description of the selected doc is null + $this->assertEquals(400, $documentsPaginated['headers']['status-code']); + + // deleting the dummy doc created + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents/' . $document1['body']['$id'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); return ['documents' => $documents['body']['documents'], 'databaseId' => $databaseId]; } + /** * @depends testListDocuments */ @@ -1744,6 +2250,21 @@ public function testListDocumentsAfterPagination(array $data): array $this->assertEquals(400, $documents['headers']['status-code']); + /** + * Test null value for cursor + */ + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + '{"method":"cursorAfter","values":[null]}', + ], + ]); + + $this->assertEquals(400, $documents['headers']['status-code']); + return []; } @@ -2096,7 +2617,7 @@ public function testDocumentsListQueries(array $data): array */ $conditions = []; - for ($i = 0; $i < 101; $i++) { + for ($i = 0; $i < APP_DATABASE_QUERY_MAX_VALUES + 1; $i++) { $conditions[] = $i; } @@ -2109,7 +2630,7 @@ public function testDocumentsListQueries(array $data): array ], ]); $this->assertEquals(400, $documents['headers']['status-code']); - $this->assertEquals('Invalid query: Query on attribute has greater than 100 values: releaseYear', $documents['body']['message']); + $this->assertEquals('Invalid query: Query on attribute has greater than '.APP_DATABASE_QUERY_MAX_VALUES.' values: releaseYear', $documents['body']['message']); $value = ''; @@ -2235,38 +2756,6 @@ public function testUpdateDocument(array $data): array $this->assertEquals(200, $response['headers']['status-code']); - /** - * Test for failure - */ - - $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents/' . $id, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-timestamp' => 'invalid', - ], $this->getHeaders()), [ - 'data' => [ - 'title' => 'Thor: Ragnarok', - ], - ]); - - $this->assertEquals(400, $response['headers']['status-code']); - $this->assertEquals('Invalid X-Appwrite-Timestamp header value', $response['body']['message']); - $this->assertEquals(Exception::GENERAL_ARGUMENT_INVALID, $response['body']['type']); - - $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents/' . $id, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-timestamp' => DateTime::formatTz(DateTime::addSeconds(new \DateTime(), -1000)), - ], $this->getHeaders()), [ - 'data' => [ - 'title' => 'Thor: Ragnarok', - ], - ]); - - $this->assertEquals(409, $response['headers']['status-code']); - $this->assertEquals('Remote document is newer than local.', $response['body']['message']); - $this->assertEquals(Exception::DOCUMENT_UPDATE_CONFLICT, $response['body']['type']); - return []; } @@ -4783,5 +5272,11 @@ public function testTimeout(array $data): void ]); $this->assertEquals(408, $response['headers']['status-code']); + + $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); } } diff --git a/tests/e2e/Services/Databases/DatabasesConsoleClientTest.php b/tests/e2e/Services/Databases/DatabasesConsoleClientTest.php index ca77cf2581a..2266c91afe0 100644 --- a/tests/e2e/Services/Databases/DatabasesConsoleClientTest.php +++ b/tests/e2e/Services/Databases/DatabasesConsoleClientTest.php @@ -224,7 +224,7 @@ public function testGetDatabaseUsage(array $data) ]); $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals(5, count($response['body'])); + $this->assertEquals(11, count($response['body'])); $this->assertEquals('24h', $response['body']['range']); $this->assertIsNumeric($response['body']['documentsTotal']); $this->assertIsNumeric($response['body']['collectionsTotal']); diff --git a/tests/e2e/Services/Databases/DatabasesCustomClientTest.php b/tests/e2e/Services/Databases/DatabasesCustomClientTest.php index 84849960585..320508a1141 100644 --- a/tests/e2e/Services/Databases/DatabasesCustomClientTest.php +++ b/tests/e2e/Services/Databases/DatabasesCustomClientTest.php @@ -871,7 +871,6 @@ public function testUpdateWithoutRelationPermission(): void $this->assertEquals(200, $response['headers']['status-code']); - // We should be allowed to link and create a new document from collection 3 to collection 2. $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collection1['body']['$id'] . '/documents/' . $collection1['body']['$id'], array_merge([ 'content-type' => 'application/json', diff --git a/tests/e2e/Services/Databases/DatabasesCustomServerTest.php b/tests/e2e/Services/Databases/DatabasesCustomServerTest.php index 7cb8adb815f..829960b54f6 100644 --- a/tests/e2e/Services/Databases/DatabasesCustomServerTest.php +++ b/tests/e2e/Services/Databases/DatabasesCustomServerTest.php @@ -1362,7 +1362,7 @@ public function testAttributeRowWidthLimit() ]); $this->assertEquals(400, $tooWide['headers']['status-code']); - $this->assertEquals('Attribute limit exceeded', $tooWide['body']['message']); + $this->assertEquals('attribute_limit_exceeded', $tooWide['body']['type']); } public function testIndexLimitException() @@ -2309,22 +2309,17 @@ public function testAttributeUpdateInteger(array $data) $this->assertEquals(100, $new['body']['min']); $this->assertEquals(2000, $new['body']['max']); - /** - * Test against failure - */ $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/integer/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] ]), [ - 'required' => 'no boolean', - 'default' => 123, + 'required' => false, + 'default' => 100, 'min' => 0, - 'max' => 500 ]); - $this->assertEquals(400, $update['headers']['status-code']); - $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); + $this->assertEquals(200, $update['headers']['status-code']); $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/integer/' . $key, array_merge([ 'content-type' => 'application/json', @@ -2332,22 +2327,23 @@ public function testAttributeUpdateInteger(array $data) 'x-appwrite-key' => $this->getProject()['apiKey'] ]), [ 'required' => false, - 'default' => 'i am no integer', - 'min' => 0, - 'max' => 500 + 'default' => 10, + 'max' => 100, ]); - $this->assertEquals(400, $update['headers']['status-code']); - $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); + $this->assertEquals(200, $update['headers']['status-code']); + /** + * Test against failure + */ $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/integer/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] ]), [ - 'required' => false, - 'default' => 100, - 'min' => 'i am no integer', + 'required' => 'no boolean', + 'default' => 123, + 'min' => 0, 'max' => 500 ]); @@ -2360,9 +2356,9 @@ public function testAttributeUpdateInteger(array $data) 'x-appwrite-key' => $this->getProject()['apiKey'] ]), [ 'required' => false, - 'default' => 100, + 'default' => 'i am no integer', 'min' => 0, - 'max' => 'i am no integer' + 'max' => 500 ]); $this->assertEquals(400, $update['headers']['status-code']); @@ -2375,7 +2371,8 @@ public function testAttributeUpdateInteger(array $data) ]), [ 'required' => false, 'default' => 100, - 'min' => 0, + 'min' => 'i am no integer', + 'max' => 500 ]); $this->assertEquals(400, $update['headers']['status-code']); @@ -2388,7 +2385,8 @@ public function testAttributeUpdateInteger(array $data) ]), [ 'required' => false, 'default' => 100, - 'max' => 0, + 'min' => 0, + 'max' => 'i am no integer' ]); $this->assertEquals(400, $update['headers']['status-code']); @@ -2572,22 +2570,17 @@ public function testAttributeUpdateFloat(array $data) $this->assertEquals(123.456, $new['body']['min']); $this->assertEquals(2000, $new['body']['max']); - /** - * Test against failure - */ $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/float/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] ]), [ - 'required' => 'no boolean', + 'required' => false, 'default' => 123.456, 'min' => 0.0, - 'max' => 1000.0 ]); - $this->assertEquals(400, $update['headers']['status-code']); - $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); + $this->assertEquals(200, $update['headers']['status-code']); $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/float/' . $key, array_merge([ 'content-type' => 'application/json', @@ -2595,23 +2588,24 @@ public function testAttributeUpdateFloat(array $data) 'x-appwrite-key' => $this->getProject()['apiKey'] ]), [ 'required' => false, - 'default' => 'i am no integer', - 'min' => 0.0, - 'max' => 500.0 + 'default' => 23.456, + 'max' => 100.0, ]); - $this->assertEquals(400, $update['headers']['status-code']); - $this->assertEquals(AppwriteException::GENERAL_ARGUMENT_INVALID, $update['body']['type']); + $this->assertEquals(200, $update['headers']['status-code']); + /** + * Test against failure + */ $update = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/float/' . $key, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] ]), [ - 'required' => false, + 'required' => 'no boolean', 'default' => 123.456, - 'min' => 'i am no integer', - 'max' => 500.0 + 'min' => 0.0, + 'max' => 1000.0 ]); $this->assertEquals(400, $update['headers']['status-code']); @@ -2623,9 +2617,9 @@ public function testAttributeUpdateFloat(array $data) 'x-appwrite-key' => $this->getProject()['apiKey'] ]), [ 'required' => false, - 'default' => 123.456, + 'default' => 'i am no integer', 'min' => 0.0, - 'max' => 'i am no integer' + 'max' => 500.0 ]); $this->assertEquals(400, $update['headers']['status-code']); @@ -2638,7 +2632,8 @@ public function testAttributeUpdateFloat(array $data) ]), [ 'required' => false, 'default' => 123.456, - 'min' => 0.0, + 'min' => 'i am no integer', + 'max' => 500.0 ]); $this->assertEquals(400, $update['headers']['status-code']); @@ -2651,7 +2646,8 @@ public function testAttributeUpdateFloat(array $data) ]), [ 'required' => false, 'default' => 123.456, - 'max' => 0.0, + 'min' => 0.0, + 'max' => 'i am no integer' ]); $this->assertEquals(400, $update['headers']['status-code']); @@ -4114,4 +4110,1043 @@ public function testAttributeRenameRelationshipManyToMany() $this->cleanupRelationshipCollection(); } + + public function testBulkCreate(): void + { + // Create database + $database = $this->client->call(Client::METHOD_POST, '/databases', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'databaseId' => ID::unique(), + 'name' => 'Bulk Create Perms', + ]); + + $this->assertNotEmpty($database['body']['$id']); + + $databaseId = $database['body']['$id']; + + $collection = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Bulk Create Perms', + 'documentSecurity' => true, + 'permissions' => [ + Permission::create(Role::any()), + Permission::read(Role::any()), + Permission::delete(Role::any()), + Permission::update(Role::any()), + ], + ]); + + $this->assertEquals(201, $collection['headers']['status-code']); + + $data = [ + '$id' => $collection['body']['$id'], + 'databaseId' => $collection['body']['databaseId'] + ]; + + // Await attribute + $numberAttribute = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $data['$id'] . '/attributes/integer', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'number', + 'required' => true, + ]); + + $this->assertEquals(202, $numberAttribute['headers']['status-code']); + + sleep(1); + + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$data['$id']}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => [ + [ + '$id' => ID::unique(), + 'number' => 1, + ], + [ + '$id' => ID::unique(), + 'number' => 2, + ], + [ + '$id' => ID::unique(), + 'number' => 3, + ], + ], + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + $this->assertCount(3, $response['body']['documents']); + + $response = $this->client->call(Client::METHOD_GET, "/databases/{$databaseId}/collections/{$data['$id']}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(1, $response['body']['documents'][0]['number']); + $this->assertEquals(2, $response['body']['documents'][1]['number']); + $this->assertEquals(3, $response['body']['documents'][2]['number']); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(3, $response['body']['documents']); + + // TEST SUCCESS - $id is auto-assigned if not included in bulk documents + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$data['$id']}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => [ + [ + 'number' => 1, + ] + ], + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + + // TEST FAIL - Can't use data and document together + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$data['$id']}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'number' => 5 + ], + 'documents' => [ + [ + '$id' => ID::unique(), + 'number' => 1, + ] + ], + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + + // TEST FAIL - Can't use $documentId and create bulk documents + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$data['$id']}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documentId' => ID::unique(), + 'documents' => [ + [ + '$id' => ID::unique(), + 'number' => 1, + ] + ], + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + + // TEST FAIL - Can't include invalid ID in bulk documents + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$data['$id']}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => [ + [ + '$id' => '$invalid', + 'number' => 1, + ] + ], + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + + // TEST FAIL - Can't miss number in bulk documents + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$data['$id']}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => [ + [ + '$id' => ID::unique(), + 'number' => 1, + ], + [ + '$id' => ID::unique(), + ], + ], + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + + // TEST FAIL - Can't push more than APP_LIMIT_DATABASE_BATCH documents + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$data['$id']}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => array_fill(0, APP_LIMIT_DATABASE_BATCH + 1, [ + '$id' => ID::unique(), + 'number' => 1, + ]), + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + + // TEST FAIL - Can't include invalid permissions in nested documents + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$data['$id']}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => [ + [ + '$id' => ID::unique(), + '$permissions' => ['invalid'], + 'number' => 1, + ], + ], + ]); + + // TEST FAIL - Can't bulk create in a collection with relationships + $collection2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Bulk Related', + 'documentSecurity' => true, + 'permissions' => [], + ]); + + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $data['$id'] . '/attributes/relationship', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], $this->getHeaders()), [ + 'relatedCollectionId' => $collection2['body']['$id'], + 'type' => 'manyToOne', + 'twoWay' => true, + 'onDelete' => 'cascade', + 'key' => 'level2', + 'twoWayKey' => 'level1' + ]); + + $this->assertEquals(202, $response['headers']['status-code']); + + sleep(1); + + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$data['$id']}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => [ + ['$id' => ID::unique(), 'number' => 1,], + ['$id' => ID::unique(), 'number' => 2,], + ], + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + } + + public function testBulkUpdate(): void + { + // Create database + $database = $this->client->call(Client::METHOD_POST, '/databases', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'databaseId' => ID::unique(), + 'name' => 'Bulk Updates' + ]); + + $this->assertNotEmpty($database['body']['$id']); + + $databaseId = $database['body']['$id']; + + $collection = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Bulk Updates', + 'documentSecurity' => true, + 'permissions' => [ + Permission::create(Role::any()), + Permission::read(Role::any()), + Permission::delete(Role::any()), + Permission::update(Role::any()), + ], + ]); + + $this->assertEquals(201, $collection['headers']['status-code']); + + $data = [ + '$id' => $collection['body']['$id'], + 'databaseId' => $collection['body']['databaseId'] + ]; + + // Await attribute + $numberAttribute = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $data['$id'] . '/attributes/integer', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'number', + 'required' => true, + ]); + + $this->assertEquals(202, $numberAttribute['headers']['status-code']); + + // Wait for database worker to create attributes + sleep(2); + + // Create documents + $createBulkDocuments = function ($amount = 10) use ($data) { + $documents = []; + + for ($x = 1; $x <= $amount; $x++) { + $documents[] = [ + '$id' => ID::unique(), + 'number' => $x, + ]; + } + + $doc = $this->client->call(Client::METHOD_POST, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => $documents, + ]); + + $this->assertEquals(201, $doc['headers']['status-code']); + }; + + $createBulkDocuments(); + + // TEST: Update all documents + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'number' => 100, + '$permissions' => [ + Permission::read(Role::user($this->getUser()['$id'])), + Permission::update(Role::user($this->getUser()['$id'])), + Permission::delete(Role::user($this->getUser()['$id'])), + ] + ], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(10, $response['body']['documents']); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + Query::equal('number', [100])->toString(), + ]); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(10, $documents['body']['total']); + + $returnedDocuments = $response['body']['documents']; + $refetchedDocuments = $documents['body']['documents']; + + $this->assertEquals($returnedDocuments, $refetchedDocuments); + + foreach ($documents['body']['documents'] as $document) { + $this->assertEquals([ + Permission::read(Role::user($this->getUser()['$id'])), + Permission::update(Role::user($this->getUser()['$id'])), + Permission::delete(Role::user($this->getUser()['$id'])), + ], $document['$permissions']); + $this->assertEquals($collection['body']['$id'], $document['$collectionId']); + $this->assertEquals($data['databaseId'], $document['$databaseId']); + $this->assertEquals($document['number'], 100); + } + + // TEST: Check permissions persist + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'number' => 200 + ], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(10, $response['body']['documents']); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + Query::equal('number', [200])->toString(), + ]); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(10, $documents['body']['total']); + + foreach ($documents['body']['documents'] as $document) { + $this->assertEquals([ + Permission::read(Role::user($this->getUser()['$id'])), + Permission::update(Role::user($this->getUser()['$id'])), + Permission::delete(Role::user($this->getUser()['$id'])), + ], $document['$permissions']); + } + + // TEST: Update documents with limit + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'number' => 300 + ], + 'queries' => [ + Query::limit(5)->toString(), + ], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(5, $response['body']['documents']); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::equal('number', [200])->toString()] + ]); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(5, $documents['body']['total']); + + // TEST: Update documents with offset + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'number' => 300 + ], + 'queries' => [ + Query::offset(5)->toString(), + ], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(5, $response['body']['documents']); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::equal('number', [300])->toString()] + ]); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(10, $documents['body']['total']); + + // TEST: Update documents with equals filter + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'number' => 400 + ], + 'queries' => [ + Query::equal('number', [300])->toString(), + ], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(10, $response['body']['documents']); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::equal('number', [400])->toString()] + ]); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(10, $documents['body']['total']); + + // TEST: Fail - Can't bulk update in a collection with relationships + $collection2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Bulk Related', + 'documentSecurity' => true, + 'permissions' => [], + ]); + + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $data['$id'] . '/attributes/relationship', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], $this->getHeaders()), [ + 'relatedCollectionId' => $collection2['body']['$id'], + 'type' => 'manyToOne', + 'twoWay' => true, + 'onDelete' => 'cascade', + 'key' => 'level2', + 'twoWayKey' => 'level1' + ]); + + $this->assertEquals(202, $response['headers']['status-code']); + + sleep(1); + + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'number' => 500 + ], + 'queries' => [ + Query::equal('number', [300])->toString(), + ], + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + } + + public function testBulkUpsert(): void + { + // Create database + $database = $this->client->call(Client::METHOD_POST, '/databases', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'databaseId' => ID::unique(), + 'name' => 'Bulk Upserts' + ]); + + $this->assertNotEmpty($database['body']['$id']); + + $databaseId = $database['body']['$id']; + + $collection = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Bulk Upserts', + 'documentSecurity' => true, + 'permissions' => [ + Permission::create(Role::any()), + Permission::read(Role::any()), + Permission::delete(Role::any()), + Permission::update(Role::any()), + ], + ]); + + $this->assertEquals(201, $collection['headers']['status-code']); + + $data = [ + '$id' => $collection['body']['$id'], + 'databaseId' => $collection['body']['databaseId'] + ]; + + // Await attribute + $numberAttribute = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $data['$id'] . '/attributes/integer', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'number', + 'required' => true, + ]); + + $this->assertEquals(202, $numberAttribute['headers']['status-code']); + + // Wait for database worker to create attributes + sleep(2); + + // Create documents + $createBulkDocuments = function ($amount = 10) use ($data) { + $documents = []; + + for ($x = 1; $x <= $amount; $x++) { + $documents[] = [ + '$id' => "$x", + 'number' => $x, + ]; + } + + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => $documents, + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + + return $documents; + }; + + $documents = $createBulkDocuments(); + + // Update 1 document + $documents[\array_key_last($documents)]['number'] = 1000; + + // Add 1 document + $documents[] = ['number' => 11]; + + // TEST: Upsert all documents + $response = $this->client->call(Client::METHOD_PUT, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => $documents, + ]); + + // Unchanged docs are skipped. 2 documents should be returned, 1 updated and 1 inserted. + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(2, $response['body']['documents']); + $this->assertEquals(1000, $response['body']['documents'][0]['number']); + $this->assertEquals(11, $response['body']['documents'][1]['number']); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ])); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(11, $documents['body']['total']); + + foreach ($documents['body']['documents'] as $index => $document) { + $this->assertEquals($collection['body']['$id'], $document['$collectionId']); + $this->assertEquals($data['databaseId'], $document['$databaseId']); + switch ($index) { + case 9: + $this->assertEquals(1000, $document['number']); + break; + default: + $this->assertEquals($index + 1, $document['number']); + } + } + + // TEST: Upsert permissions + $response = $this->client->call(Client::METHOD_PUT, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => [ + [ + '$id' => '1', + 'number' => 1000, + ], + [ + '$id' => '10', + '$permissions' => [ + Permission::read(Role::user($this->getUser()['$id'])), + Permission::update(Role::user($this->getUser()['$id'])), + Permission::delete(Role::user($this->getUser()['$id'])), + ], + 'number' => 10, + ], + ], + ]); + + $this->assertEquals(1000, $response['body']['documents'][0]['number']); + $this->assertEquals([], $response['body']['documents'][0]['$permissions']); + $this->assertEquals([ + Permission::read(Role::user($this->getUser()['$id'])), + Permission::update(Role::user($this->getUser()['$id'])), + Permission::delete(Role::user($this->getUser()['$id'])), + ], $response['body']['documents'][1]['$permissions']); + + // TEST: Fail - Can't bulk upsert in a collection with relationships + $collection2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Bulk Related', + 'documentSecurity' => true, + 'permissions' => [], + ]); + + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $data['$id'] . '/attributes/relationship', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], $this->getHeaders()), [ + 'relatedCollectionId' => $collection2['body']['$id'], + 'type' => 'manyToOne', + 'twoWay' => true, + 'onDelete' => 'cascade', + 'key' => 'level2', + 'twoWayKey' => 'level1' + ]); + + $this->assertEquals(202, $response['headers']['status-code']); + + sleep(1); + + $response = $this->client->call(Client::METHOD_PUT, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => [ + [ + '$id' => '1', + 'number' => 1000, + ], + ], + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + } + + public function testBulkDelete(): void + { + // Create database + $database = $this->client->call(Client::METHOD_POST, '/databases', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'databaseId' => ID::unique(), + 'name' => 'Bulk Deletes' + ]); + + $this->assertNotEmpty($database['body']['$id']); + + $databaseId = $database['body']['$id']; + + $collection = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Bulk Deletes', + 'documentSecurity' => false, + 'permissions' => [ + Permission::create(Role::any()), + Permission::read(Role::any()), + Permission::delete(Role::any()), + ], + ]); + + $this->assertEquals(201, $collection['headers']['status-code']); + + $data = [ + '$id' => $collection['body']['$id'], + 'databaseId' => $collection['body']['databaseId'] + ]; + + // Await attribute + $numberAttribute = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $data['$id'] . '/attributes/integer', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'number', + 'required' => true, + ]); + + $this->assertEquals(202, $numberAttribute['headers']['status-code']); + + // wait for database worker to create attributes + sleep(2); + + // Create documents + $createBulkDocuments = function ($amount = 11) use ($data) { + $documents = []; + + for ($x = 0; $x < $amount; $x++) { + $documents[] = [ + '$id' => ID::unique(), + 'number' => $x, + ]; + } + + $doc = $this->client->call(Client::METHOD_POST, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => $documents, + ]); + + $this->assertEquals(201, $doc['headers']['status-code']); + }; + + $createBulkDocuments(); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(11, $documents['body']['total']); + + // TEST: Delete all documents + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(11, $response['body']['total']); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(0, $documents['body']['total']); + + // TEST: Delete documents with query + $createBulkDocuments(); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(11, $documents['body']['total']); + + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::lessThan('number', 5)->toString(), + ], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(5, $response['body']['total']); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(6, $documents['body']['total']); + + foreach ($documents['body']['documents'] as $document) { + $this->assertGreaterThanOrEqual(5, $document['number']); + } + + // Cleanup + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(6, $response['body']['total']); + + // SUCCESS: Delete documents with query + $createBulkDocuments(); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(11, $documents['body']['total']); + + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::lessThan('number', 5)->toString(), + ], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(5, $response['body']['total']); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(6, $documents['body']['total']); + + // Cleanup + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(6, $response['body']['total']); + + // SUCCESS: Delete Documents with limit query + $createBulkDocuments(); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(11, $documents['body']['total']); + + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::limit(2)->toString(), + ], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(2, $response['body']['total']); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(9, $documents['body']['total']); + + // Cleanup + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(9, $response['body']['total']); + + // SUCCESS: Delete Documents with offset query + $createBulkDocuments(); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(11, $documents['body']['total']); + + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::offset(5)->toString(), + ], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(6, $response['body']['total']); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(5, $documents['body']['total']); + + $lastDoc = end($documents['body']['documents']); + + $this->assertNotEmpty($lastDoc); + $this->assertEquals(4, $lastDoc['number']); + + // Cleanup + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(5, $response['body']['total']); + + // SUCCESS: Delete 100 documents + $createBulkDocuments(100); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(100, $documents['body']['total']); + + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(100, $response['body']['total']); + + $documents = $this->client->call(Client::METHOD_GET, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $documents['headers']['status-code']); + $this->assertEquals(0, $documents['body']['total']); + + // TEST: Fail - Can't bulk delete in a collection with relationships + $collection2 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Bulk Related', + 'documentSecurity' => true, + 'permissions' => [], + ]); + + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $data['$id'] . '/attributes/relationship', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], $this->getHeaders()), [ + 'relatedCollectionId' => $collection2['body']['$id'], + 'type' => 'manyToOne', + 'twoWay' => true, + 'onDelete' => 'cascade', + 'key' => 'level2', + 'twoWayKey' => 'level1' + ]); + + $this->assertEquals(202, $response['headers']['status-code']); + + sleep(1); + + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(400, $response['headers']['status-code']); + } } diff --git a/tests/e2e/Services/Functions/FunctionsBase.php b/tests/e2e/Services/Functions/FunctionsBase.php index 2d94b9f0e30..a1bb8f2b21d 100644 --- a/tests/e2e/Services/Functions/FunctionsBase.php +++ b/tests/e2e/Services/Functions/FunctionsBase.php @@ -2,234 +2,207 @@ namespace Tests\E2E\Services\Functions; +use Appwrite\Tests\Async; +use CURLFile; use Tests\E2E\Client; use Utopia\CLI\Console; trait FunctionsBase { + use Async; + protected string $stdout = ''; protected string $stderr = ''; - protected function packageCode($folder) + protected function setupFunction(mixed $params): string { - Console::execute('cd ' . realpath(__DIR__ . "/../../../resources/functions") . "/$folder && tar --exclude code.tar.gz -czf code.tar.gz .", '', $this->stdout, $this->stderr); + $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]), $params); + + $this->assertEquals($function['headers']['status-code'], 201, 'Setup function failed with status code: ' . $function['headers']['status-code'] . ' and response: ' . json_encode($function['body'], JSON_PRETTY_PRINT)); + + $functionId = $function['body']['$id']; + + return $functionId; } - protected function awaitDeploymentIsBuilt($functionId, $deploymentId, $checkForSuccess = true): void + protected function setupDeployment(string $functionId, mixed $params): string { - while (true) { - $deployment = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/deployments/' . $deploymentId, [ + $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ + 'content-type' => 'multipart/form-data', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]), $params); + $this->assertEquals($deployment['headers']['status-code'], 202, 'Setup deployment failed with status code: ' . $deployment['headers']['status-code'] . ' and response: ' . json_encode($deployment['body'], JSON_PRETTY_PRINT)); + $deploymentId = $deployment['body']['$id'] ?? ''; + + $this->assertEventually(function () use ($functionId, $deploymentId) { + $deployment = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/deployments/' . $deploymentId, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], - ]); + ])); + $this->assertEquals('ready', $deployment['body']['status'], 'Deployment status is not ready, deployment: ' . json_encode($deployment['body'], JSON_PRETTY_PRINT)); + }, 50000, 500); - if ( - $deployment['headers']['status-code'] >= 400 - || \in_array($deployment['body']['status'], ['ready', 'failed']) - ) { - break; - } + return $deploymentId; + } - \sleep(1); - } + protected function cleanupFunction(string $functionId): void + { + $function = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ])); + + $this->assertEquals($function['headers']['status-code'], 204); + } + + protected function createFunction(mixed $params): mixed + { + $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $function; + } + + protected function createVariable(string $functionId, mixed $params): mixed + { + $variable = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/variables', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $variable; + } + + protected function getFunction(string $functionId): mixed + { + $function = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + return $function; + } + + protected function getDeployment(string $functionId, string $deploymentId): mixed + { + $deployment = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/deployments/' . $deploymentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + return $deployment; + } + + protected function getExecution(string $functionId, $executionId): mixed + { + $execution = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions/' . $executionId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + return $execution; + } + + protected function listFunctions(mixed $params = []): mixed + { + $functions = $this->client->call(Client::METHOD_GET, '/functions', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $functions; + } + + protected function listDeployments(string $functionId, $params = []): mixed + { + $deployments = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/deployments', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $deployments; + } + + protected function listExecutions(string $functionId, mixed $params = []): mixed + { + $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $executions; + } + + protected function packageFunction(string $function): CURLFile + { + $folderPath = realpath(__DIR__ . '/../../../resources/functions') . "/$function"; + $tarPath = "$folderPath/code.tar.gz"; + + Console::execute("cd $folderPath && tar --exclude code.tar.gz -czf code.tar.gz .", '', $this->stdout, $this->stderr); - if ($checkForSuccess) { - $this->assertEquals(200, $deployment['headers']['status-code']); - $this->assertEquals('ready', $deployment['body']['status'], \json_encode($deployment['body'])); + if (filesize($tarPath) > 1024 * 1024 * 5) { + throw new \Exception('Code package is too large. Use the chunked upload method instead.'); } + + return new CURLFile($tarPath, 'application/x-gzip', \basename($tarPath)); + } + + protected function createDeployment(string $functionId, mixed $params = []): mixed + { + $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ + 'content-type' => 'multipart/form-data', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $deployment; + } + + protected function getFunctionUsage(string $functionId, mixed $params): mixed + { + $usage = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/usage', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $usage; + } + + protected function getTemplate(string $templateId) + { + $template = $this->client->call(Client::METHOD_GET, '/functions/templates/' . $templateId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + return $template; + } + + protected function createExecution(string $functionId, mixed $params = []): mixed + { + $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), $params); + + return $execution; } - // /** - // * @depends testCreateTeam - // */ - // public function testGetTeam($data):array - // { - // $id = $data['teamUid'] ?? ''; - - // /** - // * Test for SUCCESS - // */ - // $response = $this->client->call(Client::METHOD_GET, '/teams/'.$id, array_merge([ - // 'content-type' => 'application/json', - // 'x-appwrite-project' => $this->getProject()['$id'], - // ], $this->getHeaders())); - - // $this->assertEquals(200, $response['headers']['status-code']); - // $this->assertNotEmpty($response['body']['$id']); - // $this->assertEquals('Arsenal', $response['body']['name']); - // $this->assertGreaterThan(-1, $response['body']['total']); - // $this->assertIsInt($response['body']['total']); - // $this->assertIsInt($response['body']['dateCreated']); - - // /** - // * Test for FAILURE - // */ - - // return []; - // } - - // /** - // * @depends testCreateTeam - // */ - // public function testListTeams($data):array - // { - // /** - // * Test for SUCCESS - // */ - // $response = $this->client->call(Client::METHOD_GET, '/teams', array_merge([ - // 'content-type' => 'application/json', - // 'x-appwrite-project' => $this->getProject()['$id'], - // ], $this->getHeaders())); - - // $this->assertEquals(200, $response['headers']['status-code']); - // $this->assertGreaterThan(0, $response['body']['total']); - // $this->assertIsInt($response['body']['total']); - // $this->assertCount(3, $response['body']['teams']); - - // $response = $this->client->call(Client::METHOD_GET, '/teams', array_merge([ - // 'content-type' => 'application/json', - // 'x-appwrite-project' => $this->getProject()['$id'], - // ], $this->getHeaders()), [ - // 'limit' => 2, - // ]); - - // $this->assertEquals(200, $response['headers']['status-code']); - // $this->assertGreaterThan(0, $response['body']['total']); - // $this->assertIsInt($response['body']['total']); - // $this->assertCount(2, $response['body']['teams']); - - // $response = $this->client->call(Client::METHOD_GET, '/teams', array_merge([ - // 'content-type' => 'application/json', - // 'x-appwrite-project' => $this->getProject()['$id'], - // ], $this->getHeaders()), [ - // 'offset' => 1, - // ]); - - // $this->assertEquals(200, $response['headers']['status-code']); - // $this->assertGreaterThan(0, $response['body']['total']); - // $this->assertIsInt($response['body']['total']); - // $this->assertCount(2, $response['body']['teams']); - - // $response = $this->client->call(Client::METHOD_GET, '/teams', array_merge([ - // 'content-type' => 'application/json', - // 'x-appwrite-project' => $this->getProject()['$id'], - // ], $this->getHeaders()), [ - // 'search' => 'Manchester', - // ]); - - // $this->assertEquals(200, $response['headers']['status-code']); - // $this->assertGreaterThan(0, $response['body']['total']); - // $this->assertIsInt($response['body']['total']); - // $this->assertCount(1, $response['body']['teams']); - // $this->assertEquals('Manchester United', $response['body']['teams'][0]['name']); - - // $response = $this->client->call(Client::METHOD_GET, '/teams', array_merge([ - // 'content-type' => 'application/json', - // 'x-appwrite-project' => $this->getProject()['$id'], - // ], $this->getHeaders()), [ - // 'search' => 'United', - // ]); - - // $this->assertEquals(200, $response['headers']['status-code']); - // $this->assertGreaterThan(0, $response['body']['total']); - // $this->assertIsInt($response['body']['total']); - // $this->assertCount(1, $response['body']['teams']); - // $this->assertEquals('Manchester United', $response['body']['teams'][0]['name']); - - // /** - // * Test for FAILURE - // */ - - // return []; - // } - - // public function testUpdateTeam():array - // { - // /** - // * Test for SUCCESS - // */ - // $response = $this->client->call(Client::METHOD_POST, '/teams', array_merge([ - // 'content-type' => 'application/json', - // 'x-appwrite-project' => $this->getProject()['$id'], - // ], $this->getHeaders()), [ - // 'name' => 'Demo' - // ]); - - // $this->assertEquals(201, $response['headers']['status-code']); - // $this->assertNotEmpty($response['body']['$id']); - // $this->assertEquals('Demo', $response['body']['name']); - // $this->assertGreaterThan(-1, $response['body']['total']); - // $this->assertIsInt($response['body']['total']); - // $this->assertIsInt($response['body']['dateCreated']); - - // $response = $this->client->call(Client::METHOD_PUT, '/teams/'.$response['body']['$id'], array_merge([ - // 'content-type' => 'application/json', - // 'x-appwrite-project' => $this->getProject()['$id'], - // ], $this->getHeaders()), [ - // 'name' => 'Demo New' - // ]); - - // $this->assertEquals(200, $response['headers']['status-code']); - // $this->assertNotEmpty($response['body']['$id']); - // $this->assertEquals('Demo New', $response['body']['name']); - // $this->assertGreaterThan(-1, $response['body']['total']); - // $this->assertIsInt($response['body']['total']); - // $this->assertIsInt($response['body']['dateCreated']); - - // /** - // * Test for FAILURE - // */ - // $response = $this->client->call(Client::METHOD_PUT, '/teams/'.$response['body']['$id'], array_merge([ - // 'content-type' => 'application/json', - // 'x-appwrite-project' => $this->getProject()['$id'], - // ], $this->getHeaders()), [ - // ]); - - // $this->assertEquals(400, $response['headers']['status-code']); - - // return []; - // } - - // public function testDeleteTeam():array - // { - // /** - // * Test for SUCCESS - // */ - // $response = $this->client->call(Client::METHOD_POST, '/teams', array_merge([ - // 'content-type' => 'application/json', - // 'x-appwrite-project' => $this->getProject()['$id'], - // ], $this->getHeaders()), [ - // 'name' => 'Demo' - // ]); - - // $teamUid = $response['body']['$id']; - - // $this->assertEquals(201, $response['headers']['status-code']); - // $this->assertNotEmpty($response['body']['$id']); - // $this->assertEquals('Demo', $response['body']['name']); - // $this->assertGreaterThan(-1, $response['body']['total']); - // $this->assertIsInt($response['body']['total']); - // $this->assertIsInt($response['body']['dateCreated']); - - // $response = $this->client->call(Client::METHOD_DELETE, '/teams/'.$teamUid, array_merge([ - // 'content-type' => 'application/json', - // 'x-appwrite-project' => $this->getProject()['$id'], - // ], $this->getHeaders())); - - // $this->assertEquals(204, $response['headers']['status-code']); - // $this->assertEmpty($response['body']); - - // /** - // * Test for FAILURE - // */ - // $response = $this->client->call(Client::METHOD_GET, '/teams/'.$teamUid, array_merge([ - // 'content-type' => 'application/json', - // 'x-appwrite-project' => $this->getProject()['$id'], - // ], $this->getHeaders())); - - // $this->assertEquals(404, $response['headers']['status-code']); - - // return []; - // } + protected function deleteFunction(string $functionId): mixed + { + $function = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + return $function; + } } diff --git a/tests/e2e/Services/Functions/FunctionsConsoleClientTest.php b/tests/e2e/Services/Functions/FunctionsConsoleClientTest.php index 8cb7f6f8693..3a02cbcba23 100644 --- a/tests/e2e/Services/Functions/FunctionsConsoleClientTest.php +++ b/tests/e2e/Services/Functions/FunctionsConsoleClientTest.php @@ -13,13 +13,11 @@ class FunctionsConsoleClientTest extends Scope { use ProjectCustom; use SideConsole; + use FunctionsBase; public function testCreateFunction(): array { - $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $function = $this->createFunction([ 'functionId' => ID::unique(), 'name' => 'Test', 'execute' => [Role::user($this->getUser()['$id'])->toString()], @@ -35,10 +33,9 @@ public function testCreateFunction(): array $this->assertEquals(201, $function['headers']['status-code']); - $response = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $functionId = $function['body']['$id']; + + $function2 = $this->createFunction([ 'functionId' => ID::unique(), 'name' => 'Test Failure', 'execute' => ['some-random-string'], @@ -46,73 +43,59 @@ public function testCreateFunction(): array 'entrypoint' => 'index.php', ]); - $this->assertEquals(400, $response['headers']['status-code']); + $this->assertEquals(400, $function2['headers']['status-code']); return [ - 'functionId' => $function['body']['$id'] + 'functionId' => $functionId, ]; } /** * @depends testCreateFunction */ - public function testGetCollectionUsage(array $data) + public function testFunctionUsage(array $data) { /** - * Test for FAILURE + * Test for SUCCESS */ - - $response = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/usage', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'] - ], $this->getHeaders()), [ - 'range' => '232h' - ]); - - $this->assertEquals(400, $response['headers']['status-code']); - - $response = $this->client->call(Client::METHOD_GET, '/functions/randomFunctionId/usage', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'] - ], $this->getHeaders()), [ + $usage = $this->getFunctionUsage($data['functionId'], [ 'range' => '24h' ]); - - $this->assertEquals(404, $response['headers']['status-code']); + $this->assertEquals(200, $usage['headers']['status-code']); + $this->assertEquals(19, count($usage['body'])); + $this->assertEquals('24h', $usage['body']['range']); + $this->assertIsNumeric($usage['body']['deploymentsTotal']); + $this->assertIsNumeric($usage['body']['deploymentsStorageTotal']); + $this->assertIsNumeric($usage['body']['buildsTotal']); + $this->assertIsNumeric($usage['body']['buildsStorageTotal']); + $this->assertIsNumeric($usage['body']['buildsTimeTotal']); + $this->assertIsNumeric($usage['body']['buildsMbSecondsTotal']); + $this->assertIsNumeric($usage['body']['executionsTotal']); + $this->assertIsNumeric($usage['body']['executionsTimeTotal']); + $this->assertIsNumeric($usage['body']['executionsMbSecondsTotal']); + $this->assertIsArray($usage['body']['deployments']); + $this->assertIsArray($usage['body']['deploymentsStorage']); + $this->assertIsArray($usage['body']['builds']); + $this->assertIsArray($usage['body']['buildsTime']); + $this->assertIsArray($usage['body']['buildsStorage']); + $this->assertIsArray($usage['body']['buildsTime']); + $this->assertIsArray($usage['body']['buildsMbSeconds']); + $this->assertIsArray($usage['body']['executions']); + $this->assertIsArray($usage['body']['executionsTime']); + $this->assertIsArray($usage['body']['executionsMbSeconds']); /** - * Test for SUCCESS + * Test for FAILURE */ + $usage = $this->getFunctionUsage($data['functionId'], [ + 'range' => '232h' + ]); + $this->assertEquals(400, $usage['headers']['status-code']); - $response = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/usage', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'] - ], $this->getHeaders()), [ + $usage = $this->getFunctionUsage('randomFunctionId', [ 'range' => '24h' ]); - - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals(19, count($response['body'])); - $this->assertEquals('24h', $response['body']['range']); - $this->assertIsNumeric($response['body']['deploymentsTotal']); - $this->assertIsNumeric($response['body']['deploymentsStorageTotal']); - $this->assertIsNumeric($response['body']['buildsTotal']); - $this->assertIsNumeric($response['body']['buildsStorageTotal']); - $this->assertIsNumeric($response['body']['buildsTimeTotal']); - $this->assertIsNumeric($response['body']['buildsMbSecondsTotal']); - $this->assertIsNumeric($response['body']['executionsTotal']); - $this->assertIsNumeric($response['body']['executionsTimeTotal']); - $this->assertIsNumeric($response['body']['executionsMbSecondsTotal']); - $this->assertIsArray($response['body']['deployments']); - $this->assertIsArray($response['body']['deploymentsStorage']); - $this->assertIsArray($response['body']['builds']); - $this->assertIsArray($response['body']['buildsTime']); - $this->assertIsArray($response['body']['buildsStorage']); - $this->assertIsArray($response['body']['buildsTime']); - $this->assertIsArray($response['body']['buildsMbSeconds']); - $this->assertIsArray($response['body']['executions']); - $this->assertIsArray($response['body']['executionsTime']); - $this->assertIsArray($response['body']['executionsMbSeconds']); + $this->assertEquals(404, $usage['headers']['status-code']); } /** @@ -123,60 +106,60 @@ public function testCreateFunctionVariable(array $data) /** * Test for SUCCESS */ + $variable = $this->createVariable( + $data['functionId'], + [ + 'key' => 'APP_TEST', + 'value' => 'TESTINGVALUE' + ] + ); - $response = $this->client->call(Client::METHOD_POST, '/functions/' . $data['functionId'] . '/variables', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'key' => 'APP_TEST', - 'value' => 'TESTINGVALUE' - ]); + $this->assertEquals(201, $variable['headers']['status-code']); - $this->assertEquals(201, $response['headers']['status-code']); - $variableId = $response['body']['$id']; + $variableId = $variable['body']['$id']; /** * Test for FAILURE */ + // Test for duplicate key + $variable = $this->createVariable( + $data['functionId'], + [ + 'key' => 'APP_TEST', + 'value' => 'ANOTHERTESTINGVALUE' + ] + ); - $response = $this->client->call(Client::METHOD_POST, '/functions/' . $data['functionId'] . '/variables', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'key' => 'APP_TEST', - 'value' => 'ANOTHER_TESTINGVALUE' - ]); - - $this->assertEquals(409, $response['headers']['status-code']); + $this->assertEquals(409, $variable['headers']['status-code']); - return array_merge( - $data, + // Test for invalid key + $variable = $this->createVariable( + $data['functionId'], [ - 'variableId' => $variableId + 'key' => str_repeat("A", 256), + 'value' => 'TESTINGVALUE' ] ); - $longKey = str_repeat("A", 256); - $response = $this->client->call(Client::METHOD_POST, '/functions/' . $data['functionId'] . '/variables', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'key' => $longKey, - 'value' => 'TESTINGVALUE' - ]); + $this->assertEquals(400, $variable['headers']['status-code']); - $this->assertEquals(400, $response['headers']['status-code']); + // Test for invalid value + $variable = $this->createVariable( + $data['functionId'], + [ + 'key' => 'LONGKEY', + 'value' => str_repeat("#", 8193), + ] + ); - $longValue = str_repeat("#", 8193); - $response = $this->client->call(Client::METHOD_POST, '/functions/' . $data['functionId'] . '/variables', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'key' => 'LONGKEY', - 'value' => $longValue - ]); + $this->assertEquals(400, $variable['headers']['status-code']); - $this->assertEquals(400, $response['headers']['status-code']); + return array_merge( + $data, + [ + 'variableId' => $variableId + ] + ); } /** diff --git a/tests/e2e/Services/Functions/FunctionsCustomClientTest.php b/tests/e2e/Services/Functions/FunctionsCustomClientTest.php index 92b7c330347..55db081720f 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomClientTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomClientTest.php @@ -2,17 +2,13 @@ namespace Tests\E2E\Services\Functions; -use Appwrite\Tests\Retry; -use CURLFile; use Tests\E2E\Client; use Tests\E2E\Scopes\ProjectCustom; use Tests\E2E\Scopes\Scope; use Tests\E2E\Scopes\SideClient; -use Utopia\Config\Config; -use Utopia\Database\Document; use Utopia\Database\Helpers\ID; use Utopia\Database\Helpers\Role; -use Utopia\Database\Query; +use Utopia\System\System; class FunctionsCustomClientTest extends Scope { @@ -20,15 +16,12 @@ class FunctionsCustomClientTest extends Scope use ProjectCustom; use SideClient; - public function testCreate(): array + public function testCreateFunction() { /** - * Test for SUCCESS + * Test for FAILURE */ - $response1 = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $function = $this->createFunction([ 'functionId' => ID::unique(), 'name' => 'Test', 'events' => [ @@ -38,23 +31,15 @@ public function testCreate(): array 'schedule' => '0 0 1 1 *', 'timeout' => 10, ]); - - $this->assertEquals(401, $response1['headers']['status-code']); - - return []; + $this->assertEquals(401, $function['headers']['status-code']); } - #[Retry(count: 2)] - public function testCreateExecution(): array + public function testCreateExecution() { /** * Test for SUCCESS */ - $function = $this->client->call(Client::METHOD_POST, '/functions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test', 'execute' => [Role::user($this->getUser()['$id'])->toString()], @@ -64,291 +49,40 @@ public function testCreateExecution(): array 'users.*.create', 'users.*.delete', ], - 'schedule' => '* * * * *', // execute every minute 'timeout' => 10, ]); - - $this->assertEquals(201, $function['headers']['status-code']); - - /** Create Variables */ - $variable = $this->client->call(Client::METHOD_POST, '/functions/' . $function['body']['$id'] . '/variables', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], [ - 'key' => 'funcKey1', - 'value' => 'funcValue1', - ]); - - $variable2 = $this->client->call(Client::METHOD_POST, '/functions/' . $function['body']['$id'] . '/variables', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], [ - 'key' => 'funcKey2', - 'value' => 'funcValue2', - ]); - - $variable3 = $this->client->call(Client::METHOD_POST, '/functions/' . $function['body']['$id'] . '/variables', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], [ - 'key' => 'funcKey3', - 'value' => 'funcValue3', - ]); - - $this->assertEquals(201, $variable['headers']['status-code']); - $this->assertEquals(201, $variable2['headers']['status-code']); - $this->assertEquals(201, $variable3['headers']['status-code']); - - $folder = 'php'; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); - - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $function['body']['$id'] . '/deployments', [ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], [ + $this->setupDeployment($functionId, [ 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', \basename($code)), + 'code' => $this->packageFunction('php'), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - - $this->assertEquals(202, $deployment['headers']['status-code']); - - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId); - - $function = $this->client->call(Client::METHOD_PATCH, '/functions/' . $function['body']['$id'] . '/deployments/' . $deploymentId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); - - $this->assertEquals(200, $function['headers']['status-code']); - - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $function['body']['$id'] . '/executions', [ + // Deny create async execution as guest + $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], [ 'async' => true, ]); - $this->assertEquals(401, $execution['headers']['status-code']); - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $function['body']['$id'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + // Allow create async execution as user + $execution = $this->createExecution($functionId, [ 'async' => true, ]); - $this->assertEquals(202, $execution['headers']['status-code']); - // Wait for the first scheduled execution to be created - sleep(90); - - $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $function['body']['$id'] . '/executions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ]); - - $this->assertEquals(200, $executions['headers']['status-code']); - $this->assertCount(2, $executions['body']['executions']); - $this->assertIsArray($executions['body']['executions']); - $this->assertEquals($executions['body']['executions'][1]['trigger'], 'schedule'); - $this->assertEquals($executions['body']['executions'][1]['status'], 'completed'); - $this->assertEquals($executions['body']['executions'][1]['responseStatusCode'], 200); - $this->assertEquals($executions['body']['executions'][1]['responseBody'], ''); - $this->assertNotEmpty($executions['body']['executions'][1]['logs'], ''); - $this->assertNotEmpty($executions['body']['executions'][1]['errors'], ''); - $this->assertGreaterThan(0, $executions['body']['executions'][1]['duration']); - - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $function['body']['$id'], [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); - - $this->assertEquals(204, $response['headers']['status-code']); - - return []; + $this->cleanupFunction($functionId); } - public function testCreateScheduledExecution(): void - { - /** - * Test for SUCCESS - */ - $function = $this->client->call(Client::METHOD_POST, '/functions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], [ - 'functionId' => ID::unique(), - 'name' => 'Test', - 'execute' => [Role::user($this->getUser()['$id'])->toString()], - 'runtime' => 'php-8.0', - 'entrypoint' => 'index.php', - 'timeout' => 10, - ]); - - $this->assertEquals(201, $function['headers']['status-code']); - $folder = 'php'; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); - - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $function['body']['$id'] . '/deployments', [ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], [ - 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', \basename($code)), - 'activate' => true - ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - $this->assertEquals(202, $deployment['headers']['status-code']); - - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId, true); - - // Schedule execution for the future - \date_default_timezone_set('UTC'); - $futureTime = (new \DateTime())->add(new \DateInterval('PT2M')); - $futureTime->setTime($futureTime->format('H'), $futureTime->format('i'), 0, 0); - - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $function['body']['$id'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'async' => true, - 'scheduledAt' => $futureTime->format(\DateTime::ATOM), - 'path' => '/custom-path', - 'method' => 'PATCH', - 'body' => 'custom-body', - 'headers' => [ - 'x-custom-header' => 'custom-value' - ] - ]); - - $this->assertEquals(202, $execution['headers']['status-code']); - $this->assertEquals('scheduled', $execution['body']['status']); - $this->assertEquals('PATCH', $execution['body']['requestMethod']); - $this->assertEquals('/custom-path', $execution['body']['requestPath']); - $this->assertCount(0, $execution['body']['requestHeaders']); - - $executionId = $execution['body']['$id']; - - $start = \microtime(true); - while (true) { - $execution = $this->client->call(Client::METHOD_GET, '/functions/' . $function['body']['$id'] . '/executions/' . $executionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ]); - - if ($execution['body']['status'] === 'completed') { - break; - } - - $timeout = 60 + 60 + 15; // up to 1 minute round up, 1 minute schedule postpone, 15s cold start safety - if (\microtime(true) - $start > $timeout) { - $this->fail('Scheduled execution did not complete with status ' . $execution['body']['status'] . ': ' . \json_encode($execution)); - } - - usleep(500000); // 0.5 seconds - } - - $this->assertEquals(200, $execution['headers']['status-code']); - $this->assertEquals(200, $execution['body']['responseStatusCode']); - $this->assertEquals('completed', $execution['body']['status']); - $this->assertEquals('/custom-path', $execution['body']['requestPath']); - $this->assertEquals('PATCH', $execution['body']['requestMethod']); - $this->assertStringContainsString('body-is-custom-body', $execution['body']['logs']); - $this->assertStringContainsString('custom-header-is-custom-value', $execution['body']['logs']); - $this->assertStringContainsString('method-is-patch', $execution['body']['logs']); - $this->assertStringContainsString('path-is-/custom-path', $execution['body']['logs']); - $this->assertStringContainsString('user-is-' . $this->getUser()['$id'], $execution['body']['logs']); - $this->assertStringContainsString('jwt-is-valid', $execution['body']['logs']); - $this->assertGreaterThan(0, $execution['body']['duration']); - - /* Test for FAILURE */ - - // Schedule synchronous execution - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $function['body']['$id'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'async' => false, - 'scheduledAt' => $futureTime->format(\DateTime::ATOM), - ]); - - $this->assertEquals(400, $execution['headers']['status-code']); - - // Execution with seconds precision - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $function['body']['$id'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'async' => true, - 'scheduledAt' => (new \DateTime("2100-12-08 16:12:02"))->format(\DateTime::ATOM) - ]); - - $this->assertEquals(400, $execution['headers']['status-code']); - - // Execution with milliseconds precision - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $function['body']['$id'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'async' => true, - 'scheduledAt' => (new \DateTime("2100-12-08 16:12:02.255"))->format(\DateTime::ATOM) - ]); - - $this->assertEquals(400, $execution['headers']['status-code']); - - // Execution too soon - $futureTime = (new \DateTime())->add(new \DateInterval('PT1M')); - $futureTime->setTime($futureTime->format('H'), $futureTime->format('i'), 0, 0); - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $function['body']['$id'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'async' => true, - 'scheduledAt' => $futureTime->format(\DateTime::ATOM), - ]); - - $this->assertEquals(400, $execution['headers']['status-code']); - - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $function['body']['$id'], [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); - - $this->assertEquals(204, $response['headers']['status-code']); - } public function testCreateCustomExecution(): array { /** * Test for SUCCESS */ - $projectId = $this->getProject()['$id']; - $apikey = $this->getProject()['apiKey']; - - $function = $this->client->call(Client::METHOD_POST, '/functions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test', 'execute' => [Role::any()->toString()], @@ -356,77 +90,16 @@ public function testCreateCustomExecution(): array 'entrypoint' => 'index.php', 'timeout' => 10, ]); - - $functionId = $function['body']['$id'] ?? ''; - - $this->assertEquals(201, $function['headers']['status-code']); - - /** Create Variables */ - $variable = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/variables', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ - 'key' => 'funcKey1', - 'value' => 'funcValue1', - ]); - - $variable2 = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/variables', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ - 'key' => 'funcKey2', - 'value' => 'funcValue2', - ]); - - $variable3 = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/variables', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ - 'key' => 'funcKey3', - 'value' => 'funcValue3', - ]); - - $this->assertEquals(201, $variable['headers']['status-code']); - $this->assertEquals(201, $variable2['headers']['status-code']); - $this->assertEquals(201, $variable3['headers']['status-code']); - - $folder = 'php-fn'; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); - - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', [ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ + $deploymentId = $this->setupDeployment($functionId, [ 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', \basename($code)), //different tarball names intentional + 'code' => $this->packageFunction('php-fn'), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId); - - $function = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployments/' . $deploymentId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], []); - - $this->assertEquals(200, $function['headers']['status-code']); - - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - ], $this->getHeaders()), [ + $execution = $this->createExecution($functionId, [ 'body' => 'foobar', - 'async' => false + 'async' => 'false' ]); - $output = json_decode($execution['body']['responseBody'], true); $this->assertEquals(201, $execution['headers']['status-code']); $this->assertEquals(200, $execution['body']['responseStatusCode']); @@ -439,36 +112,25 @@ public function testCreateCustomExecution(): array $this->assertEquals('PHP', $output['APPWRITE_FUNCTION_RUNTIME_NAME']); $this->assertEquals('8.0', $output['APPWRITE_FUNCTION_RUNTIME_VERSION']); $this->assertEquals(APP_VERSION_STABLE, $output['APPWRITE_VERSION']); - $this->assertEquals('default', $output['APPWRITE_REGION']); + $this->assertEquals(System::getEnv('_APP_REGION', 'default'), $output['APPWRITE_REGION']); $this->assertEquals('', $output['APPWRITE_FUNCTION_EVENT']); $this->assertEquals('foobar', $output['APPWRITE_FUNCTION_DATA']); $this->assertEquals($this->getUser()['$id'], $output['APPWRITE_FUNCTION_USER_ID']); $this->assertNotEmpty($output['APPWRITE_FUNCTION_JWT']); - $this->assertEquals($projectId, $output['APPWRITE_FUNCTION_PROJECT_ID']); + $this->assertEquals($this->getProject()['$id'], $output['APPWRITE_FUNCTION_PROJECT_ID']); - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - ], $this->getHeaders()), [ + $execution = $this->createExecution($functionId, [ 'body' => 'foobar', 'async' => true ]); - + $executionId = $execution['body']['$id']; $this->assertEquals(202, $execution['headers']['status-code']); - $executionId = $execution['body']['$id'] ?? ''; - - sleep(5); - - $execution = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions/' . $executionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ]); - - $this->assertEmpty($execution['body']['responseBody']); - $this->assertEquals(200, $execution['headers']['status-code']); - $this->assertEquals(200, $execution['body']['responseStatusCode']); + $this->assertEventually(function () use ($functionId, $executionId) { + $execution = $this->getExecution($functionId, $executionId); + $this->assertEquals('completed', $execution['body']['status']); + $this->assertEquals(200, $execution['body']['responseStatusCode']); + }, 10000, 500); return [ 'functionId' => $functionId @@ -480,14 +142,7 @@ public function testCreateCustomExecutionGuest() /** * Test for SUCCESS */ - $projectId = $this->getProject()['$id']; - $apikey = $this->getProject()['apiKey']; - - $function = $this->client->call(Client::METHOD_POST, '/functions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test', 'execute' => [Role::any()->toString()], @@ -500,56 +155,25 @@ public function testCreateCustomExecutionGuest() ], 'timeout' => 10, ]); - - $functionId = $function['body']['$id'] ?? ''; - - $this->assertEquals(201, $function['headers']['status-code']); - - $folder = 'php-fn'; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); - - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', [ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ + $this->setupDeployment($functionId, [ 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', \basename($code)), //different tarball names intentional + 'code' => $this->packageFunction('php-fn'), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId); - - // Why do we have to do this? - $function = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployments/' . $deploymentId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], []); - - $this->assertEquals(200, $function['headers']['status-code']); - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', [ 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, + 'x-appwrite-project' => $this->getProject()['$id'], ], [ 'data' => 'foobar', 'async' => true, ]); - $this->assertEquals(202, $execution['headers']['status-code']); } - public function testCreateExecutionNoDeployment(): array + public function testCreateExecutionNoDeployment() { - $function = $this->client->call(Client::METHOD_POST, '/functions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test', 'execute' => [], @@ -558,146 +182,18 @@ public function testCreateExecutionNoDeployment(): array 'timeout' => 10, ]); - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $function['body']['$id'] . '/executions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], [ - 'async' => true, + $execution = $this->createExecution($functionId, [ + 'async' => true ]); - $this->assertEquals(404, $execution['headers']['status-code']); - - return []; - } - - /** - * @depends testCreateCustomExecution - */ - public function testListExecutions(array $data) - { - $functionId = $data['functionId']; - $projectId = $this->getProject()['$id']; - $apikey = $this->getProject()['apiKey']; - - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - ], $this->getHeaders()), [ - 'data' => 'foobar' - ]); - - $this->assertEquals(201, $execution['headers']['status-code']); - - $base = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ]); - - $this->assertEquals(200, $base['headers']['status-code']); - $this->assertCount(3, $base['body']['executions']); - $this->assertEquals('completed', $base['body']['executions'][0]['status']); - $this->assertEquals('completed', $base['body']['executions'][1]['status']); - - $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ - 'queries' => [ - Query::limit(1)->toString(), - ], - ]); - - $this->assertEquals(200, $executions['headers']['status-code']); - $this->assertCount(1, $executions['body']['executions']); - - $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ - 'queries' => [ - Query::offset(1)->toString(), - ], - ]); - - $this->assertEquals(200, $executions['headers']['status-code']); - $this->assertCount(2, $executions['body']['executions']); - - $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ - 'queries' => [ - Query::equal('status', ['completed'])->toString(), - ], - ]); - - $this->assertEquals(200, $executions['headers']['status-code']); - $this->assertCount(3, $executions['body']['executions']); - - $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ - 'queries' => [ - Query::equal('status', ['failed'])->toString(), - ], - ]); - - $this->assertEquals(200, $executions['headers']['status-code']); - $this->assertCount(0, $executions['body']['executions']); - - $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ - 'queries' => [ - Query::cursorAfter(new Document(['$id' => $base['body']['executions'][0]['$id']]))->toString(), - ], - ]); - - $this->assertCount(2, $executions['body']['executions']); - $this->assertEquals($base['body']['executions'][1]['$id'], $executions['body']['executions'][0]['$id']); - - $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ - 'queries' => [ - Query::cursorBefore(new Document(['$id' => $base['body']['executions'][1]['$id']]))->toString(), - ], - ]); - - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); - - $this->assertEquals(204, $response['headers']['status-code']); } - public function testSynchronousExecution(): array + public function testSynchronousExecution() { /** * Test for SUCCESS */ - - $projectId = $this->getProject()['$id']; - $apikey = $this->getProject()['apiKey']; - - $function = $this->client->call(Client::METHOD_POST, '/functions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test', 'execute' => [Role::any()->toString()], @@ -705,79 +201,16 @@ public function testSynchronousExecution(): array 'entrypoint' => 'index.php', 'timeout' => 10, ]); - - $functionId = $function['body']['$id'] ?? ''; - - $this->assertEquals(201, $function['headers']['status-code']); - - /** Create Variables */ - $variable = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/variables', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ - 'key' => 'funcKey1', - 'value' => 'funcValue1', - ]); - - $variable2 = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/variables', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ - 'key' => 'funcKey2', - 'value' => 'funcValue2', - ]); - - $variable3 = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/variables', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ - 'key' => 'funcKey3', - 'value' => 'funcValue3', - ]); - - $this->assertEquals(201, $variable['headers']['status-code']); - $this->assertEquals(201, $variable2['headers']['status-code']); - $this->assertEquals(201, $variable3['headers']['status-code']); - - $folder = 'php-fn'; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); - - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', [ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ + $deploymentId = $this->setupDeployment($functionId, [ 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', \basename($code)), //different tarball names intentional + 'code' => $this->packageFunction('php-fn'), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - - $this->assertEquals(202, $deployment['headers']['status-code']); - - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId); - - $function = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployments/' . $deploymentId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ]); - - $this->assertEquals(200, $function['headers']['status-code']); - - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - ], $this->getHeaders()), [ + $execution = $this->createExecution($functionId, [ 'body' => 'foobar', - // Testing default value, should be 'async' => false + // Testing default value, should be 'async' => 'false' ]); - $output = json_decode($execution['body']['responseBody'], true); $this->assertEquals(201, $execution['headers']['status-code']); $this->assertEquals('completed', $execution['body']['status']); @@ -789,72 +222,34 @@ public function testSynchronousExecution(): array $this->assertEquals('PHP', $output['APPWRITE_FUNCTION_RUNTIME_NAME']); $this->assertEquals('8.0', $output['APPWRITE_FUNCTION_RUNTIME_VERSION']); $this->assertEquals(APP_VERSION_STABLE, $output['APPWRITE_VERSION']); - $this->assertEquals('default', $output['APPWRITE_REGION']); + $this->assertEquals(System::getEnv('_APP_REGION', 'default'), $output['APPWRITE_REGION']); $this->assertEquals('', $output['APPWRITE_FUNCTION_EVENT']); $this->assertEquals('foobar', $output['APPWRITE_FUNCTION_DATA']); $this->assertEquals($this->getUser()['$id'], $output['APPWRITE_FUNCTION_USER_ID']); $this->assertNotEmpty($output['APPWRITE_FUNCTION_JWT']); - $this->assertEquals($projectId, $output['APPWRITE_FUNCTION_PROJECT_ID']); + $this->assertEquals($this->getProject()['$id'], $output['APPWRITE_FUNCTION_PROJECT_ID']); // Client should never see logs and errors $this->assertEmpty($execution['body']['logs']); $this->assertEmpty($execution['body']['errors']); - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); - - $this->assertEquals(204, $response['headers']['status-code']); - - return []; + $this->cleanupFunction($functionId); } - public function testNonOverrideOfHeaders(): array + public function testNonOverrideOfHeaders() { - /** - * Test for SUCCESS - */ - $projectId = $this->getProject()['$id']; - $apikey = $this->getProject()['apiKey']; - - $function = $this->client->call(Client::METHOD_POST, '/functions', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test', 'execute' => [Role::any()->toString()], 'runtime' => 'node-18.0', 'entrypoint' => 'index.js' ]); - - $functionId = $function['body']['$id'] ?? ''; - - $this->assertEquals(201, $function['headers']['status-code']); - - $folder = 'node'; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); - - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', [ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $projectId, - 'x-appwrite-key' => $apikey, - ], [ + $this->setupDeployment($functionId, [ 'entrypoint' => 'index.js', - 'code' => new CURLFile($code, 'application/x-gzip', \basename($code)), //different tarball names intentional + 'code' => $this->packageFunction('node'), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - - $this->assertEquals(202, $deployment['headers']['status-code']); - - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId); - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -871,16 +266,8 @@ public function testNonOverrideOfHeaders(): array $this->assertNotEquals('OVERRIDDEN', $output['APPWRITE_FUNCTION_TRIGGER']); $this->assertNotEquals('OVERRIDDEN', $output['APPWRITE_FUNCTION_USER_ID']); - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); - - $this->assertEquals(204, $response['headers']['status-code']); - return []; + $this->cleanupFunction($functionId); } public function testListTemplates() @@ -888,7 +275,7 @@ public function testListTemplates() /** * Test for SUCCESS */ - $expectedTemplates = array_slice(Config::getParam('function-templates', []), 0, 25); + // List all templates $templates = $this->client->call(Client::METHOD_GET, '/functions/templates', array_merge([ 'content-type' => 'application/json', ], $this->getHeaders())); @@ -897,41 +284,35 @@ public function testListTemplates() $this->assertGreaterThan(0, $templates['body']['total']); $this->assertIsArray($templates['body']['templates']); - $this->assertArrayHasKey('runtimes', $templates['body']['templates'][0]); - $this->assertArrayHasKey('useCases', $templates['body']['templates'][0]); - for ($i = 0; $i < 25; $i++) { - $this->assertEquals($expectedTemplates[$i]['name'], $templates['body']['templates'][$i]['name']); - $this->assertEquals($expectedTemplates[$i]['id'], $templates['body']['templates'][$i]['id']); - $this->assertEquals($expectedTemplates[$i]['icon'], $templates['body']['templates'][$i]['icon']); - $this->assertEquals($expectedTemplates[$i]['tagline'], $templates['body']['templates'][$i]['tagline']); - $this->assertEquals($expectedTemplates[$i]['useCases'], $templates['body']['templates'][$i]['useCases']); - $this->assertEquals($expectedTemplates[$i]['vcsProvider'], $templates['body']['templates'][$i]['vcsProvider']); - $this->assertEquals($expectedTemplates[$i]['runtimes'], $templates['body']['templates'][$i]['runtimes']); - $this->assertEquals($expectedTemplates[$i]['variables'], $templates['body']['templates'][$i]['variables']); - if (array_key_exists('scopes', $expectedTemplates[$i])) { - $this->assertEquals($expectedTemplates[$i]['scopes'], $templates['body']['templates'][$i]['scopes']); - } + foreach ($templates['body']['templates'] as $template) { + $this->assertArrayHasKey('name', $template); + $this->assertArrayHasKey('id', $template); + $this->assertArrayHasKey('icon', $template); + $this->assertArrayHasKey('tagline', $template); + $this->assertArrayHasKey('useCases', $template); + $this->assertArrayHasKey('vcsProvider', $template); + $this->assertArrayHasKey('runtimes', $template); + $this->assertArrayHasKey('variables', $template); } - $templates_offset = $this->client->call(Client::METHOD_GET, '/functions/templates', array_merge([ + // List templates with pagination + $templatesOffset = $this->client->call(Client::METHOD_GET, '/functions/templates', array_merge([ 'content-type' => 'application/json', ], $this->getHeaders()), [ 'limit' => 1, 'offset' => 2 ]); + $this->assertEquals(200, $templatesOffset['headers']['status-code']); + $this->assertEquals(1, $templatesOffset['body']['total']); + $this->assertEquals($templates['body']['templates'][2]['id'], $templatesOffset['body']['templates'][0]['id']); - $this->assertEquals(200, $templates_offset['headers']['status-code']); - $this->assertEquals(1, $templates_offset['body']['total']); - // assert that offset works as expected - $this->assertEquals($templates['body']['templates'][2]['id'], $templates_offset['body']['templates'][0]['id']); - + // List templates with filters $templates = $this->client->call(Client::METHOD_GET, '/functions/templates', array_merge([ 'content-type' => 'application/json', ], $this->getHeaders()), [ 'useCases' => ['starter', 'ai'], 'runtimes' => ['bun-1.0', 'dart-2.16'] ]); - $this->assertEquals(200, $templates['headers']['status-code']); $this->assertGreaterThanOrEqual(3, $templates['body']['total']); $this->assertIsArray($templates['body']['templates']); @@ -941,6 +322,7 @@ public function testListTemplates() $this->assertArrayHasKey('runtimes', $templates['body']['templates'][0]); $this->assertContains('bun-1.0', array_column($templates['body']['templates'][0]['runtimes'], 'name')); + // List templates with pagination and filters $templates = $this->client->call(Client::METHOD_GET, '/functions/templates', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -955,24 +337,26 @@ public function testListTemplates() $this->assertEquals(5, $templates['body']['total']); $this->assertIsArray($templates['body']['templates']); $this->assertArrayHasKey('runtimes', $templates['body']['templates'][0]); + foreach ($templates['body']['templates'] as $template) { $this->assertContains($template['useCases'][0], ['databases']); } + $this->assertContains('node-16.0', array_column($templates['body']['templates'][0]['runtimes'], 'name')); /** * Test for FAILURE */ + // List templates with invalid limit $templates = $this->client->call(Client::METHOD_GET, '/functions/templates', array_merge([ 'content-type' => 'application/json', ], $this->getHeaders()), [ 'limit' => 5001, 'offset' => 10, ]); - $this->assertEquals(400, $templates['headers']['status-code']); - $this->assertEquals('Invalid `limit` param: Value must be a valid range between 1 and 5,000', $templates['body']['message']); + // List templates with invalid offset $templates = $this->client->call(Client::METHOD_GET, '/functions/templates', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -980,9 +364,7 @@ public function testListTemplates() 'limit' => 5, 'offset' => 5001, ]); - $this->assertEquals(400, $templates['headers']['status-code']); - $this->assertEquals('Invalid `offset` param: Value must be a valid range between 0 and 5,000', $templates['body']['message']); } public function testGetTemplate() @@ -990,10 +372,7 @@ public function testGetTemplate() /** * Test for SUCCESS */ - $template = $this->client->call(Client::METHOD_GET, '/functions/templates/query-neo4j-auradb', array_merge([ - 'content-type' => 'application/json', - ], $this->getHeaders()), []); - + $template = $this->getTemplate('query-neo4j-auradb'); $this->assertEquals(200, $template['headers']['status-code']); $this->assertIsArray($template['body']); $this->assertEquals('query-neo4j-auradb', $template['body']['id']); @@ -1002,15 +381,13 @@ public function testGetTemplate() $this->assertEquals('Graph database with focus on relations between data.', $template['body']['tagline']); $this->assertEquals(['databases'], $template['body']['useCases']); $this->assertEquals('github', $template['body']['vcsProvider']); + $this->assertIsArray($template['body']['runtimes']); + $this->assertIsArray($template['body']['scopes']); /** * Test for FAILURE */ - $template = $this->client->call(Client::METHOD_GET, '/functions/templates/invalid-template-id', array_merge([ - 'content-type' => 'application/json', - ], $this->getHeaders()), []); - + $template = $this->getTemplate('invalid-template-id'); $this->assertEquals(404, $template['headers']['status-code']); - $this->assertEquals('Function Template with the requested ID could not be found.', $template['body']['message']); } } diff --git a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php index 2958e6cb5f0..182e6902a34 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php @@ -3,14 +3,11 @@ namespace Tests\E2E\Services\Functions; use Appwrite\Functions\Specification; -use Appwrite\Tests\Retry; -use CURLFile; -use PHPUnit\Framework\ExpectationFailedException; use Tests\E2E\Client; use Tests\E2E\Scopes\ProjectCustom; use Tests\E2E\Scopes\Scope; use Tests\E2E\Scopes\SideServer; -use Utopia\App; +use Utopia\CLI\Console; use Utopia\Database\Document; use Utopia\Database\Helpers\ID; use Utopia\Database\Helpers\Role; @@ -23,15 +20,12 @@ class FunctionsCustomServerTest extends Scope use ProjectCustom; use SideServer; - public function testCreate(): array + public function testCreateFunction(): array { /** * Test for SUCCESS */ - $response1 = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $function = $this->createFunction([ 'functionId' => ID::unique(), 'name' => 'Test', 'runtime' => 'php-8.0', @@ -40,48 +34,35 @@ public function testCreate(): array 'buckets.*.create', 'buckets.*.delete', ], - 'schedule' => '0 0 1 1 *', 'timeout' => 10, ]); - $functionId = $response1['body']['$id'] ?? ''; + $functionId = $functionId = $function['body']['$id'] ?? ''; - $this->assertEquals(201, $response1['headers']['status-code']); - $this->assertNotEmpty($response1['body']['$id']); - $this->assertEquals('Test', $response1['body']['name']); - $this->assertEquals('php-8.0', $response1['body']['runtime']); $dateValidator = new DatetimeValidator(); - $this->assertEquals(true, $dateValidator->isValid($response1['body']['$createdAt'])); - $this->assertEquals(true, $dateValidator->isValid($response1['body']['$updatedAt'])); - $this->assertEquals('', $response1['body']['deployment']); + $this->assertEquals(201, $function['headers']['status-code']); + $this->assertNotEmpty($function['body']['$id']); + $this->assertEquals('Test', $function['body']['name']); + $this->assertEquals('php-8.0', $function['body']['runtime']); + $this->assertEquals(true, $dateValidator->isValid($function['body']['$createdAt'])); + $this->assertEquals(true, $dateValidator->isValid($function['body']['$updatedAt'])); + $this->assertEquals('', $function['body']['deployment']); $this->assertEquals([ 'buckets.*.create', 'buckets.*.delete', - ], $response1['body']['events']); - $this->assertEquals('0 0 1 1 *', $response1['body']['schedule']); - $this->assertEquals(10, $response1['body']['timeout']); + ], $function['body']['events']); + $this->assertEmpty($function['body']['schedule']); + $this->assertEquals(10, $function['body']['timeout']); - /** Create Variables */ - $variable = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/variables', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $variable = $this->createVariable($functionId, [ 'key' => 'funcKey1', 'value' => 'funcValue1', ]); - - $variable2 = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/variables', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $variable2 = $this->createVariable($functionId, [ 'key' => 'funcKey2', 'value' => 'funcValue2', ]); - - $variable3 = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/variables', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $variable3 = $this->createVariable($functionId, [ 'key' => 'funcKey3', 'value' => 'funcValue3', ]); @@ -90,115 +71,90 @@ public function testCreate(): array $this->assertEquals(201, $variable2['headers']['status-code']); $this->assertEquals(201, $variable3['headers']['status-code']); - /** - * Test for FAILURE - */ - return [ 'functionId' => $functionId, ]; } /** - * @depends testCreate + * @depends testCreateFunction */ - public function testList(array $data): array + public function testListFunctions(array $data): array { /** * Test for SUCCESS */ - - /** - * Test search queries - */ - $response = $this->client->call(Client::METHOD_GET, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + // Test search id + $functions = $this->listFunctions([ 'search' => $data['functionId'] ]); - $this->assertEquals($response['headers']['status-code'], 200); - $this->assertCount(1, $response['body']['functions']); - $this->assertEquals($response['body']['functions'][0]['name'], 'Test'); + $this->assertEquals($functions['headers']['status-code'], 200); + $this->assertCount(1, $functions['body']['functions']); + $this->assertEquals($functions['body']['functions'][0]['name'], 'Test'); - $response = $this->client->call(Client::METHOD_GET, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + // Test pagination limit + $functions = $this->listFunctions([ 'queries' => [ Query::limit(1)->toString(), ], ]); - $this->assertEquals($response['headers']['status-code'], 200); - $this->assertCount(1, $response['body']['functions']); + $this->assertEquals($functions['headers']['status-code'], 200); + $this->assertCount(1, $functions['body']['functions']); - $response = $this->client->call(Client::METHOD_GET, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + // Test pagination offset + $functions = $this->listFunctions([ 'queries' => [ Query::offset(1)->toString(), ], ]); - $this->assertEquals($response['headers']['status-code'], 200); - $this->assertCount(0, $response['body']['functions']); + $this->assertEquals($functions['headers']['status-code'], 200); + $this->assertCount(0, $functions['body']['functions']); - $response = $this->client->call(Client::METHOD_GET, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + // Test filter enabled + $functions = $this->listFunctions([ 'queries' => [ Query::equal('enabled', [true])->toString(), ], ]); - $this->assertEquals($response['headers']['status-code'], 200); - $this->assertCount(1, $response['body']['functions']); + $this->assertEquals($functions['headers']['status-code'], 200); + $this->assertCount(1, $functions['body']['functions']); - $response = $this->client->call(Client::METHOD_GET, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + // Test filter disabled + $functions = $this->listFunctions([ 'queries' => [ Query::equal('enabled', [false])->toString(), ], ]); - $this->assertEquals($response['headers']['status-code'], 200); - $this->assertCount(0, $response['body']['functions']); + $this->assertEquals($functions['headers']['status-code'], 200); + $this->assertCount(0, $functions['body']['functions']); - $response = $this->client->call(Client::METHOD_GET, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + // Test search name + $functions = $this->listFunctions([ 'search' => 'Test' ]); - $this->assertEquals($response['headers']['status-code'], 200); - $this->assertCount(1, $response['body']['functions']); - $this->assertEquals($response['body']['functions'][0]['$id'], $data['functionId']); + $this->assertEquals($functions['headers']['status-code'], 200); + $this->assertCount(1, $functions['body']['functions']); + $this->assertEquals($functions['body']['functions'][0]['$id'], $data['functionId']); - $response = $this->client->call(Client::METHOD_GET, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + // Test search runtime + $functions = $this->listFunctions([ 'search' => 'php-8.0' ]); - $this->assertEquals($response['headers']['status-code'], 200); - $this->assertCount(1, $response['body']['functions']); - $this->assertEquals($response['body']['functions'][0]['$id'], $data['functionId']); + $this->assertEquals($functions['headers']['status-code'], 200); + $this->assertCount(1, $functions['body']['functions']); + $this->assertEquals($functions['body']['functions'][0]['$id'], $data['functionId']); /** * Test pagination */ - $response = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test 2', 'runtime' => 'php-8.0', @@ -207,44 +163,10 @@ public function testList(array $data): array 'buckets.*.create', 'buckets.*.delete', ], - 'schedule' => '0 0 1 1 *', 'timeout' => 10, ]); - $this->assertNotEmpty($response['body']['$id']); - - /** Create Variables */ - $variable = $this->client->call(Client::METHOD_POST, '/functions/' . $response['body']['$id'] . '/variables', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'key' => 'funcKey1', - 'value' => 'funcValue1', - ]); - - $variable2 = $this->client->call(Client::METHOD_POST, '/functions/' . $response['body']['$id'] . '/variables', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'key' => 'funcKey2', - 'value' => 'funcValue2', - ]); - - $variable3 = $this->client->call(Client::METHOD_POST, '/functions/' . $response['body']['$id'] . '/variables', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'key' => 'funcKey3', - 'value' => 'funcValue3', - ]); - - $this->assertEquals(201, $variable['headers']['status-code']); - $this->assertEquals(201, $variable2['headers']['status-code']); - $this->assertEquals(201, $variable3['headers']['status-code']); - $functions = $this->client->call(Client::METHOD_GET, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $functions = $this->listFunctions(); $this->assertEquals($functions['headers']['status-code'], 200); $this->assertEquals($functions['body']['total'], 2); @@ -253,61 +175,48 @@ public function testList(array $data): array $this->assertEquals($functions['body']['functions'][0]['name'], 'Test'); $this->assertEquals($functions['body']['functions'][1]['name'], 'Test 2'); - $response = $this->client->call(Client::METHOD_GET, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $functions1 = $this->listFunctions([ 'queries' => [ Query::cursorAfter(new Document(['$id' => $functions['body']['functions'][0]['$id']]))->toString(), ], ]); - $this->assertEquals($response['headers']['status-code'], 200); - $this->assertCount(1, $response['body']['functions']); - $this->assertEquals($response['body']['functions'][0]['name'], 'Test 2'); + $this->assertEquals($functions1['headers']['status-code'], 200); + $this->assertCount(1, $functions1['body']['functions']); + $this->assertEquals($functions1['body']['functions'][0]['name'], 'Test 2'); - $response = $this->client->call(Client::METHOD_GET, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $functions2 = $this->listFunctions([ 'queries' => [ Query::cursorBefore(new Document(['$id' => $functions['body']['functions'][1]['$id']]))->toString(), ], ]); - $this->assertEquals($response['headers']['status-code'], 200); - $this->assertCount(1, $response['body']['functions']); - $this->assertEquals($response['body']['functions'][0]['name'], 'Test'); + $this->assertEquals($functions2['headers']['status-code'], 200); + $this->assertCount(1, $functions2['body']['functions']); + $this->assertEquals($functions2['body']['functions'][0]['name'], 'Test'); /** * Test for FAILURE */ - $response = $this->client->call(Client::METHOD_GET, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $functions = $this->listFunctions([ 'queries' => [ Query::cursorAfter(new Document(['$id' => 'unknown']))->toString(), ], ]); - - $this->assertEquals($response['headers']['status-code'], 400); + $this->assertEquals($functions['headers']['status-code'], 400); return $data; } /** - * @depends testList + * @depends testListFunctions */ - public function testGet(array $data): array + public function testGetFunction(array $data): array { /** * Test for SUCCESS */ - $function = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'], array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $function = $this->getFunction($data['functionId']); $this->assertEquals($function['headers']['status-code'], 200); $this->assertEquals($function['body']['name'], 'Test'); @@ -315,10 +224,7 @@ public function testGet(array $data): array /** * Test for FAILURE */ - $function = $this->client->call(Client::METHOD_GET, '/functions/x', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $function = $this->getFunction('x'); $this->assertEquals($function['headers']['status-code'], 404); @@ -326,14 +232,14 @@ public function testGet(array $data): array } /** - * @depends testGet + * @depends testGetFunction */ - public function testUpdate($data): array + public function testUpdateFunction($data): array { /** * Test for SUCCESS */ - $response1 = $this->client->call(Client::METHOD_PUT, '/functions/' . $data['functionId'], array_merge([ + $function = $this->client->call(Client::METHOD_PUT, '/functions/' . $data['functionId'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -348,51 +254,35 @@ public function testUpdate($data): array 'entrypoint' => 'index.php', ]); - $this->assertEquals(200, $response1['headers']['status-code']); - $this->assertNotEmpty($response1['body']['$id']); - $this->assertEquals('Test1', $response1['body']['name']); $dateValidator = new DatetimeValidator(); - $this->assertEquals(true, $dateValidator->isValid($response1['body']['$createdAt'])); - $this->assertEquals(true, $dateValidator->isValid($response1['body']['$updatedAt'])); - $this->assertEquals('', $response1['body']['deployment']); + + $this->assertEquals(200, $function['headers']['status-code']); + $this->assertNotEmpty($function['body']['$id']); + $this->assertEquals('Test1', $function['body']['name']); + $this->assertEquals(true, $dateValidator->isValid($function['body']['$createdAt'])); + $this->assertEquals(true, $dateValidator->isValid($function['body']['$updatedAt'])); + $this->assertEquals('', $function['body']['deployment']); $this->assertEquals([ 'users.*.update.name', 'users.*.update.email', - ], $response1['body']['events']); - $this->assertEquals('0 0 1 1 *', $response1['body']['schedule']); - $this->assertEquals(15, $response1['body']['timeout']); - - /** - * Create global variable to test in execution later - */ - $headers = [ - 'content-type' => 'application/json', - 'origin' => 'http://localhost', - 'cookie' => 'a_session_console=' . $this->getRoot()['session'], - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-mode' => 'admin', - ]; + ], $function['body']['events']); + $this->assertEquals('0 0 1 1 *', $function['body']['schedule']); + $this->assertEquals(15, $function['body']['timeout']); - $variable = $this->client->call(Client::METHOD_POST, '/project/variables', $headers, [ + // Create a variable for later tests + $variable = $this->createVariable($data['functionId'], [ 'key' => 'GLOBAL_VARIABLE', 'value' => 'Global Variable Value', ]); $this->assertEquals(201, $variable['headers']['status-code']); - /** - * Test for FAILURE - */ - return $data; } public function testCreateDeploymentFromCLI() { - $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test', 'execute' => [Role::user($this->getUser()['$id'])->toString()], @@ -402,150 +292,98 @@ public function testCreateDeploymentFromCLI() 'users.*.create', 'users.*.delete', ], - 'schedule' => '0 0 1 1 *', + 'schedule' => '0 0 1 1 *', // Once a year 'timeout' => 10, ]); - $this->assertEquals(201, $function['headers']['status-code']); - - $functionId = $function['body']['$id']; - - $folder = 'php'; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); - - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $function['body']['$id'] . '/deployments', [ + $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', [ 'content-type' => 'multipart/form-data', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], 'x-sdk-language' => 'cli', ], [ 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', \basename($code)), + 'code' => $this->packageFunction('php'), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - $this->assertEquals(202, $deployment['headers']['status-code']); - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId); + $deploymentId = $deployment['body']['$id'] ?? ''; - $functionDetails = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/deployments/' . $deploymentId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); + $this->assertEventually(function () use ($functionId, $deploymentId) { + $deployment = $this->getDeployment($functionId, $deploymentId); - $this->assertEquals(200, $functionDetails['headers']['status-code']); - $this->assertEquals('cli', $functionDetails['body']['type']); + $this->assertEquals(200, $deployment['headers']['status-code']); + $this->assertEquals('ready', $deployment['body']['status']); + $this->assertEquals('cli', $deployment['body']['type']); + }, 500000, 1000); } - public function testCreateDeploymentFromTemplate() + public function testCreateFunctionAndDeploymentFromTemplate() { - $runtimeName = 'php-8.0'; - // Fetch starter template (used to create function later) - $template = $this->client->call(Client::METHOD_GET, '/functions/templates/starter', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); - - $this->assertEquals(200, $template['headers']['status-code']); - - $entrypoint = null; - $rootDirectory = null; - $commands = null; - foreach ($template['body']['runtimes'] as $runtime) { - if ($runtime["name"] !== $runtimeName) { - continue; - } - - $entrypoint = $runtime["entrypoint"]; - $rootDirectory = $runtime["providerRootDirectory"]; - $commands = $runtime["commands"]; - break; - } + $starterTemplate = $this->getTemplate('starter'); + $this->assertEquals(200, $starterTemplate['headers']['status-code']); - $this->assertNotNull($entrypoint); + $phpRuntime = array_values(array_filter($starterTemplate['body']['runtimes'], function ($runtime) { + return $runtime['name'] === 'php-8.0'; + }))[0]; - /** - * If below test ever starts failing, it means temaplate used in - * this test now has some variables. This test currently doesnt test variables. - * Remove bellow assertion and update test to crete variable, - * and ensure variable works as expected in execution. - */ - $this->assertEmpty($template['body']['variables']); + // If this fails, the template has variables, and this test needs to be updated + $this->assertEmpty($starterTemplate['body']['variables']); - // Create function using settings from template. - // Deployment is automatically created from template inside endpoint - $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], $this->getHeaders()), [ - 'functionId' => ID::unique(), - 'name' => $template['body']['name'], - 'runtime' => $runtimeName, - 'execute' => $template['body']['permissions'], - 'entrypoint' => $entrypoint, - 'events' => $template['body']['events'], - 'schedule' => $template['body']['cron'], - 'timeout' => $template['body']['timeout'], - 'commands' => $commands, - 'scopes' => $template['body']['scopes'], - 'templateRepository' => $template['body']['providerRepositoryId'], - 'templateOwner' => $template['body']['providerOwner'], - 'templateRootDirectory' => $rootDirectory, - 'templateVersion' => $template['body']['providerVersion'], - ]); + $function = $this->createFunction( + [ + 'functionId' => ID::unique(), + 'name' => $starterTemplate['body']['name'], + 'runtime' => 'php-8.0', + 'execute' => $starterTemplate['body']['permissions'], + 'entrypoint' => $phpRuntime['entrypoint'], + 'events' => $starterTemplate['body']['events'], + 'schedule' => $starterTemplate['body']['cron'], + 'timeout' => $starterTemplate['body']['timeout'], + 'commands' => $phpRuntime['commands'], + 'scopes' => $starterTemplate['body']['scopes'], + 'templateRepository' => $starterTemplate['body']['providerRepositoryId'], + 'templateOwner' => $starterTemplate['body']['providerOwner'], + 'templateRootDirectory' => $phpRuntime['providerRootDirectory'], + 'templateVersion' => $starterTemplate['body']['providerVersion'], + ] + ); $this->assertEquals(201, $function['headers']['status-code']); $this->assertNotEmpty($function['body']['$id']); - $functionId = $function['body']['$id']; + $functionId = $functionId = $function['body']['$id'] ?? ''; - // List deployments so we can await deployment build - $deployments = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/deployments', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); + $deployments = $this->listDeployments($functionId); $this->assertEquals(200, $deployments['headers']['status-code']); $this->assertEquals(1, $deployments['body']['total']); - $this->assertNotEmpty($deployments['body']['deployments'][0]['$id']); - $this->assertEquals(0, $deployments['body']['deployments'][0]['size']); - $deploymentId = $deployments['body']['deployments'][0]['$id']; + $lastDeployment = $deployments['body']['deployments'][0]; - // Wait for deployment build to finish - // Deployment is automatically activated - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId); + $this->assertNotEmpty($lastDeployment['$id']); + $this->assertEquals(0, $lastDeployment['size']); - $deployments = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/deployments/' . $deploymentId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); - $this->assertGreaterThan(0, $deployments['body']['size']); + $deploymentId = $lastDeployment['$id']; - $function = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], $this->getHeaders()), []); + $this->assertEventually(function () use ($functionId, $deploymentId) { + $deployment = $this->getDeployment($functionId, $deploymentId); + + $this->assertEquals(200, $deployment['headers']['status-code']); + $this->assertEquals('ready', $deployment['body']['status']); + }, 50000, 1000); + + $function = $this->getFunction($functionId); $this->assertEquals(200, $function['headers']['status-code']); $this->assertEquals($deploymentId, $function['body']['deployment']); - // Execute function to ensure starter code is used - // Also tests if dynamic keys works as expected - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'path' => '/ping' + // Test starter code is used and that dynamic keys work + $execution = $this->createExecution($functionId, [ + 'path' => '/ping', ]); $this->assertEquals(201, $execution['headers']['status-code']); @@ -554,7 +392,7 @@ public function testCreateDeploymentFromTemplate() $this->assertEquals("Pong", $execution['body']['responseBody']); $this->assertEmpty($execution['body']['errors']); - // Get users to ensure execution logged correct total users + // Test execution logged correct total users $users = $this->client->call(Client::METHOD_GET, '/users', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -564,15 +402,12 @@ public function testCreateDeploymentFromTemplate() $this->assertEquals(200, $users['headers']['status-code']); $this->assertIsInt($users['body']['total']); - $totalusers = $users['body']['total']; + $totalUsers = $users['body']['total']; - $this->assertStringContainsString("Total users: " . $totalusers, $execution['body']['logs']); + $this->assertStringContainsString("Total users: " . $totalUsers, $execution['body']['logs']); // Execute function again but async - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $execution = $this->createExecution($functionId, [ 'path' => '/ping', 'async' => true ]); @@ -580,113 +415,93 @@ public function testCreateDeploymentFromTemplate() $this->assertEquals(202, $execution['headers']['status-code']); $this->assertNotEmpty($execution['body']['$id']); $this->assertEquals('waiting', $execution['body']['status']); - $executionId = $execution['body']['$id']; - - // Wait for async execuntion to finish - sleep(5); - // Ensure execution was successful - $execution = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions/' . $executionId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); + $executionId = $execution['body']['$id'] ?? ''; - $this->assertEquals(200, $execution['headers']['status-code']); - $this->assertEquals("completed", $execution['body']['status']); - $this->assertEquals(200, $execution['body']['responseStatusCode']); - $this->assertEmpty($execution['body']['responseBody']); - $this->assertEmpty($execution['body']['errors']); - $this->assertStringContainsString("Total users: " . $totalusers, $execution['body']['logs']); + $this->assertEventually(function () use ($functionId, $executionId, $totalUsers) { + $execution = $this->getExecution($functionId, $executionId); - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); + $this->assertEquals(200, $execution['headers']['status-code']); + $this->assertEquals(200, $execution['body']['responseStatusCode']); + $this->assertEquals('completed', $execution['body']['status']); + $this->assertEmpty($execution['body']['responseBody']); + $this->assertEmpty($execution['body']['errors']); + $this->assertStringContainsString("Total users: " . $totalUsers, $execution['body']['logs']); + }, 10000, 500); - $this->assertEquals(204, $response['headers']['status-code']); + $function = $this->deleteFunction($functionId); } /** - * @depends testUpdate + * @depends testUpdateFunction */ public function testCreateDeployment($data): array { /** * Test for SUCCESS */ - $folder = 'php'; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); + $functionId = $data['functionId']; - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $data['functionId'] . '/deployments', array_merge([ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'code' => new CURLFile($code, 'application/x-gzip', \basename($code)), + $deployment = $this->createDeployment($functionId, [ + 'code' => $this->packageFunction('php'), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - $this->assertEquals(202, $deployment['headers']['status-code']); $this->assertNotEmpty($deployment['body']['$id']); $this->assertEquals(true, (new DatetimeValidator())->isValid($deployment['body']['$createdAt'])); $this->assertEquals('index.php', $deployment['body']['entrypoint']); - $this->awaitDeploymentIsBuilt($data['functionId'], $deploymentId); + $deploymentIdActive = $deployment['body']['$id'] ?? ''; - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $data['functionId'] . '/deployments', array_merge([ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'code' => new CURLFile($code, 'application/x-gzip', \basename($code)), + $this->assertEventually(function () use ($functionId, $deploymentIdActive) { + $deployment = $this->getDeployment($functionId, $deploymentIdActive); + + $this->assertEquals('ready', $deployment['body']['status']); + }, 50000, 500); + + $deployment = $this->createDeployment($functionId, [ + 'code' => $this->packageFunction('php'), 'activate' => 'false' ]); $this->assertEquals(202, $deployment['headers']['status-code']); $this->assertNotEmpty($deployment['body']['$id']); - $deploymentIdInactive = $deployment['body']['$id']; + $deploymentIdInactive = $deployment['body']['$id'] ?? ''; - $this->awaitDeploymentIsBuilt($data['functionId'], $deploymentIdInactive); + $this->assertEventually(function () use ($functionId, $deploymentIdInactive) { + $deployment = $this->getDeployment($functionId, $deploymentIdInactive); - $function = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'], array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $this->assertEquals('ready', $deployment['body']['status']); + }, 50000, 500); + + $function = $this->getFunction($functionId); $this->assertEquals(200, $function['headers']['status-code']); - $this->assertEquals($deploymentId, $function['body']['deployment']); + $this->assertEquals($deploymentIdActive, $function['body']['deployment']); $this->assertNotEquals($deploymentIdInactive, $function['body']['deployment']); - $deployment = $this->client->call(Client::METHOD_DELETE, '/functions/' . $data['functionId'] . '/deployments/' . $deploymentIdInactive, array_merge([ + $deployment = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId . '/deployments/' . $deploymentIdInactive, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), []); $this->assertEquals(204, $deployment['headers']['status-code']); - return array_merge($data, ['deploymentId' => $deploymentId]); + return array_merge($data, ['deploymentId' => $deploymentIdActive]); } /** - * @depends testUpdate + * @depends testUpdateFunction */ public function testCancelDeploymentBuild($data): void { - // Create a new deployment to cancel - $folder = 'php'; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); + $functionId = $data['functionId']; - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $data['functionId'] . '/deployments', array_merge([ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'code' => new CURLFile($code, 'application/x-gzip', \basename($code)), - 'activate' => true + $deployment = $this->createDeployment($functionId, [ + 'code' => $this->packageFunction('php'), + 'activate' => 'false' ]); $deploymentId = $deployment['body']['$id'] ?? ''; @@ -696,33 +511,18 @@ public function testCancelDeploymentBuild($data): void $this->assertEquals(true, (new DatetimeValidator())->isValid($deployment['body']['$createdAt'])); $this->assertEquals('index.php', $deployment['body']['entrypoint']); - // Poll until deployment is in progress - while (true) { - $deployment = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/deployments/' . $deploymentId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ]); - - if ( - $deployment['headers']['status-code'] >= 400 - || $deployment['body']['status'] === 'building' - ) { - break; - } - - \sleep(1); - } + $this->assertEventually(function () use ($functionId, $deploymentId) { + $deployment = $this->getDeployment($functionId, $deploymentId); - $this->assertEquals(200, $deployment['headers']['status-code']); - $this->assertEquals('building', $deployment['body']['status']); + $this->assertEquals(200, $deployment['headers']['status-code']); + $this->assertEquals('building', $deployment['body']['status']); + }, 100000, 250); - // Cancel the deployment build - $cancel = $this->client->call(Client::METHOD_PATCH, '/functions/' . $data['functionId'] . '/deployments/' . $deploymentId . '/build', [ + // Cancel the deployment + $cancel = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployments/' . $deploymentId . '/build', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ]); + ], $this->getHeaders())); $this->assertEquals(200, $cancel['headers']['status-code']); $this->assertEquals('canceled', $cancel['body']['status']); @@ -733,28 +533,26 @@ public function testCancelDeploymentBuild($data): void * After build finished, it should still be canceled, not ready. */ \sleep(30); - $deployment = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/deployments/' . $deploymentId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ]); + + $deployment = $this->getDeployment($functionId, $deploymentId); $this->assertEquals(200, $deployment['headers']['status-code']); $this->assertEquals('canceled', $deployment['body']['status']); } /** - * @depends testUpdate + * @depends testUpdateFunction */ public function testCreateDeploymentLarge($data): array { /** * Test for Large Code File SUCCESS */ + $functionId = $data['functionId']; $folder = 'php-large'; $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); + Console::execute('cd ' . realpath(__DIR__ . "/../../../resources/functions") . "/$folder && tar --exclude code.tar.gz -czf code.tar.gz .", '', $this->stdout, $this->stderr); $chunkSize = 5 * 1024 * 1024; $handle = @fopen($code, "rb"); @@ -772,7 +570,7 @@ public function testCreateDeploymentLarge($data): array if (!empty($id)) { $headers['x-appwrite-id'] = $id; } - $largeTag = $this->client->call(Client::METHOD_POST, '/functions/' . $data['functionId'] . '/deployments', array_merge($headers, $this->getHeaders()), [ + $largeTag = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge($headers, $this->getHeaders()), [ 'entrypoint' => 'index.php', 'code' => $curlFile, 'activate' => true, @@ -791,19 +589,16 @@ public function testCreateDeploymentLarge($data): array $this->assertLessThan(1024 * 1024 * 10, $largeTag['body']['size']); // ~7MB video file $deploymentSize = $largeTag['body']['size']; - $deploymentId = $largeTag['body']['$id']; - $this->awaitDeploymentIsBuilt($data['functionId'], $deploymentId, true); + $this->assertEventually(function () use ($functionId, $deploymentId, $deploymentSize) { + $deployment = $this->getDeployment($functionId, $deploymentId); - $response = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/deployments/' . $deploymentId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); - - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals($deploymentSize, $response['body']['size']); - $this->assertGreaterThan(1024 * 1024 * 10, $response['body']['buildSize']); // ~7MB video file + 10MB sample file + $this->assertEquals(200, $deployment['headers']['status-code']); + $this->assertEquals('ready', $deployment['body']['status']); + $this->assertEquals($deploymentSize, $deployment['body']['size']); + $this->assertGreaterThan(1024 * 1024 * 10, $deployment['body']['buildSize']); // ~7MB video file + 10MB sample file + }, 500000, 1000); return $data; } @@ -816,6 +611,8 @@ public function testUpdateDeployment($data): array /** * Test for SUCCESS */ + $dateValidator = new DatetimeValidator(); + $response = $this->client->call(Client::METHOD_PATCH, '/functions/' . $data['functionId'] . '/deployments/' . $data['deploymentId'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -823,15 +620,10 @@ public function testUpdateDeployment($data): array $this->assertEquals(200, $response['headers']['status-code']); $this->assertNotEmpty($response['body']['$id']); - $dateValidator = new DatetimeValidator(); $this->assertEquals(true, $dateValidator->isValid($response['body']['$createdAt'])); $this->assertEquals(true, $dateValidator->isValid($response['body']['$updatedAt'])); $this->assertEquals($data['deploymentId'], $response['body']['deployment']); - /** - * Test for FAILURE - */ - return $data; } @@ -843,127 +635,64 @@ public function testListDeployments(array $data): array /** * Test for SUCCESS */ - $function = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/deployments', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $functionId = $data['functionId']; + $deployments = $this->listDeployments($functionId); - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertEquals($function['body']['total'], 3); - $this->assertIsArray($function['body']['deployments']); - $this->assertCount(3, $function['body']['deployments']); - $this->assertArrayHasKey('size', $function['body']['deployments'][0]); - $this->assertArrayHasKey('buildSize', $function['body']['deployments'][0]); + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertEquals($deployments['body']['total'], 3); + $this->assertIsArray($deployments['body']['deployments']); + $this->assertCount(3, $deployments['body']['deployments']); + $this->assertArrayHasKey('size', $deployments['body']['deployments'][0]); + $this->assertArrayHasKey('buildSize', $deployments['body']['deployments'][0]); - /** - * Test search queries - */ - $function = $this->client->call( - Client::METHOD_GET, - '/functions/' . $data['functionId'] . '/deployments', - array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders(), [ - 'search' => $data['functionId'] - ]) - ); - - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertEquals(3, $function['body']['total']); - $this->assertIsArray($function['body']['deployments']); - $this->assertCount(3, $function['body']['deployments']); - $this->assertEquals($function['body']['deployments'][0]['$id'], $data['deploymentId']); - - $function = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/deployments', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $deployments = $this->listDeployments($functionId, [ 'queries' => [ Query::limit(1)->toString(), ], ]); - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertCount(1, $function['body']['deployments']); + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertCount(1, $deployments['body']['deployments']); - $function = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/deployments', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $deployments = $this->listDeployments($functionId, [ 'queries' => [ Query::offset(1)->toString(), ], ]); - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertCount(2, $function['body']['deployments']); + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertCount(2, $deployments['body']['deployments']); - $function = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/deployments', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $deployments = $this->listDeployments($functionId, [ 'queries' => [ Query::equal('entrypoint', ['index.php'])->toString(), ], ]); - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertCount(3, $function['body']['deployments']); + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertCount(3, $deployments['body']['deployments']); - $function = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/deployments', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $deployments = $this->listDeployments($functionId, [ 'queries' => [ Query::equal('entrypoint', ['index.js'])->toString(), ], ]); - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertCount(0, $function['body']['deployments']); - - $function = $this->client->call( - Client::METHOD_GET, - '/functions/' . $data['functionId'] . '/deployments', - array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders(), [ - 'search' => 'Test' - ]) - ); - - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertEquals(3, $function['body']['total']); - $this->assertIsArray($function['body']['deployments']); - $this->assertCount(3, $function['body']['deployments']); - $this->assertEquals($function['body']['deployments'][0]['$id'], $data['deploymentId']); + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertCount(0, $deployments['body']['deployments']); - $function = $this->client->call( - Client::METHOD_GET, - '/functions/' . $data['functionId'] . '/deployments', - array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders(), [ - 'search' => 'php-8.0' - ]) - ); + $deployments = $this->listDeployments($functionId, [ + 'search' => 'php-8.0' + ]); - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertEquals(3, $function['body']['total']); - $this->assertIsArray($function['body']['deployments']); - $this->assertCount(3, $function['body']['deployments']); - $this->assertEquals($function['body']['deployments'][0]['$id'], $data['deploymentId']); + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertEquals(3, $deployments['body']['total']); + $this->assertIsArray($deployments['body']['deployments']); + $this->assertCount(3, $deployments['body']['deployments']); + $this->assertEquals($deployments['body']['deployments'][0]['$id'], $data['deploymentId']); - $function = $this->client->call( - Client::METHOD_GET, - '/functions/' . $data['functionId'] . '/deployments', - array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), + $deployments = $this->listDeployments( + $functionId, [ 'queries' => [ Query::equal('type', ['manual'])->toString(), @@ -971,16 +700,11 @@ public function testListDeployments(array $data): array ] ); - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertEquals(3, $function['body']['total']); + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertEquals(3, $deployments['body']['total']); - $function = $this->client->call( - Client::METHOD_GET, - '/functions/' . $data['functionId'] . '/deployments', - array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), + $deployments = $this->listDeployments( + $functionId, [ 'queries' => [ Query::equal('type', ['vcs'])->toString(), @@ -988,16 +712,11 @@ public function testListDeployments(array $data): array ] ); - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertEquals(0, $function['body']['total']); + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertEquals(0, $deployments['body']['total']); - $function = $this->client->call( - Client::METHOD_GET, - '/functions/' . $data['functionId'] . '/deployments', - array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), + $deployments = $this->listDeployments( + $functionId, [ 'queries' => [ Query::equal('type', ['invalid-string'])->toString(), @@ -1005,16 +724,11 @@ public function testListDeployments(array $data): array ] ); - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertEquals(0, $function['body']['total']); + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertEquals(0, $deployments['body']['total']); - $function = $this->client->call( - Client::METHOD_GET, - '/functions/' . $data['functionId'] . '/deployments', - array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), + $deployments = $this->listDeployments( + $functionId, [ 'queries' => [ Query::greaterThan('size', 10000)->toString(), @@ -1022,16 +736,11 @@ public function testListDeployments(array $data): array ] ); - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertEquals(1, $function['body']['total']); + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertEquals(1, $deployments['body']['total']); - $function = $this->client->call( - Client::METHOD_GET, - '/functions/' . $data['functionId'] . '/deployments', - array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), + $deployments = $this->listDeployments( + $functionId, [ 'queries' => [ Query::greaterThan('size', 0)->toString(), @@ -1039,57 +748,41 @@ public function testListDeployments(array $data): array ] ); - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertEquals(3, $function['body']['total']); + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertEquals(3, $deployments['body']['total']); - $function = $this->client->call( - Client::METHOD_GET, - '/functions/' . $data['functionId'] . '/deployments', - array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), + $deployments = $this->listDeployments( + $functionId, [ 'queries' => [ Query::greaterThan('size', -100)->toString(), ], ] ); - - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertEquals(3, $function['body']['total']); + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertEquals(3, $deployments['body']['total']); /** * Ensure size output and size filters work exactly. * Prevents buildSize being counted towards deployemtn size */ - $response = $this->client->call( - Client::METHOD_GET, - '/functions/' . $data['functionId'] . '/deployments', - array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), + $deployments = $this->listDeployments( + $functionId, [ Query::limit(1)->toString(), ] ); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertGreaterThanOrEqual(1, $response['body']['total']); - $this->assertNotEmpty($response['body']['deployments'][0]['$id']); - $this->assertNotEmpty($response['body']['deployments'][0]['size']); + $this->assertEquals(200, $deployments['headers']['status-code']); + $this->assertGreaterThanOrEqual(1, $deployments['body']['total']); + $this->assertNotEmpty($deployments['body']['deployments'][0]['$id']); + $this->assertNotEmpty($deployments['body']['deployments'][0]['size']); - $deploymentId = $function['body']['deployments'][0]['$id']; - $deploymentSize = $function['body']['deployments'][0]['size']; + $deploymentId = $deployments['body']['deployments'][0]['$id']; + $deploymentSize = $deployments['body']['deployments'][0]['size']; - $response = $this->client->call( - Client::METHOD_GET, - '/functions/' . $data['functionId'] . '/deployments', - array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), + $deployments = $this->listDeployments( + $functionId, [ 'queries' => [ Query::equal('size', [$deploymentSize])->toString(), @@ -1097,19 +790,20 @@ public function testListDeployments(array $data): array ] ); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertGreaterThan(0, $response['body']['total']); - - $found = false; - foreach ($response['body']['deployments'] as $deployment) { - if ($deployment['$id'] === $deploymentId) { - $found = true; - $this->assertEquals($deploymentSize, $deployment['size']); - break; - } - } + $this->assertEquals(200, $deployments['headers']['status-code']); + $this->assertGreaterThan(0, $deployments['body']['total']); + + $matchingDeployment = array_filter( + $deployments['body']['deployments'], + fn ($deployment) => $deployment['$id'] === $deploymentId + ); + + $this->assertNotEmpty($matchingDeployment, "Deployment with ID {$deploymentId} not found"); - $this->assertTrue($found); + if (!empty($matchingDeployment)) { + $deployment = reset($matchingDeployment); + $this->assertEquals($deploymentSize, $deployment['size']); + } return $data; } @@ -1122,27 +816,21 @@ public function testGetDeployment(array $data): array /** * Test for SUCCESS */ - $function = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/deployments/' . $data['deploymentId'], array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $deployment = $this->getDeployment($data['functionId'], $data['deploymentId']); - $this->assertEquals(200, $function['headers']['status-code']); - $this->assertGreaterThan(0, $function['body']['buildTime']); - $this->assertNotEmpty($function['body']['status']); - $this->assertNotEmpty($function['body']['buildLogs']); - $this->assertArrayHasKey('size', $function['body']); - $this->assertArrayHasKey('buildSize', $function['body']); + $this->assertEquals(200, $deployment['headers']['status-code']); + $this->assertGreaterThan(0, $deployment['body']['buildTime']); + $this->assertNotEmpty($deployment['body']['status']); + $this->assertNotEmpty($deployment['body']['buildLogs']); + $this->assertArrayHasKey('size', $deployment['body']); + $this->assertArrayHasKey('buildSize', $deployment['body']); /** * Test for FAILURE */ - $function = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/deployments/x', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $deployment = $this->getDeployment($data['functionId'], 'x'); - $this->assertEquals($function['headers']['status-code'], 404); + $this->assertEquals($deployment['headers']['status-code'], 404); return $data; } @@ -1155,15 +843,10 @@ public function testCreateExecution($data): array /** * Test for SUCCESS */ - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $data['functionId'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'async' => false, + $execution = $this->createExecution($data['functionId'], [ + 'async' => 'false', ]); - $executionId = $execution['body']['$id'] ?? ''; - $this->assertEquals(201, $execution['headers']['status-code']); $this->assertNotEmpty($execution['body']['$id']); $this->assertNotEmpty($execution['body']['functionId']); @@ -1183,13 +866,13 @@ public function testCreateExecution($data): array $this->assertNotEmpty($execution['body']['logs']); $this->assertLessThan(10, $execution['body']['duration']); - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $data['functionId'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'async' => false, + $executionId = $execution['body']['$id'] ?? ''; + + $execution = $this->createExecution($data['functionId'], [ + 'async' => 'false', 'path' => '/?code=400' ]); + $this->assertEquals(201, $execution['headers']['status-code']); $this->assertEquals('completed', $execution['body']['status']); $this->assertEquals(400, $execution['body']['responseStatusCode']); @@ -1198,6 +881,7 @@ public function testCreateExecution($data): array 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), []); + $this->assertEquals(204, $execution['headers']['status-code']); return array_merge($data, ['executionId' => $executionId]); @@ -1211,82 +895,62 @@ public function testListExecutions(array $data): array /** * Test for SUCCESS */ - $function = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $executions = $this->listExecutions($data['functionId']); - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertEquals($function['body']['total'], 1); - $this->assertIsArray($function['body']['executions']); - $this->assertCount(1, $function['body']['executions']); - $this->assertEquals($function['body']['executions'][0]['$id'], $data['executionId']); + $this->assertEquals(200, $executions['headers']['status-code']); + $this->assertEquals(1, $executions['body']['total']); + $this->assertIsArray($executions['body']['executions']); + $this->assertCount(1, $executions['body']['executions']); - $response = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $executions = $this->listExecutions($data['functionId'], [ 'queries' => [ Query::limit(1)->toString(), ], ]); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertCount(1, $response['body']['executions']); + $this->assertEquals(200, $executions['headers']['status-code']); + $this->assertCount(1, $executions['body']['executions']); - $response = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $executions = $this->listExecutions($data['functionId'], [ 'queries' => [ - Query::offset(1)->toString(), + Query::offset(0)->toString(), ], ]); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertCount(0, $response['body']['executions']); + $this->assertEquals(200, $executions['headers']['status-code']); + $this->assertCount(1, $executions['body']['executions']); - $response = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $executions = $this->listExecutions($data['functionId'], [ 'queries' => [ Query::equal('trigger', ['http'])->toString(), ], ]); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertCount(1, $response['body']['executions']); + $this->assertEquals(200, $executions['headers']['status-code']); + $this->assertCount(1, $executions['body']['executions']); /** * Test search queries */ - - $response = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $executions = $this->listExecutions($data['functionId'], [ 'search' => $data['executionId'], ]); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals(1, $response['body']['total']); - $this->assertIsInt($response['body']['total']); - $this->assertCount(1, $response['body']['executions']); - $this->assertEquals($data['functionId'], $response['body']['executions'][0]['functionId']); + $this->assertEquals(200, $executions['headers']['status-code']); + $this->assertEquals(1, $executions['body']['total']); + $this->assertIsInt($executions['body']['total']); + $this->assertCount(1, $executions['body']['executions']); + $this->assertEquals($data['functionId'], $executions['body']['executions'][0]['functionId']); - $response = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $executions = $this->listExecutions($data['functionId'], [ 'search' => $data['functionId'], ]); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals(1, $response['body']['total']); - $this->assertIsInt($response['body']['total']); - $this->assertCount(1, $response['body']['executions']); - $this->assertEquals($data['executionId'], $response['body']['executions'][0]['$id']); + $this->assertEquals(200, $executions['headers']['status-code']); + $this->assertEquals(1, $executions['body']['total']); + $this->assertIsInt($executions['body']['total']); + $this->assertCount(1, $executions['body']['executions']); + $this->assertEquals($data['executionId'], $executions['body']['executions'][0]['$id']); return $data; } @@ -1294,17 +958,13 @@ public function testListExecutions(array $data): array /** * @depends testUpdateDeployment */ - #[Retry(count: 2)] public function testSyncCreateExecution($data): array { /** * Test for SUCCESS */ - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $data['functionId'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - // Testing default value, should be 'async' => false + $execution = $this->createExecution($data['functionId'], [ + // Testing default value, should be 'async' => 'false' ]); $this->assertEquals(201, $execution['headers']['status-code']); @@ -1328,21 +988,15 @@ public function testGetExecution(array $data): array /** * Test for SUCCESS */ - $function = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/executions/' . $data['executionId'], array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $execution = $this->getExecution($data['functionId'], $data['executionId']); - $this->assertEquals($function['headers']['status-code'], 200); - $this->assertEquals($function['body']['$id'], $data['executionId']); + $this->assertEquals($execution['headers']['status-code'], 200); + $this->assertEquals($execution['body']['$id'], $data['executionId']); /** * Test for FAILURE */ - $function = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/executions/x', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $function = $this->getExecution($data['functionId'], 'x'); $this->assertEquals($function['headers']['status-code'], 404); @@ -1385,6 +1039,7 @@ public function testDeleteExecution($data): array ]); $executionId = $execution['body']['$id'] ?? ''; + $this->assertEquals(202, $execution['headers']['status-code']); $execution = $this->client->call(Client::METHOD_DELETE, '/functions/' . $data['functionId'] . '/executions/' . $executionId, array_merge([ @@ -1399,46 +1054,18 @@ public function testDeleteExecution($data): array return $data; } - /** - * @depends testGetExecution - */ - public function testDeleteScheduledExecution($data): array - { - $futureTime = (new \DateTime())->add(new \DateInterval('PT10H')); - $futureTime->setTime($futureTime->format('H'), $futureTime->format('i'), 0, 0); - - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $data['functionId'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'async' => true, - 'scheduledAt' => $futureTime->format('Y-m-d H:i:s'), - ]); - - $executionId = $execution['body']['$id'] ?? ''; - $this->assertEquals(202, $execution['headers']['status-code']); - sleep(5); - $execution = $this->client->call(Client::METHOD_DELETE, '/functions/' . $data['functionId'] . '/executions/' . $executionId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); - - $this->assertEquals(204, $execution['headers']['status-code']); - $this->assertEmpty($execution['body']); - return $data; - } /** * @depends testGetExecution */ - #[Retry(count: 2)] public function testUpdateSpecs($data): array { /** * Test for SUCCESS */ - $response1 = $this->client->call(Client::METHOD_PUT, '/functions/' . $data['functionId'], array_merge([ + // Change the function specs + $function = $this->client->call(Client::METHOD_PUT, '/functions/' . $data['functionId'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -1453,22 +1080,20 @@ public function testUpdateSpecs($data): array 'specification' => Specification::S_1VCPU_1GB, ]); - $this->assertEquals(200, $response1['headers']['status-code']); - $this->assertNotEmpty($response1['body']['$id']); - $this->assertEquals(Specification::S_1VCPU_1GB, $response1['body']['specification']); + $this->assertEquals(200, $function['headers']['status-code']); + $this->assertNotEmpty($function['body']['$id']); + $this->assertEquals(Specification::S_1VCPU_1GB, $function['body']['specification']); - // Test Execution - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $data['functionId'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + // Verify the updated specs + $execution = $this->createExecution($data['functionId']); $output = json_decode($execution['body']['responseBody'], true); $this->assertEquals(1, $output['APPWRITE_FUNCTION_CPUS']); $this->assertEquals(1024, $output['APPWRITE_FUNCTION_MEMORY']); - $response2 = $this->client->call(Client::METHOD_PUT, '/functions/' . $data['functionId'], array_merge([ + // Change the specs to 1vcpu 512mb + $function = $this->client->call(Client::METHOD_PUT, '/functions/' . $data['functionId'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -1483,15 +1108,12 @@ public function testUpdateSpecs($data): array 'specification' => Specification::S_1VCPU_512MB, ]); - $this->assertEquals(200, $response2['headers']['status-code']); - $this->assertNotEmpty($response2['body']['$id']); - $this->assertEquals(Specification::S_1VCPU_512MB, $response2['body']['specification']); + $this->assertEquals(200, $function['headers']['status-code']); + $this->assertNotEmpty($function['body']['$id']); + $this->assertEquals(Specification::S_1VCPU_512MB, $function['body']['specification']); - // Test Execution - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $data['functionId'] . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + // Verify the updated specs + $execution = $this->createExecution($data['functionId']); $output = json_decode($execution['body']['responseBody'], true); @@ -1501,7 +1123,7 @@ public function testUpdateSpecs($data): array /** * Test for FAILURE */ - $response3 = $this->client->call(Client::METHOD_PUT, '/functions/' . $data['functionId'], array_merge([ + $function = $this->client->call(Client::METHOD_PUT, '/functions/' . $data['functionId'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -1516,8 +1138,8 @@ public function testUpdateSpecs($data): array 'specification' => 's-2vcpu-512mb', // Invalid specification ]); - $this->assertEquals(400, $response3['headers']['status-code']); - $this->assertStringStartsWith('Invalid `specification` param: Specification must be one of:', $response3['body']['message']); + $this->assertEquals(400, $function['headers']['status-code']); + $this->assertStringStartsWith('Invalid `specification` param: Specification must be one of:', $function['body']['message']); return $data; } @@ -1530,24 +1152,17 @@ public function testDeleteDeployment($data): array /** * Test for SUCCESS */ - $function = $this->client->call(Client::METHOD_DELETE, '/functions/' . $data['functionId'] . '/deployments/' . $data['deploymentId'], array_merge([ + $deployment = $this->client->call(Client::METHOD_DELETE, '/functions/' . $data['functionId'] . '/deployments/' . $data['deploymentId'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); - $this->assertEquals(204, $function['headers']['status-code']); - $this->assertEmpty($function['body']); - - $function = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/deployments/' . $data['deploymentId'], array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $this->assertEquals(204, $deployment['headers']['status-code']); + $this->assertEmpty($deployment['body']); - $this->assertEquals(404, $function['headers']['status-code']); + $deployment = $this->getDeployment($data['functionId'], $data['deploymentId']); - /** - * Test for FAILURE - */ + $this->assertEquals(404, $deployment['headers']['status-code']); return $data; } @@ -1555,153 +1170,63 @@ public function testDeleteDeployment($data): array /** * @depends testCreateDeployment */ - public function testDelete($data): array + public function testDeleteFunction($data): array { /** * Test for SUCCESS */ - $function = $this->client->call(Client::METHOD_DELETE, '/functions/' . $data['functionId'], array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $function = $this->deleteFunction($data['functionId']); $this->assertEquals(204, $function['headers']['status-code']); $this->assertEmpty($function['body']); - $function = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'], array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $function = $this->getFunction($data['functionId']); $this->assertEquals(404, $function['headers']['status-code']); - /** - * Test for FAILURE - */ - return $data; } - public function testTimeout() + public function testExecutionTimeout() { - $name = 'php-8.0'; - $entrypoint = 'index.php'; - $timeout = 15; - $folder = 'timeout'; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); - - $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), - 'name' => 'Test ' . $name, - 'runtime' => $name, - 'entrypoint' => $entrypoint, + 'name' => 'Test php-8.0', + 'runtime' => 'php-8.0', + 'entrypoint' => 'index.php', 'events' => [], - 'schedule' => '* * * * *', // execute every minute - 'timeout' => $timeout, + 'schedule' => '', + 'timeout' => 5, // Should timeout after 5 seconds ]); - - $functionId = $function['body']['$id'] ?? ''; - - $this->assertEquals(201, $function['headers']['status-code']); - $this->assertEquals('* * * * *', $function['body']['schedule']); - - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'entrypoint' => $entrypoint, - 'code' => new CURLFile($code, 'application/x-gzip', basename($code)), + $this->setupDeployment($functionId, [ + 'code' => $this->packageFunction('timeout'), 'activate' => true, ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - - $this->assertEquals(202, $deployment['headers']['status-code']); - - $this->awaitDeploymentIsBuilt($functionId, $deploymentId); - - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'async' => true, + $execution = $this->createExecution($functionId, [ + 'async' => true ]); - $executionId = $execution['body']['$id'] ?? ''; - $this->assertEquals(202, $execution['headers']['status-code']); - sleep(20); - - $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'queries' => [ - Query::equal('trigger', ['http'])->toString(), - ], - ]); - - $this->assertEquals($executions['headers']['status-code'], 200); - $this->assertEquals($executions['body']['total'], 1); - $this->assertIsArray($executions['body']['executions']); - $this->assertCount(1, $executions['body']['executions']); - $this->assertEquals($executions['body']['executions'][0]['$id'], $executionId); - $this->assertEquals($executions['body']['executions'][0]['trigger'], 'http'); - $this->assertEquals($executions['body']['executions'][0]['status'], 'failed'); - $this->assertEquals($executions['body']['executions'][0]['responseStatusCode'], 500); - $this->assertGreaterThan(2, $executions['body']['executions'][0]['duration']); - $this->assertLessThan(20, $executions['body']['executions'][0]['duration']); - $this->assertEquals($executions['body']['executions'][0]['responseBody'], ''); - $this->assertEquals($executions['body']['executions'][0]['logs'], ''); - $this->assertStringContainsString('timed out', $executions['body']['executions'][0]['errors']); - - $start = \microtime(true); - while (true) { - $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'queries' => [ - Query::equal('trigger', ['schedule'])->toString(), - ], - ]); - - $this->assertEquals(200, $executions['headers']['status-code']); - - if (\count($executions['body']['executions']) > 0) { - break; - } - - // 0s would mean instant execution - // +60 seconds, maximum possible waiting time before next minute - // +10 seconds, maximum update interval time - // +60 seconds, possible overlap between update and schedule tick - // +10 seconds, maximum execution time including cold-start - // Result: We allow maximum - if (\microtime(true) - $start > 140) { - $this->fail('Execution did not create within 140 seconds of schedule: ' . \json_encode($executions)); - } + $executionId = $execution['body']['$id'] ?? ''; - usleep(1000000); // 1 second - } + \sleep(5); // Wait for the function to timeout - $this->assertEquals(200, $executions['headers']['status-code']); - $this->assertGreaterThanOrEqual(1, \count($executions['body']['executions'])); - $this->assertEquals($executions['body']['executions'][0]['trigger'], 'schedule'); + $this->assertEventually(function () use ($functionId, $executionId) { + $execution = $this->getExecution($functionId, $executionId); - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); + $this->assertEquals(200, $execution['headers']['status-code']); + $this->assertEquals('failed', $execution['body']['status']); + $this->assertEquals(500, $execution['body']['responseStatusCode']); + $this->assertGreaterThan(2, $execution['body']['duration']); + $this->assertLessThan(20, $execution['body']['duration']); + $this->assertEquals('', $execution['body']['responseBody']); + $this->assertEquals('', $execution['body']['logs']); + $this->assertStringContainsString('timed out', $execution['body']['errors']); + }, 10000, 500); - $this->assertEquals(204, $response['headers']['status-code']); + $this->cleanupFunction($functionId); } /** @@ -1727,72 +1252,38 @@ public function provideCustomExecutions(): array * @param string $entrypoint * * @dataProvider provideCustomExecutions - * @depends testTimeout + * @depends testExecutionTimeout */ public function testCreateCustomExecution(string $folder, string $name, string $entrypoint, string $runtimeName, string $runtimeVersion) { - $timeout = 15; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); - - $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test ' . $name, 'runtime' => $name, 'entrypoint' => $entrypoint, 'events' => [], - 'timeout' => $timeout, + 'timeout' => 15, ]); - $functionId = $function['body']['$id'] ?? ''; - - $this->assertEquals(201, $function['headers']['status-code']); - - $variable = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/variables', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $variable = $this->createVariable($functionId, [ 'key' => 'CUSTOM_VARIABLE', - 'value' => 'variable', + 'value' => 'variable' ]); $this->assertEquals(201, $variable['headers']['status-code']); - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $deploymentId = $this->setupDeployment($functionId, [ 'entrypoint' => $entrypoint, - 'code' => new CURLFile($code, 'application/x-gzip', basename($code)), + 'code' => $this->packageFunction($folder), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - $this->assertEquals(202, $deployment['headers']['status-code']); - - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId, checkForSuccess: false); - - $deployment = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployments/' . $deploymentId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); - - $this->assertEquals(200, $deployment['headers']['status-code']); - - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $execution = $this->createExecution($functionId, [ 'body' => 'foobar', - 'async' => false + 'async' => 'false' ]); - $executionId = $execution['body']['$id'] ?? ''; $output = json_decode($execution['body']['responseBody'], true); - $this->assertEquals(201, $execution['headers']['status-code']); $this->assertEquals('completed', $execution['body']['status']); $this->assertEquals(200, $execution['body']['responseStatusCode']); @@ -1811,10 +1302,9 @@ public function testCreateCustomExecution(string $folder, string $name, string $ $this->assertStringContainsString('Amazing Function Log', $execution['body']['logs']); $this->assertEmpty($execution['body']['errors']); - $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $executionId = $execution['body']['$id'] ?? ''; + + $executions = $this->listExecutions($functionId); $this->assertEquals($executions['headers']['status-code'], 200); $this->assertEquals($executions['body']['total'], 1); @@ -1824,65 +1314,28 @@ public function testCreateCustomExecution(string $folder, string $name, string $ $this->assertEquals($executions['body']['executions'][0]['trigger'], 'http'); $this->assertStringContainsString('Amazing Function Log', $executions['body']['executions'][0]['logs']); - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); - - $this->assertEquals(204, $response['headers']['status-code']); + $this->cleanupFunction($functionId); } public function testCreateCustomExecutionBinaryResponse() { - $timeout = 15; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/php-binary-response/code.tar.gz"; - $this->packageCode('php-binary-response'); - - $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test PHP Binary executions', 'runtime' => 'php-8.0', 'entrypoint' => 'index.php', - 'timeout' => $timeout, + 'timeout' => 15, 'execute' => ['any'] ]); - - $functionId = $function['body']['$id'] ?? ''; - - $this->assertEquals(201, $function['headers']['status-code']); - - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $this->setupDeployment($functionId, [ 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', basename($code)), + 'code' => $this->packageFunction('php-binary-response'), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - $this->assertEquals(202, $deployment['headers']['status-code']); - - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId, checkForSuccess: false); - - $deployment = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployments/' . $deploymentId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); - - $this->assertEquals(200, $deployment['headers']['status-code']); - - // Wait a little for activation to finish - sleep(5); - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ 'x-appwrite-project' => $this->getProject()['$id'], - 'accept' => 'multipart/form-data', + 'accept' => 'multipart/form-data', // Accept binary response ], $this->getHeaders()), [ 'body' => null, ]); @@ -1902,7 +1355,7 @@ public function testCreateCustomExecutionBinaryResponse() */ $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ 'x-appwrite-project' => $this->getProject()['$id'], - 'accept' => 'application/json', + 'accept' => 'application/json', // Accept JSON response ], $this->getHeaders()), [ 'body' => null, ]); @@ -1910,66 +1363,29 @@ public function testCreateCustomExecutionBinaryResponse() $this->assertEquals(400, $execution['headers']['status-code']); $this->assertStringContainsString('Failed to parse response', $execution['body']['message']); - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); - - $this->assertEquals(204, $response['headers']['status-code']); + $this->cleanupFunction($functionId); } public function testCreateCustomExecutionBinaryRequest() { - $timeout = 15; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/php-binary-request/code.tar.gz"; - $this->packageCode('php-binary-request'); - - $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test PHP Binary executions', 'runtime' => 'php-8.0', 'entrypoint' => 'index.php', - 'timeout' => $timeout, + 'timeout' => 15, 'execute' => ['any'] ]); - - $functionId = $function['body']['$id'] ?? ''; - - $this->assertEquals(201, $function['headers']['status-code']); - - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $this->setupDeployment($functionId, [ 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', basename($code)), + 'code' => $this->packageFunction('php-binary-request'), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - $this->assertEquals(202, $deployment['headers']['status-code']); - - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId, checkForSuccess: false); - - $deployment = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployments/' . $deploymentId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); - - $this->assertEquals(200, $deployment['headers']['status-code']); - - // Wait a little for activation to finish - sleep(5); - $bytes = pack('C*', ...[0, 20, 255]); $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'multipart/form-data', + 'content-type' => 'multipart/form-data', // Send binary request 'x-appwrite-project' => $this->getProject()['$id'], 'accept' => 'application/json', ], $this->getHeaders()), [ @@ -1986,7 +1402,7 @@ public function testCreateCustomExecutionBinaryRequest() * Test for FAILURE */ $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', + 'content-type' => 'application/json', // Send JSON headers 'x-appwrite-project' => $this->getProject()['$id'], 'accept' => 'application/json', ], $this->getHeaders()), [ @@ -1994,98 +1410,53 @@ public function testCreateCustomExecutionBinaryRequest() ], false); $executionBody = json_decode($execution['body'], true); - $this->assertNotEquals(\md5($bytes), $executionBody['responseBody']); - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); + $this->assertNotEquals(\md5($bytes), $executionBody['responseBody']); - $this->assertEquals(204, $response['headers']['status-code']); + $this->cleanupFunction($functionId); } public function testv2Function() { - $timeout = 15; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/php-v2/code.tar.gz"; - $this->packageCode('php-v2'); - - $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test PHP V2', 'runtime' => 'php-8.0', 'entrypoint' => 'index.php', 'events' => [], - 'timeout' => $timeout, + 'timeout' => 15, ]); - $functionId = $function['body']['$id'] ?? ''; - - $this->assertEquals(201, $function['headers']['status-code']); - - $headers = [ + $variable = $this->client->call(Client::METHOD_PATCH, '/mock/functions-v2', [ 'content-type' => 'application/json', 'origin' => 'http://localhost', 'cookie' => 'a_session_console=' . $this->getRoot()['session'], 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-mode' => 'admin', - ]; - - $variable = $this->client->call(Client::METHOD_PATCH, '/mock/functions-v2', $headers, [ + ], [ 'functionId' => $functionId ]); - $this->assertEquals(204, $variable['headers']['status-code']); - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $this->setupDeployment($functionId, [ 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', basename($code)), + 'code' => $this->packageFunction('php-v2'), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - $this->assertEquals(202, $deployment['headers']['status-code']); - - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId, checkForSuccess: false); - - $deployment = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployments/' . $deploymentId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); - - $this->assertEquals(200, $deployment['headers']['status-code']); - - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $execution = $this->createExecution($functionId, [ 'body' => 'foobar', - 'async' => false + 'async' => 'false' ]); - $output = json_decode($execution['body']['responseBody'], true); - $this->assertEquals(201, $execution['headers']['status-code']); $this->assertEquals('completed', $execution['body']['status']); $this->assertEquals(200, $execution['body']['responseStatusCode']); - $this->assertEquals(true, $output['v2Woks']); - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); + $output = json_decode($execution['body']['responseBody'], true); + $this->assertEquals(true, $output['v2Woks']); - $this->assertEquals(204, $response['headers']['status-code']); + $this->cleanupFunction($functionId); } public function testGetRuntimes() @@ -2113,14 +1484,7 @@ public function testGetRuntimes() public function testEventTrigger() { - $timeout = 15; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/php-event/code.tar.gz"; - $this->packageCode('php-event'); - - $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test PHP Event executions', 'runtime' => 'php-8.0', @@ -2128,38 +1492,15 @@ public function testEventTrigger() 'events' => [ 'users.*.create', ], - 'timeout' => $timeout, + 'timeout' => 15, ]); - - $functionId = $function['body']['$id'] ?? ''; - - $this->assertEquals(201, $function['headers']['status-code']); - - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $this->setupDeployment($functionId, [ 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', basename($code)), + 'code' => $this->packageFunction('php-event'), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - $this->assertEquals(202, $deployment['headers']['status-code']); - - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId, checkForSuccess: false); - - $deployment = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployments/' . $deploymentId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); - - $this->assertEquals(200, $deployment['headers']['status-code']); - - // Wait a little for activation to finish - sleep(5); - - // Create user to trigger event + // Create user as an event trigger $user = $this->client->call(Client::METHOD_POST, '/users', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -2168,108 +1509,59 @@ public function testEventTrigger() 'name' => 'Event User' ]); - $userId = $user['body']['$id']; - $this->assertEquals(201, $user['headers']['status-code']); - // Wait for execution to occur - sleep(15); + $userId = $user['body']['$id'] ?? ''; - $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $this->assertEventually(function () use ($functionId, $userId) { + $executions = $this->listExecutions($functionId); - $execution = $executions['body']['executions'][0]; + $lastExecution = $executions['body']['executions'][0]; - $this->assertEquals(200, $executions['headers']['status-code']); - $this->assertEquals('completed', $execution['status']); - $this->assertEquals(204, $execution['responseStatusCode']); - $this->assertStringContainsString($userId, $execution['logs']); - $this->assertStringContainsString('Event User', $execution['logs']); + $this->assertEquals('completed', $lastExecution['status']); + $this->assertEquals(204, $lastExecution['responseStatusCode']); + $this->assertStringContainsString($userId, $lastExecution['logs']); + $this->assertStringContainsString('Event User', $lastExecution['logs']); + }, 10000, 500); - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); + $this->cleanupFunction($functionId); - $this->assertEquals(204, $response['headers']['status-code']); - - // Cleanup : Delete user - $response = $this->client->call(Client::METHOD_DELETE, '/users/' . $userId, [ + // Cleanup user + $user = $this->client->call(Client::METHOD_DELETE, '/users/' . $userId, [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], ], []); - - $this->assertEquals(204, $response['headers']['status-code']); + $this->assertEquals(204, $user['headers']['status-code']); } public function testScopes() { - $timeout = 15; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/php-scopes/code.tar.gz"; - $this->packageCode('php-scopes'); - - $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test PHP Scopes executions', - 'commands' => 'composer update --no-interaction --ignore-platform-reqs --optimize-autoloader --prefer-dist --no-dev', + 'commands' => 'sh setup.sh && composer install', 'runtime' => 'php-8.0', 'entrypoint' => 'index.php', 'scopes' => ['users.read'], - 'timeout' => $timeout, + 'timeout' => 15, ]); - $functionId = $function['body']['$id'] ?? ''; - - $this->assertEquals(201, $function['headers']['status-code']); - - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $deploymentId = $this->setupDeployment($functionId, [ 'entrypoint' => 'index.php', - 'commands' => 'sh setup.sh && composer install', - 'code' => new CURLFile($code, 'application/x-gzip', basename($code)), - 'activate' => true + 'code' => $this->packageFunction('php-scopes'), + 'activate' => true, ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - $this->assertEquals(202, $deployment['headers']['status-code']); - - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId, checkForSuccess: false); - - $deployment = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/deployments/' . $deploymentId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); + $deployment = $this->getDeployment($functionId, $deploymentId); $this->assertEquals(200, $deployment['headers']['status-code']); $this->assertStringContainsStringIgnoringCase("200 OK", $deployment['body']['buildLogs']); $this->assertStringContainsStringIgnoringCase('"total":', $deployment['body']['buildLogs']); $this->assertStringContainsStringIgnoringCase('"users":', $deployment['body']['buildLogs']); - $deployment = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployments/' . $deploymentId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); - - $this->assertEquals(200, $deployment['headers']['status-code']); - - // Wait a little for activation to finish - sleep(5); - - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'async' => false + $execution = $this->createExecution($functionId, [ + 'async' => 'false', ]); $this->assertEquals(201, $execution['headers']['status-code']); @@ -2279,92 +1571,47 @@ public function testScopes() $this->assertNotEmpty($execution['body']['responseBody']); $this->assertStringContainsString("total", $execution['body']['responseBody']); - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'async' => true + $execution = $this->createExecution($functionId, [ + 'async' => true, ]); $this->assertEquals(202, $execution['headers']['status-code']); $this->assertNotEmpty($execution['body']['$id']); - \sleep(10); - - $execution = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions/' . $execution['body']['$id'], array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); + $executionId = $execution['body']['$id'] ?? ''; - $this->assertEquals(200, $execution['headers']['status-code']); - $this->assertEquals('completed', $execution['body']['status']); - $this->assertEquals(200, $execution['body']['responseStatusCode']); - $this->assertGreaterThan(0, $execution['body']['duration']); - $this->assertNotEmpty($execution['body']['logs']); - $this->assertStringContainsString("total", $execution['body']['logs']); + $this->assertEventually(function () use ($functionId, $executionId) { + $execution = $this->getExecution($functionId, $executionId); - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); + $this->assertEquals(200, $execution['headers']['status-code']); + $this->assertEquals('completed', $execution['body']['status']); + $this->assertEquals(200, $execution['body']['responseStatusCode']); + $this->assertGreaterThan(0, $execution['body']['duration']); + $this->assertNotEmpty($execution['body']['logs']); + $this->assertStringContainsString("total", $execution['body']['logs']); + }, 10000, 500); - $this->assertEquals(204, $response['headers']['status-code']); + $this->cleanupFunction($functionId); } public function testCookieExecution() { - $timeout = 15; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/php-cookie/code.tar.gz"; - $this->packageCode('php-cookie'); - - $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test PHP Cookie executions', 'runtime' => 'php-8.0', 'entrypoint' => 'index.php', - 'timeout' => $timeout, + 'timeout' => 15, ]); - - $functionId = $function['body']['$id'] ?? ''; - - $this->assertEquals(201, $function['headers']['status-code']); - - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $this->setupDeployment($functionId, [ 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', basename($code)), + 'code' => $this->packageFunction('php-cookie'), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - $this->assertEquals(202, $deployment['headers']['status-code']); - - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId, checkForSuccess: false); - - $deployment = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployments/' . $deploymentId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); - - $this->assertEquals(200, $deployment['headers']['status-code']); - - // Wait a little for activation to finish - sleep(5); - $cookie = 'cookieName=cookieValue; cookie2=value2; cookie3=value=3; cookie4=val:ue4; cookie5=value5'; - - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'async' => false, + $execution = $this->createExecution($functionId, [ + 'async' => 'false', 'headers' => [ 'cookie' => $cookie ] @@ -2376,38 +1623,20 @@ public function testCookieExecution() $this->assertEquals($cookie, $execution['body']['responseBody']); $this->assertGreaterThan(0, $execution['body']['duration']); - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); - - $this->assertEquals(204, $response['headers']['status-code']); + $this->cleanupFunction($functionId); } public function testFunctionsDomain() { - $timeout = 15; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/php-cookie/code.tar.gz"; - $this->packageCode('php-cookie'); - - $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test PHP Cookie executions', 'runtime' => 'php-8.0', 'entrypoint' => 'index.php', - 'timeout' => $timeout, + 'timeout' => 15, 'execute' => ['any'] ]); - $functionId = $function['body']['$id'] ?? ''; - - $this->assertEquals(201, $function['headers']['status-code']); - $rules = $this->client->call(Client::METHOD_GET, '/proxy/rules', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -2425,30 +1654,12 @@ public function testFunctionsDomain() $domain = $rules['body']['rules'][0]['domain']; - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $this->setupDeployment($functionId, [ 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', basename($code)), + 'code' => $this->packageFunction('php-cookie'), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - $this->assertEquals(202, $deployment['headers']['status-code']); - - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId, checkForSuccess: false); - - $deployment = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployments/' . $deploymentId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); - - $this->assertEquals(200, $deployment['headers']['status-code']); - - // Wait a little for activation to finish - sleep(5); - $cookie = 'cookieName=cookieValue; cookie2=value2; cookie3=value=3; cookie4=val:ue4; cookie5=value5'; $proxyClient = new Client(); @@ -2463,67 +1674,42 @@ public function testFunctionsDomain() $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals($cookie, $response['body']); - // Await Aggregation - sleep(App::getEnv('_APP_USAGE_AGGREGATION_INTERVAL', 30)); - - $tries = 0; - while (true) { - try { - $response = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/usage', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'] - ], $this->getHeaders()), [ - 'range' => '24h' - ]); - - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals(19, count($response['body'])); - $this->assertEquals('24h', $response['body']['range']); - $this->assertEquals(1, $response['body']['executionsTotal']); - - break; - } catch (ExpectationFailedException $th) { - if ($tries >= 5) { - throw $th; - } else { - $tries++; - sleep(5); - } - } - } + // Async execution document creation + $this->assertEventually(function () use ($functionId) { + $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), []); - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); + $this->assertEquals(200, $executions['headers']['status-code']); + $this->assertEquals(1, count($executions['body']['executions'])); + }); - $this->assertEquals(204, $response['headers']['status-code']); + $this->assertEventually(function () use ($functionId) { + $response = $this->getFunctionUsage($functionId, [ + 'range' => '24h' + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(19, count($response['body'])); + $this->assertEquals('24h', $response['body']['range']); + $this->assertEquals(1, $response['body']['executionsTotal']); + }, 25000, 1000); + + $this->cleanupFunction($functionId); } public function testFunctionsDomainBinaryResponse() { - $timeout = 15; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/php-binary-response/code.tar.gz"; - $this->packageCode('php-binary-response'); - - $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test PHP Binary executions', 'runtime' => 'php-8.0', 'entrypoint' => 'index.php', - 'timeout' => $timeout, + 'timeout' => 15, 'execute' => ['any'] ]); - $functionId = $function['body']['$id'] ?? ''; - - $this->assertEquals(201, $function['headers']['status-code']); - $rules = $this->client->call(Client::METHOD_GET, '/proxy/rules', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -2541,30 +1727,12 @@ public function testFunctionsDomainBinaryResponse() $domain = $rules['body']['rules'][0]['domain']; - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $this->setupDeployment($functionId, [ 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', basename($code)), + 'code' => $this->packageFunction('php-binary-response'), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - $this->assertEquals(202, $deployment['headers']['status-code']); - - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId, checkForSuccess: false); - - $deployment = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployments/' . $deploymentId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); - - $this->assertEquals(200, $deployment['headers']['status-code']); - - // Wait a little for activation to finish - sleep(5); - $proxyClient = new Client(); $proxyClient->setEndpoint('http://' . $domain); @@ -2578,38 +1746,20 @@ public function testFunctionsDomainBinaryResponse() $this->assertEquals(10, $bytes['byte2']); $this->assertEquals(255, $bytes['byte3']); - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); - - $this->assertEquals(204, $response['headers']['status-code']); + $this->cleanupFunction($functionId); } public function testFunctionsDomainBinaryRequest() { - $timeout = 15; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/php-binary-request/code.tar.gz"; - $this->packageCode('php-binary-request'); - - $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $functionId = $this->setupFunction([ 'functionId' => ID::unique(), 'name' => 'Test PHP Binary executions', 'runtime' => 'php-8.0', 'entrypoint' => 'index.php', - 'timeout' => $timeout, + 'timeout' => 15, 'execute' => ['any'] ]); - $functionId = $function['body']['$id'] ?? ''; - - $this->assertEquals(201, $function['headers']['status-code']); - $rules = $this->client->call(Client::METHOD_GET, '/proxy/rules', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -2627,30 +1777,12 @@ public function testFunctionsDomainBinaryRequest() $domain = $rules['body']['rules'][0]['domain']; - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $this->setupDeployment($functionId, [ 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', basename($code)), + 'code' => $this->packageFunction('php-binary-request'), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - $this->assertEquals(202, $deployment['headers']['status-code']); - - $this->awaitDeploymentIsBuilt($function['body']['$id'], $deploymentId, checkForSuccess: false); - - $deployment = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployments/' . $deploymentId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); - - $this->assertEquals(200, $deployment['headers']['status-code']); - - // Wait a little for activation to finish - sleep(5); - $proxyClient = new Client(); $proxyClient->setEndpoint('http://' . $domain); @@ -2661,18 +1793,12 @@ public function testFunctionsDomainBinaryRequest() $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals(\md5($bytes), $response['body']); - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); - - $this->assertEquals(204, $response['headers']['status-code']); + $this->cleanupFunction($functionId); } - public function testCreateFunctionWithResponseFormatHeader() + public function testResponseFilters() { + // create function with 1.5.0 response format $response = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -2686,28 +1812,75 @@ public function testCreateFunctionWithResponseFormatHeader() ]); $this->assertEquals(201, $response['headers']['status-code']); + $this->assertArrayNotHasKey('scopes', $response['body']); + $this->assertArrayNotHasKey('specification', $response['body']); - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $response['body']['$id'], [ + // get function with 1.5.0 response format header + $function = $this->client->call(Client::METHOD_GET, '/functions/' . $response['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); + 'x-appwrite-response-format' => '1.5.0', // add response format header + ], $this->getHeaders())); - $this->assertEquals(204, $response['headers']['status-code']); + $this->assertEquals(200, $function['headers']['status-code']); + $this->assertArrayNotHasKey('scopes', $function['body']); + $this->assertArrayNotHasKey('specification', $function['body']); + + $function = $this->getFunction($function['body']['$id']); + + $this->assertEquals(200, $function['headers']['status-code']); + $this->assertArrayHasKey('scopes', $function['body']); + $this->assertArrayHasKey('specification', $function['body']); + + $functionId = $function['body']['$id'] ?? ''; + $this->cleanupFunction($functionId); } - public function testFunctionLogging() + public function testRequestFilters() { - // Preparations: Create Function - $folder = 'node'; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); + $function1Id = $this->setupFunction([ + 'functionId' => ID::unique(), + 'name' => 'Test', + 'runtime' => 'php-8.0', + 'entrypoint' => 'index.php', + 'timeout' => 15, + 'execute' => ['any'] + ]); - $function = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $function2Id = $this->setupFunction([ + 'functionId' => ID::unique(), + 'name' => 'Test2', + 'runtime' => 'php-8.0', + 'entrypoint' => 'index.php', + 'timeout' => 15, + 'execute' => ['any'] + ]); + + // list functions using request filters + $response = $this->client->call( + Client::METHOD_GET, + '/functions', + array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-response-format' => '1.4.0', // Set response format for 1.4 syntax + ], $this->getHeaders()), + [ + 'queries' => [ 'equal("name", ["Test2"])' ] + ] + ); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(1, $response['body']['functions']); + $this->assertEquals('Test2', $response['body']['functions'][0]['name']); + + $this->cleanupFunction($function1Id); + $this->cleanupFunction($function2Id); + } + + public function testFunctionLogging() + { + $function = $this->createFunction([ 'functionId' => ID::unique(), 'runtime' => 'node-18.0', 'name' => 'Logging Test', @@ -2720,38 +1893,22 @@ public function testFunctionLogging() $this->assertFalse($function['body']['logging']); $this->assertNotEmpty($function['body']['$id']); - $functionId = $function['body']['$id']; + $functionId = $functionId = $function['body']['$id'] ?? ''; - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ - 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'code' => new CURLFile($code, 'application/x-gzip', basename($code)), + $this->setupDeployment($functionId, [ + 'code' => $this->packageFunction('node'), 'activate' => true ]); - $this->assertEquals(202, $deployment['headers']['status-code']); - $this->assertNotEmpty($deployment['body']['$id']); - - $deploymentId = $deployment['body']['$id'] ?? ''; - - $this->awaitDeploymentIsBuilt($functionId, $deploymentId, checkForSuccess: false); - // Sync Executions test - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); + $execution = $this->createExecution($functionId); $this->assertEquals(201, $execution['headers']['status-code']); $this->assertEmpty($execution['body']['logs']); $this->assertEmpty($execution['body']['errors']); // Async Executions test - $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $execution = $this->createExecution($functionId, [ 'async' => true ]); @@ -2760,19 +1917,16 @@ public function testFunctionLogging() $this->assertEmpty($execution['body']['errors']); $this->assertNotEmpty($execution['body']['$id']); - $executionId = $execution['body']['$id']; - - sleep(5); + $executionId = $execution['body']['$id'] ?? ''; - $execution = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions/' . $executionId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $this->assertEventually(function () use ($functionId, $executionId) { + $execution = $this->getExecution($functionId, $executionId); - $this->assertEquals(200, $execution['headers']['status-code']); - $this->assertEquals('completed', $execution['body']['status']); - $this->assertEmpty($execution['body']['logs']); - $this->assertEmpty($execution['body']['errors']); + $this->assertEquals(200, $execution['headers']['status-code']); + $this->assertEquals('completed', $execution['body']['status']); + $this->assertEmpty($execution['body']['logs']); + $this->assertEmpty($execution['body']['errors']); + }, 10000, 500); // Domain Executions test $rules = $this->client->call(Client::METHOD_GET, '/proxy/rules', array_merge([ @@ -2800,10 +1954,7 @@ public function testFunctionLogging() $this->assertEquals(200, $response['headers']['status-code']); - $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ + $executions = $this->listExecutions($functionId, [ 'queries' => [ Query::limit(1)->toString(), Query::orderDesc('$id')->toString(), @@ -2816,10 +1967,7 @@ public function testFunctionLogging() $this->assertEmpty($executions['body']['executions'][0]['errors']); // Ensure executions count - $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); + $executions = $this->listExecutions($functionId); $this->assertEquals(200, $executions['headers']['status-code']); $this->assertCount(3, $executions['body']['executions']); @@ -2830,13 +1978,49 @@ public function testFunctionLogging() $this->assertEmpty($execution['errors']); } - // Cleanup : Delete function - $response = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'], - ], []); + $this->cleanupFunction($functionId); + } + + public function testFunctionSpecifications() + { + // Check if the function specifications are correctly set in builds + $function = $this->createFunction([ + 'functionId' => ID::unique(), + 'runtime' => 'node-18.0', + 'name' => 'Specification Test', + 'entrypoint' => 'index.js', + 'logging' => false, + 'execute' => ['any'], + 'specification' => Specification::S_2VCPU_2GB, + 'commands' => 'echo $APPWRITE_FUNCTION_MEMORY:$APPWRITE_FUNCTION_CPUS', + ]); + + $this->assertEquals(201, $function['headers']['status-code']); + $this->assertEquals(Specification::S_2VCPU_2GB, $function['body']['specification']); + $this->assertNotEmpty($function['body']['$id']); + + $functionId = $functionId = $function['body']['$id'] ?? ''; + + $deploymentId = $this->setupDeployment($functionId, [ + 'code' => $this->packageFunction('node'), + 'activate' => true + ]); + + $this->assertEventually(function () use ($functionId, $deploymentId) { + $deployment = $this->getDeployment($functionId, $deploymentId); + $this->assertTrue(str_contains($deployment['body']['buildLogs'], '2048:2')); + }, 10000, 500); + + // Check if the function specifications are correctly set in executions + $execution = $this->createExecution($functionId); + + $this->assertEquals(201, $execution['headers']['status-code']); + $this->assertNotEmpty($execution['body']['$id']); + + $executionResponse = json_decode($execution['body']['responseBody'], true); + $this->assertEquals('2048', $executionResponse['APPWRITE_FUNCTION_MEMORY']); + $this->assertEquals('2', $executionResponse['APPWRITE_FUNCTION_CPUS']); - $this->assertEquals(204, $response['headers']['status-code']); + $this->cleanupFunction($functionId); } } diff --git a/tests/e2e/Services/FunctionsSchedule/FunctionsScheduleTest.php b/tests/e2e/Services/FunctionsSchedule/FunctionsScheduleTest.php new file mode 100644 index 00000000000..4f4b0c960da --- /dev/null +++ b/tests/e2e/Services/FunctionsSchedule/FunctionsScheduleTest.php @@ -0,0 +1,215 @@ +<?php + +namespace Tests\E2E\Services\FunctionsSchedule; + +use Appwrite\ID; +use Tests\E2E\Client; +use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\Scope; +use Tests\E2E\Scopes\SideServer; +use Tests\E2E\Services\Functions\FunctionsBase; +use Utopia\Database\Helpers\Role; + +class FunctionsScheduleTest extends Scope +{ + use FunctionsBase; + use ProjectCustom; + use SideServer; + + public function testCreateScheduledExecution() + { + /** + * Test for SUCCESS + */ + $functionId = $this->setupFunction([ + 'functionId' => ID::unique(), + 'name' => 'Test', + 'execute' => [Role::user($this->getUser()['$id'])->toString()], + 'runtime' => 'php-8.0', + 'entrypoint' => 'index.php', + 'events' => [ + 'users.*.create', + 'users.*.delete', + ], + 'schedule' => '* * * * *', // Execute every 60 seconds + 'timeout' => 10, + ]); + + $this->setupDeployment($functionId, [ + 'entrypoint' => 'index.php', + 'code' => $this->packageFunction('php'), + 'activate' => true + ]); + + // Wait for scheduled execution + \sleep(60); + + $this->assertEventually(function () use ($functionId) { + $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]); + + $this->assertEquals(200, $executions['headers']['status-code']); + $this->assertCount(1, $executions['body']['executions']); + + $asyncExecution = $executions['body']['executions'][0]; + + $this->assertEquals('schedule', $asyncExecution['trigger']); + $this->assertEquals('completed', $asyncExecution['status']); + $this->assertEquals(200, $asyncExecution['responseStatusCode']); + $this->assertEquals('', $asyncExecution['responseBody']); + $this->assertNotEmpty($asyncExecution['logs']); + $this->assertNotEmpty($asyncExecution['errors']); + $this->assertGreaterThan(0, $asyncExecution['duration']); + }, 60000, 500); + + $this->cleanupFunction($functionId); + } + + public function testCreateScheduledAtExecution(): void + { + /** + * Test for SUCCESS + */ + $functionId = $this->setupFunction([ + 'functionId' => ID::unique(), + 'name' => 'Test', + 'execute' => [Role::user($this->getUser()['$id'])->toString()], + 'runtime' => 'php-8.0', + 'entrypoint' => 'index.php', + 'timeout' => 10, + 'logging' => true, + ]); + $this->setupDeployment($functionId, [ + 'entrypoint' => 'index.php', + 'code' => $this->packageFunction('php'), + 'activate' => true + ]); + + // Schedule execution for the future + \date_default_timezone_set('UTC'); + $futureTime = (new \DateTime())->add(new \DateInterval('PT2M')); // 2 minute in the future + $futureTime->setTime($futureTime->format('H'), $futureTime->format('i'), 0, 0); + + + $execution = $this->client->call( + Client::METHOD_POST, + '/functions/' . $functionId . '/executions', + [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'origin' => 'http://localhost', + 'cookie' => 'a_session_' . $this->getProject()['$id'] . '=' . $this->getUser()['session'], + ], + [ + 'async' => true, + 'scheduledAt' => $futureTime->format(\DateTime::ATOM), + 'path' => '/custom-path', + 'method' => 'PATCH', + 'body' => 'custom-body', + 'headers' => [ + 'x-custom-header' => 'custom-value' + ] + ] + ); + $executionId = $execution['body']['$id']; + + $this->assertEquals(202, $execution['headers']['status-code']); + $this->assertEquals('scheduled', $execution['body']['status']); + $this->assertEquals('PATCH', $execution['body']['requestMethod']); + $this->assertEquals('/custom-path', $execution['body']['requestPath']); + $this->assertCount(0, $execution['body']['requestHeaders']); + + \sleep(120); + + $this->assertEventually(function () use ($functionId, $executionId) { + $execution = $this->getExecution($functionId, $executionId); + + $this->assertEquals(200, $execution['headers']['status-code']); + $this->assertEquals(200, $execution['body']['responseStatusCode']); + $this->assertEquals('completed', $execution['body']['status']); + $this->assertEquals('/custom-path', $execution['body']['requestPath']); + $this->assertEquals('PATCH', $execution['body']['requestMethod']); + $this->assertStringContainsString('body-is-custom-body', $execution['body']['logs']); + $this->assertStringContainsString('custom-header-is-custom-value', $execution['body']['logs']); + $this->assertStringContainsString('method-is-patch', $execution['body']['logs']); + $this->assertStringContainsString('path-is-/custom-path', $execution['body']['logs']); + $this->assertStringContainsString('user-is-' . $this->getUser()['$id'], $execution['body']['logs']); + $this->assertStringContainsString('jwt-is-valid', $execution['body']['logs']); + $this->assertGreaterThan(0, $execution['body']['duration']); + }, 10000, 500); + + /* Test for FAILURE */ + // Schedule synchronous execution + $execution = $this->createExecution($functionId, [ + 'async' => 'false', + 'scheduledAt' => $futureTime->format(\DateTime::ATOM), + ]); + $this->assertEquals(400, $execution['headers']['status-code']); + + // Execution with seconds precision + $execution = $this->createExecution($functionId, [ + 'async' => true, + 'scheduledAt' => (new \DateTime("2100-12-08 16:12:02"))->format(\DateTime::ATOM) + ]); + $this->assertEquals(400, $execution['headers']['status-code']); + + // Execution with milliseconds precision + $execution = $this->createExecution($functionId, [ + 'async' => true, + 'scheduledAt' => (new \DateTime("2100-12-08 16:12:02.255"))->format(\DateTime::ATOM) + ]); + $this->assertEquals(400, $execution['headers']['status-code']); + + // Execution too soon + $execution = $this->createExecution($functionId, [ + 'async' => true, + 'scheduledAt' => (new \DateTime())->add(new \DateInterval('PT1S'))->format(\DateTime::ATOM) + ]); + $this->assertEquals(400, $execution['headers']['status-code']); + + $this->cleanupFunction($functionId, $executionId); + } + + public function testDeleteScheduledExecution() + { + $functionId = $this->setupFunction([ + 'functionId' => ID::unique(), + 'name' => 'Test', + 'execute' => [Role::user($this->getUser()['$id'])->toString()], + 'runtime' => 'php-8.0', + 'entrypoint' => 'index.php', + 'timeout' => 10, + 'logging' => true, + ]); + + $this->setupDeployment($functionId, [ + 'entrypoint' => 'index.php', + 'code' => $this->packageFunction('php'), + 'activate' => true + ]); + + $futureTime = (new \DateTime())->add(new \DateInterval('PT10H')); + $futureTime->setTime($futureTime->format('H'), $futureTime->format('i'), 0, 0); + + $execution = $this->createExecution($functionId, [ + 'async' => true, + 'scheduledAt' => $futureTime->format('Y-m-d H:i:s'), + ]); + + $this->assertEquals(202, $execution['headers']['status-code']); + + $executionId = $execution['body']['$id'] ?? ''; + + $execution = $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId . '/executions/' . $executionId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(204, $execution['headers']['status-code']); + + $this->cleanupFunction($functionId); + } +} diff --git a/tests/e2e/Services/GraphQL/Base.php b/tests/e2e/Services/GraphQL/Base.php index 735e4eced56..0b3250cecf0 100644 --- a/tests/e2e/Services/GraphQL/Base.php +++ b/tests/e2e/Services/GraphQL/Base.php @@ -2,6 +2,7 @@ namespace Tests\E2E\Services\GraphQL; +use CURLFile; use Utopia\CLI\Console; trait Base @@ -2496,8 +2497,17 @@ functionsCreateBuild(functionId: $functionId, deploymentId: $deploymentId, build protected string $stdout = ''; protected string $stderr = ''; - protected function packageCode($folder): void + protected function packageFunction(string $function): CURLFile { - Console::execute('cd ' . realpath(__DIR__ . "/../../../resources/functions") . "/$folder && tar --exclude code.tar.gz -czf code.tar.gz .", '', $this->stdout, $this->stderr); + $folderPath = realpath(__DIR__ . '/../../../resources/functions') . "/$function"; + $tarPath = "$folderPath/code.tar.gz"; + + Console::execute("cd $folderPath && tar --exclude code.tar.gz -czf code.tar.gz .", '', $this->stdout, $this->stderr); + + if (filesize($tarPath) > 1024 * 1024 * 5) { + throw new \Exception('Code package is too large. Use the chunked upload method instead.'); + } + + return new CURLFile($tarPath, 'application/x-gzip', \basename($tarPath)); } } diff --git a/tests/e2e/Services/GraphQL/FunctionsClientTest.php b/tests/e2e/Services/GraphQL/FunctionsClientTest.php index 3f0ee1966ad..0b43ed57722 100644 --- a/tests/e2e/Services/GraphQL/FunctionsClientTest.php +++ b/tests/e2e/Services/GraphQL/FunctionsClientTest.php @@ -2,7 +2,7 @@ namespace Tests\E2E\Services\GraphQL; -use CURLFile; +use Appwrite\Tests\Async; use Tests\E2E\Client; use Tests\E2E\Scopes\ProjectCustom; use Tests\E2E\Scopes\Scope; @@ -15,6 +15,7 @@ class FunctionsClientTest extends Scope use ProjectCustom; use SideClient; use Base; + use Async; public function testCreateFunction(): array { @@ -83,10 +84,6 @@ public function testCreateDeployment($function): array $projectId = $this->getProject()['$id']; $query = $this->getQuery(self::$CREATE_DEPLOYMENT); - $folder = 'php'; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); - $gqlPayload = [ 'operations' => \json_encode([ 'query' => $query, @@ -99,7 +96,7 @@ public function testCreateDeployment($function): array 'map' => \json_encode([ 'code' => ["variables.code"] ]), - 'code' => new CURLFile($code, 'application/gzip', 'code.tar.gz'), + 'code' => $this->packageFunction('php') ]; $deployment = $this->client->call(Client::METHOD_POST, '/graphql', [ @@ -124,7 +121,7 @@ public function testCreateDeployment($function): array ] ]; - while (true) { + $this->assertEventually(function () use ($projectId, $gqlPayload, &$deployment) { $deployment = $this->client->call(Client::METHOD_POST, '/graphql', [ 'content-type' => 'application/json', 'x-appwrite-project' => $projectId, @@ -135,18 +132,8 @@ public function testCreateDeployment($function): array $this->assertArrayNotHasKey('errors', $deployment['body']); $deployment = $deployment['body']['data']['functionsGetDeployment']; - - if ( - $deployment['status'] === 'ready' - || $deployment['status'] === 'failed' - ) { - break; - } - - \sleep(1); - } - - $this->assertEquals('ready', $deployment['status']); + $this->assertEquals('ready', $deployment['status']); + }); return $deployment; } diff --git a/tests/e2e/Services/GraphQL/FunctionsServerTest.php b/tests/e2e/Services/GraphQL/FunctionsServerTest.php index 25a671fa1ca..e49ac436195 100644 --- a/tests/e2e/Services/GraphQL/FunctionsServerTest.php +++ b/tests/e2e/Services/GraphQL/FunctionsServerTest.php @@ -2,7 +2,7 @@ namespace Tests\E2E\Services\GraphQL; -use CURLFile; +use Appwrite\Tests\Async; use Tests\E2E\Client; use Tests\E2E\Scopes\ProjectCustom; use Tests\E2E\Scopes\Scope; @@ -15,6 +15,7 @@ class FunctionsServerTest extends Scope use ProjectCustom; use SideServer; use Base; + use Async; public function testCreateFunction(): array { @@ -82,10 +83,6 @@ public function testCreateDeployment($function): array $projectId = $this->getProject()['$id']; $query = $this->getQuery(self::$CREATE_DEPLOYMENT); - $folder = 'php'; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); - $gqlPayload = [ 'operations' => \json_encode([ 'query' => $query, @@ -98,7 +95,7 @@ public function testCreateDeployment($function): array 'map' => \json_encode([ 'code' => ["variables.code"] ]), - 'code' => new CURLFile($code, 'application/gzip', 'code.tar.gz'), + 'code' => $this->packageFunction('php'), ]; $deployment = $this->client->call(Client::METHOD_POST, '/graphql', \array_merge([ @@ -122,7 +119,7 @@ public function testCreateDeployment($function): array ] ]; - while (true) { + $this->assertEventually(function () use ($projectId, $gqlPayload, &$deployment) { $deployment = $this->client->call(Client::METHOD_POST, '/graphql', \array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $projectId, @@ -132,19 +129,8 @@ public function testCreateDeployment($function): array $this->assertArrayNotHasKey('errors', $deployment['body']); $deployment = $deployment['body']['data']['functionsGetDeployment']; - - if ( - $deployment['status'] === 'ready' - || $deployment['status'] === 'failed' - ) { - break; - } - - \sleep(1); - } - - $this->assertEquals('ready', $deployment['status']); - + $this->assertEquals('ready', $deployment['status']); + }); return $deployment; } diff --git a/tests/e2e/Services/Health/HealthCustomServerTest.php b/tests/e2e/Services/Health/HealthCustomServerTest.php index 8360af542ea..4b7062dc228 100644 --- a/tests/e2e/Services/Health/HealthCustomServerTest.php +++ b/tests/e2e/Services/Health/HealthCustomServerTest.php @@ -67,24 +67,6 @@ public function testCacheSuccess(): array return []; } - public function testQueueSuccess(): array - { - /** - * Test for SUCCESS - */ - $response = $this->client->call(Client::METHOD_GET, '/health/queue', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); - - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals('pass', $response['body']['statuses'][0]['status']); - $this->assertIsInt($response['body']['statuses'][0]['ping']); - $this->assertLessThan(100, $response['body']['statuses'][0]['ping']); - - return []; - } - public function testPubSubSuccess(): array { /** @@ -455,7 +437,7 @@ public function testCertificateValidity(): array $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals('/CN=www.google.com', $response['body']['name']); $this->assertEquals('www.google.com', $response['body']['subjectSN']); - $this->assertStringContainsString('Google Trust Services', $response['body']['issuerOrganisation']); + $this->assertContains($response['body']['issuerOrganisation'], ['Let\'s Encrypt', 'Google Trust Services']); $this->assertIsInt($response['body']['validFrom']); $this->assertIsInt($response['body']['validTo']); @@ -467,7 +449,7 @@ public function testCertificateValidity(): array $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals('/CN=appwrite.io', $response['body']['name']); $this->assertEquals('appwrite.io', $response['body']['subjectSN']); - $this->assertEquals("Let's Encrypt", $response['body']['issuerOrganisation']); + $this->assertContains($response['body']['issuerOrganisation'], ['Let\'s Encrypt', 'Google Trust Services']); $this->assertIsInt($response['body']['validFrom']); $this->assertIsInt($response['body']['validTo']); @@ -512,12 +494,12 @@ public function testCertificateValidity(): array return []; } - public function testUsageSuccess() + public function testStatsResources() { /** * Test for SUCCESS */ - $response = $this->client->call(Client::METHOD_GET, '/health/queue/usage', array_merge([ + $response = $this->client->call(Client::METHOD_GET, '/health/queue/stats-resources', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), []); @@ -529,19 +511,19 @@ public function testUsageSuccess() /** * Test for FAILURE */ - $response = $this->client->call(Client::METHOD_GET, '/health/queue/usage?threshold=0', array_merge([ + $response = $this->client->call(Client::METHOD_GET, '/health/queue/stats-resources?threshold=0', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), []); $this->assertEquals(503, $response['headers']['status-code']); } - public function testUsageDumpSuccess() + public function testUsageSuccess() { /** * Test for SUCCESS */ - $response = $this->client->call(Client::METHOD_GET, '/health/queue/usage-dump', array_merge([ + $response = $this->client->call(Client::METHOD_GET, '/health/queue/stats-usage', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), []); @@ -553,7 +535,7 @@ public function testUsageDumpSuccess() /** * Test for FAILURE */ - $response = $this->client->call(Client::METHOD_GET, '/health/queue/usage-dump?threshold=0', array_merge([ + $response = $this->client->call(Client::METHOD_GET, '/health/queue/stats-usage?threshold=0', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), []); diff --git a/tests/e2e/Services/Locale/LocaleBase.php b/tests/e2e/Services/Locale/LocaleBase.php index 0e2928004d8..ee731a99e5e 100644 --- a/tests/e2e/Services/Locale/LocaleBase.php +++ b/tests/e2e/Services/Locale/LocaleBase.php @@ -228,8 +228,8 @@ public function testLanguages(): array * Test for SUCCESS */ $languages = require(__DIR__ . '/../../../../app/config/locale/codes.php'); - $defaultCountries = require(__DIR__ . '/../../../../app/config/locale/countries.php'); - $defaultContinents = require(__DIR__ . '/../../../../app/config/locale/continents.php'); + $defaultCountries = array_keys(require(__DIR__ . '/../../../../app/config/locale/countries.php')); + $defaultContinents = array_keys(require(__DIR__ . '/../../../../app/config/locale/continents.php')); foreach ($languages as $lang) { $response = $this->client->call(Client::METHOD_GET, '/locale/countries', [ diff --git a/tests/e2e/Services/Messaging/MessagingConsoleClientTest.php b/tests/e2e/Services/Messaging/MessagingConsoleClientTest.php index 1b0d840f96a..245eb3e8de7 100644 --- a/tests/e2e/Services/Messaging/MessagingConsoleClientTest.php +++ b/tests/e2e/Services/Messaging/MessagingConsoleClientTest.php @@ -2,6 +2,7 @@ namespace Tests\E2E\Services\Messaging; +use Appwrite\Tests\Async; use Tests\E2E\Client; use Tests\E2E\Scopes\ProjectCustom; use Tests\E2E\Scopes\Scope; @@ -11,6 +12,8 @@ class MessagingConsoleClientTest extends Scope { + use Async; + use MessagingBase; use ProjectCustom; use SideConsole; @@ -54,15 +57,18 @@ public function testGetProviderLogs(array $providers): void $this->assertEquals(200, $response['headers']['status-code']); - $logs = $this->client->call(Client::METHOD_GET, '/messaging/providers/' . $provider['body']['$id'] . '/logs', \array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders())); - - $this->assertEquals($logs['headers']['status-code'], 200); - $this->assertIsArray($logs['body']['logs']); - $this->assertIsNumeric($logs['body']['total']); - $this->assertCount(2, $logs['body']['logs']); + // required for Cloud x Audits + $this->assertEventually(function () use ($provider) { + $logs = $this->client->call(Client::METHOD_GET, '/messaging/providers/' . $provider['body']['$id'] . '/logs', \array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals($logs['headers']['status-code'], 200); + $this->assertIsArray($logs['body']['logs']); + $this->assertIsNumeric($logs['body']['total']); + $this->assertCount(2, $logs['body']['logs']); + }); $logs = $this->client->call(Client::METHOD_GET, '/messaging/providers/' . $provider['body']['$id'] . '/logs', \array_merge([ 'content-type' => 'application/json', diff --git a/tests/e2e/Services/Migrations/MigrationsBase.php b/tests/e2e/Services/Migrations/MigrationsBase.php new file mode 100644 index 00000000000..6c468ee730f --- /dev/null +++ b/tests/e2e/Services/Migrations/MigrationsBase.php @@ -0,0 +1,899 @@ +<?php + +namespace Tests\E2E\Services\Migrations; + +use CURLFile; +use Tests\E2E\Client; +use Tests\E2E\General\UsageTest; +use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Services\Functions\FunctionsBase; +use Utopia\Database\Helpers\ID; +use Utopia\Database\Helpers\Permission; +use Utopia\Database\Helpers\Role; +use Utopia\Migration\Resource; +use Utopia\Migration\Sources\Appwrite; + +trait MigrationsBase +{ + use ProjectCustom; + use FunctionsBase; + + /** + * @var array + */ + protected static array $destinationProject = []; + + /** + * @param bool $fresh + * @return array + */ + public function getDestinationProject(bool $fresh = false): array + { + if (!empty(self::$destinationProject) && !$fresh) { + return self::$destinationProject; + } + + $projectBackup = self::$project; + + self::$destinationProject = $this->getProject(true); + self::$project = $projectBackup; + + return self::$destinationProject; + } + + public function performMigrationSync(array $body): array + { + $migration = $this->client->call(Client::METHOD_POST, '/migrations/appwrite', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ], $body); + + $this->assertEquals(202, $migration['headers']['status-code']); + $this->assertNotEmpty($migration['body']); + $this->assertNotEmpty($migration['body']['$id']); + + $migrationResult = []; + + $this->assertEventually(function () use ($migration, &$migrationResult) { + $response = $this->client->call(Client::METHOD_GET, '/migrations/' . $migration['body']['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + $this->assertNotEmpty($response['body']['$id']); + + if ($response['body']['status'] === 'failed') { + $this->fail('Migration failed' . json_encode($response['body'], JSON_PRETTY_PRINT)); + } + + $this->assertNotEquals('failed', $response['body']['status']); + $this->assertEquals('completed', $response['body']['status']); + + $migrationResult = $response['body']; + + return true; + }); + + return $migrationResult; + } + + /** + * Appwrite E2E Migration Tests + */ + public function testCreateAppwriteMigration(): void + { + $response = $this->performMigrationSync([ + 'resources' => Appwrite::getSupportedResources(), + 'endpoint' => 'http://localhost/v1', + 'projectId' => $this->getProject()['$id'], + 'apiKey' => $this->getProject()['apiKey'], + ]); + + $this->assertEquals(Appwrite::getSupportedResources(), $response['resources']); + $this->assertEquals('Appwrite', $response['source']); + $this->assertEquals('Appwrite', $response['destination']); + $this->assertEmpty($response['statusCounters']); + } + + /** + * Auth + */ + public function testAppwriteMigrationAuthUserPassword(): void + { + $response = $this->client->call(Client::METHOD_POST, '/users', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'userId' => ID::unique(), + 'email' => 'test@test.com', + 'password' => 'password', + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + $this->assertNotEmpty($response['body']['$id']); + $this->assertEquals('test@test.com', $response['body']['email']); + + $user = $response['body']; + + $result = $this->performMigrationSync([ + 'resources' => [ + Resource::TYPE_USER, + ], + 'endpoint' => 'http://localhost/v1', + 'projectId' => $this->getProject()['$id'], + 'apiKey' => $this->getProject()['apiKey'], + ]); + + $this->assertEquals('completed', $result['status']); + $this->assertEquals([Resource::TYPE_USER], $result['resources']); + $this->assertArrayHasKey(Resource::TYPE_USER, $result['statusCounters']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_USER]['error']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_USER]['pending']); + $this->assertEquals(1, $result['statusCounters'][Resource::TYPE_USER]['success']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_USER]['processing']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_USER]['warning']); + + $response = $this->client->call(Client::METHOD_GET, '/users/' . $user['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + $this->assertNotEmpty($response['body']['$id']); + $this->assertEquals($user['email'], $response['body']['email']); + $this->assertEquals($user['password'], $response['body']['password']); + + // Cleanup + $this->client->call(Client::METHOD_DELETE, '/users/' . $user['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->client->call(Client::METHOD_DELETE, '/users/' . $user['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]); + } + + public function testAppwriteMigrationAuthUserPhone(): void + { + $response = $this->client->call(Client::METHOD_POST, '/users', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'userId' => ID::unique(), + 'phone' => '+12065550100', + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + $this->assertNotEmpty($response['body']['$id']); + $this->assertEquals('+12065550100', $response['body']['phone']); + + $user = $response['body']; + + $result = $this->performMigrationSync([ + 'resources' => [ + Resource::TYPE_USER, + ], + 'endpoint' => 'http://localhost/v1', + 'projectId' => $this->getProject()['$id'], + 'apiKey' => $this->getProject()['apiKey'], + ]); + + $this->assertEquals('completed', $result['status']); + $this->assertEquals([Resource::TYPE_USER], $result['resources']); + $this->assertArrayHasKey(Resource::TYPE_USER, $result['statusCounters']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_USER]['error']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_USER]['pending']); + $this->assertEquals(1, $result['statusCounters'][Resource::TYPE_USER]['success']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_USER]['processing']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_USER]['warning']); + + $response = $this->client->call(Client::METHOD_GET, '/users/' . $user['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + $this->assertNotEmpty($response['body']['$id']); + $this->assertEquals($user['phone'], $response['body']['phone']); + + // Cleanup + $this->client->call(Client::METHOD_DELETE, '/users/' . $user['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]); + + $this->client->call(Client::METHOD_DELETE, '/users/' . $user['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + } + + public function testAppwriteMigrationAuthTeam(): void + { + $user = $this->client->call(Client::METHOD_POST, '/users', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'userId' => ID::unique(), + 'email' => 'test@test.com', + 'password' => 'password', + ]); + + $this->assertEquals(201, $user['headers']['status-code']); + $this->assertNotEmpty($user['body']); + $this->assertNotEmpty($user['body']['$id']); + $this->assertEquals('test@test.com', $user['body']['email']); + + $team = $this->client->call(Client::METHOD_POST, '/teams', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'teamId' => ID::unique(), + 'name' => 'Test Team', + ]); + + $this->assertEquals(201, $team['headers']['status-code']); + $this->assertNotEmpty($team['body']); + $this->assertNotEmpty($team['body']['$id']); + + $membership = $this->client->call(Client::METHOD_POST, '/teams/' . $team['body']['$id'] . '/memberships', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'teamId' => $team['body']['$id'], + 'userId' => $user['body']['$id'], + 'roles' => ['owner'], + ]); + + $this->assertEquals(201, $membership['headers']['status-code']); + $this->assertNotEmpty($membership['body']); + $this->assertNotEmpty($membership['body']['$id']); + + $result = $this->performMigrationSync([ + 'resources' => [ + Resource::TYPE_USER, + Resource::TYPE_TEAM, + Resource::TYPE_MEMBERSHIP, + ], + 'endpoint' => 'http://localhost/v1', + 'projectId' => $this->getProject()['$id'], + 'apiKey' => $this->getProject()['apiKey'], + ]); + + $this->assertEquals('completed', $result['status']); + $this->assertEquals([Resource::TYPE_USER, Resource::TYPE_TEAM, Resource::TYPE_MEMBERSHIP], $result['resources']); + $this->assertArrayHasKey(Resource::TYPE_USER, $result['statusCounters']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_USER]['error']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_USER]['pending']); + $this->assertEquals(1, $result['statusCounters'][Resource::TYPE_USER]['success']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_USER]['processing']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_USER]['warning']); + + $this->assertArrayHasKey(Resource::TYPE_TEAM, $result['statusCounters']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_TEAM]['error']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_TEAM]['pending']); + $this->assertEquals(1, $result['statusCounters'][Resource::TYPE_TEAM]['success']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_TEAM]['processing']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_TEAM]['warning']); + + $this->assertArrayHasKey(Resource::TYPE_MEMBERSHIP, $result['statusCounters']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_MEMBERSHIP]['error']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_MEMBERSHIP]['pending']); + $this->assertEquals(1, $result['statusCounters'][Resource::TYPE_MEMBERSHIP]['success']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_MEMBERSHIP]['processing']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_MEMBERSHIP]['warning']); + + $response = $this->client->call(Client::METHOD_GET, '/teams/' . $team['body']['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + $this->assertNotEmpty($response['body']['$id']); + $this->assertEquals($team['body']['name'], $response['body']['name']); + + $response = $this->client->call(Client::METHOD_GET, '/teams/' . $team['body']['$id'] . '/memberships', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + + $membership = $response['body']['memberships'][0]; + + $this->assertEquals($user['body']['$id'], $membership['userId']); + $this->assertEquals($team['body']['$id'], $membership['teamId']); + $this->assertEquals(['owner'], $membership['roles']); + + // Cleanup + $this->client->call(Client::METHOD_DELETE, '/teams/' . $team['body']['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]); + + $this->client->call(Client::METHOD_DELETE, '/teams/' . $team['body']['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->client->call(Client::METHOD_DELETE, '/users/' . $user['body']['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]); + + $this->client->call(Client::METHOD_DELETE, '/users/' . $user['body']['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->client->call(Client::METHOD_DELETE, '/teams/' . $team['body']['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]); + + $this->client->call(Client::METHOD_DELETE, '/teams/' . $team['body']['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + } + + /** + * Databases + */ + public function testAppwriteMigrationDatabase(): array + { + $response = $this->client->call(Client::METHOD_POST, '/databases', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'databaseId' => ID::unique(), + 'name' => 'Test Database' + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + $this->assertNotEmpty($response['body']['$id']); + + $databaseId = $response['body']['$id']; + + $result = $this->performMigrationSync([ + 'resources' => [ + Resource::TYPE_DATABASE, + ], + 'endpoint' => 'http://localhost/v1', + 'projectId' => $this->getProject()['$id'], + 'apiKey' => $this->getProject()['apiKey'], + ]); + + $this->assertEquals('completed', $result['status']); + $this->assertEquals([Resource::TYPE_DATABASE], $result['resources']); + $this->assertArrayHasKey(Resource::TYPE_DATABASE, $result['statusCounters']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_DATABASE]['error']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_DATABASE]['pending']); + $this->assertEquals(1, $result['statusCounters'][Resource::TYPE_DATABASE]['success']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_DATABASE]['processing']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_DATABASE]['warning']); + + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + $this->assertNotEmpty($response['body']['$id']); + + $this->assertEquals($databaseId, $response['body']['$id']); + $this->assertEquals('Test Database', $response['body']['name']); + + // Cleanup on destination + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + return [ + 'databaseId' => $databaseId, + ]; + } + + /** + * @depends testAppwriteMigrationDatabase + */ + public function testAppwriteMigrationDatabasesCollection(array $data): array + { + $databaseId = $data['databaseId']; + + $collection = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'collectionId' => ID::unique(), + 'name' => 'Test Collection', + ]); + + $this->assertEquals(201, $collection['headers']['status-code']); + + $collectionId = $collection['body']['$id']; + + // Create Attribute + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/string', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'key' => 'name', + 'size' => 100, + 'encrypt' => false, + 'required' => true + ]); + + $this->assertEquals(202, $response['headers']['status-code']); + + // Wait for attribute to be ready + $this->assertEventually(function () use ($databaseId, $collectionId) { + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/name', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals('available', $response['body']['status']); + }, 5000, 500); + + $result = $this->performMigrationSync([ + 'resources' => [ + Resource::TYPE_DATABASE, + Resource::TYPE_COLLECTION, + Resource::TYPE_ATTRIBUTE, + ], + 'endpoint' => 'http://localhost/v1', + 'projectId' => $this->getProject()['$id'], + 'apiKey' => $this->getProject()['apiKey'], + ]); + + $this->assertEquals('completed', $result['status']); + $this->assertEquals([Resource::TYPE_DATABASE, Resource::TYPE_COLLECTION, Resource::TYPE_ATTRIBUTE], $result['resources']); + + foreach ([Resource::TYPE_DATABASE, Resource::TYPE_COLLECTION, Resource::TYPE_ATTRIBUTE] as $resource) { + $this->assertArrayHasKey($resource, $result['statusCounters']); + $this->assertEquals(0, $result['statusCounters'][$resource]['error']); + $this->assertEquals(0, $result['statusCounters'][$resource]['pending']); + $this->assertEquals(1, $result['statusCounters'][$resource]['success']); + $this->assertEquals(0, $result['statusCounters'][$resource]['processing']); + $this->assertEquals(0, $result['statusCounters'][$resource]['warning']); + } + + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + + $this->assertEquals($collectionId, $response['body']['$id']); + $this->assertEquals('Test Collection', $response['body']['name']); + + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/name', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + + $this->assertEquals('name', $response['body']['key']); + $this->assertEquals(100, $response['body']['size']); + $this->assertEquals(true, $response['body']['required']); + + // Cleanup + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + return [ + 'databaseId' => $databaseId, + 'collectionId' => $collectionId, + ]; + } + + /** + * @depends testAppwriteMigrationDatabasesCollection + */ + public function testAppwriteMigrationDatabasesDocument(array $data): void + { + $databaseId = $data['databaseId']; + $collectionId = $data['collectionId']; + + $document = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'documentId' => ID::unique(), + 'data' => [ + 'name' => 'Test Document', + ] + ]); + + $this->assertEquals(201, $document['headers']['status-code']); + $this->assertNotEmpty($document['body']); + $this->assertNotEmpty($document['body']['$id']); + + $documentId = $document['body']['$id']; + + $result = $this->performMigrationSync([ + 'resources' => [ + Resource::TYPE_DATABASE, + Resource::TYPE_COLLECTION, + Resource::TYPE_ATTRIBUTE, + Resource::TYPE_DOCUMENT, + ], + 'endpoint' => 'http://localhost/v1', + 'projectId' => $this->getProject()['$id'], + 'apiKey' => $this->getProject()['apiKey'], + ]); + + $finalStats = $this->client->call(Client::METHOD_GET, '/project/usage', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'startDate' => UsageTest::getYesterday(), + 'endDate' => UsageTest::getTomorrow(), + ]); + + $this->assertEquals('completed', $result['status']); + $this->assertEquals([Resource::TYPE_DATABASE, Resource::TYPE_COLLECTION, Resource::TYPE_ATTRIBUTE, Resource::TYPE_DOCUMENT], $result['resources']); + + //TODO: Add TYPE_DOCUMENT to the migration status counters once pending issue is resolved + foreach ([Resource::TYPE_DATABASE, Resource::TYPE_COLLECTION, Resource::TYPE_ATTRIBUTE] as $resource) { + $this->assertArrayHasKey($resource, $result['statusCounters']); + $this->assertEquals(0, $result['statusCounters'][$resource]['error']); + $this->assertEquals(0, $result['statusCounters'][$resource]['pending']); + $this->assertEquals(1, $result['statusCounters'][$resource]['success']); + $this->assertEquals(0, $result['statusCounters'][$resource]['processing']); + $this->assertEquals(0, $result['statusCounters'][$resource]['warning']); + } + + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents/' . $documentId, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + + $this->assertEquals($documentId, $response['body']['$id']); + $this->assertEquals('Test Document', $response['body']['name']); + + // Cleanup + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + } + + /** + * Storage + */ + public function testAppwriteMigrationStorageBucket(): void + { + $bucket = $this->client->call(Client::METHOD_POST, '/storage/buckets', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'bucketId' => ID::unique(), + 'name' => 'Test Bucket', + 'permissions' => [ + Permission::read(Role::any()), + Permission::create(Role::any()), + Permission::update(Role::any()), + Permission::delete(Role::any()), + ], + 'maximumFileSize' => 1000000, + 'allowedFileExtensions' => ['pdf'], + 'compression' => 'gzip', + 'encryption' => false, + 'antivirus' => false + ]); + + $this->assertEquals(201, $bucket['headers']['status-code']); + $this->assertNotEmpty($bucket['body']); + $this->assertNotEmpty($bucket['body']['$id']); + $this->assertEquals('Test Bucket', $bucket['body']['name']); + + $result = $this->performMigrationSync([ + 'resources' => [ + Resource::TYPE_BUCKET + ], + 'endpoint' => 'http://localhost/v1', + 'projectId' => $this->getProject()['$id'], + 'apiKey' => $this->getProject()['apiKey'], + ]); + + $this->assertEquals('completed', $result['status']); + $this->assertEquals([Resource::TYPE_BUCKET], $result['resources']); + $this->assertArrayHasKey(Resource::TYPE_BUCKET, $result['statusCounters']); + + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_BUCKET]['error']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_BUCKET]['pending']); + $this->assertEquals(1, $result['statusCounters'][Resource::TYPE_BUCKET]['success']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_BUCKET]['processing']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_BUCKET]['warning']); + + $response = $this->client->call(Client::METHOD_GET, '/storage/buckets/' . $bucket['body']['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + $this->assertNotEmpty($response['body']['$id']); + + $this->assertEquals($bucket['body']['$id'], $response['body']['$id']); + $this->assertEquals($bucket['body']['name'], $response['body']['name']); + $this->assertEquals($bucket['body']['$permissions'], $response['body']['$permissions']); + $this->assertEquals($bucket['body']['maximumFileSize'], $response['body']['maximumFileSize']); + $this->assertEquals($bucket['body']['allowedFileExtensions'], $response['body']['allowedFileExtensions']); + $this->assertEquals($bucket['body']['compression'], $response['body']['compression']); + $this->assertEquals($bucket['body']['encryption'], $response['body']['encryption']); + $this->assertEquals($bucket['body']['antivirus'], $response['body']['antivirus']); + + // Cleanup + $this->client->call(Client::METHOD_DELETE, '/storage/buckets/' . $bucket['body']['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->client->call(Client::METHOD_DELETE, '/storage/buckets/' . $bucket['body']['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]); + } + + public function testAppwriteMigrationStorageFiles(): void + { + $bucket = $this->client->call(Client::METHOD_POST, '/storage/buckets', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'bucketId' => ID::unique(), + 'name' => 'Test Bucket', + 'fileSecurity' => true, + 'maximumFileSize' => 2000000, //2MB + 'allowedFileExtensions' => ['jpg', 'png', 'jfif'], + 'permissions' => [ + Permission::read(Role::any()), + Permission::create(Role::any()), + Permission::update(Role::any()), + Permission::delete(Role::any()), + ], + ]); + $this->assertEquals(201, $bucket['headers']['status-code']); + $this->assertNotEmpty($bucket['body']['$id']); + + $bucketId = $bucket['body']['$id']; + + $file = $this->client->call(Client::METHOD_POST, '/storage/buckets/' . $bucketId . '/files', [ + 'content-type' => 'multipart/form-data', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'fileId' => ID::unique(), + 'file' => new CURLFile(realpath(__DIR__ . '/../../../resources/logo.png'), 'image/png', 'logo.png'), + 'permissions' => [ + Permission::read(Role::any()), + Permission::update(Role::any()), + Permission::delete(Role::any()), + ], + ]); + + $this->assertEquals(201, $file['headers']['status-code']); + $this->assertNotEmpty($file['body']['$id']); + + $fileId = $file['body']['$id']; + + $result = $this->performMigrationSync([ + 'resources' => [ + Resource::TYPE_BUCKET, + Resource::TYPE_FILE + ], + 'endpoint' => 'http://localhost/v1', + 'projectId' => $this->getProject()['$id'], + 'apiKey' => $this->getProject()['apiKey'], + ]); + + $this->assertEquals('completed', $result['status']); + $this->assertEquals([Resource::TYPE_BUCKET, Resource::TYPE_FILE], $result['resources']); + $this->assertArrayHasKey(Resource::TYPE_BUCKET, $result['statusCounters']); + + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_BUCKET]['error']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_BUCKET]['pending']); + $this->assertEquals(1, $result['statusCounters'][Resource::TYPE_BUCKET]['success']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_BUCKET]['processing']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_BUCKET]['warning']); + + $this->assertArrayHasKey(Resource::TYPE_FILE, $result['statusCounters']); + + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_FILE]['error']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_FILE]['pending']); + $this->assertEquals(1, $result['statusCounters'][Resource::TYPE_FILE]['success']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_FILE]['processing']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_FILE]['warning']); + + $response = $this->client->call(Client::METHOD_GET, '/storage/buckets/' . $bucketId . '/files/' . $fileId, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + $this->assertNotEmpty($response['body']['$id']); + + $this->assertEquals($fileId, $response['body']['$id']); + + // Cleanup + $this->client->call(Client::METHOD_DELETE, '/storage/buckets/' . $bucketId . '/files/' . $fileId, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]); + + $this->client->call(Client::METHOD_DELETE, '/storage/buckets/' . $bucketId . '/files/' . $fileId, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + } + + /** + * Functions + */ + public function testAppwriteMigrationFunction(): void + { + $functionId = $this->setupFunction([ + 'functionId' => ID::unique(), + 'name' => 'Test', + 'runtime' => 'php-8.0', + 'entrypoint' => 'index.php' + ]); + + $deploymentId = $this->setupDeployment($functionId, [ + 'entrypoint' => 'index.php', + 'code' => $this->packageFunction('php'), + 'activate' => true + ]); + + $result = $this->performMigrationSync([ + 'resources' => [ + Resource::TYPE_FUNCTION, + Resource::TYPE_DEPLOYMENT + ], + 'endpoint' => 'http://localhost/v1', + 'projectId' => $this->getProject()['$id'], + 'apiKey' => $this->getProject()['apiKey'], + ]); + + $this->assertEquals('completed', $result['status']); + $this->assertEquals([Resource::TYPE_FUNCTION, Resource::TYPE_DEPLOYMENT], $result['resources']); + $this->assertArrayHasKey(Resource::TYPE_FUNCTION, $result['statusCounters']); + + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_FUNCTION]['error']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_FUNCTION]['pending']); + $this->assertEquals(1, $result['statusCounters'][Resource::TYPE_FUNCTION]['success']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_FUNCTION]['processing']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_FUNCTION]['warning']); + + $this->assertArrayHasKey(Resource::TYPE_DEPLOYMENT, $result['statusCounters']); + + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_DEPLOYMENT]['error']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_DEPLOYMENT]['pending']); + $this->assertEquals(1, $result['statusCounters'][Resource::TYPE_DEPLOYMENT]['success']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_DEPLOYMENT]['processing']); + $this->assertEquals(0, $result['statusCounters'][Resource::TYPE_DEPLOYMENT]['warning']); + + $response = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']); + $this->assertNotEmpty($response['body']['$id']); + + $this->assertEquals($functionId, $response['body']['$id']); + $this->assertEquals('Test', $response['body']['name']); + $this->assertEquals('php-8.0', $response['body']['runtime']); + $this->assertEquals('index.php', $response['body']['entrypoint']); + + + $this->assertEventually(function () use ($functionId) { + $deployments = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/deployments/', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ])); + + $this->assertEquals(200, $deployments['headers']['status-code']); + $this->assertNotEmpty($deployments['body']); + $this->assertEquals(1, $deployments['body']['total']); + + $this->assertEquals('ready', $deployments['body']['deployments'][0]['status'], 'Deployment status is not ready, deployment: ' . json_encode($deployments['body']['deployments'][0], JSON_PRETTY_PRINT)); + }, 50000, 500); + + // Attempt execution + $execution = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/executions', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ], [ + 'body' => 'test' + ]); + + $this->assertEquals(201, $execution['headers']['status-code']); + $this->assertStringContainsString('body-is-test', $execution['body']['logs']); + + // Cleanup + $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]); + + $this->client->call(Client::METHOD_DELETE, '/functions/' . $functionId, [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getDestinationProject()['$id'], + 'x-appwrite-key' => $this->getDestinationProject()['apiKey'], + ]); + } +} diff --git a/tests/e2e/Services/Migrations/MigrationsConsoleClientTest.php b/tests/e2e/Services/Migrations/MigrationsConsoleClientTest.php new file mode 100644 index 00000000000..2167ef93388 --- /dev/null +++ b/tests/e2e/Services/Migrations/MigrationsConsoleClientTest.php @@ -0,0 +1,12 @@ +<?php + +namespace Tests\E2E\Services\Migrations; + +use Tests\E2E\Scopes\Scope; +use Tests\E2E\Scopes\SideConsole; + +class MigrationsConsoleClientTest extends Scope +{ + use MigrationsBase; + use SideConsole; +} diff --git a/tests/e2e/Services/Projects/ProjectsConsoleClientTest.php b/tests/e2e/Services/Projects/ProjectsConsoleClientTest.php index c41d861f1db..f89428d79a6 100644 --- a/tests/e2e/Services/Projects/ProjectsConsoleClientTest.php +++ b/tests/e2e/Services/Projects/ProjectsConsoleClientTest.php @@ -4,6 +4,7 @@ use Appwrite\Auth\Auth; use Appwrite\Extend\Exception; +use Appwrite\Tests\Async; use Tests\E2E\Client; use Tests\E2E\General\UsageTest; use Tests\E2E\Scopes\ProjectConsole; @@ -13,12 +14,14 @@ use Utopia\Database\Document; use Utopia\Database\Helpers\ID; use Utopia\Database\Query; +use Utopia\System\System; class ProjectsConsoleClientTest extends Scope { use ProjectsBase; use ProjectConsole; use SideClient; + use Async; /** * @group smtpAndTemplates @@ -47,7 +50,7 @@ public function testCreateProject(): array 'projectId' => ID::unique(), 'name' => 'Project Test', 'teamId' => $team['body']['$id'], - 'region' => 'default', + 'region' => System::getEnv('_APP_REGION', 'default') ]); $this->assertEquals(201, $response['headers']['status-code']); @@ -87,7 +90,7 @@ public function testCreateProject(): array 'projectId' => ID::unique(), 'name' => '', 'teamId' => $team['body']['$id'], - 'region' => 'default' + 'region' => System::getEnv('_APP_REGION', 'default') ]); $this->assertEquals(400, $response['headers']['status-code']); @@ -98,10 +101,10 @@ public function testCreateProject(): array ], $this->getHeaders()), [ 'projectId' => ID::unique(), 'name' => 'Project Test', - 'region' => 'default' + 'region' => System::getEnv('_APP_REGION', 'default') ]); - $this->assertEquals(400, $response['headers']['status-code']); + $this->assertEquals(401, $response['headers']['status-code']); return [ 'projectId' => $projectId, @@ -127,7 +130,7 @@ public function testCreateDuplicateProject($data) 'projectId' => $projectId, 'name' => 'Project Duplicate', 'teamId' => $teamId, - 'region' => 'default' + 'region' => System::getEnv('_APP_REGION', 'default') ]); $this->assertEquals(409, $response['headers']['status-code']); @@ -176,7 +179,7 @@ public function testTransferProjectTeam() 'projectId' => ID::unique(), 'name' => 'Team 1 Project', 'teamId' => $team1, - 'region' => 'default', + 'region' => System::getEnv('_APP_REGION', 'default'), ]); $this->assertEquals(201, $response['headers']['status-code']); @@ -275,7 +278,7 @@ public function testListProject($data): array 'projectId' => ID::unique(), 'name' => 'Project Test 2', 'teamId' => $team['body']['$id'], - 'region' => 'default' + 'region' => System::getEnv('_APP_REGION', 'default') ]); $this->assertEquals(201, $response['headers']['status-code']); @@ -485,6 +488,8 @@ public function testGetProjectUsage($data): array $this->assertIsNumeric($response['body']['usersTotal']); $this->assertIsNumeric($response['body']['filesStorageTotal']); $this->assertIsNumeric($response['body']['deploymentStorageTotal']); + $this->assertIsNumeric($response['body']['authPhoneTotal']); + $this->assertIsNumeric($response['body']['authPhoneEstimate']); /** @@ -546,7 +551,7 @@ public function testUpdateProject($data): array 'name' => '', ]); - $this->assertEquals(400, $response['headers']['status-code']); + $this->assertEquals(401, $response['headers']['status-code']); return ['projectId' => $projectId]; } @@ -1409,18 +1414,20 @@ public function testUpdateProjectAuthSessionsLimit($data): array /** * List sessions */ - $response = $this->client->call(Client::METHOD_GET, '/account/sessions', [ - 'origin' => 'http://localhost', - 'content-type' => 'application/json', - 'x-appwrite-project' => $id, - 'Cookie' => $sessionCookie, - ]); + $this->assertEventually(function () use ($id, $sessionCookie, $sessionId2) { + $response = $this->client->call(Client::METHOD_GET, '/account/sessions', [ + 'origin' => 'http://localhost', + 'content-type' => 'application/json', + 'x-appwrite-project' => $id, + 'Cookie' => $sessionCookie, + ]); - $this->assertEquals(200, $response['headers']['status-code']); - $sessions = $response['body']['sessions']; + $this->assertEquals(200, $response['headers']['status-code']); + $sessions = $response['body']['sessions']; - $this->assertEquals(1, count($sessions)); - $this->assertEquals($sessionId2, $sessions[0]['$id']); + $this->assertEquals(1, count($sessions)); + $this->assertEquals($sessionId2, $sessions[0]['$id']); + }); /** * Reset Limit @@ -2036,7 +2043,7 @@ public function testUpdateProjectServicesAll(): void 'projectId' => ID::unique(), 'name' => 'Project Test', 'teamId' => $team['body']['$id'], - 'region' => 'default' + 'region' => System::getEnv('_APP_REGION', 'default') ]); $this->assertEquals(201, $project['headers']['status-code']); @@ -2129,7 +2136,7 @@ public function testUpdateProjectServiceStatusAdmin(): array 'projectId' => ID::unique(), 'name' => 'Project Test', 'teamId' => $team['body']['$id'], - 'region' => 'default' + 'region' => System::getEnv('_APP_REGION', 'default') ]); $this->assertEquals(201, $project['headers']['status-code']); @@ -2779,32 +2786,35 @@ public function testGetProjectKey($data): array */ public function testValidateProjectKey($data): void { - $id = $data['projectId'] ?? ''; + $projectId = $data['projectId'] ?? ''; + $teamId = $data['teamId'] ?? ''; /** * Test for SUCCESS */ - $response = $this->client->call(Client::METHOD_POST, '/projects/' . $id . '/keys', array_merge([ + + // Expiring key + $response = $this->client->call(Client::METHOD_POST, '/projects/' . $projectId . '/keys', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ 'name' => 'Key Test', - 'scopes' => ['health.read'], + 'scopes' => ['users.write'], 'expire' => DateTime::addSeconds(new \DateTime(), 3600), ]); - $response = $this->client->call(Client::METHOD_GET, '/health', [ + $response = $this->client->call(Client::METHOD_POST, '/users', [ 'content-type' => 'application/json', - 'x-appwrite-project' => $id, + 'x-appwrite-project' => $projectId, 'x-appwrite-key' => $response['body']['secret'] - ], []); + ], [ + 'userId' => ID::unique(), + ]); - $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(201, $response['headers']['status-code']); - /** - * Test for SUCCESS - */ - $response = $this->client->call(Client::METHOD_POST, '/projects/' . $id . '/keys', array_merge([ + // No expiry + $response = $this->client->call(Client::METHOD_POST, '/projects/' . $projectId . '/keys', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2815,7 +2825,7 @@ public function testValidateProjectKey($data): void $response = $this->client->call(Client::METHOD_GET, '/health', [ 'content-type' => 'application/json', - 'x-appwrite-project' => $id, + 'x-appwrite-project' => $projectId, 'x-appwrite-key' => $response['body']['secret'] ], []); @@ -2824,7 +2834,9 @@ public function testValidateProjectKey($data): void /** * Test for FAILURE */ - $response = $this->client->call(Client::METHOD_POST, '/projects/' . $id . '/keys', array_merge([ + + // Expired key + $response = $this->client->call(Client::METHOD_POST, '/projects/' . $projectId . '/keys', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ @@ -2835,9 +2847,82 @@ public function testValidateProjectKey($data): void $response = $this->client->call(Client::METHOD_GET, '/health', [ 'content-type' => 'application/json', - 'x-appwrite-project' => $id, + 'x-appwrite-project' => $projectId, 'x-appwrite-key' => $response['body']['secret'] - ], []); + ]); + + $this->assertEquals(401, $response['headers']['status-code']); + + // Invalid key + $bucket = $this->client->call(Client::METHOD_POST, '/storage/buckets', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders()), [ + 'bucketId' => ID::unique(), + 'name' => 'Test Bucket', + ]); + + $this->assertEquals(201, $bucket['headers']['status-code']); + $this->assertNotEmpty($bucket['body']['$id']); + + $bucketId = $bucket['body']['$id']; + + $response = $this->client->call(Client::METHOD_GET, "/storage/buckets/{$bucketId}/files", [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + 'x-appwrite-key' => 'invalid-key' + ]); + + $this->assertEquals(401, $response['headers']['status-code']); + + // Invalid scopes + $response = $this->client->call(Client::METHOD_POST, '/projects/' . $projectId . '/keys', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'name' => 'Key Test', + 'scopes' => ['teams.read'], + 'expire' => DateTime::addSeconds(new \DateTime(), 3600), + ]); + + $response = $this->client->call(Client::METHOD_GET, '/users', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + 'x-appwrite-key' => $response['body']['secret'] + ]); + + $this->assertEquals(401, $response['headers']['status-code']); + + // Invalid key from different project + $response = $this->client->call(Client::METHOD_POST, '/projects', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'projectId' => ID::unique(), + 'name' => 'Project Test 2', + 'teamId' => $teamId, + 'region' => System::getEnv('_APP_REGION', 'default') + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + + $project2Id = $response['body']['$id']; + + $response = $this->client->call(Client::METHOD_POST, '/projects/' . $project2Id . '/keys', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'name' => 'Key Test', + 'scopes' => ['health.read'], + 'expire' => DateTime::addSeconds(new \DateTime(), 3600), + ]); + + $response = $this->client->call(Client::METHOD_GET, '/health', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + 'x-appwrite-key' => $response['body']['secret'] + ]); $this->assertEquals(401, $response['headers']['status-code']); } @@ -3727,11 +3812,11 @@ public function testDeleteProject(): array 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ 'teamId' => ID::unique(), - 'name' => 'Amating Team', + 'name' => 'Amazing Team', ]); $this->assertEquals(201, $team['headers']['status-code']); - $this->assertEquals('Amating Team', $team['body']['name']); + $this->assertEquals('Amazing Team', $team['body']['name']); $this->assertNotEmpty($team['body']['$id']); $teamId = $team['body']['$id']; @@ -3743,7 +3828,7 @@ public function testDeleteProject(): array 'projectId' => ID::unique(), 'name' => 'Amazing Project', 'teamId' => $teamId, - 'region' => 'default' + 'region' => System::getEnv('_APP_REGION', 'default') ]); $this->assertEquals(201, $project['headers']['status-code']); @@ -3793,4 +3878,381 @@ public function testDeleteProject(): array return $data; } + + public function testDeleteSharedProject(): void + { + $team = $this->client->call(Client::METHOD_POST, '/teams', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'teamId' => ID::unique(), + 'name' => 'Amazing Team', + ]); + + $teamId = $team['body']['$id']; + + // Ensure deleting one project does not affect another project + $project1 = $this->client->call(Client::METHOD_POST, '/projects', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'projectId' => ID::unique(), + 'name' => 'Amazing Project 1', + 'teamId' => $teamId, + 'region' => System::getEnv('_APP_REGION', 'default') + ]); + + $project2 = $this->client->call(Client::METHOD_POST, '/projects', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'projectId' => ID::unique(), + 'name' => 'Amazing Project 2', + 'teamId' => $teamId, + 'region' => System::getEnv('_APP_REGION', 'default') + ]); + + $project1Id = $project1['body']['$id']; + $project2Id = $project2['body']['$id']; + + // Create user in each project + $key1 = $this->client->call(Client::METHOD_POST, '/projects/' . $project1Id . '/keys', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'name' => 'Key Test', + 'scopes' => ['users.read', 'users.write'], + ]); + + $user1 = $this->client->call(Client::METHOD_POST, '/users', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $project1Id, + 'x-appwrite-key' => $key1['body']['secret'], + ], [ + 'userId' => ID::unique(), + 'email' => 'test1@appwrite.io', + 'password' => 'password', + ]); + + $this->assertEquals(201, $user1['headers']['status-code']); + + $key2 = $this->client->call(Client::METHOD_POST, '/projects/' . $project2Id . '/keys', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'name' => 'Key Test', + 'scopes' => ['users.read', 'users.write'], + ]); + + $user2 = $this->client->call(Client::METHOD_POST, '/users', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $project2Id, + 'x-appwrite-key' => $key2['body']['secret'], + ], [ + 'userId' => ID::unique(), + 'email' => 'test2@appwrite.io', + 'password' => 'password', + ]); + + $this->assertEquals(201, $user2['headers']['status-code']); + + // Delete project 1 + $project1 = $this->client->call(Client::METHOD_DELETE, '/projects/' . $project1Id, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(204, $project1['headers']['status-code']); + + \sleep(3); + + // Ensure project 2 user is still there + $user2 = $this->client->call(Client::METHOD_GET, '/users/' . $user2['body']['$id'], [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $project2Id, + 'x-appwrite-key' => $key2['body']['secret'], + ]); + + $this->assertEquals(200, $user2['headers']['status-code']); + + // Create another user in project 2 in case read hits stale cache + $user3 = $this->client->call(Client::METHOD_POST, '/users', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $project2Id, + 'x-appwrite-key' => $key2['body']['secret'], + ], [ + 'userId' => ID::unique(), + 'email' => 'test3@appwrite.io' + ]); + + $this->assertEquals(201, $user3['headers']['status-code']); + } + + /** + * @depends testCreateProject + */ + public function testCreateProjectVariable(array $data) + { + /** + * Test for SUCCESS + */ + $variable = $this->client->call(Client::METHOD_POST, '/project/variables', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders()), [ + 'key' => 'APP_TEST', + 'value' => 'TESTINGVALUE' + ]); + + $this->assertEquals(201, $variable['headers']['status-code']); + $variableId = $variable['body']['$id']; + + /** + * Test for FAILURE + */ + // Test for duplicate key + $variable = $this->client->call(Client::METHOD_POST, '/project/variables', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders()), [ + 'key' => 'APP_TEST', + 'value' => 'ANOTHERTESTINGVALUE' + ]); + + $this->assertEquals(409, $variable['headers']['status-code']); + + // Test for invalid key + $variable = $this->client->call(Client::METHOD_POST, '/project/variables', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders()), [ + 'key' => str_repeat("A", 256), + 'value' => 'TESTINGVALUE' + ]); + + $this->assertEquals(400, $variable['headers']['status-code']); + + // Test for invalid value + $variable = $this->client->call(Client::METHOD_POST, '/project/variables', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders()), [ + 'key' => 'LONGKEY', + 'value' => str_repeat("#", 8193), + ]); + + $this->assertEquals(400, $variable['headers']['status-code']); + + return array_merge( + $data, + [ + 'variableId' => $variableId, + ] + ); + } + + /** + * @depends testCreateProjectVariable + */ + public function testListVariables(array $data) + { + /** + * Test for SUCCESS + */ + + $response = $this->client->call(Client::METHOD_GET, '/project/variables', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(1, $response['body']['variables']); + $this->assertEquals(1, $response['body']['total']); + $this->assertEquals("APP_TEST", $response['body']['variables'][0]['key']); + $this->assertEquals("TESTINGVALUE", $response['body']['variables'][0]['value']); + + return $data; + } + + /** + * @depends testListVariables + */ + public function testGetVariable(array $data) + { + /** + * Test for SUCCESS + */ + $response = $this->client->call(Client::METHOD_GET, '/project/variables/' . $data['variableId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals("APP_TEST", $response['body']['key']); + $this->assertEquals("TESTINGVALUE", $response['body']['value']); + + /** + * Test for FAILURE + */ + + $response = $this->client->call(Client::METHOD_GET, '/project/variables/NON_EXISTING_VARIABLE', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders())); + + $this->assertEquals(404, $response['headers']['status-code']); + + return $data; + } + + /** + * @depends testGetVariable + */ + public function testUpdateVariable(array $data) + { + /** + * Test for SUCCESS + */ + + $response = $this->client->call(Client::METHOD_PUT, '/project/variables/' . $data['variableId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders()), [ + 'key' => 'APP_TEST_UPDATE', + 'value' => 'TESTINGVALUEUPDATED' + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals("APP_TEST_UPDATE", $response['body']['key']); + $this->assertEquals("TESTINGVALUEUPDATED", $response['body']['value']); + + $variable = $this->client->call(Client::METHOD_GET, '/project/variables/' . $data['variableId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders())); + + $this->assertEquals(200, $variable['headers']['status-code']); + $this->assertEquals("APP_TEST_UPDATE", $variable['body']['key']); + $this->assertEquals("TESTINGVALUEUPDATED", $variable['body']['value']); + + $response = $this->client->call(Client::METHOD_GET, '/project/variables', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(1, $response['body']['variables']); + $this->assertEquals("APP_TEST_UPDATE", $response['body']['variables'][0]['key']); + + /** + * Test for FAILURE + */ + + $response = $this->client->call(Client::METHOD_PUT, '/project/variables/' . $data['variableId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders())); + + $this->assertEquals(400, $response['headers']['status-code']); + + $response = $this->client->call(Client::METHOD_PUT, '/project/variables/' . $data['variableId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders()), [ + 'value' => 'TESTINGVALUEUPDATED_2' + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + + $longKey = str_repeat("A", 256); + $response = $this->client->call(Client::METHOD_PUT, '/project/variables/' . $data['variableId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders()), [ + 'key' => $longKey, + 'value' => 'TESTINGVALUEUPDATED' + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + + $longValue = str_repeat("#", 8193); + $response = $this->client->call(Client::METHOD_PUT, '/project/variables/' . $data['variableId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders()), [ + 'key' => 'APP_TEST_UPDATE', + 'value' => $longValue + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + + $response = $this->client->call(Client::METHOD_PUT, '/project/variables/NON_EXISTING_VARIABLE', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders()), [ + 'key' => 'APP_TEST_UPDATE', + 'value' => 'TESTINGVALUEUPDATED' + ]); + + $this->assertEquals(404, $response['headers']['status-code']); + + return $data; + } + + /** + * @depends testUpdateVariable + */ + public function testDeleteVariable(array $data) + { + /** + * Test for SUCCESS + */ + + $response = $this->client->call(Client::METHOD_DELETE, '/project/variables/' . $data['variableId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders())); + + $this->assertEquals(204, $response['headers']['status-code']); + + $response = $this->client->call(Client::METHOD_GET, '/project/variables', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(0, $response['body']['variables']); + $this->assertEquals(0, $response['body']['total']); + + /** + * Test for FAILURE + */ + + $response = $this->client->call(Client::METHOD_DELETE, '/project/variables/NON_EXISTING_VARIABLE', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $data['projectId'], + 'x-appwrite-mode' => 'admin', + ], $this->getHeaders())); + + $this->assertEquals(404, $response['headers']['status-code']); + + return $data; + } } diff --git a/tests/e2e/Services/Realtime/RealtimeBase.php b/tests/e2e/Services/Realtime/RealtimeBase.php index 30c411ba932..99f31134c04 100644 --- a/tests/e2e/Services/Realtime/RealtimeBase.php +++ b/tests/e2e/Services/Realtime/RealtimeBase.php @@ -7,25 +7,34 @@ trait RealtimeBase { - private function getWebsocket($channels = [], $headers = [], $projectId = null): WebSocketClient - { + private function getWebsocket( + array $channels = [], + array $headers = [], + string $projectId = null + ): WebSocketClient { if (is_null($projectId)) { $projectId = $this->getProject()['$id']; } - $headers = array_merge([ - 'Origin' => 'appwrite.test' - ], $headers); + $headers = array_merge( + [ + "Origin" => "appwrite.test", + ], + $headers + ); $query = [ - 'project' => $projectId, - 'channels' => $channels + "project" => $projectId, + "channels" => $channels, ]; - return new WebSocketClient('ws://appwrite-traefik/v1/realtime?' . http_build_query($query), [ - 'headers' => $headers, - 'timeout' => 30, - ]); + return new WebSocketClient( + "ws://appwrite-traefik/v1/realtime?" . http_build_query($query), + [ + "headers" => $headers, + "timeout" => 30, + ] + ); } public function testConnection(): void @@ -33,7 +42,7 @@ public function testConnection(): void /** * Test for SUCCESS */ - $client = $this->getWebsocket(['documents']); + $client = $this->getWebsocket(["documents"]); $this->assertNotEmpty($client->receive()); $client->close(); } @@ -43,11 +52,11 @@ public function testConnectionFailureMissingChannels(): void $client = $this->getWebsocket(); $payload = json_decode($client->receive(), true); - $this->assertArrayHasKey('type', $payload); - $this->assertArrayHasKey('data', $payload); - $this->assertEquals('error', $payload['type']); - $this->assertEquals(1008, $payload['data']['code']); - $this->assertEquals('Missing channels', $payload['data']['message']); + $this->assertArrayHasKey("type", $payload); + $this->assertArrayHasKey("data", $payload); + $this->assertEquals("error", $payload["type"]); + $this->assertEquals(1008, $payload["data"]["code"]); + $this->assertEquals("Missing channels", $payload["data"]["message"]); \usleep(250000); // 250ms $this->expectException(ConnectionException::class); // Check if server disconnnected client $client->close(); @@ -55,18 +64,24 @@ public function testConnectionFailureMissingChannels(): void public function testConnectionFailureUnknownProject(): void { - $client = new WebSocketClient('ws://appwrite-traefik/v1/realtime?project=123', [ - 'headers' => [ - 'Origin' => 'appwrite.test' + $client = new WebSocketClient( + "ws://appwrite-traefik/v1/realtime?project=123", + [ + "headers" => [ + "Origin" => "appwrite.test", + ], ] - ]); + ); $payload = json_decode($client->receive(), true); - $this->assertArrayHasKey('type', $payload); - $this->assertArrayHasKey('data', $payload); - $this->assertEquals('error', $payload['type']); - $this->assertEquals(1008, $payload['data']['code']); - $this->assertEquals('Missing or unknown project ID', $payload['data']['message']); + $this->assertArrayHasKey("type", $payload); + $this->assertArrayHasKey("data", $payload); + $this->assertEquals("error", $payload["type"]); + $this->assertEquals(1008, $payload["data"]["code"]); + $this->assertEquals( + "Missing or unknown project ID", + $payload["data"]["message"] + ); \usleep(250000); // 250ms $this->expectException(ConnectionException::class); // Check if server disconnnected client $client->close(); diff --git a/tests/e2e/Services/Realtime/RealtimeConsoleClientTest.php b/tests/e2e/Services/Realtime/RealtimeConsoleClientTest.php index 6ab2874f8e8..0155d251f2e 100644 --- a/tests/e2e/Services/Realtime/RealtimeConsoleClientTest.php +++ b/tests/e2e/Services/Realtime/RealtimeConsoleClientTest.php @@ -2,7 +2,6 @@ namespace Tests\E2E\Services\Realtime; -use CURLFile; use Tests\E2E\Client; use Tests\E2E\Scopes\ProjectCustom; use Tests\E2E\Scopes\Scope; @@ -19,7 +18,7 @@ class RealtimeConsoleClientTest extends Scope use ProjectCustom; use SideConsole; - public function testManualAuthentication() + public function testManualAuthentication(): void { $user = $this->getUser(); $userId = $user['$id'] ?? ''; @@ -124,7 +123,7 @@ public function testManualAuthentication() $client->close(); } - public function testAttributes() + public function testAttributes(): array { $user = $this->getUser(); $projectId = 'console'; @@ -184,6 +183,7 @@ public function testAttributes() 'required' => true, ]); + $projectId = $this->getProject()['$id']; $attributeKey = $name['body']['key']; $this->assertEquals($name['headers']['status-code'], 202); @@ -198,8 +198,9 @@ public function testAttributes() $this->assertEquals('event', $response['type']); $this->assertNotEmpty($response['data']); $this->assertArrayHasKey('timestamp', $response['data']); - $this->assertCount(1, $response['data']['channels']); + $this->assertCount(2, $response['data']['channels']); $this->assertContains('console', $response['data']['channels']); + $this->assertContains("projects.{$projectId}", $response['data']['channels']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.attributes.*.create", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.attributes.*", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}", $response['data']['events']); @@ -218,8 +219,9 @@ public function testAttributes() $this->assertEquals('event', $response['type']); $this->assertNotEmpty($response['data']); $this->assertArrayHasKey('timestamp', $response['data']); - $this->assertCount(1, $response['data']['channels']); + $this->assertCount(2, $response['data']['channels']); $this->assertContains('console', $response['data']['channels']); + $this->assertContains("projects.{$projectId}", $response['data']['channels']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.attributes.*.update", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.attributes.*", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}", $response['data']['events']); @@ -276,6 +278,8 @@ public function testIndexes(array $data) ]); $this->assertEquals($index['headers']['status-code'], 202); + + $projectId = $this->getProject()['$id']; $indexKey = $index['body']['key']; $response = json_decode($client->receive(), true); @@ -285,8 +289,9 @@ public function testIndexes(array $data) $this->assertEquals('event', $response['type']); $this->assertNotEmpty($response['data']); $this->assertArrayHasKey('timestamp', $response['data']); - $this->assertCount(1, $response['data']['channels']); + $this->assertCount(2, $response['data']['channels']); $this->assertContains('console', $response['data']['channels']); + $this->assertContains("projects.{$projectId}", $response['data']['channels']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.indexes.*.create", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.indexes.*", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}", $response['data']['events']); @@ -303,8 +308,9 @@ public function testIndexes(array $data) $this->assertEquals('event', $response['type']); $this->assertNotEmpty($response['data']); $this->assertArrayHasKey('timestamp', $response['data']); - $this->assertCount(1, $response['data']['channels']); + $this->assertCount(2, $response['data']['channels']); $this->assertContains('console', $response['data']['channels']); + $this->assertContains("projects.{$projectId}", $response['data']['channels']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.indexes.*.update", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.indexes.*", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}", $response['data']['events']); @@ -343,6 +349,8 @@ public function testDeleteIndex(array $data) $this->assertContains('console', $response['data']['channels']); $this->assertNotEmpty($response['data']['user']); + $projectId = $this->getProject()['$id']; + /** * Test Delete Index */ @@ -353,6 +361,7 @@ public function testDeleteIndex(array $data) ], $this->getHeaders())); $this->assertEquals($attribute['headers']['status-code'], 204); + $response = json_decode($client->receive(), true); $this->assertArrayHasKey('type', $response); @@ -360,8 +369,9 @@ public function testDeleteIndex(array $data) $this->assertEquals('event', $response['type']); $this->assertNotEmpty($response['data']); $this->assertArrayHasKey('timestamp', $response['data']); - $this->assertCount(1, $response['data']['channels']); + $this->assertCount(2, $response['data']['channels']); $this->assertContains('console', $response['data']['channels']); + $this->assertContains("projects.{$projectId}", $response['data']['channels']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.indexes.*.update", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.indexes.*", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}", $response['data']['events']); @@ -377,8 +387,9 @@ public function testDeleteIndex(array $data) $this->assertEquals('event', $response['type']); $this->assertNotEmpty($response['data']); $this->assertArrayHasKey('timestamp', $response['data']); - $this->assertCount(1, $response['data']['channels']); + $this->assertCount(2, $response['data']['channels']); $this->assertContains('console', $response['data']['channels']); + $this->assertContains("projects.{$projectId}", $response['data']['channels']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.indexes.*.delete", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.indexes.*", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}", $response['data']['events']); @@ -416,10 +427,12 @@ public function testDeleteAttribute(array $data) $this->assertContains('console', $response['data']['channels']); $this->assertNotEmpty($response['data']['user']); + $attributeKey = 'name'; + $projectId = $this->getProject()['$id']; + /** * Test Delete Attribute */ - $attributeKey = 'name'; $attribute = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $data['actorsId'] . '/attributes/' . $attributeKey, array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -433,8 +446,9 @@ public function testDeleteAttribute(array $data) $this->assertEquals('event', $response['type']); $this->assertNotEmpty($response['data']); $this->assertArrayHasKey('timestamp', $response['data']); - $this->assertCount(1, $response['data']['channels']); + $this->assertCount(2, $response['data']['channels']); $this->assertContains('console', $response['data']['channels']); + $this->assertContains("projects.{$projectId}", $response['data']['channels']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.attributes.*.update", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.attributes.*", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}", $response['data']['events']); @@ -450,8 +464,9 @@ public function testDeleteAttribute(array $data) $this->assertEquals('event', $response['type']); $this->assertNotEmpty($response['data']); $this->assertArrayHasKey('timestamp', $response['data']); - $this->assertCount(1, $response['data']['channels']); + $this->assertCount(2, $response['data']['channels']); $this->assertContains('console', $response['data']['channels']); + $this->assertContains("projects.{$projectId}", $response['data']['channels']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.attributes.*.delete", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.attributes.*", $response['data']['events']); $this->assertContains("databases.{$databaseId}.collections.{$actorsId}", $response['data']['events']); @@ -463,6 +478,44 @@ public function testDeleteAttribute(array $data) $client->close(); } + public function testPing() + { + $client = $this->getWebsocket(['console'], [ + 'origin' => 'http://localhost', + 'cookie' => 'a_session_console=' . $this->getRoot()['session'], + ], 'console'); + + $response = json_decode($client->receive(), true); + + $this->assertArrayHasKey('type', $response); + $this->assertEquals('connected', $response['type']); + + $pong = $this->client->call(Client::METHOD_GET, '/ping', [ + 'origin' => 'http://localhost', + 'x-appwrite-project' => $this->getProject()['$id'], + ]); + + $this->assertEquals(200, $pong['headers']['status-code']); + $this->assertEquals('Pong!', $pong['body']); + + $response = json_decode($client->receive(), true); + + $this->assertArrayHasKey('type', $response); + $this->assertEquals('event', $response['type']); + $this->assertNotEmpty($response['data']); + $this->assertArrayHasKey('timestamp', $response['data']); + $this->assertCount(2, $response['data']['channels']); + $this->assertContains('console', $response['data']['channels']); + $this->assertContains("projects.{$this->getProject()['$id']}", $response['data']['channels']); + $this->assertContains("projects.{$this->getProject()['$id']}.ping", $response['data']['events']); + $this->assertNotEmpty($response['data']['payload']); + $this->assertArrayHasKey('pingCount', $response['data']['payload']); + $this->assertArrayHasKey('pingedAt', $response['data']['payload']); + $this->assertEquals(1, $response['data']['payload']['pingCount']); + + $client->close(); + } + public function testCreateDeployment() { $response1 = $this->client->call(Client::METHOD_POST, '/functions', array_merge([ @@ -505,22 +558,16 @@ public function testCreateDeployment() /** * Test Create Deployment */ - - $folder = 'php'; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/$folder/code.tar.gz"; - $this->packageCode($folder); - + $projectId = $this->getProject()['$id']; $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ 'content-type' => 'multipart/form-data', - 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-project' => $projectId, ], $this->getHeaders()), [ 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', \basename($code)), + 'code' => $this->packageFunction('php'), 'activate' => true ]); - $deploymentId = $deployment['body']['$id'] ?? ''; - $this->assertEquals(202, $deployment['headers']['status-code']); $response = json_decode($client->receive(), true); @@ -530,8 +577,9 @@ public function testCreateDeployment() $this->assertEquals('event', $response['type']); $this->assertNotEmpty($response['data']); $this->assertArrayHasKey('timestamp', $response['data']); - $this->assertCount(1, $response['data']['channels']); + $this->assertCount(2, $response['data']['channels']); $this->assertContains('console', $response['data']['channels']); + $this->assertContains("projects.{$projectId}", $response['data']['channels']); // $this->assertContains("functions.{$functionId}.deployments.{$deploymentId}.create", $response['data']['events']); TODO @christyjacob4 : enable test once we allow functions.* events $this->assertNotEmpty($response['data']['payload']); diff --git a/tests/e2e/Services/Realtime/RealtimeCustomClientTest.php b/tests/e2e/Services/Realtime/RealtimeCustomClientTest.php index c3372b98c58..9e3f1a66b78 100644 --- a/tests/e2e/Services/Realtime/RealtimeCustomClientTest.php +++ b/tests/e2e/Services/Realtime/RealtimeCustomClientTest.php @@ -7,7 +7,7 @@ use Tests\E2E\Scopes\ProjectCustom; use Tests\E2E\Scopes\Scope; use Tests\E2E\Scopes\SideClient; -use Utopia\CLI\Console; +use Tests\E2E\Services\Functions\FunctionsBase; use Utopia\Database\Helpers\ID; use Utopia\Database\Helpers\Permission; use Utopia\Database\Helpers\Role; @@ -15,6 +15,7 @@ class RealtimeCustomClientTest extends Scope { + use FunctionsBase; use RealtimeBase; use ProjectCustom; use SideClient; @@ -110,6 +111,30 @@ public function testChannelParsing() $client->close(); } + public function testPingPong() + { + $client = $this->getWebsocket(['files'], [ + 'origin' => 'http://localhost' + ]); + $response = json_decode($client->receive(), true); + + $this->assertArrayHasKey('type', $response); + $this->assertArrayHasKey('data', $response); + $this->assertEquals('connected', $response['type']); + $this->assertNotEmpty($response['data']); + $this->assertCount(1, $response['data']['channels']); + $this->assertContains('files', $response['data']['channels']); + + $client->send(\json_encode([ + 'type' => 'ping' + ])); + + $response = json_decode($client->receive(), true); + $this->assertEquals('pong', $response['type']); + + $client->close(); + } + public function testManualAuthentication() { $user = $this->getUser(); @@ -738,7 +763,6 @@ public function testChannelDatabase() $response = json_decode($client->receive(), true); $documentId = $document['body']['$id']; - $this->assertArrayHasKey('type', $response); $this->assertArrayHasKey('data', $response); $this->assertEquals('event', $response['type']); @@ -1271,20 +1295,13 @@ public function testChannelExecutions() $this->assertEquals($function['headers']['status-code'], 201); $this->assertNotEmpty($function['body']['$id']); - $folder = 'timeout'; - $stderr = ''; - $stdout = ''; - $code = realpath(__DIR__ . '/../../../resources/functions') . "/{$folder}/code.tar.gz"; - - Console::execute('cd ' . realpath(__DIR__ . "/../../../resources/functions") . "/{$folder} && tar --exclude code.tar.gz -czf code.tar.gz .", '', $stdout, $stderr); - $deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([ 'content-type' => 'multipart/form-data', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'] ]), [ 'entrypoint' => 'index.php', - 'code' => new CURLFile($code, 'application/x-gzip', basename($code)), + 'code' => $this->packageFunction('timeout'), 'activate' => true ]); @@ -1294,22 +1311,15 @@ public function testChannelExecutions() $this->assertNotEmpty($deployment['body']['$id']); // Poll until deployment is built - while (true) { + $this->assertEventually(function () use ($function, $deploymentId) { $deployment = $this->client->call(Client::METHOD_GET, '/functions/' . $function['body']['$id'] . '/deployments/' . $deploymentId, [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], ]); - if ( - $deployment['headers']['status-code'] >= 400 - || \in_array($deployment['body']['status'], ['ready', 'failed']) - ) { - break; - } - - \sleep(1); - } + $this->assertEquals('ready', $deployment['body']['status'], \json_encode($deployment['body'])); + }); $response = $this->client->call(Client::METHOD_PATCH, '/functions/' . $functionId . '/deployments/' . $deploymentId, array_merge([ 'content-type' => 'application/json', @@ -1340,8 +1350,9 @@ public function testChannelExecutions() $this->assertEquals('event', $response['type']); $this->assertNotEmpty($response['data']); $this->assertArrayHasKey('timestamp', $response['data']); - $this->assertCount(4, $response['data']['channels']); + $this->assertCount(5, $response['data']['channels']); $this->assertContains('console', $response['data']['channels']); + $this->assertContains("projects.{$this->getProject()['$id']}", $response['data']['channels']); $this->assertContains('executions', $response['data']['channels']); $this->assertContains("executions.{$executionId}", $response['data']['channels']); $this->assertContains("functions.{$functionId}", $response['data']['channels']); @@ -1362,8 +1373,9 @@ public function testChannelExecutions() $this->assertEquals('event', $responseUpdate['type']); $this->assertNotEmpty($responseUpdate['data']); $this->assertArrayHasKey('timestamp', $responseUpdate['data']); - $this->assertCount(4, $responseUpdate['data']['channels']); + $this->assertCount(5, $responseUpdate['data']['channels']); $this->assertContains('console', $responseUpdate['data']['channels']); + $this->assertContains("projects.{$this->getProject()['$id']}", $response['data']['channels']); $this->assertContains('executions', $responseUpdate['data']['channels']); $this->assertContains("executions.{$executionId}", $responseUpdate['data']['channels']); $this->assertContains("functions.{$functionId}", $responseUpdate['data']['channels']); diff --git a/tests/e2e/Services/Storage/StorageConsoleClientTest.php b/tests/e2e/Services/Storage/StorageConsoleClientTest.php index 5b6731b35ed..bbb14fb1369 100644 --- a/tests/e2e/Services/Storage/StorageConsoleClientTest.php +++ b/tests/e2e/Services/Storage/StorageConsoleClientTest.php @@ -98,11 +98,13 @@ public function testGetStorageBucketUsage() ]); $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals(5, count($response['body'])); + $this->assertEquals(7, count($response['body'])); $this->assertEquals('24h', $response['body']['range']); $this->assertIsNumeric($response['body']['filesTotal']); $this->assertIsNumeric($response['body']['filesStorageTotal']); $this->assertIsArray($response['body']['files']); $this->assertIsArray($response['body']['storage']); + $this->assertIsArray($response['body']['imageTransformations']); + $this->assertIsNumeric($response['body']['imageTransformationsTotal']); } } diff --git a/tests/e2e/Services/Teams/TeamsBase.php b/tests/e2e/Services/Teams/TeamsBase.php index 2328e4cdbf2..80ac1621ee9 100644 --- a/tests/e2e/Services/Teams/TeamsBase.php +++ b/tests/e2e/Services/Teams/TeamsBase.php @@ -37,6 +37,37 @@ public function testCreateTeam(): array $teamUid = $response1['body']['$id']; $teamName = $response1['body']['name']; + /** + * Test: Attempt to downgrade the only OWNER in an organization (should fail) + */ + if ($this->getProject()['$id'] === 'console') { + // Step 1: Fetch all team memberships — only one exists at this point + $response = $this->client->call(Client::METHOD_GET, '/teams/' . $teamUid . '/memberships', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::limit(1)->toString(), + ], + ]); + + // Step 2: Extract the membership ID of the only member (also the only OWNER) + $membershipID = $response['body']['memberships'][0]['$id']; + + // Step 3: Attempt to downgrade the member's role to 'developer' + $response = $this->client->call(Client::METHOD_PATCH, '/teams/' . $teamUid . '/memberships/' . $membershipID, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'roles' => ['developer'] + ]); + + // Step 4: Assert failure — cannot remove the only OWNER from a team + $this->assertEquals(400, $response['headers']['status-code']); + $this->assertEquals('general_argument_invalid', $response['body']['type']); + $this->assertEquals('There must be at least one owner in the organization.', $response['body']['message']); + } + $teamId = ID::unique(); $response2 = $this->client->call(Client::METHOD_POST, '/teams', array_merge([ 'content-type' => 'application/json', diff --git a/tests/e2e/Services/Teams/TeamsBaseClient.php b/tests/e2e/Services/Teams/TeamsBaseClient.php index 03dffac6aaf..3fcd9c043d5 100644 --- a/tests/e2e/Services/Teams/TeamsBaseClient.php +++ b/tests/e2e/Services/Teams/TeamsBaseClient.php @@ -30,8 +30,8 @@ public function testGetTeamMemberships($data): array $this->assertIsInt($response['body']['total']); $this->assertNotEmpty($response['body']['memberships'][0]['$id']); $this->assertFalse($response['body']['memberships'][0]['mfa']); - $this->assertEquals($this->getUser()['name'], $response['body']['memberships'][0]['userName']); - $this->assertEquals($this->getUser()['email'], $response['body']['memberships'][0]['userEmail']); + $this->assertArrayHasKey('userName', $response['body']['memberships'][0]); + $this->assertArrayHasKey('userEmail', $response['body']['memberships'][0]); $this->assertEquals($teamName, $response['body']['memberships'][0]['teamName']); $this->assertContains('owner', $response['body']['memberships'][0]['roles']); $this->assertContains('player', $response['body']['memberships'][0]['roles']); @@ -96,8 +96,8 @@ public function testGetTeamMemberships($data): array $this->assertEquals(200, $response['headers']['status-code']); $this->assertIsInt($response['body']['total']); $this->assertNotEmpty($response['body']['memberships'][0]); - $this->assertEquals($this->getUser()['name'], $response['body']['memberships'][0]['userName']); - $this->assertEquals($this->getUser()['email'], $response['body']['memberships'][0]['userEmail']); + $this->assertArrayHasKey('userName', $response['body']['memberships'][0]); + $this->assertArrayHasKey('userEmail', $response['body']['memberships'][0]); $this->assertEquals($teamName, $response['body']['memberships'][0]['teamName']); $this->assertContains('owner', $response['body']['memberships'][0]['roles']); $this->assertContains('player', $response['body']['memberships'][0]['roles']); @@ -112,8 +112,8 @@ public function testGetTeamMemberships($data): array $this->assertEquals(200, $response['headers']['status-code']); $this->assertIsInt($response['body']['total']); $this->assertNotEmpty($response['body']['memberships'][0]); - $this->assertEquals($this->getUser()['name'], $response['body']['memberships'][0]['userName']); - $this->assertEquals($this->getUser()['email'], $response['body']['memberships'][0]['userEmail']); + $this->assertArrayHasKey('userName', $response['body']['memberships'][0]); + $this->assertArrayHasKey('userEmail', $response['body']['memberships'][0]); $this->assertEquals($teamName, $response['body']['memberships'][0]['teamName']); $this->assertContains('owner', $response['body']['memberships'][0]['roles']); $this->assertContains('player', $response['body']['memberships'][0]['roles']); @@ -157,11 +157,11 @@ public function testGetTeamMembership($data): void $this->assertNotEmpty($response['body']['$id']); $this->assertFalse($response['body']['mfa']); $this->assertNotEmpty($response['body']['userId']); - $this->assertNotEmpty($response['body']['userName']); - $this->assertNotEmpty($response['body']['userEmail']); + $this->assertArrayHasKey('userName', $response['body']); + $this->assertArrayHasKey('userEmail', $response['body']); $this->assertNotEmpty($response['body']['teamId']); $this->assertNotEmpty($response['body']['teamName']); - $this->assertCount(2, $response['body']['roles']); + $this->assertCount(1, $response['body']['roles']); $this->assertEquals(false, (new DatetimeValidator())->isValid($response['body']['joined'])); // is null in DB $this->assertEquals(false, $response['body']['confirm']); @@ -203,7 +203,7 @@ public function testCreateTeamMembership($data): array ], $this->getHeaders()), [ 'email' => $email, 'name' => $name, - 'roles' => ['admin', 'editor'], + 'roles' => ['developer'], 'url' => 'http://localhost:5000/join-us#title' ]); @@ -214,7 +214,7 @@ public function testCreateTeamMembership($data): array $this->assertEquals($email, $response['body']['userEmail']); $this->assertNotEmpty($response['body']['teamId']); $this->assertNotEmpty($response['body']['teamName']); - $this->assertCount(2, $response['body']['roles']); + $this->assertCount(1, $response['body']['roles']); $this->assertEquals(false, (new DatetimeValidator())->isValid($response['body']['joined'])); // is null in DB $this->assertEquals(false, $response['body']['confirm']); @@ -223,10 +223,8 @@ public function testCreateTeamMembership($data): array $this->assertEquals($email, $lastEmail['to'][0]['address']); $this->assertEquals($name, $lastEmail['to'][0]['name']); $this->assertEquals('Invitation to ' . $teamName . ' Team at ' . $this->getProject()['name'], $lastEmail['subject']); - - $secret = substr($lastEmail['text'], strpos($lastEmail['text'], '&secret=', 0) + 8, 256); - $membershipUid = substr($lastEmail['text'], strpos($lastEmail['text'], '?membershipId=', 0) + 14, 20); - $userUid = substr($lastEmail['text'], strpos($lastEmail['text'], '&userId=', 0) + 8, 20); + $this->assertEquals($response['body']['teamId'], substr($lastEmail['text'], strpos($lastEmail['text'], '&teamId=', 0) + 8, 20)); + $this->assertEquals($teamName, substr($lastEmail['text'], strpos($lastEmail['text'], '&teamName=', 0) + 10, 7)); /** * Test with UserId @@ -255,7 +253,7 @@ public function testCreateTeamMembership($data): array 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ 'userId' => 'abcdefdg', - 'roles' => ['admin', 'editor'], + 'roles' => ['developer'], 'url' => 'http://localhost:5000/join-us#title' ]); @@ -270,7 +268,7 @@ public function testCreateTeamMembership($data): array 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ 'userId' => $userId, - 'roles' => ['admin', 'editor'], + 'roles' => ['developer'], 'url' => 'http://localhost:5000/join-us#title' ]); @@ -281,7 +279,7 @@ public function testCreateTeamMembership($data): array $this->assertEquals($secondEmail, $response['body']['userEmail']); $this->assertNotEmpty($response['body']['teamId']); $this->assertNotEmpty($response['body']['teamName']); - $this->assertCount(2, $response['body']['roles']); + $this->assertCount(1, $response['body']['roles']); $this->assertEquals(false, (new DateTimeValidator())->isValid($response['body']['joined'])); // is null in DB $this->assertEquals(false, $response['body']['confirm']); @@ -290,22 +288,30 @@ public function testCreateTeamMembership($data): array $this->assertEquals($secondEmail, $lastEmail['to'][0]['address']); $this->assertEquals($secondName, $lastEmail['to'][0]['name']); $this->assertEquals('Invitation to ' . $teamName . ' Team at ' . $this->getProject()['name'], $lastEmail['subject']); + $this->assertEquals($response['body']['teamId'], substr($lastEmail['text'], strpos($lastEmail['text'], '&teamId=', 0) + 8, 20)); + $this->assertEquals($teamName, substr($lastEmail['text'], strpos($lastEmail['text'], '&teamName=', 0) + 10, 7)); - /** - * Test for FAILURE - */ - + // test for resending invitation $response = $this->client->call(Client::METHOD_POST, '/teams/' . $teamUid . '/memberships', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ 'email' => $email, 'name' => 'Friend User', - 'roles' => ['admin', 'editor'], + 'roles' => ['developer'], 'url' => 'http://localhost:5000/join-us#title' ]); - $this->assertEquals(409, $response['headers']['status-code']); + $this->assertEquals(201, $response['headers']['status-code']); + + $lastEmail = $this->getLastEmail(); + $membershipUid = substr($lastEmail['text'], strpos($lastEmail['text'], '?membershipId=', 0) + 14, 20); + $userUid = substr($lastEmail['text'], strpos($lastEmail['text'], '&userId=', 0) + 8, 20); + $secret = substr($lastEmail['text'], strpos($lastEmail['text'], '&secret=', 0) + 8, 256); + + /** + * Test for FAILURE + */ $response = $this->client->call(Client::METHOD_POST, '/teams/' . $teamUid . '/memberships', array_merge([ 'content-type' => 'application/json', @@ -313,7 +319,7 @@ public function testCreateTeamMembership($data): array ], $this->getHeaders()), [ 'email' => 'dasdkaskdjaskdjasjkd', 'name' => $name, - 'roles' => ['admin', 'editor'], + 'roles' => ['developer'], 'url' => 'http://localhost:5000/join-us#title' ]); @@ -337,7 +343,7 @@ public function testCreateTeamMembership($data): array ], $this->getHeaders()), [ 'email' => $email, 'name' => $name, - 'roles' => ['admin', 'editor'], + 'roles' => ['developer'], 'url' => 'http://example.com/join-us#title' // bad url ]); @@ -413,7 +419,7 @@ public function testUpdateTeamMembership($data): array $this->assertNotEmpty($response['body']['$id']); $this->assertNotEmpty($response['body']['userId']); $this->assertNotEmpty($response['body']['teamId']); - $this->assertCount(2, $response['body']['roles']); + $this->assertCount(1, $response['body']['roles']); $this->assertEquals(true, (new DatetimeValidator())->isValid($response['body']['joined'])); $this->assertEquals(true, $response['body']['confirm']); $session = $response['cookies']['a_session_' . $this->getProject()['$id']]; @@ -559,6 +565,76 @@ public function testUpdateTeamMembership($data): array return $data; } + + /** + * @depends testCreateTeam + */ + public function testUpdateMembershipWithSession(array $data): void + { + $teamUid = $data['teamUid'] ?? ''; + + // create user + $response = $this->client->call(Client::METHOD_POST, '/account', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], [ + 'userId' => 'unique()', + 'email' => uniqid() . 'foe@localhost.test', + 'password' => 'password', + 'name' => 'test' + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + $user = $response['body']; + + // create session + $response = $this->client->call(Client::METHOD_POST, '/account/sessions', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], [ + 'email' => $user['email'], + 'password' => 'password' + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + + $session = $response['cookies']['a_session_' . $this->getProject()['$id']]; + + $response = $this->client->call(Client::METHOD_POST, '/teams/' . $teamUid . '/memberships', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'email' => $user['email'], + 'roles' => ['developer'], + 'url' => 'http://localhost:5000/join-us#title' + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + + $lastEmail = $this->getLastEmail(); + + $secret = substr($lastEmail['text'], strpos($lastEmail['text'], '&secret=', 0) + 8, 256); + $membershipUid = substr($lastEmail['text'], strpos($lastEmail['text'], '?membershipId=', 0) + 14, 20); + $userUid = substr($lastEmail['text'], strpos($lastEmail['text'], '&userId=', 0) + 8, 20); + + $response = $this->client->call(Client::METHOD_PATCH, '/teams/' . $teamUid . '/memberships/' . $membershipUid . '/status', [ + 'origin' => 'http://localhost', + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'cookie' => 'a_session_' . $this->getProject()['$id'] . '=' . $session, + ], [ + 'secret' => $secret, + 'userId' => $userUid, + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertNotEmpty($response['body']['$id']); + $this->assertNotEmpty($response['body']['userId']); + $this->assertNotEmpty($response['body']['teamId']); + $this->assertCount(1, $response['body']['roles']); + $this->assertEmpty($response['cookies']); + } + /** * @depends testUpdateTeamMembership */ @@ -571,7 +647,7 @@ public function testUpdateTeamMembershipRoles($data): array /** * Test for SUCCESS */ - $roles = ['admin', 'editor', 'uncle']; + $roles = ['editor', 'uncle']; $response = $this->client->call(Client::METHOD_PATCH, '/teams/' . $teamUid . '/memberships/' . $membershipUid, array_merge([ 'origin' => 'http://localhost', 'content-type' => 'application/json', @@ -587,7 +663,6 @@ public function testUpdateTeamMembershipRoles($data): array $this->assertCount(count($roles), $response['body']['roles']); $this->assertEquals($roles[0], $response['body']['roles'][0]); $this->assertEquals($roles[1], $response['body']['roles'][1]); - $this->assertEquals($roles[2], $response['body']['roles'][2]); /** * Test for unknown team @@ -649,7 +724,7 @@ public function testDeleteTeamMembership($data): array ], $this->getHeaders())); $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals(3, $response['body']['total']); + $this->assertEquals(4, $response['body']['total']); $ownerMembershipUid = $response['body']['memberships'][0]['$id']; @@ -704,7 +779,7 @@ public function testDeleteTeamMembership($data): array ], $this->getHeaders())); $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals(2, $response['body']['total']); + $this->assertEquals(3, $response['body']['total']); /** * Test for when the owner tries to delete their membership diff --git a/tests/e2e/Services/Teams/TeamsBaseServer.php b/tests/e2e/Services/Teams/TeamsBaseServer.php index 4e9d0839ab1..0c6d85e276f 100644 --- a/tests/e2e/Services/Teams/TeamsBaseServer.php +++ b/tests/e2e/Services/Teams/TeamsBaseServer.php @@ -29,7 +29,7 @@ public function testGetTeamMemberships($data): array * Test for FAILURE */ - return []; + return $data; } /** @@ -60,6 +60,67 @@ public function testGetTeamMembership($data): void $this->assertEquals(true, (new DatetimeValidator())->isValid($response['body']['joined'])); // is null in DB $this->assertEquals(true, $response['body']['confirm']); + $response = $this->client->call(Client::METHOD_PATCH, '/projects/' . $this->getProject()['$id'] . '/auth/memberships-privacy', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => 'console', + 'cookie' => 'a_session_console=' . $this->getRoot()['session'], + ]), [ + 'userName' => false, + 'userEmail' => false, + 'mfa' => false, + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + + /** + * Test that sensitive fields are not hidden, as we are on console + */ + $response = $this->client->call(Client::METHOD_GET, '/teams/' . $teamUid . '/memberships', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertIsInt($response['body']['total']); + $this->assertNotEmpty($response['body']['memberships'][0]['$id']); + + // Assert that sensitive fields are present + $this->assertNotEmpty($response['body']['memberships'][0]['userName']); + $this->assertNotEmpty($response['body']['memberships'][0]['userEmail']); + $this->assertArrayHasKey('mfa', $response['body']['memberships'][0]); + + /** + * Update project settings to show sensitive fields + */ + $response = $this->client->call(Client::METHOD_PATCH, '/projects/' . $this->getProject()['$id'] . '/auth/memberships-privacy', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => 'console', + 'cookie' => 'a_session_console=' . $this->getRoot()['session'], + ]), [ + 'userName' => true, + 'userEmail' => true, + 'mfa' => true, + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + + /** + * Test that sensitive fields are shown + */ + $response = $this->client->call(Client::METHOD_GET, '/teams/' . $teamUid . '/memberships', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertIsInt($response['body']['total']); + $this->assertNotEmpty($response['body']['memberships'][0]['$id']); + + // Assert that sensitive fields are present + $this->assertNotEmpty($response['body']['memberships'][0]['userName']); + $this->assertNotEmpty($response['body']['memberships'][0]['userEmail']); + $this->assertArrayHasKey('mfa', $response['body']['memberships'][0]); + /** * Test for FAILURE */ @@ -114,16 +175,6 @@ public function testCreateTeamMembership($data): array $userUid = $response['body']['userId']; $membershipUid = $response['body']['$id']; - // $response = $this->client->call(Client::METHOD_GET, '/users/'.$userUid, array_merge([ - // 'content-type' => 'application/json', - // 'x-appwrite-project' => $this->getProject()['$id'], - // ], $this->getHeaders()), []); - - // $this->assertEquals($userUid, $response['body']['$id']); - // $this->assertContains('team:'.$teamUid, $response['body']['roles']); - // $this->assertContains('team:'.$teamUid.'/admin', $response['body']['roles']); - // $this->assertContains('team:'.$teamUid.'/editor', $response['body']['roles']); - /** * Test for FAILURE */ @@ -138,7 +189,7 @@ public function testCreateTeamMembership($data): array 'url' => 'http://localhost:5000/join-us#title' ]); - $this->assertEquals(409, $response['headers']['status-code']); + $this->assertEquals(409, $response['headers']['status-code']); // membership already created $response = $this->client->call(Client::METHOD_POST, '/teams/' . $teamUid . '/memberships', array_merge([ 'content-type' => 'application/json', diff --git a/tests/e2e/Services/Teams/TeamsConsoleClientTest.php b/tests/e2e/Services/Teams/TeamsConsoleClientTest.php index 61d0f6a027c..06358765f63 100644 --- a/tests/e2e/Services/Teams/TeamsConsoleClientTest.php +++ b/tests/e2e/Services/Teams/TeamsConsoleClientTest.php @@ -28,12 +28,13 @@ public function testTeamMembershipPerms($data): array // Create a user account before we create a invite so we can check if the user has permissions when it shouldn't $user = $this->client->call(Client::METHOD_POST, '/account', [ 'content-type' => 'application/json', - 'x-appwrite-project' => 'console'], [ - 'userId' => 'unique()', - 'email' => $email, - 'password' => $password, - 'name' => $name, - ], false); + 'x-appwrite-project' => 'console' + ], [ + 'userId' => 'unique()', + 'email' => $email, + 'password' => $password, + 'name' => $name, + ], false); $this->assertEquals(201, $user['headers']['status-code']); @@ -46,7 +47,7 @@ public function testTeamMembershipPerms($data): array ], $this->getHeaders()), [ 'email' => $email, 'name' => $name, - 'roles' => ['admin', 'editor'], + 'roles' => ['developer'], 'url' => 'http://localhost:5000/join-us#title' ]); @@ -76,4 +77,71 @@ public function testTeamMembershipPerms($data): array return $data; } + + /** @depends testUpdateTeamMembership */ + public function testUpdateTeamMembershipRoles($data): array + { + $teamUid = $data['teamUid'] ?? ''; + $membershipUid = $data['membershipUid'] ?? ''; + $session = $data['session'] ?? ''; + + /** + * Test for FAILURE + */ + $roles = ['developer']; + $response = $this->client->call(Client::METHOD_PATCH, '/teams/' . $teamUid . '/memberships/' . $membershipUid, array_merge([ + 'origin' => 'http://localhost', + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'roles' => $roles + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + $this->assertEquals('There must be at least one owner in the organization.', $response['body']['message']); + + /** + * Test for unknown team + */ + $response = $this->client->call(Client::METHOD_PATCH, '/teams/' . 'abc' . '/memberships/' . $membershipUid, array_merge([ + 'origin' => 'http://localhost', + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'roles' => $roles + ]); + + $this->assertEquals(404, $response['headers']['status-code']); + + /** + * Test for unknown membership ID + */ + $response = $this->client->call(Client::METHOD_PATCH, '/teams/' . $teamUid . '/memberships/' . 'abc', array_merge([ + 'origin' => 'http://localhost', + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'roles' => $roles + ]); + + $this->assertEquals(404, $response['headers']['status-code']); + + + /** + * Test for when a user other than the owner tries to update membership + */ + $response = $this->client->call(Client::METHOD_PATCH, '/teams/' . $teamUid . '/memberships/' . $membershipUid, [ + 'origin' => 'http://localhost', + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'cookie' => 'a_session_' . $this->getProject()['$id'] . '=' . $session, + ], [ + 'roles' => $roles + ]); + + $this->assertEquals(401, $response['headers']['status-code']); + $this->assertEquals('User is not allowed to modify roles', $response['body']['message']); + + return $data; + } } diff --git a/tests/e2e/Services/Teams/TeamsCustomClientTest.php b/tests/e2e/Services/Teams/TeamsCustomClientTest.php index 1de22f743fd..7286bb0827a 100644 --- a/tests/e2e/Services/Teams/TeamsCustomClientTest.php +++ b/tests/e2e/Services/Teams/TeamsCustomClientTest.php @@ -14,6 +14,109 @@ class TeamsCustomClientTest extends Scope use ProjectCustom; use SideClient; + /** + * @depends testGetTeamMemberships + */ + public function testGetMembershipPrivacy($data) + { + $teamUid = $data['teamUid'] ?? ''; + + $projectId = $this->getProject()['$id']; + + $response = $this->client->call(Client::METHOD_PATCH, '/projects/' . $projectId . '/auth/memberships-privacy', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => 'console', + 'cookie' => 'a_session_console=' . $this->getRoot()['session'], + ]), [ + 'userName' => false, + 'userEmail' => false, + 'mfa' => false, + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + + /** + * Test that sensitive fields are hidden + */ + $response = $this->client->call(Client::METHOD_GET, '/teams/' . $teamUid . '/memberships', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertIsInt($response['body']['total']); + $this->assertNotEmpty($response['body']['memberships'][0]['$id']); + + // Assert that sensitive fields are not present + $this->assertEmpty($response['body']['memberships'][0]['userName']); + $this->assertEmpty($response['body']['memberships'][0]['userEmail']); + $this->assertFalse($response['body']['memberships'][0]['mfa']); + + /** + * Update project settings to show sensitive fields + */ + $response = $this->client->call(Client::METHOD_PATCH, '/projects/' . $projectId . '/auth/memberships-privacy', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => 'console', + 'cookie' => 'a_session_console=' . $this->getRoot()['session'], + ]), [ + 'userName' => true, + 'userEmail' => true, + 'mfa' => true, + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + + /** + * Test that sensitive fields are shown + */ + $response = $this->client->call(Client::METHOD_GET, '/teams/' . $teamUid . '/memberships', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertIsInt($response['body']['total']); + $this->assertNotEmpty($response['body']['memberships'][0]['$id']); + + // Assert that sensitive fields are present + $this->assertNotEmpty($response['body']['memberships'][0]['userName']); + $this->assertNotEmpty($response['body']['memberships'][0]['userEmail']); + $this->assertArrayHasKey('mfa', $response['body']['memberships'][0]); + + /** + * Update project settings to show only MFA + */ + $response = $this->client->call(Client::METHOD_PATCH, '/projects/' . $this->getProject()['$id'] . '/auth/memberships-privacy', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => 'console', + 'cookie' => 'a_session_console=' . $this->getRoot()['session'], + ]), [ + 'userName' => false, + 'userEmail' => false, + 'mfa' => true, + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + + /** + * Test that sensitive fields are not shown + */ + $response = $this->client->call(Client::METHOD_GET, '/teams/' . $teamUid . '/memberships', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $projectId, + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertIsInt($response['body']['total']); + $this->assertNotEmpty($response['body']['memberships'][0]['$id']); + + // Assert that sensitive fields are present + $this->assertEmpty($response['body']['memberships'][0]['userName']); + $this->assertEmpty($response['body']['memberships'][0]['userEmail']); + $this->assertArrayHasKey('mfa', $response['body']['memberships'][0]); + } + /** * @depends testUpdateTeamMembership */ diff --git a/tests/e2e/Services/Users/UsersBase.php b/tests/e2e/Services/Users/UsersBase.php index d9105e0790b..04e0eb5bc30 100644 --- a/tests/e2e/Services/Users/UsersBase.php +++ b/tests/e2e/Services/Users/UsersBase.php @@ -310,6 +310,22 @@ public function testCreateSession(array $data): void $this->assertNotEmpty($session['secret']); $this->assertNotEmpty($session['expire']); $this->assertEquals('server', $session['provider']); + + $response = $this->client->call(Client::METHOD_GET, '/account', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-session' => $session['secret'] + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + + $response = $this->client->call(Client::METHOD_DELETE, '/account/sessions/current', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-session' => $session['secret'] + ]); + + $this->assertEquals(204, $response['headers']['status-code']); } @@ -1498,6 +1514,7 @@ public function testUpdateUserTarget(array $data): array ]); $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals('random-email1@mail.org', $response['body']['identifier']); + $this->assertEquals(false, $response['body']['expired']); return $response['body']; } @@ -1510,6 +1527,7 @@ public function testListUserTarget(array $data) 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders())); + $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals(3, \count($response['body']['targets'])); } diff --git a/tests/e2e/Services/Webhooks/WebhooksBase.php b/tests/e2e/Services/Webhooks/WebhooksBase.php index 6be3e16c1f1..c743810febd 100644 --- a/tests/e2e/Services/Webhooks/WebhooksBase.php +++ b/tests/e2e/Services/Webhooks/WebhooksBase.php @@ -2,6 +2,7 @@ namespace Tests\E2E\Services\Webhooks; +use Appwrite\Tests\Async; use Appwrite\Tests\Retry; use CURLFile; use Tests\E2E\Client; @@ -12,29 +13,20 @@ trait WebhooksBase { - protected function awaitDeploymentIsBuilt($functionId, $deploymentId, $checkForSuccess = true): void + use Async; + + protected function awaitDeploymentIsBuilt($functionId, $deploymentId): void { - while (true) { + $this->assertEventually(function () use ($functionId, $deploymentId) { $deployment = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/deployments/' . $deploymentId, [ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], 'x-appwrite-key' => $this->getProject()['apiKey'], ]); - if ( - $deployment['headers']['status-code'] >= 400 - || \in_array($deployment['body']['status'], ['ready', 'failed']) - ) { - break; - } - - \sleep(1); - } - - if ($checkForSuccess) { $this->assertEquals(200, $deployment['headers']['status-code']); $this->assertEquals('ready', $deployment['body']['status'], \json_encode($deployment['body'])); - } + }); } public static function getWebhookSignature(array $webhook, string $signatureKey): string @@ -901,6 +893,17 @@ public function testCreateTeamMembership($data): array $teamId = $data['teamId'] ?? ''; $email = uniqid() . 'friend@localhost.test'; + // Create user to ensure team event is triggered after user event + $user = $this->client->call(Client::METHOD_POST, '/account', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'userId' => ID::unique(), + 'email' => $email, + 'password' => 'password', + 'name' => 'Friend User', + ]); + /** * Test for SUCCESS */ @@ -909,7 +912,6 @@ public function testCreateTeamMembership($data): array 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ 'email' => $email, - 'name' => 'Friend User', 'roles' => ['admin', 'editor'], 'url' => 'http://localhost:5000/join-us#title' ]); diff --git a/tests/extensions/Async.php b/tests/extensions/Async.php new file mode 100644 index 00000000000..48af24bc027 --- /dev/null +++ b/tests/extensions/Async.php @@ -0,0 +1,17 @@ +<?php + +namespace Appwrite\Tests; + +use Appwrite\Tests\Async\Eventually; +use PHPUnit\Framework\Assert; + +const DEFAULT_TIMEOUT_MS = 10000; +const DEFAULT_WAIT_MS = 500; + +trait Async +{ + public static function assertEventually(callable $probe, int $timeoutMs = DEFAULT_TIMEOUT_MS, int $waitMs = DEFAULT_WAIT_MS): void + { + Assert::assertThat($probe, new Eventually($timeoutMs, $waitMs)); + } +} diff --git a/tests/extensions/Async/Eventually.php b/tests/extensions/Async/Eventually.php new file mode 100644 index 00000000000..9840b1a1144 --- /dev/null +++ b/tests/extensions/Async/Eventually.php @@ -0,0 +1,49 @@ +<?php + +namespace Appwrite\Tests\Async; + +use PHPUnit\Framework\Constraint\Constraint; + +final class Eventually extends Constraint +{ + public function __construct(private int $timeoutMs, private int $waitMs) + { + } + + public function evaluate(mixed $probe, string $description = '', bool $returnResult = false): ?bool + { + if (!is_callable($probe)) { + throw new \Exception('Probe must be a callable'); + } + + $start = microtime(true); + $lastException = null; + + do { + try { + $probe(); + return true; + } catch (\Exception $exception) { + $lastException = $exception; + } + + usleep($this->waitMs * 1000); + } while (microtime(true) - $start < $this->timeoutMs / 1000); + + if ($returnResult) { + return false; + } + + throw $lastException; + } + + protected function failureDescription(mixed $other): string + { + return 'the given probe was satisfied within ' . $this->timeoutMs . 'ms.'; + } + + public function toString(): string + { + return 'Eventually'; + } +} diff --git a/tests/resources/docker/docker-compose.yml b/tests/resources/docker/docker-compose.yml index a34b4fcf881..779d63d6ed6 100644 --- a/tests/resources/docker/docker-compose.yml +++ b/tests/resources/docker/docker-compose.yml @@ -35,7 +35,7 @@ services: - VERSION=dev restart: unless-stopped ports: - - 9501:80 + - "9501:80" networks: - appwrite labels: @@ -52,16 +52,14 @@ services: - ./phpunit.xml:/usr/src/code/phpunit.xml - ./tests:/usr/src/code/tests - ./app:/usr/src/code/app - # - ./vendor:/usr/src/code/vendor - ./docs:/usr/src/code/docs - ./public:/usr/src/code/public - ./src:/usr/src/code/src - - ./debug:/tmp depends_on: - mariadb - redis - # - clamav environment: + - _APP_COMPRESSION_MIN_SIZE_BYTES - _APP_ENV - _APP_OPTIONS_ABUSE - _APP_OPTIONS_ROUTER_PROTECTION @@ -88,9 +86,9 @@ services: - _APP_FUNCTIONS_MEMORY_SWAP - _APP_EXECUTOR_HOST - appwrite-worker-usage: - entrypoint: worker-usage - container_name: appwrite-worker-usage + appwrite-worker-stats-usage: + entrypoint: worker-stats-usage + container_name: appwrite-worker-stats-usage build: context: . restart: unless-stopped @@ -354,33 +352,6 @@ services: volumes: - appwrite-redis:/data:rw - # clamav: - # image: appwrite/clamav:1.2.0 - # container_name: appwrite-clamav - # restart: unless-stopped - # networks: - # - appwrite - # volumes: - # - appwrite-uploads:/storage/uploads - - - # redis-commander: - # image: rediscommander/redis-commander:latest - # restart: unless-stopped - # networks: - # - appwrite - # environment: - # - REDIS_HOSTS=redis - # ports: - # - "8081:8081" - - # webgrind: - # image: 'jokkedk/webgrind:latest' - # volumes: - # - './debug:/tmp' - # ports: - # - '3001:80' - networks: gateway: appwrite: diff --git a/tests/resources/functions/node/index.js b/tests/resources/functions/node/index.js index 041e4a8c12c..e8eb938a15b 100644 --- a/tests/resources/functions/node/index.js +++ b/tests/resources/functions/node/index.js @@ -14,6 +14,8 @@ module.exports = async(context) => { 'APPWRITE_FUNCTION_USER_ID' : context.req.headers['x-appwrite-user-id'] ?? '', 'APPWRITE_FUNCTION_JWT' : context.req.headers['x-appwrite-user-jwt'] ?? '', 'APPWRITE_FUNCTION_PROJECT_ID' : process.env.APPWRITE_FUNCTION_PROJECT_ID, + 'APPWRITE_FUNCTION_MEMORY' : process.env.APPWRITE_FUNCTION_MEMORY, + 'APPWRITE_FUNCTION_CPUS' : process.env.APPWRITE_FUNCTION_CPUS, 'CUSTOM_VARIABLE' : process.env.CUSTOM_VARIABLE }); } \ No newline at end of file diff --git a/tests/unit/Auth/KeyTest.php b/tests/unit/Auth/KeyTest.php new file mode 100644 index 00000000000..8ae21146974 --- /dev/null +++ b/tests/unit/Auth/KeyTest.php @@ -0,0 +1,56 @@ +<?php + +namespace Tests\Unit\Auth; + +use Ahc\Jwt\JWT; +use Appwrite\Auth\Auth; +use Appwrite\Auth\Key; +use PHPUnit\Framework\TestCase; +use Utopia\Config\Config; +use Utopia\Database\Document; +use Utopia\System\System; + +class KeyTest extends TestCase +{ + public function testDecode(): void + { + $projectId = 'test'; + $usage = false; + $scopes = [ + 'databases.read', + 'collections.read', + 'documents.read', + ]; + $roleScopes = Config::getParam('roles', [])[Auth::USER_ROLE_APPS]['scopes']; + + $key = static::generateKey($projectId, $usage, $scopes); + $project = new Document(['$id' => $projectId,]); + $decoded = Key::decode($project, $key); + + $this->assertEquals($projectId, $decoded->getProjectId()); + $this->assertEquals(API_KEY_DYNAMIC, $decoded->getType()); + $this->assertEquals(Auth::USER_ROLE_APPS, $decoded->getRole()); + $this->assertEquals(\array_merge($scopes, $roleScopes), $decoded->getScopes()); + } + + private static function generateKey( + string $projectId, + bool $usage, + array $scopes, + ): string { + $jwt = new JWT( + key: System::getEnv('_APP_OPENSSL_KEY_V1'), + algo: 'HS256', + maxAge: 86400, + leeway: 0, + ); + + $apiKey = $jwt->encode([ + 'projectId' => $projectId, + 'usage' => $usage, + 'scopes' => $scopes, + ]); + + return API_KEY_DYNAMIC . '_' . $apiKey; + } +} diff --git a/tests/unit/Auth/Validator/PhoneTest.php b/tests/unit/Auth/Validator/PhoneTest.php index d5a4e7f8263..b7730641c3d 100644 --- a/tests/unit/Auth/Validator/PhoneTest.php +++ b/tests/unit/Auth/Validator/PhoneTest.php @@ -31,6 +31,7 @@ public function testValues(): void $this->assertEquals($this->object->isValid('+0415553452342'), false); $this->assertEquals($this->object->isValid('+14 155 5524564'), false); $this->assertEquals($this->object->isValid('+1415555245634543'), false); + $this->assertEquals($this->object->isValid('+8020000000'), false); // when country code is not present $this->assertEquals($this->object->isValid(+14155552456), false); $this->assertEquals($this->object->isValid('+1415555'), true); diff --git a/tests/unit/Event/EventTest.php b/tests/unit/Event/EventTest.php index dd9833378fe..c852cf27579 100644 --- a/tests/unit/Event/EventTest.php +++ b/tests/unit/Event/EventTest.php @@ -3,13 +3,9 @@ namespace Tests\Unit\Event; use Appwrite\Event\Event; -use Appwrite\URL\URL; use InvalidArgumentException; use PHPUnit\Framework\TestCase; -use Utopia\DSN\DSN; -use Utopia\Queue; -use Utopia\Queue\Client; -use Utopia\System\System; +use Utopia\Queue\Publisher; require_once __DIR__ . '/../../../app/init.php'; @@ -17,24 +13,14 @@ class EventTest extends TestCase { protected ?Event $object = null; protected string $queue = ''; + protected Publisher $publisher; public function setUp(): void { - $fallbackForRedis = 'redis_main=' . URL::unparse([ - 'scheme' => 'redis', - 'host' => System::getEnv('_APP_REDIS_HOST', 'redis'), - 'port' => System::getEnv('_APP_REDIS_PORT', '6379'), - 'user' => System::getEnv('_APP_REDIS_USER', ''), - 'pass' => System::getEnv('_APP_REDIS_PASS', ''), - ]); + $this->publisher = new MockPublisher(); - $dsn = System::getEnv('_APP_CONNECTIONS_QUEUE', $fallbackForRedis); - $dsn = explode('=', $dsn); - $dsn = $dsn[1] ?? ''; - $dsn = new DSN($dsn); - $connection = new Queue\Connection\Redis($dsn->getHost(), $dsn->getPort()); $this->queue = 'v1-tests' . uniqid(); - $this->object = new Event($connection); + $this->object = new Event($this->publisher); $this->object->setClass('TestsV1'); $this->object->setQueue($this->queue); } @@ -66,10 +52,7 @@ public function testParams(): void $this->assertEquals('eventValue1', $this->object->getParam('eventKey1')); $this->assertEquals('eventValue2', $this->object->getParam('eventKey2')); $this->assertEquals(null, $this->object->getParam('eventKey3')); - global $register; - $pools = $register->get('pools'); - $client = new Client($this->object->getQueue(), $pools->get('queue')->pop()->getResource()); - $this->assertEquals($client->getQueueSize(), 1); + $this->assertCount(1, $this->publisher->getEvents($this->object->getQueue())); } public function testReset(): void diff --git a/tests/unit/Event/MockPublisher.php b/tests/unit/Event/MockPublisher.php new file mode 100644 index 00000000000..54fcc893581 --- /dev/null +++ b/tests/unit/Event/MockPublisher.php @@ -0,0 +1,35 @@ +<?php + +namespace Tests\Unit\Event; + +use Utopia\Queue\Publisher; +use Utopia\Queue\Queue; + +class MockPublisher implements Publisher +{ + private $events = []; + + public function enqueue(Queue $queue, array $payload): bool + { + if (!isset($this->events[$queue->name])) { + $this->events[$queue->name] = []; + } + $this->events[$queue->name][] = $payload; + return true; + } + + public function getEvents(string $queue) + { + return $this->events[$queue] ?? null; + } + + public function retry(Queue $queue, int $limit = null): void + { + // TODO: Implement retry() method. + } + + public function getQueueSize(Queue $queue, bool $failedJobs = false): int + { + return count($this->events[$queue->name]); + } +} diff --git a/tests/unit/Usage/StatsTest.php b/tests/unit/Usage/StatsTest.php deleted file mode 100644 index 67e39d89742..00000000000 --- a/tests/unit/Usage/StatsTest.php +++ /dev/null @@ -1,54 +0,0 @@ -<?php - -namespace Tests\Unit\Usage; - -use Appwrite\URL\URL as AppwriteURL; -use PHPUnit\Framework\TestCase; -use Utopia\DSN\DSN; -use Utopia\Queue; -use Utopia\Queue\Client; -use Utopia\Queue\Connection; -use Utopia\System\System; - -class StatsTest extends TestCase -{ - protected ?Connection $connection = null; - protected ?Client $client = null; - - protected const QUEUE_NAME = 'usage-test-q'; - - public function setUp(): void - { - $env = System::getEnv('_APP_CONNECTIONS_QUEUE', 'redis_main=' . AppwriteURL::unparse([ - 'scheme' => 'redis', - 'host' => System::getEnv('_APP_REDIS_HOST', 'redis'), - 'port' => System::getEnv('_APP_REDIS_PORT', '6379'), - 'user' => System::getEnv('_APP_REDIS_USER', ''), - 'pass' => System::getEnv('_APP_REDIS_PASS', ''), - ])); - - $dsn = explode('=', $env); - $dsn = count($dsn) > 1 ? $dsn[1] : $dsn[0]; - $dsn = new DSN($dsn); - $this->connection = new Queue\Connection\Redis($dsn->getHost(), $dsn->getPort()); - $this->client = new Client(self::QUEUE_NAME, $this->connection); - } - - public function tearDown(): void - { - } - - public function testSamePayload(): void - { - $inToQueue = [ - 'key_1' => 'value_1', - 'key_2' => 'value_2', - ]; - - $result = $this->client->enqueue($inToQueue); - $this->assertTrue($result); - $outFromQueue = $this->connection->leftPopArray('utopia-queue.queue.' . self::QUEUE_NAME, 0)['payload']; - $this->assertNotEmpty($outFromQueue); - $this->assertSame($inToQueue, $outFromQueue); - } -} diff --git a/tests/unit/Utopia/RequestTest.php b/tests/unit/Utopia/RequestTest.php index 73daaa88bc3..63655de21d8 100644 --- a/tests/unit/Utopia/RequestTest.php +++ b/tests/unit/Utopia/RequestTest.php @@ -2,6 +2,8 @@ namespace Tests\Unit\Utopia; +use Appwrite\SDK\Method; +use Appwrite\SDK\Parameter; use Appwrite\Utopia\Request; use PHPUnit\Framework\TestCase; use Swoole\Http\Request as SwooleRequest; @@ -31,8 +33,14 @@ public function testFilters(): void $this->assertCount(2, $this->request->getFilters()); $route = new Route(Request::METHOD_GET, '/test'); - $route->label('sdk.method', 'method'); - $route->label('sdk.namespace', 'namespace'); + $route->label('sdk', new Method( + namespace: 'namespace', + group: 'group', + name: 'method', + description: 'description', + auth: [], + responses: [], + )); // set test header to prevent header populaten inside the request class $this->request->addHeader('EXAMPLE', 'VALUE'); $this->request->setRoute($route); @@ -50,4 +58,130 @@ public function testFilters(): void $this->assertTrue($output['second']); $this->assertArrayNotHasKey('deleted', $output); } + + public function testGetParamsWithMultipleMethods(): void + { + $this->setupMultiMethodRoute(); + + // Pass only "foo", should match Method A + $this->request->setQueryString([ + 'foo' => 'valueFoo', + ]); + + $params = $this->request->getParams(); + + $this->assertArrayHasKey('foo', $params); + $this->assertSame('valueFoo', $params['foo']); + $this->assertArrayNotHasKey('baz', $params); + } + + public function testGetParamsWithAllRequired(): void + { + $this->setupMultiMethodRoute(); + + // Pass "foo" and "bar", should match Method A + $this->request->setQueryString([ + 'foo' => 'valueFoo', + 'bar' => 'valueBar', + ]); + + $params = $this->request->getParams(); + $this->assertArrayHasKey('foo', $params); + $this->assertSame('valueFoo', $params['foo']); + $this->assertArrayHasKey('bar', $params); + $this->assertSame('valueBar', $params['bar']); + $this->assertArrayNotHasKey('baz', $params); + } + + public function testGetParamsWithAllOptional(): void + { + $this->setupMultiMethodRoute(); + + // Pass only "bar", should match Method A + $this->request->setQueryString([ + 'bar' => 'valueBar', + ]); + + $params = $this->request->getParams(); + + $this->assertArrayHasKey('bar', $params); + $this->assertSame('valueBar', $params['bar']); + $this->assertArrayNotHasKey('foo', $params); + $this->assertArrayNotHasKey('baz', $params); + } + + public function testGetParamsMatchesMethodB(): void + { + $this->setupMultiMethodRoute(); + + // Pass only "baz", should match Method B + $this->request->setQueryString([ + 'baz' => 'valueBaz', + ]); + + $params = $this->request->getParams(); + + $this->assertArrayHasKey('baz', $params); + $this->assertSame('valueBaz', $params['baz']); + $this->assertArrayNotHasKey('foo', $params); + } + + public function testGetParamsFallbackForMixedAndUnknown(): void + { + $this->setupMultiMethodRoute(); + + // Mixed and unknown should fallback to raw params + $this->request->setQueryString([ + 'foo' => 'valueFoo', + 'baz' => 'valueBaz', + 'extra' => 'unexpected', + ]); + + $params = $this->request->getParams(); + + $this->assertArrayHasKey('foo', $params); + $this->assertSame('valueFoo', $params['foo']); + $this->assertArrayHasKey('baz', $params); + $this->assertSame('valueBaz', $params['baz']); + $this->assertArrayHasKey('extra', $params); + $this->assertSame('unexpected', $params['extra']); + } + + /** + * Helper to attach a route with multiple SDK methods to the request. + */ + private function setupMultiMethodRoute(): void + { + $route = new Route(Request::METHOD_GET, '/multi'); + + $methodA = new Method( + namespace: 'namespace', + group: 'group', + name: 'methodA', + description: 'desc', + auth: [], + responses: [], + parameters: [ + new Parameter('foo'), + new Parameter('bar', optional: true), + ], + ); + + $methodB = new Method( + namespace: 'namespace', + group: 'group', + name: 'methodB', + description: 'desc', + auth: [], + responses: [], + parameters: [ + new Parameter('baz'), + ], + ); + + $route->label('sdk', [$methodA, $methodB]); + $this->request->addFilter(new First()); + $this->request->addFilter(new Second()); + $this->request->setRoute($route); + } } diff --git a/tests/unit/Utopia/ResponseTest.php b/tests/unit/Utopia/ResponseTest.php index cd111ec22c4..452119fafbc 100644 --- a/tests/unit/Utopia/ResponseTest.php +++ b/tests/unit/Utopia/ResponseTest.php @@ -55,12 +55,32 @@ public function testResponseModel(): void 'integer' => 123, 'boolean' => true, 'hidden' => 'secret', + 'array' => [ + 'string 1', + 'string 2' + ], ]), 'single'); $this->assertArrayHasKey('string', $output); $this->assertArrayHasKey('integer', $output); $this->assertArrayHasKey('boolean', $output); $this->assertArrayNotHasKey('hidden', $output); + $this->assertIsArray($output['array']); + + // test optional array + $output = $this->response->output(new Document([ + 'string' => 'lorem ipsum', + 'integer' => 123, + 'boolean' => true, + 'hidden' => 'secret', + ]), 'single'); + $this->assertArrayHasKey('string', $output); + $this->assertArrayHasKey('integer', $output); + $this->assertArrayHasKey('boolean', $output); + $this->assertArrayNotHasKey('hidden', $output); + $this->assertArrayHasKey('array', $output); + $this->assertNull($output['array']); + } public function testResponseModelRequired(): void diff --git a/tests/unit/Utopia/Single.php b/tests/unit/Utopia/Single.php index 3bd09ef6daa..b7f36d10a80 100644 --- a/tests/unit/Utopia/Single.php +++ b/tests/unit/Utopia/Single.php @@ -28,6 +28,11 @@ public function __construct() 'type' => self::TYPE_STRING, 'default' => 'default', 'required' => true + ]) + ->addRule('array', [ + 'type' => self::TYPE_STRING, + 'required' => false, + 'array' => true, ]); }